| {: , : , : , : , : 48, : [, , , ], : {: , : Wind Energy - The Facts \, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 18, : [], : {: pour point:\, : , : , : Wind Energy - The Facts \}, : , : , : , : , : } |
| {: , : , : , : soldiers in war\, : 49, : [, , , , ], : {: 30 days of employment with xxxxx \ 1-year commitment \ not to quit \, : , : furnish\minor\minor\straw\, : }, : , : , : , : , : } |
| {: , : , : , : , : 159, : [, , , , ], : {: social engineering\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 12, : [, ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 29, : [, ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : black box\, : 52, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 13, : [, , ], : {: , : iron\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 39, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 35, : [, , ], : {: , : , : I leave all my assets to my spouse, provided they survive me by at least 30 days, and otherwise to beneficiaries X,Y,Z.\, : }, : , : , : , : , : } |
| {: , : , : , : , : 23, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 38, : [, ], : {: , : , : vegan approved\, : }, : , : , : , : , : } |
| {: , : , : , : go full dictator\semi-lawful\, : 38, : [, ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 325, : [, , ], : {: modulo n \, : , : /C=GB/CN=foo\subjectAltName = DNS:foo.co.uk\certificatePolicies = 1.2.3.4\, : }, : , : , : , : , : } |
| {: , : , : , : bill 9, section 9, article 6, subarticle 7, clause 45\, : 78, : [, , , ], : {: giving away patents\will not initiate patent lawsuits against anyone who, in good faith, wants to use our technology.\, : , : All persons born in the United States\and subject to the jurisdiction thereof,\, : stealing\stealing\}, : , : , : , : , : } |
| {: , : , : , : , : 44, : [, , , , ], : {: giving away patents\will not initiate patent lawsuits against anyone who, in good faith, wants to use our technology.\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : If it's not asking you for approval, you never know what it's going and changing in the background!\, : 130, : [, ], : {: , : you're running random internet code, and the author of that code makes it easy for you to be lazy about asking me to vet it\", then this is quite valid and factual. (you might debate the cost/benefit, but...", "C": "This attack is supposed to be presented 10 days from now, but my guess is that they use compression . SSL/TLS optionally supports data compression. In the ClientHello message, the client states the list of compression algorithms that it knows of, and the server responds, in the ServerHello , with the compression algorithm that will be used. Compression algorithms are specified by one-byte identifiers, and TLS 1.2 (RFC 5246) defines only the null compression method (i.e. no compression at all). Other documents specify compression methods, in particular RFC 3749 which defines compression method 1, based on DEFLATE , the LZ77-derivative...", "D": "It typically works like this: Say your password is \"baseball\". I could simply store it raw, but anyone who gets my database gets the password. So instead I do an SHA1 hash on it, and get this: $ echo -n baseball | sha1sum a2c901c8c6dea98958c219f6f2d038c44dc5d362 Theoretically it's impossible to reverse a SHA1 hash. But go do a google search on that exact string , and you will have no trouble recovering the original password. Plus, if two users in the database have the same password, then they'll have the same SHA1 hash. And if one of them has a password hint..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/178814/is-a-windows-installer-that-doesnt-require-admin-rights-dangerous"} |
| {"id": "finance_352", "domain": "finance", "question_title": "Volatility pumping in practice", "question_body": "The fascinating thing about volatility pumping (or optimal growth portfolio , see e.g. here ) is that here volatility is not the same as risk, rather it represents opportunity. Additionally it is a generic mechanical strategy that is independent of asset classes. My question: Do you know examples where volatility pumping is actually implemented? What are the results? What are the pitfalls?", "question_score": 28, "question_tags": ["volatility", "trading", "kelly-criterion"], "choices": {"A": "The optimal growth portfolio is obtained by applying the Kelly criterion which is one of the pillars of the sound risk management. Ed Thorp's weekend forays to Las Vegas to play blackjack were one of the first historically documented cases of successful practical implementation of the Kelly strategy. Since then this method and its modifications have been systematically used by Thorp himself and other hedge fund managers as an important risk control tool.BI've worked at a hedge fund that allowed GA-derived strategies. For safety, it required that all models be submitted long before production to make sure that they still worked in the backtests. So there could be a delay of up to several months before a model would be allowed to run. It's also helpful to separate the sample universe; use a random half of the possible stocks for GA analysis and the other half for confirmation backtests.CGreat question! I think the most useful starting point is Stock Return Characteristics, Skew Laws, and the Differential Pricing of Individual Equity Options by Bakshi, Kapadia and Madan (2003) . Their paper proposes a definition of model-free implied skewness (they originally called it risk-neutral skewness, but MFIS is more accurate), which they prove will have a P&L directly proportional to the realized skewness of the underlier. Subsequent papers (there are literally dozens) have thoroughly explored the properties of MFIS. In particular, Does Risk-Neutral Skewness Predict the Cross-Section of Equity Option Portfolio Returns? by Bali and Murray (2011) estimates the empirical...DHere couple pointers that may make it clearer: Drift can be replaced by the risk-free rate through a mathematical construct called risk-neutral probability pricing. Why can we get away with that without introducing errors? The reason lies in the ability to setup a hedge portfolio, thus the market will not compensate us for the drift above and beyond the risk free rate under risk-neutral probability pricing. As long as such hedge exists and couple other conditions are met (please look up Girsanov's Theorem) we can introduce a risk-neutral measure so that when applying it to the differential equation and through..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/352/volatility-pumping-in-practice"} |
| {"id": "medicine_83", "domain": "medicine", "question_title": "Why does whooping cough last so long and can the duration of cough be reduced?", "question_body": "Whooping cough is a chronic cough resulting from an infection with the bacteria Bordetella Pertussis. The cough resulting from the infection may last several weeks, and as such whooping cough is sometimes called the 100 day cough. Why is it that the Bordetealla Pertussis infection produces a cough that lasts so long compared to other infections, and is there anything that can be done to reduce the cough's duration?question_scorequestion_tagsinfectioncoughchoicesAGreat question! I think it's answerable as an overview, but please know this is only the tip of the iceberg.* Summary : Yes, we have deficits of certain blood products in certain locations at certain times that affect patient care. However, a small percentage of blood product does expire unused (because it wasn't the right product [see background] in the right place at the right time). A little background Donated blood is not usually transfused into a patient as whole blood. Instead, it's broken down into several components which are transfused in different clinical scenarios. The issues of storage and...", "B": "As you have noted, the \"paroxysmal\" stage of a clinical case of pertussis, which involves the rapid, exhausting coughing fits and the characteristic \"whoop\" at the end can often be extremely long. While it usually lasts 1-6 weeks, it can persist for up to 10 weeks , followed by a convalescent period. One reason for the long duration of the cough is that by the time one has reached that phase of disease, they are largely beyond the help of antibiotics, which will not shorten the clinical course of the disease in infected patients , but are intended to prevent...", "C": "Because leprosy and multiple myeloma are conditions for which other treatment options are limited. All treatments have side effects, some more debilitating than others. The trick with pharmacology is to balance the benefit of treatment with the hazards of the side effects. Take cancer chemotherapy. The drugs we use for cancer chemotherapy are horrible poisons. We literally use derivatives of chemical weapons to treat cancer. Why do we deliberately poison cancer patients with what amounts to a weapon of mass destruction? Because if we don't, the cancer will kill them. In pharmacology there's a concept of a therapeutic window ....", "D": "There is evidence that neonatal circumcision saying that the benefits of circumcision outweigh the risks. According to a study done on neonatal circumcision [1] , the lifetime benefits of being circumcised outweighed the risks 100 to 1. Some of the risks people may associate with circumcision are very unlikely. Excessive bleeding only happens 0.1% of the time, infections 0.02% of the time, and loss of penis 0.0001% of the time. The percentage of death is only 0.00001%. Overall, it shows that males who have been circumcised require half as much medical attention as males who have not been circumcised. Also,..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://medicalsciences.stackexchange.com/questions/83/why-does-whooping-cough-last-so-long-and-can-the-duration-of-cough-be-reduced"} |
| {"id": "medicine_13", "domain": "medicine", "question_title": "Are there any health benefits to male circumcision?", "question_body": "It's been argued by various medical organizations that male circumcision has various medical benefits, such as reducing the risk of catching HIV, or reducing the risk of urinary tract infections, for instance. Are there any respectable scientific studies to back these assertions up?question_scorequestion_tagsurologychoicesAPeople could develop antibodies from natural exposure to the virus. The vaccine is trying to cause antibodies to exist in more people (and/or more strongly) than would express them naturally, therefore a good comparison group is a sample taken randomly in the same way as those getting the vaccine: a placebo group. At the same time, these trials tend to assess safety outcomes; again, to assess safety you want to know that effects are no worse than those in some comparison population. Comparing to placebo is typically a gold standard for this comparison. You're right that a placebo wouldn't be...BThere is evidence that neonatal circumcision saying that the benefits of circumcision outweigh the risks. According to a study done on neonatal circumcision [1] , the lifetime benefits of being circumcised outweighed the risks 100 to 1. Some of the risks people may associate with circumcision are very unlikely. Excessive bleeding only happens 0.1% of the time, infections 0.02% of the time, and loss of penis 0.0001% of the time. The percentage of death is only 0.00001%. Overall, it shows that males who have been circumcised require half as much medical attention as males who have not been circumcised. Also,...CI'm guessing the \"iron\" test was actually a hemoglobin test (though I'm certainly no expert in blood donation screens...). I suspect your nurse is reporting a folk tale rather than any true difference. Unfortunately, medical professionals are not always an excellent source of scientific knowledge. I looked for papers that have actually compared measurements in the two hands. Here's one: Patel, A. J., Wesley, R., Leitman, S. F., & Bryant, B. J. (2013). Capillary versus venous haemoglobin determination in the assessment of healthy blood donors. Vox sanguinis, 104(4), 317–323. https://doi.org/10.1111/vox.12006 Capillary fingerstick samples were assayed by HemoCue in 150 donors....", "D": "The short version is that in 2016 the polio vaccine changed. A more thorough explanation requires some background on the immunology of polio and its vaccines, which is not straightforward. Polio virus is usually harmless, it reproduces in the gut and spreads through a fecal-oral route. In ~99% of infections it only causes mild diarrhea. In the remaining 1% of cases, however, it gets into the bloodstream and from there enters nerves, causing paralysis and/or respiratory failure. There are two types of vaccine: inactivated polio vaccine (IPV) and oral polio vaccine (OPV). IPV is a shot of killed virus particles..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://medicalsciences.stackexchange.com/questions/13/are-there-any-health-benefits-to-male-circumcision"} |
| {"id": "finance_84", "domain": "finance", "question_title": "Transformation from the Black-Scholes differential equation to the diffusion equation - and back", "question_body": "I know the derivation of the Black-Scholes differential equation and I understand (most of) the solution of the diffusion equation. What I am missing is the transformation from the Black-Scholes differential equation to the diffusion equation (with all the conditions) and back to the original problem. All the transformations I have seen so far are not very clear or technically demanding (at least by my standards). My question: Could you provide me references for a very easily understood, step-by-step solution?", "question_score": 29, "question_tags": ["black-scholes", "differential-equations"], "choices": {"A": "One starts with the Black-Scholes equation $$\\frac{\\partial C}{\\partial t}+\\frac{1}{2}\\sigma^2S^2\\frac{\\partial^2 C}{\\partial S^2}+ rS\\frac{\\partial C}{\\partial S}-rC=0,\\qquad\\qquad\\qquad\\qquad\\qquad(1)$$ supplemented with the terminal and boundary conditions (in the case of a European call) $$C(S,T)=\\max(S-K,0),\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad(2)$$ $$C(0,t)=0,\\qquad C(S,t)\\sim S\\ \\mbox{ as } S\\to\\infty.\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad$$ The option value $C(S,t)$ is defined over the domain $0 Step 1. The equation can be rewritten in the equivalent form $$\\frac{\\partial C}{\\partial t}+\\frac{1}{2}\\sigma^2\\left(S\\frac{\\partial }{\\partial S}\\right)^2C+\\left(r-\\frac{1}{2}\\sigma^2\\right)S\\frac{\\partial C}{\\partial S}-rC=0.$$ The change of independent variables $$S=e^y,\\qquad t=T-\\tau$$ results in $$S\\frac{\\partial }{\\partial S}\\to\\frac{\\partial}{\\partial y},\\qquad \\frac{\\partial}{\\partial t}\\to - \\frac{\\partial}{\\partial \\tau},$$ so one gets the constant coefficient equation $$\\frac{\\partial C}{\\partial \\tau}-\\frac{1}{2}\\sigma^2\\frac{\\partial^2 C}{\\partial y^2}-\\left(r-\\frac{1}{2}\\sigma^2\\right)\\frac{\\partial C}{\\partial y}+rC=0.\\qquad\\qquad\\qquad(3)$$ Step 2. If we...", "B": "Martingales + Markovian Here is the motivation. Conditional expectations are martingales by the tower property of conditional expectations (an easy exercise to show). Suppose $r=0$, by the risk neutral pricing theorem $E^\\star\\left[h(X_T)\\bigg|\\mathscr{F}_t,\\,X_t=x\\right]$ is the price of any derivative security with $X$ as the underlying asset and payoff function $h$ assuming for the moment that the underlying security and the derivative itself pay no intermediate cashflows. In a Markovian setting, it must be the case that the price of the derivative is a measurable function of the current asset price and the time to maturity only, say a function $g(t, x)$....", "C": "The volatiltiy surface is just a representation of European option prices as a function of strike and maturity in a different \"unit\" - namely implied volatility (while the term implied volatility has to be made precise by the model used to convert prices (quotes) into implied volatilities - for example: we may consider log-normal vols and normal vols). Volatility is often preferred over prices, e.g., when considering interpolations of European option prices (although this may introduce difficulties like arbitrage violations, see, e.g., http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1964634 ). A local volatility model can generate a perfect fit to the implied volatility surface via Dupire's...DIt's an interesting question. I particularly agree with the $\\mathbb{Q}-\\mathbb{P}$ dichotomy mentioned by many. I would add to the other answers that, come to think of it, the Black-Scholes postulated Geometric Brownian Motion could be interpreted as an AR(1) process on the logarithm of the stock price as you discretise the SDE from which it is a solution, which is exactly what you do when running Monte-Carlo simulations (same thing for the Ornstein-Uhlenbeck process as explained here and noted by @Richard). Actually, when taking the continuous-time limit, many more econometric models can be shown to correspond to stochastic processes frequently..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/84/transformation-from-the-black-scholes-differential-equation-to-the-diffusion-equ"} |
| {"id": "finance_530", "domain": "finance", "question_title": "Digital Signal Processing in Trading", "question_body": "There is a concept of trading or observing the market with signal processing originally created by John Ehler . He wrote three books about it. Cybernetic Analysis for Stocks and Futures Rocket Science for Traders MESA and Trading Market Cycles There are number of indicators and mathematical models that are widely accepted and used by some trading software (even MetaStock), like MAMA, Hilbert Transform, Fisher Transform (as substitutes of FFT), Homodyne Discriminator, Hilbert Sine Wave, Instant Trendline etc. invented by John Ehler. But that is it. I have never heard of anybody other than John Ehler studying in this area. Do you think that it is worth learning digital signal processing? After all, each transaction is a signal and bar charts are somewhat filtered form of these signals. Does it make sense?", "question_score": 37, "question_tags": ["trading", "digital-signal-processing"], "choices": {"A": "Here couple pointers that may make it clearer: Drift can be replaced by the risk-free rate through a mathematical construct called risk-neutral probability pricing. Why can we get away with that without introducing errors? The reason lies in the ability to setup a hedge portfolio, thus the market will not compensate us for the drift above and beyond the risk free rate under risk-neutral probability pricing. As long as such hedge exists and couple other conditions are met (please look up Girsanov's Theorem) we can introduce a risk-neutral measure so that when applying it to the differential equation and through...BThe risk-neutral measure $\\mathbb{Q}$ is a mathematical construct which stems from the law of one price , also known as the principle of no riskless arbitrage and which you may already have heard of in the following terms: \. This law is at the heart of securities' relative valuation , see this very nice paper by Emmanuel Derman (\"Metaphors, Models & Theories\", 2011) and some part of this discussion. In what follows, assume for the sake of simplicity existence of a risk-free asset ; deterministic and constant rates, with risk-free rate $r$ ;...", "C": "I can think of an application in options pricing. I came across the following paper a long time ago but think it explains FT very eloquently as applied to pricing options under BS: http://maxmatsuda.com/Papers/2004/Matsuda%20Intro%20FT%20Pricing.pdf The fun starts on page 112 but it relies on the 1998 paper by Madan and Carr. What I like about the paper is that it gives a thorough introduction to FT and only when the groundwork is set it applies it to option pricing. Not a bad approach vs many other papers which make a lot of assumption and assume the reader can jump right...", "D": "Wavelets are just one form of \"basis decomposition\". Wavelets in particular decompose in both frequency and time and thus are more useful than fourier or other purely-frequency based decompositions. There are other time-freq decompositions (for instance the HHT) which should be explored as well. Decomposition of a price series is useful in understanding the primary movement within a series. In general with a decomposition, the original signal is the sum its basis components (potentially with some scaling multiplier). The components range from the lowest frequency (a straight-line through the sample) to the highest frequency, a curve that oscillates with a..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/530/digital-signal-processing-in-trading"} |
| {"id": "cybersecurity_121100", "domain": "cybersecurity", "question_title": "Can a computer virus be stored somewhere else than on the hard drive?", "question_body": "Are there viruses that have managed to hide themselves somewhere other than on the hard drive? Like CPU cache or on the motherboard? Is it even possible? Say I get a virus, so I get rid of the HDD and install a new one. Could the virus still be on my PC?", "question_score": 137, "question_tags": ["virus"], "choices": {"A": "TL;DR - You can store the salt in plaintext without any form of obfuscation or encryption, but don't just give it out to anyone who wants it. The reason we use salts is to stop precomputation attacks, such as rainbow tables . These attacks involve creating a database of hashes and their plaintexts, so that hashes can be searched for and immediately reversed into plaintext. For example*: 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 a e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 b 84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 c ... 948291f2d6da8e32b007d5270a0a5d094a455a02 ZZZZZX 151bfc7ba4995bfa22c723ebe7921b6ddc6961bc ZZZZZY 18f30f1ba4c62e2b460e693306b39a0de27d747c ZZZZZZ Most tables also include a list of common passwords: 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 password e38ad214943daad1d64c102faec29de4afe9da3d password1 b7a875fc1ea228b9061041b7cec4bd3c52ab3ce3 letmein 5cec175b165e3d5e62c9e13ce848ef6feac81bff qwerty123 *I'm using SHA-1...", "B": "Plenty of places: BIOS / UEFI - BlackHat presentation (PDF) System Management Mode (SMM) or the Intel Management Engine (IME) - Phrack article . GPUs - Proof of concept rootkit on GitHub . Network cards - Recon 2011 presentation (PDF) A Quest To The Core (PDF) - a good presentation covering everything from BIOS to SMM to microcode. Modern hardware has a wide range of persistent data stores, usually used for firmware. It's far too expensive to ship a complex device like a GPU or network card and put the firmware on a mask ROM where it can't be updated,...", "C": "This attack is supposed to be presented 10 days from now, but my guess is that they use compression . SSL/TLS optionally supports data compression. In the ClientHello message, the client states the list of compression algorithms that it knows of, and the server responds, in the ServerHello , with the compression algorithm that will be used. Compression algorithms are specified by one-byte identifiers, and TLS 1.2 (RFC 5246) defines only the null compression method (i.e. no compression at all). Other documents specify compression methods, in particular RFC 3749 which defines compression method 1, based on DEFLATE , the LZ77-derivative...", "D": "I think the safest option for you would be to use Qubes OS with its built in DisposableVM s functionality, and its “ Convert to Trusted PDF ” tool. What is Qubes OS? Qubes is an operating system where it's all based on virtual machines. You can think of it as if you had different isolated ‘computers’ inside yours. So that way you can compartmentalize your digital life into different domains, so that you can have a ‘computer’ where you only do work related stuff, another ‘computer’ that is offline and where you store your password database and your PGP...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/121100/can-a-computer-virus-be-stored-somewhere-else-than-on-the-hard-drive |
| idcybersecurity_32367domaincybersecurityquestion_titleWhat is the difference between https://google.com and https://encrypted.google.com?question_bodyIs it there any difference between the encrypted Google search (at https://encrypted.google.com ) and the ordinary HTTPS Google search (at https://google.com )? In terms of security what were the benefits of browsing through encrypted Google search? Note that this is not a question about HTTP vs HTTPS . These are two Google services.question_scorequestion_tagsencryptiontlsweb-applicationprivacyhttpchoicesAIf you hash on the client side, the hashed password becomes the actual password (with the hashing algorithm being nothing more than a means to convert a user-held mnemonic to the actual password). This means that you will be storing the full \ password (the hash) in the database, and you will have lost all benefit of hashing in the first place. If you decide to go this route, you might as well forgo any hashing and simply transmit and store the user's raw password (which, incidentally, I wouldn't particularly recommend).BAccording to Google , the difference is with handling referrer information when clicking on an ad. After a note from AviD and with the help of Xander we conducted some tests and here are the results 1. Clicking on an ad: https://google.com : Google will take you to an HTTP redirection page where they'd append your search query to the referrer information. https://encrypted.google.com : If the advertiser uses HTTP, Google will not let the advertiser know about your query. If the advertiser uses HTTPS, they will receive the referrer information normally (including your search query). 2. Clicking on a normal...", "C": "There are a few issues with HTTP Basic Auth: The password is sent over the wire in base64 encoding (which can be easily converted to plaintext). The password is sent repeatedly, for each request. (Larger attack window) The password is cached by the webbrowser, at a minimum for the length of the window / process. (Can be silently reused by any other request to the server, e.g. CSRF). The password may be stored permanently in the browser, if the user requests. (Same as previous point, in addition might be stolen by another user on a shared machine). Of those, using...", "D": "The short answer is yes. The long answer is also yes. /dev/urandom yields data which is indistinguishable from true randomness, given existing technology. Getting \"better\" randomness than what /dev/urandom provides is meaningless, unless you are using one of the few \"information theoretic\" cryptographic algorithm, which is not your case (you would know it). The man page for urandom is somewhat misleading, arguably downright wrong, when it suggests that /dev/urandom may \"run out of entropy\" and /dev/random should be preferred; the only instant where /dev/urandom might imply a security issue due to low entropy is during the first moments of a..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/32367/what-is-the-difference-between-https-google-com-and-https-encrypted-google-c"} |
| {"id": "finance_96", "domain": "finance", "question_title": "What is a "coherent" risk measure?", "question_body": "What is a coherent risk measure, and why do we care? Can you give a simple example of a coherent risk measure as opposed to a non-coherent one, and the problems that a coherent measure addresses in portfolio choice?", "question_score": 24, "question_tags": ["risk", "modern-portfolio-theory", "coherent-risk-measure"], "choices": {"A": "I'm just providing a global answer to the question, as I think it can be interesting for some beginners in quant finance. The properties given by TheBridge: Normalize $\\rho (\\emptyset)=0$ This means you have no risk in taking no position. Sub-addiitivity $\\rho(A_1+A_2) \\leq \\rho(A_1)+\\rho(A_2)$ Having a position in two different can only decrease the risk of the portfolio (diversification) Positive homogeneity $\\rho(\\lambda A) = \\lambda \\rho(A)$ Doubling a position in an asset A doubles your risk. And finally, Translation invariance $\\rho(A + x) = \\rho(A)-x$ That is, adding cash to a portfolio only diminishes the risk. So a risk-measure is...BThere seems to be a basic fallacy that someone can come along and learn some machine learning or AI algorithms, set them up as a black box, hit go, and sit back while they retire. My advice to you: Learn statistics and machine learning first, then worry about how to apply them to a given problem. There is no free lunch here. Data analysis is hard work . Read \ (the pdf is available for free on the website), and don't start trying to build a model until you understand at least the first 8 chapters....", "C": "Here couple pointers that may make it clearer: Drift can be replaced by the risk-free rate through a mathematical construct called risk-neutral probability pricing. Why can we get away with that without introducing errors? The reason lies in the ability to setup a hedge portfolio, thus the market will not compensate us for the drift above and beyond the risk free rate under risk-neutral probability pricing. As long as such hedge exists and couple other conditions are met (please look up Girsanov's Theorem) we can introduce a risk-neutral measure so that when applying it to the differential equation and through...DI would offer the distinctions are i) pure statistical approach, ii) equilibrium based approach, and iii) empirical approach. The statistical approach includes data mining. Its techniques originate in statistics and machine learning. In its extreme there is no a priori theoretical structure imposed on asset returns. Factor structure might be identified thru Principal Components, for example. The goal here is to maximize predictive accuracy at the expense of intuition and explanatory power. This approach increasingly dominates at very short frequencies in modeling market microstructure, market making algorithms, volatility modeling, etc. However, even in high-frequency trading one can impose a factor...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://quant.stackexchange.com/questions/96/what-is-a-coherent-risk-measure |
| idcybersecurity_206186domaincybersecurityquestion_titleIs HostGator storing my password in plaintext?question_bodyI want to bring this up to HostGator, but want to verify my suspicions before making a big fuss. I asked a customer care representative to help me add an SSL certificate to a site I host with them. When he was done, I received this e-mail with all my login information, and my entire password in plain text (I left the first letter visible as evidence). I set up this password over a year ago, and it was a big surprise to find out they sent it back to me, unprompted, in plaintext: I immediately brought this up to the representative, who repeatedly tried to convince me that it was OK. I decided to drop it after a few minutes, because I think I should bring it up to someone higher up. Before I do so, is it safe to assume that my password is stored in their database as plain text? If so, do you have any suggestions on how to address this issue with the provider?question_scorequestion_tagspasswordsdatabasesweb-hostingchoicesAThis is actually an interesting new field in infosec— reputation management . Employers, Law Enforcement and other government agencies, legal professionals, the press, criminals and others with an interest in your reputation will be observing all online activity associated with your real name. These \ (snoops) are usually terrible at separating professional and personal life, so you could be made to suffer for unpopular opinions, political or religious convictions, associates or group affiliations they consider \, and any behavior that can be interpreted in the most uncharitable light. (Teachers have been forced to resign for drinking wine responsibly while...BYep, that's a big problem, especially if that was your old password (i.e. not a newly assigned one). Technically, the password might be stored under reversible encryption rather than plain text, but that's nearly as bad. The absolute minimum standard should be a salted hash - anything less and anybody with access to the auth database who wants to can use an online rainbow table to get back the plaintext passwords in moments - but single-iteration secure hash algorithm (SHA) functions are still easy to brute force with a GPU (they're designed to be fast; a high-end GPU can compute...", "C": "Diffie-Hellman is a way of generating a shared secret between two people in such a way that the secret can't be seen by observing the communication. That's an important distinction: You're not sharing information during the key exchange, you're creating a key together. This is particularly useful because you can use this technique to create an encryption key with someone, and then start encrypting your traffic with that key. And even if the traffic is recorded and later analyzed, there's absolutely no way to figure out what the key was, even though the exchanges that created it may have been...DBy any measure, they're wrong: Seven random printable ASCII: 95 7 = 69 833 729 609 375 possible passwords. Ten random alphabetics: 52 10 = 144 555 105 949 057 024 possible passwords, or over 2000 times as many. Length counts. If you're generating your passwords randomly, it counts for far more than any other method of making them hard to guess.answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/206186/is-hostgator-storing-my-password-in-plaintext |
| idcybersecurity_118975domaincybersecurityquestion_titleIs it safe to include an API key in a request's URL?question_bodyLately I've seen plenty of APIs designed like this: curl \"https://api.somewebsite.com/v1/something&key=YOUR-API-KEY\" Isn't it elementary that passing an API key in a query string as a part of the URL is not secure at least in HTTP.question_scorequestion_tagstlshttpurlchoicesAThis is commonly known as a capability URL / secret URL. It's secure in modern websites but not suitable for all applications and requires significant care to use . You can find an excellent overview of their advantages, risks and best practices in this page by W3C . It's meaningless to talk about security without specifying a threat model. Here are a couple that come to mind: 1: A passive attacker on the network (eavesdroping) 2: An active attacker on the network (can change packets at will, mitm, etc) 3: A shoulder-surfer 4: An attacker with physical access to your...BIt seems to me the question is \. In other words, it seems like you're trying to finely draw the line where the untrusted networks lie, and the trust begins. In my opinion, SSL/TLS trust should terminate at the SSL offloading device since the department that manages that device often also manages the networking and infrastructure. There is a certain amount of contractual trust there. There is no point of encrypting data at a downstream server since the same people who are supporting the network usually have access to this as well. (with the possible...", "C": "One thought is to not allow form submission if there is not a value in the password box. Generally if they accidentally entered the password in the username, then there likely isn't going to be anything in the password dialog. It is worth noting that this does not have to be simply done client side, but could also be done on a server as long as the transport used is secure and the input is not logged until after passing a check about the password field not being empty.DFor the purposes of this discussion there are only a couple differences between web signing certificates: Extended vs standard validation (green bar). Number of bits in a certificate request (1024/2048/4096). Certificate chain. It is easier to set up certificates with a shorter trust chain but there are inexpensive certs out there with a direct or only one level deep chain. You can also get the larger 2048 and 4096 bit certs inexpensively. As long as you don't need the extended validation there is really no reason to go with the more expensive certificates. There is one specific benefit that going..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/118975/is-it-safe-to-include-an-api-key-in-a-requests-url"} |
| {"id": "medicine_18672", "domain": "medicine", "question_title": "Father gets chickenpox, but doesn't infect his two children. How is this possible?", "question_body": "My brother in law got chickenpox, yet somehow he didn't infect my two nephews, even though they are living together. According to wikipedia, varicella has an infection rate of 90%: Varicella is highly communicable, with an infection rate of 90% in close contacts. https://en.wikipedia.org/wiki/Chickenpox He got varicella over a week ago and the children are completely healthy, even though they have not had the disease yet nor are they vaccinated against it. How is this possible? Is the infection rate actually lower, than 90%? Is an outcome like this usual or plausible? edit: they did end up getting sick after all.question_scorequestion_tagsinfectionvaccinationvirusinfectious-diseaseschickenpoxchoicesATo add to @BryanKrause's answer re: rare events happen all the time, the children are not out of the woods yet. The mean incubation time for a primary VZV infection (the clinical syndrome known as chicken pox) is 14 days, but often lasts up to 21 days (see Murray Medical Microbiology, Ch. 53). The father is infectious while shedding virus, usually via the lungs. This correlates with the period of time a patient is febrile. I wouldn't say the father didn't infect his children until he has been afebrile for 21 days.", "B": "What your government is proposing is a lot less than what was actually done in China. There, and perhaps that is still the case, large numbers of asymptomatic infected people were housed together in halls with only social separation between them, and masks to prevent others from infecting others. Your government is proposing to house the asymptomatic infected in hotels, presumably in separate rooms. We know that people who are infected because they have virus identified using PCR swabs of their upper airways. CT scans can show pulmonary lesions present even without cough or fever. And even speaking can aerosolize...", "C": "tl;dr Current research seems to indicate that the brain is responding to anticipation or visual stimulus of needles being inserted, not that any of the theories supporting acupuncture are correct. Steven Novella reviewed the following article : Chae Y, Lee IS, Jung WM, Park K, Park HJ, Wallraven C. Psychophysical and neurophysiological responses to acupuncture stimulation to incorporated rubber hand. Neurosci Lett. 2015 Feb 11;591C:48-52. doi: 10.1016/j.neulet.2015.02.025. I'm going to quote from Novella's review because it's easier for a lay person to read/understand, and I don't have full access to the paper. As background, he states: There have been in...", "D": "It is likely you are not hearing the ultrasound itself (typical frequencies are upwards of 1 MHz , far beyond what the human hearing system is capable of detecting). You are probably hearing coil whine from the electronics -- switched-mode power supplies in particular tend to operate towards the upper end of the hearing range, and the intensity of this sound changes as the power consumption does (eg. when the imaging system goes from \"idle\" to \"active\")."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://medicalsciences.stackexchange.com/questions/18672/father-gets-chickenpox-but-doesnt-infect-his-two-children-how-is-this-possibl"} |
| {"id": "law_54", "domain": "law", "question_title": "If the police search my vehicle or house without my consent, and they don't find anything, what recourse is there?", "question_body": "I understand that if the police perform an illegal search, then any evidence found during that search will be excluded from a trial, but what if they didn't find any evidence? If the police do an illegal search, and they don't find anything, is there anything I can do about it?", "question_score": 41, "question_tags": ["united-states", "search-and-seizure", "police"], "choices": {"A": "There are two parts to copyright liability: civil and criminal. TL;DR: both cases are criminal offences, and it is illegal to break the law even when you are paid to do it. In the USA criminal copyright infringement requires a deliberate act to infringe copyright for commercial gain. Both of the scenarios meet these requirements. In the UK (and probably the rest of Europe) criminal copyright infringement includes possess in the course of a business an article which is, and which you know or have reason to believe is an infringing copy of a copyright work with a view to...", "B": "Your question is the subject of longstanding and ongoing debate that has generated countless articles and books and dissertations, so you're probably not going to get a fully satisfactory answer here. But here's the short version: Different systems operate on different assumptions. Your question suggests you are not a retributivist, i.e., someone who views sentencing as a means for taking retribution for the criminal's offenses. Some systems (most, I imagine) are built around that idea, but some view criminal sentencing primarily as a means of preventing recidivism, or as a means for achieving rehabilitation, the interests you indicated you see...CAs stated, this is not a reasonable restriction and runs afoul of the Fair Housing Act . You cannot discriminate based on family status, with an exemption for \, and the act \ (let's leave aside HOA restrictions for a moment). The number of occupants can legally be restricted in terms of a reasonable relation to a legitimate interest such as parking availability, safety, noise or securing the property. A restriction based on...", "D": "You can file a federal criminal complaint under 18 USC 242 - Deprivation of rights under color of law , or (most commonly) a civil claim under 42 USC 1983 for the violation of your civil rights. There are usually state laws, from some form of harassment (usually a summary offense) to misdemeanors like the Official Oppression we have in Pennsylvania. Note that you can file these complaints even if they do find something incriminating. An illegal search is illegal regardless of its fruits."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://law.stackexchange.com/questions/54/if-the-police-search-my-vehicle-or-house-without-my-consent-and-they-dont-find"} |
| {"id": "engineering_270", "domain": "engineering", "question_title": "Why do hydraulic systems use special fluid - what's wrong with water?", "question_body": "As a hydraulics layman thinking about hydraulic systems, it seems that the important factor is to have a liquid that doesn't compress much or at all. Doesn't water meet this requirement, and what other properties should the liquid have (if any) that water doesn't?question_scorequestion_tagsmechanical-engineeringhydraulicschoicesAWater meets the low compressibility requirement, but there are many other considerations in the design of a hydraulic system: Boiling point/vapor pressure: If the system warms up during operation, the fluid may boil, which results in high compressibility and thus decreased effectiveness of the hydraulic system. Hydraulic fluid has a higher boiling point than water to help combat this. Related to this is the concept of vapor pressure. Hydraulic systems often involve small orifices, which can cause cavitation (localized boiling). This cavitation has the same effects as boiling and can cause pitting damage to the components near the cavitated region....BTrain Brakes The common brakes on trains are air brakes . As the name implies, these work off of air pressure. The braking power isn't controlled in the way that you would immediately think of though. They do not work like car brakes where the harder you press on the brake pedal, the harder the pressure goes through the lines to the brake cylinders. They work the opposite. The less pressure in the line, the more braking force is applied. Fail-safe Rail brakes are designed to be fail-safe . That is, when a failure occurs, the safe operation happens. In...", "C": "The loops are known as expansion loops. They need to be placed in pipelines to enable the pipelines to contend with thermal expansion and contraction and other forces that can affect the pipeline. They are typically placed in gas pipelines, irrespective of when the gas is hot or cold - natural gas or steam. The following quote is from Pipeline Design . It's near the end of the page under Pipe Expansion and Supports Steel piping systems are subject to movement because of thermal expansion/contraction and mechanical forces. Piping systems subjected to temperature changes greater than 50°F or temperature changes...DOP injection molding tag is correct. OBall uses injection molding and plastic welding. The OBall is the invention of David E. Silverglate. Toy Ball Apparatus with Reduced Part Count Reduced image from Kids II . It consists of four identical, flat, injection molded, pentagon and hexagon shapes with circular (or elipitical) holes, which are shaped and plastically welded into spheres. Pentagon and hexagon edges are the same size and individual connected circles are only connected along one edge. The four shapes are clearly shown in colors above and from the patent. Solid lines on each part are hard connections, while...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/270/why-do-hydraulic-systems-use-special-fluid-whats-wrong-with-water |
| idengineering_165domainengineeringquestion_titleAre pontoon bridges being considered to extend bridge span?question_bodyPontoon bridges differ from traditional bridges in that they are supported not by structures anchored to the floor of the body being spanned but by floating pontoons that are connected by a more rigid structure that supports a roadway. They're often used by militaries to provide a temporary crossing point, but they're also used for permanent civilian crossings . I would assume that they make it easier to cross larger bodies of water because there is less structure to be secured below the surface. In areas of deep water, support structures can become unfeasibly large. These larger spans could, though, make the pontoon bridges susceptible to damage from strong winds and currents. Are there plans to use pontoon bridges to cross long distances?question_scorequestion_tagscivil-engineeringbridgeschoicesAIt is a trench shield. It gets placed in a trench after the trench is dug to prevent workers from being hurt or killed in the event of a trench collapse. This picture from GMC trench shield shows a partially collapsed trench with a shield installed that would protect the workers installing the blue brute pipe.BTrees increase the turbulence of the air that reaches the turbines. That creates all sorts of uneven, rapidly-shifting loads on the blades and structure. That increases the maintenance costs, decreases availability, decreases the capacity factor, and decreases the life expectancy of the turbine. So, higher costs, lower revenue. One of the ways we measure the impact is the surface roughness coefficient $z_0$. Here are the figures from the book \. As you can see, forest and woodland has a much higher $z_0$ than open farmland - and that means higher turbulence. Open land also...CThat looks like a Pratt truss . These trusses have diagonals which go from the outer-top nodes to the inner-bottom nodes (i.e. they connect to the top chord on the node furthest from the center of the span, and to the bottom chord on the node closest to the center). This design means that the diagonals are under tension and the verticals are under compression. Another famous design is the Allan truss , which is the exact opposite: the diagonals go from the inner-top nodes to the outer-bottom nodes, which means that the diagonals are under compression and the verticals...DTheoretically pontoon bridges with rope anchors keeping them to the bottom would work against wind and flow, overcoming the problem jhabbot mentioned in his answer (same as train length limit - stretching force). In practice these come with more problems of their own. They drift on water surface and as result, rise and fall with water waves. The larger the body of water they span, the higher the waves; at certain point in stormy weather the bridge would just launch the vehicles into the air. The anchoring isn't exactly simple if it's to withstand such forces. You could just as...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/165/are-pontoon-bridges-being-considered-to-extend-bridge-span |
| idmedicine_252domainmedicinequestion_titleWould butter on burns help or harm?question_bodyI have read (a long time ago, in an old book) that butter is good for burns. Is this true, and if so what is it that helps? Is salted or unsalted butter better? And how should it be applied, and kept there?question_scorequestion_tagsfirst-aidburnshome-remedieschoicesAI think a missing bit of information that might help you get a better sense of this practice is: steroids are miracle drugs. OK, that was in jest - no miracles here. Truth be told, though, if there is a single class of drugs that has added more quality-adjusted life-years to human history than any other, steroids must be competing with just a few antibiotic classes for that title. To make clear what we’re talking about, the term “steroid” as a label for drugs generally refers to glucocorticoids (GCs) - drugs that act like cortisol, an endogenous steroid hormone. Commonly...BShort anwser : Never put butter, oil, etc , on a burn. This would worsen the burn. Putting butter, oil, or anything else would trap heat and make the burn deeper. It would also make further treatment harder and would make the risk of infection higher : Don’t apply burn ointments. Like butter (or mayonnaise), these ointments, usually oil-based, won’t relieve pain but instead will trap heat, slow down healing, and increase the risk of infection. What to do instead : Once it happens, a burn is actually \, and this for a while after the exposure, so the...CNote: The following is excerpted from an article written in 2005. For lay (Non trained) people, there are more updated recommendations. The following is an example of the process, not the current recommendations. To be effective, CPR must restore adequate coronary and cerebral blood flow. Interruptions in chest compressions lower coronary perfusion pressure and decrease rates of survival from cardiac arrest. In the first minutes of VF SCA, ventilation does not appear to be as important as chest compressions, but it does appear to contribute to survival from prolonged and asphyxial arrest. Certainly the ventilation rate needed to maintain a...DThis has been a controversial dispute for a long time and it can involve a lot of personal opinion, but I will try to answer this as scientifically as possible. There hasn't been any viable evidence that vaccines do cause autism. Several different theories have been proposed on why vaccines could cause autism, such as the ingredient in some vaccines thimerosal being harmful, but these have all been disproved by many different experiments. Many reliable sources such as the CDC 1 says that there is no link between autism an vaccines. A 2011 report 2 from the Institute of Medicine..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://medicalsciences.stackexchange.com/questions/252/would-butter-on-burns-help-or-harm"} |
| {"id": "engineering_14", "domain": "engineering", "question_title": "How are passive houses made in very hot regions (like Saudi Arabia)?", "question_body": "I think, here is the main problem the difference between the internal and the external temperature. For example, in Saudi Arabia, in 50 C, a passive house needed probably much sophisticated planning as in Paris. Compared to the traditional cooling systems, in the second case is enough only to get a cooling system with bigger power. I think, they are much more scalable. Is it anyways possible?", "question_score": 18, "question_tags": ["civil-engineering", "architecture", "cooling"], "choices": {"A": "If I model this as a simply supported beam having load at mid span [...] I suspect that this is where your analysis went awry. First off, you should always model bridges with distributed loads, not a single concentrated load at midspan. The most significant load on a bridge will almost always be its own self-weight; load-trains are heavy but, well, so are bridges. Secondly, I assume you're thinking of the bridge like this: Indeed, we can see here that the bending moment is greater at midspan. However, that's not the bridge we're looking at, it's missing the cantilevers! So...", "B": "If the receiver does not detect the sub-carrier for the \"colour burst\" signal which is transmitted during the horizontal blanking period the receiver switches on the \"colour-killer\" circuit so the set reverts to black and white mode. The colour-burst signal - 8 to 10 cycles of 3.85 MHz - is unlikely to be generated by random noise. Figure 1. The colorburst signal is transmitted on the \"back porch\" between the horizontal blanking pulse and the start of that line's luminance signal. The colorburst signal is used to synchronise the QAM (quadrature amplitude modulation) oscillator which can hold its frequency accurately...CWhen a reactor is shut down the core produces much less heat, but they do still produce heat through a mechanism known as decay heat . The fact that the core is producing less heat means that the coolant temperature is going to drop, but how far that temperature drops depends on the decay heat generation rate. This in turn is based on operating history, or the power at which the plant was operating before shutdown. This can be large for commercial plants, because they typically operate at or very near capacity and the power companies bring coal or natural...DA yahkchal is an example of a type of passively cooled building in Iran They utilise a combination of passive evaporative cooling and thick thermally insulating walls in order to keep the interior temperatures low enough. First, wind is directed into underground aquifers known as qanat . They are then cooled due to the low humidity desert air causing water to evaporate. The cooled air then flows through the interior of the yakhchal, cooling the interior. The thick insulating walls (filled with earth and various insulating materials such as straw and feathers) help to insulate the cool interior from the...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/14/how-are-passive-houses-made-in-very-hot-regions-like-saudi-arabia |
| idlaw_31368domainlawquestion_titleHow does the mandate to report income from illegal activities in the US jibe with the Fifth Amendment?question_bodyAl Capone was famously taken down for tax evasion for not reporting income from his illegal activities. If someone were to report the income from illegal activities like a marijuana dispensary or a bribe, my understanding is that they would be then investigated/prosecuted for their disclosed activities. However, The Fifth Amendment states that: No person ... shall be compelled in any criminal case to be a witness against himself,... Since reporting income, even if illegal, is a mandate and the Fifth Amendment protects against someone being held as a witness against themselves, the law seems to be inconsistent. How does the mandate to report income from illegal activities in the US jibe with the Fifth Amendment right against self incrimination?question_scorequestion_tagsunited-statestax-lawfifth-amendmentchoicesAThere is precedent for the idea that double jeopardy need not apply when the initial trial was a sham because the judge and/or jury had been bribed. See Aleman v. Judges of Cook County Circuit Court , 138 F.3d 302 (7th Cir. 1998) . This case was very similar to your hypothetical: Aleman was initially acquitted of a murder, but years later it came to light that he had bribed the judge (in a bench trial). He was retried and convicted in state court. He appealed his conviction on the grounds of double jeopardy, but the Seventh Circuit denied his...BPowers What power do I have as a driver if my interstate route is blocked by a protest? As an ordinary citizen, no powers in most jurisdictions. You have the right to report obstruction of the highway to the local police. You likely have the right to sue those people if you have evidence of significant harm they have caused you. Right to Obstruct I feel like ethically no one has the right to obstruct my travel You are wrong to put this in absolute terms. For example, a roadworker holding a \ sign has the right to temporarily obstruct...CThe original 1913 Revenue Act only required the reporting of income from \ sources. In the 1921 Revenue Act the word, \ was removed requiring all income to be reported. [IRS Publication 17] states: Illegal activities. Income from illegal activities, such as money from dealing illegal drugs, must be included in your income on Form 1040, line 21, or on Schedule C or Schedule C-EZ (Form 1040) if from your self-employment activity. In United States v. Sullivan in 1927, the U.S. Supreme Court ruled that it was constitutional to require that a tax return be filed to report income. If...DYour question is the subject of longstanding and ongoing debate that has generated countless articles and books and dissertations, so you're probably not going to get a fully satisfactory answer here. But here's the short version: Different systems operate on different assumptions. Your question suggests you are not a retributivist, i.e., someone who views sentencing as a means for taking retribution for the criminal's offenses. Some systems (most, I imagine) are built around that idea, but some view criminal sentencing primarily as a means of preventing recidivism, or as a means for achieving rehabilitation, the interests you indicated you see..."}, "answer": "C", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://law.stackexchange.com/questions/31368/how-does-the-mandate-to-report-income-from-illegal-activities-in-the-us-jibe-wit"} |
| {"id": "finance_9911", "domain": "finance", "question_title": "Book on market microstructure", "question_body": "Can I get some recommendations for a book on market microstructure? I'm not looking for some author's questionable methods for trading, I'm just looking for a book that provides me with facts about how order books, closing auctions, order execution, etc. really works. I'm also NOT looking for the type of depth that a HFT would be interested in. I know that whole books can be written about the various plumbing of a particular exchange. I'm simply looking for a general overview of how exchanges work.question_scorequestion_tagsmarket-microstructurebookschoicesAConsider the standard error , and in particular the distance between the upper and lower limits: \\begin{equation} \\Delta = (\\bar{x} + SE \\cdot \\alpha) - (\\bar{x} - SE \\cdot \\alpha) = 2 \\cdot SE \\cdot \\alpha \\end{equation} Using the formula for standard error, we can solve for sample size: \\begin{equation} n = \\left(\\frac{2 \\cdot s \\cdot \\alpha}{\\Delta}\\right)^{2} \\end{equation} where $s$ is the measured standard deviation, which you already have from your IR calculation. High-frequency Example I was testing a market-making model recently that was expected to return a couple basis points for each trade and I wanted to be confident...BThe volatiltiy surface is just a representation of European option prices as a function of strike and maturity in a different \ - namely implied volatility (while the term implied volatility has to be made precise by the model used to convert prices (quotes) into implied volatilities - for example: we may consider log-normal vols and normal vols). Volatility is often preferred over prices, e.g., when considering interpolations of European option prices (although this may introduce difficulties like arbitrage violations, see, e.g., http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1964634 ). A local volatility model can generate a perfect fit to the implied volatility surface via Dupire's...", "C": "I've not yet read it, but Lehalle's recent book is bound to be a goldmine of good micro-structure bits and pieces. Market Microstructure in Practice EDIT: I'm reading the book now, so far it's quite good.", "D": "One starts with the Black-Scholes equation $$\\frac{\\partial C}{\\partial t}+\\frac{1}{2}\\sigma^2S^2\\frac{\\partial^2 C}{\\partial S^2}+ rS\\frac{\\partial C}{\\partial S}-rC=0,\\qquad\\qquad\\qquad\\qquad\\qquad(1)$$ supplemented with the terminal and boundary conditions (in the case of a European call) $$C(S,T)=\\max(S-K,0),\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad(2)$$ $$C(0,t)=0,\\qquad C(S,t)\\sim S\\ \\mbox{ as } S\\to\\infty.\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad$$ The option value $C(S,t)$ is defined over the domain $0 Step 1. The equation can be rewritten in the equivalent form $$\\frac{\\partial C}{\\partial t}+\\frac{1}{2}\\sigma^2\\left(S\\frac{\\partial }{\\partial S}\\right)^2C+\\left(r-\\frac{1}{2}\\sigma^2\\right)S\\frac{\\partial C}{\\partial S}-rC=0.$$ The change of independent variables $$S=e^y,\\qquad t=T-\\tau$$ results in $$S\\frac{\\partial }{\\partial S}\\to\\frac{\\partial}{\\partial y},\\qquad \\frac{\\partial}{\\partial t}\\to - \\frac{\\partial}{\\partial \\tau},$$ so one gets the constant coefficient equation $$\\frac{\\partial C}{\\partial \\tau}-\\frac{1}{2}\\sigma^2\\frac{\\partial^2 C}{\\partial y^2}-\\left(r-\\frac{1}{2}\\sigma^2\\right)\\frac{\\partial C}{\\partial y}+rC=0.\\qquad\\qquad\\qquad(3)$$ Step 2. If we..."}, "answer": "C", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/9911/book-on-market-microstructure"} |
| {"id": "cybersecurity_123234", "domain": "cybersecurity", "question_title": "How can I explain to non-techie friends that "cryptography is good"?", "question_body": "After that case in which Brazilian government arrested a Facebook VP due to end-to-end encryption and no server storage of messages on WhatsApp to prove connection with a drug case, it's become pretty common for friends of mine to start conversations about what cryptography is and why we should use it on a daily basis. The same applies with the iPhone terrorist encryption case in which the FBI broke in . For non-techie friends, it's easy to understand the basics of cryptography. I have managed to explain them the basics, public key x private key, what is end-to-end encryption during communication(your data is not stored encrypted, but it is \"scrambled\" during data exchange), all the core concepts without enter on more technical words like AES, MD5, SSL, PGP, hardware encryption acceleration, TPMs, etc. They like to have encryption on their phones, but they always come up with the following concept: If terrorists/criminals could be caught by not having cryptography in our world, I would not blame data surveillance by governments and companies, nor the lack of cryptography in our communications/data storage. I explained that this point of view is somehow twisted (as a knife can be used to do crimes, but its primary use is as a tool), but I didn't keep their attention. Is there a best way to explain the value of cryptography for end-users in our modern world? (Snowden and Assange stories seems like fairy tales to them too). Compendium: Some of the explanations/concepts that didn't work so far: Would you let the government have a copy of your house key? People tend to isolate data from house access, and they clearly would say \"no, i do not want the government to have a copy of my house key and watch me doing private stuff. But if they are looking for a terrorist/criminal, it's fine to break the door\master key\My information is encrypted, but it could be turned into plain again in case of terrorism/crime\But Google already does that based on emails and searches...\with the flow\I don't talk about things that would harm others(criminally speaking) so, i don't mind on being MITM'ded.\". Again, it's fine to them if a conversation about their sexual routine is recorded, if the intent is to investigate criminal activity on their city. The Knife paradox . You can see on their faces that this is a good one, but instead, they say that \.question_scorequestion_tagscryptographydata-leakagechoicesATL;DR - You can store the salt in plaintext without any form of obfuscation or encryption, but don't just give it out to anyone who wants it. The reason we use salts is to stop precomputation attacks, such as rainbow tables . These attacks involve creating a database of hashes and their plaintexts, so that hashes can be searched for and immediately reversed into plaintext. For example*: 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 a e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 b 84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 c ... 948291f2d6da8e32b007d5270a0a5d094a455a02 ZZZZZX 151bfc7ba4995bfa22c723ebe7921b6ddc6961bc ZZZZZY 18f30f1ba4c62e2b460e693306b39a0de27d747c ZZZZZZ Most tables also include a list of common passwords: 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 password e38ad214943daad1d64c102faec29de4afe9da3d password1 b7a875fc1ea228b9061041b7cec4bd3c52ab3ce3 letmein 5cec175b165e3d5e62c9e13ce848ef6feac81bff qwerty123 *I'm using SHA-1...BI was curious about the same thing, so I put Gbt3fC79ZmMEFUFJ into Google, and lo! and behold it found something that wasn't just a paraphrase of \"Don't use this password\, : , : If lack of encryption allows FBI to catch terrorists, then lack of encryption allows criminals to loot your emails and plunder your bank account.\}, : , : , : , : , : } |
| {: , : , : , : color brown \, : 47, : [, , ], : {: recipe\trademark\ownership\copyright\, : stop\, : , : editorials or subjective content\}, : , : , : , : , : } |
| {: , : , : , : , : 185, : [, , , ], : {: , : , : , : encrypted\hashed\normal\}, : , : , : , : , : } |
| {: , : , : , : , : 228, : [, , ], : {: , : social engineering\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 34, : [, , , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 242, : [, , , , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 146, : [, ], : {: , : , : interested parties\unsavory\, : }, : , : , : , : , : } |
| {: , : , : , : as long as we're making fun of Starbucks, we're allowed to use their corporate identity\, : 36, : [, ], : {: , : All persons born in the United States\and subject to the jurisdiction thereof,\, : Dumb Starbucks\, : }, : , : , : , : , : } |
| {: , : , : , : , : 14, : [, ], : {: , : lower\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 12, : [, ], : {: , : SM-102\exotic\, : , : }, : , : , : , : , : } |
| {: , : , : , : martingale\Markov property\, : 28, : [, , ], : {: Trading Strategies to Exploit Blog and News Sentiment\The Predictive Power of Financial Blogs\An analysis of verbs in financial news articles and their impact on stock price\, : unit\, : , : Modeling financial data with stable distributions\Handbook of Heavy Tailed Distributions in Finance\Alpha-Stable Paradigm in Financial Markets\risk of fluctuations\}, : , : , : , : , : } |
| {: , : , : , : , : 15, : [, , ], : {: colour burst\colour-killer\back porch\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : me\, : 40, : [, ], : {: , : normal\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 178, : [, ], : {: , : So you don't get hit with a $5 million class-action lawsuit .\" That should be reason enough for most CEOs. Hashing passwords is a lot cheaper. But more importantly: simply hashing the passwords as you suggested in your question isn't sufficient. You'll still get the lawsuit. You need to do more. Why you need to do more takes a bit longer to explain. So let's take the long route for a moment so that you understand what you're explaining, and then we'll circle around for your 5-minute synopsis. Hashing is just the beginning...CAs a starting point, we will consider that each elementary operation implies a minimal expense of energy; Landauer's principle sets that limit at 0.0178 eV, which is 2.85×10 -21 J. On the other hand, the total mass of the Solar system, if converted in its entirety to energy, would yield about 1.8×10 47 J (actually that's what you would get from the mass of the Sun, according to this page , but the Sun takes the Lion's share of the total mass of the Solar system). This implies a hard limit of about 6.32×10 68 elementary computations, which is about...", "D": "Lots of examples. A high-profile and recent example is when Kanye was caught on camera entering his \"00000\" password to unlock his device. Shoulder-surfing is one reason why applications do not display the password text on the screen, but show ****** instead. And this is one reason why multi-factor authentication is so important; even if you know the password, you cannot use it without another factor. I have even seen viable research into capturing the sound of the keyboard when a user types the password, even over the computer's microphone . So, yes, you describe a viable risk that the...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/63392/what-is-a-good-analogy-to-explain-to-a-layman-why-passwords-should-be-hashed |
| idlaw_42930domainlawquestion_titleCan a Resident Assistant be told to ignore a lawful order?'question_bodyToday I have an interesting question involving Police, Fire and university administration. A little bit of background: for the past few years, my University has been involved in a small, awkward cold war with local emergency responders over expectations on live-in Residential Assistants during emergency situations. Specifically, the biggest flashpoints are fire alarms and wellness checks on residents. Within the dorms, we have been told that both Campus Police and Local Fire Departments have been provided keys to all rooms in case an emergency (fire or safety) is reported. We have also been told that we are, under no circumstances , to assist Police or Fire with entering a room (to which we have keys as Resident Assistants, for lockouts and the like) until we have received permission from several layers of (on-call) department administration. The heads of the Residential Services Office insist that this is to protect the department in the case of a privacy complaint on behalf of a resident who we let police into the room of, and to avoid liability from ordering (by policy) RAs back into a potentially dangerous building under alarm. Police and fire, meanwhile, never seem to have the keys. Thus, for the safety of the building or the resident, they will order us to open up the door for them, right now. Which brings us to the issue: Police/fire wants us to open a door, and gives us what I believe is a lawful order do so. Meanwhile, Residence Life policy wants us to call up to our supervisor and follow a whole procedure, directly countermanding the orders of the officer or firefighter on scene. Must I open the door, legally speaking? And is my department's policy of refusal illegal/unenforceable?", "question_score": 48, "question_tags": ["united-states", "police", "ohio", "emergencies"], "choices": {"A": "Think through the logical combinations of two questions: The government is tyrannical or just, the revolution is successful or not. Tyrannical government, revolution successful: The revolutionaries will congratulate each other, and of course they are not persecuted by the new government they install . Just government, revolution successful: The revolutionaries will congratulate each other, and of course they are not persecuted by the new government they install . Tyrannical government, revolution not successful: The legal system will find the justified attempt illegal (because they are the legal system defending a tyrannical government), the would-be revolutionaries are persecuted. Just government, revolution...", "B": "There is a state law that requires you to obey the police: ORC 2917.13 , which says you may not Fail to obey the lawful order of any law enforcement officer engaged in the law enforcement officer's duties at the scene of or in connection with a fire, accident, disaster, riot, or emergency of any kind. If you do, misconduct at an emergency is a misdemeanor of the fourth degree. If a violation of this section creates a risk of physical harm to persons or property, misconduct at an emergency is a misdemeanor of the first degree. You also cannot...CYes, their waiver has no legal basis and is invalid under the GDPR. They should have hired a better lawyer. GDPR rights cannot be waived ( mrllp.com ). The last bit should have been: Therefore, in consideration of my participation in any project, I understand that retaining my name and email address, as described above, does not require my consent and that the right of erasure, as spelled out in the GDRP Article 17 (1) b does not apply. The legal basis for our lawful processing of this personal data is Article 6 (1) f (\, : }, : , : , : , : , : } |
| {: , : , : , : , : 26, : [, ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 148, : [, ], : {: , : 00000\, : , : }, : , : , : , : , : } |
| {: , : , : , : land agreement\, : 57, : [, , , ], : {: , : An individual requesting the delayed report of live birth of an individual under twelve years of age must establish the facts concerning full...CIt is legal, at least in the US, for a store (or other entity) to refuse to sell any item to any individual for any non-prohibited reason (prohibited reasons are typically things like race or religion). More over, in various US jurisdictions, it is prohibited to \ alcohol to a \ (for example, under California's ABC law), which can be interpreted as prohibiting to an adult if they reasonably suspect that adult will pass the alcohol onto the \"minor\". This is to prevent \"straw\" sales. Additionally, larger chains generally prefer to have harmonized policies across branches, and where practical, across...", "D": "A \"land contract\" is not a way of renting property, it is a way of purchasing property on an installment basis without bank financing. It is Ohio's version of what in some other places is known as \. See \ and \ The actual law is Section 5313 . In a land contract, the buyer has equitable but not legal title. The buyer normally pays all taxes and fees, and is responsible for maintaining the property, just as if s/he has bought the property. But if the buyer defaults,...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/38916/landlord-wants-to-switch-my-lease-to-a-land-contract-to-get-back-at-the-city |
| idengineering_68domainengineeringquestion_titleHow does width and thickness affect the stiffness of steel plate?question_bodyI have a 2 mm thick steel plate which is 300 mm long and 30 mm wide, supported at either end. It supports a weight-bearing wheel that can roll along the plate. It currently supports the maximum weight that I expect it to support when the wheel is in the middle, but it flexes a little bit too much. Would making it wider help to support the weight and increase its stiffness, or do I need to make it thicker? Also is there a way to calculate how the stiffness will change with the thickness (or width if that would affect it)?question_scorequestion_tagsmechanical-engineeringsteelstiffnesschoicesAShort answer : make it thicker. Long answer : The moment of inertia affects the beam's ability to resist flexing. Use one of the many, free, online moment of inertia calculators (like this one ) to see how increasing the height of the beam will have an exponential effect on increasing the stiffness of the beam. And this site helps provide a pictorial view of the load(s) upon a beam depending upon differing configurations, such as where the supports are and where the load is applied. It also provides a calculator to determine the forces involved. Wikipedia has a decent...", "B": "The difference between the two equations The cavitation number is the ratio of the static pressure difference to the dynamic pressure difference. So, if you want to use the first equation, you would need to take the pressure using a Pitot tube to measure the total pressure, whereas if you want to use the second equation you will need to measure the freestream velocity, but I would recommend measuring it upstream rather than downstream because of possible effects of acceleration and boundary layer growth. Also, your $V$ should be $V_{in}$ such that it corresponds to the same location where $p_{in}$...", "C": "When a reactor is shut down the core produces much less heat, but they do still produce heat through a mechanism known as decay heat . The fact that the core is producing less heat means that the coolant temperature is going to drop, but how far that temperature drops depends on the decay heat generation rate. This in turn is based on operating history, or the power at which the plant was operating before shutdown. This can be large for commercial plants, because they typically operate at or very near capacity and the power companies bring coal or natural...", "D": "I suspect that the answer to this is that, ultimately the gear ratio comes from the ratio of diameters of the gears rather than the number of teeth, although in most circumstances practicality dictates that they are proportional. Say you have a 10 tooth cog and a 40 tooth chainwheel. It's fairly simple to imagine that you could remove every other tooth from the 40 tooth wheel while keeping the diameter the same and maintain exactly the same gear ratio. Similarly you could have a completely gearless wheel (putting aside issues of slippage) driving a chain which drove a geared...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/68/how-does-width-and-thickness-affect-the-stiffness-of-steel-plate |
| idengineering_22725domainengineeringquestion_titleWhy does column buckling occur when the load is parallel to the column?question_bodyI'm studying Euler's work on structural engineering from a book out of curiosity and it is mentioned that he developed a mathematical theory describing the buckling of columns under a parallel load (the weight-force of the load is directed down along the column). The theory is covered quickly without much motivation. But this got me thinking; why does a column \ in the first place? If the load presses the column down, why does the column even start deflecting sideways? I know this happens in real life since this fact is easily confirmeable with household objects, but theoretically, why do objects start deflecting sideways instead of just compressing under loads? This might be something obvious and maybe I'm just overthinking but I find this curious nonetheless.", "question_score": 14, "question_tags": ["structural-engineering", "civil-engineering"], "choices": {"A": "If the receiver does not detect the sub-carrier for the \"colour burst\" signal which is transmitted during the horizontal blanking period the receiver switches on the \"colour-killer\" circuit so the set reverts to black and white mode. The colour-burst signal - 8 to 10 cycles of 3.85 MHz - is unlikely to be generated by random noise. Figure 1. The colorburst signal is transmitted on the \"back porch\" between the horizontal blanking pulse and the start of that line's luminance signal. The colorburst signal is used to synchronise the QAM (quadrature amplitude modulation) oscillator which can hold its frequency accurately...BNothing is rigid, the raceways and the ball in a ball-bearing are no exception. The contact area deflects and accommodates the ball in a small contact surface, not a point. Also, the balls take the load in groups. The digrams are from SKF ball-bearings. '", "C": "A yahkchal is an example of a type of passively cooled building in Iran They utilise a combination of passive evaporative cooling and thick thermally insulating walls in order to keep the interior temperatures low enough. First, wind is directed into underground aquifers known as qanat . They are then cooled due to the low humidity desert air causing water to evaporate. The cooled air then flows through the interior of the yakhchal, cooling the interior. The thick insulating walls (filled with earth and various insulating materials such as straw and feathers) help to insulate the cool interior from the...", "D": "Euler buckling occurs because the world isn't perfect. So that theory assumes that there is an initial infinitesimal deviation along the column (assuming the column is in fact not perfectly vertical*). This deviation causes a bending moment along the beam, which increases the deviation, which increases the bending moment, which increases the deviation... For loads lower than the Euler load, this vicious cycle eventually stabilizes and the beam doesn't buckle. For the Euler load and above, the cycle never stabilizes and the deflection goes to infinity. Obviously the real world has initial deviations and other problems which are much higher..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://engineering.stackexchange.com/questions/22725/why-does-column-buckling-occur-when-the-load-is-parallel-to-the-column"} |
| {"id": "cybersecurity_137098", "domain": "cybersecurity", "question_title": "Should I be concerned if the "FBI" has logged onto my Ubuntu VPS?", "question_body": "Yesterday, I was performing a bit of general maintenance on a VPS of mine, using the IPMI console my host provided. Upon setting up SSH keys again via the IPMI console, I logged in via SSH and was shocked to see this: Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 2.6.32-042stab116.2 x86_64) Documentation: https://help.ubuntu.com/ Last login: Sat Sep 17 04:39:57 2016 from ic.fbi.gov Immediately, I contacted my hosting company. They said that they didn't know why this might be, and that it's possible the hostname was spoofed. I did a bit more digging, and resolved ic.fbi.gov to an IP address. I then ran this on the system: last -i This returned my IP address, and then two other IP addresses which were unknown to me. I geoIP'd these two IP addresses. One of them was a VPN and the other was a server from a hosting company in the state of Washington. Again, the IP that I resolved ic.fbi.gov to was not on the list. Do you think I should be concerned/worried about the \ obtaining access to my VPS? Or is it just a hacker that spoofed the hostname?question_scorequestion_tagslinuxsshspoofingsystem-compromisechoicesAThere are a few issues with HTTP Basic Auth: The password is sent over the wire in base64 encoding (which can be easily converted to plaintext). The password is sent repeatedly, for each request. (Larger attack window) The password is cached by the webbrowser, at a minimum for the length of the window / process. (Can be silently reused by any other request to the server, e.g. CSRF). The password may be stored permanently in the browser, if the user requests. (Same as previous point, in addition might be stolen by another user on a shared machine). Of those, using...BTL;DR - You can store the salt in plaintext without any form of obfuscation or encryption, but don't just give it out to anyone who wants it. The reason we use salts is to stop precomputation attacks, such as rainbow tables . These attacks involve creating a database of hashes and their plaintexts, so that hashes can be searched for and immediately reversed into plaintext. For example*: 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 a e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 b 84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 c ... 948291f2d6da8e32b007d5270a0a5d094a455a02 ZZZZZX 151bfc7ba4995bfa22c723ebe7921b6ddc6961bc ZZZZZY 18f30f1ba4c62e2b460e693306b39a0de27d747c ZZZZZZ Most tables also include a list of common passwords: 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 password e38ad214943daad1d64c102faec29de4afe9da3d password1 b7a875fc1ea228b9061041b7cec4bd3c52ab3ce3 letmein 5cec175b165e3d5e62c9e13ce848ef6feac81bff qwerty123 *I'm using SHA-1...CThe known_hosts file lets the client authenticate the server, to check that it isn't connecting to an impersonator. The authorized_keys file lets the server authenticate the user. Server authentication One of the first things that happens when the SSH connection is being established is that the server sends its public key to the client, and proves (thanks to public-key cryptography ) to the client that it knows the associated private key. This authenticates the server: if this part of the protocol is successful, the client knows that the server is who it claims it is. The client may check that...", "D": "An IP address can be set up in DNS to resolve to any host name, by whoever is in control of that IP address. For example, if I am in control of the netblock 203.0.113.128/28, then I can set up 203.0.113.130 to reverse-resolve to presidential-desktop.oval-office.whitehouse.gov . I don't need control of whitehouse.gov to do this, though it can help in some situations (particularly, with any software that checks to make sure reverse and forward resolution matches ). That wouldn't mean that the president of the United States logged into your VPS. If someone has access to your system, they can..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/137098/should-i-be-concerned-if-the-fbi-has-logged-onto-my-ubuntu-vps"} |
| {"id": "finance_1114", "domain": "finance", "question_title": "Why are options trades supposed to be delta-neutral?", "question_body": "I'm reading Natenberg's book, and he says that all options trades should be delta neutral. I understand that this prevents small changes in the underlying price from changing the price of the option, but couldn't there be a case where you would want that? I (think I) also understand that if you're betting against just volatilty, it would make sense, since you don't care what direction the underlying price moves, but I don't entirely understand why he says all options trades should be delta neutral.", "question_score": 24, "question_tags": ["options", "delta-neutral"], "choices": {"A": "Garabedian, Typically, the \"swap curve\" refers to an x-y chart of par swap rates plotted against their time to maturity. This is typically called the \"par swap curve.\" Your second question, \"how it relates to the zero curve,\" is very complex in the post-crisis world. I think it's helpful to start the discussion with a government bond yield curve to clarify some concepts and terminologies. Consider the US Treasury market, using the outstanding Treasury notes and bonds (nearly 300 of them...), we can either use bootstrapping or more sophisticated spline models to construct a \ Since this yield curve...BScott Mixon argues in What Does Implied Volatility Skew Measure that among all measures of implied volatility skew, the (25 delta put volatility - 25 delta call volatility)/50 delta volatility is the most descriptive and least redundant (volatility is Black-Scholes implied volatility). His paper, recently published in the Journal of Derivatives , gives a number of both theoretical and empirical arguments in favor of this measure. He distinguishes between \, which is a measure of the slope of the implied volatility curve for a given expiration date, and \, which is the skewness of an option implied, risk neutral probability...C1. Determine Factors Economically, the use of factor models can be either motivated using the ICAPM or the APT . Although there are some theoretical differences between the model, for empirical and practical work these differences are irrelevant. In the end, both models stipulate that returns and expected returns are linear functions of the factors: $$ r_{i,t} = \\alpha_i + \\sum_j \\beta_{i,j} F_{j,t} + \\epsilon_{i,t} \\quad (1)$$ $$ \\mathbb{E}[ r_{i,t}] = \\lambda_o + \\sum_j \\beta_{i,j} \\lambda_j \\quad\\quad\\quad(2)$$ where $F_{j,t}$ is the factor surprise of factor $j$ at time $t$ and $\\lambda_j $ is the factor risk premium of factor $j$....DI haven't read Natenberg but it of course depends on your side in the trade: Are you a market maker or a risk taker? So do you live on the spread (first) or are trying to make money based on e.g. forecasts on direction (second). This is the great divide in QuantFinance! Only in the first case will all your option trades be delta neutral. There is a nice short paper which elaborates on both concepts (it calls the first one Q and the second P ): Meucci: 'P' Versus 'Q': Differences and Commonalities between the Two Areas of Quantitative..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/1114/why-are-options-trades-supposed-to-be-delta-neutral"} |
| {"id": "finance_998", "domain": "finance", "question_title": "Strategy of Renaissance Technologies Medallion fund: Holy Grail or next Madoff?", "question_body": "Renaissance Technologies Medallion fund is one of the most successful hedge funds - ever! Yet it is very secretive. Do you have information on the strategy used that is not yet mentioned in the Wikipedia article above? Is there really something fundamental going on (the Holy Grail of investing) - or will this be the next Madoff?", "question_score": 28, "question_tags": ["strategy", "quant-funds"], "choices": {"A": "The risk-neutral measure $\\mathbb{Q}$ is a mathematical construct which stems from the law of one price , also known as the principle of no riskless arbitrage and which you may already have heard of in the following terms: \"there is no free lunch in financial markets\". This law is at the heart of securities' relative valuation , see this very nice paper by Emmanuel Derman (\, 2011) and some part of this discussion. In what follows, assume for the sake of simplicity existence of a risk-free asset ; deterministic and constant rates, with risk-free rate $r$ ;...BBecause of: The (extreme) dominance of noise over signal The prevalence of non-repeating patterns (many of which we know are not going to repeat) A pathetic sample size for cross-validation Regime changes due to exogenous events. These are typically in the cross-val window which makes it even worse. (GFC, financial integration, trade law changes, interest rate adjustments by central banks, some idiot in a bank was hiding trades and loses 5 billions dollars, etc). It is well known that non-linear relationships are generally just artefacts of the in sample dataset There is also the following: Much price changes are driven...CConsider the standard error , and in particular the distance between the upper and lower limits: \\begin{equation} \\Delta = (\\bar{x} + SE \\cdot \\alpha) - (\\bar{x} - SE \\cdot \\alpha) = 2 \\cdot SE \\cdot \\alpha \\end{equation} Using the formula for standard error, we can solve for sample size: \\begin{equation} n = \\left(\\frac{2 \\cdot s \\cdot \\alpha}{\\Delta}\\right)^{2} \\end{equation} where $s$ is the measured standard deviation, which you already have from your IR calculation. High-frequency Example I was testing a market-making model recently that was expected to return a couple basis points for each trade and I wanted to be confident...DThere are a some information about Renaissance Technologies available in The Quants from Patterson. Basically, and it's also what I heard in general, they are using intensively algorithmic trading, and from what I understood there are using Information Theory (they worked with Shannon if I remember well). I'd say it'd be harsh to say it's the next Madoff given the background they have, I can easily see them being simply better than the rest... It's just my opinion of course..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/998/strategy-of-renaissance-technologies-medallion-fund-holy-grail-or-next-madoff"} |
| {"id": "cybersecurity_4704", "domain": "cybersecurity", "question_title": "How does changing your password every 90 days increase security?", "question_body": "Where I work I'm forced to change my password every 90 days. This security measure has been in place in many organizations for as long as I can remember. Is there a specific security vulnerability or attack that this is designed to counter, or are we just following the procedure because \? It seems like changing my password would only make me more secure if someone is already in my account . This question was IT Security Question of the Week . Read the Jul 15, 2011 blog entry for more details or submit your own Question of the Week.question_scorequestion_tagsauthenticationpasswordspassword-managementchoicesAThe reason password expiration policies exist, is to mitigate the problems that would occur if an attacker acquired the password hashes of your system and were to break them. These policies also help minimize some of the risk associated with losing older backups to an attacker. For example, if an attacker were to break in and acquire your shadow password file, they could then start brute forcing the passwords without further accessing the system. Once they know your password, they can access the system and install whatever back doors they want unless you happen to have changed your password in...BNote: This answer was written in 2013. Many things have changed in the following years, which means that this answer should primarily be seen as how best practices used to be in 2013. The Theory We need to hash passwords as a second line of defence. A server which can authenticate users necessarily contains, somewhere in its entrails, some data which can be used to validate a password. A very simple system would just store the passwords themselves, and validation would be a simple comparison. But if a hostile outsider were to gain a simple glimpse at the contents of...CThere is no substantial security benefit to disallowing pasted passwords; on the contrary it is likely to weaken security by discouraging the use of password managers to generate and autofill randomized passwords. While some password managers are capable of overriding pasting restrictions, the point still stands that users should not be forced to type their password by hand. Excerpt from a relevant WIRED article : Websites, Please Stop Blocking Password Managers. It’s 2015 But what’s crazy is that, in 2015, some websites are intentionally disabling a feature that would allow you to use stronger passwords more easily—and many are doing...DHere is a dramatization of how the communication goes, when a mail is received anywhere. Context: an e-mail server, alone in a bay, somewhere in Moscow. The server just sits there idly, with an expression of expectancy. Server: Ah, long are the days of my servitude, That shall be spent in ever solitude, 'Ere comes hailing from the outer rings The swift bearer of external tidings. A connection is opened. Server: An incoming client ! Perchance a mail To my guardianship shall be entrusted That I may convey as the fairest steed And to the recipient bring the full tale...."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/4704/how-does-changing-your-password-every-90-days-increase-security"} |
| {"id": "finance_139", "domain": "finance", "question_title": "Trading a synthetic replication of the VIX index", "question_body": "One cannot directly buy and sell the VIX index. Theoretically, however, one could approximate the index by purchasing an at-the-money straddle on the SP500, then delta-hedging the straddle. Does anyone have experience with such a \"synthetic\" replication of the index? It might be very useful for betting on volatility or for spreads against the VIX futures (a sort of basis trade), but I can see potential problems if the replication is too inaccurate. (To anticipate your comments: I'm aware of the many VIX-related ETFs; but, no, I would not consider using them. I'm also aware that the VIX calculation uses other strikes beyond the ATM options; this proposed synthetic is admittedly an approximation.)", "question_score": 35, "question_tags": ["vix", "delta-neutral"], "choices": {"A": "A synthetic model for the VIX would be quite useful. I just mention this since it has been covered elsewhere in the past, although I don't think that it's a real solution to your problem (for a number of reasons). Several blogs posted on the \"William's VIX Fix\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : exotic\, : 47, : [, , , ], : {: Modeling financial data with stable distributions\Handbook of Heavy Tailed Distributions in Finance\Alpha-Stable Paradigm in Financial Markets\risk of fluctuations\, : The Drunk and Her Dog\A Drunk and Her Dog: An Illustration of Cointegration and Error Correction\drunkard's walk\". The Dickey-Fuller test is used to check for a unit root . It can be used as part of the general Engle-Granger two-step method (although it isn't the only option). In this case, while the two assets themselves are not stationary, you are able to test if the residuals between a...CFrom what I remember, there is no real relation between Markov and Martingale, and my intuition was confirmed by this post . Basically, it says that you can say neither of the following: If A is Markov, then A is a martingale. If A is a martingale, then A is Markov. further down the post, you can find two counter examples: $dX_t = a dt + \\sigma dW_t$ is Markov but not a martingale and $dX_t = (\\int_0^t X_s ds) dW_t$ is a Martingale but is not Markov. As for the assumption of these properties being true, I think it...DThere are some cases where you can blend your portfolios using weights directly. One case involves corner portfolios . In this case a linear combination of weights is also efficient. Another case is where you can treat the two separate weights you have produced each as distinct portfolio under the assumption that the correlation between these portfolios is relatively stable. In this scenario, the problem reduces to a two-asset portfolio optimization problem (each asset is simply the linear combination of weights produced via your two methods). The other class of methods involves blending via the expected returns. If you arrived...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://quant.stackexchange.com/questions/115/l%c3%a9vy-alpha-stable-distribution-and-modelling-of-stock-prices |
| idcybersecurity_171356domaincybersecurityquestion_titleConsequences of the WPA2 KRACK attackquestion_bodyToday new research was published on vulnerabilities in wireless network security called Krack . What are the real-world consequences of these attacks for users and owners of wireless networks, what can an attacker actually do to you? Also is there anything a wireless network owner can do apart from contact their vendor for a patch?question_scorequestion_tagswifiwirelesswpa2krackchoicesAIt typically works like this: Say your password is \. I could simply store it raw, but anyone who gets my database gets the password. So instead I do an SHA1 hash on it, and get this: $ echo -n baseball | sha1sum a2c901c8c6dea98958c219f6f2d038c44dc5d362 Theoretically it's impossible to reverse a SHA1 hash. But go do a google search on that exact string , and you will have no trouble recovering the original password. Plus, if two users in the database have the same password, then they'll have the same SHA1 hash. And if one of them has a password hint...BBcrypt has the best kind of repute that can be achieved for a cryptographic algorithm: it has been around for quite some time, used quite widely, \, and yet remains unbroken to date. Why bcrypt is somewhat better than PBKDF2 If you look at the situation in details, you can actually see some points where bcrypt is better than, say, PBKDF2 . Bcrypt is a password hashing function which aims at being slow. To be precise, we want the password hashing function to be as slow as possible for the attacker while not being intolerably slow for the honest...CCiting the relevant parts from https://www.krackattacks.com : Who is vulnerable? Both clients and access points are listed in the paper as being vulnerable. See the tables 1 and 2 on pages 5 and 8 for examples of vulnerable systems, and table 3 on page 12 for an overview of which packets can be decrypted. The weaknesses are in the Wi-Fi standard itself, and not in individual products or implementations. Therefore, any correct implementation of WPA2 is likely affected. [...] the attack works against personal and enterprise Wi-Fi networks, against the older WPA and the latest WPA2 standard, and even against...DGeneral SSL (and its successor, TLS ) is a protocol that operates directly on top of TCP (although there are also implementations for datagram based protocols such as UDP). This way, protocols on higher layers (such as HTTP) can be left unchanged while still providing a secure connection. Underneath the SSL layer, HTTP is identical to HTTPS. When using SSL/TLS correctly, all an attacker can see on the cable is Which IP and port you are connected to Roughly how much data you are sending What encryption and compression are used In SSLv3 through TLS version 1.2 : the current...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/171356/consequences-of-the-wpa2-krack-attack |
| idcybersecurity_187556domaincybersecurityquestion_titleWhat stops Google from saving all the information on my computer through Google Chrome?question_bodyI noticed that in Google Chrome, if I type in file:///C:/Users/MyUsername/Desktop/ it shows me all of the folders on my Desktop, and I can type open up PDFs and such in chrome just by typing in the file path. What processes and systems are in place so that Google is not able to copy data stored on my computer? What processes and systems are in place so that someone who writes a Chrome extension is not able to copy files stored on my computer?question_scorequestion_tagschromefile-systemfile-accesschoicesAWhat processes and systems are in place so that Google is not able to copy the data on my computer? None. Google Chrome usually runs with the permissions of your user account. The application can then read and modify local files to the same extent your user account can. (These permissions apply to most of the programs you're using.) So you need to trust Google in that they don't ship a malicious update that spies on you, or keep sensitive files inaccessible to the account you're running the browser with. Alternatively, there are most likely sandbox implementations for your OS...", "B": "There are a few issues with HTTP Basic Auth: The password is sent over the wire in base64 encoding (which can be easily converted to plaintext). The password is sent repeatedly, for each request. (Larger attack window) The password is cached by the webbrowser, at a minimum for the length of the window / process. (Can be silently reused by any other request to the server, e.g. CSRF). The password may be stored permanently in the browser, if the user requests. (Same as previous point, in addition might be stolen by another user on a shared machine). Of those, using...", "C": "Is this normal for a pentest? Absolutely not . Best case scenario: they are performing \"social engineering\" penetration testing and want to see if you can be pressured into fulfilling a very dangerous action. Middle-case scenario, they don't know how to do their job. Worst-case scenario they are only pretending to be an auditing company and fulfilling their request will result in an expensive breach. In the case of a code-audit the company will obviously need access to source code. However I would expect a company who provides such services to already understand the sensitivity of such a need and...DChrome not only stores your password text, it will show it to you. Under settings -> advanced -> manage passwords you can find all your passwords for all your sites. Click show on any of them and it will appear in the clear. Hashed passwords work for the site authenticating you. They are not an option for password managers. Many will encrypt the data locally, but the key will also be stored locally unless you have a master password setup. Personally, I use the chrome password manager and I find it convenient. I also, however, have full disk encryption and...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/187556/what-stops-google-from-saving-all-the-information-on-my-computer-through-google |
| idcybersecurity_71316domaincybersecurityquestion_titleHow secure are the FIDO U2F tokensquestion_bodyGoogle and Yubico just announced the availability of cryptographic security tokens following the FIDO U2F specification. Is this just another 2FA option, or is this significantly better than solutions such as SecureID and TOTP? Specifically: In what way is U2F fundamentally different from OTP? How does U2F affect the feasibility of phishing attacks in comparison to OTP systems? How feasible are non-interactive attacks against U2F (e.g. brute-force, etc)? Can I safely use a single U2F token with multiple independent services? How does U2F stack up against other commercial offerings? Are there better solutions available?question_scorequestion_tagsauthenticationmulti-factorone-time-passwordfidochoicesADiffie-Hellman is a way of generating a shared secret between two people in such a way that the secret can't be seen by observing the communication. That's an important distinction: You're not sharing information during the key exchange, you're creating a key together. This is particularly useful because you can use this technique to create an encryption key with someone, and then start encrypting your traffic with that key. And even if the traffic is recorded and later analyzed, there's absolutely no way to figure out what the key was, even though the exchanges that created it may have been...", "B": "The answers I've gotten have been good, but I wanted to provide a bit more depth, going specifically in to why the system exists at all, which should explain a bit more about what it's good for. Disclaimer: While I now work for Google, I knew nothing about this project at the time this answer was written. Everything reported here was gathered from public sources. This post is my own opinions and observations and commentary, and does not represent the opinions, views, or intentions of Google. Though it's worth pointing out that I've been using this and tinkering with it...", "C": "It typically works like this: Say your password is \"baseball\". I could simply store it raw, but anyone who gets my database gets the password. So instead I do an SHA1 hash on it, and get this: $ echo -n baseball | sha1sum a2c901c8c6dea98958c219f6f2d038c44dc5d362 Theoretically it's impossible to reverse a SHA1 hash. But go do a google search on that exact string , and you will have no trouble recovering the original password. Plus, if two users in the database have the same password, then they'll have the same SHA1 hash. And if one of them has a password hint...", "D": "/** Dave's Home-brew Hash */ // user data $user = ''; $password = ''; // timestamp, \ # $time = date('mdYHis'); // known to attackers - totally pointless // ^ also, as jdm pointed out in the comments, this changes daily. looks broken! // different hashes for different days? huh? or is this stored as a salt? $rand = mt_rand().'\\n'; // mt_rand is not secure as a random number generator // ^ it's even less secure if you only ask for a single 31-bit number. and why the \\n? // crypt is good if configured/salted correctly // ... except you've...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/71316/how-secure-are-the-fido-u2f-tokens |
| idlaw_51959domainlawquestion_titleIn Los Angeles can I defend my own property against looters?question_bodyCurrently, there is looting being done in Los Angeles by many people who are pretending to protest against the killing of George Floyd (some others are actually protesting and a few people are helping to stop looters). If someone were to loot my property (business) would I be within my rights to deter them by shooting at them with a paintball gun and / or using a long-leashed German Shepard near the door? Also to potentially citizen arrest with zip-ties? (if feasible)question_scorequestion_tagsunited-statescaliforniapropertytrespasscitizens-arrestchoicesAMy impression, and the plausible explanation in the absence of the actual facts, is that this was something that the attorney agreed to, in order to allow a skittish client to reveal information pursuant to a favorable plea agreement. The police probably insisted that the client be handcuffed to someone while doing this to prevent the client from fleeing. The attorney probably offered to do the job instead of a police officer, to be able to provide advice to his client and keep his client calm enough to do it, which might not have happened (sacrificing the favorable plea deal...BIf you are arrested for assault, you have available to you the defense of the right to defend real or personal property : you \. The level of force proposed is clearly within the boundaries of the reasonable.CIt is legal, at least in the US, for a store (or other entity) to refuse to sell any item to any individual for any non-prohibited reason (prohibited reasons are typically things like race or religion). More over, in various US jurisdictions, it is prohibited to \ alcohol to a \ (for example, under California's ABC law), which can be interpreted as prohibiting to an adult if they reasonably suspect that adult will pass the alcohol onto the \"minor\". This is to prevent \"straw\" sales. Additionally, larger chains generally prefer to have harmonized policies across branches, and where practical, across...", "D": "The Plan For A Clearly Guilty Client Without Bargaining Power This question underestimates how much of a criminal defense lawyer's work involves sentencing rather than a determination of guilt or innocence. Suppose as the OP does that the prosecution can easily prove beyond a reasonable doubt that your client is guilty, you client has no plausible defenses, and the prosecutor won't budge on a plea. As a criminal defense lawyer, you may well advise your client that there is no percentage in fighting guilt on the charges, and have your client plea guilty. This prevents the prosecutor from spelling out..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://law.stackexchange.com/questions/51959/in-los-angeles-can-i-defend-my-own-property-against-looters"} |
| {"id": "cybersecurity_187515", "domain": "cybersecurity", "question_title": "Is momentary physical access dangerous?", "question_body": "I’m asking the question with these conditions: The device (computer or mobile phone) is in a running state. “Momentary” refers to a reasonably short period of time, such as 5 to 10 seconds. The system may not be in a “locked” state (e.g. showing a lock screen asking for a password). However, the active session doesn’t have superuser privilege (the usual case for a mobile phone). What can a hacker do to gain further access to the system?", "question_score": 131, "question_tags": ["physical"], "choices": {"A": "This attack is supposed to be presented 10 days from now, but my guess is that they use compression . SSL/TLS optionally supports data compression. In the ClientHello message, the client states the list of compression algorithms that it knows of, and the server responds, in the ServerHello , with the compression algorithm that will be used. Compression algorithms are specified by one-byte identifiers, and TLS 1.2 (RFC 5246) defines only the null compression method (i.e. no compression at all). Other documents specify compression methods, in particular RFC 3749 which defines compression method 1, based on DEFLATE , the LZ77-derivative...", "B": "No, Docker containers are not more secure than a VM. Quoting Daniel Shapira : In 2017 alone, 434 linux kernel exploits were found , and as you have seen in this post, kernel exploits can be devastating for containerized environments. This is because containers share the same kernel as the host, thus trusting the built-in protection mechanisms alone isn’t sufficient. 1. Kernel exploits from a container If someone exploits a kernel bug inside a container, they exploited it on the host OS. If this exploit allows for code execution, it will be executed on the host OS, not inside the...", "C": "This is actually an interesting new field in infosec— reputation management . Employers, Law Enforcement and other government agencies, legal professionals, the press, criminals and others with an interest in your reputation will be observing all online activity associated with your real name. These \"interested parties\" (snoops) are usually terrible at separating professional and personal life, so you could be made to suffer for unpopular opinions, political or religious convictions, associates or group affiliations they consider \"unsavory\", and any behavior that can be interpreted in the most uncharitable light. (Teachers have been forced to resign for drinking wine responsibly while...", "D": "That all depends on the system, the attacker, and the level of preparation they had. If they have unlimited preparation, they could do effectively anything that they could do with an unlimited access window. Even if they do not have in-depth knowledge of the specific system, it would not be difficult to very quickly inject malicious code that allows for subsequent remote access. They could: Connect a PCMCIA or PCIe card and dump memory or inject code. Splice a hardware keylogger in between the keyboard's PS/2 or USB cable. Quickly download and execute malicious code, or modify existing code. Access...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/187515/is-momentary-physical-access-dangerous |
| idfinance_43domainfinancequestion_titleIs there a standard model for market impact?question_bodyIs there a standard model for market impact? I am interested in the case of high-volume equities sold in the US, during market hours, but would be interested in any pointers.question_scorequestion_tagsmarket-impactmodelschoicesAOne starts with the Black-Scholes equation $$\\frac{\\partial C}{\\partial t}+\\frac{1}{2}\\sigma^2S^2\\frac{\\partial^2 C}{\\partial S^2}+ rS\\frac{\\partial C}{\\partial S}-rC=0,\\qquad\\qquad\\qquad\\qquad\\qquad(1)$$ supplemented with the terminal and boundary conditions (in the case of a European call) $$C(S,T)=\\max(S-K,0),\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad(2)$$ $$C(0,t)=0,\\qquad C(S,t)\\sim S\\ \\mbox{ as } S\\to\\infty.\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad$$ The option value $C(S,t)$ is defined over the domain $0 Step 1. The equation can be rewritten in the equivalent form $$\\frac{\\partial C}{\\partial t}+\\frac{1}{2}\\sigma^2\\left(S\\frac{\\partial }{\\partial S}\\right)^2C+\\left(r-\\frac{1}{2}\\sigma^2\\right)S\\frac{\\partial C}{\\partial S}-rC=0.$$ The change of independent variables $$S=e^y,\\qquad t=T-\\tau$$ results in $$S\\frac{\\partial }{\\partial S}\\to\\frac{\\partial}{\\partial y},\\qquad \\frac{\\partial}{\\partial t}\\to - \\frac{\\partial}{\\partial \\tau},$$ so one gets the constant coefficient equation $$\\frac{\\partial C}{\\partial \\tau}-\\frac{1}{2}\\sigma^2\\frac{\\partial^2 C}{\\partial y^2}-\\left(r-\\frac{1}{2}\\sigma^2\\right)\\frac{\\partial C}{\\partial y}+rC=0.\\qquad\\qquad\\qquad(3)$$ Step 2. If we...BThere is a family of models that is so commonly used among practitioners that it can be almost regarded as standard. For a survey, check out Rob Almgren's entry in the Encyclopedia of Quantitative Finance. Check out also Barra, Axioma and Northfield's handbooks. In general, the impact term per unit traded currency is of the form $$MI \\propto \\sigma_n \\cdot \\text{(participation rate)}^\\beta$$ where the exponent is somewhere between 1/2 and 1, depending on the model being used, and the participation rate is the percentage of total volume of the trade, during the trading interval itself. When including the total MI...CConsider the standard error , and in particular the distance between the upper and lower limits: \\begin{equation} \\Delta = (\\bar{x} + SE \\cdot \\alpha) - (\\bar{x} - SE \\cdot \\alpha) = 2 \\cdot SE \\cdot \\alpha \\end{equation} Using the formula for standard error, we can solve for sample size: \\begin{equation} n = \\left(\\frac{2 \\cdot s \\cdot \\alpha}{\\Delta}\\right)^{2} \\end{equation} where $s$ is the measured standard deviation, which you already have from your IR calculation. High-frequency Example I was testing a market-making model recently that was expected to return a couple basis points for each trade and I wanted to be confident...DWavelets are just one form of \. Wavelets in particular decompose in both frequency and time and thus are more useful than fourier or other purely-frequency based decompositions. There are other time-freq decompositions (for instance the HHT) which should be explored as well. Decomposition of a price series is useful in understanding the primary movement within a series. In general with a decomposition, the original signal is the sum its basis components (potentially with some scaling multiplier). The components range from the lowest frequency (a straight-line through the sample) to the highest frequency, a curve that oscillates with a...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://quant.stackexchange.com/questions/43/is-there-a-standard-model-for-market-impact |
| idlaw_16673domainlawquestion_titleWhy is the structure of the US Code so poor? (And would it even be legal to reorganize it?)question_bodyIn the process of researching the legality of coil guns in Massachusetts (University engineering project), I stumbled across Cornell's Legal Information Institute, which offers what appears to be a complete rendition of the entire United States Code, and decided to do a little exploring. While I learned a lot of interesting tidbits of information perusing the U.S.C., I was amazed at how poorly it was structured. I know politics is sticky business, and not everything is going to be clean, but what I saw struck me as exceptionally bad. In software design, there's a widely used phrase to describe certain particularly jumbled programs: spaghetti code. This term can be applied to programs which have poor data structure designs, are poorly organized, or simply just don't make logical sense in terms of the way they are laid out. The name comes from how these attributes can be applied to a bowl of spaghetti; it's jumbled and tangled together, and you would be required to really dig deep to find, say, the two ends of a single strand. As someone who is very active in open-source programming, a development style that fundamentally breeds spaghetti code, my first reaction upon seeing the U.S.C. in its entirety was, \ The organization is so horribly jumbled. For example, in regards to the Titles, why would topics that sound so incredibly broad, such as Title 6 - Domestic Security, and Title 12 - Banks and Banking, be in the same structural level as Title 23 - Highways, or Title 24 - Hospitals and Asylums? Why do we have Title 14 - Coast Guard and Title 32 - National Guard when there is Title 10 - Armed Forces? The Coast Guard and the National Guard are clearly both a subset of the Armed Forces. Why is a \ defined under Title 26 - Internal Revenue Code, when every single other type of firearm seems to be defined under Title 18 - Crimes and Criminal Procedure? It's not as if Title 26 is redefining a machine gun for the purpose of tax law; Title 18 actually states something along the lines of \"Machine gun, as defined in Title 26 / Section etc etc\". I could go on and on about the various inconsistencies that I see in regards to how the U.S.C. is structured. Maybe I see it as more of a problem due to my involvement in software development, a field in which structure is paramount to success, but this just doesn't sit right with me. That leads me to my questions (finally): 1. Are there any underlying reasons behind the nonsensical structure of U.S.C. titles? Is it simply a case of \ or is there more to it than that? 2. Pretend that over the next few election cycles, a super majority of software engineers and computer scientists are elected to the House and Senate. These people take structure very seriously, and they are very unhappy with the structure of the U.S.C. Barring the even more ridiculous case of Congress repealing everything and passing the exact same laws again, just under different Titles/Chapters/etc, would it be possible for Congress to arbitrarily merge, combine, and delete Titles, and to rearrange the location of laws, definitions, etc? Are there laws/regulations governing this?question_scorequestion_tagsunited-stateslegal-historylegal-writingchoicesAShort Answer Applicants are required by military regulation to have a percentile score on a standardized test called the ASVAB that is 31 or more, which is roughly comparable to an IQ score on the Stanford-Binet scale of a little bit less than 92, for high school graduates seeking to enter the Army or Navy (other services have more strict requirements and applicants with only a GED or to the national guard must have an ASVAB score in the 50th percentile which is equivalent to an IQ of 100). But, U.S. law allows the Department of Defense to allow people...BAre there any underlying reasons behind the nonsensical structure of U.S.C. titles? Is it simply a case of \ or is there more to it than that? First of all, the United States Code is generally not designed to be used by non-lawyers. Second, one of the main ways to research case law interpreting a statute is by doing a boolean search on the code section of that statute. Every time you change a title or section number, you impair the ability of people doing legal research (both judges...CThis is the Fed (FCC) saying \ The service costs money. It is not automagic speech to text, but rather there is often (usually?) an actual human typing it in. Carriers front the cost, and then get compensation from the Fed. The Federal govt picks up that cost. They don't want people that don't need it due to hearing loss making use of that service and its associated costs. From the FCC : Title IV of the Americans with Disabilities Act (b) Availability of telecommunications relay services: the Commission...DLegally speaking, very many nations grant asylum, and religious persecution is one of the most basic grounds for granting asylum, following the 1951 Refugee Convention . This newspaper article compares asylum statistics in Ireland versus other parts of Europe. The Irish immigration authorities spell out the details for an asylum application. Note that you must already be in Ireland, to apply for asylum in Ireland (you should apply when you enter the country). One could also apply to Norway (almost an English-speaking country), but again you have to be in Norway to do so. There is a generic solution to...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/16673/why-is-the-structure-of-the-us-code-so-poor-and-would-it-even-be-legal-to-reor |
| idfinance_1391domainfinancequestion_titlePapers about backtesting option trading strategiesquestion_bodyI am looking for all kinds of research concerning option trading strategies. With that I mean papers that publish results on different option trading strategies properly backtested with real-world data.question_scorequestion_tagsoptionsbacktestingquant-trading-strategiesresearchoption-strategieschoicesAWavelets are just one form of \. Wavelets in particular decompose in both frequency and time and thus are more useful than fourier or other purely-frequency based decompositions. There are other time-freq decompositions (for instance the HHT) which should be explored as well. Decomposition of a price series is useful in understanding the primary movement within a series. In general with a decomposition, the original signal is the sum its basis components (potentially with some scaling multiplier). The components range from the lowest frequency (a straight-line through the sample) to the highest frequency, a curve that oscillates with a...BThe way you do it in the first place is a discretization of the Geometric Brownian Motion (GBM) process. This method is most useful when you want to compute the path between $S_0$ and $S_t$, i.e. you want to know all the intermediary points $S_i$ for $0 \\leq i \\leq t$. The second equation is a closed form solution for the GBM given $S_0$. A simple mathematical proof showed that, if you know the initial point $S_0$ (which is $a$ in your equation), then the value of the process at time $t$ is given by your equation (which contains $W_t$,...CI did some digging and found the following papers - most of them offering quite a distinct perspective compared to classical option pricing theory! Stock Options as Lotteries by Brian H. Boyer et al. (2011) The Efficiency of the Buy-Write Strategy: Evidence from Australia by Tafadzwa Mugwagwa et al. (2010) The following is my favorite: You could do some backtests on your own with freely available data (using the VXO as volatility information) and with any spreadsheet - easy and elegant: How Students Can Backtest Madoff’s Claims by Michael J. Stutzer (2009) Loosening Your Collar: Alternative Implementations of QQQ Collars...DStrictly speaking, data snooping is not the same as in-sample vs out-of-sample model selection and testing, but has to deal with sequential or multiple tests of hypothesis based on the same data set. To quote Halbert White: Data snooping occurs when a given set of data is used more than once for purposes of inference or model selection. When such data reuse occurs, there is always the possibility that any satisfactory results obtained may simply be due to chance rather than to any merit inherent in the methody yielding the results. Let me provide an example. Suppose that you have...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://quant.stackexchange.com/questions/1391/papers-about-backtesting-option-trading-strategies |
| idcybersecurity_10340domaincybersecurityquestion_titleWhat alternatives are there when SSH is being actively filtered?question_bodyUnfortunately our government filters the SSH protocol so now we can't connect to our Linux server. They do the filtering by checking the header of each packet in the network layer (and not by just closing port). They also do away with VPN protocols. Is there any alternative way to securely connect to a Linux server?", "question_score": 152, "question_tags": ["ssh"], "choices": {"A": "Disclaimer: I am the author, creator, owner and maintainer of Have I Been Pwned and the linked Pwned Passwords service. Let me clarify all the points raised here: The original purpose of HIBP was to enable people to discover where their email address had been exposed in data breaches. That remains the primary use case for the service today and there's almost 5B records in there to help people do that. I added Pwned Passwords in August last year after NIST released a bunch of advice about how to strengthen authentication models. Part of that advice included the following :...BAn IP address can be set up in DNS to resolve to any host name, by whoever is in control of that IP address. For example, if I am in control of the netblock 203.0.113.128/28, then I can set up 203.0.113.130 to reverse-resolve to presidential-desktop.oval-office.whitehouse.gov . I don't need control of whitehouse.gov to do this, though it can help in some situations (particularly, with any software that checks to make sure reverse and forward resolution matches ). That wouldn't mean that the president of the United States logged into your VPS. If someone has access to your system, they can...CThere are a few issues with HTTP Basic Auth: The password is sent over the wire in base64 encoding (which can be easily converted to plaintext). The password is sent repeatedly, for each request. (Larger attack window) The password is cached by the webbrowser, at a minimum for the length of the window / process. (Can be silently reused by any other request to the server, e.g. CSRF). The password may be stored permanently in the browser, if the user requests. (Same as previous point, in addition might be stolen by another user on a shared machine). Of those, using...DFrom what I heard earlier today, https/ssl flows correctly through your borders. You should hence check out Corkscrew . Similarly to netcat , it's used to wrap ssh in https to allow the use of https proxies. Another solution would be to use LSH which, by having a different signature than ssh, works from Iran as Siavash noted it in his message ."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/10340/what-alternatives-are-there-when-ssh-is-being-actively-filtered"} |
| {"id": "cybersecurity_9487", "domain": "cybersecurity", "question_title": "How can PayPal spoof emails so easily to say it comes from someone else?", "question_body": "When I receive a payment in PayPal, it sends me an email about it (pictured below). The problem is that the email is shown to be coming from the money sender's email address and not from PayPal itself, even though the real sender is PayPal. Here is the text that appears when I select \ in Gmail: From: \ Sender: sendmail@paypal.com So you can see that the real sender is PayPal. If PayPal can spoof the email sender so easily, and Gmail does not recognize it, does it mean that anybody can spoof the email sender address and Gmail will not recognize it? When I send emails to Gmail myself using telnet, the email comes with the warning: This message may not have been sent by: xxxxx@xxxxx.com Is this a security issue? Because if I am used to the fact that payment emails in PayPal appear to come from the money sender's email and not from PayPal, then the sender can just spoof the payment himself by sending a message like that from his email, and I may think that this is the real payment. Is this something specific to PayPal, or can anybody fool Gmail like that? And if anybody can, what is the exact method that PayPal is using to fool Gmail?", "question_score": 152, "question_tags": ["email"], "choices": {"A": "IMPORTANT : this is based on data I got from your link, but the server might implement some protection. For example, once it has sent its \"silver bullet\" against a victim, it might answer with a faked \"silver bullet\" to the same request, so that anyone investigating is led astray. I have tried sending a fake parameter of cHVwcGFtZWxv to see whether it triggered any different behaviour, and it did not. Still, that's no great guarantee. UPDATE - the above still holds, but I've been making tests from random IPs not traceable to my main session - the attacking server...", "B": "Diffie-Hellman is a way of generating a shared secret between two people in such a way that the secret can't be seen by observing the communication. That's an important distinction: You're not sharing information during the key exchange, you're creating a key together. This is particularly useful because you can use this technique to create an encryption key with someone, and then start encrypting your traffic with that key. And even if the traffic is recorded and later analyzed, there's absolutely no way to figure out what the key was, even though the exchanges that created it may have been...CDisclaimer: I am the author, creator, owner and maintainer of Have I Been Pwned and the linked Pwned Passwords service. Let me clarify all the points raised here: The original purpose of HIBP was to enable people to discover where their email address had been exposed in data breaches. That remains the primary use case for the service today and there's almost 5B records in there to help people do that. I added Pwned Passwords in August last year after NIST released a bunch of advice about how to strengthen authentication models. Part of that advice included the following :...", "D": "Here is a dramatization of how the communication goes, when a mail is received anywhere. Context: an e-mail server, alone in a bay, somewhere in Moscow. The server just sits there idly, with an expression of expectancy. Server: Ah, long are the days of my servitude, That shall be spent in ever solitude, 'Ere comes hailing from the outer rings The swift bearer of external tidings. A connection is opened. Server: An incoming client ! Perchance a mail To my guardianship shall be entrusted That I may convey as the fairest steed And to the recipient bring the full tale....answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/9487/how-can-paypal-spoof-emails-so-easily-to-say-it-comes-from-someone-else |
| idcybersecurity_8264domaincybersecurityquestion_titleWhy is the same origin policy so important?question_bodyI can't really fully understand what same origin domain means. I know it means that when getting a resource from another domain (say a JS file) it will run from the context of the domain that serves it (like Google Analytics code), which means it can't modify the data or read the data on the domain that \. So if domain a.com is embedding a js file from google.com in its source, that js will run from google.com and it can't access the DOM\\cookies\\any other element on a.com -- am I right? Here is a definition for the same origin policy which I can't really understand: The same-origin policy is a key mechanism implemented within browsers that is designed to keep content that came from different origins from interfering with each other. Basically, content received from one website is allowed to read and modify other content received from the same site but is not allowed to access content received from other sites. What does that really mean? Can you please give me a real life example? Another question is: what is the purpose of Origin header and how do cross domain requests still exist? Why doesn't it influence the security or the same origin policy?", "question_score": 163, "question_tags": ["web-application", "web-browser", "javascript", "same-origin-policy"], "choices": {"A": "TL;DR - You can store the salt in plaintext without any form of obfuscation or encryption, but don't just give it out to anyone who wants it. The reason we use salts is to stop precomputation attacks, such as rainbow tables . These attacks involve creating a database of hashes and their plaintexts, so that hashes can be searched for and immediately reversed into plaintext. For example*: 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 a e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98 b 84a516841ba77a5b4648de2cd0dfcb30ea46dbb4 c ... 948291f2d6da8e32b007d5270a0a5d094a455a02 ZZZZZX 151bfc7ba4995bfa22c723ebe7921b6ddc6961bc ZZZZZY 18f30f1ba4c62e2b460e693306b39a0de27d747c ZZZZZZ Most tables also include a list of common passwords: 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 password e38ad214943daad1d64c102faec29de4afe9da3d password1 b7a875fc1ea228b9061041b7cec4bd3c52ab3ce3 letmein 5cec175b165e3d5e62c9e13ce848ef6feac81bff qwerty123 *I'm using SHA-1...", "B": "One thought is to not allow form submission if there is not a value in the password box. Generally if they accidentally entered the password in the username, then there likely isn't going to be anything in the password dialog. It is worth noting that this does not have to be simply done client side, but could also be done on a server as long as the transport used is secure and the input is not logged until after passing a check about the password field not being empty.CWhy is the same origin policy important? Assume you are logged into Facebook and visit a malicious website in another browser tab. Without the same origin policy JavaScript on that website could do anything to your Facebook account that you are allowed to do. For example read private messages, post status updates, analyse the HTML DOM-tree after you entered your password before submitting the form. But of course Facebook wants to use JavaScript to enhance the user experience. So it is important that the browser can detect that this JavaScript is trusted to access Facebook resources. That's where the same...", "D": "Facebook is allowing you to make a handful of mistakes to ease the login process. A Facebook engineer explained the process at a conference . The gist of it is that Facebook will try various permutations of the input you submitted and see if they match the hash they have in their database. For example, if your password is \"myRealPassword!\" but you submit \"MYrEALpASSWORD!\" (capslock on, shift inverting capslock). The submitted password obviously doesn't match what they have stored in their database. Rather than reject you flat out, Facebook tries to up the user experience by trying to \ a...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/8264/why-is-the-same-origin-policy-so-important |
| idlaw_80132domainlawquestion_titleIf Congress passed a bill written in a language other than English, would it be valid?question_bodySuppose Congress passed a bill written in Spanish and the President signed it. Everything about the bill and the procedures by which it was written and passed were completely normal, other than the language. (Assume everyone in Congress, as well as the President, is fluent in Spanish.) Would the fact that the law is written in a language other than English have any effect on its enforceability, other than the practical difficulties caused by many people not understanding it?question_scorequestion_tagsunited-statescongresslanguagechoicesATrump was an officer of the government, and Twitter wasn't. The First Amendment forbids the government and its agents from viewpoint discrimination, but private companies are not bound by it and can discriminate as much as they please. (There was a question as to whether such discrimination might affect whether the company enjoys a shield from liability under 47 USC 230 , but even so they have the right to block and censor as they wish if they are willing to risk that liability.)", "B": "It would indeed be valid and legally enforceable. The Constitution places no limits on what languages bills must be written in. The Constitution specifically allows each house of Congress to make its own rules for how it passes bills, so, even if a house of Congress had a rule requiring its bills to be in English (which they don't, as far as I know,) they could simply change the rules and then pass the bill. From a practical standpoint, though, enforceability would also require courts to be able to discern Congress' intent from the bill. As such, unless we're expanding...CYes, their waiver has no legal basis and is invalid under the GDPR. They should have hired a better lawyer. GDPR rights cannot be waived ( mrllp.com ). The last bit should have been: Therefore, in consideration of my participation in any project, I understand that retaining my name and email address, as described above, does not require my consent and that the right of erasure, as spelled out in the GDRP Article 17 (1) b does not apply. The legal basis for our lawful processing of this personal data is Article 6 (1) f (\, : Posted\ Posted \Properly posted definition\Posting\Legal\}, : , : , : , : , : } |
| {: , : , : , : , : 13, : [, ], : {: Russian Roulette\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : b\correct answer\c\special characters\, : 185, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 20, : [, , , , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 134, : [, , ], : {: , : , : social engineering\, : }, : , : , : , : , : } |
| {: , : , : , : Ban Evasions\The creation of a new account on a platform or website after being previously banned for ToS violations\, : 38, : [, , , ], : {: , : protected computer\, : , : }, : , : , : , : , : } |
| {: , : , : , : forgot password' button, and my password was emailed to me in plain text. This concerned me, so I emailed the principal, including some links from the bottom of this page . This is the reply I received from the organization's IT department: Parent passwords are not stored in plain text. They are encrypted. Not a 1 way encryption but a 2 way encryption. This is how the system is able to present it back via an email through Ariande's CoolSpool utility. For support reasons, the parent password is visible to certain staff until the parent has successfully signed in 3 times. After that, no staff can see that password. However, it is stored in such a way that the system itself can send it back to the verified email. In the future after a parent's 3 successful sign ins, if they forget their password, their verified email account will be sent a link to reset their password, this change is in the works. Does this explanation justify the plain text password being sent by email, and are my passwords secure with them? If not, what references or resources could I reply to them with?question_scorequestion_tagsencryptionpasswordschoicesANo, this is not a good practice. There are two distinct problems. encrypting the password instead of hashing it is a bad idea and is borderline storing plain text passwords. The whole idea of slow hash functions is to thwart the exfiltration of the user database. Typically, an attacker that already has access to the database can be expected to also have access to the encryption key if the web application has access to it. Thus, this is borderline plaintext; I almost voted to close this as a duplicate of this question , because this is almost the same and...BI was one of the implementers of JScript and on the ECMA committee in the mid to late 1990s, so I can provide some historical perspective here. The JavaScript Math.random() function is designed to return a floating point value between 0 and 1. It is widely known (or at least should be) that the output is not cryptographically secure First off: the design of many RNG APIs is horrible . The fact that the .NET Random class can trivially be misused in multiple ways to produce long sequences of the same number is awful. An API where the natural way...CGeneral SSL (and its successor, TLS ) is a protocol that operates directly on top of TCP (although there are also implementations for datagram based protocols such as UDP). This way, protocols on higher layers (such as HTTP) can be left unchanged while still providing a secure connection. Underneath the SSL layer, HTTP is identical to HTTPS. When using SSL/TLS correctly, all an attacker can see on the cable is Which IP and port you are connected to Roughly how much data you are sending What encryption and compression are used In SSLv3 through TLS version 1.2 : the current...DIs this normal for a pentest? Absolutely not . Best case scenario: they are performing \ penetration testing and want to see if you can be pressured into fulfilling a very dangerous action. Middle-case scenario, they don't know how to do their job. Worst-case scenario they are only pretending to be an auditing company and fulfilling their request will result in an expensive breach. In the case of a code-audit the company will obviously need access to source code. However I would expect a company who provides such services to already understand the sensitivity of such a need and..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/174125/is-it-secure-to-store-passwords-with-2-way-encryption"} |
| {"id": "law_360", "domain": "law", "question_title": "How can you tell if you have to follow a police officer's instructions?", "question_body": "If a police officer gives me an order, how can I tell whether or not I'm legally obligated to follow that order? If I ask the officer, is he/she required by law to answer truthfully? If the police get to order citizens to do whatever they want, under whatever circumstances that they want, then go ahead and post that as an answer.question_scorequestion_tagsunited-statespolicechoicesAIt is legal, at least in the US, for a store (or other entity) to refuse to sell any item to any individual for any non-prohibited reason (prohibited reasons are typically things like race or religion). More over, in various US jurisdictions, it is prohibited to \ alcohol to a \ (for example, under California's ABC law), which can be interpreted as prohibiting to an adult if they reasonably suspect that adult will pass the alcohol onto the \"minor\". This is to prevent \"straw\" sales. Additionally, larger chains generally prefer to have harmonized policies across branches, and where practical, across...", "B": "Through the legal doctrine of \"transferred intent\", wherein if one intends to murder A, and undertake actions to kill A, but one's actions kill B, one has murdered B. Whatever crimes one would have committed, had one performed them on one's intended target, are considered committed against the individual one actually performed them on. Many crimes require one to have mens rea to be guilty; they do not require one to have mens rea towards a given individual. So, so long as one had the proper intent to murder someone, the actual victim of their actions is irrelevant.", "C": "at what point can you just leave? Is it always technically illegal in the UK to leave without paying the bill? Probably depends on what you mean with just leaving. If just leaving translates I haven't paid and I won't pay (because of the hassle with the card) then that's probably Making Off Without Payment, section 3 Theft Act 1978 (Thanks @bdsl). Could the restaurant just force you to wait until close of business if necessary? What if they still hadn't fixed the payment system by then? I don't think a restaurant can physically detain you. Not even the 45...DYou don't know. You can't know. And you can't force the officer to tell you. Detention Status As a practical matter, you have no way of knowing if you are compelled to follow an officer's order because you are being detained unless the officer volunteers that information (your detention status) which they are not compelled to disclose and have every incentive not to disclose. Consider the situation when the officer does not have reasonable suspicion do detain you. If the officer instantly informs you that you are \ then you are likely to leave and end the encounter...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/360/how-can-you-tell-if-you-have-to-follow-a-police-officers-instructions |
| |