qid int64 1 74.7M | question stringlengths 15 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 4 30.2k | response_k stringlengths 11 36.5k |
|---|---|---|---|---|---|
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | You can use a simple formula:
```
=OFFSET(Sheet1!$A$1,(ROW()-2)*5+COLUMN(),0)
```
to let the data flow horizontally in 5 columns.
Then you can select the page size, print the first row on each page, etc.
Simple, neat, no VBA needed. | If you have Adobe Indesign you can place excel file in it and make this layout with ease. |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | If you have a source table called "datatable", put this formula on an extra sheet into every cell (where the printed data should appear):
```
=OFFSET(datatable!$A$2;(ROW()-2)+((COLUMN()-1-MOD(COLUMN()-1;3))/3*4);MOD(COLUMN()-1;3))
```
(*the above is translated from german into english. The tested german formula is:*... | You can use a simple formula:
```
=OFFSET(Sheet1!$A$1,(ROW()-2)*5+COLUMN(),0)
```
to let the data flow horizontally in 5 columns.
Then you can select the page size, print the first row on each page, etc.
Simple, neat, no VBA needed. |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | If you have a source table called "datatable", put this formula on an extra sheet into every cell (where the printed data should appear):
```
=OFFSET(datatable!$A$2;(ROW()-2)+((COLUMN()-1-MOD(COLUMN()-1;3))/3*4);MOD(COLUMN()-1;3))
```
(*the above is translated from german into english. The tested german formula is:*... | Paste in word
Select entire table
Click LAYOUT
Click COLUMNS
Select the number of columns you desire |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | I don't think Excel can do that. A possible work-around is to use Microsoft Word and snake the columns around: [How to snake columns to use fewer pages](http://dmcritchie.mvps.org/excel/snakecol.htm)
>
> Using MS Word to Snake Columns (#msword)
>
>
> This is probably the easiest to use for a one time usage, since I... | If you have Adobe Indesign you can place excel file in it and make this layout with ease. |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | You can use a simple formula:
```
=OFFSET(Sheet1!$A$1,(ROW()-2)*5+COLUMN(),0)
```
to let the data flow horizontally in 5 columns.
Then you can select the page size, print the first row on each page, etc.
Simple, neat, no VBA needed. | Paste in word
Select entire table
Click LAYOUT
Click COLUMNS
Select the number of columns you desire |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | If you have a source table called "datatable", put this formula on an extra sheet into every cell (where the printed data should appear):
```
=OFFSET(datatable!$A$2;(ROW()-2)+((COLUMN()-1-MOD(COLUMN()-1;3))/3*4);MOD(COLUMN()-1;3))
```
(*the above is translated from german into english. The tested german formula is:*... | The easiest way I found was to create a new worksheet and simply recreate the table manually separating into separate columns.
e.g.
A1 `=Sheet1!A1`
B1 `=Sheet1!B1`
C1 `=Sheet1!C1`
D1 blank (for a divider column)
then
E1 `=Sheet1!E51`
F1 `=Sheet1!B51`
G1 `=Sheet1!C51`
And copy this down over 50 rows. This ... |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | You can use a simple formula:
```
=OFFSET(Sheet1!$A$1,(ROW()-2)*5+COLUMN(),0)
```
to let the data flow horizontally in 5 columns.
Then you can select the page size, print the first row on each page, etc.
Simple, neat, no VBA needed. | The easiest way I found was to create a new worksheet and simply recreate the table manually separating into separate columns.
e.g.
A1 `=Sheet1!A1`
B1 `=Sheet1!B1`
C1 `=Sheet1!C1`
D1 blank (for a divider column)
then
E1 `=Sheet1!E51`
F1 `=Sheet1!B51`
G1 `=Sheet1!C51`
And copy this down over 50 rows. This ... |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | Paste in word
Select entire table
Click LAYOUT
Click COLUMNS
Select the number of columns you desire | If you have Adobe Indesign you can place excel file in it and make this layout with ease. |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | The easiest way I found was to create a new worksheet and simply recreate the table manually separating into separate columns.
e.g.
A1 `=Sheet1!A1`
B1 `=Sheet1!B1`
C1 `=Sheet1!C1`
D1 blank (for a divider column)
then
E1 `=Sheet1!E51`
F1 `=Sheet1!B51`
G1 `=Sheet1!C51`
And copy this down over 50 rows. This ... | If you have Adobe Indesign you can place excel file in it and make this layout with ease. |
414,909 | In my excel sheet I have three columns A, B, C that are very thin, but have a lot of lines (>500). Now if I print this out, I get 10 pages that are almost empty. Only at the left border of each page I see this three columns.
What I want to do, is to print that whole sheet in a multicolumn layout. 2 or 3 columns per pa... | 2012/04/20 | [
"https://superuser.com/questions/414909",
"https://superuser.com",
"https://superuser.com/users/37719/"
] | I don't think Excel can do that. A possible work-around is to use Microsoft Word and snake the columns around: [How to snake columns to use fewer pages](http://dmcritchie.mvps.org/excel/snakecol.htm)
>
> Using MS Word to Snake Columns (#msword)
>
>
> This is probably the easiest to use for a one time usage, since I... | The easiest way I found was to create a new worksheet and simply recreate the table manually separating into separate columns.
e.g.
A1 `=Sheet1!A1`
B1 `=Sheet1!B1`
C1 `=Sheet1!C1`
D1 blank (for a divider column)
then
E1 `=Sheet1!E51`
F1 `=Sheet1!B51`
G1 `=Sheet1!C51`
And copy this down over 50 rows. This ... |
9,629,595 | I have 2 textboxes and 1 button , the login page.
The password is crypted into a hash then compared with the hash pass in the database , how can i make on button1 to access admin page but only If you are logged in and also if you access the admin page directly in browser and you are not logged it. Shouldnt work and red... | 2012/03/09 | [
"https://Stackoverflow.com/questions/9629595",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1248318/"
] | Your best bet is to use FormsAuthentication. You don't have to use the Login control, just roll your own. Here's one simple tutorial to get you started: <http://bradkingsley.com/securing-asp-net-pages-forms-authentication-c-and-net-4/>.
I'll try to find something that covers authenticating to a database, or write one... | I think u are using Forms Authentication. There is a property called ReturnUrl u need to assign the url redirect after successful login. take a look at this url
<http://support.microsoft.com/kb/301240> |
28,755,549 | I'm trying to toggle a bootstrap well class with AngularJS.
It works fine before I add a controller class but immediately after, the page just redirects to '#'.
Here is my code before a controller is added.
```
<div id="advanced-search">
<h4><a ng-click="toggle=!toggle" href="">Advanced</a></h4>
</div>
... | 2015/02/27 | [
"https://Stackoverflow.com/questions/28755549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2633311/"
] | Try adding the `format` param to the `form_for`. You're requesting an `html` response by default and your controller doesn't know how to answer that. Requesting a `js` response should fix it.
```
= form_for(@artist, format: :js, authenticity_token: true) do |f|
``` | Just encountered same error and after few hours of debugging found out, that `rails ujs` was required, but not loaded properly.
If you're using `webpack`, make sure to `start` `ujs`. In my case I forgot the `start();` option, i.e.
```
import Rails from '@rails/ujs';
Rails.start();
```
or
```
require("@rails/ujs").... |
42,237 | I'm following these two lectures on CBOW and skip-gram word2vec models. The first is lec 12 and the next lec 13 of a deep learning series
<https://www.youtube.com/watch?v=syWB-YMYZvI>
<https://www.youtube.com/watch?v=GMCwS7tS5ZM&t=548s>
Up to about 17 mins into the second video the lecturer says that the approach i... | 2018/12/06 | [
"https://datascience.stackexchange.com/questions/42237",
"https://datascience.stackexchange.com",
"https://datascience.stackexchange.com/users/40659/"
] | The CBOW approach is unsupervised because the network learns the distribution of word co-occurrences around each word, and this doesn't require labelling or additional input, just sequences of words.
As [Mikolov et al](https://papers.nips.cc/paper/5021-distributed-representations-of-words-and-phrases-and-their-compos... | It is considered "unsupervised" since labels do not have to be created manually.
Labels are generated automatically based on how words are used in real world. |
61,490,334 | when i check the first checkBox a "hello " string is assigned to the label text then i check the second checkBox to add the string "world" so label's text becomes "hello world" , the problem if i unchecked the second checkBox i cant remove the string "world" , here is the code :
```
public void checkBox1_Checked(){
... | 2020/04/28 | [
"https://Stackoverflow.com/questions/61490334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13267581/"
] | The Helm chart `stable/mongodb-replicaset` deploys also 2 headless services:
1. `<release name>-mongodb-replicaset`
2. `<release name>-mongodb-replicaset-client`
The DNS record of `<release name>-mongodb-replicaset` returns the address of all the replicas, so, in order to connect to the replicaset, the connection str... | The drivers will discover all nodes of a replica set automatically. If you are only changing the total number but the first one always has the same address, you can specify just the first node's address in the connection string.
Depending on the driver this may or may not connect to the replica set (as opposed directl... |
42,534,930 | I am would like to configure my Angular 2 App from external json file.
In my **main.ts** I load the **config.json**
```
getHttp().get('/config.json')
.map(response => response.json();)
.subscribe(
data => {
let clientConf: ClientConfig = data;
// here I want to... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5215278/"
] | Here is my solution:
```
....
.subscribe(
data => {
let clientConf: ClientConfig = data;
// here I want to pass clientConf to AppModule
platformBrowserDynamic(
[{ provide: ClientConfig, useValue: clientConf }]
).bootstrapModule(AppModule);
});... | If you are wanting to get data before the UI is loaded, you could try using route guards. They will allow you to prevent the user navigating to a route in your application until a condition is true.
You can return an observable from a route guard, allowing for async guarding.
Further reading about [Angular route gua... |
42,534,930 | I am would like to configure my Angular 2 App from external json file.
In my **main.ts** I load the **config.json**
```
getHttp().get('/config.json')
.map(response => response.json();)
.subscribe(
data => {
let clientConf: ClientConfig = data;
// here I want to... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5215278/"
] | I had trouble to follow the accepted answer by @tomas-marik which I think was otherwise good. Below is my adaptations in main.ts for use in Angular 8:
```
fetch('/assets/config.json').then(async res => {
var clientConf = <ClientConfig>await res.json();
platformBrowserDynamic(
[{ provide: ClientConfig, useValu... | If you are wanting to get data before the UI is loaded, you could try using route guards. They will allow you to prevent the user navigating to a route in your application until a condition is true.
You can return an observable from a route guard, allowing for async guarding.
Further reading about [Angular route gua... |
42,534,930 | I am would like to configure my Angular 2 App from external json file.
In my **main.ts** I load the **config.json**
```
getHttp().get('/config.json')
.map(response => response.json();)
.subscribe(
data => {
let clientConf: ClientConfig = data;
// here I want to... | 2017/03/01 | [
"https://Stackoverflow.com/questions/42534930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5215278/"
] | Here is my solution:
```
....
.subscribe(
data => {
let clientConf: ClientConfig = data;
// here I want to pass clientConf to AppModule
platformBrowserDynamic(
[{ provide: ClientConfig, useValue: clientConf }]
).bootstrapModule(AppModule);
});... | I had trouble to follow the accepted answer by @tomas-marik which I think was otherwise good. Below is my adaptations in main.ts for use in Angular 8:
```
fetch('/assets/config.json').then(async res => {
var clientConf = <ClientConfig>await res.json();
platformBrowserDynamic(
[{ provide: ClientConfig, useValu... |
514,500 | So I'm sitting here debating whether or not to just `apt-get install` Apache2 and MySQL or spend a day compiling them from source. My main motivation for compiling would be to improve performance. Another motivation would be to circumvent the "Debian way," but I guess I can live with it if I must.
My websites are mode... | 2013/06/09 | [
"https://serverfault.com/questions/514500",
"https://serverfault.com",
"https://serverfault.com/users/13941/"
] | No, I have not noticed any appreciable performance gains that way. Much more performance is gained the usual way: profiling, refactoring for speed, caching and the other usual tricks. | Most people here will advise you to stick with the packages supplied by your distro. This is because you get the benefit of patches/bug fixes and compatibility/dependency management.
If you roll your own then you have to take responsibility for all of these issues and you loose herd immunity. We see lots of questions ... |
514,500 | So I'm sitting here debating whether or not to just `apt-get install` Apache2 and MySQL or spend a day compiling them from source. My main motivation for compiling would be to improve performance. Another motivation would be to circumvent the "Debian way," but I guess I can live with it if I must.
My websites are mode... | 2013/06/09 | [
"https://serverfault.com/questions/514500",
"https://serverfault.com",
"https://serverfault.com/users/13941/"
] | No, I have not noticed any appreciable performance gains that way. Much more performance is gained the usual way: profiling, refactoring for speed, caching and the other usual tricks. | Unless you have some very specific need, don't bother.
Don't underestimate what you get for free using the OS packages:
* No need to monitor the upstream community for security notices
* No need to rebuild your stack whenever there's an update
* No need to maintain your own build environment ... because you'll need t... |
514,500 | So I'm sitting here debating whether or not to just `apt-get install` Apache2 and MySQL or spend a day compiling them from source. My main motivation for compiling would be to improve performance. Another motivation would be to circumvent the "Debian way," but I guess I can live with it if I must.
My websites are mode... | 2013/06/09 | [
"https://serverfault.com/questions/514500",
"https://serverfault.com",
"https://serverfault.com/users/13941/"
] | No, I have not noticed any appreciable performance gains that way. Much more performance is gained the usual way: profiling, refactoring for speed, caching and the other usual tricks. | Should you roll your own?
=========================

The usual answer is: **NO**.
Where do performance gains come from?
=====================================
* better tuning (see [Dennis Kaarsemaker](https://serverfault.com/a/514504/140016)'s and [... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | All of the other answers are great and very true. Here is yet another reason why I have found it helpful.
Using the getters and setters on an object is the largest part of following the [JavaBean convention](http://en.wikipedia.org/wiki/JavaBeans). Although following it to the letter is often difficult and overkill, a... | I use regularly getter and setter but apparently we are not doing it right. For example: (obtained from <http://java.dzone.com/articles/java-properties-without> )
with getter & setter (way long)
```
public class Teacher {
@Id @Column(length=5) @Required
private String id;
@Column(length=40) @Required
private ... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | All of the answers above are excellent, but let me add one more point.
**You do *not* want all of your private variables to have public getters and setters.**
Your getters and setters refer to externally visible state. In some cases, what looks like a single object as published in your public methods corresponds to m... | I use regularly getter and setter but apparently we are not doing it right. For example: (obtained from <http://java.dzone.com/articles/java-properties-without> )
with getter & setter (way long)
```
public class Teacher {
@Id @Column(length=5) @Required
private String id;
@Column(length=40) @Required
private ... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Encapsulation.
>
> Hiding internal state and requiring all interaction to be performed
> through an object's methods is known as *data encapsulation* — a
> fundamental principle of object-oriented programming.
>
>
>
See also:
* [What Is an Object](http://download.oracle.com/javase/tutorial/java/concepts/object... | I was always told that one of the main reasons is to try and plan for future changes. It may start out as just
```
public int getInt() { return _someInt;}
```
but may end up as
```
public int getInt() {
// do some processing
return _someInt;
```
}
and that would save you from having to make massive amounts... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | @mre answer is excellent and your question is fundamental. To summarize : you put the fields of an object private to gain control over the way it will be used by other objects. Your object uses setter to:
* restrict and validate data passed to the setter
* hide its inner data structure (other object are interested by ... | I use regularly getter and setter but apparently we are not doing it right. For example: (obtained from <http://java.dzone.com/articles/java-properties-without> )
with getter & setter (way long)
```
public class Teacher {
@Id @Column(length=5) @Required
private String id;
@Column(length=40) @Required
private ... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Usually a setter allows you to keep restrictions on the type of values being assigned to a private member. So perhaps negative values are not allowed, etc.
A getter, since you've imposed access to the member by making it private for the reasons above, allows consumers access to the value of that member. | I use regularly getter and setter but apparently we are not doing it right. For example: (obtained from <http://java.dzone.com/articles/java-properties-without> )
with getter & setter (way long)
```
public class Teacher {
@Id @Column(length=5) @Required
private String id;
@Column(length=40) @Required
private ... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | @mre answer is excellent and your question is fundamental. To summarize : you put the fields of an object private to gain control over the way it will be used by other objects. Your object uses setter to:
* restrict and validate data passed to the setter
* hide its inner data structure (other object are interested by ... | All of the answers above are excellent, but let me add one more point.
**You do *not* want all of your private variables to have public getters and setters.**
Your getters and setters refer to externally visible state. In some cases, what looks like a single object as published in your public methods corresponds to m... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | @mre answer is excellent and your question is fundamental. To summarize : you put the fields of an object private to gain control over the way it will be used by other objects. Your object uses setter to:
* restrict and validate data passed to the setter
* hide its inner data structure (other object are interested by ... | All of the other answers are great and very true. Here is yet another reason why I have found it helpful.
Using the getters and setters on an object is the largest part of following the [JavaBean convention](http://en.wikipedia.org/wiki/JavaBeans). Although following it to the letter is often difficult and overkill, a... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Usually a setter allows you to keep restrictions on the type of values being assigned to a private member. So perhaps negative values are not allowed, etc.
A getter, since you've imposed access to the member by making it private for the reasons above, allows consumers access to the value of that member. | All of the other answers are great and very true. Here is yet another reason why I have found it helpful.
Using the getters and setters on an object is the largest part of following the [JavaBean convention](http://en.wikipedia.org/wiki/JavaBeans). Although following it to the letter is often difficult and overkill, a... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | All of the answers above are excellent, but let me add one more point.
**You do *not* want all of your private variables to have public getters and setters.**
Your getters and setters refer to externally visible state. In some cases, what looks like a single object as published in your public methods corresponds to m... | I was always told that one of the main reasons is to try and plan for future changes. It may start out as just
```
public int getInt() { return _someInt;}
```
but may end up as
```
public int getInt() {
// do some processing
return _someInt;
```
}
and that would save you from having to make massive amounts... |
7,208,008 | I am getting a `Uncaught Syntax Error: Unexpected Identifier` in the Chrome Console Window. The lines are below, I have just posted a snippet of the function, the entire function can be found on [jsFiddle](http://jsfiddle.net/j9T2J/).
```
var shipping_price = $(".shipping_price").html();
shipping_price = shipping_pric... | 2011/08/26 | [
"https://Stackoverflow.com/questions/7208008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | All of the answers above are excellent, but let me add one more point.
**You do *not* want all of your private variables to have public getters and setters.**
Your getters and setters refer to externally visible state. In some cases, what looks like a single object as published in your public methods corresponds to m... | All of the other answers are great and very true. Here is yet another reason why I have found it helpful.
Using the getters and setters on an object is the largest part of following the [JavaBean convention](http://en.wikipedia.org/wiki/JavaBeans). Although following it to the letter is often difficult and overkill, a... |
33,750,670 | I found a weird JS behavior :
```
var myArray = [ [1] , [2] , [3] ];
var myArrayCopy = [];
myArrayCopy.push( myArray[1] );
alert( myArrayCopy ); // 2, as expected.
myArrayCopy[0][0] = 'foo';
alert( myArrayCopy ); // 'foo', as expected.
alert( myArray ); // 1, foo, 3 = WTF ? :)
```
See the [Demo](http://jsfi... | 2015/11/17 | [
"https://Stackoverflow.com/questions/33750670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712701/"
] | Aliasing.
You are putting in `myArrayCopy` a reference to an existent object (an array) that is contained in `myArray`. Because of that, when you modify that array, you are modifying the actual object referred from both the above mentioned arrays.
Please, note that when you pass around objects in JavaScript they are ... | The value of `myArray[1]` is an array (`[2]`). When you push that into `myArrayCopy` in `myArrayCopy.push( myArray[1] );`, you push the array, not it's contents (`[2]` and not `2`).
When you later mutate this array (`myArrayCopy[0][0] = 'foo';`), it obviously has an effect everywhere this array is used. |
33,750,670 | I found a weird JS behavior :
```
var myArray = [ [1] , [2] , [3] ];
var myArrayCopy = [];
myArrayCopy.push( myArray[1] );
alert( myArrayCopy ); // 2, as expected.
myArrayCopy[0][0] = 'foo';
alert( myArrayCopy ); // 'foo', as expected.
alert( myArray ); // 1, foo, 3 = WTF ? :)
```
See the [Demo](http://jsfi... | 2015/11/17 | [
"https://Stackoverflow.com/questions/33750670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712701/"
] | Aliasing.
You are putting in `myArrayCopy` a reference to an existent object (an array) that is contained in `myArray`. Because of that, when you modify that array, you are modifying the actual object referred from both the above mentioned arrays.
Please, note that when you pass around objects in JavaScript they are ... | Yes, That is make sense action, because myArray[1](https://i.stack.imgur.com/v9buJ.png) And myArrayCopy[0] has same memory address. You can check below debugging capture
[](https://i.stack.imgur.com/v9buJ.png)
After passing through line number 9, tho... |
33,750,670 | I found a weird JS behavior :
```
var myArray = [ [1] , [2] , [3] ];
var myArrayCopy = [];
myArrayCopy.push( myArray[1] );
alert( myArrayCopy ); // 2, as expected.
myArrayCopy[0][0] = 'foo';
alert( myArrayCopy ); // 'foo', as expected.
alert( myArray ); // 1, foo, 3 = WTF ? :)
```
See the [Demo](http://jsfi... | 2015/11/17 | [
"https://Stackoverflow.com/questions/33750670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712701/"
] | Aliasing.
You are putting in `myArrayCopy` a reference to an existent object (an array) that is contained in `myArray`. Because of that, when you modify that array, you are modifying the actual object referred from both the above mentioned arrays.
Please, note that when you pass around objects in JavaScript they are ... | This is perfectly right.
Since arrays acts as an object, it stores the memory address
instead of storing the values itself.
```
var myArray = [ [1] , [2] , [3] ];
```
`myArray` will store the address of the Array created (say `addr-1`).
Since the elements of the array is itself an array, it will now have three ad... |
33,750,670 | I found a weird JS behavior :
```
var myArray = [ [1] , [2] , [3] ];
var myArrayCopy = [];
myArrayCopy.push( myArray[1] );
alert( myArrayCopy ); // 2, as expected.
myArrayCopy[0][0] = 'foo';
alert( myArrayCopy ); // 'foo', as expected.
alert( myArray ); // 1, foo, 3 = WTF ? :)
```
See the [Demo](http://jsfi... | 2015/11/17 | [
"https://Stackoverflow.com/questions/33750670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712701/"
] | The value of `myArray[1]` is an array (`[2]`). When you push that into `myArrayCopy` in `myArrayCopy.push( myArray[1] );`, you push the array, not it's contents (`[2]` and not `2`).
When you later mutate this array (`myArrayCopy[0][0] = 'foo';`), it obviously has an effect everywhere this array is used. | Yes, That is make sense action, because myArray[1](https://i.stack.imgur.com/v9buJ.png) And myArrayCopy[0] has same memory address. You can check below debugging capture
[](https://i.stack.imgur.com/v9buJ.png)
After passing through line number 9, tho... |
33,750,670 | I found a weird JS behavior :
```
var myArray = [ [1] , [2] , [3] ];
var myArrayCopy = [];
myArrayCopy.push( myArray[1] );
alert( myArrayCopy ); // 2, as expected.
myArrayCopy[0][0] = 'foo';
alert( myArrayCopy ); // 'foo', as expected.
alert( myArray ); // 1, foo, 3 = WTF ? :)
```
See the [Demo](http://jsfi... | 2015/11/17 | [
"https://Stackoverflow.com/questions/33750670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712701/"
] | The value of `myArray[1]` is an array (`[2]`). When you push that into `myArrayCopy` in `myArrayCopy.push( myArray[1] );`, you push the array, not it's contents (`[2]` and not `2`).
When you later mutate this array (`myArrayCopy[0][0] = 'foo';`), it obviously has an effect everywhere this array is used. | This is perfectly right.
Since arrays acts as an object, it stores the memory address
instead of storing the values itself.
```
var myArray = [ [1] , [2] , [3] ];
```
`myArray` will store the address of the Array created (say `addr-1`).
Since the elements of the array is itself an array, it will now have three ad... |
33,750,670 | I found a weird JS behavior :
```
var myArray = [ [1] , [2] , [3] ];
var myArrayCopy = [];
myArrayCopy.push( myArray[1] );
alert( myArrayCopy ); // 2, as expected.
myArrayCopy[0][0] = 'foo';
alert( myArrayCopy ); // 'foo', as expected.
alert( myArray ); // 1, foo, 3 = WTF ? :)
```
See the [Demo](http://jsfi... | 2015/11/17 | [
"https://Stackoverflow.com/questions/33750670",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2712701/"
] | Yes, That is make sense action, because myArray[1](https://i.stack.imgur.com/v9buJ.png) And myArrayCopy[0] has same memory address. You can check below debugging capture
[](https://i.stack.imgur.com/v9buJ.png)
After passing through line number 9, tho... | This is perfectly right.
Since arrays acts as an object, it stores the memory address
instead of storing the values itself.
```
var myArray = [ [1] , [2] , [3] ];
```
`myArray` will store the address of the Array created (say `addr-1`).
Since the elements of the array is itself an array, it will now have three ad... |
5,507,692 | I would like to know how to call fgets from assembly code.
I read these questions which are exactly the same as the this one: [How to call fgets in x86 assembly?](https://stackoverflow.com/questions/3689919/how-to-call-fgets-in-x86-assembly)
and this one: [How to use c library function fgets in assembly language?](http... | 2011/03/31 | [
"https://Stackoverflow.com/questions/5507692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/686702/"
] | Yes, name is at esp+17. You'd be wise to initialize it. Arguments in the cdecl calling conventions are passed right-to-left with the right-most deepest on the stack. The `__imp___iob` is exported from the CRT, you'll find it back in the stdio.h header file. Search for stdin. The \_\_imp prefix is a Microsoft convention... | >
> (i) where is my local variable `name` located? in ESP+17 ?
>
>
>
Yes - actually 'name' decays to a pointer when you make the call - your entire array is on the stack. The first byte is at ESP+17, the rest of the bytes follow. Note that the code is using `leal` to get the *address* of that first byte of the arr... |
13,303,219 | Currently, My app is using a large amount of memory after loading textures (~200Mb)
I am loading the textures into a char buffer, passing it along to OpenGL and then killing the buffer.
It would seem that this memory is used by OpenGL, which is doing its own texture management internally.
What measures could I take ... | 2012/11/09 | [
"https://Stackoverflow.com/questions/13303219",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/325016/"
] | It is returning all the results. You're not printing them properly.
Move the html,body,table tags outside the `while` loop.
Change the loop to:
```
while ($row = mysql_fetch_array($sql)) {
$puid2 = $row['PlayerUID'];
$plnm = $row['PlayerName'];
echo "<tr><td>".$puid."</td>";
echo "<td>".$plnm."</td>... | print below code in **loop**
```
<td><?php echo "$puid"; ?></td>
<td><?php echo "$plnm"; ?></td>
```
you print only one time , so overwrite value. |
8,269,096 | I'm new to Python and trying to write a program with tkinter.
Why is the Hello-function below executed? As I understand it, the callback would only be executed when the button is pressed? I am very confused...
```
>>> def Hello():
print("Hi there!")
>>> hi=Button(frame,text="Hello",command=Hello())
Hi there!
... | 2011/11/25 | [
"https://Stackoverflow.com/questions/8269096",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1050233/"
] | It is called while the parameters for `Button` are being assigned:
```
command=Hello()
```
If you want to pass the function (not it's returned value) you should instead:
```
command=Hello
```
in general `function_name` is a function object, `function_name()` is whatever the function returns. See if this helps fur... | You can also use a lambda expression as the command argument:
```
import tkinter as tk
def hello():
print("Hi there!")
main = tk.Tk()
hi = tk.Button(main,text="Hello",command=lambda: hello()).pack()
main.mainloop()
``` |
20,496,721 | I use asp.net cultures on my site to display the site in different languages, namely dutch(nl) and french(fr). The site has a button to change the site to another language by adding ?lang=nl to the url of the site. When you change the language a cookie is saved so the language stays for the next time you visit.
For so... | 2013/12/10 | [
"https://Stackoverflow.com/questions/20496721",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/743016/"
] | I think your mistake is in how your handling cookies and in the sequence of events.
* Step 1: Try getting a culture name from the cookie. If it exists, remember it.
* Step 2: Try getting a culture name from the query string. If it exists, remember it.
* Step 3: Set the current culture based on the previous.
* Step 4: ... | As your code is working on the local instead of deployed server, so you can check the following things as well
1. Check whether you assigned paths of your culture files relatively .
2. Then initialize culture to load the appropriate culture information in the cookie.
Hope this helps,
Thanks. |
58,732,031 | Excuses-me,
Here is my code to create a mapper (transforming a string containing ids to a List) :
```
CreateMap<VisualState, VisualStateDto>()
.ForMember(dest => dest.JsonElementIdList,
m => m.MapFrom(src => src.JsonElementIdList
.Sp... | 2019/11/06 | [
"https://Stackoverflow.com/questions/58732031",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7742377/"
] | Suppose you have stored a logged in state true when user logged successfully.for example :
```
fetch().then(res => ...
localstorage.setItem("logged", true)
)
```
So now, in navbar code:
```
{localstorage.getItem("logged") === true ? <Link>logout</Link> : <Link>login</Link> }
``` | **TLDR:** You need to use a local state or props in order to get your component to re-render. Simply by calling `localStorage` will not trigger automatic re-render.
`react` components are re-rendered whenever there is a state change or if it receives new props. For your purposes, I recommend using `react-redux` to ach... |
15,722,656 | In VB.net I have been learning through Murach's Visual Basic 2010. When learning how to deal with time and strings I came across a problem with timespan.
I need to take 2 dates and find the number of days between them.
so I declared my variables.
```
Dim currentDay As Date
Dim futureDate As Date
Dim timespan As Tim... | 2013/03/30 | [
"https://Stackoverflow.com/questions/15722656",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2227693/"
] | The problem is that at the time you are setting the timespan value `currentDay` and `futureDate` have not been initialized and have the default value for a `DateTime`. The subtraction of these will always be a 0 `TimeSpan`.
Set `timespan` *after* you have set these two dates.
```
Dim currentDay As Date
Dim futureDate... | As you need to check if the user has entered a valid date, you can use DateTime.TryParse to determine that:
```
Dim currentDay As Date = DateTime.Now
Dim futureDate As Date
Dim strMsgText As String
Dim daysUntilDue As Integer
currentDay = DateTime.Now
Dim ci As New Globalization.CultureInfo("en-US")
' check if a pa... |
38,623 | I've been reading some EEG papers where the authors use a bandpass filter at, say, 1Hz and 30Hz. I've also seen some accelerometer papers where they bandpass at 0.5Hz and 10Hz
What is the difference between a bandpass (1Hz, 30Hz) and just a regular low pass filter at 30Hz?
It seems like they're trying to remove reall... | 2017/03/25 | [
"https://dsp.stackexchange.com/questions/38623",
"https://dsp.stackexchange.com",
"https://dsp.stackexchange.com/users/16842/"
] | You may have to read on SS (spectrum sensing) techniques. There is a famous method called "Energy detection".
Else
If the noise is WGN, then its PSD is constant. So at a particular frequency of the spectrum, if the PSD is around that of noise, then it's noise, else it's signal. | Can we use [Otsu's method](https://en.wikipedia.org/wiki/Otsu%27s_method) here ?
I have used it in image processing to distinguish the background of an image from the foreground. Now, I and Pascal have the same problem for audio signals.
In particular, should we
1. Look at the audio frequency spectrum and find a th... |
38,623 | I've been reading some EEG papers where the authors use a bandpass filter at, say, 1Hz and 30Hz. I've also seen some accelerometer papers where they bandpass at 0.5Hz and 10Hz
What is the difference between a bandpass (1Hz, 30Hz) and just a regular low pass filter at 30Hz?
It seems like they're trying to remove reall... | 2017/03/25 | [
"https://dsp.stackexchange.com/questions/38623",
"https://dsp.stackexchange.com",
"https://dsp.stackexchange.com/users/16842/"
] | You may have to read on SS (spectrum sensing) techniques. There is a famous method called "Energy detection".
Else
If the noise is WGN, then its PSD is constant. So at a particular frequency of the spectrum, if the PSD is around that of noise, then it's noise, else it's signal. | this is John BG [jgb2012@sky.com](http://jgb2012@sky.com)
1.- Calibrate first the noise in absence of signals, and then look for signals.
In the lab it's easy, on the field, it may be easy, or complicated, depending upon different factors.
2.- So with your code, you can first measure the noise, set a threshold, and ... |
38,623 | I've been reading some EEG papers where the authors use a bandpass filter at, say, 1Hz and 30Hz. I've also seen some accelerometer papers where they bandpass at 0.5Hz and 10Hz
What is the difference between a bandpass (1Hz, 30Hz) and just a regular low pass filter at 30Hz?
It seems like they're trying to remove reall... | 2017/03/25 | [
"https://dsp.stackexchange.com/questions/38623",
"https://dsp.stackexchange.com",
"https://dsp.stackexchange.com/users/16842/"
] | Can we use [Otsu's method](https://en.wikipedia.org/wiki/Otsu%27s_method) here ?
I have used it in image processing to distinguish the background of an image from the foreground. Now, I and Pascal have the same problem for audio signals.
In particular, should we
1. Look at the audio frequency spectrum and find a th... | this is John BG [jgb2012@sky.com](http://jgb2012@sky.com)
1.- Calibrate first the noise in absence of signals, and then look for signals.
In the lab it's easy, on the field, it may be easy, or complicated, depending upon different factors.
2.- So with your code, you can first measure the noise, set a threshold, and ... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | A proof following from the Pythagorean Theorem:
**Claim**: If two lines are perpendicular, then their slopes are negative reciprocals of one another.
**Proof**: Assume WLOG that two nonvertical lines with slopes $m\_1$ and $m\_2$ intersect at the origin and form a right angle. Construct the line $x=1$. Then we have a... | We could approach defining perpendicularity by the notion of minimizing the distance from a point $P$ to a line $l$.
Then we will have an optimization problem with a constraint.
If $P=(x\_0,y\_0)$ and if $l$ is given by $y=mx+b$, then we must minimize $f(x,y)=(x-x\_0)^2+(y-y\_0)^2$ subject to the constraint $mx-y+b=0... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | A proof following from the Pythagorean Theorem:
**Claim**: If two lines are perpendicular, then their slopes are negative reciprocals of one another.
**Proof**: Assume WLOG that two nonvertical lines with slopes $m\_1$ and $m\_2$ intersect at the origin and form a right angle. Construct the line $x=1$. Then we have a... | I find the following approach straightforward geometrically — it's more a demonstration than a formal proof, but it explains the intuition well enough. It's similar to Dag Oskar Madsen's answer but isn't based on a congruence argument, which I think makes it easier for students to follow. (Besides, on some syllabuses t... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | If we have two lines $l$ and $l'$ with slopes $m>0$ and $m'= - \tfrac 1 m$ respectively, then we can always make the following diagram
[](https://i.stack.imgur.com/CCjGx.png)
where the blue line is parallel to the $x$-axis and the green lines are par... | A proof following from the Pythagorean Theorem:
**Claim**: If two lines are perpendicular, then their slopes are negative reciprocals of one another.
**Proof**: Assume WLOG that two nonvertical lines with slopes $m\_1$ and $m\_2$ intersect at the origin and form a right angle. Construct the line $x=1$. Then we have a... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | One approach is to start with the fact that a 90-degree rotation results from a reflection across the $x$-axis followed by a reflection across the line $y=x$. (In general, reflecting across two intersecting lines results in a rotation through an angle $2\theta$ where $\theta$ is the angle between the two lines.)
If y... | We could approach defining perpendicularity by the notion of minimizing the distance from a point $P$ to a line $l$.
Then we will have an optimization problem with a constraint.
If $P=(x\_0,y\_0)$ and if $l$ is given by $y=mx+b$, then we must minimize $f(x,y)=(x-x\_0)^2+(y-y\_0)^2$ subject to the constraint $mx-y+b=0... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | I find the following approach straightforward geometrically — it's more a demonstration than a formal proof, but it explains the intuition well enough. It's similar to Dag Oskar Madsen's answer but isn't based on a congruence argument, which I think makes it easier for students to follow. (Besides, on some syllabuses t... | We could approach defining perpendicularity by the notion of minimizing the distance from a point $P$ to a line $l$.
Then we will have an optimization problem with a constraint.
If $P=(x\_0,y\_0)$ and if $l$ is given by $y=mx+b$, then we must minimize $f(x,y)=(x-x\_0)^2+(y-y\_0)^2$ subject to the constraint $mx-y+b=0... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | A proof following from the Pythagorean Theorem:
**Claim**: If two lines are perpendicular, then their slopes are negative reciprocals of one another.
**Proof**: Assume WLOG that two nonvertical lines with slopes $m\_1$ and $m\_2$ intersect at the origin and form a right angle. Construct the line $x=1$. Then we have a... | One approach is to start with the fact that a 90-degree rotation results from a reflection across the $x$-axis followed by a reflection across the line $y=x$. (In general, reflecting across two intersecting lines results in a rotation through an angle $2\theta$ where $\theta$ is the angle between the two lines.)
If y... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | If we have two lines $l$ and $l'$ with slopes $m>0$ and $m'= - \tfrac 1 m$ respectively, then we can always make the following diagram
[](https://i.stack.imgur.com/CCjGx.png)
where the blue line is parallel to the $x$-axis and the green lines are par... | One approach is to start with the fact that a 90-degree rotation results from a reflection across the $x$-axis followed by a reflection across the line $y=x$. (In general, reflecting across two intersecting lines results in a rotation through an angle $2\theta$ where $\theta$ is the angle between the two lines.)
If y... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | A proof following from the Pythagorean Theorem:
**Claim**: If two lines are perpendicular, then their slopes are negative reciprocals of one another.
**Proof**: Assume WLOG that two nonvertical lines with slopes $m\_1$ and $m\_2$ intersect at the origin and form a right angle. Construct the line $x=1$. Then we have a... | I am interpreting the question as:
*negative reciprocal slopes* $\implies$ *perpendicular*
(rather than the converse).
---
(1) If they understand the dot product already,
as the projection of one vector on another,
then the following might convince.
Suppose you have two lines with negative reciprocal slopes.
They ar... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | I find the following approach straightforward geometrically — it's more a demonstration than a formal proof, but it explains the intuition well enough. It's similar to Dag Oskar Madsen's answer but isn't based on a congruence argument, which I think makes it easier for students to follow. (Besides, on some syllabuses t... | I am interpreting the question as:
*negative reciprocal slopes* $\implies$ *perpendicular*
(rather than the converse).
---
(1) If they understand the dot product already,
as the projection of one vector on another,
then the following might convince.
Suppose you have two lines with negative reciprocal slopes.
They ar... |
9,689 | For my purposes, I am interested mostly in a medium-sized liberal art college setting. My students have mostly seen this before, but it is not something they understand. When discussing parallel lines, I have them try to find a point of intersection, fail to find such a point, and conclude that the lines never meet, wh... | 2015/09/30 | [
"https://matheducators.stackexchange.com/questions/9689",
"https://matheducators.stackexchange.com",
"https://matheducators.stackexchange.com/users/98/"
] | One approach is to start with the fact that a 90-degree rotation results from a reflection across the $x$-axis followed by a reflection across the line $y=x$. (In general, reflecting across two intersecting lines results in a rotation through an angle $2\theta$ where $\theta$ is the angle between the two lines.)
If y... | I am interpreting the question as:
*negative reciprocal slopes* $\implies$ *perpendicular*
(rather than the converse).
---
(1) If they understand the dot product already,
as the projection of one vector on another,
then the following might convince.
Suppose you have two lines with negative reciprocal slopes.
They ar... |
28,725,756 | Hi folks this is driving me crazy so please help.
I am trying to create my first mobile app using Jquery Mobile.
I have 4 pages in my script i.e.
```
<div data-role="page" id="home">...Page code...</div>
<div data-role="page" id="services">...Page code...</div>
<div data-role="page" id="videos">...Page code...</div>... | 2015/02/25 | [
"https://Stackoverflow.com/questions/28725756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2481997/"
] | **There is no way to get `OwinContext.Get<T>` to resolve things from Autofac.** If you dive into Microsoft.Owin.OwinContext.Get in Reflector, you'll see it's backed entirely by a dictionary of things you register with an environment. It's not dynamic and there's no way (without creating your own `IOwinContext` implemen... | If you have WebAPI in your project, you can simulate a http request like this
```
var dependencyScope = new AutofacWebApiDependencyScope(owinContext.GetAutofacLifetimeScope());
var myService = dependencyScope.GetService(typeof(MyService));
``` |
28,725,756 | Hi folks this is driving me crazy so please help.
I am trying to create my first mobile app using Jquery Mobile.
I have 4 pages in my script i.e.
```
<div data-role="page" id="home">...Page code...</div>
<div data-role="page" id="services">...Page code...</div>
<div data-role="page" id="videos">...Page code...</div>... | 2015/02/25 | [
"https://Stackoverflow.com/questions/28725756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2481997/"
] | The `IOwinContext.Get` uses the `Environment` dictionary, resolving objects registered directly with Owin, it does not take into account Autofac container.
I managed to do it by accessing the Autofac OwinLifetimeScope in the Environment property and using the scope to resolve the service.
You can access the LifetimeS... | If you have WebAPI in your project, you can simulate a http request like this
```
var dependencyScope = new AutofacWebApiDependencyScope(owinContext.GetAutofacLifetimeScope());
var myService = dependencyScope.GetService(typeof(MyService));
``` |
5,984,640 | i have written alot of description but i figured making a picture will make my problem clearer than words

i have written this to map but it throws an exception
```
Mapper.CreateMap<GenericStory, GenericStoryDisplayViewModel>().ForMember(
gs => g... | 2011/05/12 | [
"https://Stackoverflow.com/questions/5984640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/386941/"
] | I thought with AutoMapper you had to map sub-types as well, regardless of if they were contained in another mapped type?
So in this case you'd add
```
Mapper.CreateMap<GenericStory, StoryBodyViewlModel>();
```
and then your current mapping.
EDIT:
I've updated my test case to even match your images and it's funct... | You can use reverse mapping for configure unflattening. Look at the official [doc](http://docs.automapper.org/en/stable/Reverse-Mapping-and-Unflattening.html#reverse-mapping-and-unflattening) |
41,110,454 | New MacBook Pro's with Touch Bar, in macOS Sierra, icons for the system control strip, where would they be located?
[](https://i.stack.imgur.com/2qr0d.png)
I looked under HD/System/Library/CoreServices, not there..... | 2016/12/12 | [
"https://Stackoverflow.com/questions/41110454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/637988/"
] | **The Touch Bar system icons are all located in `/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car`.**
To name a few examples, they are named like `TouchBarControlStripSpotlight` or `TouchBarControlStripSiriContent`.
---
[](https://i.stack.imgur.com/gld2r.png)
Here are the references: (You can find them and all others images in NSImage.h)
>
> NSImageNameTouchBarAddDetailTemplate,
> NSImageNameTouchBarAddTemplate,
> NSImage... |
41,110,454 | New MacBook Pro's with Touch Bar, in macOS Sierra, icons for the system control strip, where would they be located?
[](https://i.stack.imgur.com/2qr0d.png)
I looked under HD/System/Library/CoreServices, not there..... | 2016/12/12 | [
"https://Stackoverflow.com/questions/41110454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/637988/"
] | Touch Bar is introducing these new icons:
[](https://i.stack.imgur.com/gld2r.png)
Here are the references: (You can find them and all others images in NSImage.h)
>
> NSImageNameTouchBarAddDetailTemplate,
> NSImageNameTouchBarAddTemplate,
> NSImage... | If you're interested in customizing the touch bar icons Apple [provides](https://developer.apple.com/design/human-interface-guidelines/macos/touch-bar/touch-bar-icons-and-images/) some templates to get started:
[](https://i.stack.imgur.com/aSjsG.png)
... |
41,110,454 | New MacBook Pro's with Touch Bar, in macOS Sierra, icons for the system control strip, where would they be located?
[](https://i.stack.imgur.com/2qr0d.png)
I looked under HD/System/Library/CoreServices, not there..... | 2016/12/12 | [
"https://Stackoverflow.com/questions/41110454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/637988/"
] | **The Touch Bar system icons are all located in `/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car`.**
To name a few examples, they are named like `TouchBarControlStripSpotlight` or `TouchBarControlStripSiriContent`.
---
[ some templates to get started:
[](https://i.stack.imgur.com/aSjsG.png)
... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | As with many things about international relations, the issue is not so much if they can do it but if it is the convenient (for oneself, not for Ukraine) thing to do.
To top your analogy, the USA **did** send planes, ships, weapons and half a million men to the Vietnam War without seeming to be particularly worried abo... | There's several moving parts here
**Vietnam was a proxy war**
A [proxy war](https://en.wikipedia.org/wiki/Proxy_war)
>
> A proxy war is an armed conflict between two states or non-state actors which act on the instigation or on behalf of other parties that are not directly involved in the hostilities. In order for ... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | #### TLDR: WW3 benefits no one, least of all Ukraine and "if it was good for Vietnam it's good enough here" seems misplaced, to me.
The stakes aren't that high.
Vietnam was waged on [Domino Theory](https://en.wikipedia.org/wiki/Domino_theory) which was influential at the time: basically, if Vietnam fell, then SE Asia... | Vietnam War was a textbook example of a safe proxy war: very remote from both belligerents, over a country that wasn't of any major significance to either of them, and with a very sharply defined scope. It would be reductionist to call Vietnam just a pissing match between two superpowers, but it was a relatively safe (... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | Vietnam War was a textbook example of a safe proxy war: very remote from both belligerents, over a country that wasn't of any major significance to either of them, and with a very sharply defined scope. It would be reductionist to call Vietnam just a pissing match between two superpowers, but it was a relatively safe (... | There's several moving parts here
**Vietnam was a proxy war**
A [proxy war](https://en.wikipedia.org/wiki/Proxy_war)
>
> A proxy war is an armed conflict between two states or non-state actors which act on the instigation or on behalf of other parties that are not directly involved in the hostilities. In order for ... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | #### TLDR: WW3 benefits no one, least of all Ukraine and "if it was good for Vietnam it's good enough here" seems misplaced, to me.
The stakes aren't that high.
Vietnam was waged on [Domino Theory](https://en.wikipedia.org/wiki/Domino_theory) which was influential at the time: basically, if Vietnam fell, then SE Asia... | International law has a concept called [jus ad bellum](https://en.wikipedia.org/wiki/Jus_ad_bellum), describing when and how a country is permitted to go to war. There is separate from [jus in bello](https://en.wikipedia.org/wiki/Law_of_war), which describes how war may be conducted.
And then there are principles of [... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | #### TLDR: WW3 benefits no one, least of all Ukraine and "if it was good for Vietnam it's good enough here" seems misplaced, to me.
The stakes aren't that high.
Vietnam was waged on [Domino Theory](https://en.wikipedia.org/wiki/Domino_theory) which was influential at the time: basically, if Vietnam fell, then SE Asia... | Several reasons:
* Germany is freaked out about it, and totally opposes it. For Germany just sending AT missiles was a big policy change. Before the actual invasion, they even [opposed](https://www.wsj.com/articles/germany-blocks-nato-ally-from-transferring-weapons-to-ukraine-11642790772) their allies from sending any... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | Vietnam War was a textbook example of a safe proxy war: very remote from both belligerents, over a country that wasn't of any major significance to either of them, and with a very sharply defined scope. It would be reductionist to call Vietnam just a pissing match between two superpowers, but it was a relatively safe (... | All questions about Vietnam, or WW3 has zero relevance.
The reason why America won't do that is more basic than any of that, or how Putin might/mightn't react. The simple fact is that modern warcraft are so specialised that pilots not only have to learn how to fly fighter craft, they have to learn how to fly specific f... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | As with many things about international relations, the issue is not so much if they can do it but if it is the convenient (for oneself, not for Ukraine) thing to do.
To top your analogy, the USA **did** send planes, ships, weapons and half a million men to the Vietnam War without seeming to be particularly worried abo... | International law has a concept called [jus ad bellum](https://en.wikipedia.org/wiki/Jus_ad_bellum), describing when and how a country is permitted to go to war. There is separate from [jus in bello](https://en.wikipedia.org/wiki/Law_of_war), which describes how war may be conducted.
And then there are principles of [... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | As with many things about international relations, the issue is not so much if they can do it but if it is the convenient (for oneself, not for Ukraine) thing to do.
To top your analogy, the USA **did** send planes, ships, weapons and half a million men to the Vietnam War without seeming to be particularly worried abo... | #### TLDR: WW3 benefits no one, least of all Ukraine and "if it was good for Vietnam it's good enough here" seems misplaced, to me.
The stakes aren't that high.
Vietnam was waged on [Domino Theory](https://en.wikipedia.org/wiki/Domino_theory) which was influential at the time: basically, if Vietnam fell, then SE Asia... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | #### TLDR: WW3 benefits no one, least of all Ukraine and "if it was good for Vietnam it's good enough here" seems misplaced, to me.
The stakes aren't that high.
Vietnam was waged on [Domino Theory](https://en.wikipedia.org/wiki/Domino_theory) which was influential at the time: basically, if Vietnam fell, then SE Asia... | There's several moving parts here
**Vietnam was a proxy war**
A [proxy war](https://en.wikipedia.org/wiki/Proxy_war)
>
> A proxy war is an armed conflict between two states or non-state actors which act on the instigation or on behalf of other parties that are not directly involved in the hostilities. In order for ... |
71,967 | During the Vietnam War, the Soviets sent hundreds of MiGs to North Vietnam. Now, Americans say they cannot send airplanes to Ukraine lest it lead to escalation.
Why wasn't the Soviet assistance to North Vietnam during the Vietnam War a form of escalation? Why didn't it start the 3rd World War, say, via an American att... | 2022/03/21 | [
"https://politics.stackexchange.com/questions/71967",
"https://politics.stackexchange.com",
"https://politics.stackexchange.com/users/42629/"
] | Several reasons:
* Germany is freaked out about it, and totally opposes it. For Germany just sending AT missiles was a big policy change. Before the actual invasion, they even [opposed](https://www.wsj.com/articles/germany-blocks-nato-ally-from-transferring-weapons-to-ukraine-11642790772) their allies from sending any... | There's several moving parts here
**Vietnam was a proxy war**
A [proxy war](https://en.wikipedia.org/wiki/Proxy_war)
>
> A proxy war is an armed conflict between two states or non-state actors which act on the instigation or on behalf of other parties that are not directly involved in the hostilities. In order for ... |
21,162,136 | I've been creating an application that requires buttons to make an ajax call to a controller that uses autoloaded models. I was under the impression that variables in an autoloaded model would retain their values after an Ajax call, but for some reason the entire model (including their variables) have lost their new va... | 2014/01/16 | [
"https://Stackoverflow.com/questions/21162136",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/452661/"
] | >
> Am I misunderstanding the way the autoload function works?
>
>
>
*Well*... yes.
**Autoloading** means the object is loaded (instantiated) automatically when the application starts. So we won't need to load them couple of times if needed.
**Note:** Only necessary/essential models should be loaded automaticall... | Every ajax request is a new page load, so, when you call it first, you load the model and set you variable, but when you call the second request you load a new instance of the model, with new values for your variables... I think the best way to manage this is using SESSIONS or COOKIES... |
12,909,844 | I'm having trouble getting a edgengram query to behave properly. I have one record "blue grass" with an edgengram minimum of 2. A query string of "blv" however returns "blue grass" although it shouldn't.
```
curl -X POST http://localhost:9200/test -d '{
"mappings": {
"product/fragrance": {
... | 2012/10/16 | [
"https://Stackoverflow.com/questions/12909844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/178110/"
] | As David told you in his answer some elasticsearch queries are analyzed. Usually you don't want to apply ngrams to your queries, but you seem to already know that given your mapping. In fact, the reason why your search analyzer without ngrams is not taken into account is a typo: `search_anaylzer` instead of `search_ana... | When you search for something using a MatchQuery or QueryString, the same analyzer is applied.
So blv is tokenized into bl, blv and bl matches bl!
You can use a TermQuery which is not analyzed.
Hard to say more as I don't have your query.
David |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | I had the same problem, caused by cutting two tables out of a web page and pasting them into Word. I kicked myself when I stopped to think - if it's genuinely two tables as it was in my case, select the second one, cut it, add a new line or two below the first table then paste the second table back after the newline. S... | Place your cursor at the end of the row you want to create space and then press Alt+Enter.
Bingo! its done. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | It sounds like the tables are actually attached to each other if there is no line between them.
Don't know what version you are using, but in Word 2010, I simply split the table.
Started with this;

Chose the row of the table where I wanted to sp... | Place your cursor at the end of the row you want to create space and then press Alt+Enter.
Bingo! its done. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | I had a similar problem with a table at the top of a new section--all the usual suggestions did not work. This was my answer, I suspect it will resolve your issue as well: <https://superuser.com/a/175181/146915> | I know there are many answers here, this is what worked for me (and didn't) in Word 2013:
1. Position cursor to the right of the first table (where you want to insert space after that table and before the next)
2. Press `Shift`+`Enter` (`Alt`+`Enter` seems to make a page break, `Ctrl`+`Shift`+`Enter` does something od... |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | Place the cursor at the end of the first table.
Then press Ctrl+Shift+Enter. It will break the last row of table to create a free row, where u could **write the texts**. Then the breaked table row can be deleted by selecting it and press Ctrl+X | Click on the little box on the upper left hand side of the table to select it. Table Tools will show up on the ribbon. Click on layout and select "Split Table" in the Merge section. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | Table Properties -
correct
* Text Wrapping = None
incorrect (causes the problem)
* Text Wrapping = Around
If you want to have text and lines between two tables, both tables must be "inline" with the text (Wrapping = None) in order to put text between them. If one of the two tables is floating above the text (Wrapp... | One solution is to right click and add a caption above the second table. Then you can simply replace the caption with normal text. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | I know there are many answers here, this is what worked for me (and didn't) in Word 2013:
1. Position cursor to the right of the first table (where you want to insert space after that table and before the next)
2. Press `Shift`+`Enter` (`Alt`+`Enter` seems to make a page break, `Ctrl`+`Shift`+`Enter` does something od... | Place your cursor at the end of the row you want to create space and then press Alt+Enter.
Bingo! its done. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | Table Properties -
correct
* Text Wrapping = None
incorrect (causes the problem)
* Text Wrapping = Around
If you want to have text and lines between two tables, both tables must be "inline" with the text (Wrapping = None) in order to put text between them. If one of the two tables is floating above the text (Wrapp... | Place your cursor at the end of the row you want to create space and then press Alt+Enter.
Bingo! its done. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | `Ctrl`+`Shift` and `Enter` works for me on Word 14 ([aka](http://en.wikipedia.org/wiki/Microsoft_Word#Release_history) Word 2010 in Office 2010).
This works, if your cursor is at the start of the second table. | One solution is to right click and add a caption above the second table. Then you can simply replace the caption with normal text. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | I had the same problem, but I solved it. Maybe it's not the most elegant solution, but it works. In the table above I added a row at the bottom (or at the top of the table below).
Select marked row and convert it into text.
Select **Layout -> Data -> Convert to Text**.
In this way I got a blank line between the t... | Place your cursor at the end of the row you want to create space and then press Alt+Enter.
Bingo! its done. |
474,062 | I have VMware on my Mac Mini. And I have two Guest OS' running, one is Ubuntu 12.04 and the other is Windows 8 Pro (Bizspark Edition).
I know I can drag drop files from Guest OS to the Host OS' desktop.
My question is, is there a workaround or a hack script to drag drop files from the Guest OS to the other Guest OS? ... | 2012/09/14 | [
"https://superuser.com/questions/474062",
"https://superuser.com",
"https://superuser.com/users/154012/"
] | It sounds like the tables are actually attached to each other if there is no line between them.
Don't know what version you are using, but in Word 2010, I simply split the table.
Started with this;

Chose the row of the table where I wanted to sp... | One solution is to right click and add a caption above the second table. Then you can simply replace the caption with normal text. |
5,996,194 | I want to find a web 3d gis solution which provides:
* server software to store and serve terrain and 3d models
* a plugin to display on browsers
* javascript api to interact with the plugin
* deploy on intranet (server and clients do not have to connect to internet)
It seems that Google Earth Enterprise provides tho... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5996194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514624/"
] | Since the AJAX request will return what the page echoes as data, you can try just searching that data for the id:
```
$.ajax({
url: "/",
context: document.body,
success: function(data){
if (data.indexOf('id="welcome"') >= 0) {
$('#login').addClass("done");
}
}
});
```
... | Try:
```
$(document).ready(function () {
$.ajax({
url: "/",
context: document.body,
success: function(){
if ($(this).find('#welcome').length > 0)
{
$('#login').addClass("done");
}
}
});
});
```
Or:
```
$(document).ready(function () {
$.ajax({
url: "/",
cont... |
5,996,194 | I want to find a web 3d gis solution which provides:
* server software to store and serve terrain and 3d models
* a plugin to display on browsers
* javascript api to interact with the plugin
* deploy on intranet (server and clients do not have to connect to internet)
It seems that Google Earth Enterprise provides tho... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5996194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514624/"
] | The problem is your checking the current page when you do this call,
```
if ($('#welcome').length == 1 )
```
so you would only get a true answer if the current page is the home page. What your looking to do is actually check the data that is returned from the ajax call. To do that, your success handler much accept ... | Since the AJAX request will return what the page echoes as data, you can try just searching that data for the id:
```
$.ajax({
url: "/",
context: document.body,
success: function(data){
if (data.indexOf('id="welcome"') >= 0) {
$('#login').addClass("done");
}
}
});
```
... |
5,996,194 | I want to find a web 3d gis solution which provides:
* server software to store and serve terrain and 3d models
* a plugin to display on browsers
* javascript api to interact with the plugin
* deploy on intranet (server and clients do not have to connect to internet)
It seems that Google Earth Enterprise provides tho... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5996194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514624/"
] | Since the AJAX request will return what the page echoes as data, you can try just searching that data for the id:
```
$.ajax({
url: "/",
context: document.body,
success: function(data){
if (data.indexOf('id="welcome"') >= 0) {
$('#login').addClass("done");
}
}
});
```
... | The other thing you could do is create a namespaced 'global' variable (global to your code) that saves the logged in state, e.g
```
var myjQ {
...
loggedIn : false;
...
}
if myjQ.loggedIn {
// do stuff
} else {
// do other stuff
}
``` |
5,996,194 | I want to find a web 3d gis solution which provides:
* server software to store and serve terrain and 3d models
* a plugin to display on browsers
* javascript api to interact with the plugin
* deploy on intranet (server and clients do not have to connect to internet)
It seems that Google Earth Enterprise provides tho... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5996194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514624/"
] | The problem is your checking the current page when you do this call,
```
if ($('#welcome').length == 1 )
```
so you would only get a true answer if the current page is the home page. What your looking to do is actually check the data that is returned from the ajax call. To do that, your success handler much accept ... | Try:
```
$(document).ready(function () {
$.ajax({
url: "/",
context: document.body,
success: function(){
if ($(this).find('#welcome').length > 0)
{
$('#login').addClass("done");
}
}
});
});
```
Or:
```
$(document).ready(function () {
$.ajax({
url: "/",
cont... |
5,996,194 | I want to find a web 3d gis solution which provides:
* server software to store and serve terrain and 3d models
* a plugin to display on browsers
* javascript api to interact with the plugin
* deploy on intranet (server and clients do not have to connect to internet)
It seems that Google Earth Enterprise provides tho... | 2011/05/13 | [
"https://Stackoverflow.com/questions/5996194",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/514624/"
] | The problem is your checking the current page when you do this call,
```
if ($('#welcome').length == 1 )
```
so you would only get a true answer if the current page is the home page. What your looking to do is actually check the data that is returned from the ajax call. To do that, your success handler much accept ... | The other thing you could do is create a namespaced 'global' variable (global to your code) that saves the logged in state, e.g
```
var myjQ {
...
loggedIn : false;
...
}
if myjQ.loggedIn {
// do stuff
} else {
// do other stuff
}
``` |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | Log Shipping is a high availability feature of SQL Server where a database copy from a specific point in time is made available to a different server using full backups + scheduled transaction log backups delivered by an internal mechanism of SQL Server.
It's composed of some SQL jobs and some executables and is access... | What is meant by using the secondary server(s) as a reporting tool is that instead of using norecovery for the t-log restores on the secondary server(s), you can use standby to put the database in a mode where SELECTs can hit the secondary database(s).
Is it better than snapshots? They have their differences. Snapshot... |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | Log Shipping is a high availability feature of SQL Server where a database copy from a specific point in time is made available to a different server using full backups + scheduled transaction log backups delivered by an internal mechanism of SQL Server.
It's composed of some SQL jobs and some executables and is access... | I suspect this refers to a couple of technologies - the first being something like Windows network load balancing (NLB) of the read-only database servers. This will allow a web server (for instance) to query a network name (eg myreadonlydatabaseservers), and spread the load. And you get cheaper SQL Server licensing to ... |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | Log Shipping is a high availability feature of SQL Server where a database copy from a specific point in time is made available to a different server using full backups + scheduled transaction log backups delivered by an internal mechanism of SQL Server.
It's composed of some SQL jobs and some executables and is access... | I think this is talking about a couple of different technologies.
>
> Benefit from log shipping, which helps automatically back up data on
> separate servers
>
>
>
That part is talking about using log shipping to get the data to multiple servers for backup purposes.
>
> keep multiple-read servers online to be... |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | `Log shipping` will copy the transaction logs from the primary server to the secondary server(s) and apply them to the respective DBs. If you want to read from the secondary server, the appropriate DBs will have to be in the standby mode.
You can choose one of two settings to be able to query the secondary DBs: 1) Th... | What is meant by using the secondary server(s) as a reporting tool is that instead of using norecovery for the t-log restores on the secondary server(s), you can use standby to put the database in a mode where SELECTs can hit the secondary database(s).
Is it better than snapshots? They have their differences. Snapshot... |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | What is meant by using the secondary server(s) as a reporting tool is that instead of using norecovery for the t-log restores on the secondary server(s), you can use standby to put the database in a mode where SELECTs can hit the secondary database(s).
Is it better than snapshots? They have their differences. Snapshot... | I suspect this refers to a couple of technologies - the first being something like Windows network load balancing (NLB) of the read-only database servers. This will allow a web server (for instance) to query a network name (eg myreadonlydatabaseservers), and spread the load. And you get cheaper SQL Server licensing to ... |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | What is meant by using the secondary server(s) as a reporting tool is that instead of using norecovery for the t-log restores on the secondary server(s), you can use standby to put the database in a mode where SELECTs can hit the secondary database(s).
Is it better than snapshots? They have their differences. Snapshot... | I think this is talking about a couple of different technologies.
>
> Benefit from log shipping, which helps automatically back up data on
> separate servers
>
>
>
That part is talking about using log shipping to get the data to multiple servers for backup purposes.
>
> keep multiple-read servers online to be... |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | `Log shipping` will copy the transaction logs from the primary server to the secondary server(s) and apply them to the respective DBs. If you want to read from the secondary server, the appropriate DBs will have to be in the standby mode.
You can choose one of two settings to be able to query the secondary DBs: 1) Th... | I suspect this refers to a couple of technologies - the first being something like Windows network load balancing (NLB) of the read-only database servers. This will allow a web server (for instance) to query a network name (eg myreadonlydatabaseservers), and spread the load. And you get cheaper SQL Server licensing to ... |
5,397 | How to set the these parameters on postgresql.conf ?
What I should consider while setting them?
What should I monitor?
```
#vacuum_cost_delay = 0ms
#vacuum_cost_page_hit = 1
#vacuum_cost_page_miss = 10
#vacuum_cost_page_dirty = 20
#vacuum_cost_limit = 20... | 2011/09/05 | [
"https://dba.stackexchange.com/questions/5397",
"https://dba.stackexchange.com",
"https://dba.stackexchange.com/users/3243/"
] | `Log shipping` will copy the transaction logs from the primary server to the secondary server(s) and apply them to the respective DBs. If you want to read from the secondary server, the appropriate DBs will have to be in the standby mode.
You can choose one of two settings to be able to query the secondary DBs: 1) Th... | I think this is talking about a couple of different technologies.
>
> Benefit from log shipping, which helps automatically back up data on
> separate servers
>
>
>
That part is talking about using log shipping to get the data to multiple servers for backup purposes.
>
> keep multiple-read servers online to be... |
168,596 | There is one WiFi access points in range of my room and it's mine. Using the WiFi Analyzer application for my Android phone, I've found that the entire channel range is wide open. currently, I'm using Channel 6. Would changing the channel have any impact on signal strength if there's no other WiFi access points around? | 2010/07/28 | [
"https://superuser.com/questions/168596",
"https://superuser.com",
"https://superuser.com/users/605/"
] | It might if there are other devices in the same frequency range (like cordless phones). | No, it does not matter which channel you are on.
Channels 1 - 11 called the ISM band. They can be used freely.
Channels 12 and 13 can be used for indoor use only and at less than 1 watt
Channel 14 can only be used in Japan, and only for 802.11b transmission.
**To improve performance on 2.4ghz**
Turn off 80... |
168,596 | There is one WiFi access points in range of my room and it's mine. Using the WiFi Analyzer application for my Android phone, I've found that the entire channel range is wide open. currently, I'm using Channel 6. Would changing the channel have any impact on signal strength if there's no other WiFi access points around? | 2010/07/28 | [
"https://superuser.com/questions/168596",
"https://superuser.com",
"https://superuser.com/users/605/"
] | There's a couple of devices that also transmit on the same band as wifi.
Check out [this wikipedia article](http://en.wikipedia.org/wiki/Electromagnetic_interference_at_2.4_GHz) for a list.
To quote a page on Cisco.com:
>
> Jupiter Research reports 67 percent of all residential Wi-Fi problems are linked to interfe... | No, it does not matter which channel you are on.
Channels 1 - 11 called the ISM band. They can be used freely.
Channels 12 and 13 can be used for indoor use only and at less than 1 watt
Channel 14 can only be used in Japan, and only for 802.11b transmission.
**To improve performance on 2.4ghz**
Turn off 80... |
35,121,400 | I have these two MySQL tables inside the same db that I am making use of for a forum like website. My question is about the proper query to join a new field inside table "topics" based on the "user\_id" link between the two.
Table "users", where field "user\_id" is created upon registration, autoincremented:
```
USE... | 2016/02/01 | [
"https://Stackoverflow.com/questions/35121400",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5539201/"
] | You can define your own configuration and achieve this, as shown below:
```
@Configuration
public class ServletConfig {
@Bean
public DispatcherServlet dispatcherServlet() {
DispatcherServlet dispatcherServlet = new DispatcherServlet();
dispatcherServlet.setThreadContextInheritable(true);
dispatcherServlet... | For anyone trying to solve this issue, we solved it this way :
```
@Configuration
public class ServletConfig {
@Autowired
RequestContextFilter filter;
@Autowired
DispatcherServlet servlet;
@PostConstruct
public void init() {
// Normal mode
filter.setThreadContextInheritable(true);
// Debug ... |
11,966 | I have always wondered what is the difference between 'coche' and 'carro'.
I have done some googling on it but still can't understand.
Can anyone explain it and give me some examples please!! :) | 2015/02/04 | [
"https://spanish.stackexchange.com/questions/11966",
"https://spanish.stackexchange.com",
"https://spanish.stackexchange.com/users/7172/"
] | In Spain we favor `coche` for a car, while a `carro` is more like a four wheeled cart (similar to the word `carreta`, which is a smaller, two wheeled cart), the one that would use horses or mules to pull it.

In most Latin American countries the word... | If you come to **Chile**, you will notice that these words have very specific uses:
>
> **Coche**: the one used for carry babies.
>
>
> **Carro**: which is used to buy in the supermarket (or Internet).
>
>
>
Both words can be used to refer to the train *wagons*. None of them means *car*, like in other countries... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.