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
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
There's reactive -- <http://github.com/nafg/reactive>. The repository currently contains two projects. reactive-core is a standalone FRP library. reactive-web builds on it to make it very easy to make very dynamic and interactive Lift webapps.
There is scala-reactive: <http://github.com/erikrozendaal/scala-reactive> It is inspired by Microsoft's Reactive Extensions library, with an Observable trait taking the place of IObservable, and tailored to the Scala collections API as much Rx is to the LINQ API.
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
There's reactive -- <http://github.com/nafg/reactive>. The repository currently contains two projects. reactive-core is a standalone FRP library. reactive-web builds on it to make it very easy to make very dynamic and interactive Lift webapps.
I don't Scala so don't know how good these are but here is a blog with comments that talk about FRP in scala: [Functional Reactive Programming (FRP) in Scala (Fresca, ScalaFX)](http://www.nabble.com/Functional-Reactive-Programming-%28FRP%29-in-Scala-%28Fresca%2C-ScalaFX%29-td23838581.html) and [here](http://www.reddit....
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
See also Odersky et al.'s paper "[Deprecating the Observer Pattern](http://infoscience.epfl.ch/record/176887)". It explains the library [Scala.React](https://github.com/ingoem/scala-react), which was developed for the paper.
<https://github.com/Netflix/RxJava> Functional Reactive Programming library for the JVM, developed by Netflix.
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
There is scala-reactive: <http://github.com/erikrozendaal/scala-reactive> It is inspired by Microsoft's Reactive Extensions library, with an Observable trait taking the place of IObservable, and tailored to the Scala collections API as much Rx is to the LINQ API.
You have many many libraries. Here you have a list of many of them <https://github.com/politrons/reactiveScala>
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
See also Odersky et al.'s paper "[Deprecating the Observer Pattern](http://infoscience.epfl.ch/record/176887)". It explains the library [Scala.React](https://github.com/ingoem/scala-react), which was developed for the paper.
Coursera [Principles of Reactive Programming](https://www.coursera.org/course/reactive) course promotes [RxScala](http://rxscala.github.io/). > > RxScala brings Reactive Extensions to Scala. Rx was first implemented > for .NET, and is now being implemented in Java. The RxScala project is > an adaptor for RxJava. It...
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
<https://github.com/Netflix/RxJava> Functional Reactive Programming library for the JVM, developed by Netflix.
You have many many libraries. Here you have a list of many of them <https://github.com/politrons/reactiveScala>
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
There's reactive -- <http://github.com/nafg/reactive>. The repository currently contains two projects. reactive-core is a standalone FRP library. reactive-web builds on it to make it very easy to make very dynamic and interactive Lift webapps.
<https://github.com/Netflix/RxJava> Functional Reactive Programming library for the JVM, developed by Netflix.
1,054,188
Suppose I have a junction table ``` EmployeeId DeptId --------- ------ 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 4 1 5 2 5 3 6 1 6 2 6 3 ``` So 1 employee can work ...
2009/06/28
[ "https://Stackoverflow.com/questions/1054188", "https://Stackoverflow.com", "https://Stackoverflow.com/users/111663/" ]
There's reactive -- <http://github.com/nafg/reactive>. The repository currently contains two projects. reactive-core is a standalone FRP library. reactive-web builds on it to make it very easy to make very dynamic and interactive Lift webapps.
Coursera [Principles of Reactive Programming](https://www.coursera.org/course/reactive) course promotes [RxScala](http://rxscala.github.io/). > > RxScala brings Reactive Extensions to Scala. Rx was first implemented > for .NET, and is now being implemented in Java. The RxScala project is > an adaptor for RxJava. It...
22,466,057
Alright so this is simple enough. I need to print out all the parameters of an object at a specific index. However, all of the objects are displaying the memory address. I know you have to override the toString method. But I'm not quite sure where. Any help would be great! Here is my Employee class code: ``` public...
2014/03/17
[ "https://Stackoverflow.com/questions/22466057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2060951/" ]
Put `toString()` in class Employee, perhaps with @Override tag above it. ``` @Override public String toString() { return name + ", " + age + ", " + department; } ```
``` class Employee { @Override public String toString() { return String.format("[Employee name=%s, age=%d, department=%s]", name, age, department); } } ``` Now just loop over the array of employees and just print the employee object as you already have.
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
``` user> (float (/ 411 125)) 3.288 user> (double (/ 411 125)) 3.288 ```
As [documented](http://clojure.org/data_structures), integer division yields rational numbers. Try ``` (/ 411.0 125) ```
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
``` user=> (clojure-version) "1.4.0" user=> (doc quot) ------------------------- clojure.core/quot ([num div]) quot[ient] of dividing numerator by denominator. nil user=> (quot 411 125) 3 ```
As [documented](http://clojure.org/data_structures), integer division yields rational numbers. Try ``` (/ 411.0 125) ```
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
``` user> (float (/ 411 125)) 3.288 user> (double (/ 411 125)) 3.288 ```
``` user=> (clojure-version) "1.4.0" user=> (doc quot) ------------------------- clojure.core/quot ([num div]) quot[ient] of dividing numerator by denominator. nil user=> (quot 411 125) 3 ```
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
``` user=> (clojure-version) "1.4.0" user=> (doc quot) ------------------------- clojure.core/quot ([num div]) quot[ient] of dividing numerator by denominator. nil user=> (quot 411 125) 3 ```
`(float 411/125)` is another variant if you are given the numbers directly, which is the case if you are just using the REPL as a calculator. Unfortunately this is a few characters longer than the solution by Jonathan Feinberg and ire\_and\_curses. ;)
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
``` user=> (clojure-version) "1.4.0" user=> (doc quot) ------------------------- clojure.core/quot ([num div]) quot[ient] of dividing numerator by denominator. nil user=> (quot 411 125) 3 ```
If you use a float for the dividend, you'll get a decimal answer. ``` (/ 22.0 7) -> 3.142857142857143 ``` There's also the [(unchecked-remainder x y)](http://clojure.org/api) function available.
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
As [documented](http://clojure.org/data_structures), integer division yields rational numbers. Try ``` (/ 411.0 125) ```
even this will work: ``` (/ 22. 7) => 3.142857142857143 ```
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
If you use a float for the dividend, you'll get a decimal answer. ``` (/ 22.0 7) -> 3.142857142857143 ``` There's also the [(unchecked-remainder x y)](http://clojure.org/api) function available.
`(float 411/125)` is another variant if you are given the numbers directly, which is the case if you are just using the REPL as a calculator. Unfortunately this is a few characters longer than the solution by Jonathan Feinberg and ire\_and\_curses. ;)
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
As [documented](http://clojure.org/data_structures), integer division yields rational numbers. Try ``` (/ 411.0 125) ```
`(float 411/125)` is another variant if you are given the numbers directly, which is the case if you are just using the REPL as a calculator. Unfortunately this is a few characters longer than the solution by Jonathan Feinberg and ire\_and\_curses. ;)
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
``` user> (float (/ 411 125)) 3.288 user> (double (/ 411 125)) 3.288 ```
If you use a float for the dividend, you'll get a decimal answer. ``` (/ 22.0 7) -> 3.142857142857143 ``` There's also the [(unchecked-remainder x y)](http://clojure.org/api) function available.
1,596,484
When I do `(/ 411 125)` , I don't get it in terms of decimal. How do I do that?
2009/10/20
[ "https://Stackoverflow.com/questions/1596484", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82368/" ]
``` user=> (clojure-version) "1.4.0" user=> (doc quot) ------------------------- clojure.core/quot ([num div]) quot[ient] of dividing numerator by denominator. nil user=> (quot 411 125) 3 ```
even this will work: ``` (/ 22. 7) => 3.142857142857143 ```
73,293,568
Initial dataframe looks like : ``` Primary Key date_1 date_2 22 2021-11-20 NaN 22 2021-11-24 NaN 22 NaN 2021-11-23 22 NaN 2021-11-22 ``` Desired Dataframe is : ``` Primary Key date_1 date_2 22 2021-11-20 ...
2022/08/09
[ "https://Stackoverflow.com/questions/73293568", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19303365/" ]
Like I guessed my problem was a minor one... only thing wrong was the ":" in my headers, just had to exchange them for "=". Well got a new problem but I doubt that you guys can help me when I am not allowed to share more information about our server and applications. ``` <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//...
Here's a rewrite of your script in `bash` using `curl`, because it'll be easier to discuss against an example rather than an abstract in comments. This, at least to my eyes, does exactly what your Powershell script is doing. ``` #!/bin/bash url="https://YOUR-URL" username="XXX" password="YYY" hostname="ZZZ" # first...
9,632,447
> > **Possible Duplicate:** > > [Change language programatically in Android](https://stackoverflow.com/questions/2900023/change-language-programatically-in-android) > > > I would like to develop an Android app which will offer some specific information based on the user selection of a country. So the user will...
2012/03/09
[ "https://Stackoverflow.com/questions/9632447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/902898/" ]
I think it is good to put them in "`res/raw`". You may consider using `xml` files instead of plain text files. It could be easier to parse and better organized.
Not really what you are looking for, but you might be interested in reading the developer document about [Localization](http://developer.android.com/guide/topics/resources/localization.html) as well.
9,632,447
> > **Possible Duplicate:** > > [Change language programatically in Android](https://stackoverflow.com/questions/2900023/change-language-programatically-in-android) > > > I would like to develop an Android app which will offer some specific information based on the user selection of a country. So the user will...
2012/03/09
[ "https://Stackoverflow.com/questions/9632447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/902898/" ]
I think it is good to put them in "`res/raw`". You may consider using `xml` files instead of plain text files. It could be easier to parse and better organized.
It's recommend to use the method from Jave, but your way is also possible. Create for every language element in /res/values/strings.xml. You can set and select the chosen language with shared preferences. The file to select the chosen language is something like this: ``` TextView tv = (TextView) getViewById(R.id.textv...
9,632,447
> > **Possible Duplicate:** > > [Change language programatically in Android](https://stackoverflow.com/questions/2900023/change-language-programatically-in-android) > > > I would like to develop an Android app which will offer some specific information based on the user selection of a country. So the user will...
2012/03/09
[ "https://Stackoverflow.com/questions/9632447", "https://Stackoverflow.com", "https://Stackoverflow.com/users/902898/" ]
It's recommend to use the method from Jave, but your way is also possible. Create for every language element in /res/values/strings.xml. You can set and select the chosen language with shared preferences. The file to select the chosen language is something like this: ``` TextView tv = (TextView) getViewById(R.id.textv...
Not really what you are looking for, but you might be interested in reading the developer document about [Localization](http://developer.android.com/guide/topics/resources/localization.html) as well.
7,448,009
I have two animations that I would like to group as one animation so that the easing will carry over and continue into the next animation. The second animation needs to start after the first one has finished. This is what I have so far, but the easing starts over when the second animation begins (which is what I would ...
2011/09/16
[ "https://Stackoverflow.com/questions/7448009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/48523/" ]
No I'm afraid this is not possible. You could just run millions of print tasks at the time, and it wouldn't be good for user
Short answer: you can't do that with JavaScript.
7,448,009
I have two animations that I would like to group as one animation so that the easing will carry over and continue into the next animation. The second animation needs to start after the first one has finished. This is what I have so far, but the easing starts over when the second animation begins (which is what I would ...
2011/09/16
[ "https://Stackoverflow.com/questions/7448009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/48523/" ]
No, you cannot do it. You can only do `window.print()` with javascript and it displays the window. Why you cannot: because safety.
No I'm afraid this is not possible. You could just run millions of print tasks at the time, and it wouldn't be good for user
7,448,009
I have two animations that I would like to group as one animation so that the easing will carry over and continue into the next animation. The second animation needs to start after the first one has finished. This is what I have so far, but the easing starts over when the second animation begins (which is what I would ...
2011/09/16
[ "https://Stackoverflow.com/questions/7448009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/48523/" ]
No, you cannot do it. You can only do `window.print()` with javascript and it displays the window. Why you cannot: because safety.
Short answer: you can't do that with JavaScript.
7,448,009
I have two animations that I would like to group as one animation so that the easing will carry over and continue into the next animation. The second animation needs to start after the first one has finished. This is what I have so far, but the easing starts over when the second animation begins (which is what I would ...
2011/09/16
[ "https://Stackoverflow.com/questions/7448009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/48523/" ]
yes, you can. In Firefox about:config you can make property print.always\_print\_silent equal to true.Then Firefox will print without prompt. And using "JS Print setup" you can adjust some printer parameters directly from javascript
Short answer: you can't do that with JavaScript.
7,448,009
I have two animations that I would like to group as one animation so that the easing will carry over and continue into the next animation. The second animation needs to start after the first one has finished. This is what I have so far, but the easing starts over when the second animation begins (which is what I would ...
2011/09/16
[ "https://Stackoverflow.com/questions/7448009", "https://Stackoverflow.com", "https://Stackoverflow.com/users/48523/" ]
No, you cannot do it. You can only do `window.print()` with javascript and it displays the window. Why you cannot: because safety.
yes, you can. In Firefox about:config you can make property print.always\_print\_silent equal to true.Then Firefox will print without prompt. And using "JS Print setup" you can adjust some printer parameters directly from javascript
31,066,194
``` String Checkout = D:\ifs\APP\Checkout String DeleteLine = D:\IFS\APP\Checkout\trvexp\client\Ifs.App\text.txt ``` Note the **ifs** and **IFS** in both Strings. I want to replace the **Checkout String** in the **Deleted Line** So the final String would look like this: ``` \trvexp\client\Ifs.App\text.txt ``` Fol...
2015/06/26
[ "https://Stackoverflow.com/questions/31066194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1178183/" ]
`String.replace()` doesn't support regex. You need `String.replaceAll()`. ``` DeleteLine.replaceAll("(?i)" + Pattern.quote(Checkout), ""); ```
Put `(?i)` in the `replaceAll` method's regular expression: ``` String finalString = DeleteLine.replaceAll("(?i)" + Checkout, ""); ```
31,066,194
``` String Checkout = D:\ifs\APP\Checkout String DeleteLine = D:\IFS\APP\Checkout\trvexp\client\Ifs.App\text.txt ``` Note the **ifs** and **IFS** in both Strings. I want to replace the **Checkout String** in the **Deleted Line** So the final String would look like this: ``` \trvexp\client\Ifs.App\text.txt ``` Fol...
2015/06/26
[ "https://Stackoverflow.com/questions/31066194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1178183/" ]
`String.replace()` doesn't support regex. You need `String.replaceAll()`. ``` DeleteLine.replaceAll("(?i)" + Pattern.quote(Checkout), ""); ```
You can do this: ``` String Checkout = "D:\\\\ifs\\\\APP\\\\Checkout"; String DeleteLine = "D:\\IFS\\APP\\Checkout\\trvexp\\client\\Ifs.App\\text.txt"; String f = DeleteLine.replaceFirst("(?i)"+Checkout, ""); ```
31,066,194
``` String Checkout = D:\ifs\APP\Checkout String DeleteLine = D:\IFS\APP\Checkout\trvexp\client\Ifs.App\text.txt ``` Note the **ifs** and **IFS** in both Strings. I want to replace the **Checkout String** in the **Deleted Line** So the final String would look like this: ``` \trvexp\client\Ifs.App\text.txt ``` Fol...
2015/06/26
[ "https://Stackoverflow.com/questions/31066194", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1178183/" ]
`String.replace()` doesn't support regex. You need `String.replaceAll()`. ``` DeleteLine.replaceAll("(?i)" + Pattern.quote(Checkout), ""); ```
Alternatively, if youi want the pattern on a specific portion you can do it manually. You can declare the checkout Sting as: ``` String Checkout= \Q(?i)D:\ifs\APP\Checkout\E ``` as > > \Q means "start of literal text" > > \E means"end of literal text" > > > and then do the replace ``` String final = Dele...
799,382
I even dont understood the question: If $\sin\theta = \frac{-1}{2}$ , then what will be the possible values of $\theta$ between $0$ and $ 2π $
2014/05/17
[ "https://math.stackexchange.com/questions/799382", "https://math.stackexchange.com", "https://math.stackexchange.com/users/148253/" ]
Hint: First find the principle angle (i.e. what is $\sin\theta=\frac{1}{2}$, in quadrant $1$) and recall that sine is negative in quadrants $3$ and $4$.
sinΘ = -(1/2) at 210 and 330 radians
799,382
I even dont understood the question: If $\sin\theta = \frac{-1}{2}$ , then what will be the possible values of $\theta$ between $0$ and $ 2π $
2014/05/17
[ "https://math.stackexchange.com/questions/799382", "https://math.stackexchange.com", "https://math.stackexchange.com/users/148253/" ]
An easy way of observing how many expected solutions we should get is by sketching our function $\sin(x)$ for $0\leq x \leq 2\pi$ along with $x=-\frac{1}{2}$, as follows: ![sin graph with x=-(1/2) line](https://i.stack.imgur.com/ytyqN.png) We see that there are two points at which the two functions intersect, so we s...
Hint: First find the principle angle (i.e. what is $\sin\theta=\frac{1}{2}$, in quadrant $1$) and recall that sine is negative in quadrants $3$ and $4$.
799,382
I even dont understood the question: If $\sin\theta = \frac{-1}{2}$ , then what will be the possible values of $\theta$ between $0$ and $ 2π $
2014/05/17
[ "https://math.stackexchange.com/questions/799382", "https://math.stackexchange.com", "https://math.stackexchange.com/users/148253/" ]
Hint: First find the principle angle (i.e. what is $\sin\theta=\frac{1}{2}$, in quadrant $1$) and recall that sine is negative in quadrants $3$ and $4$.
$$\sin\theta=-\frac12=-\sin\frac\pi6=\sin\left(-\frac\pi6\right)$$ $$\implies\theta=m\pi+(-1)^m\left(-\frac\pi6\right)$$ where $m$ is any integer When $\displaystyle m$ is even, $=2r$(say) $\displaystyle\theta=2r\pi-\frac\pi6$ We need $\displaystyle 0\le2r\pi-\frac\pi6\le2\pi\implies 0<r\le1\implies r=1$ Similarly,...
799,382
I even dont understood the question: If $\sin\theta = \frac{-1}{2}$ , then what will be the possible values of $\theta$ between $0$ and $ 2π $
2014/05/17
[ "https://math.stackexchange.com/questions/799382", "https://math.stackexchange.com", "https://math.stackexchange.com/users/148253/" ]
An easy way of observing how many expected solutions we should get is by sketching our function $\sin(x)$ for $0\leq x \leq 2\pi$ along with $x=-\frac{1}{2}$, as follows: ![sin graph with x=-(1/2) line](https://i.stack.imgur.com/ytyqN.png) We see that there are two points at which the two functions intersect, so we s...
sinΘ = -(1/2) at 210 and 330 radians
799,382
I even dont understood the question: If $\sin\theta = \frac{-1}{2}$ , then what will be the possible values of $\theta$ between $0$ and $ 2π $
2014/05/17
[ "https://math.stackexchange.com/questions/799382", "https://math.stackexchange.com", "https://math.stackexchange.com/users/148253/" ]
$$\sin\theta=-\frac12=-\sin\frac\pi6=\sin\left(-\frac\pi6\right)$$ $$\implies\theta=m\pi+(-1)^m\left(-\frac\pi6\right)$$ where $m$ is any integer When $\displaystyle m$ is even, $=2r$(say) $\displaystyle\theta=2r\pi-\frac\pi6$ We need $\displaystyle 0\le2r\pi-\frac\pi6\le2\pi\implies 0<r\le1\implies r=1$ Similarly,...
sinΘ = -(1/2) at 210 and 330 radians
799,382
I even dont understood the question: If $\sin\theta = \frac{-1}{2}$ , then what will be the possible values of $\theta$ between $0$ and $ 2π $
2014/05/17
[ "https://math.stackexchange.com/questions/799382", "https://math.stackexchange.com", "https://math.stackexchange.com/users/148253/" ]
An easy way of observing how many expected solutions we should get is by sketching our function $\sin(x)$ for $0\leq x \leq 2\pi$ along with $x=-\frac{1}{2}$, as follows: ![sin graph with x=-(1/2) line](https://i.stack.imgur.com/ytyqN.png) We see that there are two points at which the two functions intersect, so we s...
$$\sin\theta=-\frac12=-\sin\frac\pi6=\sin\left(-\frac\pi6\right)$$ $$\implies\theta=m\pi+(-1)^m\left(-\frac\pi6\right)$$ where $m$ is any integer When $\displaystyle m$ is even, $=2r$(say) $\displaystyle\theta=2r\pi-\frac\pi6$ We need $\displaystyle 0\le2r\pi-\frac\pi6\le2\pi\implies 0<r\le1\implies r=1$ Similarly,...
49,192,732
I may be missing something, but I can't find any example how to pass array with data from HOC component to another component. Here is my code ```js import React from 'react' import NoAccessPage from '../../pages/Admin/NoAccess'; import { menuItems } from '../../config/menu'; import {connect} from 'react-redux' co...
2018/03/09
[ "https://Stackoverflow.com/questions/49192732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9467032/" ]
If this is a column in a table: ``` select * from t where col not like '% %'; ```
Check this out ``` CREATE TABLE recipes ( recipe_name VARCHAR(30)); INSERT INTO recipes (recipe_name) VALUES ('123456789') ,('1 2 3 4 5678') ,('12 34 56 78') ,('1234 56') ,('4782828') ,('677 56 764') ,('467 567 675') SELECT recipe_name FROM recipes ...
49,192,732
I may be missing something, but I can't find any example how to pass array with data from HOC component to another component. Here is my code ```js import React from 'react' import NoAccessPage from '../../pages/Admin/NoAccess'; import { menuItems } from '../../config/menu'; import {connect} from 'react-redux' co...
2018/03/09
[ "https://Stackoverflow.com/questions/49192732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9467032/" ]
You could also use the `translate()` function to do this check: ``` WITH your_table AS (SELECT '123456789' str FROM dual UNION ALL SELECT '1 2 3 4 5678' str FROM dual UNION ALL SELECT '12 34 56 78' str FROM dual UNION ALL SELECT '1234 56' str FROM dual UN...
If this is a column in a table: ``` select * from t where col not like '% %'; ```
49,192,732
I may be missing something, but I can't find any example how to pass array with data from HOC component to another component. Here is my code ```js import React from 'react' import NoAccessPage from '../../pages/Admin/NoAccess'; import { menuItems } from '../../config/menu'; import {connect} from 'react-redux' co...
2018/03/09
[ "https://Stackoverflow.com/questions/49192732", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9467032/" ]
You could also use the `translate()` function to do this check: ``` WITH your_table AS (SELECT '123456789' str FROM dual UNION ALL SELECT '1 2 3 4 5678' str FROM dual UNION ALL SELECT '12 34 56 78' str FROM dual UNION ALL SELECT '1234 56' str FROM dual UN...
Check this out ``` CREATE TABLE recipes ( recipe_name VARCHAR(30)); INSERT INTO recipes (recipe_name) VALUES ('123456789') ,('1 2 3 4 5678') ,('12 34 56 78') ,('1234 56') ,('4782828') ,('677 56 764') ,('467 567 675') SELECT recipe_name FROM recipes ...
4,357,579
I am trying to import the excel file whose format is not in row column order in asp.net 3.5 I tried to read the file using OleDBDataAdapter but it given me the error "External file is not in proper format" something like that.. So please give me solution if anybody have **how to read the random formatted excel file i...
2010/12/05
[ "https://Stackoverflow.com/questions/4357579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/531003/" ]
If you name your string s it would be: ``` s = s[:s.rfind(",")+ 1] ``` remove the one if don't want the comma at the end.
If you refer to `string` elements, you can utilize [`str.rsplit()`](http://docs.python.org/library/stdtypes.html#str.rsplit) to separate each string, setting `maxsplit` to 1. > > `str.rsplit([sep[, maxsplit]])` > > > Return a list of the words in the string, using sep as the delimiter string. If maxsplit is given, ...
4,357,579
I am trying to import the excel file whose format is not in row column order in asp.net 3.5 I tried to read the file using OleDBDataAdapter but it given me the error "External file is not in proper format" something like that.. So please give me solution if anybody have **how to read the random formatted excel file i...
2010/12/05
[ "https://Stackoverflow.com/questions/4357579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/531003/" ]
If you name your string s it would be: ``` s = s[:s.rfind(",")+ 1] ``` remove the one if don't want the comma at the end.
Try this: ``` In [84]: s = 'YELLOW,SMALL,STRETCH,ADULT,Tkj' In [85]: re.search('(.*,)(.*)$', s).groups() Out[85]: ('YELLOW,SMALL,STRETCH,ADULT,', 'Tkj') In [86]: (a, b) = re.search('(.*,)(.*)$', s).groups() ``` `a` will contain the part you want and `b` will contain the part you want to delete
10,263
[Recent articles in the media](https://www.nytimes.com/2013/09/06/us/nsa-foils-much-internet-encryption.html?hp&pagewanted=all), based upon Snowden documents, have suggested that the NSA has actively tried to enable surveillance by embedding weaknesses in commercially-deployed technology -- including at least one NIST ...
2013/09/09
[ "https://crypto.stackexchange.com/questions/10263", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/351/" ]
Your question is at least partially answered in [FIPS 186-3](http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf) itself… **Appendix A** describes how to start with a seed and use an iterative process involving SHA-1 until a valid elliptic curve is found. **Appendix D** contains the NIST recommended curve...
If the NSA knew a sufficiently large weak class of elliptic curves, it is possible for them to have chosen weak curves and have them standardized. As far as I can tell, there is no hint about any sufficiently large class of curves being weak. Regarding choosing the curves: It would have been better if NIST had used a...
10,263
[Recent articles in the media](https://www.nytimes.com/2013/09/06/us/nsa-foils-much-internet-encryption.html?hp&pagewanted=all), based upon Snowden documents, have suggested that the NSA has actively tried to enable surveillance by embedding weaknesses in commercially-deployed technology -- including at least one NIST ...
2013/09/09
[ "https://crypto.stackexchange.com/questions/10263", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/351/" ]
**Edit:** I have made some tests and I found something weird. See at the end. --- **Initial answer:** At least the **Koblitz curves** (K-163, K-233... in NIST terminology) cannot have been specially "cooked", since the whole process is quite transparent: * Begin with a binary field $GF(2^m)$. For every *m* there is...
Your question is at least partially answered in [FIPS 186-3](http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf) itself… **Appendix A** describes how to start with a seed and use an iterative process involving SHA-1 until a valid elliptic curve is found. **Appendix D** contains the NIST recommended curve...
10,263
[Recent articles in the media](https://www.nytimes.com/2013/09/06/us/nsa-foils-much-internet-encryption.html?hp&pagewanted=all), based upon Snowden documents, have suggested that the NSA has actively tried to enable surveillance by embedding weaknesses in commercially-deployed technology -- including at least one NIST ...
2013/09/09
[ "https://crypto.stackexchange.com/questions/10263", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/351/" ]
Your question is at least partially answered in [FIPS 186-3](http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf) itself… **Appendix A** describes how to start with a seed and use an iterative process involving SHA-1 until a valid elliptic curve is found. **Appendix D** contains the NIST recommended curve...
The agency behind this openly emblazons "Nothing is Beyond our Reach" on the side of their spy satellites (NROL-39 for example). The answer to your question is "No". The *reason* that the answer is "No", is classified. If you're still not totally certain that the answer is "No", please find any other job - security i...
10,263
[Recent articles in the media](https://www.nytimes.com/2013/09/06/us/nsa-foils-much-internet-encryption.html?hp&pagewanted=all), based upon Snowden documents, have suggested that the NSA has actively tried to enable surveillance by embedding weaknesses in commercially-deployed technology -- including at least one NIST ...
2013/09/09
[ "https://crypto.stackexchange.com/questions/10263", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/351/" ]
**Edit:** I have made some tests and I found something weird. See at the end. --- **Initial answer:** At least the **Koblitz curves** (K-163, K-233... in NIST terminology) cannot have been specially "cooked", since the whole process is quite transparent: * Begin with a binary field $GF(2^m)$. For every *m* there is...
If the NSA knew a sufficiently large weak class of elliptic curves, it is possible for them to have chosen weak curves and have them standardized. As far as I can tell, there is no hint about any sufficiently large class of curves being weak. Regarding choosing the curves: It would have been better if NIST had used a...
10,263
[Recent articles in the media](https://www.nytimes.com/2013/09/06/us/nsa-foils-much-internet-encryption.html?hp&pagewanted=all), based upon Snowden documents, have suggested that the NSA has actively tried to enable surveillance by embedding weaknesses in commercially-deployed technology -- including at least one NIST ...
2013/09/09
[ "https://crypto.stackexchange.com/questions/10263", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/351/" ]
If the NSA knew a sufficiently large weak class of elliptic curves, it is possible for them to have chosen weak curves and have them standardized. As far as I can tell, there is no hint about any sufficiently large class of curves being weak. Regarding choosing the curves: It would have been better if NIST had used a...
The agency behind this openly emblazons "Nothing is Beyond our Reach" on the side of their spy satellites (NROL-39 for example). The answer to your question is "No". The *reason* that the answer is "No", is classified. If you're still not totally certain that the answer is "No", please find any other job - security i...
10,263
[Recent articles in the media](https://www.nytimes.com/2013/09/06/us/nsa-foils-much-internet-encryption.html?hp&pagewanted=all), based upon Snowden documents, have suggested that the NSA has actively tried to enable surveillance by embedding weaknesses in commercially-deployed technology -- including at least one NIST ...
2013/09/09
[ "https://crypto.stackexchange.com/questions/10263", "https://crypto.stackexchange.com", "https://crypto.stackexchange.com/users/351/" ]
**Edit:** I have made some tests and I found something weird. See at the end. --- **Initial answer:** At least the **Koblitz curves** (K-163, K-233... in NIST terminology) cannot have been specially "cooked", since the whole process is quite transparent: * Begin with a binary field $GF(2^m)$. For every *m* there is...
The agency behind this openly emblazons "Nothing is Beyond our Reach" on the side of their spy satellites (NROL-39 for example). The answer to your question is "No". The *reason* that the answer is "No", is classified. If you're still not totally certain that the answer is "No", please find any other job - security i...
33,716,865
I have a `<div>` that is containing a sentence. The height of `<div>` is based of `%` *(its height is changeable - depends on size of screen)*. Now I want to keep that sentence in the center (vertically) of `<div>`, How can I do that? Here is a sample of what I said: ```css div{ position:absolute; border: 1px s...
2015/11/15
[ "https://Stackoverflow.com/questions/33716865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805376/" ]
My favorite technique is to add an `::after` pseudo-element to the parent element, wrap all the element's children in a single element, and let that element and the `::after` pseudo-element play the inline-block, vertical-alignment game: ```css div{ position:absolute; border: 1px solid; width: 250px; heigh...
Use [flexbox](https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/) ```css div{ position:absolute; border: 1px solid; width: 250px; height: 60%; text-align: center; display: flex; align-items: center; justify-content: center; } ``` ```html <div>This should be center vert...
33,716,865
I have a `<div>` that is containing a sentence. The height of `<div>` is based of `%` *(its height is changeable - depends on size of screen)*. Now I want to keep that sentence in the center (vertically) of `<div>`, How can I do that? Here is a sample of what I said: ```css div{ position:absolute; border: 1px s...
2015/11/15
[ "https://Stackoverflow.com/questions/33716865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805376/" ]
Use [flexbox](https://philipwalton.github.io/solved-by-flexbox/demos/vertical-centering/) ```css div{ position:absolute; border: 1px solid; width: 250px; height: 60%; text-align: center; display: flex; align-items: center; justify-content: center; } ``` ```html <div>This should be center vert...
Seen two methods already. Here is another method using table and table-cell. give `display: table`to parent and `table-cell` and `vertical-align: middle` to the child and see the magic. ```css div{ position:absolute; border: 1px solid; width: 250px; display: table; height: 60%; text-align: center; ...
33,716,865
I have a `<div>` that is containing a sentence. The height of `<div>` is based of `%` *(its height is changeable - depends on size of screen)*. Now I want to keep that sentence in the center (vertically) of `<div>`, How can I do that? Here is a sample of what I said: ```css div{ position:absolute; border: 1px s...
2015/11/15
[ "https://Stackoverflow.com/questions/33716865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2805376/" ]
My favorite technique is to add an `::after` pseudo-element to the parent element, wrap all the element's children in a single element, and let that element and the `::after` pseudo-element play the inline-block, vertical-alignment game: ```css div{ position:absolute; border: 1px solid; width: 250px; heigh...
Seen two methods already. Here is another method using table and table-cell. give `display: table`to parent and `table-cell` and `vertical-align: middle` to the child and see the magic. ```css div{ position:absolute; border: 1px solid; width: 250px; display: table; height: 60%; text-align: center; ...
54,509
My name is Hiro, but I have no idea how to write it in japanese. If you could help me with that, it would be great since most online websites aren't very helpful.
2017/11/15
[ "https://japanese.stackexchange.com/questions/54509", "https://japanese.stackexchange.com", "https://japanese.stackexchange.com/users/26496/" ]
ヒロ (in katakana) or ひろ (in hiragana) If you want to write it in kanji, there are plural candidates.
My real given name is 公大{きみひろ}. Feel free to use a kanji 大{ひろ} for ad-hoc usage until you can find a nicer one since it does not have many stroke counts. It's easy to remember. Japanese might read 大{ひろし} though, It might be better than nothing. Yeah, for sure, you don't have to stick to literal pronunciation. It is up...
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
It looks to me like bokeh, and nothing but bokeh. I'm actually interested by the little colored lights in the middle. With some cropping, this might become an appealing -- if abstract -- composition.
Every picture has *some level* of bokeh - as its the quality of the out of focus blur and there's always *some* out of focus blur since lenses focus a single plane and we live in a 3D world. This looks like just a totally out of focus picture to me.
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
It looks to me like bokeh, and nothing but bokeh. I'm actually interested by the little colored lights in the middle. With some cropping, this might become an appealing -- if abstract -- composition.
Technically, yes, this is bokeh. Bokeh really only refers to the blurring that occurs in the out of focus area of a picture. But I personally wouldn't think of this as bokeh but just an out of focus picture. Most times bokeh is referred to it is always that which is not in focus. [This site](http://www.practicalphoto...
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
The Japanese word `Boke` (ボケ) or the American spelling `Bokeh`, refers to the out of focus areas of a photograph. It does not necessarily mean only the background blur, it refers to foreground blur as well. Bokeh is often used to refer to the quality of out of focus blur more so than its presence. In Japanese, Boke Aji...
It looks to me like bokeh, and nothing but bokeh. I'm actually interested by the little colored lights in the middle. With some cropping, this might become an appealing -- if abstract -- composition.
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
It looks to me like bokeh, and nothing but bokeh. I'm actually interested by the little colored lights in the middle. With some cropping, this might become an appealing -- if abstract -- composition.
Yes, this is, in fact Bokeh. Bokeh refers to the part of a picture that is out-of-focus. It doesn't matter whether it is in the background or foreground. The picture is very interesting, and with certain adjustments though, could look nice.
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
The Japanese word `Boke` (ボケ) or the American spelling `Bokeh`, refers to the out of focus areas of a photograph. It does not necessarily mean only the background blur, it refers to foreground blur as well. Bokeh is often used to refer to the quality of out of focus blur more so than its presence. In Japanese, Boke Aji...
Every picture has *some level* of bokeh - as its the quality of the out of focus blur and there's always *some* out of focus blur since lenses focus a single plane and we live in a 3D world. This looks like just a totally out of focus picture to me.
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
Every picture has *some level* of bokeh - as its the quality of the out of focus blur and there's always *some* out of focus blur since lenses focus a single plane and we live in a 3D world. This looks like just a totally out of focus picture to me.
Yes, this is, in fact Bokeh. Bokeh refers to the part of a picture that is out-of-focus. It doesn't matter whether it is in the background or foreground. The picture is very interesting, and with certain adjustments though, could look nice.
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
The Japanese word `Boke` (ボケ) or the American spelling `Bokeh`, refers to the out of focus areas of a photograph. It does not necessarily mean only the background blur, it refers to foreground blur as well. Bokeh is often used to refer to the quality of out of focus blur more so than its presence. In Japanese, Boke Aji...
Technically, yes, this is bokeh. Bokeh really only refers to the blurring that occurs in the out of focus area of a picture. But I personally wouldn't think of this as bokeh but just an out of focus picture. Most times bokeh is referred to it is always that which is not in focus. [This site](http://www.practicalphoto...
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
Technically, yes, this is bokeh. Bokeh really only refers to the blurring that occurs in the out of focus area of a picture. But I personally wouldn't think of this as bokeh but just an out of focus picture. Most times bokeh is referred to it is always that which is not in focus. [This site](http://www.practicalphoto...
Yes, this is, in fact Bokeh. Bokeh refers to the part of a picture that is out-of-focus. It doesn't matter whether it is in the background or foreground. The picture is very interesting, and with certain adjustments though, could look nice.
21,524
I'd like to know if there is a reason why Dickons and Edison chose exactly 35mm as the width of their films.
2012/03/20
[ "https://photo.stackexchange.com/questions/21524", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/5481/" ]
The Japanese word `Boke` (ボケ) or the American spelling `Bokeh`, refers to the out of focus areas of a photograph. It does not necessarily mean only the background blur, it refers to foreground blur as well. Bokeh is often used to refer to the quality of out of focus blur more so than its presence. In Japanese, Boke Aji...
Yes, this is, in fact Bokeh. Bokeh refers to the part of a picture that is out-of-focus. It doesn't matter whether it is in the background or foreground. The picture is very interesting, and with certain adjustments though, could look nice.
28,701,613
The OWL API provides several IRI mappers to cache ontology documents locally. Do any of them use Oasis XML Catalogs, as Protege does? Even better, is there one to automatically cache read-in ontologies locally and check the original IRI for updates before using the local copy?
2015/02/24
[ "https://Stackoverflow.com/questions/28701613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2596664/" ]
The Protege team have released the xmlcatalog component as a standalone (from the rest of Protege) module and it has an implementation of OWLOntologyIRIMapper: <https://github.com/protegeproject/xmlcatalog/blob/master/src/main/java/org/protege/xmlcatalog/owlapi/XMLCatalogIRIMapper.java>
I just went through the source code, looking for implementations of `OWLOntologyIRIMapper`. As far as I can tell, none of the implementations save their mappings to disk, much less in the Oasis XML Catalog format. I'd be very happy to find out I am wrong, so please let me know if I am!
30,045,142
I am new to FIX protocol I am not sure how exactly Tag54 (Buy/Sell) works According to the API I am reading for making FX Single Order via FIX They say: ``` Tag 55 Tag 54 Tag 15 Buy EUR EUR/USD 1 EUR Sell USD EUR/USD 1 USD <-- Why is this a Sell? Sell EUR EUR/USD 2 EUR B...
2015/05/05
[ "https://Stackoverflow.com/questions/30045142", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1166092/" ]
You overlooked this important point. **Please note that the Side (tag 54) always refers to the base currency** So it always points to what side you are on your base currency(sell/buy) and not on what currency you are buying or selling.
The currency pair for each of these trades is EUR/USD so each of the buy or sell orders is relative to this (the rates are in market convention). The rate EUR/USD means how many USD I will get for each unit of EUR that I exchange, buying USD from EUR is termed as buying EUR/USD, selling USD to get EUR is selling the pa...
53,086,243
I have the following SQL query ``` select distinct fnamn,enamn,pubdatum from author,book where pubdatum <'1961-0-0 AND author.enamn=book.forfattarenamn; ``` And this is fine it shows all authors who have a book published before 1961 but what if i want only the authors who published before but not after 1961? I thou...
2018/10/31
[ "https://Stackoverflow.com/questions/53086243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9745913/" ]
You could do sth like this (pls insert into ID the PK of author): ``` select distinct a.fnamn,a.enamn,b.pubdatum from author as a inner join book as b ON a.enamn=b.forfattarenamn where b.pubdatum <'1961-0-0' AND NOT EXISTS (select 0 from author as aX inner join book as bX on ax.enamn=bx.forfattarenamn where bx.pubdat...
> > What if i want only the authors who published before but not after 1961? > > > One simple method uses `group by` and `having`: ``` select a.fnamn, a.enamn, max(b.pubdatum) from author a inner join book b on a.enamn = b.forfattarenamn group by a.fnamn, a.enamn having max(b.pubdatum) < '1961-01-01'; ...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
For those of you who have been using this successfully in the field, could you please post full names and model numbers of the USB battery packs/power supplies you have been using with the USBpre? Thinking of getting this to double as a 2-channel field mixer with my Fostex FR-2, as well as a PT interface.
So after a few days of research around different forums - Christopher pretty much laid out how my setup will be. 1) mkh 416's T - XLR - barrel converter (Rode PG2 and softie dead cat) 2) USBpre 2 (wish it had 12v out) - powered by iSound Portable Power Max 3) S/Pdif out 4) Tascam DR-100 MR2 S/Pdif in 5) 96k 24 bit th...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
I'm not an expert but scouting around on the internet I came across this comment on a forum: "Normally, a gizmo with a 5V USB host port (such as a computer) can be expected to supply up to 500ma (1/2 an amp). That is a published USB standard. I've got a little battery brick with USB ports on it, and I use it to power ...
So after a few days of research around different forums - Christopher pretty much laid out how my setup will be. 1) mkh 416's T - XLR - barrel converter (Rode PG2 and softie dead cat) 2) USBpre 2 (wish it had 12v out) - powered by iSound Portable Power Max 3) S/Pdif out 4) Tascam DR-100 MR2 S/Pdif in 5) 96k 24 bit th...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
1 caveat via the [manual](http://www.sounddevices.com/download/guides/USBPre2_en.pdf): > > Sample rates below 32 kHz are not supported on the coaxial or optical (TOSLINK) digital interconnections. 192 kHz sampling rate is not supported on the TOSLINK interconnections. > > > so use the spdif on those high sample r...
So after a few days of research around different forums - Christopher pretty much laid out how my setup will be. 1) mkh 416's T - XLR - barrel converter (Rode PG2 and softie dead cat) 2) USBpre 2 (wish it had 12v out) - powered by iSound Portable Power Max 3) S/Pdif out 4) Tascam DR-100 MR2 S/Pdif in 5) 96k 24 bit th...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
For those of you who have been using this successfully in the field, could you please post full names and model numbers of the USB battery packs/power supplies you have been using with the USBpre? Thinking of getting this to double as a 2-channel field mixer with my Fostex FR-2, as well as a PT interface.
I bought a USB Pre 2 to use on a gig this week, it was an excellent tool. As for getting USB 5v power to the unit... I purchased a hefty USB power source, the iSound Portable Power Max (16,000 mAh) The outputs are rated up to 2.4amps, well above the USBpre's needs. This power supply is almost as big as the USB pre 2 ...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
I've been testing the USB Pre for just over a day now and it definitely works great as an computer interface. It has been rock solid from 44.1 all the way up to 192. I have a 744T and I have yet to take out the USB Pre in stand alone mode for channels 3 and 4, but honestly, I've already got the Sound Devices MP-2 (pre-...
So after a few days of research around different forums - Christopher pretty much laid out how my setup will be. 1) mkh 416's T - XLR - barrel converter (Rode PG2 and softie dead cat) 2) USBpre 2 (wish it had 12v out) - powered by iSound Portable Power Max 3) S/Pdif out 4) Tascam DR-100 MR2 S/Pdif in 5) 96k 24 bit th...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
I bought a USB Pre 2 to use on a gig this week, it was an excellent tool. As for getting USB 5v power to the unit... I purchased a hefty USB power source, the iSound Portable Power Max (16,000 mAh) The outputs are rated up to 2.4amps, well above the USBpre's needs. This power supply is almost as big as the USB pre 2 ...
So after a few days of research around different forums - Christopher pretty much laid out how my setup will be. 1) mkh 416's T - XLR - barrel converter (Rode PG2 and softie dead cat) 2) USBpre 2 (wish it had 12v out) - powered by iSound Portable Power Max 3) S/Pdif out 4) Tascam DR-100 MR2 S/Pdif in 5) 96k 24 bit th...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
I'm not an expert but scouting around on the internet I came across this comment on a forum: "Normally, a gizmo with a 5V USB host port (such as a computer) can be expected to supply up to 500ma (1/2 an amp). That is a published USB standard. I've got a little battery brick with USB ports on it, and I use it to power ...
Try the Powergorilla as a battery pack, I use one of the smaller models and they are very reliable. <https://powertraveller.com/iwantsome/primatepower/powergorilla/#> You can also trickle charge the battery through solar panels to extend the life. <https://powertraveller.com/iwantsome/primatepower/solargorilla/#>
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
I bought a USB Pre 2 to use on a gig this week, it was an excellent tool. As for getting USB 5v power to the unit... I purchased a hefty USB power source, the iSound Portable Power Max (16,000 mAh) The outputs are rated up to 2.4amps, well above the USBpre's needs. This power supply is almost as big as the USB pre 2 ...
Try the Powergorilla as a battery pack, I use one of the smaller models and they are very reliable. <https://powertraveller.com/iwantsome/primatepower/powergorilla/#> You can also trickle charge the battery through solar panels to extend the life. <https://powertraveller.com/iwantsome/primatepower/solargorilla/#>
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
I'm not an expert but scouting around on the internet I came across this comment on a forum: "Normally, a gizmo with a 5V USB host port (such as a computer) can be expected to supply up to 500ma (1/2 an amp). That is a published USB standard. I've got a little battery brick with USB ports on it, and I use it to power ...
1 caveat via the [manual](http://www.sounddevices.com/download/guides/USBPre2_en.pdf): > > Sample rates below 32 kHz are not supported on the coaxial or optical (TOSLINK) digital interconnections. 192 kHz sampling rate is not supported on the TOSLINK interconnections. > > > so use the spdif on those high sample r...
4,168
Hello folks, So I was wondering if any of you have experience using the Sound Devices USB Pre2 in location audio recording situations. I was thinking of purchasing one and using a USB battery pack. It has a standalone mode, allowing you to route analog and digital out with out it being plugged into the computer. The p...
2010/10/18
[ "https://sound.stackexchange.com/questions/4168", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/531/" ]
I've been testing the USB Pre for just over a day now and it definitely works great as an computer interface. It has been rock solid from 44.1 all the way up to 192. I have a 744T and I have yet to take out the USB Pre in stand alone mode for channels 3 and 4, but honestly, I've already got the Sound Devices MP-2 (pre-...
1 caveat via the [manual](http://www.sounddevices.com/download/guides/USBPre2_en.pdf): > > Sample rates below 32 kHz are not supported on the coaxial or optical (TOSLINK) digital interconnections. 192 kHz sampling rate is not supported on the TOSLINK interconnections. > > > so use the spdif on those high sample r...
58,148,180
``` input: [1,1,2,2,3,3,4,5,5,6,6] output: 4 ``` Tried, set, form new list, but cant figure out how to get rid of all duplicates including the element itself.
2019/09/28
[ "https://Stackoverflow.com/questions/58148180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11992130/" ]
``` my_list = [1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6] filtered_list = [value for value in my_list if my_list.count(value) == 1] print(filtered_list) [4] ```
You can use [`filter()`](https://docs.python.org/3/library/functions.html#filter): ``` inp = [1,1,2,2,3,3,4,5,5,6,6] res = list(filter(lambda x: inp.count(x) == 1, inp)) # list() isn't necessary for python 2 ```
58,148,180
``` input: [1,1,2,2,3,3,4,5,5,6,6] output: 4 ``` Tried, set, form new list, but cant figure out how to get rid of all duplicates including the element itself.
2019/09/28
[ "https://Stackoverflow.com/questions/58148180", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11992130/" ]
Here is one way to do it, using collections.Counter ``` >>> from collections import Counter >>> inp = [1,1,2,2,3,3,4,5,5,6,6] >>> counted_inp = Counter(inp) >>> counted_inp Counter({1: 2, 2: 2, 3: 2, 5: 2, 6: 2, 4: 1}) >>> [inp_item for inp_item, inp_count in counted_inp.items() if inp_count == 1] [4] ``` Documentat...
You can use [`filter()`](https://docs.python.org/3/library/functions.html#filter): ``` inp = [1,1,2,2,3,3,4,5,5,6,6] res = list(filter(lambda x: inp.count(x) == 1, inp)) # list() isn't necessary for python 2 ```
6,957
Reading Jeff Atwood's ["Why Can't Programmers.. Program?"](http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html) led me to think that almost all of the solutions would not be something I would want in my own code-base. The Fizz Buzz program specification from Imran is [here](http://imranontech.com...
2011/12/18
[ "https://codereview.stackexchange.com/questions/6957", "https://codereview.stackexchange.com", "https://codereview.stackexchange.com/users/7585/" ]
> > Is it overkill to suggest such a solution? > > > Yes, I think so :-) > > Under what conditions would you split it into a Model and Views? > > > If you need more than one view. For example, if the specification says that the program should be able to write the results to the screen, a CSV/PDF file, a ne...
I agree that your solution is proper and any reviewer would understand that you're experienced. My suggestion, beyond palacsint's, is that you slim your code down a bit to make it more readable. I cut 11 lines from `get`, decreasing it's length by 46%, without compromising on readability one bit. ``` public function ...
29,903
**Back story.** We have a friend who is having troubles keeping her life together. I'm not aware of all the issues. However, they include an abusive husband (who has now been kicked out), financial troubles, and probably no shortage of poor life decisions on her part. We've heard through the grape-vine that her childr...
2017/04/27
[ "https://parenting.stackexchange.com/questions/29903", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/17271/" ]
Experience: former foster parent (certified in CA) At least in my state, friends and family are considered first, and are not required to be officially certified (in fact, to my knowledge, many rules that apply to official foster parents do not apply to them). If you talk with the social worker for your friend, you sh...
I've been a foster parent for over 10 years. Get certified/licensed in your jurisdiction. Once that happens, you would be given first priority for placement of your friends children because of your familiarity with the children. Of course jurisdictions differ from location to location but the general rule is do right b...
29,903
**Back story.** We have a friend who is having troubles keeping her life together. I'm not aware of all the issues. However, they include an abusive husband (who has now been kicked out), financial troubles, and probably no shortage of poor life decisions on her part. We've heard through the grape-vine that her childr...
2017/04/27
[ "https://parenting.stackexchange.com/questions/29903", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/17271/" ]
I've been a foster parent for over 10 years. Get certified/licensed in your jurisdiction. Once that happens, you would be given first priority for placement of your friends children because of your familiarity with the children. Of course jurisdictions differ from location to location but the general rule is do right b...
Are you close enough with your friend to talk with them directly and ask them if they would like the help? I do not have personal experience, but I have a few good friends whose parents often would take in young people for short (or long) periods of time, always peers and/or friends of their own children. My friend Chr...
29,903
**Back story.** We have a friend who is having troubles keeping her life together. I'm not aware of all the issues. However, they include an abusive husband (who has now been kicked out), financial troubles, and probably no shortage of poor life decisions on her part. We've heard through the grape-vine that her childr...
2017/04/27
[ "https://parenting.stackexchange.com/questions/29903", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/17271/" ]
Experience: former foster parent (certified in CA) At least in my state, friends and family are considered first, and are not required to be officially certified (in fact, to my knowledge, many rules that apply to official foster parents do not apply to them). If you talk with the social worker for your friend, you sh...
Are you close enough with your friend to talk with them directly and ask them if they would like the help? I do not have personal experience, but I have a few good friends whose parents often would take in young people for short (or long) periods of time, always peers and/or friends of their own children. My friend Chr...
44,906,989
I want to create a JDialog where the text in the textfields is selected but only if the focus is gained from keyboard (TAB, CTRL+TAB). I have found several topics on this matter but had problems with implementing it. [Here](https://stackoverflow.com/a/28072415/8253862) is one which I was trying. And my code: ``` pu...
2017/07/04
[ "https://Stackoverflow.com/questions/44906989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8253862/" ]
You are correct. Alternatively you can just specify the env var name: ``` my_service: environment: - BATCH_ID ``` So the var `BATCH_ID` is defined from the current docker-compose execution scope; and passed to the container with the same name.
I don't know what I changed, but suddenly it works as described. --- `BATCH_ID` is the name of the environment variable on the host. `batch.id` will be the name of the environment variable inside the container. ``` my_service: environment: - batch.id=${BATCH_ID} ```
1,465,988
I have a custom RichTextBox Control derived from RichTextBox Control that Windows provides. I am unable to capture the dragDrop Event though the DragEnter event is getting captured, but I dont know why the dragDrop event is not. I have following properties set as true: ``` EnableAutoDragDrop=true; AllowDrop=true; `...
2009/09/23
[ "https://Stackoverflow.com/questions/1465988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Daniel is probably correct here: ``` private void DragOver(object sender, System.Windows.Forms.DragEventArgs e) { if (!e.Data.GetDataPresent(typeof(System.String))) { e.Effect = DragDropEffects.None; DropLocationLabel.Text = "None - no string data."; return; ...
Just a guess - maybe you missed to correctly set the drag'n'drop effect.
1,465,988
I have a custom RichTextBox Control derived from RichTextBox Control that Windows provides. I am unable to capture the dragDrop Event though the DragEnter event is getting captured, but I dont know why the dragDrop event is not. I have following properties set as true: ``` EnableAutoDragDrop=true; AllowDrop=true; `...
2009/09/23
[ "https://Stackoverflow.com/questions/1465988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
You need DragDrop and DragOver in your RichTextBox. <http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_26532918.html> Set EnableAutoDragDrop=false or your user will have 2 entries(1 duplicate) rather than just one entry. Eg. user picks"cat5" and when dropped in RichTextBox "cat5" appears twice.
Just a guess - maybe you missed to correctly set the drag'n'drop effect.
1,465,988
I have a custom RichTextBox Control derived from RichTextBox Control that Windows provides. I am unable to capture the dragDrop Event though the DragEnter event is getting captured, but I dont know why the dragDrop event is not. I have following properties set as true: ``` EnableAutoDragDrop=true; AllowDrop=true; `...
2009/09/23
[ "https://Stackoverflow.com/questions/1465988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Daniel is probably correct here: ``` private void DragOver(object sender, System.Windows.Forms.DragEventArgs e) { if (!e.Data.GetDataPresent(typeof(System.String))) { e.Effect = DragDropEffects.None; DropLocationLabel.Text = "None - no string data."; return; ...
You need DragDrop and DragOver in your RichTextBox. <http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_26532918.html> Set EnableAutoDragDrop=false or your user will have 2 entries(1 duplicate) rather than just one entry. Eg. user picks"cat5" and when dropped in RichTextBox "cat5" appears twice.
47,988,540
To give details: this is a constrained environment with Python 2.7.14, Pylint 1.8.1, and Astroid 1.6.0 and various other modules, but I can't easily install new modules such as `mypy` (not even with virtualenv) or make major changes to the codebase. Due to <https://github.com/PyCQA/pylint/issues/400> I'm getting error...
2017/12/27
[ "https://Stackoverflow.com/questions/47988540", "https://Stackoverflow.com", "https://Stackoverflow.com/users/939557/" ]
``` def get(self, timeout): """ :param timeout: How many seconds to wait :type timeout: int :rtype: threading.Event """ # tricks here return self._latest ``` This is a reStructuredText format for writing a python docstring (a multiline string that appear right after function definition. Yo...
One thing to mention is that pylint currently has limited capabilities for type-checking, as those seen in mypy. It relies more on inferring values and types without type hints, although the intent is to have support for PEP-484 typing at some point. Now regarding the question, I see that you are using a module extend...
26,108,790
I'am trying to use JawBone/JBChartView Charts in a Swift App In my ViewController I have: ``` class ViewController: UIViewController , JBBarChartViewDelegate { ... } ``` I have implemented the method to conform the protocol: ``` override func heightForBarViewAtIndex (bc: JBBarChartView , index: Int) -> Double{ ...
2014/09/29
[ "https://Stackoverflow.com/questions/26108790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/968617/" ]
Finally the problem was the Int parameter, it has to be Uint. So the final method to implement is: ``` func barChartView(barChartView: JBBarChartView!, heightForBarViewAtIndex index: UInt) -> CGFloat{ return 0.0 } ``` Thsnks to you all.
It looks like your issue may be that you are using the wrong types. Your return value seems to be returning a `Double` in your override function when the declaration specifies a `CGFloat`. As well, I believe the function should start out with the same words that the declared method does. You wrote `heightForBarViewAtIn...
19,052,300
``` for (var tablename in original.test) { tableName = tablename; } ``` `tableName` contains the attribute name of the JSON. How to read the value within the attribute `tableName`? I tried the following way but not working: ``` for (var index in "original.test."+tableName+" ) {} ```
2013/09/27
[ "https://Stackoverflow.com/questions/19052300", "https://Stackoverflow.com", "https://Stackoverflow.com/users/484243/" ]
``` original.test[tableName] ``` Please try google in future.
You can do: ``` original.test[tableName] ``` When you try `original.test.tableName` it tries to find the property called "tableName"
3,970,093
To make a long story short, I have dynamic pages on a website that display reviews. If there are no reviews associated with a particular city/county/area/etc the mysql query returns 0 rows which triggers the following code: ``` if (!$validRevQuery) { header("HTTP/1.0 404 Not Found"); include("http://{$PDS['sit...
2010/10/19
[ "https://Stackoverflow.com/questions/3970093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/460794/" ]
Your problem has nothing to do with what you include: It's that your page is too small. In my experience, Chrome's built-in "Oops" page is displayed, like the one in Internet Explorer, when the page emits only the 404 header and less than a defined number of bytes of content (I think it's 512 bytes in IE, don't know t...
Trying redirecting using a 307 or 301 with a location header
55,428,915
In my initial state, I set `loading: false`. In render method, my logic is when `state.loading` is true, display `Loading`, else display another thing. In my `componentDidMount` method, I change the state to `loading: true`. Why does it show `Loading` in the browser though at initial state loading is set to false? `...
2019/03/30
[ "https://Stackoverflow.com/questions/55428915", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5534469/" ]
`componentDidMount` cannot be called before `render`. `componentDidMount` is called when a component is mounted, instantly after initial `render` call. `this.setState({ loading: true })` is set on component mount, the result is instantly displayed.
just add 500ms or 1000ms delay. ``` setTimeout(function () { this.setState({loading: false}); }.bind(this), 1000); ```
2,151
[What type of bass strings produces a very warm and mellow sound?](https://music.stackexchange.com/questions/30827/what-type-of-bass-strings-produces-a-very-warm-and-mellow-sound) In my mind, this should be allowed. Why should string types be off topic on a site for musical performance? I don't see the fundamental di...
2015/03/17
[ "https://music.meta.stackexchange.com/questions/2151", "https://music.meta.stackexchange.com", "https://music.meta.stackexchange.com/users/8682/" ]
(Adding an answer mostly to be able to mark this issue as answered.) The question is no longer on hold, so the current answer seems to be that it should not be closed. I don't think the discussion will go further at this point in time. In borderline cases, please consider if the question really needs to be closed, of ...
I waited until there were already 4 votes specifically so I would not have mod close powers - my vote was purely a community one - and my view is that this question is entirely unanswerable, unlike the acoustic guitar strings one you linked. We have already had discussion on what warm and mellow mean, and while there ...
39,813,649
``` CREATE TABLE IF NOT EXISTS `order_order_status` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `order_status_id` int(11) NOT NULL, `order_id` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `order_order_status_order_sta...
2016/10/02
[ "https://Stackoverflow.com/questions/39813649", "https://Stackoverflow.com", "https://Stackoverflow.com/users/533426/" ]
MySQL is working *exactly* as expected. The problem is your expectations. `select *` with a `group by` doesn't make sense. You want to get the maximum, do something like this: ``` select oos.* from order_order_status where oos.created_at = (select max(oos2.created_at) from order_order_status o...
using order by order\_id desc may solve your problem ``` select *, max(created_at) from `order_order_status` group by `order_order_status`.`order_id` order by `order_order_status`.`order_id` desc ```
31,451,572
I am using Play 2.4 Scala. I use Action composition with `ActionTransformer` to have a User instance available in my `CustomAction`. I want my `ActionTransformer` to retrieve things from cache. The `CacheApi` instance can only be retrieved by dependency injection and my `ActionTransformer` is an object (no DI). Shoul...
2015/07/16
[ "https://Stackoverflow.com/questions/31451572", "https://Stackoverflow.com", "https://Stackoverflow.com/users/595223/" ]
You can get an instance from guice by calling the injector directly: ``` val cache = Play.current.injector.instanceOf(classOf[CacheApi]) ``` Be aware that this involves play's gobal state. As you probably know this will be deprecated in Play 3.0, so it is probably a good idea to use it sparingly. If anyone found a b...
I'm using this as service (outside controllers) : ``` @Singleton class ActionTransformer @Inject() (private val cache: CacheApi) { // Do what you want with the cache instance def getMyCachedClassFromCache : MyCachedClass = { cache.getOrElse[MyCachedClass](KEY_CACHE) { val myNe...
62,435,433
For building a vue menu in October, I have a plugin that I want to extract the October pages structure in a JSON data keeping the pages and subpages indentation. Based on this post : [How to get static page dropdown in OctoberCMS with get page tree?](https://stackoverflow.com/questions/53477068/how-to-get-static-page-...
2020/06/17
[ "https://Stackoverflow.com/questions/62435433", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12340337/" ]
> > **Use this code** > > > ```php public function boot() { \RainLab\Pages\Classes\Page::extend(function($model) { $model->addDynamicMethod('getPageOptions', function() { $theme = \Cms\Classes\Theme::getEditTheme(); $pageList = new \RainLab\Pages\Classes\PageList($theme); $tre...
I solved this by adding 2 functions and calling them sequentially. One for Pages an one for Static Pages. The functions are building a complex object with the desired structure which will be use for building the menu. Thanks
142,962
I've been trying to install 12.04 LTS onto a Dell with a Pentium III from CD. Booting from the CD, the installer gets through the "Who are you?" process and begins copying files. The progress bar gets as far as the last period in "Copying files...". The box clears, and an error box comes up saying: > > The installer...
2012/05/27
[ "https://askubuntu.com/questions/142962", "https://askubuntu.com", "https://askubuntu.com/users/66517/" ]
I ran into the same issues when trying to install from CD. Burning it to a DVD and installing worked like a charm.
Try the "alternate" release. It has a text-based installer that may solve your problem. [Alternate 12.04 32bit](http://releases.ubuntu.com/precise/ubuntu-12.04-alternate-i386.iso) / [Alternate 12.04 64bit](http://releases.ubuntu.com/precise/ubuntu-12.04-alternate-amd64.iso)
142,962
I've been trying to install 12.04 LTS onto a Dell with a Pentium III from CD. Booting from the CD, the installer gets through the "Who are you?" process and begins copying files. The progress bar gets as far as the last period in "Copying files...". The box clears, and an error box comes up saying: > > The installer...
2012/05/27
[ "https://askubuntu.com/questions/142962", "https://askubuntu.com", "https://askubuntu.com/users/66517/" ]
I ran into the same issues when trying to install from CD. Burning it to a DVD and installing worked like a charm.
Most of the time CDs burns wont work with ubuntu, I am sharing my personal experience. Better to use a usb or DVD installer.
142,962
I've been trying to install 12.04 LTS onto a Dell with a Pentium III from CD. Booting from the CD, the installer gets through the "Who are you?" process and begins copying files. The progress bar gets as far as the last period in "Copying files...". The box clears, and an error box comes up saying: > > The installer...
2012/05/27
[ "https://askubuntu.com/questions/142962", "https://askubuntu.com", "https://askubuntu.com/users/66517/" ]
I ran into the same issues when trying to install from CD. Burning it to a DVD and installing worked like a charm.
Did you? 1. Check the MD5 hash to verify the data integrity? If the hash true, 2. It can be the burner quality. Is the burner old? Or 3. It can be your harddisk health. If your harddisk is old, the installation can be failed. Or 4. You didn't format the drive cleanly / you didn't use the clean install (there is so...
142,962
I've been trying to install 12.04 LTS onto a Dell with a Pentium III from CD. Booting from the CD, the installer gets through the "Who are you?" process and begins copying files. The progress bar gets as far as the last period in "Copying files...". The box clears, and an error box comes up saying: > > The installer...
2012/05/27
[ "https://askubuntu.com/questions/142962", "https://askubuntu.com", "https://askubuntu.com/users/66517/" ]
I ran into the same issues when trying to install from CD. Burning it to a DVD and installing worked like a charm.
sometimes problem can be by your cd producter . if you have a usb flash disk . may you try installing from usb ?
37,493,693
I have some JavaScript code: ``` var findLeastUsedPassage; findLeastUsedPassage = function(StudentId) { var passageCounts; passageCounts = []; return db.Passage.findAll({ where: { active: true } }).each(function(dbPassage) { var passage; passage = dbPassage.get(); passage.count = 0; ...
2016/05/27
[ "https://Stackoverflow.com/questions/37493693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/239879/" ]
[This](http://alistapart.com/article/writing-testable-javascript) is a great resource for understanding how to break up your code to able to test it. Currently, you're code can't be tested well because the logic is all intermingled between multiple database calls, business logic, and glue code. What you need to do is ...
So for starters, you probably want to break up your promise chains to make the discrete units of your code more apparent. I did some quick psuedo javascript (most familliar w/ node so apologies if this doesn't fit vanilla javascript as cleanly). ``` var p1 = db.Passage.findAll({ where: { active: true }}) var p2 = db.W...
29,745
What is the guideline to be followed on allowing 6-month-old babies to suck toys? Obviously the cheap plastic ones are a strict no no. Is there any specific materials that have been proven safe? Are teethers safe? There seems to be 2 schools of thought at home 1. To not allow any toy close to her since she sucks e...
2017/04/14
[ "https://parenting.stackexchange.com/questions/29745", "https://parenting.stackexchange.com", "https://parenting.stackexchange.com/users/23876/" ]
Babies usually explore the world with their eyes first, then their mouths. Depriving them of this highly motivated behavior seems unwise at best and *possibly* harmful, though the latter is strictly my opinion. What should and shouldn't be allowed to go into the mouth is highly dependent on size (not small enough to c...
Babies often bite on everything within reach. Toys are usually within reach, it's kind of part of the definition of being a toy. Baby toys are safe to suck on because that's what they are being used for, and the people selling them will get sued if their products harm their users. However, it's good practice to wash a...
452,046
Why the closure $\mathbb{Q}$ is not itself? Since each ball around $q \in \mathbb{Q}$ contains a point in $\mathbb{Q}$ and a point in $\mathbb{R} \setminus \mathbb{Q}$.
2013/07/25
[ "https://math.stackexchange.com/questions/452046", "https://math.stackexchange.com", "https://math.stackexchange.com/users/83036/" ]
If the other player plays properly, zero. The game is known to be a draw. If you want to assume random play by both sides, you could make a tree and calculate it. There are only two responses to a center opening-a corner or a side, but then more branches to the tree after that because the symmetry is broken.
I believe there is always a way to end the game in a tie, so the chance of winning would be zero. (assuming the opponent knew what move to make in response to your move) This might be relevant: <http://www.cs.jhu.edu/~jorgev/cs106/ttt.pdf>