qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
54,040,858
Python version: 3.x I have two dictionaries with same keys and the values are arrays. Most of the questions I saw here, for the required purpose, have only one value for each key. What I want is to merge those two dictionaries with values as joined array. Maybe below would clear: What I've: ``` d1 = {(1, "Autumn"): ...
2019/01/04
[ "https://Stackoverflow.com/questions/54040858", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9710042/" ]
If you always have the same keys in both dicts, this should fit your needs: ``` d3 = {key:np.hstack([d1[key],d2[key]]) for key in d1.keys()} ``` Outputs: ``` In [7]: d3 Out[7]: {(1, 'Autumn'): array([ 2.5, 4.5, 7.5, 9.5, 10.2, 13.3, 15.7, 18.8]), (1, 'Spring'): array([10.5, 11.7, 12.3, 15. , 15.6, 20. , 23. , ...
``` import numpy as np d1 = {(1, "Autumn"): [2.5, 4.5, 7.5, 9.5], (1, "Spring"): [10.5, 11.7, 12.3, 15.0]} d2 = {(1, "Autumn"): [10.2, 13.3, 15.7, 18.8], (1, "Spring"): [15.6, 20, 23, 27]} d3 = {(1, "Autumn"): np.array(d1[(1, "Autumn")] + d2[(1, "Autumn")]), (1,"Spring"): np.array(d1[(1, "Spring")] + d2[(1, "Spring")]...
35,725,089
``` public class MainActivity extends AppCompatActivity { private TaskDBHelper helper; private ListAdapter listAdapter; @Override public void onCreate(Bundle savedInstanceState) { private void updateUI(){ helper = new TaskDBHelper(MainActivity.this); ...
2016/03/01
[ "https://Stackoverflow.com/questions/35725089", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3651151/" ]
I would prefer to use the JSON\_REMOVE function (MySQL) : ``` UPDATE emp SET emp.col = JSON_REMOVE(emp.col, '$.field1'); ``` You can also add a WHERE clause : ``` WHERE emp.col LIKE '%val6%'; ``` *References:* [MySQL JSON\_REMOVE](https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html#function_j...
You can do it like this: ``` SELECT SUBSTRING(Field, 1, INSTR(Field, '"field1"')) + SUBSTRING(Field, INSTR(Field, '"field2"'), LENGTH(Field)) FROM @Temp ``` I don't know if this works but this is the idea. (Can't test ATM) Here is the MsSQL equivalent (works, just tested!): ``` SELECT SUBSTRING(Field, 0, CHARINDEX...
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
Ideally, you want something that will absorb the heat from the too hot meat until the meat cools down enough, then re-emits it to help hold the meat near serving temperature until it is time to cut. You won't get that with something that conducts all the heat away (metal table), or absorbs it never to return (stone co...
Pull the meat off the grill about 5 to 10 degrees below the desired tem because the meat wil continue to "cook" and rise in temp....so after 5 to 10 minutes your meat will be ready to carve and serve....
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
Straight after it comes out of the pan it will usually be too hot to eat. Regardless of resting or not, you can't fully taste things which are too hot, they need to come down to a comfortable temperature before you eat them. Some things you can do to stop the meat being too cold when you serve it: * You can rest the...
If you've cooked the meat in the oven, then turn off the heat and leave the door open ajar.
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
For me the secret to resting is all about core temperature. Let's take a beef fillet steak for an example. There is no way the meat can dry out under 55 C due to the structure of the fibers and you can also not overcook a steak when the core temperature does not rise above 50/55 C according to personal tastes. For thi...
When you are talking about a roast then I tent for at least 10 minutes and sometimes as long as 20 minutes, the meat is hot and juicy. But I have the same problem with cut meat such as a breast of duck. The answer seems to be to add a hot sauce over what is now room temperature meat. The larger the pieces you cut the w...
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
For me the secret to resting is all about core temperature. Let's take a beef fillet steak for an example. There is no way the meat can dry out under 55 C due to the structure of the fibers and you can also not overcook a steak when the core temperature does not rise above 50/55 C according to personal tastes. For thi...
Just leave it on a cutting board for a few minutes. See [importance-of-resting-grilling](http://www.seriouseats.com/2009/12/how-to-have-juicy-meats-steaks-the-food-lab-the-importance-of-resting-grilling.html) Slice to serve, and transfer to heated serving plate
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
Ideally, you want something that will absorb the heat from the too hot meat until the meat cools down enough, then re-emits it to help hold the meat near serving temperature until it is time to cut. You won't get that with something that conducts all the heat away (metal table), or absorbs it never to return (stone co...
many large joints and cuts can actually rise in temperature by between about 5 and ten degrees centigrade after being removed from the oven. use a probe.
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
Resting your meat, contrary to many of the answers here, has nothing to do with allowing it to cool to a more palatable temperature before enjoying. This may happen a litte during the process but it in no way exists as the basis for employing the method of (tenting &) resting. Simply put, as the term itself implies, 'r...
What happens when you leave any food out? It gets cold. None of the suggestions furnished are helpful. For crying out aloud, foil! Reheating, foil, hot ceramic plates all have the same problem when it comes to steak - they extend the cooking process which is NOT what you want. Rest by all means if it's a cold cut you'r...
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
Straight after it comes out of the pan it will usually be too hot to eat. Regardless of resting or not, you can't fully taste things which are too hot, they need to come down to a comfortable temperature before you eat them. Some things you can do to stop the meat being too cold when you serve it: * You can rest the...
Just dont worry too much about it. Let it sit for a few minutes on a room temp plate then eat. How hard is that? You can leave in the oven set to the desired temp also as long as its not still "cooking". Meat cooks a little after taking off the heat. I always stop cooking it about 5 degrees under what im aiming for. Iv...
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
Resting your meat, contrary to many of the answers here, has nothing to do with allowing it to cool to a more palatable temperature before enjoying. This may happen a litte during the process but it in no way exists as the basis for employing the method of (tenting &) resting. Simply put, as the term itself implies, 'r...
Heat your plate in microwave then put steak on it to rest, with door closed, lovely and juicy.
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
If you've cooked the meat in the oven, then turn off the heat and leave the door open ajar.
Resting your meat, contrary to many of the answers here, has nothing to do with allowing it to cool to a more palatable temperature before enjoying. This may happen a litte during the process but it in no way exists as the basis for employing the method of (tenting &) resting. Simply put, as the term itself implies, 'r...
2,743
Having read [this question](https://cooking.stackexchange.com/questions/623/why-should-i-rest-meat-after-cooking) I am persuaded that resting meat is good for its flavour. But if the meat has a good temperature straight after it's been cooked, it seems as though it will be too cold after resting it for a few minutes. ...
2010/07/22
[ "https://cooking.stackexchange.com/questions/2743", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/686/" ]
many large joints and cuts can actually rise in temperature by between about 5 and ten degrees centigrade after being removed from the oven. use a probe.
Heat your plate in microwave then put steak on it to rest, with door closed, lovely and juicy.
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
My problem was that the emulator I was using had `airplane mode` turned on (because I tested related functionality). The problem resolved when I turned it off, thus enabling network to operate as usual.
What worked for me in this scenario was these steps * run server with --reset-cache * run npx jetify * open the project in adroid studio * go to refactor -> Migrate to AndroidX (this was the step that i was missing earlier) * start your emulator * run the app from android studio and it should work
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
Your iPhone & mac must be connected to the same network. If both device connected to same network you must check local network availability for your app. (this happened to me on a iOS 14.0 running device). **check local network - iOS 14** Settings -> Privacy -> Local Network
I work on **IOS environment, testing on an IPad** that is USB connected. I managed to fix this issue by adding the bundler address (127.0.0.1) in the ipad to reconnect ***Shake the device (opens react native debug menu) > Configure Bundler > "127.0.0.1" in the first field*** Hope this helps someone !
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
You musk permit local network in the application setting in iOS. Otherwise, Metro can not find your app even in the same network.
My problem was that i added --variant=release ``` npx react-native run-android --variant=release ``` So i remove it and worked for me.Like this: ``` npx react-native run-android ```
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
**⚠️ For iOS users :** Check that your build target is Debug : Xcode Product => Scheme => Edit Scheme => Debug (and not release ! ) **⚠️ For Android users :** I have found a solution that I posted on github. Not the best but it could be useful: **First**, you have to open `MainApplication.java` and remove `import ...
I work on **IOS environment, testing on an IPad** that is USB connected. I managed to fix this issue by adding the bundler address (127.0.0.1) in the ipad to reconnect ***Shake the device (opens react native debug menu) > Configure Bundler > "127.0.0.1" in the first field*** Hope this helps someone !
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
For me I need to set the bundler location in my app from "localhost:8081" to "192.168.1.XX:8081" which is my computer's local IP address where Metro bundler runs on and the port is 8081. If you don't know which port your bundler runs on you can specify it as a parameter like: ``` npx react-native start --port 8081 `...
``` yarn start web ``` you can use this command to scan the QR code and see the app in you EXPO app at you mobile
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
Your iPhone & mac must be connected to the same network. If both device connected to same network you must check local network availability for your app. (this happened to me on a iOS 14.0 running device). **check local network - iOS 14** Settings -> Privacy -> Local Network
What worked for me in this scenario was these steps * run server with --reset-cache * run npx jetify * open the project in adroid studio * go to refactor -> Migrate to AndroidX (this was the step that i was missing earlier) * start your emulator * run the app from android studio and it should work
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
Your iPhone & mac must be connected to the same network. If both device connected to same network you must check local network availability for your app. (this happened to me on a iOS 14.0 running device). **check local network - iOS 14** Settings -> Privacy -> Local Network
For me the solution was to remove the installed app and build run in Xcode again.
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
My problem was that the emulator I was using had `airplane mode` turned on (because I tested related functionality). The problem resolved when I turned it off, thus enabling network to operate as usual.
``` yarn start web ``` you can use this command to scan the QR code and see the app in you EXPO app at you mobile
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
I work on **IOS environment, testing on an IPad** that is USB connected. I managed to fix this issue by adding the bundler address (127.0.0.1) in the ipad to reconnect ***Shake the device (opens react native debug menu) > Configure Bundler > "127.0.0.1" in the first field*** Hope this helps someone !
My problem was that i added --variant=release ``` npx react-native run-android --variant=release ``` So i remove it and worked for me.Like this: ``` npx react-native run-android ```
62,937,575
I am working on a nodejs twitter api and it's working perfectly fine in the local env but when I try to containerize, it fails with a 401 error from twitter.js which is "HTTP 401 Unauthorized client error status response code". Error ``` > node app.js Error: Status Code: 401 at Request.<anonymous> (/usr/src/app/...
2020/07/16
[ "https://Stackoverflow.com/questions/62937575", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9471080/" ]
Sometimes it's a firewall / router issue - see if that's your problem: 1. Find out the local IP address of your computer (where your Metro bundler / server is running). 2. Open a browser from your phone. 3. Open the IP address from #1 with port 8081 (e.g. `http://192.168.0.42:8081`). If it's not loading -> it's a fir...
I tried everything and after running ``` adb reverse tcp:8081 tcp:8081 yarn android ``` it worked.
24,838
On an interview aired in 1959 Bertrand Russel, talking about religious beliefs said: *"...it seems to me a fundamental dishonesty to hold a belief because is useful and not because is true."* The open statement in Jeremy Bentham's book **An Introduction to the Principles of Morals and Legislation** published in 1789 i...
2015/07/06
[ "https://philosophy.stackexchange.com/questions/24838", "https://philosophy.stackexchange.com", "https://philosophy.stackexchange.com/users/6049/" ]
The quote from Russell is in conflict, not with Utilitarianism, but with some versions of Pragmatism, in particular with William James' Pragmatist Theory of Truth. Note that Bentham's quote refers to the good and the right in *actions*; while Russell's quote refers to the holding and to the truth of *beliefs*. Those a...
I think it helps to include [more of the transcript](http://staringatemptypages.blogspot.com/2010/02/in-memory-of-bertrand-russell.html) than you provided. For example, when pressed on the practical benefits of moral rules coming from religion, Russell responds: > > Yes, but those rules are generally quite mistaken. ...
3,641,846
what is the difference between `NSURLConnection` and `NSURL`? i mean if i am downloading a file, does it make and difference which one i use? Rgds for: ``` NSString *myUrl = @"http://www.test.com/"; NSString *returnData = [NSString stringWithContentsOfURL:[NSURL URLWithString: myUrl]]; ``` or ``` ...
2010/09/04
[ "https://Stackoverflow.com/questions/3641846", "https://Stackoverflow.com", "https://Stackoverflow.com/users/424869/" ]
I bet `uint8` is a `typedef` for `unsigned char` in your system headers. Then `std::cout << u` will print symbols rather than integer values, where `u` is of type `uint8`. Try ``` std::cout << static_cast< int >( u ); ``` or ``` std::cout << +u; ``` to have numeric values printed.
It all depends on how you printing the value out. For cout, try `cout << (long unsigned int)var;`, and for `printf`, you can try using the `%lu` format specifier. However, like usta mentioned, `uint8` is likely defined or typedef'd as something else, since that is not an ISO C++ type. There is also the possibility that...
9,947,131
I would like to know how I can count all records of an entity in a doctrine repository I found this solution but am not sure if this is good so: ```php public function findAllCounted() { return $this->getEntityManager() ->createQuery('SELECT COUNT(a.id) FROM KSRArticleBundle:Article a') ->getSingl...
2012/03/30
[ "https://Stackoverflow.com/questions/9947131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246987/" ]
You don't need to count on a specific field, so this will do: ``` SELECT COUNT(a) FROM KSRArticleBundle:Article a ```
Just for the record, it is usually better to count on the id : ``` SELECT COUNT(a.id) FROM KSRArticleBundle:Article a ``` is a little better
9,947,131
I would like to know how I can count all records of an entity in a doctrine repository I found this solution but am not sure if this is good so: ```php public function findAllCounted() { return $this->getEntityManager() ->createQuery('SELECT COUNT(a.id) FROM KSRArticleBundle:Article a') ->getSingl...
2012/03/30
[ "https://Stackoverflow.com/questions/9947131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246987/" ]
You don't need to count on a specific field, so this will do: ``` SELECT COUNT(a) FROM KSRArticleBundle:Article a ```
SQL also allows this: ``` SELECT COUNT(1) FROM KSRArticleBundle:Article a ``` In this way the database does not even have to fetch any data from the table, which is even faster. Literally what it says: select the number of the constant '1' for every record. Small speed increase for well-designed data base servers an...
9,947,131
I would like to know how I can count all records of an entity in a doctrine repository I found this solution but am not sure if this is good so: ```php public function findAllCounted() { return $this->getEntityManager() ->createQuery('SELECT COUNT(a.id) FROM KSRArticleBundle:Article a') ->getSingl...
2012/03/30
[ "https://Stackoverflow.com/questions/9947131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246987/" ]
You don't need to count on a specific field, so this will do: ``` SELECT COUNT(a) FROM KSRArticleBundle:Article a ```
the result of the query is an array which always has a position zero and a parameter "1" ``` $recordnumber= $number[0]["1"]; ``` the table name should be equal to the entity name and start with a capital
9,947,131
I would like to know how I can count all records of an entity in a doctrine repository I found this solution but am not sure if this is good so: ```php public function findAllCounted() { return $this->getEntityManager() ->createQuery('SELECT COUNT(a.id) FROM KSRArticleBundle:Article a') ->getSingl...
2012/03/30
[ "https://Stackoverflow.com/questions/9947131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246987/" ]
Just for the record, it is usually better to count on the id : ``` SELECT COUNT(a.id) FROM KSRArticleBundle:Article a ``` is a little better
SQL also allows this: ``` SELECT COUNT(1) FROM KSRArticleBundle:Article a ``` In this way the database does not even have to fetch any data from the table, which is even faster. Literally what it says: select the number of the constant '1' for every record. Small speed increase for well-designed data base servers an...
9,947,131
I would like to know how I can count all records of an entity in a doctrine repository I found this solution but am not sure if this is good so: ```php public function findAllCounted() { return $this->getEntityManager() ->createQuery('SELECT COUNT(a.id) FROM KSRArticleBundle:Article a') ->getSingl...
2012/03/30
[ "https://Stackoverflow.com/questions/9947131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1246987/" ]
Just for the record, it is usually better to count on the id : ``` SELECT COUNT(a.id) FROM KSRArticleBundle:Article a ``` is a little better
the result of the query is an array which always has a position zero and a parameter "1" ``` $recordnumber= $number[0]["1"]; ``` the table name should be equal to the entity name and start with a capital
63,742,312
Is it possible to discover services using DNS-SD on **client** side using some JS library (so to discover services on client's local network)? I found a lot of libraries on npmjs.com, but they all work on Node.js, not on client-side JS.
2020/09/04
[ "https://Stackoverflow.com/questions/63742312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4810510/" ]
I finally found how to do! Here is the code: ``` sfn.Chain.start(OtherTaskWeDoNotCareHere) .next(task1) .next( new sfn.Choice(this, "task2") .when( sfn.Condition.booleanEquals("$.isFinished", false), task3.next(task1) ) .otherwise(new sfn.Succeed(this, "Done")) ); ```
I'm glad you were able to figure it out! Here's some additional information regarding iterating through a loop with Step Functions and Lambda: [Iterating a Loop Using Lambda - AWS Step Functions](https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-create-iterate-pattern-section.html)
52,468,277
I have a table in SAS which has a variable say X. I want to know only the range of X, I used PROC UNIVARIATE, but it gives out a lot of other information. I have been trying to use RANGE function in the following way, but doesn't yield any result. Please help! ``` DATA DATASET2; SET DATASET1; R=RANGE(X); KEEP R; RUN;...
2018/09/23
[ "https://Stackoverflow.com/questions/52468277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3437212/" ]
> > I know this code works with O(1): > > > `car_value = list(car_dict.values())` > > > This is incorrect. To form a list from a view you must iterate over all values. This operation will have time complexity of O(n). In general, creating a list of keys and values is not necessary. Avoid these operations as the...
This would do you can compare the key's value to the min of the values ``` worst = [i for i in car_dict if car_dict[i] == min(car_dict.values())] ```
52,468,277
I have a table in SAS which has a variable say X. I want to know only the range of X, I used PROC UNIVARIATE, but it gives out a lot of other information. I have been trying to use RANGE function in the following way, but doesn't yield any result. Please help! ``` DATA DATASET2; SET DATASET1; R=RANGE(X); KEEP R; RUN;...
2018/09/23
[ "https://Stackoverflow.com/questions/52468277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3437212/" ]
> > I know this code works with O(1): > > > `car_value = list(car_dict.values())` > > > This is incorrect. To form a list from a view you must iterate over all values. This operation will have time complexity of O(n). In general, creating a list of keys and values is not necessary. Avoid these operations as the...
You cannot solve this problem in faster than linear time, but you can solve it in linear time **in one pass**: ``` min_speed = None that_car = None for car,speed in car_dict.items(): if min_speed is None or speed < min_speed: that_car, min_speed = car, speed that_car #'fiat' ```
52,468,277
I have a table in SAS which has a variable say X. I want to know only the range of X, I used PROC UNIVARIATE, but it gives out a lot of other information. I have been trying to use RANGE function in the following way, but doesn't yield any result. Please help! ``` DATA DATASET2; SET DATASET1; R=RANGE(X); KEEP R; RUN;...
2018/09/23
[ "https://Stackoverflow.com/questions/52468277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3437212/" ]
> > I know this code works with O(1): > > > `car_value = list(car_dict.values())` > > > This is incorrect. To form a list from a view you must iterate over all values. This operation will have time complexity of O(n). In general, creating a list of keys and values is not necessary. Avoid these operations as the...
well I'm not sure what is the run time of this one but you can try it it works for me : ``` >>> d = {'mercedes': 200, 'fiat': 100, 'porsche': 300, 'rocketcar': 600} >>> d.items() [('mercedes', 200), ('fiat', 100), ('porsche', 300) , ('rocketcar',600)] >>> # find the minimum by comparing the second element of each tup...
52,468,277
I have a table in SAS which has a variable say X. I want to know only the range of X, I used PROC UNIVARIATE, but it gives out a lot of other information. I have been trying to use RANGE function in the following way, but doesn't yield any result. Please help! ``` DATA DATASET2; SET DATASET1; R=RANGE(X); KEEP R; RUN;...
2018/09/23
[ "https://Stackoverflow.com/questions/52468277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3437212/" ]
> > I know this code works with O(1): > > > `car_value = list(car_dict.values())` > > > This is incorrect. To form a list from a view you must iterate over all values. This operation will have time complexity of O(n). In general, creating a list of keys and values is not necessary. Avoid these operations as the...
How about this: ``` car_dict = {'mercedes': 200, 'fiat': 100, 'porsche': 300, 'rocketcar': 600} min_car = {} for car in car_dict: if not min_car or car_dict[car] < min_car['speed']: min_car['name'] = car min_car['speed'] = car_dict[car] print(min_car) ```
52,468,277
I have a table in SAS which has a variable say X. I want to know only the range of X, I used PROC UNIVARIATE, but it gives out a lot of other information. I have been trying to use RANGE function in the following way, but doesn't yield any result. Please help! ``` DATA DATASET2; SET DATASET1; R=RANGE(X); KEEP R; RUN;...
2018/09/23
[ "https://Stackoverflow.com/questions/52468277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3437212/" ]
> > I know this code works with O(1): > > > `car_value = list(car_dict.values())` > > > This is incorrect. To form a list from a view you must iterate over all values. This operation will have time complexity of O(n). In general, creating a list of keys and values is not necessary. Avoid these operations as the...
The thing is you shouldn't solve this problem with a comprehension because you can't do assignment in a comprehension. Iterating the dictionary you can find the minimum in a single pass: ``` car_iterator = iter(car_dict.items()) slowest_car, min_speed = next(car_list) for car, speed in car_iterator: if speed < min...
203,802
I'm a beginner in electronics field . In hybrid and pi and T models we have a resistance called r0 or ro . What's the correct name ? Is it "r-zero" or "r-o (15th alphabet letter)". Pls give references . Different people say different stuff ! Thanks ...
2015/12/01
[ "https://electronics.stackexchange.com/questions/203802", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/93277/" ]
It's a subscripted letter O. \$r\_o\$ is the output resistance of the transistor. It represents the fact that the transistor is not an ideal voltage-controlled current source. The collector/drain voltage does have some influence on the current, and that's what \$r\_o\$ models.
Ro is the output resistance, so it should be the letter O and not the number 0. For instance on the wikipedia page for the hybrid pi model (<https://en.wikipedia.org/wiki/Hybrid-pi_model>) it shows Ro as being the output resistance of the Early Effect.
203,802
I'm a beginner in electronics field . In hybrid and pi and T models we have a resistance called r0 or ro . What's the correct name ? Is it "r-zero" or "r-o (15th alphabet letter)". Pls give references . Different people say different stuff ! Thanks ...
2015/12/01
[ "https://electronics.stackexchange.com/questions/203802", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/93277/" ]
It's a subscripted letter O. \$r\_o\$ is the output resistance of the transistor. It represents the fact that the transistor is not an ideal voltage-controlled current source. The collector/drain voltage does have some influence on the current, and that's what \$r\_o\$ models.
In the models you are referring to, ro (as in the letter) is short hand notation for Resistance Output. More specifically this resistance is due to the Early Effect.
24,409,498
I'm using cPanel. I created a database and a user with it's password. But when im trying to connect to it using this code ``` $con=mysqli_connect("ahmadhammoud.com", "ahmadham_ahmad", "***********", "ahmadham_dbtest"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error();} mysqli_...
2014/06/25
[ "https://Stackoverflow.com/questions/24409498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3671574/" ]
Try: ``` $con=mysqli_connect("localhost", "ahmadham_ahmad", "***********", "ahmadham_dbtest"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error();} mysqli_close($con); ``` Use `localhost` if you are on same server as your mysql server. Then try change your username, `ahmadham_...
I think you didnt enable remote connection. try to enable remote connection i think then it should work.
29,655,388
I'm trying to do a responsive menu for my website. ``` if(window.matchMedia("(max-width: 767px)").matches){ - my code - } ``` I use this code above to detect the size of the window, but there is one problem and that is when i'm resizing it, i have to update the site in order to make it to work again, how can i do th...
2015/04/15
[ "https://Stackoverflow.com/questions/29655388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4346491/" ]
In the example you've provided, you should be able to just remove the explicit delegate constructor: ``` eventInfo.AddEventHandler(client, (obj, args) => task.Complete()); ``` By letting C# infer the delegate type for you, it should create exactly the correct delegate type needed for the parameter. If that does not...
It turns out this is not so difficult, but does require some amount of code with a little bit of reflection. The basic idea is to wrap the handler in a generic class parameterized by the event type ``` HandlerFor<T> : IDisposable where T : EventArgs. ``` This class then has a private member function matching the...
38,995,902
Im using a jqueryAjax function in a jsp page to display a html table. The function returns response as a json object. Im using the json object, iterating the same and displaying the column values. But if the field value is empty, then the corresponding value in the html table is specified as 'undefined' Below is my sam...
2016/08/17
[ "https://Stackoverflow.com/questions/38995902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1385883/" ]
Set default value this way: ``` <td>'+ (item.req2015||'&nbsp;') + '</td> ``` By filed setable defaults, easily reorganiziable: ``` var fdef = [ 'appnName ',"&nbsp;" ,'Defectsin2014', "&nbsp;" ,'Defectsin2015',"&nbsp;" ,'costDefect ', "&nbsp;" ,'req2014 ',"&nbsp;" ,'req2015 ', "&n...
You can use this, ``` if(item.hasOwnProperty('req2015')){ //add it } ```
38,995,902
Im using a jqueryAjax function in a jsp page to display a html table. The function returns response as a json object. Im using the json object, iterating the same and displaying the column values. But if the field value is empty, then the corresponding value in the html table is specified as 'undefined' Below is my sam...
2016/08/17
[ "https://Stackoverflow.com/questions/38995902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1385883/" ]
Check the properties and give them an default before using them. ``` $.each(data1, function (i, item) { item.appnName = item.appnName || "&nbsp;"; item.Defectsin2014 = item.Defectsin2014 || "&nbsp;"; item.Defectsin2015 = item.Defectsin2015 || "&nbsp;"; item.costDefect = item.costDefect ...
Set default value this way: ``` <td>'+ (item.req2015||'&nbsp;') + '</td> ``` By filed setable defaults, easily reorganiziable: ``` var fdef = [ 'appnName ',"&nbsp;" ,'Defectsin2014', "&nbsp;" ,'Defectsin2015',"&nbsp;" ,'costDefect ', "&nbsp;" ,'req2014 ',"&nbsp;" ,'req2015 ', "&n...
38,995,902
Im using a jqueryAjax function in a jsp page to display a html table. The function returns response as a json object. Im using the json object, iterating the same and displaying the column values. But if the field value is empty, then the corresponding value in the html table is specified as 'undefined' Below is my sam...
2016/08/17
[ "https://Stackoverflow.com/questions/38995902", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1385883/" ]
Check the properties and give them an default before using them. ``` $.each(data1, function (i, item) { item.appnName = item.appnName || "&nbsp;"; item.Defectsin2014 = item.Defectsin2014 || "&nbsp;"; item.Defectsin2015 = item.Defectsin2015 || "&nbsp;"; item.costDefect = item.costDefect ...
You can use this, ``` if(item.hasOwnProperty('req2015')){ //add it } ```
60,645,640
I am not allowed to deallocate memory or allocate new memory(the list has already been allocated for me). So in essence I am trying to write a function like, ``` struct node* returnAndRemoveFirstNode(struct node* head) { struct node* returned = head; struct node* temp = head->next; returned->next = NULL; ...
2020/03/11
[ "https://Stackoverflow.com/questions/60645640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13048195/" ]
I am sure you do not understand correctly the original task. Nevertheless a function that removes the first node from the list and returns it can look the following way ``` struct node * returnAndRemoveFirstNode( struct node **head ) { struct node *returned = *head; if ( *head != NULL ) { *head ...
``` struct node* returnFirstNode(struct node** head) { struct node* returned = *head; struct node* next = (*head)->next; *head = next; returned->next = NULL; return returned; } ```
678,655
I'm looking to run a bit of custom error handling for PHP's parse errors - the type when the syntax is wrong, and you get those white screens of death. (To be clear, the type that would result when running malformed code as so: ``` <?php if () { ?> ``` ) I had a look at setting a custom error handler, but couldn't...
2009/03/24
[ "https://Stackoverflow.com/questions/678655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16511/" ]
Normally you'd use [`set_error_handler`](http://us3.php.net/set-error-handler) for this, but the docs note this: > > The following error types cannot be handled with a user defined function: `E_ERROR`, `E_PARSE`, `E_CORE_ERROR`, `E_CORE_WARNING`, `E_COMPILE_ERROR`, `E_COMPILE_WARNING`, and most of `E_STRICT` raised i...
It isn't a *Fatal error* as the term is used in PHP. It is a *Parse error*. This means that PHP cannot understand your code and it thus never comes to execution of the code at all. Therefore you can't catch such errors. If you're sure the code to test does not contain any harmful injections, you can eval it: ``` if ( ...
678,655
I'm looking to run a bit of custom error handling for PHP's parse errors - the type when the syntax is wrong, and you get those white screens of death. (To be clear, the type that would result when running malformed code as so: ``` <?php if () { ?> ``` ) I had a look at setting a custom error handler, but couldn't...
2009/03/24
[ "https://Stackoverflow.com/questions/678655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16511/" ]
Another idea: If you have an own root server or just want to execute the script on your local PC you could do the following: Put the code to test in a new file, say `failure.php`. In your script (same directory), where you want to check for errors, do it this way: ``` $path_to_test = 'failure.php'; $result = `php -l ...
Normally you'd use [`set_error_handler`](http://us3.php.net/set-error-handler) for this, but the docs note this: > > The following error types cannot be handled with a user defined function: `E_ERROR`, `E_PARSE`, `E_CORE_ERROR`, `E_CORE_WARNING`, `E_COMPILE_ERROR`, `E_COMPILE_WARNING`, and most of `E_STRICT` raised i...
678,655
I'm looking to run a bit of custom error handling for PHP's parse errors - the type when the syntax is wrong, and you get those white screens of death. (To be clear, the type that would result when running malformed code as so: ``` <?php if () { ?> ``` ) I had a look at setting a custom error handler, but couldn't...
2009/03/24
[ "https://Stackoverflow.com/questions/678655", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16511/" ]
Another idea: If you have an own root server or just want to execute the script on your local PC you could do the following: Put the code to test in a new file, say `failure.php`. In your script (same directory), where you want to check for errors, do it this way: ``` $path_to_test = 'failure.php'; $result = `php -l ...
It isn't a *Fatal error* as the term is used in PHP. It is a *Parse error*. This means that PHP cannot understand your code and it thus never comes to execution of the code at all. Therefore you can't catch such errors. If you're sure the code to test does not contain any harmful injections, you can eval it: ``` if ( ...
525,727
I am trying to read the temperature sensor in a car with a Raspberry Pi. The temperature sensor's resistance changes as the engine temp increases however the temperature sensor would be in parallel to the voltage divider that runs to the ADC I would read from and since the temperature sensor grounds in the engine block...
2020/10/10
[ "https://electronics.stackexchange.com/questions/525727", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/264908/" ]
Your ADC is monitoring the battery voltage. Your temperature sensor just passes current from the battery to ground. The amount of current will vary with the temperature. ![schematic](https://i.stack.imgur.com/C7Rql.png) [simulate this circuit](/plugins/schematics?image=http%3a%2f%2fi.stack.imgur.com%2fC7Rql.png) – Sc...
In simple terms, your voltage divider is connected in the wrong place, so you are measuring the supply, and not the sensor output. So conceptually speaking, you need to connect the ADC to the sensor output. No Raspberry Pi itself has an ADC, so whatever ADC you use will be an add-on board. One very "black box thinkin...
28,314,836
I am trying to Stop Server at form close but its not working. It Throws exception at clientSocket = serverSocket.AcceptTcpClient(); > > Exception : A blocking operation was interrupted by a call to WSACancelBlockingCall > > > I tried to Stop Server at different places but its not working ``` private void Form1...
2015/02/04
[ "https://Stackoverflow.com/questions/28314836", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2490268/" ]
This exception is perfectly valid in your case - `serverSocket.AcceptTcpClient()` is a blocking operation that either returns a `TcpClient` instance or throws a `SocketException`. Here is how you can solve this problem without changing the architecture of the application: ``` try { serverSocket = serverSocket.Ac...
please keep Try catch block inside following code. ``` serverSocket = new TcpListener(9361); clientSocket = default(TcpClient); Thread listen = new Thread(listenClients); listen.Start(); ```
22,884,325
I have setup Jenkins on openshift, made a hello world project and trying to package it by the Jenkins in openshift. But I got the next error: ``` Commencing build of Revision 2062de71e567e2f62a57dd3a1f9d660950b6482d (origin/master) Checking out Revision 2062de71e567e2f62a57dd3a1f9d660950b6482d (origin/master) Parsing ...
2014/04/05
[ "https://Stackoverflow.com/questions/22884325", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2077866/" ]
I think the answer is that it depends on your build configuration. The directory "src/main/views" is not a standard resource location for any common build tool, so you would have to explicitly add it to the configuration of the tool you use to build your jar. If I were you I would go with the flow (why be different?),...
I had the same problem and found out from the [Springboot documentation](https://spring.io/blog/2013/12/19/serving-static-web-content-with-spring-boot) that the **following classpath** are used by the framework: * /META-INF/resources/ * /resources/ * /public/ * /static/ It means that you can put a folder templates in...
27,668,040
I am trying to add two variabled in my appDelegate so that I can use them in other my view controller. My code looks like this: myappdelegate.h: ``` @class MyViewController1, MyViewController2; // controller than use my new variables @interface AppDelegate : UIResponder <UIApplicationDelegate> { NSString* first...
2014/12/27
[ "https://Stackoverflow.com/questions/27668040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4397918/" ]
Get rid if your instance variables and your @synthesize statement. The compiler will do that work for you. Make sure you `#import AppDelegate.h` every place you need it, particularly in MyViewController1.m and MyViewController2.m. My guess is that you didn't import the AppDelegate.h file in your view controller's .m ...
``` Code: @interface AppDelegate : UIResponder <UIApplicationDelegate> { NSString* firstVariable; NSString* secondVariable; } @property (retain) NSString* firstVariable; @property (retain) NSString* secondVariable; @implementation AppDelegate @synthesize firstVariable; @synthesize secondVariable; Inside your...
43,373
I have a [Dell laptop D530](http://en.wikipedia.org/wiki/Dell_Latitude#Latitude_D5x0_series) with a 2.2 GHz [T7500 processor](http://ark.intel.com/Product.aspx?id=29761). What's the fastest processor upgrade I can put in this laptop?
2009/09/18
[ "https://superuser.com/questions/43373", "https://superuser.com", "https://superuser.com/users/-1/" ]
Intel® Core™2 Duo Processor Up to T7700 (2.40 GHz, 4 MB L2 Cache, 800 MHz FSB). [Source](http://www.dell.com/us/en/corp/notebooks/latit_d530/pd.aspx?refid=latit_d530&s=corp)
Me thinks you've just answered your own question. Notebook processors are usually soldered to the board, and non-upgradable. Even if it were possible with severe desoldering and hacking, the availability of mobile processors and the extreme chance it will b0rk your entire system makes it dangerous and non-feasible.
43,373
I have a [Dell laptop D530](http://en.wikipedia.org/wiki/Dell_Latitude#Latitude_D5x0_series) with a 2.2 GHz [T7500 processor](http://ark.intel.com/Product.aspx?id=29761). What's the fastest processor upgrade I can put in this laptop?
2009/09/18
[ "https://superuser.com/questions/43373", "https://superuser.com", "https://superuser.com/users/-1/" ]
Just a comment on the D530 CPU, it uses a ZIF socket secured to the motherboard with a cam screw so it should be easily replaceable.
Me thinks you've just answered your own question. Notebook processors are usually soldered to the board, and non-upgradable. Even if it were possible with severe desoldering and hacking, the availability of mobile processors and the extreme chance it will b0rk your entire system makes it dangerous and non-feasible.
43,373
I have a [Dell laptop D530](http://en.wikipedia.org/wiki/Dell_Latitude#Latitude_D5x0_series) with a 2.2 GHz [T7500 processor](http://ark.intel.com/Product.aspx?id=29761). What's the fastest processor upgrade I can put in this laptop?
2009/09/18
[ "https://superuser.com/questions/43373", "https://superuser.com", "https://superuser.com/users/-1/" ]
Intel® Core™2 Duo Processor Up to T7700 (2.40 GHz, 4 MB L2 Cache, 800 MHz FSB). [Source](http://www.dell.com/us/en/corp/notebooks/latit_d530/pd.aspx?refid=latit_d530&s=corp)
Just a comment on the D530 CPU, it uses a ZIF socket secured to the motherboard with a cam screw so it should be easily replaceable.
43,373
I have a [Dell laptop D530](http://en.wikipedia.org/wiki/Dell_Latitude#Latitude_D5x0_series) with a 2.2 GHz [T7500 processor](http://ark.intel.com/Product.aspx?id=29761). What's the fastest processor upgrade I can put in this laptop?
2009/09/18
[ "https://superuser.com/questions/43373", "https://superuser.com", "https://superuser.com/users/-1/" ]
Intel® Core™2 Duo Processor Up to T7700 (2.40 GHz, 4 MB L2 Cache, 800 MHz FSB). [Source](http://www.dell.com/us/en/corp/notebooks/latit_d530/pd.aspx?refid=latit_d530&s=corp)
Isn't it possible to install a T7800 CPU into the D530? It's the fastest CPU of this product line (runs on 2.6 GHz, everything else is just like T7700). And what about the [Penryn CPUs](http://en.wikipedia.org/wiki/Penryn_%28microprocessor%29)? Yes, they are 45 nm (as oposed to the 65 nm T7xxx), but the [Santa Rosa](ht...
43,373
I have a [Dell laptop D530](http://en.wikipedia.org/wiki/Dell_Latitude#Latitude_D5x0_series) with a 2.2 GHz [T7500 processor](http://ark.intel.com/Product.aspx?id=29761). What's the fastest processor upgrade I can put in this laptop?
2009/09/18
[ "https://superuser.com/questions/43373", "https://superuser.com", "https://superuser.com/users/-1/" ]
Just a comment on the D530 CPU, it uses a ZIF socket secured to the motherboard with a cam screw so it should be easily replaceable.
Isn't it possible to install a T7800 CPU into the D530? It's the fastest CPU of this product line (runs on 2.6 GHz, everything else is just like T7700). And what about the [Penryn CPUs](http://en.wikipedia.org/wiki/Penryn_%28microprocessor%29)? Yes, they are 45 nm (as oposed to the 65 nm T7xxx), but the [Santa Rosa](ht...
54,729
Genesis 1:5 says that God ended the first creative day with the expression, "the evening and morning were the first day". Each successive day ends with the same expression. Does this indicate that the creative days were 24 hours in length?
2021/01/20
[ "https://hermeneutics.stackexchange.com/questions/54729", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/23470/" ]
There are two indications that the "days" of Gen 1 are literal 24-hour days: * The regular repetition of formula, "and there was evening and morning, the nth day". * The use of the specific numeral associated with the word "day", first day, second day, third day, etc. The latter point needs further comment. The Hebr...
The expression 'day' is defined within the context of the passage. The definition is 'the evening and the morning were the first day' and so on. Thus 'day' means 'evening and morning'. And therefore 'day' contains 'night' within it. The daytime brackets the night period. That is to say, light contains the darkness. ...
54,729
Genesis 1:5 says that God ended the first creative day with the expression, "the evening and morning were the first day". Each successive day ends with the same expression. Does this indicate that the creative days were 24 hours in length?
2021/01/20
[ "https://hermeneutics.stackexchange.com/questions/54729", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/23470/" ]
Nowhere in the Genesis account of creating the heavens and the earth does the phrase “24 hours” crop up. Only after God creates light, then makes a division between light (which he calls Day) and darkness (which he calls Night) do we get the statement, “And the evening and the morning were the first day.” Please note t...
The expression 'day' is defined within the context of the passage. The definition is 'the evening and the morning were the first day' and so on. Thus 'day' means 'evening and morning'. And therefore 'day' contains 'night' within it. The daytime brackets the night period. That is to say, light contains the darkness. ...
54,729
Genesis 1:5 says that God ended the first creative day with the expression, "the evening and morning were the first day". Each successive day ends with the same expression. Does this indicate that the creative days were 24 hours in length?
2021/01/20
[ "https://hermeneutics.stackexchange.com/questions/54729", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/23470/" ]
When we interpret a text, we ask questions about the author’s intent. What happens if we ask a text for information that the author never intended to give us? **Chronological precision** Ancient writers didn’t have a clear way to convey the idea of a “billion”, so we shouldn’t expect the expressions 13.7 billion or 4...
The expression 'day' is defined within the context of the passage. The definition is 'the evening and the morning were the first day' and so on. Thus 'day' means 'evening and morning'. And therefore 'day' contains 'night' within it. The daytime brackets the night period. That is to say, light contains the darkness. ...
54,729
Genesis 1:5 says that God ended the first creative day with the expression, "the evening and morning were the first day". Each successive day ends with the same expression. Does this indicate that the creative days were 24 hours in length?
2021/01/20
[ "https://hermeneutics.stackexchange.com/questions/54729", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/23470/" ]
There are two indications that the "days" of Gen 1 are literal 24-hour days: * The regular repetition of formula, "and there was evening and morning, the nth day". * The use of the specific numeral associated with the word "day", first day, second day, third day, etc. The latter point needs further comment. The Hebr...
"Does the Bible say the earth was created in six 24 hour days?" If you mean in these explicit words, - the answer is **NO**, but the word Bible and Trinity are not in the Bible. If you mean "Does the Bible teach a literal 6 day creation, and can we find corroborating evidence from scripture?, - then absolutely **YE...
54,729
Genesis 1:5 says that God ended the first creative day with the expression, "the evening and morning were the first day". Each successive day ends with the same expression. Does this indicate that the creative days were 24 hours in length?
2021/01/20
[ "https://hermeneutics.stackexchange.com/questions/54729", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/23470/" ]
Nowhere in the Genesis account of creating the heavens and the earth does the phrase “24 hours” crop up. Only after God creates light, then makes a division between light (which he calls Day) and darkness (which he calls Night) do we get the statement, “And the evening and the morning were the first day.” Please note t...
"Does the Bible say the earth was created in six 24 hour days?" If you mean in these explicit words, - the answer is **NO**, but the word Bible and Trinity are not in the Bible. If you mean "Does the Bible teach a literal 6 day creation, and can we find corroborating evidence from scripture?, - then absolutely **YE...
54,729
Genesis 1:5 says that God ended the first creative day with the expression, "the evening and morning were the first day". Each successive day ends with the same expression. Does this indicate that the creative days were 24 hours in length?
2021/01/20
[ "https://hermeneutics.stackexchange.com/questions/54729", "https://hermeneutics.stackexchange.com", "https://hermeneutics.stackexchange.com/users/23470/" ]
When we interpret a text, we ask questions about the author’s intent. What happens if we ask a text for information that the author never intended to give us? **Chronological precision** Ancient writers didn’t have a clear way to convey the idea of a “billion”, so we shouldn’t expect the expressions 13.7 billion or 4...
"Does the Bible say the earth was created in six 24 hour days?" If you mean in these explicit words, - the answer is **NO**, but the word Bible and Trinity are not in the Bible. If you mean "Does the Bible teach a literal 6 day creation, and can we find corroborating evidence from scripture?, - then absolutely **YE...
43,899,505
I have looked and searched for ways to disable indentation of comments when I save C# files in Visual Studio 2015 with Resharper 9.0.0.0 installed. I'd like to pseudocode before I start writing actual code. However I have been tweaking with both Visual studio's and Resharper's settings to no avail. So for example I w...
2017/05/10
[ "https://Stackoverflow.com/questions/43899505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4901502/" ]
In VS 2017 (C++) there is a checkbox for this. Tools | Options | Text  Editor | C/C++ | Formatting | Indentation | Preserve indentation of comments Unchecking it fixed annoying comment auto-formatting. Maybe the same option exists in VS 2015.
I don't think its possible to just omit inline comments formatting and still do other code cleanup. You can try maybe moving to XML Doc comments and try with the setting as in the picture [![enter image description here](https://i.stack.imgur.com/a5JLJ.png)](https://i.stack.imgur.com/a5JLJ.png)
3,607,632
I want to proof by induction: $ \sum\_{k=m}^{n} {n \choose k}{k \choose m} = {n \choose m}2^{n-m}$ given that $n,m \in \mathbb{N}$ and $0 \leq m \leq n$ I have done that the proof for the first element $m=n$: $ {n \choose m} = {n \choose m}$ but now when doing: $ \sum\_{k=m}^{n+1} {n+1 \choose k}{k \choose m} = {n...
2020/04/03
[ "https://math.stackexchange.com/questions/3607632", "https://math.stackexchange.com", "https://math.stackexchange.com/users/659830/" ]
if your goal is to evaluate $\lim\_{n\rightarrow\infty}\sqrt[n]{\sum\_{k=0}^{n}x^{k}}$ so a standard squeeze theorem trick gives for $x\geq1$ > > $x=\sqrt[n]{x^{n}}\le\sqrt[n]{\sum\_{k=0}^{n}x^{k}}\le\sqrt[n]{(n+1)\cdot x^{n}}=\sqrt[n]{n+1}\cdot x$ > > > and therefore the desired limit equals to $x$. and for $0\l...
This is certainly the case for $|x|<1,$ for then the radicand becomes at $n=+\infty,$ the quantity $$\frac{1}{1-x},$$ so that the root of the quantity expressed as $$(1-x)^{-1/n}=e^{{-1/n}\log(1-x)}$$ goes to $1$ at infinity. This fails for $x=1,$ since then the quantity becomes $(1+n)^{1/n},$ which goes to $e$ at infi...
16,723,508
I'm trying to make multiple stacks of uiview's. Each of those UIView's with a shadow, slight rotation and scale. As a test I'm making 10 stack's of 10 views. Drawing all this is very slow.. Is there a good way to optimise this? I tried making the shadow and background from a image but that was ugly and equally as slow....
2013/05/23
[ "https://Stackoverflow.com/questions/16723508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/936768/" ]
You have to add **autoIncrement property** in model definition. ``` const Article = sequelize.define('articles', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, {}, { createdAt: false, updatedAt: false }); ``` Then, you can access last inserted id with property in ...
Yes your answer is working. Another way would be ``` var Sequelize = require("sequelize") var sequelize = new Sequelize('test', 'root', 'root', {dialect: 'mysql'}) var Page = sequelize.define( 'page', { type : {type: Sequelize.STRING(20)}, order : {type: Sequelize.INTEGER, defaultValue: 1} },{ timestamps: fals...
16,723,508
I'm trying to make multiple stacks of uiview's. Each of those UIView's with a shadow, slight rotation and scale. As a test I'm making 10 stack's of 10 views. Drawing all this is very slow.. Is there a good way to optimise this? I tried making the shadow and background from a image but that was ugly and equally as slow....
2013/05/23
[ "https://Stackoverflow.com/questions/16723508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/936768/" ]
Yes your answer is working. Another way would be ``` var Sequelize = require("sequelize") var sequelize = new Sequelize('test', 'root', 'root', {dialect: 'mysql'}) var Page = sequelize.define( 'page', { type : {type: Sequelize.STRING(20)}, order : {type: Sequelize.INTEGER, defaultValue: 1} },{ timestamps: fals...
``` const addAuthUser = await authModel.create( { username: username, password: hashedPassword }); if (!addAuthUser) { return next(new HttpError('SignUp Failed!', 401)); } // this last inser id console.log(addAuthUser.id) ```
16,723,508
I'm trying to make multiple stacks of uiview's. Each of those UIView's with a shadow, slight rotation and scale. As a test I'm making 10 stack's of 10 views. Drawing all this is very slow.. Is there a good way to optimise this? I tried making the shadow and background from a image but that was ugly and equally as slow....
2013/05/23
[ "https://Stackoverflow.com/questions/16723508", "https://Stackoverflow.com", "https://Stackoverflow.com/users/936768/" ]
You have to add **autoIncrement property** in model definition. ``` const Article = sequelize.define('articles', { id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, {}, { createdAt: false, updatedAt: false }); ``` Then, you can access last inserted id with property in ...
``` const addAuthUser = await authModel.create( { username: username, password: hashedPassword }); if (!addAuthUser) { return next(new HttpError('SignUp Failed!', 401)); } // this last inser id console.log(addAuthUser.id) ```
45,728,034
I want to create a high chart[![enter image description here](https://i.stack.imgur.com/rk4gg.png)](https://i.stack.imgur.com/rk4gg.png) as bankrate.com created In it, I would like to show principal, balance and interest. It would be shown according to year. I have tried to create it but I am unable to group years a...
2017/08/17
[ "https://Stackoverflow.com/questions/45728034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2372815/" ]
It looks like your client is accessing the service thru a proxy server. The proxy server requires authentication and thus responds with 403 and uses a different certificate (chain) and thus importing the certificate you got from the web service doesn't help.
You can try with following override methods ``` @Bean public Client feignClient() { Client trustSSLSockets = new Client.Default(getSSLSocketFactory(), new NoopHostnameVerifier()); return trustSSLSockets; } private SSLSocketFactory getSSLSocketFactory() { try { TrustStrategy acceptingTrustStrategy ...
14,461,205
Hi i have a edit text with the hint, i made the hint as middle using `android:gravity:"center"`. when i start typing from in the edittext the typing is starting from the middle, how to make the typing start from leftcorner while still hint is centered ``` <EditText android:id="@+id/edittext" android:la...
2013/01/22
[ "https://Stackoverflow.com/questions/14461205", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1728753/" ]
By default android EditText has center gravity. Just make it `android:gravity="top|left"` Also there is no any special attribute for making hint in center and text in top. Both follow the same gravity attribute. Android hint is a just for something like a label for where user has to start input the characters.
I was trying to do the opposite scenario - for the hint to appear at the left, and the typed text to appear in the middle, and I found part of the solution I needed here, but for the sake of anyone else who is trying to do this, I thought I'd post my full solution, adapted to the above scenario :). So as I was trying ...
14,461,205
Hi i have a edit text with the hint, i made the hint as middle using `android:gravity:"center"`. when i start typing from in the edittext the typing is starting from the middle, how to make the typing start from leftcorner while still hint is centered ``` <EditText android:id="@+id/edittext" android:la...
2013/01/22
[ "https://Stackoverflow.com/questions/14461205", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1728753/" ]
I don't think this is possible "out-of-the box" but you can do it programmatically: ``` yourEditText.addTextChangedListener(new TextWatcher() { public void afterTextChanged(Editable s) {} public void beforeTextChanged(CharSequence s, int start, int count, int after) {} public void onTextChanged(CharSeq...
I was trying to do the opposite scenario - for the hint to appear at the left, and the typed text to appear in the middle, and I found part of the solution I needed here, but for the sake of anyone else who is trying to do this, I thought I'd post my full solution, adapted to the above scenario :). So as I was trying ...
12,515,092
I have a partial view which has a dropdown in it and I include that partial in my page twice. Here is the dropdown. ``` <form name="sortbyformtop"> <select onchange="sort('@querystring', this.options[this.selectedIndex].value);" name="sortbyselecttop"> <option value=""></option> ...
2012/09/20
[ "https://Stackoverflow.com/questions/12515092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/991788/" ]
> > I would like to know how to implement same thing using Workflow services as I could get the benefits of AppFabric for my workflows. > > > This is pretty straight forward. You're going to have one workflow that reads the file and loops through the results using the looping activities that exist. Then, inside th...
One way would be to use WCF's MSMQ binding to launch your workflows. Requests can come in normally through HTTP, and WCF would route them to MSMQ and process the load. You can throttle how many workflow instances are used through the MSMQ binding + IIS settings. Download this word document that describes setting up a ...
12,515,092
I have a partial view which has a dropdown in it and I include that partial in my page twice. Here is the dropdown. ``` <form name="sortbyformtop"> <select onchange="sort('@querystring', this.options[this.selectedIndex].value);" name="sortbyselecttop"> <option value=""></option> ...
2012/09/20
[ "https://Stackoverflow.com/questions/12515092", "https://Stackoverflow.com", "https://Stackoverflow.com/users/991788/" ]
> > I would like to know how to implement same thing using Workflow services as I could get the benefits of AppFabric for my workflows. > > > This is pretty straight forward. You're going to have one workflow that reads the file and loops through the results using the looping activities that exist. Then, inside th...
In the spirit of the doing the simplest thing that could work, you can bring the subworkflow in as an activity to the main workflow and use a parallel for each to execute the branch for each input from your file. No extra invoking is required and the tooling supports this out of the box because all workflows are activi...
6,091,949
I have an SQL query running on an 'sqlite' database that is throwing this exception: "java.lang.IllegalStateException: get field slot from row 0 col 0 failed" when I call: ``` db.rawQuery( "SELECT data FROM session_data WHERE session_id = ?", new String[] { String.format("%d", session_id) } ); if (!cursor.moveToFirst(...
2011/05/23
[ "https://Stackoverflow.com/questions/6091949", "https://Stackoverflow.com", "https://Stackoverflow.com/users/365932/" ]
The problem was that the blob was too big. It appears that `cursor.getBlob(0)` fails if the blob size is over a megabyte. Reading the blob in segments solved my issue: ``` // get length of blob data Cursor cursor = db.rawQuery( "SELECT LENGTH(data) AS len FROM table WHERE id = ?", etc); if (cursor == null || !cursor.m...
I assume that you are holding a reference to the cursor from the `rawQuery`. Before you get any value from the cursor you need to call `cursor.moveToFirst()` because the `cursor` is initially positioned at -1. The correct way would be: ``` Cursor cursor = db.rawQuery( "SELECT data FROM session_data WHERE session_id = ...
48,399,714
I have a workbook with 2 sheets. Sheet1 contains a list of Product Codes in column A and Column R is Current Stock Level. Sheet2 contains a list of Product Codes in column A and Column B contains the New Stock Level. What I want to do is replace the Current Stock Levels in Sheet1 with the New Stock Level from Sheet2...
2018/01/23
[ "https://Stackoverflow.com/questions/48399714", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9168941/" ]
How about the following: ``` Private Sub CommandButton1_Click() Dim search_range As Range, search_value As Range, lastcell As Range, foundcell As Range Dim ws As Worksheet Set ws = ThisWorkbook.Sheets("Sheet1") Set search_range = ws.Range("A1", ws.Range("A" & Rows.Count).End(xlUp)) Set lastcell = search_range.Cells(...
The idea is the following - you have two types of ranges - ranges where you search and ranges where your value should be. They are called `Target` and `Search`. In the code below you loop through all cells in column `A` of the first worksheets and you look for their value in column `A` of the second worksheet. If you...
22,310,002
I need to create a responsive layout, but I'm confused on how to start. I've looked up and found many resources, but it's all very overwhelming. Can someone point me in the right direction on how to get started? I can build a html/css website, but have never done anything in regards to mobile. A few questions: 1) I'v...
2014/03/10
[ "https://Stackoverflow.com/questions/22310002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3403328/" ]
> > > > > > 1) I've read you should build for mobile then move up, is this correct? > > > > > > > > > Yes, it is much harder to take a complicated desktop layout and convert it to a simpler mobile layout than vice-versa. > > > > > > 2) Should I start off with a template (or a grid, is that the correct ter...
1: I build for 1080p widescreen and move down. Everyone I know has a different opinion. --- 2: You can do a template, but you don't need one. In general, templates make things easier, but limit your control over your site, and your flexibility. --- 3: Two free ones: <http://blog.teamtreehouse.com/beginners-guide-t...
22,310,002
I need to create a responsive layout, but I'm confused on how to start. I've looked up and found many resources, but it's all very overwhelming. Can someone point me in the right direction on how to get started? I can build a html/css website, but have never done anything in regards to mobile. A few questions: 1) I'v...
2014/03/10
[ "https://Stackoverflow.com/questions/22310002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3403328/" ]
Let me try explain a little for you : 1. I've read you should build for mobile then move up, is this correct? Some people start from smaller device to biggest (phone to desktop), but this is not a must. If you already have deep learning in coding responsive site you can start from Big to Small. But the reason behind s...
> > > > > > 1) I've read you should build for mobile then move up, is this correct? > > > > > > > > > Yes, it is much harder to take a complicated desktop layout and convert it to a simpler mobile layout than vice-versa. > > > > > > 2) Should I start off with a template (or a grid, is that the correct ter...
22,310,002
I need to create a responsive layout, but I'm confused on how to start. I've looked up and found many resources, but it's all very overwhelming. Can someone point me in the right direction on how to get started? I can build a html/css website, but have never done anything in regards to mobile. A few questions: 1) I'v...
2014/03/10
[ "https://Stackoverflow.com/questions/22310002", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3403328/" ]
Let me try explain a little for you : 1. I've read you should build for mobile then move up, is this correct? Some people start from smaller device to biggest (phone to desktop), but this is not a must. If you already have deep learning in coding responsive site you can start from Big to Small. But the reason behind s...
1: I build for 1080p widescreen and move down. Everyone I know has a different opinion. --- 2: You can do a template, but you don't need one. In general, templates make things easier, but limit your control over your site, and your flexibility. --- 3: Two free ones: <http://blog.teamtreehouse.com/beginners-guide-t...
80,875
In *[The Path of the Just](http://rads.stackoverflow.com/amzn/click/1583306773)* (Mesilat Yesharim) by [Rabbi Moshe Chaim Luzzato](https://en.wikipedia.org/wiki/Moshe_Chaim_Luzzatto) (ch.19), I noticed he sometimes uses the term "nachat ruach" and other times "korat ruach." What is the meaning of both expressions and...
2017/03/12
[ "https://judaism.stackexchange.com/questions/80875", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/1857/" ]
In kesubos 40b the gemara explains that a rapist has to pay the raped woman damages (פגם) based on the her loss in value, which is estimated by how much a person would pay more for a virgin slave woman to marry her off to a slave that gives him korat ruach. Rashi says that because the slave gave him korat ruach the mas...
Both terms are present in Mishnaic literature. The Mahzor Vitry (427) writes that the terms carry the same meaning; calmness: > > שאין כאן קורת רוח שלימה. קורת רוח. נחת רוח. לשון נתקררה דעתו. וכלפי שהחרון אף ועצבת רוח נקרא חימה. הרצון והנחת רוח נקרא קורת. שמתקררת ומיישבת דעתו עליו מרוב שמחה והנאה > > > That there ...
80,875
In *[The Path of the Just](http://rads.stackoverflow.com/amzn/click/1583306773)* (Mesilat Yesharim) by [Rabbi Moshe Chaim Luzzato](https://en.wikipedia.org/wiki/Moshe_Chaim_Luzzatto) (ch.19), I noticed he sometimes uses the term "nachat ruach" and other times "korat ruach." What is the meaning of both expressions and...
2017/03/12
[ "https://judaism.stackexchange.com/questions/80875", "https://judaism.stackexchange.com", "https://judaism.stackexchange.com/users/1857/" ]
In kesubos 40b the gemara explains that a rapist has to pay the raped woman damages (פגם) based on the her loss in value, which is estimated by how much a person would pay more for a virgin slave woman to marry her off to a slave that gives him korat ruach. Rashi says that because the slave gave him korat ruach the mas...
Korat Ruach is only cited in two places in Mesilat Yesharim 1. > > בנפש, שישתדל לעשות לחבירו כל **קורת רוח** שיש בידו, בין בעניני הכבוד, בין בכל שאר הענינים, כל מה שהוא יודע שאם יעשהו לחבירו הוא מקבל **נחת רוח** ממנו, מצות חסידות הוא לעשותו, כל שכן שלא יצערנו בשום מיני צער כלל, יהיה באיזה אופן שיהיה.‏ > > > 2. > >...
42,193,157
I have a table 'pay\_schedule' which looks like this: ``` ------------------------------------------------------------------------------ Title (char[50]) | FilmId (int) payout (Dec(18,2)) pay_date (date) | ------------------------------------------------------------------------------| Big Secret | -...
2017/02/12
[ "https://Stackoverflow.com/questions/42193157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1635705/" ]
If you format the result set as `file` and `month`, with the payout, then you can just use aggregation: ``` select title, year(paydate) as yyyy, month(paydate) as mm, sum(payout) from pay_schedule group by title, year(paydate), month(paydate) order by title, yyyy, mm; ``` You probably cannot even restructure ...
Try this: ``` CREATE TABLE #tt(Title CHAR(50),FilmId INT,payout DECIMAL(18,2),pay_date DATE) INSERT INTO #tt SELECT 'Big Secret',-2147483648,900.00,'4/9/2017' UNION ALL SELECT 'puzzled',-2147483631,512.50,'4/9/2017' UNION ALL SELECT 'puzzled',-2147483631,325.94,'4/9/2017' UNION ALL SELECT 'puzz...
189,812
I have a before update trigger on an object which does some validations and throws .addError in certain scenarios. This object has a process builder as well which updates certain fields on object. I do not want to execute the section of code in this trigger if this is being executed during update from process builder. ...
2017/08/24
[ "https://salesforce.stackexchange.com/questions/189812", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/10799/" ]
I would think this could work however it is al or nothing kind of solution : In your Invocable method, when calling from the process builder pass in a true value: ``` public static pbStartedThis = false; @InvocableMethod public static void doSomething(Some value, boolean isPB){ if(isPB == true) pbStartedThis = ...
I don't think there is a good way to know whether or not your trigger is being executed as a result of Process Builder. The same issue has plagued people for years with Workflow Field Updates (which are similarly difficult to know if a record is going through a trigger again because of them). Mixing Process Builder an...
189,812
I have a before update trigger on an object which does some validations and throws .addError in certain scenarios. This object has a process builder as well which updates certain fields on object. I do not want to execute the section of code in this trigger if this is being executed during update from process builder. ...
2017/08/24
[ "https://salesforce.stackexchange.com/questions/189812", "https://salesforce.stackexchange.com", "https://salesforce.stackexchange.com/users/10799/" ]
I would think this could work however it is al or nothing kind of solution : In your Invocable method, when calling from the process builder pass in a true value: ``` public static pbStartedThis = false; @InvocableMethod public static void doSomething(Some value, boolean isPB){ if(isPB == true) pbStartedThis = ...
I don't believe there is a way to check if process builder is running/executed that transaction via apex - however, you could accomplish this with small modifications to your object, process builder, and apex class/method. First, create a new **Number** Field on your **Object**. Make it visible to all profiles, but do...
62,251,372
There is a simple structure with a Bottom Modal Sheet that contains an input TextField to add a Text into a List and a button to submit the value. When the text field is focused, it automatically opens the soft keyboard that covers the submit button. When I dismiss the keyboard in order to press the button, the value...
2020/06/07
[ "https://Stackoverflow.com/questions/62251372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11066039/" ]
I had the same issue, I resolved it by simply converting called class to extend `StatefullWidget` instead of `StatelessWidget`. In your case converting class `AddTaskScreen()` to extend `StatefullWidget`.
Okay, the easiest way to do this is by supplying a TextEditingController to the child class. So for your case, you can first create a TextEditingController in the Parent Class, then pass it to the child class. And in the TextField inside child class set the controller: The controller you have passed ``` Parent Class....
8,535,429
I have an application that also has a firefox and chrome extension. I am using NSIS for the installer, now I want the installer to have checkboxs asking if the user want to install the extension for his browser. To install the firefox extension it's easy I just copy the extension files to PROGRAMFILES\Mozilla Firefox...
2011/12/16
[ "https://Stackoverflow.com/questions/8535429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1042784/" ]
``` !define PRODUCT_VERSION "1.0.0" !define CRXNAME "extension.crx" !define CRXID "qwertyuiopasdfghjklzxcvbnm" SetOutPath "$INSTDIR" File "${CRXNAME}" WriteRegStr HKLM "Software\Google\Chrome\Extensions\${CRXID}" "path" "$INSTDIR\${CRXNAME}" WriteRegStr HKLM "Software\Google\Chrome\Extensions\${CRXID}" "version" ...
The only way I could think of is to open Chrome for the user at the specific URL where the extension is located. Of course some user instructions beforehand. A more evil way would be to do the SendKey events for the user. Depends how much "dancing with the devil" you are up for ;)
18,103
I have a Google Spreadsheet tracking figures day by day. I want to add a column with a 7 day running total (sum of last 6 rows plus current row) and a column with a 7 day running average (average of last 6 rows plus current row). I've managed to create a running total fine (Say numbers in column `A`, then `B1 = A, B2 ...
2011/08/14
[ "https://webapps.stackexchange.com/questions/18103", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/12777/" ]
Looks like I gave in too fast. 7 day running total: `=Sum(Filter(D2:D8,A2:A8<=A8,A2:A8>A8-7))` Filter returns a range of data, filtered based on multiple (can have more than 2 conditions). In the case I'm returning `D2:D8` (my count column) filtered where `A2:A8` (my date column) is less than the current date (`A8`) ...
I think a better running average would basically use the same date filtering you did for your sum, but using average instead. Based on your sum function, I think your running seven day average would look something like this: `=Average(Filter(F2:F8,A2:A8<=A8,A2:A8>A8-7))` Noticed this while trying to accomplish nearly ...
39,920,249
Like in this [question](https://stackoverflow.com/questions/35747568/github-pages-site-cannot-find-files-404-errors) Github can't seem to find my scripts and content when published. [![enter image description here](https://i.stack.imgur.com/BJbyK.png)](https://i.stack.imgur.com/BJbyK.png) I've tried the suggestion s...
2016/10/07
[ "https://Stackoverflow.com/questions/39920249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1732184/" ]
Per Briana's suggestion I reached out to Github support and they clarified what the issue was. * Seems that paths on Github Pages are case sensitive so the folder I had called `Content` was being called as `content` and couldn't be found. **Basically, I changed `Content` to `content`** * Paths with an underscore wi...
I just tried <http://prestonii.github.io/Git-It/>, and don't get the same error. I see a lot of `Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped.` in [`hover-min.css:12`](http://prestonii.github.io/Git-It/css/hover-min.css). Check if your paths are case sensitive (you have your scripts under `Content`...
39,920,249
Like in this [question](https://stackoverflow.com/questions/35747568/github-pages-site-cannot-find-files-404-errors) Github can't seem to find my scripts and content when published. [![enter image description here](https://i.stack.imgur.com/BJbyK.png)](https://i.stack.imgur.com/BJbyK.png) I've tried the suggestion s...
2016/10/07
[ "https://Stackoverflow.com/questions/39920249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1732184/" ]
I just tried <http://prestonii.github.io/Git-It/>, and don't get the same error. I see a lot of `Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped.` in [`hover-min.css:12`](http://prestonii.github.io/Git-It/css/hover-min.css). Check if your paths are case sensitive (you have your scripts under `Content`...
This is an old question, but in case anyone else runs into the same issue. I had this problem when I started the paths of referenced files with a "/" in my case the capitalization of letters, and underscores did not matter. I just simply removed the "/" and everything worked just fine.
39,920,249
Like in this [question](https://stackoverflow.com/questions/35747568/github-pages-site-cannot-find-files-404-errors) Github can't seem to find my scripts and content when published. [![enter image description here](https://i.stack.imgur.com/BJbyK.png)](https://i.stack.imgur.com/BJbyK.png) I've tried the suggestion s...
2016/10/07
[ "https://Stackoverflow.com/questions/39920249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1732184/" ]
Per Briana's suggestion I reached out to Github support and they clarified what the issue was. * Seems that paths on Github Pages are case sensitive so the folder I had called `Content` was being called as `content` and couldn't be found. **Basically, I changed `Content` to `content`** * Paths with an underscore wi...
This is an old question, but in case anyone else runs into the same issue. I had this problem when I started the paths of referenced files with a "/" in my case the capitalization of letters, and underscores did not matter. I just simply removed the "/" and everything worked just fine.
29,342,326
I have a React component that manage multiple accordion in a list, but when i update a children, on React dev tools, it was showing the updated text but on the view/ui, it doesnt update. Please advice. ``` var AccordionComponent = React.createClass({ getInitialState: function() { var self = this; var accordions ...
2015/03/30
[ "https://Stackoverflow.com/questions/29342326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1027851/" ]
After days of trying to solve this, I have came out with a solution. `componentWillReceiveProps` event was trigger when the component's props changes, so there was no problem on that. The problem was that the childrens of the `AccordionListComponent`, `AccordionComponent` was not updating its values/props/state. Curre...
I encountered a similar issue. So it may be relevant to report my solution here. --- I had a graph that wasn't getting updated any time I hit just once the load data button (I could see visual changing after the second click). The graph component was designed as a child of a parent component (connected to the Redux ...
29,342,326
I have a React component that manage multiple accordion in a list, but when i update a children, on React dev tools, it was showing the updated text but on the view/ui, it doesnt update. Please advice. ``` var AccordionComponent = React.createClass({ getInitialState: function() { var self = this; var accordions ...
2015/03/30
[ "https://Stackoverflow.com/questions/29342326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1027851/" ]
After days of trying to solve this, I have came out with a solution. `componentWillReceiveProps` event was trigger when the component's props changes, so there was no problem on that. The problem was that the childrens of the `AccordionListComponent`, `AccordionComponent` was not updating its values/props/state. Curre...
I usually handle this issue with below technique, its the solution if you are home-alone ;) ``` var _that = this; this.setState({ accordions: new Array() }); setTimeout(function(){ _that.setState({ accordions: accordions }); },5); ```
29,342,326
I have a React component that manage multiple accordion in a list, but when i update a children, on React dev tools, it was showing the updated text but on the view/ui, it doesnt update. Please advice. ``` var AccordionComponent = React.createClass({ getInitialState: function() { var self = this; var accordions ...
2015/03/30
[ "https://Stackoverflow.com/questions/29342326", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1027851/" ]
I encountered a similar issue. So it may be relevant to report my solution here. --- I had a graph that wasn't getting updated any time I hit just once the load data button (I could see visual changing after the second click). The graph component was designed as a child of a parent component (connected to the Redux ...
I usually handle this issue with below technique, its the solution if you are home-alone ;) ``` var _that = this; this.setState({ accordions: new Array() }); setTimeout(function(){ _that.setState({ accordions: accordions }); },5); ```
2,330,897
I am relatively new to Perl and I do not want to use the [List::Util](http://perldoc.perl.org/List/Util.html) `max` function to find the maximum value of a given array. When I test the code below, it just returns the first value of the array, not the maximum. ``` sub max { my @array = shift; my $cur = $array[...
2010/02/25
[ "https://Stackoverflow.com/questions/2330897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176056/" ]
Replace ``` my @array = shift; ``` with ``` my @array = @_; ``` `@_` is the array containing *all* function arguments. `shift` only grabs the first function argument and removes it from @\_. Change that code and it should work correctly!
Why don't you want to use something that works? One of the ways to solve problems like this is to debug your data structures. At each step you print the data you have to see if what you expect is actually in there. That can be as simple as: ``` print "array is [@array]\n"; ``` Or for complex data structures: ```...
2,330,897
I am relatively new to Perl and I do not want to use the [List::Util](http://perldoc.perl.org/List/Util.html) `max` function to find the maximum value of a given array. When I test the code below, it just returns the first value of the array, not the maximum. ``` sub max { my @array = shift; my $cur = $array[...
2010/02/25
[ "https://Stackoverflow.com/questions/2330897", "https://Stackoverflow.com", "https://Stackoverflow.com/users/176056/" ]
Replace ``` my @array = shift; ``` with ``` my @array = @_; ``` `@_` is the array containing *all* function arguments. `shift` only grabs the first function argument and removes it from @\_. Change that code and it should work correctly!
You can write the function as: ``` #!/usr/bin/perl use strict; use warnings; print max(@ARGV); sub max { my $max = shift; $max >= $_ or $max = $_ for @_; return $max; } ``` However, it would be far more efficient to pass it a reference to the array and even more efficient to use `List::Util::max`.
17,432
Is there a way to export a document in Photoshop using an action that would preserve the file name? Example: I have a document called `Home.psd`. I'd like to run an action, and it would create a `Home.png` in some specified location, like the Desktop. I can do all of this pretty easily by recording the action, except t...
2013/04/19
[ "https://graphicdesign.stackexchange.com/questions/17432", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/9906/" ]
I ended up making my own script based on advice from [plainclothes](https://graphicdesign.stackexchange.com/a/17433/9906) and a link from [Joonas](https://graphicdesign.stackexchange.com/questions/17432/an-action-to-export-a-photoshop-document-with-file-name-intact?noredirect=1#comment23563_17432) You can find the scr...
If you want to be completely hands-off I believe **you need a script**. If you had a lot of files to process, **you could batch the action** and automate the name and destination there. But that still requires your intervention at the start.
17,432
Is there a way to export a document in Photoshop using an action that would preserve the file name? Example: I have a document called `Home.psd`. I'd like to run an action, and it would create a `Home.png` in some specified location, like the Desktop. I can do all of this pretty easily by recording the action, except t...
2013/04/19
[ "https://graphicdesign.stackexchange.com/questions/17432", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/9906/" ]
I ended up making my own script based on advice from [plainclothes](https://graphicdesign.stackexchange.com/a/17433/9906) and a link from [Joonas](https://graphicdesign.stackexchange.com/questions/17432/an-action-to-export-a-photoshop-document-with-file-name-intact?noredirect=1#comment23563_17432) You can find the scr...
You can [create an action](https://graphicdesign.stackexchange.com/questions/29927/creating-action-using-photoshop) to save the images as you want and then simply use this action in the "batch" command found in the menu "file" then "automate" There you can choose what folder to use for the images you want to process, ...
303,329
I want to blow apples down from trees in order to collect them, but have only managed to mash the basic weapon attack button 'Y' to swing horizontally, without being able to change my aim along the vertical axis (pitch?). I can even change my camera, and it still won't aim any higher. So now I have to climb the tree a...
2017/03/16
[ "https://gaming.stackexchange.com/questions/303329", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/56698/" ]
Answer ------ I took the crazy idea of trying to throw the leaf using the 'RB' throw button, and it actually did not throw the leaf like I wanted! Instead, it blew in my currently facing direction with that familiar reticle. ### Etc. So that seems to be the answer, and in case you **actually** wanted to throw your l...
You don't need to throw to aim it. Like any other weapon, all you need to do is face the direction you want the wind to go. You can actually charge the swing, using stamina, and get an awesome gust of wind.
60,019,636
I'm new to React and have been struggling with this issue for the last 2 days. **Why does the call to this.imgList() work when I put it in render (can't be there - performance issues), but doesn't when it's in componentDidMount?** So I set the state within the constructor: ``` class PersonalBananas extends React.Com...
2020/02/01
[ "https://Stackoverflow.com/questions/60019636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12761369/" ]
In `componentDidMount`, use a callback function after `this.setState` like so: ``` axios.get('http://localhost:8081/auth/files') .then((response) => { let imgs = response.data; console.log("images response: "+imgs); this.setState({ images: imgs }, () => { this.imgList(); }); }) ``` Th...
componentDidMount() run once, but you have async API calls (axios) inside it. When this.imgList() is called in componentDidMount(), most probably you had not get your response back yet. Simple fix is ```js axios('http://localhost:8081/auth/files') .then((response) => { let imgs = response.data; consol...
57,449,594
I desperately need to build 64-bit of my application since Google Play does not accept 32-bit apps anymore. Mono builds just fine but when I switch to IL2CPP it says it can't locate NDK. **However, NDK is automatically installed via \*\*Unity Hub**.\*\* I saw similar posts regarding to NDK in previous versions of Uni...
2019/08/11
[ "https://Stackoverflow.com/questions/57449594", "https://Stackoverflow.com", "https://Stackoverflow.com/users/520327/" ]
The error means that you are missing a `group by` clause: ``` select designation, max(salary) from empsalary where designation = 'manager' or designation = 'clerk' group by designation ``` If you need the ids of clerks and managers with the maximum salary, you must join this query to the table: ``` select empid,...
You don't need the empid in the select part of your query. Move the `designation` field to this part. ```sql SELECT designation, Max(salary) FROM empsalary WHERE designation = 'manager' OR designation = 'clerk' GROUP BY designation ; ``` The output should be 2 rows (assuming there is at least one record with 'ma...
43,956,776
I have channels table: ``` +----+-------------------+---------+ | id | sort | bouquet | +----+-------------------+---------+ | 1 | ["1","2","3","4"] | ["1"] | | 2 | ["4"] | ["4"] | +----+-------------------+---------+ ``` And need to remove "2" value from id 1 so i need to get this: `...
2017/05/13
[ "https://Stackoverflow.com/questions/43956776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7836458/" ]
Try: ```sql SELECT `id`, `sort`, `bouquet`, JSON_REMOVE(`sort`, JSON_UNQUOTE( JSON_SEARCH(`sort`, 'one', 2) )) FROM `channels` WHERE `id` = 1; ``` See [db-fiddle](https://www.db-fiddle.com/f/i9Lcw5BTdTtsjgtPHohAMq/3).
Try This ``` UPDATE channels SET `sort` = JSON_REMOVE(`sort`, '$[1]') WHERE `id` = 1 ``` Working for me
40,304,803
I'm using `ng-repeat` for getting my url dynamically and using `ng-src` to bind that url through angularjs. Here's the code ``` <div class="x_panel" ng-repeat="data in allreviewdata|filter:search"> <div class="x_content"> <div class=" review-panel"> <div class="row"style="margin-bo...
2016/10/28
[ "https://Stackoverflow.com/questions/40304803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6529170/" ]
You just need to update the jQuery selector slightly, to target the second row of the table rather than the first: ``` $("td").hover(function(){ $(this).addClass('highlight').siblings().first().addClass('highlight'); $('tr:nth-child(2) th:nth-child(' + ($(this).index() + 1) + ')').addClass('highlight'); },f...
See below code. You just have to use `prev()` so it will highlight prevous `td` ```js $("td").hover(function(){ $(this).addClass('highlight').siblings().first().addClass('highlight'); $('tr:nth-child(n+2) th:eq('+$(this).index()+')').addClass('highlight'); },function()...
40,304,803
I'm using `ng-repeat` for getting my url dynamically and using `ng-src` to bind that url through angularjs. Here's the code ``` <div class="x_panel" ng-repeat="data in allreviewdata|filter:search"> <div class="x_content"> <div class=" review-panel"> <div class="row"style="margin-bo...
2016/10/28
[ "https://Stackoverflow.com/questions/40304803", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6529170/" ]
I updated your jQuery code and made it a bit cleaner and fixed your problem. For that, I used internal jQuery functions like `.eq()` (works similar to the CSS `:nth-child`) to solve it. ``` $("td").hover(function(){ $(this).addClass('highlight').siblings().first().addClass('highlight'); $('tr').eq(1).children...
See below code. You just have to use `prev()` so it will highlight prevous `td` ```js $("td").hover(function(){ $(this).addClass('highlight').siblings().first().addClass('highlight'); $('tr:nth-child(n+2) th:eq('+$(this).index()+')').addClass('highlight'); },function()...