qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
Basically, 'Chosun' is the old name of 'Korea'. Used a lot in the past, it is rarely used anymore. 'North Korea' still uses the term 'Chosun', but it is rarely used in South Korea. That's why you have to understand the two words differently.
The English word "Korea" comes from the Korean word Koryeo (고려 / 高麗). Koryeo is a historical dynasty existing between 918 and 1392. As such, it does not make much sense to modern Koreans as a name for their country.
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
Usually, 'Korea' and '한국' refer to South Korea(Republic of Korea, 대한민국), and '조선' indicates North Korea(Democratic People's Republic of Korea, 조선민주주의인민공화국).
'Joseon(조선)' is a country that has been destroyed and does not exist at present. In a modern society divided into South and North Korea(북한), there is only North Korea that calls itself Joseon. The official name of Korea (남한, South Korea) is Republic of Korea.
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
### Some ethnicity-associated names * **Korea** originated from the [Goryeo](https://en.wikipedia.org/wiki/Goryeo) dynasty, from about 10th-14th century. * **Joseon**, as present in North Korea's name 조선민주주의인민공화국, originated in the later [Joseon](https://en.wikipedia.org/wiki/Joseon) dynasty from about 15th-19th centu...
The English word "Korea" comes from the Korean word Koryeo (고려 / 高麗). Koryeo is a historical dynasty existing between 918 and 1392. As such, it does not make much sense to modern Koreans as a name for their country.
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
Usually, 'Korea' and '한국' refer to South Korea(Republic of Korea, 대한민국), and '조선' indicates North Korea(Democratic People's Republic of Korea, 조선민주주의인민공화국).
고조선 ->... ->고려 (Korea) -> 조선 (Joseon) -> 북한, 남한(=한국=대한민국) Korea is from 고려 so that for 남한, republic of Korea, Korea, and south Korea are possible. And for 북한, Joseon and north Korea are possible.
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
### Some ethnicity-associated names * **Korea** originated from the [Goryeo](https://en.wikipedia.org/wiki/Goryeo) dynasty, from about 10th-14th century. * **Joseon**, as present in North Korea's name 조선민주주의인민공화국, originated in the later [Joseon](https://en.wikipedia.org/wiki/Joseon) dynasty from about 15th-19th centu...
'Joseon(조선)' is a country that has been destroyed and does not exist at present. In a modern society divided into South and North Korea(북한), there is only North Korea that calls itself Joseon. The official name of Korea (남한, South Korea) is Republic of Korea.
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
'Joseon(조선)' is a country that has been destroyed and does not exist at present. In a modern society divided into South and North Korea(북한), there is only North Korea that calls itself Joseon. The official name of Korea (남한, South Korea) is Republic of Korea.
On the rare occasions on which the ROK and DPRK have cooperated in international sporting events (1991 table tennis world championships, summer olympic opening ceremonies 2000 and 2004 and winter olympics women's ice hockey 2018), they have used the name 'Korea'. In general, though, Koreans use the name 'Korea' *when ...
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
How is everyone is this thread so wrong about Joseon and Goryeo. The name Joseon/Choseon comes from the historical period 2333 BCE-108 BCE. The name "Guryeo/Korea" comes from 37 BCE–668 CE. Thus the name Choseon predates the name/character "Han" referring to the "Samhan/Three Kingdoms" period, and "Korea" comes imme...
On the rare occasions on which the ROK and DPRK have cooperated in international sporting events (1991 table tennis world championships, summer olympic opening ceremonies 2000 and 2004 and winter olympics women's ice hockey 2018), they have used the name 'Korea'. In general, though, Koreans use the name 'Korea' *when ...
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
Basically, 'Chosun' is the old name of 'Korea'. Used a lot in the past, it is rarely used anymore. 'North Korea' still uses the term 'Chosun', but it is rarely used in South Korea. That's why you have to understand the two words differently.
'Joseon(조선)' is a country that has been destroyed and does not exist at present. In a modern society divided into South and North Korea(북한), there is only North Korea that calls itself Joseon. The official name of Korea (남한, South Korea) is Republic of Korea.
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
### Some ethnicity-associated names * **Korea** originated from the [Goryeo](https://en.wikipedia.org/wiki/Goryeo) dynasty, from about 10th-14th century. * **Joseon**, as present in North Korea's name 조선민주주의인민공화국, originated in the later [Joseon](https://en.wikipedia.org/wiki/Joseon) dynasty from about 15th-19th centu...
On the rare occasions on which the ROK and DPRK have cooperated in international sporting events (1991 table tennis world championships, summer olympic opening ceremonies 2000 and 2004 and winter olympics women's ice hockey 2018), they have used the name 'Korea'. In general, though, Koreans use the name 'Korea' *when ...
202
[The Wikipedia article on Korea](https://en.wikipedia.org/wiki/Korea) states that South Koreans call Korea 한국, while north Koreans call it 조선. Do 'Korea', '한국', and '조선' all refer to the same thing? If so, how did the three different names come about?
2016/06/23
[ "https://korean.stackexchange.com/questions/202", "https://korean.stackexchange.com", "https://korean.stackexchange.com/users/64/" ]
### Some ethnicity-associated names * **Korea** originated from the [Goryeo](https://en.wikipedia.org/wiki/Goryeo) dynasty, from about 10th-14th century. * **Joseon**, as present in North Korea's name 조선민주주의인민공화국, originated in the later [Joseon](https://en.wikipedia.org/wiki/Joseon) dynasty from about 15th-19th centu...
How is everyone is this thread so wrong about Joseon and Goryeo. The name Joseon/Choseon comes from the historical period 2333 BCE-108 BCE. The name "Guryeo/Korea" comes from 37 BCE–668 CE. Thus the name Choseon predates the name/character "Han" referring to the "Samhan/Three Kingdoms" period, and "Korea" comes imme...
16,520,895
I have a table ``` CREATE TABLE PRODUCT ( PRODUCT_ID BIGINT NOT NULL AUTO_INCREMENT, PRICE DOUBLE NOT NULL, NAME VARCHAR(50) NOT NULL, PRIMARY KEY(PRODUCT_ID) ); ``` I need a constraint which ensures the price is always greater then 0 if the NAME is NOT 'TestProduct' I have been searching and not been able to find...
2013/05/13
[ "https://Stackoverflow.com/questions/16520895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2205623/" ]
I was able to reproduce and found the problem. Turns out that the setting `org.eclipse.jdt.core.compiler.compliance` needs to be set to the target version in order for it to be able to recognize `java.lang.Enum`. This setting is only set by plexus-compiler-eclipse when both `targetVersion` AND `optimize` is set. [1] ...
Don't use eclipse compiler in Maven build. If you omit the line ``` <compilerId>eclipse</compilerId> ``` everything works fine, which shows that this is a problem specific to the eclipse compiler.
4,052,964
I have a text field for documentation, which is working good. Now the problem is whenever user enters some new text into it. I need a date in format(dd.mm.yy), that should be attached to it automatically, with the time stamp. For example, when the user first enters, "Problem with production". then clicks save then it ...
2010/10/29
[ "https://Stackoverflow.com/questions/4052964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/335449/" ]
Off the top of my head a couple of options: (a) With JS - change trigger Some javascript on the text field that triggers sets a value in a hidden form field. This field is posted back to PHP so it knows the text field may have changed (still can't tell if the user changed it then changed it back). eg. JS trigger on ...
Not sure I quite follow - You could have a hidden field in the form which defaults to the date - it would then be submitted as a seperate post variable... ``` <form> <input type='text' name='textfieldforcomments' /> <input type='hidden' name='datetracker' value='".date("d.m.y h.i")."'/> </form> ```
50,682,137
Consider functional interfaces `A` and `B extends A`. Is it possible to create an instance implementing not only `A` but also `B` with a lambda expression when only `A` is required? Example: ``` interface A { void foo(); } interface B extends A {} void bar(A arg) { System.out.println(arg instanceof B); } /...
2018/06/04
[ "https://Stackoverflow.com/questions/50682137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4463352/" ]
Simply do a cast to tell the compiler the type you want: ``` A a = (B)() -> someAction(); System.out.println(a instanceof B); // true ``` > > I would find this useful in event listeners, where subinterfaces could specify additional data about the listener, e.g. if a Listener also implements ConcurrentListener, it i...
You can explicitly cast lambda expression to B: ``` bar((B)() -> {}); ``` or assign lambda expression to a variable: ``` B lambda = () -> {}; bar(lambda); ```
29,503,389
I have a leaflet l.control info popup on the top right corner of my map. When I move one of my custom marker to the top right behind the l.control and release the mouse button, I am no more able to select the marker (because the l.control div is in the foreground) Is there a way to prevent the user from dragging a ma...
2015/04/07
[ "https://Stackoverflow.com/questions/29503389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1927076/" ]
This message indicates that no snort preprocessor is loaded. In order to get rid of this warning, please use the following command: ``` snort -v -c /etc/snort/snort.conf ``` Please make sure that the configuration file `/etc/snort/snort.conf` is present and preprocessors are enabled in the configuration file.
Check if it is enabled and see if it has any `sid` or `msg` with: ``` snort -A console -c /etc/snort/snort.conf ``` And check if any of the preprocessors are sending alerts if not you should recompile it.
29,503,389
I have a leaflet l.control info popup on the top right corner of my map. When I move one of my custom marker to the top right behind the l.control and release the mouse button, I am no more able to select the marker (because the l.control div is in the foreground) Is there a way to prevent the user from dragging a ma...
2015/04/07
[ "https://Stackoverflow.com/questions/29503389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1927076/" ]
This message indicates that no snort preprocessor is loaded. In order to get rid of this warning, please use the following command: ``` snort -v -c /etc/snort/snort.conf ``` Please make sure that the configuration file `/etc/snort/snort.conf` is present and preprocessors are enabled in the configuration file.
You must enable the snort preprocessors: ``` snort -v -c /etc/snort/snort.conf ``` Make sure `snort.conf` has all your preprocessors enabled.
29,503,389
I have a leaflet l.control info popup on the top right corner of my map. When I move one of my custom marker to the top right behind the l.control and release the mouse button, I am no more able to select the marker (because the l.control div is in the foreground) Is there a way to prevent the user from dragging a ma...
2015/04/07
[ "https://Stackoverflow.com/questions/29503389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1927076/" ]
This message indicates that no snort preprocessor is loaded. In order to get rid of this warning, please use the following command: ``` snort -v -c /etc/snort/snort.conf ``` Please make sure that the configuration file `/etc/snort/snort.conf` is present and preprocessors are enabled in the configuration file.
I had the same error: ``` No preprocessors configured for policy 0 ``` That was because I forgot to unpack all the rules into the proper folders. After unpacking the rules, the error went away.
29,503,389
I have a leaflet l.control info popup on the top right corner of my map. When I move one of my custom marker to the top right behind the l.control and release the mouse button, I am no more able to select the marker (because the l.control div is in the foreground) Is there a way to prevent the user from dragging a ma...
2015/04/07
[ "https://Stackoverflow.com/questions/29503389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1927076/" ]
I had the same error: ``` No preprocessors configured for policy 0 ``` That was because I forgot to unpack all the rules into the proper folders. After unpacking the rules, the error went away.
Check if it is enabled and see if it has any `sid` or `msg` with: ``` snort -A console -c /etc/snort/snort.conf ``` And check if any of the preprocessors are sending alerts if not you should recompile it.
29,503,389
I have a leaflet l.control info popup on the top right corner of my map. When I move one of my custom marker to the top right behind the l.control and release the mouse button, I am no more able to select the marker (because the l.control div is in the foreground) Is there a way to prevent the user from dragging a ma...
2015/04/07
[ "https://Stackoverflow.com/questions/29503389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1927076/" ]
I had the same error: ``` No preprocessors configured for policy 0 ``` That was because I forgot to unpack all the rules into the proper folders. After unpacking the rules, the error went away.
You must enable the snort preprocessors: ``` snort -v -c /etc/snort/snort.conf ``` Make sure `snort.conf` has all your preprocessors enabled.
348,641
I have to design a database in a Rails application, where I have users (who can login), companies and jobs. Each user belongs to a company, and each job belongs to a company, so when a user logs in, the application would search it's company and show him *every* job assigned to his company. The diagram is here: [![Fir...
2017/05/09
[ "https://softwareengineering.stackexchange.com/questions/348641", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/271950/" ]
I think you need to alter the initial design to facilitate what you want to do. Please check this diagram: [![enter image description here](https://i.stack.imgur.com/yfFAO.png)](https://i.stack.imgur.com/yfFAO.png) When your user logs in, you check the UsersAndCompanies table. Then, you look at the UsersAndRoles to s...
It's *user* data, it needs to be in the user table. Adding a whole row in the job table is taking a step down a dark path...What if they add a new kind of admin who can see every job started by a user whose user id starts with a 4...Then you're going to need *another* field in the job table. Admin status can be added ...
348,641
I have to design a database in a Rails application, where I have users (who can login), companies and jobs. Each user belongs to a company, and each job belongs to a company, so when a user logs in, the application would search it's company and show him *every* job assigned to his company. The diagram is here: [![Fir...
2017/05/09
[ "https://softwareengineering.stackexchange.com/questions/348641", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/271950/" ]
I think you need to alter the initial design to facilitate what you want to do. Please check this diagram: [![enter image description here](https://i.stack.imgur.com/yfFAO.png)](https://i.stack.imgur.com/yfFAO.png) When your user logs in, you check the UsersAndCompanies table. Then, you look at the UsersAndRoles to s...
I agree with Satanicpuppy in principle. However, as another option, I would add a column to the `user` table called `type` and then define several types, one being `admin`. This would add more flexibility should you (in the future) have other users with different permissions or privileges. A reference table would als...
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
Although you ask for a mutable type, let me suggest that you use an immutable data structure and that you pass successive versions to your functions as an argument. Regarding which data structure to use, * There is an [implementation of red-black trees](http://www.cs.kent.ac.uk/people/staff/smk/redblack/rb.html) at K...
If I read your comments right, then you have a structure with possibly ~500k total values to compute. The computations are expensive, so you want them done only once, and on subsequent accesses, you just want the value without recomputation. In this case, use Haskell's laziness to your advantage! ~500k is not so big: ...
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
If you want mutable state, you can have it. Just keep passing the updated map around, or keep it in a state monad (which turns out to be the same thing). ``` import qualified Data.Map as Map import Control.Monad.ST import Data.STRef memoize :: Ord k => (k -> ST s a) -> ST s (k -> ST s a) memoize f = do mc <- newST...
Although you ask for a mutable type, let me suggest that you use an immutable data structure and that you pass successive versions to your functions as an argument. Regarding which data structure to use, * There is an [implementation of red-black trees](http://www.cs.kent.ac.uk/people/staff/smk/redblack/rb.html) at K...
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
Although you ask for a mutable type, let me suggest that you use an immutable data structure and that you pass successive versions to your functions as an argument. Regarding which data structure to use, * There is an [implementation of red-black trees](http://www.cs.kent.ac.uk/people/staff/smk/redblack/rb.html) at K...
> > Are there any other options? > > > A mutable reference to a purely functional dictionary like `Data.Map`.
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
Building on @Ramsey's answer, I also suggest you reconceive your function to take a map and return a modified one. Then code using good ol' [Data.Map](http://www.haskell.org/ghc/docs/latest/html/libraries/containers-0.3.0.0/Data-Map.html), which is pretty efficient at modifications. Here is a pattern: ``` import quali...
If I read your comments right, then you have a structure with possibly ~500k total values to compute. The computations are expensive, so you want them done only once, and on subsequent accesses, you just want the value without recomputation. In this case, use Haskell's laziness to your advantage! ~500k is not so big: ...
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
If you want mutable state, you can have it. Just keep passing the updated map around, or keep it in a state monad (which turns out to be the same thing). ``` import qualified Data.Map as Map import Control.Monad.ST import Data.STRef memoize :: Ord k => (k -> ST s a) -> ST s (k -> ST s a) memoize f = do mc <- newST...
Building on @Ramsey's answer, I also suggest you reconceive your function to take a map and return a modified one. Then code using good ol' [Data.Map](http://www.haskell.org/ghc/docs/latest/html/libraries/containers-0.3.0.0/Data-Map.html), which is pretty efficient at modifications. Here is a pattern: ``` import quali...
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
Building on @Ramsey's answer, I also suggest you reconceive your function to take a map and return a modified one. Then code using good ol' [Data.Map](http://www.haskell.org/ghc/docs/latest/html/libraries/containers-0.3.0.0/Data-Map.html), which is pretty efficient at modifications. Here is a pattern: ``` import quali...
> > Are there any other options? > > > A mutable reference to a purely functional dictionary like `Data.Map`.
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
If you want mutable state, you can have it. Just keep passing the updated map around, or keep it in a state monad (which turns out to be the same thing). ``` import qualified Data.Map as Map import Control.Monad.ST import Data.STRef memoize :: Ord k => (k -> ST s a) -> ST s (k -> ST s a) memoize f = do mc <- newST...
If I read your comments right, then you have a structure with possibly ~500k total values to compute. The computations are expensive, so you want them done only once, and on subsequent accesses, you just want the value without recomputation. In this case, use Haskell's laziness to your advantage! ~500k is not so big: ...
2,233,409
I am looking for a mutable (balanced) tree/map/hash table in Haskell or a way how to simulate it inside a function. I.e. when I call the same function several times, the structure is preserved. So far I have tried Data.HashTable (which is OK, but somewhat slow) and tried Data.Array.Judy but I was unable to make it work...
2010/02/09
[ "https://Stackoverflow.com/questions/2233409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/149901/" ]
If you want mutable state, you can have it. Just keep passing the updated map around, or keep it in a state monad (which turns out to be the same thing). ``` import qualified Data.Map as Map import Control.Monad.ST import Data.STRef memoize :: Ord k => (k -> ST s a) -> ST s (k -> ST s a) memoize f = do mc <- newST...
> > Are there any other options? > > > A mutable reference to a purely functional dictionary like `Data.Map`.
1,294,595
Does anyone know what frameworks they are using to create these or are they doing all of these in house? Thanks
2009/08/18
[ "https://Stackoverflow.com/questions/1294595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/94150/" ]
They're all done in Flash
They are most likely done with the Flex framework for AS3, however there are some Javascript/HTML5 API's starting to show up in this arena that could trump the Flex ones soon.
1,294,595
Does anyone know what frameworks they are using to create these or are they doing all of these in house? Thanks
2009/08/18
[ "https://Stackoverflow.com/questions/1294595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/94150/" ]
They're all done in Flash
Here's the answer on Quora from the guy who created them: <http://www.quora.com/Jason-Putorti/What-charting-library-framework-did-you-use-at-Mint-com> > > I actually wrote the first version of > the trends tab in Flex > (http://www.adobe.com/products/flex/) > using the Flex Charting Components > (http://livedocs...
1,294,595
Does anyone know what frameworks they are using to create these or are they doing all of these in house? Thanks
2009/08/18
[ "https://Stackoverflow.com/questions/1294595", "https://Stackoverflow.com", "https://Stackoverflow.com/users/94150/" ]
They are most likely done with the Flex framework for AS3, however there are some Javascript/HTML5 API's starting to show up in this arena that could trump the Flex ones soon.
Here's the answer on Quora from the guy who created them: <http://www.quora.com/Jason-Putorti/What-charting-library-framework-did-you-use-at-Mint-com> > > I actually wrote the first version of > the trends tab in Flex > (http://www.adobe.com/products/flex/) > using the Flex Charting Components > (http://livedocs...
11,983,178
I would like to know if there are offline available applications to read prezi file format ? I already saw some people use online link to open these docs: * [Open prezi from app](https://stackoverflow.com/questions/10495853/open-prezi-from-app) It's not this method that I am looking for. Thank you
2012/08/16
[ "https://Stackoverflow.com/questions/11983178", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
There is an OFFICIAL prezi player for iOS, downloadable from iTunes, see e.g. <http://prezi.com/ipad/> There is an UNOFFICIAL prezi player for Android, downloadable through links on the following forumpost: <http://community.prezi.com/prezi/topics/final_beta_for_unofficial_prezi_player_for_android> Provided there is ...
Check this one, work like a charm! <http://www.itbox4vn.com/2013/04/how-to-present-prezi-on-android-phone.html>
1,444,750
Is it true that when $G/C(G)$ is cyclic, then $G$ is abelian? The original question is > > Prove that if $G$ is a finite non-abelian group, then $4|C(G)|\le G$. > > *Proof from the answer book:* suppose that $1<G/C(G)<4$, then $G/C(G)$ is of order 2 or 3 and therefore cyclic. Hence $G$ would be abelian, a contra...
2015/09/21
[ "https://math.stackexchange.com/questions/1444750", "https://math.stackexchange.com", "https://math.stackexchange.com/users/191404/" ]
Let $aC(G)$ be a coset which generates $G/C(G)$, so that $$ G=\bigsqcup\_{n\geq 0}a^nC(G). $$ Consider any two elements $g,h\in G$. We can write them as $g=a^nx$ and $h=a^my$ where $x,y\in C(G)$. Then $gh=a^nxa^my=a^{n+m}xy=hg$, where we have commuted $x$ and $y$ past everything (because they belong to the center). Hen...
A slight variation on pre-kidney's answer: Suppose $a$ is a cyclic generator of $G/C(G)$. Then for any $g\in G$ we have $g=a^nx$ where $x\in C(G)$, so $ag=aa^nx=a^nax=a^nxa=ga$, so $a\in C(G)$ and $G=C(G)$. Hence $G$ is abelian.
32,673,794
I've got that code and I don't think that I really understand how the modulo returns the remainder, not good at maths.. Here is the code: ``` #import the datetime class import datetime #declare and initialize variables strDeadline = "" totalNbrDays = 0 nbrWeeks = 0 nbrDays = 0 #Get Today's date currentDate = dateti...
2015/09/19
[ "https://Stackoverflow.com/questions/32673794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5354733/" ]
AWS have just [announced](https://aws.amazon.com/about-aws/whats-new/2017/11/aws-launches-amazon-dynamodb-backup-and-restore/) they will now offer a [native DynamoDB backup and restore function](https://aws.amazon.com/dynamodb/backup-restore/). As of today, in most regions, you can create on-demand backups of DynamoDB...
As Stu mentioned, On-Demand backups are a feature built into the DynamoDB service (Accessible via the API, AWS Management Console and CLI as usual), which allows you to take a full backup of a table at a point in time. This task has no impact on performance or availability to your tables. All backups are automatically...
53,481
I have seen this [question](https://webmasters.stackexchange.com/questions/9055/should-i-prevent-search-engines-indexing-tag-category-pages), but I believe the situation has changed a lot with the recent Panda updates. I have created a set of [category pages](http://myworldclocks.tostaky.biz/countries/FI-cities.html) ...
2013/09/26
[ "https://webmasters.stackexchange.com/questions/53481", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10346/" ]
I myself prefer to noindex, follow all my wordpress category, date, tag archives as all they do is duplicate content, however your page doesn't appears to duplicate any large portions of text, so I would't in this case. I might add some content to the top of the page to explain what the page is about (if a user lands...
For my ecommerce clients, category pages are important. I suggest adding relevant content upto top 2-level category pages for them but in your website structure, the 'category page' is more like HTML SiteMap. For HTML SiteMap and similar pages, indexing and no-indexing is a matter of personal choice; just make sure if ...
53,481
I have seen this [question](https://webmasters.stackexchange.com/questions/9055/should-i-prevent-search-engines-indexing-tag-category-pages), but I believe the situation has changed a lot with the recent Panda updates. I have created a set of [category pages](http://myworldclocks.tostaky.biz/countries/FI-cities.html) ...
2013/09/26
[ "https://webmasters.stackexchange.com/questions/53481", "https://webmasters.stackexchange.com", "https://webmasters.stackexchange.com/users/10346/" ]
I myself prefer to noindex, follow all my wordpress category, date, tag archives as all they do is duplicate content, however your page doesn't appears to duplicate any large portions of text, so I would't in this case. I might add some content to the top of the page to explain what the page is about (if a user lands...
The Panda update targeted thinn content. Actually, if it is really an improvement to you visitors, it is a good thing because it is helpful. But, must be rerlevant content on each of that inner pages - text+ images+videos+rersources+presentations/sliders + infographics +etc! The user will appreciate and the Google t...
37,747,993
Have a ppk key to login into amazon machine. But to login from linux machine it has to be converted into pem file as i read in the following links. <http://sarathlal.com/convert-ppk-file-to-pem-file-connect-to-remote-server-via-ssh-linux/> <http://webkul.com/blog/convert-a-ppk-file-to-a-pem-file/> But unable to find...
2016/06/10
[ "https://Stackoverflow.com/questions/37747993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2264834/" ]
``` wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm sudo rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm sudo yum --enablerepo=rpmforge install putty puttygen SISPKey.ppk -O private-openssh -o pemkey.pem cd .ssh cp pemkey.pem ~/.ssh/ chmod 400 .ssh/pemkey.pem ```
***rpmforge*** doesn't seem to be available currently. The enlisted steps worked on my CentOS 7 system: 1. **Download and install EPEL Repository:** sudo wget <http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm> sudo rpm -ivh epel-release-7-10.noarch.rpm 2. **Install putty:** sudo yum install...
37,747,993
Have a ppk key to login into amazon machine. But to login from linux machine it has to be converted into pem file as i read in the following links. <http://sarathlal.com/convert-ppk-file-to-pem-file-connect-to-remote-server-via-ssh-linux/> <http://webkul.com/blog/convert-a-ppk-file-to-a-pem-file/> But unable to find...
2016/06/10
[ "https://Stackoverflow.com/questions/37747993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2264834/" ]
``` wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm sudo rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm sudo yum --enablerepo=rpmforge install putty puttygen SISPKey.ppk -O private-openssh -o pemkey.pem cd .ssh cp pemkey.pem ~/.ssh/ chmod 400 .ssh/pemkey.pem ```
The enlisted steps worked on my CentOS 7 system: [Download and install EPEL Repository] ``` sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm sudo rpm -ivh epel-release-7-11.noarch.rpm ``` [Install putty] ``` sudo yum install putty ```
37,747,993
Have a ppk key to login into amazon machine. But to login from linux machine it has to be converted into pem file as i read in the following links. <http://sarathlal.com/convert-ppk-file-to-pem-file-connect-to-remote-server-via-ssh-linux/> <http://webkul.com/blog/convert-a-ppk-file-to-a-pem-file/> But unable to find...
2016/06/10
[ "https://Stackoverflow.com/questions/37747993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2264834/" ]
``` wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm sudo rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm sudo yum --enablerepo=rpmforge install putty puttygen SISPKey.ppk -O private-openssh -o pemkey.pem cd .ssh cp pemkey.pem ~/.ssh/ chmod 400 .ssh/pemkey.pem ```
If you are working on Amazon Linux 2 you can install EPEL from amazon-linux-extras `sudo amazon-linux-extras install epel -y` Then simply use `sudo yum install putty`
37,747,993
Have a ppk key to login into amazon machine. But to login from linux machine it has to be converted into pem file as i read in the following links. <http://sarathlal.com/convert-ppk-file-to-pem-file-connect-to-remote-server-via-ssh-linux/> <http://webkul.com/blog/convert-a-ppk-file-to-a-pem-file/> But unable to find...
2016/06/10
[ "https://Stackoverflow.com/questions/37747993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2264834/" ]
The enlisted steps worked on my CentOS 7 system: [Download and install EPEL Repository] ``` sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm sudo rpm -ivh epel-release-7-11.noarch.rpm ``` [Install putty] ``` sudo yum install putty ```
***rpmforge*** doesn't seem to be available currently. The enlisted steps worked on my CentOS 7 system: 1. **Download and install EPEL Repository:** sudo wget <http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm> sudo rpm -ivh epel-release-7-10.noarch.rpm 2. **Install putty:** sudo yum install...
37,747,993
Have a ppk key to login into amazon machine. But to login from linux machine it has to be converted into pem file as i read in the following links. <http://sarathlal.com/convert-ppk-file-to-pem-file-connect-to-remote-server-via-ssh-linux/> <http://webkul.com/blog/convert-a-ppk-file-to-a-pem-file/> But unable to find...
2016/06/10
[ "https://Stackoverflow.com/questions/37747993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2264834/" ]
***rpmforge*** doesn't seem to be available currently. The enlisted steps worked on my CentOS 7 system: 1. **Download and install EPEL Repository:** sudo wget <http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm> sudo rpm -ivh epel-release-7-10.noarch.rpm 2. **Install putty:** sudo yum install...
If you are working on Amazon Linux 2 you can install EPEL from amazon-linux-extras `sudo amazon-linux-extras install epel -y` Then simply use `sudo yum install putty`
37,747,993
Have a ppk key to login into amazon machine. But to login from linux machine it has to be converted into pem file as i read in the following links. <http://sarathlal.com/convert-ppk-file-to-pem-file-connect-to-remote-server-via-ssh-linux/> <http://webkul.com/blog/convert-a-ppk-file-to-a-pem-file/> But unable to find...
2016/06/10
[ "https://Stackoverflow.com/questions/37747993", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2264834/" ]
The enlisted steps worked on my CentOS 7 system: [Download and install EPEL Repository] ``` sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm sudo rpm -ivh epel-release-7-11.noarch.rpm ``` [Install putty] ``` sudo yum install putty ```
If you are working on Amazon Linux 2 you can install EPEL from amazon-linux-extras `sudo amazon-linux-extras install epel -y` Then simply use `sudo yum install putty`
14,390,169
We are moving our sites to WordPress and I have a perplexing problem that I have no idea where to start. We have a Product Information Manager all stored in SQL Server. I'm looking for a way to integrate products into the WordPress system. There is a data access layer using entity Framework right now which we are u...
2013/01/17
[ "https://Stackoverflow.com/questions/14390169", "https://Stackoverflow.com", "https://Stackoverflow.com/users/26931/" ]
As this is Groovy, you can change all of your code to: ``` String stream = str.findAll( /\b[A-F0-9]{2}\b/ ).join() ```
For Groovy, you will need to *find all* matches from your `String`. Replace: ``` matcher.find { newByte -> ``` with ``` matcher.findAll { newByte -> ```
1,302,733
After swapping my language and input options about (UK layout and German layout) to support the two keyboards I have, a certain key will stop working partially depending on the layout. If I swap my input method to UK, the apostrophe/at-sign key will stop working. Windows 10 will make a tone sound when pressed twice, a...
2018/03/12
[ "https://superuser.com/questions/1302733", "https://superuser.com", "https://superuser.com/users/881627/" ]
I solved this by removing a mistakenly added 'change layout' shortcut, to the grave (`) key, oddly affecting the apostrophe and ö keys on the other layouts. To fix this: * Context-menu/Right-mouse on the Language Bar on the Windows taskbar -> Settings/Einstellungen * In the third section, "Change the Input Method"/"W...
This exact thing happened to me and this thread lead me to the answer. The language bar, for whatever reason, wasn't present on my taskbar so I went into Windows 10 Settings/Time & Language/Region & language/Advanced Keyboard Settings/Language Bar Options. In there I went to the Advanced Key Setting tab and selected ...
1,302,733
After swapping my language and input options about (UK layout and German layout) to support the two keyboards I have, a certain key will stop working partially depending on the layout. If I swap my input method to UK, the apostrophe/at-sign key will stop working. Windows 10 will make a tone sound when pressed twice, a...
2018/03/12
[ "https://superuser.com/questions/1302733", "https://superuser.com", "https://superuser.com/users/881627/" ]
I solved this by removing a mistakenly added 'change layout' shortcut, to the grave (`) key, oddly affecting the apostrophe and ö keys on the other layouts. To fix this: * Context-menu/Right-mouse on the Language Bar on the Windows taskbar -> Settings/Einstellungen * In the third section, "Change the Input Method"/"W...
I hit the exact same issue (`Ö` only working when held down) and I somehow stumbled across this question, so I wanted to post an answer with the current method to remove these shortcuts in Windows 10 version 2004: * Go into Settings > Time & language > Language > Keyboard > Input language hot keys * Select "Between in...
1,302,733
After swapping my language and input options about (UK layout and German layout) to support the two keyboards I have, a certain key will stop working partially depending on the layout. If I swap my input method to UK, the apostrophe/at-sign key will stop working. Windows 10 will make a tone sound when pressed twice, a...
2018/03/12
[ "https://superuser.com/questions/1302733", "https://superuser.com", "https://superuser.com/users/881627/" ]
I solved this by removing a mistakenly added 'change layout' shortcut, to the grave (`) key, oddly affecting the apostrophe and ö keys on the other layouts. To fix this: * Context-menu/Right-mouse on the Language Bar on the Windows taskbar -> Settings/Einstellungen * In the third section, "Change the Input Method"/"W...
Ditto here. I had exactly the same problem (Windows 10 home, version 1909) and, as with Local Crab Enthusiast, it occurred after I tweaked the custom keyboard shortcut to change the language (in my case so I could switch between a German and a Danish keyboard layout). There's a good description of it (with illustratio...
430,167
I have a service that automatically creates a log file with a timestamp in the filename on startup. Thus, I don't need logrotate to rename/copy/create files, but what I do want is that logrotate shall keep just the three newest of those files (and optionally compress them). Can I do that somehow?
2012/09/20
[ "https://serverfault.com/questions/430167", "https://serverfault.com", "https://serverfault.com/users/24476/" ]
I'm not sure you can do this by using `logrotate`. Can you run the following as a daily cron job: ``` rm $(ls -t | sed -e '1,3d') ```
I do not think that it can be done exactly as you want. In case you want to still use logrotate first you need to specify how often logrotate will rotate your log (daily/weekly/monthly/yearly). You can set it like this: ``` # rotate log files daily daily # Log files are rotated count times before being removed or mai...
430,167
I have a service that automatically creates a log file with a timestamp in the filename on startup. Thus, I don't need logrotate to rename/copy/create files, but what I do want is that logrotate shall keep just the three newest of those files (and optionally compress them). Can I do that somehow?
2012/09/20
[ "https://serverfault.com/questions/430167", "https://serverfault.com", "https://serverfault.com/users/24476/" ]
I'm not sure you can do this by using `logrotate`. Can you run the following as a daily cron job: ``` rm $(ls -t | sed -e '1,3d') ```
I was attempting to find a similar logrotate solution for ProxySQL's log files, which look like: ``` /var/lib/proxysql/queries.log.00000377 /var/lib/proxysql/queries.log.00000378 /var/lib/proxysql/queries.log.00000379 /var/lib/proxysql/queries.log.00000380 /var/lib/proxysql/queries.log.00000381 ``` In the end I gave...
430,167
I have a service that automatically creates a log file with a timestamp in the filename on startup. Thus, I don't need logrotate to rename/copy/create files, but what I do want is that logrotate shall keep just the three newest of those files (and optionally compress them). Can I do that somehow?
2012/09/20
[ "https://serverfault.com/questions/430167", "https://serverfault.com", "https://serverfault.com/users/24476/" ]
I do not think that it can be done exactly as you want. In case you want to still use logrotate first you need to specify how often logrotate will rotate your log (daily/weekly/monthly/yearly). You can set it like this: ``` # rotate log files daily daily # Log files are rotated count times before being removed or mai...
I was attempting to find a similar logrotate solution for ProxySQL's log files, which look like: ``` /var/lib/proxysql/queries.log.00000377 /var/lib/proxysql/queries.log.00000378 /var/lib/proxysql/queries.log.00000379 /var/lib/proxysql/queries.log.00000380 /var/lib/proxysql/queries.log.00000381 ``` In the end I gave...
24,382,268
I am having problem after new Resharper 8.2 update that in String.Format method if I have arguements then the argement list is not getting hilighted and context action like "remove item from at index" is not showing when I selet the argment. Everthing was workign fine before, I have not seen any bug reported on Resharp...
2014/06/24
[ "https://Stackoverflow.com/questions/24382268", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2649137/" ]
I know this thread is old, but I'll answer it anyway, in case someone encounters the same problem. To be able to edit a test case, you should call Open() like this: ``` theCase.WorkItem.Open(); ``` And that's it.
You should just call a WorkItem. That's enough if you ``` testCase.WorkItem.PartialOpen(); ``` if you call ``` testCase.WorkItem.Open(); ``` then Save, you will to override the steps and parameter value
56,201,273
I am trying to learn how to manipulate CSV files in python 3.x and I'm using Anaconda's Spyder IDE to do it When I execute the code I get " No such file or directory exists". I have already tried uninstalling and reinstalling anaconda to make sure I have it added to my PATH. I have also tried moving the CSV around to ...
2019/05/18
[ "https://Stackoverflow.com/questions/56201273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11521188/" ]
Use [`numpy.where`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.where.html): ``` df['Hired'] = pd.np.where(df.Hired == 'Y', 1, 0) ``` Or [`pandas.Series.map`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.map.html): ``` df['Hired'] = df.Hired.map({'Y': 1, 'N', 0}) ``` Whi...
I think you're looking for the `apply` method, [pandas.Series.apply](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.apply.html#pandas.Series.apply), which can be used to run a function for each value in the Series. In your case, using an anonymous function... ``` df['Hired'] = df['Hired'].ap...
56,201,273
I am trying to learn how to manipulate CSV files in python 3.x and I'm using Anaconda's Spyder IDE to do it When I execute the code I get " No such file or directory exists". I have already tried uninstalling and reinstalling anaconda to make sure I have it added to my PATH. I have also tried moving the CSV around to ...
2019/05/18
[ "https://Stackoverflow.com/questions/56201273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11521188/" ]
Use [`numpy.where`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.where.html): ``` df['Hired'] = pd.np.where(df.Hired == 'Y', 1, 0) ``` Or [`pandas.Series.map`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.map.html): ``` df['Hired'] = df.Hired.map({'Y': 1, 'N', 0}) ``` Whi...
More like ``` df['Hired'] = df.Hired.eq('Y').astype(int) ```
1,229,594
I came across a really interesting thread in the Internet where the author was asking for fun, but serious Maths book recommendations. I saw plenty of excellent books being recommended there and thought I'd start a similar thread over here :) Some characteristics the books should have 1. They should be readable and f...
2015/04/11
[ "https://math.stackexchange.com/questions/1229594", "https://math.stackexchange.com", "https://math.stackexchange.com/users/230452/" ]
School level: 1. Intuitive Topology, V. V. Prosolov. 2. Stories about Maxima and Minima, V. M. Tikhomirov. 3. Mathematics can be Fun, Y. Perelman. 4. What is Mathematics?, Courant and Robbins. College: 1. Proofs from the Book, Aigner and Ziegler. 2. On Numbers and Games, Conway. 3. The sensual (Quadratic) Form, Conw...
[Cited several times](https://www.google.com/search?q=site%3Amath.stackexchange.com+%22street+fighting%22) on Math.SX, [*Street-Fighting Mathematics*](https://mitpress.mit.edu/books/street-fighting-mathematics), by Sanjoy Mahajan, can be an example of *fun but serious Maths book*.
1,229,594
I came across a really interesting thread in the Internet where the author was asking for fun, but serious Maths book recommendations. I saw plenty of excellent books being recommended there and thought I'd start a similar thread over here :) Some characteristics the books should have 1. They should be readable and f...
2015/04/11
[ "https://math.stackexchange.com/questions/1229594", "https://math.stackexchange.com", "https://math.stackexchange.com/users/230452/" ]
School level: 1. Intuitive Topology, V. V. Prosolov. 2. Stories about Maxima and Minima, V. M. Tikhomirov. 3. Mathematics can be Fun, Y. Perelman. 4. What is Mathematics?, Courant and Robbins. College: 1. Proofs from the Book, Aigner and Ziegler. 2. On Numbers and Games, Conway. 3. The sensual (Quadratic) Form, Conw...
I recommend [Quantum Computing Since Democritus](http://rads.stackoverflow.com/amzn/click/0521199565) by Scott Aaronson. It's an informal, fun, very enlightening overview of many topics related to computational complexity and quantum computing. Some samples that give a bit of the flavor of the book: From p. 110: > ...
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
Two things you can do: 1. Measure the current flowing through the resistor, then calculate the voltage drop across it (Ohms Law). 2. Create a *Voltage Follower* circuit with a much higher input impedance and measure the output voltage of that. However, by what you're describing, I'm not sure you're using the resistor...
JFETs have input resistances in the teraohms. Using a JFET amplifier or using a specialized DMM with a JFET input will allow you to measure such a voltage drop.
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
An op-amp buffer (unity gain) with CMOS input can be used. For example an [LMC6062](http://www.ti.com/lit/ds/symlink/lmc6062.pdf) has fA leakage and 100uV maximum Vos. It will need about a 6V single supply minimum (9V battery would work fine) in order to measure 3V. ![http://upload.wikimedia.org/wikipedia/commons/thu...
JFETs have input resistances in the teraohms. Using a JFET amplifier or using a specialized DMM with a JFET input will allow you to measure such a voltage drop.
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
JFETs have input resistances in the teraohms. Using a JFET amplifier or using a specialized DMM with a JFET input will allow you to measure such a voltage drop.
I found a method shortly after posting this question which was very easy to implement and didn't involve implementing a new circuit with components I don't have. **Using an extra power supply** So it was one of my colleagues that told me this method and I thought it was a really quick and easy work around for the p...
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
Two things you can do: 1. Measure the current flowing through the resistor, then calculate the voltage drop across it (Ohms Law). 2. Create a *Voltage Follower* circuit with a much higher input impedance and measure the output voltage of that. However, by what you're describing, I'm not sure you're using the resistor...
I usually do that with a pair of LF356 connected as unity gain or gain x2. If one end of your resistor is grounded, you need only one LF356 on the high impedance end of the resistor. Make sure that you supply your LF356 with sufficient voltage to avoid saturation around ground and around positive supply (3 V below gro...
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
Two things you can do: 1. Measure the current flowing through the resistor, then calculate the voltage drop across it (Ohms Law). 2. Create a *Voltage Follower* circuit with a much higher input impedance and measure the output voltage of that. However, by what you're describing, I'm not sure you're using the resistor...
I found a method shortly after posting this question which was very easy to implement and didn't involve implementing a new circuit with components I don't have. **Using an extra power supply** So it was one of my colleagues that told me this method and I thought it was a really quick and easy work around for the p...
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
An op-amp buffer (unity gain) with CMOS input can be used. For example an [LMC6062](http://www.ti.com/lit/ds/symlink/lmc6062.pdf) has fA leakage and 100uV maximum Vos. It will need about a 6V single supply minimum (9V battery would work fine) in order to measure 3V. ![http://upload.wikimedia.org/wikipedia/commons/thu...
I usually do that with a pair of LF356 connected as unity gain or gain x2. If one end of your resistor is grounded, you need only one LF356 on the high impedance end of the resistor. Make sure that you supply your LF356 with sufficient voltage to avoid saturation around ground and around positive supply (3 V below gro...
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
I usually do that with a pair of LF356 connected as unity gain or gain x2. If one end of your resistor is grounded, you need only one LF356 on the high impedance end of the resistor. Make sure that you supply your LF356 with sufficient voltage to avoid saturation around ground and around positive supply (3 V below gro...
I found a method shortly after posting this question which was very easy to implement and didn't involve implementing a new circuit with components I don't have. **Using an extra power supply** So it was one of my colleagues that told me this method and I thought it was a really quick and easy work around for the p...
152,656
I know initially this question might come across stupid and obvious but all is not as it seems. I want to measure the voltage drop over a 10M ohm resistor but my voltmeter's probes have an impedance of ~10M ohm, so if I try to measure the voltage drop the conventional way (i.e. put in parallel with load) but that wou...
2015/02/05
[ "https://electronics.stackexchange.com/questions/152656", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/50374/" ]
An op-amp buffer (unity gain) with CMOS input can be used. For example an [LMC6062](http://www.ti.com/lit/ds/symlink/lmc6062.pdf) has fA leakage and 100uV maximum Vos. It will need about a 6V single supply minimum (9V battery would work fine) in order to measure 3V. ![http://upload.wikimedia.org/wikipedia/commons/thu...
I found a method shortly after posting this question which was very easy to implement and didn't involve implementing a new circuit with components I don't have. **Using an extra power supply** So it was one of my colleagues that told me this method and I thought it was a really quick and easy work around for the p...
10,941,549
I want to download android sdk through command line. I got this command from command <https://stackoverflow.com/a/4569792/563306> I downloaded Android SDK r18 tar file. extracted it and in tools directory, I tried this command ``` >android update sdk --no-ui ``` It gives an error, ``` Error: Flag '--no-ui' is not...
2012/06/08
[ "https://Stackoverflow.com/questions/10941549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/563306/" ]
It works fine for me. Try it without the `--no-ui` flag and see if that works. If not, what is the error message you get? --- Edit: ----- You probably have your `PATH` configured incorrectly. You need to execute the "current folder executable" as follows: ``` $ ./android update sdk --no-ui ```
If you are using Android SDK Tools Rev 19 you should get ``` $ android --help update sdk Usage: android [global options] update sdk [action options] Global options: -h --help : Help on a specific command. -v --verbose : Verbose mode, shows errors, warnings and all messages. -s --silent ...
10,941,549
I want to download android sdk through command line. I got this command from command <https://stackoverflow.com/a/4569792/563306> I downloaded Android SDK r18 tar file. extracted it and in tools directory, I tried this command ``` >android update sdk --no-ui ``` It gives an error, ``` Error: Flag '--no-ui' is not...
2012/06/08
[ "https://Stackoverflow.com/questions/10941549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/563306/" ]
It works fine for me. Try it without the `--no-ui` flag and see if that works. If not, what is the error message you get? --- Edit: ----- You probably have your `PATH` configured incorrectly. You need to execute the "current folder executable" as follows: ``` $ ./android update sdk --no-ui ```
Just to add. When you use the proxy options do **not** supply the http:// part. The android executable will not complain, and will report everything downloaded ok. I was on a completely new install and was sure nothing was downloaded yet.
10,941,549
I want to download android sdk through command line. I got this command from command <https://stackoverflow.com/a/4569792/563306> I downloaded Android SDK r18 tar file. extracted it and in tools directory, I tried this command ``` >android update sdk --no-ui ``` It gives an error, ``` Error: Flag '--no-ui' is not...
2012/06/08
[ "https://Stackoverflow.com/questions/10941549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/563306/" ]
It works fine for me. Try it without the `--no-ui` flag and see if that works. If not, what is the error message you get? --- Edit: ----- You probably have your `PATH` configured incorrectly. You need to execute the "current folder executable" as follows: ``` $ ./android update sdk --no-ui ```
Its so simple: ``` # ./android update sdk -u ```
10,941,549
I want to download android sdk through command line. I got this command from command <https://stackoverflow.com/a/4569792/563306> I downloaded Android SDK r18 tar file. extracted it and in tools directory, I tried this command ``` >android update sdk --no-ui ``` It gives an error, ``` Error: Flag '--no-ui' is not...
2012/06/08
[ "https://Stackoverflow.com/questions/10941549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/563306/" ]
If you are using Android SDK Tools Rev 19 you should get ``` $ android --help update sdk Usage: android [global options] update sdk [action options] Global options: -h --help : Help on a specific command. -v --verbose : Verbose mode, shows errors, warnings and all messages. -s --silent ...
Just to add. When you use the proxy options do **not** supply the http:// part. The android executable will not complain, and will report everything downloaded ok. I was on a completely new install and was sure nothing was downloaded yet.
10,941,549
I want to download android sdk through command line. I got this command from command <https://stackoverflow.com/a/4569792/563306> I downloaded Android SDK r18 tar file. extracted it and in tools directory, I tried this command ``` >android update sdk --no-ui ``` It gives an error, ``` Error: Flag '--no-ui' is not...
2012/06/08
[ "https://Stackoverflow.com/questions/10941549", "https://Stackoverflow.com", "https://Stackoverflow.com/users/563306/" ]
If you are using Android SDK Tools Rev 19 you should get ``` $ android --help update sdk Usage: android [global options] update sdk [action options] Global options: -h --help : Help on a specific command. -v --verbose : Verbose mode, shows errors, warnings and all messages. -s --silent ...
Its so simple: ``` # ./android update sdk -u ```
42,404,452
In LibGDX, I want to make a text animation for my game. Therefore, I want that my labels gets larger with time. But if I use the `scaleTo()` method, nothing happens whereas other Actions like `moveTo()` work fine. ``` label1 = new Label("Test text", new Label.LabelStyle(font, Color.BLACK)); label2.addAction(Actions.pa...
2017/02/22
[ "https://Stackoverflow.com/questions/42404452", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4503472/" ]
For performance reason most scene2d.ui groups have transform set to false by default. For more detail you can check <https://github.com/libgdx/libgdx/wiki/Scene2d.ui#rotation-and-scale> If you want to scale, you can use Container which is useful for setting the size and alignment of a single widget. ``` private ...
Labels don't directly support scaling. The easy way to solve this is put the label in a Container, `setTransform(true)` on the Container, and add your scale action to the Container.
51,489,836
I'm new in Laravel. I just want to ask if my code is correct. I want to display the the name of the floor and building of the area from a certain assignment in index.blade.php in Collection folder. Collections belong to an Assignment, and Assignments belongs to an Area. My code in Collection index.blade.php ``` @for...
2018/07/24
[ "https://Stackoverflow.com/questions/51489836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9322968/" ]
> > "UPDATE": The problem is from the unclosed tr tag you opened it `<tr><tr>` like this but it should be `<tr></tr>` :D that's it, check the solution and tell me if it works. but look at the bright side, your code is cleaner and more pragmatic now :D > > > chaining is bad :), try to create a function that gets y...
you should use area like this ``` $collection->assignment()->area()->building ```
51,489,836
I'm new in Laravel. I just want to ask if my code is correct. I want to display the the name of the floor and building of the area from a certain assignment in index.blade.php in Collection folder. Collections belong to an Assignment, and Assignments belongs to an Area. My code in Collection index.blade.php ``` @for...
2018/07/24
[ "https://Stackoverflow.com/questions/51489836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9322968/" ]
> > "UPDATE": The problem is from the unclosed tr tag you opened it `<tr><tr>` like this but it should be `<tr></tr>` :D that's it, check the solution and tell me if it works. but look at the bright side, your code is cleaner and more pragmatic now :D > > > chaining is bad :), try to create a function that gets y...
It is entirely possible that nearly any part of the following could be returning a `null`: ``` $collection->assignment->area ``` If the relationship from Collection to Assignment doesn't exist for this particular Collection there would be a `null` returned for it. This would go for all `singular` relationships down ...
51,489,836
I'm new in Laravel. I just want to ask if my code is correct. I want to display the the name of the floor and building of the area from a certain assignment in index.blade.php in Collection folder. Collections belong to an Assignment, and Assignments belongs to an Area. My code in Collection index.blade.php ``` @for...
2018/07/24
[ "https://Stackoverflow.com/questions/51489836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9322968/" ]
> > "UPDATE": The problem is from the unclosed tr tag you opened it `<tr><tr>` like this but it should be `<tr></tr>` :D that's it, check the solution and tell me if it works. but look at the bright side, your code is cleaner and more pragmatic now :D > > > chaining is bad :), try to create a function that gets y...
Might be chance like all records doesn't have connected data into subtable in the case error will rise. To overcame error you can use optional() method. Method will auto handle the null relation. ``` optional($collection->assignment)->area ``` For more information you can check this [link](https://laravel.com/docs/...
3,339
There is already a [general question about ways to control fermentation temperature](https://homebrew.stackexchange.com/questions/861/temperature-control-for-fermentation). This question, however, is more specific - it pertains to active fermentation temperature control using refrigeration. And I'm making it a communit...
2011/02/02
[ "https://homebrew.stackexchange.com/questions/3339", "https://homebrew.stackexchange.com", "https://homebrew.stackexchange.com/users/430/" ]
There are quite a few choices in refrigeration for building a fermentation chamber. What are the pros and cons of each option? Assume that whichever is chosen, it will be controlled by an after-market temperature controller, allowing for precise adjustment of fermentation temperature. --- ### Upright Refrigerator - F...
[Mother of Fermentation Chamber](http://www.yeastbound.com/brewhouse-equipment/36dd-mother-of-fermentation-chiller/) and [Son of Fermentation Chiller](http://www.olderascal.com/brewing/fermentationchiller/index.html), are both DIY but use containers of ice & a fan instead of a fridge. You can also [use thermoelectric ...
53,178,868
What is the best way to subscribe to a public database in CloudKit? I have a table with persons. Every person contains a name and a location. Once the location changes, the location is updated in CloudKit. That part is working fine. But I am not able to make it work to get a notification when there is a record update....
2018/11/06
[ "https://Stackoverflow.com/questions/53178868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6234888/" ]
Here are a few other things you can check: **= 1 =** Make sure the CloudKit container defined in your code is the same one you are accessing in the CloudKit dashboard. Sometimes we overlook what we selected in Xcode as the CloudKit container when we create and test multiple containers. **= 2 =** Check the **Subscri...
I am using [RxCloudKit](https://github.com/maxvol/RxCloudKit) library, here's an a code snippet of how it handles query notifications - ```html public func applicationDidReceiveRemoteNotification(userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { l...
53,178,868
What is the best way to subscribe to a public database in CloudKit? I have a table with persons. Every person contains a name and a location. Once the location changes, the location is updated in CloudKit. That part is working fine. But I am not able to make it work to get a notification when there is a record update....
2018/11/06
[ "https://Stackoverflow.com/questions/53178868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6234888/" ]
I am using [RxCloudKit](https://github.com/maxvol/RxCloudKit) library, here's an a code snippet of how it handles query notifications - ```html public func applicationDidReceiveRemoteNotification(userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { l...
**Update**: As Reinhard mentioned in his comment: you can in fact still subscribe to changes from the public database and manually import the changes into Core Data. Still I am unsure whether it is a good idea to rely on subscriptions in the public database if Apple specifically mentioned these differences **Original ...
53,178,868
What is the best way to subscribe to a public database in CloudKit? I have a table with persons. Every person contains a name and a location. Once the location changes, the location is updated in CloudKit. That part is working fine. But I am not able to make it work to get a notification when there is a record update....
2018/11/06
[ "https://Stackoverflow.com/questions/53178868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6234888/" ]
Here are a few other things you can check: **= 1 =** Make sure the CloudKit container defined in your code is the same one you are accessing in the CloudKit dashboard. Sometimes we overlook what we selected in Xcode as the CloudKit container when we create and test multiple containers. **= 2 =** Check the **Subscri...
**Update**: As Reinhard mentioned in his comment: you can in fact still subscribe to changes from the public database and manually import the changes into Core Data. Still I am unsure whether it is a good idea to rely on subscriptions in the public database if Apple specifically mentioned these differences **Original ...
52,134,848
I have an two arrays in php, what i would like to do is if drug\_ids match, I want to add the second array as a sub array. What I have ``` Array ( [0] => Array ( [drug_id] => 1 [drug] => Abacavir 300mg - Tabs ) [1] => Array ( [drug_id] => 4 ...
2018/09/02
[ "https://Stackoverflow.com/questions/52134848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1773616/" ]
There's a bug. Try the following ``` foreach ($table_data as &$mt) { foreach ($items as $it) { if ($it['drug_id'] == $mt['drug_id']) { if (!isset($mt['decisions'])) { $mt['decisions'] = []; } $mt['decisions'][] = $it; } } } ```
Another way: ``` foreach ($arr1 as &$a) { $a["decisions"] = array_filter($arr2, function ($b) use ($a) { return $b["drug_id"] === $a["drug_id"]; }); } ```
52,134,848
I have an two arrays in php, what i would like to do is if drug\_ids match, I want to add the second array as a sub array. What I have ``` Array ( [0] => Array ( [drug_id] => 1 [drug] => Abacavir 300mg - Tabs ) [1] => Array ( [drug_id] => 4 ...
2018/09/02
[ "https://Stackoverflow.com/questions/52134848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1773616/" ]
There's a bug. Try the following ``` foreach ($table_data as &$mt) { foreach ($items as $it) { if ($it['drug_id'] == $mt['drug_id']) { if (!isset($mt['decisions'])) { $mt['decisions'] = []; } $mt['decisions'][] = $it; } } } ```
I do not recommended nested loops they will do too many unnecessary iterations. Instead, because the drug\_ids in the first array are unique, copy them to be the first level's keys -- this will let you swiftly associate data between the two arrays. When the loop is done, you can remove the first level keys with `array_...
75,454
We currently use UPPERCASE headers and titles quite a bit (probably too much) and are looking to adopt a consistent set of rules for when it makes sense to use... * **ALL UPPERCASE** * **C**apitalize the first word * **C**apitalize **E**ach **W**ord. I was hoping to find one simple generic rule that covers everything...
2015/03/26
[ "https://ux.stackexchange.com/questions/75454", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/58111/" ]
I researched the site with the most unique visitors to see if I could find a consistent pattern. **1. Facebook uses ALL UPPERCASE rarely in place of column header rectangles** ![headers](https://i.stack.imgur.com/7u02u.png) **2. Facebook capitalizes only the first letter of all the words in a field label** ![field ...
The reason for specific typographic styles (ALL CAPS, Some words Caps, etc...) with regards to heading, title, button, breadcrumbs, and other related materials is due to the mandates of the manual of style that the organization is using. As Dave references, the Chicago Manual of Style is one of the most popular refere...
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
If `fileInputElement` is on its own in the form `fileInputForm`, you can do: ``` window.fileInputForm.reset(); ``` Otherwise for IE you'll have to replace the element with a clone: ``` fileInputElement.parentNode.replaceChild( fileInputElement.cloneNode(true), fileInputElement ); ```
You can't reset the File input by itself. What you can do is wrap your File input in a `<form id="form_id">` tag and reset the form. With jQuery you can do `$('#form_id')[0].reset();` and in JavaScript you can do `document.getElementById('form_id').reset()`.
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
If `fileInputElement` is on its own in the form `fileInputForm`, you can do: ``` window.fileInputForm.reset(); ``` Otherwise for IE you'll have to replace the element with a clone: ``` fileInputElement.parentNode.replaceChild( fileInputElement.cloneNode(true), fileInputElement ); ```
### SOLUTION The following code worked for me with jQuery. It works in every browser and allows to preserve events and custom properties. ``` var $el = $(fileInputElement); $el.wrap('<form>').closest('form').get(0).reset(); $el.unwrap(); ``` ### DEMO See [this jsFiddle](https://jsfiddle.net/gyrocode/yfeo529g/) for...
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
If `fileInputElement` is on its own in the form `fileInputForm`, you can do: ``` window.fileInputForm.reset(); ``` Otherwise for IE you'll have to replace the element with a clone: ``` fileInputElement.parentNode.replaceChild( fileInputElement.cloneNode(true), fileInputElement ); ```
Cross-Browser solution by @Gyrocode.com in vanilla JS: ``` var clearFileInput = function (input) { if (!input) { return; } // standard way - works for IE 11+, Chrome, Firefox, webkit Opera input.value = null; if (input.files && input.files.length && input.parentNode) { // workaround for IE 10 and l...
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
If `fileInputElement` is on its own in the form `fileInputForm`, you can do: ``` window.fileInputForm.reset(); ``` Otherwise for IE you'll have to replace the element with a clone: ``` fileInputElement.parentNode.replaceChild( fileInputElement.cloneNode(true), fileInputElement ); ```
With **IE 10** I resolved the problem with : ``` var file = document.getElementById("file-input"); file.removeAttribute('value'); file.parentNode.replaceChild(file.cloneNode(true),file); ``` where : ``` <input accept="image/*" onchange="angular.element(this).scope().uploadFile(this)" id="file-input" typ...
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
### SOLUTION The following code worked for me with jQuery. It works in every browser and allows to preserve events and custom properties. ``` var $el = $(fileInputElement); $el.wrap('<form>').closest('form').get(0).reset(); $el.unwrap(); ``` ### DEMO See [this jsFiddle](https://jsfiddle.net/gyrocode/yfeo529g/) for...
You can't reset the File input by itself. What you can do is wrap your File input in a `<form id="form_id">` tag and reset the form. With jQuery you can do `$('#form_id')[0].reset();` and in JavaScript you can do `document.getElementById('form_id').reset()`.
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
Cross-Browser solution by @Gyrocode.com in vanilla JS: ``` var clearFileInput = function (input) { if (!input) { return; } // standard way - works for IE 11+, Chrome, Firefox, webkit Opera input.value = null; if (input.files && input.files.length && input.parentNode) { // workaround for IE 10 and l...
You can't reset the File input by itself. What you can do is wrap your File input in a `<form id="form_id">` tag and reset the form. With jQuery you can do `$('#form_id')[0].reset();` and in JavaScript you can do `document.getElementById('form_id').reset()`.
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
You can't reset the File input by itself. What you can do is wrap your File input in a `<form id="form_id">` tag and reset the form. With jQuery you can do `$('#form_id')[0].reset();` and in JavaScript you can do `document.getElementById('form_id').reset()`.
With **IE 10** I resolved the problem with : ``` var file = document.getElementById("file-input"); file.removeAttribute('value'); file.parentNode.replaceChild(file.cloneNode(true),file); ``` where : ``` <input accept="image/*" onchange="angular.element(this).scope().uploadFile(this)" id="file-input" typ...
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
### SOLUTION The following code worked for me with jQuery. It works in every browser and allows to preserve events and custom properties. ``` var $el = $(fileInputElement); $el.wrap('<form>').closest('form').get(0).reset(); $el.unwrap(); ``` ### DEMO See [this jsFiddle](https://jsfiddle.net/gyrocode/yfeo529g/) for...
With **IE 10** I resolved the problem with : ``` var file = document.getElementById("file-input"); file.removeAttribute('value'); file.parentNode.replaceChild(file.cloneNode(true),file); ``` where : ``` <input accept="image/*" onchange="angular.element(this).scope().uploadFile(this)" id="file-input" typ...
9,011,644
how can I reset file input in IE, I used the following and it worked in chrome and FF but not IE `fileInputElement.value=""` what's the alternative in IE ?
2012/01/25
[ "https://Stackoverflow.com/questions/9011644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/947473/" ]
Cross-Browser solution by @Gyrocode.com in vanilla JS: ``` var clearFileInput = function (input) { if (!input) { return; } // standard way - works for IE 11+, Chrome, Firefox, webkit Opera input.value = null; if (input.files && input.files.length && input.parentNode) { // workaround for IE 10 and l...
With **IE 10** I resolved the problem with : ``` var file = document.getElementById("file-input"); file.removeAttribute('value'); file.parentNode.replaceChild(file.cloneNode(true),file); ``` where : ``` <input accept="image/*" onchange="angular.element(this).scope().uploadFile(this)" id="file-input" typ...
43,324,157
Hi need some help of Excel guru please. [Excel sample](https://i.stack.imgur.com/OkTDE.png) Formula would do something like this: if Last enty in column A is last enty then show B of the same row So basicaly the E1 should be empty, but if I add text for B5 then E1 should display what is in B5. And if I add new devic...
2017/04/10
[ "https://Stackoverflow.com/questions/43324157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5898604/" ]
How about: ``` =INDEX(B:B,COUNTA(A:A)) ```
Figured out my self when I put all on paper =LOOKUP(2,1/(Sheet1!A:A<>""),Sheet1!B:B)
43,324,157
Hi need some help of Excel guru please. [Excel sample](https://i.stack.imgur.com/OkTDE.png) Formula would do something like this: if Last enty in column A is last enty then show B of the same row So basicaly the E1 should be empty, but if I add text for B5 then E1 should display what is in B5. And if I add new devic...
2017/04/10
[ "https://Stackoverflow.com/questions/43324157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5898604/" ]
How about: ``` =INDEX(B:B,COUNTA(A:A)) ```
Or you may try this... ``` =INDEX(B:B,MATCH("zzz",A:A)) ```
7,589,740
Using Silverstripe's "ChildrenOf" syntax, I've been successfully able to list all children of a page's parent. It's being used in a "see also" style list on a page. I'd like to exclude the current page from the list but unsure how to determine which is the same as the current page, as within the control loop I'm in th...
2011/09/28
[ "https://Stackoverflow.com/questions/7589740", "https://Stackoverflow.com", "https://Stackoverflow.com/users/274826/" ]
there's a built-in page control for this, so to exclude the current page from your list: ``` <% control ChildrenOf(page-url) %> <% if LinkOrCurrent = current %> <!-- exclude me --> <% else %> <!-- Output some stuff, like the page's $Link and $Title --> <% end_if %> <% end_control %> ``` se...
In Silverstripe 3.1 you can use a method like this - ``` <% loop $Parent.Children %> <% if $LinkingMode != current %> <!-- Output some stuff, like the page's $Link and $Title , $Pos etc --> <% end_if %> <% end_loop %> ``` This way you can list all parent's children pages. See <https://docs.silverst...
6,229,536
Hello stackoverflow community, I've got a little Problem with my CodeIgniter. I use two applications in my app folder. The first one is the frontend, the second one the backend. In my root directory I've two .php files. An index.php leading to the frontend directory and a backend.php leading to the backend directory....
2011/06/03
[ "https://Stackoverflow.com/questions/6229536", "https://Stackoverflow.com", "https://Stackoverflow.com/users/782976/" ]
This really isn't going to work. Check out config/config.php and config/settings.php etc for constants that need setting... You really need to run each application in a separate 'application' directory. It's also worth asking yourself if they even need to be 'separate' applications... Basically, stop going down this p...
Instead of having two application folders I would suggest having a folder within the controller called 'admin', you could also have folders within your `models`, `views` (even `libraries`) named 'admin' which you could then pull out of this project and move to other projects. This would allow you to just use a standar...
16,434,389
What are the various tools to cross-compile or convert Javascript to C# and back? And how to execute JS in C# or C# in JS? This is a popular question, and I will provide answers for it.
2013/05/08
[ "https://Stackoverflow.com/questions/16434389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41021/" ]
**Compile C# to Javascript** * [SharpKit](https://code.google.com/p/sharpkit/) ([site](http://sharpkit.net/)) - Write and debug C# 4.0, compile to JS * [Blade](https://github.com/vannatech/blade) - Write C# and compile to JS, Interfaces for DOM, HTML, CSS * [ScriptSharp](http://scriptsharp.com/) - Write C# and compile...
**Compile C# code to Javascript in Visual Studio:** * [DuoCode](http://duoco.de/) - Roslyn based compiler that transforms C# to javascript
16,434,389
What are the various tools to cross-compile or convert Javascript to C# and back? And how to execute JS in C# or C# in JS? This is a popular question, and I will provide answers for it.
2013/05/08
[ "https://Stackoverflow.com/questions/16434389", "https://Stackoverflow.com", "https://Stackoverflow.com/users/41021/" ]
**Compile C# to Javascript** * [SharpKit](https://code.google.com/p/sharpkit/) ([site](http://sharpkit.net/)) - Write and debug C# 4.0, compile to JS * [Blade](https://github.com/vannatech/blade) - Write C# and compile to JS, Interfaces for DOM, HTML, CSS * [ScriptSharp](http://scriptsharp.com/) - Write C# and compile...
[JScriptSuite](http://jscriptsuite.com) - compiles MSIL (C# or another .NET language) to JavaScript. Allows debug original .NET (C#) code, provides databind templates, remoting interfaces, controls
1,995,512
I've heard it a lot that Probability is a branch of Statistics(which isn't a branch of mathematics) but as far as I know(High School) it appeals more as the branch of Combinatorics though. So, can you kindly explain the reasoning behind considering Probability as a branch of Statistics and not as Combinatorics(& Maths...
2016/11/02
[ "https://math.stackexchange.com/questions/1995512", "https://math.stackexchange.com", "https://math.stackexchange.com/users/110995/" ]
First, determine the df of $X$, because you will need it $$F\_X(x)=\int\_{0}^x1dt=x$$ for $x\in[0,1]$. Now, the proof by induction: * Base case: $F\_1(x)=x^1/1!$, you have shown this. * Induction step: Assume that $F\_n(x)=x^n/n!$ for $x\in [0,1]$. Then you can find the pdf $f\_n(z)$ of $Z\_n$ by differentiating $F\...
Instead of the general case, it's easier to think of the n=2 case. If you can figure out n=2 from n=1, the general case would be similar. Hint: you can try convolution of p.d.f. or from conditional probability point of view.
1,995,512
I've heard it a lot that Probability is a branch of Statistics(which isn't a branch of mathematics) but as far as I know(High School) it appeals more as the branch of Combinatorics though. So, can you kindly explain the reasoning behind considering Probability as a branch of Statistics and not as Combinatorics(& Maths...
2016/11/02
[ "https://math.stackexchange.com/questions/1995512", "https://math.stackexchange.com", "https://math.stackexchange.com/users/110995/" ]
First, determine the df of $X$, because you will need it $$F\_X(x)=\int\_{0}^x1dt=x$$ for $x\in[0,1]$. Now, the proof by induction: * Base case: $F\_1(x)=x^1/1!$, you have shown this. * Induction step: Assume that $F\_n(x)=x^n/n!$ for $x\in [0,1]$. Then you can find the pdf $f\_n(z)$ of $Z\_n$ by differentiating $F\...
The base case: $\mathbb{P} \{Z\_1\le x\}=x^1/1!$. Assume that the result holds for $n-1$. Then noticing that $\mathbb{P}\{Z\_{n-1}<0\}=0$ and $X$'s are independent, for $x\in [0,1]$ we have $$ \mathbb{P}\{Z\_n\le x\}=\mathbb{E}[\mathbb{P}\{Z\_{n-1}\le x-X\_n\mid X\_n\}]=\int\_{0}^x \frac{(x-z)^{n-1}}{(n-1)!}dz=\frac{x...
41,357,790
I'm just trying to make a simple 600px wide line that scales responsively for e-amil, but I simply cannot make it display on Outlook 2013, Outlook 2016 on win 7 and Windows 10 E-mail. The code looks like this, and the line I'm talking about is the line at the commentary "<--Horizontal line-->" Right now i've made it ...
2016/12/28
[ "https://Stackoverflow.com/questions/41357790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6796073/" ]
Try the below script, using a recursive CTE here. ``` DECLARE @TABLE TABLE ( Type1 NVARCHAR(10) ,Type2 NVARCHAR(10) ) INSERT INTO @TABLE VALUES ('A','Dev'),('B','User'),('C','User1'),('User','Dev'),('User1','User'),('User2','User1') ;WITH CTE AS ( SELECT Type1,Type2 FROM @TABLE UNION ALL ...
``` select t1.Type1 as X, t2.Type2 as Y from table1 t1 join (select distinct Type2 from table1) t2 on t1.Type2 >= t2.Type2 order by x, y desc ``` Executes as: ``` SQL>select t1.Type1 as X, SQL& t2.Type2 as Y SQL&from table1 t1 SQL&join (select distinct Type2 from table1) t2 SQL& on t1.Type2 >= t2...
434,877
I am investigating the effects of weather on restaurant demand. Currently, I am testing the model assumptions for my multiple linear regression model. My model specification (simplified) is as follows: `lm(Visitor ~ Temperature + Temperature_Squared + Pressure + Clouds + Sun + Rain + Day_Fri + Day_Sat + Day_Sun + Day_...
2019/11/06
[ "https://stats.stackexchange.com/questions/434877", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/207952/" ]
Here are a dozen normal probability plots in R, each for a sample of size 100 from a known standard normal population. Each plot is *roughly* linear, but most have a 'wobble' or two, especially toward the extremes. ``` set.seed(116) par(mfrow=c(3,4)) for(i in 1:12) { z = rnorm(100); qqnorm(z, pch=20) } par(mfrow=c(...
Let's assume "visitors" is the total number of visitors and thus whole positive numbers. Let us assume, the model predicts zero visitors and there are zero visitors,then the residual is zero. If there are more then zero visitors, the the residuals must be positive. If the modell predicts a negative number of visitors, ...
434,877
I am investigating the effects of weather on restaurant demand. Currently, I am testing the model assumptions for my multiple linear regression model. My model specification (simplified) is as follows: `lm(Visitor ~ Temperature + Temperature_Squared + Pressure + Clouds + Sun + Rain + Day_Fri + Day_Sat + Day_Sun + Day_...
2019/11/06
[ "https://stats.stackexchange.com/questions/434877", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/207952/" ]
Both the cutoff in the residual plot and the bump in the QQ plot are consequences of model misspecification. You are modeling the conditional mean of the visitor count; let’s call it $Y\_{it}$. When you estimate the conditional mean with OLS, it fits $E(Y\_{it}\mid X\_{it})=\alpha+\beta X\_{it}$. Notice that this spec...
Let's assume "visitors" is the total number of visitors and thus whole positive numbers. Let us assume, the model predicts zero visitors and there are zero visitors,then the residual is zero. If there are more then zero visitors, the the residuals must be positive. If the modell predicts a negative number of visitors, ...
434,877
I am investigating the effects of weather on restaurant demand. Currently, I am testing the model assumptions for my multiple linear regression model. My model specification (simplified) is as follows: `lm(Visitor ~ Temperature + Temperature_Squared + Pressure + Clouds + Sun + Rain + Day_Fri + Day_Sat + Day_Sun + Day_...
2019/11/06
[ "https://stats.stackexchange.com/questions/434877", "https://stats.stackexchange.com", "https://stats.stackexchange.com/users/207952/" ]
Both the cutoff in the residual plot and the bump in the QQ plot are consequences of model misspecification. You are modeling the conditional mean of the visitor count; let’s call it $Y\_{it}$. When you estimate the conditional mean with OLS, it fits $E(Y\_{it}\mid X\_{it})=\alpha+\beta X\_{it}$. Notice that this spec...
Here are a dozen normal probability plots in R, each for a sample of size 100 from a known standard normal population. Each plot is *roughly* linear, but most have a 'wobble' or two, especially toward the extremes. ``` set.seed(116) par(mfrow=c(3,4)) for(i in 1:12) { z = rnorm(100); qqnorm(z, pch=20) } par(mfrow=c(...
35,387,137
I messed up badly my code and I want to revert it to the last commit. I'm doing `git status` and I see that I changed a lot of files. I don't want to see them at all. So I did `git log` and found out the hash of last commit. I used this hash in command: `git fetch origin this_hash` and got the message: ``` Mig-macb...
2016/02/14
[ "https://Stackoverflow.com/questions/35387137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3766930/" ]
If you see all the files when running `git status`, that means you have a lot of local changes that are **not** committed. If you are sure you want to get rid of those changes, run `git reset --hard head`.
`git fetch` just fetches more commits from a remote; it doesn't touch the working directory. You want `git checkout <commit-reference>`, which will check out that version into the working directory.