messages
listlengths
2
20
[ { "content": "The following article from CNN describes a Michigan police officer being put on administrative leave for having KKK material at his home: https://www.cnn.com/2019/08/10/us/michigan-officer-placed-on-leave-kkk-document-house/index.html. The materials were discovered while a potential buyer was tour...
[ { "content": "What does strength refer to in mathematics? Is it a formal idea?", "role": "user" }, { "content": "Suppose you have a theorem that says \"If $X$, then $Y$.\" There are two ways to strengthen such a theorem:\n\n* Assume less. If you can reduce the number of hypotheses, but still prove...
[ { "content": "Does vegetarianism affect life expectancy?\nIs an average vegetarian supposed to live longer just because of their diet?", "role": "user" }, { "content": "Yes, according to a paper by the American Society for Clinical Nutrition.\n\n> Results: Our review of the 6 studies found the follo...
[ { "content": "What is the difference between an object and a companion object in a class in kotlin?\nExample:\n```class MyClass {\n object Holder {\n //something\n }\n companion object {\n //something\n }\n}\n```\nI already read that companion object shall be used, if the containing pa...
[ { "content": "I've rooted my phone. Now what? What do I gain from rooting?", "role": "user" }, { "content": "In few words, rooting an Android system means overcome the limitations that were imposed over it by the manufacturer. People may want that for different reasons, but the main one is freedom...
[ { "content": "Is there a better way to determine whether a variable in ```Pandas``` and/or ```NumPy``` is ```numeric``` or not ? \nI have a self defined ```dictionary``` with ```dtypes``` as keys and ```numeric``` / ```not``` as values.", "role": "user" }, { "content": "You can use ```np.issubdtype`...
[ { "content": "I've come across the polynomial algorithm that solves 2SAT. I've found it boggling that 2SAT is in P where all (or many others) of the SAT instances are NP-Complete. What makes this problem different? What makes it so easy (NL-Complete - even easier than P)?", "role": "user" }, { "cont...
[ { "content": "Why isn't Sectumsempra an Unforgivable Curse?", "role": "user" }, { "content": "Not many people knew Sectumsempra - they'd need to know it exists to ban it.\nSeverus Snape invented Sectumsempra while at Hogwarts, and wrote it down in his Potions book. He doesn't seem to have told many...
[ { "content": "How can I add a delay to a program in C#?", "role": "user" }, { "content": "Use a timer with an interval set to 2–3 seconds.\nYou have three different options to choose from, depending on which type of application you're writing:\n\n* ```System.Timers.Timer```\n* ```System.Windows.Form...
[ { "content": "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:\n```cp -Rf foo/ bar/\n```\na new ```bar/foo/``` directory is created. I don't want that. There are two files in ```foo/```...
[ { "content": "Is there a particular reason the elves die off so fast? After the first war against Sauron, I recall the elves being decimated, to the point that they're almost useless army-wise in the trilogy. But I'm guessing men suffered equal or greater losses as well.\nAnyways, other races just seem much mor...
[ { "content": "Reasons for being vegetarian or vegan other than ethical reasons?", "role": "user" }, { "content": "There are multiple reasons why people are/become Vegetarian/Vegan apart from ethics, including but not limited to\n\n* Religion/Culture - most of the worlds Vegetarians reside in India, ...
[ { "content": "My mom has a green card that expires 2028 but has been out of the US in the UK for over a year due to COVID travel restrictions. Can she enter now?", "role": "user" }, { "content": "Assuming she doesn't have a valid Re-entry Permit, she technically doesn't have one of the accepted docu...
[ { "content": "What is the LXX and why is it so noteworthy that there is a Greek translation of the OT? Wouldn't it be better to directly reference manuscripts in the original languages?", "role": "user" }, { "content": "Before 1947, a good case could be made that the Septuagint represented a more an...
[ { "content": "I have to disable inputs at first and then on click of a link to enable them.\nThis is what I have tried so far, but it doesn't work.\nHTML:\n```\n```\njQuery:\n```$(\"#edit\").click(function(event){\n event.preventDefault();\n $('.inputDisabled').removeAttr(\"disabled\")\n});\n```\n\nThis sho...
[ { "content": "I'm no expert in darkroom photography, but it seems a little odd that there is a type of light that doesn't affect film or developing paper etc. So why is a dark-room safelight safe?", "role": "user" }, { "content": "Photo films and papers are made from salts of silver that naturally o...
[ { "content": "With the command:\n```ls -la *\n```\nI can list all my symbolic links. \nHow can I remove all symbolic links which are linked to a special folder?\nFor example:\nIn my directory ```usr/local/bin``` I have the following entries:\n```lrwxrwxrwx 1 root root 50 Apr 22 14:52 allneeded -> /usr/local/tex...
[ { "content": "Did Aztecs know how many continents there are on earth?", "role": "user" }, { "content": "Do you know how many continents there are on Earth? Is Europe a separate continent from Asia? Is Australia the biggest island or the smallest continent? Is Antarctica an ice-locked archipelago or ...
[ { "content": "What did the Soviet Union and Russia bring to the ISS?", "role": "user" }, { "content": "Initially, everything. The ISS started out as Mir-2 with some extra modules added soon afterwards. Then lots more over the next 10 years.\nThe initial modules, Zarya and Zvezda, which housed living...
[ { "content": "What utility can move my Windows boot partition over to another hard drive?\nMy preference is that it would be really easy. \n\n* Boot into Windows\n* Pick drive to move\n* Pick target drive\n* It copies everything over, and reboots to the correct partition.", "role": "user" }, { "cont...
[ { "content": "What's the difference between ASCII and Unicode?", "role": "user" }, { "content": "ASCII has 128 code points, 0 through 127. It can fit in a single 8-bit byte, the values 128 through 255 tended to be used for other characters. With incompatible choices, causing the code page disaster....
[ { "content": "Reasons why healthy people would intentionally want to get infected?", "role": "user" }, { "content": "Because some self-proclaimed health guru claims that it's good for you to have that disease.\n\nThe miracle-virus causes your body to absorb free cosmic energies. Your constantly rais...
[ { "content": "In The Avengers, the Council contacted Nick Fury and supposedly, they want to nuke Manhattan. Nick didn't agree so they contacted a S.H.I.E.L.D. operative to nuke Manhattan.\nWhen they found out that an unauthorized jet was trying to fly, Nick grabbed a rocket launcher and fired it at the jet, whi...
[ { "content": "Since I created my repository it appears that the tags I have been\ncreating are not pushed to the repository. When I do ```git tag``` on the\nlocal directory all the tags are present, but when I logon to the\nremote repository and do a ```git tag```, only the first few show up.\nWhat could the pr...
[ { "content": "How do I add Git submodule to a sub-directory?", "role": "user" }, { "content": "You go into ~/.janus and run:\n\n```git submodule add <git@github ...> snipmate-snippets/snippets/```\n\nIf you need more information about submodules (or git in general) ProGit is pretty useful.", "ro...
[ { "content": "Given that Kohn-Sham DFT is strictly a ground-state method (at 0 K), how is it sufficient to describe materials in real-life applications?", "role": "user" }, { "content": "These are a few extra points to complement Andrew Rosen's comprehensive response:\n\n* To be absolutely clear, ty...
[ { "content": "I don't really get the difference between gain and volume boost.\n\nSo if I understand correctly, gain directly boosts a signal from a line or input while volume handles the output. Volume isn't really for boosting either.\nWould this mean, in most settings, getting 'close to' as much gain as poss...
[ { "content": "I recently had someone claim (on an unrelated SE site I won't link to) that it is the responsibility of a player to correctly identify their hand, that what you &quot;call&quot; your hand determines the winner:\n\nFor example, you have an Ace, King, Queen, Jack, and Ten. You call your hand and say...
[ { "content": "How to get the first item from an associative PHP array?", "role": "user" }, { "content": "PHP \nIf 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.\nSo it would be best to check, especially if ...
[ { "content": "Why do people write #!/usr/bin/env python on the first line of a Python script?", "role": "user" }, { "content": "In order to run the python script, we need to tell the shell three things:\n\n* That the file is a script\n* Which interpreter we want to execute the script\n* The path of ...
[ { "content": "Nowadays each graphic card has some driver in operating system that translates some (typically) standard API such as OpenGL, so that programmers use some standardized API code to tell graphics cards how and what they want to render. (Actually that's already a bit hard-core most programmers really ...
[ { "content": "Why is it \"behead\" and not \"dehead\"?", "role": "user" }, { "content": "We didn’t use de-head because we already had a verb behead by the time we started using de- to create verbs: behead was a verb in Old English, behéafdian. \n\nSo behead was already used long before the de- priva...
[ { "content": "Why do many vinyl albums of classical music have Sides 1 / 4 on the first record and 2 / 3 on the second? An example of this is the RCA Red Seal recording of Beethoven's 9th Symphony by the Boston Symphony Orchestra.", "role": "user" }, { "content": "Many phonographs were able to play ...
[ { "content": "Why isn't the market dropping like a stone with all the bad news?", "role": "user" }, { "content": "Market reactions to information are not always timely, proportional, or rational. \nWe don't know the full impact of our current situation; we're feeling it out.\n\n* Some people (bulls)...
[ { "content": "What are Null Pointer Exceptions (```java.lang.NullPointerException```) and what causes them?\n\nWhat methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?", "role": "user" }, { "content": "There are two overa...
[ { "content": "In Raiders of the Lost Ark, at the Ark opening ceremony the Nazi troops brings the Ark of the Covenant to the top of the mountain as Belloq said something before opening the Ark. Then they took the sand from the Ark and suddenly spirits coming out from the Ark and they're all killed (except Indy a...
[ { "content": "What is likely to happen when you plug two ends of a network cable to a single switch/router? Will this create problems on the network, or just be ignored?", "role": "user" }, { "content": "It depends on the router/switch. \nIf it's \"Managed\" - Like decent Netgear, Cisco or HP Procur...
[ { "content": "What command do I use to find the size of all the files (recursively) in a Linux or Mac OS X directory?", "role": "user" }, { "content": "The BSD version of ```du``` used in OS X reports size with 512-byte blocks -- the sizes are essentially rounded up to the next 512-byte value. This ...
[ { "content": "I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e.\n```MyClass *m = (MyClass *)ptr;\n```\nall over the place, but there seem to be two other types of casts, and I don't know t...
[ { "content": "Why don't toilets use saltwater?", "role": "user" }, { "content": "The main answer is logistical. Building a network of pipes to convey water to houses is a major effort, and most places where that's been done found it extremely expensive. Providing a second set of pipes to bring salt ...
[ { "content": "How do I modify fields inside the new PostgreSQL JSON datatype?", "role": "user" }, { "content": "With Postgresql 9.5 it can be done by following-\n```UPDATE test\nSET data = data - 'a' || '{\"a\":5}'\nWHERE data->>'b' = '2';\n```\nOR\n```UPDATE test\nSET data = jsonb_set(data, '{a}', ...
[ { "content": "I find that the survivability and general performance of my party increases massively from levels 1 to 2. At times, level 1 feels like a completely different game from level 2. However, I can't fathom how or why. I think that the availability of healing has something to do with it. From a mechanic...
[ { "content": "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.\nSo I get an exception, when I call:\n```[mainTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSe...
[ { "content": "While in Phd I developed a lot of code that I want to turn into start-up. Can I do this?", "role": "user" }, { "content": "I'm not aware of any blanket prohibition, anywhere, that say that you can't use code developed during a PhD for a commercial venture - but most Universities in the...
[ { "content": "I have heard multiple times in photography, the words Bokeh, and Gaussian Blur. To me, it seems that the words are used almost interchangeably, but in some instances, I have heard them contrasted. What's the difference, and what are the definitions of each of them?", "role": "user" }, { ...
[ { "content": "In 1969, NASA not only went to the moon, but broadcast the whole thing live on TV.\nHow did they achieve the TV broadcast? What technology did they need to use to send a video and audio signal from the moon to earth? Was there much of a lag?", "role": "user" }, { "content": "Apollo 11 ...
[ { "content": "Why does \"elite\" rhyme with \"beet\" rather than \"bite\"?", "role": "user" }, { "content": "This has everything to do with the following:\n\n* The language of origin of the word and\n* The point at which the word entered the English language.\n\nThe reason that the words &quot;light...
[ { "content": "A lot of ShaderToy demos share the Ray Marching algorithm to render the scene, but they are often written with a very compact style and i can't find any straightforward examples or explanation.\nSo what is Ray Marching? Some comments suggests that it is a variation of Sphere Tracing. What are the ...
[ { "content": "Is martial arts training 'inadequate' for the real world?", "role": "user" }, { "content": "Yes, depending on your definitions of martial arts, inadequate, and real world.\nNo, depending on your definitions of martial arts, inadequate, and real world.\n\nSurviving an attack (or combat)...
[ { "content": "Make a single page landscape in Google Documents", "role": "user" }, { "content": "Currently a single Google Document can only be either Landscape or Portrait not both. Changing page orientation is done by selecting File and then Page setup.\n\nIt is currently recommended to separate t...
[ { "content": "PHP is writing this error in the logs: \"Notice: Use of undefined constant\".\nError in logs:\n```PHP Notice: Use of undefined constant department - assumed 'department' (line 5)\nPHP Notice: Use of undefined constant name - assumed 'name' (line 6)\nPHP Notice: Use of undefined constant email -...
[ { "content": "I'm from a very rural area and love to garden, however, for work I just moved into an apartment in the city. I miss being able to grow vegetables and so I attempted to start some leaf lettuce indoors, however, almost every plant died quickly. I'm just curious, does anyone have experience growing v...
[ { "content": "What are the advantages of studying words by their frequency?", "role": "user" }, { "content": "The main advantage is that by learning higher frequency words, you get a greater \"bang for your buck\" - that is, if you know the most frequent words of the language, you'll be able to unde...
[ { "content": "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.", "role": "user" }, { "content"...
[ { "content": "How to decrypt Jenkins passwords from credentials.xml?", "role": "user" }, { "content": "There is a `hudson.util.Secret.decrypt()` function which can be used for this, so:\n\n1. In Jenkins, go to: `/script` page.\n2. Run the following command:\n```println(hudson.util.Secret.decrypt(\"{...
[ { "content": "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.\nIs the speed of a horse actually significantly f...
[ { "content": "Other than rust, corrosion, and other reactions with air that would make the use of a metal unfavorable, how do different metals affect the performance?\nLet's give Yagi an example:\nLet's say I use 4 different metals for the directors\n, reflector, and driven element.\nOne antenna made out of cop...
[ { "content": "Windows in its earliest days was simply a shell that ran on top of MS-DOS, which means that Windows 3.1 itself was actually just a standard MS-DOS application like any other.\nYet, MS-DOS is not a multitasking operating system, and at the same time, Windows applications were compiled native-code b...
[ { "content": "I'm working on 2 different branches: release and development. \nI noticed I still need to integrate some changes that were committed to the release branch back into the development branch. \nThe problem is I don't need all of the commit, only some hunks in certain files, so a simple \n```git che...
[ { "content": "In Civilization V, you attain a cultural victory by accumulating enough culture to purchase at least 36 social policies, and then building a wonder. The catch is that the more cities you build, the more culture you need to generate before you hit the next \"plateau\" of culture.\nWhat is the ideal...
[ { "content": "How to find if a customer is logged in or not in Magento 2.\nIf the customer is logged in then how to get customer data from a session?", "role": "user" }, { "content": "It is possible via ```Magento\\Framework\\App\\Http\\Context``` or via ```Magento\\Customer\\Model\\Session```. Howe...
[ { "content": "I have a 9 year old daughter that has expressed some interest in manga, but I'm having trouble locating series that are appropriate for her age. No one at our local bookstore could offer any advice. Is there a kid-friendly imprint or other resource I could use to help her find something appropriat...
[ { "content": "I'm looking for a precise piece of information in a database which I have no knowledge about. The database is on a separate machine, but I can log into it, and launch a ```psql``` command line, with administrator rights.\nIt's a third-party product, and they are slow to answer questions. I know th...
[ { "content": "I am using Visual Studio Code and have a fairly common project structure:\n```├── client/\n│ ├── tsconfig.json\n├── shared/\n├── server/\n│ ├── tsconfig.json\n├── project.json\n```\nThe two tsconfig files have different settings (e.g. the one under ```client/``` targets ES5, the one under ```s...
[ { "content": "I have the following method to save an Object to a file:\n```// Save an object out to the disk\npublic static void SerializeObject(this T toSerialize, String filename)\n{\n XmlSerializer xmlSerializer = new XmlSerializer(toSerialize.GetType());\n TextWriter textWriter = new StreamWriter(file...
[ { "content": "I have a problem with the embedded bitcode term.\nWhat is embedded bitcode?\nWhen to enable, ```ENABLE_BITCODE``` in new Xcode?\nWhat happens to the binary when enabled, ```ENABLE_BITCODE``` in Xcode 7? ", "role": "user" }, { "content": "> What is embedded bitcode?\nAccording to docs:...
[ { "content": "In Dupire's local volatility model, the volatility is is a deterministic function of the underlying price and time, chosen to match observed European option prices.\nTo be more specific, given a smooth surface $(K,T)\\mapsto C(K,T)$ where K is the strike and T is time to maturity. Dupire equation ...
[ { "content": "Can you explain why we need a large number of trees in random forest when the number of predictors is large? How can we determine the optimal number of trees?", "role": "user" }, { "content": "Random forest uses bagging (picking a sample of observations rather than all of them) and ra...
[ { "content": "I believe artificial intelligence (AI) term is overused nowadays. For example, people see that something is self-moving and they call it AI, even if it's on autopilot (like cars or planes) or there is some simple algorithm behind it.\nWhat are the minimum general requirements so that we can say so...
[ { "content": "I have some questions regarding the usage and significance of the ```synchronized``` keyword. \n\n* What is the significance of the ```synchronized``` keyword?\n* When should methods be ```synchronized```?\n* What does it mean programmatically and logically?", "role": "user" }, { "cont...
[ { "content": "I am using the ```$http``` service of AngularJS to make an Ajax request. \nHow can a spinner GIF (or another type of busy indicator) be shown while the Ajax request is executing?", "role": "user" }, { "content": "This really depends on your specific use case, but a simple way would fol...
[ { "content": "Let's say that we have a gaseous or liquidus compound (I don't know if elements or compounds make a difference, take this as a thought experiment), and we have a tungsten or steel block that's 5cm (or less, you choose) thick. Is there any physical method for that gas or liquid to pass through that...
[ { "content": "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. ...
[ { "content": "The Canon EF 40mm f/2.8 has a designation of STM on the lens. What does this mean? What are the advantages of having it and does it replace an older technology?\n", "role": "user" }, { "content": "STM stands for Stepper Motor and is a applied to a new range of Canon lenses which featur...
[ { "content": "I'm trying to set get id of all elements in an ```HTMLCollectionOf```. I wrote the following code:\n```var list = document.getElementsByClassName(\"events\");\nconsole.log(list[0].id);\nfor (key in list) {\n console.log(key.id);\n}\n```\nBut I got the following output in console:\n```event1\nun...
[ { "content": "I am 21 years old and living in a large city in Germany where smalltalk in local markets is not a common thing.\nA new cashier joined my local food shop. She’s always at the checkout and never doing stuff like sorting products or cleaning the floor where I could actually ask her out. I am quite ne...
[ { "content": "You start with the number 1536. Your mission is to get to 1 in as few steps as possible. At each step, you may either multiply or divide the number you have, by either 2 or 3; but, only if the result is a whole number whose first digit is 1, 3, 4, or 9. That is all.", "role": "user" }, { ...
[ { "content": "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...
[ { "content": "Why is %s better than + for concatenation in python?", "role": "user" }, { "content": "There are several benefits of using ```%s``` over ```+``` for string concatenation in Python:\n* Readability. The format string syntax is more readable, as it separates style from the data. Also, in ...
[ { "content": "I had an interview with an employer working on a software-based vehicle solution.\nBefore going further in the interview process, he gave me a task to find out if a potential customer (automotive OEMs) is interested.\nMy question is, how can I approach a potential customer and arrange some time to...
[ { "content": "When an expendable booster rocket stage nears the end of its burn, does the guidance computer shut the engine(s) off at a certain velocity/altitude for the mission, or does the stage completely exhaust its propellants?", "role": "user" }, { "content": "First stages are generally run to...
[ { "content": "Is &quot;ima&quot; an informal spelling of &quot;I must&quot;?\n\nMegaCharizardZord Replying to @nytimes about COVID-19 vaccine:\ni just hope when i take it don't die lol. i trust the government in Canada, but if I do get something ima sue the shit out of em lol.\n\n\nSource: Twitter\n", "ro...
[ { "content": "How to prevent \"Delhi Belly\" from eating/drinking locally?", "role": "user" }, { "content": "Basically, you can't.\nThe world is full of gastrointestinal (GI) diseases, even in developed, First World nations. There are some decent steps to trying to minimize your exposure:\n\n* Prope...
[ { "content": "I'm working at my first programming job. My boss is a very smart software engineer, and I feel\nlike I have very little to offer compared to him. Problem is, he is always busy, and needs someone to help him out. I feel like I'm not good enough, but I still want to succeed. I want to be a great pro...
[ { "content": "Can I pass variables to a GNU Makefile as command line arguments? In other words, I want to pass some arguments which will eventually become variables in the Makefile.", "role": "user" }, { "content": "You have several options to set up variables from outside your makefile:\n\n* From e...
[ { "content": "I have noticed that some games quote the requirement for \"pixel shader 3.0 or better\". \nWhat is a pixel shader and is it some software requirements or hardware requirements?", "role": "user" }, { "content": "Simple answer\nPixel shaders are tiny programs that can do operations on a ...
[ { "content": "Red light facing forwards? It was nighttime in Manhattan. Isn't more always better when it comes to being seen?", "role": "user" }, { "content": "No. You should always ride with a white light facing forward and a red light facing backwards. If you want additional illumination, you can ...
[ { "content": "If water is not a good conductor, why are we advised to avoid water near electricity (no wet hands near circuits etc.)?", "role": "user" }, { "content": "&quot;Pure&quot; water is a very poor conductor (resistivity is actually used as a measure of purity).\n&quot;Real&quot; water is no...
[ { "content": "What is the difference between cohesion and coupling?\nHow can coupling and cohesion lead to either good or poor software design?\nWhat are some examples that outline the difference between the two, and their impact on overall code quality?", "role": "user" }, { "content": "Cohesion re...
[ { "content": "Can Romex (NM-B) cable be run through conduit?", "role": "user" }, { "content": "Yes, NM (Romex) cable can be in conduit. In fact, National Electrical Code (NEC() calls for it to be in conduit, when protection from physical damage is required. But it really isn't worth it.\n\n## It's a...
[ { "content": "Let's say I have a function which takes an ```std::function```:\n```void callFunction(std::function x)\n{\n x();\n}\n```\nShould I pass ```x``` by const-reference instead?:\n```void callFunction(const std::function& x)\n{\n x();\n}\n```\nDoes the answer to this question change depending on w...
[ { "content": "I have an Eloquent model which has a related model:\n```public function option() {\n return $this->hasOne('RepairOption', 'repair_item_id');\n}\npublic function setOptionArrayAttribute($values)\n{\n $this->option->update($values);\n}\n```\nWhen I create the model, it does not necessarily hav...
[ { "content": "NASA is hiring a new 'planetary protection officer' to defend Earth from alien matter, and the pay is a six-figure salary: as much as $187,000 a year.\nWhen we are not sure whether aliens exist, why are we still hiring staff for protecting Earth? I do understand we have to take precautions. But wh...
[ { "content": "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 ...
[ { "content": "Laravel - Eloquent \"Has\", \"With\", \"WhereHas\" - What do they mean? explain in the context of an example", "role": "user" }, { "content": "With\n```with()``` is for eager loading. That basically means, along the main model, Laravel will preload the relationship(s) you specify. This...
[ { "content": "What are some of the advantages of using one over the other?", "role": "user" }, { "content": "ASP.NET Web Forms and MVC are two web frameworks developed by Microsoft - they are both good choices. Neither of the web frameworks are to be replaced by the other nor are there plans to hav...
[ { "content": "What factors determine the maximum altitude for a plane?\nIs it limited by wing design, engine thrust, and so on?\nIs there a formula by which one can calculate the maximum altitude a plane can reach?", "role": "user" }, { "content": "The higher you get, the lower the density of the ai...
[ { "content": "Why did the Typescript folks create the ```infer``` keyword?\nAccording to the documents, this is an example of how you would use it:\n```type ReturnType = T extends (...args: any[]) => infer R ? R : any;\n```\nI don't understand why this is needed. Why can't it just be:\n```type ReturnType = T ex...
[ { "content": "Which is more widely supported: ```window.onload``` or ```document.onload```?", "role": "user" }, { "content": "When do they fire?\n```window.onload```\n\n* By default, it is fired when the entire page loads, including its content (images, CSS, scripts, etc.).\n\nIn some browsers it no...
[ { "content": "I was surprised to learn that Puerto Ricans, despite living in a US territory, were not entitled to vote in the presidential elections.\nI was even more surprised to learn that US citizens are allowed to vote for president from anywhere in the world - EXCEPT if they happen to live in Puerto Rico.\...