qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
13,060,055 | Is there a way to use RestKit as an object mapper, say I give it a JSON string and an object mapping, then it gives me the object entity, without setting up the server and all those network related stuff?
Thanks!
updated:
what I need is:
1. give Restkit an RKObjectMapping, the object class and JSON string
2. get th... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13060055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/879826/"
] | As with all things database, it depends. What is the load pattern (ie, are users reading mainly from the end of the table)? How are new records added, if at all? What are your index fill factor settings and actual values? Will your update force any index re-computes? Can you split up the update to reduce locking? If so... | Go through the table one row at a time using a loop or even a cursor. Make sure each update is using row locks.
If you don't have a way of identifying rows that still have to be updated, create another table first to hold the primary key and an update indicator, copy all primary key values in there and then keep trac... |
13,060,055 | Is there a way to use RestKit as an object mapper, say I give it a JSON string and an object mapping, then it gives me the object entity, without setting up the server and all those network related stuff?
Thanks!
updated:
what I need is:
1. give Restkit an RKObjectMapping, the object class and JSON string
2. get th... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13060055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/879826/"
] | Normally you'd write a single update statement to update rows. But in your case you actually want to break it up.
<http://www.sqlfiddle.com/#!3/c9c75/6>
Is a working example of a common pattern. You don't want a batch size of 2, maybe you want 100,000 or 25,000 - you'll have to test on your system to determine the bes... | Go through the table one row at a time using a loop or even a cursor. Make sure each update is using row locks.
If you don't have a way of identifying rows that still have to be updated, create another table first to hold the primary key and an update indicator, copy all primary key values in there and then keep trac... |
13,060,055 | Is there a way to use RestKit as an object mapper, say I give it a JSON string and an object mapping, then it gives me the object entity, without setting up the server and all those network related stuff?
Thanks!
updated:
what I need is:
1. give Restkit an RKObjectMapping, the object class and JSON string
2. get th... | 2012/10/25 | [
"https://Stackoverflow.com/questions/13060055",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/879826/"
] | Normally you'd write a single update statement to update rows. But in your case you actually want to break it up.
<http://www.sqlfiddle.com/#!3/c9c75/6>
Is a working example of a common pattern. You don't want a batch size of 2, maybe you want 100,000 or 25,000 - you'll have to test on your system to determine the bes... | As with all things database, it depends. What is the load pattern (ie, are users reading mainly from the end of the table)? How are new records added, if at all? What are your index fill factor settings and actual values? Will your update force any index re-computes? Can you split up the update to reduce locking? If so... |
10,838,443 | I am trying to copy a file from a remote machine to the local machine I am using. Whenever I run this command I get prompted to enter a password. I am not sure what to enter for the password as I never configured any password. Anyone have any tips?
```
scp stuff.php djorge@localhost:Users/djorge/Desktop
``` | 2012/05/31 | [
"https://Stackoverflow.com/questions/10838443",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1422411/"
] | You need the ip of the other pc and do:
```
scp user@ip_of_remote_pc:/home/user/stuff.php /Users/djorge/Desktop
```
it will ask you for 'user's password on the *other* pc. | There must be a user in the AllowUsers section, in the config file /etc/ssh/ssh\_config, in the remote machine. You might have to restart sshd after editing the config file.
And then you can copy for example the file "test.txt" from a remote host to the local host
>
> scp your\_username@remotehost.com:test.txt /loca... |
10,391,538 | I'm looking to check if a BitmapData object is completely obscured by a BitmapData object. Is there something like the hitTest function but that makes sure every pixel is covered instead of any pixel?
Edit: It is important that transparent pixels are not included when checking if the object is obscured. | 2012/04/30 | [
"https://Stackoverflow.com/questions/10391538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/443044/"
] | It's actually a pretty simple solution after all! Basically what you do is just capture the pixel values of the overlapping bitmap in the rectangle area that the overlapped bitmap occupies. You then iterate over that vector of values and as long as you don't have a 0 (completely transparent pixel), then you've complete... | So you want to see if `object2` completely covers `object1` (both Bitmaps)?
```
var left:Boolean = object2.x <= object1.x;
var top:Boolean = object2.y <= object1.y;
var right:Boolean = object2.x + object2.width >= object1.x + object1.width;
var bottom:Boolean = object2.y + object2.height >= object1.y + object1.height;... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | [Campaigns of Napoleon: The Mind and Method of History's Greatest Soldier](http://rads.stackoverflow.com/amzn/click/0025236601) by
David Chandler is a good source of informations on Napoleon. See pages 749-797, chapter "War Pans and Preparations".
Mostly, the supplies were stored and ran from Poland. However, the army... | Napoleon's army got some supplies from occupied and allied territories of course, especially from Prussia and Poland. Still, the distances were too long to get sufficient supplies in and so the soldiers plundered villages on their way to collect food. This turned out particularly devastating on their way back: the Russ... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | Napoleon's army got some supplies from occupied and allied territories of course, especially from Prussia and Poland. Still, the distances were too long to get sufficient supplies in and so the soldiers plundered villages on their way to collect food. This turned out particularly devastating on their way back: the Russ... | Napoleon's centre of gravity for his army was fast mobility and forced marches. Therefore, he enforced training for his troops to live and forage off the land. This worked within Europe where fertile lands made this practice easy. Organising his army into corps and regiments, he was able to ensure a fluidity and freedo... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | Napoleon's army got some supplies from occupied and allied territories of course, especially from Prussia and Poland. Still, the distances were too long to get sufficient supplies in and so the soldiers plundered villages on their way to collect food. This turned out particularly devastating on their way back: the Russ... | Tinned food was in its infancy and expensive to employ, the tins were sealed with lead and would not have been used on such a massive scale.
Napoleon's armies divided to march, United to fight and thus tried to live off the land/local produce and used supply wagons/depots more closer to the battle when concentrated.
On... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | [Campaigns of Napoleon: The Mind and Method of History's Greatest Soldier](http://rads.stackoverflow.com/amzn/click/0025236601) by
David Chandler is a good source of informations on Napoleon. See pages 749-797, chapter "War Pans and Preparations".
Mostly, the supplies were stored and ran from Poland. However, the army... | There were four main methods of supplying troops during the Napoleonic period;
(1) The individual soldiers would be issued with rations that they carried in their knapsack. Enough for about two weeks. This was often in the form of biscuits.
(2) Cattle or other animals were herded along and slaughtered along the way ... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | [Campaigns of Napoleon: The Mind and Method of History's Greatest Soldier](http://rads.stackoverflow.com/amzn/click/0025236601) by
David Chandler is a good source of informations on Napoleon. See pages 749-797, chapter "War Pans and Preparations".
Mostly, the supplies were stored and ran from Poland. However, the army... | Napoleon's centre of gravity for his army was fast mobility and forced marches. Therefore, he enforced training for his troops to live and forage off the land. This worked within Europe where fertile lands made this practice easy. Organising his army into corps and regiments, he was able to ensure a fluidity and freedo... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | [Campaigns of Napoleon: The Mind and Method of History's Greatest Soldier](http://rads.stackoverflow.com/amzn/click/0025236601) by
David Chandler is a good source of informations on Napoleon. See pages 749-797, chapter "War Pans and Preparations".
Mostly, the supplies were stored and ran from Poland. However, the army... | Tinned food was in its infancy and expensive to employ, the tins were sealed with lead and would not have been used on such a massive scale.
Napoleon's armies divided to march, United to fight and thus tried to live off the land/local produce and used supply wagons/depots more closer to the battle when concentrated.
On... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | There were four main methods of supplying troops during the Napoleonic period;
(1) The individual soldiers would be issued with rations that they carried in their knapsack. Enough for about two weeks. This was often in the form of biscuits.
(2) Cattle or other animals were herded along and slaughtered along the way ... | Napoleon's centre of gravity for his army was fast mobility and forced marches. Therefore, he enforced training for his troops to live and forage off the land. This worked within Europe where fertile lands made this practice easy. Organising his army into corps and regiments, he was able to ensure a fluidity and freedo... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | There were four main methods of supplying troops during the Napoleonic period;
(1) The individual soldiers would be issued with rations that they carried in their knapsack. Enough for about two weeks. This was often in the form of biscuits.
(2) Cattle or other animals were herded along and slaughtered along the way ... | Tinned food was in its infancy and expensive to employ, the tins were sealed with lead and would not have been used on such a massive scale.
Napoleon's armies divided to march, United to fight and thus tried to live off the land/local produce and used supply wagons/depots more closer to the battle when concentrated.
On... |
174 | How was such a great army, like the army of Napoleon on its way to Moscow, supplied with food and other needed things? Were they transporting it from France or maybe stealing from territory on their way? What were general methods to supply great armies? | 2011/10/12 | [
"https://history.stackexchange.com/questions/174",
"https://history.stackexchange.com",
"https://history.stackexchange.com/users/126/"
] | Napoleon's centre of gravity for his army was fast mobility and forced marches. Therefore, he enforced training for his troops to live and forage off the land. This worked within Europe where fertile lands made this practice easy. Organising his army into corps and regiments, he was able to ensure a fluidity and freedo... | Tinned food was in its infancy and expensive to employ, the tins were sealed with lead and would not have been used on such a massive scale.
Napoleon's armies divided to march, United to fight and thus tried to live off the land/local produce and used supply wagons/depots more closer to the battle when concentrated.
On... |
10,272,158 | I have poor XHTML I need to parse with xpath. It looks like this:
```
<div class="foo">
i need this text
<br/>
<br/>
<span>sometext</span>
</div>
<div class="foo">
<span>some other text</span>
<span>sometext</span>
</div>
```
I want to select ALL content with "i need this text" in the first div. My prob... | 2012/04/22 | [
"https://Stackoverflow.com/questions/10272158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/294374/"
] | **Use**:
```
//div
[.//text()
[normalize-space() = 'i need this text']
]
//text()[normalize-space()]
```
This selects any non-whitespace-only text node descendant of any `div` in the document, that (the `div`) has a text-node descendant whose normalized string value is the string `"i need this text... | Try this selector:
`//span[@class='glyphicon glyphicon-list mr5']/..[contains(normalize-space(text()),'Applications')]` |
2,254,534 | I have a vbscript file that is reading a file and sending each line to a terminal program. When it comes to a semicolon in the middle of the string, it splits the semicolon at the string.
I have been using this code for quite sometime with other strings with no problems. There is one string per line in the file the sc... | 2010/02/12 | [
"https://Stackoverflow.com/questions/2254534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266808/"
] | Everyone will deal with this at some point. My own personal opinion is that multiple databases are a pain in the backside and are not faster. They are a pain because of the maintenance headaches. Adding an extra column in each table as necessary will not slow your process done that much, if indexing is set properly. An... | I'm of a different mind than Randy.
The multi-tenant model has its advantages.
For one, maintenance is not really much different whether you have 5 databases or 500. At some point you stop looking at maintenance of individual databases and look at the set. Yes you must serialize backups and you can't be performing i... |
2,254,534 | I have a vbscript file that is reading a file and sending each line to a terminal program. When it comes to a semicolon in the middle of the string, it splits the semicolon at the string.
I have been using this code for quite sometime with other strings with no problems. There is one string per line in the file the sc... | 2010/02/12 | [
"https://Stackoverflow.com/questions/2254534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266808/"
] | Everyone will deal with this at some point. My own personal opinion is that multiple databases are a pain in the backside and are not faster. They are a pain because of the maintenance headaches. Adding an extra column in each table as necessary will not slow your process done that much, if indexing is set properly. An... | I'd be in favor of combining these databases. There are other facilities built into SQL Server to account for the potential performance downfalls of a very large database, like additional indexing on a second physical disk, partitioning, clustering, etc. The headache and overhead involved in deploying schema updates to... |
2,254,534 | I have a vbscript file that is reading a file and sending each line to a terminal program. When it comes to a semicolon in the middle of the string, it splits the semicolon at the string.
I have been using this code for quite sometime with other strings with no problems. There is one string per line in the file the sc... | 2010/02/12 | [
"https://Stackoverflow.com/questions/2254534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/266808/"
] | I'm of a different mind than Randy.
The multi-tenant model has its advantages.
For one, maintenance is not really much different whether you have 5 databases or 500. At some point you stop looking at maintenance of individual databases and look at the set. Yes you must serialize backups and you can't be performing i... | I'd be in favor of combining these databases. There are other facilities built into SQL Server to account for the potential performance downfalls of a very large database, like additional indexing on a second physical disk, partitioning, clustering, etc. The headache and overhead involved in deploying schema updates to... |
57,827,260 | Anyone know why I keep getting this in the console log, when using mongoose
`the options [port] is not supported`
quick context:
* running `mongod` locally
* running node/express app locally
* "mongoose": "^5.6.11"
* mongodb v4.0.10
* code snippet below:
```
const mongoProfile = require('../config/mongo-profile.js... | 2019/09/06 | [
"https://Stackoverflow.com/questions/57827260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3678112/"
] | You can change it if you use the AWS CLI.
```
aws ecs update-service --cluster ClusterName --service ServiceName --network-configuration file://c:\json\networkConfig.txt
```
Where your networkConfig.txt file contains
```
{
"awsvpcConfiguration": {
"subnets": ["subnet-***","subnet-***"],
"securityGroups": ... | [No](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_run_task_fargate.html), You can not change the security group of the fargate type ECS task, as the security group attach with [manages resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html). Like in case of ECS EC2... |
57,827,260 | Anyone know why I keep getting this in the console log, when using mongoose
`the options [port] is not supported`
quick context:
* running `mongod` locally
* running node/express app locally
* "mongoose": "^5.6.11"
* mongodb v4.0.10
* code snippet below:
```
const mongoProfile = require('../config/mongo-profile.js... | 2019/09/06 | [
"https://Stackoverflow.com/questions/57827260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3678112/"
] | [No](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_run_task_fargate.html), You can not change the security group of the fargate type ECS task, as the security group attach with [manages resources](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html). Like in case of ECS EC2... | You can change security group settings with console:
1. Update service and select awsvpc version of template (typically latest). If you select different template version you will not see networking step
2. Follow service update wizard to select network and security groups |
57,827,260 | Anyone know why I keep getting this in the console log, when using mongoose
`the options [port] is not supported`
quick context:
* running `mongod` locally
* running node/express app locally
* "mongoose": "^5.6.11"
* mongodb v4.0.10
* code snippet below:
```
const mongoProfile = require('../config/mongo-profile.js... | 2019/09/06 | [
"https://Stackoverflow.com/questions/57827260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3678112/"
] | You can change it if you use the AWS CLI.
```
aws ecs update-service --cluster ClusterName --service ServiceName --network-configuration file://c:\json\networkConfig.txt
```
Where your networkConfig.txt file contains
```
{
"awsvpcConfiguration": {
"subnets": ["subnet-***","subnet-***"],
"securityGroups": ... | You can change security group settings with console:
1. Update service and select awsvpc version of template (typically latest). If you select different template version you will not see networking step
2. Follow service update wizard to select network and security groups |
8,009,800 | This is a problem I regularly bump into - hopefully someone can clarify to me the right way to think about it!
I can basically reduce my problem to this: I have a module, with input `p_in`, output `p_out` and clock `clk`. The functionality is that whenever `in` goes low - `out` should produce a high pulse with a durat... | 2011/11/04 | [
"https://Stackoverflow.com/questions/8009800",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/277826/"
] | The problem is that you are checking the value of `state_ned` from within a synchronous process. I.e. the output will not change before the next rising clock edge.
If you want to keep the output synchronous you would have to check the value of `next_state_ned`, e.g.:
```
out_sm_ned: PROCESS(clk) -- synchronous proces... | I don't see a need for a state machine here. My approach would be to have a single flop and an AND gate:
```
proc_reg: process (clk,reset)
begin
if reset = RESET_ACTIVE_LEVEL then
q_r0 <= '0';
elsif clk'event and clk = '1' then
q_r0 <= p_in;
end if;
end process proc_reg;
p_out <= '1' when p_in = '0'... |
402,488 | I have about 50 or so 1'x2' Al-clad MCPCBs, each with hundreds of LEDs attached. Each panel has 4x WAGO 2060 terminal blocks mounted at the corners.
Unfortunately the WAGO connectors have sustained some mechanical damage and I need to remove and (ideally) replace all of them (~200 PCS).
I have basic soldering skills ... | 2018/10/22 | [
"https://electronics.stackexchange.com/questions/402488",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/201951/"
] | They are broken already. Just break them some more and make your life easier:
Use diagonal cutters to clip away the damaged connector.
Then, you can unsolder and remove each pin individually.
Use a solder sucker or solder wick to clear the holes after the pins are out.
Once that is done, you can insert and solder... | I think you can do this with a hot air gun or hot plate, and a hot-air rework station.
Such as a Bosch temperature adjustable hot air gun or a ceramic electric plate.
You will have to fabricate some jig to create a pre-heater.
The pre-heater warms the entire board to some temperature below melting of solder.
... |
20,879,351 | I have an app developed with PHP for the google marketplace. It is working well although users when installed the app on the domain, it still asks for permissions to access contacts,drive etc when coming from the google default navigation button.
according to google it should be automatic when installing the app on th... | 2014/01/02 | [
"https://Stackoverflow.com/questions/20879351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3037188/"
] | The following example code demonstrates how to trigger and intent with the startActivityForResult() method.
```
public void onClick(View view) {
Intent i = new Intent(this, ActivityTwo.class);
i.putExtra("Value1", "This value one for ActivityTwo ");
i.putExtra("Value2", "This value two ActivityTwo");
// Set th... | Sorry.. This question is wrong. Actually i am killing my MainActivity unknowingly. This is my onPause code.
```
@Override
public void onPause() {
super.onPause();
//safe close..
android.os.Process.killProcess(android.os.Process.myPid());
}
```
Thanks @Pankaj kumar. Because of your co... |
191,737 | [Deadly Aim](https://2e.aonprd.com/Feats.aspx?ID=514) is very similar to Power Attack in PF1, in that it reduces your chance to hit in exchange for some extra damage. In PF2 however the enemies' [AC increases together with your attacks](https://rpg.stackexchange.com/questions/179896/what-is-the-expected-hit-chance), so... | 2021/09/24 | [
"https://rpg.stackexchange.com/questions/191737",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/9552/"
] | ### Whether you want to use Deadly Aim depends upon the percent chance that you hit and your average damage when you do hit
Note: this answer ignores the mechanics of critical hits1
Let \$h\$ = Percent chance to hit before Deadly Aim
Let \$h\_{Aim}\$ = Percent chance to hit after Deadly Aim
Let \$D\$ = Increase... | It is a clear trap for Crossbow users, and bad most of the time for Bow users as well
=====================================================================================
The difference comes from [Crossbow Ace](https://2e.aonprd.com/Feats.aspx?ID=491)1. Both it and Deadly Aim provide circumstance bonuses, so for Cro... |
191,737 | [Deadly Aim](https://2e.aonprd.com/Feats.aspx?ID=514) is very similar to Power Attack in PF1, in that it reduces your chance to hit in exchange for some extra damage. In PF2 however the enemies' [AC increases together with your attacks](https://rpg.stackexchange.com/questions/179896/what-is-the-expected-hit-chance), so... | 2021/09/24 | [
"https://rpg.stackexchange.com/questions/191737",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/9552/"
] | It's (sorta) a trap!
====================
I've run the numbers for a Ranger vs at level Moderate, High, and Extreme ACs. I don't have a magic formula for you (I'm not so good at that, and Medix2's answer is way better than I could do there), but I do have magic graphs!
The TL;DR: Deadly Aim is basically only worth it... | ### Whether you want to use Deadly Aim depends upon the percent chance that you hit and your average damage when you do hit
Note: this answer ignores the mechanics of critical hits1
Let \$h\$ = Percent chance to hit before Deadly Aim
Let \$h\_{Aim}\$ = Percent chance to hit after Deadly Aim
Let \$D\$ = Increase... |
191,737 | [Deadly Aim](https://2e.aonprd.com/Feats.aspx?ID=514) is very similar to Power Attack in PF1, in that it reduces your chance to hit in exchange for some extra damage. In PF2 however the enemies' [AC increases together with your attacks](https://rpg.stackexchange.com/questions/179896/what-is-the-expected-hit-chance), so... | 2021/09/24 | [
"https://rpg.stackexchange.com/questions/191737",
"https://rpg.stackexchange.com",
"https://rpg.stackexchange.com/users/9552/"
] | It's (sorta) a trap!
====================
I've run the numbers for a Ranger vs at level Moderate, High, and Extreme ACs. I don't have a magic formula for you (I'm not so good at that, and Medix2's answer is way better than I could do there), but I do have magic graphs!
The TL;DR: Deadly Aim is basically only worth it... | It is a clear trap for Crossbow users, and bad most of the time for Bow users as well
=====================================================================================
The difference comes from [Crossbow Ace](https://2e.aonprd.com/Feats.aspx?ID=491)1. Both it and Deadly Aim provide circumstance bonuses, so for Cro... |
16,953,579 | I'm working on a simple webdesign assignment and have hit a bump. I'm trying to get a background image to repeat vertically, but there's one small problem: the image isn't showing up. It's in the same directory and the code is, as far as I can tell, (cross-checking it against W3 schools, primarily) correct. I welcome a... | 2013/06/06 | [
"https://Stackoverflow.com/questions/16953579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2458123/"
] | That will only work if the image file is in the same folder as the page calling it. If it's in an images folder, for example, the path would have to be something like:
```
background-image:url('images/VerticalTileJPEG.jpg');
```
If that doesn't help, post some more info. Also make sure to use a doctype.
EDIT: If yo... | You are telling it to repeat up and down (vertically along the y axis), but your body is only 1 paragraph tall which (I presume) is not tall enough to show the image more than once.
To repeat it vertically, you need more content down the page or set your background on the html element not the body.
To repeat it hor... |
16,953,579 | I'm working on a simple webdesign assignment and have hit a bump. I'm trying to get a background image to repeat vertically, but there's one small problem: the image isn't showing up. It's in the same directory and the code is, as far as I can tell, (cross-checking it against W3 schools, primarily) correct. I welcome a... | 2013/06/06 | [
"https://Stackoverflow.com/questions/16953579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2458123/"
] | That will only work if the image file is in the same folder as the page calling it. If it's in an images folder, for example, the path would have to be something like:
```
background-image:url('images/VerticalTileJPEG.jpg');
```
If that doesn't help, post some more info. Also make sure to use a doctype.
EDIT: If yo... | Use Doctype in your page and make sure that the image you want in the background is in the same folder in which u have HTML files or if it is in another folder in that directory than try this code.
**background-image:url('/foldername/picturename.pictureextension');**
for example if the image name is "xyz.jpg" and it i... |
16,953,579 | I'm working on a simple webdesign assignment and have hit a bump. I'm trying to get a background image to repeat vertically, but there's one small problem: the image isn't showing up. It's in the same directory and the code is, as far as I can tell, (cross-checking it against W3 schools, primarily) correct. I welcome a... | 2013/06/06 | [
"https://Stackoverflow.com/questions/16953579",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2458123/"
] | That will only work if the image file is in the same folder as the page calling it. If it's in an images folder, for example, the path would have to be something like:
```
background-image:url('images/VerticalTileJPEG.jpg');
```
If that doesn't help, post some more info. Also make sure to use a doctype.
EDIT: If yo... | *(From comments)*
>
> **NOX** What's the width/height of your image?
>
> **YOU** It's supposed to be vertically repeating, so the professor had us creating it at **1X1024**.
>
>
>
So you must repeat the image on the x-axis:
```
body {
background-image: url('VerticalTileJPEG.jpg');
background-repeat: r... |
552,113 | I'm debugging the command **tex** of TeX Live 2019.
[](https://i.stack.imgur.com/QdhEM.png)
Shown as above, if you type:
```
./tex -ini
h
I\&V
e
```
There will be a segment fault. Note that you need a `h.tex` under the same directory as **tex**... | 2020/07/03 | [
"https://tex.stackexchange.com/questions/552113",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/219268/"
] | Running TeX with the `-ini` flag means that you're running without any preloaded format. You don't get anything but primitive commands which means that `\` and `\&` aren't defined. So that's why you're getting the errors. Do you really want to be running iniTeX?
`i` means insert the text following at the point that t... | Congratulations, you have found the bug in TeX.
**Edit** I did deeper inspection about this issue when I returned from my vacation and I found: the bug is in the C implementation of TeX, not in the TeX itself (coded by D. Knuth). So, the following paragraph (given by me a few days ago) is not explicitly true:
The las... |
552,113 | I'm debugging the command **tex** of TeX Live 2019.
[](https://i.stack.imgur.com/QdhEM.png)
Shown as above, if you type:
```
./tex -ini
h
I\&V
e
```
There will be a segment fault. Note that you need a `h.tex` under the same directory as **tex**... | 2020/07/03 | [
"https://tex.stackexchange.com/questions/552113",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/219268/"
] | Running TeX with the `-ini` flag means that you're running without any preloaded format. You don't get anything but primitive commands which means that `\` and `\&` aren't defined. So that's why you're getting the errors. Do you really want to be running iniTeX?
`i` means insert the text following at the point that t... | Original poster: as with your other report ... if you ever see this, please email me, karl at tug.org, so we can give you proper credit in our report to Don Knuth. (We believe there is a bug in tex.web as well as in web2c; the tex.web code can be induced to print a bogus filename in the "You want to edit ..." message.)... |
552,113 | I'm debugging the command **tex** of TeX Live 2019.
[](https://i.stack.imgur.com/QdhEM.png)
Shown as above, if you type:
```
./tex -ini
h
I\&V
e
```
There will be a segment fault. Note that you need a `h.tex` under the same directory as **tex**... | 2020/07/03 | [
"https://tex.stackexchange.com/questions/552113",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/219268/"
] | Congratulations, you have found the bug in TeX.
**Edit** I did deeper inspection about this issue when I returned from my vacation and I found: the bug is in the C implementation of TeX, not in the TeX itself (coded by D. Knuth). So, the following paragraph (given by me a few days ago) is not explicitly true:
The las... | Original poster: as with your other report ... if you ever see this, please email me, karl at tug.org, so we can give you proper credit in our report to Don Knuth. (We believe there is a bug in tex.web as well as in web2c; the tex.web code can be induced to print a bogus filename in the "You want to edit ..." message.)... |
61,006,211 | I am using Google's Datastore (which is Firestore's support for the GCP) and the emulator to handle storage locally. Everything works fine as far as storing data. But there does not appear to be any way of actually viewing the data in the browser. I have a feeling that this is not yet implemented because the emulator i... | 2020/04/03 | [
"https://Stackoverflow.com/questions/61006211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/753632/"
] | **As of January 2022**
----------------------
Debugging
=========
Setting up Firebase Datastore Emulator (FDE)
--------------------------------------------
The Firebase Datastore Emulator (FDE) emulates the Google Datastore in App Engine. This is meant to run on Java 8 platforms. When correctly setup, any Datastore ... | As far as I can understand what you want to do is to add data in the Datastore emulator running on your console and be able to see this data in the UI right?
Vieweing the data in the UI actually incurs in expenses for you because Datastore have to query the data to be able to display it on the UI.
I can still recomme... |
19,927,864 | I am using Jackson library in my android project
I have a class
```
@JsonIgnoreProperties(ignoreUnknown = true)
public class SomeResponse{
@JsonPropery("wiki")
Wiki wiki;
}
@JsonIgnoreProperties(ignoreUnknown = true)
public class Wiki{
@JsonProperty("title")
String title;
@JsonProperty("description")
String descri... | 2013/11/12 | [
"https://Stackoverflow.com/questions/19927864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/838793/"
] | You can use a list comprehension to create new list of lists with all the sentences split:
```
[lst[0].split() for lst in list_of_lists]
```
Now you can loop through this and find the list matching a condition:
```
for sublist in list_of_lists:
if 'doing' in sublist:
sublist.append('something')
```
or... | ```
l = [['Hi my name is'],['What are you doing today'],['Would love some help']]
for x in l:
l[l.index(x)] = x[0].split(' ')
print l
```
Or simply:
```
l = [x[0].split(' ') for x in l]
```
Output
```
[['Hi', 'my', 'name', 'is'], ['What', 'are', 'you', 'doing', 'today'], ['Would', 'love', 'some', 'help']]
... |
19,927,864 | I am using Jackson library in my android project
I have a class
```
@JsonIgnoreProperties(ignoreUnknown = true)
public class SomeResponse{
@JsonPropery("wiki")
Wiki wiki;
}
@JsonIgnoreProperties(ignoreUnknown = true)
public class Wiki{
@JsonProperty("title")
String title;
@JsonProperty("description")
String descri... | 2013/11/12 | [
"https://Stackoverflow.com/questions/19927864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/838793/"
] | You can use a list comprehension to create new list of lists with all the sentences split:
```
[lst[0].split() for lst in list_of_lists]
```
Now you can loop through this and find the list matching a condition:
```
for sublist in list_of_lists:
if 'doing' in sublist:
sublist.append('something')
```
or... | ```
list1 = [['Hi my name is'],['What are you doing today'],['Would love some help']]
```
use
```
[i[0].split() for i in list1]
```
then you will get the output like
```
[['Hi', 'my', 'name', 'is'], ['What', 'are', 'you', 'doing', 'today'], ['Would', 'love', 'some', 'help']]
``` |
19,927,864 | I am using Jackson library in my android project
I have a class
```
@JsonIgnoreProperties(ignoreUnknown = true)
public class SomeResponse{
@JsonPropery("wiki")
Wiki wiki;
}
@JsonIgnoreProperties(ignoreUnknown = true)
public class Wiki{
@JsonProperty("title")
String title;
@JsonProperty("description")
String descri... | 2013/11/12 | [
"https://Stackoverflow.com/questions/19927864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/838793/"
] | ```
list1 = [['Hi my name is'],['What are you doing today'],['Would love some help']]
```
use
```
[i[0].split() for i in list1]
```
then you will get the output like
```
[['Hi', 'my', 'name', 'is'], ['What', 'are', 'you', 'doing', 'today'], ['Would', 'love', 'some', 'help']]
``` | ```
l = [['Hi my name is'],['What are you doing today'],['Would love some help']]
for x in l:
l[l.index(x)] = x[0].split(' ')
print l
```
Or simply:
```
l = [x[0].split(' ') for x in l]
```
Output
```
[['Hi', 'my', 'name', 'is'], ['What', 'are', 'you', 'doing', 'today'], ['Would', 'love', 'some', 'help']]
... |
73,161,460 | I know that writing a lambda in Java 8 to use a variable requires final type, but why can a variable of final array type be modified?
```java
public static void main(String[] args) {
final String[] prefix = {"prefix_"};
String suffix = "_suffix";
List<Integer> list = Arrays.asList(1005, 1006, ... | 2022/07/29 | [
"https://Stackoverflow.com/questions/73161460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14441286/"
] | you could just use `Text` instead of a `Button`, such as:
```
ForEach(row, id: \.self) { item in
Text(item.rawValue)
.font(.system(size: 32))
.frame(width: self.buttonWidth(item: item),height: self.buttonHeight())
.background(item.buttonColor)
.foregroundColo... | We use `onTapGesture` for tap actions, and `onLongPressGesture` for long press actions:
```
Button(action: {}, label: {
Text(item.rawValue)
.font(.system(size: 32))
.frame(width: self.buttonWidth(item: item), height: self.buttonHeight())
.background(item.buttonColor)
.foregroundColor(.wh... |
151,414 | Please let me know if below two statements are correct or not:
Folder `/usr/share/mime/magic` has a database/table that will give me what are the current possible file formats (outputs that I can get when I type the `file` command and follow it by a file name).
Whenever the `file` command output contains the word "t... | 2014/08/21 | [
"https://unix.stackexchange.com/questions/151414",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/81320/"
] | >
> Folder /usr/share/mime/magic has a database/table that will give me what are the current possible file formats (outputs that I can get when I type "file" command and follow it by a file).
>
>
>
Correct except that `/usr/share/mime/magic` is not the directory that `file` uses: this file is [only used for the MI... | The location of the `file` database appears to installation/version-dependent.
[The linuxmanpages.com version of `file(1)`](http://www.linuxmanpages.com/man1/file.1.php) says:
>
> ### FILES
>
>
> `/usr/share/file/magic.mgc`
> Default compiled list of magic numbers
>
> `/usr/share/file/magic`
> Default list of magi... |
33,385,492 | I'm trying to validate a URL, but my URI.parse is accepting any string without raising an `URI::InvalidURIError` error. Am I doing something wrong?
```
require 'uri'
URI.parse('invalid')
=> #<URI::Generic invalid>
```
**Solution**
I fixed this by checking for the class of the returned object. In the case it's URI::... | 2015/10/28 | [
"https://Stackoverflow.com/questions/33385492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/891359/"
] | `URI::InvalidURIError` is raised when it can't parse a argument as Object or multibyte characters.
```
irb(main):001:0> url = URI.parse(Object.new)
URI::InvalidURIError: bad URI(is not URI?): #<Object:0x007fcb7c2097a8>
irb(main):002:0> url = URI.parse('')
URI::InvalidURIError: URI must be ascii only "\u{1f363}"
```... | ```
require 'uri'
if url =~ URI::regexp
# Correct URL
end
``` |
33,385,492 | I'm trying to validate a URL, but my URI.parse is accepting any string without raising an `URI::InvalidURIError` error. Am I doing something wrong?
```
require 'uri'
URI.parse('invalid')
=> #<URI::Generic invalid>
```
**Solution**
I fixed this by checking for the class of the returned object. In the case it's URI::... | 2015/10/28 | [
"https://Stackoverflow.com/questions/33385492",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/891359/"
] | `URI::InvalidURIError` is raised when it can't parse a argument as Object or multibyte characters.
```
irb(main):001:0> url = URI.parse(Object.new)
URI::InvalidURIError: bad URI(is not URI?): #<Object:0x007fcb7c2097a8>
irb(main):002:0> url = URI.parse('')
URI::InvalidURIError: URI must be ascii only "\u{1f363}"
```... | `URI.Parse` works in different way
If you say `u = URI.parse('http://google.com')`,
you'll get URI::HTTP and the u.port which will be 80 by default.
If you say `u = URI.parse('google.com')`, you'll get a `URI::Generic` back with the `u.port` will be nil.
as a result these will not raise any error
to rais `URI::Inv... |
115,232 | The score for 'The Simple Life' by Jerry Martin indicates three flats, which would typically mean either Eb major or C minor. However, almost the entire song just moves back and forth between Bb major and Ab major chords, ending very clearly on Bb major. The overall tonality, therefore, suggests we're in Bb major, but ... | 2021/06/12 | [
"https://music.stackexchange.com/questions/115232",
"https://music.stackexchange.com",
"https://music.stackexchange.com/users/79574/"
] | The usual question I ask when someone asks "What key is this in?" is "Why do you care? What do you want to do with that information?" In some repertoires, like a lot of "classical" music, it's very clear what constitutes "being in a key." But even there, there can be significant ambiguity. (I discussed some of the issu... | Because the song starts, ends, and continually revisits Bb major, **I would analyze it as being in Bb major.**
**The Ab major chord is borrowed from Bb minor.** Borrowed chords are not (necessarily) considered to change the key, and here it clearly is just serving to move toward and away from Bb, reinforcing it rather... |
26,396 | I have a 7 week old baby and I stay home with him. The days can be long. I run out of ideas of how to entertain him. He doesn't talk or walk or crawl. He can't hold any toys. I don't want to always lie him on his back because of fear of a flat head but dont want to carry him. Also I feel that he isn't stimulated enough... | 2016/06/26 | [
"https://parenting.stackexchange.com/questions/26396",
"https://parenting.stackexchange.com",
"https://parenting.stackexchange.com/users/23599/"
] | Everything is new for a small baby and everything is stimulating as they discover the environment around them. Change in lighting, a new sound or a colorful object can evoke a response. What cause it doesn't matter as it's all new.
Once they can hold their head up consider getting a chair so they can watch you. Move t... | You don't do much...
If you fear Flat Head that much, you should buy a helmet. Else, just let your kid sleep and rest on his own, somewhere where you can see him and where he can see you. You don't hold your kid when you sleep. It's the same when you are awake. You might want to find some soft support to put him. (We ... |
26,396 | I have a 7 week old baby and I stay home with him. The days can be long. I run out of ideas of how to entertain him. He doesn't talk or walk or crawl. He can't hold any toys. I don't want to always lie him on his back because of fear of a flat head but dont want to carry him. Also I feel that he isn't stimulated enough... | 2016/06/26 | [
"https://parenting.stackexchange.com/questions/26396",
"https://parenting.stackexchange.com",
"https://parenting.stackexchange.com/users/23599/"
] | Everything is new for a small baby and everything is stimulating as they discover the environment around them. Change in lighting, a new sound or a colorful object can evoke a response. What cause it doesn't matter as it's all new.
Once they can hold their head up consider getting a chair so they can watch you. Move t... | As a father of a 15 days old child. The below list helps
1. Sing to him - He knows he is around someone who keeps him comfortable.
2. Hold him close to you.
3. Walk him around the house
4. Talk to him while he stares at the lights. Talk to him and he does make eye contact.
5. Swaddle him - Some babies like to be swad... |
26,396 | I have a 7 week old baby and I stay home with him. The days can be long. I run out of ideas of how to entertain him. He doesn't talk or walk or crawl. He can't hold any toys. I don't want to always lie him on his back because of fear of a flat head but dont want to carry him. Also I feel that he isn't stimulated enough... | 2016/06/26 | [
"https://parenting.stackexchange.com/questions/26396",
"https://parenting.stackexchange.com",
"https://parenting.stackexchange.com/users/23599/"
] | As a father of a 15 days old child. The below list helps
1. Sing to him - He knows he is around someone who keeps him comfortable.
2. Hold him close to you.
3. Walk him around the house
4. Talk to him while he stares at the lights. Talk to him and he does make eye contact.
5. Swaddle him - Some babies like to be swad... | You don't do much...
If you fear Flat Head that much, you should buy a helmet. Else, just let your kid sleep and rest on his own, somewhere where you can see him and where he can see you. You don't hold your kid when you sleep. It's the same when you are awake. You might want to find some soft support to put him. (We ... |
189,180 | I really like to play with sniper rifles in shooters and since these are also present in Borderlands, I'm really looking for a character whose skill tree synergizes with this kind of weapon.
I have a lot of experience in RPGs with similar skill-trees and stats but unfortunately I'm not really familiar with all the sta... | 2014/10/24 | [
"https://gaming.stackexchange.com/questions/189180",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/64410/"
] | Wilhelm the Enforcer is a good choice for us cowards—er, I mean "snipers".
When sniping, it's useful to have a buddy who can occupy distant enemies while you take them out. The longer you keep them far away, the longer you can stay scoped in. Also, since scoping in interferes with situational awareness, it's nice to h... | Nisha, as the gunslinger class, is similar to Mordecai and Zer0. They all have increased accuracy bonus, making them optimal for sniping. It is possible to play as sniper in all classes since they all have their own bonuses. Playing as Wilhelm gives more durability and backup/protection from enemy fire with Wolf and Sa... |
189,180 | I really like to play with sniper rifles in shooters and since these are also present in Borderlands, I'm really looking for a character whose skill tree synergizes with this kind of weapon.
I have a lot of experience in RPGs with similar skill-trees and stats but unfortunately I'm not really familiar with all the sta... | 2014/10/24 | [
"https://gaming.stackexchange.com/questions/189180",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/64410/"
] | Wilhelm the Enforcer is a good choice for us cowards—er, I mean "snipers".
When sniping, it's useful to have a buddy who can occupy distant enemies while you take them out. The longer you keep them far away, the longer you can stay scoped in. Also, since scoping in interferes with situational awareness, it's nice to h... | With the DLC, Aurelia (the Baroness) has "The Huntress" skill tree that has a lot of sniper-related goodies.
Tier 1: Only The Best gives you +20% bullet speed and +1 magazine size for sniper rifles (per level).
Tier 2: There's a one-point skill called Long-Range Killer that gives bonus damage based on your distance t... |
189,180 | I really like to play with sniper rifles in shooters and since these are also present in Borderlands, I'm really looking for a character whose skill tree synergizes with this kind of weapon.
I have a lot of experience in RPGs with similar skill-trees and stats but unfortunately I'm not really familiar with all the sta... | 2014/10/24 | [
"https://gaming.stackexchange.com/questions/189180",
"https://gaming.stackexchange.com",
"https://gaming.stackexchange.com/users/64410/"
] | With the DLC, Aurelia (the Baroness) has "The Huntress" skill tree that has a lot of sniper-related goodies.
Tier 1: Only The Best gives you +20% bullet speed and +1 magazine size for sniper rifles (per level).
Tier 2: There's a one-point skill called Long-Range Killer that gives bonus damage based on your distance t... | Nisha, as the gunslinger class, is similar to Mordecai and Zer0. They all have increased accuracy bonus, making them optimal for sniping. It is possible to play as sniper in all classes since they all have their own bonuses. Playing as Wilhelm gives more durability and backup/protection from enemy fire with Wolf and Sa... |
9,375,505 | I have a listiview in which rows are like this
ListView
---
[Text1] [Button1]
[Text2][Text3] [Text3]
----------------------
when i click on button according to status text call go to server.
If suppose status is invite and we click the button call send to server according to invite and if status is chat request t... | 2012/02/21 | [
"https://Stackoverflow.com/questions/9375505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1008203/"
] | The "slack variable" is C in c-svm and nu in nu-SVM. These both serve the same function in their respective formulations - controlling the tradeoff between a wide margin and classifier error. In the case of C, one generally test it in orders of magnitude, say 10^-4, 10^-3, 10^-2,... to 1, 5 or so. nu is a number betwee... | First decide which type of SVM are u intending to use: C-SVC, nu-SVC , epsilon-SVR or nu-SVR. In my opinion u need to vary C and gamma most of the time... the rest are usually fixed.. |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | If you just want to throw load at a single URL at a time on a web server then download Apache AB. It comes with Apache HTTP server.
Simple command
```
ab -n 10000 -c 10 http://serverfault.com/questions/2107/tools-for-load-testing-http-servers
```
would run 10000 requests with a concurrency of 10 users.
If you wa... | There is [Tsung](http://tsung.erlang-projects.org/), an Erlang based tool.
There's also a really long list of tools over at <http://www.softwareqatest.com/qatweb1.html#LOAD> |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | I feel unusually qualified to answer this question, since my current company needs to simulate 25,000 simultaneous connections to our web servers (we serve online ads).
For extremely high-volume load testing, **[Httperf](http://www.hpl.hp.com/research/linux/httperf/)** is the way to go. It's free, and in our experienc... | We use [WAPT](http://www.loadtestingtool.com), and it works very well. Easy to set up, and just a few hundred bucks. LoadRUnner is ridiculously overpriced, and totally out of reach for all but hte Forutune 500. |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | If you are just looking to test how it handles multiple connections you can use something like [Siege](http://www.joedog.org/index/siege-home). Still not sure it is a great measure but it will at least tell you how you are handling multiple connections | I used LoadRunner before but, it's rather expensive, I've also used Microsoft's Team Tester edition tools which includes a system that conduct load tests. I was fairly happy with how the tool worked, and you could expand the tests using .net which was an easier syntax to pick up then LoadRunner's.
The version of load ... |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | If you just want to throw load at a single URL at a time on a web server then download Apache AB. It comes with Apache HTTP server.
Simple command
```
ab -n 10000 -c 10 http://serverfault.com/questions/2107/tools-for-load-testing-http-servers
```
would run 10000 requests with a concurrency of 10 users.
If you wa... | You will need to set up different tests:
* Normal test, simulate users like they will behave. You will implement think time (no http fury 1s between pages). One way is to record a web session, so you will have realistic time to complete/read each page. Load will come step by step until you reach the average current lo... |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | I feel unusually qualified to answer this question, since my current company needs to simulate 25,000 simultaneous connections to our web servers (we serve online ads).
For extremely high-volume load testing, **[Httperf](http://www.hpl.hp.com/research/linux/httperf/)** is the way to go. It's free, and in our experienc... | I've used [openSTA](http://www.opensta.org/).
This uses a relatively simple script language.
You can easily test web services / servers and write your own scripts.
It allows you to put scripts together in a test in any way you want and configure the number of iterations, the number of users in each iteration, the ra... |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | [JMeter](http://jmeter.apache.org/index.html) is free.
Mercury Interactive Load Runner is super nice and super expensive. | I feel unusually qualified to answer this question, since my current company needs to simulate 25,000 simultaneous connections to our web servers (we serve online ads).
For extremely high-volume load testing, **[Httperf](http://www.hpl.hp.com/research/linux/httperf/)** is the way to go. It's free, and in our experienc... |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | We use [WAPT](http://www.loadtestingtool.com), and it works very well. Easy to set up, and just a few hundred bucks. LoadRUnner is ridiculously overpriced, and totally out of reach for all but hte Forutune 500. | It depends on how complex your scenario is.
To correctly simulate real users load on your server, you should try to simulate what the users are actually doing. If your users just hit the server with a URL, any of the free/simple tools would do.
For web-site that are a bit more complex, you would want to use a tool t... |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | [JMeter](http://jmeter.apache.org/index.html) is free.
Mercury Interactive Load Runner is super nice and super expensive. | If you just want to throw load at a single URL at a time on a web server then download Apache AB. It comes with Apache HTTP server.
Simple command
```
ab -n 10000 -c 10 http://serverfault.com/questions/2107/tools-for-load-testing-http-servers
```
would run 10000 requests with a concurrency of 10 users.
If you wa... |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | [JMeter](http://jmeter.apache.org/index.html) is free.
Mercury Interactive Load Runner is super nice and super expensive. | I've used [openSTA](http://www.opensta.org/).
This uses a relatively simple script language.
You can easily test web services / servers and write your own scripts.
It allows you to put scripts together in a test in any way you want and configure the number of iterations, the number of users in each iteration, the ra... |
2,107 | I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find.
So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll most likely do wrong the next time I've got to do it? | 2009/05/01 | [
"https://serverfault.com/questions/2107",
"https://serverfault.com",
"https://serverfault.com/users/1299/"
] | You will need to set up different tests:
* Normal test, simulate users like they will behave. You will implement think time (no http fury 1s between pages). One way is to record a web session, so you will have realistic time to complete/read each page. Load will come step by step until you reach the average current lo... | We use [WAPT](http://www.loadtestingtool.com), and it works very well. Easy to set up, and just a few hundred bucks. LoadRUnner is ridiculously overpriced, and totally out of reach for all but hte Forutune 500. |
40,134,261 | For building opencv 3.1 I'm using cmake with Visual Studio 2013. I downloaded the dependencies as shown here: <http://docs.opencv.org/3.1.0/d3/d52/tutorial_windows_install.html>
While configuring cmake, the first thing it shows is:
```
FP16: Compiler support is available
A library with BLAS API not found. Please s... | 2016/10/19 | [
"https://Stackoverflow.com/questions/40134261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7042782/"
] | For me, I used [OpenBlas](http://www.openblas.net/) library:
Use CMake Gui to config `opencv`
* Select `Advanced`
* In the `OpenBLAS` group, config the include folder and library file for `OpenBLAS`
* In the `WITH` group, select `WITH_LAPACK`
* Now click the `Configure` button, CMake will automatically config Lapack ... | I would add a comment but I do not have enough rep for it.
In my case to build OpenCV 3.2 in Visual Studio 2013 with `OpenBlas` and `LAPACK`, in addition to Viets' answer, I had to change two lines in `lapacke.h` to use the standard library based on [here](https://stackoverflow.com/questions/24853450/errors-using-lapa... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | Common issue is that browser prints "something else" before JSON whether that is some readable or **unreadable**(invisible) char. Try doing something like this:
```
<?php
//at the very beginning start output buffereing
ob_start();
// do your logic here
// right before outputting the JSON, clear the buffer.
ob_end_cl... | If you set the dataType in jQuery, that actually sets the Content-Type header attribute. Perhaps, in your PHP script you will need to declare this MIME type as accepted. Did you notice if the code even enters the PHP script when you make the request? I doubt it is a browser problem if it doesn't work in Firefox, Chrome... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | Common issue is that browser prints "something else" before JSON whether that is some readable or **unreadable**(invisible) char. Try doing something like this:
```
<?php
//at the very beginning start output buffereing
ob_start();
// do your logic here
// right before outputting the JSON, clear the buffer.
ob_end_cl... | ```
$.ajax({
url: '/route/',
type: 'POST',
dataType: "json",
data:
{
type: "add",
comment: $("#comment").val(),
id: videoID
},
success: data => {console.log(data);}
});
<?php
ob_start();
ob_end_clean();
echo json_enc... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | Common issue is that browser prints "something else" before JSON whether that is some readable or **unreadable**(invisible) char. Try doing something like this:
```
<?php
//at the very beginning start output buffereing
ob_start();
// do your logic here
// right before outputting the JSON, clear the buffer.
ob_end_cl... | It's easy to forget about an `echo` or a `var_dump()` that you may have been using in the past to test how your script is working.
In my own script I had a `var_dump()`, which I had forgotten about, that wasn't using JSON\_encode-ed text and sent plain text to the browser. This broke the dataType:"json" requirement a... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | I believe if you use dataType you should be using contentType, "The official Internet media type for JSON is application/json".
```
.ajax(
{
url: 'UpdateComments.php',
type: 'POST',
contentType: "application/json",//note the contentType defintion
dataType: "json",
data:
{
type: "add",
comment: $("#comment... | ```
$.ajax({
url: '/route/',
type: 'POST',
dataType: "json",
data:
{
type: "add",
comment: $("#comment").val(),
id: videoID
},
success: data => {console.log(data);}
});
<?php
ob_start();
ob_end_clean();
echo json_enc... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | It's easy to forget about an `echo` or a `var_dump()` that you may have been using in the past to test how your script is working.
In my own script I had a `var_dump()`, which I had forgotten about, that wasn't using JSON\_encode-ed text and sent plain text to the browser. This broke the dataType:"json" requirement a... | If you set the dataType in jQuery, that actually sets the Content-Type header attribute. Perhaps, in your PHP script you will need to declare this MIME type as accepted. Did you notice if the code even enters the PHP script when you make the request? I doubt it is a browser problem if it doesn't work in Firefox, Chrome... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | I believe if you use dataType you should be using contentType, "The official Internet media type for JSON is application/json".
```
.ajax(
{
url: 'UpdateComments.php',
type: 'POST',
contentType: "application/json",//note the contentType defintion
dataType: "json",
data:
{
type: "add",
comment: $("#comment... | If you set the dataType in jQuery, that actually sets the Content-Type header attribute. Perhaps, in your PHP script you will need to declare this MIME type as accepted. Did you notice if the code even enters the PHP script when you make the request? I doubt it is a browser problem if it doesn't work in Firefox, Chrome... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | It's easy to forget about an `echo` or a `var_dump()` that you may have been using in the past to test how your script is working.
In my own script I had a `var_dump()`, which I had forgotten about, that wasn't using JSON\_encode-ed text and sent plain text to the browser. This broke the dataType:"json" requirement a... | ```
$.ajax({
url: '/route/',
type: 'POST',
dataType: "json",
data:
{
type: "add",
comment: $("#comment").val(),
id: videoID
},
success: data => {console.log(data);}
});
<?php
ob_start();
ob_end_clean();
echo json_enc... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | I believe if you use dataType you should be using contentType, "The official Internet media type for JSON is application/json".
```
.ajax(
{
url: 'UpdateComments.php',
type: 'POST',
contentType: "application/json",//note the contentType defintion
dataType: "json",
data:
{
type: "add",
comment: $("#comment... | Try defining the error handler as part of the $.ajax call
```
$.ajax({
...,
error: function(xml, error) {
console.log(error);
}
});
```
Then check your debugging console for any errors that can help you diagnose the problem. |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | I believe if you use dataType you should be using contentType, "The official Internet media type for JSON is application/json".
```
.ajax(
{
url: 'UpdateComments.php',
type: 'POST',
contentType: "application/json",//note the contentType defintion
dataType: "json",
data:
{
type: "add",
comment: $("#comment... | I wouldn't use the dataType if it is causing you issues, also I've personally not used an object as the data value before maybe that has something to do with it?
Anyway I've tweaked the main ajax routine I hope this helps.
```
$.ajax(
{
url: 'UpdateComments.php',
type: 'POST',
data:
{
type: "add",
... |
9,985,146 | I'm trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database like it should. But as soon as I add dataType: "json" in ajax, nothing happens in the php file anymore. I googled a bit and some people mentioned it co... | 2012/04/02 | [
"https://Stackoverflow.com/questions/9985146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1241342/"
] | It's easy to forget about an `echo` or a `var_dump()` that you may have been using in the past to test how your script is working.
In my own script I had a `var_dump()`, which I had forgotten about, that wasn't using JSON\_encode-ed text and sent plain text to the browser. This broke the dataType:"json" requirement a... | Try defining the error handler as part of the $.ajax call
```
$.ajax({
...,
error: function(xml, error) {
console.log(error);
}
});
```
Then check your debugging console for any errors that can help you diagnose the problem. |
34,063,432 | I have simple application which have one abstract class `BaseType`, and two derived classes `FirstDerived : BaseType` and `SecondDerived : BaseType`. In derived class i call function `base.MakeChange(Item.ID);` to change value of instance of embedded property `Item`. It does not change. As i was explained because `base... | 2015/12/03 | [
"https://Stackoverflow.com/questions/34063432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4679715/"
] | >
> The following is based on this sample data.
>
>
>
```
Column A Column A Column C
a b c
1 AA-01 BB-01 1
2 AAA-02 BBB-02 2
3 AAAA-03 BBBB-03 2
```
These are the methods I use for the [AutoFilter Method](https://msdn.microsoft.com/en-u... | A simple thing to loop through selected cells and fill them with current date.
Ask if OK for cell that already has content.
```
Sub InsDate()
Dim r As Range
d = Date$ ' gibberish
d = Right(d, 4) + "-" + Mid(d, 4, 2) + "-" + Left(d, 2) ' make ISO'ish
Set r = Application.Selection
For i = 1 ... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | It will only affect the process that is calling GC. | Aside from additional CPU utilization for the duration of the collection, forcing a garbage collection does not result in an impact to other .NET processes. However, forcing a garbage collection will not - in most cases - result in a release of physical memory.
The mapping of physical memory to the address space of a... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | It will only affect the process that is calling GC. | It just affects the process it's called in (but will affect all [Application Domains](http://it.toolbox.com/blogs/programming-life/enter-the-net-appdomain-5595) in the process). However, be warned that this will not release the memory to the OS. If you want to release the memory to the OS, a way to do it is:
```
priva... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | It will only affect the process that is calling GC. | You would be wise to get a profiler out and look at why objects are not being garbage collected efficiently. It may be they're ending up in gen2 unecessarily and you could refactor it to allow it to get rid of objects more quickly.
You could also try ensuring the .NET part runs with the server version of the garbage c... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | It will only affect the process that is calling GC. | Along with the other answers referring directly to your use of GC.Collect, I would suggest you not only do some simple profiling, but also do a code review and ensure that you are properly releasing resources when you are done using them.
Do you call Dispose on all objects that implement IDisposable when you are done ... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | It just affects the process it's called in (but will affect all [Application Domains](http://it.toolbox.com/blogs/programming-life/enter-the-net-appdomain-5595) in the process). However, be warned that this will not release the memory to the OS. If you want to release the memory to the OS, a way to do it is:
```
priva... | Aside from additional CPU utilization for the duration of the collection, forcing a garbage collection does not result in an impact to other .NET processes. However, forcing a garbage collection will not - in most cases - result in a release of physical memory.
The mapping of physical memory to the address space of a... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | You would be wise to get a profiler out and look at why objects are not being garbage collected efficiently. It may be they're ending up in gen2 unecessarily and you could refactor it to allow it to get rid of objects more quickly.
You could also try ensuring the .NET part runs with the server version of the garbage c... | Aside from additional CPU utilization for the duration of the collection, forcing a garbage collection does not result in an impact to other .NET processes. However, forcing a garbage collection will not - in most cases - result in a release of physical memory.
The mapping of physical memory to the address space of a... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | It just affects the process it's called in (but will affect all [Application Domains](http://it.toolbox.com/blogs/programming-life/enter-the-net-appdomain-5595) in the process). However, be warned that this will not release the memory to the OS. If you want to release the memory to the OS, a way to do it is:
```
priva... | Along with the other answers referring directly to your use of GC.Collect, I would suggest you not only do some simple profiling, but also do a code review and ensure that you are properly releasing resources when you are done using them.
Do you call Dispose on all objects that implement IDisposable when you are done ... |
2,028,420 | We have a situation where we are considering forcing a garbage collection on a server that is very low on RAM (3.6/4GB used on average). No, it's not really an option to upgrade this server unfortunately.
One of our service processes (written indirectly in C++ (don't ask...)) does work with the .NET components and the... | 2010/01/08 | [
"https://Stackoverflow.com/questions/2028420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/246469/"
] | You would be wise to get a profiler out and look at why objects are not being garbage collected efficiently. It may be they're ending up in gen2 unecessarily and you could refactor it to allow it to get rid of objects more quickly.
You could also try ensuring the .NET part runs with the server version of the garbage c... | Along with the other answers referring directly to your use of GC.Collect, I would suggest you not only do some simple profiling, but also do a code review and ensure that you are properly releasing resources when you are done using them.
Do you call Dispose on all objects that implement IDisposable when you are done ... |
20,709,623 | I am trying to configure giraffe with graphite (0.9.10). Graphite is running successfully on port 8080 and I am able to run giraffe on port 9000. I have tried configuring dashboards.js in giraffe to point to a test metric within graphite (foo.bar.bz) but I do not see any chart in giraffe for that metric (only in graphi... | 2013/12/20 | [
"https://Stackoverflow.com/questions/20709623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/941357/"
] | I'm the creator of Giraffe. Hope I can help.
The first thing I noticed is that you configured `graphite_url` to point to `0.0.0.0:8080`. This must be incorrect. Since Giraffe is javascript-based, it runs on the client, so the address should be the external IP / FQDN of your graphite server instead.
Furthermore, if yo... | I use apache2 webserver, I added an alias for my giraffe in /etc/apache2/httpd.conf.
```
Alias /giraffe/ /home/vagrant/giraffe/
```
Restart your apache webserver, it will be available as:
IP/giraffe/index.html.
<http://graphite_url.com/giraffe/index.html>
replace graphite url with your IP address or your FQDN
... |
42,106,328 | Let's say I have the following two data sets:
```
{ "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
}
```
and
```
{ "fruits": {
"apple": {
... | 2017/02/08 | [
"https://Stackoverflow.com/questions/42106328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5535448/"
] | Try JavaScript [**ternary operator**](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) **:**
```js
var firstJSON = {
"food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"... | ```
var foodsData = { "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
};
var fruitsData = { "fruits": {
"apple": {
"isFruit": "yes"
... |
42,106,328 | Let's say I have the following two data sets:
```
{ "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
}
```
and
```
{ "fruits": {
"apple": {
... | 2017/02/08 | [
"https://Stackoverflow.com/questions/42106328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5535448/"
] | ```
var foodsData = { "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
};
var fruitsData = { "fruits": {
"apple": {
"isFruit": "yes"
... | Try below solution and it will work all JSON object in generic way.
and also i handled for dynamic length of objects too.
I hope this will help you.
```
var obj1 = { "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
... |
42,106,328 | Let's say I have the following two data sets:
```
{ "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
}
```
and
```
{ "fruits": {
"apple": {
... | 2017/02/08 | [
"https://Stackoverflow.com/questions/42106328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5535448/"
] | Try JavaScript [**ternary operator**](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) **:**
```js
var firstJSON = {
"food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"... | ```
var foodsData = {
"food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
};
var fruitsData = {
"fruits": {
"apple": {
"isFruit": "yes",
"isRoot": 'no',
... |
42,106,328 | Let's say I have the following two data sets:
```
{ "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
}
```
and
```
{ "fruits": {
"apple": {
... | 2017/02/08 | [
"https://Stackoverflow.com/questions/42106328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5535448/"
] | ```
var foodsData = {
"food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
};
var fruitsData = {
"fruits": {
"apple": {
"isFruit": "yes",
"isRoot": 'no',
... | Try below solution and it will work all JSON object in generic way.
and also i handled for dynamic length of objects too.
I hope this will help you.
```
var obj1 = { "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
... |
42,106,328 | Let's say I have the following two data sets:
```
{ "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
}
```
and
```
{ "fruits": {
"apple": {
... | 2017/02/08 | [
"https://Stackoverflow.com/questions/42106328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5535448/"
] | Try JavaScript [**ternary operator**](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) **:**
```js
var firstJSON = {
"food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"... | Try below solution and it will work all JSON object in generic way.
and also i handled for dynamic length of objects too.
I hope this will help you.
```
var obj1 = { "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
... |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | It sounds like a monitor issue, but here are a few things to try:
* **Confirm your video card is working**. If your video card is not sending a signal to the monitor, it will turn on for a few seconds, then go to sleep. Do you see your desktop (or anything other than a black screen) when you power cycle the monitor?
*... | I would hazard a guess and say the fluorescent backlight (or its control circuit) are dying, and that it needs to warm up a bit in order to stay on (hence why it goes off and one several times before staying on). |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | Issues such as this one are usually caused by bad electrolytic capacitors used inside the monitor. With time they lose their capacitance and their [equivalent series resistance](http://en.wikipedia.org/wiki/Equivalent_series_resistance) (ESR) increases. Such problems are common in computer power supplies, but it can ha... | It sounds like a monitor issue, but here are a few things to try:
* **Confirm your video card is working**. If your video card is not sending a signal to the monitor, it will turn on for a few seconds, then go to sleep. Do you see your desktop (or anything other than a black screen) when you power cycle the monitor?
*... |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | First off, [AndrejaKo's answer](https://superuser.com/questions/287249/i-have-to-cycle-my-lcd-monitors-power-on-and-off-to-get-it-to-stay-on/287343#287343) is incorrect - it is INDEED cheaper to replace the capacitors and to buy them. I recently bought a kit of capacitors for a customer's LCD. In fact, several sites on... | It sounds like a monitor issue, but here are a few things to try:
* **Confirm your video card is working**. If your video card is not sending a signal to the monitor, it will turn on for a few seconds, then go to sleep. Do you see your desktop (or anything other than a black screen) when you power cycle the monitor?
*... |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | Issues such as this one are usually caused by bad electrolytic capacitors used inside the monitor. With time they lose their capacitance and their [equivalent series resistance](http://en.wikipedia.org/wiki/Equivalent_series_resistance) (ESR) increases. Such problems are common in computer power supplies, but it can ha... | I would hazard a guess and say the fluorescent backlight (or its control circuit) are dying, and that it needs to warm up a bit in order to stay on (hence why it goes off and one several times before staying on). |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | Before you trash the monitor or even open it up to repair it be sure to check the warranty on the unit. Acer monitors have a 3 year warranty from date of purchase that covers parts and labor. If you can't find your receipt then check the mfg date on the label on the back of the monitor, if it's within the 3 year warran... | I would hazard a guess and say the fluorescent backlight (or its control circuit) are dying, and that it needs to warm up a bit in order to stay on (hence why it goes off and one several times before staying on). |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | First off, [AndrejaKo's answer](https://superuser.com/questions/287249/i-have-to-cycle-my-lcd-monitors-power-on-and-off-to-get-it-to-stay-on/287343#287343) is incorrect - it is INDEED cheaper to replace the capacitors and to buy them. I recently bought a kit of capacitors for a customer's LCD. In fact, several sites on... | I would hazard a guess and say the fluorescent backlight (or its control circuit) are dying, and that it needs to warm up a bit in order to stay on (hence why it goes off and one several times before staying on). |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | Issues such as this one are usually caused by bad electrolytic capacitors used inside the monitor. With time they lose their capacitance and their [equivalent series resistance](http://en.wikipedia.org/wiki/Equivalent_series_resistance) (ESR) increases. Such problems are common in computer power supplies, but it can ha... | Before you trash the monitor or even open it up to repair it be sure to check the warranty on the unit. Acer monitors have a 3 year warranty from date of purchase that covers parts and labor. If you can't find your receipt then check the mfg date on the label on the back of the monitor, if it's within the 3 year warran... |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | First off, [AndrejaKo's answer](https://superuser.com/questions/287249/i-have-to-cycle-my-lcd-monitors-power-on-and-off-to-get-it-to-stay-on/287343#287343) is incorrect - it is INDEED cheaper to replace the capacitors and to buy them. I recently bought a kit of capacitors for a customer's LCD. In fact, several sites on... | Issues such as this one are usually caused by bad electrolytic capacitors used inside the monitor. With time they lose their capacitance and their [equivalent series resistance](http://en.wikipedia.org/wiki/Equivalent_series_resistance) (ESR) increases. Such problems are common in computer power supplies, but it can ha... |
287,249 | I have been having a problem with my LCD monitor recently. When I boot up, the screen turns on for 1-2 seconds and then immediately turns off. I have to cycle the monitor's power on and off several times to get it to stay on. Each time I turn it on, the screen turns on for a second and then turns off. Eventually the sc... | 2011/05/23 | [
"https://superuser.com/questions/287249",
"https://superuser.com",
"https://superuser.com/users/82493/"
] | First off, [AndrejaKo's answer](https://superuser.com/questions/287249/i-have-to-cycle-my-lcd-monitors-power-on-and-off-to-get-it-to-stay-on/287343#287343) is incorrect - it is INDEED cheaper to replace the capacitors and to buy them. I recently bought a kit of capacitors for a customer's LCD. In fact, several sites on... | Before you trash the monitor or even open it up to repair it be sure to check the warranty on the unit. Acer monitors have a 3 year warranty from date of purchase that covers parts and labor. If you can't find your receipt then check the mfg date on the label on the back of the monitor, if it's within the 3 year warran... |
55,293,381 | I want to copy the values of range N17:N18 and paste transpose them into another cell. However after doing the same, I want to offset one row and paste the value of the given range into the new active cell. I am using a data solver function, so I want to paste each new value of N17:N18 for each new constraint.
Followi... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11241040/"
] | I would do that in following way:
```
List<Refund> refundList = new List<Refund>();
// populate your list
refundList = refundList
// here you could also use:
//.OrderBy(r => r.RefundStatus)
// but I don't know if you want it this way
.OrderBy(r => (r.RefundStatus == 1 ? 1 : -1))
.ThenBy(r => r.Subm... | This should do what you are looking for if I understand your question properly.
```
var sorted = refundList.GroupBy(refund => refund.RefundStatus)
.SelectMany(
group => group.Key == 1
? group.OrderBy(p => p.SumbitTime)
: group.OrderByDescending(p => p.SumbitTime))
.ToList();
``` |
55,293,381 | I want to copy the values of range N17:N18 and paste transpose them into another cell. However after doing the same, I want to offset one row and paste the value of the given range into the new active cell. I am using a data solver function, so I want to paste each new value of N17:N18 for each new constraint.
Followi... | 2019/03/22 | [
"https://Stackoverflow.com/questions/55293381",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11241040/"
] | I would do that in following way:
```
List<Refund> refundList = new List<Refund>();
// populate your list
refundList = refundList
// here you could also use:
//.OrderBy(r => r.RefundStatus)
// but I don't know if you want it this way
.OrderBy(r => (r.RefundStatus == 1 ? 1 : -1))
.ThenBy(r => r.Subm... | You could use the following.
```
var sorted = list.GroupBy(refund => refund.RefundStatus)
.OrderBy(x=>x.Key)
.SelectMany(
group => group.Key == 1 ?
group.OrderBy(p => p.SubmitTime)
: group.OrderByD... |
4,704,910 | ```
public static void Main(string[] args)
{
Action a = () => Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
a();
}
```
This code will return an obscure string like so: `<Main>b__0`.
Is there a way of ignoring the anonymous methods and get a more readable method name? | 2011/01/16 | [
"https://Stackoverflow.com/questions/4704910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/133665/"
] | You could capture it outside:
```
var name = MethodInfo.GetCurrentMethod().Name + ":subname";
Action a = () => Console.WriteLine(name);
```
Other than that; no. | No, there isn't. That's why it is an anonymous method. The name is automatically generated by the compiler and guaranteed to be unique. If you want to get the calling method name you could pass it as argument:
```
public static void Main()
{
Action<string> a = name => Console.WriteLine(name);
a(MethodInfo.GetC... |
4,704,910 | ```
public static void Main(string[] args)
{
Action a = () => Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
a();
}
```
This code will return an obscure string like so: `<Main>b__0`.
Is there a way of ignoring the anonymous methods and get a more readable method name? | 2011/01/16 | [
"https://Stackoverflow.com/questions/4704910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/133665/"
] | No, there isn't. That's why it is an anonymous method. The name is automatically generated by the compiler and guaranteed to be unique. If you want to get the calling method name you could pass it as argument:
```
public static void Main()
{
Action<string> a = name => Console.WriteLine(name);
a(MethodInfo.GetC... | If you are looking for getting the name of the function in which the anonymous method resides in you could travel the stack and get the name of the calling method. Do note though, that this would only work as long as your desired method name is one step up in the hierarchy.
Maybe there's a way of travelling up until y... |
4,704,910 | ```
public static void Main(string[] args)
{
Action a = () => Console.WriteLine(MethodInfo.GetCurrentMethod().Name);
a();
}
```
This code will return an obscure string like so: `<Main>b__0`.
Is there a way of ignoring the anonymous methods and get a more readable method name? | 2011/01/16 | [
"https://Stackoverflow.com/questions/4704910",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/133665/"
] | You could capture it outside:
```
var name = MethodInfo.GetCurrentMethod().Name + ":subname";
Action a = () => Console.WriteLine(name);
```
Other than that; no. | If you are looking for getting the name of the function in which the anonymous method resides in you could travel the stack and get the name of the calling method. Do note though, that this would only work as long as your desired method name is one step up in the hierarchy.
Maybe there's a way of travelling up until y... |
517,316 | I have to use XP as my development machine so far. But VS 2008's development server does not seem to work, very strange! (VS 2005's working well). Could I use IIS 5.1 to run ASP.NET MVC?
Thanks! | 2009/02/05 | [
"https://Stackoverflow.com/questions/517316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/31689/"
] | You can. Check out this post for details about how: <http://blogs.microsoft.co.il/blogs/dorony/archive/2007/12/15/using-asp-net-mvc-on-iis-5.aspx> | Yes you can use IIS on XP to run MVC. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.