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
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
I think maybe you are confused by an example that is often given to emphasize that the physics definition of "work" doesn't always match how it is used in everyday speech. If you move a rock *horizontally* at constant speed, then you are doing no work on the rock. Its kinetic and potential energy are both the same thro...
I think perhaps the easiest (perhaps way too didactic) method to understand it is in terms of currencies. For example, think of dollars (for potential energy), euros (for kinetic energy) and Yens (in the case of muscles chemical energy). In the example of lifting up a stone (supposing somehow it was originally in moti...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
The problem with work is the word we use for it. Since we work everyday, we're used to associate "physical work" and "effort", and that's confusing. Physical work is a well defined quantity, but it needs 3 surnames, and this is usually omitted. You must specify these three parameters: Work done [by some force] [on so...
I think perhaps the easiest (perhaps way too didactic) method to understand it is in terms of currencies. For example, think of dollars (for potential energy), euros (for kinetic energy) and Yens (in the case of muscles chemical energy). In the example of lifting up a stone (supposing somehow it was originally in moti...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
The problem with work is the word we use for it. Since we work everyday, we're used to associate "physical work" and "effort", and that's confusing. Physical work is a well defined quantity, but it needs 3 surnames, and this is usually omitted. You must specify these three parameters: Work done [by some force] [on so...
My professor explained it to me by giving me the spring example. Suppose there is a spring attached to a block of mass m at one end and wall at the other.Neglect friction everywhere. If we now pull the mass with constant velocity. Let's us see what changes happens: In the above example there are 3 objects that are m...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
Time to jump into the fray. This equation here $$W=\int\mathbf F\cdot\text d\mathbf x$$ is just the definition of the work $W$ done by a force $\mathbf F$ along some path that you are performing the integral over. It is always applicable, as it is a definition. However this equation $$W=\Delta K$$ is *only* valid whe...
The problem with work is the word we use for it. Since we work everyday, we're used to associate "physical work" and "effort", and that's confusing. Physical work is a well defined quantity, but it needs 3 surnames, and this is usually omitted. You must specify these three parameters: Work done [by some force] [on so...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
Time to jump into the fray. This equation here $$W=\int\mathbf F\cdot\text d\mathbf x$$ is just the definition of the work $W$ done by a force $\mathbf F$ along some path that you are performing the integral over. It is always applicable, as it is a definition. However this equation $$W=\Delta K$$ is *only* valid whe...
> > But if you imagine lifting up a rock from the ground at a constant speed, am I not doing work on the rock by converting the chemical energy stored in my muscles into the potential energy of the rock? > > > Yes, you do. There are a few things to be noted here. First, as you lift it up, the rock has to move whic...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
The problem with work is the word we use for it. Since we work everyday, we're used to associate "physical work" and "effort", and that's confusing. Physical work is a well defined quantity, but it needs 3 surnames, and this is usually omitted. You must specify these three parameters: Work done [by some force] [on so...
I think maybe you are confused by an example that is often given to emphasize that the physics definition of "work" doesn't always match how it is used in everyday speech. If you move a rock *horizontally* at constant speed, then you are doing no work on the rock. Its kinetic and potential energy are both the same thro...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
Assume you have two opposite forces of the same magnitude acting on a particle. The total work is zero, and there is no change in kinetic energy. However one of the forces made positive work on the particle and the other negative work. Whatever did positive work lost some form of energy, and the one that did negative w...
My professor explained it to me by giving me the spring example. Suppose there is a spring attached to a block of mass m at one end and wall at the other.Neglect friction everywhere. If we now pull the mass with constant velocity. Let's us see what changes happens: In the above example there are 3 objects that are m...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
I think maybe you are confused by an example that is often given to emphasize that the physics definition of "work" doesn't always match how it is used in everyday speech. If you move a rock *horizontally* at constant speed, then you are doing no work on the rock. Its kinetic and potential energy are both the same thro...
My professor explained it to me by giving me the spring example. Suppose there is a spring attached to a block of mass m at one end and wall at the other.Neglect friction everywhere. If we now pull the mass with constant velocity. Let's us see what changes happens: In the above example there are 3 objects that are m...
567,240
A previous post ([What Is Energy? Where did it come from?](https://physics.stackexchange.com/q/3014/)) defines work qualitatively as "a process in which energy is transformed from one form to another form". And mathematically, work is defined as: $$\Delta KE=\int\_{C} \vec{F}\cdot\mathrm d\vec{r}$$ But if you imagine...
2020/07/21
[ "https://physics.stackexchange.com/questions/567240", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/266613/" ]
Time to jump into the fray. This equation here $$W=\int\mathbf F\cdot\text d\mathbf x$$ is just the definition of the work $W$ done by a force $\mathbf F$ along some path that you are performing the integral over. It is always applicable, as it is a definition. However this equation $$W=\Delta K$$ is *only* valid whe...
I think perhaps the easiest (perhaps way too didactic) method to understand it is in terms of currencies. For example, think of dollars (for potential energy), euros (for kinetic energy) and Yens (in the case of muscles chemical energy). In the example of lifting up a stone (supposing somehow it was originally in moti...
78,521
What do the drummers do? It says they increase moral. What does moral equate to in attack/speed for affected soldiers? Seems like it makes them faster, but not 100% sure. What would be the best use for them?
2012/07/26
[ "https://gaming.stackexchange.com/questions/78521", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/7101/" ]
I wish there was more documentation on this game, but all I could find online was this: > > Drum Solider: can not attack but can increase attack rate and damage > > > I didn't notice an increase in attack rate, but I did seem to get more critical hits. However, I wasn't rigorous about my observations so take them...
The Drummer can increase the morale of soldiers with 30 or 40 percent. And when it upgrade to the third stage, it can covers more soliders.
78,521
What do the drummers do? It says they increase moral. What does moral equate to in attack/speed for affected soldiers? Seems like it makes them faster, but not 100% sure. What would be the best use for them?
2012/07/26
[ "https://gaming.stackexchange.com/questions/78521", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/7101/" ]
Upgrading the drummer only increases the radius of his influence over soldiers. Without an upgrade he can affect all the soldiers that are physically touching him. First upgrade allows him to enhance the 4 soldiers in the 2nd row away from him in each direction (up down left right), but not the soldiers in the corners ...
The Drummer can increase the morale of soldiers with 30 or 40 percent. And when it upgrade to the third stage, it can covers more soliders.
78,521
What do the drummers do? It says they increase moral. What does moral equate to in attack/speed for affected soldiers? Seems like it makes them faster, but not 100% sure. What would be the best use for them?
2012/07/26
[ "https://gaming.stackexchange.com/questions/78521", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/7101/" ]
What I actuall discovered is that upgrading also inproves his effect. first level gives about 10-15% boost for damage, and third level about 30%, however this is distracted from critical hits. The fist-rule I use is, if a drummer can boost at least 4 soldiers, or 2 soldiers and 1 hightened soldier, of if you heighten t...
The Drummer can increase the morale of soldiers with 30 or 40 percent. And when it upgrade to the third stage, it can covers more soliders.
19,730,239
Is it possible to tell if a jquery ajax request has been going on for more than a certain length of time? I would like to prompt users of my site if the request has been going on for 10 seconds to reload and retry, but I cant find anything in the documentation to meet my request.
2013/11/01
[ "https://Stackoverflow.com/questions/19730239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2875977/" ]
Try setting timeout property and get the error handler parameter. The possible values are `"timeout", "error", "abort", and "parsererror"` ``` $.ajax({ url: "/ajax_json_echo/", type: "GET", dataType: "json", timeout: 1000, success: function(response) { alert(response); }, error: function(x, t,...
Set a timeout and then cancel it once it ajax call completes. ``` var timer = setTimeout(function() { alert('Too long!'); }, 10000); $.getJSON(url, function() { clearTimeout(timer); }); ```
19,730,239
Is it possible to tell if a jquery ajax request has been going on for more than a certain length of time? I would like to prompt users of my site if the request has been going on for 10 seconds to reload and retry, but I cant find anything in the documentation to meet my request.
2013/11/01
[ "https://Stackoverflow.com/questions/19730239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2875977/" ]
So for all ajax requests in your site... you should do something like this... ``` $.ajaxSetup({ beforeSend: function(jqXHR, settings){ /* Generate a timer for the request */ jqXHR.timer = setTimeout(function(){ /* Ask the user to confirm */ if(confirm(settings.u...
Set a timeout and then cancel it once it ajax call completes. ``` var timer = setTimeout(function() { alert('Too long!'); }, 10000); $.getJSON(url, function() { clearTimeout(timer); }); ```
19,730,239
Is it possible to tell if a jquery ajax request has been going on for more than a certain length of time? I would like to prompt users of my site if the request has been going on for 10 seconds to reload and retry, but I cant find anything in the documentation to meet my request.
2013/11/01
[ "https://Stackoverflow.com/questions/19730239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2875977/" ]
Try setting timeout property and get the error handler parameter. The possible values are `"timeout", "error", "abort", and "parsererror"` ``` $.ajax({ url: "/ajax_json_echo/", type: "GET", dataType: "json", timeout: 1000, success: function(response) { alert(response); }, error: function(x, t,...
So for all ajax requests in your site... you should do something like this... ``` $.ajaxSetup({ beforeSend: function(jqXHR, settings){ /* Generate a timer for the request */ jqXHR.timer = setTimeout(function(){ /* Ask the user to confirm */ if(confirm(settings.u...
31,468,182
I am trying to build an app using `grunt build` and I got this error: ``` # grunt build Running "clean:dist" (clean) task Running "wiredep:app" (wiredep) task Running "wiredep:sass" (wiredep) task Running "includeSource:dist" (includeSource) task File "dist/index.html" created. Running "useminPrepare:html" (usemin...
2015/07/17
[ "https://Stackoverflow.com/questions/31468182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/719427/" ]
Try this: ``` npm install grunt-contrib-imagemin --save-dev ``` or change the version of imagemin to "grunt-contrib-imagemin": "^0.9.4"
updated the grunt-contrib-imagemin version in package.json "grunt-contrib-imagemin": "~1.0.0" then, npm clean cache npm install grunt-contrib-imagemin
31,468,182
I am trying to build an app using `grunt build` and I got this error: ``` # grunt build Running "clean:dist" (clean) task Running "wiredep:app" (wiredep) task Running "wiredep:sass" (wiredep) task Running "includeSource:dist" (includeSource) task File "dist/index.html" created. Running "useminPrepare:html" (usemin...
2015/07/17
[ "https://Stackoverflow.com/questions/31468182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/719427/" ]
Try this: ``` npm install grunt-contrib-imagemin --save-dev ``` or change the version of imagemin to "grunt-contrib-imagemin": "^0.9.4"
in your Gruntfile.js change : ``` src: '{,*/}*.{png,jpg,jpeg,gif}', ``` TO ``` src: '[*/*.{png,jpg,jpeg,gif,svg}]', ```
31,468,182
I am trying to build an app using `grunt build` and I got this error: ``` # grunt build Running "clean:dist" (clean) task Running "wiredep:app" (wiredep) task Running "wiredep:sass" (wiredep) task Running "includeSource:dist" (includeSource) task File "dist/index.html" created. Running "useminPrepare:html" (usemin...
2015/07/17
[ "https://Stackoverflow.com/questions/31468182", "https://Stackoverflow.com", "https://Stackoverflow.com/users/719427/" ]
in your Gruntfile.js change : ``` src: '{,*/}*.{png,jpg,jpeg,gif}', ``` TO ``` src: '[*/*.{png,jpg,jpeg,gif,svg}]', ```
updated the grunt-contrib-imagemin version in package.json "grunt-contrib-imagemin": "~1.0.0" then, npm clean cache npm install grunt-contrib-imagemin
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
Looking around a little, it seems that you don't always need to apply for a Chinese visa in your home country, but you generally need to have at least a work permit in the country where you apply. For example, the [Chinese Visa Application Service Center in New Delhi](http://www.visaforchina.in/visaen/visaView.html?met...
I found [this site](http://kz.china-embassy.org/rus/lsfw/visa/t530320.htm) (China Embassy in Kazakhstan Republic, only Russian and Chinese); there it says that you can apply for the China transit visa in this Consulate in the Kazakhstan republic, but I still can't find official information about it (don't know Chinese)...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
Edward Hasbrouck, a travel writer, has a pair of posts about getting Chinese visas outside of China specifically in Hong Kong. The information is a little dated, but might still be useful. <http://www.hasbrouck.org/blog/archives/001498.html> <http://hasbrouck.org/blog/archives/001598.html>
I found [this site](http://kz.china-embassy.org/rus/lsfw/visa/t530320.htm) (China Embassy in Kazakhstan Republic, only Russian and Chinese); there it says that you can apply for the China transit visa in this Consulate in the Kazakhstan republic, but I still can't find official information about it (don't know Chinese)...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
It probably depends on the country. I know of people that have gotten Chinese Visa's in Vietnam and Thailand so it's certainly possible, really the best thing to do is ask the embassy in question. As a fallback go to Hong Kong instead, I've got several visa's from Hong Kong for China, you can usually get them in less ...
I found [this site](http://kz.china-embassy.org/rus/lsfw/visa/t530320.htm) (China Embassy in Kazakhstan Republic, only Russian and Chinese); there it says that you can apply for the China transit visa in this Consulate in the Kazakhstan republic, but I still can't find official information about it (don't know Chinese)...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
Looking around a little, it seems that you don't always need to apply for a Chinese visa in your home country, but you generally need to have at least a work permit in the country where you apply. For example, the [Chinese Visa Application Service Center in New Delhi](http://www.visaforchina.in/visaen/visaView.html?met...
Update: It is possible again in Kazakhstan. Uzbekistan also still possible, but more difficult than before. It's not possible to get a Chinese visa in Kazakhstan at the moment. It is possible in Uzbekistan and Kyrygzstan. More information available in [Caravanistan](http://www.caravanistan.com/visa/china/) site. **ED...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
Looking around a little, it seems that you don't always need to apply for a Chinese visa in your home country, but you generally need to have at least a work permit in the country where you apply. For example, the [Chinese Visa Application Service Center in New Delhi](http://www.visaforchina.in/visaen/visaView.html?met...
**July 2013:** We successfully got our [Chinese visas while in Mongolia](http://twoyeartrip.com/blog/2013/08/getting-a-chinese-visa-in-ulaanbaatar-mongolia/) (link is to our blog). It took a bit of extra effort and supporting paperwork compared to applying from our home country (UK), but it was cheaper and the Chinese...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
Edward Hasbrouck, a travel writer, has a pair of posts about getting Chinese visas outside of China specifically in Hong Kong. The information is a little dated, but might still be useful. <http://www.hasbrouck.org/blog/archives/001498.html> <http://hasbrouck.org/blog/archives/001598.html>
Update: It is possible again in Kazakhstan. Uzbekistan also still possible, but more difficult than before. It's not possible to get a Chinese visa in Kazakhstan at the moment. It is possible in Uzbekistan and Kyrygzstan. More information available in [Caravanistan](http://www.caravanistan.com/visa/china/) site. **ED...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
Edward Hasbrouck, a travel writer, has a pair of posts about getting Chinese visas outside of China specifically in Hong Kong. The information is a little dated, but might still be useful. <http://www.hasbrouck.org/blog/archives/001498.html> <http://hasbrouck.org/blog/archives/001598.html>
**July 2013:** We successfully got our [Chinese visas while in Mongolia](http://twoyeartrip.com/blog/2013/08/getting-a-chinese-visa-in-ulaanbaatar-mongolia/) (link is to our blog). It took a bit of extra effort and supporting paperwork compared to applying from our home country (UK), but it was cheaper and the Chinese...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
It probably depends on the country. I know of people that have gotten Chinese Visa's in Vietnam and Thailand so it's certainly possible, really the best thing to do is ask the embassy in question. As a fallback go to Hong Kong instead, I've got several visa's from Hong Kong for China, you can usually get them in less ...
Update: It is possible again in Kazakhstan. Uzbekistan also still possible, but more difficult than before. It's not possible to get a Chinese visa in Kazakhstan at the moment. It is possible in Uzbekistan and Kyrygzstan. More information available in [Caravanistan](http://www.caravanistan.com/visa/china/) site. **ED...
1,043
For some countries you can only apply for a visa in your home country (Russia is such a country) Is China also such a country? I was thinking of applying for a visa in the Republic of Georgia or possibly Kazakhstan. I'm already travelling outside my own country (Australia) now.
2011/07/17
[ "https://travel.stackexchange.com/questions/1043", "https://travel.stackexchange.com", "https://travel.stackexchange.com/users/140/" ]
It probably depends on the country. I know of people that have gotten Chinese Visa's in Vietnam and Thailand so it's certainly possible, really the best thing to do is ask the embassy in question. As a fallback go to Hong Kong instead, I've got several visa's from Hong Kong for China, you can usually get them in less ...
**July 2013:** We successfully got our [Chinese visas while in Mongolia](http://twoyeartrip.com/blog/2013/08/getting-a-chinese-visa-in-ulaanbaatar-mongolia/) (link is to our blog). It took a bit of extra effort and supporting paperwork compared to applying from our home country (UK), but it was cheaper and the Chinese...
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
You can use the `animate` method: ``` $('#element').animate({width: 'toggle'}); ``` <http://jsfiddle.net/7ZBQa/>
Created a fiddle <http://jsfiddle.net/powtac/RqWk2/> ``` $("div").animate({width: 'toggle'}); ```
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
You can use the `animate` method: ``` $('#element').animate({width: 'toggle'}); ``` <http://jsfiddle.net/7ZBQa/>
If you needed it to be continuous, you can set up setTimeinterval as follows ``` <?php setInterval(function (){ $('div').animate({width: 'toggle'}); },200); ?> ```
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
There is another way, to use jquery ui. See [api jquery ui](http://api.jqueryui.com/toggle/) but it may not be always useful as it has its glitches Here [jsfiddle](http://jsfiddle.net/ne0gspzz/4/) to see the glitch, it does not move all the rest elements smoothly. I put here code, but it should be used with jQuery UI ...
**I wanted the Height to toggle so I used**(I used in my project) ``` function show_hide(target){ var x = document.querySelectorAll("." +target); var y = $( x ).next() $(y).animate({height: 'toggle'}); } ```
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
There is another way, to use jquery ui. See [api jquery ui](http://api.jqueryui.com/toggle/) but it may not be always useful as it has its glitches Here [jsfiddle](http://jsfiddle.net/ne0gspzz/4/) to see the glitch, it does not move all the rest elements smoothly. I put here code, but it should be used with jQuery UI ...
If you wish to toggle between two width's you could do something like below : ```js $('#A').click(function(){ if($(this).width() > 20){ $(this).animate({width: '20px'}) } else{ $(this).animate({width: '50%'}) } }); ``` ```css #A{ float:left; width:50%; height:300px; background:red; } #B{ min-h...
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
Created a fiddle <http://jsfiddle.net/powtac/RqWk2/> ``` $("div").animate({width: 'toggle'}); ```
i tried this, and works great! html code: ``` <div class="flip-container" ontouchstart="this.classList.toggle('hover');"> <div class="flipper"> <div class="front"> <!-- front content --> </div> <div class="back"> <!-- back content --> </div> </div> </div...
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
Created a fiddle <http://jsfiddle.net/powtac/RqWk2/> ``` $("div").animate({width: 'toggle'}); ```
There is another way, to use jquery ui. See [api jquery ui](http://api.jqueryui.com/toggle/) but it may not be always useful as it has its glitches Here [jsfiddle](http://jsfiddle.net/ne0gspzz/4/) to see the glitch, it does not move all the rest elements smoothly. I put here code, but it should be used with jQuery UI ...
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
Created a fiddle <http://jsfiddle.net/powtac/RqWk2/> ``` $("div").animate({width: 'toggle'}); ```
If you wish to toggle between two width's you could do something like below : ```js $('#A').click(function(){ if($(this).width() > 20){ $(this).animate({width: '20px'}) } else{ $(this).animate({width: '50%'}) } }); ``` ```css #A{ float:left; width:50%; height:300px; background:red; } #B{ min-h...
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
There is another way, to use jquery ui. See [api jquery ui](http://api.jqueryui.com/toggle/) but it may not be always useful as it has its glitches Here [jsfiddle](http://jsfiddle.net/ne0gspzz/4/) to see the glitch, it does not move all the rest elements smoothly. I put here code, but it should be used with jQuery UI ...
If you needed it to be continuous, you can set up setTimeinterval as follows ``` <?php setInterval(function (){ $('div').animate({width: 'toggle'}); },200); ?> ```
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
i tried this, and works great! html code: ``` <div class="flip-container" ontouchstart="this.classList.toggle('hover');"> <div class="flipper"> <div class="front"> <!-- front content --> </div> <div class="back"> <!-- back content --> </div> </div> </div...
**I wanted the Height to toggle so I used**(I used in my project) ``` function show_hide(target){ var x = document.querySelectorAll("." +target); var y = $( x ).next() $(y).animate({height: 'toggle'}); } ```
14,470,088
I'm creating a website and on one page of the site (it's .php) I have two links. The first reads register and the next reads login. I am using jquery to create a popup and which form pops up depend on the link clicked. (I am trying to do this but not able to). I have 2 files in total (logReg.php) and (popup.css). Whe...
2013/01/22
[ "https://Stackoverflow.com/questions/14470088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2002059/" ]
You can use the `animate` method: ``` $('#element').animate({width: 'toggle'}); ``` <http://jsfiddle.net/7ZBQa/>
**I wanted the Height to toggle so I used**(I used in my project) ``` function show_hide(target){ var x = document.querySelectorAll("." +target); var y = $( x ).next() $(y).animate({height: 'toggle'}); } ```
28,596,715
I want to be able to loop every second element of a given list. I can do this recursively as so: ``` check validate (x:xs) = check (validate x) (tail xs) ``` But the problem is that I need a function that accepts a list as parameter, then returns a list consisting of only every second element in the list, starting w...
2015/02/19
[ "https://Stackoverflow.com/questions/28596715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4333347/" ]
``` second (x:y:xs) = y : second xs; second _ = [] ``` List comprehension may not be useful.
One of the Haskellish approaches would be something with `map`, `filter`, and `zip`. ``` second xs = map fst $ filter (odd . snd) $ zip xs [1..] ``` If you really wanted to use list comprehension, you could use the parallel list comprehension extension. ``` {-# LANGUAGE ParallelListComp #-} second xs = [ x | (x, n)...
28,596,715
I want to be able to loop every second element of a given list. I can do this recursively as so: ``` check validate (x:xs) = check (validate x) (tail xs) ``` But the problem is that I need a function that accepts a list as parameter, then returns a list consisting of only every second element in the list, starting w...
2015/02/19
[ "https://Stackoverflow.com/questions/28596715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4333347/" ]
``` second (x:y:xs) = y : second xs; second _ = [] ``` List comprehension may not be useful.
You can also try mutual recursion ``` first [] = [] first (x:xs) = x:second xs second [] = [] second (x:xs) = first xs ``` such as ``` > first [1..10] [1,3,5,7,9] > second [1..10] [2,4,6,8,10] ```
28,596,715
I want to be able to loop every second element of a given list. I can do this recursively as so: ``` check validate (x:xs) = check (validate x) (tail xs) ``` But the problem is that I need a function that accepts a list as parameter, then returns a list consisting of only every second element in the list, starting w...
2015/02/19
[ "https://Stackoverflow.com/questions/28596715", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4333347/" ]
You can also try mutual recursion ``` first [] = [] first (x:xs) = x:second xs second [] = [] second (x:xs) = first xs ``` such as ``` > first [1..10] [1,3,5,7,9] > second [1..10] [2,4,6,8,10] ```
One of the Haskellish approaches would be something with `map`, `filter`, and `zip`. ``` second xs = map fst $ filter (odd . snd) $ zip xs [1..] ``` If you really wanted to use list comprehension, you could use the parallel list comprehension extension. ``` {-# LANGUAGE ParallelListComp #-} second xs = [ x | (x, n)...
18,101
А от какого корня произошло слово "здание"? Если в словах "постройка", "сооружение" понятно, от какого процесса это все происходит, а вот как насчет "здания"? Не родственное ли ему "создание"?
2013/04/05
[ "https://rus.stackexchange.com/questions/18101", "https://rus.stackexchange.com", "https://rus.stackexchange.com/users/3/" ]
Да, родственно.Здание - заимствовано из ст.-сл. яз. Там оно образовано от причастия зьданъ, относящееся к глаголу зьдати-создавать, строить, в свою очередь производного от зьдъ-глина.в др.русском зьдарь-горшечник, зьдатель-строитель. Когда в Библии говорится, что "Бог съзьда Адама", это и значит "вылепил из глины.." Та...
*Здание,* *зодчий*, а ещё им родственно слово *гнездо* (соЗДано ГНЕтом).
4,214,651
Hi everyone I am working on an application which records the user sound and save that to NSDocumentDirectory.The data files are saving well.But the problem is that i want to play those files.I am using the table view for this to populate it with the number of files in the NSDocumentDirectory.But the table shows only on...
2010/11/18
[ "https://Stackoverflow.com/questions/4214651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/479201/" ]
Use an enumerator to simplify iterating through the Documents directory to search for music files. ``` //Use an enumerator to store all the valid music file paths at the top level of your App's Documents directory NSDirectoryEnumerator *directoryEnumerator = [[NSFileManager defaultManager] enumeratorA...
You need `NSFileManager`'s `contentsOfDirectoryAtPath:error:` method to get an array of files in the request directory. Then iterate over that array to find the file name you're looking for.
15,977,149
I have UITableViewCells in the same section which have gaps between them. I coloured each cell's contentView background and did an NSLog to show that it's the same height as the cells. Still, there's a gap between them. They're definitely in the same section as each other. Any ideas as to what could be causing the gap...
2013/04/12
[ "https://Stackoverflow.com/questions/15977149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/561395/" ]
I'm not sure if you have used this: ``` - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 78; } ``` And Checked that the Cell really is 78(just for arguments sake) in IB. And then use: ``` tableView.sectionHeaderHeight = 0.0; ``` And set the style of the t...
have you tried setting seperator style to none? ``` tableview.separatorType = UITableViewCellSeparatorStyleNone ```
15,977,149
I have UITableViewCells in the same section which have gaps between them. I coloured each cell's contentView background and did an NSLog to show that it's the same height as the cells. Still, there's a gap between them. They're definitely in the same section as each other. Any ideas as to what could be causing the gap...
2013/04/12
[ "https://Stackoverflow.com/questions/15977149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/561395/" ]
I'm not sure if you have used this: ``` - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 78; } ``` And Checked that the Cell really is 78(just for arguments sake) in IB. And then use: ``` tableView.sectionHeaderHeight = 0.0; ``` And set the style of the t...
If you are talking about a 1 pixel gap, that is the cell separator. You can remove this by setting a property on the table view: ``` self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; ``` If you wanted to change the color of that separator use the `separatorColor` property. --- If you are talking a...
15,977,149
I have UITableViewCells in the same section which have gaps between them. I coloured each cell's contentView background and did an NSLog to show that it's the same height as the cells. Still, there's a gap between them. They're definitely in the same section as each other. Any ideas as to what could be causing the gap...
2013/04/12
[ "https://Stackoverflow.com/questions/15977149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/561395/" ]
I'm not sure if you have used this: ``` - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 78; } ``` And Checked that the Cell really is 78(just for arguments sake) in IB. And then use: ``` tableView.sectionHeaderHeight = 0.0; ``` And set the style of the t...
To add to the set of great answers, sometimes you just need to extend the background height as mentioned by Leeloo: ``` cellFrameBackground.size.height += 1; ``` Then, make your cell clip to bounds: ``` cell.clipsToBounds = YES; ``` And, voila.
2,537,357
i am raising exception using ``` if UserId == '' and Password == '': raise Exception.MyException , "wrong userId or password" ``` but i want print the error message on same page ``` class MyException(Exception): def __init__(self,msg): Exception.__init__(self,msg) ```
2010/03/29
[ "https://Stackoverflow.com/questions/2537357", "https://Stackoverflow.com", "https://Stackoverflow.com/users/289561/" ]
You are not using the [Users API](http://code.google.com/appengine/docs/python/gettingstarted/usingusers.html)? Assuming you are handling a POST request, how about this: ``` class LoginError(Exception): CODES = { 'mismatch': 'Wrong credentials', 'disabled': 'Account disabled' } ... try: // your authentica...
Why raising an exception instead of just stop function execution and redirect to new page using return statement
176,040
I want to get a string between two patterns. The pattern is the first environment `<p> </p>` in an html file. ``` <p>Sorcery, R (1) </p> <p class="ctext"><b>As an additional cost to cast Goblin Grenade, sacrifice a Goblin.<br><br>Goblin Grenade deals 5 damage to target creature or player.<...
2014/12/26
[ "https://unix.stackexchange.com/questions/176040", "https://unix.stackexchange.com", "https://unix.stackexchange.com/users/-1/" ]
Don't parse HTML with regex, instead, use a proper HTML parser. ### theory : According to the compiling theory, HTML can't be parsed using regex based on [finite state machine](http://en.wikipedia.org/wiki/Finite-state_machine). Due to hierarchical construction of HTML you need to use a [pushdown automaton](http://en...
Disclaimer: @sputnick answer is clearly the right way to go. (I love xmllint and i use it for several XML/HTML tasks; thank you for teaching me about xpath option!!) Nevertheless other less robust techniques can also be useful in disposable scripting... Getting the first paragraph with regex (in Perl) ``` perl -n0e...
4,318,558
We were asked to find the limit of $(\frac{1}{x})^{\sin x}$. The following picture is the solution shown by our mentor. But I have a different approach. ![](https://i.stack.imgur.com/O7xie.jpg) $$\lim\_{x \to 0} \left(\frac{1}{x}\right)^{\sin x}=e^{\lim\limits\_{x \to 0} ((\frac{1}{x}-1)\sin x)}=e^{\lim\limits\_{x \to...
2021/11/28
[ "https://math.stackexchange.com/questions/4318558", "https://math.stackexchange.com", "https://math.stackexchange.com/users/964882/" ]
By definition, if the domain of $\gamma$ is $[a,b]$, then$$\int\_\gamma\frac1{z^2}\,\mathrm dz=\int\_a^b\frac{\gamma'(t)}{\gamma^2(t)}\,\mathrm dt$$and it seems to me that you are not taking that $\gamma'(t)$ into account. To be more concrete, take $\gamma\colon[0,\pi]\longrightarrow\Bbb C$ defined by $\gamma(t)=e^{it...
After the substitution $z=e^{i\theta} \rightarrow dz=ie^{i\theta}d\theta$, you're left with $I=i\int\_0^\pi e^{-i\theta}d\theta=2$
62,441
I would like to create a filter which will react if received message has 2 attached files (and not zero, one, three etc.). I am aware about `has:attachment` option. But is there `has two attachments` (or something similar) option?
2014/06/09
[ "https://webapps.stackexchange.com/questions/62441", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/106414/" ]
There isn't a method for number of attachments, although the filter options from Gmail are actually really good. What you can use though is `filename:.doc`, `filename:.pdf` etc. so if you’re looking for two attachments of two different filenames you can use `filename:.doc OR filename:.txt` which will filter those email...
MetisMe Attachments App can solve your concern. It folders all attachments in one folder giving details about each of them. You can then do whatever you want with the attachments (download, delete, forward, share on cloud). Give it a shot
1,996,232
here is part of my code this ``` <%= Html.ActionLink(Model[x].Title, "Index", "q", new { slug = Model[x].TitleSlug, id = Model[x].PostID }, null)%> ``` produces this url ``` http://localhost:61158/q/is_there_another_indiana_jones_movie_in_the_works/4 ``` but I want to produce a url with a fragment, like this: `...
2010/01/03
[ "https://Stackoverflow.com/questions/1996232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/184773/" ]
There are two "mega overloads" of ActionLink that take a fragment parameter: ``` public static string ActionLink(this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes); public st...
You need to call [this overload](http://msdn.microsoft.com/en-us/library/dd460522.aspx)
1,996,232
here is part of my code this ``` <%= Html.ActionLink(Model[x].Title, "Index", "q", new { slug = Model[x].TitleSlug, id = Model[x].PostID }, null)%> ``` produces this url ``` http://localhost:61158/q/is_there_another_indiana_jones_movie_in_the_works/4 ``` but I want to produce a url with a fragment, like this: `...
2010/01/03
[ "https://Stackoverflow.com/questions/1996232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/184773/" ]
There are two "mega overloads" of ActionLink that take a fragment parameter: ``` public static string ActionLink(this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes); public st...
Fragments are supported in MVC 5. (See <https://msdn.microsoft.com/en-us/library/dd460522(v=vs.118).aspx> and <https://msdn.microsoft.com/en-us/library/dd492938(v=vs.118).aspx>.) So your code would be ``` Html.ActionLink(Model[x].Title, "Index", "q", new { slug = Model[x].TitleSlug, id = Model[x].PostID }, null, "1",...
1,996,232
here is part of my code this ``` <%= Html.ActionLink(Model[x].Title, "Index", "q", new { slug = Model[x].TitleSlug, id = Model[x].PostID }, null)%> ``` produces this url ``` http://localhost:61158/q/is_there_another_indiana_jones_movie_in_the_works/4 ``` but I want to produce a url with a fragment, like this: `...
2010/01/03
[ "https://Stackoverflow.com/questions/1996232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/184773/" ]
You need to call [this overload](http://msdn.microsoft.com/en-us/library/dd460522.aspx)
Fragments are supported in MVC 5. (See <https://msdn.microsoft.com/en-us/library/dd460522(v=vs.118).aspx> and <https://msdn.microsoft.com/en-us/library/dd492938(v=vs.118).aspx>.) So your code would be ``` Html.ActionLink(Model[x].Title, "Index", "q", new { slug = Model[x].TitleSlug, id = Model[x].PostID }, null, "1",...
3,400,846
At the moment I have a nice class that generates HTML and allows me to create pages without having to worry about things like closing tags, proper nesting, or clear formatting. The syntax is simple and straight forward, ``` //Create an anchor tag $anchor = new Tag("a", array("name"=>"anchor"); //Create a paragraph $pa...
2010/08/03
[ "https://Stackoverflow.com/questions/3400846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/385011/" ]
I'd say bite the bullet, go for built in DOM. To give you a few pointers about your concerns: * 'sparse documentation': while the PHP manual is perhaps not that verbose (in my opinion enough, but indeed less then some older functionality), it is with very few exceptions the DOM standard: documentation for any implemen...
I have not yet run into any issues with parsing well-formed HTML with DomDocument... There are some issues if the HTML is not well formed (Mis-matched tags, no closing `>`, etc), but with well formed, it's quite easy. ``` $dom = new DomDocument(); $dom->loadHtml($html); $xpath = new DomXpath($dom); $elements = $xpath...
3,400,846
At the moment I have a nice class that generates HTML and allows me to create pages without having to worry about things like closing tags, proper nesting, or clear formatting. The syntax is simple and straight forward, ``` //Create an anchor tag $anchor = new Tag("a", array("name"=>"anchor"); //Create a paragraph $pa...
2010/08/03
[ "https://Stackoverflow.com/questions/3400846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/385011/" ]
I'd say bite the bullet, go for built in DOM. To give you a few pointers about your concerns: * 'sparse documentation': while the PHP manual is perhaps not that verbose (in my opinion enough, but indeed less then some older functionality), it is with very few exceptions the DOM standard: documentation for any implemen...
The only trouble with PHP's DOM is that it's quite picky about loading malformed HTML. It will choke and flat-out refuse to load a lot of things that most browsers will happily fly over, requiring some pre-loading hacks/cleanups to make it acceptable. Usually not a problem, but when writing a screen scraper for a sit...
7,119,588
Thinking of using MinGW as an alternative to VC++ on Windows, but am worried about compatibility issues. I am thinking in terms of behaviour, performance on Windows (any chance a MinGW compiled EXE might act up). Also, in terms of calling the Windows API, third-party DLLs, generatic and using compatible static librarie...
2011/08/19
[ "https://Stackoverflow.com/questions/7119588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/731262/" ]
First, MinGW is not a compiler, but an environment, it is bundled with gcc. If you think of using `gcc` to compile code and have it call the Windows API, it's okay as it's C; but for C++ DLLs generated by MSVC, you might have a harsh wake-up call. The main issue is that in C++, each compiler has its own name mangling...
It is possible to compile a large amount of C++ code developed for VC++ with the MinGW toolchain; however, the ease with which you complete this task depends significantly on how C++-standards-compliant the code is. If the C++ code utilizes VC++ extensions, such as [`__uuidof`](http://msdn.microsoft.com/en-us/library/...
48,109,842
I want to show remain text of line underneath it's upper line in UILabel. How can i do that? I used UILabel for to show this text and i set **Lines** = 0. Any help would be greatly appreciated. ``` cell.Describtionlabel.text = "Intelligient Keyboard Engine (IKE™) \n\t- When typing up IKE will give you suggestions and...
2018/01/05
[ "https://Stackoverflow.com/questions/48109842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6858380/" ]
There is a simple solution to your problem. Simply create a property which will combine the both parts of the URL: ``` // In your ViewModel public string CombinedUrl => $"{firstPart}/{secondPart}"; // In your XAML <Image Source="{Binding CombinedUrl}" HorizontalOptions="Start" VerticalOptions="Start" W...
Finally, solve the issue using the Ivalueconverter. The mainurl is stored in a variable using Application.Current.Properties. The second web service is a list of items. So I need to join the two url and show it in the UI. For this, I am using IValueConverter. My converter code: ``` public class UrlsLinkconverter : I...
1,342,789
For years, I had the impression that a single process can only use at most one core of the CPU, but recently I found two examples where a single process used all the cores of a multi-core Windows system. One of them is easy to test for most people: <http://fitgirl-repacks.site/donate-by-mining/> Disabling the multi-p...
2018/07/24
[ "https://superuser.com/questions/1342789", "https://superuser.com", "https://superuser.com/users/926932/" ]
A program can be written to make use of multiple threads, thus allowing them to use more than one core. A program can also be written to split itself into distinct *processes*, each with one or more threads to work. There is a very subtle but real difference between multi-thread and multi-process. Disabling the mul...
There are several ways a single process can use more than one core. The most obvious way they can do is by creating multiple threads of execution. Each thread can be scheduled on a core to provide direct use of more than one core by a single process. But there are also other ways a single process can use more than on...
41,615,948
I cannot seem to figure out how to kill this process. I already know that i can, and have been, just running the server on a different port, but it's just annoying me that i can't figure this out. Below you'll see first the error i get when i try to run rails s then all of my attempts to find the PID and kill. ```...
2017/01/12
[ "https://Stackoverflow.com/questions/41615948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5830448/" ]
find your `rails s` process PID and kill it ``` $ ps aux | grep -v grep | grep rails $ sudo kill -9 <pid_of_rails_s_from_above> ``` or you can try this one liner ``` $ sudo kill -9 $(lsof -i tcp:3000 -t) ```
``` tmp/pids $ kill -9 $(cat server.pid) ```
41,615,948
I cannot seem to figure out how to kill this process. I already know that i can, and have been, just running the server on a different port, but it's just annoying me that i can't figure this out. Below you'll see first the error i get when i try to run rails s then all of my attempts to find the PID and kill. ```...
2017/01/12
[ "https://Stackoverflow.com/questions/41615948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5830448/" ]
``` tmp/pids $ kill -9 $(cat server.pid) ```
ps aux | grep 3000 sudo kill -9 Which kill process force fully
41,615,948
I cannot seem to figure out how to kill this process. I already know that i can, and have been, just running the server on a different port, but it's just annoying me that i can't figure this out. Below you'll see first the error i get when i try to run rails s then all of my attempts to find the PID and kill. ```...
2017/01/12
[ "https://Stackoverflow.com/questions/41615948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5830448/" ]
find your `rails s` process PID and kill it ``` $ ps aux | grep -v grep | grep rails $ sudo kill -9 <pid_of_rails_s_from_above> ``` or you can try this one liner ``` $ sudo kill -9 $(lsof -i tcp:3000 -t) ```
ps aux | grep 3000 sudo kill -9 Which kill process force fully
41,615,948
I cannot seem to figure out how to kill this process. I already know that i can, and have been, just running the server on a different port, but it's just annoying me that i can't figure this out. Below you'll see first the error i get when i try to run rails s then all of my attempts to find the PID and kill. ```...
2017/01/12
[ "https://Stackoverflow.com/questions/41615948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5830448/" ]
find your `rails s` process PID and kill it ``` $ ps aux | grep -v grep | grep rails $ sudo kill -9 <pid_of_rails_s_from_above> ``` or you can try this one liner ``` $ sudo kill -9 $(lsof -i tcp:3000 -t) ```
While I run rails, I get the following output for lsof: `$ sudo lsof -n -i4TCP:3000 | grep LISTEN ruby 23582 username 14u IPv4 0x2c5fd1f36e3c475f 0t0 TCP *:hbci (LISTEN)` So you already seem to have figured out what process is runnning on port 3000, a `postgres` process owned by the `postgres` user and probably not r...
41,615,948
I cannot seem to figure out how to kill this process. I already know that i can, and have been, just running the server on a different port, but it's just annoying me that i can't figure this out. Below you'll see first the error i get when i try to run rails s then all of my attempts to find the PID and kill. ```...
2017/01/12
[ "https://Stackoverflow.com/questions/41615948", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5830448/" ]
While I run rails, I get the following output for lsof: `$ sudo lsof -n -i4TCP:3000 | grep LISTEN ruby 23582 username 14u IPv4 0x2c5fd1f36e3c475f 0t0 TCP *:hbci (LISTEN)` So you already seem to have figured out what process is runnning on port 3000, a `postgres` process owned by the `postgres` user and probably not r...
ps aux | grep 3000 sudo kill -9 Which kill process force fully
59,885,578
I'm trying to deploy my ruby on rails 6 application to heroku and I'm getting: ``` ... remote: I, [2020-01-23T18:51:26.163296 #1627] INFO -- : Writing /tmp/build_f6fcbd9561d1b9a0ac9f0eb2c4fc1207/public/assets/semantic-ui/brand-icons-42e369dc8c372973ba77a826b62d2c7a2070532313df832a23288ddb76974158.ttf remote: ...
2020/01/23
[ "https://Stackoverflow.com/questions/59885578", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1418118/" ]
If you take a look at `vendor/laravel/framework/src/Illuminate/Routing/Router.php` you will see this piece of code: ``` public function auth(array $options = []) { // Authentication Routes... $this->get('login', 'Auth\LoginController@showLoginForm')->name('login'); $this->post('login', 'Auth\LoginControlle...
The logout route is a POST request as stated by others. If you want to use it you ```html <a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">Logout</a> <form id="logout-form" action="{{ route('logout') }}" method="POST" class="hidden"> {{ csrf_field()...
50,857,557
I fetched data dynamically from from MySQL using a drop down menu through Ajax which was successful but when I echo the array values, instead of giving me the list of emails it was showing just symbols. Take a look at the image below: [![enter image description here](https://i.stack.imgur.com/v3TgI.png)](https://i.sta...
2018/06/14
[ "https://Stackoverflow.com/questions/50857557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7971266/" ]
It's because the values of `result` and `odd` are "null". Firebase does not support Null values. Checkout out [this question](https://stackoverflow.com/questions/27580844/firebase-wont-save-keys-with-null-values). That question references the documentation for Firebase, which includes this line: *Passing null for the ...
I seems like Firebase Realtime Database does not like null values! So I have to set `odds` and all values of `result` to something to have this fixed! The working JSON is: ``` { "_links": { "self": { "href": "http://api.football-data.org/v1/fixtures/165069" }, "competition": { "href": "http:...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
The first book I read about Buddhism described the Sermon at Benares, i.e. the *Dhammacakkappavattana*, as explaining that the cause of suffering (the second noble truth) is, > > ... the craving to have what you don't have; the craving to keep what you can't keep; the craving to live; even the *craving to die*. > > ...
You shouldn't even think about things like suicide. Thoughts will be full of negative emotions and states that it will drag you to lower planes. When you are doing the act you will have negative thoughts which would mean that your next life is bad. You are also breaking the precept of not killing which is very grave...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
The first book I read about Buddhism described the Sermon at Benares, i.e. the *Dhammacakkappavattana*, as explaining that the cause of suffering (the second noble truth) is, > > ... the craving to have what you don't have; the craving to keep what you can't keep; the craving to live; even the *craving to die*. > > ...
The following only is relevant if you follow Buddhism\ the following are all from Shantideva's text: 1. "Upon finding the boat of human birth now, cross the great river of suffering. O fool, there is no time to sleep, for this boat is hard to catch again." 2. When shall I encounter the extremely rare appearance of th...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
Have you been to see a doctor about this? Depression can cause life to lack appeal. Why is life worth living is one of those questions that cannot be answered in words, it's an inner feeling that doesn't need an explanation that most have felt at some point. It's a sign of good health to have a passion for life. If w...
The [sutta](http://www.sacred-texts.com/bud/bits/bits077.htm) doesn't say that the Buddha allowed him to commit suicide. When Mara reported this to the Buddha, venerable Godhika committed suicide. Then the Buddha saw what has happened and said that he has attained Nibbana. According to Bhikkhu Vinaya, the only allowa...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
The first book I read about Buddhism described the Sermon at Benares, i.e. the *Dhammacakkappavattana*, as explaining that the cause of suffering (the second noble truth) is, > > ... the craving to have what you don't have; the craving to keep what you can't keep; the craving to live; even the *craving to die*. > > ...
Have you been to see a doctor about this? Depression can cause life to lack appeal. Why is life worth living is one of those questions that cannot be answered in words, it's an inner feeling that doesn't need an explanation that most have felt at some point. It's a sign of good health to have a passion for life. If w...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
The first book I read about Buddhism described the Sermon at Benares, i.e. the *Dhammacakkappavattana*, as explaining that the cause of suffering (the second noble truth) is, > > ... the craving to have what you don't have; the craving to keep what you can't keep; the craving to live; even the *craving to die*. > > ...
This [Scientific American article](http://www.scientificamerican.com/article/is-mindfulness-good-medicine/) describes some of the benefits of mindfulness: > > As a remedy for depression and anxiety, mindfulness meditation may > help patients let go of negative thoughts instead of obsessing over > them. Training peo...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
You shouldn't even think about things like suicide. Thoughts will be full of negative emotions and states that it will drag you to lower planes. When you are doing the act you will have negative thoughts which would mean that your next life is bad. You are also breaking the precept of not killing which is very grave...
This [Scientific American article](http://www.scientificamerican.com/article/is-mindfulness-good-medicine/) describes some of the benefits of mindfulness: > > As a remedy for depression and anxiety, mindfulness meditation may > help patients let go of negative thoughts instead of obsessing over > them. Training peo...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
You shouldn't even think about things like suicide. Thoughts will be full of negative emotions and states that it will drag you to lower planes. When you are doing the act you will have negative thoughts which would mean that your next life is bad. You are also breaking the precept of not killing which is very grave...
The following only is relevant if you follow Buddhism\ the following are all from Shantideva's text: 1. "Upon finding the boat of human birth now, cross the great river of suffering. O fool, there is no time to sleep, for this boat is hard to catch again." 2. When shall I encounter the extremely rare appearance of th...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
You shouldn't even think about things like suicide. Thoughts will be full of negative emotions and states that it will drag you to lower planes. When you are doing the act you will have negative thoughts which would mean that your next life is bad. You are also breaking the precept of not killing which is very grave...
The [sutta](http://www.sacred-texts.com/bud/bits/bits077.htm) doesn't say that the Buddha allowed him to commit suicide. When Mara reported this to the Buddha, venerable Godhika committed suicide. Then the Buddha saw what has happened and said that he has attained Nibbana. According to Bhikkhu Vinaya, the only allowa...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
Have you been to see a doctor about this? Depression can cause life to lack appeal. Why is life worth living is one of those questions that cannot be answered in words, it's an inner feeling that doesn't need an explanation that most have felt at some point. It's a sign of good health to have a passion for life. If w...
The following only is relevant if you follow Buddhism\ the following are all from Shantideva's text: 1. "Upon finding the boat of human birth now, cross the great river of suffering. O fool, there is no time to sleep, for this boat is hard to catch again." 2. When shall I encounter the extremely rare appearance of th...
8,973
When asking around, I've never heard anyone agree that a young, healthy person should end their life by suicide. But I also don't know what reason there is for that consensus. Did Buddha teach anything regarding what makes life worth living?
2015/05/07
[ "https://buddhism.stackexchange.com/questions/8973", "https://buddhism.stackexchange.com", "https://buddhism.stackexchange.com/users/2442/" ]
Have you been to see a doctor about this? Depression can cause life to lack appeal. Why is life worth living is one of those questions that cannot be answered in words, it's an inner feeling that doesn't need an explanation that most have felt at some point. It's a sign of good health to have a passion for life. If w...
This [Scientific American article](http://www.scientificamerican.com/article/is-mindfulness-good-medicine/) describes some of the benefits of mindfulness: > > As a remedy for depression and anxiety, mindfulness meditation may > help patients let go of negative thoughts instead of obsessing over > them. Training peo...
25,063
*RSVP* literally means "Please respond", however it seems to have turned itself into a noun in common usage: > > "What's your RSVP for the party?" > > > "I'm attending" > > > Is it acceptable to refer to a person's attendance status as *their RSVP* ?
2011/05/12
[ "https://english.stackexchange.com/questions/25063", "https://english.stackexchange.com", "https://english.stackexchange.com/users/414/" ]
The conventional meaning of the abbreviation is (from *New Oxford American Dictionary*): > > **RSVP** > *répondez s'il vous plaît*, or please reply (used at the end of invitations to request a response) > > > Modern usage of the term has pushed the boundaries of its use, and the Corpus of Contemporary American ...
It's not their attendance status per se, it's their response. It's acceptable, if uncommon, colloquial usage. I'm more used to seeing *RSVP* used informally as a verb: > > "Have you RSVPed yet?" > > >
25,063
*RSVP* literally means "Please respond", however it seems to have turned itself into a noun in common usage: > > "What's your RSVP for the party?" > > > "I'm attending" > > > Is it acceptable to refer to a person's attendance status as *their RSVP* ?
2011/05/12
[ "https://english.stackexchange.com/questions/25063", "https://english.stackexchange.com", "https://english.stackexchange.com/users/414/" ]
It's not their attendance status per se, it's their response. It's acceptable, if uncommon, colloquial usage. I'm more used to seeing *RSVP* used informally as a verb: > > "Have you RSVPed yet?" > > >
I believe that these extended uses indicate an embarrassing ignorance of the meaning of the phrase. If an invitation ended with "please respond," would you say "I please responded," or "I'm waiting for your please respond"?
25,063
*RSVP* literally means "Please respond", however it seems to have turned itself into a noun in common usage: > > "What's your RSVP for the party?" > > > "I'm attending" > > > Is it acceptable to refer to a person's attendance status as *their RSVP* ?
2011/05/12
[ "https://english.stackexchange.com/questions/25063", "https://english.stackexchange.com", "https://english.stackexchange.com/users/414/" ]
The conventional meaning of the abbreviation is (from *New Oxford American Dictionary*): > > **RSVP** > *répondez s'il vous plaît*, or please reply (used at the end of invitations to request a response) > > > Modern usage of the term has pushed the boundaries of its use, and the Corpus of Contemporary American ...
I believe that these extended uses indicate an embarrassing ignorance of the meaning of the phrase. If an invitation ended with "please respond," would you say "I please responded," or "I'm waiting for your please respond"?
1,609,689
I'm trying to work through example 2, from [here](http://torch.ch/docs/five-simple-examples.html#_). We start by defining a symmetric positive definite matrix $A$: $\begin{pmatrix} 1.2054 & 0.6593 &1.2299 & 1.2577 & 1.0083\\ 0.6593 & 0.5179 & 0.5460 & 0.8562 & 0.4608\\ 1.2299 & 0.5460 & 2.6713 & 1.8403 & 1.6162\\ ...
2016/01/12
[ "https://math.stackexchange.com/questions/1609689", "https://math.stackexchange.com", "https://math.stackexchange.com/users/224185/" ]
**Hint.** You should try writing out the sequence. For instance, for $n = 1$, we have $101$; for $n = 2$, we have $9999$; and so on. Then try dividing the second term by the first term, the third term by the second term, the fourth term by the third term. You should see a pattern that will help you construct the induct...
Notice the following steps of mathematical induction, 1. Setting $n=1$ in the given number $10^{2n}+(-1)^{n+1}$ gives $$10^{2\cdot 1}+(-1)^{1+1}=101$$ above number is divisible by $101$ for $n=1$ 2. assume that $10^{2n}+(-1)^{n+1}$ is divisible by $101$ for $n=k$ then $$10^{2k}+(-1)^{k+1}=101m$$ or $$10^{2k}=101m-(-1...
1,609,689
I'm trying to work through example 2, from [here](http://torch.ch/docs/five-simple-examples.html#_). We start by defining a symmetric positive definite matrix $A$: $\begin{pmatrix} 1.2054 & 0.6593 &1.2299 & 1.2577 & 1.0083\\ 0.6593 & 0.5179 & 0.5460 & 0.8562 & 0.4608\\ 1.2299 & 0.5460 & 2.6713 & 1.8403 & 1.6162\\ ...
2016/01/12
[ "https://math.stackexchange.com/questions/1609689", "https://math.stackexchange.com", "https://math.stackexchange.com/users/224185/" ]
Taking module 101, $10^{2n}= 100^n\equiv (-1)^n(\mathrm{mod}101)$ and the result follows.
Notice the following steps of mathematical induction, 1. Setting $n=1$ in the given number $10^{2n}+(-1)^{n+1}$ gives $$10^{2\cdot 1}+(-1)^{1+1}=101$$ above number is divisible by $101$ for $n=1$ 2. assume that $10^{2n}+(-1)^{n+1}$ is divisible by $101$ for $n=k$ then $$10^{2k}+(-1)^{k+1}=101m$$ or $$10^{2k}=101m-(-1...
1,609,689
I'm trying to work through example 2, from [here](http://torch.ch/docs/five-simple-examples.html#_). We start by defining a symmetric positive definite matrix $A$: $\begin{pmatrix} 1.2054 & 0.6593 &1.2299 & 1.2577 & 1.0083\\ 0.6593 & 0.5179 & 0.5460 & 0.8562 & 0.4608\\ 1.2299 & 0.5460 & 2.6713 & 1.8403 & 1.6162\\ ...
2016/01/12
[ "https://math.stackexchange.com/questions/1609689", "https://math.stackexchange.com", "https://math.stackexchange.com/users/224185/" ]
$$10^{2(n+1)}+(-1)^{(n+1)+1}=100\cdot10^{2n}-(-1)^{n+1}=101\cdot10^{2n}-\underbrace{(10^{2n}+(-1)^{n+1})}\_{\text{multiple of }101}$$
Notice the following steps of mathematical induction, 1. Setting $n=1$ in the given number $10^{2n}+(-1)^{n+1}$ gives $$10^{2\cdot 1}+(-1)^{1+1}=101$$ above number is divisible by $101$ for $n=1$ 2. assume that $10^{2n}+(-1)^{n+1}$ is divisible by $101$ for $n=k$ then $$10^{2k}+(-1)^{k+1}=101m$$ or $$10^{2k}=101m-(-1...
1,609,689
I'm trying to work through example 2, from [here](http://torch.ch/docs/five-simple-examples.html#_). We start by defining a symmetric positive definite matrix $A$: $\begin{pmatrix} 1.2054 & 0.6593 &1.2299 & 1.2577 & 1.0083\\ 0.6593 & 0.5179 & 0.5460 & 0.8562 & 0.4608\\ 1.2299 & 0.5460 & 2.6713 & 1.8403 & 1.6162\\ ...
2016/01/12
[ "https://math.stackexchange.com/questions/1609689", "https://math.stackexchange.com", "https://math.stackexchange.com/users/224185/" ]
Use the standard fact that $a-b \mid a^n-b^n$ as follows : $$101=100-(-1)\mid 100^n-(-1)^n=10^{2n}+(-1)^{n+1}$$
Notice the following steps of mathematical induction, 1. Setting $n=1$ in the given number $10^{2n}+(-1)^{n+1}$ gives $$10^{2\cdot 1}+(-1)^{1+1}=101$$ above number is divisible by $101$ for $n=1$ 2. assume that $10^{2n}+(-1)^{n+1}$ is divisible by $101$ for $n=k$ then $$10^{2k}+(-1)^{k+1}=101m$$ or $$10^{2k}=101m-(-1...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
No! God doesn't sleep nor needs to sleep. God is not a human. > > Indeed, he who watches over Israel will neither slumber nor sleep. (Psalm 121:4, NIV) > > > I would mock and laugh at any god who needs to sleep. A god who needs to sleep is not a true God at all. The idea that God would sleep was humorous to Elija...
It is helpful to compare Genesis 1.1-2.3 to other Ancient Near Eastern (ANE) creation texts; the meaning of God 'resting' can be determined by verbal cues and literary parallels to other ANE creation accounts. John H. Walton notes that *Enuma Elish* – after Tiamat is slain, after the functions of the world are establi...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
It is helpful to compare Genesis 1.1-2.3 to other Ancient Near Eastern (ANE) creation texts; the meaning of God 'resting' can be determined by verbal cues and literary parallels to other ANE creation accounts. John H. Walton notes that *Enuma Elish* – after Tiamat is slain, after the functions of the world are establi...
Just to add to previous answers. For clarity, Sleep is a physiological phenomenon, "characterized by altered consciousness, relatively inhibited sensory activity, inhibition of nearly all voluntary muscles, and reduced interactions with surroundings." - <https://en.wikipedia.org/wiki/Sleep> While it's a subject of o...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
No! God doesn't sleep nor needs to sleep. God is not a human. > > Indeed, he who watches over Israel will neither slumber nor sleep. (Psalm 121:4, NIV) > > > I would mock and laugh at any god who needs to sleep. A god who needs to sleep is not a true God at all. The idea that God would sleep was humorous to Elija...
Just to add to previous answers. For clarity, Sleep is a physiological phenomenon, "characterized by altered consciousness, relatively inhibited sensory activity, inhibition of nearly all voluntary muscles, and reduced interactions with surroundings." - <https://en.wikipedia.org/wiki/Sleep> While it's a subject of o...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
The confusion about God resting comes from the translation of the original word used in Hebrew. That original word was: שָׁבַת > > shabath (shaw-bath') v. > > > > > > > 1. to repose, i.e. desist from exertion > > 2. used in many implied relations (causative, figurative or specific) > > > > > > > > > KJV: ...
Just to add to previous answers. For clarity, Sleep is a physiological phenomenon, "characterized by altered consciousness, relatively inhibited sensory activity, inhibition of nearly all voluntary muscles, and reduced interactions with surroundings." - <https://en.wikipedia.org/wiki/Sleep> While it's a subject of o...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
In the Gospel of John it is written in 4:24 that God is a Spirit and spirit don't need rest or sleep. He is alive mighty God and if God sleeps then He is not a God. According to Psalm 121 our God neither sleeps nor slumbers.
Just to add to previous answers. For clarity, Sleep is a physiological phenomenon, "characterized by altered consciousness, relatively inhibited sensory activity, inhibition of nearly all voluntary muscles, and reduced interactions with surroundings." - <https://en.wikipedia.org/wiki/Sleep> While it's a subject of o...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
"Rested" = "Ceased" =================== The Hebrew word translated "rested" in [Genesis 2:2](http://ref.ly/Ge2.2;nasb) is *[shabath](http://www.biblestudytools.com/lexicons/hebrew/nas/shabath.html)* (7673, שָׁבַת) literally means: to cease, desist, rest. This is the origin of the word "Sabbath," the day of rest or the...
It is helpful to compare Genesis 1.1-2.3 to other Ancient Near Eastern (ANE) creation texts; the meaning of God 'resting' can be determined by verbal cues and literary parallels to other ANE creation accounts. John H. Walton notes that *Enuma Elish* – after Tiamat is slain, after the functions of the world are establi...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
No! God doesn't sleep nor needs to sleep. God is not a human. > > Indeed, he who watches over Israel will neither slumber nor sleep. (Psalm 121:4, NIV) > > > I would mock and laugh at any god who needs to sleep. A god who needs to sleep is not a true God at all. The idea that God would sleep was humorous to Elija...
In the Gospel of John it is written in 4:24 that God is a Spirit and spirit don't need rest or sleep. He is alive mighty God and if God sleeps then He is not a God. According to Psalm 121 our God neither sleeps nor slumbers.
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
"Rested" = "Ceased" =================== The Hebrew word translated "rested" in [Genesis 2:2](http://ref.ly/Ge2.2;nasb) is *[shabath](http://www.biblestudytools.com/lexicons/hebrew/nas/shabath.html)* (7673, שָׁבַת) literally means: to cease, desist, rest. This is the origin of the word "Sabbath," the day of rest or the...
In the Gospel of John it is written in 4:24 that God is a Spirit and spirit don't need rest or sleep. He is alive mighty God and if God sleeps then He is not a God. According to Psalm 121 our God neither sleeps nor slumbers.
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
"Rested" = "Ceased" =================== The Hebrew word translated "rested" in [Genesis 2:2](http://ref.ly/Ge2.2;nasb) is *[shabath](http://www.biblestudytools.com/lexicons/hebrew/nas/shabath.html)* (7673, שָׁבַת) literally means: to cease, desist, rest. This is the origin of the word "Sabbath," the day of rest or the...
The confusion about God resting comes from the translation of the original word used in Hebrew. That original word was: שָׁבַת > > shabath (shaw-bath') v. > > > > > > > 1. to repose, i.e. desist from exertion > > 2. used in many implied relations (causative, figurative or specific) > > > > > > > > > KJV: ...
25,431
God rested in the 7th day. Did He take a nap? Does the Bible indicate that He sleeps?
2014/02/03
[ "https://christianity.stackexchange.com/questions/25431", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/6506/" ]
No! God doesn't sleep nor needs to sleep. God is not a human. > > Indeed, he who watches over Israel will neither slumber nor sleep. (Psalm 121:4, NIV) > > > I would mock and laugh at any god who needs to sleep. A god who needs to sleep is not a true God at all. The idea that God would sleep was humorous to Elija...
The confusion about God resting comes from the translation of the original word used in Hebrew. That original word was: שָׁבַת > > shabath (shaw-bath') v. > > > > > > > 1. to repose, i.e. desist from exertion > > 2. used in many implied relations (causative, figurative or specific) > > > > > > > > > KJV: ...
39,735,755
I am starting my first android project using nativescript. I want to run my project with genymotion. In genymotion GUI settings/ADB I am using custom Android SDK tools and genymotion tells me the android SDK tools are found. Also the VirtualBox path is valid, and when I renamed the device the VirtualBox name and Geny...
2016/09/27
[ "https://Stackoverflow.com/questions/39735755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3422159/" ]
Do not open genymotion before adb initialisation. Start adb server first by `adb start-server` and then open genymotion to initialise emulator. After that you should be able to see emulator in list of running devices through adb command. I ran into the same scenario where adb does not list emulators if genymotion i...
My working solution is: ```sh cd /opt/genymobile/genymotion/tools ./adb devices ``` You have to use its own **adb** tool.
39,735,755
I am starting my first android project using nativescript. I want to run my project with genymotion. In genymotion GUI settings/ADB I am using custom Android SDK tools and genymotion tells me the android SDK tools are found. Also the VirtualBox path is valid, and when I renamed the device the VirtualBox name and Geny...
2016/09/27
[ "https://Stackoverflow.com/questions/39735755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3422159/" ]
You should also make sure that your GenyMotion is using the right SDK. Go to: >> **Settings** >> **ADB** And choose **Use custom Android SDK Tools** If the SDk path is found it will be marked with ***Android SDK Tools successfully found!***
My working solution is: ```sh cd /opt/genymobile/genymotion/tools ./adb devices ``` You have to use its own **adb** tool.
23,649,444
I know that this is a common question, and there are answers for the same, but the reason I ask this question is because I do not know how to approach the solution. Depending on the way I decide to do it, the solution I can pick changes. Anyways, I have an AWS EC2 instance. My DNS is handled by Route53 and I own examp...
2014/05/14
[ "https://Stackoverflow.com/questions/23649444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183133/" ]
You could add a virtual host for app.example.com that listens on port 80 then proxy pass all requests to flask: ``` server { listen 80; server_name app.example.com; location / { proxy_pass http://localhost:8142; } } ```
This is how you would do it with apache. ``` $cat /etc/apache2/sites-available/app.conf <VirtualHost *:80> ServerName app.example.com ProxyPreserveHost On <Proxy *> Order allow,deny Allow from all </Proxy> ProxyPass / http://localhost:8142/ ProxyPassReverse / http://localhost:81...
23,649,444
I know that this is a common question, and there are answers for the same, but the reason I ask this question is because I do not know how to approach the solution. Depending on the way I decide to do it, the solution I can pick changes. Anyways, I have an AWS EC2 instance. My DNS is handled by Route53 and I own examp...
2014/05/14
[ "https://Stackoverflow.com/questions/23649444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183133/" ]
You could add a virtual host for app.example.com that listens on port 80 then proxy pass all requests to flask: ``` server { listen 80; server_name app.example.com; location / { proxy_pass http://localhost:8142; } } ```
You can redirect your domain to a certain port. This depends on the web service you are using -Nginx/Apache. If you are using Nginx, you’ll need to do add a server block to your Nginx’s website config. This can be achieved by using the bellow ``` location /{ proxy_pass http://127.0.0.1:8142/; } ``` If you are u...
23,649,444
I know that this is a common question, and there are answers for the same, but the reason I ask this question is because I do not know how to approach the solution. Depending on the way I decide to do it, the solution I can pick changes. Anyways, I have an AWS EC2 instance. My DNS is handled by Route53 and I own examp...
2014/05/14
[ "https://Stackoverflow.com/questions/23649444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183133/" ]
You could add a virtual host for app.example.com that listens on port 80 then proxy pass all requests to flask: ``` server { listen 80; server_name app.example.com; location / { proxy_pass http://localhost:8142; } } ```
I have ubuntu 16 and nginx with two NodeJS instances, one for front, one for admin. In, I have: /etc/nginx/sites-available/default I've added: server { ... location / { proxy\_pass <http://127.0.0.1:8001;> } ``` location /admin { rewrite ^/admin(.*) /$1 break; proxy_pass http://127.0.0.1:8002; } location /o...
23,649,444
I know that this is a common question, and there are answers for the same, but the reason I ask this question is because I do not know how to approach the solution. Depending on the way I decide to do it, the solution I can pick changes. Anyways, I have an AWS EC2 instance. My DNS is handled by Route53 and I own examp...
2014/05/14
[ "https://Stackoverflow.com/questions/23649444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183133/" ]
This is how you would do it with apache. ``` $cat /etc/apache2/sites-available/app.conf <VirtualHost *:80> ServerName app.example.com ProxyPreserveHost On <Proxy *> Order allow,deny Allow from all </Proxy> ProxyPass / http://localhost:8142/ ProxyPassReverse / http://localhost:81...
I have ubuntu 16 and nginx with two NodeJS instances, one for front, one for admin. In, I have: /etc/nginx/sites-available/default I've added: server { ... location / { proxy\_pass <http://127.0.0.1:8001;> } ``` location /admin { rewrite ^/admin(.*) /$1 break; proxy_pass http://127.0.0.1:8002; } location /o...
23,649,444
I know that this is a common question, and there are answers for the same, but the reason I ask this question is because I do not know how to approach the solution. Depending on the way I decide to do it, the solution I can pick changes. Anyways, I have an AWS EC2 instance. My DNS is handled by Route53 and I own examp...
2014/05/14
[ "https://Stackoverflow.com/questions/23649444", "https://Stackoverflow.com", "https://Stackoverflow.com/users/183133/" ]
You can redirect your domain to a certain port. This depends on the web service you are using -Nginx/Apache. If you are using Nginx, you’ll need to do add a server block to your Nginx’s website config. This can be achieved by using the bellow ``` location /{ proxy_pass http://127.0.0.1:8142/; } ``` If you are u...
I have ubuntu 16 and nginx with two NodeJS instances, one for front, one for admin. In, I have: /etc/nginx/sites-available/default I've added: server { ... location / { proxy\_pass <http://127.0.0.1:8001;> } ``` location /admin { rewrite ^/admin(.*) /$1 break; proxy_pass http://127.0.0.1:8002; } location /o...
50,173,899
When initializing a `val` of type `Sensor` by `lazy` the **compiler ignores that the value returned can be `null`** *Note: The `val` is declared as **`Sensor`** and not **`Sensor?`*** ``` private val sensorManager by lazy { getSystemService(Context.SENSOR_SERVICE) as SensorManager } private val proximitySensor: Sens...
2018/05/04
[ "https://Stackoverflow.com/questions/50173899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3600738/" ]
Should there be a Compile-time error? ------------------------------------- > > Shouldn't it raise a compile time error when assigning a nullable to a val which is non-null? > > > **Yes, but that's not what's happening here** In this case, you are assigning a [platform type](https://kotlinlang.org/docs/reference/...
Thanks to your question this is now a [confirmed bug in Kotlin compiler's JVM backend](https://youtrack.jetbrains.com/issue/KT-24258). --- ### Earlier Content of this Answer: I made an MCVE with your problem: ``` val sensorManager = SensorManager() val proximitySensor: Sensor by lazy { sensorManager.sensor } fun m...
33,953,074
I have three lists. What I want to do is look for 3rd item in TempTree and if this item is not present in the Set then I want to append this third item into STree. I will be using a `for` loop `TempTree[i]` from `i[2:]`. Given Data: ``` TempTree = [(3.0, 5.0), (1.0, 7.0), (5.0, 4.0), (3.0, 4.0), (0.0, 7.0), (1.0, 2....
2015/11/27
[ "https://Stackoverflow.com/questions/33953074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5610443/" ]
With version odoo 10.0 > > Solution applicable to one2many and many2many too :) > > > class res\_partner(models.Model): \_inherit = "res.partner" ``` sb_sector_id = fields.Many2one('sb.business_sector',string="Business Sector" ) sb_categories_id = fields.Many2many('sb.business_categories','rel_sb_business_cates...
You can try [this link](https://www.odoo.com/forum/how-to/developers-13/what-should-onchange-methods-do-and-return-57760), **Example**: ``` 'insp_rslt' : fields.one2many('feedback.tree','insp_rsltts','Inspection Result', domain=[('valuess', '=', 'as u like string')]) ```