qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | Generally, when people refer to "moonshine" and they are referring to what can be purchased legally, they are really referring to "white whiskey" (a.k.a. un-aged whiskey), or whiskey that has not been aged in an oak barrel.
Most whiskey is fermented from either all-corn, or corn and an other grain (like rye), but ther... | >
> Moonshine is any alcohol that is made illegally. It is usually make in
> small batches
>
>
>
In most cases if you are able to buy 'Moonshine' from a store it is generally not real moonshine
I believe that it's called moonshine because it was illegal to make, so it was usually distributed at night time under... |
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | >
> Moonshine is any alcohol that is made illegally. It is usually make in
> small batches
>
>
>
In most cases if you are able to buy 'Moonshine' from a store it is generally not real moonshine
I believe that it's called moonshine because it was illegal to make, so it was usually distributed at night time under... | As a detail and hopefully and appropriately informative aside for this topic:
In chemistry lab there are two alcohol solvents used:
1. Medical Grade (surgical alcohol) = 95% Alcohol (getting that last 0.57% is very time consuming to achieve)
2. (benzene) Alcohol = 98% Alcohol (with 2% benzene still in solution with th... |
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | >
> Moonshine is any alcohol that is made illegally. It is usually make in
> small batches
>
>
>
In most cases if you are able to buy 'Moonshine' from a store it is generally not real moonshine
I believe that it's called moonshine because it was illegal to make, so it was usually distributed at night time under... | If you want to be a traditionalist, it's not really Moonshine unless it was produced illegally, without all the proper taxes and such. Anything you buy in the store could more accurately be called white liquor, grain liquor or corn liquor, depending on the mash stock.
A key feature of both legally and illegally produc... |
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | Generally, when people refer to "moonshine" and they are referring to what can be purchased legally, they are really referring to "white whiskey" (a.k.a. un-aged whiskey), or whiskey that has not been aged in an oak barrel.
Most whiskey is fermented from either all-corn, or corn and an other grain (like rye), but ther... | Moonshine derives (supposedly) its name from transporting it at night to avoid detection.
Moonshine was made a lot in the mountains because of the inaccessibility of where the mountain-folk would hide the Stills and the abundance of fresh mountain springs. They could also make the moonshine high proof to maximize cost... |
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | Moonshine derives (supposedly) its name from transporting it at night to avoid detection.
Moonshine was made a lot in the mountains because of the inaccessibility of where the mountain-folk would hide the Stills and the abundance of fresh mountain springs. They could also make the moonshine high proof to maximize cost... | As a detail and hopefully and appropriately informative aside for this topic:
In chemistry lab there are two alcohol solvents used:
1. Medical Grade (surgical alcohol) = 95% Alcohol (getting that last 0.57% is very time consuming to achieve)
2. (benzene) Alcohol = 98% Alcohol (with 2% benzene still in solution with th... |
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | Generally, when people refer to "moonshine" and they are referring to what can be purchased legally, they are really referring to "white whiskey" (a.k.a. un-aged whiskey), or whiskey that has not been aged in an oak barrel.
Most whiskey is fermented from either all-corn, or corn and an other grain (like rye), but ther... | As a detail and hopefully and appropriately informative aside for this topic:
In chemistry lab there are two alcohol solvents used:
1. Medical Grade (surgical alcohol) = 95% Alcohol (getting that last 0.57% is very time consuming to achieve)
2. (benzene) Alcohol = 98% Alcohol (with 2% benzene still in solution with th... |
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | Generally, when people refer to "moonshine" and they are referring to what can be purchased legally, they are really referring to "white whiskey" (a.k.a. un-aged whiskey), or whiskey that has not been aged in an oak barrel.
Most whiskey is fermented from either all-corn, or corn and an other grain (like rye), but ther... | If you want to be a traditionalist, it's not really Moonshine unless it was produced illegally, without all the proper taxes and such. Anything you buy in the store could more accurately be called white liquor, grain liquor or corn liquor, depending on the mash stock.
A key feature of both legally and illegally produc... |
5,198 | With the legalization of moonshine in many US states I've been wondering what are the big differences between Moonshine and Vodka?
Both are clear spirits made from whatever grains/starches are available. Both can be fairly high proof.
Is it all just an Appalachian that is tied to their origin? | 2016/07/13 | [
"https://beer.stackexchange.com/questions/5198",
"https://beer.stackexchange.com",
"https://beer.stackexchange.com/users/4637/"
] | If you want to be a traditionalist, it's not really Moonshine unless it was produced illegally, without all the proper taxes and such. Anything you buy in the store could more accurately be called white liquor, grain liquor or corn liquor, depending on the mash stock.
A key feature of both legally and illegally produc... | As a detail and hopefully and appropriately informative aside for this topic:
In chemistry lab there are two alcohol solvents used:
1. Medical Grade (surgical alcohol) = 95% Alcohol (getting that last 0.57% is very time consuming to achieve)
2. (benzene) Alcohol = 98% Alcohol (with 2% benzene still in solution with th... |
55,158 | I've recently noticed that most of my activity with Google and its services goes through a local Google Global Cache server set up by our ISP. Since I don't fully trust the ISP, this has become a big concern for me.
Is it possible for the provider to read the encrypted requests that pass through GGC, thus getting acce... | 2014/04/08 | [
"https://security.stackexchange.com/questions/55158",
"https://security.stackexchange.com",
"https://security.stackexchange.com/users/43723/"
] | As described [here](https://peering.google.com/about/getting_ggc.html):
>
> Once registered and qualified by Google, we will send you a simple agreement for joining the GGC program. After you have electronically signed this agreement, Google will *ship you servers that you install in your facility* and attach to your... | Your search queries are definitely very easily accessed as you can see by the [recent DNS interception in Turkey](http://googleonlinesecurity.blogspot.com/2014/03/googles-public-dns-intercepted-in-turkey.html).
How much information they are able to get depends on how extensive the interception is. Your search queries ... |
41,403,674 | I'm searching for pointers to structs in the memory of a program, that are 4 bytes away from each other, but the amount can vary. I'm pretty sure that after the structs comes some other variable that's not a pointer.
I figured if I tried to use that next variable as a pointer and apply to it the highest offset the str... | 2016/12/30 | [
"https://Stackoverflow.com/questions/41403674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5352316/"
] | GCS provides strong read-after-write consistency. If you upload a new version of an object and then download it back, you will always get the new version of the object.
However, by default, when a publicly readable object is fetched, GCS responds with a "Cache-Control" header allowing caching for up to 1 hour. Google ... | You can go to the object in your console, click on "Edit Metadata", then enter what you want in the "Cache control" field. If you want no caching at all, you can add the string `no-store`.
Documentation on the allowed values is [here](https://cloud.google.com/storage/docs/metadata#cache-control). |
60,070,913 | Usually we can get data using ODBC connector in Power BI. Is there any way to get the data using the JDBC connector? | 2020/02/05 | [
"https://Stackoverflow.com/questions/60070913",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12843669/"
] | Unfortunately there is no native support for JDBC.
You can upvote the feature request for JDBC [at this link](https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/7262643-support-jdbc-data-sources)
There are options that convert your JDBC connection in to an ODBC one, known as JDBC to ODBC bridges. [Or... | Since Power BI is not coded in java its not easy to support JDBC (you will see only ODBC or .net based connectors in PBI). If Microsoft ever wants to add support for JAVA in Power BI then they might have to do via some sort of bridge.
If you are open for 3rd party solution then [here is one option by ZappySys](https:/... |
9,543,655 | I am trying to store a mysql value into a php variable. I have the following query which I know works. However, I the value for $count is always 0. Can someone explain what I need to do to get the count value? The count should be the count of x's w here name\_x=.$id.
```
$query = "SELECT COUNT(name_x) FROM Status whe... | 2012/03/03 | [
"https://Stackoverflow.com/questions/9543655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013371/"
] | ```
$query = "SELECT COUNT(*) FROM `Status` where `name_x`= $id";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
$count = $row[0];
``` | please try it
```
$query = "SELECT COUNT(*) FROM Status where name_x=$id";
$result = mysql_query($query);
$count = mysql_result($result, 0);
``` |
9,543,655 | I am trying to store a mysql value into a php variable. I have the following query which I know works. However, I the value for $count is always 0. Can someone explain what I need to do to get the count value? The count should be the count of x's w here name\_x=.$id.
```
$query = "SELECT COUNT(name_x) FROM Status whe... | 2012/03/03 | [
"https://Stackoverflow.com/questions/9543655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013371/"
] | Is first letter in table name is really capital. Please check it first.
or Try :
```
$query = "SELECT COUNT(*) as totalno FROM Status where name_x=".$id;
$result = mysql_query($query);
while($data=mysql_fetch_array($result)){
$count = $data['totalno'];
}
echo $count;
``` | please try it
```
$query = "SELECT COUNT(*) FROM Status where name_x=$id";
$result = mysql_query($query);
$count = mysql_result($result, 0);
``` |
9,543,655 | I am trying to store a mysql value into a php variable. I have the following query which I know works. However, I the value for $count is always 0. Can someone explain what I need to do to get the count value? The count should be the count of x's w here name\_x=.$id.
```
$query = "SELECT COUNT(name_x) FROM Status whe... | 2012/03/03 | [
"https://Stackoverflow.com/questions/9543655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013371/"
] | Is first letter in table name is really capital. Please check it first.
or Try :
```
$query = "SELECT COUNT(*) as totalno FROM Status where name_x=".$id;
$result = mysql_query($query);
while($data=mysql_fetch_array($result)){
$count = $data['totalno'];
}
echo $count;
``` | ```
$query = "SELECT COUNT(*) FROM `Status` where `name_x`= $id";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
$count = $row[0];
``` |
9,543,655 | I am trying to store a mysql value into a php variable. I have the following query which I know works. However, I the value for $count is always 0. Can someone explain what I need to do to get the count value? The count should be the count of x's w here name\_x=.$id.
```
$query = "SELECT COUNT(name_x) FROM Status whe... | 2012/03/03 | [
"https://Stackoverflow.com/questions/9543655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013371/"
] | ```
$query = "SELECT COUNT(*) FROM `Status` where `name_x`= $id";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
$count = $row[0];
``` | You are missing single quotes around $id. Should be
name\_x = '" . $id . "'"; |
9,543,655 | I am trying to store a mysql value into a php variable. I have the following query which I know works. However, I the value for $count is always 0. Can someone explain what I need to do to get the count value? The count should be the count of x's w here name\_x=.$id.
```
$query = "SELECT COUNT(name_x) FROM Status whe... | 2012/03/03 | [
"https://Stackoverflow.com/questions/9543655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1013371/"
] | Is first letter in table name is really capital. Please check it first.
or Try :
```
$query = "SELECT COUNT(*) as totalno FROM Status where name_x=".$id;
$result = mysql_query($query);
while($data=mysql_fetch_array($result)){
$count = $data['totalno'];
}
echo $count;
``` | You are missing single quotes around $id. Should be
name\_x = '" . $id . "'"; |
18,354,883 | This code works:
```
$host = parse_url('http://www.cc.joomla.mywebsite.net/paypal.com/myspace.com/login.php', PHP_URL_HOST);
$host_names = explode(".", $host);
print_r($host_names);
echo "<br>";
$l = array_slice($host_names, -3);
print_r($l);
echo "<br>";
$subdomain = implode(".", $l)... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18354883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/894470/"
] | Just substitute each variable with the expression that you assign to it:
```
$host_names = explode(".", $host);
$l = array_slice($host_names, -3);
```
becomes
```
$l = array_slice(explode(".", $host), -3);
```
Then
```
$l = array_slice(explode(".", $host), -3);
$subdomain = implode(".", $l);
```
becomes
```
... | You are mixing all your 3 lines into one, but it should be in this format to combine output of 1 function into another.
```
$subdomain = implode(".",array_slice(explode(".", $host), -3));
``` |
18,354,883 | This code works:
```
$host = parse_url('http://www.cc.joomla.mywebsite.net/paypal.com/myspace.com/login.php', PHP_URL_HOST);
$host_names = explode(".", $host);
print_r($host_names);
echo "<br>";
$l = array_slice($host_names, -3);
print_r($l);
echo "<br>";
$subdomain = implode(".", $l)... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18354883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/894470/"
] | Just substitute each variable with the expression that you assign to it:
```
$host_names = explode(".", $host);
$l = array_slice($host_names, -3);
```
becomes
```
$l = array_slice(explode(".", $host), -3);
```
Then
```
$l = array_slice(explode(".", $host), -3);
$subdomain = implode(".", $l);
```
becomes
```
... | You can chain funktions "like" that. But if you don't take care they care getting unreadably. Like yours and then errors are difficult to be found:
```
implode(array_slice (explode(".", $host)/* this is not a valid function call */($host_names, -3) /* same here*/ (".", $l);
```
There are so many function calls that ... |
18,354,883 | This code works:
```
$host = parse_url('http://www.cc.joomla.mywebsite.net/paypal.com/myspace.com/login.php', PHP_URL_HOST);
$host_names = explode(".", $host);
print_r($host_names);
echo "<br>";
$l = array_slice($host_names, -3);
print_r($l);
echo "<br>";
$subdomain = implode(".", $l)... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18354883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/894470/"
] | Just substitute each variable with the expression that you assign to it:
```
$host_names = explode(".", $host);
$l = array_slice($host_names, -3);
```
becomes
```
$l = array_slice(explode(".", $host), -3);
```
Then
```
$l = array_slice(explode(".", $host), -3);
$subdomain = implode(".", $l);
```
becomes
```
... | please try this:
```
$host_names = implode(".", array_slice(explode(".", $host), -3));
``` |
149,192 | The basic meaning of overhead is "above one's head"
However, in business field, usually An overhead cost or expense.
‘overheads, such as lighting, equipment, and any little extras, are paid for out of a centralized fund’
[Overhead (business) - Wikipedia](https://en.wikipedia.org/wiki/Overhead_(business))[Overhead (bus... | 2017/12/05 | [
"https://ell.stackexchange.com/questions/149192",
"https://ell.stackexchange.com",
"https://ell.stackexchange.com/users/64925/"
] | The key is not, as you say, "indirect and excess" but "unavoidable costs incurred when performing work". It is the same for brick-and-mortar business establishments and for digital computation. The "work" may be different but the *core* concept of **overhead** is the same.
A business needs lights; a program needs ele... | You are referring to the word in two different forms.
Overhead as a business cost is a ***noun***.
Overhead as in 'Birds flying overhead' is an ***adverb***.
More [here](https://en.wiktionary.org/wiki/overhead#Etymology_2) |
15,505 | I was reading this [article](http://www.riagenic.com/archives/526) about Metro UI designs, and I was struck by this statement:
>
> Example, if you look under the hood of a new car, you will see areas
> colored yellow whereas the rest is the same color of the engine etc.
> Car manufacturers do this on purpose, they ... | 2011/12/28 | [
"https://ux.stackexchange.com/questions/15505",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/5113/"
] | That example illustrates some cognitive psychology, named here as grouping. Works splendid!
More examples of visual cues:
<http://www.eruptingmind.com/depth-perception-cues-other-forms-of-perception/>
Perhaps you had something else in mind? If so, please elaborate your question.
Edit: Gestallt principles that is ho... | Color-coding is ages-old and nothing revolutionary. It's present almost everywhere in technology: from peripheral connectors to input devices to wiring to the aforementioned cars.
Traditional rules for color-coding are 1) all these go together and 2) touch these things and don't touch those at all, both of which we al... |
15,505 | I was reading this [article](http://www.riagenic.com/archives/526) about Metro UI designs, and I was struck by this statement:
>
> Example, if you look under the hood of a new car, you will see areas
> colored yellow whereas the rest is the same color of the engine etc.
> Car manufacturers do this on purpose, they ... | 2011/12/28 | [
"https://ux.stackexchange.com/questions/15505",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/5113/"
] | I think the example from the post makes reference to a key concept: grouping by color (probably described by a [Gestalt Principle](http://www.vanseodesign.com/web-design/gestalt-principles-of-perception/), but I can't find a reference to it now).
**In a site that has a prominent hue, an alternative hue will appear to ... | That example illustrates some cognitive psychology, named here as grouping. Works splendid!
More examples of visual cues:
<http://www.eruptingmind.com/depth-perception-cues-other-forms-of-perception/>
Perhaps you had something else in mind? If so, please elaborate your question.
Edit: Gestallt principles that is ho... |
15,505 | I was reading this [article](http://www.riagenic.com/archives/526) about Metro UI designs, and I was struck by this statement:
>
> Example, if you look under the hood of a new car, you will see areas
> colored yellow whereas the rest is the same color of the engine etc.
> Car manufacturers do this on purpose, they ... | 2011/12/28 | [
"https://ux.stackexchange.com/questions/15505",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/5113/"
] | As the original author, i'll add my reasons:
It has to do with the fact pattern recognition is a built in component within humans, once we identify a familiar pattern it then becomes easier to seed.
The thing is, most users don't turn up to the average software as UX virgins? that is to say they aren't using a comput... | That example illustrates some cognitive psychology, named here as grouping. Works splendid!
More examples of visual cues:
<http://www.eruptingmind.com/depth-perception-cues-other-forms-of-perception/>
Perhaps you had something else in mind? If so, please elaborate your question.
Edit: Gestallt principles that is ho... |
15,505 | I was reading this [article](http://www.riagenic.com/archives/526) about Metro UI designs, and I was struck by this statement:
>
> Example, if you look under the hood of a new car, you will see areas
> colored yellow whereas the rest is the same color of the engine etc.
> Car manufacturers do this on purpose, they ... | 2011/12/28 | [
"https://ux.stackexchange.com/questions/15505",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/5113/"
] | I think the example from the post makes reference to a key concept: grouping by color (probably described by a [Gestalt Principle](http://www.vanseodesign.com/web-design/gestalt-principles-of-perception/), but I can't find a reference to it now).
**In a site that has a prominent hue, an alternative hue will appear to ... | Color-coding is ages-old and nothing revolutionary. It's present almost everywhere in technology: from peripheral connectors to input devices to wiring to the aforementioned cars.
Traditional rules for color-coding are 1) all these go together and 2) touch these things and don't touch those at all, both of which we al... |
15,505 | I was reading this [article](http://www.riagenic.com/archives/526) about Metro UI designs, and I was struck by this statement:
>
> Example, if you look under the hood of a new car, you will see areas
> colored yellow whereas the rest is the same color of the engine etc.
> Car manufacturers do this on purpose, they ... | 2011/12/28 | [
"https://ux.stackexchange.com/questions/15505",
"https://ux.stackexchange.com",
"https://ux.stackexchange.com/users/5113/"
] | As the original author, i'll add my reasons:
It has to do with the fact pattern recognition is a built in component within humans, once we identify a familiar pattern it then becomes easier to seed.
The thing is, most users don't turn up to the average software as UX virgins? that is to say they aren't using a comput... | Color-coding is ages-old and nothing revolutionary. It's present almost everywhere in technology: from peripheral connectors to input devices to wiring to the aforementioned cars.
Traditional rules for color-coding are 1) all these go together and 2) touch these things and don't touch those at all, both of which we al... |
71,616,898 | I installed Java 17 version with [asdf](https://asdf-vm.com) and it works without any problems in a Java project:
```
➜ ~ asdf list java
adoptopenjdk-17.0.0+35
```
But when checking the java version with `java -version` in the terminal, it displays the following errors:
```
~ java -version
/Users/xxx/.asdf/shims... | 2022/03/25 | [
"https://Stackoverflow.com/questions/71616898",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1119043/"
] | This solved the issue for me:
1. rename the `~/.asdf/shims` directory
2. run `asdf reshim`
[More details](https://github.com/asdf-vm/asdf/issues/1147#issuecomment-1006067709). | Try
```sh
asdf global java adoptopenjdk-17.0.0+35
asdf reshim
```
It sets `adoptopenjdk-17.0.0+35` as default for the user and then asdf will update the shims. |
22,408,767 | I'm new to JS and have a question about inheritance. How are inherited properties accessed through the child class?
Lets say I have the following classes:
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
this.prototype = new ParentClass(chil... | 2014/03/14 | [
"https://Stackoverflow.com/questions/22408767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2649051/"
] | If you want to initialize the `parentProperty`, you have to do it like this
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
ParentClass.call(this, childArg1);
this.childProperty = childArg2;
}
```
And to actually inherit Parent't metho... | `foo.prototype.parentProperty` If you want to get `value 1` back |
22,408,767 | I'm new to JS and have a question about inheritance. How are inherited properties accessed through the child class?
Lets say I have the following classes:
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
this.prototype = new ParentClass(chil... | 2014/03/14 | [
"https://Stackoverflow.com/questions/22408767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2649051/"
] | `foo.prototype.parentProperty` If you want to get `value 1` back | For ES6, you use extends, eg
```
class A { prop = "prop" }
class B extends A{}
new B();
``` |
22,408,767 | I'm new to JS and have a question about inheritance. How are inherited properties accessed through the child class?
Lets say I have the following classes:
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
this.prototype = new ParentClass(chil... | 2014/03/14 | [
"https://Stackoverflow.com/questions/22408767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2649051/"
] | If you want to initialize the `parentProperty`, you have to do it like this
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
ParentClass.call(this, childArg1);
this.childProperty = childArg2;
}
```
And to actually inherit Parent't metho... | The problem is because you can't assign to a prototype property before the object definition is declared:
**Doesn't work:**
```
function Parent() {
this.parentProperty = "test";
}
function Child() {
// This doesn't work because the prototype is set inside of the definition
this.prototype = new Parent();
}
v... |
22,408,767 | I'm new to JS and have a question about inheritance. How are inherited properties accessed through the child class?
Lets say I have the following classes:
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
this.prototype = new ParentClass(chil... | 2014/03/14 | [
"https://Stackoverflow.com/questions/22408767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2649051/"
] | If you want to initialize the `parentProperty`, you have to do it like this
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
ParentClass.call(this, childArg1);
this.childProperty = childArg2;
}
```
And to actually inherit Parent't metho... | For ES6, you use extends, eg
```
class A { prop = "prop" }
class B extends A{}
new B();
``` |
22,408,767 | I'm new to JS and have a question about inheritance. How are inherited properties accessed through the child class?
Lets say I have the following classes:
```
function ParentClass(parentArg) {
this.parentProperty = parentArg;
}
function ChildClass(childArg1, childArg2) {
this.prototype = new ParentClass(chil... | 2014/03/14 | [
"https://Stackoverflow.com/questions/22408767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2649051/"
] | The problem is because you can't assign to a prototype property before the object definition is declared:
**Doesn't work:**
```
function Parent() {
this.parentProperty = "test";
}
function Child() {
// This doesn't work because the prototype is set inside of the definition
this.prototype = new Parent();
}
v... | For ES6, you use extends, eg
```
class A { prop = "prop" }
class B extends A{}
new B();
``` |
62,715,939 | I want to get 3 lists of information about countries, and then add one by one to a new dict in a list, I want it to by organize and clean, so the population and ranks. So the first country should be the country with the largest population, and the rank should be 1 for this example.
I have 3 lists for 3 countries:
```... | 2020/07/03 | [
"https://Stackoverflow.com/questions/62715939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13849759/"
] | Use `zip` inside a list comprehension. This gives a sequence of tuples, which you can then either index or unpack to create the values in the dictionary. The following example uses unpacking:
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_d... | This code should do the job:
```
result_list_of_dicts = []
for i in range(len(countries)):
result_list_of_dicts.append({'country': countries[i], 'rank': ranks[i], 'population': population[i]})
``` |
62,715,939 | I want to get 3 lists of information about countries, and then add one by one to a new dict in a list, I want it to by organize and clean, so the population and ranks. So the first country should be the country with the largest population, and the rank should be 1 for this example.
I have 3 lists for 3 countries:
```... | 2020/07/03 | [
"https://Stackoverflow.com/questions/62715939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13849759/"
] | **Here is how you can use [`zip()`](https://docs.python.org/3.3/library/functions.html#zip):**
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_dicts = [{'country': c,
'rank': r,
'populations'... | This code should do the job:
```
result_list_of_dicts = []
for i in range(len(countries)):
result_list_of_dicts.append({'country': countries[i], 'rank': ranks[i], 'population': population[i]})
``` |
62,715,939 | I want to get 3 lists of information about countries, and then add one by one to a new dict in a list, I want it to by organize and clean, so the population and ranks. So the first country should be the country with the largest population, and the rank should be 1 for this example.
I have 3 lists for 3 countries:
```... | 2020/07/03 | [
"https://Stackoverflow.com/questions/62715939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13849759/"
] | Use `zip` inside a list comprehension. This gives a sequence of tuples, which you can then either index or unpack to create the values in the dictionary. The following example uses unpacking:
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_d... | Use `zip` in combination with a comprehension:
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_dicts = [{"Country": country, "Rank": rank, "Population": pop}
for country, rank, pop in zip(countries, ranks, population)... |
62,715,939 | I want to get 3 lists of information about countries, and then add one by one to a new dict in a list, I want it to by organize and clean, so the population and ranks. So the first country should be the country with the largest population, and the rank should be 1 for this example.
I have 3 lists for 3 countries:
```... | 2020/07/03 | [
"https://Stackoverflow.com/questions/62715939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13849759/"
] | Use `zip` inside a list comprehension. This gives a sequence of tuples, which you can then either index or unpack to create the values in the dictionary. The following example uses unpacking:
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_d... | **Here is how you can use [`zip()`](https://docs.python.org/3.3/library/functions.html#zip):**
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_dicts = [{'country': c,
'rank': r,
'populations'... |
62,715,939 | I want to get 3 lists of information about countries, and then add one by one to a new dict in a list, I want it to by organize and clean, so the population and ranks. So the first country should be the country with the largest population, and the rank should be 1 for this example.
I have 3 lists for 3 countries:
```... | 2020/07/03 | [
"https://Stackoverflow.com/questions/62715939",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13849759/"
] | **Here is how you can use [`zip()`](https://docs.python.org/3.3/library/functions.html#zip):**
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_dicts = [{'country': c,
'rank': r,
'populations'... | Use `zip` in combination with a comprehension:
```
countries = ['Argentina', 'Brazil', 'France']
population = ['100', '900', '1400']
ranks = ['1', '2', '3']
result_list_of_dicts = [{"Country": country, "Rank": rank, "Population": pop}
for country, rank, pop in zip(countries, ranks, population)... |
37,289,527 | I'm newbie to Unity 5 and I have problem with creating new scenes. After creating a project ,I go to `File->New Scene` but the scene does not appear at all so I can't do anything with it ! Here's the image from what I see in Unity:
[](https://i.stack.... | 2016/05/18 | [
"https://Stackoverflow.com/questions/37289527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Your new scene is there. Your layout is likely messed up.
[](https://i.stack.imgur.com/fxoTb.png)
Click on the **Default** in the image above(where red arrow points to) then click **Default**. It should **reset** everything to normal. You can press *... | Have you enabled the scene view and switched to it?
Maybe you are viewing the game view. There is nothing in the scene so nothing will be displayed in game view. |
37,289,527 | I'm newbie to Unity 5 and I have problem with creating new scenes. After creating a project ,I go to `File->New Scene` but the scene does not appear at all so I can't do anything with it ! Here's the image from what I see in Unity:
[](https://i.stack.... | 2016/05/18 | [
"https://Stackoverflow.com/questions/37289527",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Hit Layout in the top right corner, select "2 by 3"
You will see your scene and game view quickly that way.
[](https://i.stack.imgur.com/hdCAn.png) | Have you enabled the scene view and switched to it?
Maybe you are viewing the game view. There is nothing in the scene so nothing will be displayed in game view. |
43,089,847 | The Service Fabric Team announced in their [blog post](https://azure.microsoft.com/en-us/blog/announcing-azure-service-fabric-5-5-and-sdk-2-5/) that Service Fabric now supports *Refresh Mode* in Preview when debugging on a 1 Node cluster in Visual Studio 2015.
I've just installed the new Service Fabric SDK from the We... | 2017/03/29 | [
"https://Stackoverflow.com/questions/43089847",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2463810/"
] | As the [announce](https://azure.microsoft.com/en-us/blog/announcing-azure-service-fabric-5-5-and-sdk-2-5/) states about Refresh application debug mode in Visual Studio 2015 as follows:
>
> In conjunction with ASP.NET Core integration support, we’ve added a new **application debug mode** to the Service Fabric Applica... | It's a new option in the Application Debug Mode values, in the properties of your SF Application project.
(from the detailed release notes document) |
9,243,064 | While `string` should be used for working with strings, I would like to know what structure you should use in C++ when working with blocks of data.
I'm asking this because it would be nicer to use one parameter instead of passing a `char* data` and `size_t size` (or a custom structure). | 2012/02/11 | [
"https://Stackoverflow.com/questions/9243064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/192632/"
] | ```
std::vector<unsigned char>
```
or, preferably,
```
std::vector<std::uint8_t>
```
(In C++11, `uint8_t` can be found in `<cinttypes>`. Older compilers, but not MSVC, may have the C99 header `<inttypes.h>`. If your data is a sequence of 16-bit units, use `uint16_t` etc.)
If the size of the data blocks is known a... | There are a number of containers in the STL, not only `vector`. Look and choose what fits your situation. |
9,243,064 | While `string` should be used for working with strings, I would like to know what structure you should use in C++ when working with blocks of data.
I'm asking this because it would be nicer to use one parameter instead of passing a `char* data` and `size_t size` (or a custom structure). | 2012/02/11 | [
"https://Stackoverflow.com/questions/9243064",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/192632/"
] | ```
std::vector<unsigned char>
```
or, preferably,
```
std::vector<std::uint8_t>
```
(In C++11, `uint8_t` can be found in `<cinttypes>`. Older compilers, but not MSVC, may have the C99 header `<inttypes.h>`. If your data is a sequence of 16-bit units, use `uint16_t` etc.)
If the size of the data blocks is known a... | The above solutions is good, but consider this solution may be good :
1. [bitset](http://www.cplusplus.com/reference/stl/bitset/) in STL
2. [bit\_vector](http://www.sgi.com/tech/stl/bit_vector.html) in SGI
3. [qbitarray](http://developer.qt.nokia.com/doc/qt-4.8/qbitarray.html) in QTL |
1,674,969 | I have added reference to WCF Service in my client asp.net website.
Right now, I am just instantiating WCF Service at every service method call as:
```
TemplateServiceClient objTemplateService = new TemplateServiceClient();
objTemplateService.MethodCall();
```
I am not sure about the performance down due to above.
... | 2009/11/04 | [
"https://Stackoverflow.com/questions/1674969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/186280/"
] | The only way to know about performance is to test it, so if you've any concerns, you should do that.
It's hard to know without knowing what you're doing and how it will be used.
A web service client is just another object so you can do all the usual things:
* what you're doing with a new instance every time;
* reus... | As long as the performance is acceptable, it's not a problem. Don't over-optimize prematurely without even knowing whether there indeed **IS** a performance problem or not...
Measure your performance, and see, if it is.
The per-call scenario is indeed the preferred and recommended scenario for WCF - it just works be... |
31,982,535 | **Type of data**
```
[{"id":"1","value":"Google"},{"id":"2","value":"Samsung"}]
```
Now I have a general function that performs certain actions based on the type of data being returned.
for this particular data I am checking if it is array or not.
In order to check the type of the data being return I am using the ... | 2015/08/13 | [
"https://Stackoverflow.com/questions/31982535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2988569/"
] | Whatever the value you get as a result of AJAX call, from PHP or JSP, will return it as String. You need to parse the string to make the script to understand the datatype correctly. You can do something like this:
```
data = JSON.parse(data);
if (typeof data == "object") {
// JSON Data
} else {
// String Data
}
... | I'm assuming you're getting that data via ajax. Have you specified `dataType: 'json'` in the ajax function? If no dataType is specified, jQuery will guess, and sometimes, it guesses wrong.
(**Edit:** More on the `$.ajax` function here: <http://api.jquery.com/jquery.ajax/> ) |
31,982,535 | **Type of data**
```
[{"id":"1","value":"Google"},{"id":"2","value":"Samsung"}]
```
Now I have a general function that performs certain actions based on the type of data being returned.
for this particular data I am checking if it is array or not.
In order to check the type of the data being return I am using the ... | 2015/08/13 | [
"https://Stackoverflow.com/questions/31982535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2988569/"
] | For jQuery to know that you're sending JSON data, the server has to respond with the correct `Content-Type` header. In PHP, this can easily be achieved by calling `header('Content-Type: application/json');` before any output, and jQuery will attempt to parse the response.
This will result in the `data` parameter of yo... | Whatever the value you get as a result of AJAX call, from PHP or JSP, will return it as String. You need to parse the string to make the script to understand the datatype correctly. You can do something like this:
```
data = JSON.parse(data);
if (typeof data == "object") {
// JSON Data
} else {
// String Data
}
... |
31,982,535 | **Type of data**
```
[{"id":"1","value":"Google"},{"id":"2","value":"Samsung"}]
```
Now I have a general function that performs certain actions based on the type of data being returned.
for this particular data I am checking if it is array or not.
In order to check the type of the data being return I am using the ... | 2015/08/13 | [
"https://Stackoverflow.com/questions/31982535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2988569/"
] | For jQuery to know that you're sending JSON data, the server has to respond with the correct `Content-Type` header. In PHP, this can easily be achieved by calling `header('Content-Type: application/json');` before any output, and jQuery will attempt to parse the response.
This will result in the `data` parameter of yo... | I'm assuming you're getting that data via ajax. Have you specified `dataType: 'json'` in the ajax function? If no dataType is specified, jQuery will guess, and sometimes, it guesses wrong.
(**Edit:** More on the `$.ajax` function here: <http://api.jquery.com/jquery.ajax/> ) |
59,528,911 | ```js
import VersionReducer from "./VersionReducer";
export default combineReducers({
appVersion: VersionReducer
});
```
In my VersionReducer.js file
When I use the following, everything is fine
```js
export default () => [{
versionNumber: 22,
versionName: "2.2"
}];
```
But I want to get object from ... | 2019/12/30 | [
"https://Stackoverflow.com/questions/59528911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6569224/"
] | The `update()` method interprets the `.` as addressing a nested field. So `a.b.c` would be a field `c` inside a field `b` inside field `a`.
There is no way (that I know of) to prevent Firestore from interpreting the `.` in calls to `update()`. Luckily calls to `set()` are not interpreted in the same way, and you can ... | The problem of using `.` in a field ID is that it require escaping like said in the [firestore documentation](https://firebase.google.com/docs/firestore/best-practices#field_names)
So if you really want the dot you should escape it like so `\.` because if you don't firestore understand `A.B` like the item of key `B` i... |
41,911,115 | From the C standard (5.2.2 Character display semantics):
>
> \t (horizontal tab) Moves the active position to the next horizontal
> tabulation position on the current line. **If the active position is at
> or past the last defined horizontal tabulation position**, the behavior
> of the display device is unspecified.... | 2017/01/28 | [
"https://Stackoverflow.com/questions/41911115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7304770/"
] | Say, your text console has 80 character width and tabulation positions are 0,8,16,....72.
According to the standard, you know that if you send (print) one tabulation character to the console, your cursor moves to the 8th position. If two, then to 16th position .... If nine, then to 72th position. But if you send more t... | **About tabs**
>
> Most terminal programs will have a tab stop at every 8th column.- For every "\t" you print the cursor goes to the next possible position ( *usually 8 spaces* ).
> - If there is space for N tabulation characters in your console you can safely print from 0 to N "\t".
>
>
>
>
Let's say that my t... |
18,348,667 | I want to allocate an arraylist of primitive datatype objects like int,char etc (not array because it's going to grow in future may be not linearly) but required to be stored at consecutive memory locations in RAM (jvm managed heap). But since when I declare ArrayList for primitive data type for ex. ArrayList for int, ... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18348667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2325916/"
] | There is no single solution that meets your requirements.
If you want an array-like structure of a primitive type, then you need to use an array of that primitive type or some class that wraps an array of that primitive type1. If you try to implement a custom class, it cannot be generic (on the primitive type) because... | Disclaimer: This is not specified anyway so it could chance.
In the OpenJDK/Oracle JVM, objects are allocated within in a TLAB in order. Once it is copied into survivor/tenured spaces, in the *reverse order* it is discovered. This means the objects are likely to together in cache.
A simple solution is to use a primit... |
18,348,667 | I want to allocate an arraylist of primitive datatype objects like int,char etc (not array because it's going to grow in future may be not linearly) but required to be stored at consecutive memory locations in RAM (jvm managed heap). But since when I declare ArrayList for primitive data type for ex. ArrayList for int, ... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18348667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2325916/"
] | There is no single solution that meets your requirements.
If you want an array-like structure of a primitive type, then you need to use an array of that primitive type or some class that wraps an array of that primitive type1. If you try to implement a custom class, it cannot be generic (on the primitive type) because... | There are a lot of primitive collections projects, here are some of them:
1. [org.apache.commons.collections.primitives](http://commons.apache.org/proper/commons-primitives/apidocs/org/apache/commons/collections/primitives/package-summary.html)
2. [High Performance Primitive Collections](http://labs.carrotsearch.com/h... |
18,348,667 | I want to allocate an arraylist of primitive datatype objects like int,char etc (not array because it's going to grow in future may be not linearly) but required to be stored at consecutive memory locations in RAM (jvm managed heap). But since when I declare ArrayList for primitive data type for ex. ArrayList for int, ... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18348667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2325916/"
] | There is no single solution that meets your requirements.
If you want an array-like structure of a primitive type, then you need to use an array of that primitive type or some class that wraps an array of that primitive type1. If you try to implement a custom class, it cannot be generic (on the primitive type) because... | What you are trying to do, is not technically possible due to memory fragmentation issues. Think about it. If your buffer needs to grow, it needs to reallocate the entire ammount of memory, consecutively which would rapidly fragment memory, leaving you running out of memory even though you technically would have enough... |
18,348,667 | I want to allocate an arraylist of primitive datatype objects like int,char etc (not array because it's going to grow in future may be not linearly) but required to be stored at consecutive memory locations in RAM (jvm managed heap). But since when I declare ArrayList for primitive data type for ex. ArrayList for int, ... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18348667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2325916/"
] | Disclaimer: This is not specified anyway so it could chance.
In the OpenJDK/Oracle JVM, objects are allocated within in a TLAB in order. Once it is copied into survivor/tenured spaces, in the *reverse order* it is discovered. This means the objects are likely to together in cache.
A simple solution is to use a primit... | What you are trying to do, is not technically possible due to memory fragmentation issues. Think about it. If your buffer needs to grow, it needs to reallocate the entire ammount of memory, consecutively which would rapidly fragment memory, leaving you running out of memory even though you technically would have enough... |
18,348,667 | I want to allocate an arraylist of primitive datatype objects like int,char etc (not array because it's going to grow in future may be not linearly) but required to be stored at consecutive memory locations in RAM (jvm managed heap). But since when I declare ArrayList for primitive data type for ex. ArrayList for int, ... | 2013/08/21 | [
"https://Stackoverflow.com/questions/18348667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2325916/"
] | There are a lot of primitive collections projects, here are some of them:
1. [org.apache.commons.collections.primitives](http://commons.apache.org/proper/commons-primitives/apidocs/org/apache/commons/collections/primitives/package-summary.html)
2. [High Performance Primitive Collections](http://labs.carrotsearch.com/h... | What you are trying to do, is not technically possible due to memory fragmentation issues. Think about it. If your buffer needs to grow, it needs to reallocate the entire ammount of memory, consecutively which would rapidly fragment memory, leaving you running out of memory even though you technically would have enough... |
490,764 | I have install gitlab and as the installation manual says I needed to create a user with disabled login -
<https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md#3-system-users>
I want to install some ruby gems and I need to enter password for "git" user.. I am trying to press enter (for ... | 2013/03/23 | [
"https://serverfault.com/questions/490764",
"https://serverfault.com",
"https://serverfault.com/users/162629/"
] | You have to change/set the password as root: `passwd user` will change it. | You don't sign in with that user, you sign in with your normal user and use sudo and su to assume that user's identity:
```
$ sudo su - git
``` |
25,707,224 | I am working in Visual Studio 2010 c# using MySql Data Connector (Current Version).
I have tried just about every command I can think of... Now I seem to be stuck.
```
MySqlConnection connectionA = new MySqlConnection(MyConString);
MySqlCommand commandA = connectionA.CreateCommand();
connectionA.Open();
MySqlDataReade... | 2014/09/07 | [
"https://Stackoverflow.com/questions/25707224",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4015923/"
] | Your code is never executing the command and sending it to the database.
```
commandA.CommandText = "UPDATE trips SET vanid=null WHERE vanid='4' AND tripdate BETWEEN '2014-09-06' AND '2050-12-31'";
commandA.ExecuteNonQuery();
connectionA.Close();
``` | You aren't ever executing the query :) You need...
```
commandA.ExecuteNonQuery();
``` |
359,762 | I using a TI buck regulator (LM21212) to power a bunch of components on my board at a certain voltage. When calculating stability, do I need to take into account all the decoupling capacitors (e.g. 0.1 uF and 0.01 uF) that I have placed next to all the components that is powered by the regulator? | 2018/03/05 | [
"https://electronics.stackexchange.com/questions/359762",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/180124/"
] | Practically speaking, it's safe to ignore the decoupling capacitors around your circuit when designing a switching power supply. Pedantically, those capacitors will have some affect on the power supply, but they're negligible. Here's a few reasons why:
1. Most of the decoupling capacitors are electrically "far away". ... | It depends what your specs are for step load response for transient delay and amplitude as well as ringing. Since every contributing dynamic and/or reactive part affects voltage ripple, it cannot be ignored.
Depending on your noisy immunity spec, you must specify worst case Ripple Voltage with a budget from each sourc... |
68,209,361 | am trying to create a table layout like this:
```html
<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZoAAAEWCAYAAABfdFHAAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAB4+SURBVHhe7d1/bBzlncfxL6eUHxKIkiMSEa1Mgh2LhP7h6gSKqVLnjlg4oAikKEkFnP8IcVRDZbcRAkIuf3D5AUK5BlFSxRCd3N6pcRQpqCK2ZWhJrRIrV... | 2021/07/01 | [
"https://Stackoverflow.com/questions/68209361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16210127/"
] | Try this one
```html
<table class="table" width="100%" border="1" style="border-collapse: collapse;">
<tr>
<th width="50%" colspan="2">INCOME</th>
<th width="50%" colspan="2">EXPENSE</th>
</tr>
<tr>
<td width="25%">Name A</td>
<td width="25%"><center>10,000</center></td>
<td widt... | Could this html markup help you?
```html
<table class="table" border=2>
<tr>
<th colspan="2" scope="colgroup">INCOME</th>
<th colspan="2" scope="colgroup">EXPENSE</th>
</tr>
<tr>
<td>Name A</td>
<td>10,00</td>
<td>name b</td>
<td>10,00<... |
67,144,646 | I have a dictionary that looks like this:
heights = {'Andy':150, 'Brenda':155, 'Cindy':130}
I want a table with one column of names and one column of heights. I want to keep only the top 2 heights. The end result should look like this:
[](https://i.... | 2021/04/18 | [
"https://Stackoverflow.com/questions/67144646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12170242/"
] | You can easily filter your dictionary to save only the top two values by sorting and slicing.
```py
heights = {'Brenda': 155, 'Cindy': 130, 'Andy': 150}
# Sort Data and Keep Top 2 Results
top_two_heights = sorted(heights.items(), key=lambda v: -v[1])[:2]
print(top_two_heights)
```
Output:
```py
[('Brenda', 155), ('... | You could convert the dictionary to a CSV file, which would give you the desired output.
```
import csv
heights = {'Andy':150, 'Brenda':155, 'Cindy':130}
last_key = "Cindy"
with open("filename.csv", "w") as csvfile:
writer = csv.writer(csvfile)
writer.writerow(["Name", "Height"])
for key, value in heigh... |
37,417,818 | i extract som html information of a website using file\_get\_contents and i want ti print by echo
how i can do
```
$page = file_get_contents('*******');
preg_match("/<span class=\"a-text-strike\".*span>/", $page, $precio_antes);
preg_match("/<span id=\"priceblock_ourprice\".*span>/", $page, $precio_ahora);
preg_matc... | 2016/05/24 | [
"https://Stackoverflow.com/questions/37417818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5385598/"
] | I'm not sure about jest, but there's a neat npm package that can convert TAP based results to xUnit XMLformat, and then you can publish that to TFS.
Take a look at [tap-xunit](https://www.npmjs.com/package/tap-xunit).
I had a build environment where javascript testing was done by various tools and frameworks (AVA, Mo... | If you are running with XAML build, this link will help you: [Javascript Unit Tests on Team Foundation Service with Chutzpah](https://blogs.msdn.microsoft.com/visualstudioalm/2012/07/09/javascript-unit-tests-on-team-foundation-service-with-chutzpah/)
If you are running with vNext build, please try the detail steps men... |
37,417,818 | i extract som html information of a website using file\_get\_contents and i want ti print by echo
how i can do
```
$page = file_get_contents('*******');
preg_match("/<span class=\"a-text-strike\".*span>/", $page, $precio_antes);
preg_match("/<span id=\"priceblock_ourprice\".*span>/", $page, $precio_ahora);
preg_matc... | 2016/05/24 | [
"https://Stackoverflow.com/questions/37417818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5385598/"
] | Extending on [Merlin's answer](https://stackoverflow.com/a/38422707/1069189), here is how I've implemented publishing jest test results AND code coverage to TFS2015 vNext builds (I am using create-react-app boilerplate):
First install required packages on the Server you are running your Agent on:
npm install -g jest-... | If you are running with XAML build, this link will help you: [Javascript Unit Tests on Team Foundation Service with Chutzpah](https://blogs.msdn.microsoft.com/visualstudioalm/2012/07/09/javascript-unit-tests-on-team-foundation-service-with-chutzpah/)
If you are running with vNext build, please try the detail steps men... |
37,417,818 | i extract som html information of a website using file\_get\_contents and i want ti print by echo
how i can do
```
$page = file_get_contents('*******');
preg_match("/<span class=\"a-text-strike\".*span>/", $page, $precio_antes);
preg_match("/<span id=\"priceblock_ourprice\".*span>/", $page, $precio_ahora);
preg_matc... | 2016/05/24 | [
"https://Stackoverflow.com/questions/37417818",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5385598/"
] | Extending on [Merlin's answer](https://stackoverflow.com/a/38422707/1069189), here is how I've implemented publishing jest test results AND code coverage to TFS2015 vNext builds (I am using create-react-app boilerplate):
First install required packages on the Server you are running your Agent on:
npm install -g jest-... | I'm not sure about jest, but there's a neat npm package that can convert TAP based results to xUnit XMLformat, and then you can publish that to TFS.
Take a look at [tap-xunit](https://www.npmjs.com/package/tap-xunit).
I had a build environment where javascript testing was done by various tools and frameworks (AVA, Mo... |
66,677,237 | I'm trying to create a dataframe using 1 list and 1 dictionary.
The first column is the word (equal to the list), the second the count (some words are in the dictionary with the correspondent count).
Example:
```
list = ['hi', 'hello', 'bye']
dict = {'hi': 10}
df = hi 10
hello 0
bye 0
```
What I wa... | 2021/03/17 | [
"https://Stackoverflow.com/questions/66677237",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14946335/"
] | You can either mangle the strings and cast to integer directly (more efficient) or convert to datetime, format to string and cast to integer (maybe more convenient / readable).
Ex:
```
import pandas as pd
# dummy data:
df = pd.DataFrame({'date': ['10/11/2012', '11/12/2013']}) # mm/dd/yyyy
# working with strings...
tm... | You can sum year \* 1000 + month \* 100 + day:
```
df = pd.DataFrame({'dt': pd.date_range('2021-01-01', '2021-01-05')})
df['dt_int'] = df['dt'].dt.year * 1000 + df['dt'].dt.month * 100 + df['dt'].dt.day
df
```
Output:
```
dt dt_int
0 2021-01-01 2021101
1 2021-01-02 2021102
2 2021-01-03 2021103
3 202... |
41,130,323 | For now I can send a notification to a single device using the curl command:
```
curl --header "Authorization: key=AAAxxxxxE4:xxxxxxxuXog" --header Content-Type:"application/json; application/x-www-form-urlencoded;charset=UTF-8" -d '{"to":"DeviceToken","notification":{"title":"Test","body":"Test Message","icon":"icon... | 2016/12/13 | [
"https://Stackoverflow.com/questions/41130323",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2854570/"
] | I think you missed the `rel` in your cURL request, between the token and the topic name. As seen in the [Instance ID docs](https://developers.google.com/instance-id/reference/server#create_a_relation_mapping_for_an_app_instance), the format should be:
```
https://iid.googleapis.com/iid/v1/IID_TOKEN/rel/topics/TOPIC_NA... | For some reason, <https://iid.googleapis.com/iid/v1/IID_TOKEN/rel/topics/TOPIC_NAME> did not work for me. It seemed to me that I was doing everything correctly but what I decided to do was to try the equivalent of that by using <https://iid.googleapis.com/iid/v1:batchAdd> and sending only one token:
```
$curlUrl = "ht... |
13,332 | I've heard and read about how recording/mixing engineers in the music business analyze each others mixes to learn the techniques used to make a certain track sound so good or what the latest trend/style is being used for them to incorporate in their work. They listen to how the track is balanced, panned and where each ... | 2012/03/31 | [
"https://sound.stackexchange.com/questions/13332",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/6524/"
] | *light spoilers ahead for We Own the Night, Inglorious Basterds and Michael Clayton ahead*
Be careful not to get too lost in the technical details. Be mindful of the overall purpose of the sound design. I brought this up in another question a couple years ago... the movie, We Own the Night, starring Joaquin Phoenix an... | I found it effective to use Adobe Audition and XMind (mind mapping tool).
In Audition I am able to see both waveform and spectrum at the same time. I set markers at the in and out points of certain audio sections that I'm interested in and then use Marque Tool to listen to exact frequency range of the sound. I can re... |
13,332 | I've heard and read about how recording/mixing engineers in the music business analyze each others mixes to learn the techniques used to make a certain track sound so good or what the latest trend/style is being used for them to incorporate in their work. They listen to how the track is balanced, panned and where each ... | 2012/03/31 | [
"https://sound.stackexchange.com/questions/13332",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/6524/"
] | The music engineering world is very different from a technical standpoint because the music usually stands on its own, giving the engineers, producers and artists free reign (more or less) to make choices without penalty. On the other hand, film and game sound design must work harmoniously with visual elements to tell ... | I found it effective to use Adobe Audition and XMind (mind mapping tool).
In Audition I am able to see both waveform and spectrum at the same time. I set markers at the in and out points of certain audio sections that I'm interested in and then use Marque Tool to listen to exact frequency range of the sound. I can re... |
31,285,309 | I need to insert strings at the beginning. Right now I use `StringBuilder.Insert(0, stringToInsert)` to insert at front, but it's taking a lot of time (around 2 mins for 80,000 strings).
The `append()` method runs a lot faster (30 secs for 80,000 strings), but it's not the order that I need. How can I reverse the ord... | 2015/07/08 | [
"https://Stackoverflow.com/questions/31285309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1349259/"
] | Yes, reversing the enumerable is **much** faster.
For example:
```
var numStrings = 80000;
var strings = new List<String>();
for(var i = 0; i < numStrings; i++)
{
strings.Add(Guid.NewGuid().ToString());
}
var sw = new Stopwatch();
sw.Start();
var sb = new StringBuilder();
foreach(var str in Enumerable.Reverse(st... | Presuming you can put them into an array, and nothing can stop you to do it if you have enough memory, Iterate the array of strings using an index in reverse order and then use append. This should be really fast.
```
StringBuilder s = new StringBuilder()
for(i = array.Length - 1; i >= 0; i--)
{
s.Append(array[i]);... |
112,888 | Many cooks/chefs recommend resting meat. There's a saying of "rest for the same length of time it was cooked".
For steaks this is fine, a 6 or so min cooking time means 6 mins at room temp is okay. But what about a full chicken or turkey? Depending on the size, they're cooked for 2-3 hours or more. Surely it's not saf... | 2020/11/29 | [
"https://cooking.stackexchange.com/questions/112888",
"https://cooking.stackexchange.com",
"https://cooking.stackexchange.com/users/20465/"
] | There is a rule of thumb
[](https://i.stack.imgur.com/RSIN5.png)
This is not the full story
[](https://i.stack.imgur.com/dDT86.png)
A cooked turkey should be at 72C. When you take ... | I don't think there is a consensus on how long you should rest meat, be it a turkey, chicken or steak or other meats.
Personally, I think the 3 hours is a little bit on the extreme side of it, but I don't see anything wrong or unsafe if the turkey was cooked to a good temperature.
Remember that meat will continue to ... |
18,915,219 | I would like to update the value in a table with values of the previous row, within groups, (and probably stop the updates on a given condition)
Here is an example:
```
set.seed(12345)
field <- data.table(time=1:3, player = letters[1:2], prospects = round(rnorm(6),2))
setkey(field, player, time)
field[time == 1, ene... | 2013/09/20 | [
"https://Stackoverflow.com/questions/18915219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2627717/"
] | Probably there are better ways, but this is what came to my mind. This makes use of `roll=TRUE` argument. The idea is to first set `energy=0.0` where `prospects < 0.27`:
```
field[prospects < 0.27, energy := 0.0]
```
Then, if we remove the NA values from `field`, we can use `roll=TRUE` by doing a join with all combi... | something like this ?
```
ddply(field, 'player', function(x) {
baseline <- x[x$time == 1, 'energy']
x$energy <- baseline
ind <- which(x$prospects < 0.27)
if (length(ind)) {
x[min(ind):nrow(x), 'energy'] <- 0
}
x
})
``` |
836,144 | I have two devices in the same broadcast domain. My PC and an Avaya IP Control Unit.
My IP is **10.168.10.154/22**.
Avaya Device IP is **192.168.10.99/23**.
I am able to ping this device and don't understand how.
1. The Avaya Device has no gateway set.
2. Even if it did, there are no routes on the Cisco router to a... | 2017/03/03 | [
"https://serverfault.com/questions/836144",
"https://serverfault.com",
"https://serverfault.com/users/158670/"
] | >
> Route Print on my local machine shows: 192.168.10.99 255.255.255.255 On-link
> 10.168.10.154 26
>
>
>
That is why, the On-link routes are accessible locally without any gateway, many times they are created when you connect via dial-up (to Avaya device maybe). You have to find out why this route is being crea... | It looks to me like you have an additional ip address assigned to your NIC.
[](https://i.stack.imgur.com/ItJ0x.png)
[](https://i.stack.imgur.com/zktPU.png) |
20,368,187 | ```
#include <iostream>
#include <type_traits>
int main(){
//creating an integral constant with constexpr
constexpr unsigned int speed_of_light{299792458};
//creating an integral constant with std::integral_constant
typedef std::integral_constant<unsigned int, 299792458> speed_of_light_2;
//usin... | 2013/12/04 | [
"https://Stackoverflow.com/questions/20368187",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/908939/"
] | Template `integral_constant` defines a type, keyword `constexpr` defines a constant.
For example `std::true_type` is `std::integral_constant<bool, true>`.
One of the usage examples is `tag-dispatching`.
```
template<typename T>
void use_impl(const T&, std::false_type)
{
}
template<typename T>
void use_impl(const T&,... | It can be used with the ternary operator
eg
```
void gotoN_impl(std::integral_constant<int,0>::type)
{
std::cout << "GoTo 0" << '\n';
}
void gotoN_impl(std::integral_constant<int,1>::type)
{
std::cout << "GoTo 1" << '\n';
}
void gotoN_impl(std::integral_constant<int,2>::type)
{
std::cout << "GoTo 2" << '... |
394,806 | I was walking to school (England) with my eight-year-old talking about stuff she'd been doing the day before. At some point she said that something had been "...funner..." than something else.
I did not immediately realise that 'fun' is, historically at least, a noun and NOT an adjective. So I was wondering in my head... | 2017/06/20 | [
"https://english.stackexchange.com/questions/394806",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/103961/"
] | Nowadays it's common to use "fun" as an adjective.
Fun is used for talking about something that is enjoyable
or someone that you enjoy being with.
1) Barcelona is a fun city.
2) Our day at the beach was really fun.
The examples are collected from Macmillan dictionary. And by saying " more /most fun ", you will be ... | No, definitely not!
I might say it is the 'most fun city', but it is not really my (British)style.
I would be more likely to say "I had more fun in Barcelona than in any other city"
I can spare the extra time and ink for a more 'elegant' sentence! |
7,764,609 | When running my first asp.net mvc application I got this error
I thought that entity framework automatically would create the keys of column names that end with Id? isnt it correct?
As you can see the ApplicantPositionID would be a table with 2 columns as primary key because it would relate to Applicants and also to P... | 2011/10/14 | [
"https://Stackoverflow.com/questions/7764609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1014217/"
] | EF Code First can only infer that a property is a **primary key** if the property is called `Id` or `<class name>Id` (or if it is annotated with the Key attribute).
So you need to extend your e.g. ApplicantImage with an ApplicantImageId or Id property etc.
Edit: An artice about the coneventions: [Conventions for Code... | You can add the `[Key]` atributte to the property `ApplicantId` or do it via Fluent API overriding OnModelCreating method DbContext
```
modelBuilder.Entity<ApplicantImage >().HasKey(p => p.ApplicantId);
``` |
7,764,609 | When running my first asp.net mvc application I got this error
I thought that entity framework automatically would create the keys of column names that end with Id? isnt it correct?
As you can see the ApplicantPositionID would be a table with 2 columns as primary key because it would relate to Applicants and also to P... | 2011/10/14 | [
"https://Stackoverflow.com/questions/7764609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1014217/"
] | EF Code First can only infer that a property is a **primary key** if the property is called `Id` or `<class name>Id` (or if it is annotated with the Key attribute).
So you need to extend your e.g. ApplicantImage with an ApplicantImageId or Id property etc.
Edit: An artice about the coneventions: [Conventions for Code... | In your case, EF naming convention first looks for an ID (case-insensitive) column. If nothing, looks for `ApplicantImageId` and when it founds nothing, it raises that error.
So, you should add the [Key] attribute on your ID:
```
public class ApplicantImage
{
[Key]
public int ApplicantId { get; private set; }... |
7,764,609 | When running my first asp.net mvc application I got this error
I thought that entity framework automatically would create the keys of column names that end with Id? isnt it correct?
As you can see the ApplicantPositionID would be a table with 2 columns as primary key because it would relate to Applicants and also to P... | 2011/10/14 | [
"https://Stackoverflow.com/questions/7764609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1014217/"
] | EF Code First can only infer that a property is a **primary key** if the property is called `Id` or `<class name>Id` (or if it is annotated with the Key attribute).
So you need to extend your e.g. ApplicantImage with an ApplicantImageId or Id property etc.
Edit: An artice about the coneventions: [Conventions for Code... | I know this is an old question but it is still relevant. I ran into the same situation however we use a .tt file to generate the .cs from our edmx. Our .tt is setup to add the [Key] attribute on our first column of the table for most situations, but in my case i was using a row over () in SQL to generate unique id's fo... |
7,764,609 | When running my first asp.net mvc application I got this error
I thought that entity framework automatically would create the keys of column names that end with Id? isnt it correct?
As you can see the ApplicantPositionID would be a table with 2 columns as primary key because it would relate to Applicants and also to P... | 2011/10/14 | [
"https://Stackoverflow.com/questions/7764609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1014217/"
] | You can add the `[Key]` atributte to the property `ApplicantId` or do it via Fluent API overriding OnModelCreating method DbContext
```
modelBuilder.Entity<ApplicantImage >().HasKey(p => p.ApplicantId);
``` | In your case, EF naming convention first looks for an ID (case-insensitive) column. If nothing, looks for `ApplicantImageId` and when it founds nothing, it raises that error.
So, you should add the [Key] attribute on your ID:
```
public class ApplicantImage
{
[Key]
public int ApplicantId { get; private set; }... |
7,764,609 | When running my first asp.net mvc application I got this error
I thought that entity framework automatically would create the keys of column names that end with Id? isnt it correct?
As you can see the ApplicantPositionID would be a table with 2 columns as primary key because it would relate to Applicants and also to P... | 2011/10/14 | [
"https://Stackoverflow.com/questions/7764609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1014217/"
] | You can add the `[Key]` atributte to the property `ApplicantId` or do it via Fluent API overriding OnModelCreating method DbContext
```
modelBuilder.Entity<ApplicantImage >().HasKey(p => p.ApplicantId);
``` | I know this is an old question but it is still relevant. I ran into the same situation however we use a .tt file to generate the .cs from our edmx. Our .tt is setup to add the [Key] attribute on our first column of the table for most situations, but in my case i was using a row over () in SQL to generate unique id's fo... |
7,764,609 | When running my first asp.net mvc application I got this error
I thought that entity framework automatically would create the keys of column names that end with Id? isnt it correct?
As you can see the ApplicantPositionID would be a table with 2 columns as primary key because it would relate to Applicants and also to P... | 2011/10/14 | [
"https://Stackoverflow.com/questions/7764609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1014217/"
] | In your case, EF naming convention first looks for an ID (case-insensitive) column. If nothing, looks for `ApplicantImageId` and when it founds nothing, it raises that error.
So, you should add the [Key] attribute on your ID:
```
public class ApplicantImage
{
[Key]
public int ApplicantId { get; private set; }... | I know this is an old question but it is still relevant. I ran into the same situation however we use a .tt file to generate the .cs from our edmx. Our .tt is setup to add the [Key] attribute on our first column of the table for most situations, but in my case i was using a row over () in SQL to generate unique id's fo... |
47,266,853 | Using JavaFX, Ive created 4 text fields a user can input information. I then have a button, when pressed, will save the user's input to a text file where the user can select the location to save to.
I can't figure out how to retrieve the user's input from each of the individual fields.
Im using a fxml with a controll... | 2017/11/13 | [
"https://Stackoverflow.com/questions/47266853",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4110932/"
] | `String name = name.getText(Name);` should be changed to `String name = Name.getText()`. If you do something similar to that with each textfield, you should be able to get their contents.
Edit:
to prompt the user for where they want to save their text file and what to call it, you can use a [`FileChooser`](https:/... | You can create an array of Text Fields. create a vbox instead of ListView then add text fields to vbox children in a for loop.
another option is using listview. [if you have few text fields use vbox instead of listview] |
644,961 | How can I install Chrome for just myself?
Background
==========
By default, the Chrome installer will attempt to elevate, and install two system-wide services, as well as scheduled tasks. I need to run Chrome on a server that is not my own.
I don't want any Chrome footprint to exist outside of my user profile; and d... | 2013/09/13 | [
"https://superuser.com/questions/644961",
"https://superuser.com",
"https://superuser.com/users/8169/"
] | You might consider using the Portable Apps version of Chrome.
<http://portableapps.com/apps/internet/google_chrome_portable>
This version does not require "installation" and its updates are maintained by the PortableApps team instead of Google. I use it to have a 2nd version of chrome for testing. | You can use [Google Chrome portable](http://portableapps.com/apps/internet/google_chrome_portable), unzip it to a folder you have access to, and create a shortcut to it to where you want it to be (desktop, start menu, pin to taskbar, etc)
Because it is portable, it is not installed. Because you make the shortcut where... |
644,961 | How can I install Chrome for just myself?
Background
==========
By default, the Chrome installer will attempt to elevate, and install two system-wide services, as well as scheduled tasks. I need to run Chrome on a server that is not my own.
I don't want any Chrome footprint to exist outside of my user profile; and d... | 2013/09/13 | [
"https://superuser.com/questions/644961",
"https://superuser.com",
"https://superuser.com/users/8169/"
] | You might consider using the Portable Apps version of Chrome.
<http://portableapps.com/apps/internet/google_chrome_portable>
This version does not require "installation" and its updates are maintained by the PortableApps team instead of Google. I use it to have a 2nd version of chrome for testing. | 1. Get the offline Google Chrome installer from
<https://www.google.com/intl/en/chrome/browser/desktop/index.html?standalone=1>
2. Install it on another Windows box where you have full system
permissions.
3. Zip the entire app folder and transfer the archive to the box with the
restricted account.
4. On the target box ... |
644,961 | How can I install Chrome for just myself?
Background
==========
By default, the Chrome installer will attempt to elevate, and install two system-wide services, as well as scheduled tasks. I need to run Chrome on a server that is not my own.
I don't want any Chrome footprint to exist outside of my user profile; and d... | 2013/09/13 | [
"https://superuser.com/questions/644961",
"https://superuser.com",
"https://superuser.com/users/8169/"
] | You can use [Google Chrome portable](http://portableapps.com/apps/internet/google_chrome_portable), unzip it to a folder you have access to, and create a shortcut to it to where you want it to be (desktop, start menu, pin to taskbar, etc)
Because it is portable, it is not installed. Because you make the shortcut where... | 1. Get the offline Google Chrome installer from
<https://www.google.com/intl/en/chrome/browser/desktop/index.html?standalone=1>
2. Install it on another Windows box where you have full system
permissions.
3. Zip the entire app folder and transfer the archive to the box with the
restricted account.
4. On the target box ... |
238,635 | I will be explaining what I think:
A battery acts like a pump which provides energy to do work on negative charges to move them towards the negative terminal, and hence creating an electric field. Now, due to this field, when a wire is connected to make a circuit, electrons move from negative to positive terminal, the... | 2016/02/20 | [
"https://physics.stackexchange.com/questions/238635",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/87129/"
] | If you add more resistors in series the effect will be the opposite of what you say: the battery will last longer. A battery has a certain rated capacity, written in mAh (milliamps times hours). Divide this capacity by the current you are drawing and you will get how much will that battery last in hours, at the same cu... | The power consumed by your circuit determines how fast the battery drains. P = I \* E: power (Watts) is found by multiplying the current (Amps) by the voltage (Volts). Since your battery has a (reasonably) constant voltage under normal operation, current is the variable here.
I = E / R, amps = volts / ohms. If we com... |
238,635 | I will be explaining what I think:
A battery acts like a pump which provides energy to do work on negative charges to move them towards the negative terminal, and hence creating an electric field. Now, due to this field, when a wire is connected to make a circuit, electrons move from negative to positive terminal, the... | 2016/02/20 | [
"https://physics.stackexchange.com/questions/238635",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/87129/"
] | If you add more resistors in series the effect will be the opposite of what you say: the battery will last longer. A battery has a certain rated capacity, written in mAh (milliamps times hours). Divide this capacity by the current you are drawing and you will get how much will that battery last in hours, at the same cu... | Case 1:
They are connected in series - the more you add the higher the resistance, the less current - longer life
Rtot = R1 + R2 + ... RN
Case 2:
They are connected in parallel - the more you add the lower the resistance, more current - shorter life
1/Rtot = 1/R1 + 1/R2 + ... 1/RN
Case 3:
Mixed series/parallel connec... |
238,635 | I will be explaining what I think:
A battery acts like a pump which provides energy to do work on negative charges to move them towards the negative terminal, and hence creating an electric field. Now, due to this field, when a wire is connected to make a circuit, electrons move from negative to positive terminal, the... | 2016/02/20 | [
"https://physics.stackexchange.com/questions/238635",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/87129/"
] | The power consumed by your circuit determines how fast the battery drains. P = I \* E: power (Watts) is found by multiplying the current (Amps) by the voltage (Volts). Since your battery has a (reasonably) constant voltage under normal operation, current is the variable here.
I = E / R, amps = volts / ohms. If we com... | Case 1:
They are connected in series - the more you add the higher the resistance, the less current - longer life
Rtot = R1 + R2 + ... RN
Case 2:
They are connected in parallel - the more you add the lower the resistance, more current - shorter life
1/Rtot = 1/R1 + 1/R2 + ... 1/RN
Case 3:
Mixed series/parallel connec... |
45,656,647 | I am trying to run Add-Migration InitialCreate command from package manager console from a .NET Core 2.0 MVC application. After looking at all possible sources still not able to resolve the issue with error description as :
```
PM> Add-Migration InitialCreate
```
>
> An error occurred while calling method 'BuildWeb... | 2017/08/13 | [
"https://Stackoverflow.com/questions/45656647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3625742/"
] | You need change your class Program
```
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
```
T... | Had the same issue.
It happened after i updated Microsoft.AspNetCore.All from 2.0.0-preview2-final to 2.0.0. Guess the reason why it fails is that i have .NET Core Preview 2 runtime installed.
EFCore got updated too. So please, make sure you have same nuget and runtime versions
**UPDATE:** Now .NET Core runtime and S... |
45,656,647 | I am trying to run Add-Migration InitialCreate command from package manager console from a .NET Core 2.0 MVC application. After looking at all possible sources still not able to resolve the issue with error description as :
```
PM> Add-Migration InitialCreate
```
>
> An error occurred while calling method 'BuildWeb... | 2017/08/13 | [
"https://Stackoverflow.com/questions/45656647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3625742/"
] | Had the same issue.
It happened after i updated Microsoft.AspNetCore.All from 2.0.0-preview2-final to 2.0.0. Guess the reason why it fails is that i have .NET Core Preview 2 runtime installed.
EFCore got updated too. So please, make sure you have same nuget and runtime versions
**UPDATE:** Now .NET Core runtime and S... | I had the same issue
My solution contained a console application and an api application which contained the dbcontext code.
I had set the start up project to the console application. When I changed the start up project to the api application the error dissapeared. |
45,656,647 | I am trying to run Add-Migration InitialCreate command from package manager console from a .NET Core 2.0 MVC application. After looking at all possible sources still not able to resolve the issue with error description as :
```
PM> Add-Migration InitialCreate
```
>
> An error occurred while calling method 'BuildWeb... | 2017/08/13 | [
"https://Stackoverflow.com/questions/45656647",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3625742/"
] | You need change your class Program
```
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
```
T... | I had the same issue
My solution contained a console application and an api application which contained the dbcontext code.
I had set the start up project to the console application. When I changed the start up project to the api application the error dissapeared. |
46,679,650 | I am writing a code that is supposed to act as a lottery. The lottery numbers available are 1-50, and there are 10 of them. The user is supposed to input one number and the program returns if the user's number matches one of the 10 random lottery numbers. I have gotten all of these parts down, but there is one problem;... | 2017/10/11 | [
"https://Stackoverflow.com/questions/46679650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8470512/"
] | This is what I would do, given your constraints. Rather than check if a number is unique while you are filling the array, just pass the array into the function that chooses the number so it can return a unique value.
I also removed the redundant global array. It could be a source of bugs if you forgot to pass the loca... | You only assign a value to `fillFunc[i]` when `i` is 10, which is an out of bounds access. Move the assignment to inside the loop.
You have other problems too. If you do `continue`, you just leave an entry in the array unset.
You should try adding a lot of output statements to your program so you can more easily unde... |
46,679,650 | I am writing a code that is supposed to act as a lottery. The lottery numbers available are 1-50, and there are 10 of them. The user is supposed to input one number and the program returns if the user's number matches one of the 10 random lottery numbers. I have gotten all of these parts down, but there is one problem;... | 2017/10/11 | [
"https://Stackoverflow.com/questions/46679650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8470512/"
] | To answer your question that you updated in the comments you need to consider a shuffling algorithm.
I will give you an idea of how to do this that is O(n) so you don't have to "loop" thru your current list of numbers and keep checking to see if the new number was already picked...
your lottery max number is 50 so ma... | You only assign a value to `fillFunc[i]` when `i` is 10, which is an out of bounds access. Move the assignment to inside the loop.
You have other problems too. If you do `continue`, you just leave an entry in the array unset.
You should try adding a lot of output statements to your program so you can more easily unde... |
46,679,650 | I am writing a code that is supposed to act as a lottery. The lottery numbers available are 1-50, and there are 10 of them. The user is supposed to input one number and the program returns if the user's number matches one of the 10 random lottery numbers. I have gotten all of these parts down, but there is one problem;... | 2017/10/11 | [
"https://Stackoverflow.com/questions/46679650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8470512/"
] | Because `check()` always return `true`. At the start, the array is filled with zeroes so `check` returns `true` as `win[0]==0` and that remains true forever as nothing changes that value. So in `draw` you always branch to `continue` and never modify anything.
To solve the problem one way could be to shuffle the sequen... | You only assign a value to `fillFunc[i]` when `i` is 10, which is an out of bounds access. Move the assignment to inside the loop.
You have other problems too. If you do `continue`, you just leave an entry in the array unset.
You should try adding a lot of output statements to your program so you can more easily unde... |
43,820,316 | I don't understand how to run c++ code in java using JNI.
I think there's some error in the makefile, I think some lib are missing.
I have this code in java class:
```
private native void getCanny(long mat);
getCanny(mat.getNativeObjAddr());
```
and the Mat2Image.h generated:
```
/* DO NOT EDIT THIS FILE - it is m... | 2017/05/06 | [
"https://Stackoverflow.com/questions/43820316",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7944232/"
] | The missing part was `env: flex`
So, the right yaml file should look like this:
```
runtime: python
threadsafe: yes
env: flex
entrypoint: gunicorn -b :$PORT main:app
runtime_config:
python_version: 3
handlers:
- url: .*
script: main.app
``` | There's two avenues forward here. For the [Flexible](https://cloud.google.com/appengine/docs/flexible/python/runtime) flavor, yes, you need to specify the key as stated.
However, when you don't specify the `env` key, then you default into into the [Standard](https://cloud.google.com/appengine/docs/standard/python3/run... |
1,021,571 | Can I use access 2007 VBA references with impunity (specifically, as far as the base language and old com interfaces are concerned) to develop VBA based solutions for access 2003?
Or is there some new/modified syntax added to the language that I need to be aware of?
Has the object model been enhanced drastically in o... | 2009/06/20 | [
"https://Stackoverflow.com/questions/1021571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51103/"
] | The VBA language itself has not been changed between the recent versions of Microsoft Office (and is probably not going to change in the future either). The version of VBA from Access2000 onwards is VBA6.
The object model of the Office applications however is slighty modified. Microsoft usually only extends the OM by ... | If you are compiling your accdb/mdb to accde/mde, you want to make sure you compile them in the same version as your main applicaiton. I've had some trouble using Access 2003 MDE's with Access 2007 (and obviously vice versa). |
1,021,571 | Can I use access 2007 VBA references with impunity (specifically, as far as the base language and old com interfaces are concerned) to develop VBA based solutions for access 2003?
Or is there some new/modified syntax added to the language that I need to be aware of?
Has the object model been enhanced drastically in o... | 2009/06/20 | [
"https://Stackoverflow.com/questions/1021571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51103/"
] | The VBA language itself has not been changed between the recent versions of Microsoft Office (and is probably not going to change in the future either). The version of VBA from Access2000 onwards is VBA6.
The object model of the Office applications however is slighty modified. Microsoft usually only extends the OM by ... | There is some new properties, methods and objects in Excel 2007.
However, most programs in Excel 2003 works well in Excel 2007
There are few stuff from VBA Excel 2003 that doesn't works at Excel 2007.
I've found 4 issues.
* "Chart.Add" give automation error in Excel 2007 when there are more than 1 cell selected
* ... |
1,021,571 | Can I use access 2007 VBA references with impunity (specifically, as far as the base language and old com interfaces are concerned) to develop VBA based solutions for access 2003?
Or is there some new/modified syntax added to the language that I need to be aware of?
Has the object model been enhanced drastically in o... | 2009/06/20 | [
"https://Stackoverflow.com/questions/1021571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/51103/"
] | There is some new properties, methods and objects in Excel 2007.
However, most programs in Excel 2003 works well in Excel 2007
There are few stuff from VBA Excel 2003 that doesn't works at Excel 2007.
I've found 4 issues.
* "Chart.Add" give automation error in Excel 2007 when there are more than 1 cell selected
* ... | If you are compiling your accdb/mdb to accde/mde, you want to make sure you compile them in the same version as your main applicaiton. I've had some trouble using Access 2003 MDE's with Access 2007 (and obviously vice versa). |
9,019 | A recurring topic in Portuguese seems to be the use of stressed/unstressed pronouns. However, I am not sure the definitions I have seen make sense.
The only explanation I could find was:
>
> The difference between stressed and unstressed pronouns is that
> stressed pronouns can act as the subject of a sentence and a... | 2021/11/01 | [
"https://portuguese.stackexchange.com/questions/9019",
"https://portuguese.stackexchange.com",
"https://portuguese.stackexchange.com/users/10713/"
] | Para mim, Janeiro fora, quer dizer quando já não é janeiro. Ou seja, um vocativo: Janeiro fora! Saia daqui. :)
Que nem: Roberto, fora! Preciso trabalhar.
Do Priberam:
**Expressão usada para afastar ou mandar embora. = ALA,**
"fora", in Dicionário Priberam da Língua Portuguesa [em linha], 2008-2021, <https://diciona... | O provérbio
**Janeiro fora, mais uma hora** é usado para indicar "Janeiro terminado, (os dias duram) mais uma hora".
Também é habitual: **Janeiro fora, mais uma hora e quem bem contar hora e meia há-de achar**.
Naturalmente só funciona no hemisfério Norte...
Embora as explicações anteriores façam sentido, sempre int... |
9,019 | A recurring topic in Portuguese seems to be the use of stressed/unstressed pronouns. However, I am not sure the definitions I have seen make sense.
The only explanation I could find was:
>
> The difference between stressed and unstressed pronouns is that
> stressed pronouns can act as the subject of a sentence and a... | 2021/11/01 | [
"https://portuguese.stackexchange.com/questions/9019",
"https://portuguese.stackexchange.com",
"https://portuguese.stackexchange.com/users/10713/"
] | Eu entendi *janeiro fora* como *pelo janeiro fora*, análogo a *pela noite fora*. Haveria aqui uma elisão do *pelo*, que é até mais comum do que eu pensava (exemplos abaixo). Mais à frente no provérbio há também a elisão de algo como *o dia*. Seria portanto, ***pelo janeiro fora, o dia cresce uma hora*** ou *ao longo de... | O provérbio
**Janeiro fora, mais uma hora** é usado para indicar "Janeiro terminado, (os dias duram) mais uma hora".
Também é habitual: **Janeiro fora, mais uma hora e quem bem contar hora e meia há-de achar**.
Naturalmente só funciona no hemisfério Norte...
Embora as explicações anteriores façam sentido, sempre int... |
8,062 | Tenho dúvida sobre como substituir ***ter*** por ***haver***, embora já tenha visto [esta pergunta](https://portuguese.stackexchange.com/questions/1833/h%C3%A1-muito-a-considerar-haver-vs-ter).
Minha dúvida é assim: eu sei que podemos substituir ***ter*** e ***existir*** por ***haver***. Mas por que não conjugamos o v... | 2020/08/17 | [
"https://portuguese.stackexchange.com/questions/8062",
"https://portuguese.stackexchange.com",
"https://portuguese.stackexchange.com/users/2747/"
] | Conjugamos sim, se não conjugássemos ficava simplesmente "haver".
Mas conjugamos na terceira pessoa porque a construção é diferente:
>
> Amanhã, (nós) temos (...)
>
> Amanhã, (ele\*) há (...)
>
>
>
>
> Depois da palestra, (nós) tivemos um debate.
>
> Depois da palestra, (ele\*) houve um debate.
>
>
>
... | Nos teu exemplos, o verbo *haver* significa ’existir, acontecer’. Vejamos um exemplo mais simples:
>
> **Há** uma árvore no quintal = **Existe** uma árvore no quintal
>
>
> **Há** duas árvores no quintal = **Existem** duas árvores no quintal
>
>
>
Nestes exemplos, *árvore(s)* é o sujeito do verbo *existir*. Por... |
8,062 | Tenho dúvida sobre como substituir ***ter*** por ***haver***, embora já tenha visto [esta pergunta](https://portuguese.stackexchange.com/questions/1833/h%C3%A1-muito-a-considerar-haver-vs-ter).
Minha dúvida é assim: eu sei que podemos substituir ***ter*** e ***existir*** por ***haver***. Mas por que não conjugamos o v... | 2020/08/17 | [
"https://portuguese.stackexchange.com/questions/8062",
"https://portuguese.stackexchange.com",
"https://portuguese.stackexchange.com/users/2747/"
] | Conjugamos sim, se não conjugássemos ficava simplesmente "haver".
Mas conjugamos na terceira pessoa porque a construção é diferente:
>
> Amanhã, (nós) temos (...)
>
> Amanhã, (ele\*) há (...)
>
>
>
>
> Depois da palestra, (nós) tivemos um debate.
>
> Depois da palestra, (ele\*) houve um debate.
>
>
>
... | Tanto o verbo ter quanto o verbo haver são tidos como impessoais. Este usado na linguagem formal e aquele na coloquial
Analisemos o seguinte enunciado, no sentido de obtermos respostas a questionamentos relevantes, como este que se faz presente, ou seja, devemos mesmo usar o verbo ter? Ou o ideal é optarmos pelo uso d... |
8,062 | Tenho dúvida sobre como substituir ***ter*** por ***haver***, embora já tenha visto [esta pergunta](https://portuguese.stackexchange.com/questions/1833/h%C3%A1-muito-a-considerar-haver-vs-ter).
Minha dúvida é assim: eu sei que podemos substituir ***ter*** e ***existir*** por ***haver***. Mas por que não conjugamos o v... | 2020/08/17 | [
"https://portuguese.stackexchange.com/questions/8062",
"https://portuguese.stackexchange.com",
"https://portuguese.stackexchange.com/users/2747/"
] | Tanto o verbo ter quanto o verbo haver são tidos como impessoais. Este usado na linguagem formal e aquele na coloquial
Analisemos o seguinte enunciado, no sentido de obtermos respostas a questionamentos relevantes, como este que se faz presente, ou seja, devemos mesmo usar o verbo ter? Ou o ideal é optarmos pelo uso d... | Nos teu exemplos, o verbo *haver* significa ’existir, acontecer’. Vejamos um exemplo mais simples:
>
> **Há** uma árvore no quintal = **Existe** uma árvore no quintal
>
>
> **Há** duas árvores no quintal = **Existem** duas árvores no quintal
>
>
>
Nestes exemplos, *árvore(s)* é o sujeito do verbo *existir*. Por... |
53,225,017 | I have a chip list, depending on the chip being clicked it will change. If user clicks the "gasoline" chip, template switches to source and destination input, if it clicks on hotel, it turns a tag input. My difficulty is to transform these template depedending on the condition
 demonstrates the principles of point changing with a NXT motor and will work with PF and RCX.
[ is enough to move the lever. If you're lazy to figure out how, you can [buy a kit from a fan](http://www.blokbricks.com/contents/en-us/p104.html?lmd=40799.435417) which will allow you to co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.