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
62,531,729
**The text file is as follows** ``` City Name: Timber Date: 24/23/2020 Maximum Temperature: 34°C Minimum Temperature: 20°C Precipitation: 30% Humidity: 40% Wind Speed: 15km\h City Name: Timber Date: 24/24/2020 Maximum Temperature: 32°C Minimu...
2020/06/23
[ "https://Stackoverflow.com/questions/62531729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13797783/" ]
Here is a simple recursive approach, basically exploring all the possibilities. It stops once a solution is found. Output: ``` 11 : 1 2 4 10 50 : 1 3 5 8 49 ``` And the code: ``` #include <iostream> #include <vector> #include <algorithm> #include <cmath> bool decompose_dp (long long int sum, long l...
Here's BFS, DFS and brute force in Python. BFS seems slow for input 50. Brute force yielded 91020 different combinations for input 50. ``` from collections import deque def bfs(n): target = n * n queue = deque([(target, [], 1)]) while queue: t, seq, i = queue.popleft() if t == 0: return seq if...
58,038,936
Making a calendar with JavaScript, how can I make it so that the loop starts in a specific date at 1 and not just hide the index. for example, when I select february it starts at Wednesday with the number 4, I just want the 4 to become a 1 and count upwards, I don't really care about the positioning at the moment. Pl...
2019/09/21
[ "https://Stackoverflow.com/questions/58038936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11973783/" ]
The error message says that your column `stopped` is of type `array<string>` rather than `string`. You need a string column for `regexp_replace`. In order to apply if to an array of strings you can first create a string out of the array and then split that string again ```py def removePunctuation(column): retur...
Here is an alternate approach: `from pyspark.sql.functions import *` `df=pysparkDF.withColumn('someColOfStrings', translate('someColOfStrings', '!"#$%&\'()*+,-./:;<=>?@[\\]^_{|}~', ''))` `tokenizer = Tokenizer(outputCol="textTokens")` `tokenizer.setInputCol("someColOfStrings")` `df1=tokenizer.transform(df.dropna()...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
If you don't want to use `placeholder` you can use the code below or use this simple jQuery plugin: [**jQuery Placeholder**](https://github.com/blacksrc/jQuery-Placeholder). **[jsFiddle Live Demo Of Code Below](http://jsfiddle.net/BlackSRC/FdjJv/2/)** **HTML** ``` <input type='text' holder='First name'><br>...
Old and not the best way is: ``` <input type="text" name="fname" value="Enter text here" onFocus="if (this.value=='Enter text here'){this.value='';}" onBlur="if (this.value==''){this.value='Enter text here';}" /> ``` But it works even in IE6.
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
Old and not the best way is: ``` <input type="text" name="fname" value="Enter text here" onFocus="if (this.value=='Enter text here'){this.value='';}" onBlur="if (this.value==''){this.value='Enter text here';}" /> ``` But it works even in IE6.
I use these 2 methods (jquery) to hide placeholder when the input gets focus, and when it loses focus and it is empty show placeholder. input.focus * step-1: simply saving placeholder value into a universal variable( here pl) * step-2: set placeholder property of input to '' input.focusout * step-1: set placeholder...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
Use the placeholder attribute: ``` <input type="text" placeholder="Search here"> ``` For browsers that do not support `placeholder`; you can use a [polyfill](https://github.com/ginader/HTML5-placeholder-polyfill)
I use these 2 methods (jquery) to hide placeholder when the input gets focus, and when it loses focus and it is empty show placeholder. input.focus * step-1: simply saving placeholder value into a universal variable( here pl) * step-2: set placeholder property of input to '' input.focusout * step-1: set placeholder...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
If you don't want to use `placeholder` you can use the code below or use this simple jQuery plugin: [**jQuery Placeholder**](https://github.com/blacksrc/jQuery-Placeholder). **[jsFiddle Live Demo Of Code Below](http://jsfiddle.net/BlackSRC/FdjJv/2/)** **HTML** ``` <input type='text' holder='First name'><br>...
Use the placeholder attribute: ``` <input type="text" placeholder="Search here"> ``` For browsers that do not support `placeholder`; you can use a [polyfill](https://github.com/ginader/HTML5-placeholder-polyfill)
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
If you don't want to use `placeholder` you can use the code below or use this simple jQuery plugin: [**jQuery Placeholder**](https://github.com/blacksrc/jQuery-Placeholder). **[jsFiddle Live Demo Of Code Below](http://jsfiddle.net/BlackSRC/FdjJv/2/)** **HTML** ``` <input type='text' holder='First name'><br>...
I use these 2 methods (jquery) to hide placeholder when the input gets focus, and when it loses focus and it is empty show placeholder. input.focus * step-1: simply saving placeholder value into a universal variable( here pl) * step-2: set placeholder property of input to '' input.focusout * step-1: set placeholder...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
Old and not the best way is: ``` <input type="text" name="fname" value="Enter text here" onFocus="if (this.value=='Enter text here'){this.value='';}" onBlur="if (this.value==''){this.value='Enter text here';}" /> ``` But it works even in IE6.
There are a number polyfills out there that will "add" placeholder functionality in browsers that do not support it. I've used [jQuery Placeholder](https://github.com/mathiasbynens/jquery-placeholder) in the past, but there are quite a few others mentioned in the [modernizr docs](https://github.com/Modernizr/Modernizr/...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
If you don't want to use `placeholder` you can use the code below or use this simple jQuery plugin: [**jQuery Placeholder**](https://github.com/blacksrc/jQuery-Placeholder). **[jsFiddle Live Demo Of Code Below](http://jsfiddle.net/BlackSRC/FdjJv/2/)** **HTML** ``` <input type='text' holder='First name'><br>...
here is my code to hide placeholder text on input and textarea focus(). Simple and working great. ```js $('textarea,input').focus(function(e){ val=$(this).attr('value'); if (!val) $(this).attr('value',' '); this.select(); }).blur(function(e){ val=$(this).attr('value'); if (val==' ') $(this)...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
If you don't want to use `placeholder` you can use the code below or use this simple jQuery plugin: [**jQuery Placeholder**](https://github.com/blacksrc/jQuery-Placeholder). **[jsFiddle Live Demo Of Code Below](http://jsfiddle.net/BlackSRC/FdjJv/2/)** **HTML** ``` <input type='text' holder='First name'><br>...
There are a number polyfills out there that will "add" placeholder functionality in browsers that do not support it. I've used [jQuery Placeholder](https://github.com/mathiasbynens/jquery-placeholder) in the past, but there are quite a few others mentioned in the [modernizr docs](https://github.com/Modernizr/Modernizr/...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
For Webkit based browsers and Firefox you can hide the placeholder in pure CSS: ``` input:focus::-webkit-input-placeholder, input:focus::-moz-placeholder { opacity:0; } ```
There are a number polyfills out there that will "add" placeholder functionality in browsers that do not support it. I've used [jQuery Placeholder](https://github.com/mathiasbynens/jquery-placeholder) in the past, but there are quite a few others mentioned in the [modernizr docs](https://github.com/Modernizr/Modernizr/...
14,339,588
I´m using the "placeholder" attr. for placeholder text in input-fields I need to have this functionality in IE-incarnations too. I want the Placeholder to hide on FOCUS! every workaround i found hides the placeholder when the first type is entered. I´m unable to work it out myself, it needs to simply delete the inpu...
2013/01/15
[ "https://Stackoverflow.com/questions/14339588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1712905/" ]
For Webkit based browsers and Firefox you can hide the placeholder in pure CSS: ``` input:focus::-webkit-input-placeholder, input:focus::-moz-placeholder { opacity:0; } ```
here is my code to hide placeholder text on input and textarea focus(). Simple and working great. ```js $('textarea,input').focus(function(e){ val=$(this).attr('value'); if (!val) $(this).attr('value',' '); this.select(); }).blur(function(e){ val=$(this).attr('value'); if (val==' ') $(this)...
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
> > Are combinations of chakra natures taught or only transmitted by Kekkei Genkai (or both)? > > > I think combinations of Chakra are generally possible only through Kekkei Genkai, even if some can be "passed" by transplantation (e.g. Kakashi and the Sharingan). Although, there's the issue of Lord Tsuchikage th...
Yes but mostly only by the Uchiha clan like Sasuke, Itachi etc. Because they have the copy wheel eyes (aka sharingan )they can learn all five jitsu by copying and observing them.
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
I think that if a shinobi can use all of the chakra elements, it doesn't guarantee that you can combine them. All of the answers above are correct in my opinion (we can't assume anything, unless we've seen them, and I'm the "only anime guy", so I have no idea about manga), but if I can speculate, I would answer: **Que...
In the episode where Kakashi battles Kakuzu, Kakuzu attacks with a massive fire attack. To counter this, Naruto and Yamato combine a water element attack and a wind element attack. They were successful in averting the attack. Now, the order in which the above mentioned elements come are water -> fire -> wind -> ligh...
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
> > Are combinations of chakra natures taught or only transmitted by Kekkei Genkai (or both)? > > > I think combinations of Chakra are generally possible only through Kekkei Genkai, even if some can be "passed" by transplantation (e.g. Kakashi and the Sharingan). Although, there's the issue of Lord Tsuchikage th...
I know this is a very old question but since I saw a lot of small mistakes and stuff forgotten I have to lay light on them. **My answer contains spoilers from events that take place after the Masked Man's identity was revealed.** 1. The Kekkei Genkai can be passed by teaching if the student has the required chakra n...
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
Chakra element combination is supposedly a born trait. A shinobi is *born* with one chakra element, and can master a few more (secondary elements). However, in some clans, such as the Senju, they were born with *two* elements, (both Earth and Water), and they could naturally combine them to form the Wood element. Sin...
Yes but mostly only by the Uchiha clan like Sasuke, Itachi etc. Because they have the copy wheel eyes (aka sharingan )they can learn all five jitsu by copying and observing them.
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
Chakra element combination is supposedly a born trait. A shinobi is *born* with one chakra element, and can master a few more (secondary elements). However, in some clans, such as the Senju, they were born with *two* elements, (both Earth and Water), and they could naturally combine them to form the Wood element. Sin...
I think that combinations are Kekkei Genkai, only, as all combinations shown were Kekkai Genkais. I don't think that combinations of more than three are possible, because then, one nature would block the other (compare Suiton and Katon). Because there are five "base natures", there can't be a combination with more tha...
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
> > Are combinations of chakra natures taught or only transmitted by Kekkei Genkai (or both)? > > > I think combinations of Chakra are generally possible only through Kekkei Genkai, even if some can be "passed" by transplantation (e.g. Kakashi and the Sharingan). Although, there's the issue of Lord Tsuchikage th...
I think that if a shinobi can use all of the chakra elements, it doesn't guarantee that you can combine them. All of the answers above are correct in my opinion (we can't assume anything, unless we've seen them, and I'm the "only anime guy", so I have no idea about manga), but if I can speculate, I would answer: **Que...
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
I think that if a shinobi can use all of the chakra elements, it doesn't guarantee that you can combine them. All of the answers above are correct in my opinion (we can't assume anything, unless we've seen them, and I'm the "only anime guy", so I have no idea about manga), but if I can speculate, I would answer: **Que...
Yes but mostly only by the Uchiha clan like Sasuke, Itachi etc. Because they have the copy wheel eyes (aka sharingan )they can learn all five jitsu by copying and observing them.
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
Since it's very hard to answer if it's *possible* to mix more than 3 chakra types (I doubt it was stated anywhere in the manga), I'll try to answer the two other parts of the question. Lets start from the easiest one: *Can a ninja master more than three chakra natures?* This depends on what do you mean by "master", b...
In the episode where Kakashi battles Kakuzu, Kakuzu attacks with a massive fire attack. To counter this, Naruto and Yamato combine a water element attack and a wind element attack. They were successful in averting the attack. Now, the order in which the above mentioned elements come are water -> fire -> wind -> ligh...
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
You must have read the manga up until the last chapter, as this does include very late game information. From manga chapter 695 or something: > > The Sage of Six Paths was capable of mastering all 5 elemental chakras. We got this from the fourth Shinobi war, when Tenten, someone inept at ninjutsu, picked up a Sage o...
In the episode where Kakashi battles Kakuzu, Kakuzu attacks with a massive fire attack. To counter this, Naruto and Yamato combine a water element attack and a wind element attack. They were successful in averting the attack. Now, the order in which the above mentioned elements come are water -> fire -> wind -> ligh...
304
The title says it all... but I'll elaborate: * Initially we see techniques derived from **a single chakra element** (Katon, Doton, Suiton, Fuuton and Raiton). These are the most common, since usually a ninja can master only one chakra nature (since normally ninjas tend to have an affiliation with only one chakra natur...
2012/12/13
[ "https://anime.stackexchange.com/questions/304", "https://anime.stackexchange.com", "https://anime.stackexchange.com/users/49/" ]
I know this is a very old question but since I saw a lot of small mistakes and stuff forgotten I have to lay light on them. **My answer contains spoilers from events that take place after the Masked Man's identity was revealed.** 1. The Kekkei Genkai can be passed by teaching if the student has the required chakra n...
I think that if a shinobi can use all of the chakra elements, it doesn't guarantee that you can combine them. All of the answers above are correct in my opinion (we can't assume anything, unless we've seen them, and I'm the "only anime guy", so I have no idea about manga), but if I can speculate, I would answer: **Que...
54,724,996
I have a time in GMT, that looks like this: ``` Wed Feb 13 04:46:54 +0000 2019 ``` In a bash script on MacOS 10.14.3, I want to convert it to the user's local timezone. i.e., this one is `04`, so changing it to my timezone would be `-6`, so it would end up something like this: ``` Tue Feb 12 22:46:54 CST 2019 ``` ...
2019/02/16
[ "https://Stackoverflow.com/questions/54724996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2023171/" ]
1- Don't mutate state directly use setState for that, so remove the first two lines. 2- Because [setState is async](https://reactjs.org/docs/react-component.html#setstate) and you are updating the state based on previous value, so use `updater function`, means pass a function in setState and use `prevState` value in t...
Never modify the state using `this.state.YOUR_VARIABLE = something` If you want, and seen from the snippet that you do, to copy the prevState into your new state as well as be able to add new elements to it, you should use Object Cloning to first copy the previous state and then add as many more elements you want to t...
54,724,996
I have a time in GMT, that looks like this: ``` Wed Feb 13 04:46:54 +0000 2019 ``` In a bash script on MacOS 10.14.3, I want to convert it to the user's local timezone. i.e., this one is `04`, so changing it to my timezone would be `-6`, so it would end up something like this: ``` Tue Feb 12 22:46:54 CST 2019 ``` ...
2019/02/16
[ "https://Stackoverflow.com/questions/54724996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2023171/" ]
1- Don't mutate state directly use setState for that, so remove the first two lines. 2- Because [setState is async](https://reactjs.org/docs/react-component.html#setstate) and you are updating the state based on previous value, so use `updater function`, means pass a function in setState and use `prevState` value in t...
You should use the callback for setState which gets previous State as an argument. ``` this.setState((prevState,props) => ({ chartDataWake:[...prevState.chartDataWake, {wake: prevState.wake===84.73 ? "H" : (prevState.wake===14.78 ? "M" : "L"), delay: prediction_arr}], chartDataTurnaround = [...prevState...
1,584,212
I have got two questions. 1 - I get Unicode code-points and how do I get the character associated with this code-point? Something like: ``` int code_point = 0xD24; char* chr = (char*) code_point; ``` But the above code fails by throwing exception. 2 - Suppose the code-point is stored in a file and I read the code-...
2009/10/18
[ "https://Stackoverflow.com/questions/1584212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/50419/" ]
Have you looked at the [International Components for Unicode](http://site.icu-project.org/) project? As per the site, > > ICU is a mature, widely used set of > C/C++ and Java libraries providing > Unicode and Globalization support for > software applications. ICU is widely > portable and gives applications the > ...
Don't you mean to be assigning that value to a char (or more precisely, to a wchar\_t), not a char\* ?
1,584,212
I have got two questions. 1 - I get Unicode code-points and how do I get the character associated with this code-point? Something like: ``` int code_point = 0xD24; char* chr = (char*) code_point; ``` But the above code fails by throwing exception. 2 - Suppose the code-point is stored in a file and I read the code-...
2009/10/18
[ "https://Stackoverflow.com/questions/1584212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/50419/" ]
Have you looked at the [International Components for Unicode](http://site.icu-project.org/) project? As per the site, > > ICU is a mature, widely used set of > C/C++ and Java libraries providing > Unicode and Globalization support for > software applications. ICU is widely > portable and gives applications the > ...
Are you looking for the *name* of the character? [u\_charName()](http://icu-project.org/apiref/icu4c/uchar_8h.html#a488f2a373998c7decb0ecd3e3552079) in ICU will do this, returning something like `LATIN SMALL LETTER A`.
1,584,212
I have got two questions. 1 - I get Unicode code-points and how do I get the character associated with this code-point? Something like: ``` int code_point = 0xD24; char* chr = (char*) code_point; ``` But the above code fails by throwing exception. 2 - Suppose the code-point is stored in a file and I read the code-...
2009/10/18
[ "https://Stackoverflow.com/questions/1584212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/50419/" ]
Don't you mean to be assigning that value to a char (or more precisely, to a wchar\_t), not a char\* ?
Are you looking for the *name* of the character? [u\_charName()](http://icu-project.org/apiref/icu4c/uchar_8h.html#a488f2a373998c7decb0ecd3e3552079) in ICU will do this, returning something like `LATIN SMALL LETTER A`.
27,055,603
I am new to c# asp.net. How to search data in a Gridview? My Gridview on page load has all the records from the database. I've been searching on it, most is just searching with an empty GridView. So yeah, mine is not empty. ERROR: Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition. ``` ...
2014/11/21
[ "https://Stackoverflow.com/questions/27055603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4268908/" ]
You cannot get the data from grid for searching, you need to store you data some where for using search. That is to store in a ViewState, Session or call DataBase on every search. Bellow code show data stored in a ViewState, you can acces your data any time by just using GridViewData where you can done search. (if you ...
please try this code. ```html <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ProjectDemo_Asp.et.Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <he...
27,055,603
I am new to c# asp.net. How to search data in a Gridview? My Gridview on page load has all the records from the database. I've been searching on it, most is just searching with an empty GridView. So yeah, mine is not empty. ERROR: Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition. ``` ...
2014/11/21
[ "https://Stackoverflow.com/questions/27055603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4268908/" ]
@Fel...I think you try to bind data to data grid using sqldatasource from design side as well as code behind side 1) You need to choose one way to bind the grid 2) if you are binding in design side remove the DataSourceID property from grid view design. use like this ``` asp:gridview id="grdData" runat="server" ``...
please try this code. ```html <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ProjectDemo_Asp.et.Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <he...
40,076,216
Is there a way to manually test/debug hbbtv app on a real TV. I already tried plugins for opera/ff plugins and successfully run through static validators like <http://hbbtv-live.irt.de/validator/>.
2016/10/16
[ "https://Stackoverflow.com/questions/40076216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1380304/" ]
We are using the following approach: Take a Modulator like the Dektec DTU 315 (<http://www.dektec.com/products/USB/DTU-315/>) and the Brahms Software of the IRT (<https://www.irt.de/en/products/media-services-and-applications/brahms/>) then you can also create you "own TV Station" With the Brahms Software you can s...
Kai comment is right. I will just add some other ways for HbbTV testing on real devices, which I tried. 1. [Suitest](https://suite.st/pricing.html), complete solution, which is great for debugging and automated testing 2. [Mautilus HbbTV Playout kit](https://www.mautilus.com/products/hbbtv-playout-kit/) for quick test...
64,111,813
I have a Django ORM table called Measurements as below: ``` | pk | Length | Width | Height | Weight | Date | |----|--------|-------|--------|--------|------------| | 1 | 131 | 23 | 52 | 126 | 2019-12-01 | | 2 | 136 | 22 | 64 | 125 | 2019-12-02 | | 3 | 124 | 25 | 59 | 130 ...
2020/09/29
[ "https://Stackoverflow.com/questions/64111813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12846276/" ]
``` dates = [obj.date.strftime("%Y-%m-%d") for obj in queryset] fields = [length, width, height, weight] dicts = [] for field in fields: row = {"Measurement": field} i = 0 for object in queryset: row[dates[i]] = getattr(object, field, '') i += 1 dicts.append(row) ```
```py measurements = [ “Length”, “Width”, “Height”, “Weight” ] output = [] for m in measurements: # creates dict of { first : second } # so we should have { date : value } single = dict( Measurement.objects.values_list( “Date”, m ) ) single[“Measurement”] = m output.append(single) ...
64,111,813
I have a Django ORM table called Measurements as below: ``` | pk | Length | Width | Height | Weight | Date | |----|--------|-------|--------|--------|------------| | 1 | 131 | 23 | 52 | 126 | 2019-12-01 | | 2 | 136 | 22 | 64 | 125 | 2019-12-02 | | 3 | 124 | 25 | 59 | 130 ...
2020/09/29
[ "https://Stackoverflow.com/questions/64111813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12846276/" ]
Do you use `pandas`? If so, there is a short solution. ``` df = df.drop(['pk'], axis=1) # convert datetime to string in a given format df['date'] = df['date'].map(lambda x: x.strftime('%Y-%m-%d')) df.transpose() ``` Oh, just saw that you want a json response. It is also straight-forward: ``` json_response = [dict(s...
``` dates = [obj.date.strftime("%Y-%m-%d") for obj in queryset] fields = [length, width, height, weight] dicts = [] for field in fields: row = {"Measurement": field} i = 0 for object in queryset: row[dates[i]] = getattr(object, field, '') i += 1 dicts.append(row) ```
64,111,813
I have a Django ORM table called Measurements as below: ``` | pk | Length | Width | Height | Weight | Date | |----|--------|-------|--------|--------|------------| | 1 | 131 | 23 | 52 | 126 | 2019-12-01 | | 2 | 136 | 22 | 64 | 125 | 2019-12-02 | | 3 | 124 | 25 | 59 | 130 ...
2020/09/29
[ "https://Stackoverflow.com/questions/64111813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12846276/" ]
``` dates = [obj.date.strftime("%Y-%m-%d") for obj in queryset] fields = [length, width, height, weight] dicts = [] for field in fields: row = {"Measurement": field} i = 0 for object in queryset: row[dates[i]] = getattr(object, field, '') i += 1 dicts.append(row) ```
Using my earlier code & code provided my user kate-melynkova, I have come with a nice solution for this: ``` df = pd.DataFrame(queryset).replace({np.nan:None}) df['date'] = df['date'].map(lambda x: x.strftime('%Y-%m-%d')) df.set_index('date', inplace=True) tdf = df.transpose() tdf.reset_index(inplace=True) json_respon...
64,111,813
I have a Django ORM table called Measurements as below: ``` | pk | Length | Width | Height | Weight | Date | |----|--------|-------|--------|--------|------------| | 1 | 131 | 23 | 52 | 126 | 2019-12-01 | | 2 | 136 | 22 | 64 | 125 | 2019-12-02 | | 3 | 124 | 25 | 59 | 130 ...
2020/09/29
[ "https://Stackoverflow.com/questions/64111813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12846276/" ]
Do you use `pandas`? If so, there is a short solution. ``` df = df.drop(['pk'], axis=1) # convert datetime to string in a given format df['date'] = df['date'].map(lambda x: x.strftime('%Y-%m-%d')) df.transpose() ``` Oh, just saw that you want a json response. It is also straight-forward: ``` json_response = [dict(s...
```py measurements = [ “Length”, “Width”, “Height”, “Weight” ] output = [] for m in measurements: # creates dict of { first : second } # so we should have { date : value } single = dict( Measurement.objects.values_list( “Date”, m ) ) single[“Measurement”] = m output.append(single) ...
64,111,813
I have a Django ORM table called Measurements as below: ``` | pk | Length | Width | Height | Weight | Date | |----|--------|-------|--------|--------|------------| | 1 | 131 | 23 | 52 | 126 | 2019-12-01 | | 2 | 136 | 22 | 64 | 125 | 2019-12-02 | | 3 | 124 | 25 | 59 | 130 ...
2020/09/29
[ "https://Stackoverflow.com/questions/64111813", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12846276/" ]
Do you use `pandas`? If so, there is a short solution. ``` df = df.drop(['pk'], axis=1) # convert datetime to string in a given format df['date'] = df['date'].map(lambda x: x.strftime('%Y-%m-%d')) df.transpose() ``` Oh, just saw that you want a json response. It is also straight-forward: ``` json_response = [dict(s...
Using my earlier code & code provided my user kate-melynkova, I have come with a nice solution for this: ``` df = pd.DataFrame(queryset).replace({np.nan:None}) df['date'] = df['date'].map(lambda x: x.strftime('%Y-%m-%d')) df.set_index('date', inplace=True) tdf = df.transpose() tdf.reset_index(inplace=True) json_respon...
217,428
I want to know if there is some possibility to find lat long position in ArcGIS 10.0 as we can find on Google Earth. I have an assignment and doing this can save me a lot of time. I have already used the "Find" option in ArcGIS 10.0 which is limited to what I want. [![enter image description here](https://i.stack.img...
2016/11/11
[ "https://gis.stackexchange.com/questions/217428", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/12648/" ]
It sounds like you are after the [GoTo XY](http://desktop.arcgis.com/en/arcmap/latest/map/working-with-arcmap/using-the-go-to-xy-tool.htm) tool which is on the Tools toolbar: > > You can use this tool to type in x,y coordinates and navigate to them. > The coordinates you enter can be > > > * Longitude-Latitude > ...
Another option, if you have many lng/lat coordinates to display you may use this method: 1. Open up blank ArcMap and right click on Layers (data frame)>Properties>Coordinate System tab and search/select the WGS 1984 geographic coordinate system. 2. Put all your lng/lat coordintes in two different columns in a spreadsh...
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
There is a challenge on hackerrank [Java Date and Time](https://www.hackerrank.com/challenges/java-date-and-time/problem) personally, I prefer the LocalDate class. 1. Import java.time.LocalDate 2. Retrieve localDate by using "of" method which takes 3 arguments in "int" format. 3. finally, get the name of that day us...
``` LocalDate date=LocalDate.now(); System.out.println(date.getDayOfWeek());//prints THURSDAY System.out.println(date.getDayOfWeek().getDisplayName(TextStyle.SHORT, Locale.US) ); //prints Thu java.time.DayOfWeek is a enum which returns the singleton instance for the day-of-week of the weekday of the date. ```
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
You can try the following code: ``` import java.time.*; public class Test{ public static void main(String[] args) { DayOfWeek dow = LocalDate.of(2010,Month.FEBRUARY,23).getDayOfWeek(); String s = String.valueOf(dow); System.out.println(String.format("%.3s",s)); } } ```
There is a challenge on hackerrank [Java Date and Time](https://www.hackerrank.com/challenges/java-date-and-time/problem) personally, I prefer the LocalDate class. 1. Import java.time.LocalDate 2. Retrieve localDate by using "of" method which takes 3 arguments in "int" format. 3. finally, get the name of that day us...
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
Can use the following code snippet for input like (day = "08", month = "05", year = "2015" and output will be "WEDNESDAY") ``` Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.DAY_OF_MONTH, Integer.parseInt(day)); calendar.set(Calendar.MONTH, (Integer.parseInt(month)-1)); calendar.set(Calendar.YEAR, I...
Program to find the day of the week by giving user input date month and year using `java.util.scanner` package: ``` import java.util.Scanner; public class Calender { public static String getDay(String day, String month, String year) { int ym, yp, d, ay, a = 0; int by = 20; int[] y = new i...
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
You can try the following code: ``` import java.time.*; public class Test{ public static void main(String[] args) { DayOfWeek dow = LocalDate.of(2010,Month.FEBRUARY,23).getDayOfWeek(); String s = String.valueOf(dow); System.out.println(String.format("%.3s",s)); } } ```
method below retrieves seven days and return short name of days in List Array in Kotlin though, you can just reformat then in Java format, just presenting idea how Calendar can return short name ``` private fun getDayDisplayName():List<String>{ val calendar = Calendar.getInstance() val dates= mutableLi...
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
``` //to get day of any date import java.util.Scanner; import java.util.Calendar; import java.util.Date; public class Show { public static String getDay(String day,String month, String year){ String input_date = month+"/"+day+"/"+year; Date now = new Date(input_date); Cale...
Get a Date for Today and then Find a week Day from it. ``` LocalDate d = java.time.LocalDate.now(); System.out.println(java.time.LocalDate.now()); Calendar c = Calendar.getInstance(); int dayOfWeek = c.get(Calendar.DAY_OF_WEEK); System.out.println(dayOfWeek); ```
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
``` Calendar cal = Calendar.getInstance(desired date); cal.setTimeInMillis(System.currentTimeMillis()); int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); ``` Get the day value by providing the current time stamp.
I use this ``` String[] weekdays = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "); ``` And then ``` weekdays[calendar.get(Calendar.DAY_OF_WEEK) - 1] ``` To get the particular weekday
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
For **Java 8 or Later**, **Localdate** is preferable ``` import java.time.LocalDate; public static String findDay(int month, int day, int year) { LocalDate localDate = LocalDate.of(year, month, day); java.time.DayOfWeek dayOfWeek = localDate.getDayOfWeek(); System.out.println(dayOfWeek); return day...
You can use below method to get Day of the Week by passing a specific date, **Here for the set method of Calendar class, Tricky part is the index for the month parameter will starts from 0**. ``` public static String getDay(int day, int month, int year) { Calendar cal = Calendar.getInstance(); if(mo...
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
Calendar class has build-in displayName functionality: ``` Calendar.getInstance().getDisplayName(Calendar.DAY_OF_WEEK, Calendar.SHORT, Locale.getDefault()); // Thu Calendar.SHORT -> Thu Calendar.LONG_FORMAT -> Thursday ``` Available since Java 1.6. See also [Oracle documentation](https://docs.oracle.com/javase/8...
This works correctly... ``` java.time.LocalDate; //package related to time and date ``` It provides inbuilt method getDayOfWeek() to get the day of a particular week: ``` int t; Scanner s = new Scanner(System.in); t = s.nextInt(); s.nextLine(); while(t-->0) { int d, m, y; String ss = s.nextLine(); Str...
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
Calendar class has build-in displayName functionality: ``` Calendar.getInstance().getDisplayName(Calendar.DAY_OF_WEEK, Calendar.SHORT, Locale.getDefault()); // Thu Calendar.SHORT -> Thu Calendar.LONG_FORMAT -> Thursday ``` Available since Java 1.6. See also [Oracle documentation](https://docs.oracle.com/javase/8...
``` LocalDate date=LocalDate.now(); System.out.println(date.getDayOfWeek());//prints THURSDAY System.out.println(date.getDayOfWeek().getDisplayName(TextStyle.SHORT, Locale.US) ); //prints Thu java.time.DayOfWeek is a enum which returns the singleton instance for the day-of-week of the weekday of the date. ```
5,270,272
For Example I have the date: "23/2/2010" (23th Feb 2010). I want to pass it to a function which would return the **day of week**. How can I do this? In this example, the function should return `String` "Tue". Additionally, if just the day ordinal is desired, how can that be retrieved?
2011/03/11
[ "https://Stackoverflow.com/questions/5270272", "https://Stackoverflow.com", "https://Stackoverflow.com/users/134824/" ]
tl;dr ===== Using [java.time](https://docs.oracle.com/javase/9/docs/api/java/time/package-summary.html)… ``` LocalDate.parse( // Generate `LocalDate` object from String input. "23/2/2010" , DateTimeFormatter.ofPattern( "d/M/uuuu" ) ) ...
``` private String getDay(Date date){ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEEE"); //System.out.println("DAY "+simpleDateFormat.format(date).toUpperCase()); return simpleDateFormat.format(date).toUpperCase(); } private String getDay(String dateStr){ //dateSt...
22,111,141
xml file ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/holo_blue_green" android:orientation="vertical" > <TextView ...
2014/03/01
[ "https://Stackoverflow.com/questions/22111141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1325796/" ]
A quick solution, especially if you don't need to deal with rotation of elements much is to add some basic auto layout constraints to your view. Once you have your button set in place in your view where you want it to stay in the view, select your View in the Storyboard and then from the Menu Select Editor -> Resolve...
set autoresizing mask as shown in image to keep button at buttom in both 3.5 and 4. ![set autosizing mask](https://i.stack.imgur.com/M3EQh.png)
22,111,141
xml file ``` <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/holo_blue_green" android:orientation="vertical" > <TextView ...
2014/03/01
[ "https://Stackoverflow.com/questions/22111141", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1325796/" ]
A quick solution, especially if you don't need to deal with rotation of elements much is to add some basic auto layout constraints to your view. Once you have your button set in place in your view where you want it to stay in the view, select your View in the Storyboard and then from the Menu Select Editor -> Resolve...
i think you are using autolayout so apply first approach with AutoLayout. add constrains for your widgets ![enter image description here](https://i.stack.imgur.com/x7au5.png) without AutoLayout ![enter image description here](https://i.stack.imgur.com/g2lNq.png)
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
I found that installing [Java for OS X 2014-001](http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US) after upgrading to Yosemite has solved it for me.
OSX has its JDKs in the folder `/Library/Java/JavaVirtualMachines/`. There can be multiple versions there, for e.g. 1.7 or 1.8. As indicated by @CrazyCoder, IntelliJ needs a 1.6 version to be present there, which Yosemite kicked out (in favor of a 1.7 if I'm not mistaken). To install jdk 1.6, you can indeed simply us...
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
What you need to do is go ahead and edit this file: > > /Applications/IntelliJ IDEA 13.app/Contents/Info.plist > > > Replacing this: ``` <key>JVMVersion</key> <string>1.6*</string> ``` with this: ``` <key>JVMVersion</key> <string>1.7*</string> ``` **Edit:** As said by intellij member @crazycoder, the recome...
I found that installing [Java for OS X 2014-001](http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US) after upgrading to Yosemite has solved it for me.
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
If you have latest JDK, you could change info.plist to handle this. edit Info.plist file, in your jdk, for example: ``` /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Info.plist ``` update JVMCapabilities dictionary to have following values: ``` <key>JVMCapabilities</key> <array> ...
Got the same problem with MacOS Catalina version 10.15.2 (19C57) after the PyCharm update. Workaround: I rolled back to the Version 2019.2 - 2019.2.5.
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
What you need to do is go ahead and edit this file: > > /Applications/IntelliJ IDEA 13.app/Contents/Info.plist > > > Replacing this: ``` <key>JVMVersion</key> <string>1.6*</string> ``` with this: ``` <key>JVMVersion</key> <string>1.7*</string> ``` **Edit:** As said by intellij member @crazycoder, the recome...
Or change asterisk to plus ``` <key>JVMVersion</key> <string>1.6+</string> ``` The drawback is OS X will with each IDEA start ask you for network permission. But Java 8 still have some bugs, especially on Retina devices and JetBrains still encourages to use Java 6 from Apple. Latest update working with IDEA on Yose...
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
Or change asterisk to plus ``` <key>JVMVersion</key> <string>1.6+</string> ``` The drawback is OS X will with each IDEA start ask you for network permission. But Java 8 still have some bugs, especially on Retina devices and JetBrains still encourages to use Java 6 from Apple. Latest update working with IDEA on Yose...
OSX has its JDKs in the folder `/Library/Java/JavaVirtualMachines/`. There can be multiple versions there, for e.g. 1.7 or 1.8. As indicated by @CrazyCoder, IntelliJ needs a 1.6 version to be present there, which Yosemite kicked out (in favor of a 1.7 if I'm not mistaken). To install jdk 1.6, you can indeed simply us...
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
If you have latest JDK, you could change info.plist to handle this. edit Info.plist file, in your jdk, for example: ``` /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Info.plist ``` update JVMCapabilities dictionary to have following values: ``` <key>JVMCapabilities</key> <array> ...
OSX has its JDKs in the folder `/Library/Java/JavaVirtualMachines/`. There can be multiple versions there, for e.g. 1.7 or 1.8. As indicated by @CrazyCoder, IntelliJ needs a 1.6 version to be present there, which Yosemite kicked out (in favor of a 1.7 if I'm not mistaken). To install jdk 1.6, you can indeed simply us...
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
What you need to do is go ahead and edit this file: > > /Applications/IntelliJ IDEA 13.app/Contents/Info.plist > > > Replacing this: ``` <key>JVMVersion</key> <string>1.6*</string> ``` with this: ``` <key>JVMVersion</key> <string>1.7*</string> ``` **Edit:** As said by intellij member @crazycoder, the recome...
Got the same problem with MacOS Catalina version 10.15.2 (19C57) after the PyCharm update. Workaround: I rolled back to the Version 2019.2 - 2019.2.5.
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
Or change asterisk to plus ``` <key>JVMVersion</key> <string>1.6+</string> ``` The drawback is OS X will with each IDEA start ask you for network permission. But Java 8 still have some bugs, especially on Retina devices and JetBrains still encourages to use Java 6 from Apple. Latest update working with IDEA on Yose...
Got the same problem with MacOS Catalina version 10.15.2 (19C57) after the PyCharm update. Workaround: I rolled back to the Version 2019.2 - 2019.2.5.
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
Or change asterisk to plus ``` <key>JVMVersion</key> <string>1.6+</string> ``` The drawback is OS X will with each IDEA start ask you for network permission. But Java 8 still have some bugs, especially on Retina devices and JetBrains still encourages to use Java 6 from Apple. Latest update working with IDEA on Yose...
If you have latest JDK, you could change info.plist to handle this. edit Info.plist file, in your jdk, for example: ``` /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Info.plist ``` update JVMCapabilities dictionary to have following values: ``` <key>JVMCapabilities</key> <array> ...
26,433,495
I upgraded my OS X to Yosemite and now my IntelliJ IDE is not starting. Here is the error message: > > To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime. > > >
2014/10/17
[ "https://Stackoverflow.com/questions/26433495", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1937081/" ]
I found that installing [Java for OS X 2014-001](http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US) after upgrading to Yosemite has solved it for me.
Or change asterisk to plus ``` <key>JVMVersion</key> <string>1.6+</string> ``` The drawback is OS X will with each IDEA start ask you for network permission. But Java 8 still have some bugs, especially on Retina devices and JetBrains still encourages to use Java 6 from Apple. Latest update working with IDEA on Yose...
7,673,371
How can i send an indexed array or assertive array from one action to another in zend.. Both the 2 functions are in same controller..
2011/10/06
[ "https://Stackoverflow.com/questions/7673371", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
inside action one ``` Zend_Registry::set("myArray",$myArray); ``` inside action two ``` $myArray = Zend_Registry::get("myArray"); ``` This will work if you are using "forward" action helper to jump from one action to another if you are doing it through redirection then you got to store it in session or use flash...
I believe that you can set a param of the request object, and it is then accessible from the next acton. Preventing polluting the global registry. ``` $this->getRequest()->setParam('key', $value); ```
4,067,434
How can I implement the following Windows function in Delphi? ``` HRESULT URLDownloadToFile( LPUNKNOWN pCaller, LPCTSTR szURL, LPCTSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB ); ``` URLDownloadToFile Function: <http://msdn.microsoft.com/en-us/library/ms775123(VS.85).aspx> The que...
2010/11/01
[ "https://Stackoverflow.com/questions/4067434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82070/" ]
``` uses URLMon, ShellApi; function DownloadFile(SourceFile, DestFile: string): Boolean; begin try Result := UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil) = 0; except Result := False; end; end; ```
Without header file we can not know what is LPBINDSTATUSCALLBACK for example. The best approach is to google around if someone has already made a conversion of the whole header file. If there isn't one, then try some C to Delphi convertor (http://www.drbob42.com/delphi/headconv.htm, <http://cc.embarcadero.com/item/2695...
22,825,729
How can I cause a Low Memory Condition on an Android device so that my Activity is destroyed and the associated Application class receives onTrimMemory() while my application is in the background. I am having issues in my app related to recovery from being killed by the Android OS, when in the background, and want to b...
2014/04/03
[ "https://Stackoverflow.com/questions/22825729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2865023/" ]
Another way to do it: In your device: Go to Settings -> Developer options and check "Dont keep activities". This will kill your activity as soon it goes in the background.
You can usually trigger this by throwing your app into the background, and then launching 10-20 apps (depending on the device). This will eventually cause your process to be terminated, which I would assume would be preceded by the `onTrimMemory()` callback.
22,825,729
How can I cause a Low Memory Condition on an Android device so that my Activity is destroyed and the associated Application class receives onTrimMemory() while my application is in the background. I am having issues in my app related to recovery from being killed by the Android OS, when in the background, and want to b...
2014/04/03
[ "https://Stackoverflow.com/questions/22825729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2865023/" ]
You can usually trigger this by throwing your app into the background, and then launching 10-20 apps (depending on the device). This will eventually cause your process to be terminated, which I would assume would be preceded by the `onTrimMemory()` callback.
While your app is on foreground, you can kill cached processes via shell ``` adb shell am kill-all ``` then leave your application (make it go background), soon it will receive a `onTrimMemory()` callback. This happens because system thinks too many apps are dying and that should be a low memory situation.
22,825,729
How can I cause a Low Memory Condition on an Android device so that my Activity is destroyed and the associated Application class receives onTrimMemory() while my application is in the background. I am having issues in my app related to recovery from being killed by the Android OS, when in the background, and want to b...
2014/04/03
[ "https://Stackoverflow.com/questions/22825729", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2865023/" ]
Another way to do it: In your device: Go to Settings -> Developer options and check "Dont keep activities". This will kill your activity as soon it goes in the background.
While your app is on foreground, you can kill cached processes via shell ``` adb shell am kill-all ``` then leave your application (make it go background), soon it will receive a `onTrimMemory()` callback. This happens because system thinks too many apps are dying and that should be a low memory situation.
6,347,242
I wish to show my webpage logo and menu before adding a chart that takes a while to load. I used the `onload` event to call the chart (Highcharts used), unfortunately the browser seems to wait until the chart is ready to load before showing anything. Html: ``` <body onload="chart();"> <div id="content"></div> </body...
2011/06/14
[ "https://Stackoverflow.com/questions/6347242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/190791/" ]
You're using jQuery. Start writing [unobtrusive JavaScript](http://en.wikipedia.org/wiki/Unobtrusive_JavaScript). ### HTML ``` <body> <div id="content"> <div id="chart"></div> </div> </body> ``` ### JavaScript ``` $(function () // on document ready, { showLogoAndMenu(); displayChart(); ...
``` <body onload="setTimeout(chart,100);"> ```
22,864,164
Is there a programmatic way to read all the widget a GWT page or Panel contains? I have several error labels in my form, all suffixed by "ErrorLabel" and I'd like to find them and clear them. I can do a list of them, but I figured out I can actually automate that if I had some... I am using UiBinder.
2014/04/04
[ "https://Stackoverflow.com/questions/22864164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3197244/" ]
> > Use `recursion` method to get all the children of any component. > > > Steps to follow: **(How to read the `UiField` names?)** * Add below entry in you gwt.xml ``` <inherits name="com.google.gwt.user.Debug"/> ``` * Use `debugId` along with `ui:field` as shown below in your `ui.xml` ``` <gwt:CheckBox ui:f...
Something like that ``` private void myFunction(RootPanel panel) { for (Widget w : panel) { if(w instanceof Label){ //do something } } } ```
22,864,164
Is there a programmatic way to read all the widget a GWT page or Panel contains? I have several error labels in my form, all suffixed by "ErrorLabel" and I'd like to find them and clear them. I can do a list of them, but I figured out I can actually automate that if I had some... I am using UiBinder.
2014/04/04
[ "https://Stackoverflow.com/questions/22864164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3197244/" ]
The simplest solution is to add a class name to all the labels - for example, "errorLabel", and add the following line to your CSS file: ``` .hide .errorLabel {display: none} ``` Then, if you need to hide/show all of these labels, you can do it with a single line of code: ``` parentPanel.addStyleName("hide"); paren...
Something like that ``` private void myFunction(RootPanel panel) { for (Widget w : panel) { if(w instanceof Label){ //do something } } } ```
28,322,241
I apologize in advance for the dumb question but I only learned some basic html a few years back. I don't remember much of it. I want to create a cheap menu with 2 buttons (images + hover) on top of a banner but they don't want to align horizontally and in the absolute center of the banner. Like this one <http://i.im...
2015/02/04
[ "https://Stackoverflow.com/questions/28322241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4528622/" ]
First convert your array to json when send it: ``` ... data: { "winnerList": JSON.stringify(winnerList) }, ... ``` Then in the action parse this json: ``` def slurper = new JsonSlurper() def result = slurper.parseText(params.winnerList) ```
I got a solution for my own question.... In jquery: ``` ............ data: { "winnerList": JSON.stringify(winnerList) }, ....... ``` In controller: ``` ............... def listWinnerIds= JSON.parse(params.winnerLists) .............. ``` this will give the values in a list like [1,2,3]
9,832,618
I am studying from the Stanford CS193P from Paul Hegarty. Then I see something like this, which I also see other people using: ``` - (id)init { self = [super init]; if (self) { [self someSetupFunctions]; } return self; } ``` Isn't that redundant? Why not just use: ``` - (id)init { self =...
2012/03/23
[ "https://Stackoverflow.com/questions/9832618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300224/" ]
You may want to do other things than passing messages to self. For example: ``` - (id)init { self = [super init]; if (self) { // set up ivars _anIvar = 5; } return self; } ```
What's really meant by `[self someSetupFunctions]` is some initialization code, not just a single method call, and a number of important things will fail if `self` is nil. Most notably, attempting to assign initial values to instance variables will crash.
9,832,618
I am studying from the Stanford CS193P from Paul Hegarty. Then I see something like this, which I also see other people using: ``` - (id)init { self = [super init]; if (self) { [self someSetupFunctions]; } return self; } ``` Isn't that redundant? Why not just use: ``` - (id)init { self =...
2012/03/23
[ "https://Stackoverflow.com/questions/9832618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300224/" ]
What's really meant by `[self someSetupFunctions]` is some initialization code, not just a single method call, and a number of important things will fail if `self` is nil. Most notably, attempting to assign initial values to instance variables will crash.
The `self = [super init]; if (self)` test is because some initialisers will return different objects, including `nil` if it's impossible to create an object that satisfies the condition required by the initialiser. In your own initialiser you need to defend against the superclass doing that, because if you try to acce...
9,832,618
I am studying from the Stanford CS193P from Paul Hegarty. Then I see something like this, which I also see other people using: ``` - (id)init { self = [super init]; if (self) { [self someSetupFunctions]; } return self; } ``` Isn't that redundant? Why not just use: ``` - (id)init { self =...
2012/03/23
[ "https://Stackoverflow.com/questions/9832618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/300224/" ]
You may want to do other things than passing messages to self. For example: ``` - (id)init { self = [super init]; if (self) { // set up ivars _anIvar = 5; } return self; } ```
The `self = [super init]; if (self)` test is because some initialisers will return different objects, including `nil` if it's impossible to create an object that satisfies the condition required by the initialiser. In your own initialiser you need to defend against the superclass doing that, because if you try to acce...
34,894,408
I am trying to create a `.txt` using JavaScript this worked: ```html <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type="text/javascript"> $("form").each(function() { $(this) }) var textarea = document.querySelector('textarea'); // document.qu...
2016/01/20
[ "https://Stackoverflow.com/questions/34894408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5549797/" ]
There is a specific tag for this case, specifying semantic meaning without showing the content. This is done with the `meta` tag with `itemprop` and `content` properties, and is well explained in the Getting Started section of [schema.org](http://schema.org/docs/gs.html): > > 3c. Missing/implicit information: use the...
You don't use a specific HTML tag, but rather semantic annotation. You have two options: [Microdata](https://en.wikipedia.org/wiki/Microdata_(HTML)) and [RDFa](https://en.wikipedia.org/wiki/RDFa). Both have [similar capabilities](https://stackoverflow.com/questions/8957902/microdata-vs-rdfa) and are understood by sear...
34,894,408
I am trying to create a `.txt` using JavaScript this worked: ```html <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type="text/javascript"> $("form").each(function() { $(this) }) var textarea = document.querySelector('textarea'); // document.qu...
2016/01/20
[ "https://Stackoverflow.com/questions/34894408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5549797/" ]
You don't use a specific HTML tag, but rather semantic annotation. You have two options: [Microdata](https://en.wikipedia.org/wiki/Microdata_(HTML)) and [RDFa](https://en.wikipedia.org/wiki/RDFa). Both have [similar capabilities](https://stackoverflow.com/questions/8957902/microdata-vs-rdfa) and are understood by sear...
You might consider using the "Custom Data Attributes". For example: `<p data-custom-name="any-value">...</p>`. See: <https://html5doctor.com/html5-custom-data-attributes/> and <https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes>
34,894,408
I am trying to create a `.txt` using JavaScript this worked: ```html <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type="text/javascript"> $("form").each(function() { $(this) }) var textarea = document.querySelector('textarea'); // document.qu...
2016/01/20
[ "https://Stackoverflow.com/questions/34894408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5549797/" ]
There is a specific tag for this case, specifying semantic meaning without showing the content. This is done with the `meta` tag with `itemprop` and `content` properties, and is well explained in the Getting Started section of [schema.org](http://schema.org/docs/gs.html): > > 3c. Missing/implicit information: use the...
You might consider using the "Custom Data Attributes". For example: `<p data-custom-name="any-value">...</p>`. See: <https://html5doctor.com/html5-custom-data-attributes/> and <https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes>
20,248,815
I am trying to use a script to run two linux dns commands WHOIS and DIG. So far my script is as follows: ``` #!/bin/bash for i in $1 do reg1=`whois $i` echo "*********WHOIS Results for $i*********" echo -e "[$i]\n$reg1" for j in 4.2.2.3 do reg=`dig any @$j $i ` echo -e "[$j]...
2013/11/27
[ "https://Stackoverflow.com/questions/20248815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2512255/" ]
You cannot set the views directory per request with Express, which is what you're trying to do. But you can use subdirectories in your calls to `res.render()`: ``` app.get('/admin/', function(req, res) { res.render('admin/index'); // renders '__dirname + /template/admin/index.ejs' }); app.get('/', function(req, ...
you can write your own middleware for this. Something like this: ``` var siteDir = "/client"; //default case; app.use(function(req,res,next){ if(req.path == '/admin') siteDir = '/admin'; else siteDir = '/client'; next(); }); app.engine('ejs', require('ejs-locals')); app.set('views', __dirname + ('/templat...
70,836,444
I have problem with my pip . Lately I was getting error when I was trying to install any packages The Error was: ( Pyautogui ) ``` Traceback (most recent call last): File "C:\Users\rati_\OneDrive\Desktop\PyAutoGUI-0.9.53.tar\PyAutoGUI-0.9.53\PyAutoGUI-0.9.53\setup.py", line 4, in <module> from setuptools import ...
2022/01/24
[ "https://Stackoverflow.com/questions/70836444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15425403/" ]
Module [`symbol`](https://docs.python.org/2.7/library/symbol.html) was a part of the standard library since the dawn of time. It was declared deprecated in [Python 3.9](https://docs.python.org/3.9/library/symbol.html) and finally removed in 3.10. For Python 3.10 one has to upgrade any 3rd-party library that imports `sy...
I just reinstalled pip3 with [the (official?) pip installer](https://bootstrap.pypa.io/get-pip.py). Since then it worked again.
104,388
Let's say we have some class `MyClass`: ``` public class MyClass { public void doSomething { // do some stuff try { OtherClass.staticMethod(); } catch (OtherClass.BadException e) { // do something with the exception } // do some other stuff...
2016/01/06
[ "https://salesforce.stackexchange.com/questions/104388", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/22036/" ]
You should probably not try to test the exception branch, and just accept the fact that you'll have less than 100% code coverage. This is based on three concepts: (1) you shouldn't include test-only code in a production code branch, (2) exception testing is sometimes non-trivial or even impossible to perform, so you si...
Yes there is a way to test without worry about the OtherClass implementation. What you're looking for is ApexMocks. <https://github.com/financialforcedev/fflib-apex-mocks> It's worth checking out all of the article links in the repo's README. In short, this framework allows you to stub out methods in OtherClass to 1)...
31,022,459
My initial question was answered here: [Looking up a value in a range that is between two given values](https://stackoverflow.com/questions/31004331/looking-up-a-value-in-a-range-that-is-between-two-given-values) But when trying to achieve the same result with more data rows than just one, I am struggling. Here is a ...
2015/06/24
[ "https://Stackoverflow.com/questions/31022459", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4477858/" ]
If your ranges in columns `P` and `Q` do *not* overlap, then you can simply check the input value in `N5` against each range using an `IF` formula. My `IF` formula defaults to a value of 0 if the input cannot be found in the range. Then I `SUM` over the `O` column to find the job which matched. ![enter image descripti...
you can use `SUMIFS` formula if the ranges does not overlap Example considering 544370 is mentioned in N3 cell `O3=SUMIFS(M:M,P:P,"<="&N3,Q:Q,">="&N3)` For non-numeric job value try this `=INDEX(M:M,SUMPRODUCT(--(P:P<=N3),--(Q:Q>=N3),ROW(A:A)))`
2,996,890
Is there any way to disable browsers popups about long running scripts (i.e. in Firefox and Safari) directly from the website? (And not from the browser settings)
2010/06/08
[ "https://Stackoverflow.com/questions/2996890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/257022/" ]
Only by breaking the long running script into pieces. See my answer to [Show javascript execution progress](https://stackoverflow.com/questions/2995805/show-javascript-execution-progress/2995896#2995896) for a solution for this.
Since you mentioned Firefox and Safari, you may want to use [Web Workers](http://www.whatwg.org/specs/web-workers/current-work/) (Firefox 3.5 and Safari 4). Execution of Web Workers happens in a separate process, and does not block the UI thread: * [Mozilla Dev Center: Using web workers](https://developer.mozilla.org/...
69,325,456
I tried to use this formula: ``` =IMPORTRANGE("https://docs.google.com/spreadsheets/d/11GoENoRd_niJjJUa-tBxDKuORVzxPLGPMl4HdzbSUPo/edit#gid=1393359549", "Выкупы!A1:A1") ``` But I got this error: [![error_img](https://i.stack.imgur.com/mV32J.png)](https://i.stack.imgur.com/mV32J.png) Can someone help me?
2021/09/25
[ "https://Stackoverflow.com/questions/69325456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
you can open this website for solution your problem : [link](https://blog.coupler.io/importrange-not-working/)
I found one solution after trying for days. its simple like this. Go to share the portion of the google sheets file which will be imported into or is not being properly imported. There you would remove the share links to existing emails and share to the public option to restricted and then redo the share.(This is almos...
36,441,899
At <https://jsfiddle.net/mgjftrdz/1/>, instead of the following values: ``` var availableTags = [ {label: 'honey', value: 1}, {label: 'apples', value: 2}, {label: 'milk', value: 3}, {label: 'tea', value: 4}, ``` I want to list AirportNames and AirportCodes like this: ``` var availableTags = [ ...
2016/04/06
[ "https://Stackoverflow.com/questions/36441899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1946932/" ]
Yes. Do not optimize the wrong element. So, no. Seriously, if you have a problem transferring aound 8000 small rows then you either have an utterly crappy sql server (way less than my quite old phone) Or transfer them over a slow connection (internet). In both cases SQL is not your problem (in the 2nd place please pu...
You can use this query as start point: ``` declare @t as varchar(max) select @t = coalesce(@t + ', ' + name, name) from syscolumns option (maxdop 1) select @t ``` But I recommend you to retain formatting logic in your .NET code, instead of moving it to T-SQL. It is hardly to see the performance difference in your ...
536
I've been adding links to the DDI Compendium in my questions and answers. However, not everyone has access to the compendium. I find those links very helpful when discussing specific D&D4 concepts/powers/whatever. I'm no longer certain that the links are a good thing if not everyone can use them so I thought I'd bring...
2010/10/04
[ "https://rpg.meta.stackexchange.com/questions/536", "https://rpg.meta.stackexchange.com", "https://rpg.meta.stackexchange.com/users/460/" ]
My vote is to keep the links in the answer as a supplemental resource, as long as you include a summary or cite the relevant bits so the question/answer stands on its own for those of us without a subscription. I'd assume that those who have a DDI subscription would appreciate the direct link. Maybe use a "... referenc...
Being the author of the answer linked by yhw42 I just *have* to add something to the discussion. **Disclaimer: none of the following points are directed at yhw42 or meant as personal attacks/insults but should be rather seen as my typical cynical way of expressing my opinion.** 1. I don't think my answer was bad or i...
13,944
Greetings, I have a WP site with over than 150k pageviews /day. It's running on a Intel Core i5 CPU 760 @ 2.80GHz, with Centos and 4 GB of RAM. The problem is WP consumes too much RAM and after a while serve gets overloaded and RAM runs out. I've tried many Apache tweeks but nothing seems to work. After I restart Ap...
2011/04/05
[ "https://wordpress.stackexchange.com/questions/13944", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/4445/" ]
Take a look here: [Performance tips for a large user base](https://wordpress.stackexchange.com/questions/7433/performance-tips-for-a-large-user-base/7446#7446) - it's a useful set of things to look at that go *beyond* just Apache. When looking to optimise performance, it's pretty important to look at the entire infras...
Compare Nginx and Apache and make a choice: * <http://www.webandblog.com/reviews/apache-vs-nginx-testing-performance-under-heavy-load/> * <http://www.joeandmotorboat.com/2008/02/28/apache-vs-nginx-web-server-performance-deathmatch/> * <http://blog.webfaction.com/a-little-holiday-present> * and zillions of blogs posts...
13,944
Greetings, I have a WP site with over than 150k pageviews /day. It's running on a Intel Core i5 CPU 760 @ 2.80GHz, with Centos and 4 GB of RAM. The problem is WP consumes too much RAM and after a while serve gets overloaded and RAM runs out. I've tried many Apache tweeks but nothing seems to work. After I restart Ap...
2011/04/05
[ "https://wordpress.stackexchange.com/questions/13944", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/4445/" ]
Souljacker, I would first take a look at your plugins. **[Star Ratings for Reviews](http://plugins.trac.wordpress.org/browser/star-rating-for-reviews/trunk/star-rating.php?rev=66785)** hasn't been updated for over 3 years and looks like its real heavy on the db. I saw some raw sql with some INNER JOINS that look troub...
Compare Nginx and Apache and make a choice: * <http://www.webandblog.com/reviews/apache-vs-nginx-testing-performance-under-heavy-load/> * <http://www.joeandmotorboat.com/2008/02/28/apache-vs-nginx-web-server-performance-deathmatch/> * <http://blog.webfaction.com/a-little-holiday-present> * and zillions of blogs posts...
13,944
Greetings, I have a WP site with over than 150k pageviews /day. It's running on a Intel Core i5 CPU 760 @ 2.80GHz, with Centos and 4 GB of RAM. The problem is WP consumes too much RAM and after a while serve gets overloaded and RAM runs out. I've tried many Apache tweeks but nothing seems to work. After I restart Ap...
2011/04/05
[ "https://wordpress.stackexchange.com/questions/13944", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/4445/" ]
Souljacker, I would first take a look at your plugins. **[Star Ratings for Reviews](http://plugins.trac.wordpress.org/browser/star-rating-for-reviews/trunk/star-rating.php?rev=66785)** hasn't been updated for over 3 years and looks like its real heavy on the db. I saw some raw sql with some INNER JOINS that look troub...
Take a look here: [Performance tips for a large user base](https://wordpress.stackexchange.com/questions/7433/performance-tips-for-a-large-user-base/7446#7446) - it's a useful set of things to look at that go *beyond* just Apache. When looking to optimise performance, it's pretty important to look at the entire infras...
13,944
Greetings, I have a WP site with over than 150k pageviews /day. It's running on a Intel Core i5 CPU 760 @ 2.80GHz, with Centos and 4 GB of RAM. The problem is WP consumes too much RAM and after a while serve gets overloaded and RAM runs out. I've tried many Apache tweeks but nothing seems to work. After I restart Ap...
2011/04/05
[ "https://wordpress.stackexchange.com/questions/13944", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/4445/" ]
Take a look here: [Performance tips for a large user base](https://wordpress.stackexchange.com/questions/7433/performance-tips-for-a-large-user-base/7446#7446) - it's a useful set of things to look at that go *beyond* just Apache. When looking to optimise performance, it's pretty important to look at the entire infras...
Working with prefork and Worker configurations is a tricky thing, altering some values will definitely helps in increase of performance and reduce in RAM usage, also please do remember that apache reserves some RAM, that doesn't mean that your are running out of RAM. Check [this article](http://www.hostocol.in/base/apa...
13,944
Greetings, I have a WP site with over than 150k pageviews /day. It's running on a Intel Core i5 CPU 760 @ 2.80GHz, with Centos and 4 GB of RAM. The problem is WP consumes too much RAM and after a while serve gets overloaded and RAM runs out. I've tried many Apache tweeks but nothing seems to work. After I restart Ap...
2011/04/05
[ "https://wordpress.stackexchange.com/questions/13944", "https://wordpress.stackexchange.com", "https://wordpress.stackexchange.com/users/4445/" ]
Souljacker, I would first take a look at your plugins. **[Star Ratings for Reviews](http://plugins.trac.wordpress.org/browser/star-rating-for-reviews/trunk/star-rating.php?rev=66785)** hasn't been updated for over 3 years and looks like its real heavy on the db. I saw some raw sql with some INNER JOINS that look troub...
Working with prefork and Worker configurations is a tricky thing, altering some values will definitely helps in increase of performance and reduce in RAM usage, also please do remember that apache reserves some RAM, that doesn't mean that your are running out of RAM. Check [this article](http://www.hostocol.in/base/apa...
17,395
Similarly to a recent [question](https://opendata.stackexchange.com/questions/16244/dataset-on-coronavirus-government-countermeasures-per-country-region-city) on lockdowns, wonder if there is a machine-readable dataset of covid-19 testing per country/state/region. Testing rate largely affects the official number of inf...
2020/04/12
[ "https://opendata.stackexchange.com/questions/17395", "https://opendata.stackexchange.com", "https://opendata.stackexchange.com/users/14909/" ]
OurWorldInDate site (that has excellent coverage of data around the pandemic) has asked the question two weeks ago <https://ourworldindata.org/covid-testing> and now provide an answer: <https://github.com/owid/covid-19-data/tree/master/public/data/testing>
Data for Italy: <https://github.com/pcm-dpc/COVID-19/tree/master/dati-andamento-nazionale> You just need the file: dpc-covid19-ita-andamento-nazionale.csv It is updated every day in the evening (gmt+1)
12,951,921
Hi I am trying to get more familiat with SQL and I am using MySql to test my SQL queries.I seem to be getting a sintax error in this statement: ``` CREATE TABLE dog ( id int(11) NOT NULL auto_increment, name varchar(255), descr text, size enum('small','medium','large'), date timestamp(14), PRIMARY KEY (id)...
2012/10/18
[ "https://Stackoverflow.com/questions/12951921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/985482/" ]
try mentioning like this ``` CREATE TABLE dog ( id int NOT NULL auto_increment, name varchar(255), descr text, size enum('small','medium','large'), date timestamp, PRIMARY KEY (id) ) ENGINE = InnoDB; ```
'`TIMESTAMP(14)`' is deprecated; use '`TIMESTAMP`' instead
12,951,921
Hi I am trying to get more familiat with SQL and I am using MySql to test my SQL queries.I seem to be getting a sintax error in this statement: ``` CREATE TABLE dog ( id int(11) NOT NULL auto_increment, name varchar(255), descr text, size enum('small','medium','large'), date timestamp(14), PRIMARY KEY (id)...
2012/10/18
[ "https://Stackoverflow.com/questions/12951921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/985482/" ]
'`TIMESTAMP(14)`' is deprecated; use '`TIMESTAMP`' instead
Try this : ``` CREATE TABLE dog ( id int NOT NULL auto_increment PRIMARY KEY, name varchar(255), descr text, size enum('small','medium','large'), date timestamp ) ENGINE = InnoDB; ``` PRIMARY KEY statement has to be precised with the field declaration
12,951,921
Hi I am trying to get more familiat with SQL and I am using MySql to test my SQL queries.I seem to be getting a sintax error in this statement: ``` CREATE TABLE dog ( id int(11) NOT NULL auto_increment, name varchar(255), descr text, size enum('small','medium','large'), date timestamp(14), PRIMARY KEY (id)...
2012/10/18
[ "https://Stackoverflow.com/questions/12951921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/985482/" ]
try mentioning like this ``` CREATE TABLE dog ( id int NOT NULL auto_increment, name varchar(255), descr text, size enum('small','medium','large'), date timestamp, PRIMARY KEY (id) ) ENGINE = InnoDB; ```
Try this : ``` CREATE TABLE dog ( id int NOT NULL auto_increment PRIMARY KEY, name varchar(255), descr text, size enum('small','medium','large'), date timestamp ) ENGINE = InnoDB; ``` PRIMARY KEY statement has to be precised with the field declaration
26,853,012
When starting Iceweasel in Debian Linux, I have to manually add a proxy in the network tab options. Is there a way to do it with the command line? Also, I would like to start Iceweasel on a specific home page.
2014/11/10
[ "https://Stackoverflow.com/questions/26853012", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4105608/" ]
I don't know how to add the proxy via terminal but you can open specific `url` using Terminal ``` firefox [option] -browser Open a browser window. -new-window <url> Open <url> in a new window. -new-tab <url> Open <url> in a new tab. -private-window <url> Open <url> in a new private window. ``` ex...
You can create a additional profile in firefox / iceweasel. 1. close iceweasel 2. run `iceweasel -P` 3. set the properties you want for this profile Now you can start iceweasel with `iceweasel -P <name of your profile>` Reference Link: [<https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
Instead of a yes/no question, use a question with custom buttons: ``` The file blah.txt has been modified. Would you like to save or discard it? +------+ +---------+ +--------+ | Save | | Discard | | Cancel | +------+ +---------+ +--------+ ```
MsgBox(“a file has been modified. Do you wish to save before quitting?”) With the following options * Save and Quit (default, left position) * Cancel (Center position, next to left button) * Discard (right position, with an amount of spacing between the other buttons and this one.) ``` The file xxx.txt has been...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
You should seek out the UI guidelines for the platform you are developing on (search for "human interface guidelines" or "look and feel design guidelines"). If they exist, you should follow them so your app is likely to conform to the user's expectations. For example, Apple has [specific guidelines](http://developer.ap...
Something else I personally think is important is setting focus to whichever button is the equivalent to cancel. I think a lot of users get accustomed to these kind of prompts and just hit enter without even reading what is on the dialog. When they do this I think in most situations it's better to play it safe and canc...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
Instead of a yes/no question, use a question with custom buttons: ``` The file blah.txt has been modified. Would you like to save or discard it? +------+ +---------+ +--------+ | Save | | Discard | | Cancel | +------+ +---------+ +--------+ ```
Something else I personally think is important is setting focus to whichever button is the equivalent to cancel. I think a lot of users get accustomed to these kind of prompts and just hit enter without even reading what is on the dialog. When they do this I think in most situations it's better to play it safe and canc...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
Your application should, as one of its primary goals, NEVER lose user's data. One way to accomplish that is saving regularly the work the user has done **without user intervention**. That's the paradigm most people are used to in real life. When people write in a notebook they don't expect the paper to ask "Do you wa...
Something else I personally think is important is setting focus to whichever button is the equivalent to cancel. I think a lot of users get accustomed to these kind of prompts and just hit enter without even reading what is on the dialog. When they do this I think in most situations it's better to play it safe and canc...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
Instead of a yes/no question, use a question with custom buttons: ``` The file blah.txt has been modified. Would you like to save or discard it? +------+ +---------+ +--------+ | Save | | Discard | | Cancel | +------+ +---------+ +--------+ ```
You should seek out the UI guidelines for the platform you are developing on (search for "human interface guidelines" or "look and feel design guidelines"). If they exist, you should follow them so your app is likely to conform to the user's expectations. For example, Apple has [specific guidelines](http://developer.ap...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
You should seek out the UI guidelines for the platform you are developing on (search for "human interface guidelines" or "look and feel design guidelines"). If they exist, you should follow them so your app is likely to conform to the user's expectations. For example, Apple has [specific guidelines](http://developer.ap...
I hate being asked if I want to save, personally. If I needed to I probably did. If I've forgotten then most programs I use have an auto-save feature. The idea about seeking out UI guidelines is good, but I agree with the person who suggested minimal user intervention. His analogy about writing on paper hit the nail o...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
Your application should, as one of its primary goals, NEVER lose user's data. One way to accomplish that is saving regularly the work the user has done **without user intervention**. That's the paradigm most people are used to in real life. When people write in a notebook they don't expect the paper to ask "Do you wa...
I hate being asked if I want to save, personally. If I needed to I probably did. If I've forgotten then most programs I use have an auto-save feature. The idea about seeking out UI guidelines is good, but I agree with the person who suggested minimal user intervention. His analogy about writing on paper hit the nail o...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
Something else I personally think is important is setting focus to whichever button is the equivalent to cancel. I think a lot of users get accustomed to these kind of prompts and just hit enter without even reading what is on the dialog. When they do this I think in most situations it's better to play it safe and canc...
I hate being asked if I want to save, personally. If I needed to I probably did. If I've forgotten then most programs I use have an auto-save feature. The idea about seeking out UI guidelines is good, but I agree with the person who suggested minimal user intervention. His analogy about writing on paper hit the nail o...
3,114,917
Which is better approach and why.
2010/06/25
[ "https://Stackoverflow.com/questions/3114917", "https://Stackoverflow.com", "https://Stackoverflow.com/users/109676/" ]
MsgBox(“a file has been modified. Do you wish to save before quitting?”) With the following options * Save and Quit (default, left position) * Cancel (Center position, next to left button) * Discard (right position, with an amount of spacing between the other buttons and this one.) ``` The file xxx.txt has been...
Something else I personally think is important is setting focus to whichever button is the equivalent to cancel. I think a lot of users get accustomed to these kind of prompts and just hit enter without even reading what is on the dialog. When they do this I think in most situations it's better to play it safe and canc...