qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
There were confrontation and violence (small skirmishes) between the 2 sides; but it was minimal (other than the car attack) This is the only link I could find about arrests, it does not say if there were from one side or the other. <http://www.cbsnews.com/news/white-nationalists-rally-charlottesville-live-updates/> ...
It's easy to find incidences of "right" wing violence in the left wing media. If you want to find left wing violence, you have to look in the right wing media. E.g. [Breitbart](http://www.breitbart.com/big-government/2017/08/12/female-reporter-for-the-hill-allegedly-punched-by-antifa-protester-in-charlottesville/) repo...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
Bottom Line Up Front ==================== Yes, there was violence perpetrated by both AntiFa and the White Supremacists. [Ben Shapiro's](https://www.youtube.com/watch?v=67zCG-KPWfQ) show the day after properly highlights the violence on each side (specific parts showing violence will be referenced below). That there w...
There were confrontation and violence (small skirmishes) between the 2 sides; but it was minimal (other than the car attack) This is the only link I could find about arrests, it does not say if there were from one side or the other. <http://www.cbsnews.com/news/white-nationalists-rally-charlottesville-live-updates/> ...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
There were confrontation and violence (small skirmishes) between the 2 sides; but it was minimal (other than the car attack) This is the only link I could find about arrests, it does not say if there were from one side or the other. <http://www.cbsnews.com/news/white-nationalists-rally-charlottesville-live-updates/> ...
How about we let a relatively objective number speak? According to Governor McAuliffe, from multiple [interviews Monday](http://www.npr.org/2017/08/14/543358169/incident-in-charlottesville-will-make-us-stronger-gov-mcauliffe-says), not a single "alt-right" protestor ended up dead or hospitalized from the rally.\* He s...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
According to the Charlottesville Chief of Police, there were "mutually engaged combatants". His statement is available for viewing [here](https://www.youtube.com/watch?v=-UgRGf6PJOA). When pressed on the question of assigning blame, he maintained his neutrality on that matter and reiterated that there were "mutually en...
It's easy to find incidences of "right" wing violence in the left wing media. If you want to find left wing violence, you have to look in the right wing media. E.g. [Breitbart](http://www.breitbart.com/big-government/2017/08/12/female-reporter-for-the-hill-allegedly-punched-by-antifa-protester-in-charlottesville/) repo...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
Bottom Line Up Front ==================== Yes, there was violence perpetrated by both AntiFa and the White Supremacists. [Ben Shapiro's](https://www.youtube.com/watch?v=67zCG-KPWfQ) show the day after properly highlights the violence on each side (specific parts showing violence will be referenced below). That there w...
According to the Charlottesville Chief of Police, there were "mutually engaged combatants". His statement is available for viewing [here](https://www.youtube.com/watch?v=-UgRGf6PJOA). When pressed on the question of assigning blame, he maintained his neutrality on that matter and reiterated that there were "mutually en...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
According to the Charlottesville Chief of Police, there were "mutually engaged combatants". His statement is available for viewing [here](https://www.youtube.com/watch?v=-UgRGf6PJOA). When pressed on the question of assigning blame, he maintained his neutrality on that matter and reiterated that there were "mutually en...
How about we let a relatively objective number speak? According to Governor McAuliffe, from multiple [interviews Monday](http://www.npr.org/2017/08/14/543358169/incident-in-charlottesville-will-make-us-stronger-gov-mcauliffe-says), not a single "alt-right" protestor ended up dead or hospitalized from the rally.\* He s...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
Bottom Line Up Front ==================== Yes, there was violence perpetrated by both AntiFa and the White Supremacists. [Ben Shapiro's](https://www.youtube.com/watch?v=67zCG-KPWfQ) show the day after properly highlights the violence on each side (specific parts showing violence will be referenced below). That there w...
It's easy to find incidences of "right" wing violence in the left wing media. If you want to find left wing violence, you have to look in the right wing media. E.g. [Breitbart](http://www.breitbart.com/big-government/2017/08/12/female-reporter-for-the-hill-allegedly-punched-by-antifa-protester-in-charlottesville/) repo...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
How about we let a relatively objective number speak? According to Governor McAuliffe, from multiple [interviews Monday](http://www.npr.org/2017/08/14/543358169/incident-in-charlottesville-will-make-us-stronger-gov-mcauliffe-says), not a single "alt-right" protestor ended up dead or hospitalized from the rally.\* He s...
It's easy to find incidences of "right" wing violence in the left wing media. If you want to find left wing violence, you have to look in the right wing media. E.g. [Breitbart](http://www.breitbart.com/big-government/2017/08/12/female-reporter-for-the-hill-allegedly-punched-by-antifa-protester-in-charlottesville/) repo...
23,667
Today, President Trump claimed that there was violence on "both sides," and that alt-left and alt-right both shared blame in the incidents at Charlottesville, Virginia. Is this factually accurate? I'm not aware of any alt-left protestors being arrested, nor have seen any alt-left protesters attacking alt-right proteste...
2017/08/15
[ "https://politics.stackexchange.com/questions/23667", "https://politics.stackexchange.com", "https://politics.stackexchange.com/users/15576/" ]
Bottom Line Up Front ==================== Yes, there was violence perpetrated by both AntiFa and the White Supremacists. [Ben Shapiro's](https://www.youtube.com/watch?v=67zCG-KPWfQ) show the day after properly highlights the violence on each side (specific parts showing violence will be referenced below). That there w...
How about we let a relatively objective number speak? According to Governor McAuliffe, from multiple [interviews Monday](http://www.npr.org/2017/08/14/543358169/incident-in-charlottesville-will-make-us-stronger-gov-mcauliffe-says), not a single "alt-right" protestor ended up dead or hospitalized from the rally.\* He s...
58,226
In the first line of [this poem by Stefan George](https://www.textarchiv.com/stefan-george/von-einer-begegnung): > > Nun rufen lange schatten mildre gluten > > > What is happening in "mildre"? What does it mean? Is it a poetic way to write "milder"?
2020/04/19
[ "https://german.stackexchange.com/questions/58226", "https://german.stackexchange.com", "https://german.stackexchange.com/users/41235/" ]
> > Is it a poetic way to write "milder"? > > > Yes, it means *mildere* and is poetically shortcutted.
Leaving out an "e" from adjectives is a common way of keeping rhythm in German poetry, as the following proverbial wisdoms demonstrate: > > Auch wenn er keine Früchte kriegt - der **grünre** Baum hat doch gesiegt. > > > Versprich vom kurzen dir nicht viel, der **längre** Weg führt auch zum Ziel. > > > Ein Meister...
53,715,505
I created an Observable generating potentially infinite amount of data (e.g. a timer). This data is accessed through a subject, so multiple observers would receive the same values. How to stop the Observable generating new values? (without modifying the implementation of the Observable) ``` // custom Observable, to v...
2018/12/10
[ "https://Stackoverflow.com/questions/53715505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1977315/" ]
Fortunately, there is a dedicated and elegant way to solve this in RxJS. Your requirement is to have > > multiple observers [...] receive the same values > > > That's called a *multicast* observable and there are certain *operators* that are used to create one from an ordinary "cold" observable. For example, in...
So after some PUNISHING research I've added my own npm library for this problem. `Improves previous answer by NOT having to add any extra convolution variables and ease of use.` * [StackBlitz](https://stackblitz.com/edit/typescript-dswrjc) * [Repo](https://github.com/dontboyle/rxjs-serial-subscription/wiki) * [NPM](h...
53,715,505
I created an Observable generating potentially infinite amount of data (e.g. a timer). This data is accessed through a subject, so multiple observers would receive the same values. How to stop the Observable generating new values? (without modifying the implementation of the Observable) ``` // custom Observable, to v...
2018/12/10
[ "https://Stackoverflow.com/questions/53715505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1977315/" ]
Fortunately, there is a dedicated and elegant way to solve this in RxJS. Your requirement is to have > > multiple observers [...] receive the same values > > > That's called a *multicast* observable and there are certain *operators* that are used to create one from an ordinary "cold" observable. For example, in...
Here's my solution to stop a crazy observable mid-flow. By using a signal `Subject` and the rxjs operator: `takeUntil` **Example** ```js const stopSignal$ = new Subject(); infinitelyGenerating$ .pipe(takeUntil(stopSignal$)) .subscribe(val => { if (val === 'bad') { stopSignal$.next() } }) ```
53,715,505
I created an Observable generating potentially infinite amount of data (e.g. a timer). This data is accessed through a subject, so multiple observers would receive the same values. How to stop the Observable generating new values? (without modifying the implementation of the Observable) ``` // custom Observable, to v...
2018/12/10
[ "https://Stackoverflow.com/questions/53715505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1977315/" ]
Here's my solution to stop a crazy observable mid-flow. By using a signal `Subject` and the rxjs operator: `takeUntil` **Example** ```js const stopSignal$ = new Subject(); infinitelyGenerating$ .pipe(takeUntil(stopSignal$)) .subscribe(val => { if (val === 'bad') { stopSignal$.next() } }) ```
So after some PUNISHING research I've added my own npm library for this problem. `Improves previous answer by NOT having to add any extra convolution variables and ease of use.` * [StackBlitz](https://stackblitz.com/edit/typescript-dswrjc) * [Repo](https://github.com/dontboyle/rxjs-serial-subscription/wiki) * [NPM](h...
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
This is of course not a bug. It is the range modifier that can precede commands, in this case it means the visually highlighted range. Type ``` :h cmdline-ranges ``` to learn more about ranges.
they're normal indication of a range.
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
You have a visual range selected, and when you enter `:` while that is the case, then the *selected range* specifier `'<,'>` is automatically added to indicate that the command will only be applied to the selection.
they're normal indication of a range.
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
In vi[m], you can apply `:` commands (ex-commands) on the current line (default), or any other line, or more generally, a range of lines. The range is denoted as `start,end`. For example, do delete the current line, you can do: ``` :d ``` To delete three lines in the range (current-1) to (current+1): ``` :-1,+1d `...
they're normal indication of a range.
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
You have a visual range selected, and when you enter `:` while that is the case, then the *selected range* specifier `'<,'>` is automatically added to indicate that the command will only be applied to the selection.
This is of course not a bug. It is the range modifier that can precede commands, in this case it means the visually highlighted range. Type ``` :h cmdline-ranges ``` to learn more about ranges.
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
In vi[m], you can apply `:` commands (ex-commands) on the current line (default), or any other line, or more generally, a range of lines. The range is denoted as `start,end`. For example, do delete the current line, you can do: ``` :d ``` To delete three lines in the range (current-1) to (current+1): ``` :-1,+1d `...
This is of course not a bug. It is the range modifier that can precede commands, in this case it means the visually highlighted range. Type ``` :h cmdline-ranges ``` to learn more about ranges.
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
This is of course not a bug. It is the range modifier that can precede commands, in this case it means the visually highlighted range. Type ``` :h cmdline-ranges ``` to learn more about ranges.
`'<,'>` is your visually selected area. Think about it, its easy to represent ranges if you know numbers, but for a visually selected text the only way to represent them (write/type it down) would be to use specialized symbols, and in this case `'<,'>` What more, you can do commands on the visually selected area the s...
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
You have a visual range selected, and when you enter `:` while that is the case, then the *selected range* specifier `'<,'>` is automatically added to indicate that the command will only be applied to the selection.
In vi[m], you can apply `:` commands (ex-commands) on the current line (default), or any other line, or more generally, a range of lines. The range is denoted as `start,end`. For example, do delete the current line, you can do: ``` :d ``` To delete three lines in the range (current-1) to (current+1): ``` :-1,+1d `...
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
You have a visual range selected, and when you enter `:` while that is the case, then the *selected range* specifier `'<,'>` is automatically added to indicate that the command will only be applied to the selection.
`'<,'>` is your visually selected area. Think about it, its easy to represent ranges if you know numbers, but for a visually selected text the only way to represent them (write/type it down) would be to use specialized symbols, and in this case `'<,'>` What more, you can do commands on the visually selected area the s...
2,056,615
I have a dropdownlist like this ``` <asp:dropdownlist runat="server" autopostback="true" onselecteditemindexchanged="fire_event" ID="DDL"/> ``` and on codebehind i m doing this ``` page_load : if(!page.postback)I m binding data into dropdownlist fire_event: I am redirecting page to itemselected value. ``` So I...
2010/01/13
[ "https://Stackoverflow.com/questions/2056615", "https://Stackoverflow.com", "https://Stackoverflow.com/users/237112/" ]
In vi[m], you can apply `:` commands (ex-commands) on the current line (default), or any other line, or more generally, a range of lines. The range is denoted as `start,end`. For example, do delete the current line, you can do: ``` :d ``` To delete three lines in the range (current-1) to (current+1): ``` :-1,+1d `...
`'<,'>` is your visually selected area. Think about it, its easy to represent ranges if you know numbers, but for a visually selected text the only way to represent them (write/type it down) would be to use specialized symbols, and in this case `'<,'>` What more, you can do commands on the visually selected area the s...
27,414,810
My colleage says static is good when you perform fixed stuff that doesn't required any extends, but one day we need to add feature on top of his code. Heck we have to modify the ori code because he used tons of static stuff and it's not flexible for us to continue. ``` class test { public static function test1() {...
2014/12/11
[ "https://Stackoverflow.com/questions/27414810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4327335/" ]
You use static when the function doesn't depend on a specific object that the method is being applied to. How that applies to your application depends on its design. For instance, if you have a class for dealing with dates and times, and it contains a function to return the current timestamp, it doesn't need to be app...
As a general rule of thumb it is best to stay away from static code whenever possible. When you start using static calls you are *tight-coupling* the class into your code. This makes it difficult to test your code later on when you want to swap out the static class for a mock class. For most cases, it is best to use de...
27,414,810
My colleage says static is good when you perform fixed stuff that doesn't required any extends, but one day we need to add feature on top of his code. Heck we have to modify the ori code because he used tons of static stuff and it's not flexible for us to continue. ``` class test { public static function test1() {...
2014/12/11
[ "https://Stackoverflow.com/questions/27414810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4327335/" ]
You use static when the function doesn't depend on a specific object that the method is being applied to. How that applies to your application depends on its design. For instance, if you have a class for dealing with dates and times, and it contains a function to return the current timestamp, it doesn't need to be app...
You can use static function if you need a function without calling the Class constructor before. For example, i have a class like this : ``` class Animal { ............. ......... private function name() { // This will print name of Animal that you assign through $this echo $this->$name; } } Animal->nam...
2,066,741
In some discussions of [metric tensors $g : TM\_p \times TM\_p \rightarrow \mathbb R$](https://en.wikipedia.org/wiki/Metric_tensor) (and even of pseudo-metric tensors, for instance in [this answer](https://physics.stackexchange.com/questions/299431)), and of the corresponding [first fundamental forms ${\rm d}s^2$](http...
2016/12/19
[ "https://math.stackexchange.com/questions/2066741", "https://math.stackexchange.com", "https://math.stackexchange.com/users/277973/" ]
From the metric we get a curve length, if the manifold is connected we can define a distance function as the infimum of curve lengths between two points (this exists if the metric is positive definite). It is easily checked that this defines a metric in the usual sense. A Lorentzian metric does not define a metric in ...
It works if the metric has only positive eigenvalues. It is not the case, for example, for Minkowski space where $g(V,V)=0$ for some vectors (light-like ones).
2,066,741
In some discussions of [metric tensors $g : TM\_p \times TM\_p \rightarrow \mathbb R$](https://en.wikipedia.org/wiki/Metric_tensor) (and even of pseudo-metric tensors, for instance in [this answer](https://physics.stackexchange.com/questions/299431)), and of the corresponding [first fundamental forms ${\rm d}s^2$](http...
2016/12/19
[ "https://math.stackexchange.com/questions/2066741", "https://math.stackexchange.com", "https://math.stackexchange.com/users/277973/" ]
Yes, it is true, but note that the metric tensor $g$ *defines* the distance function on $TM$ and hence a norm, it is not itself the distance function. In particular, for $TM$ we can define $$d(\vec{x}, \vec{y}) \equiv \sqrt{g(\vec{x} - \vec{y}, \vec{x} - \vec{y})} \quad\forall \vec{x}, \vec{y} \in TM$$ It's relativ...
It works if the metric has only positive eigenvalues. It is not the case, for example, for Minkowski space where $g(V,V)=0$ for some vectors (light-like ones).
2,066,741
In some discussions of [metric tensors $g : TM\_p \times TM\_p \rightarrow \mathbb R$](https://en.wikipedia.org/wiki/Metric_tensor) (and even of pseudo-metric tensors, for instance in [this answer](https://physics.stackexchange.com/questions/299431)), and of the corresponding [first fundamental forms ${\rm d}s^2$](http...
2016/12/19
[ "https://math.stackexchange.com/questions/2066741", "https://math.stackexchange.com", "https://math.stackexchange.com/users/277973/" ]
Yes, it is true, but note that the metric tensor $g$ *defines* the distance function on $TM$ and hence a norm, it is not itself the distance function. In particular, for $TM$ we can define $$d(\vec{x}, \vec{y}) \equiv \sqrt{g(\vec{x} - \vec{y}, \vec{x} - \vec{y})} \quad\forall \vec{x}, \vec{y} \in TM$$ It's relativ...
From the metric we get a curve length, if the manifold is connected we can define a distance function as the infimum of curve lengths between two points (this exists if the metric is positive definite). It is easily checked that this defines a metric in the usual sense. A Lorentzian metric does not define a metric in ...
34,811,128
i want to use switch function inside tabview cellForRowAtIndexPath to change the content of table the scenario : the flag variable should select which the case and return it's content. the error : i have to use return cell out side the switch function if i use it still give me error. ``` switch (flag){ case 0 :...
2016/01/15
[ "https://Stackoverflow.com/questions/34811128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5343449/" ]
Try this in your `cellForRow` method ``` switch (flag){ case 0 : let cell:mineCell = tableView.dequeueReusableCellWithIdentifier("mineCell")as! mineCell // User Name on cells cell.usernameLabel.text = creator[indexPath.row] //function else { print(error)...
Your `cellForRowAtIndexPath` has to return a `UITableViewCell` object or subclass of it in every possible scenario. Therefore you have to return a `UITableViewCell()` in your default case to get rid of your error.
34,811,128
i want to use switch function inside tabview cellForRowAtIndexPath to change the content of table the scenario : the flag variable should select which the case and return it's content. the error : i have to use return cell out side the switch function if i use it still give me error. ``` switch (flag){ case 0 :...
2016/01/15
[ "https://Stackoverflow.com/questions/34811128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5343449/" ]
Your `cellForRowAtIndexPath` has to return a `UITableViewCell` object or subclass of it in every possible scenario. Therefore you have to return a `UITableViewCell()` in your default case to get rid of your error.
First you need to declare the `UITableViewCell` object in global. ``` func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell switch ...
34,811,128
i want to use switch function inside tabview cellForRowAtIndexPath to change the content of table the scenario : the flag variable should select which the case and return it's content. the error : i have to use return cell out side the switch function if i use it still give me error. ``` switch (flag){ case 0 :...
2016/01/15
[ "https://Stackoverflow.com/questions/34811128", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5343449/" ]
Try this in your `cellForRow` method ``` switch (flag){ case 0 : let cell:mineCell = tableView.dequeueReusableCellWithIdentifier("mineCell")as! mineCell // User Name on cells cell.usernameLabel.text = creator[indexPath.row] //function else { print(error)...
First you need to declare the `UITableViewCell` object in global. ``` func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell switch ...
49,662,374
I'm running into a typing error, specifically when I spread over props as I pass it into a React Component. ``` type FooLevel = 1 | 2 | 3 interface FooProps { fooLevel: FooLevel; } // Typing for a SFC const Foo = ({ fooLevel }: FooProps) => { return ( <div> <span>Your foo level {fooLevel}</span> ...
2018/04/05
[ "https://Stackoverflow.com/questions/49662374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5209122/" ]
Try adding `overflow: auto;` to the `.main` div ``` .container .innerContainer .main { background-color: #A3845D; flex-grow: 1; display: flex; overflow: auto; /*<< added */ } ``` Works fine on my version of FF (59.0.2) can't check in IE currently.
**NOTICE** - *Fecosos gave the right answer and beat me to it by a long time. I'll leave up my code as it strips out a lot of the unnecessary stuff.* --- Apologies for butchering your code but this seems to work in FF and Chrome. No idea about IE. (I recall Safari giving me the most problems but I forget if it was wi...
44,138,815
I am trying to update the number stored in a field,this is the code I have used ``` Select * From MEDICATION UPDATE medication set seq_number = 2 where pet_id = "PO145" AND vet_id = "V01" AND MEDICINE ='Soothing Cream'; ``` The error returned states > > ORA-00933: SQL command not properly ended > > >
2017/05/23
[ "https://Stackoverflow.com/questions/44138815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7785347/" ]
As @Tim mentioned, select and update should be different. So run them individually. Also the strings should be enclosed in `single quotes`, not double. Although this is not the reason for error, but it will not work for you with `double quotes`. Double quotes should be used for object/column names. Also it is a good ...
It looks like you're trying to do a `SELECT` and an `UPDATE` at the same time. You can't do that. For the update, just use the latter part of your query by itself: ``` UPDATE medication SET seq_number = 2 WHERE pet_id = "PO145" AND vet_id = "V01" AND MEDICINE = 'Soothing Cream'; ``` After the update, i...
3,466,667
It's an IBDP question. When I try to solve it, I end up with a fraction with many variables. I was thinking maybe I should rationalize the fraction...
2019/12/07
[ "https://math.stackexchange.com/questions/3466667", "https://math.stackexchange.com", "https://math.stackexchange.com/users/731254/" ]
> > How many bit strings of length $15$ have exactly five 0's? > > > Your answer is correct. Choose five of the $15$ positions in the bit string for the zeros, then fill each of the remaining ten positions in the bit string with ones. This can be done in $$\binom{15}{5} = \frac{15!}{5!10!} = \frac{15 \cdot 14 \cd...
Isn't this just binomial coefficient stuff? Consider an length-$n$ bit string, and suppose it starts out all zeroes, and you want to put exactly $k\le n$ ones in it. Then there are $n$ positions in which you can put the first one, $n-1$ remaining positions for the second one, etc. So in the end there are $n\times(n-1)\...
3,466,667
It's an IBDP question. When I try to solve it, I end up with a fraction with many variables. I was thinking maybe I should rationalize the fraction...
2019/12/07
[ "https://math.stackexchange.com/questions/3466667", "https://math.stackexchange.com", "https://math.stackexchange.com/users/731254/" ]
For Question 3: There are $2^{15}$ bitstrings of length $15$. None of them has equally many zeros and ones. By symmetry exactly half of them, i.e., $16\,384$, have more ones than zeros.
Isn't this just binomial coefficient stuff? Consider an length-$n$ bit string, and suppose it starts out all zeroes, and you want to put exactly $k\le n$ ones in it. Then there are $n$ positions in which you can put the first one, $n-1$ remaining positions for the second one, etc. So in the end there are $n\times(n-1)\...
3,466,667
It's an IBDP question. When I try to solve it, I end up with a fraction with many variables. I was thinking maybe I should rationalize the fraction...
2019/12/07
[ "https://math.stackexchange.com/questions/3466667", "https://math.stackexchange.com", "https://math.stackexchange.com/users/731254/" ]
> > How many bit strings of length $15$ have exactly five 0's? > > > Your answer is correct. Choose five of the $15$ positions in the bit string for the zeros, then fill each of the remaining ten positions in the bit string with ones. This can be done in $$\binom{15}{5} = \frac{15!}{5!10!} = \frac{15 \cdot 14 \cd...
Your result is correct. The first thing that came to my mind was that a bitstring of length $15$ with $5$ zeros is the same as the bitstrings having a hamming weight of $10$. I wrote a short program that bruteforces all $2^{15}$ bitstrings, a counter and outputs the valid strings where hamming weight $=10$: ``` #defin...
3,466,667
It's an IBDP question. When I try to solve it, I end up with a fraction with many variables. I was thinking maybe I should rationalize the fraction...
2019/12/07
[ "https://math.stackexchange.com/questions/3466667", "https://math.stackexchange.com", "https://math.stackexchange.com/users/731254/" ]
For Question 3: There are $2^{15}$ bitstrings of length $15$. None of them has equally many zeros and ones. By symmetry exactly half of them, i.e., $16\,384$, have more ones than zeros.
Your result is correct. The first thing that came to my mind was that a bitstring of length $15$ with $5$ zeros is the same as the bitstrings having a hamming weight of $10$. I wrote a short program that bruteforces all $2^{15}$ bitstrings, a counter and outputs the valid strings where hamming weight $=10$: ``` #defin...
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
You are very close to the correct answer. Add the negative numbers to the margin property: ``` #popup-button { position: absolute; z-index: 9999; top: 50%; left: 50%; opacity: 0.7; cursor: wait; margin-left: -35px; margin-top: -35px; } ```
You can manipulate with negative margin. This solution is cross-browser and is used often, but it is kind of "hacky": ``` #popup-button { position: fixed; z-index: 9999; top: 50%; left: 50%; margin-left: -35px; margin-top: -35px; opacity: 0.7; cursor: wait; } ``` Also, you can use CSS3 `calc()` funct...
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
You can manipulate with negative margin. This solution is cross-browser and is used often, but it is kind of "hacky": ``` #popup-button { position: fixed; z-index: 9999; top: 50%; left: 50%; margin-left: -35px; margin-top: -35px; opacity: 0.7; cursor: wait; } ``` Also, you can use CSS3 `calc()` funct...
Maybe it would work with window height and width properties? Try `top: 100vh - 35px`
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
You can manipulate with negative margin. This solution is cross-browser and is used often, but it is kind of "hacky": ``` #popup-button { position: fixed; z-index: 9999; top: 50%; left: 50%; margin-left: -35px; margin-top: -35px; opacity: 0.7; cursor: wait; } ``` Also, you can use CSS3 `calc()` funct...
I agree with Adrian's answer. Using CSS3: ``` transform: translate(-50%, -50%); ``` Along with: ``` top: 50%; left: 50%; ``` Is a better solution as it's responsive, no matter the height or width of the parent you won't have to recalculate like some of the other solutions. Also don't forget to vendor prefix *tr...
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
You are very close to the correct answer. Add the negative numbers to the margin property: ``` #popup-button { position: absolute; z-index: 9999; top: 50%; left: 50%; opacity: 0.7; cursor: wait; margin-left: -35px; margin-top: -35px; } ```
Maybe it would work with window height and width properties? Try `top: 100vh - 35px`
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
You are very close to the correct answer. Add the negative numbers to the margin property: ``` #popup-button { position: absolute; z-index: 9999; top: 50%; left: 50%; opacity: 0.7; cursor: wait; margin-left: -35px; margin-top: -35px; } ```
I think it can be done without negative margins: ``` .centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); } ``` Example: ```css .centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: red; width: 10px; ...
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
You are very close to the correct answer. Add the negative numbers to the margin property: ``` #popup-button { position: absolute; z-index: 9999; top: 50%; left: 50%; opacity: 0.7; cursor: wait; margin-left: -35px; margin-top: -35px; } ```
I agree with Adrian's answer. Using CSS3: ``` transform: translate(-50%, -50%); ``` Along with: ``` top: 50%; left: 50%; ``` Is a better solution as it's responsive, no matter the height or width of the parent you won't have to recalculate like some of the other solutions. Also don't forget to vendor prefix *tr...
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
I think it can be done without negative margins: ``` .centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); } ``` Example: ```css .centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: red; width: 10px; ...
Maybe it would work with window height and width properties? Try `top: 100vh - 35px`
38,912,870
I am trying to pop up a tick (success) or cross (error) circular div on my pages as the result of a page post. I am close, but cannot quite get it centered. My HTML is added by JS upon page load, and shown for 1 second: ``` // Circle button alert popup function popupNotification(type) { if (type == 'success') { ...
2016/08/12
[ "https://Stackoverflow.com/questions/38912870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2469528/" ]
I think it can be done without negative margins: ``` .centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); } ``` Example: ```css .centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: red; width: 10px; ...
I agree with Adrian's answer. Using CSS3: ``` transform: translate(-50%, -50%); ``` Along with: ``` top: 50%; left: 50%; ``` Is a better solution as it's responsive, no matter the height or width of the parent you won't have to recalculate like some of the other solutions. Also don't forget to vendor prefix *tr...
166,329
My DM is usually very opposed to homebrew, and I can understand why, seeing as a lot of homebrews are ridiculous, but from a flavor and mechanics standpoint, this is exactly what I'm looking for. I've thought of combining classes for our game, but everything I've asked has either been ignored or shut down. I'm not tryi...
2020/03/13
[ "https://rpg.stackexchange.com/questions/166329", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/60461/" ]
This subclass is riddled with problems and is too strong ======================================================== This homebrew has a lot of problems that aren't really things you'd expect to see in an official class, and several of them are a lot stronger than what you could realistically expect to get. * Save vs. t...
In general, I find this subclass equal parts overpowered and poorly thought out. -------------------------------------------------------------------------------- ### Tread Down The Sword * The added proficiency is fine; eventually, you'll be using the monk damage die and weapon damage ceases to be relevant. * The dis...
66,349
I have to write my thesis in (German) law and we usually use a very nested headline system. I use `scrreprt` and have these levels: * (part) * chapter * section * subsection * subsubsection * paragraph * subparagraph But I need at least 3 more levels. They don't have to be in the ToC but it would be nice. I searche...
2012/08/08
[ "https://tex.stackexchange.com/questions/66349", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17269/" ]
Quoting the [manual](http://texdoc.org/pkg/titlesec) from the [`titlesec` package](http://ctan.org/pkg/titlesec): > > With the help of classes you may insert, say, a new subchapter level between chapter and section, or creating a scheme of your own. > > > (at subsection 3.9 in the `titlesec.pdf`). At appendix 9....
So thanks to everyone. I kind of fixed it: ``` \titleclass{\subAparagraph}{straight}[\subparagraph] \makeatletter \newcounter{subAparagraph}[subparagraph] \newcommand*\l@subAparagraph{\bprot@dottedtocline{6}{12em}{2.5em}} \makeatother \titleclass{\subBparagraph}{straight}[\subAparagraph] \makeatletter \newcounter{sub...
66,349
I have to write my thesis in (German) law and we usually use a very nested headline system. I use `scrreprt` and have these levels: * (part) * chapter * section * subsection * subsubsection * paragraph * subparagraph But I need at least 3 more levels. They don't have to be in the ToC but it would be nice. I searche...
2012/08/08
[ "https://tex.stackexchange.com/questions/66349", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17269/" ]
Quoting the [manual](http://texdoc.org/pkg/titlesec) from the [`titlesec` package](http://ctan.org/pkg/titlesec): > > With the help of classes you may insert, say, a new subchapter level between chapter and section, or creating a scheme of your own. > > > (at subsection 3.9 in the `titlesec.pdf`). At appendix 9....
Since the question is about a KOMA-class, we can use KOMA features to define new levels of structuring commands. [![niclasKomaExtraLevel](https://i.stack.imgur.com/Ytut2.png)](https://i.stack.imgur.com/Ytut2.png) ``` \documentclass{scrartcl} \makeatletter \DeclareSectionCommand[% tocindent=9.0em,% ]{subparagraph...
66,349
I have to write my thesis in (German) law and we usually use a very nested headline system. I use `scrreprt` and have these levels: * (part) * chapter * section * subsection * subsubsection * paragraph * subparagraph But I need at least 3 more levels. They don't have to be in the ToC but it would be nice. I searche...
2012/08/08
[ "https://tex.stackexchange.com/questions/66349", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/17269/" ]
Since the question is about a KOMA-class, we can use KOMA features to define new levels of structuring commands. [![niclasKomaExtraLevel](https://i.stack.imgur.com/Ytut2.png)](https://i.stack.imgur.com/Ytut2.png) ``` \documentclass{scrartcl} \makeatletter \DeclareSectionCommand[% tocindent=9.0em,% ]{subparagraph...
So thanks to everyone. I kind of fixed it: ``` \titleclass{\subAparagraph}{straight}[\subparagraph] \makeatletter \newcounter{subAparagraph}[subparagraph] \newcommand*\l@subAparagraph{\bprot@dottedtocline{6}{12em}{2.5em}} \makeatother \titleclass{\subBparagraph}{straight}[\subAparagraph] \makeatletter \newcounter{sub...
30,369,903
A JavaScript function is returning a div in double quote. like - ``` function Callback() { return "<div> <a href='javascript:void(0); > ENGLISH </a> </div>"; } ``` I want to check if document.getElementById('language').value == ENGLISH then apply color to ENGLISH word. So how to match JavaScript variable wit...
2015/05/21
[ "https://Stackoverflow.com/questions/30369903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2094586/" ]
Try this: ``` <div id='testElem'><a href='javascript:void(0)'>ENGLISH</a></div> <script> function Callback() { return "<div id='testElem'><a href='javascript:void(0)'>ENGLISH</a></div>"; } function check() { if(document.getElementById('language').value == "ENGLISH") { console.log(document.g...
Not sure if this is what you want : ``` <div id="language" value="ENGLISH"> </div> var cookieValue = document.getElementById("language").getAttribute('value'); if(cookieValue == "ENGLISH"){ document.getElementById("language").style.color = "green"; } ```
30,369,903
A JavaScript function is returning a div in double quote. like - ``` function Callback() { return "<div> <a href='javascript:void(0); > ENGLISH </a> </div>"; } ``` I want to check if document.getElementById('language').value == ENGLISH then apply color to ENGLISH word. So how to match JavaScript variable wit...
2015/05/21
[ "https://Stackoverflow.com/questions/30369903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2094586/" ]
``` function Callback() { return "<div id='language'><a href='javascript:void(0);'> ENGLISH </a></div>"; } var jslanguage=document.getElementById("language").textContent; jslanguage=jslanguage.trim() ;// will get the text ENGLISH. if(jslanguage== "ENGLISH"){ document.getEl...
Not sure if this is what you want : ``` <div id="language" value="ENGLISH"> </div> var cookieValue = document.getElementById("language").getAttribute('value'); if(cookieValue == "ENGLISH"){ document.getElementById("language").style.color = "green"; } ```
30,369,903
A JavaScript function is returning a div in double quote. like - ``` function Callback() { return "<div> <a href='javascript:void(0); > ENGLISH </a> </div>"; } ``` I want to check if document.getElementById('language').value == ENGLISH then apply color to ENGLISH word. So how to match JavaScript variable wit...
2015/05/21
[ "https://Stackoverflow.com/questions/30369903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2094586/" ]
Try this: ``` <div id='testElem'><a href='javascript:void(0)'>ENGLISH</a></div> <script> function Callback() { return "<div id='testElem'><a href='javascript:void(0)'>ENGLISH</a></div>"; } function check() { if(document.getElementById('language').value == "ENGLISH") { console.log(document.g...
``` function Callback() { return "<div id='language'><a href='javascript:void(0);'> ENGLISH </a></div>"; } var jslanguage=document.getElementById("language").textContent; jslanguage=jslanguage.trim() ;// will get the text ENGLISH. if(jslanguage== "ENGLISH"){ document.getEl...
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
I was looking for simple solution to remove views from viewpager (no fragments) dynamically. So, if you have some info, that your pages belongs to, you can set it to View as tag. Just like that (adapter code): ``` @Override public Object instantiateItem(ViewGroup collection, int position) { ImageView iv = new Imag...
I've created a [custom PagerAdapters library](https://github.com/takaaki7/ArrayPagerAdapter) to change items in PagerAdapters dynamically. You can change items dynamically like following by using this library. ``` @Override protected void onCreate(Bundle savedInstanceState) { /** ... **/ adapter = new MyS...
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
I was looking for simple solution to remove views from viewpager (no fragments) dynamically. So, if you have some info, that your pages belongs to, you can set it to View as tag. Just like that (adapter code): ``` @Override public Object instantiateItem(ViewGroup collection, int position) { ImageView iv = new Imag...
I find a good solution for this issue, this solution can make it work and no need to recreate Fragments. My key point is: 1. **setup ViewPager every time you delete or add Tab(Fragment).** 2. **Override the getItemId method, return a specific id rather than position.** Source Code ``` package com.zq.testviewpage...
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
After figuring out which ViewPager methods are called by ViewPager and which are for other purposes, I came up with a solution. I present it here since I see a lot of people have struggled with this and I didn't see any other relevant answers. First, here's my adapter; hopefully comments within the code are sufficien...
I've created a [custom PagerAdapters library](https://github.com/takaaki7/ArrayPagerAdapter) to change items in PagerAdapters dynamically. You can change items dynamically like following by using this library. ``` @Override protected void onCreate(Bundle savedInstanceState) { /** ... **/ adapter = new MyS...
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
After figuring out which ViewPager methods are called by ViewPager and which are for other purposes, I came up with a solution. I present it here since I see a lot of people have struggled with this and I didn't see any other relevant answers. First, here's my adapter; hopefully comments within the code are sufficien...
To remove you can use this directly: ``` getSupportFragmentManager().beginTransaction().remove(fragment). commitAllowingStateLoss(); ``` `fragment` is the fragment you want to remove.
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
I did a similar program. hope this would help you.In its first activity four grid data can be selected. On the next activity, there is a view pager which contains two mandatory pages.And 4 more pages will be there, which will be visible corresponding to the grid data selected. Following is the mainactivty MainActivit...
To remove you can use this directly: ``` getSupportFragmentManager().beginTransaction().remove(fragment). commitAllowingStateLoss(); ``` `fragment` is the fragment you want to remove.
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
Here's an alternative solution to this question. My adapter: ``` private class PagerAdapter extends FragmentPagerAdapter implements ViewPager.OnPageChangeListener, TabListener { private List<Fragment> mFragments = new ArrayList<Fragment>(); private ViewPager mPager; private Action...
To remove you can use this directly: ``` getSupportFragmentManager().beginTransaction().remove(fragment). commitAllowingStateLoss(); ``` `fragment` is the fragment you want to remove.
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
After figuring out which ViewPager methods are called by ViewPager and which are for other purposes, I came up with a solution. I present it here since I see a lot of people have struggled with this and I didn't see any other relevant answers. First, here's my adapter; hopefully comments within the code are sufficien...
I was looking for simple solution to remove views from viewpager (no fragments) dynamically. So, if you have some info, that your pages belongs to, you can set it to View as tag. Just like that (adapter code): ``` @Override public Object instantiateItem(ViewGroup collection, int position) { ImageView iv = new Imag...
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
To remove you can use this directly: ``` getSupportFragmentManager().beginTransaction().remove(fragment). commitAllowingStateLoss(); ``` `fragment` is the fragment you want to remove.
I find a good solution for this issue, this solution can make it work and no need to recreate Fragments. My key point is: 1. **setup ViewPager every time you delete or add Tab(Fragment).** 2. **Override the getItemId method, return a specific id rather than position.** Source Code ``` package com.zq.testviewpage...
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
I've created a [custom PagerAdapters library](https://github.com/takaaki7/ArrayPagerAdapter) to change items in PagerAdapters dynamically. You can change items dynamically like following by using this library. ``` @Override protected void onCreate(Bundle savedInstanceState) { /** ... **/ adapter = new MyS...
To remove you can use this directly: ``` getSupportFragmentManager().beginTransaction().remove(fragment). commitAllowingStateLoss(); ``` `fragment` is the fragment you want to remove.
13,664,157
I am working on an Android project for my CS class where I need to enter mock coordinates. I want to specify a different layout file for orientation and portrait orientations. I have a `layout` folder and a `layout-land` folder in my `/res` folder. The xml file in the layout folder and the xml file in the layout-land f...
2012/12/01
[ "https://Stackoverflow.com/questions/13664157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1839623/" ]
I've created a [custom PagerAdapters library](https://github.com/takaaki7/ArrayPagerAdapter) to change items in PagerAdapters dynamically. You can change items dynamically like following by using this library. ``` @Override protected void onCreate(Bundle savedInstanceState) { /** ... **/ adapter = new MyS...
I find a good solution for this issue, this solution can make it work and no need to recreate Fragments. My key point is: 1. **setup ViewPager every time you delete or add Tab(Fragment).** 2. **Override the getItemId method, return a specific id rather than position.** Source Code ``` package com.zq.testviewpage...
7,542,542
I've narrowed my problem area down to the function below. It's part of a userscript I'm writing. It works perfectly in Chrome, but doesn't work at all in Firefox/Greasemonkey. I've tinkered with it all day and have hit a brick wall. The only thing that makes sense is if JSON.parse isn't working right, which would make ...
2011/09/24
[ "https://Stackoverflow.com/questions/7542542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/963104/" ]
That is, [AFAIK](http://en.wiktionary.org/wiki/AFAIK), not possible due to security reasons. The keyword is [cross-site scripting (XSS)](http://en.wikipedia.org/wiki/Cross-site_scripting).
The best option would be to use the iFrame example from the link your provided. You can now add iFrames to your Facebook Page ( not individual user profiles ) using this process: <http://developers.facebook.com/blog/post/462/>
41,356,669
I have a collection : ``` { _id : xxx, children : [ { childrenOfChildren : [ { price : xxx }, { price : xxx }, { price : xxx } ...
2016/12/28
[ "https://Stackoverflow.com/questions/41356669", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5436005/" ]
you can do this using $unwind and $group. ``` db.collection.aggregate([ { $unwind:"$children" }, { $unwind:"$children.childrenOfChildren" }, { $group:{ _id:null, maxPrice:{ $max:"$children.childrenOfChildren.price" } } } ]) ``` output:...
you can get maximum price from overall collection by using `aggregate` query with `$unwind` and `$group`. can try this query: ``` db.getCollection('collectionName').aggregate([ {$unwind: "$children"}, {$unwind: "$children.childrenOfChildren"}, {$group:{_id: null, price:{$max: "$children.childrenOfChildren.price"}}...
1,440
I'm wondering if this should be a single tag. However, if we do keep them as separate tags, how do we disambiguate? [natural-language](https://ai.stackexchange.com/questions/tagged/natural-language) [natural-language-processing](https://ai.stackexchange.com/questions/tagged/natural-language-processing)
2018/10/03
[ "https://ai.meta.stackexchange.com/questions/1440", "https://ai.meta.stackexchange.com", "https://ai.meta.stackexchange.com/users/1671/" ]
It looks to me like they are both used for similar questions, and based on the current Tag Info for the two tags they don't really appear to be different either. So, based on current tag usage, I'd argue that they should be combined into a single tag (which, in my opinion, should be `natural-language-processing` becaus...
There is a key difference between the two terms. Whether this finer level of granularity is useful in the tags, I have no opinion. Natural language is concerned with the general idea of conveying ideas via vocalization and the comprehension of the idea by a listener. Natural language processing sounds more well defin...
1,440
I'm wondering if this should be a single tag. However, if we do keep them as separate tags, how do we disambiguate? [natural-language](https://ai.stackexchange.com/questions/tagged/natural-language) [natural-language-processing](https://ai.stackexchange.com/questions/tagged/natural-language-processing)
2018/10/03
[ "https://ai.meta.stackexchange.com/questions/1440", "https://ai.meta.stackexchange.com", "https://ai.meta.stackexchange.com/users/1671/" ]
It looks to me like they are both used for similar questions, and based on the current Tag Info for the two tags they don't really appear to be different either. So, based on current tag usage, I'd argue that they should be combined into a single tag (which, in my opinion, should be `natural-language-processing` becaus...
Natural language *by itself* (that is, without considering computation-related aspects) has little to do with AI. In AI, we want to do NLP, which can be based on natural language, but the tag [natural-language-processing](https://ai.stackexchange.com/questions/tagged/natural-language-processing "show questions tagged '...
1,440
I'm wondering if this should be a single tag. However, if we do keep them as separate tags, how do we disambiguate? [natural-language](https://ai.stackexchange.com/questions/tagged/natural-language) [natural-language-processing](https://ai.stackexchange.com/questions/tagged/natural-language-processing)
2018/10/03
[ "https://ai.meta.stackexchange.com/questions/1440", "https://ai.meta.stackexchange.com", "https://ai.meta.stackexchange.com/users/1671/" ]
Natural language *by itself* (that is, without considering computation-related aspects) has little to do with AI. In AI, we want to do NLP, which can be based on natural language, but the tag [natural-language-processing](https://ai.stackexchange.com/questions/tagged/natural-language-processing "show questions tagged '...
There is a key difference between the two terms. Whether this finer level of granularity is useful in the tags, I have no opinion. Natural language is concerned with the general idea of conveying ideas via vocalization and the comprehension of the idea by a listener. Natural language processing sounds more well defin...
64,093
The words :- > > τουτο εστιν το σωμα μου το υπερ υμων διδομενον [Stephanus 1550/Elzevir 1624] > > > this is my body which is given for you [KJV 1769 Luke 22:19] > > > and, particularly : > > *hoc est meum corpus* [Vulgate - Jerome 382/Clementine 1592] > > > this is my body > > > were spoken as Jesus sto...
2018/06/14
[ "https://christianity.stackexchange.com/questions/64093", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/38350/" ]
I will attempt to answer your questions, but I think we need to start with a detour into what the Catholic doctrine of the Eucharist actually *is*. You use a couple of words that lead me to think you misunderstand the doctrine: "digestion" and "literally ... real". The Catholic doctrine is not that the Eucharist is Ch...
How does Roman Catholicism justify a literal meaning of 'Hoc est meum corpus'? hoc est meum corpus [Vulgate - Jerome 382/Clementine 1592] this is my body Biblically it's comes from the lips of Jesus Christ... Your specific question: 1.How then, at that instant, could bread have been - literally - his own real body....
64,093
The words :- > > τουτο εστιν το σωμα μου το υπερ υμων διδομενον [Stephanus 1550/Elzevir 1624] > > > this is my body which is given for you [KJV 1769 Luke 22:19] > > > and, particularly : > > *hoc est meum corpus* [Vulgate - Jerome 382/Clementine 1592] > > > this is my body > > > were spoken as Jesus sto...
2018/06/14
[ "https://christianity.stackexchange.com/questions/64093", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/38350/" ]
I will attempt to answer your questions, but I think we need to start with a detour into what the Catholic doctrine of the Eucharist actually *is*. You use a couple of words that lead me to think you misunderstand the doctrine: "digestion" and "literally ... real". The Catholic doctrine is not that the Eucharist is Ch...
It's literal because Jesus Himself says so in [John 6:56](http://drbo.org/x/d?b=drl&bk=50&ch=6&l=56-#x): > > For my flesh is meat indeed: and my blood is drink indeed. > > >
64,093
The words :- > > τουτο εστιν το σωμα μου το υπερ υμων διδομενον [Stephanus 1550/Elzevir 1624] > > > this is my body which is given for you [KJV 1769 Luke 22:19] > > > and, particularly : > > *hoc est meum corpus* [Vulgate - Jerome 382/Clementine 1592] > > > this is my body > > > were spoken as Jesus sto...
2018/06/14
[ "https://christianity.stackexchange.com/questions/64093", "https://christianity.stackexchange.com", "https://christianity.stackexchange.com/users/38350/" ]
It's literal because Jesus Himself says so in [John 6:56](http://drbo.org/x/d?b=drl&bk=50&ch=6&l=56-#x): > > For my flesh is meat indeed: and my blood is drink indeed. > > >
How does Roman Catholicism justify a literal meaning of 'Hoc est meum corpus'? hoc est meum corpus [Vulgate - Jerome 382/Clementine 1592] this is my body Biblically it's comes from the lips of Jesus Christ... Your specific question: 1.How then, at that instant, could bread have been - literally - his own real body....
69,881,150
I have a string like `23DGERA@SPK_20W L+R FA-2@1+342HSHC@CPU_8PIN INTEL_TEST!@1+2356GHMX@SSD_256G MICRON_CONTENT@2 + blablabla`. What I would like to do is to split up the string by `+`, yet in SPK section there is a L+R that would interrupt the process. Is there any REGEX that could achieve what I want? In result sh...
2021/11/08
[ "https://Stackoverflow.com/questions/69881150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16898096/" ]
You can use a matching regex solution: ```js text.match(/(?:L\+R|[^+])+/g) ``` See the [regex demo](https://regex101.com/r/m2XoxV/2/). *Details*: * `(?:` - start of a non-capturing group: + `L\+R` - `L+R` string + `|` - or + `[^+]` - any char other than `+` * `)+` - end of the group, one or more occurrences. Se...
The string looks like a list of parts each with a quantity e.g. `@1`. You can use that to identify the correct `+` characters to split on. Using a look-behind containing `@\d+` -> `(?<=@\d+)` followed by the character you want to match (escaped because `+` has a special meaning) gives: ``` (?<=@\d+)\+ ``` Using thi...
69,881,150
I have a string like `23DGERA@SPK_20W L+R FA-2@1+342HSHC@CPU_8PIN INTEL_TEST!@1+2356GHMX@SSD_256G MICRON_CONTENT@2 + blablabla`. What I would like to do is to split up the string by `+`, yet in SPK section there is a L+R that would interrupt the process. Is there any REGEX that could achieve what I want? In result sh...
2021/11/08
[ "https://Stackoverflow.com/questions/69881150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16898096/" ]
You can use a matching regex solution: ```js text.match(/(?:L\+R|[^+])+/g) ``` See the [regex demo](https://regex101.com/r/m2XoxV/2/). *Details*: * `(?:` - start of a non-capturing group: + `L\+R` - `L+R` string + `|` - or + `[^+]` - any char other than `+` * `)+` - end of the group, one or more occurrences. Se...
Instead of splitting on a `+` you could match the format in the example data. First match a part containing a single @, and then match till the first occurrence of `@` followed by a digit. **Note** that the second match will be `342HSHC@CPU_8PIN INTEL_TEST!@1` instead of `342HSHC@CPU_8PIN INTEL_TEST!@2` ``` \w+@\w+ ...
69,881,150
I have a string like `23DGERA@SPK_20W L+R FA-2@1+342HSHC@CPU_8PIN INTEL_TEST!@1+2356GHMX@SSD_256G MICRON_CONTENT@2 + blablabla`. What I would like to do is to split up the string by `+`, yet in SPK section there is a L+R that would interrupt the process. Is there any REGEX that could achieve what I want? In result sh...
2021/11/08
[ "https://Stackoverflow.com/questions/69881150", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16898096/" ]
Instead of splitting on a `+` you could match the format in the example data. First match a part containing a single @, and then match till the first occurrence of `@` followed by a digit. **Note** that the second match will be `342HSHC@CPU_8PIN INTEL_TEST!@1` instead of `342HSHC@CPU_8PIN INTEL_TEST!@2` ``` \w+@\w+ ...
The string looks like a list of parts each with a quantity e.g. `@1`. You can use that to identify the correct `+` characters to split on. Using a look-behind containing `@\d+` -> `(?<=@\d+)` followed by the character you want to match (escaped because `+` has a special meaning) gives: ``` (?<=@\d+)\+ ``` Using thi...
3,214,023
I am attempting to track events when links are clicked on my site in a method similar to the following. ``` <a href="/example" class="track">Example</a> <script type="text/javascript"> jQuery(function($) { // track clicks on all anchor tags that require it $('a.track').live('click', function(e) { ...
2010/07/09
[ "https://Stackoverflow.com/questions/3214023", "https://Stackoverflow.com", "https://Stackoverflow.com/users/107277/" ]
Running Google's `trackPageview` method through a proxy like Charles shows that calls to `trackPageview( )` request a pixel from Google's servers with various parameters set, which is how most analytics packages wind up implementing such pieces of functionality (Omniture does the same). Basically, to get around ansync...
Matt, If you just want to make sure that the tracking pixel request is made and you don't depend upon response then just doing document.write for the tracking pixel image will do the work. And you can do the document.write in your onclick handler. AFA race condition between href and onclick handler of anchor elemen...
48,104,061
I am new to Python and is about to build a GUI using tkinter. The GUI consists of a Notebook and I am trying to create a event handler for when the user click with the mouse on the different tabs. However when I click on a tab, the handlerfunction 'works' but it seems the selected tab is not 'updated' before the functi...
2018/01/04
[ "https://Stackoverflow.com/questions/48104061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2423970/" ]
The reason this is happening is due to the order that events are processed. Custom bindings on widgets are processed before the built-in bindings, meaning that your binding on `<1>` will fire before the tab actually changes. For more information, research "binding tags" (or sometimes called "bind tags" or "bindtags"). ...
You're experiencing this because [events of bind are handled *before* events of bindtags](https://stackoverflow.com/a/3513906/7032856), in other words, you're actually *not* changing the tab before the callback function to `"<1>"` event, `personalData` is handled. --- One workaround would be to rotate the order of th...
48,104,061
I am new to Python and is about to build a GUI using tkinter. The GUI consists of a Notebook and I am trying to create a event handler for when the user click with the mouse on the different tabs. However when I click on a tab, the handlerfunction 'works' but it seems the selected tab is not 'updated' before the functi...
2018/01/04
[ "https://Stackoverflow.com/questions/48104061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2423970/" ]
You're experiencing this because [events of bind are handled *before* events of bindtags](https://stackoverflow.com/a/3513906/7032856), in other words, you're actually *not* changing the tab before the callback function to `"<1>"` event, `personalData` is handled. --- One workaround would be to rotate the order of th...
Note that when you click another tab, the current tab is still the previous tab; if you change your binding to ``` note.bind('<ButtonRelease-1>',personalData) ``` it will work right, as now, when the mouse button is released, the current tab is the tab already selected.
48,104,061
I am new to Python and is about to build a GUI using tkinter. The GUI consists of a Notebook and I am trying to create a event handler for when the user click with the mouse on the different tabs. However when I click on a tab, the handlerfunction 'works' but it seems the selected tab is not 'updated' before the functi...
2018/01/04
[ "https://Stackoverflow.com/questions/48104061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2423970/" ]
The reason this is happening is due to the order that events are processed. Custom bindings on widgets are processed before the built-in bindings, meaning that your binding on `<1>` will fire before the tab actually changes. For more information, research "binding tags" (or sometimes called "bind tags" or "bindtags"). ...
Note that when you click another tab, the current tab is still the previous tab; if you change your binding to ``` note.bind('<ButtonRelease-1>',personalData) ``` it will work right, as now, when the mouse button is released, the current tab is the tab already selected.
30,885,132
classyclass.java : ``` package work1; public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); Coffee capuccino = new Coffee(); latte.price = 5...
2015/06/17
[ "https://Stackoverflow.com/questions/30885132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018454/" ]
There are several things wrong or not logical in your code: **1)** If you only use `num` to print the value `1`, why not change it to: ``` int num = 1; ``` or ``` System.out.println(" blah blah blah " + 1); ``` or even ``` System.out.println(" blah blah blah 1"); ``` **2)** You make a new object of the type/...
change string comparison ``` coffeeType == "latte" ``` to ``` coffeeType.equals("latte") ``` that is how java compares string values. Make the changes in rest of your code with respect to these changes.
30,885,132
classyclass.java : ``` package work1; public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); Coffee capuccino = new Coffee(); latte.price = 5...
2015/06/17
[ "https://Stackoverflow.com/questions/30885132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018454/" ]
change string comparison ``` coffeeType == "latte" ``` to ``` coffeeType.equals("latte") ``` that is how java compares string values. Make the changes in rest of your code with respect to these changes.
Try this code. I have tried to use java conventions for your understanding. Your ClassyClass class: ``` import java.util.*; public class ClassyClass { ArrayList<Coffee> myClub; Scanner myInput; public ClassyClass() { myClub = new ArrayList<Coffee>(); myInput = new Scanner(System.in); ...
30,885,132
classyclass.java : ``` package work1; public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); Coffee capuccino = new Coffee(); latte.price = 5...
2015/06/17
[ "https://Stackoverflow.com/questions/30885132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018454/" ]
change string comparison ``` coffeeType == "latte" ``` to ``` coffeeType.equals("latte") ``` that is how java compares string values. Make the changes in rest of your code with respect to these changes.
You should have set coffeeType while setting price and you would have got correct results. ``` public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); l...
30,885,132
classyclass.java : ``` package work1; public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); Coffee capuccino = new Coffee(); latte.price = 5...
2015/06/17
[ "https://Stackoverflow.com/questions/30885132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018454/" ]
change string comparison ``` coffeeType == "latte" ``` to ``` coffeeType.equals("latte") ``` that is how java compares string values. Make the changes in rest of your code with respect to these changes.
In java the `==` operator compares an object reference. To compare a string you should use the `string.equals("..")` method.
30,885,132
classyclass.java : ``` package work1; public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); Coffee capuccino = new Coffee(); latte.price = 5...
2015/06/17
[ "https://Stackoverflow.com/questions/30885132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018454/" ]
There are several things wrong or not logical in your code: **1)** If you only use `num` to print the value `1`, why not change it to: ``` int num = 1; ``` or ``` System.out.println(" blah blah blah " + 1); ``` or even ``` System.out.println(" blah blah blah 1"); ``` **2)** You make a new object of the type/...
Try this code. I have tried to use java conventions for your understanding. Your ClassyClass class: ``` import java.util.*; public class ClassyClass { ArrayList<Coffee> myClub; Scanner myInput; public ClassyClass() { myClub = new ArrayList<Coffee>(); myInput = new Scanner(System.in); ...
30,885,132
classyclass.java : ``` package work1; public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); Coffee capuccino = new Coffee(); latte.price = 5...
2015/06/17
[ "https://Stackoverflow.com/questions/30885132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018454/" ]
There are several things wrong or not logical in your code: **1)** If you only use `num` to print the value `1`, why not change it to: ``` int num = 1; ``` or ``` System.out.println(" blah blah blah " + 1); ``` or even ``` System.out.println(" blah blah blah 1"); ``` **2)** You make a new object of the type/...
You should have set coffeeType while setting price and you would have got correct results. ``` public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); l...
30,885,132
classyclass.java : ``` package work1; public class classyclass { public static void main(String[] args) { int num; num = 0; num++; System.out.println(" blah blah blah " + num); Coffee latte = new Coffee(); Coffee capuccino = new Coffee(); latte.price = 5...
2015/06/17
[ "https://Stackoverflow.com/questions/30885132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5018454/" ]
There are several things wrong or not logical in your code: **1)** If you only use `num` to print the value `1`, why not change it to: ``` int num = 1; ``` or ``` System.out.println(" blah blah blah " + 1); ``` or even ``` System.out.println(" blah blah blah 1"); ``` **2)** You make a new object of the type/...
In java the `==` operator compares an object reference. To compare a string you should use the `string.equals("..")` method.
9,672
if you take a look at my website: [NerdyFuture](http://nerdyfuture.byethost24.com). You can probably see the couple of pictures at the top of the website. I made this in a custom HTML module, now what I want to achieve is to input data from another module in the custom HTML module I made. I want input the data from the...
2015/04/27
[ "https://joomla.stackexchange.com/questions/9672", "https://joomla.stackexchange.com", "https://joomla.stackexchange.com/users/3396/" ]
To do this, you can simply load module 1 into module 2. In your Custom HTML module, add the following into the textarea: ``` {loadposition XXX} ``` Where `XXX` is the position of your first module. To load an article into your Custom HTML module, you can also use NoNumber's [Articles Anywhere](https://www.nonumber...
Another way to load a module from your custom HTML extension would be to include the following code: ``` echo JHtml::_('content.prepare', '{loadposition someposition}'); ``` Here you can read in more detail: <https://www.joomlashack.com/blog/joomla-how-to/module-position-component/>
66,799,165
I cannot see the collections and values in the Cloud Firestore after they were created in my Flutter app. I am working on a Flutter mobile app by using Flutter and Firebase. I use cloud firestore to keep data. when I run the app, I can see "hi" from VS Code's terminal, but when I went to the firebase, refresh the cloud...
2021/03/25
[ "https://Stackoverflow.com/questions/66799165", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15477306/" ]
I think that the problem is in this declaration ``` await Firebase.initializeApp(); ``` I think that you should remove the **await** keyword there and in the functcion, and when you use that function to initialize Firebase in the project you need to put the credential of the project as a parameter of that funct...
delete `await` keyword. It conflicts with `then`. You need to use or `await` or `then`: ``` void _onPressed() async{ FirebaseFirestore.instance.collection("users").doc().set({ "name": "john", "age": 50, "email": "example@example.com", "address": {"street": "street 24", "city": "ne...
60,127,746
If I want to override a css class where specificity is not working, I use the following format which works well. ``` div[class="class-name"] { padding-bottom: 0; } ``` But how to override the class in the form `bx--modal-content > *:last-child` ? The following is not working. ``` div[class="bx--modal-co...
2020/02/08
[ "https://Stackoverflow.com/questions/60127746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9433522/" ]
Your selector is invalid ``` div[class="bx--modal-content > *:last-child"] { padding-bottom: 0; } ``` You don't have a class attribute that is "bx--modal-content > \*:last-child" What you actually want is ``` div[class="bx--modal-content"] > *:last-child] { padding-bottom: 0; } ``` This will sel...
You could use, as an exception, an `!important` suffix in your first css, so that specificity rules are ignored. Place it juste before the trailing `;`
60,127,746
If I want to override a css class where specificity is not working, I use the following format which works well. ``` div[class="class-name"] { padding-bottom: 0; } ``` But how to override the class in the form `bx--modal-content > *:last-child` ? The following is not working. ``` div[class="bx--modal-co...
2020/02/08
[ "https://Stackoverflow.com/questions/60127746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9433522/" ]
The selector should be ``` div[class="bx--modal-content"] > *:last-child { padding-bottom: 0; ] ``` The `> *:last-child` isn't part of the class, so it shouldn't be inside the `[ ... ]` brackets.
You could use, as an exception, an `!important` suffix in your first css, so that specificity rules are ignored. Place it juste before the trailing `;`
60,127,746
If I want to override a css class where specificity is not working, I use the following format which works well. ``` div[class="class-name"] { padding-bottom: 0; } ``` But how to override the class in the form `bx--modal-content > *:last-child` ? The following is not working. ``` div[class="bx--modal-co...
2020/02/08
[ "https://Stackoverflow.com/questions/60127746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9433522/" ]
Your selector is invalid ``` div[class="bx--modal-content > *:last-child"] { padding-bottom: 0; } ``` You don't have a class attribute that is "bx--modal-content > \*:last-child" What you actually want is ``` div[class="bx--modal-content"] > *:last-child] { padding-bottom: 0; } ``` This will sel...
Try like this ``` div[class="bx--modal-content > *:last-child"] { padding-bottom: 0 !important; } ``` or ``` :host /deep/ --> before the class if you want override plugins ```
60,127,746
If I want to override a css class where specificity is not working, I use the following format which works well. ``` div[class="class-name"] { padding-bottom: 0; } ``` But how to override the class in the form `bx--modal-content > *:last-child` ? The following is not working. ``` div[class="bx--modal-co...
2020/02/08
[ "https://Stackoverflow.com/questions/60127746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9433522/" ]
The selector should be ``` div[class="bx--modal-content"] > *:last-child { padding-bottom: 0; ] ``` The `> *:last-child` isn't part of the class, so it shouldn't be inside the `[ ... ]` brackets.
Try like this ``` div[class="bx--modal-content > *:last-child"] { padding-bottom: 0 !important; } ``` or ``` :host /deep/ --> before the class if you want override plugins ```
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
[Hatha Yoga Pradipika](http://www.sacred-texts.com/hin/hyp/hyp03.htm) (1.61 to 1.70) gives the list of foods that are fit for the Yogi as well as those foods which a Yogi must avoid. Recommended foods are rice, wheat, milk etc. > > Varjayeddurjanaprāntam vahnistrīpathisevanam > Prātahsnānopavāsādi > kāyakleśavid...
The Upanishadic advice is to eat food that keeps your body healthy. Treat food as a type of medicine. > > After saying thrice, ‘I have renounced, I have renounced, I have > renounced’, he shall take up the bamboo staff and don the loin-cloth, > uttering the mantra: ‘Let all beings be devoid of fear. Everything > o...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
[Hatha Yoga Pradipika](http://www.sacred-texts.com/hin/hyp/hyp03.htm) (1.61 to 1.70) gives the list of foods that are fit for the Yogi as well as those foods which a Yogi must avoid. Recommended foods are rice, wheat, milk etc. > > Varjayeddurjanaprāntam vahnistrīpathisevanam > Prātahsnānopavāsādi > kāyakleśavid...
[**Yogatattva Upanishad**](https://www.wisdomlib.org/hinduism/book/yogatattva-upanishad-of-krishna-yajurveda/d/doc217055.html) (3rd paragraph ) gives a small glimpse of it with generally healthy vegetarian food is enough for a Yogi > > The proficient in Yoga should abandon the food detrimental to the practice of Yoga...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
[Hatha Yoga Pradipika](http://www.sacred-texts.com/hin/hyp/hyp03.htm) (1.61 to 1.70) gives the list of foods that are fit for the Yogi as well as those foods which a Yogi must avoid. Recommended foods are rice, wheat, milk etc. > > Varjayeddurjanaprāntam vahnistrīpathisevanam > Prātahsnānopavāsādi > kāyakleśavid...
As per Ramana Maharshi <http://bhagwan-ramana-maharshi.blogspot.com/2008/12/ramana-maharshi-on-vegetarianism-eating.html> <http://spiritualblossoms.blogspot.com/2010/08/sri-ramana-maharshi-diet.html> > > Question : What about diet? > > Ramana Maharshi : Food affects the mind. > For the practice of any kind of yo...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
[Hatha Yoga Pradipika](http://www.sacred-texts.com/hin/hyp/hyp03.htm) (1.61 to 1.70) gives the list of foods that are fit for the Yogi as well as those foods which a Yogi must avoid. Recommended foods are rice, wheat, milk etc. > > Varjayeddurjanaprāntam vahnistrīpathisevanam > Prātahsnānopavāsādi > kāyakleśavid...
Sanatana Dharma aka Hinduism has 4 sects of people depending on their duty Brahmin (one whose life is of knowledge) ex:- Teacher, priest, doctor, scholar, architect, judge.. Kshatriya (one whose life is of a warrior) ex:- soldier, king, cop, fireman etc., Vaishya (one whose life is of trade) ex:- shop owner, trad...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
[**Yogatattva Upanishad**](https://www.wisdomlib.org/hinduism/book/yogatattva-upanishad-of-krishna-yajurveda/d/doc217055.html) (3rd paragraph ) gives a small glimpse of it with generally healthy vegetarian food is enough for a Yogi > > The proficient in Yoga should abandon the food detrimental to the practice of Yoga...
The Upanishadic advice is to eat food that keeps your body healthy. Treat food as a type of medicine. > > After saying thrice, ‘I have renounced, I have renounced, I have > renounced’, he shall take up the bamboo staff and don the loin-cloth, > uttering the mantra: ‘Let all beings be devoid of fear. Everything > o...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
The Upanishadic advice is to eat food that keeps your body healthy. Treat food as a type of medicine. > > After saying thrice, ‘I have renounced, I have renounced, I have > renounced’, he shall take up the bamboo staff and don the loin-cloth, > uttering the mantra: ‘Let all beings be devoid of fear. Everything > o...
Sanatana Dharma aka Hinduism has 4 sects of people depending on their duty Brahmin (one whose life is of knowledge) ex:- Teacher, priest, doctor, scholar, architect, judge.. Kshatriya (one whose life is of a warrior) ex:- soldier, king, cop, fireman etc., Vaishya (one whose life is of trade) ex:- shop owner, trad...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
[**Yogatattva Upanishad**](https://www.wisdomlib.org/hinduism/book/yogatattva-upanishad-of-krishna-yajurveda/d/doc217055.html) (3rd paragraph ) gives a small glimpse of it with generally healthy vegetarian food is enough for a Yogi > > The proficient in Yoga should abandon the food detrimental to the practice of Yoga...
As per Ramana Maharshi <http://bhagwan-ramana-maharshi.blogspot.com/2008/12/ramana-maharshi-on-vegetarianism-eating.html> <http://spiritualblossoms.blogspot.com/2010/08/sri-ramana-maharshi-diet.html> > > Question : What about diet? > > Ramana Maharshi : Food affects the mind. > For the practice of any kind of yo...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
[**Yogatattva Upanishad**](https://www.wisdomlib.org/hinduism/book/yogatattva-upanishad-of-krishna-yajurveda/d/doc217055.html) (3rd paragraph ) gives a small glimpse of it with generally healthy vegetarian food is enough for a Yogi > > The proficient in Yoga should abandon the food detrimental to the practice of Yoga...
Sanatana Dharma aka Hinduism has 4 sects of people depending on their duty Brahmin (one whose life is of knowledge) ex:- Teacher, priest, doctor, scholar, architect, judge.. Kshatriya (one whose life is of a warrior) ex:- soldier, king, cop, fireman etc., Vaishya (one whose life is of trade) ex:- shop owner, trad...
29,703
For spiritual progress I want to know the role of food intake. Which type of food is suggested in scriptures for one who want to approach the path of Yoga? In other words, do Shastras recommend or instruct particular foods (to be taken) which helps one's spiritual journey be smooth? Looking for answers from scriptures...
2018/10/29
[ "https://hinduism.stackexchange.com/questions/29703", "https://hinduism.stackexchange.com", "https://hinduism.stackexchange.com/users/647/" ]
As per Ramana Maharshi <http://bhagwan-ramana-maharshi.blogspot.com/2008/12/ramana-maharshi-on-vegetarianism-eating.html> <http://spiritualblossoms.blogspot.com/2010/08/sri-ramana-maharshi-diet.html> > > Question : What about diet? > > Ramana Maharshi : Food affects the mind. > For the practice of any kind of yo...
Sanatana Dharma aka Hinduism has 4 sects of people depending on their duty Brahmin (one whose life is of knowledge) ex:- Teacher, priest, doctor, scholar, architect, judge.. Kshatriya (one whose life is of a warrior) ex:- soldier, king, cop, fireman etc., Vaishya (one whose life is of trade) ex:- shop owner, trad...
59,718
Long time ago I heard a word that to the best of my recollection is "plepentry envoy" I have googled a few variants, but "pleopentry envoy", "pelepentry envoy" etc. but nothing similar is coming up. This is a long shot, but the word was suppose to mean something like an envoy that was dispatched by a royal with full m...
2012/03/01
[ "https://english.stackexchange.com/questions/59718", "https://english.stackexchange.com", "https://english.stackexchange.com/users/6735/" ]
I think you're looking for "plenipotentiary", meaning "full power" from the Latin. <http://en.wikipedia.org/wiki/Plenipotentiary>
As Christi says. It's still in use. The full designation of a British ambassador is 'Her Britannic Majesty's Ambassador Extraordinary and Plenipotentiary'.
59,718
Long time ago I heard a word that to the best of my recollection is "plepentry envoy" I have googled a few variants, but "pleopentry envoy", "pelepentry envoy" etc. but nothing similar is coming up. This is a long shot, but the word was suppose to mean something like an envoy that was dispatched by a royal with full m...
2012/03/01
[ "https://english.stackexchange.com/questions/59718", "https://english.stackexchange.com", "https://english.stackexchange.com/users/6735/" ]
I think you're looking for "plenipotentiary", meaning "full power" from the Latin. <http://en.wikipedia.org/wiki/Plenipotentiary>
Regarding "hints on how to chase up this word", try a reverse dictionary. For example, entering *[envoy with full mandate](http://www.onelook.com/?w=%2a&loc=revfp2&clue=envoy+with+full+mandate)* at [onelook](http://www.onelook.com/reverse-dictionary.shtml) shows *[plenipotentiary](http://en.wiktionary.org/wiki/plenipot...