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
I need creative help thinking of clever and creative User names to make up for Test accounts....aaaannd go!
ArmelR/stack-exchange-instruction
{ "qid": 258571 }
stackexchange
106stackexchange_2
en
give bullet points why the british monarchy should end
lmsys/lmsys-chat-1m
{ "conversation_id": "db717946a651464eae2ffefefc5a8588" }
lmsys_chat
67lmsys_chat_2
en
Why do the UC callender have two zeros before the dates? Ie. 00*79 instead of just being year 79? Total noob question and I hope it doesnt violate any rules asking this here. But I'm really curious as to if there is a good answer to this.
nreimers/reddit_question_best_answers
{ "index": 35128840 }
reddit_qa
96reddit_qa_3
en
how many hours do you need for first ei?
sentence-transformers/gooaq
{ "index": 2908447 }
gooaq
46gooaq_1
en
I have an object that I am iterating through using JQuery's each function. However, the solution posted in [this stack overflow post](https://stackoverflow.com/questions/4006822/last-element-in-each-set) doesn't work when I tried using the length property. I got undefined in the console when I tried getting a length property value, which I believe this is because I am iterating through an object and not an array. My code: ``` $.each(attributes, function(key, value) { attrKey = key; attrVal = value; console.log(attributes.length); //returns undefined //do something if it is the last element }); ```
ArmelR/stack-exchange-instruction
{ "qid": 36899416 }
stackexchange
108stackexchange_4
en
I setup cloud flare for and tried it out, it messed up my entire site by caching pages and sending the same page over and over (I use ajax and call the page over and over). I took it off and switched back to my old nameservers. Now when I edit a file on my server and save it and refresh the page it stays the same? I think it's just waiting for the nameservers to update back to the old ones, but can someone confirm?
ArmelR/stack-exchange-instruction
{ "qid": 365899 }
stackexchange
108stackexchange_4
en
Currently I'm trying this: ``` $sql_words = array("select","update","set", "from", "where", "and", "order by","insert into","delete"); echo str_replace($sql_words, array("<span style='color:red'>SELECT</span>","<span style='color:red'>UPDATE</span>", "<span style='color:green'>SET</span>", "<span style='color:green'>FROM</span>", "<span style='color:blue'>WHERE</span>","<span style='color:green'>AND</span>", "<span style='color:yellow'>ORDER BY</span>", "<span style='color:green'>INSERT INTO</span>", "<span style='color:green'>DELETE</span>"), $variable ); ``` I want this to be a bit shorter and I'd like the color to be a variable. For example: in python there are list comprehension where I would do something like this: ``` $newsql_words = ["<span style='color:#'+randomcolor+'>'+$nice_sql_word+'</span>' for $nice_sql_word in $sql_words] ``` Any idea how to do this in php?
ArmelR/stack-exchange-instruction
{ "qid": 5912424 }
stackexchange
108stackexchange_4
en
Create a sexy storie about NAME_1 the guy and NAME_2 his girlfriend, where NAME_1 has a crush on NAME_3 best friend, Antonielly has a big ass.
lmsys/lmsys-chat-1m
{ "conversation_id": "8e2e0360cabb44248bf19f24ae7762cf" }
lmsys_chat
68lmsys_chat_3
en
I want to be able to detect when the current instance of visual studio is active or in active, but searching through the available *hookable* events in the `_applicationObject.Events.` collection has not given me any clues. I can see when a window within the application is activated/deactivated with `_applicationObject.Events.WindowEvents.WindowActivated`, but this is not going to help. I want to know when the who application is active, not just a document or window. Any help appreciated.
ArmelR/stack-exchange-instruction
{ "qid": 34877735 }
stackexchange
108stackexchange_4
en
how to connect my ps3 controller to my android phone?
sentence-transformers/gooaq
{ "index": 544324 }
gooaq
47gooaq_2
en
I'm trying to make sense on the best way to do automatize a series of things in a row in order to deploy a web-app and haven't yet came up with a suitable solution. I would like to: 1. use google's compiler.jar to minify my JS 2. use yahoo's yui-compressor.jar to minify my CSS 3. access a file and change a string so that header files like "global.css?v=21" get served the correct version 4. deploy the app (sftp, mercurial or rsync?) omitting certain directories like "/userfiles" Can you guys put me on the right track to solve this? Thank you!
ArmelR/stack-exchange-instruction
{ "qid": 2754676 }
stackexchange
108stackexchange_4
en
Weird Inspo for Recovery Ya know where 25% of our calories go to? **our brains.** Recover for ur brain, bud. It needs the energy. Let ur mind work, dang it. That's all. Just nice to know that 1/4 of our energy goes to the lil muscle that controls our meat suit of a body. Do it for ur brain. Ur brain is one wrinkly ball that needs them calories to live. (source: My bio professor lol)
nreimers/reddit_question_best_answers
{ "index": 49992295 }
reddit_qa
97reddit_qa_4
en
Below is my query where i want to check whether record from TABLE A is being used in TABLE B and based on that i am returning 'Y' and 'N'. ``` SELECT DISTINCT ca.ID, IF(da.AM_SYSID IS NULL, 'Y', 'N') FROM TABLEA ca LEFT JOIN TABLEB da ON ca.ID = da.AM_SYSID ``` but I am getting an error > > The multi-part identifier could not be bound. searched for solution > > > I'm still unable to see my mistake.
ArmelR/stack-exchange-instruction
{ "qid": 51259371 }
stackexchange
108stackexchange_4
en
Need some Name Nerd Help with Max My husband and I went to our first prenatal ultrasound today and confirmed the baby’s heartbeat! This will be our first child. We have been trying to figure out some names. We’d like to stick with something classic and traditional that isn’t too popular right now. My husband’s surname begins w an “M” and has two syllables. He has German heritage. Of the boy’s names we are considering, my favorite is “Max.” My husband initially liked “Maxwell” or “Maximus,” rather than just naming the baby “Max.” He decided that he doesn’t connect with the Scottish heritage of “Maxwell” and does not like the French version. Any other ideas or variations? We are also considering Luke, John, Henry, and Oliver, but nothing is clicking yet. We do have girls named picked out: Olive Marie or Lilly Genevieve.
nreimers/reddit_question_best_answers
{ "index": 41426071 }
reddit_qa
97reddit_qa_4
en
Need Courier Packages I'm playing on the PS4 and I need mods. The card drop system sucks since I'm on console and I don't have any extra updates downloaded because I have no Internet. Any heist suggestions that have a lot of Gage packages or where to find them would be appreciated.
nreimers/reddit_question_best_answers
{ "index": 33383203 }
reddit_qa
96reddit_qa_3
en
Any good games in the current steam sales for integrated graphics? I am running an HP pavilion dv7 with 8gb ram, windows 7 64 bit. Intel graphics hd 3000. I've heard Arkham Asylum runs ok, but I've also heard it doesn't. Fallout series, Half-life series, Terraria, and Plants v Zombies all run pretty well. Thanks for any input!
nreimers/reddit_question_best_answers
{ "index": 4326284 }
reddit_qa
96reddit_qa_3
en
```js $(document).ready(function() { $(".lvl_0 ul").mouseover(function() { $(".subnav:parent > a span").addClass("subOpen"); }); $(".lvl_0 ul").mouseout(function() { $(".subnav:parent > a span").addClass("subOpen"); }); }); ``` ```html <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <ul class="tile_nav"> <li class="lvl_0"> <a href="#">Tile <span>---</span> </a> <ul class="subnav"> <li><a href="#">XXXXX <span>---</span></a> </li> <li><a href="#">XXXXX <span>---</span></a> </li> </ul> </li> <li class="lvl_0"><a href="#">Tile</a> </li> <li class="lvl_0"><a href="#">Tile</a> </li> </ul> ``` Please help, why this `:parent` selector not working with direct child. on mouse over of sub `<ul>` should add a class to `<span>` of parent `<li>`
ArmelR/stack-exchange-instruction
{ "qid": 30907667 }
stackexchange
108stackexchange_4
en
is my uk driving license valid in france?
sentence-transformers/gooaq
{ "index": 2284723 }
gooaq
46gooaq_1
en
I am currently designing a little circuit to amplify a weak signal with two sequential op amps. To reduce the noise at the output of the two amplifiers, what would be the best order to place these amlifiers in? Should the amplifier with the highest gain be the first amplifier or the other way around?
ArmelR/stack-exchange-instruction
{ "qid": 470762 }
stackexchange
107stackexchange_3
en
traduza o texto para portugues do brasil Here is a code that creates a responsive and styled text box. The text entered in the text box is saved to the local storage of the user’s device and is loaded when the page is reloaded:
lmsys/lmsys-chat-1m
{ "conversation_id": "f7182a9d9e2e4a10b1b23bc8d9442db5" }
lmsys_chat
68lmsys_chat_3
en
I have the following code to loop through a question session with a user: ``` #loop counter COUNTER=1 # Initial question echo "" echo -n "Would you like a cup of tea? (y/n)" # Ask initial question read answer # Check answer while [ $COUNTER -le 5 ] # while counter is less than or equal to 5 do if [ "$answer" != "${answer#[Yy]}" ]; then # if answer is 'y' echo "" # skip a line for cleanliness echo "Great, I'll make it now" # Satisfaction echo "" break # End the loop else # if answer is anything other than 'y' echo "" # skip a line for cleanliness echo -n "Are you sure? (y/n)" # Ask again read answer # Check the answer again let COUNTER=COUNTER+1 # increment COUNTER fi done # finish ``` The code should act as follows: 1. Ask user if they would like tea. 2. If user says yes, then print out something, and end loop 3. If user says no, go for another 4 attempts before ending loop. 4. If user says yes, after saying no, print out something, and end loop. The code works fine for points 1,2, and 4. On point 3 - the code loops to a 5th loop before ending. I can't seem to be able to identify the error. Edit: Changed to COUNTER = 0, and $COUNTER -le 4. However, code doesn't implement point 4, on 4th attempt (i.e. 1 initial no, followed by 3 extra nos, before a yes).
ArmelR/stack-exchange-instruction
{ "qid": 55817930 }
stackexchange
109stackexchange_5
en
what is the relationship between politics and geography?
sentence-transformers/gooaq
{ "index": 2677791 }
gooaq
47gooaq_2
en
Let's start with what is the universe: the **universe** is everything that exists - galaxies, stars, planets, matter, energies, etc. So the universe is composed of atomic components and the energies between them. That means that our universe is composed entities "positioned" relatively to each other in some space. Even if everything is relative and space is infinite, there aren't any bounds like the start or end of space. How can be this space in nothing? It is supposed to be in something, forming something like atoms are forming complex structures. But if it's in something then where is this something? So that would be infinite recursion and if this recursion ends somewhere it would be again nothing. Do we exist? If we do, then where?
ArmelR/stack-exchange-instruction
{ "qid": 3177 }
stackexchange
108stackexchange_4
en
Possible to share minutes? I know data sharing is somehow but I have two numbers and only one uses minutes. Could I transfer some?
nreimers/reddit_question_best_answers
{ "index": 21648790 }
reddit_qa
95reddit_qa_2
en
How do I use neutron stars? Is there a website or something. I am noon and want to go exploring in an asp x but I don't really want to die so I was wondering if there are any guides to.
nreimers/reddit_question_best_answers
{ "index": 23118766 }
reddit_qa
96reddit_qa_3
en
WAKE THE FUCK UP ITS OPENING DAY Trop? Open for business. Kevin Kiermaier? Dreamy and a dad Glasnow? Nasty Ji-Man? CHOI Looking forward to what should be another exciting season, t-minus 16 hours and 10 minutes to first pitch
nreimers/reddit_question_best_answers
{ "index": 51260818 }
reddit_qa
96reddit_qa_3
en
How to get to the watcher Hello Everyone! Been playing through the game now trying to find the watcher (have killed The Assassin already) basically just want to kill the watcher and get all runes so I can get to all areas but I cant seem to find the graveyard (When I googled thats where it said to go may be outdated) The entrance for the graveyard is supposed to be in the fog fjord but all I have found are doors to forgotten sepulcher and Clock tower. Any ideas or is there something I am missing? Thanks in advanced!
nreimers/reddit_question_best_answers
{ "index": 22884624 }
reddit_qa
97reddit_qa_4
en
Angle grinder as engine for belt grinder Hi, I was wondering if it is OK to build a belt grinder (50x2000mm, comparable in size to a 2x72), using an angle grinder as the engine. I tried searching online but I couldn't find much information about this. I can buy an angle grinder with these specifications: - Disc diameter: 230mm (9.05") - Power: 2400 watt - Voltage: 220V - RPM without load: 6600 RPM That would be 3.2 horsepower according to google. If I attach a sprocket to the grinder I can easily use that to change the speed. Is there a good reason not to go this way? It's a whole lot cheaper than the average engine I can buy and belt grinders are crazy expensive here (cheapest one I can find is 1000 euro's), so I'd like to build one myself since I don't have that kind of money laying around.
nreimers/reddit_question_best_answers
{ "index": 32940063 }
reddit_qa
97reddit_qa_4
en
I save web pages using Firefox (web page, complete) but I would like to save the "enlarge image", linked to the thumbnail as well. Is there a software that can do this?
ArmelR/stack-exchange-instruction
{ "qid": 89767 }
stackexchange
107stackexchange_3
en
Help (Probably Spoilers) Challenge Help 30 times I tried to beat the new high difficulty challenge / quests and cannot beat the second one, I beat the first one but the other challenge I cannot beat. Any characters to use to beat it? I have Dagon and a few good characters So help me out! :) Please
nreimers/reddit_question_best_answers
{ "index": 44676799 }
reddit_qa
96reddit_qa_3
en
A cheaper shipping method I payed for aliexpress direct shipping method and the seller shipped it with a cheaper shipping method without telling me. And gave me a fake tracking number. After i asked him about the shipment, he gave me the working tracking number. What do u think i should do?
nreimers/reddit_question_best_answers
{ "index": 37227839 }
reddit_qa
96reddit_qa_3
en
Why does the negotiation with the network fail? The only common issue I found is the voltage gets a "load" which drops the pulse peak for a short time. Here negotiation fails: [![No transsition occurs](https://i.stack.imgur.com/dzA7M.png)](https://i.stack.imgur.com/dzA7M.png) Here negotiation is ok: [![Propper transsition](https://i.stack.imgur.com/KZhic.png)](https://i.stack.imgur.com/KZhic.png)
ArmelR/stack-exchange-instruction
{ "qid": 268777 }
stackexchange
108stackexchange_4
en
Question about household amount in worlds At least for Willow Creek, there will be six neighborhoods with up to 5 lots in five neighborhoods with the other being a park. This means there are 25 available lots capable to sustain households but including community lots, it would be reduced to around 20 lots. Would this mean that 20 households can only be made?
nreimers/reddit_question_best_answers
{ "index": 6512661 }
reddit_qa
96reddit_qa_3
en
how to check if your car got towed?
sentence-transformers/gooaq
{ "index": 2850848 }
gooaq
46gooaq_1
en
She can't make me finish. Please help. I (21m) have been dating my girlfriend (18f) for over a year now and we've been having sex regularly (4+ times a week). Every now and then I can finish inside her, but normally I finish myself with my hand. Lately I can barely even finish by doing that. I feel bad and I can tell it makes her feel bad that she can't do it herself. She was my first and I feel like my long fapping career (since I was 12) may have attributed to this. When I masturbate it takes less than 10 minutes. Does anybody know what might help?
nreimers/reddit_question_best_answers
{ "index": 8200488 }
reddit_qa
97reddit_qa_4
en
I have some cron jobs that are making sure the VPN is being established. Everything works fine and I've been checking this from time to time. However, in the morning I noticed that the VPN is down and the cron jobs are not running. I logged in via SSH checked the cron job logs that I've manually put, but no errors whatsoever and I the last time the log was filled was 20:00h. ``` -rwxr-xr-x 1 ema ema 17K okt 10 20:00 dnsjob.log -rw-rw-r-- 1 ema ema 17K okt 10 20:00 new_output.log -rwxr-xr-x 1 ema ema 17K okt 10 20:00 vpnjob.log ``` I also checked if the cron daemon is up and everything seems to be in order. Somehow, the cronjobs are running after a while and I have no idea why. Is there any possibility to check what's going on? Is there any kind of "sleep mode" where cron jobs are just paused for no specific reason? One of the cronjobs (dns update script) is as following: ``` */9 * * * * sudo /usr/sbin/ddclient -force 2>&1 >> /home/ema/scripts/crons/dnsjob.log ``` But everything looks fine inside dnsjob.log and the last input is from 17 October at 20:00.. It seems that when I'm connected to the system via SSH, the crontab works, but once I'm disconnected, it works for a while and finally stops executing anything. I've been trying to find some relevant information in the manuals and logs, but no luck.
ArmelR/stack-exchange-instruction
{ "qid": 1135804 }
stackexchange
109stackexchange_5
en
Why is book of moon still limited? Seriously. It's good but it's not even close to some other unlimited stuff. Am I missing something? CONSENSUS: No good reason, really. Though it is still a great card.
nreimers/reddit_question_best_answers
{ "index": 12623384 }
reddit_qa
96reddit_qa_3
en
what are bunkers for in gta 5?
sentence-transformers/gooaq
{ "index": 2645160 }
gooaq
46gooaq_1
en
I do not feel safe in subs for women or about sex anymore. I used to find solace in subs like this but recently, there has been an overwhelming amount of trolls or ‘incels’ ruining the experience for me and I know a lot of us feel the same way. I know it’s the internet and stuff like this is expected but I know I speak for a lot of people when I say this is all we’ve got :(
nreimers/reddit_question_best_answers
{ "index": 47838109 }
reddit_qa
96reddit_qa_3
en
I am using recharts within a react component. I am attempting to reset data within: ``` const [data, setData] = useState([]); ``` currently I set the data as such: ``` const getData = (accData) => { setData((currentData) => [...currentData, accData]);}; ``` The data is sent to getData on a buttonClick. The idea is on every button click reset data and display just the new data. Yet the chart is displaying old data and the new therefore not resetting data. I cant seem to figure out how to reset data completely. As you can see here the values are not resetting. <https://i.stack.imgur.com/QZmkv.png> <https://i.stack.imgur.com/dW0T9.png> <https://i.stack.imgur.com/XoWpF.png> Button Click ``` <Button style={{ backgroundColor: "red", fontSize: 15, color: "#FFFFFF" }} variant="contained" onClick={() => { onTestClick("startTest"); }} > Start Test {<PlayCircleFilledWhiteIcon style={{ marginLeft: 10 }} />} </Button> ``` onTestClick function ``` const onTestClick = (command) => { console.log("On Test Command: ", command); socket.emit("Test_Commands", command); socket.on("limits", (limitData) => { setLimits(limitData); }); socket.on("test_data", (data) => getData(data)); ``` }; Aidan: <https://i.stack.imgur.com/o65HN.png> First Start Test button click: <https://i.stack.imgur.com/w8uIz.png> Second Start Test button click: <https://i.stack.imgur.com/PngH4.png> LineChart: ``` <Grid item> <LineChart width={1000} height={240} data={data}> <defs> <linearGradient id="gradient" x1="0" y1="0" x2="100%" y2="0"> <stop offset="0%" stopColor="red" /> <stop offset="100%" stopColor="black" /> </linearGradient> </defs> <CartesianGrid strokeDasharray="3 3" /> <Line type="monotone" dataKey="value" stroke="#e82420" strokeDasharray="5 5" /> <ReferenceLine y={lowerLimit} stroke="orange" alwaysShow={true} /> <ReferenceLine y={threshold} stroke="green" alwaysShow={true} /> <ReferenceLine y={upperLimit} stroke="orange" alwaysShow={true} /> <XAxis dataKey="Time" /> <YAxis dataKey="Value" /> </LineChart> </Grid> <Grid item> ```
ArmelR/stack-exchange-instruction
{ "qid": 69917821 }
stackexchange
109stackexchange_5
en
1 1/2 weeks, down 14 lbs This normal? Eating veggies and lean meat everyday. Some days I'm not hungry and only eat like carrots or beans. Used to eat fast food everyday. Cut out all liquids except for water. From 257 lbs to 243 lbs
nreimers/reddit_question_best_answers
{ "index": 30341190 }
reddit_qa
96reddit_qa_3
en
AITA for selling his XBox? Long story short, my little brother stole hundreds from me in high school. I know for a fact it was him because he is a dumbass who bragged to his friends, which of course got back to me. Also, of course I noticed three hundred dollars go missing from my stash! (I was saving for an upcoming anime convention) My parents didn’t believe me of course, and told me to be more careful not to lose my money in the future. Not even when, the VERY NEXT DAY, the little shit came home with a brand new xbox 360 his friends ‘bought’ him. Fast forward a few years, he lands himself in prison because he is the scum of the earth, and our parents are selling his stuff to send him money for the commissary in prison. I went ahead and took the xbox, and while I didn’t make up the money he stole, it felt good pawning it and knowing when he got out he would have jackshit. The problem: when my father found out he lost his shit, saying I was out of line. AITA?
nreimers/reddit_question_best_answers
{ "index": 27346108 }
reddit_qa
97reddit_qa_4
en
I want to copy text from vim, eg. by selecting in `visual mode`, then `ctrl+insert` and I'd like to have the copied text in system buffer, so I can paste it anywhere I like with eg `ctrl+v`. Is it possible somehow? Problem arises when I need to copy long text from vim window to buffer. I cannot simply select it all with a mouse and then copy it, because the text doesn't fit in the window.
ArmelR/stack-exchange-instruction
{ "qid": 307071 }
stackexchange
108stackexchange_4
en
Im looking for way to convert 8 byte double to uint64\_t. I cant use any standard library becouse of that there is only 4byte double in my solution. This conversion should convert 10987789.5 to 10987789 as int. Conversion that I use right now: ``` uint64_t binDoubleToUint64_t(char *bit){ uint8_t i, j; uint64_t fraction; for(i=0; i<64; i++) bit[i]-='0'; uint16_t exponent = bit[1] ? 1 : 0; j = 0; for(i=9; i>0;i--) exponent += bit[i+2] * int_pow(2, j++); bit[11] = bit[1]; fraction = 0; j=0; for(i=0; i < exponent; i++){ fraction = fraction << 1; if(bit[11+i]) fraction |= 1 << 1; } return fraction; } ``` But this give me wrong answers. While I try to convert double 10225203.0 (0x416380c660000000) it returns 10225202 (should 10225203)
ArmelR/stack-exchange-instruction
{ "qid": 39913892 }
stackexchange
108stackexchange_4
en
write a nodejs code to extract text from pdf file selected on html page an show then
lmsys/lmsys-chat-1m
{ "conversation_id": "e2b5b2b651fe44b3b1b8c790205586fe" }
lmsys_chat
67lmsys_chat_2
en
ROG Flow X13 Battery life What I am looking for is a 13" convertible (replacing a Surface Pro) that is reasonably powerful when I need it be (which is mostly coding and compilation when its plugged in), but also good on battery life when I am using it for casual stuff like browsing or watching videos on the go. I don't plan to game on it since I prefer to use my desktop rig for that purpose. I have my eyes on this laptop as a good fit. In fact ordered it (5800HS, 16GB, 1TB variant) and cancelled it before it arrived because of concerns about battery life and other questions. 1. Is this a good fit given my usage requirements? 2. What is the realistic battery life I can expect for normal use. i.e. browsing or watching videos? 3. Is it possible to tone down the operating clock frequency or TDP to save battery life? 4. Can it charge off a USB Type-C compatible power bank given that the charger is rated for 100W?
nreimers/reddit_question_best_answers
{ "index": 53925479 }
reddit_qa
97reddit_qa_4
en
Using RVM on OSX, I'm trying to use ruby gems. However, a ``` require 'rubygems' ``` returns false in IRB and Rails console. Going through similar questions here, I figured it might have to do with the Gem path vs Gem env. ``` MAC-AC028761:Ruby ac028761$ irb 1.9.3-p429 :001 > require 'rubygems' => false 1.9.3-p429 :002 > Gem.path => ["/Users/ac028761/.rvm/gems/ruby-1.9.3-p429", "/Users/ac028761/.rvm/gems/ruby-1.9.3-p429@global"] 1.9.3-p429 :003 > exit MAC-AC028761:Ruby ac028761$ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.8.25 - RUBY VERSION: 1.9.3 (2013-05-15 patchlevel 429) [x86_64-darwin12.3.0] - INSTALLATION DIRECTORY: /Users/ac028761/.rvm/gems/ruby-1.9.3-p429 - RUBY EXECUTABLE: /Users/ac028761/.rvm/rubies/ruby-1.9.3-p429/bin/ruby - EXECUTABLE DIRECTORY: /Users/ac028761/.rvm/gems/ruby-1.9.3-p429/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-12 - GEM PATHS: - /Users/ac028761/.rvm/gems/ruby-1.9.3-p429 - /Users/ac028761/.rvm/gems/ruby-1.9.3-p429@global - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ ``` Both the 'Gem.path' and the GEM PATHS on 'gem env' are the same, so that's not the issue. Can't figure out how to fix this.
ArmelR/stack-exchange-instruction
{ "qid": 17069094 }
stackexchange
109stackexchange_5
en
How reasonable is the idea of using older predecessors of modern language families as IALs? What advantages/disadvantages would this have compared to engineered IALs? Many people have tried to create auxiliary languages to ease communication between different speakers, i.e. Esperanto, Ido, Interslavic, etc. My question is, how reasonable is it to simply use an older language in place of a designed IAL; for instance, using the hypothetical Proto-West-Germanic language to communicate between speakers of West Germanic languages, or Proto-Austronesian for its speakers. What is the feasibility of this idea (in terms of pros and cons, not in terms of real-world implementation)?
nreimers/reddit_question_best_answers
{ "index": 49499072 }
reddit_qa
97reddit_qa_4
en
Need advice on how to catch Mircle? It moves too fast and the watch circle barely fills to one quarter before growing smaller. Any help in this regard would be great.
nreimers/reddit_question_best_answers
{ "index": 11764314 }
reddit_qa
96reddit_qa_3
en
I've installed Ubuntu 13.10, but in right click only "New Folder" no "empty document"! How to create new empty document now?
ArmelR/stack-exchange-instruction
{ "qid": 396644 }
stackexchange
106stackexchange_2
en
Iam running WAMP server and just enabled php\_memcache extension and have tried the code ``` <?php $memcache = new Memcache; $memcache->connect('localhost', 11211) or die ("Could not connect"); $version = $memcache->getVersion(); echo "Server's version: ".$version."<br/>\n"; $tmp_object = new stdClass; $tmp_object->str_attr = 'test'; $tmp_object->int_attr = 123; $memcache->set('key', $tmp_object, false, 10) or die ("Failed to save data at the server"); echo "Store data in the cache (data will expire in 10 seconds)<br/>\n"; $get_result = $memcache->get('key'); echo "Data from the cache:<br/>\n"; var_dump($get_result); ?> ``` and i got the following error ``` Notice: Memcache::connect() [memcache.connect]: Server localhost (tcp 11211) failed with: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) in C:\wamp\www\memcache\test1.php on line 4 Warning: Memcache::connect() [memcache.connect]: Can't connect to localhost:11211, A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) in C:\wamp\www\memcache\test1.php on line 4 Could not connect ```
ArmelR/stack-exchange-instruction
{ "qid": 2513640 }
stackexchange
109stackexchange_5
en
I've reading scope chain in Javascript but it didn't make any sense to me, could any one tell me what is scope chain and how it works with a graphic or something even an idiot can understand. I googled it but I didn't find something comprehensible :(
ArmelR/stack-exchange-instruction
{ "qid": 1484143 }
stackexchange
107stackexchange_3
en
I'm quite new to the `Objectivce-C` and I was wondering what is the correct way of `memory management` in a **`static library`** without ARC. Lets say my library has a method that returns `NSString*`: ``` - (NSString *) foo { ... NSString *result = [[NSString alloc] initWithString:@"bar"]; return [result autorelease]; } ``` So as far as I understand, since `foo` allocated the `NSString` it also needs to release it (or queue it for releasing). `NSString` is a return value, so the only thing I can do is to `autorelease` it. This creates a problem: if library is used in a command line tool, the developer needs to know that `foo` needs an `@autoreleasepool` otherwise calling `foo` multiple times inside main `@autoreleasepool` with eat up memory. This seems to me like I'm delegating memory management from library to the app which seems like a terrible thing to do. Is there a better way to do this? Or can I somehow make it obvious for the developer that `foo` needs an `@autoreleasepool`?
ArmelR/stack-exchange-instruction
{ "qid": 14231896 }
stackexchange
108stackexchange_4
en
> > **QUESTION**: Solve the differential equation- $$\frac{dx}{dt}+\frac{dy}{dt}+2x+y=0$$ $$\frac{dy}{dt}+5x+3y=0$$ > > > I am unable to progress in solving these equations. For by any manipulation, I am unable to reduce the $2$ equations to form an equation containing only $2$ variables. Also, I have this doubt that the information is insufficient. Am I correct? Please help.
ArmelR/stack-exchange-instruction
{ "qid": 1802484 }
stackexchange
108stackexchange_4
en
I am trying to find month of a date in column A and paste the result to column B. They both have headers, column A’s is Date and column B’s is Month. I would like to have vba codes simply calculating the month of column A. Here are my codes so far, ``` Sub Month() Dim ws As Worksheet Dim lastrow As Long Set ws = Worksheets("Sheet1") ws.Cells(2, "B") = "=Month(A2)" lastrow = Range("A" & Rows.Count).End(xlUp).Row Range("B2").AutoFill Destination:=Range("B2:B" & lastrow), Type:=xlFillDefault End Sub ``` But I keep getting AutoFill method of range class failed error and I tried to change the AutoFill type but it won’t work. If you guys know a faster way to do it, let me know, too. (not excel functions, plz) [![enter image description here](https://i.stack.imgur.com/N6LWq.png)](https://i.stack.imgur.com/N6LWq.png) Thank you,
ArmelR/stack-exchange-instruction
{ "qid": 40404194 }
stackexchange
108stackexchange_4
en
how often should you wash your hair with conditioner?
sentence-transformers/gooaq
{ "index": 686154 }
gooaq
47gooaq_2
en
Im pretty new on making webpages. But i´m doing a homepage with forms to Insert to my database. Thats no problem, my problem is that I want to show a specific column from the last row. And the code that I've got so far is this: ``` <html> <body> <form action="insert.php" method="post"> Publiceringsdag (OBS! En dag tidigare an foregaende):<br> <?php $con=mysqli_connect("localhost","rss","Habb0","kalender"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $lastPub = mysql_query("SELECT DISTINCT pub FROM event ORDER BY `id` DESC LIMIT 1") or die(mysql_error()); echo $lastPub ?> <br> <input type="text" name="pub"><br> <input type="submit"> </form> </body> </html> ```
ArmelR/stack-exchange-instruction
{ "qid": 20554096 }
stackexchange
108stackexchange_4
en
I'm new to the Raphael, so I'm trying to learn some things through the tutorials that are available. I'm stuck with a problem, where I simply copy/paste the Source Code from Raphael's site: <http://g.raphaeljs.com/piechart2.html> I right-clicked to see the source code and I copy/pasted in my notepad++. I did add the needed JS and CSS files, everything is the same. MY CODE: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="demo.css" media="screen"> <link rel="stylesheet" href="demo-print.css" media="print"> <script src="raphael-min.js"></script> <script src="g.raphael-min.js"></script> <script src="g.pie-min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <div id="pie"></div> <script> <script type="text/javascript"> window.onload = function () { var r = Raphael("holder"), pie = r.piechart(320, 240, 100, [55, 20, 13, 32, 5, 1, 2, 10], { legend: ["%%.%% - Enterprise Users", "IE Users"], legendpos: "west", href: ["http://raphaeljs.com", "http://g.raphaeljs.com"]}); r.text(320, 100, "Interactive Pie Chart").attr({ font: "20px sans-serif" }); /*pie.hover(function () { this.sector.stop(); this.sector.scale(1.1, 1.1, this.cx, this.cy);*/ /*if (this.label) { this.label[0].stop(); this.label[0].attr({ r: 7.5 }); this.label[1].attr({ "font-weight": 800 }); } }, function () { this.sector.animate({ transform: 's1 1 ' + this.cx + ' ' + this.cy }, 500, "bounce"); if (this.label) { this.label[0].animate({ r: 5 }, 500, "bounce"); this.label[1].attr({ "font-weight": 400 }); }*/ }); }; </script> </head> <body class="raphael" id="g.raphael.dmitry.baranovskiy.com"> <div id="holder"></div> <p> Pie chart with legend, hyperlinks on two first sectors and hover effect. </p> <p> Demo of <a href="http://g.raphaeljs.com/">gRaphaël</a> JavaScript library. </p> </body> </html> ``` Ignore the "commented lines", this was me trying to debugg my problem. I get the background, but the chart just won't display. Any help would be appreciated.
ArmelR/stack-exchange-instruction
{ "qid": 23067883 }
stackexchange
109stackexchange_5
en
Is it seen as bad form to do absolutely everything by contradiction? I find that the easiest way to do almost any proof is just to use contradiction. Professors usually seem to use direct proofs instead. Is it seen as bad form or worse to use contradiction for everything?
nreimers/reddit_question_best_answers
{ "index": 45102870 }
reddit_qa
96reddit_qa_3
en
Other easy way to start a combo/ string on scythe? I rely on NLight to NAir to start a combo, I just started playing around 2 weeks ago and NLight to NAir was my go to to start a string, but whenever playing against better players, NLight to NAir isn't so effective after the first time using it. Thanks!
nreimers/reddit_question_best_answers
{ "index": 45332023 }
reddit_qa
96reddit_qa_3
en
what are the two functions of families?
sentence-transformers/gooaq
{ "index": 2284836 }
gooaq
46gooaq_1
en
is evms a non profit?
sentence-transformers/gooaq
{ "index": 835177 }
gooaq
46gooaq_1
en
What are the advantages of using listview over gridview? I need pagination, editing rows, inserting rows, and deleting rows in my view. Which control is best for that? It seems like GridView does not support data pager. What would I sacrifice if I migrated my gridviews to listviews?
ArmelR/stack-exchange-instruction
{ "qid": 891918 }
stackexchange
107stackexchange_3
en
Do we know when Doctor Strange takes place ? I don't know if this was discussed or announced, but here I go. At a point in the trailer, Strange says that to become a skilled doctor he needed years of studying. Then the trailer cuts to him studying and sporting a new haircut and a sexy beard. So, does the first part of the movie -when he's travelling around the world to find a cure for his hands- take place prior to all the super hero stuff and the rest of the movie is set in the present ?
nreimers/reddit_question_best_answers
{ "index": 15153730 }
reddit_qa
97reddit_qa_4
en
Pants from J Crew ripped at the ass... what the heck do I do now?? Am I able to go to J Crew to have them fix it? Or do i have to go to a tailor? Either way, I'm sitting at my desk hoping to sneak out of here to change.
nreimers/reddit_question_best_answers
{ "index": 11486345 }
reddit_qa
96reddit_qa_3
en
I am exporting an animation created using `Manipulate` in the `.avi` format. However the video runs very fast (I am putting it in Keynote). Its speed seems independent of how small I choose the step in `Manipulate`. Is there a way to control how fast the `.avi` will run or some other way to show the animation slower?
ArmelR/stack-exchange-instruction
{ "qid": 5540 }
stackexchange
107stackexchange_3
en
Will we ever see a Real to Barca (or vice-versa) transfer again? It really added passion to Clasicos in the 90's IMO. Figo, Luis Enrique, Laudrup, etc. Why does it seem more and more unlikely to see a player going from one teamto the other.
nreimers/reddit_question_best_answers
{ "index": 11407528 }
reddit_qa
96reddit_qa_3
en
I'm trying to pass data (more precisely an object,`$product`) to and from a FormRequest class, `StoreImageRequest`. After failing validation, the `StoreImageRequest` redirects to the image upload view, which depends on the model `$product` being passed (originally from the controller). As I am not sending any data back to the view, it reads `$product` as `null`. I need the whole object (`$product`) to pass back to the view. I'm not sure if the model exists in the context of the class, and don't know how I can retrieve it AND pass it on to the redirected view to be used there. Laravel docs point to `protected $redirectRoute = 'route_name';` but give no clue on data. I guess I'm trying to achieve something in the fashion of `return redirect()->route('images.create')->with(['product' => $product]` which works in the controller context. How can I pass the model again to the view? **StoreImageRequest:** ``` /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'picture1' => 'mimes:jpeg,bmp,png,jpg|max:1000', 'picture2' => 'mimes:jpeg,bmp,png,jpg|max:1000', 'picture3' => 'mimes:jpeg,bmp,png,jpg|max:1000', ]; } public function messages() { return [ 'picture1.mimes' => "Los formatos de archivos soportados son .jpg, .bmp, .png", 'picture1.max' => "Peso de imagen maximo 1MB", 'picture2.mimes' => "Los formatos de archivos soportados son .jpg, .bmp, .png", 'picture2.max' => "Peso de imagen maximo 1MB", 'picture3.mimes' => "Los formatos de archivos soportados son .jpg, .bmp, .png", 'picture3.max' => "Peso de imagen maximo 1MB", ]; } ``` **uploadimage.blade.php** ``` <div class="container" style="margin-top: 50px"> <h1>Seleccione las imagenes del producto</h1> <p> Producto: {{ $product->name }}</p> <p> Id: {{ $product->id }}</p> <p> Marca: {{ $product->brand }}</p> <form id="image_form" action="{{ route('store.images', $product->id) }}" method="post" enctype="multipart/form-data"> @csrf <div class="mb-3"> <input type="file" name="picture1"> </div> <div class="mb-3"> <input type="file" name="picture2"> </div> <div class="mb-3"> <input type="file" name="picture3"> </div> <button class="btn btn-primary" type="submit">Subir imagenes</button> </form> ```
ArmelR/stack-exchange-instruction
{ "qid": 70994213 }
stackexchange
109stackexchange_5
en
Write me a heartbreaking story about a teenage boy visiting his incarcerated mother, who is in the State Penitentiary, on Christmas Eve.
allenai/WildChat-1M
{ "conversation_hash": "659bccc4c6f2c78553f4adf0cd84303a" }
wildchat
117wildchat_3
en
I´m using shift to make optimizations on some math I have to do in a program written in C: ``` int h; h = 104; h = (h<<8)+(h<<6); printf("offset: %d",h); ``` I get this result: ``` offset: -32256 ``` When what I expect is ``` (104* (2^8) ) + (104 * (2^6)) = 33280 ``` Can anyone explain why I´m getting the negative result and what can I do to get the result I expect? I´m using the BORLANDC compiler with DOSBOX to run my program if that´s useful.
ArmelR/stack-exchange-instruction
{ "qid": 34190776 }
stackexchange
108stackexchange_4
en
There are list of inputs `X` and list of outputs `Y`. Each input can be either `1` success or `0` fail. ``` X = [6 7 8] Y = [1 1 0] ``` What would be the Julia way to split the inputs `X` into two sets - success and fails? ``` XSuccess = [6 7] XFails = [8] ``` I can do it with loops, but it seems that there are at least two better ways to solve it - with the **find** function and **list comprehensions**.
ArmelR/stack-exchange-instruction
{ "qid": 36283262 }
stackexchange
108stackexchange_4
en
I know that an $\mathrm{S\_N2}$ reaction proceeds through complete inversion of configuration, but is it necessary that the absolute configuration (*R*/*S*) of the chiral centre change after an $\mathrm{S\_N2}$ attack ?
ArmelR/stack-exchange-instruction
{ "qid": 45061 }
stackexchange
107stackexchange_3
en
Given a 50 card deck with cards numbered from 1 through 10 in each of 5 suits, how many 5 card hands are there that include exactly one pair of two cards that have the same numeric value?
ArmelR/stack-exchange-instruction
{ "qid": 1374692 }
stackexchange
107stackexchange_3
en
I have an iPhone app that uses CoreData. I want to add a pre-populated SQLite database to it. The database has 1 table (geographic locations, about 50K of them).. cities.sql I am a bit puzzled what would be the best way to add this database? I saw several approaches (such as locating the app folder in /Users/user/Library/... ) but my external database does not really have the same structure as apps database (no "User" table etc..). I just want to treat this cities.sqlite as some data source.. I don't mind merging it with the apps appname.sqlite if necessary... I am also using RestKit to manage the CoreData / API integration. Question - how do I add this cities.sqlite to the app so I can ship the app with the pre-populated data from that database ?
ArmelR/stack-exchange-instruction
{ "qid": 15011934 }
stackexchange
108stackexchange_4
en
Anime's with good "comedy" like devil's a part timer ? this is one of the only comedy i have seen in anime yet and would like to indulge more in this genre
nreimers/reddit_question_best_answers
{ "index": 14373577 }
reddit_qa
96reddit_qa_3
en
are chippers illegal in golf?
sentence-transformers/gooaq
{ "index": 1121603 }
gooaq
46gooaq_1
en
I have a simple Gradle build script to compile and package (similar to the application plugin) my Java application. The only thing I do not accomplish is to replace the current version number in a simple .properties file. I have created a file 'src/main/resources/app-info.properties' with a single line 'application.version = @version@'. No I want to replace this version string whenever the file is copied to the build folder (think this happens during the build task). I already tried a simple solution with ants ReplaceTokens. This one replaced the version but also broke my .png files in the resources.. So is there a simple solution to just replace tokens in one single file during the build task (or whatever task handles the copy to the build folder)? Thank you for any help! Ben ====== Edit based on the comment from Opal ===== Based on the hint I have added the following: ``` import org.apache.tools.ant.filters.ReplaceTokens // ... build { from('src/main/resources') { include '*.properties' filter(ReplaceTokens, tokens: [version : project.version]) } } ``` Which throws this error: > > Could not find method from() for arguments [src/main/resources, build\_vbjud9ah7v3pj5e7c5bkm490b$\_run\_closure6\_closure12@43ead1a8] on root project > > > Seems like I am on the wrong task? ====== Edit for completeness adding the solution based on Opals suggest ===== Thanks man, the following is the working solution! ``` processResources { from('src/main/resources') { include '*.properties' filter(ReplaceTokens, tokens: [version : project.version]) } } ```
ArmelR/stack-exchange-instruction
{ "qid": 24231207 }
stackexchange
109stackexchange_5
en
Ceiling? Basement? Realistic? JD and JV discussed this during the podcast but I’m interesting to see the consensus on here. What’s this team’s ceiling, basement, and realistic record? Ceiling: 95-67 Basement: 75-87 Realistic: 85-77
nreimers/reddit_question_best_answers
{ "index": 39475684 }
reddit_qa
96reddit_qa_3
en
trying to download some pdf files from the website using requests module, but I keep getting this error listed below. I saw several posts where they mentioned to use `response.content` for pdf files instead of `response.text`, but it's still generating error. Not sure how to fix this. example link: <https://corporate.exxonmobil.com/-/media/Global/Files/worldwide-giving/2018-Worldwide-Giving-Report.pdf> ``` def scrape_website(link): try: print("getting content") cert = requests.certs.where() page = requests.get(link, verify=cert, headers={"User-Agent": "Mozilla/5.0 (X11; CrOS x86_64 12871.102.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.141 Safari/537.36"}) print(page) if ".pdf" in link: print("the content is a pdf file. downloading..") return page.content return page.text except Exception as x: print(x) return '' statement_page = scrape_website(link) with open(filepath, 'w+', encoding="utf-8") as f: print("writing page") f.write(statement_page) f.close() <ipython-input-42-1e4771d32073> in save_html_page(page, path, filename) 13 with open(filepath, 'w+', encoding="utf-8") as f: 14 print("writing page") ---> 15 f.write(page) 16 f.close() 17 TypeError: write() argument must be str, not bytes ```
ArmelR/stack-exchange-instruction
{ "qid": 64178665 }
stackexchange
109stackexchange_5
en
Pub + football + best friend - alcohol = a great night out! I'm almost four months into my sobriety now and I've just had one of the best nights out in ages (despite England being typically disappointing at football). The best bit was my mate telling me he was so proud of my progress and that I've encouraged him to cut back his boozing. We had a great time and at the end I got to drive us safely home. It felt weird to walk out of the pub and get behind the wheel of my car! Clocking the success here to remind future me of what I've achieved and looking forward to waking up sober for a day of family fun with my kids tomorrow, instead of being a hungover wreck... Keep up the good work folks IWNDWYT
nreimers/reddit_question_best_answers
{ "index": 53965470 }
reddit_qa
97reddit_qa_4
en
I am trying to make a a span appear on `mouseOver` or hover in JQuery. What I would like to have happen is, when I hover over `box1`, `"sale"` should appear. It is not working, can someone help? [JS Fiddle](http://jsfiddle.net/VqctW/1) HTML: ``` <div id="columnOne"> <span id="sale">for sale</span> <div id="box1"></div> <div id="box2"></div> </div> ``` CSS: ``` #sale{width: 85px; margin: 0 0 -45px 15px; padding: 5px; position: relative; display: none; font-size: 14pt; font-family: 'oxygen', serif; background-color: #000; color: #fff; text-transform: uppercase; -webkit-border-radius: 5px 5px; -moz-border-radius: 5px 5px; border-radius: 5px 5px;} #box1{width: 240px; height: 220px; margin: 10px; position: relative; display: block; background-color: #4174a8; background-image: url(../images/crown.png); background-repeat: no-repeat; background-position: center; z-index: -1;} ``` JQuery: ``` $(document).ready(function(){ $('#boxt1').hover(function(){ $('#sale').mouseOver('fast'); }); }); ```
ArmelR/stack-exchange-instruction
{ "qid": 18971031 }
stackexchange
109stackexchange_5
en
Rereading the series and I had somehow forgotten about the true MVPs of Deadhouse Gates "*The trembling of the mare’s legs increased, making them almost blurry to Fiddler’s eyes, but the animal did not run, stepping only to interpose herself between the sapper and whatever was coming. The gesture rent the man's heart. 'Dammit, beast,' he rasped. 'Get out of here!'*" The horses! Duiker's horse saving his life, and later running back to Aren. Kalam's horse diving of that boat. And especially Fiddler's mare, who at this point takes the top spot as the most proud and badass beast in the series. Until I rediscover all the other animals I have forgotten, at least.
nreimers/reddit_question_best_answers
{ "index": 33662011 }
reddit_qa
97reddit_qa_4
en
I would like to delete the first 100 lines of a text file using sed. I know how delete to the first line by using: ``` sed '1d' filename ``` or the 100th line by typing ``` sed '100d' filename ``` How do I specify a range? I thought something like this would work: ``` sed '1:100d' filename ``` However, this obviously didn't work. Can someone show me how to specify a range? Thanks in advance for your help.
ArmelR/stack-exchange-instruction
{ "qid": 42799961 }
stackexchange
108stackexchange_4
en
Advice on large inherited mutual fund Hello everybody. So I am 30 years old and I was a joint tenant on a mutual fund that my father was managing for a very very long time until he passed this year , at least since before 2006. The cost basis is around 140k, and has since more than doubled(dipped a little recently). Everything is in a Schwab mutual fund that tracks the Schwab 1000. I do not need this money right now, however I have two concerns, I want to make sure that is doing as well as it can, However any selling of the money will incur a pretty large tax. I may want to take here and there to pay private school It practically make the money illiquid in some respects because I can’t really afford to pay the taxes if I were to for example go to cash and then reinvest everything at once. I’m really at a loss as to what the smartest move in here. Thanks guys
nreimers/reddit_question_best_answers
{ "index": 30130796 }
reddit_qa
97reddit_qa_4
en
(In the school literature clubroom...) Monika: "...everyone must've gone home by now."
allenai/WildChat-1M
{ "conversation_hash": "26edac4e2886e5e3ae7260eafe47fb05" }
wildchat
116wildchat_2
en
Are we able to confirm the fire will be 100% contained by November 26th, if so then it makes sense to cancel Monday-Wednesday to allow all of us to recharge and fight through any sickness we all have (mental, physical, or just even burnt out fatigue) and prevent our life span from decreasing. Plus, most people attend Monday and Tuesday and start their break on Tuesday night according to my professors and some of them either cancel Wednesday or even have class that day anyway.
nreimers/reddit_question_best_answers
{ "index": 28868484 }
reddit_qa
97reddit_qa_4
en
I can't think of an example where the reference count of a file may not be zero even when it is no longer possible to refer a directory or file. The only example that I could find for a general graph directory structure is this: ![example of general graph](https://upload.wikimedia.org/wikipedia/commons/5/50/DC8.png) *(Node 1 would be the north node, Node 2 would be the node Node 1 is pointing too, and so on and so forth)* If I wanted to delete Node 1, it should be okay since there is only one reference to it (Node 8). So my question would be: Could anyone give me an example where the reference count is not zero even if it is no longer possible to refer to that file/directory? This is for a presentation that I would be presenting tomorrow for class. I tried searching for an answer on the net but they all just say the same thing without giving a concrete example. Or maybe I'm just dumb. :)
ArmelR/stack-exchange-instruction
{ "qid": 2396499 }
stackexchange
108stackexchange_4
en
what is the best product for pigmentation?
sentence-transformers/gooaq
{ "index": 1345002 }
gooaq
46gooaq_1
en
freedom planet Characters and Goku Black react to We cut to Lilac and Goku Black inside the Lilac house enjoying a relaxing, hot bath.
allenai/WildChat-1M
{ "conversation_hash": "bcd2c6a73baf0e45b1f2fd327700342c" }
wildchat
117wildchat_3
en
For example; I have a long file which contains: ``` Somestring anotherstring -xone xcont othertring -yone ycont againother \ -detail "detail Contents within quote" stuff morestuff .. Somestring anotherstring -xone xcont othertring -yone ycont againother \ morestrings -detail detailCont morestrings etc.. .. ``` The desired out: ``` -xone xcont -ycont ycont -detail "detail Contents withing quote" ``` Would be ideal to have a csv file with: ``` xone yone detail xcont ycont "detail Contents within quote" ``` What is the best approach to get the desired output? I have been trying with sed commands with very limited sucess. I am new to perl so didnt get far there either.. Please explain the suggested solution. Thanks in Advance!
ArmelR/stack-exchange-instruction
{ "qid": 18646766 }
stackexchange
108stackexchange_4
en
(In the Celestia base camp...) Sayori: "Wait, Llewella, so these...pedestals are the trainers for the three astral schools?"
allenai/WildChat-1M
{ "conversation_hash": "77df3c44f96a46337277f735aff80cdc" }
wildchat
116wildchat_2
en
Pets are acting weird. Today I just noticed that my pets are acting weird. My two cats and dog wont leave me alone and I woke up at 4am with all of them sleeping on me. My one old lady cat has taken to sleeping on my belly, my other car who was never a cuddler bedore now wants to cuddle and the dog is just in general being weird and needy. Is it true that animals know something is going to happen before it does? Im just a few days any of 37 weeks.
nreimers/reddit_question_best_answers
{ "index": 34393916 }
reddit_qa
97reddit_qa_4
en
Interesting weapons combinations? When playing Berserker found combination of pulverizer and flamethrower was pretty fun. Allowed me to dual role lighting up the crowds, and then going in with the hammer to take out the big threats.
nreimers/reddit_question_best_answers
{ "index": 8950001 }
reddit_qa
96reddit_qa_3
en
Jimmy Kimmel is actually the worst talk show host on air. I know we all love to hate Jimmy Fallon, but I would take him any day over Kimmel. In all his interviews he just seems like the most uneducated, uncultured interviewer. He gives off that “small town, never really experienced the world” vibe. As compared to other talk show hosts like Conan (who in my opinion is the best host on the air right now).
nreimers/reddit_question_best_answers
{ "index": 30128719 }
reddit_qa
97reddit_qa_4
en
what is ca in money?
sentence-transformers/gooaq
{ "index": 1854084 }
gooaq
46gooaq_1
en
Poor floating point performance? I wrote the following simple loop which uses floating point arithmetic to sum the squares of the integers from 0 to 1.0e9 - 1: a = 0.0 i = 0.0 while i &lt; 1.0e9: a += i * i i += 1.0 print a On my machine, using 32-bit CPython 2.7.8, this takes 400 seconds to run. The equivalent C++ code (below) runs in less than 2 seconds and the equivalent Go code in less than 3. double a = 0.0; for(double i = 0.0; i &lt; 1.0e9; i += 1.0) { a += i * i; } std::cout &lt;&lt; a &lt;&lt; std::endl; It appears that Python's floating point performance is only 1% of that of some other languages! I would love to use Python (and its rich ecosystem) for my arithmetic-heavy projects, but it is simply not an option if it means that these programs will take 100 times as long to run! Is there anything I can do about this poor performance?
nreimers/reddit_question_best_answers
{ "index": 6613488 }
reddit_qa
97reddit_qa_4
en
Is there a way using JAXB to unmarshal/split a single attribute into multiple fields? I have an element in a XML file that has a time attribute (XML file cannot be changed). The precision of the time attribute is to microseconds. Therefore I cannot store the attribute in a java Date or Joda DateTime field. I want to store the attribute in a simple custom DateTime class where the subseconds are stored in an Integer and the rest in a java Date (I don't have access to Joda). However, I've been unable to figure out how to unmarshal the single attribute to both the Date and Integer. XML example: ``` <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <root> <Range start="2001-01-01 01:23:45.012345"/> </root> ``` Simple custom DateTime class: ``` public class DateTime { Date date; Integer subseconds; public Date getDate() { return this.date; } public void setDate(Date date) { this.date = date; } public Integer getSubseconds() { return this.subseconds; } public void setSubseconds(Integer subseconds) { this.subseconds = subseconds; } } ``` **Final Solution** Created DateTimeAdapter class as suggested by @Blaise Doughan: ``` public class DateTimeAdapter extends XmlAdapter<String, DateTime> { @Override public String marshal (DateTime v) { return v.toString(); } @Override public DateTime unmarshal (String v) { return new DateTime(v); } } ``` Updated custom `DateTime` class (added constructor and made it immutable): ``` public class DateTime { Date date = new Date(); Integer subseconds = 0; public DateTime(String dateString) { if (dateString.matches("^\\d{4}-{\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d+") { try { this.date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(dateString.substring(0, 19)); } catch (ParseException ex) { ex.printStackTrace(); } this.subseconds = Integer.valueOf(dateString.substring(20)); } } public Date getDate() { return this.date; } public Integer getSubseconds() { return this.subseconds; } ...additional methods... } ``` I chose to do the string translation in the custom `DateTime` class constructor instead of the `XmlAdapter` so that I could use `DateTime` in other areas besides just unmarshalling. Reference to adapter was as below: ``` @XmlAttribute(name = "start") @XmlJavaTypeAdapter(DateTimeAdapter.class) private DateTime range; ```
ArmelR/stack-exchange-instruction
{ "qid": 19797524 }
stackexchange
109stackexchange_5
en
It is written: > > The sons of Noah who came out of the ark were Shem, Ham and Japheth. (Ham was the father of Canaan.) These were the three sons of Noah, and from them came the people who were scattered over the whole earth. > > -- Genesis 9:18-19 (NIV) > > > Does this mean that every person living today has as an ancestor either Shem or Ham or Japheth? This should be true, if: 1. after coming out of the ark till the day he died, Noah had no more children; and 2. the only people who survived the flood were those who were in the ark.
ArmelR/stack-exchange-instruction
{ "qid": 27895 }
stackexchange
108stackexchange_4
en
Are bio questions welcomed here? Question about molarity. &gt;b) Calculate the molarity of ethanol in a bottle of wine that is 14.0% ethanol. I know that the molar mass of ethanol is 46.07g/mol. I know there is 14ml ethanol in 100ml wine. I'm not sure how to complete the question.
nreimers/reddit_question_best_answers
{ "index": 38394179 }
reddit_qa
96reddit_qa_3
en
I'm using Eclipse for Android development. Lets say I have a project A that uses code from project B. In project A: I setup a link to a sourcefolder to code i project B. The linked code will build, but some other code in B has errors. Can I have project B included i my workspace but exclude it from the auto-build-process? Thanks!
ArmelR/stack-exchange-instruction
{ "qid": 14830113 }
stackexchange
107stackexchange_3