qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
From what I've gathered, health and damage of enemies is significantly increased. (In some cases, up to twice the amount) People seem to be having quite an easy time with the game, as long as you upgrade your weapons and focus on avoiding attacks. If you are worried about the difficulty, you can always beat the game ...
I imagine that the enemies will be harder, not necasarilly better but will have more health and block more or something. There hits will do more damage as well. That is how games usually increase difficulty, I doubt any of the story will change. Is that what you were looking for?
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
As the difficulties increase enemies have more health and do more damage and are more aggressive. The restart health and wrath recharge are different as well; so when you die in easy you start with more health and wrath, and on apocalyptic you revive with what you had. Nightmare difficulty is the same as apocalyptic bu...
I may be wrong, but it seems that no weapons with health on hit or life steal drops on apocalyptic difficulty to use them on possesed weapons. Im in city of the dead now and have been farming 4 ape-cat-like (or whatever they are) mobs at frozen bay before...for a long time...not a single drop with those stats, so I had...
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
When I clicked on change difficulty, it prompted me that changing the difficulty mid-session will result in being rewarded based on the lowest difficulty selected. So my guess is the drops will change if you select a harder difficulty, however I'm not certain because it may mean that choosing difficulty mid-session wil...
As the difficulties increase enemies have more health and do more damage and are more aggressive. The restart health and wrath recharge are different as well; so when you die in easy you start with more health and wrath, and on apocalyptic you revive with what you had. Nightmare difficulty is the same as apocalyptic bu...
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
From what I've gathered, health and damage of enemies is significantly increased. (In some cases, up to twice the amount) People seem to be having quite an easy time with the game, as long as you upgrade your weapons and focus on avoiding attacks. If you are worried about the difficulty, you can always beat the game ...
As the difficulties increase enemies have more health and do more damage and are more aggressive. The restart health and wrath recharge are different as well; so when you die in easy you start with more health and wrath, and on apocalyptic you revive with what you had. Nightmare difficulty is the same as apocalyptic bu...
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
From what I've gathered, health and damage of enemies is significantly increased. (In some cases, up to twice the amount) People seem to be having quite an easy time with the game, as long as you upgrade your weapons and focus on avoiding attacks. If you are worried about the difficulty, you can always beat the game ...
The enemies are way hard than on normal, Health Increased significantly and Damaged done by enemies have increased as well. Apocalyptic mode also considers the drops after killing enemies which i guess is lowered.
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
When I clicked on change difficulty, it prompted me that changing the difficulty mid-session will result in being rewarded based on the lowest difficulty selected. So my guess is the drops will change if you select a harder difficulty, however I'm not certain because it may mean that choosing difficulty mid-session wil...
I may be wrong, but it seems that no weapons with health on hit or life steal drops on apocalyptic difficulty to use them on possesed weapons. Im in city of the dead now and have been farming 4 ape-cat-like (or whatever they are) mobs at frozen bay before...for a long time...not a single drop with those stats, so I had...
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
As the difficulties increase enemies have more health and do more damage and are more aggressive. The restart health and wrath recharge are different as well; so when you die in easy you start with more health and wrath, and on apocalyptic you revive with what you had. Nightmare difficulty is the same as apocalyptic bu...
In Darksiders II the quality item drop rate increases. As well as other things mentioned above
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
From what I've gathered, health and damage of enemies is significantly increased. (In some cases, up to twice the amount) People seem to be having quite an easy time with the game, as long as you upgrade your weapons and focus on avoiding attacks. If you are worried about the difficulty, you can always beat the game ...
When I clicked on change difficulty, it prompted me that changing the difficulty mid-session will result in being rewarded based on the lowest difficulty selected. So my guess is the drops will change if you select a harder difficulty, however I'm not certain because it may mean that choosing difficulty mid-session wil...
80,764
Darksiders 2 doesn't seem to have any in-game info telling me exactly how the game difficulty will increase if I choose Apocalyptic instead of Normal difficulty. I've seen games handle this in a variety of different ways, such as upping monster health/damage, lowering drop rates of things like healing potions, or even ...
2012/08/15
[ "https://gaming.stackexchange.com/questions/80764", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3062/" ]
From what I've gathered, health and damage of enemies is significantly increased. (In some cases, up to twice the amount) People seem to be having quite an easy time with the game, as long as you upgrade your weapons and focus on avoiding attacks. If you are worried about the difficulty, you can always beat the game ...
I may be wrong, but it seems that no weapons with health on hit or life steal drops on apocalyptic difficulty to use them on possesed weapons. Im in city of the dead now and have been farming 4 ape-cat-like (or whatever they are) mobs at frozen bay before...for a long time...not a single drop with those stats, so I had...
447,947
Is type checking considered bad practice even if you are checking against an interface? I understand that you should always program to an interface and not an implementation - is this what it means? For example, in PHP, is the following OK? ``` if($class instanceof AnInterface) { // Do some code } ``` Or is ther...
2009/01/15
[ "https://Stackoverflow.com/questions/447947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55549/" ]
As long as you follow the [LSP](http://en.wikipedia.org/wiki/Liskov_substitution_principle), I don't see a problem. Your code must work with *any* implementation of the interface. It's not a problem that certain implementations cause you to follow different code paths, as long as you can correctly work with *any* imple...
If you can avoid type checking you should; however, one scenario where I found it handy, was we had a web service which took a message but the contents of the message could change. We had to persist the message back into a db, in order to get the right component to break the message down to its proper tables we used ty...
447,947
Is type checking considered bad practice even if you are checking against an interface? I understand that you should always program to an interface and not an implementation - is this what it means? For example, in PHP, is the following OK? ``` if($class instanceof AnInterface) { // Do some code } ``` Or is ther...
2009/01/15
[ "https://Stackoverflow.com/questions/447947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55549/" ]
If you can avoid type checking you should; however, one scenario where I found it handy, was we had a web service which took a message but the contents of the message could change. We had to persist the message back into a db, in order to get the right component to break the message down to its proper tables we used ty...
Run-time type checking is often necessary in situations where an interface provides all the methods necessary to do something, but does not provide enough to do it well. A prime example of such a situation is determining the number of items in an enumerable sequence. It's possible to make such a determination by enumer...
447,947
Is type checking considered bad practice even if you are checking against an interface? I understand that you should always program to an interface and not an implementation - is this what it means? For example, in PHP, is the following OK? ``` if($class instanceof AnInterface) { // Do some code } ``` Or is ther...
2009/01/15
[ "https://Stackoverflow.com/questions/447947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55549/" ]
As long as you follow the [LSP](http://en.wikipedia.org/wiki/Liskov_substitution_principle), I don't see a problem. Your code must work with *any* implementation of the interface. It's not a problem that certain implementations cause you to follow different code paths, as long as you can correctly work with *any* imple...
In my practice any checking for type (as well as type casting) has always indicated that something is wrong with the code or with the language. So I try to avoid it whenever possible.
447,947
Is type checking considered bad practice even if you are checking against an interface? I understand that you should always program to an interface and not an implementation - is this what it means? For example, in PHP, is the following OK? ``` if($class instanceof AnInterface) { // Do some code } ``` Or is ther...
2009/01/15
[ "https://Stackoverflow.com/questions/447947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55549/" ]
As long as you follow the [LSP](http://en.wikipedia.org/wiki/Liskov_substitution_principle), I don't see a problem. Your code must work with *any* implementation of the interface. It's not a problem that certain implementations cause you to follow different code paths, as long as you can correctly work with *any* imple...
Run-time type checking is often necessary in situations where an interface provides all the methods necessary to do something, but does not provide enough to do it well. A prime example of such a situation is determining the number of items in an enumerable sequence. It's possible to make such a determination by enumer...
447,947
Is type checking considered bad practice even if you are checking against an interface? I understand that you should always program to an interface and not an implementation - is this what it means? For example, in PHP, is the following OK? ``` if($class instanceof AnInterface) { // Do some code } ``` Or is ther...
2009/01/15
[ "https://Stackoverflow.com/questions/447947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/55549/" ]
In my practice any checking for type (as well as type casting) has always indicated that something is wrong with the code or with the language. So I try to avoid it whenever possible.
Run-time type checking is often necessary in situations where an interface provides all the methods necessary to do something, but does not provide enough to do it well. A prime example of such a situation is determining the number of items in an enumerable sequence. It's possible to make such a determination by enumer...
34,029,865
My list looks like this ``` top = [('a',1.875),('c',1.125),('d',0.5)] ``` Can someone help me plot the bar chart with x-axis as a, c, d and y axis values as 1.875 ,1.125, 0.5 ? I tried plotting using the following code. ``` import numpy as np import matplotlib.pyplot as plt top = [('a',1.875),('c',1.125),('d',0...
2015/12/01
[ "https://Stackoverflow.com/questions/34029865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5627454/" ]
Change this line: ``` import numpy ``` to: ``` import numpy as np ``` Change this line: ``` labels, values = zip(*top[]) ``` to: ``` labels, values = zip(*top) ``` With those errors out of the way: ***Using `axes` methods:*** ``` import numpy as np ...
you are calling numpy but you are not using it on the line ``` indexes = np.arange(len(labels)) ``` i guess you were trying to use it, either do: ``` import numpy as np ``` or: ``` indexes = numpy.arange(len(labels)) ```
9,001,293
I want to know that if using an Iterator over a TreeMap in Java interfere with the order of keys?
2012/01/25
[ "https://Stackoverflow.com/questions/9001293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/313245/" ]
From [http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html#keySet()](http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html#keySet%28%29) : > > Returns a Set view of the keys contained in this map. The set's iterator returns the keys in ascending order. > > > If for some reason you need the ke...
No - it will iterate in the order defined by the `TreeMap`, i.e. the natural ordering of the keys, or the one imposed by the comparator specified in the constructor. Just iterating won't change that in the underlying tree map, either.
9,001,293
I want to know that if using an Iterator over a TreeMap in Java interfere with the order of keys?
2012/01/25
[ "https://Stackoverflow.com/questions/9001293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/313245/" ]
No - it will iterate in the order defined by the `TreeMap`, i.e. the natural ordering of the keys, or the one imposed by the comparator specified in the constructor. Just iterating won't change that in the underlying tree map, either.
It doesn't interfere. It gives you keys in ascending order. Iterator using `entrySet` [From official docs - entrySet](https://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html#entrySet%28%29) ``` public Set<Map.Entry<K,V>> entrySet() ``` Returns a Set view of the mappings contained in this map. The set's it...
9,001,293
I want to know that if using an Iterator over a TreeMap in Java interfere with the order of keys?
2012/01/25
[ "https://Stackoverflow.com/questions/9001293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/313245/" ]
From [http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html#keySet()](http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html#keySet%28%29) : > > Returns a Set view of the keys contained in this map. The set's iterator returns the keys in ascending order. > > > If for some reason you need the ke...
It doesn't interfere. It gives you keys in ascending order. Iterator using `entrySet` [From official docs - entrySet](https://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html#entrySet%28%29) ``` public Set<Map.Entry<K,V>> entrySet() ``` Returns a Set view of the mappings contained in this map. The set's it...
15,724
HTC Desire S seems to have very scarce WiFi settings. I'm trying to debug [a Wifi connectivity issue](https://android.stackexchange.com/q/14968/1097) and looks like [it might be a DNS problem](https://android.stackexchange.com/questions/14968/windows-laptop-uses-wifi-access-point-but-android-smartphone-claims-it-is-con...
2011/11/17
[ "https://android.stackexchange.com/questions/15724", "https://android.stackexchange.com", "https://android.stackexchange.com/users/1097/" ]
In my HTC Desire I find it under: Settings-> Wireless & networks -> WiFi Settings Press Menu and select Advanced Here I can see option to use static IP by selecting "Use static IP"
You probably don't have HTC sense (you're using other ROM). Hence you don't have those settings. I use Hox with Sense as well as OP myself, and I don't see any options there to set a static IP. HTC seems to have disregarded those settings. (ICS 4.0.4)
15,724
HTC Desire S seems to have very scarce WiFi settings. I'm trying to debug [a Wifi connectivity issue](https://android.stackexchange.com/q/14968/1097) and looks like [it might be a DNS problem](https://android.stackexchange.com/questions/14968/windows-laptop-uses-wifi-access-point-but-android-smartphone-claims-it-is-con...
2011/11/17
[ "https://android.stackexchange.com/questions/15724", "https://android.stackexchange.com", "https://android.stackexchange.com/users/1097/" ]
In my HTC Desire I find it under: Settings-> Wireless & networks -> WiFi Settings Press Menu and select Advanced Here I can see option to use static IP by selecting "Use static IP"
OK just found it. In wifi settings press and hold the connected network you want to set IP to. Pick *modify network* and in there you scroll down, to *DHCP settings* and pick *static* and scroll down to et your IP. Kinda complicated comparing to non sense android. O well. Hope that helps OP or any other fellow searcher...
15,724
HTC Desire S seems to have very scarce WiFi settings. I'm trying to debug [a Wifi connectivity issue](https://android.stackexchange.com/q/14968/1097) and looks like [it might be a DNS problem](https://android.stackexchange.com/questions/14968/windows-laptop-uses-wifi-access-point-but-android-smartphone-claims-it-is-con...
2011/11/17
[ "https://android.stackexchange.com/questions/15724", "https://android.stackexchange.com", "https://android.stackexchange.com/users/1097/" ]
OK just found it. In wifi settings press and hold the connected network you want to set IP to. Pick *modify network* and in there you scroll down, to *DHCP settings* and pick *static* and scroll down to et your IP. Kinda complicated comparing to non sense android. O well. Hope that helps OP or any other fellow searcher...
You probably don't have HTC sense (you're using other ROM). Hence you don't have those settings. I use Hox with Sense as well as OP myself, and I don't see any options there to set a static IP. HTC seems to have disregarded those settings. (ICS 4.0.4)
20,164,279
How enums are working without creation of object. ``` typedef enum { a=0,b,c; }Sample_Enum; int main() { printf("%d",a); } ``` Output Ans: 0
2013/11/23
[ "https://Stackoverflow.com/questions/20164279", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2874168/" ]
The first few versions of the gem [were yanked](http://rubygems.org/gems/foundation-rails/versions). Make sure your Gemfile points to a version 5.0.1.0 or greater.
I've had the same issue, and it's also been noted on Foundation's forum. The foundation-rails gem is pretty new (I just now updated to 5.0.2) and it still tanks. Probably just a matter of time until Heroku/Zurb work out the kinks.
48,854
(Hi. This is my first question here.) A well known result in complex analysis says that there is an $\varepsilon\gt 0$ such that if $f$ is holomorphic in (a neighborhood of) the closed disk ${\mathbb D}$ of radius 1, and $f'(0)=1$, then $f({\mathbb D})$ contains a disk of radius $\varepsilon$. This is due to Landau a...
2010/12/09
[ "https://mathoverflow.net/questions/48854", "https://mathoverflow.net", "https://mathoverflow.net/users/11449/" ]
You can find some answers in Section 10.1 of Reinhold Remmert's *Classical Topics in Complex Function Theory* (Springer GTM 172) -- or in the original german edition *Funktionentheorie 2*. A simple proof is given that Landau's constant $L$ verifies $L>\frac{3}{2}\sqrt{2}-2\simeq 0.1213$. A more involved proof of $L>\...
Is the following reference helpful? [Current status of Bloch Constant and Landau Constant bounds](https://mathoverflow.net/questions/24281/current-status-of-bloch-constant-and-landau-constant-bounds)
92,494
I have a square signal (fixed but can be between 12MHz and up to 48MHz) and I would like to create every 8 clocks a pulse as brief as possible, no more than 1/4 of the period. ![Pulse every 8 clocks](https://i.stack.imgur.com/AFvw4.png) First, a couple of loose constraints: - voltage is at 1.8V but I could have a shi...
2013/12/03
[ "https://electronics.stackexchange.com/questions/92494", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/16399/" ]
If I understand you correctly, then what you want could be achieved using a simple counter IC and a couple of logic gates. You could use a similar strategy to the linked project. For example, something like this [4-bit, 200MHz binary counter](http://uk.farnell.com/nxp/74lvc163pw-tssop16/ic-logic-4-bit-binary-counter-t...
A CPLD like an XC2C32 from Xilinx would be perfect. * Like an FPGA but much less complicated and powerful * Can run at up to 300MHz * 1.8V operation * Cheap (less than $2)
92,494
I have a square signal (fixed but can be between 12MHz and up to 48MHz) and I would like to create every 8 clocks a pulse as brief as possible, no more than 1/4 of the period. ![Pulse every 8 clocks](https://i.stack.imgur.com/AFvw4.png) First, a couple of loose constraints: - voltage is at 1.8V but I could have a shi...
2013/12/03
[ "https://electronics.stackexchange.com/questions/92494", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/16399/" ]
You can solve this problem with just a couple of parts. TI makes logic parts in their 74AC logic family that operate correctly down to 1.5V. Use a 4 bit counter as shown below to repeatedly count from 8 to 15. Use the RCO output, which is a one clock wide pulse to reload the counter and to also drive an R/C circuit to ...
If I understand you correctly, then what you want could be achieved using a simple counter IC and a couple of logic gates. You could use a similar strategy to the linked project. For example, something like this [4-bit, 200MHz binary counter](http://uk.farnell.com/nxp/74lvc163pw-tssop16/ic-logic-4-bit-binary-counter-t...
92,494
I have a square signal (fixed but can be between 12MHz and up to 48MHz) and I would like to create every 8 clocks a pulse as brief as possible, no more than 1/4 of the period. ![Pulse every 8 clocks](https://i.stack.imgur.com/AFvw4.png) First, a couple of loose constraints: - voltage is at 1.8V but I could have a shi...
2013/12/03
[ "https://electronics.stackexchange.com/questions/92494", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/16399/" ]
You can solve this problem with just a couple of parts. TI makes logic parts in their 74AC logic family that operate correctly down to 1.5V. Use a 4 bit counter as shown below to repeatedly count from 8 to 15. Use the RCO output, which is a one clock wide pulse to reload the counter and to also drive an R/C circuit to ...
A CPLD like an XC2C32 from Xilinx would be perfect. * Like an FPGA but much less complicated and powerful * Can run at up to 300MHz * 1.8V operation * Cheap (less than $2)
51,425,020
I am looking to add a filter/sorter table into the application. I need to choose which column can be sorted - and provide change of class glyphs up/down arrows on the columns. The filter box also needs to be outside of the table. * I tried looking at this example, but there are no glyph class changes on the cols and t...
2018/07/19
[ "https://Stackoverflow.com/questions/51425020", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2700673/" ]
As of now (06/07/2018), an easy approach would be running az account show in the Azure Cloud Shell (requires a Storage Account) in the Azure Portal. --- Command --- ``` az account show ``` --- Command Output --- ``` { "environmentName": "AzureCloud", "id": "{Subscription Id (GUID)}", "isDefault": true, "na...
We have recently had the same problem we wanted to fix. After speaking to Microsoft there is no supported way to do this through the Graph API when accessing as an application using the `client_credential`flow. An approach we have taken to get the tenant id is to call the [OAuth2 metadata document endpoint for your t...
18,101,839
I had changed whole codebase from `Thrift` to `CQL` using `datastax java driver 1.0.1` and `cassandra 1.2.6..` with thrift I was getting frequent timeouts from start, I was not able to proceed...Adopting CQL, tables designed as per that I got success and less timeouts.... With that I was able to insert huge data whic...
2013/08/07
[ "https://Stackoverflow.com/questions/18101839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2572801/" ]
Just spent some time to read my dev cassandra nodes config yaml, because i had a similar problem. My system stalled and throws time out when i tried to load about 3 billion sha2 hashes to my dev node with only 600MB RAM ;) I fixed it by decreasing cache sizes and waits before flush and so on. This made the node slower...
From your log snippet, only 4 GB of heap was given to Cassandra, and it is getting full. That is most likely your problem: `DEBUG [ScheduledTasks:1] 2013-08-07 15:08:09,434 GCInspector.java (line 121) GC for ParNew: 155 ms for 6 collections, 3230372760 used; max is 4277534720` max is 4277534720 == 4 GB heap. You shou...
18,101,839
I had changed whole codebase from `Thrift` to `CQL` using `datastax java driver 1.0.1` and `cassandra 1.2.6..` with thrift I was getting frequent timeouts from start, I was not able to proceed...Adopting CQL, tables designed as per that I got success and less timeouts.... With that I was able to insert huge data whic...
2013/08/07
[ "https://Stackoverflow.com/questions/18101839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2572801/" ]
Just spent some time to read my dev cassandra nodes config yaml, because i had a similar problem. My system stalled and throws time out when i tried to load about 3 billion sha2 hashes to my dev node with only 600MB RAM ;) I fixed it by decreasing cache sizes and waits before flush and so on. This made the node slower...
I have also met this problem, "Cassandra timeout during **write** query at consistency LOCAL\_ONE (0 replicas) acknowledged the write over 1 required" "Cassandra timeout during **read** query at consistency LOCAL\_ONE (0 replicas) acknowledged the write over 1 required". I have dealt with it by change the parameter i...
18,101,839
I had changed whole codebase from `Thrift` to `CQL` using `datastax java driver 1.0.1` and `cassandra 1.2.6..` with thrift I was getting frequent timeouts from start, I was not able to proceed...Adopting CQL, tables designed as per that I got success and less timeouts.... With that I was able to insert huge data whic...
2013/08/07
[ "https://Stackoverflow.com/questions/18101839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2572801/" ]
I found that during some cassandra-stress read operations, if i set the rate threads too high i will get that CL error. Consider to lower during your test the number of threads to something affordable for your pool to sustain in order to beat the * read\_request\_timeout\_in\_ms In my opinion modifying that in cassa...
Just spent some time to read my dev cassandra nodes config yaml, because i had a similar problem. My system stalled and throws time out when i tried to load about 3 billion sha2 hashes to my dev node with only 600MB RAM ;) I fixed it by decreasing cache sizes and waits before flush and so on. This made the node slower...
18,101,839
I had changed whole codebase from `Thrift` to `CQL` using `datastax java driver 1.0.1` and `cassandra 1.2.6..` with thrift I was getting frequent timeouts from start, I was not able to proceed...Adopting CQL, tables designed as per that I got success and less timeouts.... With that I was able to insert huge data whic...
2013/08/07
[ "https://Stackoverflow.com/questions/18101839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2572801/" ]
I found that during some cassandra-stress read operations, if i set the rate threads too high i will get that CL error. Consider to lower during your test the number of threads to something affordable for your pool to sustain in order to beat the * read\_request\_timeout\_in\_ms In my opinion modifying that in cassa...
From your log snippet, only 4 GB of heap was given to Cassandra, and it is getting full. That is most likely your problem: `DEBUG [ScheduledTasks:1] 2013-08-07 15:08:09,434 GCInspector.java (line 121) GC for ParNew: 155 ms for 6 collections, 3230372760 used; max is 4277534720` max is 4277534720 == 4 GB heap. You shou...
18,101,839
I had changed whole codebase from `Thrift` to `CQL` using `datastax java driver 1.0.1` and `cassandra 1.2.6..` with thrift I was getting frequent timeouts from start, I was not able to proceed...Adopting CQL, tables designed as per that I got success and less timeouts.... With that I was able to insert huge data whic...
2013/08/07
[ "https://Stackoverflow.com/questions/18101839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2572801/" ]
I found that during some cassandra-stress read operations, if i set the rate threads too high i will get that CL error. Consider to lower during your test the number of threads to something affordable for your pool to sustain in order to beat the * read\_request\_timeout\_in\_ms In my opinion modifying that in cassa...
I have also met this problem, "Cassandra timeout during **write** query at consistency LOCAL\_ONE (0 replicas) acknowledged the write over 1 required" "Cassandra timeout during **read** query at consistency LOCAL\_ONE (0 replicas) acknowledged the write over 1 required". I have dealt with it by change the parameter i...
2,474,267
> > Let $d$ and $\rho$ be metrics on $X$. If there exist positive numbers $a$ and $b$ such that $ad \le \rho \le bd$, then the two metrics give rise to the same topology on $X$. > > > Let $\tau\_p$ and $\tau\_d$ denote the topologies induced by $\rho$ and $d$, respectively. I am having trouble showing either incl...
2017/10/15
[ "https://math.stackexchange.com/questions/2474267", "https://math.stackexchange.com", "https://math.stackexchange.com/users/193319/" ]
Observation. If $d$ and $\delta$ are two metrics on $X$ such that $\delta<k d$ then the identity $j:(X,d)\longrightarrow (X,\delta)$ is $k$-lipschitz (in particular continuous). Apply twice the observation to conclude that $j$ is an omeomorphism between $(X,\tau\_d)\stackrel{j}{\cong}(X,\tau\_\delta)$ (so $\tau\_d=\tau...
You want to show that $B\_d (x,\varepsilon) \in \tau\_\rho$. Let $y\in B\_d (x,\varepsilon)$. We need to show that there exists some $\delta>0$ such that $B\_\rho (y,\delta)\subseteq B\_d (x,\varepsilon)$. Let $z \in B\_\rho (y,\delta)$, and choose $\delta=a(\varepsilon -d(x,y))$. Since $ad\le\rho$, $d(z,y)<\frac{\d...
2,474,267
> > Let $d$ and $\rho$ be metrics on $X$. If there exist positive numbers $a$ and $b$ such that $ad \le \rho \le bd$, then the two metrics give rise to the same topology on $X$. > > > Let $\tau\_p$ and $\tau\_d$ denote the topologies induced by $\rho$ and $d$, respectively. I am having trouble showing either incl...
2017/10/15
[ "https://math.stackexchange.com/questions/2474267", "https://math.stackexchange.com", "https://math.stackexchange.com/users/193319/" ]
First, choose $\delta' > 0$ such that $B\_d(y,\delta')\subset B\_d(x,\varepsilon)$. This is clearly possible. Now, choose $\delta < a\delta'$. Then for $z\in B\_\rho(y,\delta)$ we have $$ d(z,y)\le\frac 1 a\rho(z,y)\le\frac \delta a < \delta'. $$ Thus, $z\in B\_d(y,\delta')\subset B\_d(x,\varepsilon)$, which establishe...
You want to show that $B\_d (x,\varepsilon) \in \tau\_\rho$. Let $y\in B\_d (x,\varepsilon)$. We need to show that there exists some $\delta>0$ such that $B\_\rho (y,\delta)\subseteq B\_d (x,\varepsilon)$. Let $z \in B\_\rho (y,\delta)$, and choose $\delta=a(\varepsilon -d(x,y))$. Since $ad\le\rho$, $d(z,y)<\frac{\d...
2,474,267
> > Let $d$ and $\rho$ be metrics on $X$. If there exist positive numbers $a$ and $b$ such that $ad \le \rho \le bd$, then the two metrics give rise to the same topology on $X$. > > > Let $\tau\_p$ and $\tau\_d$ denote the topologies induced by $\rho$ and $d$, respectively. I am having trouble showing either incl...
2017/10/15
[ "https://math.stackexchange.com/questions/2474267", "https://math.stackexchange.com", "https://math.stackexchange.com/users/193319/" ]
First, choose $\delta' > 0$ such that $B\_d(y,\delta')\subset B\_d(x,\varepsilon)$. This is clearly possible. Now, choose $\delta < a\delta'$. Then for $z\in B\_\rho(y,\delta)$ we have $$ d(z,y)\le\frac 1 a\rho(z,y)\le\frac \delta a < \delta'. $$ Thus, $z\in B\_d(y,\delta')\subset B\_d(x,\varepsilon)$, which establishe...
Observation. If $d$ and $\delta$ are two metrics on $X$ such that $\delta<k d$ then the identity $j:(X,d)\longrightarrow (X,\delta)$ is $k$-lipschitz (in particular continuous). Apply twice the observation to conclude that $j$ is an omeomorphism between $(X,\tau\_d)\stackrel{j}{\cong}(X,\tau\_\delta)$ (so $\tau\_d=\tau...
39,869,605
I am trying to remotely execute my transformation .The transformation has a transformation executor step with reference to another transformation from the same repository. Upon remote execution with export of resources the execution fails with the following message Unable to load transformation due to error The err...
2016/10/05
[ "https://Stackoverflow.com/questions/39869605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6114342/" ]
The issue is possibly due to wrong path to the transformation. Check if you have given the correct path to your transformation in the step. Ideally use the system variable to set up your path. Check the below image: [![enter image description here](https://i.stack.imgur.com/4nTq5.png)](https://i.stack.imgur.com/4nTq5...
Thanks for your answer. I m actually using Repository by name And Repository by reference The repository is on the remote DI server and my spoon is always connected to the repository. What I found with debugging is that the TransExecutor step Checks for Repository by name and Repository by reference but in both case...
39,869,605
I am trying to remotely execute my transformation .The transformation has a transformation executor step with reference to another transformation from the same repository. Upon remote execution with export of resources the execution fails with the following message Unable to load transformation due to error The err...
2016/10/05
[ "https://Stackoverflow.com/questions/39869605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6114342/" ]
The issue is possibly due to wrong path to the transformation. Check if you have given the correct path to your transformation in the step. Ideally use the system variable to set up your path. Check the below image: [![enter image description here](https://i.stack.imgur.com/4nTq5.png)](https://i.stack.imgur.com/4nTq5...
I've just run into the same issue. I fixed it using absolute path with placeholder pointing out to **Parent Job Repository Directory** So **Transformation Executor** field **File name** looks like this: ``` [${Internal.Job.Filename.Directory}/my-transformation.ktr][1] ```
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
This behaviour is unrelated to generics: you can cast any interface to any other without compile errors. You cannot do this with classes because Java can check at compile time whether one class can be casted to another. With interfaces however the cast might succeed or fail, depending on the class that is actually im...
There is possibility, that sub class of `Interface1` can be a sub class of `Interface2` also. So, it doesn't give the compilation error.
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
This behaviour is unrelated to generics: you can cast any interface to any other without compile errors. You cannot do this with classes because Java can check at compile time whether one class can be casted to another. With interfaces however the cast might succeed or fail, depending on the class that is actually im...
If you have a type which implements `Interface1` it may as well implement `Interface2`. Hence the compiler will not blame you, because at runtime the cast may succeed.
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
This behaviour is unrelated to generics: you can cast any interface to any other without compile errors. You cannot do this with classes because Java can check at compile time whether one class can be casted to another. With interfaces however the cast might succeed or fail, depending on the class that is actually im...
It not generic problem. JVM nothing "known" about compatibilities between `Interface1` and `Interface2`. So you get `ClassCastException`.
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
This behaviour is unrelated to generics: you can cast any interface to any other without compile errors. You cannot do this with classes because Java can check at compile time whether one class can be casted to another. With interfaces however the cast might succeed or fail, depending on the class that is actually im...
This is because JAVA supports multiple interface implementations. As we can have any number of classes of any types(any parent class) that can implement an interface, JVM design is such that untill runtime one cannot identify which type is being passed in place that interface.So there can be any interface placed in the...
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
This behaviour is unrelated to generics: you can cast any interface to any other without compile errors. You cannot do this with classes because Java can check at compile time whether one class can be casted to another. With interfaces however the cast might succeed or fail, depending on the class that is actually im...
The compiler does not know that this won't work: You could have a instance of type **Interface2** that is also of type **Interface1** (for ex: class ImplementingClass implements Interface1,Interface2). Then the cast would be fine. "using two classes instead of interfaces does actually generate compile errors." In thi...
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
If you have a type which implements `Interface1` it may as well implement `Interface2`. Hence the compiler will not blame you, because at runtime the cast may succeed.
There is possibility, that sub class of `Interface1` can be a sub class of `Interface2` also. So, it doesn't give the compilation error.
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
If you have a type which implements `Interface1` it may as well implement `Interface2`. Hence the compiler will not blame you, because at runtime the cast may succeed.
It not generic problem. JVM nothing "known" about compatibilities between `Interface1` and `Interface2`. So you get `ClassCastException`.
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
If you have a type which implements `Interface1` it may as well implement `Interface2`. Hence the compiler will not blame you, because at runtime the cast may succeed.
This is because JAVA supports multiple interface implementations. As we can have any number of classes of any types(any parent class) that can implement an interface, JVM design is such that untill runtime one cannot identify which type is being passed in place that interface.So there can be any interface placed in the...
22,631,979
I stumbled across a Java casting situation involving Generics and Interfaces that I do not understand. Please consider the following code where I create a `List<Interface1>`. And then `get()` an element and cast it to `Interface2` without compiler error although these two interfaces are completely unrelated. ``` impo...
2014/03/25
[ "https://Stackoverflow.com/questions/22631979", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1237590/" ]
If you have a type which implements `Interface1` it may as well implement `Interface2`. Hence the compiler will not blame you, because at runtime the cast may succeed.
The compiler does not know that this won't work: You could have a instance of type **Interface2** that is also of type **Interface1** (for ex: class ImplementingClass implements Interface1,Interface2). Then the cast would be fine. "using two classes instead of interfaces does actually generate compile errors." In thi...
36,280,003
Im going to make a search field, where the user types the item he/she is looking for. lets say `helm` in this example. The database holds items, like: ``` id | name | 1 | helm of c 2 | helm of 9 3 | helm 4 | helmset 5 | helmapo 6 | haloween ``` how can i make the mysql query in this case return row 1-5, cause i...
2016/03/29
[ "https://Stackoverflow.com/questions/36280003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3199857/" ]
You can use wildcards ``` SELECT * FROM table WHERE name LIKE '%helm%' ``` More information on wildcards: <http://www.w3schools.com/sql/sql_wildcards.asp>
You can try to make wildcard search like this: ``` select * from tablename where name like 'helm%' ``` Also if you the word `helm` can appear in the middle of the column value or any place then put it like ``` select * from tablename where name like '%helm%' ```
36,280,003
Im going to make a search field, where the user types the item he/she is looking for. lets say `helm` in this example. The database holds items, like: ``` id | name | 1 | helm of c 2 | helm of 9 3 | helm 4 | helmset 5 | helmapo 6 | haloween ``` how can i make the mysql query in this case return row 1-5, cause i...
2016/03/29
[ "https://Stackoverflow.com/questions/36280003", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3199857/" ]
You can use wildcards ``` SELECT * FROM table WHERE name LIKE '%helm%' ``` More information on wildcards: <http://www.w3schools.com/sql/sql_wildcards.asp>
You can use sql wildcards to handle this use case ``` SELECT row FROM tablename WHERE field LIKE '%helm%' ``` If you encapsulate the search term with % on both sides the SQL will return any row containing the search term at any index position, however if you only want return rows that start with helm then you would ...
24,289,447
I have a column where we are storing the sum of selected date values .. for example I have fixed date value below ``` 1 Sunday 2 Monday 4 Tuesday 8 Wednesday 16 Thursday 32 Friday 64 Saturday ``` in my column I am getting 12 so its clear that user has selected `(4)Tuesday+(8)Wednesday=12` now I have 106 what l...
2014/06/18
[ "https://Stackoverflow.com/questions/24289447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2492359/" ]
``` SELECT *, ( (SelDates & 1) = 1) AS IsSun, ( (SelDates & 2) = 2) AS IsMon, ( (SelDates & 4) = 4) AS IsTue, ( (SelDates & 8) = 8) AS IsWed, ( (SelDates & 16) = 16) AS IsThu, ( (SelDates & 32) = 32) AS IsFri, ( (SelDates & 64) = 64) AS IsSat FROM <table> ``` This should work both in MySQL and S...
You can check it like this (MS SQL, Bitwise AND): ``` SELECT CASE WHEN (daySum & 1) = 1 THEN 'IsMonday' CASE WHEN (daySum & 2) = 2 THEN 'IsTuesDay' CASE WHEN (daySum & 4) = 4 THEN 'IsWednesDay' ... etc ... END FROM MyTable ```
24,289,447
I have a column where we are storing the sum of selected date values .. for example I have fixed date value below ``` 1 Sunday 2 Monday 4 Tuesday 8 Wednesday 16 Thursday 32 Friday 64 Saturday ``` in my column I am getting 12 so its clear that user has selected `(4)Tuesday+(8)Wednesday=12` now I have 106 what l...
2014/06/18
[ "https://Stackoverflow.com/questions/24289447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2492359/" ]
``` SELECT *, ( (SelDates & 1) = 1) AS IsSun, ( (SelDates & 2) = 2) AS IsMon, ( (SelDates & 4) = 4) AS IsTue, ( (SelDates & 8) = 8) AS IsWed, ( (SelDates & 16) = 16) AS IsThu, ( (SelDates & 32) = 32) AS IsFri, ( (SelDates & 64) = 64) AS IsSat FROM <table> ``` This should work both in MySQL and S...
In MySQL you can get the bitmap directly with the `BIN` function ``` SELECT LPAD(BIN(106), 7,'0') --> 1101010 ``` The MSB is saturday, the LSB sunday
73,091,216
I am trying to achieve the attached design. Basically, I have a top bar in the page, which has a few buttons on left, and few on right. Below the top-bar, I have another section (Div), which has two buttons placed side by side. For the top bar, I combined the two buttons on left in a single div, and two buttons on rig...
2022/07/23
[ "https://Stackoverflow.com/questions/73091216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/216190/" ]
To click on the ***clickable*** element you need to induce [WebDriverWait](https://stackoverflow.com/a/59130336/7429447) for the [*element\_to\_be\_clickable()*](https://stackoverflow.com/a/54194511/7429447) and you can use either of the following [*locator strategies*](https://stackoverflow.com/a/48056120/7429447): *...
``` from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC hiding_button = WebDriverWait(browser, 20).until(EC.element_to_be_clickable((By.XPATH, "//button[title ='Monitor Chart(Ctrl+Alt+G)']"))) hiding_button...
73,091,216
I am trying to achieve the attached design. Basically, I have a top bar in the page, which has a few buttons on left, and few on right. Below the top-bar, I have another section (Div), which has two buttons placed side by side. For the top bar, I combined the two buttons on left in a single div, and two buttons on rig...
2022/07/23
[ "https://Stackoverflow.com/questions/73091216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/216190/" ]
``` from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC hiding_button = WebDriverWait(browser, 20).until(EC.element_to_be_clickable((By.XPATH, "//button[title ='Monitor Chart(Ctrl+Alt+G)']"))) hiding_button...
Thanks to all. But I figure it out the issue. The button was inside an iFrame. So I hadd to switch to the iFrame first. Code used: ``` iframe = driver.find_element_by_id('Access_Performance_Monitor') driver.switch_to.frame(iframe) ```
73,091,216
I am trying to achieve the attached design. Basically, I have a top bar in the page, which has a few buttons on left, and few on right. Below the top-bar, I have another section (Div), which has two buttons placed side by side. For the top bar, I combined the two buttons on left in a single div, and two buttons on rig...
2022/07/23
[ "https://Stackoverflow.com/questions/73091216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/216190/" ]
To click on the ***clickable*** element you need to induce [WebDriverWait](https://stackoverflow.com/a/59130336/7429447) for the [*element\_to\_be\_clickable()*](https://stackoverflow.com/a/54194511/7429447) and you can use either of the following [*locator strategies*](https://stackoverflow.com/a/48056120/7429447): *...
Thanks to all. But I figure it out the issue. The button was inside an iFrame. So I hadd to switch to the iFrame first. Code used: ``` iframe = driver.find_element_by_id('Access_Performance_Monitor') driver.switch_to.frame(iframe) ```
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
To ensure that appropriate projection metadata are at every step associated with the coordinates, I'd suggest converting the points to a `SpatialPointsDataFrame` object as soon as possible. See `?"SpatialPointsDataFrame-class"` for more on how to convert simple data.frames or matrices to **SpatialPointsDataFrame** ob...
In your question you are not clear whether you already read in your data set into a data.frame or matrix. So I assume in the following you have your data set in a text file: ``` # read in data dataset = read.table("dataset.txt", header=T) # ... or use example data dataset = read.table(text="ID X Y 1 118 10 2 119 50 3...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
Converting latitude and longitude points to UTM ``` library(sp) library(rgdal) #Function LongLatToUTM<-function(x,y,zone){ xy <- data.frame(ID = 1:length(x), X = x, Y = y) coordinates(xy) <- c("X", "Y") proj4string(xy) <- CRS("+proj=longlat +datum=WGS84") ## for example res <- spTransform(xy, CRS(paste("+proj=u...
In your question you are not clear whether you already read in your data set into a data.frame or matrix. So I assume in the following you have your data set in a text file: ``` # read in data dataset = read.table("dataset.txt", header=T) # ... or use example data dataset = read.table(text="ID X Y 1 118 10 2 119 50 3...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
In your question you are not clear whether you already read in your data set into a data.frame or matrix. So I assume in the following you have your data set in a text file: ``` # read in data dataset = read.table("dataset.txt", header=T) # ... or use example data dataset = read.table(text="ID X Y 1 118 10 2 119 50 3...
Based on the code above, I also added a version of zone and hemisphere detection (that solves conversion problems, as described in some comments) + shorthand for `CRS` string and conversion back to WSG86: ``` library(dplyr) library(sp) library(rgdal) library(tibble) find_UTM_zone <- function(longitude, latitude) { ...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
In your question you are not clear whether you already read in your data set into a data.frame or matrix. So I assume in the following you have your data set in a text file: ``` # read in data dataset = read.table("dataset.txt", header=T) # ... or use example data dataset = read.table(text="ID X Y 1 118 10 2 119 50 3...
Regarding the example, the default UTM Zone for the given coordinates is 50. It is not advised to project coordinates into far away zones. You can check the conversion using the [NCAT tool](https://www.ngs.noaa.gov/NCAT/) from NOAA. The code below uses the `sf` package for doing the conversion. ``` library(sf) libra...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
To ensure that appropriate projection metadata are at every step associated with the coordinates, I'd suggest converting the points to a `SpatialPointsDataFrame` object as soon as possible. See `?"SpatialPointsDataFrame-class"` for more on how to convert simple data.frames or matrices to **SpatialPointsDataFrame** ob...
Converting latitude and longitude points to UTM ``` library(sp) library(rgdal) #Function LongLatToUTM<-function(x,y,zone){ xy <- data.frame(ID = 1:length(x), X = x, Y = y) coordinates(xy) <- c("X", "Y") proj4string(xy) <- CRS("+proj=longlat +datum=WGS84") ## for example res <- spTransform(xy, CRS(paste("+proj=u...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
To ensure that appropriate projection metadata are at every step associated with the coordinates, I'd suggest converting the points to a `SpatialPointsDataFrame` object as soon as possible. See `?"SpatialPointsDataFrame-class"` for more on how to convert simple data.frames or matrices to **SpatialPointsDataFrame** ob...
Based on the code above, I also added a version of zone and hemisphere detection (that solves conversion problems, as described in some comments) + shorthand for `CRS` string and conversion back to WSG86: ``` library(dplyr) library(sp) library(rgdal) library(tibble) find_UTM_zone <- function(longitude, latitude) { ...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
To ensure that appropriate projection metadata are at every step associated with the coordinates, I'd suggest converting the points to a `SpatialPointsDataFrame` object as soon as possible. See `?"SpatialPointsDataFrame-class"` for more on how to convert simple data.frames or matrices to **SpatialPointsDataFrame** ob...
Regarding the example, the default UTM Zone for the given coordinates is 50. It is not advised to project coordinates into far away zones. You can check the conversion using the [NCAT tool](https://www.ngs.noaa.gov/NCAT/) from NOAA. The code below uses the `sf` package for doing the conversion. ``` library(sf) libra...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
Converting latitude and longitude points to UTM ``` library(sp) library(rgdal) #Function LongLatToUTM<-function(x,y,zone){ xy <- data.frame(ID = 1:length(x), X = x, Y = y) coordinates(xy) <- c("X", "Y") proj4string(xy) <- CRS("+proj=longlat +datum=WGS84") ## for example res <- spTransform(xy, CRS(paste("+proj=u...
Based on the code above, I also added a version of zone and hemisphere detection (that solves conversion problems, as described in some comments) + shorthand for `CRS` string and conversion back to WSG86: ``` library(dplyr) library(sp) library(rgdal) library(tibble) find_UTM_zone <- function(longitude, latitude) { ...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
Converting latitude and longitude points to UTM ``` library(sp) library(rgdal) #Function LongLatToUTM<-function(x,y,zone){ xy <- data.frame(ID = 1:length(x), X = x, Y = y) coordinates(xy) <- c("X", "Y") proj4string(xy) <- CRS("+proj=longlat +datum=WGS84") ## for example res <- spTransform(xy, CRS(paste("+proj=u...
Regarding the example, the default UTM Zone for the given coordinates is 50. It is not advised to project coordinates into far away zones. You can check the conversion using the [NCAT tool](https://www.ngs.noaa.gov/NCAT/) from NOAA. The code below uses the `sf` package for doing the conversion. ``` library(sf) libra...
18,639,967
I found a fairly simple example of how to do this but I cant get it to work for me. I'm pretty new to R ``` library(rgdal) xy <- cbind(c(118, 119), c(10, 50)) project(xy, "+proj=utm +zone=51 ellps=WGS84") [,1] [,2] [1,] -48636.65 1109577 [2,] 213372.05 5546301 ``` But this is with example numbers. ...
2013/09/05
[ "https://Stackoverflow.com/questions/18639967", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2729637/" ]
Based on the code above, I also added a version of zone and hemisphere detection (that solves conversion problems, as described in some comments) + shorthand for `CRS` string and conversion back to WSG86: ``` library(dplyr) library(sp) library(rgdal) library(tibble) find_UTM_zone <- function(longitude, latitude) { ...
Regarding the example, the default UTM Zone for the given coordinates is 50. It is not advised to project coordinates into far away zones. You can check the conversion using the [NCAT tool](https://www.ngs.noaa.gov/NCAT/) from NOAA. The code below uses the `sf` package for doing the conversion. ``` library(sf) libra...
23,887,173
I am trying to create a form where the variable fields is sent to a database in phpmyadmin. The problem is that the fields in phpmyadmin are blank, as if I hadn't write anything in the form. The code is the following in PHP: ``` $name = $_POST["name"]; $institution = $_POST["institution"]; $email = $_POST["email"]; $c...
2014/05/27
[ "https://Stackoverflow.com/questions/23887173", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3665872/" ]
This line is the problem. ``` echo $consulta; die; ``` You're instructing the script to exit even before getting to the `mysql_query($consulta,$connection)` line. Remove the `die` and it should be good to go provided your connection is good and there's no syntax error in your query. You also don't require the `(` a...
You should first check post array you get. Do this first: ``` echo '<pre>';print_r($_POST);exit; ``` Check what values you get. **Note**: Also check value name fields in form & key of post array should be same. Also replace query with given below. ``` $consulta = "INSERT INTO `1264`(`name`, `institution`, `emai...
2,926,839
Most of the other requests for solving simultaneous equations seem to have three equations to use, which my specific problem doesn't have. I also hope to use beginner A-level mathematics, so no calculus, which I've seen in other solutions. The question is: Find the set of values of k for which the line $y = 2x - k$ me...
2018/09/22
[ "https://math.stackexchange.com/questions/2926839", "https://math.stackexchange.com", "https://math.stackexchange.com/users/596015/" ]
Setting \begin{eqnarray} x^2+kx-2&=&2x-k\\ x^2+(k-2)x+(k-2)&=&0\\ \end{eqnarray} The discriminant must be positive in order to obtain two distinct solutions, so \begin{eqnarray} (k-2)^2-4(k-2)&>&0\\ (k-2)(k-6)&>&0 \end{eqnarray} The graph of this expression with respect to $k$ is a parabola which is concave up, so th...
Hint: Solving the equation $$0=x^2+x(k-2)+k-2$$ we get by the quadratic formula $$x\_{1,2}=-\frac{k-2}{2}\pm\sqrt{\left(\frac{k-2}{2}\right)^2-k+2}$$ Simplifying the discriminant $$\frac{k^2-4k+4-4k+8}{4}=\frac{k^2-8k+12}{4}$$ Can you finish?
2,926,839
Most of the other requests for solving simultaneous equations seem to have three equations to use, which my specific problem doesn't have. I also hope to use beginner A-level mathematics, so no calculus, which I've seen in other solutions. The question is: Find the set of values of k for which the line $y = 2x - k$ me...
2018/09/22
[ "https://math.stackexchange.com/questions/2926839", "https://math.stackexchange.com", "https://math.stackexchange.com/users/596015/" ]
Setting \begin{eqnarray} x^2+kx-2&=&2x-k\\ x^2+(k-2)x+(k-2)&=&0\\ \end{eqnarray} The discriminant must be positive in order to obtain two distinct solutions, so \begin{eqnarray} (k-2)^2-4(k-2)&>&0\\ (k-2)(k-6)&>&0 \end{eqnarray} The graph of this expression with respect to $k$ is a parabola which is concave up, so th...
Well, let's substitute $2x-k$ for $y$ in your quadratic equation, and see what we find; $$2x-k=x^2+kx-2\to x^2+(k-2)x +(k-2) = 0$$For simplicity, I'll denote $n = k-2$. So, we seek the solutions of the quadratic $$x^2+nx+n=0$$By the quadratic formula, we find that $$x=\frac{-n\pm\sqrt{n^2-4n}}2$$We want to find in whi...
2,926,839
Most of the other requests for solving simultaneous equations seem to have three equations to use, which my specific problem doesn't have. I also hope to use beginner A-level mathematics, so no calculus, which I've seen in other solutions. The question is: Find the set of values of k for which the line $y = 2x - k$ me...
2018/09/22
[ "https://math.stackexchange.com/questions/2926839", "https://math.stackexchange.com", "https://math.stackexchange.com/users/596015/" ]
Setting \begin{eqnarray} x^2+kx-2&=&2x-k\\ x^2+(k-2)x+(k-2)&=&0\\ \end{eqnarray} The discriminant must be positive in order to obtain two distinct solutions, so \begin{eqnarray} (k-2)^2-4(k-2)&>&0\\ (k-2)(k-6)&>&0 \end{eqnarray} The graph of this expression with respect to $k$ is a parabola which is concave up, so th...
The solution range can be determined from the values of k when the line is tangent to the parabola. $x^2 + kx - 2 = 2x - k\ $ becomes.. $x^2 + (k-2)x -2 + k = 0$ Putting this in perfect square form, $(x + \frac{k-2}{2})^2 = 0$ In which case, $(\frac{k-2}{2})^2 = -2 + k\ $ determines the k values where the line is t...
60,206,993
I have a template driven form in my Angular 8 project. This form uses NgModel to get the data on the click of a button which fires off a function to send that data, along with a few other pre-set values into an Action to send a message via an email service. The Object: ``` // Data for the reply public messageRes...
2020/02/13
[ "https://Stackoverflow.com/questions/60206993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5714416/" ]
Since it's a HTML5 `data-` attribute, you can actually retrieve its value using [HTMLElement.dataset](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/dataset), i.e. ``` this.dataset.spec ``` See proof-of-concept example: ```js const allButtonsToStore = document.getElementsByClassName("button")...
There is a method `getAttribute()` for getting the attribute values. you need to use that method and specify the which attribute value you need to get. For your code it should be like this `this.getAttribute("data-spec");` If attribute does not exists this will return null or ""
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
Narrowing the question to just **Natural Flavor**, we have [Code of Federal Regulations Title 21](http://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/cfrsearch.cfm?fr=501.22): > > (3) The term natural flavor or natural flavoring means the essential oil, oleoresin, essence or extractive, protein hydrolysate, disti...
By a strange coincidence, NRC (a Dutch quality newspaper) published a report this weekend (7 Feb 2015) that EU law allows flavors created by genetically modified yeasts in bio-reactors to be described as "natural" (since yeast fermentation is a a natural process). [Link.](http://www.nrc.nl/handelsblad/van/2015/februari...
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
Narrowing the question to just **Natural Flavor**, we have [Code of Federal Regulations Title 21](http://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/cfrsearch.cfm?fr=501.22): > > (3) The term natural flavor or natural flavoring means the essential oil, oleoresin, essence or extractive, protein hydrolysate, disti...
The problem is that if a small tribe crushes and sun dries a beetle with a stone or heavy wood and ads it to a dish for colour then it would be 'artesenal' where as if the exact same outcome was achieved in a machine production line it would be called 'processed'.
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
Short answer? Not a damn thing. The term is pretty much meaningless in the US; at best it only means that the product doesn't have added colors, artificial flavors or synthetic "stuff". From the [FDA](http://www.fda.gov/aboutfda/transparency/basics/ucm214868.htm): > > **What is the meaning of 'natural' on the label o...
By a strange coincidence, NRC (a Dutch quality newspaper) published a report this weekend (7 Feb 2015) that EU law allows flavors created by genetically modified yeasts in bio-reactors to be described as "natural" (since yeast fermentation is a a natural process). [Link.](http://www.nrc.nl/handelsblad/van/2015/februari...
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
To expand on Jolene's answer, there is not only no official definition, but the only definition which fits its common usage is `A food which a certain group of persons is not afraid to eat`. Philosophically, "natural" is the opposite of "artificial" or "man-made", but philosophy doesn't give us a limit of interaction...
Narrowing the question to just **Natural Flavor**, we have [Code of Federal Regulations Title 21](http://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/cfrsearch.cfm?fr=501.22): > > (3) The term natural flavor or natural flavoring means the essential oil, oleoresin, essence or extractive, protein hydrolysate, disti...
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
Narrowing the question to just **Natural Flavor**, we have [Code of Federal Regulations Title 21](http://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/cfrsearch.cfm?fr=501.22): > > (3) The term natural flavor or natural flavoring means the essential oil, oleoresin, essence or extractive, protein hydrolysate, disti...
[From Consumer Reports:](http://www.consumerreports.org/cro/news/2014/07/end-the-confusion-over-the-term-natural-on-food-labels/index.htm) > > Most consumers would probably be surprised to learn that the FDA has not developed a formal definition for use of the term "natural" or its derivatives. But the agency has not...
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
Short answer? Not a damn thing. The term is pretty much meaningless in the US; at best it only means that the product doesn't have added colors, artificial flavors or synthetic "stuff". From the [FDA](http://www.fda.gov/aboutfda/transparency/basics/ucm214868.htm): > > **What is the meaning of 'natural' on the label o...
The problem is that if a small tribe crushes and sun dries a beetle with a stone or heavy wood and ads it to a dish for colour then it would be 'artesenal' where as if the exact same outcome was achieved in a machine production line it would be called 'processed'.
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
Short answer? Not a damn thing. The term is pretty much meaningless in the US; at best it only means that the product doesn't have added colors, artificial flavors or synthetic "stuff". From the [FDA](http://www.fda.gov/aboutfda/transparency/basics/ucm214868.htm): > > **What is the meaning of 'natural' on the label o...
[From Consumer Reports:](http://www.consumerreports.org/cro/news/2014/07/end-the-confusion-over-the-term-natural-on-food-labels/index.htm) > > Most consumers would probably be surprised to learn that the FDA has not developed a formal definition for use of the term "natural" or its derivatives. But the agency has not...
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
To expand on Jolene's answer, there is not only no official definition, but the only definition which fits its common usage is `A food which a certain group of persons is not afraid to eat`. Philosophically, "natural" is the opposite of "artificial" or "man-made", but philosophy doesn't give us a limit of interaction...
By a strange coincidence, NRC (a Dutch quality newspaper) published a report this weekend (7 Feb 2015) that EU law allows flavors created by genetically modified yeasts in bio-reactors to be described as "natural" (since yeast fermentation is a a natural process). [Link.](http://www.nrc.nl/handelsblad/van/2015/februari...
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
Short answer? Not a damn thing. The term is pretty much meaningless in the US; at best it only means that the product doesn't have added colors, artificial flavors or synthetic "stuff". From the [FDA](http://www.fda.gov/aboutfda/transparency/basics/ucm214868.htm): > > **What is the meaning of 'natural' on the label o...
To expand on Jolene's answer, there is not only no official definition, but the only definition which fits its common usage is `A food which a certain group of persons is not afraid to eat`. Philosophically, "natural" is the opposite of "artificial" or "man-made", but philosophy doesn't give us a limit of interaction...
54,514
More and more I see "natural" or "all natural" labels on the slightly-cheaper alternatives next to "organic" products, and I find it somewhat confusing. I know that (for example) tofu does not occur in nature, so obviously "natural" does not refer to the whole product, but to the ingredients. But many common ingredient...
2015/02/07
[ "https://cooking.stackexchange.com/questions/54514", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/25253/" ]
To expand on Jolene's answer, there is not only no official definition, but the only definition which fits its common usage is `A food which a certain group of persons is not afraid to eat`. Philosophically, "natural" is the opposite of "artificial" or "man-made", but philosophy doesn't give us a limit of interaction...
The problem is that if a small tribe crushes and sun dries a beetle with a stone or heavy wood and ads it to a dish for colour then it would be 'artesenal' where as if the exact same outcome was achieved in a machine production line it would be called 'processed'.
11,580,793
I have written the below stored procedure to retrieve the data to send to my C# application's DataSet. Could you please suggest a more robust design for my stored procedure? I'm assuming that this is not the best way to return a record set. ``` CREATE OR REPLACE PROCEDURE GET_EMPLOYEE_DATA ( EMPLOYEE_EMAIL IN VARC...
2012/07/20
[ "https://Stackoverflow.com/questions/11580793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1539103/" ]
File reading is well documented here: <http://docs.python.org/tutorial/inputoutput.html> Once you have a file, here is how you can get its contents: ``` f = open(os.path.join(app.config['UPLOAD_FOLDER'], filename),'r') data = f.read() ```
Flask is not the good way to handle file upload task. I recommend [nginx file upload module](http://wiki.nginx.org/HttpUploadModule)
56,988,411
I have my Android app using the Parse server for backend service. A number of users are currently using my Android app. However, some particular users faced the problem at app installation that an object is not created in the Installation table even after log-in. When I took a look at the problem from my Android app w...
2019/07/11
[ "https://Stackoverflow.com/questions/56988411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5187568/" ]
The latest windows update messed up my hyper-v configuration The issue is solved in the following way. * Uninstall docker desktop * Uninstall Container, Hyper-V windows features. * Delete .Docker file, Hyper-V folder in windows files. * Re-install container, Hyper-V windows features. * Install Docker-desktop again. *...
In my case, I had to remove incorrect IP mapping with Docker host and gateway in Windows host file at `C:\Windows\System32\Drivers\etc\hosts` and restarted Docker.
43,644,558
Ok basically this program is supposed to have two tasks. **Task 1**: is a word separator function which takes a string like this `FOR EXAMPLE: "ExceedYourExpectations" to "Exceed your expectations"` **Task 2**: Pig Latin function that moves the first letter of the word to the end and add "ay" `FOR EXAMPLE: "Excee...
2017/04/26
[ "https://Stackoverflow.com/questions/43644558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7927920/" ]
Try embedding firebug into the of your page to see if it reports any errors: ```` <script> if (!document.getElementById('FirebugLite')){E = document['createElement' + 'NS'] && document.documentElement.namespaceURI;E = E ? document'createElement' + 'NS' : document'createElement';E'setAttribute';E'setAttribute';E'setA...
I don't have an answer for that but I did implement Braintree support for Codename One which is the official PayPal mobile API. I have a cn1lib for it implemented but I didn't get around to publishing it because of the bootcamp. Keep an eye on the blog I'll probably publish it in the next couple of weeks.
43,644,558
Ok basically this program is supposed to have two tasks. **Task 1**: is a word separator function which takes a string like this `FOR EXAMPLE: "ExceedYourExpectations" to "Exceed your expectations"` **Task 2**: Pig Latin function that moves the first letter of the word to the end and add "ay" `FOR EXAMPLE: "Excee...
2017/04/26
[ "https://Stackoverflow.com/questions/43644558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7927920/" ]
Thanks for the help everybody, I finally found a turnaround and implemented this feature on a PHP server using PayPal PHP SDK. I used the browser Navigation Callback in order to check when the payment was successful/failed. ``` browser.setNavigationCallback((url)->{ if (url.indexOf("success=true")!=-1){ System.o...
I don't have an answer for that but I did implement Braintree support for Codename One which is the official PayPal mobile API. I have a cn1lib for it implemented but I didn't get around to publishing it because of the bootcamp. Keep an eye on the blog I'll probably publish it in the next couple of weeks.
7,790,770
Hej guys, I have a problem understanding the process of inheriting in C#. I am working on a homework and I would like to share my code I came up with. I include the task as well. The task: ``` Work 1: Develop a hierarchic structure of classes: shape, circle and cylinder: Write the base class Shape which...
2011/10/17
[ "https://Stackoverflow.com/questions/7790770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785934/" ]
I think it will be easier for you to understand inheriting from a real life example. Lets say you have a Person, A Person has an ID and a name. Now, lets say there is a cop, a cop is inheriting from a person, why ? because every cop is firstly a Person (He has a name and an ID), and only then you can tell he is a cop ...
The homework question asks you to return a text string from display and currently you are returning void. You need to change the method signature to return string and then adjust your calling code to display that string using (Console.WriteLine). Each class that overrides shape should define it's own private propertie...
7,790,770
Hej guys, I have a problem understanding the process of inheriting in C#. I am working on a homework and I would like to share my code I came up with. I include the task as well. The task: ``` Work 1: Develop a hierarchic structure of classes: shape, circle and cylinder: Write the base class Shape which...
2011/10/17
[ "https://Stackoverflow.com/questions/7790770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785934/" ]
It's better to move the radius and height to class level, like this: ``` class Circle : Shape { public double radius = 2; ... class Cylinder : Circle { public double height = 5.5; ... ``` And your `Display()` is not good now, it was better before the edit. It should be parameterless and it should `overr...
The homework question asks you to return a text string from display and currently you are returning void. You need to change the method signature to return string and then adjust your calling code to display that string using (Console.WriteLine). Each class that overrides shape should define it's own private propertie...
7,790,770
Hej guys, I have a problem understanding the process of inheriting in C#. I am working on a homework and I would like to share my code I came up with. I include the task as well. The task: ``` Work 1: Develop a hierarchic structure of classes: shape, circle and cylinder: Write the base class Shape which...
2011/10/17
[ "https://Stackoverflow.com/questions/7790770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785934/" ]
Shapes are a classic textbook example of inheritance. Unfortunately it's also a case that's very difficult to get right. The base rule in inheritance is that you can model a is-a relationship with inheritance. You can say that a rectangle is a shape, you can also say that a square is a shape. Mathematically you can a...
The homework question asks you to return a text string from display and currently you are returning void. You need to change the method signature to return string and then adjust your calling code to display that string using (Console.WriteLine). Each class that overrides shape should define it's own private propertie...
7,790,770
Hej guys, I have a problem understanding the process of inheriting in C#. I am working on a homework and I would like to share my code I came up with. I include the task as well. The task: ``` Work 1: Develop a hierarchic structure of classes: shape, circle and cylinder: Write the base class Shape which...
2011/10/17
[ "https://Stackoverflow.com/questions/7790770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785934/" ]
It's better to move the radius and height to class level, like this: ``` class Circle : Shape { public double radius = 2; ... class Cylinder : Circle { public double height = 5.5; ... ``` And your `Display()` is not good now, it was better before the edit. It should be parameterless and it should `overr...
I think it will be easier for you to understand inheriting from a real life example. Lets say you have a Person, A Person has an ID and a name. Now, lets say there is a cop, a cop is inheriting from a person, why ? because every cop is firstly a Person (He has a name and an ID), and only then you can tell he is a cop ...
7,790,770
Hej guys, I have a problem understanding the process of inheriting in C#. I am working on a homework and I would like to share my code I came up with. I include the task as well. The task: ``` Work 1: Develop a hierarchic structure of classes: shape, circle and cylinder: Write the base class Shape which...
2011/10/17
[ "https://Stackoverflow.com/questions/7790770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785934/" ]
I think it will be easier for you to understand inheriting from a real life example. Lets say you have a Person, A Person has an ID and a name. Now, lets say there is a cop, a cop is inheriting from a person, why ? because every cop is firstly a Person (He has a name and an ID), and only then you can tell he is a cop ...
Shapes are a classic textbook example of inheritance. Unfortunately it's also a case that's very difficult to get right. The base rule in inheritance is that you can model a is-a relationship with inheritance. You can say that a rectangle is a shape, you can also say that a square is a shape. Mathematically you can a...
7,790,770
Hej guys, I have a problem understanding the process of inheriting in C#. I am working on a homework and I would like to share my code I came up with. I include the task as well. The task: ``` Work 1: Develop a hierarchic structure of classes: shape, circle and cylinder: Write the base class Shape which...
2011/10/17
[ "https://Stackoverflow.com/questions/7790770", "https://Stackoverflow.com", "https://Stackoverflow.com/users/785934/" ]
It's better to move the radius and height to class level, like this: ``` class Circle : Shape { public double radius = 2; ... class Cylinder : Circle { public double height = 5.5; ... ``` And your `Display()` is not good now, it was better before the edit. It should be parameterless and it should `overr...
Shapes are a classic textbook example of inheritance. Unfortunately it's also a case that's very difficult to get right. The base rule in inheritance is that you can model a is-a relationship with inheritance. You can say that a rectangle is a shape, you can also say that a square is a shape. Mathematically you can a...
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
Let $$ f(x)=\sum\_{n=1}^\infty\frac{1}{n(4n^2-1)}x^{2n+1}. $$ Clearly $\sum\_{n=1}^\infty\frac{1}{n(4n^2-1)}=f(1)$. Note $$ f'(x)=\sum\_{n=1}^\infty\frac{1}{n(2n-1)}x^{2n}, f''(x)=2\sum\_{n=1}^\infty \frac{x^{2n-1}}{2n-1}, f'''(x)=2\sum\_{n=1}^\infty x^{2n-2}=\frac{2}{1-x^2}$$ So \begin{eqnarray} f(1)&=&\int\_0^1\int\_...
One way forward is to note that $$\begin{align} \sum\_{n=1}^{N}\left(\frac{1}{2n-1}-\frac{1}{2n}\right)&=\sum\_{n=1}^{N}\left(\frac{1}{2n-1}+\frac{1}{2n}\right)-\sum\_{n=1}^{N}\frac1n \tag 1\\\\ &=\sum\_{n=1}^{2N}\frac1n -\sum\_{n=1}^{N}\frac1n \tag 2\\\\ &=\sum\_{n=N+1}^{2N}\frac1n \\\\ &=\sum\_{n=1}^{N}\frac{1}{n+N}...
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
$\displaystyle \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} = \sum\_{n=1}^{\infty} \frac{1}{n(2n-1)(2n+1)} = \sum\_{n=1}^{\infty}\int\_0^1 \int\_0^1 \frac{x^{2n}y^{2n-2}}{n}\,dy \,dx $ $\displaystyle =\int\_0^1 \int\_0^1\sum\_{n=1}^{\infty} \frac{x^{2n}y^{2n-2}}{n} \,dy \,dx = \int\_0^1 \int\_0^1 \frac{\log(1-x^2y^2)}{y^2}...
Hint: $$\frac{1}{n(4n^2-1)}=-\frac{1}{n}+\frac{1}{2n+1}+\frac{1}{2n-1}$$
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
1.) Use partial fractions $a\_n=\frac{1}{n(4n^2-1)}=\frac{1}{2 n-1}+\frac{1}{2 n+1}-\frac{1}{n}$ 2.) Rewrite the sum as $S =\sum\_{n=1}^{\infty}a\_n\equiv \lim\_{N\rightarrow \infty} \sum\_{n=1}^N a\_n$ 3.) Use the series representation of the [digamma function and their relation to the harmonic numbers](https://en....
One way forward is to note that $$\begin{align} \sum\_{n=1}^{N}\left(\frac{1}{2n-1}-\frac{1}{2n}\right)&=\sum\_{n=1}^{N}\left(\frac{1}{2n-1}+\frac{1}{2n}\right)-\sum\_{n=1}^{N}\frac1n \tag 1\\\\ &=\sum\_{n=1}^{2N}\frac1n -\sum\_{n=1}^{N}\frac1n \tag 2\\\\ &=\sum\_{n=N+1}^{2N}\frac1n \\\\ &=\sum\_{n=1}^{N}\frac{1}{n+N}...
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
The easiest thing to do is to further decompose the decomposition; i.e., $$\frac{1}{n(4n^2 - 1)} = \frac{1}{2n-1} - \frac{1}{2n} + \frac{1}{2n+1} - \frac{1}{2n},$$ and look at the alternating harmonic series $$\log (x+1) = \sum\_{k=1}^\infty (-1)^{k+1} \frac{x^k}{k}.$$
Hint: $$\frac{1}{n(4n^2-1)}=-\frac{1}{n}+\frac{1}{2n+1}+\frac{1}{2n-1}$$
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
1.) Use partial fractions $a\_n=\frac{1}{n(4n^2-1)}=\frac{1}{2 n-1}+\frac{1}{2 n+1}-\frac{1}{n}$ 2.) Rewrite the sum as $S =\sum\_{n=1}^{\infty}a\_n\equiv \lim\_{N\rightarrow \infty} \sum\_{n=1}^N a\_n$ 3.) Use the series representation of the [digamma function and their relation to the harmonic numbers](https://en....
Hint: $$\frac{1}{n(4n^2-1)}=-\frac{1}{n}+\frac{1}{2n+1}+\frac{1}{2n-1}$$
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
The easiest thing to do is to further decompose the decomposition; i.e., $$\frac{1}{n(4n^2 - 1)} = \frac{1}{2n-1} - \frac{1}{2n} + \frac{1}{2n+1} - \frac{1}{2n},$$ and look at the alternating harmonic series $$\log (x+1) = \sum\_{k=1}^\infty (-1)^{k+1} \frac{x^k}{k}.$$
One way forward is to note that $$\begin{align} \sum\_{n=1}^{N}\left(\frac{1}{2n-1}-\frac{1}{2n}\right)&=\sum\_{n=1}^{N}\left(\frac{1}{2n-1}+\frac{1}{2n}\right)-\sum\_{n=1}^{N}\frac1n \tag 1\\\\ &=\sum\_{n=1}^{2N}\frac1n -\sum\_{n=1}^{N}\frac1n \tag 2\\\\ &=\sum\_{n=N+1}^{2N}\frac1n \\\\ &=\sum\_{n=1}^{N}\frac{1}{n+N}...
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
Let $$ f(x)=\sum\_{n=1}^\infty\frac{1}{n(4n^2-1)}x^{2n+1}. $$ Clearly $\sum\_{n=1}^\infty\frac{1}{n(4n^2-1)}=f(1)$. Note $$ f'(x)=\sum\_{n=1}^\infty\frac{1}{n(2n-1)}x^{2n}, f''(x)=2\sum\_{n=1}^\infty \frac{x^{2n-1}}{2n-1}, f'''(x)=2\sum\_{n=1}^\infty x^{2n-2}=\frac{2}{1-x^2}$$ So \begin{eqnarray} f(1)&=&\int\_0^1\int\_...
Hint: $$\frac{1}{n(4n^2-1)}=-\frac{1}{n}+\frac{1}{2n+1}+\frac{1}{2n-1}$$
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
The easiest thing to do is to further decompose the decomposition; i.e., $$\frac{1}{n(4n^2 - 1)} = \frac{1}{2n-1} - \frac{1}{2n} + \frac{1}{2n+1} - \frac{1}{2n},$$ and look at the alternating harmonic series $$\log (x+1) = \sum\_{k=1}^\infty (-1)^{k+1} \frac{x^k}{k}.$$
1.) Use partial fractions $a\_n=\frac{1}{n(4n^2-1)}=\frac{1}{2 n-1}+\frac{1}{2 n+1}-\frac{1}{n}$ 2.) Rewrite the sum as $S =\sum\_{n=1}^{\infty}a\_n\equiv \lim\_{N\rightarrow \infty} \sum\_{n=1}^N a\_n$ 3.) Use the series representation of the [digamma function and their relation to the harmonic numbers](https://en....
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
$\displaystyle \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} = \sum\_{n=1}^{\infty} \frac{1}{n(2n-1)(2n+1)} = \sum\_{n=1}^{\infty}\int\_0^1 \int\_0^1 \frac{x^{2n}y^{2n-2}}{n}\,dy \,dx $ $\displaystyle =\int\_0^1 \int\_0^1\sum\_{n=1}^{\infty} \frac{x^{2n}y^{2n-2}}{n} \,dy \,dx = \int\_0^1 \int\_0^1 \frac{\log(1-x^2y^2)}{y^2}...
One way forward is to note that $$\begin{align} \sum\_{n=1}^{N}\left(\frac{1}{2n-1}-\frac{1}{2n}\right)&=\sum\_{n=1}^{N}\left(\frac{1}{2n-1}+\frac{1}{2n}\right)-\sum\_{n=1}^{N}\frac1n \tag 1\\\\ &=\sum\_{n=1}^{2N}\frac1n -\sum\_{n=1}^{N}\frac1n \tag 2\\\\ &=\sum\_{n=N+1}^{2N}\frac1n \\\\ &=\sum\_{n=1}^{N}\frac{1}{n+N}...
1,601,020
I need help with finding sum of this: $$ \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} $$ First, I tried to telescope it in some way, but it seems to be dead end. The only other idea I have is that this might have something to do with logarithm, but really I don't know how to proceed. Any hint would be greatly appreciated.
2016/01/05
[ "https://math.stackexchange.com/questions/1601020", "https://math.stackexchange.com", "https://math.stackexchange.com/users/280739/" ]
The easiest thing to do is to further decompose the decomposition; i.e., $$\frac{1}{n(4n^2 - 1)} = \frac{1}{2n-1} - \frac{1}{2n} + \frac{1}{2n+1} - \frac{1}{2n},$$ and look at the alternating harmonic series $$\log (x+1) = \sum\_{k=1}^\infty (-1)^{k+1} \frac{x^k}{k}.$$
$\displaystyle \sum\_{n=1}^{\infty}\frac{1}{n(4n^2-1)} = \sum\_{n=1}^{\infty} \frac{1}{n(2n-1)(2n+1)} = \sum\_{n=1}^{\infty}\int\_0^1 \int\_0^1 \frac{x^{2n}y^{2n-2}}{n}\,dy \,dx $ $\displaystyle =\int\_0^1 \int\_0^1\sum\_{n=1}^{\infty} \frac{x^{2n}y^{2n-2}}{n} \,dy \,dx = \int\_0^1 \int\_0^1 \frac{\log(1-x^2y^2)}{y^2}...
32,665,658
I am using a subclassed UINavigationController which manages all the viewControllers in my app. It pushes and pops viewControllers in the main flow and presents and dismisses modally those viewControllers which are required arbitrarily. In one case, I need to present a viewController modally before popping another in ...
2015/09/19
[ "https://Stackoverflow.com/questions/32665658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2043580/" ]
Wrapping the popViewController call in an `dispatch_async` block worked. ``` [self presentViewController:searchVC animated:YES completion:^{ dispatch_async(dispatch_get_main_queue(), ^{ [self popViewControllerAnimated:YES]; }); }]; ```
It does work for me in a standard `UINavigationController`, even though you get a "Unbalanced calls to begin/end appearance transitions" warning. The following code replacing `popViewControllerAnimated:` gets rid of that warning. ``` NSMutableArray *viewControllers = [self.navigationController.viewControllers mutableC...
32,665,658
I am using a subclassed UINavigationController which manages all the viewControllers in my app. It pushes and pops viewControllers in the main flow and presents and dismisses modally those viewControllers which are required arbitrarily. In one case, I need to present a viewController modally before popping another in ...
2015/09/19
[ "https://Stackoverflow.com/questions/32665658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2043580/" ]
Wrapping the popViewController call in an `dispatch_async` block worked. ``` [self presentViewController:searchVC animated:YES completion:^{ dispatch_async(dispatch_get_main_queue(), ^{ [self popViewControllerAnimated:YES]; }); }]; ```
Yes I noticed this problem too in iOS 9. I changed the code to (Swift): ``` controller.dismissViewControllerAnimated(true, completion: nil) ``` where "controller" is the presenting VC instance.