language
stringclasses 1
value | query
stringlengths 16
203k
| source
stringclasses 20
values | metadata
stringlengths 14
99
| source_name
stringclasses 20
values | stratify_key
class label 74
classes |
---|---|---|---|---|---|
en | ok now can you give 3 very speculative ideas on how to achieve unidirectional movement that results in more energy than input using magnets and/or ZPF extraction, as simple setups? | lmsys/lmsys-chat-1m | {
"conversation_id": "43ff094f4f784bb687d2789be009ce99"
} | lmsys_chat | 68lmsys_chat_3
|
en | What volleyball exercises should I do I'm almost in high school and i do volleyball excellence five times a week (basically an advanced class in school with experienced volleyball coaches) , we have 2-3 skill training sessions a week which i feel like isn't enough for me as I would like to improve my skills almost every day.
​
What i wanted to know was what setting, digging, serving and spiking exercises could i do that would help me improve all of my skills (I have a large area to practice all these things so space isn't an issue). | nreimers/reddit_question_best_answers | {
"index": 30932128
} | reddit_qa | 97reddit_qa_4
|
en | ![enter image description here](https://i.stack.imgur.com/4ckzp.png)
Hi i am trying to make java desktop application where i am using `JLabel` I wrote some test on `JLabel` I want to set text from the top and I am using multiple line in `JLabel` I want to set different different color for every line.
Here is my code:
```
JLabel label = new JLabel("<html>Case Item CaseNum<br>Party1<br>Party2</html>");
```
How can I achieve this? | ArmelR/stack-exchange-instruction | {
"qid": 22709058
} | stackexchange | 108stackexchange_4
|
en | A few days ago I installed Ubuntu Karmic (alternate i386) on my PC. Everything is working fine, except that after I insert my password at GDM it takes *ages* to get to the desktop (about 16 seconds).
Since I'm using LXDE I'd think login should be quite quick.. Any hint on what I could check?
(the system itself isn't very old.. Pentium Dual-Core E5200 @ 2.50GHz, 2Gb RAM, 2 x 320Gb SATA HDs...)
**Edit:**
Some more info:
* If I logout and then relogin, it still takes 16 seconds to get to the desktop
* top during login says that CPU keeps under 10% usage, and swap isn't touched at all (0Kb used) | ArmelR/stack-exchange-instruction | {
"qid": 78503
} | stackexchange | 108stackexchange_4
|
en | Let $\mu$ be a probability measure on a **metric** space $M$ (with the Borel $\sigma$-algebra). If $\mu(A)\in \{0,1\}$ for all measurable set $A\subset M$, then:
>
> Is it true that $\mu$ is a Dirac measure?
>
>
>
I think the answer should be negative, but I do not know of a counterexample. There is an answer [here](https://math.stackexchange.com/questions/291501/two-valued-measure-is-a-dirac-measure) for the general case where we don't know anything about the topology (metrizable in our case). There you can see also that the result holds for all Polish spaces. | ArmelR/stack-exchange-instruction | {
"qid": 1682983
} | stackexchange | 108stackexchange_4
|
en | Is there a cheaper substitute for the knipex pliers? I have wanted a pair of the knipex crimpers/pliers/cutters for a while, but I can't afford $70 for a pair. Is there a pair that is as good, but cheaper? | nreimers/reddit_question_best_answers | {
"index": 20802307
} | reddit_qa | 96reddit_qa_3
|
en | Simple question, though I cannot find the answer anywhere --
**How does one specify multiple addresses for the primary administrator account in Drupal 7?**
Put another way -- how does one make Drupal administrator emails go to multiple people, without setting up a bunch of forwarding filters on the mailserver?
Thanks! | ArmelR/stack-exchange-instruction | {
"qid": 40105
} | stackexchange | 107stackexchange_3
|
en | Had a shot for lower, right side back pain on Wednesday. Still have pain. Also pain has spread to middle, lower Back to about 3 inches above waist. At the same time I have had a constant stomach pain for the last 2 1/2 days. It started the same time the back pain spread to the middle.Mike nicosia | lavita/medical-qa-datasets(chatdoctor_healthcaremagic) | {
"index": 36209
} | healthcaremagic | 50healthcaremagic_3
|
en | Compounding tablets to liquid Ok, theoretical question.
I have a 50mg tablet compounded with the usual, modified starch, lactose etc. I dissolve it in 50ml water for easy dose titration from a small starting dose.
Assuming that the compound is otherwise stable in this condition, how do I preserve it from microbial spoilage? Let's say each batch would need to last 10-11 days.
Thanks | nreimers/reddit_question_best_answers | {
"index": 12739685
} | reddit_qa | 97reddit_qa_4
|
en | I (32F) am pegging my BF (38M) soon and any advice would be appreciated! My BF and I are exploring being switches. We've been slowly building up to me buying a strap on and pegging him. I am weirdly excited and he seems beside himself with joy...but I'm also nervous. Up until this relationship I have always been a sub. I'm enjoying dominating him, but this is a big jump for me. Pegging is also a whole new world.
Advice and stories would be awesome to help me get ready. Thanks! | nreimers/reddit_question_best_answers | {
"index": 44212165
} | reddit_qa | 97reddit_qa_4
|
en | Right now when I log out via:
```
<a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Log out</a>
```
it redirects me to the page where I need to confirm the log out.
How to eliminate the confirmation and redirect to the homepage after logout? | ArmelR/stack-exchange-instruction | {
"qid": 67336
} | stackexchange | 107stackexchange_3
|
en | That "The Wolf of Wallstreet" (2013) and "Lord of War" (2005) are almost congruent movies on many levels The plot lines, the narration, the girl, the staunch unwavering cop who brings it all down, the wacky hijinks that pursue money and moving up from simpler means rapidly. Of course, the camera work is fancier on The Wolf of Wallstreet but even beyond what I've stated there were just many times when I was watching Lord of War that I had this feeling of a very strong comparison between the two. (recently watched it. though, admittedly it was not as *remarkable* as WoWS and I may not have perceived a similarity if I had seen it originally in 2005) Discuss | nreimers/reddit_question_best_answers | {
"index": 8654114
} | reddit_qa | 97reddit_qa_4
|
en | are yugi and kaiba the same age? | sentence-transformers/gooaq | {
"index": 2513510
} | gooaq | 46gooaq_1
|
en | Closely rewrite this text to make it have the A2 English level.
My father, Andréj Petróvitch Grineff, after serving in his youth under Count Münich,1 had retired in 17—with the rank of senior major. Since that time he had always lived on his estate in the district of Simbirsk, where he married Avdotia, the eldest daughter of a poor gentleman in the neighbourhood. Of the nine children born of this union I alone survived; all my brothers and sisters died young. I had been enrolled as sergeant in the Séménofsky regiment by favour of the major of the Guard, Prince Banojik, our near relation. I was supposed to be away on leave till my education was finished. At that time we were brought up in another manner than is usual now.
From five years old I was given over to the care of the huntsman, Savéliitch,2 who from his steadiness and sobriety was considered worthy of becoming my attendant. Thanks to his care, at twelve years old I could read and write, and was considered a good judge of the points of a greyhound. At this time, to complete my education, my father hired a Frenchman, M. Beaupré, who was imported from Moscow at the same time as the annual provision of wine and Provence oil. His arrival displeased Savéliitch very much.
"It seems to me, thank heaven," murmured he, "the child was washed, combed, and fed. What was the good of spending money and hiring a 'moussié,' as if there were not enough servants in the house?" | allenai/WildChat-1M | {
"conversation_hash": "036a5d22f3a67f044d8a15dc8b9d77dd"
} | wildchat | 119wildchat_5
|
en | If I Kanai's Cube reforge a DEX ring on my Wizard, will it become an INT ring or will is still have DEX? Was doing rifts with a friend and he got a Unity that he gave to me. Since he was playing a DH it had Dexterity so it brought up this question in my head. | nreimers/reddit_question_best_answers | {
"index": 10431276
} | reddit_qa | 96reddit_qa_3
|
en | Recommended Tyres for a trip from Hanoi to Saigon (Ho Chi Minh City) Hi ladies and gentlemen,
I'm planning on cycling through Vietnam soon and was wondering what kind of tyres would do the trick. I'll mainly be cycling on roads, but I know the roads can get a bit dodgy, so my go to guess would be the Schwalbe G-One Speed 30mm TL. The biggest I can fit on my Canyon Ultimate are 33mm tyres. Any other suggestions?
I don't mind a bit of of grip as it's a long tour and I won't be hitting any KOMs there :)
&#x200B;
Thanks for the help | nreimers/reddit_question_best_answers | {
"index": 39741785
} | reddit_qa | 97reddit_qa_4
|
en | Woman & pole dancing in Japan Are Japanese pole dancing groups considered to be as degrading as it is in America? Or is this considered a fun, regular hobby of sorts. | nreimers/reddit_question_best_answers | {
"index": 12359327
} | reddit_qa | 96reddit_qa_3
|
en | how many congressional districts does texas have? | sentence-transformers/gooaq | {
"index": 556807
} | gooaq | 47gooaq_2
|
en | Need help to select a good Lawyer for an Online refund case Hi all, I am facing an issue with a refund for a product that I bought from an online furniture retailer using a digital wallet. Both parties point fingers at each other, which means that my refund is pending for over a year now. Having exhausted all my options, I have decided to send a legal notice. I met with a couple of lawyers in my neighbourhood, who really are behind the curve on stuff like online purchases and digital wallets. I want to find a good lawyer who can take up my case without costing me an arm and a leg. Any leads for a savvy lawyer appreciated | nreimers/reddit_question_best_answers | {
"index": 37477350
} | reddit_qa | 97reddit_qa_4
|
en | Here's my JSFiddle: [**http://jsfiddle.net/7FFRV/1/**](http://jsfiddle.net/7FFRV/1/)
I'm trying to get the blue border to go behind the red circle's box shadow, but in front of the container. How would I do this?
HTML:
```
<div class="container">
<div class="image"></div>
</div>
```
CSS:
```
.container {
width: 250px;
height: 250px;
padding: 30px;
background: #fbfbfb;
border: 1px solid black;
}
.image {
width: 150px;
height: 150px;
background: red;
border-radius: 500px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
}
.image:after {
content: "";
position: absolute;
left: -0;
width: 150px;
height: 150px;
border-radius: 500px;
border: 10px solid #0077ca;
}
``` | ArmelR/stack-exchange-instruction | {
"qid": 20982466
} | stackexchange | 108stackexchange_4
|
en | I would like to backup the ROM on my phone before I attempt to install Cyanogenmod on it. It is a Samsung Galaxy SIII on Sprint in the United States. My phone is not currently rooted and I'm running a standard ROM.
Can someone point me to free and/or open source software that will allow me to backup the ROM completely and be able to restore it later? | ArmelR/stack-exchange-instruction | {
"qid": 1
} | stackexchange | 107stackexchange_3
|
en | I'm not sure if my question title describes my situation aptly, so my apologies if it doesn't! Anyway, let's say I have the following code snippet (visibility is as stated):
```
public class ChildClass extends ParentClass {
// more code
private void myMethod() {
MyClass mine = new MyClass() {
public void anotherMethod() {
// insert code to access a method in ParentClass
}
};
}
}
```
Is it possible for code within anotherMethod() to access a protected method found in ParentClass? If so, how can this be done?
I've tried something like...
```
(ParentClass.this).parentMethod();
```
...but obviously it doesn't work due to scope issues. | ArmelR/stack-exchange-instruction | {
"qid": 5714727
} | stackexchange | 108stackexchange_4
|
en | My shade is too weak I'm trying to reach Monarch Wings early without Crystal Heart, but the skip requires tagging my shade with Vengeful Spirit to attract it into position and it doesn't survive the hit. I currently have 6 masks, will collecting more Mask Shards or getting Unbreakable Heart toughen the shade up? | nreimers/reddit_question_best_answers | {
"index": 27391121
} | reddit_qa | 96reddit_qa_3
|
en | Guys i have created a imageButton in my layout file and set a circular png image as its background.but when i am running my application, its displaying me a square button with my given image placed in the middle of it.
```
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:src="@drawable/sliderr" />
``` | ArmelR/stack-exchange-instruction | {
"qid": 28067317
} | stackexchange | 108stackexchange_4
|
en | I'm developing a jQuery Backbone.js web app.
I have a table with table entries. The table has a white background.
If the user selects a table entry, a modal popup is shown. To show the user that the popup is now in modal mode, I used to have the jQuery UI diagonal stripes (ui-widget-overlay).
But I changed to an alternative. Those stripes were too "striking", "obtrusive" for me. I now change the opacity of the table to 0.5. I like this more.
The problem now is that I have popups in the popup window. And if I also change the opacity of the first popup to show the user that only the second popup is working now, the table shines through the first popup.
Is there any possibility, any alternative way to have a popup window (a div) "dim", "grey out" to half of its appearance without getting transparent? | ArmelR/stack-exchange-instruction | {
"qid": 13382969
} | stackexchange | 108stackexchange_4
|
en | Machete order? Why is it called that? So I just found out that there's a way of watching the Star Wars films called machete order, which goes 4, 5, 1, 2, 3, 6, 7. But what does this have to do with machetes? | nreimers/reddit_question_best_answers | {
"index": 17442606
} | reddit_qa | 96reddit_qa_3
|
en | 7 days ago i dropped my tootbrush for a second on the floor in my room at a spot where i step with my shoes 1000 times a day is it safe to use it after 7 days? I go with the shoes everywhere in the garden too but viruses and bacteeias dont survive more then 7 days right?So even if my teethbrush should be clean now? | nreimers/reddit_question_best_answers | {
"index": 41159857
} | reddit_qa | 96reddit_qa_3
|
en | is high blood pressure and diabetes? | sentence-transformers/gooaq | {
"index": 266625
} | gooaq | 46gooaq_1
|
en | how many days after your period is it normal to have brown discharge? | sentence-transformers/gooaq | {
"index": 852058
} | gooaq | 47gooaq_2
|
en | how to get rid of white spots on back of throat? | sentence-transformers/gooaq | {
"index": 2421169
} | gooaq | 47gooaq_2
|
en | Everyone's favorite Grimes song? I've been seeing alot of negativity in this sub recently so I just wanted to open the floor for those who wanna talk about their favorite work from Grimes without getting into fights with each other. Disagreements are bound to occur but the negativity has been 🤢🤢🤢
Personally I'd have to say We Appreciate Power as it's most played Grimes song. I love the solid scifi/roko basilisk concept, the Hana ft., and I love the nu-metalish sound to it all! (My second is either Oblivion or Kill. V Maim) | nreimers/reddit_question_best_answers | {
"index": 37503197
} | reddit_qa | 97reddit_qa_4
|
en | To make a class serializable we do the following:
```
class A implements Serializable {
transient Object a;
}
```
And not this:
```
serializable class A {
transient Object a;
}
```
Why, if we want to make a class serializable, do we implement a **special interface**. And if we want to exclude some fields we use the **keyword** `transient`?
Why aren't special keywords used in both cases? I mean were there any reasons to make the same thing in different ways? I know, there is no such keyword as `serializable` but why wasn't it introduced instead of the special interface [`Serializable`](http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html)? | ArmelR/stack-exchange-instruction | {
"qid": 1922897
} | stackexchange | 108stackexchange_4
|
en | So, let me get specific so I can get a more accurate answer.
My fiance's daughter had been in the custody of the State of Oregon for about 10 years. Yes, a ten year open case. She was taken from her mother.
My fiance (at the time) did not have a stable living situation or employment (but was NEVER a safety concern) so Oregon wouldn't give him custody. After about a year into the state having custody of his daughter he was in the position to have custody of his daughter. But, the state wouldn't grant custody.
The state required my fiance to take many classes (he did). But, there was always another hurdle for him to jump. When I met my fiance almost 6 years ago he had his own 2 bedroom appt., a job and was living a normal life, but, without his daughter.
We began to push back and write letters to the state, all attorneys involved, DHS, the juvenile judge ect. the case had gotten so bad and the judge, case workers and attorneys have gotten biased and had their own plans for his daughter.
They began to make a permanent plan for where his daughter will live and the life she will have for her remaining childhood. A court date was set to finally TAKE my fiancee parental rights (as he would not ever willingly give them up).
Three days before that court date, a meeting was frantically put together by DHS and they invited my fiance, his attorney, the mother of his daughter, her attorney, his daughter, her attorney and casa, the case workers involved in the case and a supervisor whom my fiance has never met. The purpose of that meeting was to see if my fiance was going to willingly give up his rights (it was a quick meeting). The DHS supervisor also stated that he had NEVER seen a case that big and open for so many years.
Three days later, we went into court and that DHS supervisor asked to speak to the judge, attorneys and casa. They all went into the judges chambers and when they all returned that DHS supervisor said that DHS is pulling out of the case and told the judge that she should grant custody to my fiance. The judge tried to talk DHS out of that decision but DHS told her they won't continue to keep custody of my fiances daughter. The judge continued to struggle with that decision and got DHS to agree to staying involved in our lives for 3 months if she were to grant my fiance custody.
A week later, we had full custody of my fiances daughter.
During all the time the state had custody of his daughter he racked up some owed child support to the state as well as paid the state thousands of dollars. They took his tax returns every dang year, until last year!
We know that DHS pulled out of the case and the judge was basically forced to give my fiance his daughter because as soon as that supervisor from DHS looked over the case he realized they should have given custody to my fiance YEARS AGO!
While we will never be able to get back the time and raising his daughter who is now 16, we want the child support that the state took while they kept custody of his child when they shouldn't have.
How do we go about finding someone to help us? What sort of lawyer should we contact? Any immediate steps we should take to make this process quick and easy? And, is there any cheap way to go about this?
I'm a stay at home mom and my fiance supports our family of 6. We are considered low income right now and DHS has a huge part in our crappy financial situation.
Any and all suggestions will help and be very appreciated. Thank you. | ArmelR/stack-exchange-instruction | {
"qid": 27270
} | stackexchange | 110stackexchange_6
|
en | I'm trying to create a small program in c++ where the user puts in multiple lines and the program outputs all the lines of **after** a EOT command is given (ctrl-d)
But i'm getting some error's when executing the program. I think i did a lot wrong.
(This is an hypothetical exersise, i don't want to use any vectors, lists etc., and only want include iostream.
```
#include <iostream>
using namespace std;
int main()
{
//Temp input string
string input_string;
//Array with input lines
string lines[1];
//Counter for input lines
size_t line_counter = 0;
//Input terminated checker
bool breaker = false;
//Eternal loop
for(;;){
//Get line, store in input_string and set breaker if input is terminated
if(getline(cin, input_string).eof()) breaker = true;
//Create a new temp array to hold our data
string temp_lines[line_counter+1];
for(size_t counter = 0; counter != line_counter; ++counter){
//And use a for loop to get data from our last array with data
temp_lines[counter] = lines[counter];
}
//Create a second array and repeat process
//because c++ doesn't allow us to create dynamic array's
string lines[line_counter+1];
for(size_t counter = 0; counter != line_counter; ++counter){
lines[counter] = temp_lines[counter];
}
//store input in the new array
lines[line_counter] = input_string;
//increase the input counter
++line_counter;
//if breaker is set terminate loop but output lines first
if(breaker){
//for each input
for(size_t anothercounter = 0; anothercounter != line_counter; ++anothercounter){
//output the inputed line
cout << anothercounter << ": " << lines[anothercounter] << "\n";
}
//break out of eternal for loop
break;
}
}
}
``` | ArmelR/stack-exchange-instruction | {
"qid": 7574578
} | stackexchange | 109stackexchange_5
|
en | Sustainable Furniture Options I need a new bedroom set of furniture. I am also on a really tight budget. I don't mind thrifting normally but since I need a lot of different pieces it won't be super practical. Any suggestions would be lovely! | nreimers/reddit_question_best_answers | {
"index": 44846581
} | reddit_qa | 96reddit_qa_3
|
en | My goal is to make a game achievement system, where you add players (which have a name, integer id, games they play), games (which have names, integer ids, list of achievements) and achievements (which have names, integer ids, and the game id that that achievement belongs to).
I am not asking for any code, I am asking how this program would ideally be structured. At a first glance, I would simply have a list of players, each player class contains games they play, each game class contains achievements. But the problem is the player itself must have the achievement, and each player's games they play must reference to the same game, not individual copies of the same game for each player.
What is the best way to structure a program such as this? | ArmelR/stack-exchange-instruction | {
"qid": 21321045
} | stackexchange | 108stackexchange_4
|
en | where are iphone backup files stored on my laptop? | sentence-transformers/gooaq | {
"index": 2044321
} | gooaq | 47gooaq_2
|
en | Programming my own printer drivers Hello. I've got an old Canon LBP6000 that doesn't have drivers for linux (or at least none that I could find) and I was thinking about going the Linux way and program them by my own. I have experience with C but I haven't done any project like this before. How hard would that be? How can I approach it?
Thanks in advance. | nreimers/reddit_question_best_answers | {
"index": 50272830
} | reddit_qa | 96reddit_qa_3
|
en | Kill fast metal slime daily? Hi friends, what's the best and fastest way to kill all the metal slimes in the daily intermediate? Sometimes I do 20k other 25k but 1 or 2 slimes almost always run away, advice? | nreimers/reddit_question_best_answers | {
"index": 50384919
} | reddit_qa | 96reddit_qa_3
|
en | My domain MX records points to my webserver Ip address, while GoDaddy tutorial suggest to use an MX record that points to my smtp server ip address.
I think that one server point to the other one.
Which server should be used as the mx record with the highest priority ? | ArmelR/stack-exchange-instruction | {
"qid": 785519
} | stackexchange | 107stackexchange_3
|
en | Any other books with short chapters? Except for My two first loves? I got VIP for a month and I want to take full advantage of it, but i already played My two first loves. Any suggestions? | nreimers/reddit_question_best_answers | {
"index": 52919177
} | reddit_qa | 96reddit_qa_3
|
en | What kind of load does the interplane strut(s) carry,is it compression, tension or shear?
In order words,what's their function and how do you calculate the force that the interplane strut carries?![enter image description here](https://i.stack.imgur.com/WOwJl.jpg) | ArmelR/stack-exchange-instruction | {
"qid": 66464
} | stackexchange | 107stackexchange_3
|
en | 32 million is how much rupees? | sentence-transformers/gooaq | {
"index": 2259309
} | gooaq | 46gooaq_1
|
en | ### Instruction:
Evaluate the SMS for these features:
1. Fake URLs: misspelled or slightly varied domain names, uncommon extensions, or long, confusing URLs
2. Impersonation of Legitimate Entities: pretending to be reputable organizations or companies to gain trust
3. Urgency and Fear Tactics: using urgency and fear to pressure recipients into taking immediate action
4. Unusual Requests: asking recipients to take unusual actions, such as providing personal information, clicking on suspicious links, or paying unexpected fees
Only respond with the following table and nothing else:
| Scam SMS Features | Eval | Explanation |
| - | - | - |
| Fake URLs | Yes/No | (explanation) |
| Impersonation of Legitimate Entities | Yes/No | (explanation) |
| Urgency and Fear Tactics | Yes/No | (explanation) |
| Unusual Requests | Yes/No | (explanation) |
### Input: NAME_1 u can try to sms to my hp? +659726531
### Response: | lmsys/lmsys-chat-1m | {
"conversation_id": "fe152b63fa5f4c15858d45785cfba768"
} | lmsys_chat | 69lmsys_chat_4
|
en | Question about boat registration after private sale in sask Just really realized after i bought the boat and got my bill of sale i never went and registered it under my name or anything like that... what's the process for this and where can i get this done? I've looked online a bit but I'm kind of confused.
Its been a couple years lol. Ill be looking to sell and upgrade for next season and don't want the new owner to have any troubles | nreimers/reddit_question_best_answers | {
"index": 42805365
} | reddit_qa | 97reddit_qa_4
|
en | Crouch peeking patched? Is there anywhere in the patch notes saying it got fixed? Didn’t an Epic employee hint at something involving crouch peeking? | nreimers/reddit_question_best_answers | {
"index": 26515642
} | reddit_qa | 96reddit_qa_3
|
en | is the president a public servant? | sentence-transformers/gooaq | {
"index": 871144
} | gooaq | 46gooaq_1
|
en | I am wondering the best format to lay out my data in a mySQL table so that it can be queried in the fastest manner to gather an array of daily values to be further utilized by php.
So far, I have laid out the table as such:
```
item_id price_date price_amount
1 2000-03-01 22.4
2 2000-03-01 19.23
3 2000-03-01 13.4
4 2000-03-01 14.95
1 2000-03-02 22.5
2 2000-03-02 19.42
3 2000-03-02 13.4
4 2000-03-02 13.95
```
with item\_id defined as an index.
Also, I am using:
```
"SELECT DISTINCT price_date FROM table_name"
```
to get an array containing a unique list of dates.
Furthermore, the part of the code that is within a loop (and the focus of my optimization question) is currently written as:
```
"SELECT price_amount FROM table_name WHERE item_id = 1 ORDER BY price_date"
```
This second "SELECT" statement is actually within a loop where I am selecting/storing-in-array the daily prices of each item\_id requested.
All is currently functioning and pulling the data from mySQL properly, however, both the above listed "SELECT" statements are taking approx 4-5 seconds to complete per each run, and when looping through 100+ products to create a summary, adds up to a very inefficient/slow information system.
Is there any more-efficient way that I could structure the mySQL table and/or SELECT statements to retrieve the results faster? Perhaps defining a different index on a different column? I have used the EXPLAIN command to return information per the queries but am unsure how to use the EXPLAIN information to increase the efficiency of my queries.
Thanks in advance for any mySQL wizards that may be able to assist. | ArmelR/stack-exchange-instruction | {
"qid": 15157114
} | stackexchange | 109stackexchange_5
|
en | Write an article about the Synthetic Routes of 6-[(3-Methoxyphenyl)methyl]-3-pyridazinamine 2000 words in chemical industry | lmsys/lmsys-chat-1m | {
"conversation_id": "e44dd3a6d504433eb3c3ed795ac105e1"
} | lmsys_chat | 67lmsys_chat_2
|
en | Room request question Hello Disney people! I'm a little less than 2 months out from my trip. We will be staying at PORFQ in a standard, two queen bed room. I've read that we can place room requests. Is it kosher to request a king bed? I know requests are not guarantees, and certainly have no expectation of receiving it, but would an upgrade to a king bed even have the possibility of being honored? | nreimers/reddit_question_best_answers | {
"index": 20477996
} | reddit_qa | 97reddit_qa_4
|
en | EIDL and SBA Unfrigginbelievable!!! I applied april 2 and still fighting with SBA for the eidl advance. Eidl applications reopened Monday and my friend got approved and her portal TODAY-3 FRIGGIN DAYS!!! While I have been lied to and ignored for 13 weeks after 200+ emails and phone calls and I still havnt seen a dime. What a joke! | nreimers/reddit_question_best_answers | {
"index": 42709424
} | reddit_qa | 96reddit_qa_3
|
en | Let $ABC$ be triangle inscribe in circle with radius $5$ and center $O$, such that $AB = 4$ and $AC =6$ and the question is to find $BC = ?$
* **Student A method**
1. angles $\angle CAO = \angle A\_2$ , $\angle
BAO = \angle A\_1$
2. by the cosines law $$5^2 = 4^2+5^2-2×4×5 \cos (\angle A\_1)$$
resulting that $$ \cos(\angle A\_2) = 0.4 \Longrightarrow \angle A\_1
= 66.42° $$ .
3. by the cosines law $$5^2 = 6^2+5^2-2×6×5 \cos (\angle A\_2)$$ resulting that $$
\cos(\angle A\_2) = 0.6 \Longrightarrow \angle A\_2 = 53.13° $$ .
4. $$\angle BAC = \angle A\_1 + \angle A\_2 = 66.42+53.13 = 119.55$$
by the cosines law $$BC^2 = 4^2+6^2-2×4×6 \cos {119.55}$$ resulting that $BC^2 = 75.67$ and so $BC = 8.7$
.
* **Student B method :**
1. by the sine law $\frac{4}{\sin \alpha} = 2r = 2×5 = 10$ so $ \sin
\alpha = 0.4$ so $\alpha = 23.578$ or $\alpha = 156.42$ which is
invalid because the opposite angle of smaller side is smaller and
since $4<6$ then $\alpha = 23.578$
2. by the sine law $ \frac{6}{\sin \beta} = 10$ which gives that
$\beta\_1 = 36.87 , \beta\_2 = 143.13$
3. triangles angles sums to $180$ so $\gamma\_1 = 119.55 , \gamma\_2
\Longrightarrow 13.29$
4. by the sine law $\frac{BC}{\sin\gamma} =10 $ so $BC = 10 \sin
\gamma\_1 = 2.29$ or $BC = 10 \sin \gamma\_2 = 8.7$
Which one of the methods are the correct one ?? | ArmelR/stack-exchange-instruction | {
"qid": 2846724
} | stackexchange | 109stackexchange_5
|
en | about performamce in intel room/library Machiavelli, Flora, and i can remember the other one optimal for the job.
The question is, 5* and level 50, does equipment make any difference for this character than are going to be in that room forever? | nreimers/reddit_question_best_answers | {
"index": 36802814
} | reddit_qa | 96reddit_qa_3
|
en | How does Laurence’s skull ended up in Grand Cathedral? & what’s the role of vicar Amelia? I just introduce this game to my 9 years old nephew & he loves it tho he’s quite bad at it bcus he’s careless. Then he asked me abt Laurence & Amelia & I kinda forgot. LOL! | nreimers/reddit_question_best_answers | {
"index": 45113461
} | reddit_qa | 96reddit_qa_3
|
en | This game is getting really hard to enjoy due to crazy up tiering, is it just me? I find it harder and harder to enjoy this game ever since a bunch of cold war tanks were being added. I came back to it recently and find it that playing late WWII German tanks i keep getting matched with Leos and other tanks that are sometimes 20 years newer than my Tiger IIs. Litteraly makes the game unplayable sometimes when I cannot do what my tanks were designed to do since most of cold war era tanks are eons ahead of WWII and melt thru my armor like butter even from 2k away. | nreimers/reddit_question_best_answers | {
"index": 38296012
} | reddit_qa | 97reddit_qa_4
|
en | A software application and a custom installer has been created using VB.NET.
When I run the Setup.exe (the custom installer) on the user's workstation, it gives the following error:
```
Application failed to initialize properly CxC0000135
```
I realize that this is because .NET Framework is required to be installed on the the workstation.
Currently, the solution is to: install the .NET framework, and then run the custom installer. This is obviously not a user friendly way to install the application.
What solution can be used to reduce the effort of the user to install the application? | ArmelR/stack-exchange-instruction | {
"qid": 20772183
} | stackexchange | 108stackexchange_4
|
en | This is a kind of specific question and I couldn't get any information on this topic in the javadoc of [Gson](https://www.javadoc.io/doc/com.google.code.gson/gson/2.8.4).
---
Currently, I'm trying to parse an Json(1)`{ "foo":"bar", "bar":"foo" }` to an Object `Entity`. Normally I would map these values to the `Entity` Object with the fields `foo` and `bar`, however I'd like to be more *independent* from the API.
---
For (1) I'd have
```
public class Entity {
String foo;
String bar;
}
```
But if we test another Endpoint the resulting Json (2) would look like
`{ "notFoo":"bar", "notBar":"foo" }`
which makes my previous constructed `Entity` *useless*, and I'd need to create a new Class with the respective fields for that.
---
So my actual question is:
1. Is there a **generic** (more generic than my example) approach to
push the Json into a `GenericEntity` -> `g.fromJson(response.getBody(),GenericEntity.class);` that every *field* of the json will be successfully mapped, even when using different Endpoints?
2. Alternatively, are there other dependencies which support that out of the box? | ArmelR/stack-exchange-instruction | {
"qid": 50417205
} | stackexchange | 109stackexchange_5
|
en | Should I break the text into chunks?
Is RSA the wrong encryption scheme? | ArmelR/stack-exchange-instruction | {
"qid": 2033809
} | stackexchange | 106stackexchange_2
|
en | I have below string
```
String str="select * from m_menus;
select * from m_roles";
```
I want above string in one line
like
```
String str="select * from m_menus;select * from m_roles";
```
I have tried
```
str1=str.replace("[\r\n]+", " ");
```
and also
```
str1=str.replace("\n"," ");
```
Both are not working. | ArmelR/stack-exchange-instruction | {
"qid": 11221491
} | stackexchange | 107stackexchange_3
|
en | **users table:**
```
id int primary key, auto increment
r_id varchar unique
name varchar
```
**books table:**
```
id int primary key, auto increment
user_id foreign key to r_id in users table
name varchar
```
The relation in User Model:
```
return $this->hasMany('App\Book', 'user_id');
```
By default, `user_id` FOREIGN KEY is pointing to a PRIMARY KEY id. How can i make it pointing to a UNIQUE `r_id`?
**If Only**, `r_id` is primary key, we can pass it with third argument and overriding `$primaryKey` property:
```
return $this->hasMany('App\Book', 'user_id','r_id');
protected $primaryKey = "r_id";
``` | ArmelR/stack-exchange-instruction | {
"qid": 41630805
} | stackexchange | 108stackexchange_4
|
en | I try to get touch position when I scroll the screen.
I try to get it from touchBegin() but I can't.
That's because touchBegin never called during scroll.
How can I solve this problem???
Quickly Answer to me. | ArmelR/stack-exchange-instruction | {
"qid": 7373106
} | stackexchange | 107stackexchange_3
|
en | Freedom planet Girls and Naruto react to Lilac, Carol and Milla eyes and heart-shaped pupils were spinning like crazy Naruto (Love). Naruto: lilac? Milla? Carol? Are you okay? And why are you three looking at me like that? Lilac, Carol and Milla jump onto Naruto | allenai/WildChat-1M | {
"conversation_hash": "57723828a438a35a07d741ea5cc2cd9d"
} | wildchat | 117wildchat_3
|
en | I am dealing with extreme regret Do I have to take the cramping pills? I called the clinic and was told I have to finish the pills but I don't want to do this. I don't want to pass the pregnancy!!!! | nreimers/reddit_question_best_answers | {
"index": 31261108
} | reddit_qa | 96reddit_qa_3
|
en | Been clean 2 weeks. Thinkin' Bout coppin a half bun. I got a piss test for DSS monday. I know I'm good but what y'all think? Haven't slept more than a few hours last couple of weeks. People be trippin' really taking all the functionality out of this functional addict. | nreimers/reddit_question_best_answers | {
"index": 20546517
} | reddit_qa | 96reddit_qa_3
|
en | I have heard that two objects are created when you execute `String s = new String("lol");`. One object is created for the string constant pool and one for `s` on the heap.
So, are 2 objects created when we execute the following? `String s = "lol";` Is the object creation the same?
Edit:
how many objects are created by :
`String s1 = new String("lol1");`
and how many by :
`String s2 = "lol2";` | ArmelR/stack-exchange-instruction | {
"qid": 21638634
} | stackexchange | 108stackexchange_4
|
en | I have a bit trouble with Mechanize.
When a submit a form with Mechanize. I am come to a page with one meta refresh and there is no links.
My question is how do i follow the meta refresh?
I have tried to allow meta refresh but then i get a socket error.
Sample code
```
require 'mechanize'
agent = WWW::Mechanize.new
agent.get("http://euroads.dk")
form = agent.page.forms.first
form.username = "username"
form.password = "password"
form.submit
page = agent.get("http://www.euroads.dk/system/index.php?showpage=login")
agent.page.body
```
The response:
```
<html>
<head>
<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=index.php?showpage=m_frontpage\">
</head>
</html>
```
Then I try:
```
redirect_url = page.parser.at('META[HTTP-EQUIV=\"Refresh\"]')[
"0;URL=index.php?showpage=m_frontpage\"][/url=(.+)/, 1]
```
But I get:
```
NoMethodError: Undefined method '[]' for nil:NilClass
``` | ArmelR/stack-exchange-instruction | {
"qid": 5003367
} | stackexchange | 108stackexchange_4
|
en | Chinese evergreen cuttings not sending roots in water. I cut off several 6 inch stems (not including their leaves) and stuck them in water. It’s been at least 3 weeks and there are no roots forming. Was I supposed to let them callous over before adding to the water? Could my apartment be too cold? It’s been 60°-70°, closer to 60° most of the time. | nreimers/reddit_question_best_answers | {
"index": 50051267
} | reddit_qa | 96reddit_qa_3
|
en | Suggestions for a week long staycation? 38F. My boyfriend is on lock down due to the virus so it looks like I'll be spending a week of vacation at home alone. I wasn't prepared for this, we'd planned to spend a few days together at his house.
Now I'm trying to come up with a few things I can do at home alone all week. So far I've got this:
Take an hour long walk everyday
Clean the house from top to bottom
Reorganize my closet
Cook healthy meals at least 4 days
Make a meal plan for the following work week
Do school work
Jigsaw puzzles
Make cinnamon monkey bread
Yard work
Watch Showtime (just got a subscription)
Try to make a frame for a map I'd like to hang
What are some other fun, solo activities I can do while I'm decompressing at home? My birthday is Wednesday and I'll likely be home by myself that day as well. | nreimers/reddit_question_best_answers | {
"index": 45212579
} | reddit_qa | 97reddit_qa_4
|
en | I have used magento many times, but this is the ultimate challenge. Im working on a magento store which has over 400,000 products - each with its own variation / product options. Hundreds of products are added and removed daily on our master store (which is based on a custom shopping cart system and runs on MSSQL).
I have configured magento to grab all the categories, products, text, descriptio, prices, variations etc and create the product pages dynamically on the fly e.g <http://www.offices-furniture.co.uk/pp?prod=mercury-reception-unit.html>
The problem is I now need to be able to add these products to the shopping cart without them physically existing in the back end. I have added one product to the back end and plan to use this as a GENERAL template type product, so its always this product (variations of it) that get added to the cart e.g
<http://www.offices-furniture.co.uk/frodo.php> but I cannot for the life of me get the price to change.... grrrr..
If anyone could point me in the right direction on how to change the price via HTML or PHP on the front end and post it to the shopping cart without changing the price on the back end
Thanks in advance all…
Here is the code i’ve tried using to change the price;
```
<?php
require_once ("app/Mage.php");
umask(0);
Mage::app("default");
Mage::getSingleton("core/session", array("name" => "frontend"));
// get the current Magento cart
$cart = Mage::getSingleton('checkout/cart');
$product = Mage::getModel('catalog/product');
$product->setCustomPrice(99);
$product->setOriginalCustomPrice(99);
$product->getProduct()->setIsSuperMode(true);
$product->setTypeId('configurable');
$product->setTaxClassId(1); //none
$product->setSku(ereg_replace("\n","","videoTest2.2"));
$product->setName(ereg_replace("\n","","videoTest2.2"));
$product->setDescription("videoTest2.2");
$product->setPrice("129.95");
$product->setShortDescription(ereg_replace("\n","","videoTest2.2"));
$cart->save();
if(isset($_POST['submit'])){
// call the Magento catalog/product model
$product = Mage::getModel('catalog/product')
// set the current store ID
->setStoreId(Mage::app()->getStore()->getId())
// load the product object
->load($_POST['product']);
*/
////////////////////////////
// get the current Magento cart
$cart = Mage::getSingleton('checkout/cart');
$product = Mage::getModel('catalog/product')
// set the current store ID
->setStoreId(Mage::app()->getStore()->getId())
// load the product object
->load($_POST['product']);
$product->setCustomPrice(99);
$product->setOriginalCustomPrice(99);
$product->getProduct()->setIsSuperMode(true);
$product->setTypeId('configurable');
$product->setTaxClassId(1); //none
$product->setSku(ereg_replace("\n","","videoTest2.2"));
$product->setName(ereg_replace("\n","","videoTest2.2"));
$product->setDescription("videoTest2.2");
$product->setPrice("129.95");
$product->setShortDescription(ereg_replace("\n","","videoTest2.2"));
$cart->save();
/////////////////////////////////////
// start adding the product
// format: addProduct(<product id>, array(
// 'qty' => <quantity>,
// 'super_attribute' => array(<attribute id> => <option id>)
// )
// )
$cart->addProduct($product, array(
'qty' => $_POST['qty'],
'price' => 50,
'super_attribute' => array( key($_POST['super_attribute']) => $_POST['super_attribute'][525] )
)
);
// save the cart
$cart->save();
// very straightforward, set the cart as updated
Mage::getSingleton('checkout/session')->setCartWasUpdated(true);
// redirect to index.php
header("Location: frodo.php");
}else{
?>
``` | ArmelR/stack-exchange-instruction | {
"qid": 12844129
} | stackexchange | 110stackexchange_6
|
en | best answer for what are your goals for the future? | sentence-transformers/gooaq | {
"index": 865412
} | gooaq | 47gooaq_2
|
en | how long do i have to wait to get my nipple pierced? | sentence-transformers/gooaq | {
"index": 244890
} | gooaq | 47gooaq_2
|
en | I am having problems when handling pyvista, it does not recognize the "vtk" module, I have tried to install it through the cmd of but it does not allow me since it generates an error, what can I do?
```
import pyvista as pv
File "C:\Users\DUVAN PACHECO\AppData\Roaming\Python\Python38\site-packages\pyvista\__init__.py", line 5, in <module>
from pyvista.plotting import *
File "C:\Users\DUVAN PACHECO\AppData\Roaming\Python\Python38\site-packages\pyvista\plotting\__init__.py", line 5, in <module>
from .export_vtkjs import export_plotter_vtkjs, get_vtkjs_url
File "C:\Users\DUVAN PACHECO\AppData\Roaming\Python\Python38\site-packages\pyvista\plotting\export_vtkjs.py", line 55, in <module>
import vtk
ModuleNotFoundError: No module named 'vtk'
```
any ideas?, I am using python 3.8.6 | ArmelR/stack-exchange-instruction | {
"qid": 67831386
} | stackexchange | 108stackexchange_4
|
en | Item.java
I have an item with variables name and weight
```
package com.company;
public class Item {
String name;
Double weight;
}
```
Bag.java
the bag can receive up to 20 kg items.
```
package com.company;
public class Bag {
Item [] myBags;
int itemCount;
Double currentWeight;
Bag(){
itemCount = 0;
currentWeight = 0.0;
myBags = new Item[50];
}
boolean canAddItem(Item item) {
if (currentWeight + item.weight > 20) {
return false;
} else {
return true;
}
}
void AddItem(Item item){
myBags[itemCount] = item;
currentWeight = currentWeight + myBags[itemCount].weight;
itemCount++;
}
}
```
Main.java
```
package com.company;
public class Main {
public static void main(String[] args) {
// write your code here
Bag myBag = new Bag();
/*item 1*/
Item fishing_rod = new Item();
fishing_rod.name = "rod1";
fishing_rod.weight = 10.4;
if(myBag.canAddItem(fishing_rod)){
myBag.AddItem(fishing_rod);}
/*item 2*/
Item axe = new Item();
axe.name = "axe1";
axe.weight = 2.2;
if(myBag.canAddItem(axe)){
myBag.AddItem(axe);}
System.out.println(myBag.currentWeight);
//System.out.println(myBag.myBags); i want to show that's here
}
}
```
I added two objects to the bag . I want to show all the objects I have added in the bag.
**How can I show ?** How can I show this in java ?
Thanks for your help | ArmelR/stack-exchange-instruction | {
"qid": 51308606
} | stackexchange | 109stackexchange_5
|
en | I have a 64bit Vista laptop with no CD drive (and no intention of buying one).
What is the simplest way (if any) for me to dual boot Linux (I don't care what version as long as it's not too old...and will run Ruby 1.8.7 or greater)?
I'd prefer anything with an installer.
I've been programming on Windows for a little over 1.5 years and would like the option of using Linux. I'm not a moron, but the I'm legitimately scared of messing up my computer. I speak the language of Rails, not of OS tweaks.
Thanks!
**UPDATE:** I'm going the VM route using Virtual Box. Any recommendations for Linux isos? I'm currently trying to install Ubuntu 9.something. Is there anything in 10.x that I'm missing? All I want to do with Linux is write Ruby programs.
**UPDATE II:** I ended up downloading Wubi to install Ubuntu 10.x. It's looking really good! No problems with drivers (with my logitech wireless mouse and keyboard + external monitor).
I have a new slight problem :/
I installed Ruby according to <http://www.ruby-lang.org/en/downloads/>
It says to get IRB (Ruby's console) working, I need to "enable the universe repository". How do I do that?! | ArmelR/stack-exchange-instruction | {
"qid": 145813
} | stackexchange | 109stackexchange_5
|
en | A man must stand erect, not be kept erect by others. How do i do this when I always have to come back here for help? Every time I get anxious I come back here and read up. It helps but I feel that I am violating this. How do I stand erect? | nreimers/reddit_question_best_answers | {
"index": 34525565
} | reddit_qa | 96reddit_qa_3
|
en | how do i change my google assistant voice? | sentence-transformers/gooaq | {
"index": 2561249
} | gooaq | 46gooaq_1
|
en | what are the similarities among the three inherent power of the state? | sentence-transformers/gooaq | {
"index": 2776591
} | gooaq | 47gooaq_2
|
en | what is the difference between chili beans and red kidney beans? | sentence-transformers/gooaq | {
"index": 287944
} | gooaq | 47gooaq_2
|
en | I am struggling with a simple test using Jest and Selenium. I am testing if an element is removed from DOM after clicking on it.
I have tried this:
```
test('User removes button after clicking on it', async (done) => {
await driver.navigate().to('myProjectUrl');
await driver.wait(until.elementLocated(By.css('.wrapper')), 10000);
await driver.findElement(By.id('buttonId')).click();
const deleteButton = await driver.findElement(By.id('buttonId'));
expect(deleteButton.isDisplayed()).not.toEqual(true);
done();
});
```
This seems to work. Test passes but I am getting:
```
StaleElementReferenceError: stale element reference: element is not attached to the page document
```
I have also tried this approach:
```
test('User removes button after clicking on it', async (done) => {
await driver.navigate().to('myProjectUrl');
await driver.wait(until.elementLocated(By.css('.wrapper')), 10000);
await driver.findElement(By.id('buttonId')).click();
const buttonOrMessage = await driver.wait(until.elementLocated(By.id('buttonId)), 300, 'missing_button');
expect(buttonOrMessage).toEqual('missing_button');
done();
});
```
This approach is returning error, not message as expected.
Any suggestions about what am I missing?
Your help would be appreciated. | ArmelR/stack-exchange-instruction | {
"qid": 47575349
} | stackexchange | 109stackexchange_5
|
en | Just like millions of other users, I'm attempting to upgrade to windows 10. I have a Dell laptop running 8.1, which had windows reinstalled once. That was because I swapped the HDD out for a SSD and I used a usb stick provided by dell to do the reinstallation. On a second laptop (identical make, model and SSD swap) I did the exact same procedure in everything and it's working like a charm...this one however keeps failing with the error described in the title (well....at least I think it translates to that, as I run the Dutch version). So far I tried a lot of things I found on the internet and nothing works so far.
Any help is greatly appreciated, as I am going to need the Edge browser in the near future.
![Picture of the error](https://i.stack.imgur.com/sl1zU.jpg) | ArmelR/stack-exchange-instruction | {
"qid": 948532
} | stackexchange | 108stackexchange_4
|
en | who is the richest person in the nfl 2019? | sentence-transformers/gooaq | {
"index": 1476689
} | gooaq | 46gooaq_1
|
en | When a link is clicked, I need to transfer the first and last name from the href and then navigate to the next page. How do I do this?
**HTML**
```
<a href="candidate.cfm">
#result.firstname# #result.lastname#
</a>
```
**JQuery:**
```
$('a [name="submit1"]').click(function(event) {
alert(#result.firstname#)
});
``` | ArmelR/stack-exchange-instruction | {
"qid": 19922620
} | stackexchange | 107stackexchange_3
|
en | Any good Co-op games? Me and my gf are getting bored with the games we play, so I'm looking for some fun coop games any suggestions? | nreimers/reddit_question_best_answers | {
"index": 44349221
} | reddit_qa | 96reddit_qa_3
|
en | I'm in Python 3 trying to create a program that analyzes a text.
The program asks for an input (should be always a string) like this
```
text=input('Inster a text: ')
```
In principle, if I input something like
```
> Today was my best day at the restaurant
```
my program performs his calculations right (i.e. understands the whole input as a single string).
The problem comes when I try to insert a complex text like the first 9 verses of the Divine Comedy (when asked for that input).
```
> Nel mezzo del cammin di nostra vita
mi ritrovai per una selva oscura,
ché la diritta via era smarrita.
Ahi quanto a dir qual era è cosa dura
esta selva selvaggia e aspra e forte
che nel pensier rinova la paura!
Tant' è amara che poco è più morte;
ma per trattar del ben ch'i' vi trovai,
dirò de l'altre cose ch'i' v'ho scorte.
```
In this case:
1. It interprets the apostrophes marks (') as enclosing a text. Making the rest of the text looks like a series of commands (for example the **altre cose ch** part in the last verse becomes a string and the text written out of that becomes a series of commands)
2. It interprets the "del" word (that appears in the first and eigth lines) as the command *delete*
3. It interprets the "dir" word (that appears in the fourth line) as the command *direction*
I discovered that if I add a double apostrophe (") at the beggining and the end of the text and if the text apeared in 1 single line then it interprets the input right (as an entire string). To include the (") at the beginning and end of my input text is not a great deal, but the part when I make the text appear in a single line (combining the verses in a single sequence by adding `\` at the end of each verse for example) is extremely tedious when introducing large texts.
How can my program interpret some input like that as an entire string and avoid all of this problems? (one way of solving is answering the question: how can I combine several code lines in a single string sequence without spending hours?) | ArmelR/stack-exchange-instruction | {
"qid": 41186484
} | stackexchange | 109stackexchange_5
|
en | I have a problem getting the values of PHP JSON into an NSArray.
These are the values I get from my JSON: `'1451'`, `'1450'`, `'1449'`.
How can I convert this into an NSArray? | ArmelR/stack-exchange-instruction | {
"qid": 29809455
} | stackexchange | 107stackexchange_3
|
en | I am a 42 yr old female and my blood is 149/102. I do not suffer from high b/p, I have been experiencing right arm pain from my shoulder down to my hand for over a week now since last Tuesday and today is 9/3 and I just startred experiencing a bad headache 2 days a go. | lavita/medical-qa-datasets(chatdoctor_healthcaremagic) | {
"index": 35579
} | healthcaremagic | 50healthcaremagic_3
|
en | I have a date range picker and I want to find out the name of months in between start date and end date.
for example lets say user selected start date 12-Nov-2014 and end date 13-Apr-2015
so what I want is having an array like below
['Nov 14', 'Dec 14', 'Jan 15', 'Feb 15', 'Mar 15', 'Apr 15']
How would be your approach to achieve this?
PS: I have momentjs included in project so no problem if your solution is using momet | ArmelR/stack-exchange-instruction | {
"qid": 33931543
} | stackexchange | 108stackexchange_4
|
en | I am trying to fork an application that is based on CodeIgniter. According to the GoogleCode page, the license is GPLv3. However, examining the license.txt file inside the root directory of the application is very clearly not GPL (it does not include the preamble etc.) and looks like a slightly modified version of the BSD License specifying that a copy of the license and all copyrights must be included with a changelog, as well as some indemnity clauses.
The confusing part is that within several of the actual php files they include another license in the comments. This license is a verbatim copy of the 2-clause BSD license, but below this BSD license there is a series of @tags, and the @license one has a link to the GPL 2.0 so it is unclear to me what license applies to this application. Finally, I have found no mention anywhere that the project is dual/multi-licensed. Also, the project has not been under active development for over 2 years. Can anyone shed any light on this (or point me in the direction of resources that could)? Thanks. | ArmelR/stack-exchange-instruction | {
"qid": 83325
} | stackexchange | 108stackexchange_4
|
en | Heart rate monitor is garbage ! Hi all! So I’ve had my peloton for about 3 1/2 months now and I absolutely love it.. The problem I’m having is that in the middle of my ride my HRM stops working. Is there a solution to this or should I get an aftermarket one? | nreimers/reddit_question_best_answers | {
"index": 35478970
} | reddit_qa | 96reddit_qa_3
|
en | Will battle field 4 eventually get taken over by a better game? I mean, BF4 in my opinion the best game of the battle field franchise. And whenever another game is released in the series a lot of people still come back to BF4. Like hardline wasn't a great success and BF4 continued to thrive. Now bf1 has had many downfalls and a lot of people are returning to bf4.
I find it quite funny how much of a success BF4 is, not saying the other games are bad. But just how I'm comparison, battle field 4 feels more popular and successful. | nreimers/reddit_question_best_answers | {
"index": 18601437
} | reddit_qa | 97reddit_qa_4
|
en | is 16 legal in us? | sentence-transformers/gooaq | {
"index": 2272401
} | gooaq | 46gooaq_1
|
en | I have already installed Jest in my React project. I even installed jest-cli, but still can't use Jest in the command line. I can do an npm test, as it is in my package.json, but I have problems with the test, and in order to fix it I need to access the 'jest' command. (I need to run `jest --init` and to create the config file.) Thank you in advance!
See [Getting Started - Jest](https://jestjs.io/docs/en/getting-started). | ArmelR/stack-exchange-instruction | {
"qid": 53638220
} | stackexchange | 108stackexchange_4
|
en | In a multi threaded environment what happens when SIGCANCEL is sent to a thread?
What will be the difference in behavior if SIGKILL is sent to a thread? | ArmelR/stack-exchange-instruction | {
"qid": 5783285
} | stackexchange | 107stackexchange_3
|
en | I have a dependency property in my user control called `IsPromptShown`:
```
public static DependencyProperty IsPromptShownProperty = DependencyProperty.
Register("IsPromptShown", typeof(bool), typeof(AutoCompleteSearchBox), new
PropertyMetadata(true));
public bool IsPromptShown
{
get { return (bool)GetValue(IsPromptShownProperty); }
set { SetValue(IsPromptShownProperty, value); }
}
```
That custom control contains a `TextBox`. That text box doesn't have any value assigned to its `Text` property:
```
<TextBox Name="_searchTextBox" Grid.Row="0" VerticalAlignment="Top"
GotFocus="SearchTextBox_GotFocus" LostFocus="SearchTextBox_LostFocus"
TextChanged="SearchTextBox_TextChanged"/>
```
Now I'm setting the following trigger in the hosting window:
```
<Trigger Property="IsPromptShown" Value="True">
<!--<Setter Property="FontStyle" Value="Italic"/>-->
<Setter Property="TextBox.Text" Value="Seek"/>
</Trigger>
```
The commented line that sets `FontStyle` works but the second that sets `TextBox.Text` doesn't. I also have been trying to set `Foreground` property and that also have failed. What is going on? | ArmelR/stack-exchange-instruction | {
"qid": 17941595
} | stackexchange | 109stackexchange_5
|
en | what do oxymorons show in romeo and juliet? | sentence-transformers/gooaq | {
"index": 519789
} | gooaq | 46gooaq_1
|
en | how many times larger is the sun's diameter than earth? | sentence-transformers/gooaq | {
"index": 1594652
} | gooaq | 47gooaq_2
|
en | Chinup carryover to biceps? I could do chinups 3x9. During last workout i did dumbell bicep curl with 5kg. Now my biceps have DOMS. Does that mean chinups do not activate biceps? | nreimers/reddit_question_best_answers | {
"index": 13860856
} | reddit_qa | 96reddit_qa_3
|
en | I'm trying to use python as a back end for my website, I am stuck with linking up python to HTML.
I tried:
```html
<link src="back.py" rel="python" type="text/python"/>
```
That didn't work, I tried to look it up but no luck. Any ideas? | ArmelR/stack-exchange-instruction | {
"qid": 61904123
} | stackexchange | 107stackexchange_3
|
en | Suppose I have a jsonb array in a postgres column like
```
[{"startDate": "2019-09-01"}, {"startDate": "2019-07-22"}, {"startDate": "2019-08-08"}]
```
Is there a way to extract the earliest startDate from the jsonb array? I have tried using jsonb\_array\_elements but don't see how to loop through all the elements. | ArmelR/stack-exchange-instruction | {
"qid": 63850142
} | stackexchange | 107stackexchange_3
|
en | Question about trains running from Gatwick Airpot to London city. I'll be arriving at Gatwick airport on the 21st next week. I've read that Southern Rail and Thameslink are cheaper alternatives than taking the Gatwick Express. But when I compared prices online from Gatwick to Marylebone, Southern and Thameslink cost around 14GBP which is only a few dollars less than Gatwick Express which cost 17GBP.
What is my cheapest option to get to Marylebone station from Gatwick airport? I'll also be arriving in the morning (around 9am I think)
Thanks
| nreimers/reddit_question_best_answers | {
"index": 15088191
} | reddit_qa | 97reddit_qa_4
|