qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
50,438
I have a Macbook Pro with an OWC DataDoubler drive caddy replacing the Superdrive (installed at an Apple premium reseller, when I bought it, so I can still have my warranty). The main drive slot has an SSD, and the Superdrive slot has the original 750GB hard drive. It all works great, and I have Lion installed on the ...
2012/05/04
[ "https://apple.stackexchange.com/questions/50438", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/22431/" ]
I have solved this myself on a Mac Pro with 6 internal disks, where I wanted to install BootCamp on a already partitioned disk which isn't the primary disk. I've made a few notes about it here, but it's rather technical and incomplete: [Install Windows without BootCamp Assistant](http://www.tempel.org/WindowsWithoutBo...
I had this same problem. I used Daemon tools Lite for mac (free) to mount the .iso file and bootcamp let me create the partition, Then I used Winclone 3.5 (not free) to restore an old image I made. If you don't have an image, you'll have to find a friend with the same model macbook pro you have and see if they will d...
57,995,827
I am trying [ZIO](https://zio.dev). I do not understand why `Live` is added as `Trait`, and then an `object` is provided, like: ``` object Live extends Live ``` This pattern is found in different places, for example `zio.console.Console`. Is there a reason, or are there cases where this makes sense?
2019/09/18
[ "https://Stackoverflow.com/questions/57995827", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2750966/" ]
What you see in **ZIO** is the usage of a pattern called *Selfless Trait*. To implement the selfless trait pattern you simply provide a companion object for a trait that itself mixes in the trait. ``` trait Greeting { def greet() { println("hi there") } } object Greeting extends Greeting ``` Then the user of the...
Just as an addition to *Krzysztof Atłasik* answer. As mentioned in *jq170727* comment you find these two cases here: [introduce-a-database-module](http://degoes.net/articles/testable-zio#introduce-a-database-module) `Object`: > > In the worst case, if we are pressed for time and need to ship code > today, maybe...
553,426
My nephew asked me to help him on his physics homework. I'm alright as physics, but it is by no means a strong point (it's been a looooooong time since I did any physics). He was presented with this diagram: [![enter image description here](https://i.stack.imgur.com/qyRYqm.jpg)](https://i.stack.imgur.com/qyRYqm.jpg) ...
2020/05/20
[ "https://physics.stackexchange.com/questions/553426", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/265009/" ]
Let's consider a more general setting, because this is something very general (the answer for your specific setting is then given at the bottom). Suppose that one of the thermodynamic variables associated to your system is some extensive quantity $X$. There are 2 ensembles that you can consider (I use $V$ for the volu...
By a "fixed" value of $N$ here we mean that for the system at equilibrium, the value of $N$ is not allowed to fluctuate. So yes, $N$ is fixed for a canonical ensemble. If you allow particle number to change to new value so that the system finds a new equilibrium state with a new fixed value of $N$, the system has a n...
553,426
My nephew asked me to help him on his physics homework. I'm alright as physics, but it is by no means a strong point (it's been a looooooong time since I did any physics). He was presented with this diagram: [![enter image description here](https://i.stack.imgur.com/qyRYqm.jpg)](https://i.stack.imgur.com/qyRYqm.jpg) ...
2020/05/20
[ "https://physics.stackexchange.com/questions/553426", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/265009/" ]
By a "fixed" value of $N$ here we mean that for the system at equilibrium, the value of $N$ is not allowed to fluctuate. So yes, $N$ is fixed for a canonical ensemble. If you allow particle number to change to new value so that the system finds a new equilibrium state with a new fixed value of $N$, the system has a n...
Some excellent answers so far. I just wanted to reiterate that the Helmholtz potential is a state function of the volume, number of particles and temperature, and this definition holds without any connection to an ensemble. Hence, the chemical potential formula you quote is always true and in the special case of your i...
553,426
My nephew asked me to help him on his physics homework. I'm alright as physics, but it is by no means a strong point (it's been a looooooong time since I did any physics). He was presented with this diagram: [![enter image description here](https://i.stack.imgur.com/qyRYqm.jpg)](https://i.stack.imgur.com/qyRYqm.jpg) ...
2020/05/20
[ "https://physics.stackexchange.com/questions/553426", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/265009/" ]
Let's consider a more general setting, because this is something very general (the answer for your specific setting is then given at the bottom). Suppose that one of the thermodynamic variables associated to your system is some extensive quantity $X$. There are 2 ensembles that you can consider (I use $V$ for the volu...
Some excellent answers so far. I just wanted to reiterate that the Helmholtz potential is a state function of the volume, number of particles and temperature, and this definition holds without any connection to an ensemble. Hence, the chemical potential formula you quote is always true and in the special case of your i...
70,210,160
The following prompt should allow the user to make a selection based on the populated list that is outputted to an array, then prints the list with its index, and asks user to select a number from the list, then sets it to a variable. Only one choice is allowed, if user specifies an incorrect option, the script will pr...
2021/12/03
[ "https://Stackoverflow.com/questions/70210160", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13336046/" ]
Try installing odfpy ``` pip install odfpy ``` <https://pypi.org/project/odfpy/>
As suggested by @navyad ``` !pip install odfpy ``` Also, make sure you **do not** write `engine='odfpy'` instead of `engine='odf'` ``` import pandas as pd df = pd.DataFrame(data, columns=COLS, index=None) with pd.ExcelWriter('new.ods', engine="odf") as doc: df.to_excel(doc, sheet_name="Sheet1") ```
45,222,328
Reading [this question](https://stackoverflow.com/q/45216891/1876620) and [the answer given by Eugene](https://stackoverflow.com/a/45217298/1876620), I found that JDK9 immutable sets and maps will introduce a source of randomness that will affect their traversal. This means that *iteration order* will indeed be random,...
2017/07/20
[ "https://Stackoverflow.com/questions/45222328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1876620/" ]
Well it turns out there is another reason for the randomized iteration order. It's not a big secret or anything. I thought I had explained it in that talk, but maybe not. I probably mentioned it on the OpenJDK mailing lists or perhaps in internal discussions. In any case, another reason for randomized iteration order ...
That quote and your thoughts around already make a strong argument in favor of doing this. So what else do you need? In other words: one of the "fathers" of Java declares that *their* motivation for "random map/set order" is to "educate" Java programmers to not expect or even rely on any special order. Therefore the a...
25,666,914
I want to share a custom text status using facebook sdk in my android app. I used [this facebook tutorial](https://developers.facebook.com/docs/android/share) ``` FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(MainActivity.this) .setLink("https://developers.facebook.com/android") ...
2014/09/04
[ "https://Stackoverflow.com/questions/25666914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2847543/" ]
``` private void publishFeedDialog() { Bundle params = new Bundle(); params.putString("name", "Facebook SDK for Android"); params.putString("caption", "Build great social apps and get more installs."); params.putString("description", "The Facebook SDK for Android makes it easier and faster to develop Facebook integrate...
Try this way,hope this will help you to solve your problem. ``` private FacebookDialog.ShareDialogBuilder createShareDialogBuilderForLink() { return new FacebookDialog.ShareDialogBuilder(mActivity) .setName(mTitle) .setDescription(mDescription) .setLink(mUrlShare); ...
25,666,914
I want to share a custom text status using facebook sdk in my android app. I used [this facebook tutorial](https://developers.facebook.com/docs/android/share) ``` FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(MainActivity.this) .setLink("https://developers.facebook.com/android") ...
2014/09/04
[ "https://Stackoverflow.com/questions/25666914", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2847543/" ]
By using FacebookDialog (Facebook API) you cannot add message programmatically
Try this way,hope this will help you to solve your problem. ``` private FacebookDialog.ShareDialogBuilder createShareDialogBuilderForLink() { return new FacebookDialog.ShareDialogBuilder(mActivity) .setName(mTitle) .setDescription(mDescription) .setLink(mUrlShare); ...
6,313
Here is what I have: 1. Site licences for Mindstorms Software 1.0 (NXT) and EV3. 2. An upgrade to Version 2.0 for the NXT 3. 9 NXT kits 4. 4 EV3 kits 5. 2 Renewable Energy Kits and Temperature sensors My problem is that on the NXT units, the only version of the software which supports the Renewable energy/temperature...
2015/05/11
[ "https://bricks.stackexchange.com/questions/6313", "https://bricks.stackexchange.com", "https://bricks.stackexchange.com/users/5774/" ]
1. You probably don't need it, but the LEGO Education NXT 2.1 Software is still for sale through [LEGO Education](http://education.lego.com) (at least in the USA). They do not advertise and upgrade price, but it does not hurt to ask. 2. The Energy Meter blocks are available for download on the LEGO Education website. I...
I managed to install my license of Mindstorms Edu NXT v2.0 (Windows 7 x64) and the software has Data Logging and the Temperature Sensor Block. If you have an upgrade from v1.0 to v2.0 at least the Temperature Sensor Block will be available.
33,747
"Buying something" is just to put it in a special context so it's easy for you to think back. I'm new to German so it's quite struggling for me to buy something in terms of specifying the quantity. For example, I would say, as translated from English: > > Eine Flasche Wasser bitte. > > > instead of just > > Wa...
2016/12/13
[ "https://german.stackexchange.com/questions/33747", "https://german.stackexchange.com", "https://german.stackexchange.com/users/24897/" ]
These are not at all long for a native German. Any of these are fine depending on circumstances. If you want to use the last sentence when buying cigarettes in a shop you would say: > > Ich hätte gern eine Schachtel Zigaretten. > > > , otherwise the way you wrote it, you'd inform somebody that you enjoy buying a ...
You would use the quantifier of whatever the product is packed in. For drinks that is typically bottles (unless you’re buying Capri-Sonne or similar, in which case it’s bag), for products sold apiece it’s just a number followed by the word, for those sold by weight it’s their weight (note that in Austria food is weighe...
33,747
"Buying something" is just to put it in a special context so it's easy for you to think back. I'm new to German so it's quite struggling for me to buy something in terms of specifying the quantity. For example, I would say, as translated from English: > > Eine Flasche Wasser bitte. > > > instead of just > > Wa...
2016/12/13
[ "https://german.stackexchange.com/questions/33747", "https://german.stackexchange.com", "https://german.stackexchange.com/users/24897/" ]
These are not at all long for a native German. Any of these are fine depending on circumstances. If you want to use the last sentence when buying cigarettes in a shop you would say: > > Ich hätte gern eine Schachtel Zigaretten. > > > , otherwise the way you wrote it, you'd inform somebody that you enjoy buying a ...
German is more formal than English, so you use quantifiers in the language more than you would in English. Basically, if there is any available quantifier, use it. You're on the right track with expressions such as "Eine Flasche Wasser bitte," and " eine Schachtel Zigaretten." Just realize that it is normal German, e...
33,747
"Buying something" is just to put it in a special context so it's easy for you to think back. I'm new to German so it's quite struggling for me to buy something in terms of specifying the quantity. For example, I would say, as translated from English: > > Eine Flasche Wasser bitte. > > > instead of just > > Wa...
2016/12/13
[ "https://german.stackexchange.com/questions/33747", "https://german.stackexchange.com", "https://german.stackexchange.com/users/24897/" ]
These are not at all long for a native German. Any of these are fine depending on circumstances. If you want to use the last sentence when buying cigarettes in a shop you would say: > > Ich hätte gern eine Schachtel Zigaretten. > > > , otherwise the way you wrote it, you'd inform somebody that you enjoy buying a ...
The quantifier allows to differentiate between specific and non-specific amounts. If the amount is important, e.g. when shopping, use a quantifier: > > Ich kaufe *eine Flasche* Wasser > > > I buy *one bottle* of water (not more, not less) > > > If you want to make a general statement, that is not related to a s...
19,648,504
I have three coloured boxes in a `div`, all of different colors, and when i `hover` upon any of these boxes i have to make the `background-color` of the parent `div` appear with the same color as the inner-box which is being hovered upon. CSS: ``` .t1_colors { float: left; width: 100px; height: 100px; ...
2013/10/29
[ "https://Stackoverflow.com/questions/19648504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2930014/" ]
Look in pure JavaScript: ``` <div> <div id="child" onMouseOver="this.parentNode.style.background='red'">Hover Me</div> </div> ``` With jQuery: ``` $("#child").hover(function(){ $(this).parent().css("background","red"); }); ``` UPDATE: not Click, it's Hover. Fixed css property name.
``` var parent = document.getElementById("task1");//get parent element var item1 = document.getElementById("t1_color_one");//get child element item1.addEventListener("mouseover", func, false);//add event listener for first item on mouseover and call func when someone mouse overs it function func() { parent.setAt...
19,648,504
I have three coloured boxes in a `div`, all of different colors, and when i `hover` upon any of these boxes i have to make the `background-color` of the parent `div` appear with the same color as the inner-box which is being hovered upon. CSS: ``` .t1_colors { float: left; width: 100px; height: 100px; ...
2013/10/29
[ "https://Stackoverflow.com/questions/19648504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2930014/" ]
Look in pure JavaScript: ``` <div> <div id="child" onMouseOver="this.parentNode.style.background='red'">Hover Me</div> </div> ``` With jQuery: ``` $("#child").hover(function(){ $(this).parent().css("background","red"); }); ``` UPDATE: not Click, it's Hover. Fixed css property name.
Here is answer in pure javascript ``` window.addEventListener('load', function(event) { var divs = document.getElementsByClassName('t1_colors'); var count_of_divs = divs.length; for(var i = 0; i<count_of_divs; i++) { divs[i].addEventListener('mouseover', function(e) { docum...
19,648,504
I have three coloured boxes in a `div`, all of different colors, and when i `hover` upon any of these boxes i have to make the `background-color` of the parent `div` appear with the same color as the inner-box which is being hovered upon. CSS: ``` .t1_colors { float: left; width: 100px; height: 100px; ...
2013/10/29
[ "https://Stackoverflow.com/questions/19648504", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2930014/" ]
Look in pure JavaScript: ``` <div> <div id="child" onMouseOver="this.parentNode.style.background='red'">Hover Me</div> </div> ``` With jQuery: ``` $("#child").hover(function(){ $(this).parent().css("background","red"); }); ``` UPDATE: not Click, it's Hover. Fixed css property name.
Use the following code: ``` <html> <head> <style> .t1_colors { float: left; width: 100px; height: 100px; margin-right: 20px; border: 1px solid rgb(111,61,69); } </style> </head> <body> <div id="task1...
189,667
I have an application page: ApprovedReassessments with this url : ``` http://.../Sites/spain/_layouts/pw/ApprovedReassessments.aspx ``` and I have a library : DropDownLibrary with this url: ``` http://.../sites/Spain/DropDownLibrary/Forms/AllItems.aspx ``` when I try to call this library in the application page...
2016/08/04
[ "https://sharepoint.stackexchange.com/questions/189667", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/31462/" ]
``` currentWeb.Lists["DropDownList"] ``` Lists takes the title or the list id. What you're passing in looks like the partial URL.
Check `http://<url>/FormServerTemplates` > > Go to the above URL > Settings > Library Settings > Permission to this Library and provide permission to your user. > > > Also, check if it's just for one library or its happening for all the library. looks a permission issue.
189,667
I have an application page: ApprovedReassessments with this url : ``` http://.../Sites/spain/_layouts/pw/ApprovedReassessments.aspx ``` and I have a library : DropDownLibrary with this url: ``` http://.../sites/Spain/DropDownLibrary/Forms/AllItems.aspx ``` when I try to call this library in the application page...
2016/08/04
[ "https://sharepoint.stackexchange.com/questions/189667", "https://sharepoint.stackexchange.com", "https://sharepoint.stackexchange.com/users/31462/" ]
``` currentWeb.Lists["DropDownList"] ``` Lists takes the title or the list id. What you're passing in looks like the partial URL.
I tried this solution and it works : ``` using (SPSite curSite = new SPSite(SPContext.Current.Web.Url)) { curSite.AllowUnsafeUpdates = true; using (SPWeb curWeb = curSite.OpenWeb()) { curWeb.AllowUnsafeUpdates = true; S...
27,241,952
I understand that there is duplicate >>> copied from the duplicate >>>As long as your local machine has an SSH server running <<<<< but i cannot comment and cannot as from the question (and im not providing an answer....) It stated that "As long as your local machine has an SSH server running" but I do not know how to...
2014/12/02
[ "https://Stackoverflow.com/questions/27241952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1383659/" ]
You're attempting to connect to your local host via the SSH protocol. With JSCH this isn't exactly socket programming, but your issue is related to socket programming. Essentially your issue is that your program is trying to connect to a port which isn't open, specifically in this instance it's port 22. You don't have...
I have no idea why but after i can putty to my own localhost, although the above (Sample code, and Thank you for providing the code) i faces the error but the following code (Again, thank you for providing the code. This code is from JCraft, if im not confused, works! i managed to send the command 'help'). Lots of than...
27,241,952
I understand that there is duplicate >>> copied from the duplicate >>>As long as your local machine has an SSH server running <<<<< but i cannot comment and cannot as from the question (and im not providing an answer....) It stated that "As long as your local machine has an SSH server running" but I do not know how to...
2014/12/02
[ "https://Stackoverflow.com/questions/27241952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1383659/" ]
You're attempting to connect to your local host via the SSH protocol. With JSCH this isn't exactly socket programming, but your issue is related to socket programming. Essentially your issue is that your program is trying to connect to a port which isn't open, specifically in this instance it's port 22. You don't have...
If you are using mac there is a possibility that you haven't allowed remote logins to the server(in this case your machine). Go to System preferences-> Sharing and enable remote login. Also add the user that you want to work with.
3,003,436
i am working on an ubuntu system. My aim is to basically make an IDE in C language using GUI tools from TCL/TK. I installed tcl 8.4, tk8.4, tcl8.4-dev, tk8.4-dev and have the tk.h and tcl.h headers file in my system. But, when I am running a basic hello world program it's showing a hell lot of errors. ``` #include "tk...
2010/06/09
[ "https://Stackoverflow.com/questions/3003436", "https://Stackoverflow.com", "https://Stackoverflow.com/users/362075/" ]
This is not a valid program at all. What you are attempting to do is embed Tcl and Tk into your C application. Read the relevant sections in a Tcl/Tk book or research the Tcl Wiki (for instance [1](http://wiki.tcl.tk/2074 "Embedding Tcl in C applications")). To run Tcl or Tk commands you must have a `Tcl_Interp` prope...
but... shouldn't you use `<>` for systemwide include?! and `button("..") -text("...") ..` isn't good C grammar, unless tk.h gives powerful macros `button` and `-text` (which is problematic, i.e., not possible), and I suspect it is not so (in fact it is not so)... You could be interested in [this](http://www.hwaci.com/...
21,903,124
I have here autocomplete from jquery.com. Instead of making a variable to show in autocomplete. I want to show autocomplete from database records. I want only show in autocomplete the records based on dropdown option value. How to do this? Please help me. I'm stuck in here. This what I have here right now. But how to ...
2014/02/20
[ "https://Stackoverflow.com/questions/21903124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3318208/" ]
You can use standard Java to do that. ``` Random random = new Random(); int oneTwoThree = random.nextInt(3) + 1; ``` This will generate a random int (0, 1 or 2) and then add 1, resulting in 1, 2 or 3. If you want to switch it every second, then you need to keep track of the time in your `render(float)` method ``` ...
``` import com.badlogic.gdx.math.MathUtils; int random = MathUtils.random.nextInt(4); if(random == 0){ }else if (random == 1){ }else if (random == 2){ }else{ } ```
3,455
On the sidesticks of Airbus aircraft, there is a Priority Takeover button. [Wikipedia](http://en.wikipedia.org/wiki/Side-stick) has this to say: > > In typical Airbus side-stick implementations, the sticks are independent. The plane's computer either aggregates multiple inputs or a pilot can press a "priority button"...
2014/04/18
[ "https://aviation.stackexchange.com/questions/3455", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/97/" ]
It's been several years since I worked at United's flight training center, but if my memory serves me, it is there in case the system is receiving input that the pilot wants to exclude. As was explained to me, an example of this would be the other pilot becoming incapacitated, with their body leaning against the sidest...
As far as I recall the priority button suppresses the other stick **and autopilot**. Since it is right under the thumb on the side-stick, that makes it quicker way to disconnect autopilot than navigating the other hand to the flight management panel. The overall idea is that when the pilot needs to make manual input q...
3,455
On the sidesticks of Airbus aircraft, there is a Priority Takeover button. [Wikipedia](http://en.wikipedia.org/wiki/Side-stick) has this to say: > > In typical Airbus side-stick implementations, the sticks are independent. The plane's computer either aggregates multiple inputs or a pilot can press a "priority button"...
2014/04/18
[ "https://aviation.stackexchange.com/questions/3455", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/97/" ]
It's been several years since I worked at United's flight training center, but if my memory serves me, it is there in case the system is receiving input that the pilot wants to exclude. As was explained to me, an example of this would be the other pilot becoming incapacitated, with their body leaning against the sidest...
I'm not sure it exactly answers your question, but there is an excellent example of why this feature ought to always be used in an emergency situation. [Air France Flight 447](http://en.wikipedia.org/wiki/Air_France_Flight_447#Final_report) was an Airbus A330, I'm not entirely certain if it had this feature (I assume ...
3,455
On the sidesticks of Airbus aircraft, there is a Priority Takeover button. [Wikipedia](http://en.wikipedia.org/wiki/Side-stick) has this to say: > > In typical Airbus side-stick implementations, the sticks are independent. The plane's computer either aggregates multiple inputs or a pilot can press a "priority button"...
2014/04/18
[ "https://aviation.stackexchange.com/questions/3455", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/97/" ]
It's been several years since I worked at United's flight training center, but if my memory serves me, it is there in case the system is receiving input that the pilot wants to exclude. As was explained to me, an example of this would be the other pilot becoming incapacitated, with their body leaning against the sidest...
A prime reason for this is the fact that the Airbus sidesticks are not connected mechanically, unlike the center control columns of other aircraft. In the event of conflicting inputs from both pilots, such a condition would not be readily apparent. With mechanically connected columns, conflicting input is not possible,...
3,455
On the sidesticks of Airbus aircraft, there is a Priority Takeover button. [Wikipedia](http://en.wikipedia.org/wiki/Side-stick) has this to say: > > In typical Airbus side-stick implementations, the sticks are independent. The plane's computer either aggregates multiple inputs or a pilot can press a "priority button"...
2014/04/18
[ "https://aviation.stackexchange.com/questions/3455", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/97/" ]
The priority button is not normally used when taking over controls from the other pilot. Even in Airbus the control hand over is done verbally. The pilot who wants the control says, *'I have controls'* and the pilot who gives the control says, *'You have controls.'* Or if the flying pilot wants to give the controls to ...
As far as I recall the priority button suppresses the other stick **and autopilot**. Since it is right under the thumb on the side-stick, that makes it quicker way to disconnect autopilot than navigating the other hand to the flight management panel. The overall idea is that when the pilot needs to make manual input q...
3,455
On the sidesticks of Airbus aircraft, there is a Priority Takeover button. [Wikipedia](http://en.wikipedia.org/wiki/Side-stick) has this to say: > > In typical Airbus side-stick implementations, the sticks are independent. The plane's computer either aggregates multiple inputs or a pilot can press a "priority button"...
2014/04/18
[ "https://aviation.stackexchange.com/questions/3455", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/97/" ]
The priority button is not normally used when taking over controls from the other pilot. Even in Airbus the control hand over is done verbally. The pilot who wants the control says, *'I have controls'* and the pilot who gives the control says, *'You have controls.'* Or if the flying pilot wants to give the controls to ...
I'm not sure it exactly answers your question, but there is an excellent example of why this feature ought to always be used in an emergency situation. [Air France Flight 447](http://en.wikipedia.org/wiki/Air_France_Flight_447#Final_report) was an Airbus A330, I'm not entirely certain if it had this feature (I assume ...
3,455
On the sidesticks of Airbus aircraft, there is a Priority Takeover button. [Wikipedia](http://en.wikipedia.org/wiki/Side-stick) has this to say: > > In typical Airbus side-stick implementations, the sticks are independent. The plane's computer either aggregates multiple inputs or a pilot can press a "priority button"...
2014/04/18
[ "https://aviation.stackexchange.com/questions/3455", "https://aviation.stackexchange.com", "https://aviation.stackexchange.com/users/97/" ]
The priority button is not normally used when taking over controls from the other pilot. Even in Airbus the control hand over is done verbally. The pilot who wants the control says, *'I have controls'* and the pilot who gives the control says, *'You have controls.'* Or if the flying pilot wants to give the controls to ...
A prime reason for this is the fact that the Airbus sidesticks are not connected mechanically, unlike the center control columns of other aircraft. In the event of conflicting inputs from both pilots, such a condition would not be readily apparent. With mechanically connected columns, conflicting input is not possible,...
42,300
It is a well known fact that freezing point decreases on adding impurities. I feel that it should increase on adding impurities. Reason: I have watched [this](https://youtu.be/ph8xusY3GTM) video on supercooled water. It says that when ice forms, it needs some nucleation points. If water is pure and left undisturbed, ...
2015/12/15
[ "https://chemistry.stackexchange.com/questions/42300", "https://chemistry.stackexchange.com", "https://chemistry.stackexchange.com/users/7249/" ]
No, but good question. *Freezing* is a **thermodynamic** process. *Nucleation* is a **kinetic** process. **Kinetic Explanation:** At the freezing point of water, water wants to become ice (thermodynamically driven). In order for freezing to initiate and ice to form a temperature dependent minimum number of water mole...
Think in terms of needing to remove the dissolved substance: the water that crystallizes is (fairly) pure $\ce{H2O}$, and the remainder is a concentrated solution (e.g. brine, if the solute is $\ce{NaCl}$. Work is done to separate the water from brine, so it takes more "effort" to freeze than does pure water. There ar...
18,013,970
I have a certain part of code that pulls numbers from a Mysql database and displays it into a HTML table using PHP. However, I have lots of data from this one row, over 100 lines easily, and I would like to split into columns by lengths of 25 or so. This is the code so far: ``` while($row = mysql_fetch_array($resul...
2013/08/02
[ "https://Stackoverflow.com/questions/18013970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2535766/" ]
``` $i = 1; echo "<tr>"; while($row = mysql_fetch_array($results)) { echo "<td>".$row['Destination']."</td>"; if ($i % 25 == 0) echo "</tr><tr>"; $i++; } echo "</tr>"; ```
Try this: ``` <?php $i = 1; $columns = 25; while($row = mysql_fetch_array($results)) { if($i == 1){ echo '<tr>'; } echo "<td>" . $Destination = $row["Destination"] . "</td>"; $i++; if($i == ($columns + 1)) { echo '</tr>'; $i = 1; } } ?> ```
18,013,970
I have a certain part of code that pulls numbers from a Mysql database and displays it into a HTML table using PHP. However, I have lots of data from this one row, over 100 lines easily, and I would like to split into columns by lengths of 25 or so. This is the code so far: ``` while($row = mysql_fetch_array($resul...
2013/08/02
[ "https://Stackoverflow.com/questions/18013970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2535766/" ]
Try this: ``` <?php $i = 1; $columns = 25; while($row = mysql_fetch_array($results)) { if($i == 1){ echo '<tr>'; } echo "<td>" . $Destination = $row["Destination"] . "</td>"; $i++; if($i == ($columns + 1)) { echo '</tr>'; $i = 1; } } ?> ```
You can use this: ``` <table> <?php $mysqli = new mysqli('localhost', 'root', '', 'crud') or die(mysqli_error($mysqli)); $result = $mysqli->query("SELECT * FROM data") or die(mysqli->error); $i = 1; $columns = 3; echo "<tr>"; while($row = $resul...
18,013,970
I have a certain part of code that pulls numbers from a Mysql database and displays it into a HTML table using PHP. However, I have lots of data from this one row, over 100 lines easily, and I would like to split into columns by lengths of 25 or so. This is the code so far: ``` while($row = mysql_fetch_array($resul...
2013/08/02
[ "https://Stackoverflow.com/questions/18013970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2535766/" ]
``` $i = 1; echo "<tr>"; while($row = mysql_fetch_array($results)) { echo "<td>".$row['Destination']."</td>"; if ($i % 25 == 0) echo "</tr><tr>"; $i++; } echo "</tr>"; ```
You can use this: ``` <table> <?php $mysqli = new mysqli('localhost', 'root', '', 'crud') or die(mysqli_error($mysqli)); $result = $mysqli->query("SELECT * FROM data") or die(mysqli->error); $i = 1; $columns = 3; echo "<tr>"; while($row = $resul...
17,908,309
I have a complicated query and since I need that my module work on both mysql and postgres, I need to write two version of it. Unfortunately, I don't know how I can check if the db I use is mysql or postgres, to know which query use. Do you know if a function can return this value?
2013/07/28
[ "https://Stackoverflow.com/questions/17908309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1753847/" ]
As @kordirko says, one option is to query the server version: `SELECT version();` will work on both MySQL and PostgreSQL, though not [most](http://sqlfiddle.com/#!4/d41d8/14664) [other database](http://sqlfiddle.com/#!6/d41d8/5941) [engines](http://sqlfiddle.com/#!5/d41d8/599). Parsing version strings is always a bit ...
As long as the abstract [DatabaseConnection](https://api.drupal.org/api/drupal/includes%21database%21database.inc/class/DatabaseConnection/7) class extends PDO class, you can invoking pdo methods in order to know the current database driver. For instance: ``` $conn = Database::getConnection(); print $conn->getAttribu...
41,017,861
Hello I have a big database from where I take like 1500 values in order to show in a chart. My issues is that it takes a long time to display all the points, I think is because of animation settings. How can I change the speed of the animation or is there a way to display the points faster? ``` <UserControl x:Class...
2016/12/07
[ "https://Stackoverflow.com/questions/41017861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6813118/" ]
What contributes the most to slow down your chart is all the events generated to draw your series point-by-point as they are added to the view model collection. Adding them all at once solves that problem: [![enter image description here](https://i.stack.imgur.com/NPzOr.gif)](https://i.stack.imgur.com/NPzOr.gif) Exte...
If your main priority is Line charts and you consider switching to a third-party component vendor, you may consider DevExpress ChartControl as a suitable option. For instance, the latest version of DevExpress components ships with the "Large Datasource" demo module, where up to 500K points can be shown without major p...
41,017,861
Hello I have a big database from where I take like 1500 values in order to show in a chart. My issues is that it takes a long time to display all the points, I think is because of animation settings. How can I change the speed of the animation or is there a way to display the points faster? ``` <UserControl x:Class...
2016/12/07
[ "https://Stackoverflow.com/questions/41017861", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6813118/" ]
I know this is an older question but I wanted to share my thoughts on charting in WPF that goes beyond just plotting a few bars or scatter points or lines. Probably everyone agrees that the stock WPF library was not built and intended to handle many thousands or even millions of datapoints when it comes to charting. ...
If your main priority is Line charts and you consider switching to a third-party component vendor, you may consider DevExpress ChartControl as a suitable option. For instance, the latest version of DevExpress components ships with the "Large Datasource" demo module, where up to 500K points can be shown without major p...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
It's as you said, a paradigm. It has strengths and weaknesses like any other paradigm. Where I think you're mistaken is the notion of what is materially significant. What makes 50 instances a big number? Perhaps to you keeping track of 50 discreet things is difficult (likely so for all humans), but that doesn't mean it...
I'm afraid that what you are missing is the real experience of working long time with a big project. That means you have 100% theoretical concepts, but they are theoretical. When I first learned programming function (in C), I wondered why we need this. But then when I started coding something bigger than before I reali...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
Your are confusing frameworks with the paradigm. A framework is the structure in which you code to make something easier to maintain. In this case, you are using a framework centered around objects that know how to go out and get their own data. This is a simplistic approach, and as you've found, can lead to exponent...
Don't forget testing! Having solid object that you work with allows you to do dependency injection and provide tests and debug at every level of the application independently. This is a huge boon to developers who like to make their code airtight. This is especially true if you are using languages like .Net with a st...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
Here's the crux of the issue. As has been said before, there are tradeoffs to each and every paradigm. OOP has a lot of benefits, but it also has some negatives as you point out. The key is weighing them. OOP is founded on the principal that developers are expensive and hardware is cheap. It uses this principal to lea...
I'm afraid that what you are missing is the real experience of working long time with a big project. That means you have 100% theoretical concepts, but they are theoretical. When I first learned programming function (in C), I wondered why we need this. But then when I started coding something bigger than before I reali...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
I'm afraid that what you are missing is the real experience of working long time with a big project. That means you have 100% theoretical concepts, but they are theoretical. When I first learned programming function (in C), I wondered why we need this. But then when I started coding something bigger than before I reali...
OOP is an approach to a problem through the application of various concepts. These concepts can be used together in a strict OO fashion or can be mixed and matched with other concepts from other paradigms. Most modern programming languages are no longer purely 1 paradigm or another. They usually incorporate other parad...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
To provide you a simple example about what seems to be your main concern : ``` $list = DB::query($query); foreach ($list as $person) { // $person->name // $person->address // .. and so on } ``` First of all, if you come to a point were you have an instance of a class per person, when you want a list of them,...
If you're writing a short simple piece of code, there's very little overhead when you want to modify it later: even if you have to rewrite it from scratch, it doesn't really matter. As the system grows, you have to design code in a more careful way: document interfaces, provide abstractions, encapsulate complexity, and...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
To provide you a simple example about what seems to be your main concern : ``` $list = DB::query($query); foreach ($list as $person) { // $person->name // $person->address // .. and so on } ``` First of all, if you come to a point were you have an instance of a class per person, when you want a list of them,...
If you look at DDD, you have an independent domain layer that contains the domain entities; each of them containing properties and domain logic. Another layer is infrastructure, which contains the repositories (where your CRUD operations are implemented towards a specific resource and technology). Retrieving a list of...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
Here's the crux of the issue. As has been said before, there are tradeoffs to each and every paradigm. OOP has a lot of benefits, but it also has some negatives as you point out. The key is weighing them. OOP is founded on the principal that developers are expensive and hardware is cheap. It uses this principal to lea...
Your are confusing frameworks with the paradigm. A framework is the structure in which you code to make something easier to maintain. In this case, you are using a framework centered around objects that know how to go out and get their own data. This is a simplistic approach, and as you've found, can lead to exponent...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
To provide you a simple example about what seems to be your main concern : ``` $list = DB::query($query); foreach ($list as $person) { // $person->name // $person->address // .. and so on } ``` First of all, if you come to a point were you have an instance of a class per person, when you want a list of them,...
Your are confusing frameworks with the paradigm. A framework is the structure in which you code to make something easier to maintain. In this case, you are using a framework centered around objects that know how to go out and get their own data. This is a simplistic approach, and as you've found, can lead to exponent...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
I'm afraid that what you are missing is the real experience of working long time with a big project. That means you have 100% theoretical concepts, but they are theoretical. When I first learned programming function (in C), I wondered why we need this. But then when I started coding something bigger than before I reali...
Don't forget testing! Having solid object that you work with allows you to do dependency injection and provide tests and debug at every level of the application independently. This is a huge boon to developers who like to make their code airtight. This is especially true if you are using languages like .Net with a st...
4,471,387
> > **Possible Duplicate:** > > [Classes. Whats the point?](https://stackoverflow.com/questions/1993638/classes-whats-the-point) > > > I've read tons of tutorials, wrote many classes, used them, but I still can't figure out some OOP points. I mean, I think I got the theory. It's a paradigm, a different way to...
2010/12/17
[ "https://Stackoverflow.com/questions/4471387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/343607/" ]
Your are confusing frameworks with the paradigm. A framework is the structure in which you code to make something easier to maintain. In this case, you are using a framework centered around objects that know how to go out and get their own data. This is a simplistic approach, and as you've found, can lead to exponent...
If you're writing a short simple piece of code, there's very little overhead when you want to modify it later: even if you have to rewrite it from scratch, it doesn't really matter. As the system grows, you have to design code in a more careful way: document interfaces, provide abstractions, encapsulate complexity, and...
60,971,249
I am reading the [Routing and navigation](https://angular.io/guide/router#routing-and-navigation) in Angular. The `first()` operator of `rxjs` does not work and I get error. Here is my Service: ``` import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { first } from 'rxjs/operators...
2020/04/01
[ "https://Stackoverflow.com/questions/60971249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5617124/" ]
The reason is that you are using `of` rather than `from` function to create the Observable returned by `getHeroes()` method. If you change your code like this you do not get any more the compilation error ``` getHeroes(): Observable<Hero> { // the returned Observable emits Hero and not Hero[] return from(HEROES)...
The type of your stream is `Observable<Hero[]>` so you receive all heroes as an array in the `first` operator. To convert such stream to `Observable<Hero>` so you receive one hero at a time in the `first` operator, you can use `mergeAll` operator. ``` return this.getHeroes().pipe( mergeAll(), first(he...
60,971,249
I am reading the [Routing and navigation](https://angular.io/guide/router#routing-and-navigation) in Angular. The `first()` operator of `rxjs` does not work and I get error. Here is my Service: ``` import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { first } from 'rxjs/operators...
2020/04/01
[ "https://Stackoverflow.com/questions/60971249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5617124/" ]
The reason is that you are using `of` rather than `from` function to create the Observable returned by `getHeroes()` method. If you change your code like this you do not get any more the compilation error ``` getHeroes(): Observable<Hero> { // the returned Observable emits Hero and not Hero[] return from(HEROES)...
I think you are returning a `Observable<Hero[]>` and saying this function should return `Observable<Hero>`. I would use `map` instead of `first`. ``` import { map } from 'rxjs/operators'; ...... getHeroes(): Observable<Hero[]> { return of(HEROES); } getHero(id: string): Observable<Hero> { // With the ...
60,971,249
I am reading the [Routing and navigation](https://angular.io/guide/router#routing-and-navigation) in Angular. The `first()` operator of `rxjs` does not work and I get error. Here is my Service: ``` import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { first } from 'rxjs/operators...
2020/04/01
[ "https://Stackoverflow.com/questions/60971249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5617124/" ]
The reason is that you are using `of` rather than `from` function to create the Observable returned by `getHeroes()` method. If you change your code like this you do not get any more the compilation error ``` getHeroes(): Observable<Hero> { // the returned Observable emits Hero and not Hero[] return from(HEROES)...
You have to convert your array of `Heroes` using `from` instead of `of`. Like this: ``` getHeroes(): Observable<Hero[]> { return from(HEROES); // 'from' instead of 'of'. } getHero(id: string): Observable<Hero> { // With the following code I get error return this.getHeroes().pipe( first(hero =...
60,971,249
I am reading the [Routing and navigation](https://angular.io/guide/router#routing-and-navigation) in Angular. The `first()` operator of `rxjs` does not work and I get error. Here is my Service: ``` import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { first } from 'rxjs/operators...
2020/04/01
[ "https://Stackoverflow.com/questions/60971249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5617124/" ]
I think you are returning a `Observable<Hero[]>` and saying this function should return `Observable<Hero>`. I would use `map` instead of `first`. ``` import { map } from 'rxjs/operators'; ...... getHeroes(): Observable<Hero[]> { return of(HEROES); } getHero(id: string): Observable<Hero> { // With the ...
The type of your stream is `Observable<Hero[]>` so you receive all heroes as an array in the `first` operator. To convert such stream to `Observable<Hero>` so you receive one hero at a time in the `first` operator, you can use `mergeAll` operator. ``` return this.getHeroes().pipe( mergeAll(), first(he...
60,971,249
I am reading the [Routing and navigation](https://angular.io/guide/router#routing-and-navigation) in Angular. The `first()` operator of `rxjs` does not work and I get error. Here is my Service: ``` import { Injectable } from '@angular/core'; import { Observable, of } from 'rxjs'; import { first } from 'rxjs/operators...
2020/04/01
[ "https://Stackoverflow.com/questions/60971249", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5617124/" ]
I think you are returning a `Observable<Hero[]>` and saying this function should return `Observable<Hero>`. I would use `map` instead of `first`. ``` import { map } from 'rxjs/operators'; ...... getHeroes(): Observable<Hero[]> { return of(HEROES); } getHero(id: string): Observable<Hero> { // With the ...
You have to convert your array of `Heroes` using `from` instead of `of`. Like this: ``` getHeroes(): Observable<Hero[]> { return from(HEROES); // 'from' instead of 'of'. } getHero(id: string): Observable<Hero> { // With the following code I get error return this.getHeroes().pipe( first(hero =...
46,414,842
This is a very unspecific question, but I couldn't find any reasonable help in the internet to complete this project on my on, so I thought here may be somebody who could help me. I would like to print text (with emojis in it) on a background image with nodejs. So I'm able to convert text to an image with text-to-ima...
2017/09/25
[ "https://Stackoverflow.com/questions/46414842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3948868/" ]
Since we know that the ticks in a seaborn barplot always start at 0, we can just add the first value of your `revol_util` values to the current ticks in a [`matplotlib.ticker.FuncFormatter`](https://matplotlib.org/api/ticker_api.html#matplotlib.ticker.FuncFormatter), along with your existing `MultipleLocator`. ``` imp...
Try: `ax.set_xticklabels(hypothesis1_df.index.tolist())` to manually set the x-axis labels.
46,414,842
This is a very unspecific question, but I couldn't find any reasonable help in the internet to complete this project on my on, so I thought here may be somebody who could help me. I would like to print text (with emojis in it) on a background image with nodejs. So I'm able to convert text to an image with text-to-ima...
2017/09/25
[ "https://Stackoverflow.com/questions/46414842", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3948868/" ]
Since we know that the ticks in a seaborn barplot always start at 0, we can just add the first value of your `revol_util` values to the current ticks in a [`matplotlib.ticker.FuncFormatter`](https://matplotlib.org/api/ticker_api.html#matplotlib.ticker.FuncFormatter), along with your existing `MultipleLocator`. ``` imp...
The problem is that in a seaborn bar plot the bars are indeed positionned at `0,1,...,N-1`; and their labels are set with a `FixedLocator` to the numbers corresponding to the data. An option may hence: Use a multiple locator and set the ticklabels manually ``` ax.xaxis.set_major_locator(ticker.MultipleLocator(10...
30,898
I'm not exactly sure what type of palm tree this is but I was wondering if I could use it for Hugelkultur (burying it in the ground as a form of compost for my plants). I realise some trees (eg. Eucalyptus) are not good for this technique. [![Palm tree I would like to use for Hugelkultur](https://i.stack.imgur.com/2Uh...
2017/02/22
[ "https://gardening.stackexchange.com/questions/30898", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/1658/" ]
Cool question. I did some digging around but could not come up with a definitive answer so here goes with some peripheral reasoning: 1. chopped coir fibres are often used in horticulture as a peat substitute - you know, coconut, palm ... 2. most sources I read where people were trying [hugelkultur with palm](https://p...
If it is organic and dead it is decomposing. My problems with this Hugelkultur are; 1) As long as the decomposing is happening which will be years, the decomposers require lots of nitrogen and the other micro and macro organisms go dormant until there is DECOMPOSED organic matter to 'eat', 2) When this matter finally d...
30,898
I'm not exactly sure what type of palm tree this is but I was wondering if I could use it for Hugelkultur (burying it in the ground as a form of compost for my plants). I realise some trees (eg. Eucalyptus) are not good for this technique. [![Palm tree I would like to use for Hugelkultur](https://i.stack.imgur.com/2Uh...
2017/02/22
[ "https://gardening.stackexchange.com/questions/30898", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/1658/" ]
Palm is a grass. It rots fast. So does not last long. It has a long fiber. It holds water, So is good for wicking water into the soil. It forms a good black mulch & loosens soil. But needs replaced often as low in minerals. So good for growing things for about 6 months. Best used as a soil fiber restorer. We use it her...
Cool question. I did some digging around but could not come up with a definitive answer so here goes with some peripheral reasoning: 1. chopped coir fibres are often used in horticulture as a peat substitute - you know, coconut, palm ... 2. most sources I read where people were trying [hugelkultur with palm](https://p...
30,898
I'm not exactly sure what type of palm tree this is but I was wondering if I could use it for Hugelkultur (burying it in the ground as a form of compost for my plants). I realise some trees (eg. Eucalyptus) are not good for this technique. [![Palm tree I would like to use for Hugelkultur](https://i.stack.imgur.com/2Uh...
2017/02/22
[ "https://gardening.stackexchange.com/questions/30898", "https://gardening.stackexchange.com", "https://gardening.stackexchange.com/users/1658/" ]
Palm is a grass. It rots fast. So does not last long. It has a long fiber. It holds water, So is good for wicking water into the soil. It forms a good black mulch & loosens soil. But needs replaced often as low in minerals. So good for growing things for about 6 months. Best used as a soil fiber restorer. We use it her...
If it is organic and dead it is decomposing. My problems with this Hugelkultur are; 1) As long as the decomposing is happening which will be years, the decomposers require lots of nitrogen and the other micro and macro organisms go dormant until there is DECOMPOSED organic matter to 'eat', 2) When this matter finally d...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
As AmeliaBR's comment indicates, you should add this style inside the SVG `<object>`. And unless your SVG is very simple, you may have the same issue I had: only seeing a pointer when you are hovering over one of the shapes in the SVG, but not when you're between shapes. (In some cases you might want that behavior, ...
If adding "`cursor: pointer`" directly to the `svg` element does not work, you can either try to add an transparent element (Pseudo elements directly on the `object` tag do not work) with the same dimensions as the SVG which is absolutely positioned over the SVG. ```css a.svg-cursor:before { content: ""; display: b...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
As AmeliaBR's comment indicates, you should add this style inside the SVG `<object>`. And unless your SVG is very simple, you may have the same issue I had: only seeing a pointer when you are hovering over one of the shapes in the SVG, but not when you're between shapes. (In some cases you might want that behavior, ...
To style individual elements in your SVG you can either use Javascript or use CSS inside the image in the defs tag or reference an external stylesheet. ``` <svg ...> <defs> <style type="text/css"><![CDATA[ .myfigureclass { cursor: pointer; } ]]></style> </defs> ``` Check [this link](h...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
As AmeliaBR's comment indicates, you should add this style inside the SVG `<object>`. And unless your SVG is very simple, you may have the same issue I had: only seeing a pointer when you are hovering over one of the shapes in the SVG, but not when you're between shapes. (In some cases you might want that behavior, ...
One of the simplest solutions may be to use img tag instead of object tag ``` <img src="course/ani/male2.svg" style="left: 87px; bottom: 56px;" /> ``` although, ideally you can embed the svg in the html. That doesn't let you cache the svg files, so I found using javascript to load the svg file as text and insert i...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
As AmeliaBR's comment indicates, you should add this style inside the SVG `<object>`. And unless your SVG is very simple, you may have the same issue I had: only seeing a pointer when you are hovering over one of the shapes in the SVG, but not when you're between shapes. (In some cases you might want that behavior, ...
I think this is the easiest solution among the others: 1. wrap svg into `<a>` or anything else that will receive clicks: ``` <a href="#"> <object> <embed src="img.svg"></embed> </object> </a> ``` 2. remove pointer events from `<object>` so all clicks will be triggered on the wrapper element: ``` ob...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
If adding "`cursor: pointer`" directly to the `svg` element does not work, you can either try to add an transparent element (Pseudo elements directly on the `object` tag do not work) with the same dimensions as the SVG which is absolutely positioned over the SVG. ```css a.svg-cursor:before { content: ""; display: b...
One of the simplest solutions may be to use img tag instead of object tag ``` <img src="course/ani/male2.svg" style="left: 87px; bottom: 56px;" /> ``` although, ideally you can embed the svg in the html. That doesn't let you cache the svg files, so I found using javascript to load the svg file as text and insert i...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
I think this is the easiest solution among the others: 1. wrap svg into `<a>` or anything else that will receive clicks: ``` <a href="#"> <object> <embed src="img.svg"></embed> </object> </a> ``` 2. remove pointer events from `<object>` so all clicks will be triggered on the wrapper element: ``` ob...
If adding "`cursor: pointer`" directly to the `svg` element does not work, you can either try to add an transparent element (Pseudo elements directly on the `object` tag do not work) with the same dimensions as the SVG which is absolutely positioned over the SVG. ```css a.svg-cursor:before { content: ""; display: b...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
To style individual elements in your SVG you can either use Javascript or use CSS inside the image in the defs tag or reference an external stylesheet. ``` <svg ...> <defs> <style type="text/css"><![CDATA[ .myfigureclass { cursor: pointer; } ]]></style> </defs> ``` Check [this link](h...
One of the simplest solutions may be to use img tag instead of object tag ``` <img src="course/ani/male2.svg" style="left: 87px; bottom: 56px;" /> ``` although, ideally you can embed the svg in the html. That doesn't let you cache the svg files, so I found using javascript to load the svg file as text and insert i...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
I think this is the easiest solution among the others: 1. wrap svg into `<a>` or anything else that will receive clicks: ``` <a href="#"> <object> <embed src="img.svg"></embed> </object> </a> ``` 2. remove pointer events from `<object>` so all clicks will be triggered on the wrapper element: ``` ob...
To style individual elements in your SVG you can either use Javascript or use CSS inside the image in the defs tag or reference an external stylesheet. ``` <svg ...> <defs> <style type="text/css"><![CDATA[ .myfigureclass { cursor: pointer; } ]]></style> </defs> ``` Check [this link](h...
26,672,936
In my website i use svg elements. Sometimes i need them to be clickable, therefore i want pointer cursor over them. However adding css class or style ``` cursor: pointer; ``` not work. That's the example element ``` <object id="male2" type="image/svg+xml" data="course/ani/male2.svg" style="left: 87px; bottom: 56p...
2014/10/31
[ "https://Stackoverflow.com/questions/26672936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/673693/" ]
I think this is the easiest solution among the others: 1. wrap svg into `<a>` or anything else that will receive clicks: ``` <a href="#"> <object> <embed src="img.svg"></embed> </object> </a> ``` 2. remove pointer events from `<object>` so all clicks will be triggered on the wrapper element: ``` ob...
One of the simplest solutions may be to use img tag instead of object tag ``` <img src="course/ani/male2.svg" style="left: 87px; bottom: 56px;" /> ``` although, ideally you can embed the svg in the html. That doesn't let you cache the svg files, so I found using javascript to load the svg file as text and insert i...
985,923
![enter image description here](https://i.stack.imgur.com/PiEJY.png) ![enter image description here](https://i.stack.imgur.com/Azlqy.png) Here is the following question and answer for the question. I don't seem to quite grasp the answers or how the answers are what they are. Requirements for subspace: * the zero ve...
2014/10/22
[ "https://math.stackexchange.com/questions/985923", "https://math.stackexchange.com", "https://math.stackexchange.com/users/35120/" ]
I show the steps for the (a). Given the plane $(b\_1,b\_2,b\_3)$ with $b\_1=b\_2$ First, zero vector is contained in the set since $b\_1=b\_2=0$ Next, suppose there are two vectors fulfilling the equation of plane given by $$u=(x\_1,x\_2,x\_3) \text{ and } v=(y\_1,y\_2,y\_3) $$ such that $x\_1=x\_2$ and $y\_1=y\_2$ ...
(a) Consider the plane "z = 1" in $R^3$. It's not a subspace, but your argument ("there are no limitations") applies to it just as well as the one in the problem. So your argument cannot be sufficient. (b) The set of all vectors of the form $(1, p, q)$, where $p$ and $q$ are real numbers, is a plane in 3-space. (You ...
114,187
So, in my case, I have a list of boroughs and connected cities. The way it works here in Montreal is we have boroughs and connected cities(like Westmount; geographically-speaking, it's still on the island and an outsider would think it's a regular borough, but it's not..). So, it wouldn't make sense to use 2 dropdowns ...
2017/12/09
[ "https://ux.stackexchange.com/questions/114187", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/109070/" ]
I don't think it's necessarily 'bad practice' to have subdivided selects (dropdowns). After all, there are specific HTML tags for select list subgroups so it's accessible too. However, it *is* bad practice to have long select lists - they make things difficult to find and are physically difficult to use. Almost any...
You can use fancy dropdown widgets like [Shield UI's DropDown](http://demos.shieldui.com/web/dropdown/templates), which allow you to render anything, from distinctive images to indents and paddings for each item.
114,187
So, in my case, I have a list of boroughs and connected cities. The way it works here in Montreal is we have boroughs and connected cities(like Westmount; geographically-speaking, it's still on the island and an outsider would think it's a regular borough, but it's not..). So, it wouldn't make sense to use 2 dropdowns ...
2017/12/09
[ "https://ux.stackexchange.com/questions/114187", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/109070/" ]
I don't think it's necessarily 'bad practice' to have subdivided selects (dropdowns). After all, there are specific HTML tags for select list subgroups so it's accessible too. However, it *is* bad practice to have long select lists - they make things difficult to find and are physically difficult to use. Almost any...
I would suggest to use grouping within the drop-down menu. The groups can be collapsible so that user can go towards the required option easily. Also, don't forget to provide search feature (in the form of auto-complete) when user enters some text to find a country. If it is a mobile interface, then providing two leve...
13,521
I have a scenario in which I need to execute the selenium scripts through servlets. I mean I will get the same input from the front end (Web UI) by passing those values to selenium classes then I will execute those classes. I have tried this: 1. Created a servlet 2. Created an object for selenium class and called the...
2015/06/17
[ "https://sqa.stackexchange.com/questions/13521", "https://sqa.stackexchange.com", "https://sqa.stackexchange.com/users/9337/" ]
I have also added another solution which you wanted to implement ie) passing the values from the servlet post method to your selenium test Download selenium java client driver [here](http://selenium-release.storage.googleapis.com/2.46/selenium-java-2.46.0.zip) Extract the downloaded jar and add the selenium-java-2.46...
The best approach is save the values from the servlet to a Database. 1. Install `continuous Integration server` like [**Jenkins**](https://jenkins-ci.org/) and create a Java project to check for new entries in database. Set cron job for this build. Actually Jenkins has all these features you just have to specify the t...
16,035,250
Since STL containers require that all contents be copyable and assignable, what is the prefered idiom when working with non copyable objects? I can think of two different approaches: 1. Store (smart) pointers rather than the objects in STL containers. 2. Get rid of STL containers and implement my own lists (e.g. eac...
2013/04/16
[ "https://Stackoverflow.com/questions/16035250", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2204441/" ]
I'd choose approach #1: i.e. store *smart* pointers to objects in STL containers. Note that it's fine to store non-owning raw pointers in STL containers (e.g. *observing* raw pointers), but storing *owning* raw pointers is a *"leaktrocity"*: use **`shared_ptr`** or new C++11's **`unique_ptr`** instead. As for #2, wri...
> > Since STL containers require that all contents be copyable and assignable, what is the prefered idiom when working with non copyable objects? > > > Well, actually with C++11 they require the object to be Movable. Only certain operations require them to be Assignable thanks to `emplace_*` methods. > > I can t...
63,798
I've read multiple threads about streaming a Logitech C920 Webcam via raspberry pi with cvlc using basically this command: ``` cvlc v4l2:///dev/video1:chroma=h264:width=800:height=600 --sout '#standard{access=http,mux=ts,dst=localhost:8080,name=stream,mime=video/ts}' -vvv ``` Taken the info from this site: <https://...
2017/03/22
[ "https://raspberrypi.stackexchange.com/questions/63798", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/10526/" ]
The problem is that the C922 does not advertise its H264 stream over UVC whereas the C920 does. This is because Logitech did not want to enable general use of the H264 for the C922, but instead wanted you to buy the camera with something like Skype which knows internally how to get hold of the data. The reason for this...
You may have to force the stream mode for your camera. First chek if MPEG or H264 is really available : `v4l2-ctl --list-formats` Using `v4l2-ctl --all` you will see the current resolution and pixel Format for your camera. To define another resolution and/or pixelFormat, use this command : `v4l2-ctl --device /dev/vi...
63,798
I've read multiple threads about streaming a Logitech C920 Webcam via raspberry pi with cvlc using basically this command: ``` cvlc v4l2:///dev/video1:chroma=h264:width=800:height=600 --sout '#standard{access=http,mux=ts,dst=localhost:8080,name=stream,mime=video/ts}' -vvv ``` Taken the info from this site: <https://...
2017/03/22
[ "https://raspberrypi.stackexchange.com/questions/63798", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/10526/" ]
You may have to force the stream mode for your camera. First chek if MPEG or H264 is really available : `v4l2-ctl --list-formats` Using `v4l2-ctl --all` you will see the current resolution and pixel Format for your camera. To define another resolution and/or pixelFormat, use this command : `v4l2-ctl --device /dev/vi...
There is a H264 UVC extension, where you can enable muxing the H264 stream into the MJPG stream. After that, you can read the H264 frames from the APP4 JPEG markers. You can read about it from USB\_Video\_Payload\_H 264\_1 0.pdf (<https://www.usb.org/document-library/video-class-v11-document-set>) Linux supports the ...
63,798
I've read multiple threads about streaming a Logitech C920 Webcam via raspberry pi with cvlc using basically this command: ``` cvlc v4l2:///dev/video1:chroma=h264:width=800:height=600 --sout '#standard{access=http,mux=ts,dst=localhost:8080,name=stream,mime=video/ts}' -vvv ``` Taken the info from this site: <https://...
2017/03/22
[ "https://raspberrypi.stackexchange.com/questions/63798", "https://raspberrypi.stackexchange.com", "https://raspberrypi.stackexchange.com/users/10526/" ]
The problem is that the C922 does not advertise its H264 stream over UVC whereas the C920 does. This is because Logitech did not want to enable general use of the H264 for the C922, but instead wanted you to buy the camera with something like Skype which knows internally how to get hold of the data. The reason for this...
There is a H264 UVC extension, where you can enable muxing the H264 stream into the MJPG stream. After that, you can read the H264 frames from the APP4 JPEG markers. You can read about it from USB\_Video\_Payload\_H 264\_1 0.pdf (<https://www.usb.org/document-library/video-class-v11-document-set>) Linux supports the ...
52,886,651
``` public void setSpeciality(String spec) { if(specialities.stream().anyMatch(s-> s.equalsIgnoreCase(spec))) { speciality =spec; } else speciality = "General Practitioner"; } ``` I need to search an array list called specialities (case insensitive) ^ see my attempt at an answer^ but cant figu...
2018/10/19
[ "https://Stackoverflow.com/questions/52886651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10510482/" ]
`anyMatch` only returns `true` or `false` indicating whether there is at least 1 element in the stream that satisfies the predicate. You should use `filter` and `findFirst`, which returns the first element that matches the predicate: ``` speciality = specialities.stream() .filter(spec::equalsIgnoreCa...
You are overriding speciality so every time you will be getting same result. change code like below ``` public void setSpeciality(String spec) { if(specialities.stream().anyMatch(s-> s.equalsIgnoreCase(spec))) { speciality =spec; }else{ speciality = "General Practitioner"; ...
52,886,651
``` public void setSpeciality(String spec) { if(specialities.stream().anyMatch(s-> s.equalsIgnoreCase(spec))) { speciality =spec; } else speciality = "General Practitioner"; } ``` I need to search an array list called specialities (case insensitive) ^ see my attempt at an answer^ but cant figu...
2018/10/19
[ "https://Stackoverflow.com/questions/52886651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10510482/" ]
`anyMatch` only returns `true` or `false` indicating whether there is at least 1 element in the stream that satisfies the predicate. You should use `filter` and `findFirst`, which returns the first element that matches the predicate: ``` speciality = specialities.stream() .filter(spec::equalsIgnoreCa...
just include, `speciality =spec.toLowerCase();` and convert the first character to uppercase ``` public void setSpeciality(String spec) { if(specialities.stream().anyMatch(s-> s.equalsIgnoreCase(spec))) { speciality =spec.toLowerCase(); speciality = String.valueOf((speciality.charAt(0)).toUpperCase...
52,886,651
``` public void setSpeciality(String spec) { if(specialities.stream().anyMatch(s-> s.equalsIgnoreCase(spec))) { speciality =spec; } else speciality = "General Practitioner"; } ``` I need to search an array list called specialities (case insensitive) ^ see my attempt at an answer^ but cant figu...
2018/10/19
[ "https://Stackoverflow.com/questions/52886651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10510482/" ]
just include, `speciality =spec.toLowerCase();` and convert the first character to uppercase ``` public void setSpeciality(String spec) { if(specialities.stream().anyMatch(s-> s.equalsIgnoreCase(spec))) { speciality =spec.toLowerCase(); speciality = String.valueOf((speciality.charAt(0)).toUpperCase...
You are overriding speciality so every time you will be getting same result. change code like below ``` public void setSpeciality(String spec) { if(specialities.stream().anyMatch(s-> s.equalsIgnoreCase(spec))) { speciality =spec; }else{ speciality = "General Practitioner"; ...
35,893,913
I'm having trouble adding this functionality to my calculator app. Here's what I had in mind: I want to solve: `2x = 5 + 4x`. To solve this is no problem if I would use an external token library to parse the equation, but since my entire program is built around a shunting yard parser (EXP4J), it complicates things. Y...
2016/03/09
[ "https://Stackoverflow.com/questions/35893913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5530486/" ]
With the [symja library](https://github.com/axkr/symja_android_library) you can solve your problem like this: ``` package org.matheclipse.core.examples; import org.matheclipse.core.eval.ExprEvaluator; import org.matheclipse.core.interfaces.IExpr; import org.matheclipse.parser.client.SyntaxError; import org.matheclips...
First, define the domain of your equations. Are you talking about linear equations, polynomials, general non-linear equations, differential equations? Then define your dimension: Do you have one variable or many? Finally, select the appropriate solver (numerical, symbolical, Gauss, Newton etc.). Once you have defined...
35,893,913
I'm having trouble adding this functionality to my calculator app. Here's what I had in mind: I want to solve: `2x = 5 + 4x`. To solve this is no problem if I would use an external token library to parse the equation, but since my entire program is built around a shunting yard parser (EXP4J), it complicates things. Y...
2016/03/09
[ "https://Stackoverflow.com/questions/35893913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5530486/" ]
With the [symja library](https://github.com/axkr/symja_android_library) you can solve your problem like this: ``` package org.matheclipse.core.examples; import org.matheclipse.core.eval.ExprEvaluator; import org.matheclipse.core.interfaces.IExpr; import org.matheclipse.parser.client.SyntaxError; import org.matheclips...
I am not really familiar with exp4j... Given that the `Expression` class doesn't seem to provide much access to the parsed structure, a symbolic approach seems not really feasible with exp4j. One thing you could try with exp4j instead: * Split the equation at `=` into `left` and `right` * Build a new equation that is...
35,893,913
I'm having trouble adding this functionality to my calculator app. Here's what I had in mind: I want to solve: `2x = 5 + 4x`. To solve this is no problem if I would use an external token library to parse the equation, but since my entire program is built around a shunting yard parser (EXP4J), it complicates things. Y...
2016/03/09
[ "https://Stackoverflow.com/questions/35893913", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5530486/" ]
I am not really familiar with exp4j... Given that the `Expression` class doesn't seem to provide much access to the parsed structure, a symbolic approach seems not really feasible with exp4j. One thing you could try with exp4j instead: * Split the equation at `=` into `left` and `right` * Build a new equation that is...
First, define the domain of your equations. Are you talking about linear equations, polynomials, general non-linear equations, differential equations? Then define your dimension: Do you have one variable or many? Finally, select the appropriate solver (numerical, symbolical, Gauss, Newton etc.). Once you have defined...
22,518,298
Is it possible to select the value of the second column using something like an index or column position if i dont know the name of the column? ``` Select col(2) FROM ( Select 'a', 'b',' c', 'd' from dual ) ```
2014/03/19
[ "https://Stackoverflow.com/questions/22518298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273657/" ]
Is it possible? Sure. You could write a PL/SQL block that used `dbms_sql` to open a cursor using the actual query against `dual`, describe the results, bind a variable to whatever you find the second column to be, fetch from the cursor, and then loop. That would be a terribly involved and generally rather painful proce...
``` SELECT ORDINAL_POSITION, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'dual' ``` not sure if this is what you need.
22,518,298
Is it possible to select the value of the second column using something like an index or column position if i dont know the name of the column? ``` Select col(2) FROM ( Select 'a', 'b',' c', 'd' from dual ) ```
2014/03/19
[ "https://Stackoverflow.com/questions/22518298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273657/" ]
Is it possible? Sure. You could write a PL/SQL block that used `dbms_sql` to open a cursor using the actual query against `dual`, describe the results, bind a variable to whatever you find the second column to be, fetch from the cursor, and then loop. That would be a terribly involved and generally rather painful proce...
If you don't know the name, just give it a nice name ;). ``` Select b FROM ( Select 'a', 'b' as b, 'c', 'd' from dual ) ```
22,518,298
Is it possible to select the value of the second column using something like an index or column position if i dont know the name of the column? ``` Select col(2) FROM ( Select 'a', 'b',' c', 'd' from dual ) ```
2014/03/19
[ "https://Stackoverflow.com/questions/22518298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273657/" ]
Is it possible? Sure. You could write a PL/SQL block that used `dbms_sql` to open a cursor using the actual query against `dual`, describe the results, bind a variable to whatever you find the second column to be, fetch from the cursor, and then loop. That would be a terribly involved and generally rather painful proce...
It is possible in case when you know number of columns in the subquery: ``` SELECT COL2 FROM ( SELECT NULL COL1, NULL COL2, NULL COL3, NULL COL4 UNION ALL select 'a', 'b', 'c', 'd' from dual ) WHERE COL2 IS NOT NULL; ``` There are limitations: * query is hard to read and understand * you should know number...
22,518,298
Is it possible to select the value of the second column using something like an index or column position if i dont know the name of the column? ``` Select col(2) FROM ( Select 'a', 'b',' c', 'd' from dual ) ```
2014/03/19
[ "https://Stackoverflow.com/questions/22518298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273657/" ]
``` SELECT ORDINAL_POSITION, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'dual' ``` not sure if this is what you need.
It is possible in case when you know number of columns in the subquery: ``` SELECT COL2 FROM ( SELECT NULL COL1, NULL COL2, NULL COL3, NULL COL4 UNION ALL select 'a', 'b', 'c', 'd' from dual ) WHERE COL2 IS NOT NULL; ``` There are limitations: * query is hard to read and understand * you should know number...
22,518,298
Is it possible to select the value of the second column using something like an index or column position if i dont know the name of the column? ``` Select col(2) FROM ( Select 'a', 'b',' c', 'd' from dual ) ```
2014/03/19
[ "https://Stackoverflow.com/questions/22518298", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273657/" ]
If you don't know the name, just give it a nice name ;). ``` Select b FROM ( Select 'a', 'b' as b, 'c', 'd' from dual ) ```
It is possible in case when you know number of columns in the subquery: ``` SELECT COL2 FROM ( SELECT NULL COL1, NULL COL2, NULL COL3, NULL COL4 UNION ALL select 'a', 'b', 'c', 'd' from dual ) WHERE COL2 IS NOT NULL; ``` There are limitations: * query is hard to read and understand * you should know number...
43,995,590
I want to make plots and change their properties with slider. But the label text of `matplotlib.widgets.Slider` is very small for my eyes. I surfed the internet to find the answer how to change it, but I had no luck. The crucial part of code is: ``` E0_slider_ax = fig.add_axes([0.6, 0.2, 0.25, 0.03], axisbg=axis_col...
2017/05/16
[ "https://Stackoverflow.com/questions/43995590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4776662/" ]
You cannot supply a text to the `label` argument. But you can change the label size afterwards. The label is available as `Slider.label` and, being a `matplotlib.text.Text` instance, can be changed in size using `set_size`. ``` import matplotlib.pyplot as plt import matplotlib.widgets fig = plt.figure() E0_slider_ax...
Create the slider first, then update the label text size using `E0_slider.label.set_size()`. You don't need to create a `matplotlib.text.Text` instance first, but just use the string as the label. ``` E0_slider_ax = fig.add_axes([0.6, 0.2, 0.25, 0.03], axisbg=axis_color) E0_slider = mw.Slider(E0_slider_ax, r'$\epsil...
16,349,209
If have many `on insert` triggers for a table. Can i specify which trigger will be executed first when i insert values into my table using sqlite? i thought of combining my triggers but the problem is that i have different `when` statements for each trigger and if i understand the [doc](http://www.sqlite.org/lang_crea...
2013/05/02
[ "https://Stackoverflow.com/questions/16349209", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1296582/" ]
Combine all of the triggers into one: ``` CREATE TRIGGER some_trigger AFTER INSERT ON some_table FOR EACH ROW BEGIN -- statement 1; -- statement 2; -- statement 3; ... -- statement n; END; ```
If the trigger is to do an update, as in the OP's example, then this won't help. But if each trigger is just checking something and possibly raising an error, which I think is a pretty common case, then it is possible to pack them all into a single trigger procedure (with implicit order of execution) **and** to use dif...
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
For anyone else that has this issue that might be in the same way that I had it. I had the exact same problem, but not quite with the same stack traces as defined above. My problem was that I didn't have MongoDB installed/running, and that caused it to hang, throwing many errors in the logs. Doing a simple install an...
It worked for me after I have given write permissions to IIS\_IUSRS for website folder on Inetpub. Its bit strange as I already got full permissions to APPPooluser on website folder.
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
For anyone else that has this issue that might be in the same way that I had it. I had the exact same problem, but not quite with the same stack traces as defined above. My problem was that I didn't have MongoDB installed/running, and that caused it to hang, throwing many errors in the logs. Doing a simple install an...
Navigate to `inetpub\wwwroot\newsxa[Your file]\Website\App_Config\Include` where you will find `Sitecore.Xdb.config in line 8` ``` <setting name="Xdb.Enabled" value="true" /> ``` Just make it false It will install after that.
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
After a lot of research in Sitecore.Kernel.dll I found the solution. After the "INFO Committing files." log entry there was another entry: "Job started: WatchStatus". This Job never ended. The `ItemInstaller` is responsible for the "Installing item:" logs and the `BlobInstaller` is responsible for the "Installing of b...
After the default installation of 8.0 Update 4 you need to run mongo manually. The easiest way is to install mongo by default and run it from command prompt as: mongod.exe --dbpath c:\example\_of\_my\_mongo\_database\_dir The best way is to install it as a windows service - <http://mikerobbins.co.uk/2015/02/02/inst...
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
It worked for me after I have given write permissions to IIS\_IUSRS for website folder on Inetpub. Its bit strange as I already got full permissions to APPPooluser on website folder.
Navigate to `inetpub\wwwroot\newsxa[Your file]\Website\App_Config\Include` where you will find `Sitecore.Xdb.config in line 8` ``` <setting name="Xdb.Enabled" value="true" /> ``` Just make it false It will install after that.
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
For anyone else that has this issue that might be in the same way that I had it. I had the exact same problem, but not quite with the same stack traces as defined above. My problem was that I didn't have MongoDB installed/running, and that caused it to hang, throwing many errors in the logs. Doing a simple install an...
If the Sitecore package zip never finishes installation: There was a log entry entry: “Job started: WatchStatus”. This Job never ended. The package is being stored in a temporary folder on my local machine, and instead of running under the NETWORK SERVICE account that the website uses, it runs with IIS\_IUSRS role whi...
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
After the default installation of 8.0 Update 4 you need to run mongo manually. The easiest way is to install mongo by default and run it from command prompt as: mongod.exe --dbpath c:\example\_of\_my\_mongo\_database\_dir The best way is to install it as a windows service - <http://mikerobbins.co.uk/2015/02/02/inst...
If the Sitecore package zip never finishes installation: There was a log entry entry: “Job started: WatchStatus”. This Job never ended. The package is being stored in a temporary folder on my local machine, and instead of running under the NETWORK SERVICE account that the website uses, it runs with IIS\_IUSRS role whi...
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
After the default installation of 8.0 Update 4 you need to run mongo manually. The easiest way is to install mongo by default and run it from command prompt as: mongod.exe --dbpath c:\example\_of\_my\_mongo\_database\_dir The best way is to install it as a windows service - <http://mikerobbins.co.uk/2015/02/02/inst...
Navigate to `inetpub\wwwroot\newsxa[Your file]\Website\App_Config\Include` where you will find `Sitecore.Xdb.config in line 8` ``` <setting name="Xdb.Enabled" value="true" /> ``` Just make it false It will install after that.
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
After the default installation of 8.0 Update 4 you need to run mongo manually. The easiest way is to install mongo by default and run it from command prompt as: mongod.exe --dbpath c:\example\_of\_my\_mongo\_database\_dir The best way is to install it as a windows service - <http://mikerobbins.co.uk/2015/02/02/inst...
For anyone else that has this issue that might be in the same way that I had it. I had the exact same problem, but not quite with the same stack traces as defined above. My problem was that I didn't have MongoDB installed/running, and that caused it to hang, throwing many errors in the logs. Doing a simple install an...
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
After a lot of research in Sitecore.Kernel.dll I found the solution. After the "INFO Committing files." log entry there was another entry: "Job started: WatchStatus". This Job never ended. The `ItemInstaller` is responsible for the "Installing item:" logs and the `BlobInstaller` is responsible for the "Installing of b...
It worked for me after I have given write permissions to IIS\_IUSRS for website folder on Inetpub. Its bit strange as I already got full permissions to APPPooluser on website folder.
17,041,255
The title says it all. Just to add that the number can be multiple digits. I'm using the following function: ``` str_replace( "/^\&DaysAgo=d+$/", "", $save_query); ```
2013/06/11
[ "https://Stackoverflow.com/questions/17041255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1165620/" ]
After a lot of research in Sitecore.Kernel.dll I found the solution. After the "INFO Committing files." log entry there was another entry: "Job started: WatchStatus". This Job never ended. The `ItemInstaller` is responsible for the "Installing item:" logs and the `BlobInstaller` is responsible for the "Installing of b...
For anyone else that has this issue that might be in the same way that I had it. I had the exact same problem, but not quite with the same stack traces as defined above. My problem was that I didn't have MongoDB installed/running, and that caused it to hang, throwing many errors in the logs. Doing a simple install an...
56,176,354
I have jQuery call to get the data and a dropdown list on the UI, which is not populating the data. I have tried many ways, commented is the code I used. Let me know if I did something wrong in the code. ```html var questionData; var optionData; $(document).ready(function () { $.ajax({ url: 'coach...
2019/05/16
[ "https://Stackoverflow.com/questions/56176354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8495668/" ]
We can use a `Subquery` here: ``` from django.db.models import **OuterRef, Subquery** **latest\_login** = Subquery(Login.objects.filter( user=OuterRef('pk') ).order_by('-datetime').values('success')[:1]) User.objects.annotate( **latest\_login=latest\_login** ).filter(**latest\_login=False**) ``` This will g...
for check bool use `success=False` and for get latest use `latest()` your filter has been look this: ``` User.objects.filter(success=False).latest() ```
56,176,354
I have jQuery call to get the data and a dropdown list on the UI, which is not populating the data. I have tried many ways, commented is the code I used. Let me know if I did something wrong in the code. ```html var questionData; var optionData; $(document).ready(function () { $.ajax({ url: 'coach...
2019/05/16
[ "https://Stackoverflow.com/questions/56176354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8495668/" ]
We can use a `Subquery` here: ``` from django.db.models import **OuterRef, Subquery** **latest\_login** = Subquery(Login.objects.filter( user=OuterRef('pk') ).order_by('-datetime').values('success')[:1]) User.objects.annotate( **latest\_login=latest\_login** ).filter(**latest\_login=False**) ``` This will g...
You can first annotate the max dates, and then filter based on success and the max date using [F expressions](https://docs.djangoproject.com/en/2.2/ref/models/expressions/#django.db.models.F): ``` User.objects.annotate(max_date=Max('logins__datetime'))\ .filter(logins__datetime=F('max_date'), logins__success=False...
56,176,354
I have jQuery call to get the data and a dropdown list on the UI, which is not populating the data. I have tried many ways, commented is the code I used. Let me know if I did something wrong in the code. ```html var questionData; var optionData; $(document).ready(function () { $.ajax({ url: 'coach...
2019/05/16
[ "https://Stackoverflow.com/questions/56176354", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8495668/" ]
You can first annotate the max dates, and then filter based on success and the max date using [F expressions](https://docs.djangoproject.com/en/2.2/ref/models/expressions/#django.db.models.F): ``` User.objects.annotate(max_date=Max('logins__datetime'))\ .filter(logins__datetime=F('max_date'), logins__success=False...
for check bool use `success=False` and for get latest use `latest()` your filter has been look this: ``` User.objects.filter(success=False).latest() ```
29,045
I recently received my bachelors degree in economics. For fun I wanted to try to apply some micro-economic theory of finding the optimal price in a cournot competition. I wanted to do this for a business my friend has. He's a goldsmith and has his own established goldsmith store in a city with a population of approxi...
2019/04/30
[ "https://economics.stackexchange.com/questions/29045", "https://economics.stackexchange.com", "https://economics.stackexchange.com/users/18521/" ]
Suppose you are willing to believe that the demand curve has a constant elasticity $\epsilon$. Then the optimal price $P^\*$ is given by $$ P^\* = \frac{|\epsilon| \hspace{0.1em}c}{|\epsilon|-1}$$ where $c$ is the marginal cost of producing gold rings (assumed constant). So if your friend can estimate the elasticity ...
Willingness to pay, or WTP, is the most a consumer will spend on one unit of a good or service. So if you want to find it, take the most expensive gold ring that has been bought at least **once** out of the 3 goldsmiths. Hope this helps.
41,448,804
I have two versions of python- 2.7.6 & 2.7.9 and numpy is installed for python 2.7.6 . I can't understand how to install numpy for python 2.7.9. When I use `pip2 install --upgrade numpy`, it installs and updates for python 2.7.6. How do I install numpy particularly for python 2.7.9? \*\*\*\*\*edit\*\*\*\*\* I am tr...
2017/01/03
[ "https://Stackoverflow.com/questions/41448804", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3610481/" ]
Like this: ``` /path/to/python279 -m pip install --user numpy ``` If you are seeing the error `No module named pip`, then first install pip as described below: 1. Download this file: [`get_pip.py`](https://bootstrap.pypa.io/get-pip.py) 2. Execute `sudo /path/to/python279 get_pip.py` 3. Try again the `/path/to/pytho...
I believe this has to do with your path variables. Currently, I believe your path variable points to your installation of Python 2.7.6. Check your path variable for python, and hopefully changing it to the correct installation fixes your issue.