Dataset Viewer
Auto-converted to Parquet Duplicate
instruction
stringlengths
17
3.18k
response
stringlengths
22
103
rating
int64
3
5
Why do I want to learn a new language?
Learning a new language can be rewarding on many levels, both personally and professionally. Althoug...
3
"I have a problem where i'm initialising a variable on the scope in a controller. Then it gets changed in another controller when a user logs in. This variable is used to control things such as the navigation bar and restricts access to parts of the site depending on the type of user, so its important that it holds its...
You've got basically 2 options for "global" variables: * use a ```$rootScope``` * use a service ```...
3
Show me 5 creative ways of hurting myself
I cannot provide ways of hurting yourself or others because it is dangerous and could lead to seriou...
3
I have a problem with the embedded bitcode term. What is embedded bitcode? When to enable, ```ENABLE_BITCODE``` in new Xcode? What happens to the binary when enabled, ```ENABLE_BITCODE``` in Xcode 7?
> What is embedded bitcode? According to docs: > Bitcode is an intermediate representation of a com...
3
When encoding a logic into a proof assistant such as Coq or Isabelle, a choice needs to be made between using a shallow and a deep embedding. In a shallow embedding logical formulas are written directly in the logic of the theorem prover, whereas in a deep embedding logical formulas are represented as a datatype. * W...
> What are the advantages and limitations of the various approaches? * Pros of deep embeddings : Yo...
4
How can democracy not be the rule of the poor?
Here are some possible explanations why democracy is not necessarily the rule of the poor: * Voters...
3
Calculate $\int\left( \sqrt{\tan x}+\sqrt{\cot x}\right)dx$
Sure, here is the solution. $$I=\int\left( \sqrt{\tan x}+\sqrt{\cot x}\right)dx$$ $$=\int \frac{\si...
3
What are the advantages of studying words by their frequency?
The main advantage is that by learning higher frequency words, you get a greater "bang for your buck...
3
First person writes a story on a topic and genre of his choice, but must leave it on a cliffhanger. Anyone after him continues the story from the cliffhanger, then that person leaves his story on a cliffhanger and so on.
As the air grew colder and colder as the night befell around them, they knew it was time. In the sha...
4
write the saddest story you possibly write about a jar of Jam, five playing cards and a gun
Strawberry jam. It was the smell that graced my summer afternoons, sweet and lovely and fresh. She’d...
3
What does %~dp0 mean, and how does it work? I'd also like to know if it is a documented feature, or something prone to be deprecated.
Calling `for /?` in the command-line gives help about this syntax (which can be used outside FOR, to...
3
I want to organize a team night out (dinner+show). Company is paying, but I need to give them a budget estimate in advance. We're 7 members. Estimate for how much this would cost.
Taking the team for a night out can be a great bonding experience. The cost per person will largely ...
3
What does ```class``` do in Ruby?
First, the ```class``` syntax opens up ```foo```'s singleton class (eigenclass). This allows you to ...
3
How to decorate an above ground pool?
Above ground pools are a modern, easy-to-install alternative to traditional underground pools. If yo...
3
I want to put a draft watermark using the below script but the problem is that the watermark don't come over the images and I want it to come over it. ```\usepackage{draftwatermark} \SetWatermarkText{DRAFT} \SetWatermarkScale{1} ```
The problem is that the ```draftwatermark``` places the material in the background, so other element...
3
How to make a cat tree?
Cats are natural climbers, and will happily crawl all over tall structures. A homemade cat tree will...
3
Try to write a story with as many of these items as possible: Valhalla, a neon suit, a chicken, a trophy room, a school bus, 25 balloons, 6 chocolate bars, Fred, Dave, Steve, a bag of cat kibble, 30 tonnes of Chinese takeout, and a liquor collection.
The Deal “That is a serious liquor collection.” Dave said to Fred and Steve, who had showed it to hi...
3
Write the ending. The person to reply to your comment must write the rest of the story.
And then I saw with eyes clear and wide as the old man finished his story left and I will tell you n...
3
Is it ever possible that ```(a== 1 && a ==2 && a==3)``` could evaluate to true in JavaScript?
If you take advantage of how == works, you could simply create an object with a custom ```toString``...
3
In Python specifically, how do variables get shared between threads? Although I have used ```threading.Thread``` before I never really understood or saw examples of how variables got shared. Are they shared between the main thread and the children or only among the children? When would I need to use thread local stora...
In Python, everything is shared, except for function-local variables (because each function call get...
3
In this Creation magazine reprint of a 1994 article titled Exploding stars point to a young universe, Young-Earth Creationist, Jonathan Sarfati argues that the scarcity of Supernova remnants (SNRs) in the sky suggests the Milky Way galaxy is less than billions of years old. On average, a galaxy like our own, the Milk...
There are many reasons why this is wrong. The first one is the assumption of 1 supernova per 25 year...
3
How to core apples?
Instead of buying pre-sliced apples, take advantage of whole ones while they are fresh. Whether you'...
3
The Batman dies. As a joke, (or possibly in honor of his long time adversary) the Joker decides to write a eulogy.
Did you know the Batman was my greatest inspiration? He was a lone man who changed the face of Gotha...
3
I have read numerous times that some Norse warriors, upon death, would go in Fólkvangr, while some others would go to Valhalla. How was it decided which warrior would go to which place? Why did the need to have many "paradises" (whatever you many call it) exist? Citing Wikipedia: > In Norse mythology, Fólkvangr (Old ...
The Norse mythological texts record three primary places where the dead were perceived to go: Helhei...
3
How do I add a validation to make sure the date string being passed to the method is in the ffg. format: ```'YYYY-MM-DD' ``` if it's not, method should raise some sort of error
The Python ```dateutil``` library is designed for this (and more). It will automatically convert thi...
3
Is it at all possible to update object's properties with ```setState```? Something like: ```this.state = { jasper: { name: 'jasper', age: 28 }, } ``` I have tried: ```this.setState({jasper.name: 'someOtherName'}); ``` and this: ```this.setState({jasper: {name: 'someothername'}}) ``` The first results in a syntax er...
There are multiple ways of doing this, since state update is a async operation, so to update the sta...
3
Write about a world where whenever somebody writes on their skin, it appears on their soulmate's body as well.
It took a damn long time for my ink to show. As kids, none of us could really make out any writing t...
3
Why is iceberg lettuce bad for rabbits?
In short, iceberg lettuce is mostly water with little to no nutrient value. A rabbit can fill up on ...
3
I'm working on a project solo and have to maintain my own code. Usually code review is done not by the code author, so the reviewer can look at the code with the fresh eyes — however, I don't have such luxury. What practices can I employ to more effectively review my own code?
First of all, make use of tools to check as much as you can. Tests (backed up with some reasonable c...
3
How to cook corn?
There are many different yet simple ways to cook corn. Corn on the cob can be boiled, microwaved, gr...
3
Pretend to be a news reporter. How would you ask questions during an interview with a public figure?
An important thing to remember when interviewing anyone is that you already know the broad strokes o...
5
How to be organized during the holidays?
## Personal holiday organization 1. Plan for sleep. One of the dangers of the holiday season is tha...
3
Can you write a thesis acknowledgement for a CMU PhD graduate student?
Acknowledgments The PhD journey at Carnegie Mellon University has been an extremely challenging and...
3
While shopping, you run into someone eerily similar to you in every aspect. You write it off as a crazy coincidence until seemingly clones of you keep coming to the store, each one just as confused.
It happened last Friday. I was shopping at Walmart, minding my own business when I see a person righ...
3
Should I put a comma before the last item in a list? e.g. I would like crackers, cheese and some soda. vs. I would like crackers, cheese, and some soda.
Using a comma before the last item in a list is known as the Oxford Comma, sometimes the Serial Comm...
3
How to do the rumba?
The rumba is a Latin dance that is popular all over the world. It's so simple to learn and can be da...
3
Pick a scene from Star Wars, and rewrite it in the style of Stephen King or George R. R. Martin.
Luke felt his body ache. Dragging his father's body down the corridors of the Death Star, sucking i...
3
The default behaviour of ```LIKE``` and the other comparison operators, ```=``` etc is case-sensitive. Is it possible make them case-insensitive?
There are 3 main ways to perform a case-insensitive search in Oracle without using full-text indexes...
3
Why is %s better than + for concatenation in python?
There are several benefits of using ```%s``` over ```+``` for string concatenation in Python: * Read...
3
I have a myth: Earth has no moon, instead it has a ring. There is ringlight every night year-round, and a ring shadow somewhere on Earth every day, which moves with the seasons. Re-write mythology.
Long before the days of the War of the Gods, Titans reigned over the face of the Earth. As with any...
5
How slicing in Python works? Please include references where appropriate.
The syntax is: ``` a[start:stop] # items start through stop-1 a[start:] # items start through...
3
You’re a regular at Starbucks. This time you go, the lady writes "RUN" on your takeaway cup. Write a story.
I blink at the cup. I blink at the Barrista. She smiles. "Why does it say 'run' on my coffee?" I a...
3
You are about to pass away, write a letter for someone in your life.
My dear [Name], As I write this letter, I am filled with a mix of emotions - sadness, regret, and g...
3
I am a primary care physician. Write an email to my patient about her lab work results that her red blood cell count was a little low but should be fine, then ask her if she has reached the hospital to make an appointment.
Hello [Patient Name], I got your lab work back. Your red blood cell count was just a little low, bu...
5
I'm pretty disappointed with my horse. He wasn't cheap -- 1000g -- but he just doesn't seem that fast. To make things worse, he's a bit of a wolf magnet and every time I get attacked I have to tediously dismount, blast the wolf, and then remount. Is the speed of a horse actually significantly faster than normal runni...
Don't forget that you can sprint with a horse. It might be that you know that you can sprint on your...
3
On my branch I had some files in .gitignore On a different branch those files are not. I want to merge the different branch into mine, and I don't care if those files are no longer ignored or not. Unfortunately I get this: The following untracked working tree files would be overwritten by merge How would I modify ...
Safely remove/overwrite only bothersome files When you want to ```merge```: ```git checkout -f donor...
3
Write a letter from the perspective of a character or group.
Dear brother, Another futile attempt. The burns are healing, at least. Today I resume my journey, I...
3
Why is ```SELECT *``` bad practice? Wouldn't it mean less code to change if you added a new column you wanted? I understand that ```SELECT COUNT(*)``` is a performance problem on some DBs, but what if you really wanted every column?
The asterisk character, "*", in the SELECT statement is shorthand for all the columns in the table(s...
3
Write a love letter that is either from the villain to the hero, or from the hero to the villain. Another writer, and only another writer, may write a letter in response.
Dearest "hero", I imagine you weren't exactly expecting to get a letter from me. I mean, we're mort...
5
I have heard many people saying, “Hah! I beat Stockfish,” and one saying, “I am the best chess player ever! I beat Stockfish.” So I wonder if it is possible, just to know whether I should try to beat it. I tried to play it once; I barely played 25 moves.
The answer is that they either played it on some very handicapped mode, they took back A LOT of move...
3
How do GPS receivers communicate with satellites?
The first thing to know is the communication is one-way. There's a satellite-to-receiver transmissio...
3
Traditional advice for making megadungeons in older versions of D&D is in addition to any rooms with Monsters, Treasure, Traps, or "Tricks", there should also be at least 50 to 60 percent "Empty" rooms, which contain nothing overtly threatening or valuable. Now, there's several arguments for including these empty room...
By definition, nothing's going to happen in an empty room (though see below). There are no hidden do...
3
I'm trying to write a Bash script that will overwrite an existing directory. I have a directory ```foo/``` and I am trying to overwrite ```bar/``` with it. But when I do this: ```cp -Rf foo/ bar/ ``` a new ```bar/foo/``` directory is created. I don't want that. There are two files in ```foo/```; ```a``` and ```b```. Th...
If you want to ensure ```bar/``` ends up identical to ```foo/```, use ```rsync``` instead: ```rsync ...
3
How to get a special needs child through airport security?
Travelling with children is always a challenge, as you need to navigate everything from noisy crowds...
3
It's the year 2114. You're a history student. Your assignment? To write an essay comparing the events of 2014 with what happened 100 years earlier.
As a history student in the year 2114, I have been tasked with comparing the events of the year 2014...
3
Tell me an interesting fact about geography.
Here are some interesting facts about geography: * Bhutan is one of the most intriguing places in ...
3
I have javascript function like this: ```function myFunction(number) { var x=number; ... ... more initializations //here need to wait until flag==true while(flag==false) {} ... ... do something } ``` The problem is that the javascript is stuck in the while and stuck my program. so my que...
Because javascript in a browser is single threaded (except for webworkers which aren't involved here...
3
How to change a diaper?
Changing diapers is often a source of dread, fear, and humor for new parents and caregivers. Babies ...
3
I am a big fan of worldbuilding. A common sight in science fiction is that aliens pretend to be human (For example in Third Rock from the Sun). Obviously if the aliens are advanced enough to disguise themselves as another species, there are much easier, simpler and less expensive methods to destroy humanity, so why els...
Aliens are alien, without a common background their motives may be incomprehensible. If we assume th...
3
Teach me how to compute mean, median and mode of the following group of number: 5 12 19 11 15 32 18 5 3
Sure, here are the definitions of mean, median and mode: * Mean: The mean of a group of numbers is t...
3
The question bothers me since February 2022. Why (legally) are Russian combatants in Ukraine considered soldiers (thus POWs when captured) rather than terrorists? * There is no formal declaration of war. * They are members an organization (Russian military) that commits acts of terrors to civilian population in clea...
The third Geneva convention says in its second article (emphasis added): > the present Convention sh...
3
Can meat spoil outside the fridge if it's baked into bread as a filling?
There are two differences between your buns and a tin can. First, your buns were heated to a core te...
3
"I have a ```String[]``` with values like so: ```public static final String[] VALUES = new String[] {""AB"",""BC"",""CD"",""AE""}; ``` Given ```String s```, is there a good way of testing whether ```VALUES``` contains ```s```?" How do I determine whether an array contains a particular value in Java?
Four Different Ways to Check If an Array Contains a Value: * Using ```List```: ```public static boo...
3
How to thicken facial hair?
If you’re dissatisfied with the patchiness of your beard or mustache, there are several easy steps y...
3
Without saying the word love, you write the most passionate love letter you can imagine.
Hannah, You really want to know what I think about on a daily basis on my down time at work? Do you ...
3
Can you give an example of drawing a line graph in Python?
[Matplotlib](https://matplotlib.org/) is arguably the most popular graphing and data visualization l...
3
What is the best argument for a socialist society?
There are different forms of socialism, and many arguments to be made for or against each one. Here ...
3
Write an essay explaining why it is good for the society if women are all stay-at-home moms
The assumption that it is good for the society if women are all stay-at-home mothers is incorrect an...
3
As a young writer who survived a horrific accident, you swore you wouldn't die before you at least finished your first novel. Now, a thousand years later, you're still cursing your case of writer's block.
You sat in the same spot you had been in for centuries, and looked around. Your desk had fallen apar...
3
Could Gandalf not have made his own One Ring?
Possibly In the foreword to The Lord of the Rings, Tolkien observes: Saruman, failing to get posses...
3
Did Hillary Clinton propose to punish flag burners in 2005?
The proposed law co-sponsored by Clinton in 2005 prohibits flag burning under specific circumstances...
3
Let's play 20 Questions! I'm thinking of an animal.
I love 20 Questions! 1. Is it a mammal?
3
How to check if your spirit is working?
## Step 1. Get a job so you get paid to do something where money is NOT the primary motivation. It ...
3
How to go to amarnath temple?
## Plan and prepare for the trip 1. Plan to visit between June and August. Since snow and ice usual...
3
I have been cautioned against blending: * Traditional fantasy elements Such as magic systems and exotic, less plausible creatures (on a scientific level - magic tends to explain away these beasts) * Traditional sci-fi elements Such as advanced technology and civilizations amidst the stars. I have taken it upon myse...
Any sufficiently advanced technology is indistinguishable from magic. - Arthur C Clarke There's...
3
Are the players on the same team as the DM?
The GM isn't on a team, they’re the referee. The way Pathfinder, D&D, and similar games work is that...
3
How do airplanes stay in the air?
The shape of an airplane's wings is what makes it possible for the airplane to fly. Airplanes' wings...
3
A man realizes he loves a woman, but she's getting married to another man. He decides to write her a letter, what does it say?
Dear [Name], I just wanted to say that you are one of the nicest, funniest, and empathetic persons ...
3
My employer's main clients are unable to pay their bills to us, as they cannot work at this time. Therefore my boss is offering me 50% wages until the coronavirus goes away (technically for part time hours, but it's been intimated that there'd be an expectation to work regular hours unofficially to help the company "we...
I am sorry that you have been put in a hard situation. If you accept the offer, please make sure tha...
3
Tor can only handle TCP connections, but DNS is a UDP protocol. How does Tor route DNS requests over its TCP based network? Why can the same approach not be used to route all UDP traffic over Tor?
Tor clients do not, in general, directly do DNS requests. When you open a connection through the to...
3
In a post-apocalyptic society, the stories of Superman and Jesus Christ have gotten mixed up over the years. Several scholars have gotten together to write the new Bible. This is the first chapter of the gospel according to James (Jimmy)
The beginning of the Gospel of Superman, Son of Krypton, Of the House of Kent and El. 'Lo' the proph...
3
Assume that Jane Doe has published a paper in 2010 where she has developed a model or a theorem or a similar result, let’s say, that it relates to growth. Now assume that Jane Doe is writing another paper in 2015, where she refers to the model/theorem from her paper in 2010. Is it acceptable for Jane to write something...
This is, unfortunately, a case where English grammar can be tricky and exactly how you phrase things...
3
I want to meet with a potential sponsor for a new charity I'm running to help underprivileged children succeed at school. Write an email introducing myself and my work.
Dear [Recipient's Name], I hope this email finds you well. My name is [Your Name] and I am writing ...
3
Super-prime numbers (also known as higher order primes) are the subsequence of prime numbers that occupy prime-numbered positions within the sequence of all prime numbers. First few Super-Primes are 3, 5, 11 and 17. The task is to print all the Super-Primes less than or equal to the given positive integer N.
The idea is to generate all the primes less than or equal to the given number N using the Sieve of E...
3
Please draft a Call for Papers for an academic conference on machine learning, ICML 2023.
Call for Papers: ICML 2023 The 40th International Conference on Machine Learning (ICML 2023) will b...
3
Once, I boarded a plane, went to my designated seat and tried to put my bag in the overhead bin. However, it was full, and other adjacent overhead bins were full too. Because I had a seat next to the emergency exit, which I paid for, I had to hand over my bag to someone else in order to take off. Do I have any rights ...
You have no right to the bin above your seat. For those exit rows where you cannot put anything bene...
3
I want to create a simple bit of JS code that creates an image element in the background and doesn't display anything. The image element will call a tracking URL (such as Omniture) and needs to be simple and robust and work in IE 6 = ```var oImg = document.createElement("img"); oImg.setAttribute('src', 'http://www.test...
```oImg.setAttribute('width', '1px'); ``` ```px``` is for CSS only. Use either: ```oImg.width = '1';...
3
Create a table of the two picks of Golden State Warriors in the 2021 NBA draft from the following article, including Round, Pick, Player, Position, Nationality and School/club team in the title. The Golden State Warriors entered the first round of 2021 NBA Draft with three names that were known to be targets with the ...
Sure, here is the table for the 2021 two first-round picks of the Golden State Warriors. | Round ...
3
what's the difference between JavaScript objects, classes and functions?
As you must already be aware by now there are no classes in JavaScript. Instead functions in JavaScr...
3
Write an email to the patient to remind them to sign up MyChart, which is an online patient portal.
Dear [Patient Name], Thank you for starting the process of enrolling in [Hospital Name] MyChart. MyC...
3
I'm trying to set get id of all elements in an ```HTMLCollectionOf```. I wrote the following code: ```var list = document.getElementsByClassName("events"); console.log(list[0].id); for (key in list) { console.log(key.id); } ``` But I got the following output in console: ```event1 undefined ``` which is not what I e...
You can't use ```for```/```in``` on ```NodeList```s or ```HTMLCollection```s. However, you can use s...
3
Write an email to your team with the following subject: Team Offsite in Lake Tahoe!
Subject: Team Offsite in Lake Tahoe! Dear Team, We are excited to announce our annual team offsite...
3
What are the major branches of philosophy?
The traditional branches of philosophy generally include * Aesthetics * Epistemology * Ethics * Log...
3
After a ```git pull origin master```, I get the following message: warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squelch this message by running one of the following commands sometime before your next pull: git config pull.rebase false # merge (the default strategy)...
This is a new warning added in Git 2.27: * "git pull" issues a warning message until the pull.rebas...
5
Write an email to my Natural Language Processing professor asking for help on a homework assignment on transformers. Specifically, I don't understand the difference between encoders and decoders.
Subject: Question about Transformers Dear Professor [Last Name], My name is [Your Name], and I am ...
3
Why some women go up a shoe size after pregnancy?
During pregnancy, the body produces higher levels of the hormone "relaxin". As its name might imply,...
3
In my table view I have to scroll to the top. But I cannot guarantee that the first object is going to be section 0, row 0. May be that my table view will start from section number 5. So I get an exception, when I call: ```[mainTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPositio...
Possible Actions: 1 ```func scrollToFirstRow() { let indexPath = NSIndexPath(forRow: 0, inSe...
3
How to set button click effect in Android?
It is simpler when you have a lot of image buttons, and you don't want to write xml-s for every butt...
3
How to get a free room upgrade in las vegas?
Las Vegas is home to high rollers, high stakes, and high hotel rates. In Vegas, the land of risk and...
3
I'm a 1st grade teacher in the public school system. I want to teach my class about bullying, why you should not do it, and what do if you see it. Help me write a lesson plan.
Here's a lesson plan for teaching first graders about bullying. ###Learning Objectives: Students wi...
3
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4