qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
30,983 | When we are talking about *fast*, *faster*, and *the fastest*. I don't have any idea how come there are such variations.
>
> schnell | schneller | am schnellsten
>
> schneller | schnelle | schnelles
>
> schnellster | schnellste | schnellstes
>
>
> | 2016/07/21 | [
"https://german.stackexchange.com/questions/30983",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/18743/"
] | *schneller, schnelle, schnelles*
This is just the base form (i.e. "fast"), for all three genders. (*schneller* can also be the comparative for the adjective *schnell*)
Ein **schneller** Hund, eine **schnelle** Taube, ein **schnelles** Kind. (A fast dog, a fast dove, a fast child.)
For the comparative, add -er after ... | In addition to Ingmar's very good answer, let me answer your question about "am schnellsten". It is used as a superlative adverb in sentences like
"Maria läuft immer schnell - aber noch schneller, wenn sie verspätet ist. Am schnellsten war sie vor einem Monat, als sie den großen Wettbewerb gewonnen hat".
(Maria is al... |
30,983 | When we are talking about *fast*, *faster*, and *the fastest*. I don't have any idea how come there are such variations.
>
> schnell | schneller | am schnellsten
>
> schneller | schnelle | schnelles
>
> schnellster | schnellste | schnellstes
>
>
> | 2016/07/21 | [
"https://german.stackexchange.com/questions/30983",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/18743/"
] | *schneller, schnelle, schnelles*
This is just the base form (i.e. "fast"), for all three genders. (*schneller* can also be the comparative for the adjective *schnell*)
Ein **schneller** Hund, eine **schnelle** Taube, ein **schnelles** Kind. (A fast dog, a fast dove, a fast child.)
For the comparative, add -er after ... | Die Tabellenform ist missverständlich.
Die erste Zeile nennt die Steigerungsformen. Grundform schnell, gesteigert: schneller, Superlativ: am schnellsten.
Die Zeilen 2 und 3 zeigen die Steigerungsformen nach Geschlecht (er, sie, es). Für die Grundform sind fehlt eine solche Zeile, weil die Formen alle gleich sind (D... |
30,983 | When we are talking about *fast*, *faster*, and *the fastest*. I don't have any idea how come there are such variations.
>
> schnell | schneller | am schnellsten
>
> schneller | schnelle | schnelles
>
> schnellster | schnellste | schnellstes
>
>
> | 2016/07/21 | [
"https://german.stackexchange.com/questions/30983",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/18743/"
] | In addition to Ingmar's very good answer, let me answer your question about "am schnellsten". It is used as a superlative adverb in sentences like
"Maria läuft immer schnell - aber noch schneller, wenn sie verspätet ist. Am schnellsten war sie vor einem Monat, als sie den großen Wettbewerb gewonnen hat".
(Maria is al... | Die Tabellenform ist missverständlich.
Die erste Zeile nennt die Steigerungsformen. Grundform schnell, gesteigert: schneller, Superlativ: am schnellsten.
Die Zeilen 2 und 3 zeigen die Steigerungsformen nach Geschlecht (er, sie, es). Für die Grundform sind fehlt eine solche Zeile, weil die Formen alle gleich sind (D... |
8,472,011 | I would like to union 2 tables and display all in a datagrid:
* tblReservation (ID, StartTime, EndTime, SchoolID, AccomodationID)
* tblMeeting (ID, StartTime, EndTime, Subject, Location)
In the datagrid I have 2 matching columns (StartTime, EndTime) and 2 different columns. Still I want to unite these 2 tables and se... | 2011/12/12 | [
"https://Stackoverflow.com/questions/8472011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069424/"
] | you can try these links
<http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx>
<http://msdn.microsoft.com/en-us/library/microsoft.phone.info.deviceextendedproperties%28v=VS.92%29.aspx>
you can try this
```
public MainPage()
{
InitializeComponent();
GetDeviceInfo();
... | Check out the `DeviceStatus` class.
Have a look at [MSDN](http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx) about it.
**Added** - after first comment
Check out [`System.Environment`](http://msdn.microsoft.com/en-us/library/system.environment%28v=VS.95%29.aspx)
```
System.Environment.OSVersion
``... |
8,472,011 | I would like to union 2 tables and display all in a datagrid:
* tblReservation (ID, StartTime, EndTime, SchoolID, AccomodationID)
* tblMeeting (ID, StartTime, EndTime, Subject, Location)
In the datagrid I have 2 matching columns (StartTime, EndTime) and 2 different columns. Still I want to unite these 2 tables and se... | 2011/12/12 | [
"https://Stackoverflow.com/questions/8472011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069424/"
] | Check out the `DeviceStatus` class.
Have a look at [MSDN](http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx) about it.
**Added** - after first comment
Check out [`System.Environment`](http://msdn.microsoft.com/en-us/library/system.environment%28v=VS.95%29.aspx)
```
System.Environment.OSVersion
``... | What about using
`Environment.OSVersion`
[MSDN Article](http://msdn.microsoft.com/en-us/library/system.environment.osversion.aspx) |
8,472,011 | I would like to union 2 tables and display all in a datagrid:
* tblReservation (ID, StartTime, EndTime, SchoolID, AccomodationID)
* tblMeeting (ID, StartTime, EndTime, Subject, Location)
In the datagrid I have 2 matching columns (StartTime, EndTime) and 2 different columns. Still I want to unite these 2 tables and se... | 2011/12/12 | [
"https://Stackoverflow.com/questions/8472011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069424/"
] | Check out the `DeviceStatus` class.
Have a look at [MSDN](http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx) about it.
**Added** - after first comment
Check out [`System.Environment`](http://msdn.microsoft.com/en-us/library/system.environment%28v=VS.95%29.aspx)
```
System.Environment.OSVersion
``... | I think the version should be grabbed from `Environment.OSVersion.Version` and i think you will have to compare them to list of operating systems applicable
* Windows Mobile 6 5.2
* Wndows Mobile 5.0 5.1
* Windows Mobile 2003 SE 4.21
....
I found this [article](http://www.christec.co.nz/blog/archives/77) which might... |
8,472,011 | I would like to union 2 tables and display all in a datagrid:
* tblReservation (ID, StartTime, EndTime, SchoolID, AccomodationID)
* tblMeeting (ID, StartTime, EndTime, Subject, Location)
In the datagrid I have 2 matching columns (StartTime, EndTime) and 2 different columns. Still I want to unite these 2 tables and se... | 2011/12/12 | [
"https://Stackoverflow.com/questions/8472011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069424/"
] | you can try these links
<http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx>
<http://msdn.microsoft.com/en-us/library/microsoft.phone.info.deviceextendedproperties%28v=VS.92%29.aspx>
you can try this
```
public MainPage()
{
InitializeComponent();
GetDeviceInfo();
... | What about using
`Environment.OSVersion`
[MSDN Article](http://msdn.microsoft.com/en-us/library/system.environment.osversion.aspx) |
8,472,011 | I would like to union 2 tables and display all in a datagrid:
* tblReservation (ID, StartTime, EndTime, SchoolID, AccomodationID)
* tblMeeting (ID, StartTime, EndTime, Subject, Location)
In the datagrid I have 2 matching columns (StartTime, EndTime) and 2 different columns. Still I want to unite these 2 tables and se... | 2011/12/12 | [
"https://Stackoverflow.com/questions/8472011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069424/"
] | you can try these links
<http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx>
<http://msdn.microsoft.com/en-us/library/microsoft.phone.info.deviceextendedproperties%28v=VS.92%29.aspx>
you can try this
```
public MainPage()
{
InitializeComponent();
GetDeviceInfo();
... | I think the version should be grabbed from `Environment.OSVersion.Version` and i think you will have to compare them to list of operating systems applicable
* Windows Mobile 6 5.2
* Wndows Mobile 5.0 5.1
* Windows Mobile 2003 SE 4.21
....
I found this [article](http://www.christec.co.nz/blog/archives/77) which might... |
8,472,011 | I would like to union 2 tables and display all in a datagrid:
* tblReservation (ID, StartTime, EndTime, SchoolID, AccomodationID)
* tblMeeting (ID, StartTime, EndTime, Subject, Location)
In the datagrid I have 2 matching columns (StartTime, EndTime) and 2 different columns. Still I want to unite these 2 tables and se... | 2011/12/12 | [
"https://Stackoverflow.com/questions/8472011",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069424/"
] | I think the version should be grabbed from `Environment.OSVersion.Version` and i think you will have to compare them to list of operating systems applicable
* Windows Mobile 6 5.2
* Wndows Mobile 5.0 5.1
* Windows Mobile 2003 SE 4.21
....
I found this [article](http://www.christec.co.nz/blog/archives/77) which might... | What about using
`Environment.OSVersion`
[MSDN Article](http://msdn.microsoft.com/en-us/library/system.environment.osversion.aspx) |
28,859,139 | I hope someone will be able to help me on this problem. I have a list object that includes 48 vectors and each vector has a length of 2,000,000 observations in it. Here is a code that creates the same structure with only 100,000 items per vector:
```
mtx_sim <- matrix(data = runif(48 * 100000), ncol = 48, nrow = 10000... | 2015/03/04 | [
"https://Stackoverflow.com/questions/28859139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1738753/"
] | You are doing two expensive things in an otherwise reasonable algorithm:
1. You are recreating a matrix from your list for every iteration; this is likely slow
2. You are recomputing the entire row sums repeatedly, when in reality you just need to calculate the marginal changes
Here is an alternative. We reconstitute... | You can use this solution:
```
M <- t(apply(mtx_sim,1,cumsum))
if (ncol(M)>30) {
i <- 31:ncol(M)
M[,i] <- M[,i] - M[,i-30]
}
M
``` |
61,732,805 | App.js:
```
function App() {
return (
<div className="App">
<MyComponent />
</div>
);
}
export default App;
```
MyComponent.js:
```
import React, { Component } from 'react'
class MyComponent extends Component {
constructor(props) {
super(props)
this.state = {
isShown : false
... | 2020/05/11 | [
"https://Stackoverflow.com/questions/61732805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10932029/"
] | in the MyComponent property isShown is set false by default, so when you try to find second div it's undefined. At first, you must click button after that you can check text.
```
wrapper.find('a').simulate('click');
``` | You are trying to find a div in a div inside your component, which only has one div element. When enzyme talks about nodes its talking about elements, so basically is telling you that the find function isn't finding any element that matches the parameter you passed as an argument. I think the problem is that, by defaul... |
61,732,805 | App.js:
```
function App() {
return (
<div className="App">
<MyComponent />
</div>
);
}
export default App;
```
MyComponent.js:
```
import React, { Component } from 'react'
class MyComponent extends Component {
constructor(props) {
super(props)
this.state = {
isShown : false
... | 2020/05/11 | [
"https://Stackoverflow.com/questions/61732805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10932029/"
] | You are trying to find a div in a div inside your component, which only has one div element. When enzyme talks about nodes its talking about elements, so basically is telling you that the find function isn't finding any element that matches the parameter you passed as an argument. I think the problem is that, by defaul... | there is no 2 division in your jsx component
on shallow rendering you state is false and your second div did not render
```
this.state = {
isShown : false
}
```
and your test can not show
```
{isShown && <div>Text goes here</div> }
```
fix it by make your default state to true , like that
```
this.stat... |
61,732,805 | App.js:
```
function App() {
return (
<div className="App">
<MyComponent />
</div>
);
}
export default App;
```
MyComponent.js:
```
import React, { Component } from 'react'
class MyComponent extends Component {
constructor(props) {
super(props)
this.state = {
isShown : false
... | 2020/05/11 | [
"https://Stackoverflow.com/questions/61732805",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10932029/"
] | in the MyComponent property isShown is set false by default, so when you try to find second div it's undefined. At first, you must click button after that you can check text.
```
wrapper.find('a').simulate('click');
``` | there is no 2 division in your jsx component
on shallow rendering you state is false and your second div did not render
```
this.state = {
isShown : false
}
```
and your test can not show
```
{isShown && <div>Text goes here</div> }
```
fix it by make your default state to true , like that
```
this.stat... |
38,409,274 | I have a daetagrid and a combobox and a textbox in a window in wpf.
in xmal:
```
<TextBox x:Name="txtCameraName"/>
<ComboBox x:Name="cmbCameraType" SelectedValuePath="Camera_Type" IsEditable="True" IsReadOnly="True" Text="Please select...">
<ComboBoxItem>IP</ComboBoxItem>
<ComboBoxItem>webcam</ComboBoxItem>
... | 2016/07/16 | [
"https://Stackoverflow.com/questions/38409274",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | You can find all the system icons here:
<https://developer.android.com/reference/android/R.drawable.html>
Anyway read also this:
<http://docs.nativescript.org/angular/ui/action-bar.html#setting-icons> | They're also included with Android Studio, which you probably have installed already. I hacked this .bat file out to copy an icon to my app folder on Windows:
```
@echo on
set BAT_FILE=%~n0
set source="C:\Program Files\Android\Android Studio\plugins\android\lib\layoutlib\data\res"
set target=".\App_Resources\Android"
... |
627,555 | This question has already been asked but was never answered properly. After clearance with @Seth I am now asking it again. This will allow me to respond and possibly modify the question a lot easier. The original question can be found here:
[Map Ctrl and Alt to mouse thumb buttons](https://askubuntu.com/questions/1621... | 2015/05/24 | [
"https://askubuntu.com/questions/627555",
"https://askubuntu.com",
"https://askubuntu.com/users/319953/"
] | I spent a lot of time trying to make that binding work. I eventually found a solution, which is complicated but works well and doesn't imply third party software.
I share it here hoping it will help people. Besides, I know this is not perfect in terms of security, so any constructive feedback is more than welcome.
The... | I have a partial solution. I haven't figured out how to unmap the existing
button, so you end up with a button click and the modifier you want. So if
that mouse button has some existing purpose, it will still fire. For example,
remaping the right mouse button to a control key will result in a control+click
being sent.
... |
627,555 | This question has already been asked but was never answered properly. After clearance with @Seth I am now asking it again. This will allow me to respond and possibly modify the question a lot easier. The original question can be found here:
[Map Ctrl and Alt to mouse thumb buttons](https://askubuntu.com/questions/1621... | 2015/05/24 | [
"https://askubuntu.com/questions/627555",
"https://askubuntu.com",
"https://askubuntu.com/users/319953/"
] | I found a solution with [PyUserInput](https://github.com/PyUserInput/PyUserInput). This ends up being quite simple and does not require administration rights. With python 2 and PyUserInput installed, I used the following script:
```py
#!/usr/bin/python
from pymouse import PyMouseEvent
from pykeyboard import PyKeyboard... | I have a partial solution. I haven't figured out how to unmap the existing
button, so you end up with a button click and the modifier you want. So if
that mouse button has some existing purpose, it will still fire. For example,
remaping the right mouse button to a control key will result in a control+click
being sent.
... |
627,555 | This question has already been asked but was never answered properly. After clearance with @Seth I am now asking it again. This will allow me to respond and possibly modify the question a lot easier. The original question can be found here:
[Map Ctrl and Alt to mouse thumb buttons](https://askubuntu.com/questions/1621... | 2015/05/24 | [
"https://askubuntu.com/questions/627555",
"https://askubuntu.com",
"https://askubuntu.com/users/319953/"
] | I have a partial solution. I haven't figured out how to unmap the existing
button, so you end up with a button click and the modifier you want. So if
that mouse button has some existing purpose, it will still fire. For example,
remaping the right mouse button to a control key will result in a control+click
being sent.
... | There's a method for the Logitech mouse, use an unofficial driver named `logiops` <https://github.com/PixlOne/logiops> (Respect to the contributors) . I found that this project makes my side buttons perfectly mimic Ctrl and Shift.
Here is my configuration. I'm using the M720 mouse, and the `cid:0x56` is the forward bu... |
627,555 | This question has already been asked but was never answered properly. After clearance with @Seth I am now asking it again. This will allow me to respond and possibly modify the question a lot easier. The original question can be found here:
[Map Ctrl and Alt to mouse thumb buttons](https://askubuntu.com/questions/1621... | 2015/05/24 | [
"https://askubuntu.com/questions/627555",
"https://askubuntu.com",
"https://askubuntu.com/users/319953/"
] | I spent a lot of time trying to make that binding work. I eventually found a solution, which is complicated but works well and doesn't imply third party software.
I share it here hoping it will help people. Besides, I know this is not perfect in terms of security, so any constructive feedback is more than welcome.
The... | There's a method for the Logitech mouse, use an unofficial driver named `logiops` <https://github.com/PixlOne/logiops> (Respect to the contributors) . I found that this project makes my side buttons perfectly mimic Ctrl and Shift.
Here is my configuration. I'm using the M720 mouse, and the `cid:0x56` is the forward bu... |
627,555 | This question has already been asked but was never answered properly. After clearance with @Seth I am now asking it again. This will allow me to respond and possibly modify the question a lot easier. The original question can be found here:
[Map Ctrl and Alt to mouse thumb buttons](https://askubuntu.com/questions/1621... | 2015/05/24 | [
"https://askubuntu.com/questions/627555",
"https://askubuntu.com",
"https://askubuntu.com/users/319953/"
] | I found a solution with [PyUserInput](https://github.com/PyUserInput/PyUserInput). This ends up being quite simple and does not require administration rights. With python 2 and PyUserInput installed, I used the following script:
```py
#!/usr/bin/python
from pymouse import PyMouseEvent
from pykeyboard import PyKeyboard... | There's a method for the Logitech mouse, use an unofficial driver named `logiops` <https://github.com/PixlOne/logiops> (Respect to the contributors) . I found that this project makes my side buttons perfectly mimic Ctrl and Shift.
Here is my configuration. I'm using the M720 mouse, and the `cid:0x56` is the forward bu... |
6,537,831 | How do I make a window popup in a specific location on the page? I don't see a straightforward way of doing this, so I'm always using window.centerInPage() | 2011/06/30 | [
"https://Stackoverflow.com/questions/6537831",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/360083/"
] | Your SelectCommand does neither return a column `LastName` nor `FirstName`. You are only returning one column(a concatenation of both columns).
So this should work:
```
myCommand = New SqlCommand("SELECT VisitorID, LastName, FirstName, (FirstName +' '+ LastName)As FullName FROM tblVisitor", myConnection)
myAdapter =... | You need to set `ValueMember` as well as `DisplayMember`. |
30,972 | I want to send the mail only when creating the new contact through workflow. so what criteria i should set in the criteria field.
Note: if I update the contact no need send the mail. | 2014/03/26 | [
"https://salesforce.stackexchange.com/questions/30972",
"https://salesforce.stackexchange.com",
"https://salesforce.stackexchange.com/users/7107/"
] | You can simply use the `ISNEW()` function in your criteria.
Take a look here for this and other formula functions
<https://help.salesforce.com/HTViewHelpDoc?id=customize_functions.htm&language=en_US> | Or just select "Everytime a record is created" (the first radio option) and set the formula value to True |
50,107,945 | Here is the modified code and the error I am getting. Using debug I have confirmed it is happening on the:
```
var ret = cmd.Select();
```
[](https://i.stack.imgur.com/Gl88J.png)
Here is the full code.
```
[PXFilterable]
public PXFilteredProcessin... | 2018/04/30 | [
"https://Stackoverflow.com/questions/50107945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1203107/"
] | The idea is that Select() returns a PXResultset of the main DAC. You can then loop over this and cast to the joined DACs.
Here is an example :
```cs
// The static Select() method is called to execute a BQL command.
PXResultset<OrderDetail> result =
PXSelectJoin<OrderDetail, InnerJoin<SalesOrder,
On<SalesO... | Look at the type that is inferred when you use var:
[](https://i.stack.imgur.com/C9HDy.png)
'a' is of type 'PXResultset < ARSalesPerTran > ' in this example
If I were to assign it to another variable 'b' of a different type like 'PXResultset < ARSale... |
34,013,121 | My task:
Write a program that prompts for a list of numbers and at the end prints out both the maximum and minimum of the numbers. (and not suppose to use the min and max function)
eg. if i enter 4, 5, 7, done, it should print maximum as 7 and mininum as 4.
```
Max = None
Min = None
while True:
num = raw_input(... | 2015/12/01 | [
"https://Stackoverflow.com/questions/34013121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4900872/"
] | You are never setting Min and Max after their initialisation. At each pass through the loop, both are None, so you set `maximum` and `minimum` to the newly entered number.
To fix this, either change Max to maximum and Min to minimum, or the opposite: maximum to Max and minimum to Min.
You're also throwing away the re... | `int(num)` casts `num` to an integer, then throws it away. You need to save a reference to it.
```
num = int(num)
``` |
34,013,121 | My task:
Write a program that prompts for a list of numbers and at the end prints out both the maximum and minimum of the numbers. (and not suppose to use the min and max function)
eg. if i enter 4, 5, 7, done, it should print maximum as 7 and mininum as 4.
```
Max = None
Min = None
while True:
num = raw_input(... | 2015/12/01 | [
"https://Stackoverflow.com/questions/34013121",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4900872/"
] | You test `Min` and `Max`, but set and print `minimum` and `maximum`.
Also, as TigerhawkT3 notes, while it's legal to work with strings, you probably meant to test with integers; `int(num)` throws away the result (it doesn't change `num` in place), you probably want `num = int(num)`. | `int(num)` casts `num` to an integer, then throws it away. You need to save a reference to it.
```
num = int(num)
``` |
440,046 | This is a follow-up on another thread in which I got advise on how to \includepdf with section and subsection titles on the included pdf: [\includepdf jumps to new page - can I avoid that?](https://tex.stackexchange.com/questions/440005/includepdf-jumps-to-new-page-can-i-avoid-that/440006?noredirect=1#comment1105008_44... | 2018/07/10 | [
"https://tex.stackexchange.com/questions/440046",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/132124/"
] | `\includepdf` has a `width` argument. Use this instead of `scale` to give the exact width:
```
\pagebreak
\section*{Appendix of Introduction}
\subsection*{Appendix a: Initial presentation of the project}
\newline
\begin{center} %centre on page
\resizebox{\textwidth}{!}{ %resize inserted page
\includegraphics[page =... | I wrote a package called `pdfoverlay` which allows you to overlay text on to an existing PDF. With slight modification to the macro that positions the PDF on to the page, you could make it place each PDF at the bottom of the page text and scaled to `\textwidth`.
You could use the `adjustbox` to frame each page easily.... |
440,046 | This is a follow-up on another thread in which I got advise on how to \includepdf with section and subsection titles on the included pdf: [\includepdf jumps to new page - can I avoid that?](https://tex.stackexchange.com/questions/440005/includepdf-jumps-to-new-page-can-i-avoid-that/440006?noredirect=1#comment1105008_44... | 2018/07/10 | [
"https://tex.stackexchange.com/questions/440046",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/132124/"
] | `\includepdf` has a `width` argument. Use this instead of `scale` to give the exact width:
```
\pagebreak
\section*{Appendix of Introduction}
\subsection*{Appendix a: Initial presentation of the project}
\newline
\begin{center} %centre on page
\resizebox{\textwidth}{!}{ %resize inserted page
\includegraphics[page =... | IMO the `\resizebox`+ `\includegraphics` combination is a heavy hack that doesn't take advantage of the `pdfpages` package which was considered as an option. The cropping and size control of this package can be used for a simpler code, if one use the powerfull `pagecommand` option.
Here is a MWE which produces a regul... |
67,582,379 | I am trying to return the data of the database query then access it as an array in the blade file, but i keep getting this error:Undefined array key "cover\_img".
my controller
```
$id=request()->segment(count(request()->segments()));
$userdata=DB::table('users')->select('id','first_name','last_name','profile_img','... | 2021/05/18 | [
"https://Stackoverflow.com/questions/67582379",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7432722/"
] | Your query gives you an `Illuminate\Support\Collection` object (a [collection](https://laravel.com/docs/8.x/collections#introduction)) that contains anonymous objects (stdClass):
```php
// This
$users = DB::table('users')->select('id','first_name','last_name','profile_img','cover_img')
->where('id',$id)->... | Let's looks at your Eloquent Quer here:
```
$userdata=DB::table('users')->select('id','first_name','last_name','profile_img','cover_img')
->where('id',$id)->get();
```
here get() method returns an array of user records. So instead of
```
$userdata['cover_img']!=null
```
You need to access cover\_img f... |
18,570,501 | I am trying to add nodes in a linked list, passing the pointer of pointer, accessing the member (\*list) -> next gives a segmentation fault. Can someone point out the mistake, thanks in advance. The code is
```
void initializeList (node ** head, int data)
{
*head = malloc (sizeof (node));
(*head)-> member = da... | 2013/09/02 | [
"https://Stackoverflow.com/questions/18570501",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2212551/"
] | You should not dereference a NULL pointer, otherwise as expected you get Seg Fault.
Here's the problem:
```
while (*list != NULL)
{
*list= (*list) -> next;
}
newNode -> member = data;
newNode -> next = NULL;
(*list) -> next = newNode;
```
`*list` is NULL after while loop.
And you are doing `(*list) -... | newNode points to NULL after the loop
You cannot set its member and next value
use
while(\*list->next!= NULL)
which ensures that you are not dereferencing NULL |
33,822,581 | So I recently started to use Composer with WordPress based on [this](https://davidwinter.me/install-and-manage-wordpress-with-composer/) tutorial.
This is my `composer.json` file:
```
{
"repositories": [
{
"type": "package",
"package": {
"name": "wordpress",
... | 2015/11/20 | [
"https://Stackoverflow.com/questions/33822581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3522687/"
] | It's great that you have `wp-content` split out into a separate directory.
Personally I only commit items in `wp-content` that are part of the current project. Another way to think of this is commit anything *not* added with Composer.
For example, you could be working on a site with a parent theme, which you are pull... | The idea is: anything generated should not be versioned.
>
> who will move (and how) the `wp-content` outside `wp` directory on the development environment.
>
>
>
That is a deployment issue, part of release management.
That means a post-receive hook on the server side would be in charge of generating the right... |
25,067 | I'm looking for an answer to the following question. (An answer to a slightly different question would be good as well, since it could be useful for the same purpose.)
>
> Given a set *C* consisting of *n*
> subsets of {1, 2, ..., *n*}, each of
> size *k*, does there exist some small A
> $\subset$ {1, 2, ..., *n*}... | 2010/05/17 | [
"https://mathoverflow.net/questions/25067",
"https://mathoverflow.net",
"https://mathoverflow.net/users/3410/"
] | I believe, reading the abstract, that the paper "Transversal numbers of uniform hypergraphs", Graphs and Combinatorics 6, no. 1, 1990 by Noga Alon answers your question in the affirmative, for some definition of ``your question''. Namely, the worst case is that $A$ has to have size about $2\log k/k$ times $n$, and this... | Do you want to know the size of A without having to look at what is in C, just looking at n and k?
If you do, you can easily find a few bounds on the size of A.
Lets call the sets in C, $C\_1, C\_2$ etc. and if we define $C\_1 = \{1, 2, ... k \}$ and then $C\_2 = \{k+1, k+2, ... 2k \}$ etc obviously upto $C\_{\lflo... |
220,657 | I messed up with my trackpad settings. I am also using bettertouchtool.
The problem is three finger drag has completely stopped working. None of trackpad settings in system preferences or options under accessibility are helping.
Is there any way I can reset trackpad settings to original, the way it came with factory... | 2015/12/23 | [
"https://apple.stackexchange.com/questions/220657",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/160743/"
] | this is what I did:
* uninstalled BTT
* entered in Terminal `mdfind -name bettertouchtool`
* entered in Terminal `sudo rm -rf /whatever`
went to /Library/Preferences
* removed *.GlobalPreferences.plist*
went to ~/Library/Preferences
* removed *.GlobalPreferences.plist*
* removed *com.apple.AppleMultitouchTrackpad... | First disable/quit BetterTouchTool. Then go to ~/Library/Preferences and rename/move/delete *com.hegenberg.BetterTouchTool.plist* and *com.apple.driver.AppleBluetoothMultitouch.trackpad.plist*.
Since you didn't specify the version of your operating system the name of the trackpad preferences may vary. I got mine by s... |
1,364,316 | i am trying to understand the second step in the formula per below - and how the summation sign $\sum\_{k=1}^K$ splits into the terms 1-$\sum\_{k=1}^{K-1}$ terms. Any help much appreciated
 | 2015/07/17 | [
"https://math.stackexchange.com/questions/1364316",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/254107/"
] | We have that
$$
\sum\limits\_{k=1}^K x\_k=\sum\limits\_{k=1}^K \mathbb{I}(x=k)=1
$$
since $x$ takes on exactly one of the values in $\{1,2,\ldots,K\}$. Therefore, $x\_K=1-\sum\limits\_{k=1}^{K-1} x\_k$.
Similarly, $\mu\_k=P(x=k)$ and hence $\sum\_{k=1}^K \mu\_k=1$ by the same argument. Thus, we also have $\mu\_K=1-\s... | First, not *'the summation sign splits'* but simply the last term of the sum gets separated:
$$
\sum\limits\_{k=1}^K x\_k \log \mu\_k = \left( \sum\limits\_{k=1}^{K-1} x\_k \log \mu\_k \right) + x\_K \log \mu\_K$$
Then the last term $(x\_K \log \mu\_k)$ gets replaced with equivalent expression, as @StefanHansen explai... |
42,159,474 | I am an all around newbie here (new to Blender, new to Python, and new to coding in general) so please bear with me.
I have a Blender script that generates a specific geometry and then renders an image. In the same script, I would then like to create a PDF file containing that image.
I have two different pdf generati... | 2017/02/10 | [
"https://Stackoverflow.com/questions/42159474",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7545750/"
] | Python provides an environment that allows you to run python code, the standard install contains the ability to read files and print text to the console running the python script, among a variety of other things.
To use functionality that isn't included with the standard python install we can install and use third par... | In your terminal type
```
sudo gnome-terminal
```
This will give you root access and then try running the code |
13,660,473 | I have a list as defined below that is populated from a `GridView`. Everything is OK.
What is the best method of saving / loading this list to/from a file (XML or otherwise is OK)?
Note: In the future, I will be encrypting the file.
**C# Code**
```
List<Item> lstNewItems = new List<Item>(); // Control Items
lstNe... | 2012/12/01 | [
"https://Stackoverflow.com/questions/13660473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438082/"
] | [ProtoBuf Net](http://code.google.com/p/protobuf-net/) is a binary serializer but it is very flexible and fast | for structured data, either XML or a very lightweight SQL RDBMS like SQLite or SQL Server Compact Edition will work well
I recommend `XML` reader/writer class for files because it is easily serialized
Serialization is an easy way to convert an object to a binary representation that can then be written to disk or s... |
13,660,473 | I have a list as defined below that is populated from a `GridView`. Everything is OK.
What is the best method of saving / loading this list to/from a file (XML or otherwise is OK)?
Note: In the future, I will be encrypting the file.
**C# Code**
```
List<Item> lstNewItems = new List<Item>(); // Control Items
lstNe... | 2012/12/01 | [
"https://Stackoverflow.com/questions/13660473",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1438082/"
] | **Solution C# Code**
```
#region Save the object
// Create a new XmlSerializer instance with the type of the test class
XmlSerializer SerializerObj = new XmlSerializer(typeof(List<Item>));
// Create a new file stream to write the serialized object to a file
TextWriter ... | for structured data, either XML or a very lightweight SQL RDBMS like SQLite or SQL Server Compact Edition will work well
I recommend `XML` reader/writer class for files because it is easily serialized
Serialization is an easy way to convert an object to a binary representation that can then be written to disk or s... |
53,661,373 | I have (maybe) an unusual issue with using `__FILE__` in a file within a file.
I created a snippet of code (in the php 5 my server mandates) to take elements of the current filename and put it into a variable to use later. After some headache, I got it working totally fine. However, I realized I didn't want to have to... | 2018/12/06 | [
"https://Stackoverflow.com/questions/53661373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6939840/"
] | While it's not as bad as I initially thought based on your description your code is still very fragile, and really only works by accident. If you have *any* other digits or hyphens it's going to go wrong, as below.
```
$infile = 'https://example-123.com/foo/42/bar/005-extremelynormalfile.html?x=8&y=9';
var_dump(
... | Quickly threw together a function that gets the url from the page as a variable, and replaced all occurrences of `__FILE__` with that variable, and it worked correctly. Assuming the user cannot edit the URL / URI in any way, this should work well enough. |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | 1.Below method will call automatically whenever your orientation changes. Do the necessary changes according to each orientation.
```
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (interfaceOrientation == UIInterfaceOrientationPortrait) {}
else if (interfaceOrientat... | I am learning the ins and outs of iOS Application development myself, so please forgive me for the brevity of my response.
I believe you may be able to find the answer to your issue within the section titled 'Responding to Orientation Changes' within this document on Apple's Developer Resources:
<http://developer.app... |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | I am learning the ins and outs of iOS Application development myself, so please forgive me for the brevity of my response.
I believe you may be able to find the answer to your issue within the section titled 'Responding to Orientation Changes' within this document on Apple's Developer Resources:
<http://developer.app... | In response to your questionsL
With regard to resizing on orientation change:
If you set your springs and struts accordingly it should autoresize automatically, alternatively you can do this in code as per deamonsarea's answer
To check if a view is exceeding the bounds of the superview use CGRectContainsRect
somethin... |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | I am learning the ins and outs of iOS Application development myself, so please forgive me for the brevity of my response.
I believe you may be able to find the answer to your issue within the section titled 'Responding to Orientation Changes' within this document on Apple's Developer Resources:
<http://developer.app... | I found this question while looking for a way to react to orientation change inside the UIView itself. In case anyone else comes along...
If you want to react to orientation change inside a `UIView`, rather than a `UIViewController` (for encapsulation or other reasons), you can use this method:
```
class MyView: UIVi... |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | 1.Below method will call automatically whenever your orientation changes. Do the necessary changes according to each orientation.
```
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (interfaceOrientation == UIInterfaceOrientationPortrait) {}
else if (interfaceOrientat... | In response to your questionsL
With regard to resizing on orientation change:
If you set your springs and struts accordingly it should autoresize automatically, alternatively you can do this in code as per deamonsarea's answer
To check if a view is exceeding the bounds of the superview use CGRectContainsRect
somethin... |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | 1.Below method will call automatically whenever your orientation changes. Do the necessary changes according to each orientation.
```
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (interfaceOrientation == UIInterfaceOrientationPortrait) {}
else if (interfaceOrientat... | I found this question while looking for a way to react to orientation change inside the UIView itself. In case anyone else comes along...
If you want to react to orientation change inside a `UIView`, rather than a `UIViewController` (for encapsulation or other reasons), you can use this method:
```
class MyView: UIVi... |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | 1.Below method will call automatically whenever your orientation changes. Do the necessary changes according to each orientation.
```
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (interfaceOrientation == UIInterfaceOrientationPortrait) {}
else if (interfaceOrientat... | In `viewDidLoad`
```
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(OrientationChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
```
Method for notify you that Orientation Changed:-
```
-(void)OrientationChange:(NSNotification*)notification
{
UIDeviceOrientation Orien... |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | In `viewDidLoad`
```
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(OrientationChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
```
Method for notify you that Orientation Changed:-
```
-(void)OrientationChange:(NSNotification*)notification
{
UIDeviceOrientation Orien... | In response to your questionsL
With regard to resizing on orientation change:
If you set your springs and struts accordingly it should autoresize automatically, alternatively you can do this in code as per deamonsarea's answer
To check if a view is exceeding the bounds of the superview use CGRectContainsRect
somethin... |
10,809,969 | My code goes like this:
```
- (void)viewDidLoad
{
[self setGridView];
}
-(void)setGridView
{
CGRect frame;
frame .origin.x=0;
frame.origin.y=20;
frame.size.width=GRID_WEIGHT;
frame.size.height=GRID_HEIGHT;
GridView *ObjGridView=[[GridView alloc]initWithFrame:frame];
[[NSBundle mainBundle ] loadNibNa... | 2012/05/30 | [
"https://Stackoverflow.com/questions/10809969",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1169154/"
] | In `viewDidLoad`
```
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(OrientationChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
```
Method for notify you that Orientation Changed:-
```
-(void)OrientationChange:(NSNotification*)notification
{
UIDeviceOrientation Orien... | I found this question while looking for a way to react to orientation change inside the UIView itself. In case anyone else comes along...
If you want to react to orientation change inside a `UIView`, rather than a `UIViewController` (for encapsulation or other reasons), you can use this method:
```
class MyView: UIVi... |
16,232,709 | The xml is as below:
```
<Words num="1">
<Word>
<search>Apple</search>
<replace>Fruit</replace>
</Word>
<Word num="2">
<search>Honda</search>
<replace>Car</replace>
</Word>
<Word num="3">
<search>Banana</search>
<replace>Fruit</replace>
</Word>
</... | 2013/04/26 | [
"https://Stackoverflow.com/questions/16232709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1069356/"
] | The XSLT supported in browsers like Mozilla, IE, Opera, Chrome is limited to XSLT version 1.0 which does not support `for-each-group`. With XSLT 1.0 you are limited to Muenchian grouping <http://www.jenitennison.com/xslt/grouping/muenchian.xml>.
As an alternative you could consider using Saxon CE, which provides XSLT ... | XSLT 2.0 is not natively supported in Firefox. Please refer the below link:
<https://developer.mozilla.org/en/docs/XSLT_2.0>
So I used the below XSLT using Muenchian grouping.
```
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output met... |
34,563,849 | I am trying to redirect a user to different page after user is authenticated. I am using jwt authentication and I tried with `$location`, `$window` for redirection but its throwing error `$state.go is not a function`. I am new to angular and I am guessing there should be way to redirect may using a service in angular b... | 2016/01/02 | [
"https://Stackoverflow.com/questions/34563849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1800583/"
] | The problem is the definition of your controller and the way you're handling your injections. And no, referring to your own answer to your question, the problem is not the "order" of the injections. It's a bit worse.
```
myApp.controller('loginController', ['$scope', '$http', 'jwtHelper', '$localStorage', '$state', fu... | You can use Angular $window:
```
$window.location.href = '/index.html';
``` |
34,563,849 | I am trying to redirect a user to different page after user is authenticated. I am using jwt authentication and I tried with `$location`, `$window` for redirection but its throwing error `$state.go is not a function`. I am new to angular and I am guessing there should be way to redirect may using a service in angular b... | 2016/01/02 | [
"https://Stackoverflow.com/questions/34563849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1800583/"
] | The problem is the definition of your controller and the way you're handling your injections. And no, referring to your own answer to your question, the problem is not the "order" of the injections. It's a bit worse.
```
myApp.controller('loginController', ['$scope', '$http', 'jwtHelper', '$localStorage', '$state', fu... | `$state. go` accepts the view *name*, not the *URL*. Replace `'/LoggedIn'` with `Logged` and you should be good. |
34,563,849 | I am trying to redirect a user to different page after user is authenticated. I am using jwt authentication and I tried with `$location`, `$window` for redirection but its throwing error `$state.go is not a function`. I am new to angular and I am guessing there should be way to redirect may using a service in angular b... | 2016/01/02 | [
"https://Stackoverflow.com/questions/34563849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1800583/"
] | The problem is the definition of your controller and the way you're handling your injections. And no, referring to your own answer to your question, the problem is not the "order" of the injections. It's a bit worse.
```
myApp.controller('loginController', ['$scope', '$http', 'jwtHelper', '$localStorage', '$state', fu... | You need to add $window as a dependency to your controller if you are using $window,
```
myApp.controller('loginController', ['$scope', '$http', 'jwtHelper', '$localStorage', '$state','$window', function ($scope, $http, jwtHelper, $localStorage, $sessionStorage, $state,$window)
{
$window.location.href = '/index.html';... |
34,563,849 | I am trying to redirect a user to different page after user is authenticated. I am using jwt authentication and I tried with `$location`, `$window` for redirection but its throwing error `$state.go is not a function`. I am new to angular and I am guessing there should be way to redirect may using a service in angular b... | 2016/01/02 | [
"https://Stackoverflow.com/questions/34563849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1800583/"
] | The problem is the definition of your controller and the way you're handling your injections. And no, referring to your own answer to your question, the problem is not the "order" of the injections. It's a bit worse.
```
myApp.controller('loginController', ['$scope', '$http', 'jwtHelper', '$localStorage', '$state', fu... | Use $state.go instead of `$window` and `location`.
Add $state injector on controller
write code `$state.go('LoggedIn');`
Instead `$state.go('/LoggedIn');`
>
> Write state name('LoggedIn') instead of url('/LoggedIn').
>
>
>
Hopefully this will work in your case. |
467,136 | I'm confusing myself. Let's represent some state in the eigenbasis for Hydrogen:
$$|\psi\rangle = \sum\_{n,l,m}|n,l,m\rangle\langle n,l,m|\psi\rangle.$$
Now denote the initial state by $\psi(t=0)\equiv\psi\_o$, and hit this thing with time evolution:
$$U|\psi\rangle = \sum\_{n,l,m}e^{-iE\_nt/\hbar}|n,l,m\rangle\lang... | 2019/03/18 | [
"https://physics.stackexchange.com/questions/467136",
"https://physics.stackexchange.com",
"https://physics.stackexchange.com/users/42720/"
] | This is in general true whenever you calculate the projection onto an eigenstate (and not a combination thereof). Let $\left\{|a\rangle\right\}\_{a\in A}$ be a set of
eigentstates for the Hamiltionian $\hat{H}$, a state at time $t$ can be written as
$$
|\psi(t)\rangle = \sum\_{a}\hat{U}(t)|a\rangle\langle a |\psi\_0\r... | You just happened to consider an observable (or rather, a pair of observables) that is, in fact, an integral (integrals) of motion of the system. In other words, the probability of measuring any value of $(l,m)$ is in fact not expected to change during time evolution.
*This is not true for other observables in general... |
26,705,071 | I had just installed eclipse luna and I use the marketplace to install oracle package to use glassfish v4.0. Everything went ok but when I'm trying to install it they still show me an error at the server root path (Error: The specified directory is not a valid GlassFish installation.)...I don't know why? this happen ev... | 2014/11/02 | [
"https://Stackoverflow.com/questions/26705071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4208512/"
] | I got caught by this trying to following along with the Lynda.com tutorial on web services with Java EE. You need to download and install Glassfish and then point the server root to the glassfish directory. Here are the steps I took:
1. download glassfish from here: <https://glassfish.java.net/download.html>
2. unzip ... | Possible duplicate of [How do I use Glass fish server with eclipse luna for Java EE?](https://stackoverflow.com/questions/26723197/how-do-i-use-glass-fish-server-with-eclipse-luna-for-java-ee)
However, you need to specify the "glassfish" folder under the extracted GlassFish files, for example ...\glassfish4\glassfish |
26,705,071 | I had just installed eclipse luna and I use the marketplace to install oracle package to use glassfish v4.0. Everything went ok but when I'm trying to install it they still show me an error at the server root path (Error: The specified directory is not a valid GlassFish installation.)...I don't know why? this happen ev... | 2014/11/02 | [
"https://Stackoverflow.com/questions/26705071",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4208512/"
] | I got caught by this trying to following along with the Lynda.com tutorial on web services with Java EE. You need to download and install Glassfish and then point the server root to the glassfish directory. Here are the steps I took:
1. download glassfish from here: <https://glassfish.java.net/download.html>
2. unzip ... | First Download full platform from <https://glassfish.java.net/download.html>
Unzip it.
At the window you read this error, go to the browse for server root and find the glassfish folder inside your unzipped folder. Click on it and your error will be gone. |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | You could add italics:
>
> Salads are tasty, delicious, healthy, *and* cheap.
>
>
>
It emphasizes the "and"; that is, that salads have all of these qualities, not just some. It also has a side effect of putting a bit more emphasis on the last adjective in the list, but that might be an effect you are looking for. | You seem to ask for a way of implying a contrast between adjectives, i.e., healthy vs tasty.
One might say:
"Salads are not only healthy, they are tasty and delicious."
Implying a contrast between three adjectives might use a little italicizing as a hint about how to stress words:
"Not only are salads healthy, they... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | If you need to call it out explicitly (as you do with "both"), then:
>
> Salads are all of tasty, delicious, healthy, and cheap.
>
>
>
You could say "each of" instead of "all of", but not just "each" -- that would be ungrammatical the way you have it, and could lead people to believe you're talking about multiple... | You seem to ask for a way of implying a contrast between adjectives, i.e., healthy vs tasty.
One might say:
"Salads are not only healthy, they are tasty and delicious."
Implying a contrast between three adjectives might use a little italicizing as a hint about how to stress words:
"Not only are salads healthy, they... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | I agree with Monica that the form "Salads are a, b, c and d" is reasonable, and with Irene that placing *All* at the beginning of the sentence works ok.
Sticking a little closer to your original "Salads are both a and b" form, substituting *at once* for *both* allows
>
> Salads are at once a, b, c and d
>
>
>
wh... | You seem to ask for a way of implying a contrast between adjectives, i.e., healthy vs tasty.
One might say:
"Salads are not only healthy, they are tasty and delicious."
Implying a contrast between three adjectives might use a little italicizing as a hint about how to stress words:
"Not only are salads healthy, they... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | If you need to call it out explicitly (as you do with "both"), then:
>
> Salads are all of tasty, delicious, healthy, and cheap.
>
>
>
You could say "each of" instead of "all of", but not just "each" -- that would be ungrammatical the way you have it, and could lead people to believe you're talking about multiple... | Your sentence would be correct like this:
>
> All the salads are tasty, delicious, healthy and cheap.
>
>
>
The use of **all** in the beginning of the sentence ensures that the qualities described by each adjective apply to all the salads.
If you have different types of salads, then you can have a sentence of t... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | Your sentence would be correct like this:
>
> All the salads are tasty, delicious, healthy and cheap.
>
>
>
The use of **all** in the beginning of the sentence ensures that the qualities described by each adjective apply to all the salads.
If you have different types of salads, then you can have a sentence of t... | You seem to ask for a way of implying a contrast between adjectives, i.e., healthy vs tasty.
One might say:
"Salads are not only healthy, they are tasty and delicious."
Implying a contrast between three adjectives might use a little italicizing as a hint about how to stress words:
"Not only are salads healthy, they... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | I agree with Monica that the form "Salads are a, b, c and d" is reasonable, and with Irene that placing *All* at the beginning of the sentence works ok.
Sticking a little closer to your original "Salads are both a and b" form, substituting *at once* for *both* allows
>
> Salads are at once a, b, c and d
>
>
>
wh... | If you need to call it out explicitly (as you do with "both"), then:
>
> Salads are all of tasty, delicious, healthy, and cheap.
>
>
>
You could say "each of" instead of "all of", but not just "each" -- that would be ungrammatical the way you have it, and could lead people to believe you're talking about multiple... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | I agree with Monica that the form "Salads are a, b, c and d" is reasonable, and with Irene that placing *All* at the beginning of the sentence works ok.
Sticking a little closer to your original "Salads are both a and b" form, substituting *at once* for *both* allows
>
> Salads are at once a, b, c and d
>
>
>
wh... | We say *all three of them, all four of them, ..., all seventy-nine of them, ...*, etc. It turns out, though, that \**all two of them* is ungrammatical.
As is often the case with special numbers like *one* or *two* or *twelve*, there is a special word, *both*, which we use instead of the ungrammatical \**all two*. If ... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | You could add italics:
>
> Salads are tasty, delicious, healthy, *and* cheap.
>
>
>
It emphasizes the "and"; that is, that salads have all of these qualities, not just some. It also has a side effect of putting a bit more emphasis on the last adjective in the list, but that might be an effect you are looking for. | We say *all three of them, all four of them, ..., all seventy-nine of them, ...*, etc. It turns out, though, that \**all two of them* is ungrammatical.
As is often the case with special numbers like *one* or *two* or *twelve*, there is a special word, *both*, which we use instead of the ungrammatical \**all two*. If ... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | I agree with Monica that the form "Salads are a, b, c and d" is reasonable, and with Irene that placing *All* at the beginning of the sentence works ok.
Sticking a little closer to your original "Salads are both a and b" form, substituting *at once* for *both* allows
>
> Salads are at once a, b, c and d
>
>
>
wh... | Your sentence would be correct like this:
>
> All the salads are tasty, delicious, healthy and cheap.
>
>
>
The use of **all** in the beginning of the sentence ensures that the qualities described by each adjective apply to all the salads.
If you have different types of salads, then you can have a sentence of t... |
52,910 | >
> **Possible Duplicate:**
>
> [Equivalent of “both” when referring three or more items?](https://english.stackexchange.com/questions/22357/equivalent-of-both-when-referring-three-or-more-items)
>
>
>
Consider this statement:
>
> Salads are both tasty and delicious.
>
>
>
Is there a natural way to use t... | 2011/12/27 | [
"https://english.stackexchange.com/questions/52910",
"https://english.stackexchange.com",
"https://english.stackexchange.com/users/12448/"
] | I agree with Monica that the form "Salads are a, b, c and d" is reasonable, and with Irene that placing *All* at the beginning of the sentence works ok.
Sticking a little closer to your original "Salads are both a and b" form, substituting *at once* for *both* allows
>
> Salads are at once a, b, c and d
>
>
>
wh... | *Both* in such sentences may be replaced with ***simultaneously*** without your having to alter the structure of the sentence.
>
> Salads are simultaneously tasty, delicious, healthy, and cheap.
>
>
>
*Both* essentially means *two together*; *simultaneously* means *occurring at the same moment.* |
11,071,160 | I have below structure
```
<div class="mybox">
<div id="imageslide">
<a href=""><img src="url" /></a>
</div>
</div>
```
It has fixed position and left:300px; means it will start from left side after 300px now I want to make mybox div width fill remaining space of the screen. So I can use 100% to #imageslide whic... | 2012/06/17 | [
"https://Stackoverflow.com/questions/11071160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1053190/"
] | You should provide some sample code so we know what you're trying to accomplish. Why do you want to know when the page has ended? To draw new content? To print out some diagnostic information?
Assuming you want to draw something after a page has been rendered, you can use the `afterPage()` method, which is provided in... | You have to count the lines used yourself.
I use a procedure that includes:
```
lin += inc
if lin > 580:
doc.append(PageBreak())
lin = 5
```
By knowing how many lines a table uses you can know if it will fit in the rest of the page.
I use counting 'points' so I can deal with lines of different height. |
11,071,160 | I have below structure
```
<div class="mybox">
<div id="imageslide">
<a href=""><img src="url" /></a>
</div>
</div>
```
It has fixed position and left:300px; means it will start from left side after 300px now I want to make mybox div width fill remaining space of the screen. So I can use 100% to #imageslide whic... | 2012/06/17 | [
"https://Stackoverflow.com/questions/11071160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1053190/"
] | You should provide some sample code so we know what you're trying to accomplish. Why do you want to know when the page has ended? To draw new content? To print out some diagnostic information?
Assuming you want to draw something after a page has been rendered, you can use the `afterPage()` method, which is provided in... | Breaking a table over multiple pages requires using your own templates according to [How to split ReportLab table across PDF page (side by side)?](https://stackoverflow.com/questions/9370699/how-to-split-reportlab-table-across-pdf-page-side-by-side)
Tables should break automatically when they reach the end of the page... |
11,071,160 | I have below structure
```
<div class="mybox">
<div id="imageslide">
<a href=""><img src="url" /></a>
</div>
</div>
```
It has fixed position and left:300px; means it will start from left side after 300px now I want to make mybox div width fill remaining space of the screen. So I can use 100% to #imageslide whic... | 2012/06/17 | [
"https://Stackoverflow.com/questions/11071160",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1053190/"
] | You should provide some sample code so we know what you're trying to accomplish. Why do you want to know when the page has ended? To draw new content? To print out some diagnostic information?
Assuming you want to draw something after a page has been rendered, you can use the `afterPage()` method, which is provided in... | automatic split longtable to multiple page, like this:
```
from reportlab.platypus import LongTable, TableStyle, BaseDocTemplate, Frame, PageTemplate
from reportlab.lib.pagesizes import letter
from reportlab.lib import colors
def test():
doc = BaseDocTemplate(
"test.pdf",
pagesize=letter,
... |
4,183,983 | I went through some introductory videos of this topic and this was an idea presented in each. Exactly, what does geometric algebra do different than linear algebra which makes this operation sensible?
Point is mentioned at 11:52 of this [video](https://youtu.be/60z_hpEAtD8?t=709) right after introducing the geometric ... | 2021/06/26 | [
"https://math.stackexchange.com/questions/4183983",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/688539/"
] | This is from my book:
How can we add, e.g, a scalar and a vector? Are we not adding apples and oranges? Yes, but there is a sense in which we *can* add apples and oranges: put them together in a bag. The apples and oranges retain their separate identities, but there are “apples + oranges” in the bag. | The short answer is something like "because you can define anything you want in mathematics" (the [video](https://www.youtube.com/watch?v=60z_hpEAtD8&t=709s) linked in the [OP](https://www.urbandictionary.com/define.php?term=OP#5393886)). And the long answer(s) depend on a choice of foundations of math that 1. was not ... |
4,183,983 | I went through some introductory videos of this topic and this was an idea presented in each. Exactly, what does geometric algebra do different than linear algebra which makes this operation sensible?
Point is mentioned at 11:52 of this [video](https://youtu.be/60z_hpEAtD8?t=709) right after introducing the geometric ... | 2021/06/26 | [
"https://math.stackexchange.com/questions/4183983",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/688539/"
] | The short answer is something like "because you can define anything you want in mathematics" (the [video](https://www.youtube.com/watch?v=60z_hpEAtD8&t=709s) linked in the [OP](https://www.urbandictionary.com/define.php?term=OP#5393886)). And the long answer(s) depend on a choice of foundations of math that 1. was not ... | I would like to present a more geometric perspective on this, based on my answer given here: <https://math.stackexchange.com/a/4304117/322997>
Vectors can be thought of as representing (hyper)planes. For example, in 3D space a vector can be used to represent a plane through the origin. Now, a plane $u$ can be reflecte... |
4,183,983 | I went through some introductory videos of this topic and this was an idea presented in each. Exactly, what does geometric algebra do different than linear algebra which makes this operation sensible?
Point is mentioned at 11:52 of this [video](https://youtu.be/60z_hpEAtD8?t=709) right after introducing the geometric ... | 2021/06/26 | [
"https://math.stackexchange.com/questions/4183983",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/688539/"
] | This is from my book:
How can we add, e.g, a scalar and a vector? Are we not adding apples and oranges? Yes, but there is a sense in which we *can* add apples and oranges: put them together in a bag. The apples and oranges retain their separate identities, but there are “apples + oranges” in the bag. | A geometric algebra is a vector space where the elements are products of vectors. Suppose, for example, we are working with a 3D Euclidian orthonormal basis $ \left\{ {\mathbf{e}\_1, \mathbf{e}\_2, \mathbf{e}\_3 } \right\} $. Then the following would all be elements of the geometric algebra that is said to be generated... |
4,183,983 | I went through some introductory videos of this topic and this was an idea presented in each. Exactly, what does geometric algebra do different than linear algebra which makes this operation sensible?
Point is mentioned at 11:52 of this [video](https://youtu.be/60z_hpEAtD8?t=709) right after introducing the geometric ... | 2021/06/26 | [
"https://math.stackexchange.com/questions/4183983",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/688539/"
] | A geometric algebra is a vector space where the elements are products of vectors. Suppose, for example, we are working with a 3D Euclidian orthonormal basis $ \left\{ {\mathbf{e}\_1, \mathbf{e}\_2, \mathbf{e}\_3 } \right\} $. Then the following would all be elements of the geometric algebra that is said to be generated... | I would like to present a more geometric perspective on this, based on my answer given here: <https://math.stackexchange.com/a/4304117/322997>
Vectors can be thought of as representing (hyper)planes. For example, in 3D space a vector can be used to represent a plane through the origin. Now, a plane $u$ can be reflecte... |
4,183,983 | I went through some introductory videos of this topic and this was an idea presented in each. Exactly, what does geometric algebra do different than linear algebra which makes this operation sensible?
Point is mentioned at 11:52 of this [video](https://youtu.be/60z_hpEAtD8?t=709) right after introducing the geometric ... | 2021/06/26 | [
"https://math.stackexchange.com/questions/4183983",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/688539/"
] | This is from my book:
How can we add, e.g, a scalar and a vector? Are we not adding apples and oranges? Yes, but there is a sense in which we *can* add apples and oranges: put them together in a bag. The apples and oranges retain their separate identities, but there are “apples + oranges” in the bag. | I would like to present a more geometric perspective on this, based on my answer given here: <https://math.stackexchange.com/a/4304117/322997>
Vectors can be thought of as representing (hyper)planes. For example, in 3D space a vector can be used to represent a plane through the origin. Now, a plane $u$ can be reflecte... |
33,289,271 | I'm using `ngRoute` in `angularjs` to delegate different html templates, eg:
```
phonecatApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/phones', {
templateUrl: 'partials/phone-list.html',
controller: 'PhoneListCtrl'
}).
when('/cars', {
te... | 2015/10/22 | [
"https://Stackoverflow.com/questions/33289271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1194415/"
] | It sounds like you might want to take a step back and reconsider why you're trying to tackle it this way but given your constraints, your best bet may be to have a service that returns the correct URL and call it from the controller:
```
phonecatApp.controller("trafficCtrl", function ($routeParams,trafficService,$loca... | I don't know if this is right solution.. But you can create a new route `/myapp` .. Write a controller and redirect using `$location` service .. After finding the query para value using `$location.query()` and redirect it accordingly |
33,289,271 | I'm using `ngRoute` in `angularjs` to delegate different html templates, eg:
```
phonecatApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/phones', {
templateUrl: 'partials/phone-list.html',
controller: 'PhoneListCtrl'
}).
when('/cars', {
te... | 2015/10/22 | [
"https://Stackoverflow.com/questions/33289271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1194415/"
] | I don't know if this is right solution.. But you can create a new route `/myapp` .. Write a controller and redirect using `$location` service .. After finding the query para value using `$location.query()` and redirect it accordingly | If we make it a REST call like **/my-app/Nokia** or **my-app/Samsung** instead of Query params, I think we can dynamically route it in the config itself.
```
phonecatApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/my-app/:myparam', {
templateUrl: function(params){
... |
33,289,271 | I'm using `ngRoute` in `angularjs` to delegate different html templates, eg:
```
phonecatApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/phones', {
templateUrl: 'partials/phone-list.html',
controller: 'PhoneListCtrl'
}).
when('/cars', {
te... | 2015/10/22 | [
"https://Stackoverflow.com/questions/33289271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1194415/"
] | It sounds like you might want to take a step back and reconsider why you're trying to tackle it this way but given your constraints, your best bet may be to have a service that returns the correct URL and call it from the controller:
```
phonecatApp.controller("trafficCtrl", function ($routeParams,trafficService,$loca... | If we make it a REST call like **/my-app/Nokia** or **my-app/Samsung** instead of Query params, I think we can dynamically route it in the config itself.
```
phonecatApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/my-app/:myparam', {
templateUrl: function(params){
... |
4,401,505 | [](https://i.stack.imgur.com/3zoNc.png)
My question is about the sentence "It follows that $T^+$ is ... linear". I tried writing down the details but it doesn't seem to follow. We want
$$T^+(f-g)=\sup\{T(h): 0\le h \le f\} - \sup\{T(h'):0\le h'\le g\}... | 2022/03/12 | [
"https://math.stackexchange.com/questions/4401505",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/716778/"
] | We have to show that $T^+$ is additive on nonnegative functions. Let $f\_1,f\_2\ge 0$ and $0\le g\_1\le f\_2,$ $0\le g\_2\le f\_2.$ Then $0\le g\_1+g\_2\le f\_1+f\_2.$ Therefore
$$T^+(f\_1+f\_2)\ge T(g\_1+g\_2)=T(g\_1)+T(g\_2).$$ Therefore
$$T^+(f\_1+f\_2)\ge \sup\_{0\le g\_1\le f\_1}T(g\_1)+\sup\_{0\le g\_2\le f\_1}T(... | I prove this in my honours thesis. It's been a while since I've looked at vector lattices though. The key observation appears in paragraph 3 of the proof below.
>
> **Proposition**
> Suppose $V$ is a normed vector lattice, and define the partial order $\le$ on $V^\*$ by
> $$f \le g \iff f(x) \le g(x) ~ \forall x \in ... |
29,310,893 | I have a graph in my webpage and whenever I click a point in my graph, I want a div to be updated with new content. Through my function, I managed to update it, but when I click on a new point, new content is added to the old one and so on, given that I want to have only the current content in my div.
Here's my functi... | 2015/03/27 | [
"https://Stackoverflow.com/questions/29310893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3936380/"
] | I my opinion, if you want to change data in a div when something is clicked,
you could do it this way:
```
<script>
$(document).ready(function() {
$(".point").click(function() {
var content = $(this).attr('value');
$("#div-to-update").html(content);
});
});
</script>
```
in the body of your page... | if you want to remove all child nodes of the set of matched elements from the DOM use `empty()`
```
$("#chart_div").click(function(){
$("#div_to_update").empty();
});
``` |
29,310,893 | I have a graph in my webpage and whenever I click a point in my graph, I want a div to be updated with new content. Through my function, I managed to update it, but when I click on a new point, new content is added to the old one and so on, given that I want to have only the current content in my div.
Here's my functi... | 2015/03/27 | [
"https://Stackoverflow.com/questions/29310893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3936380/"
] | I my opinion, if you want to change data in a div when something is clicked,
you could do it this way:
```
<script>
$(document).ready(function() {
$(".point").click(function() {
var content = $(this).attr('value');
$("#div-to-update").html(content);
});
});
</script>
```
in the body of your page... | if you want remove inside of your div use this function
```
$("#div_to_update").empty();
```
also **.text(content)** only sets the content as text, not html.
If you want to set it as html use **.html()** function like this
```
$("#div_to_update").html(content);
``` |
13,964 | I have a USB rocket launcher that I wish to experiment with through `libusb`. However, libusb cannot claim the interface; presumably because the output of `usb-devices` lists 'usbhid' as the driver for the device.
From reading around on the internet, I've only come to the conclusion that I need to detach this driver f... | 2011/05/28 | [
"https://unix.stackexchange.com/questions/13964",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/7868/"
] | If you simply run the libusb program as root,
```
usb_detach_kernel_driver_np()
```
actually works as expected. | I think you will need to add the device id to `udev`'s blacklist so that no module, including usbhid, gets attached to it. |
13,964 | I have a USB rocket launcher that I wish to experiment with through `libusb`. However, libusb cannot claim the interface; presumably because the output of `usb-devices` lists 'usbhid' as the driver for the device.
From reading around on the internet, I've only come to the conclusion that I need to detach this driver f... | 2011/05/28 | [
"https://unix.stackexchange.com/questions/13964",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/7868/"
] | I think you will need to add the device id to `udev`'s blacklist so that no module, including usbhid, gets attached to it. | For me (Debian sid/stretch), the udev `$id` attribute is empty when I plug in my USB device. It is `$kernel` that contains the necessary string to pass to USBHID's unbind.
Here are the udev rules that I'm using:
```
SUBSYSTEM=="usb", ATTRS{idVendor}=="0000", ATTRS{idProduct}=="0000", MODE="0660", GROUP="plugdev"
ATTR... |
13,964 | I have a USB rocket launcher that I wish to experiment with through `libusb`. However, libusb cannot claim the interface; presumably because the output of `usb-devices` lists 'usbhid' as the driver for the device.
From reading around on the internet, I've only come to the conclusion that I need to detach this driver f... | 2011/05/28 | [
"https://unix.stackexchange.com/questions/13964",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/7868/"
] | If you simply run the libusb program as root,
```
usb_detach_kernel_driver_np()
```
actually works as expected. | I think that the following udev rule will do what you want:
```
SUBSYSTEM=="usb", ATTRS{idVendor}=="0a81", ATTRS{idProduct}=="0701", MODE="0660", GROUP="plugdev", RUN="/bin/sh -c 'echo -n $id:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
```
Your user will need to be a member of the plugdev group to gain access. There'... |
13,964 | I have a USB rocket launcher that I wish to experiment with through `libusb`. However, libusb cannot claim the interface; presumably because the output of `usb-devices` lists 'usbhid' as the driver for the device.
From reading around on the internet, I've only come to the conclusion that I need to detach this driver f... | 2011/05/28 | [
"https://unix.stackexchange.com/questions/13964",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/7868/"
] | If you simply run the libusb program as root,
```
usb_detach_kernel_driver_np()
```
actually works as expected. | For me (Debian sid/stretch), the udev `$id` attribute is empty when I plug in my USB device. It is `$kernel` that contains the necessary string to pass to USBHID's unbind.
Here are the udev rules that I'm using:
```
SUBSYSTEM=="usb", ATTRS{idVendor}=="0000", ATTRS{idProduct}=="0000", MODE="0660", GROUP="plugdev"
ATTR... |
13,964 | I have a USB rocket launcher that I wish to experiment with through `libusb`. However, libusb cannot claim the interface; presumably because the output of `usb-devices` lists 'usbhid' as the driver for the device.
From reading around on the internet, I've only come to the conclusion that I need to detach this driver f... | 2011/05/28 | [
"https://unix.stackexchange.com/questions/13964",
"https://unix.stackexchange.com",
"https://unix.stackexchange.com/users/7868/"
] | I think that the following udev rule will do what you want:
```
SUBSYSTEM=="usb", ATTRS{idVendor}=="0a81", ATTRS{idProduct}=="0701", MODE="0660", GROUP="plugdev", RUN="/bin/sh -c 'echo -n $id:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
```
Your user will need to be a member of the plugdev group to gain access. There'... | For me (Debian sid/stretch), the udev `$id` attribute is empty when I plug in my USB device. It is `$kernel` that contains the necessary string to pass to USBHID's unbind.
Here are the udev rules that I'm using:
```
SUBSYSTEM=="usb", ATTRS{idVendor}=="0000", ATTRS{idProduct}=="0000", MODE="0660", GROUP="plugdev"
ATTR... |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | The easiest way to cancel an in-app purchase is to consume it. If you use the Google provided [IabHelper](https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/src/main/java/com/example/android/trivialdrivesample/util/IabHelper.java) you can just call consumeAsync and pass in the Purchase. ... | What I get from the Android developer site is that they prevent the purchase flow from at all getting to the point where you have to pay for it if it is a test purchase. It makes it easier because Google makes sure you do not pay for test purchases. It stops them within 14 days. The accounts that are to do that needs t... |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | What I get from the Android developer site is that they prevent the purchase flow from at all getting to the point where you have to pay for it if it is a test purchase. It makes it easier because Google makes sure you do not pay for test purchases. It stops them within 14 days. The accounts that are to do that needs t... | This is an up-to-date Kotlin code that will consume all your purchases so you can buy them again. BE CAREFUL not to use this in production code, since doing this will surely have undesired behaviours.
Clearly, you'll have to obtain your purchases previously.
```
fun consumeAllTestPurchases(purchases: ArrayList<Purcha... |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | What I get from the Android developer site is that they prevent the purchase flow from at all getting to the point where you have to pay for it if it is a test purchase. It makes it easier because Google makes sure you do not pay for test purchases. It stops them within 14 days. The accounts that are to do that needs t... | If you use a similar way than TrivialDriveKotlin, I post an functional answer in this post <https://stackoverflow.com/a/61141740/1568148> |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | The easiest way to cancel an in-app purchase is to consume it. If you use the Google provided [IabHelper](https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/src/main/java/com/example/android/trivialdrivesample/util/IabHelper.java) you can just call consumeAsync and pass in the Purchase. ... | I am late to the question, but this is the most recent way to refund/cancel in-app purchases from Google. On you Google Play Console in the left hand menu there is a menu item called Order management. This brings up an order summary with a blue REFUND button at the bottom. Click this, select a reason for the refund and... |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | The easiest way to cancel an in-app purchase is to consume it. If you use the Google provided [IabHelper](https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/src/main/java/com/example/android/trivialdrivesample/util/IabHelper.java) you can just call consumeAsync and pass in the Purchase. ... | This is an up-to-date Kotlin code that will consume all your purchases so you can buy them again. BE CAREFUL not to use this in production code, since doing this will surely have undesired behaviours.
Clearly, you'll have to obtain your purchases previously.
```
fun consumeAllTestPurchases(purchases: ArrayList<Purcha... |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | The easiest way to cancel an in-app purchase is to consume it. If you use the Google provided [IabHelper](https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/src/main/java/com/example/android/trivialdrivesample/util/IabHelper.java) you can just call consumeAsync and pass in the Purchase. ... | If you use a similar way than TrivialDriveKotlin, I post an functional answer in this post <https://stackoverflow.com/a/61141740/1568148> |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | I am late to the question, but this is the most recent way to refund/cancel in-app purchases from Google. On you Google Play Console in the left hand menu there is a menu item called Order management. This brings up an order summary with a blue REFUND button at the bottom. Click this, select a reason for the refund and... | This is an up-to-date Kotlin code that will consume all your purchases so you can buy them again. BE CAREFUL not to use this in production code, since doing this will surely have undesired behaviours.
Clearly, you'll have to obtain your purchases previously.
```
fun consumeAllTestPurchases(purchases: ArrayList<Purcha... |
38,130,035 | I have been using Google Play in-app purchases (IAPs) for a long time, but recently (June 20, 2016). They updated the Payments Merchant Center so that test purchases are not shown anymore. I quote a recent email to developers:
"Previously, test purchases for one-time IAPs generated order IDs. Starting June 20, 2016, o... | 2016/06/30 | [
"https://Stackoverflow.com/questions/38130035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1621244/"
] | I am late to the question, but this is the most recent way to refund/cancel in-app purchases from Google. On you Google Play Console in the left hand menu there is a menu item called Order management. This brings up an order summary with a blue REFUND button at the bottom. Click this, select a reason for the refund and... | If you use a similar way than TrivialDriveKotlin, I post an functional answer in this post <https://stackoverflow.com/a/61141740/1568148> |
62,913,038 | I have a problem where I want to display two wrappers next to each other.
I specifically want to put the moving shape next to the text.
The pen is here: <https://codepen.io/jlanssie/pen/xxZaaJW>
However, I cannot seem to get it to work.
```css
* {
margin: 0;
border: 0;
padding: 0;
}
... | 2020/07/15 | [
"https://Stackoverflow.com/questions/62913038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6830765/"
] | Connect the font to the project (as you usually do) and just add your font to `tailwind.config.js`
```
module.exports = {
theme: {
fontFamily: {
'sans': ['-apple-system', 'BlinkMacSystemFont', ...],
'serif': ['Georgia', 'Cambria', ...],
'mono': ['SFMono-Regular', 'Menlo', ...],
'your-font': [... | tailwind.config.js :
```
theme: {
extend: {
fontFamily: {
body: ['Rowdies']
}
}
},
```
css\app.css
```
@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300&display=swap');
```
shell:
```
npm run dev
or
npm run watch
```
now you can use `.font-body` class... |
33,978,158 | How would I create a polynomial function using an array? Basically I want to display the polynomial (ex. x^2 + 3x + 5). Then, I want to show what the highest polynomial degree is. For example, x^2 + 3x + 5 = 2 (highest degree). | 2015/11/29 | [
"https://Stackoverflow.com/questions/33978158",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5614578/"
] | The first `.*` is too greedy and matches too much (everything up to `x` - because `\d*` allows for an empty string to be matched). You can use non greedy `.*?`:
```
^.*?(?<width>\d*)x(?<height>\d*).*$
```
Alternatively, match non-digits in the first part:
```
^[^\d]*(?<width>\d*)x(?<height>\d*).*$
```
If the widt... | Thats because your first .\* is greedy and captures everything until the x, since you allow 0-n digits.
So I see two fast replacements:
```
^\D*(?<width>\d*)x(?<height>\d*)\D*$
```
would search for non-Digits before the width
you can also do
```
^.*?(?<width>\d*)x(?<height>\d*).*?$
```
which would be a non-gree... |
26,874,472 | I am newish to iOS development and have gone through tutorials using Objective-C but am now trying Swift. Anyway, I am writing an app and have a bar button item that segues to another view which has three UITextFields on it. When the user taps inside the first UITextField I want to the keyboard to popup. I use an actio... | 2014/11/11 | [
"https://Stackoverflow.com/questions/26874472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4241176/"
] | If you type using your physical keyboard, does your input go to your text field as you expect? In the iOS8 simulator, the keyboard is hidden by default. See `Hardware -> Keyboard` settings on your iOS Simulator. | If you are able to type with the computers keyboard, it means the 'becomeFirstResponder' has been issued, iOS 8 hides the keyboard by default on a simulator, that might be the reason why you can't see the keyboard pop out |
342,991 | I read [this](https://stackoverflow.com/questions/42041948/making-boxes-around-circles-with-numbers) question and flagged it as *too broad* along with some constructive comments.
The question was how to make an user draw shapes in a window and then calculate how many circles were enclosed, with some restrictions. I c... | 2017/02/05 | [
"https://meta.stackoverflow.com/questions/342991",
"https://meta.stackoverflow.com",
"https://meta.stackoverflow.com/users/6486738/"
] | >
> Is it on topic to ask for guidelines to solve a bigger problem?
>
>
>
Yes, *as long as* the asker frames their question with enough detail on what they are trying to do so that the question doesn't:
* *Unavoidably* require unreasonably long answers (be it due to needing too much code or explanations of too ma... | Asking how to *go about* doing something is definitely on-topic, and many times such questions and their answers are more useful than questions just asking for code. Such requests *can* still be too broad if there are too many possible answers or good answers would be too long for the format.
Who knows, such question... |
342,991 | I read [this](https://stackoverflow.com/questions/42041948/making-boxes-around-circles-with-numbers) question and flagged it as *too broad* along with some constructive comments.
The question was how to make an user draw shapes in a window and then calculate how many circles were enclosed, with some restrictions. I c... | 2017/02/05 | [
"https://meta.stackoverflow.com/questions/342991",
"https://meta.stackoverflow.com",
"https://meta.stackoverflow.com/users/6486738/"
] | Asking how to *go about* doing something is definitely on-topic, and many times such questions and their answers are more useful than questions just asking for code. Such requests *can* still be too broad if there are too many possible answers or good answers would be too long for the format.
Who knows, such question... | >
> Is it on topic to ask for guidelines to solve a bigger problem?
>
>
>
Lets put it this way: asking about how to get to the moon is too broad, asking how to build the rocket to get to the moon is too broad, asking about what route has to be taken to get to the moon is too broad; asking about how to get telemetr... |
342,991 | I read [this](https://stackoverflow.com/questions/42041948/making-boxes-around-circles-with-numbers) question and flagged it as *too broad* along with some constructive comments.
The question was how to make an user draw shapes in a window and then calculate how many circles were enclosed, with some restrictions. I c... | 2017/02/05 | [
"https://meta.stackoverflow.com/questions/342991",
"https://meta.stackoverflow.com",
"https://meta.stackoverflow.com/users/6486738/"
] | >
> Is it on topic to ask for guidelines to solve a bigger problem?
>
>
>
Yes, *as long as* the asker frames their question with enough detail on what they are trying to do so that the question doesn't:
* *Unavoidably* require unreasonably long answers (be it due to needing too much code or explanations of too ma... | >
> Is it on topic to ask for guidelines to solve a bigger problem?
>
>
>
Lets put it this way: asking about how to get to the moon is too broad, asking how to build the rocket to get to the moon is too broad, asking about what route has to be taken to get to the moon is too broad; asking about how to get telemetr... |
323,494 | Imagine I have many expression of the form `\phi_{i0}^A`, `\phi_{i1}^A`, etc.
I want to create a macro such that `^A` is appended automatically and I don't have to type it in, e.g. `\phispecial_{i0}` would produce the same result.
So far I've tried `\DeclareMathOperator{\phispecial}*{\phi^A}` but that produces misali... | 2016/08/05 | [
"https://tex.stackexchange.com/questions/323494",
"https://tex.stackexchange.com",
"https://tex.stackexchange.com/users/111440/"
] | Here there is no need for `\DeclareMathOperator` as this is probably not somethig that needs to behave like `\log` and friends. So
```
\newcommand\phiA{\phi^A}
```
is enough since `A_b^c = A^c_b` | Please define like below
```
\newcommand\phiA[1][A]{\phi^A}
```
and try |
16,192,811 | this is my html file:-
```
<div id="load">
<ul>
<li>Activities
<ul>
<li>Physical1
<ul>
<li>Cricket
<ul>
<li>One Day</li>
</ul>
</li>
</ul>
</li>
<li>Test1
<ul>
<li>Test At Abc</li>
</ul>
... | 2013/04/24 | [
"https://Stackoverflow.com/questions/16192811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2269658/"
] | ```
ul > li > ul {
display: none; // hide all submenus
}
li:hover > ul {
display: block; // show sub menu when parent li is hovered
}
```
[DEMO](http://jsfiddle.net/bwTEx/) | ```
ul li ul
{
display:none;
}
ul > li:hover > ul
{
display:block;
}
```
<http://jsfiddle.net/AyLYe/> |
16,192,811 | this is my html file:-
```
<div id="load">
<ul>
<li>Activities
<ul>
<li>Physical1
<ul>
<li>Cricket
<ul>
<li>One Day</li>
</ul>
</li>
</ul>
</li>
<li>Test1
<ul>
<li>Test At Abc</li>
</ul>
... | 2013/04/24 | [
"https://Stackoverflow.com/questions/16192811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2269658/"
] | ```
ul > li > ul {
display: none; // hide all submenus
}
li:hover > ul {
display: block; // show sub menu when parent li is hovered
}
```
[DEMO](http://jsfiddle.net/bwTEx/) | I won't provide the whole code, but with this base you can adapt the code to display the rest of what you need.
Before we start, see this tutorial I found with a google search: <http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu> I scanned it at a glance and it looks pretty good, it will at least guide... |
9,105,895 | how can i set the css (background)property from the server? Does not work at the moment:(
cs
```
public string MyBackgroundColor { get; set; }
```
aspx
```
<style type="text/css">
html
{
background-color: '<%=MyBackgroundColor %>';
}
</style>
``` | 2012/02/02 | [
"https://Stackoverflow.com/questions/9105895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/603007/"
] | You can try
.aspx
```
<body id="body" runat="server">
...the body
```
.aspx.cs
```
body.Style["Background-Color"] = blue;//just example you can try using your method too
``` | Assuming your style tag is in the `<head>` element, change the `=` to a `#` (`background-color: '<%#MyBackgroundColor %>';`) add a `runat="server"` to the `<head>` element and call `Page.Header.DataBind()` in the Page\_Load event. |
9,105,895 | how can i set the css (background)property from the server? Does not work at the moment:(
cs
```
public string MyBackgroundColor { get; set; }
```
aspx
```
<style type="text/css">
html
{
background-color: '<%=MyBackgroundColor %>';
}
</style>
``` | 2012/02/02 | [
"https://Stackoverflow.com/questions/9105895",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/603007/"
] | You can try
.aspx
```
<body id="body" runat="server">
...the body
```
.aspx.cs
```
body.Style["Background-Color"] = blue;//just example you can try using your method too
``` | You can do it in this way
```
Page.Header.Controls.Add(
new LiteralControl(
@"<style type='text/css'>
html
{
background-color: red;
}
</style>
"
)
);
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.