messages listlengths 2 2 | source stringclasses 6 values | task_type stringclasses 9 values | response_format stringclasses 6 values | style stringclasses 5 values | focus stringlengths 0 57 | prefix stringlengths 21 81 |
|---|---|---|---|---|---|---|
[
{
"content": "Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.\n\nI don't understand the... | stackexchange | general | detailed | technical | Government, Congress | [technical|general|detailed] [Government, Congress] |
[
{
"content": "Why are people unwilling to share information about their salary?",
"role": "user"
},
{
"content": "[technical|explanation|prose]\nPeople are unwilling to talk openly about their salaries because there is a social taboo surrounding the practice. \nLike all taboos, there isn't necessari... | stackexchange | explanation | prose | technical | [technical|explanation|prose] | |
[
{
"content": "In D&D, how many attacks can a fighter with two-weapon fighting make at 5th level?",
"role": "user"
},
{
"content": "[technical|factual|detailed]\nAnswer: 3 attacks on your turn (if you don't use Action Surge). (It could go up to five with Action Surge, though.)\n\nThe Two-Weapon Fight... | stackexchange | factual | detailed | technical | [technical|factual|detailed] | |
[
{
"content": "Consider the following code:\n```avgDists = np.array([1, 8, 6, 9, 4])\nids = avgDists.argsort()[:n]\n```\nThis gives me indices of the ```n``` smallest elements. Is it possible to use this same ```argsort``` in descending order to get the indices of ```n``` highest elements?",
"role": "user"
... | stackexchange | code | code | technical | np.array, avgDists.argsort | [technical|code|code] [np.array, avgDists.argsort] |
[
{
"content": "Can a woman give birth to twins with different fathers?",
"role": "user"
},
{
"content": "[technical|general|prose]\nYes, this is possible through something called heteropaternal superfecundation (see below for further explanation).\nOf all twin births, 30% are identical and 70% are no... | stackexchange | general | prose | technical | [technical|general|prose] | |
[
{
"content": "Relationship between SVD and PCA. How to use SVD to perform PCA?",
"role": "user"
},
{
"content": "[technical|howto|detailed] [SVD, PCA]\nLet the real values data matrix $\\mathbf X$ be of $n \\times p$ size, where $n$ is the number of samples and $p$ is the number of variables. Let us... | stackexchange | howto | detailed | technical | SVD, PCA | [technical|howto|detailed] [SVD, PCA] |
[
{
"content": "What is the English term for when someone thinks they are doing something nice for you but it ends up making things worse. EX: Someone buys you an elephant -- nice gesture and cool! But now you have to take care of it, and it becomes a burden on you.",
"role": "user"
},
{
"content": "[... | stackexchange | explanation | prose | technical | EX, English, Someone | [technical|explanation|prose] [EX, English, Someone] |
[
{
"content": "Did Hillary Clinton propose to punish flag burners in 2005?",
"role": "user"
},
{
"content": "[technical|general|detailed] [Hillary, Clinton]\nThe proposed law co-sponsored by Clinton in 2005 prohibits flag burning under specific circumstances. It does not attempt to make flag burning ... | stackexchange | general | detailed | technical | Hillary, Clinton | [technical|general|detailed] [Hillary, Clinton] |
[
{
"content": "There are several questions here about the definition of depth of field, about focal length, and about subject distance. And of course there's the basic how does aperture affect my photographs. And plenty of how do I get super-shallow d.o.f questions. There's related questions like this one. But t... | stackexchange | explanation | list | technical | d.o | [technical|explanation|list] [d.o] |
[
{
"content": "Why did the NES not allow rotated sprites?",
"role": "user"
},
{
"content": "[technical|explanation|prose] [NES]\nFor each sprite displayed on a scanline, the hardware fetches two bytes from memory, and then clocks the pixels out one by one. The sprite is eight pixels wide, and each pi... | stackexchange | explanation | prose | technical | NES | [technical|explanation|prose] [NES] |
[
{
"content": "I want to merge two dictionaries into a new dictionary.\n```\nx = {'a': 1, 'b': 2}\ny = {'b': 3, 'c': 4}\nz = merge(x, y)\n\n>>> z\n{'a': 1, 'b': 3, 'c': 4}\n```",
"role": "user"
},
{
"content": "[technical|general|code]\nHere is what you can do for the case you described:\n\n... | stackexchange | general | code | technical | [technical|general|code] | |
[
{
"content": "There are many \"standards\" for the JSON content type:\napplication/json\napplication/x-javascript\ntext/javascript\ntext/x-javascript\ntext/x-json\nWhich one do I use, and where? I assume security and browser support issues are a factor.",
"role": "user"
},
{
"content": "[technical|g... | stackexchange | general | code | technical | JSON | [technical|general|code] [JSON] |
[
{
"content": "What's the goal of Minecraft and what can users achieve in this world?",
"role": "user"
},
{
"content": "[technical|general|list] [Minecraft]\nThe thing about Minecraft is, unlike most games you set your own goals. Here's a list of common (and uncommon!) things people have done with Mi... | stackexchange | general | list | technical | Minecraft | [technical|general|list] [Minecraft] |
[
{
"content": "If I have sampled a signal using proper sampling methods (Nyquist, filtering, etc) how do I relate the length of my FFT to the resulting frequency resolution I can obtain?\nLike if I have a 2,000 Hz and 1,999 Hz sine wave, how would I determine the length of FFT needed to accurately tell the diffe... | stackexchange | comparison | detailed | technical | FFT, Nyquist | [technical|comparison|detailed] [FFT, Nyquist] |
[
{
"content": "I wanted to produce a 1 GB random file, so I used following command.\n```dd if=/dev/urandom of=output bs=1G count=1\n```\nBut instead every time I launch this command I get a 32 MB file:\n```$ dd if=/dev/urandom of=output bs=1G count=1\n0+1 records in\n0+1 records out\n33554431 bytes (34 MB, 32 Mi... | stackexchange | explanation | code | technical | GB, MB, MiB | [technical|explanation|code] [GB, MB, MiB] |
[
{
"content": "The treads on my road bike's 28C tires are almost completely gone—they only persist along the shoulders of the tire. Do the treads matter? What is a good indicator of when the tire as a whole needs to be replaced?",
"role": "user"
},
{
"content": "[technical|explanation|list]\nThe tr... | stackexchange | explanation | list | technical | [technical|explanation|list] | |
[
{
"content": "Is there a way to create an index on a property/column using fluent configuration, instead of using the new ```IndexAttribute``` ?",
"role": "user"
},
{
"content": "[technical|general|code] [IndexAttribute]\nCurrently there is no \"first class support\" for creating a index via the flu... | stackexchange | general | code | technical | IndexAttribute | [technical|general|code] [IndexAttribute] |
[
{
"content": "Both races have the same limits on their strength, and athletics, but it's hard to imagine why. A Goliath could feasibly lift and throw a gnome, yet the Gnome, following rules as written, can pin down a Goliath, fairly easily, if statted correctly. \nIs there an in-universe explanation as to why s... | stackexchange | explanation | prose | technical | DM, Goliath, Gnome | [technical|explanation|prose] [DM, Goliath, Gnome] |
[
{
"content": "So I'm pretty far into writing my dystopian novel and I was reading over what I had. Something that helps me when I first start a novel is to get a clear picture of my characters in my head and put a face to a name, so I usually sculpt a personality and find a Google image of someone who I think ... | stackexchange | creative | prose | technical | Google, Poet, Shove | [technical|creative|prose] [Google, Poet, Shove] |
[
{
"content": "When I do ```\\footnote{}``` for a value in a table, the footnote doesn't show up. How do I get it to show up? Also, is it possible to get it to show up at the bottom of the table rather than the bottom of the page?",
"role": "user"
},
{
"content": "[technical|factual|code]\nThis is a ... | stackexchange | factual | code | technical | [technical|factual|code] | |
[
{
"content": "Why is kVA not the same as kW?",
"role": "user"
},
{
"content": "[technical|explanation|detailed]\nBoth watts and volt-amps come from the same equation, $P=IV$, but the difference is how they're measured.\nTo get volt-amps, you multiply root mean square (RMS) voltage ($V$) with RMS cur... | stackexchange | explanation | detailed | technical | [technical|explanation|detailed] | |
[
{
"content": "Elon Musk and his partner want to name their child X Æ A-12.\nIs that name allowed in California, US?",
"role": "user"
},
{
"content": "[technical|general|prose] [US, Musk, California]\nWe could start with what the statutes say (HSC 102425)\n\n (a) The certificate of live birth for a ... | stackexchange | general | prose | technical | US, Musk, California | [technical|general|prose] [US, Musk, California] |
[
{
"content": "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.\n\nOn average, a galax... | stackexchange | general | detailed | technical | Creation, Exploding, YoungEarth | [technical|general|detailed] [Creation, Exploding, YoungEarth] |
[
{
"content": "Why is there so much technical detail of whaling included in Moby-Dick?",
"role": "user"
},
{
"content": "[technical|explanation|detailed] [MobyDick]\nThere are multiple purposes behind the novel structure of Moby-Dick.\n\nIn the first instance the author was himself a whaleman, having... | stackexchange | explanation | detailed | technical | MobyDick | [technical|explanation|detailed] [MobyDick] |
[
{
"content": "Why are we building larger land-based telescopes instead of launching larger ones into space?",
"role": "user"
},
{
"content": "[technical|explanation|detailed]\nBecause it's cheaper.\n(1) With adaptive optics you can get 0.1 arc second resolution on the ground (admittedly only on a mo... | stackexchange | explanation | detailed | technical | [technical|explanation|detailed] | |
[
{
"content": "Why can we see the dust particles in a narrow beam of light (and not in an all lighted area)?",
"role": "user"
},
{
"content": "[technical|explanation|prose]\nYour inability to see the dust until you narrow the slit has nothing to do with the narrowness of the beam but instead the dyna... | stackexchange | explanation | prose | technical | [technical|explanation|prose] | |
[
{
"content": "I can not initialize a List as in the following code:\n```List supplierNames = new List();\nsupplierNames.add(\"sup1\");\nsupplierNames.add(\"sup2\");\nsupplierNames.add(\"sup3\");\nSystem.out.println(supplierNames.get(1));\n```\nI face the following error: \n\n Cannot instantiate the type ```Li... | stackexchange | list | code | technical | supplierNames.add, List, SystemoutprintlnsupplierNamesget | [technical|list|code] [supplierNames.add, List, SystemoutprintlnsupplierNamesget] |
[
{
"content": "What is the difference between ```warnings.warn()``` and ```logging.warn()``` in terms of what they do and how they should be used?",
"role": "user"
},
{
"content": "[technical|explanation|code] [warnings.warn, logging.warn]\nHere are the differences:\n\n* ```logging.warning``` just lo... | stackexchange | explanation | code | technical | warnings.warn, logging.warn | [technical|explanation|code] [warnings.warn, logging.warn] |
[
{
"content": "In Greek mythology, the words \"Titan\" and \"God\" seem to be used interchangeably. For example, Zeus is a God, but Cronus (his father) was a Titan. So what is the difference between a Titan and a God in Greek mythology?",
"role": "user"
},
{
"content": "[technical|explanation|prose] ... | stackexchange | explanation | prose | technical | Titan, God, Greek | [technical|explanation|prose] [Titan, God, Greek] |
[
{
"content": "How do weather models work?",
"role": "user"
},
{
"content": "[technical|general|list]\nAll numerical atmospheric models are built around calculations derived from primitive equations that describe atmospheric flow. Vilhelm Bjerknes discovered the relationships and thereby became the f... | stackexchange | general | list | technical | [technical|general|list] | |
[
{
"content": "I am currently trying to decipher Mazur's Eisenstein ideal paper (not a comment about his clarity, rather about my current abilities). One of the reasons I am doing that is that many people told me that the paper was somehow revolutionary and introduced a new method into number theory. \nCould you... | stackexchange | explanation | detailed | technical | Mazurs, Eisenstein | [technical|explanation|detailed] [Mazurs, Eisenstein] |
[
{
"content": "Tracing XML request/responses with JAX-WS",
"role": "user"
},
{
"content": "[technical|general|code] [XML, JAX, WS]\nHere is the solution in raw code:\n```Endpoint ep = Endpoint.create(new WebserviceImpl());\nList handlerChain = ep.getBinding().getHandlerChain();\nhandlerChain.add(new ... | stackexchange | general | code | technical | XML, JAX, WS | [technical|general|code] [XML, JAX, WS] |
[
{
"content": "In Vim, how do I insert characters at the beginning of each line in a selection?\nFor instance, I want to comment out a block of code by prepending ```//``` at the beginning of each line assuming my language's comment system doesn't allow block commenting like ```/* */```. How would I do this?"... | stackexchange | code | code | technical | Vim | [technical|code|code] [Vim] |
[
{
"content": "Why doesn't the nuclear fusion in a star make it explode?",
"role": "user"
},
{
"content": "[technical|explanation|detailed]\nThe fusion that occurs in the core of the Sun occurs in nothing like the conditions you might be thinking of in a bomb, or a fusion reactor. In particular, it o... | stackexchange | explanation | detailed | technical | [technical|explanation|detailed] | |
[
{
"content": "Does hot water freeze faster than cold water?",
"role": "user"
},
{
"content": "[technical|general|prose]\nIn certain settings, cold water freezers slower than hot water. This is called the Mpemba effect:\n\nHot water can in fact freeze faster than cold water for a wide range of experi... | stackexchange | general | prose | technical | [technical|general|prose] | |
[
{
"content": "O que é Reflection. Por que é útil?\n* É recomendável usar em projetos?\n* Como usar?\n* Em quais situações Reflection pode ser usado?",
"role": "user"
},
{
"content": "[technical|general|code] [Reflection, Como]\nReflection é um termo usado para indicar a capacidade de obter metadados... | stackexchange | general | code | technical | Reflection, Como | [technical|general|code] [Reflection, Como] |
[
{
"content": "What is the difference between minimum and infimum?",
"role": "user"
},
{
"content": "[technical|explanation|prose]\nThe minimum is attained, the infimum isn't necessarily. \nExample.\nLet $f(x) = \\frac{1}{x}$. Then $f$ has no minimum value on the interval $(0,\\infty)$. The minimum i... | stackexchange | explanation | prose | technical | [technical|explanation|prose] | |
[
{
"content": "I had a Nespresso Vertuo Next machine. It stopped working properly and during the troubleshooting video call, the Nespresso support agent said that the machines should not be connected to a GFCI outlet because they can potentially damage the machine. As part of our home inspection when we purcha... | stackexchange | general | detailed | technical | GFCI, Nespresso, Vertuo | [technical|general|detailed] [GFCI, Nespresso, Vertuo] |
[
{
"content": "I have extremely bad posture, what can I do?",
"role": "user"
},
{
"content": "[technical|general|detailed]\nYou 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 sitt... | stackexchange | general | detailed | technical | [technical|general|detailed] | |
[
{
"content": "How to add margin top to ```class=\"row\"``` elements using twitter bootstrap framework?",
"role": "user"
},
{
"content": "[technical|howto|code]\nEditing 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 row... | stackexchange | howto | code | technical | [technical|howto|code] | |
[
{
"content": "In FTL: Faster Than Light, what triggers crew experience increases?",
"role": "user"
},
{
"content": "[technical|general|detailed] [FTL, Faster, Than]\n###Piloting\nA crew member who is controlling a helm gains one point of experience for each incoming projectile that is dodged during ... | stackexchange | general | detailed | technical | FTL, Faster, Than | [technical|general|detailed] [FTL, Faster, Than] |
[
{
"content": "In Adobe Photoshop I am able to select multiple layers at once with Shift+Click.\nHow can I do that in GIMP?",
"role": "user"
},
{
"content": "[technical|general|steps] [GIMP, Adobe, Photoshop]\nIt's not possible. The only thing you can do is link layers together or merge them. \nInste... | stackexchange | general | steps | technical | GIMP, Adobe, Photoshop | [technical|general|steps] [GIMP, Adobe, Photoshop] |
[
{
"content": "In the python built-in open function, what is the exact difference between the modes ```w```, ```a```, ```w+```, ```a+```, and ```r+```?\nIn particular, the documentation implies that all of these will allow writing to the file, and says that it opens the files for \"appending\", \"writing\", and ... | stackexchange | explanation | code | technical | [technical|explanation|code] | |
[
{
"content": "How can democracy not be the rule of the poor?",
"role": "user"
},
{
"content": "[technical|general|list]\nHere are some possible explanations why democracy is not necessarily the rule of the poor:\n\n* Voters voting by habit, not by analysis. Many people vote the same way their parent... | stackexchange | general | list | technical | [technical|general|list] | |
[
{
"content": "How can I write colored text to the Windows console with C++? That is, how can I write different text with different colors?",
"role": "user"
},
{
"content": "[technical|general|code] [Windows]\nANSI escape color codes are: 0=black 1=blue 2=green and so on to 15=white; colorattribute =... | stackexchange | general | code | technical | Windows | [technical|general|code] [Windows] |
[
{
"content": "What's the best way to create a temporary file in Android? \nCan File.createTempFile be used? The documentation is very vague about it.\nIn particular, it's not clear when temporary files created with ```File.createTempFile``` are deleted, if ever.",
"role": "user"
},
{
"content": "[te... | stackexchange | creative | code | technical | File.createTempFile, Android, FilecreateTempFile | [technical|creative|code] [File.createTempFile, Android, FilecreateTempFile] |
[
{
"content": "I have javascript function like this:\n```function myFunction(number) {\n var x=number;\n ...\n ... more initializations\n //here need to wait until flag==true\n while(flag==false)\n {}\n ...\n ... do something\n}\n```\nThe problem is that the javascript is stuck in the whi... | stackexchange | code | code | technical | [technical|code|code] | |
[
{
"content": "According to this famous blog post, the effective transcript length is:\n$\\tilde{l}_i = l_i - \\mu$\nwhere $l_i$ is the length of transcript and $\\mu$ is the average fragment length. However, typically fragment length is about 300bp. What if when the transcript $l_i$ is smaller than 300? How do ... | stackexchange | howto | prose | technical | FPKM | [technical|howto|prose] [FPKM] |
[
{
"content": "What is the significance of 1/1/1753 in SQL Server?",
"role": "user"
},
{
"content": "[technical|explanation|code] [SQL, Server]\nThe decision to use 1st January 1753 (```1753-01-01```) as the minimum date value for a datetime in SQL Server goes back to its Sybase origins.\nThe signifi... | stackexchange | explanation | code | technical | SQL, Server | [technical|explanation|code] [SQL, Server] |
[
{
"content": "I saw this video where someone says that electromagnetic wave is a chain reaction of electric and magnetic fields creating each other so the chain of wave moves forward.\nI wonder where the photon is in this explanation. What is the relation between electromagnetic wave and photon?",
"role": "... | stackexchange | explanation | prose | technical | [technical|explanation|prose] | |
[
{
"content": "In The Light Fantastic, after talking about the dimensions of the Pyramid of Tsort, it says \n\n All in all, it was a lot of effort to go through just to sharpen a razor.\n\nWhat's the joke here?",
"role": "user"
},
{
"content": "[technical|general|prose] [Light, Fantastic, Pyramid]\n... | stackexchange | general | prose | technical | Light, Fantastic, Pyramid | [technical|general|prose] [Light, Fantastic, Pyramid] |
[
{
"content": "After a ```git pull origin master```, I get the following message:\n\nwarning: Pulling without specifying how to reconcile divergent branches is\ndiscouraged. You can squelch this message by running one of the following\ncommands sometime before your next pull:\n git config pull.rebase false # m... | stackexchange | howto | code | technical | pull.rebase, Pulling, Enumerating | [technical|howto|code] [pull.rebase, Pulling, Enumerating] |
[
{
"content": "In India, we eat rice using our fingers. Generally in the West, a fork or spoon is used. I have tried eating rice with spoon but I don't feel satisfied with it.\nWe eat dry rice but we mix curry and vegetables with it and then eat it with our hands.\nIs there a way to eat rice with your hands in f... | stackexchange | general | prose | technical | India, West, Westerners | [technical|general|prose] [India, West, Westerners] |
[
{
"content": "The typical argument goes like this:\n\n Without net neutrality, cable companies could censor websites, favoring their own business partners. \n\nTypically, proponents of legislation point to some perceived injustice, and argue that new laws are needed to address it. But the very use of the subju... | stackexchange | explanation | prose | technical | [technical|explanation|prose] | |
[
{
"content": "Does having a longer Ethernet cable slow your connection?",
"role": "user"
},
{
"content": "[technical|general|prose] [Ethernet]\nFor all practical purposes, there will be no effect on the speed of your connection.\n\nThere will be a very insignificant amount of delay due to long cable... | stackexchange | general | prose | technical | Ethernet | [technical|general|prose] [Ethernet] |
[
{
"content": "Border around formatted text in Inkscape",
"role": "user"
},
{
"content": "[technical|general|list] [Inkscape]\nHere is solution step by step:\n\n* Create some flowed text by using the text tool to first drag a rectangle and then type.\n* Separately, create a rectangle roughly around t... | stackexchange | general | list | technical | Inkscape | [technical|general|list] [Inkscape] |
[
{
"content": "I learned about the equilibrium constant. Now, I've seen that the equilibrium constant of burning is extremely small $(K \\ll 1)$. here, I have a question. you see, $K$ is still NOT 0, which means that the forward reactions happen at least a tiny bit. Then, shouldn't we see some parts of anything ... | stackexchange | general | prose | technical | Ive, NOT | [technical|general|prose] [Ive, NOT] |
[
{
"content": "The name \"Bleach\" seems to be having no relevance to the plot unlike most other series. Was it just chosen at Kubo-sensei's whim or does it have some significance? Maybe some cultural significance associated with shinigami, etc. that I am now aware of?",
"role": "user"
},
{
"content"... | stackexchange | general | prose | technical | Bleach, Kubosenseis | [technical|general|prose] [Bleach, Kubosenseis] |
[
{
"content": "Why don't rally cars have airbags?",
"role": "user"
},
{
"content": "[technical|explanation|prose]\nIf you are ever lucky enough to drive a competition car, the first thing that will strike you is that you can't move. Once you're in your bucket seat with your fire retardant overalls on... | stackexchange | explanation | prose | technical | [technical|explanation|prose] | |
[
{
"content": "Was the Millennium Falcon a one-off or was it mass produced?",
"role": "user"
},
{
"content": "[technical|general|prose] [Millennium, Falcon]\nThe Millennium Falcon is not unique; it was a model YT-1300f Corellian light freighter. This implies that there are other similar ships, includ... | stackexchange | general | prose | technical | Millennium, Falcon | [technical|general|prose] [Millennium, Falcon] |
[
{
"content": "Usually when I see lists of things to do to be more energy efficient, they require one to own their own home. What can I do to be more energy efficient in an apartment? \nFor example, I can't install solar panels, I can't upgrade/change my appliances, I can't install better insulation or windows, ... | stackexchange | comparison | list | technical | CFLs | [technical|comparison|list] [CFLs] |
[
{
"content": "Is there any way to exit ```less``` without clearing the screen?",
"role": "user"
},
{
"content": "[technical|general|code]\nThis is actually a function of the terminal emulator you are using (xterm, gnome-terminal, konsole, screen). An alternate screen, or altscreen, gets launched whe... | stackexchange | general | code | technical | [technical|general|code] | |
[
{
"content": "How can I do 'insert if not exists' in MySQL?",
"role": "user"
},
{
"content": "[technical|general|code] [MySQL]\nIn MySQL, ```ON DUPLICATE KEY UPDATE``` or ```INSERT IGNORE INTO table``` can be viable solutions.\n\n* An example of ```ON DUPLICATE KEY UPDATE``` update based on mysql.co... | stackexchange | general | code | technical | MySQL | [technical|general|code] [MySQL] |
[
{
"content": "What does ```class``` do in Ruby?",
"role": "user"
},
{
"content": "[technical|general|code] [Ruby]\nFirst, the ```class``` syntax opens up ```foo```'s singleton class (eigenclass). This allows you to specialise the behaviour of methods called on that specific object.\n```a = 'foo'\ncl... | stackexchange | general | code | technical | Ruby | [technical|general|code] [Ruby] |
[
{
"content": "\"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 impo... | stackexchange | explanation | code | technical | [technical|explanation|code] | |
[
{
"content": "How do I initialize a TypeScript Object with a JSON-Object?",
"role": "user"
},
{
"content": "[technical|general|code] [JSON, TypeScript, Object]\nThis question is quite broad, here are two solutions.\n\n### Solution 1: Helper Method\nHere's an example of using a Helper Method that you... | stackexchange | general | code | technical | JSON, TypeScript, Object | [technical|general|code] [JSON, TypeScript, Object] |
[
{
"content": "Why is digital photography so expensive?",
"role": "user"
},
{
"content": "[technical|explanation|detailed]\nDigital photography is not expensive but buying into it is.\n\nWith film photography camera and lenses were a moderate investment but these lasted quite long. Even a battery in ... | stackexchange | explanation | detailed | technical | [technical|explanation|detailed] | |
[
{
"content": "If user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following example:\n```$unsafe_variable = $_POST['user_input'];\nmysql_query(\"INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')\");\n```\nThat's because... | stackexchange | general | code | technical | SQL, INTO, DROP | [technical|general|code] [SQL, INTO, DROP] |
[
{
"content": "I want to be able to output the current loop iteration to my template.\nAccording to the docs, there is a ```loop.counter``` variable that I am trying to use:\n```\n{% for user in userlist %}\n * \n {{ user }} {{loop.counter}}\n \n {% if loop.counter == 1 %}\n This is the Firs... | stackexchange | explanation | code | technical | loop.counter | [technical|explanation|code] [loop.counter] |
[
{
"content": "Are the players on the same team as the DM?",
"role": "user"
},
{
"content": "[technical|general|prose] [DM]\nThe GM isn't on a team, they’re the referee.\nThe way Pathfinder, D&D, and similar games work is that there are one or more player characters (the \"party\") that are controlle... | stackexchange | general | prose | technical | DM | [technical|general|prose] [DM] |
[
{
"content": "C++ vs. The Arduino Language?",
"role": "user"
},
{
"content": "[technical|comparison|prose] [Arduino, Language]\nIf you have previous programming experience and you are aware of concepts as OOP, it is better to go for C/C++. The arduino language is really great for beginners, but have... | stackexchange | comparison | prose | technical | Arduino, Language | [technical|comparison|prose] [Arduino, Language] |
[
{
"content": "How can I adapt Ubuntu to a high resolution display?\nI have a display with 3200x1600px on only 11'' and everything looks really tiny.",
"role": "user"
},
{
"content": "[technical|general|code] [Ubuntu]\nThere are some steps to take:\n1. System wide Menu and titlebar scaling\nStarting ... | stackexchange | general | code | technical | Ubuntu | [technical|general|code] [Ubuntu] |
[
{
"content": "Say I want to make a file:\n```filename = "/foo/bar/baz.txt"\nwith open(filename, "w") as f:\n f.write("FOOBAR")\n```\nThis gives an ```IOError```, since ```/foo/bar``` does not exist.\nWhat is the most pythonic way to generate those directories automatically? Is i... | stackexchange | explanation | code | technical | baz.txt, f.write, IOError | [technical|explanation|code] [baz.txt, f.write, IOError] |
[
{
"content": "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.\nNow assume that Jane Doe is writing another paper in 2015, where she refers to the model/theorem from her paper in 2010.\nIs it acceptable for... | stackexchange | general | prose | technical | Jane, Doe | [technical|general|prose] [Jane, Doe] |
[
{
"content": "I've been with my current employer for about a year now. Due to the way the company is setup, I'm the only one with knowledge on a process that is quite important to the company. The company is going through some restructuring, and has been letting people go. As the newest guy in my department, I'... | stackexchange | general | prose | technical | [technical|general|prose] | |
[
{
"content": "Bash test: what does \"=~\" do?",
"role": "user"
},
{
"content": "[technical|general|code]\nThe ```~``` is actually part of the operator ```=~``` which performs a regular expression match of the string to its left to the extended regular expression on its right.\n```[[ \"string\" =~ pa... | stackexchange | general | code | technical | [technical|general|code] | |
[
{
"content": "If I have a Bash script like:\n```#!/bin/bash\nf() {\n # echo function name, \"f\" in this case\n}\n```\nIs there any way to do this? This could be used in help messages such as\n```printf \"Usage: %s: blah blah blah \\n\" $(basename $0) >&2;\n```\nOnly in this case what I wanted is not ```$0```,... | stackexchange | code | code | technical | Bash, Usage | [technical|code|code] [Bash, Usage] |
[
{
"content": "I know that the public practice of any religion other than Wahabbi Islam is strictly forbidden in Saudi Arabia, and there would be no places of worship. I also know that the morality police raided a a hotel several years ago where Mass was being celebrated, and arrested the priest and the acolytes... | stackexchange | general | prose | technical | Wahabbi, Islam, Saudi | [technical|general|prose] [Wahabbi, Islam, Saudi] |
[
{
"content": "Is there a way to achieve protections similar to \"Copyleft\" under the patent system?",
"role": "user"
},
{
"content": "[technical|general|prose] [Copyleft]\n\"Copyleft\" is a specific application of copyright law (restricting the license to use copyrighted material by requiring that ... | stackexchange | general | prose | technical | Copyleft | [technical|general|prose] [Copyleft] |
[
{
"content": "In monopoly, can an opponent put a property up for auction at a higher price than I have in cash?",
"role": "user"
},
{
"content": "[technical|general|prose]\nThis is definitely allowed, and a good tactic to leverage a cash advantage.\nThere is no minimum or maximum price for an auctio... | stackexchange | general | prose | technical | [technical|general|prose] | |
[
{
"content": "What is the purpose of having a countdown during a rocket launch?",
"role": "user"
},
{
"content": "[technical|explanation|code]\nThere is a window of opportunity for a launch to occur, known as a launch window. This certainly occurs when trying to get somewhere such as the Internation... | stackexchange | explanation | code | technical | [technical|explanation|code] | |
[
{
"content": "How does one attack a two-time pad (i.e. one time pad with key reuse)?\nI am new to cryptography and my problem is with two time pad attacks on OTP.\nThe problem I had in my course was that I have 10 ciphertexts encrypted with the same key $K$. I am then given another ciphertext that I should decr... | stackexchange | explanation | prose | technical | OTP, XOR, XORing | [technical|explanation|prose] [OTP, XOR, XORing] |
[
{
"content": "I have a small home automation lab (that I keep saying I'll expand, but haven't). In this setup, I have a control system to control lights (utilizing the x10 protocol), blinds, a Nest thermostat and two web cams.\nWith the recent record setting DDoS attacks utilizing unsecured IoT devices, I'd lik... | stackexchange | general | prose | technical | Ill, Nest, DDoS | [technical|general|prose] [Ill, Nest, DDoS] |
[
{
"content": "What are objective advantages or disadvantages of using the markup language LaTeX instead of a WYSIWYG word processor like MS Word or LibreOffice Writer?\nPlease use objective arguments.",
"role": "user"
},
{
"content": "[technical|explanation|list] [MS, LaTeX, LibreOffice]\nLaTeX is b... | stackexchange | explanation | list | technical | MS, LaTeX, LibreOffice | [technical|explanation|list] [MS, LaTeX, LibreOffice] |
[
{
"content": "Could Gandalf not have made his own One Ring?",
"role": "user"
},
{
"content": "[technical|general|prose] [Gandalf, Ring]\nPossibly\nIn the foreword to The Lord of the Rings, Tolkien observes:\n\nSaruman, failing to get possession of the Ring, would in the confusion and treacheries of ... | stackexchange | general | prose | technical | Gandalf, Ring | [technical|general|prose] [Gandalf, Ring] |
[
{
"content": "It’s the year 2018, and you live in the good ol’ North American landmass. The fascist landmass. By this year, the dystopian N.A.F party controls all of the landmass and secret police prowl the streets armed with automatic rifles. Protest the rules and NAF makes you disappear -- permanently. \nOnto... | stackexchange | explanation | prose | technical | NAF, N.A, North | [technical|explanation|prose] [NAF, N.A, North] |
[
{
"content": "When would one use an impact driver versus a regular drill?",
"role": "user"
},
{
"content": "[technical|factual|prose]\nDrills and impact drivers are similar in that they're both rotating power tools and they have some overlap in usage, but they work differently and have different str... | stackexchange | factual | prose | technical | [technical|factual|prose] | |
[
{
"content": "Alternative to Windows Snipping Tool for Mac OSX",
"role": "user"
},
{
"content": "[technical|general|code] [OSX, Windows, Snipping]\nMac OS has a built-in snipping tool similar to the one in Windows:\n* ⌘+⇧+3 captures the whole screen\n* ⌘+⇧+4 captures a custom rectangle... | stackexchange | general | code | technical | OSX, Windows, Snipping | [technical|general|code] [OSX, Windows, Snipping] |
[
{
"content": "What is the difference between kerning vs. letter spacing?",
"role": "user"
},
{
"content": "[technical|explanation|detailed]\nAny font has built-in spacing determined by the “side bearing” of each character. In metal type, the side bearing is the physical right or left edge of the ind... | stackexchange | explanation | detailed | technical | [technical|explanation|detailed] | |
[
{
"content": "I read somewhere that C♯ and D♭ actually differ 41 by cents from each other. As far as I know, there should be 2 semitones between C and D. Moreover, C♯ is one semitone above C and D♭ is one semitone below D. Therefore, C♯ and D♭ should be equivalent. If so, how can C♯ and D♭ actually differ by 41... | stackexchange | general | prose | technical | [technical|general|prose] | |
[
{
"content": "Not sure if this is a Mozilla-specific JS syntax, but I often found variables being declared this way, for example, in add-on SDK docs:\n```var { Hotkey } = require(\"sdk/hotkeys\");\n```\nand in various chrome Javascript (```let``` statement is being used in place of ```var```),\n```let { classes... | stackexchange | general | code | technical | JS, SDK, MDN | [technical|general|code] [JS, SDK, MDN] |
[
{
"content": "When reading some documentation about the security of a product, I found that the vendor uses the SHA-2 of a password to encrypt data (AES-256), instead of using this password directly.\nAre there any advantages of doing so?\nAn attacker is not going to crack the encrypted data using this SHA-2-as... | stackexchange | factual | list | technical | SHA, AES, SHAasapassword | [technical|factual|list] [SHA, AES, SHAasapassword] |
[
{
"content": "My online friend is asking for money in order to visit my home country. Is this a legit request or a scam?",
"role": "user"
},
{
"content": "[technical|general|list]\nThe first rule for every such question is simple:\n\n If you have to ask, it's probably a scam\n\nWhile we cannot poss... | stackexchange | general | list | technical | [technical|general|list] | |
[
{
"content": "When converting from RGB to grayscale, it is said that specific weights to channels R, G, and B ought to be applied. These weights are: 0.2989, 0.5870, 0.1140.\nIt is said that the reason for this is different human perception/sensibility towards these three colors. Sometimes it is also said these... | stackexchange | explanation | code | technical | RGB, NTSC | [technical|explanation|code] [RGB, NTSC] |
[
{
"content": "¿Cuál es la diferencia entre echo, print, print_r, var_dump y var_export en PHP?",
"role": "user"
},
{
"content": "[technical|general|code] [PHP]\nAquí hay una descripción general de estas funciones de PHP:\n\n###echo\n\n* Muestra una o más cadenas separadas por comas\n* No tiene un va... | stackexchange | general | code | technical | PHP | [technical|general|code] [PHP] |
[
{
"content": "In Android, I defined an ```ImageView```'s ```layout_width``` to be ```fill_parent``` (which takes up the full width of the phone).\nIf the image I put to ```ImageView``` is bigger than the ```layout_width```, Android will scale it, right? But what about the height? When Android scales the image, ... | stackexchange | general | code | technical | ImageView, Android, ImageViews | [technical|general|code] [ImageView, Android, ImageViews] |
[
{
"content": "I want to compare 2 arrays of objects in JavaScript code. The objects have 8 total properties, but each object will not have a value for each, and the arrays are never going to be any larger than 8 items each, so maybe the brute force method of traversing each and then looking at the values of th... | stackexchange | comparison | code | technical | JavaScript | [technical|comparison|code] [JavaScript] |
[
{
"content": "I'm working with another developer on a project, and we're using Github as our remote repo. I'm on a Mac using git 1.7.7.3, he's on Windows using git 1.7.6.\nThis is what's happening\n\n* One of us (let's call him developer A, but it doesn't matter which one) pushes a set of commits to GitHub.\n* ... | stackexchange | howto | code | technical | Merge branch, GitHub, github.com | [technical|howto|code] [Merge branch, GitHub, github.com] |
[
{
"content": "You are asleep on your boat on open sea. When you wake up you discover you have been robbed. A quick inspection of security cam footage reveals that the pirates who robbed you left your ship exactly an hour ago. The sea is flat, extends indefinitely, and is fully covered in a thick persistent fog.... | stackexchange | general | prose | technical | [technical|general|prose] | |
[
{
"content": "Was ist der Unterschied zwischen den Fragewörtern \"wieso\", \"weshalb\" und \"warum\"?",
"role": "user"
},
{
"content": "[technical|general|prose] [Unterschied, Fragewrtern]\nEs gibt im heutigen Deutschen keinen semantischen Unterschied zwischen den drei Frageadverbien (genauer: Kausa... | stackexchange | general | prose | technical | Unterschied, Fragewrtern | [technical|general|prose] [Unterschied, Fragewrtern] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.