instruction stringlengths 0 2.62k | response stringlengths 47 15.5k | score int64 5 5 |
|---|---|---|
What do you know about the search for extraterrestrial life? | Humanity has yet to find evidence for life outside planet Earth.
The current search for extraterrestrial life is largely focused on finding planets that are situated in an "habitable zone". Roughly put, a planet is in a habitable zone if its distance from nearby stars allows for liquid water to persist on its surface.... | 5 |
## Choose a new cartridge and drain the faucet
1. Purchase a cartridge that matches your faucet’s model. The cartridge varies depending on the faucet you have, so getting an identical replacement is important. Order a new cartridge by noting the manufacturer’s name and the faucet’s model number. The name is usually pr... | ## Choose a new cartridge and drain the faucet
1. Purchase a cartridge that matches your faucet’s model. The cartridge varies depending on the faucet you have, so getting an identical replacement is important. Order a new cartridge by noting the manufacturer’s name and the faucet’s model number. The name is usually pr... | 5 |
By definition, nothing's going to happen in an empty room (though see below). There are no hidden doors to find, no puzzles to solve, no enemies to fight. So what's their purpose?
## Bringing the dungeon to life
While all the orcs may sit around in a guard room waiting for PCs to show up, where do they sleep, what do ... | By definition, nothing's going to happen in an empty room (though see below). There are no hidden doors to find, no puzzles to solve, no enemies to fight. So what's their purpose?
## Bringing the dungeon to life
While all the orcs may sit around in a guard room waiting for PCs to show up, where do they sleep, what do ... | 5 |
What's the weather like today? | I am sorry, but I am not programmed to have access to real-time information, such as the weather and stock information. Feel free to ask me something else. | 5 |
What is the difference between a class and an object in JavaScript? | As you must already be aware by now there are no classes in JavaScript. Instead functions in JavaScript may be made to behave like constructors by preceding a function call with the ```new``` keyword. This is known as the constructor pattern.
In JavaScript everything is an object except for the primitive data types (bo... | 5 |
What is the purpose of the mail exchange (MX) record? | The whole idea behind the mail exchange (MX) record is to specify a host or hosts which can accept mail for a domain. As specified in RFC 1035, the MX record contains a domain name. It must therefore point to a host which itself can be resolved in the DNS. An IP address could not be used as it would be interpreted as a... | 5 |
People make mistakes. Sometimes these mistakes are bad enough to cost us the respect of those around us or even our jobs. If you’ve made a bad professional error or hurt colleagues at work, though, the damage might not be permanent. You can put the past behind you, but you’ll have to work hard to rebuild relationships,... | People make mistakes. Sometimes these mistakes are bad enough to cost us the respect of those around us or even our jobs. If you’ve made a bad professional error or hurt colleagues at work, though, the damage might not be permanent. You can put the past behind you, but you’ll have to work hard to rebuild relationships,... | 5 |
What is the stereotype about Asian people having tiny eyes? | Asian people having tiny eyes is a false stereotype and generally considered as racism. The eye shape of a person is determined by their genes, not race or ethinicity. | 5 |
Setting up an aquarium can be quite difficult that involves a lot of patience, maintenance, and testing before you can even add any tank inhabitants. Despite this, setting up your aquarium correctly is vital for your pets' health and longevity. There are different ways to set up different types of aquariums.
## Choose... | Setting up an aquarium can be quite difficult that involves a lot of patience, maintenance, and testing before you can even add any tank inhabitants. Despite this, setting up your aquarium correctly is vital for your pets' health and longevity. There are different ways to set up different types of aquariums.
## Choose... | 5 |
What happened to Cannibal the dog after he died? | And suddenly, a great peace washed over the newly deceased dog. He had never felt so good in his life. He awoke in a beautiful meadow with wild flowers and a bubbling creek.
"Cannibal! What kind of name is that?"
He looked to the left. It was his mother!
She came up to him and licked his face. He was overjoyed. He had ... | 5 |
What should I say to a CEO of an automotive company if he asks me to run a marketing campaign for his company? | Run (and run fast) - here are just a few points to consider:
* That's a very unorthodox task for somebody still in the interviewing stage.
* How you going to present a solution you aren't familiar with?
* Since you aren't an employee of said company yet you have no grounds to represent them or even hustle their produc... | 5 |
What does the shebang #! do in a python script? | In order to run the python script, we need to tell the shell three things:
* That the file is a script
* Which interpreter we want to execute the script
* The path of said interpreter
The shebang ```#!``` accomplishes (1.). The shebang begins with a ```#``` because the ```#``` character is a comment marker in many sc... | 5 |
What does CO2 taste like? | CO2 tastes good! Carbonated water is actually a weak carbonic acid solution; this is what you taste. It's like "salt and pepper", but for water.
Slightly acidic water is usually popular, hence lemon juice is sometimes used to taint a jug of water in times when no carbonated water is available.
Carbonated water releas... | 5 |
How can I keep my clothes easily accessible and less messy? | To keep you clothes easily accessible and less messy, one option is getting an IVAR side panel from IKEA.
Lean it against a wall at a slight angle and put these “limbo” clothes over the horizontal bars.
It comes in different sizes, and stands almost entirely flat against the wall if you don't use it. If you want it hid... | 5 |
What are the pros and cons of implementing instant replay in football? | There are a few fundamental considerations:
* Uncertainty is a part of the game. The referee and linesmen are the arbiters of the action. Instant replay would limit their authority.
* Football is global. Many places do not have access to the technology necessary to implement instant replay.
* Football is a fast-paced ... | 5 |
Everyone needs to use a car from time to time, but gas can be expensive. Driving more economically can save you money and keep your car’s parts from wearing quickly. By avoiding aggressive driving, managing gears and electronics, and performing regular maintenance, you can drive more economically no matter where you’re... | Everyone needs to use a car from time to time, but gas can be expensive. Driving more economically can save you money and keep your car’s parts from wearing quickly. By avoiding aggressive driving, managing gears and electronics, and performing regular maintenance, you can drive more economically no matter where you’re... | 5 |
What is the best way to avoid SQL injection attacks in PHP? | The correct way to avoid SQL injection attacks, no matter which database you use, is to separate the data from SQL, so that data stays data and will never be interpreted as commands by the SQL parser. It is possible to create an SQL statement with correctly formatted data parts, but if you don't fully understand the de... | 5 |
Halflings were originally called hobbits prior to a legal challenge.
According to Gary Gygax himself, it was due to a legal claim on "hobbit" by a company who purchased the merchandising rights on Tolkien's works in 1976:
TSR was served with papers threatening damages to the tune of half a mil by the Saul Za... | Halflings were originally called hobbits prior to a legal challenge.
According to Gary Gygax himself, it was due to a legal claim on "hobbit" by a company who purchased the merchandising rights on Tolkien's works in 1976:
TSR was served with papers threatening damages to the tune of half a mil by the Saul Za... | 5 |
PHP
If you don't know enough about the array (you're not sure whether the first key is foo or bar) then the array might well also be, maybe, empty.
So it would be best to check, especially if there is the chance that the returned value might be the boolean FALSE:
```$value = empty($arr) ? $default : reset($arr);
```
T... | PHP
If you don't know enough about the array (you're not sure whether the first key is foo or bar) then the array might well also be, maybe, empty.
So it would be best to check, especially if there is the chance that the returned value might be the boolean FALSE:
```$value = empty($arr) ? $default : reset($arr);
```
T... | 5 |
What is the difference between convolution and correlation? | Convolution is correlation with the filter rotated 180 degrees. This makes no difference, if the filter is symmetric, like a Gaussian, or a Laplacian. But it makes a whole lot of difference, when the filter is not symmetric, like a derivative.
The reason we need convolution is that it is associative, while correlati... | 5 |
What do you think about on a daily basis on your down time at work? | Hannah,
You really want to know what I think about on a daily basis on my down time at work? Do you really want to know what goes on in the inner workings of my mind while you're not around? Well. Here it goes.
My mind is ravaged with thoughts of what my life would be like without you and I don't like it. I'm too young... | 5 |
At the moment, 1990s-themed parties are hugely popular and can be immensely fun if you show up in the right outfit. Start by doing some research into popular celebrities and film or TV characters from the decade to get a sense for the fashions of the 90s. Then decide whether you want to copy an iconic look or riff off ... | At the moment, 1990s-themed parties are hugely popular and can be immensely fun if you show up in the right outfit. Start by doing some research into popular celebrities and film or TV characters from the decade to get a sense for the fashions of the 90s. Then decide whether you want to copy an iconic look or riff off ... | 5 |
Editing or overriding the row in Twitter bootstrap is a bad idea, because this is a core part of the page scaffolding and you will need rows without a top margin. To solve this, instead create a new class "top- | Editing or overriding the row in Twitter bootstrap is a bad idea, because this is a core part of the page scaffolding and you will need rows without a top margin.
To solve this, instead create a new class "top-buffer" that adds the standard margin that you need.
```.top-buffer { margin-top:20px; }```
And then use it... | 5 |
Why can't Gaia be sent to the L2 point behind Neptune? | Well, you thought about the spatial aspect of a parallax measurement, but not about the temporal one.
Gaia's intention is to measure 3D positions as well as 3D velocities. For the distance, you need accurate parallactic measurement, which come in with your orbital period.
For a typical Gaia-star with several measuremen... | 5 |
What's the in-universe explanation for why a gnome is stronger than a goliath in D&D? | D&D is a terrible reality simulator.
The problem that you're having here is that, in real life, most people who are 7 feet tall are going to be faster, stronger, and all-around more physically powerful than a person who is 3 feet tall. If you compare two people of similar athleticism, the person who is 4 feet taller i... | 5 |
I am Fear Lord! Scourge of Humanity, Vanquisher of Captain Pillow, and Grand Ruler of 2/3 of Australia! Bow before me! I write you today on behalf of Consuela! Sc | To whom it may concern,
I am Fear Lord! Scourge of Humanity, Vanquisher of Captain Pillow, and Grand Ruler of 2/3 of Australia! Bow before me!
I write you today on behalf of Consuela! Scourge of Dust, Vanquisher of Laundry, and Grand Maid of Fear Lord Tower.
You shall hire Consuela to do your bidding or you shall hear... | 5 |
Most people have heard of Down syndrome. But there are hundreds of other chromosome disorders a child can have, many of which are diagnosed in only a few children, or may even be unique to that child.
## Get information
1. Learn about genetics. Most people have 46 chromosomes, arranged in 23 pairs. One pair is the se... | Most people have heard of Down syndrome. But there are hundreds of other chromosome disorders a child can have, many of which are diagnosed in only a few children, or may even be unique to that child.
## Get information
1. Learn about genetics. Most people have 46 chromosomes, arranged in 23 pairs. One pair is the se... | 5 |
How can I get the indices of the n highest elements of an array in Python? | If you negate an array, the lowest elements become the highest elements and vice-versa. Therefore, the indices of the `n` highest elements are:
```
(-avgDists).argsort()[:n]
```
Another way to reason about this, as mentioned in the comments, is to observe that the big elements are coming last in the argsort. So, you ca... | 5 |
What is the camel's back? | That's it... the camels back was finally broken.
Author had at last wasted what was the last of James' dwindling patience, and for what? to ship him with the GOD DAMN VILLAIN? everything he's been through, every bit of unwelcome trauma and stress had lead to another overused and boring cliché. he would have preferred h... | 5 |
What is the difference between list.sort() and sorted()? | Python provides two ways to sort a list, the built-in list method `list.sort()` and the built-in function `sorted()`.
The primary difference between the two is that list.sort() will sort the list in-place, mutating its indexes and returning None, whereas sorted() will return a new sorted list leaving the original list... | 5 |
What is the counter variable inside the loop called in jinja2? | The counter variable inside the loop is called loop.index in Jinja2.
```
>>> from jinja2 import Template
>>> s = "{% for element in elements %}{{loop.index}} {% endfor %}"
>>> Template(s).render(elements=["a", "b", "c", "d"])
1 2 3 4
```
In addition to `loop.index`, there is also
* `loop.index0` (index starting at ... | 5 |
> The original IBM PC and later variants used an Intel 8253 or 8254 as a sound chip.
The 8253 is a timer circuit, containing three timers able to generate timed interrupts or square-wave output with programmed frequencies. On the PC the third timer's output is, via an amplifier, connected to a simple speaker.
As said... | > The original IBM PC and later variants used an Intel 8253 or 8254 as a sound chip.
The 8253 is a timer circuit, containing three timers able to generate timed interrupts or square-wave output with programmed frequencies. On the PC the third timer's output is, via an amplifier, connected to a simple speaker.
As said... | 5 |
###Piloting
A crew member who is controlling a helm gains one point of experience for each incoming projectile that is dodged during combat. This includes asteroids, so long as you are in combat at the time. (Note that the dodges do not count while you ship is under the effects of +60% evasion from a cloak.)
This can... | ###Piloting
A crew member who is controlling a helm gains one point of experience for each incoming projectile that is dodged during combat. This includes asteroids, so long as you are in combat at the time. (Note that the dodges do not count while you ship is under the effects of +60% evasion from a cloak.)
This can... | 5 |
What is the best way to create a temporary file in Android? | Here is an example:
```
File outputDir = context.getCacheDir(); // context being the Activity pointer
File outputFile = File.createTempFile("prefix", ".extension", outputDir);
```
Explanation:
1. The `getCacheDir()` method returns the directory on the filesystem where your app can create cache files.
2. The `createTem... | 5 |
🚨Life Update🚨 | 🚨Life Update🚨
From next week I’m C-Data-O of Awesome.AI! 🤩
🙏 Radical.AI - will miss you all! | 5 |
You can do stretches, strengthening and breathing exercises to improve your posture. But you also have to become aware of your posture and find a way to interrupt prolonged sitting intervals with brief breaks. A good ergonomic chair is also helpful.
## Musculo-Skeletal Effects of Poor Sitting Posture
Poor sitting po... | You can do stretches, strengthening and breathing exercises to improve your posture. But you also have to become aware of your posture and find a way to interrupt prolonged sitting intervals with brief breaks. A good ergonomic chair is also helpful.
## Musculo-Skeletal Effects of Poor Sitting Posture
Poor sitting po... | 5 |
What is the worst thing that could happen to Alex? | An awful ache appeared as Alex, abused and alone, agonisingly approached annihilation - and an afterlife. | 5 |
What do you do when you find a book titled "I Know Your Secret, Elongated Muskrat"? | I stand there, shocked, unmoving as people scuttle by through the busy streets of New York. Some even give me confused looks. I return the look- the confusion isn’t directed at them though, it’s directed at the small, pamphlet-type book that sits alone on a small bookshelf in this even smaller shop. I stumble in, forge... | 5 |
```git cherry-pick -p``` doesn't exist. What can I do instead? | The core thing you're going to want here is ```git add -p``` (```-p``` is a synonym for ```--patch```). This provides an interactive way to add in content, letting you decide whether each hunk should go in or not, and even letting you manually edit the patch if necessary.
To use it in combination with cherry-pick:
```g... | 5 |
```git checkout -f donor-branch # replace bothersome files with tracked versions
git checkout receiving-branch # tracked bothersome files disappear
git merge donor-branch # merge works```
```git | Safely remove/overwrite only bothersome files
When you want to ```merge```:
```git checkout -f donor-branch # replace bothersome files with tracked versions
git checkout receiving-branch # tracked bothersome files disappear
git merge donor-branch # merge works
```
When you want to ```pull```:
```git fetch
gi... | 5 |
The ability to hold your breath for a long period of time is a much sought-after skill. Maybe you want to last longer underwater while diving or surfing, or maybe you're just looking for an impressive party trick. Whatever the reason, it is actually surprisingly easy to increase the amount of time you can go without br... | The ability to hold your breath for a long period of time is a much sought-after skill. Maybe you want to last longer underwater while diving or surfing, or maybe you're just looking for an impressive party trick. Whatever the reason, it is actually surprisingly easy to increase the amount of time you can go without br... | 5 |
What technologies do you think will become obsolete within the next decade? | Given the fast pace of technological advances, it is difficult to predict which technologies will become obsolete over the next decade. Here are a few possibilities:
* Flash drives: As wireless communication between all devices becomes easier and faster, the need to use physical drives to transfer data will become rel... | 5 |
strong/weak can be thought of in relation to how the compiler, if applicable, handles typing.
* Weakly typed means the compiler, if applicable, doesn't enforce correct typing. Without implicit compiler interjection, the instruction will error during run-time.
```"12345" * 1 === 12345 // string * number => number
```... | strong/weak can be thought of in relation to how the compiler, if applicable, handles typing.
* Weakly typed means the compiler, if applicable, doesn't enforce correct typing. Without implicit compiler interjection, the instruction will error during run-time.
```"12345" * 1 === 12345 // string * number => number
```... | 5 |
How did you come up with the characters Tom Sawyer and Huckleberry Finn? | Dear [Author Name],
It has come to my attention that you have published a series of books about the characters Tom Sawyer and Huckleberry Finn. I would like to know, sir, where you received your inspiration for these characters.
When I was a young man, and an aspiring writer, I invented two characters who had a variet... | 5 |
What is the difference between network encryption and application encryption? | Network encryption protects against different set of threats than application layer encryption like TLS.
In particular, network encryption like Wifi encryption are primarily designed to protect from a local attacker from being able to watch network patterns (by recording who you're making connections with, and discover... | 5 |
How do I make a virtual directory in IIS? | When this happens the easiest solution is to make the virtual directory manually.
First of all, you need to make sure you have the right version of ASP.Net installed and that you have installed the IIS extensions.
To do this, go to the relevant .net version's folder in C:\(Windows)\Microsoft.NET\Framework\(dotnetver)\... | 5 |
What happened to George Washington? | The young man was walking by the street when he stepped on a small, thin, white book. He looked at it, kneeling down to pick it up. The man analyzed it left to right. It looked familiar, like one of those Anime's he watched, except the wording was different. It said life instead of death, which was weird.
The man thoug... | 5 |
What are the major factors that affect depth of field in photography? | I'm going to dispense with the formulas, photos of rulers and definitions of "magnification" and go with what you actually experience in practice. The major factors that actually matter to shooting are:
* Aperture. Wide aperture lenses give you a shallower depth of field. This is probably the least controversial facto... | 5 |
What is the University of Chicago Booth School of Business? | The University of Chicago Booth School of Business is one of the top business schools in the world. It offers a full-time MBA program as well as part-time and executive programs. The school has over 50,000 alumni around the globe who are leaders in their fields.
Booth's rigorous curriculum emphasizes analytical thinki... | 5 |
Why should I cover my mouth when I cough or sneeze? | One reason is to prevent droplet infection. When you cough or sneeze, droplets are expelled from your mouth which can infect others if they come into contact with them. By covering your mouth, you reduce the number of droplets in the air.
Another reason is to prevent the spread of germs on surfaces. When you cough or s... | 5 |
Navigating the depths of love is hard to say the least. This is especially true when you're trying to be a good friend and tasked with investigating the true feelings of a friend's crush. With some intuition and old-fashioned honesty, you can make the complicated game of love a little bit easier.
## Make honesty work
... | Navigating the depths of love is hard to say the least. This is especially true when you're trying to be a good friend and tasked with investigating the true feelings of a friend's crush. With some intuition and old-fashioned honesty, you can make the complicated game of love a little bit easier.
## Make honesty work
... | 5 |
Washington DC is a great city to visit steeped in history and culture. You can definitely see a lot in two days. Here are some suggestions for your two-day itinerary:
Day 1:
* Sightseeing guideline: White House (1 hour) → Washington Monument (1 hour) → National WWII Memorial (1 hour) → Lincoln Memorial (1 hour) → Je... | Washington DC is a great city to visit steeped in history and culture. You can definitely see a lot in two days. Here are some suggestions for your two-day itinerary:
Day 1:
* Sightseeing guideline: White House (1 hour) → Washington Monument (1 hour) → National WWII Memorial (1 hour) → Lincoln Memorial (1 hour) → Je... | 5 |
Yes, some gases can diffuse into and through metal. It is the bane of the high-vacuum engineer's life. Hydrogen is the worst because it tends to dissociate into atoms at the surface and the nucleus, a single proton, can then leave its electron behind and wander through the metal lattice until it picks up another electr... | Yes, some gases can diffuse into and through metal. It is the bane of the high-vacuum engineer's life. Hydrogen is the worst because it tends to dissociate into atoms at the surface and the nucleus, a single proton, can then leave its electron behind and wander through the metal lattice until it picks up another electr... | 5 |
When your Form I-140 petition is approved, you will receive a Form I-797 Notice of Action. You can get a copy of this notice by sending a request to the United States Citizenship and Immigration Services (USCIS) department. However, you might want a copy of the Form I-140 petition itself. In this situation, you will ne... | When your Form I-140 petition is approved, you will receive a Form I-797 Notice of Action. You can get a copy of this notice by sending a request to the United States Citizenship and Immigration Services (USCIS) department. However, you might want a copy of the Form I-140 petition itself. In this situation, you will ne... | 5 |
Neck acne can be as frustrating as acne on your face. The skin on your neck is thicker than the skin on your face (the acne that appears here is more like body acne than face acne) and may produce more oil, sometimes leading to more severe acne or cystic lesions. The best way to get rid of neck acne is with a good clea... | Neck acne can be as frustrating as acne on your face. The skin on your neck is thicker than the skin on your face (the acne that appears here is more like body acne than face acne) and may produce more oil, sometimes leading to more severe acne or cystic lesions. The best way to get rid of neck acne is with a good clea... | 5 |
Tres formas diferentes de hacerlo:
1. Utilizando la función ```String.split()``` :
``` String str = "123-654321";
String[] parts = str.split("-");
```
Esta solución utiliza expresiones regulares, así que no es lo más eficiente si no estas trabajando con ellas.
2. Utilizando la clase ```StringTokenizer``` :
```static ... | 5 | |
Doe's growth model (Doe, 2010) | This is, unfortunately, a case where English grammar can be tricky and exactly how you phrase things is going to matter.
It is often seen a presumptuous to name something after yourself: "Newton's Laws" and "Hawking radiation" and "Rayleigh scattering" are retrospective judgements of significance by the community. Cla... | 5 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6