qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
17,622
I thought macros are prohibited from use in Starcraft 2 multiplayer, but recently I've found a keyboard being sold by Blizzard: <http://us.blizzard.com/store/details.xml?id=1100001142> > > Designed specifically for Blizzard Entertainment's highly anticipated Starcraft® II Wings of Liberty™, SteelSeries introduces th...
2011/03/03
[ "https://gaming.stackexchange.com/questions/17622", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3467/" ]
**One key should be for one single action**. If not, you fool yourself and you are considered cheating… The one-touch macros are on the right: > > It can be fully customized through the use of the included SteelSeries Z Engine software, which enables macros to be dragged and dropped onto specific keys by use of t...
Depends. When user presses a key it goes to -> keyboard controller -> driver -> win (API message) -> game. I don't know what realization did steelseries used but if macros reside on driver or even controller side then even OS cannot tell if it's user press or not Actually many keyboard configurators / macros software...
17,622
I thought macros are prohibited from use in Starcraft 2 multiplayer, but recently I've found a keyboard being sold by Blizzard: <http://us.blizzard.com/store/details.xml?id=1100001142> > > Designed specifically for Blizzard Entertainment's highly anticipated Starcraft® II Wings of Liberty™, SteelSeries introduces th...
2011/03/03
[ "https://gaming.stackexchange.com/questions/17622", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3467/" ]
> > I thought macros are prohibited from use in Starcraft 2 multiplayer[...] - [Budda](https://gaming.stackexchange.com/q/17622/85) > > > DATELINE TARSONIS SECTOR ------------------------ ![enter image description here](https://i.stack.imgur.com/9svFK.gif) Reports have been coming in of Blizzard banning players....
Depends. When user presses a key it goes to -> keyboard controller -> driver -> win (API message) -> game. I don't know what realization did steelseries used but if macros reside on driver or even controller side then even OS cannot tell if it's user press or not Actually many keyboard configurators / macros software...
17,622
I thought macros are prohibited from use in Starcraft 2 multiplayer, but recently I've found a keyboard being sold by Blizzard: <http://us.blizzard.com/store/details.xml?id=1100001142> > > Designed specifically for Blizzard Entertainment's highly anticipated Starcraft® II Wings of Liberty™, SteelSeries introduces th...
2011/03/03
[ "https://gaming.stackexchange.com/questions/17622", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3467/" ]
Depends. When user presses a key it goes to -> keyboard controller -> driver -> win (API message) -> game. I don't know what realization did steelseries used but if macros reside on driver or even controller side then even OS cannot tell if it's user press or not Actually many keyboard configurators / macros software...
Use your best judgment. If you think it may be cheating it probably is. SC2 now provides the ability to remap keys in-game so under most circumstances you shouldn't need a 3rd party software or fancy keyboards to accomplish what you need. A macro such as build a drone -> s,d would probably not get you banned. Howeve...
17,622
I thought macros are prohibited from use in Starcraft 2 multiplayer, but recently I've found a keyboard being sold by Blizzard: <http://us.blizzard.com/store/details.xml?id=1100001142> > > Designed specifically for Blizzard Entertainment's highly anticipated Starcraft® II Wings of Liberty™, SteelSeries introduces th...
2011/03/03
[ "https://gaming.stackexchange.com/questions/17622", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3467/" ]
> > I thought macros are prohibited from use in Starcraft 2 multiplayer[...] - [Budda](https://gaming.stackexchange.com/q/17622/85) > > > DATELINE TARSONIS SECTOR ------------------------ ![enter image description here](https://i.stack.imgur.com/9svFK.gif) Reports have been coming in of Blizzard banning players....
**One key should be for one single action**. If not, you fool yourself and you are considered cheating… The one-touch macros are on the right: > > It can be fully customized through the use of the included SteelSeries Z Engine software, which enables macros to be dragged and dropped onto specific keys by use of t...
17,622
I thought macros are prohibited from use in Starcraft 2 multiplayer, but recently I've found a keyboard being sold by Blizzard: <http://us.blizzard.com/store/details.xml?id=1100001142> > > Designed specifically for Blizzard Entertainment's highly anticipated Starcraft® II Wings of Liberty™, SteelSeries introduces th...
2011/03/03
[ "https://gaming.stackexchange.com/questions/17622", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3467/" ]
**One key should be for one single action**. If not, you fool yourself and you are considered cheating… The one-touch macros are on the right: > > It can be fully customized through the use of the included SteelSeries Z Engine software, which enables macros to be dragged and dropped onto specific keys by use of t...
Use your best judgment. If you think it may be cheating it probably is. SC2 now provides the ability to remap keys in-game so under most circumstances you shouldn't need a 3rd party software or fancy keyboards to accomplish what you need. A macro such as build a drone -> s,d would probably not get you banned. Howeve...
17,622
I thought macros are prohibited from use in Starcraft 2 multiplayer, but recently I've found a keyboard being sold by Blizzard: <http://us.blizzard.com/store/details.xml?id=1100001142> > > Designed specifically for Blizzard Entertainment's highly anticipated Starcraft® II Wings of Liberty™, SteelSeries introduces th...
2011/03/03
[ "https://gaming.stackexchange.com/questions/17622", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/3467/" ]
> > I thought macros are prohibited from use in Starcraft 2 multiplayer[...] - [Budda](https://gaming.stackexchange.com/q/17622/85) > > > DATELINE TARSONIS SECTOR ------------------------ ![enter image description here](https://i.stack.imgur.com/9svFK.gif) Reports have been coming in of Blizzard banning players....
Use your best judgment. If you think it may be cheating it probably is. SC2 now provides the ability to remap keys in-game so under most circumstances you shouldn't need a 3rd party software or fancy keyboards to accomplish what you need. A macro such as build a drone -> s,d would probably not get you banned. Howeve...
15,186,965
I was using AzureQueue to communicate between roles. My messages like "GoToMaintenanceMode", "StopSendingEmails", "DoNotAcceptRequests" etc. But I realized that, it won't work for my scenario when I have multiple instances due to queue message will shows up only 1 instance at a time. So my question is beside the opti...
2013/03/03
[ "https://Stackoverflow.com/questions/15186965", "https://Stackoverflow.com", "https://Stackoverflow.com/users/439130/" ]
You could use Windows Azure Service Bus Topics/Subscriptions instead of queues. They support multicasting (i.e. multiple receivers). A short how-to guide can be found here <http://www.windowsazure.com/en-us/develop/net/how-to-guides/service-bus-topics/> Basically, your queue would become a Topic all your instances w...
As you do not want TCP listener option or Service bus option. How about extending your same idea with multiple queues. Instance1 will read from Queue1 and Instance2 will read from Queue2 and so on. The only thing you need to handle is the number of queues and simultaneous adding of queue messages to all the queues.
32,694
I have been trying to research how the gears of the crank mechanism of a car window works, either manual or electric. I want to know why it doesn't fall down from gravity. Can anyone link me to an animation or images that explain why it remains stable?
2016/07/11
[ "https://mechanics.stackexchange.com/questions/32694", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/19685/" ]
Every window has what's called a *window regulator* (here's a representative image): [![enter image description here](https://i.stack.imgur.com/7Zv5S.jpg)](https://i.stack.imgur.com/7Zv5S.jpg) The window itself attaches to the window track. This keeps it steady and level while moving up and down. As you can see, ther...
The worm drive in the motors or manual crank mechanism has a defined "input" and "output" shaft; if you try to move the "output" side of the drive, nothing happens. Check out the examples at <https://en.wikipedia.org/wiki/Worm_drive>, it should be intuitively clear why it cannot be otherwise.
32,694
I have been trying to research how the gears of the crank mechanism of a car window works, either manual or electric. I want to know why it doesn't fall down from gravity. Can anyone link me to an animation or images that explain why it remains stable?
2016/07/11
[ "https://mechanics.stackexchange.com/questions/32694", "https://mechanics.stackexchange.com", "https://mechanics.stackexchange.com/users/19685/" ]
Every window has what's called a *window regulator* (here's a representative image): [![enter image description here](https://i.stack.imgur.com/7Zv5S.jpg)](https://i.stack.imgur.com/7Zv5S.jpg) The window itself attaches to the window track. This keeps it steady and level while moving up and down. As you can see, ther...
Wormdrive or friction. ====================== [Wormdrive](https://en.wikipedia.org/wiki/Worm_drive): Worm drive is a non-reversible mechanism. This means that turning the input (worm) will turn the output (gear), but when you try to turn the gear, it won't move. This solution is most commonly encountered with powered...
35,569,810
I'm Printing values of static method but its not printing outside of main method/blocks. This is my code: ``` public class SampleCheck { // Java 1.8 Version static void fun() { System.out.println("Fun Method"); } static void run() { System.out.println("run Method"); } SampleCheck() { System.out.println...
2016/02/23
[ "https://Stackoverflow.com/questions/35569810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4295359/" ]
For amounts of data less than 4k you can use $cookieStore. If it is more than that you'll need to look into HTML5 localStorage > > For more details please go through this post you will find different > options of storage with comparison > <http://www.html5rocks.com/en/tutorials/offline/storage/> > > >
I think that you have only 2 options here: 1. Use localStorage. There're lots of handy localStorage angularJS modules to use. 2. If you don't want to store data on the client side, you could request your API for the data you need to store each time your angular app is getting loaded. This data seems to be static, as y...
35,569,810
I'm Printing values of static method but its not printing outside of main method/blocks. This is my code: ``` public class SampleCheck { // Java 1.8 Version static void fun() { System.out.println("Fun Method"); } static void run() { System.out.println("run Method"); } SampleCheck() { System.out.println...
2016/02/23
[ "https://Stackoverflow.com/questions/35569810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4295359/" ]
For amounts of data less than 4k you can use $cookieStore. If it is more than that you'll need to look into HTML5 localStorage > > For more details please go through this post you will find different > options of storage with comparison > <http://www.html5rocks.com/en/tutorials/offline/storage/> > > >
use `localStorage.setItem("key",value);` to set the value. use `localStorage.getItem("key");`to get the value. use `localStorage.clear();`to clear the value which is set
35,569,810
I'm Printing values of static method but its not printing outside of main method/blocks. This is my code: ``` public class SampleCheck { // Java 1.8 Version static void fun() { System.out.println("Fun Method"); } static void run() { System.out.println("run Method"); } SampleCheck() { System.out.println...
2016/02/23
[ "https://Stackoverflow.com/questions/35569810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4295359/" ]
I think that you have only 2 options here: 1. Use localStorage. There're lots of handy localStorage angularJS modules to use. 2. If you don't want to store data on the client side, you could request your API for the data you need to store each time your angular app is getting loaded. This data seems to be static, as y...
use `localStorage.setItem("key",value);` to set the value. use `localStorage.getItem("key");`to get the value. use `localStorage.clear();`to clear the value which is set
62,377,092
I am trying to login website by puppeteer. for example- login in the <https://pharmeasy.in>, but I need to enter the OTP password. since it is OTP, which is coming in phone. how can i automatically do so like a normal website login? Help!!
2020/06/14
[ "https://Stackoverflow.com/questions/62377092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10657271/" ]
You are trying to open your Documents **directory**, not your csv **file**. Specify the entire path to the file, including the filename.
'C:\Users\janzi\Documents' is not a full path, you need to specify the file name and type: 'C:\Users\janzi\Documents\myfile.csv'
58,081,897
I am reviewing someone else's code which makes heavy use of numpy. In one instance, the code shows something like the following: ``` >>> a = np.array([True, True, False, False, True]) >>> np.where(a) (array([0, 1, 4], dtype=int64),) ``` I have already used `np.where` but not in this manner. I checked the documentati...
2019/09/24
[ "https://Stackoverflow.com/questions/58081897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3783002/" ]
You're just getting the index where the values of the array are `True`
Within 2 seconds of posting this question, I think I just found it. I think it is simply providing the indices where the array value is `True`.
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
The following should have the same (performance) effect that you are trying to achieve: ``` List<Item> aItems = new List<Item>(); List<Item> bItems = new List<Item>(); ... Iterator aIterator = aItems.iterator(); Iterator bIterator = bItems.iterator(); while (aIterator.hasNext() && bIterator.hasNext()) { Item aItem...
I had to do one task where I need to collect various data from XML and store in SET interface and then output them to a CSV file. I read the data and stored it in Set interface object as x,y,z. For CSV file header, I used string buffer to hold the headers **String buffer** ``` StringBuffer buffer = new StringBuffe...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
Unfortunately, Java supports only a rudimentary *foreach* loop, called the *enhanced for loop*. Other languages, especially FP ones like Scala, support a construct known as *list comprehension* (Scala calls it *for comprehension*) which allows nested iterations, as well as filtering of elements along the way.
I had to do one task where I need to collect various data from XML and store in SET interface and then output them to a CSV file. I read the data and stored it in Set interface object as x,y,z. For CSV file header, I used string buffer to hold the headers **String buffer** ``` StringBuffer buffer = new StringBuffe...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
The foreach loop assumes that there is only one collection of things. You can do something for each element per iteration. How would you want it to behave that if you could iterate over two collections at once? What if they have different lenghts? Assuming that you have ``` Collection<T1> collection1; Collection<T2> ...
I had to do one task where I need to collect various data from XML and store in SET interface and then output them to a CSV file. I read the data and stored it in Set interface object as x,y,z. For CSV file header, I used string buffer to hold the headers **String buffer** ``` StringBuffer buffer = new StringBuffe...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
The simple answer "No" is already given. But you could implement taking two iterators as argument, and returning Pairs of the elements coming from the two iterators. Pair being a class with two fields. You'd either have to implement that yourself, or it is probably existent in some apache commons or similar lib. This ...
I had to do one task where I need to collect various data from XML and store in SET interface and then output them to a CSV file. I read the data and stored it in Set interface object as x,y,z. For CSV file header, I used string buffer to hold the headers **String buffer** ``` StringBuffer buffer = new StringBuffe...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
Unfortunately, Java supports only a rudimentary *foreach* loop, called the *enhanced for loop*. Other languages, especially FP ones like Scala, support a construct known as *list comprehension* (Scala calls it *for comprehension*) which allows nested iterations, as well as filtering of elements along the way.
The foreach loop assumes that there is only one collection of things. You can do something for each element per iteration. How would you want it to behave that if you could iterate over two collections at once? What if they have different lenghts? Assuming that you have ``` Collection<T1> collection1; Collection<T2> ...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
The following should have the same (performance) effect that you are trying to achieve: ``` List<Item> aItems = new List<Item>(); List<Item> bItems = new List<Item>(); ... Iterator aIterator = aItems.iterator(); Iterator bIterator = bItems.iterator(); while (aIterator.hasNext() && bIterator.hasNext()) { Item aItem...
The foreach loop assumes that there is only one collection of things. You can do something for each element per iteration. How would you want it to behave that if you could iterate over two collections at once? What if they have different lenghts? Assuming that you have ``` Collection<T1> collection1; Collection<T2> ...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
No you can't. It is syntactic sugar for using [Iterator](http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html). Refer [here](https://stackoverflow.com/questions/2113216/which-is-more-efficient-a-for-each-loop-or-an-iterator) for a good answer on this issue. You need to have an object that contains both var...
The foreach loop assumes that there is only one collection of things. You can do something for each element per iteration. How would you want it to behave that if you could iterate over two collections at once? What if they have different lenghts? Assuming that you have ``` Collection<T1> collection1; Collection<T2> ...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
Unfortunately, Java supports only a rudimentary *foreach* loop, called the *enhanced for loop*. Other languages, especially FP ones like Scala, support a construct known as *list comprehension* (Scala calls it *for comprehension*) which allows nested iterations, as well as filtering of elements along the way.
The simple answer "No" is already given. But you could implement taking two iterators as argument, and returning Pairs of the elements coming from the two iterators. Pair being a class with two fields. You'd either have to implement that yourself, or it is probably existent in some apache commons or similar lib. This ...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
No you can't. It is syntactic sugar for using [Iterator](http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html). Refer [here](https://stackoverflow.com/questions/2113216/which-is-more-efficient-a-for-each-loop-or-an-iterator) for a good answer on this issue. You need to have an object that contains both var...
The following should have the same (performance) effect that you are trying to achieve: ``` List<Item> aItems = new List<Item>(); List<Item> bItems = new List<Item>(); ... Iterator aIterator = aItems.iterator(); Iterator bIterator = bItems.iterator(); while (aIterator.hasNext() && bIterator.hasNext()) { Item aItem...
18,045,351
We can use the old for loop (`for(i = 0, j = 0; i<30; i++,j++)`) with two variables Can we use the for-each loop (or the enhanced for loop) in java (`for(Item item : items)` with two variables? What's the syntax for that?
2013/08/04
[ "https://Stackoverflow.com/questions/18045351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2192875/" ]
Unfortunately, Java supports only a rudimentary *foreach* loop, called the *enhanced for loop*. Other languages, especially FP ones like Scala, support a construct known as *list comprehension* (Scala calls it *for comprehension*) which allows nested iterations, as well as filtering of elements along the way.
No you can't. It is syntactic sugar for using [Iterator](http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html). Refer [here](https://stackoverflow.com/questions/2113216/which-is-more-efficient-a-for-each-loop-or-an-iterator) for a good answer on this issue. You need to have an object that contains both var...
1,160,111
I want to enable Imagick for lsphp73, I have a digitalocean OpenLiteSpeed for Wordpress droplet. By running these commands I think it doesn't install my proper PHP version: ``` sudo apt install php-imagick php-gd ```
2019/07/22
[ "https://askubuntu.com/questions/1160111", "https://askubuntu.com", "https://askubuntu.com/users/935007/" ]
I am playing around with such a problem here as well and found out, that you can find a lot of connection settings with ``` nmcli connection show <ConnectionName> ``` When you found the setting in question you can modify it with ``` nmcli connection modify <ConnectionName> (+-)?<setting>.<prob> Value ``` Unfortun...
Note- this will only work if both side network interface card and the network components have same config. You have to edit config file- vim /etc/network/interfaces =========================== Add mtu follows for interface Add ================================= mtu 9000 ctrl+c wq! and restart network service =====...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
After watching "[What is the Church](http://www.godtube.com/watch/?v=KD6PK7NX)?" , I posed myself a question: "What happens if my Church (the building) was taken down? Or my cell group being taken away? Would there still be Church?" Answer is simply Yes. For the Church exists in each and everyone who believes, trusts,...
There is no direct order from God to attend church every Sunday - but the question should probably be asked why you feel that scouting activities are more important than God. Also, "youth group" is distinctly *not* "church": it's probably a good thing, but it is no substitute for the gathering of the faithful in worshi...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
The writer to the Hebrews encourages regular fellowship: > > Let us not give up meeting together, as some are in the habit of doing, but let us encourage one another—and all the more as you see the Day approaching. > > > [Hebrews 10:25](http://www.biblegateway.com/passage/?search=Hebrews+10:25&version=NIV1984) ...
For some going to church is like going to school it is to further their knowledge and show something for it. Like a diploma. For church, goer’s acceptance of a greater experience offered in fellowship and the comfort of knowing that they are better for it. For most of us, we get our diploma from the school of Hard Kno...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
There is no direct order from God to attend church every Sunday - but the question should probably be asked why you feel that scouting activities are more important than God. Also, "youth group" is distinctly *not* "church": it's probably a good thing, but it is no substitute for the gathering of the faithful in worshi...
For some going to church is like going to school it is to further their knowledge and show something for it. Like a diploma. For church, goer’s acceptance of a greater experience offered in fellowship and the comfort of knowing that they are better for it. For most of us, we get our diploma from the school of Hard Kno...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
Going to Church is like a spiritual version of a meal. While it won't kill you to miss one or two, you should do it regularly for best results. That said, a regularly scheduled event that you attend over Church is not a good idea. If you don't eat for 6 months, you die. Missing Church for that length of time could po...
To me, this question is analogous as if one must be baptized in water and circumcised of the flesh to be a Christian but the Bible supports what is needed is to be baptized in the spirit and circumcised in the heart: Deuteronomy 30:6 > > The LORD your God will circumcise your hearts and the hearts of your > descend...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
After watching "[What is the Church](http://www.godtube.com/watch/?v=KD6PK7NX)?" , I posed myself a question: "What happens if my Church (the building) was taken down? Or my cell group being taken away? Would there still be Church?" Answer is simply Yes. For the Church exists in each and everyone who believes, trusts,...
For some going to church is like going to school it is to further their knowledge and show something for it. Like a diploma. For church, goer’s acceptance of a greater experience offered in fellowship and the comfort of knowing that they are better for it. For most of us, we get our diploma from the school of Hard Kno...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
Catholics are obliged to attend Mass every [Sunday and on Holy Days of Obligatiom](http://www.newadvent.org/cathen/04154a.htm). It is one of the precepts of our Church. Violating this precept is [Grave Matter](http://jimmyakin.typepad.com/defensor_fidei/2007/01/grave_matter.html)
For some going to church is like going to school it is to further their knowledge and show something for it. Like a diploma. For church, goer’s acceptance of a greater experience offered in fellowship and the comfort of knowing that they are better for it. For most of us, we get our diploma from the school of Hard Kno...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
For some going to church is like going to school it is to further their knowledge and show something for it. Like a diploma. For church, goer’s acceptance of a greater experience offered in fellowship and the comfort of knowing that they are better for it. For most of us, we get our diploma from the school of Hard Kno...
To me, this question is analogous as if one must be baptized in water and circumcised of the flesh to be a Christian but the Bible supports what is needed is to be baptized in the spirit and circumcised in the heart: Deuteronomy 30:6 > > The LORD your God will circumcise your hearts and the hearts of your > descend...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
After watching "[What is the Church](http://www.godtube.com/watch/?v=KD6PK7NX)?" , I posed myself a question: "What happens if my Church (the building) was taken down? Or my cell group being taken away? Would there still be Church?" Answer is simply Yes. For the Church exists in each and everyone who believes, trusts,...
Going to Church is like a spiritual version of a meal. While it won't kill you to miss one or two, you should do it regularly for best results. That said, a regularly scheduled event that you attend over Church is not a good idea. If you don't eat for 6 months, you die. Missing Church for that length of time could po...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
Catholics are obliged to attend Mass every [Sunday and on Holy Days of Obligatiom](http://www.newadvent.org/cathen/04154a.htm). It is one of the precepts of our Church. Violating this precept is [Grave Matter](http://jimmyakin.typepad.com/defensor_fidei/2007/01/grave_matter.html)
To me, this question is analogous as if one must be baptized in water and circumcised of the flesh to be a Christian but the Bible supports what is needed is to be baptized in the spirit and circumcised in the heart: Deuteronomy 30:6 > > The LORD your God will circumcise your hearts and the hearts of your > descend...
1,054
I used to be an avid church-goer, but as of late I haven't had the chance. This is primarily because of my scouting activities, which take place Sunday mornings (the same time the church service takes place). I know it's been stated in the bible that we as Christians should come together, but I am getting a chance to ...
2011/08/29
[ "https://christianity.stackexchange.com/questions/1054", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/-1/" ]
Going to Church is like a spiritual version of a meal. While it won't kill you to miss one or two, you should do it regularly for best results. That said, a regularly scheduled event that you attend over Church is not a good idea. If you don't eat for 6 months, you die. Missing Church for that length of time could po...
There is no direct order from God to attend church every Sunday - but the question should probably be asked why you feel that scouting activities are more important than God. Also, "youth group" is distinctly *not* "church": it's probably a good thing, but it is no substitute for the gathering of the faithful in worshi...
4,296,511
ABC is an isosceles triangle with AB = AC. Point X is an arbitrary point on side BC. Points Y, Z are on the sides AB, AC, respectively, such that ∠BXY = ∠ZXC. A line parallel to YZ and passing through B cuts XZ at T. Prove that AT bisects ∠A. I'm trying to find a solution to this using trigonometry, but I can't seem ...
2021/11/04
[ "https://math.stackexchange.com/questions/4296511", "https://math.stackexchange.com", "https://math.stackexchange.com/users/856884/" ]
Signs in the solution correspond to case $BX < CX$, otherwise some signs need to be changed. Let $\angle ZXC=\beta$, $\angle TBX=\gamma$. Then $\angle XYZ=\gamma+\beta$, $\angle XZY=\beta-\gamma$. Sine theorem: $\frac{\sin(\gamma+\beta)}{\sin(\beta-\gamma)}=\frac{XZ}{XY}$. Similarity of $\triangle BXY$ and $\triangl...
[![enter image description here](https://i.stack.imgur.com/Y7d4T.png)](https://i.stack.imgur.com/Y7d4T.png) First apply sine law in $\triangle BYX$. $\displaystyle \frac{BY}{\sin \beta} = \frac{BX}{\sin (\alpha + \beta)} \tag1$ Apply sine law in $\triangle BTX$, $\displaystyle \frac{BT}{\sin \beta} = \frac{BX}{\sin...
62,356,471
Example html: ```html <div> <p>p1</p> <p>p2</p> <p>p3<span id="target">starting from here</span></p> <p>p4</p> </div> <div> <p>p5</p> <p>p6</p> </div> <p>p7</p> ``` I want to search for `<p>`s but only if its position is after `span#target`. It should return p4, p5, p6 and p7 in the above e...
2020/06/13
[ "https://Stackoverflow.com/questions/62356471", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3939155/" ]
You can do this by using the [`find_all_next`](https://www.crummy.com/software/BeautifulSoup/bs4/doc/#find-all-next-and-find-next) function in beautifulsoup. ```py from bs4 import BeautifulSoup doc = # Read the HTML here # Parse the HTML soup = BeautifulSoup(doc, 'html.parser') # Select the first element you want t...
Try this ``` html_doc = """ <div> <p>p1</p> <p>p2</p> <p>p3<span id="target">starting from here</span></p> <p>p4</p> </div> <div> <p>p5</p> <p>p6</p> </div> <p>p7</p> """ from bs4 import BeautifulSoup soup = BeautifulSoup(html_doc, 'html.parser') print(soup.find(id="target").findNext('p').con...
62,356,471
Example html: ```html <div> <p>p1</p> <p>p2</p> <p>p3<span id="target">starting from here</span></p> <p>p4</p> </div> <div> <p>p5</p> <p>p6</p> </div> <p>p7</p> ``` I want to search for `<p>`s but only if its position is after `span#target`. It should return p4, p5, p6 and p7 in the above e...
2020/06/13
[ "https://Stackoverflow.com/questions/62356471", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3939155/" ]
You can do this by using the [`find_all_next`](https://www.crummy.com/software/BeautifulSoup/bs4/doc/#find-all-next-and-find-next) function in beautifulsoup. ```py from bs4 import BeautifulSoup doc = # Read the HTML here # Parse the HTML soup = BeautifulSoup(doc, 'html.parser') # Select the first element you want t...
*try* ``` span = soup.select("span > #target > p") ```
51,741,605
I standardize features to mean=0 and sd=1 using preprocessing.scale astype('float64'). I got the following warning: > > UserWarning: Numerical issues were encountered when centering the data > and might not be solved. Dataset may contain too large values. You may > need to prescale your features. warnings.warn("Nu...
2018/08/08
[ "https://Stackoverflow.com/questions/51741605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7689391/" ]
I solve the problem using StandardScaler and taking example on the following code as suggested [here](https://medium.com/@rrfd/standardize-or-normalize-examples-in-python-e3f174b65dfc): ``` from sklearn import preprocessing # Get column names first names = df.columns # Create the Scaler object scaler = preprocessing....
Converting the data frame to float type works for me: ``` df = df.astype(float) scaled_df = preprocessing.scale(df) ```
51,741,605
I standardize features to mean=0 and sd=1 using preprocessing.scale astype('float64'). I got the following warning: > > UserWarning: Numerical issues were encountered when centering the data > and might not be solved. Dataset may contain too large values. You may > need to prescale your features. warnings.warn("Nu...
2018/08/08
[ "https://Stackoverflow.com/questions/51741605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7689391/" ]
I solve the problem using StandardScaler and taking example on the following code as suggested [here](https://medium.com/@rrfd/standardize-or-normalize-examples-in-python-e3f174b65dfc): ``` from sklearn import preprocessing # Get column names first names = df.columns # Create the Scaler object scaler = preprocessing....
If you want this for PCA, try this: ``` df=your data frame dataForPCA=preprocessing.StandardScaler().fit_transform(df.T) ``` it will bring your data into the format needed for PCA by formatting the data to 0-1 and also transposing your df into an np array ready to use if you don't want this for PCA : ``` df=you...
51,741,605
I standardize features to mean=0 and sd=1 using preprocessing.scale astype('float64'). I got the following warning: > > UserWarning: Numerical issues were encountered when centering the data > and might not be solved. Dataset may contain too large values. You may > need to prescale your features. warnings.warn("Nu...
2018/08/08
[ "https://Stackoverflow.com/questions/51741605", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7689391/" ]
Converting the data frame to float type works for me: ``` df = df.astype(float) scaled_df = preprocessing.scale(df) ```
If you want this for PCA, try this: ``` df=your data frame dataForPCA=preprocessing.StandardScaler().fit_transform(df.T) ``` it will bring your data into the format needed for PCA by formatting the data to 0-1 and also transposing your df into an np array ready to use if you don't want this for PCA : ``` df=you...
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
I can't see the require to include the express library. ``` var express = require('express'); var app = express(); ``` Also remember to make > > $ npm install express --save > > > To install it. Here is the reference <http://expressjs.com/en/4x/api.html> <http://expressjs.com/en/starter/installing.html>
write npm i express -s I've tried and it's working for me
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
It should be `var api = express.Router();`
var api = express.Router(); or try this code : ``` var router = require('express').Router(), User = require('../modules/user'), config = require('../../config'); router .post('/signup', function (req, res, next) { var user = new User(req.body); user.save(function (err) { ...
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
You need to require the express module, before calling the Router method, with this you can add more HTTP method to "/signup" route. ``` var express = require('express'); var User = require('../modules/user'); var config = require('../../config'); var api = express.Router(); var secretKey = config.secretKey; modu...
Try adding require('http') or require('https') as the first require statement.
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
It should be `var api = express.Router();`
``` const express = require('express'); const mongoose = require('mongoose'); const router = express.Router(); router.get('/', (req, res)=>{ res.send('Course Controller'); }); module.exports = router; ```
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
You need to require the express module, before calling the Router method, with this you can add more HTTP method to "/signup" route. ``` var express = require('express'); var User = require('../modules/user'); var config = require('../../config'); var api = express.Router(); var secretKey = config.secretKey; modu...
write npm i express -s I've tried and it's working for me
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
var api = express.Router(); or try this code : ``` var router = require('express').Router(), User = require('../modules/user'), config = require('../../config'); router .post('/signup', function (req, res, next) { var user = new User(req.body); user.save(function (err) { ...
Try adding require('http') or require('https') as the first require statement.
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
I had the problem of `var express = express()` returning the error: not a function. After some spelunking in the express directories, I saw that the sample code required http or https first. So, add one (perhaps both) as first (and or second) file imports.
write npm i express -s I've tried and it's working for me
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
You need to require the express module, before calling the Router method, with this you can add more HTTP method to "/signup" route. ``` var express = require('express'); var User = require('../modules/user'); var config = require('../../config'); var api = express.Router(); var secretKey = config.secretKey; modu...
``` const express = require('express'); const mongoose = require('mongoose'); const router = express.Router(); router.get('/', (req, res)=>{ res.send('Course Controller'); }); module.exports = router; ```
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
It should be `var api = express.Router();`
I had the problem of `var express = express()` returning the error: not a function. After some spelunking in the express directories, I saw that the sample code required http or https first. So, add one (perhaps both) as first (and or second) file imports.
37,313,716
Trying to make a login app with nodejs express. However after I run it. it shows TypeError: express.Router is not a function. My express is the latest version4.13.4. Can anyone help me?Here is the code. ``` var User = require('../modules/user'); var config = require('../../config'); var secretKey = config.secretKey; ...
2016/05/19
[ "https://Stackoverflow.com/questions/37313716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6354093/" ]
It should be `var api = express.Router();`
You need to require the express module, before calling the Router method, with this you can add more HTTP method to "/signup" route. ``` var express = require('express'); var User = require('../modules/user'); var config = require('../../config'); var api = express.Router(); var secretKey = config.secretKey; modu...
431,591
* I wrote a Java web service using [Spring](https://spring.io/) that handles REST calls from the Internet. * The web service uses a Postgres database underneath to store, modify and read data. * The Postgres database is used exclusively by this web service, no other program accesses the database. The web service uses ...
2021/09/02
[ "https://softwareengineering.stackexchange.com/questions/431591", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/344152/" ]
The security argument against using DDLs is neither completely wrong nor completely right. If a web service is compromised, and an attacker manages to issue arbitrary `select`, `insert`, `update` or `delete` statements, the damage they can cause is not really different from the damage they can cause by a `drop table` ...
Are you absolutely, completely, 100% sure that there are no vulnerabilities in your code and all the libraries you're using to access the database that might allow SQL injection or the like? If you are sure, then there's no benefit. If you're not, then the benefit is obvious. (PS: you're not 100% sure)
431,591
* I wrote a Java web service using [Spring](https://spring.io/) that handles REST calls from the Internet. * The web service uses a Postgres database underneath to store, modify and read data. * The Postgres database is used exclusively by this web service, no other program accesses the database. The web service uses ...
2021/09/02
[ "https://softwareengineering.stackexchange.com/questions/431591", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/344152/" ]
The security argument against using DDLs is neither completely wrong nor completely right. If a web service is compromised, and an attacker manages to issue arbitrary `select`, `insert`, `update` or `delete` statements, the damage they can cause is not really different from the damage they can cause by a `drop table` ...
No, it’s not ok. Someone claimed: > > security is like onions: the more layers you peal, the more you cry. > > > This refers to the concept of layered security. There are many ways your system could be attacked: from the outside by compromising your public service; but also from the inside via another service or ...
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
It doesn't matter very much because the economy can trivially create substitutes for currency. Anything that has the same capabilities as currency (fungible, easily exchanged, limited supply) can also serve as currency. A good example would be a Mt. Gox code. Mt. Gox may or may not have 100% reserves, but it doesn't m...
The limited money supply isn't actually an inherent problem for payment of interest. **As long as the people being paid the interest are spending it back into the economy (presumably the banks, creditors, and investors have expenses, right?), then there will be an opportunity for the person who owes the interest to ear...
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
The limited money supply isn't actually an inherent problem for payment of interest. **As long as the people being paid the interest are spending it back into the economy (presumably the banks, creditors, and investors have expenses, right?), then there will be an opportunity for the person who owes the interest to ear...
David is right that Bitcoin in itself does not prevent the practice of fractional reserve banking. But the difference with Bitcoin is that unlike gold, you now have a digital, easily transferable, easily storable, easily secured currency. Banks would need to fight much harder for deposits now because there is alot le...
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
The limited money supply isn't actually an inherent problem for payment of interest. **As long as the people being paid the interest are spending it back into the economy (presumably the banks, creditors, and investors have expenses, right?), then there will be an opportunity for the person who owes the interest to ear...
It cannot. Fractional reserve banking is an experiment. The premise of using a hyper-inflationary currency is tested to show if it can promote a healthy economy. Bitcoin is an experiment to see if a secure hyper-fluid deflationary currency can promote new forms of economies. They may exist together for a very long time...
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
The limited money supply isn't actually an inherent problem for payment of interest. **As long as the people being paid the interest are spending it back into the economy (presumably the banks, creditors, and investors have expenses, right?), then there will be an opportunity for the person who owes the interest to ear...
There can be more debt denominated in Bitcoin than the 21M limit, as the debt doesn't have to be repaid in a single instance. As the debtor repays, the lender will reinvest the money and the debtor will be able to reappropriate some to make the next repayment.
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
It doesn't matter very much because the economy can trivially create substitutes for currency. Anything that has the same capabilities as currency (fungible, easily exchanged, limited supply) can also serve as currency. A good example would be a Mt. Gox code. Mt. Gox may or may not have 100% reserves, but it doesn't m...
David is right that Bitcoin in itself does not prevent the practice of fractional reserve banking. But the difference with Bitcoin is that unlike gold, you now have a digital, easily transferable, easily storable, easily secured currency. Banks would need to fight much harder for deposits now because there is alot le...
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
It doesn't matter very much because the economy can trivially create substitutes for currency. Anything that has the same capabilities as currency (fungible, easily exchanged, limited supply) can also serve as currency. A good example would be a Mt. Gox code. Mt. Gox may or may not have 100% reserves, but it doesn't m...
It cannot. Fractional reserve banking is an experiment. The premise of using a hyper-inflationary currency is tested to show if it can promote a healthy economy. Bitcoin is an experiment to see if a secure hyper-fluid deflationary currency can promote new forms of economies. They may exist together for a very long time...
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
It doesn't matter very much because the economy can trivially create substitutes for currency. Anything that has the same capabilities as currency (fungible, easily exchanged, limited supply) can also serve as currency. A good example would be a Mt. Gox code. Mt. Gox may or may not have 100% reserves, but it doesn't m...
There can be more debt denominated in Bitcoin than the 21M limit, as the debt doesn't have to be repaid in a single instance. As the debtor repays, the lender will reinvest the money and the debtor will be able to reappropriate some to make the next repayment.
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
David is right that Bitcoin in itself does not prevent the practice of fractional reserve banking. But the difference with Bitcoin is that unlike gold, you now have a digital, easily transferable, easily storable, easily secured currency. Banks would need to fight much harder for deposits now because there is alot le...
It cannot. Fractional reserve banking is an experiment. The premise of using a hyper-inflationary currency is tested to show if it can promote a healthy economy. Bitcoin is an experiment to see if a secure hyper-fluid deflationary currency can promote new forms of economies. They may exist together for a very long time...
1,201
Suppose Bitcoin lenders (banks, creditors, investors) issue loans with interest. As the total supply of bitcoins approaches the 21M ceiling, the total amount owed in outstanding interest will exceed the money supply. This is the same as existing banks: they actually hold only a fractional reserve of funds, and the eco...
2011/09/22
[ "https://bitcoin.stackexchange.com/questions/1201", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/469/" ]
David is right that Bitcoin in itself does not prevent the practice of fractional reserve banking. But the difference with Bitcoin is that unlike gold, you now have a digital, easily transferable, easily storable, easily secured currency. Banks would need to fight much harder for deposits now because there is alot le...
There can be more debt denominated in Bitcoin than the 21M limit, as the debt doesn't have to be repaid in a single instance. As the debtor repays, the lender will reinvest the money and the debtor will be able to reappropriate some to make the next repayment.
34,920,181
I have a job interface IJob like this: ``` public interface IJob { public void execute(); } ``` In my application I have multiple classes implementing this interface, like IJob1 and IJob2: ``` public class IJob1 implements IJob{ @Override public void execute(){ System.out.println("IJob1\n"); } } public...
2016/01/21
[ "https://Stackoverflow.com/questions/34920181", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1353274/" ]
I would recommend a managed thread pool. A typical pattern is to use the Java [Executors](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executors.html) to obtain a [ExecutorService](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html). An ExecutorService is usually imple...
> > I want to create a new job, which takes a list of IJob instances and runs them in parallel. The amount of threads that the new implementation is using to run the jobs in parallel should be configurable. If one of the jobs throws an exception, all other currently running jobs should be stopped as well and the execu...
58,233,273
I'm using spdlog to log all messages. My log pattern is a JSON format. I'm escaping messages manually in all log calls. Is there any way exists to escape messages automatically in spdlog layer? Sample of manually escaping: ``` spdlog::info(escape_message(data)); ``` It should be automatically handled inside spdlog ...
2019/10/04
[ "https://Stackoverflow.com/questions/58233273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2338672/" ]
Tell spdlog to format a single string, rather than interpreting the string itself as the format string: ``` spdlog::info("{}", data); ```
I've found a way to solve it. I should implement a custom `formatter` class and then in the `format` method, I escape the message by for example `escape_message(msg.payload.data())` and then call `spdlog::log(msg.source, msg.level, escape_message(msg.payload.data()))`, `spdlog::info` or ... inside this method. **Note...
71,731,154
I am trying to get familiar with NextJS so I am building a simple blog. The data is passed thru props and can be console logged inside of the map function, but for some reason will not display any HTML in a browser. no errors to be shown. Prettier in VScode also had to be turned off bc it was adding ";" every time I wo...
2022/04/04
[ "https://Stackoverflow.com/questions/71731154", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18696468/" ]
Firstly, you need to check `post.map((post) => (...)`. They're having the same variable `post` from inner to outer. It should be `posts.map((post) => (...))` (with `posts` for the loop) [`map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) function also expects a return va...
```js <div> {post.map((post) => ( {console.log(post.description + "here")} <h1>post</h1> ))} </div> ``` The map function was not not returning anything . so added the parenthesis or you can use return() and paste the console section
59,619,739
I am creating an app using Flutter with Dart, and I want to create a base class for the app's config. Then, when creating a new screen, I want to create a class `ScreenConfig extends BaseConfig` and add the specific config for that screen on top of the base config. I am doing this to remove the boilerplate of having to...
2020/01/06
[ "https://Stackoverflow.com/questions/59619739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11150165/" ]
This can be pretty straight forward, and you can reuse your existing logic for convenience. You'll want to declare another extension method that accepts an `IEnumerable<Control>` instead of just a control. You'll then get the controls for each control in the list, which will result in a list of lists. You then want to...
``` public static IEnumerable<Control> GetAllChildren(this IEnumerable<Control> parents) { return parents.SelectMany(p => p.GetAllChildren()); } ``` Add another extension that accepts a collection of controls. You can reuse the existing extension method for each control in the list, and use LINQ `SelectMany` to ...
59,619,739
I am creating an app using Flutter with Dart, and I want to create a base class for the app's config. Then, when creating a new screen, I want to create a class `ScreenConfig extends BaseConfig` and add the specific config for that screen on top of the base config. I am doing this to remove the boilerplate of having to...
2020/01/06
[ "https://Stackoverflow.com/questions/59619739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11150165/" ]
``` public static IEnumerable<Control> GetAllChildren(this IEnumerable<Control> parents) { return parents.SelectMany(p => p.GetAllChildren()); } ``` Add another extension that accepts a collection of controls. You can reuse the existing extension method for each control in the list, and use LINQ `SelectMany` to ...
While your original method's signature is ``` public static IEnumerable<Control> GetAllChildren(this Control parent) ``` the signature of should be ``` public static IEnumerable<Control> GetAllChildren(this IEnumerable<Control> parents) ``` I made up an example with integer nubmbers: ``` struct Foo { public...
59,619,739
I am creating an app using Flutter with Dart, and I want to create a base class for the app's config. Then, when creating a new screen, I want to create a class `ScreenConfig extends BaseConfig` and add the specific config for that screen on top of the base config. I am doing this to remove the boilerplate of having to...
2020/01/06
[ "https://Stackoverflow.com/questions/59619739", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11150165/" ]
This can be pretty straight forward, and you can reuse your existing logic for convenience. You'll want to declare another extension method that accepts an `IEnumerable<Control>` instead of just a control. You'll then get the controls for each control in the list, which will result in a list of lists. You then want to...
While your original method's signature is ``` public static IEnumerable<Control> GetAllChildren(this Control parent) ``` the signature of should be ``` public static IEnumerable<Control> GetAllChildren(this IEnumerable<Control> parents) ``` I made up an example with integer nubmbers: ``` struct Foo { public...
43,360,031
Ok so I have a portfolio I am trying to sort. When you click one of the links in the nav it will sort the images based on their assigned ID. I have the JQuery function working, but it won't animate. Also the container holding the images won't animate either, it's like all CSS animations are turned off...I am using boot...
2017/04/12
[ "https://Stackoverflow.com/questions/43360031", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5844782/" ]
`display: none` is not part of the animatable list. Use `opacity: 0` instead. <https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties>
display `show` and display `none` not working in css animations **Try this code** ```js $(document).ready(function(){ // Portfolio Sort $(".categorys").click(function(){ var category = $(this).attr('id'); //alert(category); //test nav if (category == "featured") { $(".category-it...
43,360,031
Ok so I have a portfolio I am trying to sort. When you click one of the links in the nav it will sort the images based on their assigned ID. I have the JQuery function working, but it won't animate. Also the container holding the images won't animate either, it's like all CSS animations are turned off...I am using boot...
2017/04/12
[ "https://Stackoverflow.com/questions/43360031", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5844782/" ]
`display: none` is not part of the animatable list. Use `opacity: 0` instead. <https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties>
The css "display" property is not works in animation. So try this css code, ```css .category-item{ opacity: 1; visibility: visible; max-height: 100%; display: block; overflow: hidden; -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; } .hide{ ...
43,360,031
Ok so I have a portfolio I am trying to sort. When you click one of the links in the nav it will sort the images based on their assigned ID. I have the JQuery function working, but it won't animate. Also the container holding the images won't animate either, it's like all CSS animations are turned off...I am using boot...
2017/04/12
[ "https://Stackoverflow.com/questions/43360031", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5844782/" ]
`display: none` is not part of the animatable list. Use `opacity: 0` instead. <https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties>
Since CSS transitions don't work on display property here is a pure jquery solution that could do the thing for you. Please remove the transitions from your css and alter your function something like this. ``` $(document).ready(function(){ // Portfolio Sort $(".categorys").click(function(){ var category = ...
26,095,539
This is my array in PHP: ``` $arr['key1']='value1'; $arr['key2']='value2'; $arr['key3']='value3'; $arr['key4']='value4'; $arr['key5']='value5'; $arr['key6']='value6'; ``` I would like to test if a key is in the array. Is this function the correct way to proceed? ``` function isKeyInArray($key, $arr) { if(isset($...
2014/09/29
[ "https://Stackoverflow.com/questions/26095539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442408/" ]
You can use `array_key_exists`. ``` $a=array("Volvo"=>"XC90","BMW"=>"X5"); if (array_key_exists("Volvo",$a)) { echo "Key exists!"; } else { echo "Key does not exist!"; } ``` See <http://php.net/manual/en/function.array-key-exists.php>
Use [**array\_key\_exists**](http://php.net/manual/en/function.array-key-exists.php) ``` if(array_key_exists('key6',$arr)) echo "present"; else echo "not present"; ```
26,095,539
This is my array in PHP: ``` $arr['key1']='value1'; $arr['key2']='value2'; $arr['key3']='value3'; $arr['key4']='value4'; $arr['key5']='value5'; $arr['key6']='value6'; ``` I would like to test if a key is in the array. Is this function the correct way to proceed? ``` function isKeyInArray($key, $arr) { if(isset($...
2014/09/29
[ "https://Stackoverflow.com/questions/26095539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442408/" ]
You can use `array_key_exists`. ``` $a=array("Volvo"=>"XC90","BMW"=>"X5"); if (array_key_exists("Volvo",$a)) { echo "Key exists!"; } else { echo "Key does not exist!"; } ``` See <http://php.net/manual/en/function.array-key-exists.php>
Using `isset()` is good if you consider that `null` is not a suitable value. Also `isset` is faster than `array_key_exists`. ``` $a = [ 'one' => 1, 'two' => null ]; isset($a['one']); // true isset($a['two']); // false array_key_exists('two', $a); // true ```
26,095,539
This is my array in PHP: ``` $arr['key1']='value1'; $arr['key2']='value2'; $arr['key3']='value3'; $arr['key4']='value4'; $arr['key5']='value5'; $arr['key6']='value6'; ``` I would like to test if a key is in the array. Is this function the correct way to proceed? ``` function isKeyInArray($key, $arr) { if(isset($...
2014/09/29
[ "https://Stackoverflow.com/questions/26095539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442408/" ]
You can use `array_key_exists`. ``` $a=array("Volvo"=>"XC90","BMW"=>"X5"); if (array_key_exists("Volvo",$a)) { echo "Key exists!"; } else { echo "Key does not exist!"; } ``` See <http://php.net/manual/en/function.array-key-exists.php>
Use php function `array_key_exists('key3', $a);` First google your need and only after that you can use your own function. This will save lots of your time.
26,095,539
This is my array in PHP: ``` $arr['key1']='value1'; $arr['key2']='value2'; $arr['key3']='value3'; $arr['key4']='value4'; $arr['key5']='value5'; $arr['key6']='value6'; ``` I would like to test if a key is in the array. Is this function the correct way to proceed? ``` function isKeyInArray($key, $arr) { if(isset($...
2014/09/29
[ "https://Stackoverflow.com/questions/26095539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442408/" ]
Use [**array\_key\_exists**](http://php.net/manual/en/function.array-key-exists.php) ``` if(array_key_exists('key6',$arr)) echo "present"; else echo "not present"; ```
Use php function `array_key_exists('key3', $a);` First google your need and only after that you can use your own function. This will save lots of your time.
26,095,539
This is my array in PHP: ``` $arr['key1']='value1'; $arr['key2']='value2'; $arr['key3']='value3'; $arr['key4']='value4'; $arr['key5']='value5'; $arr['key6']='value6'; ``` I would like to test if a key is in the array. Is this function the correct way to proceed? ``` function isKeyInArray($key, $arr) { if(isset($...
2014/09/29
[ "https://Stackoverflow.com/questions/26095539", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442408/" ]
Using `isset()` is good if you consider that `null` is not a suitable value. Also `isset` is faster than `array_key_exists`. ``` $a = [ 'one' => 1, 'two' => null ]; isset($a['one']); // true isset($a['two']); // false array_key_exists('two', $a); // true ```
Use php function `array_key_exists('key3', $a);` First google your need and only after that you can use your own function. This will save lots of your time.
34,329,123
Magnific popup is working, but not the way I want it to. Here is [Plnkr](http://plnkr.co/edit/N2bwn9DdrsWSzWwnVDcH?p=preview). Why is it not working? Here is the jQuery code: ``` $('.view').click(function() { $('.image-popup').magnificPopup({ type: 'image', closeOnContentClick: true, mai...
2015/12/17
[ "https://Stackoverflow.com/questions/34329123", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2129602/" ]
Why don't you change your html to : ``` <div class="pic"> <a class="image-popup-fit-width" href="http://farm4.staticflickr.cm/3721/9207329484_ba28755ec4_o.jpg" title="This image fits only horizontally."> <img src="pictureLink" width="75" height="75"> </a> <p><a href="http://farm4.staticflickr.com/3721/920...
The anchor tag needs to have image-popup-fit-width class rather image-popup. ``` <a class="image-popup-fit-width" href="http://farm4.staticflickr.com/3721/9207329484_ba28755ec4_o.jpg" title="This image fits only horizontally."> <img src="http://farm4.staticflickr.com/3721/9207329484_ba28755ec4_o.jpg" width="7...
5,440,784
I am building an application which will require a collection to hold about 10k of Strings. Collection will be used as queue. So was looking through different collection types in C# but could not figure out which one has best performance in regards to speed of doing Put and Get operation in Queue. Also should be capab...
2011/03/26
[ "https://Stackoverflow.com/questions/5440784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/298642/" ]
If you are looking for High performance Put & Get while checking for **uniqueness** (duplicate checking) but order doesnt matter (not a queue) then use [`HashSet<T>`](http://msdn.microsoft.com/en-us/library/bb359438.aspx) If Queue feature is more important then use a [`Queue<T>`](http://msdn.microsoft.com/en-us/librar...
Do you mind spending O(2n) memory? You could use a Queue<> in combination with a Dictionary<,>. The queue would handle the queue and dequeue operations and the dictionary would ensure unique entries. A simple wrapper class could combine those two, and it would give you O(log n) queue and dequeue times. Example: ``` p...
5,440,784
I am building an application which will require a collection to hold about 10k of Strings. Collection will be used as queue. So was looking through different collection types in C# but could not figure out which one has best performance in regards to speed of doing Put and Get operation in Queue. Also should be capab...
2011/03/26
[ "https://Stackoverflow.com/questions/5440784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/298642/" ]
There is the [OrderedDictionary](http://msdn.microsoft.com/en-us/library/system.collections.specialized.ordereddictionary.aspx) class which keeps the insertion order but allows you to look up values by key.
Do you mind spending O(2n) memory? You could use a Queue<> in combination with a Dictionary<,>. The queue would handle the queue and dequeue operations and the dictionary would ensure unique entries. A simple wrapper class could combine those two, and it would give you O(log n) queue and dequeue times. Example: ``` p...
33,960,282
I am pretty new to objective-c, and I've tried searching around for possible answers - and I've had little to no luck. What I want to do is store multiple names and numbers, and retrieve these when needed. It's basically for storing scores. I tried using an NSDictionary, which contained keys and objects, where the k...
2015/11/27
[ "https://Stackoverflow.com/questions/33960282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4171026/" ]
The `NSDictionary` seems like a okay start, since this searches more efficiently than an array. Maybe you get trapped by `NSNumber != int`. (NSNumbers are objects, no primitives.) Check [the docs](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/) and see, if they ...
Either create a mutable array of mutable dictionaries, or a mutable array of custom UserInfo objects. Something simple like this would work: ``` @interface Userinfo: NSObject @property (nonatomic, strong) NSString *name @property (nonatomic, assign) int score @end ```
33,960,282
I am pretty new to objective-c, and I've tried searching around for possible answers - and I've had little to no luck. What I want to do is store multiple names and numbers, and retrieve these when needed. It's basically for storing scores. I tried using an NSDictionary, which contained keys and objects, where the k...
2015/11/27
[ "https://Stackoverflow.com/questions/33960282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4171026/" ]
Either create a mutable array of mutable dictionaries, or a mutable array of custom UserInfo objects. Something simple like this would work: ``` @interface Userinfo: NSObject @property (nonatomic, strong) NSString *name @property (nonatomic, assign) int score @end ```
You can store data like this ``` NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; [dictionary setObject:@"player1" forKey:@"user_name"]; [dictionary setObject:@"10" forKey:@"user_score"]; [userList addObject:dictionary]; ``` you can retrieve as mentioned below : ``` NSDictionary *dictionary = ...
33,960,282
I am pretty new to objective-c, and I've tried searching around for possible answers - and I've had little to no luck. What I want to do is store multiple names and numbers, and retrieve these when needed. It's basically for storing scores. I tried using an NSDictionary, which contained keys and objects, where the k...
2015/11/27
[ "https://Stackoverflow.com/questions/33960282", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4171026/" ]
The `NSDictionary` seems like a okay start, since this searches more efficiently than an array. Maybe you get trapped by `NSNumber != int`. (NSNumbers are objects, no primitives.) Check [the docs](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/) and see, if they ...
You can store data like this ``` NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; [dictionary setObject:@"player1" forKey:@"user_name"]; [dictionary setObject:@"10" forKey:@"user_score"]; [userList addObject:dictionary]; ``` you can retrieve as mentioned below : ``` NSDictionary *dictionary = ...
28,308,650
I found this piece of code that returns the checksum for a given String. ``` public static String getChecksum(String md5) { int counter = 0; while (counter != 2) { try { java.security.MessageDigest md = java.security.MessageDigest .getInstance("MD5"); byte[] ...
2015/02/03
[ "https://Stackoverflow.com/questions/28308650", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3254893/" ]
You cannot. The point of a cryptographic hash function (or a "`MessageDigest`") is that it is one-way - there is no known method to reverse the hash, besides brute force (where you hash every possible password, and see which one gives you the same hash). If you want to reverse the process, then you are not looking for...
A hash is a one-way cryptographic function, it has been purposefully and deliberately designed so that you can never, ever retrieve the plaintext given a hash. You can play games using dictionaries etc. to try to *guess* what the hash was... but you can't "decrypt" it.
28,890,845
To authenticate myself I need to add an authentication cookie and some header fields and value while I am opening a connection with web socket server. I have explored a lot but could not find any simple clear cut Python library that helps me do that.
2015/03/06
[ "https://Stackoverflow.com/questions/28890845", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4480220/" ]
Use capitalize: ``` new_list = map(str.capitalize, old_list) ```
Use [`str.title`](https://docs.python.org/2/library/stdtypes.html#str.title): ``` words = ["a", "able", "about", "across", "after", "all"] cap_words = [word.title() for word in words] ```
27,916
Can I assign SQL Server dbo permissions to a user, so it applies only for specified databases on a server? Currently using SQL Server 2005.
2012/10/30
[ "https://dba.stackexchange.com/questions/27916", "https://dba.stackexchange.com", "https://dba.stackexchange.com/users/-1/" ]
The code for SQL would be: ``` USE [DBName] --Insert DBName Here GO CREATE USER [SQLServerorWindowsUser] FOR LOGIN [SQLServerorWindowsUser] --add the user to the DB GO USE [DNBame] GO EXEC sp_addrolemember N'db_owner', N'SQLServerorWindowsUser' GO ``` **If you already have the user in the database you only need...
dbo stands for database owner. The only way to give that permission to a login is by creating a user that is associated with that login in a database and then give that user db\_owner access to that database. So granting this access is always happening a single database at a time. (But you could go through those steps...
27,916
Can I assign SQL Server dbo permissions to a user, so it applies only for specified databases on a server? Currently using SQL Server 2005.
2012/10/30
[ "https://dba.stackexchange.com/questions/27916", "https://dba.stackexchange.com", "https://dba.stackexchange.com/users/-1/" ]
dbo stands for database owner. The only way to give that permission to a login is by creating a user that is associated with that login in a database and then give that user db\_owner access to that database. So granting this access is always happening a single database at a time. (But you could go through those steps...
dbo is a user and db\_owner is database owner role. Only member of the sysadmin fixed server role are implicitly mapped to dbo user. However, any user in a database can be added to db\_owner role and doing so give them all permission for that database. > > > > > > an I assign SQL Server dbo permissions to a user, ...
27,916
Can I assign SQL Server dbo permissions to a user, so it applies only for specified databases on a server? Currently using SQL Server 2005.
2012/10/30
[ "https://dba.stackexchange.com/questions/27916", "https://dba.stackexchange.com", "https://dba.stackexchange.com/users/-1/" ]
The code for SQL would be: ``` USE [DBName] --Insert DBName Here GO CREATE USER [SQLServerorWindowsUser] FOR LOGIN [SQLServerorWindowsUser] --add the user to the DB GO USE [DNBame] GO EXEC sp_addrolemember N'db_owner', N'SQLServerorWindowsUser' GO ``` **If you already have the user in the database you only need...
dbo is a user and db\_owner is database owner role. Only member of the sysadmin fixed server role are implicitly mapped to dbo user. However, any user in a database can be added to db\_owner role and doing so give them all permission for that database. > > > > > > an I assign SQL Server dbo permissions to a user, ...
47,202,535
I have JS code to filter markers on map Here is it ``` $('#filter').on('click', function () { var startValue = $('#startDate').val(); var endValue = $('#endDate').val(); map.markers = []; map.markers.push(marker); //console.log(map.markers); $.each(map.markers, function ...
2017/11/09
[ "https://Stackoverflow.com/questions/47202535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8817987/" ]
Date instances (as in `new Date()`) are objects. Two objects are not equal unless they are the same object. You could try: ``` var getDate = marker.date.match(/\d/g).join(''); // "1508341846000" var markerDate = new Date( parseFloat( getDate ) ); var valDate = new Date(startValue); if ( m...
if your input is if format 09/11/2017 try build a proper data as ``` var myDate = new Date(startValue); ```
47,202,535
I have JS code to filter markers on map Here is it ``` $('#filter').on('click', function () { var startValue = $('#startDate').val(); var endValue = $('#endDate').val(); map.markers = []; map.markers.push(marker); //console.log(map.markers); $.each(map.markers, function ...
2017/11/09
[ "https://Stackoverflow.com/questions/47202535", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8817987/" ]
Date instances (as in `new Date()`) are objects. Two objects are not equal unless they are the same object. You could try: ``` var getDate = marker.date.match(/\d/g).join(''); // "1508341846000" var markerDate = new Date( parseFloat( getDate ) ); var valDate = new Date(startValue); if ( m...
try something like this.. I first strip value from marker.date to float and into Date, then compare it with selected date,, see if that works for you ```js $('#filter').on('click', function () { var startValue = $('#startDate').val(); var endValue = $('#endDate').val(); map.markers = []; ...
14,658,623
Is it possible to combine two list as a key value pair. The number of elements in both lists are same. i have two lists as follows. ``` list1 = ["a","b","c","d","e"] list2 = ["1","2","3","4","5"] ``` How i cam combine like the following ``` dict['a':1,'b':2,'c':3,'d':4,'e':5] ```
2013/02/02
[ "https://Stackoverflow.com/questions/14658623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1391733/" ]
`dictA = dict(zip(list1, list2))` More info on the `zip` function is available here: <http://docs.python.org/2/library/functions.html#zip> The above line first evaluates the `zip(list1, list2)`, which creates a list containing n tuples out of the nth element of the two lists. The `dict` call then takes the list of tu...
Try this: ``` dict (zip (list1, list2)) ```
14,658,623
Is it possible to combine two list as a key value pair. The number of elements in both lists are same. i have two lists as follows. ``` list1 = ["a","b","c","d","e"] list2 = ["1","2","3","4","5"] ``` How i cam combine like the following ``` dict['a':1,'b':2,'c':3,'d':4,'e':5] ```
2013/02/02
[ "https://Stackoverflow.com/questions/14658623", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1391733/" ]
`dictA = dict(zip(list1, list2))` More info on the `zip` function is available here: <http://docs.python.org/2/library/functions.html#zip> The above line first evaluates the `zip(list1, list2)`, which creates a list containing n tuples out of the nth element of the two lists. The `dict` call then takes the list of tu...
Do this: ``` my_dict = dict(zip(list1, map(int, list2))) ``` Or with a dict comprehension: ``` my_dict = {k: int(v) for k, v in zip(list1, list2)} ``` * `map` maps a function to each element of an iterable. ``` map(int, list2) == [1, 2, 3, 4, 5] ``` * `zip` gives a list of tuples of the nth element of each of t...
54,107,932
I have the 2 numbers that I want to compare entertedAmount = 65.00 and maxPrice = 5000.00 in my JavaScript Function. ``` var entertedAmount = parseFloat(textbox.value).toFixed(2); var maxPrice = parseFloat(passedMaxPrice).toFixed(2); if (entertedAmount <= maxPrice) { var strSplit = tex...
2019/01/09
[ "https://Stackoverflow.com/questions/54107932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10866855/" ]
The problem comes from your Tofixed function which converts the decimal obtained with parseFloat into a string. So you have to surround it with Number (). ```js var textbox = document.getElementById('textbox'); var entertedAmount = Number(parseFloat(textbox.value).toFixed(2)); var maxPrice = Number(parseFloat(5000)....
``` if(Number(entertedAmount) <= Number(maxPrice)){ }else{ } ```
54,107,932
I have the 2 numbers that I want to compare entertedAmount = 65.00 and maxPrice = 5000.00 in my JavaScript Function. ``` var entertedAmount = parseFloat(textbox.value).toFixed(2); var maxPrice = parseFloat(passedMaxPrice).toFixed(2); if (entertedAmount <= maxPrice) { var strSplit = tex...
2019/01/09
[ "https://Stackoverflow.com/questions/54107932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10866855/" ]
The problem comes from your Tofixed function which converts the decimal obtained with parseFloat into a string. So you have to surround it with Number (). ```js var textbox = document.getElementById('textbox'); var entertedAmount = Number(parseFloat(textbox.value).toFixed(2)); var maxPrice = Number(parseFloat(5000)....
toFixed returns a string so you have to parse that string into float ``` if(parseFloat(entertedAmount) <= parseFloat(maxPrice)){ } else{ } ``` Hope this works for you.
2,523,905
$$ a\_{n}= \frac{\ln(n)}{n}$$ can somebody show me how to prove if the sequence increases or decreases(monotony) ?i would really appreciate it if you could explain too.
2017/11/16
[ "https://math.stackexchange.com/questions/2523905", "https://math.stackexchange.com", "https://math.stackexchange.com/users/503350/" ]
Another way is to use standard limits. We know $\lim\_{x\to 0}\frac{\tan x}{x}=1$ and $\lim\_{x\to 0}\frac{\sin x}{x}=1$. So dividing each term in your limit by $x$, we get: $$\lim\_{x\to 0}\frac{\frac{\tan x}{x}+\frac{2\sin(2x)}{2x}sin2x}{2x-6\frac{\tan 3x}{3x}}$$ Using standard limits above, we get in the numerator $...
Use *equivalents*: $\tan x\sim\_0 x$, $\sin 2x\sim\_0 2x$, hence $\sin^2 2x\sim\_0 4x^2$, so $\tan x+\sin^22x\sim\_0\tan x\sim\_0x$. Similarly, $2x^2-2\tan 3x\sim\_0 -6x$, and finally $$\frac{\tan x+\sin^22x}{2x^2-2\tan 3x}\sim\_0 \frac x{-6x}=-\frac{1}{6}.$$
22,224,071
I want to request for a certain web page content for particular option selected from drop down list. In my example, I want content from web page where Community and Level are two drop down lists. and I want web page for option `Community='SoftwareFactory/Cloude'` and `Level='V6R2015x'`. My code is ``` <?php // init...
2014/03/06
[ "https://Stackoverflow.com/questions/22224071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3388006/" ]
You need to enable the `cURL` POST parameter to `true`. ``` curl_setopt_array( $ch, array( CURLOPT_POST => true, //<------------ This one ! CURLOPT_URL => 'http://e4allds/', CURLOPT_POSTFIELDS => $postData, //OPTION1=> 'Community=SOftwareFactory/Cloud', //OPTION2=> 'Level=V6R2015x', CURLOP...
According to [manual](http://php.net/curl_setopt), `CURLOPT_POSTFIELDS` option is *The full data to post in a **HTTP "POST"** operation*. So, either you should switch to `POST` method: ``` curl_setopt_array( $ch, array( CURLOPT_URL => 'http://e4allds/', CURLOPT_POST => true, CURLOPT_POSTFIELDS => $post...
2,908,402
Let $f$ be continuous real-valued function on $[0,1]$ and \begin{align} F(x)=\max\{f(t):0\leq t\leq x\}. \end{align} I want to show that $F(x)$ is also continuous on $[0,1]$. **MY WORK** Let $\epsilon> 0$ be given and $x\_0\in [0,1].$ Since f is continuous at $x\_0\in [0,1],$ then $\forall x\in [0,1]$ with $|x-x\_...
2018/09/07
[ "https://math.stackexchange.com/questions/2908402", "https://math.stackexchange.com", "https://math.stackexchange.com/users/586973/" ]
Let $I = \int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}$. Then, as you said, consider the substitution $u = 2014 - x$. In particular, $$I = \int\_{2014}^0 \frac{\sqrt{u}}{\sqrt{2014 - u} + \sqrt{u}} \cdot (-1) \,du = \int\_0^{2014} \frac{\sqrt{u}}{\sqrt{2014 - u} + \sqrt{u}} \,du$$ Relabel the $u$...
If you substitute $x \mapsto 2014-x$, you get $$ I = \int\_0^{2014} \frac{\sqrt{2014-x}}{\sqrt{x} + \sqrt{2014-x}} \, dx = \int\_{0}^{2014} \frac{\sqrt{x}}{\sqrt{x} + \sqrt{2014-x}} \, dx. $$ Hence \begin{align} 1007 &= \frac{1}{2}\int\_0^{2014} dx = \frac{1}{2}\int\_0^{2014}\frac{\sqrt{2014-x}}{\sqrt{x} + \sqrt{2014-x...
2,908,402
Let $f$ be continuous real-valued function on $[0,1]$ and \begin{align} F(x)=\max\{f(t):0\leq t\leq x\}. \end{align} I want to show that $F(x)$ is also continuous on $[0,1]$. **MY WORK** Let $\epsilon> 0$ be given and $x\_0\in [0,1].$ Since f is continuous at $x\_0\in [0,1],$ then $\forall x\in [0,1]$ with $|x-x\_...
2018/09/07
[ "https://math.stackexchange.com/questions/2908402", "https://math.stackexchange.com", "https://math.stackexchange.com/users/586973/" ]
Let $I = \int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}$. Then, as you said, consider the substitution $u = 2014 - x$. In particular, $$I = \int\_{2014}^0 \frac{\sqrt{u}}{\sqrt{2014 - u} + \sqrt{u}} \cdot (-1) \,du = \int\_0^{2014} \frac{\sqrt{u}}{\sqrt{2014 - u} + \sqrt{u}} \,du$$ Relabel the $u$...
$$let \int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}=A \\ put \ 2014-x=u \\ \implies \int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}=\int\_{2014}^{0}{\frac{\sqrt{u}}{\sqrt{u}+\sqrt{2014-u}}(-du)}\\=\int\_{0}^{2014}{\frac{\sqrt{u}}{\sqrt{u}+\sqrt{2014-u}}(du)}=A \\ add \ both \ integra...
2,908,402
Let $f$ be continuous real-valued function on $[0,1]$ and \begin{align} F(x)=\max\{f(t):0\leq t\leq x\}. \end{align} I want to show that $F(x)$ is also continuous on $[0,1]$. **MY WORK** Let $\epsilon> 0$ be given and $x\_0\in [0,1].$ Since f is continuous at $x\_0\in [0,1],$ then $\forall x\in [0,1]$ with $|x-x\_...
2018/09/07
[ "https://math.stackexchange.com/questions/2908402", "https://math.stackexchange.com", "https://math.stackexchange.com/users/586973/" ]
Let $I = \int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}$. Then, as you said, consider the substitution $u = 2014 - x$. In particular, $$I = \int\_{2014}^0 \frac{\sqrt{u}}{\sqrt{2014 - u} + \sqrt{u}} \cdot (-1) \,du = \int\_0^{2014} \frac{\sqrt{u}}{\sqrt{2014 - u} + \sqrt{u}} \,du$$ Relabel the $u$...
Don't need to do that substitution again and again just apply this formula $$\int\_a^bf(x)~dx=\int\_a^bf(a+b-x)~dx$$ $$I=\int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}$$ Apply the formula $$\int\_a^bf(x)~dx=\int\_a^bf(a+b-x)~dx$$ $$ I=\int\_{0}^{2014}{\frac{\sqrt{2014-(2014+0-x)}}{\sqrt{2014+0-x...
2,908,402
Let $f$ be continuous real-valued function on $[0,1]$ and \begin{align} F(x)=\max\{f(t):0\leq t\leq x\}. \end{align} I want to show that $F(x)$ is also continuous on $[0,1]$. **MY WORK** Let $\epsilon> 0$ be given and $x\_0\in [0,1].$ Since f is continuous at $x\_0\in [0,1],$ then $\forall x\in [0,1]$ with $|x-x\_...
2018/09/07
[ "https://math.stackexchange.com/questions/2908402", "https://math.stackexchange.com", "https://math.stackexchange.com/users/586973/" ]
If you substitute $x \mapsto 2014-x$, you get $$ I = \int\_0^{2014} \frac{\sqrt{2014-x}}{\sqrt{x} + \sqrt{2014-x}} \, dx = \int\_{0}^{2014} \frac{\sqrt{x}}{\sqrt{x} + \sqrt{2014-x}} \, dx. $$ Hence \begin{align} 1007 &= \frac{1}{2}\int\_0^{2014} dx = \frac{1}{2}\int\_0^{2014}\frac{\sqrt{2014-x}}{\sqrt{x} + \sqrt{2014-x...
$$let \int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}=A \\ put \ 2014-x=u \\ \implies \int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}=\int\_{2014}^{0}{\frac{\sqrt{u}}{\sqrt{u}+\sqrt{2014-u}}(-du)}\\=\int\_{0}^{2014}{\frac{\sqrt{u}}{\sqrt{u}+\sqrt{2014-u}}(du)}=A \\ add \ both \ integra...
2,908,402
Let $f$ be continuous real-valued function on $[0,1]$ and \begin{align} F(x)=\max\{f(t):0\leq t\leq x\}. \end{align} I want to show that $F(x)$ is also continuous on $[0,1]$. **MY WORK** Let $\epsilon> 0$ be given and $x\_0\in [0,1].$ Since f is continuous at $x\_0\in [0,1],$ then $\forall x\in [0,1]$ with $|x-x\_...
2018/09/07
[ "https://math.stackexchange.com/questions/2908402", "https://math.stackexchange.com", "https://math.stackexchange.com/users/586973/" ]
If you substitute $x \mapsto 2014-x$, you get $$ I = \int\_0^{2014} \frac{\sqrt{2014-x}}{\sqrt{x} + \sqrt{2014-x}} \, dx = \int\_{0}^{2014} \frac{\sqrt{x}}{\sqrt{x} + \sqrt{2014-x}} \, dx. $$ Hence \begin{align} 1007 &= \frac{1}{2}\int\_0^{2014} dx = \frac{1}{2}\int\_0^{2014}\frac{\sqrt{2014-x}}{\sqrt{x} + \sqrt{2014-x...
Don't need to do that substitution again and again just apply this formula $$\int\_a^bf(x)~dx=\int\_a^bf(a+b-x)~dx$$ $$I=\int\_{0}^{2014}{\frac{\sqrt{2014-x}}{\sqrt{x}+\sqrt{2014-x}}dx}$$ Apply the formula $$\int\_a^bf(x)~dx=\int\_a^bf(a+b-x)~dx$$ $$ I=\int\_{0}^{2014}{\frac{\sqrt{2014-(2014+0-x)}}{\sqrt{2014+0-x...