| {: , : , : , : , : 137, : [, , ], : {: attracted attention\, : , : random\, : }, : , : , : , : , : } |
| {: , : , : , : , : 268, : [, , , , ], : {: interested parties\unsavory\, : baseball\, : , : }, : , : , : , : , : } |
| {: , : , : , : sequel\transferred\take away from customers\, : 36, : [, , , ], : {: transferred intent\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 25, : [, ], : {: , : , : , : possible carcinogen\}, : , : , : , : , : } |
| {: , : , : , : , : 14, : [, ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 68, : [], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : a majority of either the principal officers of the executive departments or of such other body as Congress may by law provide.\powers and duties\that no inability exists.\the Vice President and a majority of either the principal officers of the executive department or of such other body as Congress may by law provide\departments,\department,\, : 39, : [, , ], : {: welfare check.\, : affirm\swear\so help me God\solemn affirmation\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 259, : [, ], : {: /C=GB/CN=foo\subjectAltName = DNS:foo.co.uk\certificatePolicies = 1.2.3.4\, : baseball\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 25, : [, ], : {: , : , : unit\, : The Elements of Statistical Learning\}, : , : , : , : , : } |
| {: , : , : , : no trespassing\POSTED\ASKED\TEXTED\, : 108, : [, , , , ], : {: processing is necessary for the...B\ is a Term of Art \ is a term of art in trespass law, specifically meaning that signs forbidding entry have been placed at the borders of a parcel. The page \ from Law Insider reads: Properly posted means that signs prohibiting trespass—or bright yellow, bright orange or fluorescent paint—are clearly displayed at all corners, on fishing streams crossing property lines, and on roads, gates and rights-of-way entering the land. Or, they are displayed in a manner that is visible to a person in the area. The entry \ in the \ section of The...CYes, that’s allowed. Under the Stack Exchange terms of service , content you upload is licensed to Stack Exchange Inc. on a non-exclusive basis under CC-BY-SA 4.0. The terms of service do not give Stack Exchange the copyright to your contributions, and a non-exclusive license means you are not promising Stack Exchange that “only Stack Exchange will be allowed to use this content.” That means you can continue to do whatever you want with your own content and do not need to mention Stack Exchange at all. The only restriction is that you can’t stop Stack Exchange from continuing to...DThe 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...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/83103/why-do-many-no-trespassing-signs-say-posted |
| idmedicine_41domainmedicinequestion_titleHow do tubes help treat ear infections?question_bodyMy young son keeps getting ear infections. The otolaryngologist want to perform surgery to put tubes in his ear drums. How does putting a tube in the ear drum help with the ear infections?question_scorequestion_tagsotolaryngologyinfectiontreatmentchoicesARace and ethnicity are risk factors in many diseases. Examples include, but are not limited to, cystic fibrosis and spinal muscular atrophy. There is also an epidemiological purpose of collecting this information. It is important to know if some disease is affecting some races or some ethnicities disproportionately. This is how it was found out that race or ethnicity is a risk factor in certain diseases in the first place. RFERENCES: Sheets L, Johnson J, Todd T, Perkins T, Gu C, Rau M. Unsupported labeling of race as a risk factor for certain diseases in a widely used medical textbook....BEar tubes do many things to help ear infections. The most important things they do are draining the ear of fluid and ventilating the ear. Overall, this will help your child hear better. The tubes also stop fluid from building up behind the ear drum, which should help prevent the ear infections. Stuff to watch out for There is always the possibility of ear infections coming back after the 6-12 months that the tubes will be in. There is also a minor chance of hearing loss because of scarring of the ear drum. The tube can become blocked, stopping it...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": "I 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..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://medicalsciences.stackexchange.com/questions/41/how-do-tubes-help-treat-ear-infections"} |
| {"id": "finance_11564", "domain": "finance", "question_title": "Why shrink the covariance matrix?", "question_body": "I'm trying to understand why it's useful to shrink the covariance matrix for portfolio construction or in fact general. Think I missing something. I know if you have 5,000 stocks it's a lot of calculations but if we assume that computing power is not a problem.question_scorequestion_tagsstatisticsportfolio-managementcovarianceportfolio-optimizationchoicesAHave a look at this classic paper: Honey, I Shrunk the Sample Covariance Matrix by O. Ledoit and M. Wolf The abstract answers your question already: The central message of this article is that no one should use the sample covariance matrix for portfolio optimization. It is subject to estimation error of the kind most likely to perturb a mean-variance optimizer. Instead, a matrix can be obtained from the sample covariance matrix through a transformation called shrinkage. This tends to pull the most extreme coefficients toward more central values, systematically reducing estimation error when it matters most. Statistically, the challenge...BThe term has a different meaning to different people. to econometricians, microstructure noise is a disturbance that makes high frequency estimates of some parameters (e.g. realized volatility) very unstable. Generally this strand of the literature professes agnosticism as to the its origin; to market microstructure researchers, microstructure noise is a deviation from fundamental value that is induced by the characteristics of the market under consideration, e.g. bid-ask bounce, the discreteness of price change, latency, and asymmetric information of traders. The last example is frequently cited but I don't think it is accurate. Asymmetric information does not have to be a...", "C": "In my experience, a VaR or CVaR portfolio optimization problem is usually best specified as minimizing the VaR or CVaR and then using a constraint for the expected return. As noted by Alexey, it is much better to use CVaR than VaR. The main benefit of a CVaR optimization is that it can be implemented as a linear programming problem. Another option I have tried is the technique in this paper: http://www.math.uwaterloo.ca/~tfcolema/articles/bank_article.pdf Another option is the two-step heuristic where one first finds the mean-variance efficient frontier and then you could calculate whatever are the relevant portfolio statistics on only the...", "D": "Just to be painfully clear, it only seems to make sense to consider the logarithm of returns, i.e. $X=\\log (1+\\frac r{100})$ for a simple return of $r\\%$ in an arbitrary period because this is what sums when returns are temporally aggregated. A basic property of cumulants is that cumulants of all orders are additive under convolution, for which a proof can be found here here . So if $X_1$, $X_2$, ... $X_n$ are i.i.d. , then all the cumulants of $$Y_n = \\sum_{i=1}^nX_i$$ scale linearly with $n$, i.e. $$\\kappa_k(Y_n)=n\\kappa_k(Y_1).$$ However, I suspect that you are normalizing this sum so that..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/11564/why-shrink-the-covariance-matrix"} |
| {"id": "law_105671", "domain": "law", "question_title": "If a shop prices all items extremely high and applies a "non-criminal discount" at checkout, will shoplifters get prosecuted based on the high price?", "question_body": "I came across this sign online that states that in the store, all items are marked at $951, with \"non-criminal discounts\" applied only for paying customers. The sign suggests that this is to ensure that shoplifters will be prosecuted for grand theft under California Penal Code 487 PC , according to which the threshold for grand theft is $950. I can't verify the post itself, but regardless - would this actually work? If a shoplifter were caught, could they be prosecuted based on the marked price of $951, even though noone actually has to pay that price, or would the actual price at checkout be considered in the prosecution? While the sign itself is specific to California, I'm interested in different legal systems as well. (I'm also interested if such pricing would be even legal in itself, but I want to limit my post to one question.)question_scorequestion_tagscriminal-lawtheftretailshopliftingchoicesAThink 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...Bcalifornia No, I don't think so. California's grand theft statute, Penal Code Section 487 (which you already linked) consistently uses the word \ rather than \ (emphasis mine): Grand theft is theft committed in any of the following cases: (a) When the money, labor, real property, or personal property taken is of a value exceeding nine hundred fifty dollars ($950), except as provided in subdivision (b). Earlier in that title, Section 484(a) says: In determining the value of the property obtained, for the purposes of this section, the reasonable and fair market value shall be the test, and in determining...CThere isn't any indication in that news story that the disabled son was anywhere nearby. I agree the situation you describe sounds like a legitimate use of the placard, but it seems in this situation, the placard was being used in a manner totally unrelated to the transport of a disabled person. My guess is that the cops cited her because the son wasn't in the car, and was not inside the establishment at which she parked. California code has this to say: A person to whom a disabled person placard has been issued may permit another person to use...DPublic nudity is illegal in New York as it is in almost every U.S. jurisdiction. And, if the police had arrested the nude protesters, the arrests probably would have been upheld in court, because a ban on nudity in public would probably be viewed as a time, place and manner restriction on the freedom of speech which is constitutionally valid. For example, the Ninth U.S. Circuit Court of Appeals recently upheld San Francisco’s public nudity ordinance in Taub v. City and County of San Francisco (2017). As the court in that case explains in a factually very similar case: Public...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/105671/if-a-shop-prices-all-items-extremely-high-and-applies-a-non-criminal-discount |
| idlaw_57421domainlawquestion_titleIs youtube-dl takedown due to their tests which use copyrighted content?question_bodyThe DMCA takedown notice posted on GitHub's youtube-dl page seems to be primarily based on the fact that youtube-dl is expressly advertised as a tool to \"circumvent the technological protection measures used by authorized streaming services\", to the point that the test cases consist in downloads of videos copyrighted by WMG and Sony Music: Indeed, the comments in the youtube-dl source code make clear that the source code was designed and is marketed for the purpose of circumventing YouTube’s technological measures to enable unauthorized access to our member’s copyrighted works, and to make unauthorized copies and distributions thereof: they identify our member’s works, they note that the works are VEVO videos (virtually all of which are owned by our member companies), they acknowledge the those works are licensed to YouTube under the YouTube standard license, and they use those examples in the source code to describe how to obtain unauthorized access to copies of our members’ works. Is this really the crux of the problem? That is, if youtube-dl developers removed problematic test cases, comments and links to copyrighted videos, would the project become compliant with the Section 1201 of the DMCA? Or is the real problem that youtube-dl implements the \"rolling cipher\" used by YouTube to protect their content?", "question_score": 35, "question_tags": ["united-states", "dmca"], "choices": {"A": "The takedown action is a little sketchy. The law regarding takedown notices and host liability is here . The notice includes \"Identification of the copyrighted work claimed to have been infringed\", a \"signature of a person authorized to act on behalf of the owner of an exclusive right that is allegedly infringed\", and a statement that \"the complaining party has a good faith belief that use of the material in the manner complained of is not authorized by the copyright owner, its agent, or the law\". These things are present in the notice, for which reason the items were taken...", "B": "A few possible reasons it could be illegal (on an issue spotting basis, not a careful analysis of each possible reason): The EO is intended to discriminate on the basis of religion and in fact does so in violation of the 1st Amendment to the United States Constitution. The EO is intended to unlawfully discriminate based upon race or ethnicity in violation of U.S. statutes or the 14th Amendment. The EO was adopted without observing the notice and hearing requirements of the Administrative Procedure Act. The EO took effect prematurely because it was not duly published in the Federal Register...", "C": "This has been prosecuted criminally, in the scenario of people taking a huge pile of \"free\" newspapers to sell for recycling. See coverage in the Independent from 16 February 2019. Some previous prosecutions against the same or similar groups had been dropped but this one succeeded. While copies of the Evening Standard are given away for free at train stations, the big stack of them is still somebody's property, and the socially expected arrangement is that a member of the public will take just one, rather than the lot. The reason they are being offered is to achieve a wide...DIf you are not a member of the Bar of Maryland, you may not \ Maryland Business Occupations and Professions § 10-601 . \ includes \ Maryland Business Occupations and Professions § 10-101 . \ Maryland Business...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/57421/is-youtube-dl-takedown-due-to-their-tests-which-use-copyrighted-content |
| idengineering_2363domainengineeringquestion_titleWhy are rear wheels not placed at the extreme rear of a bus?question_bodyIn some cars, I have noticed the rear wheels are located at the extreme rear of the vehicle. However, I have noticed that the rear wheels of buses are always located about 1/4th of the way forward from the rear. What is the reason for this?question_scorequestion_tagsmechanical-engineeringautomotive-engineeringchoicesAThe 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...", "B": "To slightly generalize I'll reform the question slightly. A ridged 2-D body (car) has a line $l$ that moves with it. The car can be linearly transformed as long as the instantaneous center of rotation lies along $l$ at least distance $R$ away from a point $c$ that also moves with the car. In this case point $c$ lies in the center of the rear axle and $l$ lies on the rear axle. Now imagine the car's domain is limited to a quarter plane with edges $A$ and $B$. It initially is placed against $A$, far from $B$ with $l$...", "C": "Some ideas: Wheel Load Distribution : The load is greater on the rear wheels providing the power; more force on the front ones bring no benefit and would provide less traction. Better manoeuvrability from having a shorter wheelbase. Better Ground Clearance in some conditions, especially for bumps and or up a increasing slope for instance. Better Driving : The front wheels now turn around a point closer to the C.G. than with the rear wheels. Not good with vehicle dynamics but this appears better than the rear end 'trailing' behind. Structural : As some people have pointed out, it's better...DIt is more efficient to transmit DC using about the same infrastructure. This is because of several effects: Skin effect experienced with AC. There is no skin effect with DC. Higher voltage allowed with DC for the same transmission lines. The lines have to withstand the peak voltage. With AC, that is 1.4 times higher than the RMS. With DC, the RMS and peak voltages are the same. However, the power transmitted is the current times the RMS, not peak, voltage. No radiation loss with DC. Long transmission lines act as antennas and do radiate some power. That can only...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/2363/why-are-rear-wheels-not-placed-at-the-extreme-rear-of-a-bus |
| idlaw_43435domainlawquestion_titleCan I enter a rental property without giving notice if I'm afraid a tenant may be hurt?question_bodyI rent a “Mother-In-Laws quarters” (guest area) that is on the side of my house. It has a private entrance. If I'm concerned something has happened to the tenant, am I legally allowed to enter the building without giving notice? Some background : For the first time, my tenant is late on rent, and hasn't contacted me in any way which seems very unusual for her. Yesterday I texted once to remind about the rent, and a second time asking if they are okay once I noticed there was still mail from a few days ago in her mail box right by her door with no response. I also couldn't hear TV through the wall which I usually can, and her curtains were never opened which I notice she usually does during the day. The air conditioning also wasn't on all day, which is also unusual. She's elderly and I'm afraid she may have fallen or even worse. I'm planning on knocking on her door on my lunch break. If she does not answer the door, I'm trying to figure out if I can go ahead and enter the property and make sure everything is okay.question_scorequestion_tagscaliforniarental-propertychoicesAMost leases have a provision allowing a landlord to make entry without notice in an emergency, but the better course of action, as noted in a comment by @BlueDogRanch, is to call the police and ask them to make a \ You would ordinarily be permitted to cooperate with police by unlocking doors in furtherance of their welfare check. The police are trained to do this properly in a way that properly balances the need to aid someone who is sick or ill, the need to preserve evidence if there was a death or crime that needs to be...BPublic nudity is illegal in New York as it is in almost every U.S. jurisdiction. And, if the police had arrested the nude protesters, the arrests probably would have been upheld in court, because a ban on nudity in public would probably be viewed as a time, place and manner restriction on the freedom of speech which is constitutionally valid. For example, the Ninth U.S. Circuit Court of Appeals recently upheld San Francisco’s public nudity ordinance in Taub v. City and County of San Francisco (2017). As the court in that case explains in a factually very similar case: Public...CThis aspect (and many others) of contract law is applicable in the US and various countries of the EU. can they renege after the candidate has begun their journey, thus saddling the candidate with the travel cost? No. The company would incur breach of contract. There is no need for a formal contract. The candidate only needs to prove that the company agreed (in writing, orally or clearly through its conduct) to cover or reimburse those expenses and that this elicited a meeting of the minds . The agreement would be void if the candidate incurred the expenses despite knowing...DNo Parliament is sovereign : Parliamentary sovereignty is a principle of the UK constitution. It makes Parliament the supreme legal authority in the UK, which can create or end any law. Generally, the courts cannot overrule its legislation and no Parliament can pass laws that future Parliaments cannot change . Parliamentary sovereignty is the most important part of the UK constitution.answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/43435/can-i-enter-a-rental-property-without-giving-notice-if-im-afraid-a-tenant-may-b |
| idcybersecurity_8596domaincybersecurityquestion_titlehttps security - should password be hashed server-side or client-side?question_bodyI am building a web application which requires users to login. All communication goes through https. I am using bcrypt to hash passwords. I am facing a dilemma - I used to think it is safer to make a password hash client-side (using JavaScript) and then just compare it with the hash in DB server-side. But I am not sure this is any better than sending plain-text password over https and then hashing it server-side. My reasoning is that if attacker can intercept the https traffic (= read plaintext password) he can for example also change the JavaScript so it sends the plaintext password alongside the hashed one - where he can intercept it. The reason against hashing client-side is just ease of use. If I hash client-side I need to use two separate libraries for hashing. This is not an unsurmountable problem, but it is a nuisance. Is there a safety gain in using client-side hashing? Why? Should I also be using challenge-response then? UPDATE: what interests me the most is this - do these techniques (client-side hashing, request-response) add any significant security gain in case where https is used? If so, why?question_scorequestion_tagsweb-applicationpasswordstlsauthenticationhashchoicesAThis is the simplest way of performing host discovery with nmap. nmap -sP 192.168.2.1/24 Why does it not work all the time ? When this command runs nmap tries to ping the given IP address range to check if the hosts are alive. If ping fails it tries to send syn packets to port 80 (SYN scan). This is not hundred percent reliable because modern host based firewalls block ping and port 80. Windows firewall blocks ping by default. The hosts you have on the network are blocking ping and the port 80 is not accepting connections. Hence nmap assumes...BIf 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).CYes, it is a security feature, and the purpose of the delay is to prevent attacks based around tricking the user into entering input to skip past the dialog by popping it up unexpectedly when the user is in the middle of inputting multiple key presses or mouse clicks in quick succession. The two examples that are given in this blog post explaining the feature are: A CAPTCHA that asks the user to type the word only . When they press n , a save dialog is popped up, and then the user will immediately press l and then y...DThis is an active area of research. I happen to have done some work in this area, so I'll share what I can about the basic idea (this work was with industry partners and I can't share the secret details :) ). The tl;dr is that it's often possible to identify an encrypted traffic stream as carrying video, and it's often possible to estimate its resolution - but it's complicated, and not always accurate. There are a lot of people working on ways to do this more consistently and more accurately. Video traffic has some specific characteristics that can distinguish..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/8596/https-security-should-password-be-hashed-server-side-or-client-side"} |
| {"id": "medicine_316", "domain": "medicine", "question_title": "What are pros and cons of different approaches to aborting ventricular tachycardia?", "question_body": "Idiopathic (or spontaneous, unknown origin) ventricular tachycardia is a type of ventricular tachycardia (VT) that occurs in patients with structurally normal hearts. I would like to know what the pros and cons are of the three main corrective actions physicians seem to prefer: Verapamil : This seems like the drug of choice, but it tends to cause a drop in blood pressure (BP). If the patient already has a low BP (even if merely because of being young and fit), providers may be reluctant to give this drug fearing a significant drop in BP. Amiodarone : This is a drug with significant toxicity that stays in your system for a long time ( weeks to months ). Defibrillation : Assuming the patient returns to normal rhythm after the treatment and is not conscious when delivered, it seems to have less side effects than the drugs. I have looked around and have not found any negative long term side effects, but short term ( seconds to minutes ) there are some risks. My research so far is inconclusive on what the least harmful long term impact of the three are. I am pretty sure Amiodarone should be a last choice, but unsure about the other two. What are the pros and cons of these treatment options that a patient diagnosed with idiopathic VT should understand?", "question_score": 13, "question_tags": ["cardiology", "research", "treatment-options"], "choices": {"A": "Let's get a few things out of the way... Sex is normal ( 1 ). Sexual desire and arousal are normal ( 2 ). Asexuality is normal ( 3 ). Masturbation is normal ( 4 ),( 5 ). There is no problem whatsoever with these three things, although everyone blushes when they talk about them. Is Masturbation healthy? Downsides : Masturbation is not risk free. It is about as dangerous as chewing or walking ( 6 ). Some side effects are irritated skin and ruptured penis, but only if you really, really, really overdo it (Once or twice a day...BI 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...CPlease see the following society guidelines first: The 2006 American College of Cardiology/American Heart Association/European Society of Cardiology (ACC/AHA/ESC) guidelines: ●There is evidence and/or general agreement supporting RF ablation in patients with symptomatic idiopathic VT that is drug-refractory, or in such patients who are intolerant of drugs or do not desire long-term drug therapy. ●The weight of evidence and/or opinion supports the use of beta blockers and/or calcium channel blockers for the treatment of symptomatic idiopathic VT. ●The weight of evidence and/or opinion supports the use of class IC antiarrhythmic drugs as an alternative to or in combination with beta...DIn the blister shown, the likelihood of rupture is decreased because of the thickness of the epidermis on the palm of the hand, so you can leave it alone until the underlying area re-epithelializes. You'll know this is happening because of the decreased pain and the slow reabsorption of the fluid. Eventually you will just peal it off what's left of the blister, finding clean new skin underneath. But this is a great starting point for an answer about the treatment of blisters in general: is it better to leave them alone, drain the fluid, or de-roof them (take the...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://medicalsciences.stackexchange.com/questions/316/what-are-pros-and-cons-of-different-approaches-to-aborting-ventricular-tachycard |
| idfinance_111domainfinancequestion_titleHow can I go about applying machine learning algorithms to stock markets?question_bodyCan anyone share their experience and basic pointers about how to go about it or at least start applying it to see results from data sets? How ambitious is this? Also, mention standard algorithms that should be investigated.question_scorequestion_tagsmachine-learningpredictionmathematicschoicesAThere 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....", "B": "1. 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$....", "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...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...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://quant.stackexchange.com/questions/111/how-can-i-go-about-applying-machine-learning-algorithms-to-stock-markets |
| idcybersecurity_32003domaincybersecurityquestion_titlePasswords being sent in clear text due to users' mistake in typing it in the username fieldquestion_bodyUpon reviewing the Logs generated by different SIEMs (Splunk, HP Logger Trial and the AlienVault platform’s SIEM) I noticed that for some reason quite a few users tend to make the mistake of typing their passwords in the username field, either in the OS Domain logon, or within web applications. I am guessing those are people who cannot type without looking at the keyboard and in trying to do so, doing it fast, end up typing their passwords in the wrong field. This means that the password is sent in plain text everywhere in the network and end up recorded on the logs with an event that says something along the lines: User P@$$w0rd does not exist [...] Or An account failed to login: P@$$w0rd [...] (where P@$$w0rd is the actual user's password) It becomes pretty obvious to work out to whom the passwords belong: usually the previous or very next (un)successful event on the same log file will tell you an event triggered by the same user. Any other Analyst, looking at the logs, could get someone else’s credentials without the due owner even being aware of that; the worst case scenario is network eavesdropping, or actual log file compromise. I am looking for a general guidance to help preventing this. I assume simply masking the username is not feasible and even if it were, this would probably eliminate a lot of the log analysis for not being able to tell who did what. Note: There is already a post on a similar issue, but I am trying to address a way to prevent it. What's the risk if I accidently type my password into a username field (Windows logon)? Accepted Answer: I wish I could select a few answers from the list. Unfortunately I have to stick to just one in the forum, but in practice I can combine them. Thanks very much for all the answers; I see there is no single solution. As I agree that adding 'things' add complexity which increase likelihood of security holes, I have to agree with most of the voters that @AJHenderson has the most elegant and simplest answer as a first approach. Definitely SSL and a simple code verification on the server or even at the client side. As I am looking to mitigate not against malicious users, but the distracted ones, this will do fine. Once this is in place, we can start looking at expanding the implementation to ill-intended users if appropriate. Thanks ever so much again for everyone's input.", "question_score": 245, "question_tags": ["passwords", "authentication", "logging", "siem"], "choices": {"A": "Go with RSA. DSA is faster for signature generation but slower for validation, slower when encrypting but faster when decrypting and security can be considered equivalent compared to an RSA key of equal key length. That's the punch line, now some justification. The security of the RSA algorithm is based on the fact that factorization of large integers is known to be \, whereas DSA security is based on the discrete logarithm problem. Today the fastest known algorithm for factoring large integers is the General Number Field Sieve , also the fastest algorithm to solve the discrete logarithm problem in...BOne 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.", "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": "Let's hope and assume that Facebook stores only hashes of current password (and potentially previous passwords). Here is what they can do: user sets first password to \ and fb stores hash(\). later on, users resets password and is asked to provide new password \ Facebook can generate bunch of passwords (similar to the new one): [\, \, \, ... \, ... \, ... ] and and then compare hash of each with the stored hash. This is the only solution that comes to my mind. Any other?answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/32003/passwords-being-sent-in-clear-text-due-to-users-mistake-in-typing-it-in-the-use |
| idengineering_42931domainengineeringquestion_titleWhy are railroad tank cars bent in the middle?question_bodyI recently noticed that the cylindrical shape of a railroad tank car is not completely straight but has a bend in the middle. The entire tank is a bit lower there. What's the reason for this bend? This is also visible on the drawing of a DOT 117 tank car on Wikipedia (the red nearly-horizontal lines were added by myself). I first thought it had something to do with pressure containment, but the model 117 is apparently used for non-pressured goods only.", "question_score": 35, "question_tags": ["mechanical-engineering", "design", "rail"], "choices": {"A": "As other have pointed out, the main utility is to allow easier cleaning of the tank cars from sediment (solid precipitates). Usually, there is a drain in the lowest point. The reason that it is in the middle is that in this way, you can allow double the incline compared to if you had the drain at one of the ends for the same height. For example, if the allowed height difference is about 15 cm, and about 15 m length, then if you had the drain in: the edge, the angle would be $\\arctan\\left(\\frac{0.15}{15}\\right)=0.57^\\circ$ or 1%. the middle ,...", "B": "The picture, below, of the exaggerated long section of the Channel Tunnel was taken from Wikipedia . Full-sized image here . Some of the limiting factors for the Channel Tunnel are: Railways don't like steep gradients The tunnels comprising the Channel Tunnel were excavated using tunnel boring machines (TBMs). Like railways, they cannot tolerate steep gradients. The tunnel was excavated in chalk marl (green coloured material in the picture). This was due to its depth (not being too shallow and not being too deep) and its ability to be easily dug but also it would cause major support issues for...CFrom the point of view of the driver of a car, impacting another car is about as bad as crashing against an ideal wall (a wall with zero deformation whatsoever). If there were a plane reflection between the two cars, then vs. Car would be exactly equal to vs. Wall (the contact points between both cars would all be on the same plane, due to reflection, so each car could be considered a wall for the other). But this plane reflection does not exist: What we have instead is a 2-fold rotational reflection . Let's say the left part of...", "D": "The turbulence model can make a big difference in your simulation . There are many turbulence models around. It becomes a tough job to select one out of them. There is no perfect turbulence model. It all depends on several parameters like Reynold's number, whether the flow is separated, pressure gradients, boundary layer thikness and so on. In this answer, brief information about a few popular models is given along with pros and cons and potential applications. However, interested users can see this excellent NASA website and references therein to know more about turbulence modeling. A) ONE EQUATION MODEL: 1....answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/42931/why-are-railroad-tank-cars-bent-in-the-middle |
| idlaw_104572domainlawquestion_titleService refuses to accept cash; is this misleading "convenience fee" legal?question_bodyA service advertises a price of $12. When the customer tries to pay, the service provider adds a $2.50 convenience fee for using a debit or credit card and refuses to take any other form of payment. The $12 price was posted, as was the convenience fee. But is it legal for them to say something costs $12 if there is literally no way to get it for that price? ETA: This was an in-person purchase. And yes, I asked to pay in cash and was refused.question_scorequestion_tagsunited-statescommercefeesfalse-advertisingchoicesAAn essential component of your contract with them is that they will provide you with food free of animal stuff (the exact nature of \ may be up for debate, but actual meat should not be included). So they breached their contract with you, and you might sue them for breach of contract. The case of Gupta v. Asha (orders were mixed up) could be useful in this matter. In this case, Hindus were served samosas containing beef, despite repeated assertions that they were vegetarian. Plaintiffs sued, the case was dismissed, and the appeals court deemed that the lower...Bunited-states I think this may be legal at the moment. In October 2023, the FTC announced a proposed rule to prohibit \ that are not disclosed upfront. They held an unformal hearing on this in April 2024. But as far as I've been able to tell, this new rule has not yet been enacted. So \"surprise\" fees at checkout time are still legal.", "C": "Assuming U.S. Jurisdiction: In the case of The People vs. Hansel and Gretel Holzfaller: Ms. Gretel Holzfaller is charged with the following: 1 Count of Murder in the First Degree (Murder of Ms. Witch Hazel) 1 Count of Grand Larceny (Theft of precious metals and jewels from Ms. Hazel) 1 Count Petty Theft (Theft of Candy) 1 Count of Vandalism (Bite marks left in Gingerbread Masonry) 1 Count Trespassing Mr. Hansel Holzfaller is charged with the following: 1 Count of Accessory to Murder 1 Count of Grand Larceny 1 Count Petty Theft 1 Count of Vandalism 1 Count Trespassing Ms....", "D": "Legally 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..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://law.stackexchange.com/questions/104572/service-refuses-to-accept-cash-is-this-misleading-convenience-fee-legal"} |
| {"id": "cybersecurity_221018", "domain": "cybersecurity", "question_title": "What to do if caught in a physical pentest?", "question_body": "I've seen a lot of people talk about how to pentest and how NOT to get caught during engagements but have a hard time finding \. Red Teams are to simulate adversaries attacking systems. Many actions can't be done (or at least very hard to) with just some computers and Red Teams often have to go on-site and break in (legally). What I've seen so far is people succeeding in not getting caught. However, I haven't seen anyone talk about what to do when caught. It may just be some suspicion or even being chased by security (possibly armed). In cases where a Red Teamer is caught during an engagement, what should he/she do? Say \"I'm a security tester. You've caught me so I'll just leave.\just continue\, : 131, : [, ], : {: , : , : , : modulo n \}, : , : , : , : , : } |
| {: , : , : , : hack\suggest\, : 177, : [, , ], : {: attracted attention\, : trusted CA\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 17, : [, ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 42, : [, , , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 44, : [, , ], : {: 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...BHere 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...", "C": "I'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.", "D": "1. 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$...."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/17125/how-to-build-a-factor-model"} |
| {"id": "finance_10401", "domain": "finance", "question_title": "What is the necessary level of Econometrics-Know-How for a quant", "question_body": "It seems quants increasingly use econometric models at work. As someone who has sold his soul to probability theory and stochastical analysis I would like to catch up. What are the econometric tools a quant should be able to wield ? As I see it, the answer will be highly dependant on where one works. Thus perhaps it would make sense to distinguish: Buy side Sell side Fixed Income Equity Risk Management and Model Validation Book suggestions that cover the necessary knowledge will be appreciated. Also, if someone feels like it, a list of topics (e.g. ARCH, GARCH etc.) would also be very helpful.", "question_score": 25, "question_tags": ["risk-models", "econometrics", "quants"], "choices": {"A": "I can only talk about quantitative trading. As a rule of thumb, the lower frequency you work in, the more econometrics is important, whereas for a higher frequency, the more econometrics becomes useless . (I would still recommend a top econometrician for HFT since they have what it takes to succeed, it's just the models aren't out-of-the-box applicable.) But if I was interviewing someone who was educated in econometrics for a quantitative research position, I would hope for (given the relevance to financial time-series): I have tried to put in a legend, ^ is something you should learn later and...", "B": "I have worked on this topic extensively (pricing and calculating IV in production) and believe can offer an informed opinion. First of all Mathworks - the company that creates Matlab is not a trading firm so you should probably not rely on their advice so much. There are few closed form options pricing models, and all have practical shortcomings. Barone-Adesi and Whaley (please correct my spelling of last names as I'm typing from memory) model is simple approximation for American options but is unfortunately not very accurate, and does not deal with dividends. Roll-Geske-Whaley deals with dividends, but not very...CThere 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...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...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://quant.stackexchange.com/questions/10401/what-is-the-necessary-level-of-econometrics-know-how-for-a-quant |
| idcybersecurity_51771domaincybersecurityquestion_titleWhere do you store your personal private GPG key?question_bodySo, I want to start using pass , but I need a GPG key for this. This application will store all of my passwords, which means it's very important that I don't lose my private key, once generated. Hard disks break, cloud providers are generally not trusted. Not that I don't trust them to not mess with my key, but their security can be compromised, and all my passwords could be found. So, where can I safely store my GPG private key?", "question_score": 245, "question_tags": ["privacy", "key-management", "backup", "gnupg"], "choices": {"A": "I like to store mine on paper. Using a JavaScript (read: offline) QR code generator, I create an image of my private key in ASCII armoured form, then print this off. Note alongside it the key ID and store it in a physically secure location. Here's some that should work for you no matter what operating system you use, as long as you have a browser that supports JavaScript. For Windows users: Click here to download the JavaScript QR code generator: https://github.com/davidshimjs/qrcodejs/archive/04f46c6a0708418cb7b96fc563eacae0fbf77674.zip Extract the files somewhere, then proceed edit index.html per the instructions below. For MacOS or Unix users: #...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...CAccording 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...", "D": "Best way to distribute your key is by using one of the key servers that are available, such as keyserver.ubuntu.com , pgp.mit.edu or keyserver.pgp.com . If you use Seahorse (default key manager under Ubuntu), it automatically syncs your keys to one of these servers. Users can then look up your key using your email address or keyid. If you wanted to post your public key on LinkedIn or your blog, you can either upload the key to your server or just link to the page for your key on one of the keyservers above. Personally, I would upload it to..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/51771/where-do-you-store-your-personal-private-gpg-key"} |
| {"id": "engineering_17118", "domain": "engineering", "question_title": "Does an electric vehicle going downhill recover energy?", "question_body": "I have to model the behavior of an electric car. For this, I use these equations and I can observe by \"playing\" with parameters that, when going downhill at constant speed, the car has a negative consumption (i.e. recovers energy). I was wondering if this is realistic?", "question_score": 17, "question_tags": ["mechanical-engineering", "electric-vehicles", "regenerative-braking"], "choices": {"A": "Train 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...BIf 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...CIt depends on how steep the hill is. On a slight hill, the energy added by gravity is still not enough to overcome rolling friction and air resistance, so the car still needs power to maintain speed. On a steeper hill, the two may balance out, so no power is used, and no power is generated. On a hill that's steep enough to require braking to control the speed, the car recovers energy. It's called regenerative braking. If the car is going too fast, applying the brakes turns the motor into a generator and charges the battery.DYou have the right concept, but slipped a decimal point. 5 cm = 0.05 m. The gravitational force on your 450 g mass is 4.4 N as you say, so the torque just to keep up with gravity is (4.4 N)(0.05 m) = 0.22 Nm. However, that is the absolute minimum torque just to keep the system in steady state. It leaves nothing for actually accellerating the mass and for overcoming the inevitable friction. To get the real torque required, you have to specify how fast you want to be able to accellerate this mass upwards. For example, let's say..."}, "answer": "C", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://engineering.stackexchange.com/questions/17118/does-an-electric-vehicle-going-downhill-recover-energy"} |
| {"id": "law_3921", "domain": "law", "question_title": "Can you refuse to swear on the Bible?", "question_body": "Everyone has heard the procedure to get sworn in in an American court: Put your hand on a Holy Bible and answer yes to \"Do you swear to tell the truth, the whole truth, and nothing but the truth, so help you God?\" However swearing on a Holy Bible to God has decidedly Christian roots ( regardless of whether it is actually a Christian practice ) in an official setting in a country with a constitution that explicitly gives freedom of religion. As a non-Christian can you refuse to make such a vow?", "question_score": 66, "question_tags": ["united-states", "rules-of-court"], "choices": {"A": "This is the Fed (FCC) saying \"I'm paying for this, so I get to determine who uses it.\, : affirm\swear\so help me God\solemn affirmation\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 15, : [], : {: , : Too hot\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 15, : [, , , , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 13, : [, , ], : {: , : , : , : iron\}, : , : , : , : , : } |
| {: , : , : , : , : 12, : [, ], : {: colour burst\colour-killer\back porch\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : I used to take lots of coke a few years ago\I used to smoke weed daily until this and that\Yea, I smoke weed every once in a while,\I used to pirate games a lot when I was a bit younger\I used pirated Windows and Photoshop until I got a job,\I smoke it once in a while\, : 60, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 16, : [, ], : {: , : Craze lines are merely cracks in the enamel that do not extend into the dentin.\, : , : }, : , : , : , : , : } |
| {: , : , : , : , : 14, : [, ], : {: reset\, : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 12, : [, , , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 17, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 42, : [, , ], : {: , : qualified organ procurement organizations\, : , : furnish\minor\minor\straw\}, : , : , : , : , : } |
| {: , : , : , : , : 264, : [, , , , ], : {: , : random\, : modulo n \, : }, : , : , : , : , : } |
| {: , : , : , : , : 303, : [], : {: , : , : baseball\, : modulo n \}, : , : , : , : , : } |
| {: , : , : , : , : 147, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 134, : [, , ], : {: , : , : , : }, : , : , : , : , : } |
| {: , : , : , : , : 513, : [, , , , ], : {: , : , : myRealPassword!\MYrEALpASSWORD!\correct\, : difficult\}, : , : , : , : , : } |
| {: , : , : , : , : 257, : [, ], : {: , : , : modulo n \, : random\}, : , : , : , : , : } |
| {: , : , : , : , : 31, : [, , , , ], : {: , : , : swap curve\par swap curve.\how it relates to the zero curve,\fitted curve.\, : 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\}, : , : , : , : , : } |
| {: , : , : , : , : 476, : [, , ], : {: social engineering\, : , : interested parties\unsavory\, : }, : , : , : , : , : } |
| {: , : , : , : , : 250, : [, , , , ], : {: , : Poodle\, : , : Don't use this password\" advice — the password itself was embedded in example source code that showed how you could send a password to a server! ( link to page , and screenshot below) So I think the real goal of that advice is not that Gbt3fC79ZmMEFUFJ is a mysteriously weak password because of the keyboard layout or because of low entropy or because it doesn't include symbols or Unicode or emoji or whatever:...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/70719/ssl3-poodle-vulnerability |
| idlaw_41748domainlawquestion_titleIs it legal for a bar bouncer to confiscate a fake IDquestion_bodyBackground: I read a Reddit thread where someone had an international passport confiscated from them at a bar. I imagine that the bouncer probably didn't recognize what he was looking at and assumed it was a fake ID. From what I understand, the bar does not have the authority to confiscate such a real passport, but that got me to thinking, what if the Bouncer was right? Does he actually have the legal authority to confiscate the fake ID? The reason I ask, is because if he does have that authority, it feels to me like an awkward law, because a simple gap in knowledge can be what makes the difference between legal and illegal.", "question_score": 44, "question_tags": ["illinois", "identification"], "choices": {"A": "This aspect (and many others) of contract law is applicable in the US and various countries of the EU. can they renege after the candidate has begun their journey, thus saddling the candidate with the travel cost? No. The company would incur breach of contract. There is no need for a formal contract. The candidate only needs to prove that the company agreed (in writing, orally or clearly through its conduct) to cover or reimburse those expenses and that this elicited a meeting of the minds . The agreement would be void if the candidate incurred the expenses despite knowing...", "B": "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...", "C": "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...DThere are a couple of indications that a bouncer may not confiscate an ID. This policy document adopting licensing policies to Require licensees with fake ID violations to temporarily or permanently hire on-site law enforcement or certified security guards who are properly trained to check IDs during regular or peak hours to deter the use of fake IDs and give gatekeepers the opportunity to pass suspected fakes to an officer or guard for a second opinion and potential confiscation. Where appropriate, jurisdictions could empower the gatekeeper to confiscate fake IDs so they are not returned to the underage drinker and...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/41748/is-it-legal-for-a-bar-bouncer-to-confiscate-a-fake-id |
| idengineering_2612domainengineeringquestion_titleDistance sensors with accuracy of 1 mm?question_bodyI am making a device for measurements. I would like to measure the distance within accuracy of 1 mm. Range could be 2 cm to 15 cm . I looked at Proximity Sensors but the readings displayed by these sensors are not steady. I wish to measure the thickness of the plate (carbon steel). The two sensors will be mounted on a structure. The sensors will give me the distance of the surface from the sensor. Then I will calculate the thickness of the plate. What are possible types of low cost sensors I can use?question_scorequestion_tagsmechanical-engineeringmeasurementssensorstolerancechoicesAAnswering the question: What are possible types of low cost sensors I can use? There are several types of sensors that can provide millimeter level accuracy. \ is a very relative term, so you'll need to do some shopping around based on your specific budget. Optical sensors- Included here are those of the type you listed, though it's a very cheap sensor meant more to provide a \. There are also laser sensor systems which can provide millimeter level accuracy. Ultrasonic Sensors- Most ultrasonic sensors have relatively low accuracy; in the...BMy first thought is that it might be intended to be a wing nut driver of some sort, but those are usually hollow cylinders with slots for the wings. Ah ... sure enough, it's described as such in this Ebay ad :", "C": "Water 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....", "D": "In Ye olden days DC generators were brushed commutated devices. They had a one or more stator windings and an armature winding. Field wound DC generators as well as motors were commonly connected in one of three methods: Series, Shunt and Compound. Without getting into details, each had its own set of strengths and weaknesses. But you only have to remember these two things: the voltage of a DC motor is dependent on its input shaft speed. Current is a function of torque. More voltage means more RPM's and more amps means more newton-meters (or foot-pounds). So with all that,...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/2612/distance-sensors-with-accuracy-of-1-mm |
| idlaw_24104domainlawquestion_titleIs it illegal to backup your hard drive if you have copyrighted software on it?question_bodyIs it illegal if you create a backup of an HDD that has copyrighted software installed on it? This could be anything from legally purchased games and or expensive popular graphics/video editing programs, just as an example. Is this backup an illegal copy of the original HDD?question_scorequestion_tagsunited-statescopyrightsoftwarelicensingonline-piracychoicesAAssuming U.S. Jurisdiction: In the case of The People vs. Hansel and Gretel Holzfaller: Ms. Gretel Holzfaller is charged with the following: 1 Count of Murder in the First Degree (Murder of Ms. Witch Hazel) 1 Count of Grand Larceny (Theft of precious metals and jewels from Ms. Hazel) 1 Count Petty Theft (Theft of Candy) 1 Count of Vandalism (Bite marks left in Gingerbread Masonry) 1 Count Trespassing Mr. Hansel Holzfaller is charged with the following: 1 Count of Accessory to Murder 1 Count of Grand Larceny 1 Count Petty Theft 1 Count of Vandalism 1 Count Trespassing Ms....BSee 18 U.S.C. s. 1621 (a) . Perjury only relates to material matter . In my opinion, your little logical paradox isn't material. You might be scolded by the judge to stay on point. If you keep doing it, you'll be held in contempt of court .CIn the case of United States vs Wong Kim Ark 169 U.S. 649 (1898) (a 6-2 decision), the Supreme Court wrote: [T]he real object of the Fourteenth Amendment of the Constitution, in qualifying the words, \ by the addition \ would appear to have been to exclude, by the fewest and fittest words (besides children of members of the Indian tribes, standing in a peculiar relation to the National Government, unknown to the common law), the two classes of cases -- children born of alien enemies in hostile occupation...DYou're allowed to make backups of copyrighted software, as long as you are authorized to use the software, the backups are not distributed, and they are destroyed when/if you are no longer authorized to use the software. 17 USC §117(a): (a) Making of Additional Copy or Adaptation by Owner of Copy. -- Notwithstanding the provisions of section 106, it is not an infringement for the owner of a copy of a computer program to make or authorize the making of another copy or adaptation of that computer program provided: (1) ...(not very helpful)...or (2) that such new copy or adaptation..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://law.stackexchange.com/questions/24104/is-it-illegal-to-backup-your-hard-drive-if-you-have-copyrighted-software-on-it"} |
| {"id": "cybersecurity_187912", "domain": "cybersecurity", "question_title": "What does it mean to "burn a zero-day"?", "question_body": "I noticed a comment on this answer where another user said ...but it requires risking burning a 0day, which people are not always all that willing to do. I did an Internet Search for the phrase \"burning a 0day\" (and similar permutations like 0 day, zero day, etc) and not much came back. It's obvious that \ means \ in this case. I understand most of what the user meant, but probably not all of why it was important (aka context). I'm looking for a canonical answer, with some reasoning about why \"burning a zero-day\" is an expensive thing. Mr Robot s01e06 touches on this when Elliot and Darlene start to argue about what went wrong in their attempted hack. I found some other people on this SE using the same terminology: Answer: https://security.stackexchange.com/a/184541/71932 Answer: https://security.stackexchange.com/a/184217/71932 Answer: https://security.stackexchange.com/a/162416/71932 Answer: https://security.stackexchange.com/a/175535/71932 Answer: https://security.stackexchange.com/a/182288/71932 Comment on this answer: Do drive-by attacks exist in modern browsers?", "question_score": 166, "question_tags": ["terminology", "zero-day"], "choices": {"A": "I was the one who wrote the comment you quoted. Quick answer: A 0day is burned when the exploit is used too often or haphazardly, resulting in it being discovered and patched. Virtually every time a 0day is used, it risks being burned. Using a 0day more sparingly and cautiously can increase its shelf life. The idiom intends to compare a 0day to a non-renewable resource like combustible fuel that loses its value when used up. This likely originates from the idiom burn your bridges : To destroy one's path, connections, reputation, opportunities, etc., particularly intentionally. What is a 0day?...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...CIt 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...DFacebook 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 \ but you submit \ (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 \"correct\" a..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/187912/what-does-it-mean-to-burn-a-zero-day"} |
| {"id": "law_29588", "domain": "law", "question_title": "If I don't want to patent something, what can I do to ensure the patent office doesn't unintentionally grant the patent to someone else?", "question_body": "Say that I have created a hypothetical new invention. I would like for it to be used by as many people as possible without restrictions, so I deliberately choose not to pursue a patent on it. As described in the answers to What if I don't patent my invention? , someone else can patent my invention unless the US Patent Office is aware that there is prior art, established by me producing and selling my invention. The trouble is, I can't necessarily guarantee that they will become aware of my prior art if I'm not particularly well-known. What can be done to ensure that the patent office knows about my prior work (which I deliberately choose not to patent) and therefore doesn't unintentionally grant a patent to someone else?", "question_score": 102, "question_tags": ["united-states", "patents", "prior-art"], "choices": {"A": "There isn't any rule which would prioritize the President, as far as I can tell. Generally, organ allocation is required to be based on medical criteria, not on factors such as the occupation or societal role of the patient. 42 USC 273 specifies that organ procurement shall be administered by \ and sets up ground rules for their operation, one of which is: have a system to allocate donated organs equitably among transplant patients according to established medical criteria. Further regulations implementing this law are to be found at 42 CFR 121 . 121.8(a)(1) specifies that allocation...BThere is a history of \, which allows the original grantor to foster innovation instead of stifle it. Here are some examples: Sealand Industries - ISO Shipping Container Patented the standard shipping container, then gave away the patent royalty free, allowing a revolution in ocean going shipping. Annually it is estimated that $440 billion are shipped through these containers. Tesla - 200+ patents Elon Musk announced that the company \ . Toyota - Hydrogen Fuel Cell Patents Released 5,680 patents related to hydrogen...CThis aspect (and many others) of contract law is applicable in the US and various countries of the EU. can they renege after the candidate has begun their journey, thus saddling the candidate with the travel cost? No. The company would incur breach of contract. There is no need for a formal contract. The candidate only needs to prove that the company agreed (in writing, orally or clearly through its conduct) to cover or reimburse those expenses and that this elicited a meeting of the minds . The agreement would be void if the candidate incurred the expenses despite knowing...DVirginia employer terminated employee and wants signing bonus returned Can the employer legally keep his last check and send the employee a bill for the remainder ? No, unless (1) the employee resigned and (2) his resignation does not amount to constructive termination . The employer may withhold the remaining $7,000 only if the employee did not meet the condition of \. Absent any language to the contrary, the requirement of \ is to be construed as the consideration expected from the employee (namely, \) in...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/29588/if-i-dont-want-to-patent-something-what-can-i-do-to-ensure-the-patent-office-d |
| idfinance_1489domainfinancequestion_titleHow should I calculate the implied volatility of an American option in a real-time production environment?question_bodyThere are many models available for calculating the implied volatility of an American option. The most popular method, employed by OptionMetrics and others, is probably the Cox-Ross-Rubinstein model. However, since this method is numerical, it yields a computationally intensive algorithm which may not be feasible (at least for my level of hardware) for repeated re-calculation of implied volatility on a hundreds of option contracts and underlying instruments with ever-changing prices. I am looking for an efficient and accurate closed form algorithm for calculating implied volatility. Does anyone have any experience with this problem? The most popular closed-form approximation appears to be Bjerksund and Stensland (2002), which is recommended by Matlab as the top choice for American options, although I've also seen Ju and Zhong (1999) mentioned on Wilmott . I am interested in knowing which of these (or other) methods gives the most reasonable and accurate approximations in a real-world setting.", "question_score": 39, "question_tags": ["option-pricing", "implied-volatility"], "choices": {"A": "The 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$,...", "B": "There 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...", "C": "I have worked on this topic extensively (pricing and calculating IV in production) and believe can offer an informed opinion. First of all Mathworks - the company that creates Matlab is not a trading firm so you should probably not rely on their advice so much. There are few closed form options pricing models, and all have practical shortcomings. Barone-Adesi and Whaley (please correct my spelling of last names as I'm typing from memory) model is simple approximation for American options but is unfortunately not very accurate, and does not deal with dividends. Roll-Geske-Whaley deals with dividends, but not very...DThe standard story (also told by @vonjd) is of \. This is based on \ (1994). The story is itself based on the standard illustration for a random walk known as the \. 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..."}, "answer": "C", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/1489/how-should-i-calculate-the-implied-volatility-of-an-american-option-in-a-real-ti"} |
| {"id": "engineering_7394", "domain": "engineering", "question_title": "Why does it take so long to restart a nuclear power plant?", "question_body": "I have heard a couple of times that an operating nuclear power plant which was shut down (non-emergency; e.g. for a regular check) needs over 24 hours (up to 72 hours?) to get up running again. Why does it take that long?", "question_score": 20, "question_tags": ["power", "nuclear-technology", "electrical-grid"], "choices": {"A": "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...BAs other have pointed out, the main utility is to allow easier cleaning of the tank cars from sediment (solid precipitates). Usually, there is a drain in the lowest point. The reason that it is in the middle is that in this way, you can allow double the incline compared to if you had the drain at one of the ends for the same height. For example, if the allowed height difference is about 15 cm, and about 15 m length, then if you had the drain in: the edge, the angle would be $\\arctan\\left(\\frac{0.15}{15}\\right)=0.57^\\circ$ or 1%. the middle ,...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...DAt the beginning of my career (1979) as a design engineer at HP, the mechanical engineer created the part design and then rendered it in pencil on paper, and then transferred it onto sheets of vellum paper held onto a huge flat tilting table called a drafting board which had a precision sliding arm on it with which parallel and right angle lines could be drawn anywhere on the sheet. Clever graphical rules were applied to the resulting drawings which permitted auxiliary views of the part to be generated so it could be viewed from any desired angle, as an...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/7394/why-does-it-take-so-long-to-restart-a-nuclear-power-plant |
| idengineering_6020domainengineeringquestion_titleWhy do we even use engineering stress?question_bodySurprisingly this hasn't been asked before, so I must be missing something simple. We use engineering stress and engineering strain in this eq. Stress = (Young's modulus) × (strain). This eq. is used in analysis of bending beams, twisting shafts and in buckling. So the final equation of bending $(\\frac{M}{I} = \\frac{\\sigma}{y})$ and torsion $(\\frac{T}{I} = \\frac{\\tau}{r})$ will give us value of engineering stress but not the value of stress. Why are we considering engineering stress instead of true stress while we know it will not give correct value of stress? Some things I read are: Difficult to measure. Not that much of a difference and we can just apply a Factor of Safety. \ Firstly, 1 and 2 are not real reasons for me. Number 3 seems plausible since we always design in the elastic region, but is this it? Does engineering strain even give valid information after the proportional limit?question_scorequestion_tagsmaterialsstructural-engineeringstresseschoicesAThe 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...", "B": "Trees 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 \" Wind Energy - The Facts \". As you can see, forest and woodland has a much higher $z_0$ than open farmland - and that means higher turbulence. Open land also...", "C": "The picture, below, of the exaggerated long section of the Channel Tunnel was taken from Wikipedia . Full-sized image here . Some of the limiting factors for the Channel Tunnel are: Railways don't like steep gradients The tunnels comprising the Channel Tunnel were excavated using tunnel boring machines (TBMs). Like railways, they cannot tolerate steep gradients. The tunnel was excavated in chalk marl (green coloured material in the picture). This was due to its depth (not being too shallow and not being too deep) and its ability to be easily dug but also it would cause major support issues for...DWe use engineering strain even though it is not the \ value because in most cases, specifically in the elastic regime, engineering strain differs negligibly from true strain. For linear elastic, Hookean materials, it is generally the case strain at the elastic limit is very small. Even the strongest steels, for example, have an upper limit when cold worked of about $\\sigma_{\\textrm{el}}=1\\times 10^{9}\\ \\textrm{Pa}$. The modulus of steel is approximately $E=200\\times 10^{9}\\ \\textrm{Pa}$. Thus $\\varepsilon_{\\textrm{el}}=0.005=0.5\\%$ for the strongest steels. So at the onset of plastic deformation, engineering strain is $0.5\\%$. Many useful elastic materials have much lower engineering strain at...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/6020/why-do-we-even-use-engineering-stress |
| idfinance_55239domainfinancequestion_titleExplaining the Risk Neutral Measurequestion_bodyWhat is the Risk Neutral Measure? I don't believe this has been answered on the internet well and with all the parts connecting. So: What is the risk neutral measure/pricing? Why do we need it? How we calculate the risk neutral measure or probabilities in practice? What connection has risk neutral pricing to the drift of a SDE? Does this help with 3)?", "question_score": 35, "question_tags": ["option-pricing", "stochastic-processes", "risk-neutral-measure", "pricing", "martingale"], "choices": {"A": "Intro: Great answer given by Kevin. I would like to contribute an additional perspective. My experience with and my understanding of the Risk Neutral measure is entirely based on \"no arbitrage\" and \"replication / hedging\" arguments. The way I would like to explain this view is via the following three-step construction : (i) First, I want to build the intuition with a one-period discrete model: only a single stock and a risk-free account, no derivatives . The aim is to show that even without trying to price derivatives, one can create a mathematical object called a \"risk-neutral probability measure\", just...", "B": "Because 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...", "C": "I'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.", "D": "Consider 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..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/55239/explaining-the-risk-neutral-measure"} |
| {"id": "law_101275", "domain": "law", "question_title": "Is it stealing if three books are allowed to be taken for free and I take more?", "question_body": "There is a charity shop, which sells nothing but gives books away for free. They do accept optional donations of money, and any books donations so they have more books to give away for free. Upon entering the charity shop, there is a sign saying that only a maximum of three books may be taken per visit. Assume someone visiting the shop knowingly takes more than three books, without being caught at the time, but is discovered a short period of time later on CCTV. In England and Wales, would this be a Criminal Offence or a Civil Matter?", "question_score": 39, "question_tags": ["united-kingdom", "criminal-law", "england-and-wales"], "choices": {"A": "The third Geneva convention says in its second article (emphasis added): the present Convention shall apply to all cases of declared war or of any other armed conflict which may arise between two or more of the High Contracting Parties, even if the state of war is not recognized by one of them. The Convention shall also apply to all cases of partial or total occupation of the territory of a High Contracting Party, even if the said occupation meets with no armed resistance. The violence in Ukraine qualifies for at least two reasons: it is an armed conflict between...", "B": "By Army regulations, no, he's not allowed to wear that uniform. Prince Harry technically isn't a \"retired officer\". Rather, he resigned his commission in the Army, effective 19 June 2015. See the London Gazette for 11 August 2015, Supplement 61319, page 14838 , under \"Captain H. C. A. D. WALES 564673\". According to the Army Dress Regulations 02.45a (page 101 of the PDF), \"It is to be noted that those who resigned their commissions are not authorised to wear uniform under any circumstances.\" Moreover, under the Uniforms Act 1894 : (1)It shall not be lawful for any person not serving...", "C": "This has been prosecuted criminally, in the scenario of people taking a huge pile of \"free\" newspapers to sell for recycling. See coverage in the Independent from 16 February 2019. Some previous prosecutions against the same or similar groups had been dropped but this one succeeded. While copies of the Evening Standard are given away for free at train stations, the big stack of them is still somebody's property, and the socially expected arrangement is that a member of the public will take just one, rather than the lot. The reason they are being offered is to achieve a wide...DParliamentary Supremacy was established by the Glorious Revolution of 1688 in which James II & VII was deposed by Parliament, and the line of succession was changed by Act of Parliament to favor William and Mary. Key laws passed during the aftermath of the Revolution included the Declaration of Right (which forbade keeping a standing army without Parliamentary consent, and put control of the military in Parliament), and the Coronation Oath Act 1688 which established in law obligations of the monarch. Since 1688 it has remained the governing principle of English (later British and UK) law that ultimate authority lies...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://law.stackexchange.com/questions/101275/is-it-stealing-if-three-books-are-allowed-to-be-taken-for-free-and-i-take-more |
| idengineering_6230domainengineeringquestion_titleCan wifi signal reception be improved by opening a door?question_bodyA wifi user is in a different room than the router. The computer is having a hard time connecting and receiving the wifi signal. Can the wifi signal from the router to the computer be improved by opening a door to the room where the computer is?question_scorequestion_tagssignalwifichoicesAThe 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...", "B": "As other have pointed out, the main utility is to allow easier cleaning of the tank cars from sediment (solid precipitates). Usually, there is a drain in the lowest point. The reason that it is in the middle is that in this way, you can allow double the incline compared to if you had the drain at one of the ends for the same height. For example, if the allowed height difference is about 15 cm, and about 15 m length, then if you had the drain in: the edge, the angle would be $\\arctan\\left(\\frac{0.15}{15}\\right)=0.57^\\circ$ or 1%. the middle ,...", "C": "The picture, below, of the exaggerated long section of the Channel Tunnel was taken from Wikipedia . Full-sized image here . Some of the limiting factors for the Channel Tunnel are: Railways don't like steep gradients The tunnels comprising the Channel Tunnel were excavated using tunnel boring machines (TBMs). Like railways, they cannot tolerate steep gradients. The tunnel was excavated in chalk marl (green coloured material in the picture). This was due to its depth (not being too shallow and not being too deep) and its ability to be easily dug but also it would cause major support issues for...DCan the wifi signal from the router to the computer be improved by opening a door to the room where the computer is? Maybe, but probably not to a noticeable degree. All structures, including doors, impede the wireless signal from the router by some amount. Generally, the amount of impedance added by the door is a negligible amount and would not be sufficient to noticeably improve the quality of the signal. That said, differing types of door construction have differing impacts on the signal. A hollow core, wooden door won't impede the signal all that much at 4 dB. A..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://engineering.stackexchange.com/questions/6230/can-wifi-signal-reception-be-improved-by-opening-a-door"} |
| {"id": "cybersecurity_167412", "domain": "cybersecurity", "question_title": "Isn't Ubuntu's system prompt for my password spoofable?", "question_body": "Sometimes, Ubuntu shows the following window: This window can be caused by some background processes running, such as an automatic update, or a process which reports bugs to Canonical which manifests itself this way: Since those are background processes, the first window is not shown in response to an action I performed myself, in a situation where I was expecting the system to ask me for the password. This means that: From the perspective of the user, there is no guarantee that the prompt comes from the operating system; it could be any malicious program which had only a limited permission to show a window, and which, by prompting for my password, will gain unlimited access to the entire machine. By prompting the user for a password regularly, the system teaches the user that giving his system password whenever some application asks for it is a perfectly natural thing to do. My questions are: Is there any safety mechanism in Linux in general or Ubuntu specifically that prevents any application from displaying a dialog which looks identical to the system one, asking me for my password? How should such windows be designed to increase the safety of the user? Why not implement a system similar to Windows' Ctrl + Alt + Del on logon ?question_scorequestion_tagspasswordslinuxprivilege-escalationchoicesADisclaimer: 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 :...", "B": "No, 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...", "C": "As 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...DYour points are all good, and you are correct, but before we get outraged about it we need to remind ourselves how the linux security model works and what it's designed to protect. Remember that the Linux security model is designed with a multi-user terminal-only or SSH server in mind. Windows is designed with an end-user workstation in mind (but I've heard that the recent generation of Windows is more terminal-friendly). In particular, Linux convention does a better job of sandboxing apps into users, while in Windows anything important runs as System, while the Linux GUI (X Server) sucks at...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/167412/isnt-ubuntus-system-prompt-for-my-password-spoofable |
| idengineering_3099domainengineeringquestion_titleWhich is Worse: Car vs. Car or Car vs. Wall?question_bodySo I got myself questioning what could be worse for the driver... a collision of two identical cars at equal speed (frontal crash) or the same car with the same speed crashing through a wall? The first case I see it would double the impact, but also it will absorb the energy into the other car structure, otherwise, in a solid and rigid wall, all the energy would come back to the vehicle. Which situation is worse for the passengers?question_scorequestion_tagsautomotive-engineeringsafetychoicesAAt the beginning of my career (1979) as a design engineer at HP, the mechanical engineer created the part design and then rendered it in pencil on paper, and then transferred it onto sheets of vellum paper held onto a huge flat tilting table called a drafting board which had a precision sliding arm on it with which parallel and right angle lines could be drawn anywhere on the sheet. Clever graphical rules were applied to the resulting drawings which permitted auxiliary views of the part to be generated so it could be viewed from any desired angle, as an...BAfter the 2014 ICCT report revealed that these light-duty passenger diesel vehicles were emitting too much NOx and US regulators confronted VW about the results, VW did some testing and proposed a voluntary software recall to recalibrate the various emissions control devices on the affected vehicles. From the California Air Resources Board's (CARB's) in-use compliance letter to Volkwagen AG, 2015-09-18 , following that recall: To have a more controlled evaluation of the high NOx observed over the road, CARB developed a special dynamometer cycle which consisted of driving the Phase 2 portion of the FTP repeatedly. This special cycle revealed...CFrom the point of view of the driver of a car, impacting another car is about as bad as crashing against an ideal wall (a wall with zero deformation whatsoever). If there were a plane reflection between the two cars, then vs. Car would be exactly equal to vs. Wall (the contact points between both cars would all be on the same plane, due to reflection, so each car could be considered a wall for the other). But this plane reflection does not exist: What we have instead is a 2-fold rotational reflection . Let's say the left part of...", "D": "Nothing 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. 'answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/3099/which-is-worse-car-vs-car-or-car-vs-wall |
| idengineering_10335domainengineeringquestion_titleWhy would a train automatically derail if a signal is passed at danger?question_bodyIn a recent incident in London Network Rail said an empty train had travelled past a red signal, which resulted in an automatic derailment. No one was injured. [link] The derailment has caused quite a bit of damage, and a lot of travel disruption along this track. My reading of the National Rail statement is that the derailment was a feature of the system, a response to the signal being passed at danger. While I'm sure it caused less damage than a train collision, it still seems dangerous and expensive. Things like train stops , to trigger the brakes exist, or one could imagine diverting the train into a sand trap. Why weren't options like these used instead of derailing?question_scorequestion_tagssafetyrailchoicesAWhen 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...BFirstly, the incident happened as the train was leaving a siding passing a shunt signal. These provide less authorisation than a normal signal does, even when they are not at danger (the train can permit as far as the line is clear or the next signal , there is no guarantee the track ahead is clear). Now, in the UK, there are four train protection systems: AWS, TPWS, ATP, and ETCS. However, these are all primarily designed for trains on normal running lines, rather than those on sidings. I'll examine each of these in turn insofar as they protect signals:...", "C": "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...DAfter the 2014 ICCT report revealed that these light-duty passenger diesel vehicles were emitting too much NOx and US regulators confronted VW about the results, VW did some testing and proposed a voluntary software recall to recalibrate the various emissions control devices on the affected vehicles. From the California Air Resources Board's (CARB's) in-use compliance letter to Volkwagen AG, 2015-09-18 , following that recall: To have a more controlled evaluation of the high NOx observed over the road, CARB developed a special dynamometer cycle which consisted of driving the Phase 2 portion of the FTP repeatedly. This special cycle revealed...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/10335/why-would-a-train-automatically-derail-if-a-signal-is-passed-at-danger |
| idcybersecurity_25585domaincybersecurityquestion_titleIs my developer's home-brew password security right or wrong, and why?question_bodyA developer, let's call him 'Dave', insists on using home-brew scripts for password security. See Dave's proposal below. His team spent months adopting an industry standard protocol using Bcrypt . The software and methods in that protocol are not new, and are based on tried and tested implementations that support millions of users. This protocol is a set of specifications detailing the current state of the art, software components used, and how they should be implemented. The implementation is based on a known-good implementation. Dave argued against this protocol from day one. His reasoning was that algorithms like Bcrypt, because they are published, have greater visibility to hackers, and are more likely to be targeted for attack. He also argued that the protocol itself was too bulky and difficult to maintain, but I believe Dave's primary hangup was the fact that Bcrypt is published. What I'm hoping to accomplish by sharing his code here, is to generate consensus on: Why home-brew is not a good idea, and What specifically is wrong with his script /** Dave's Home-brew Hash */ // user data $user = ''; $password = ''; // timestamp, random # $time = date('mdYHis'); $rand = mt_rand().'\\n'; // crypt $crypt = crypt($user.$time.$rand); // hash function hash_it($string1, $string2) { $pass = md5($string1); $nt = substr($pass,0,8); $th = substr($pass,8,8); $ur = substr($pass,16,8); $ps = substr($pass,24,8); $hash = 'H'.sha1($string2.$ps.$ur.$nt.$th); return $hash } $hash = hash_it($password, $crypt);", "question_score": 545, "question_tags": ["passwords", "hash", "bcrypt", "algorithm"], "choices": {"A": "/** 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...BIt 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...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": "Yep, 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...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/25585/is-my-developers-home-brew-password-security-right-or-wrong-and-why |
| idfinance_2074domainfinancequestion_titleWhat is the best way to "fix" a covariance matrix that is not positive semi-definite?question_bodyI have a sample covariance matrix of S&P 500 security returns where the smallest k-th eigenvalues are negative and quite small (reflecting noise and some high correlations in the matrix). I am performing some operations on the covariance matrix and this matrix must be positive definite. What is the best way to \ the covariance matrix? (For what it's worth, I intend to take the inverse of the covariance matrix.) One approach proposed by Rebonato (1999) is to decompose the covariance matrix into its eigenvectors and eigenvalues, set the negative eigenvalues to 0 or (0+epsilon), and then rebuild the covariance matrix. The issue I have with this method is that: the trace of the original matrix is not preserved, and the method ignores the idea of level repulsion in random matrices (i.e. that eigenvalues are not close to each other). Higham (2001) uses an optimization procedure to find the nearest correlation matrix that is positive semi-definite. Grubisic and Pietersz (2003) have a geometric method they claim outperforms the Higham technique. Incidentally, some more recent twists on Rebonato's paper are Kercheval (2009) and Rapisardo (2006) who build off of Rebonato with a geometric approach. A critical point is that the resulting matrix may not be singular (which can be the case when using optimization methods). What is the best way to transform a covariance matrix into a positive definite covariance matrix? UPDATE: Perhaps another angle of attack is to test whether a security is linearly dependent on a combination of securities and removing the offender.question_scorequestion_tagsriskstatisticsresearchcorrelationcovariancechoicesANick Higham's specialty is algorithms to find the nearest correlation matrix. His older work involved increased performance (in order-of-convergence terms) of techniques that successively projected a nearly-positive-semi-definite matrix onto the positive semidefinite space. Perhaps even more interesting, from the practitioner point of view, is his extension to the case of correlation matrices with factor model structures. The best place to look for this work is probably the PhD thesis paper by his doctoral student Ruediger Borsdorf. Higham's blog entry covers his work up to 2013 pretty well.BI'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...", "C": "There 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...", "D": "In general there are two basic ways to make money out of your option pricing models: Sell side (market maker, risk neutral): You use these models to calculate your greeks to hedge your portfolio, so that you live on the spread. Buy side (market/risk taker): You use your model to find mispriced options in the market and buy/sell accordingly. (A third possibility would be to write fancy books and papers about these models and get rich and/or tenure this way ;-)"}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/2074/what-is-the-best-way-to-fix-a-covariance-matrix-that-is-not-positive-semi-defi"} |
| {"id": "cybersecurity_214784", "domain": "cybersecurity", "question_title": "Can ads on a page read my password?", "question_body": "Disclaimer: I have minimal web-dev/security knowledge so please answer as if talking to a \"layman.\" I've heard that web-advertisements need to be able to run their own JavaScript so that they can verify they're being viewed by \"real users.\" As this incident on StackOverflow shows, they're basically given free reign. I also know that JavaScript can be used to capture keystrokes on a webpage . So in a case like goodreads , where they have ads on the page and user/pass textboxes on the header, is there something in place to prevent the ad from reading keystrokes to record my credentials? Is reading keystrokes simply not possible from an ad? If I see ads on a login page should I assume that the page is not safe to enter my credentials?question_scorequestion_tagspasswordsweb-applicationchoicesADisclaimer: 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 :...", "B": "If 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 \"plain-text\" 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).", "C": "I wasn't originally aiming for a self-answer, but after more reading I've come up with what I believe to be a comprehensive answer that also explains why some might still be interested in CSRF protection on REST endpoints. No cookies = No CSRF It really is that simple. Browsers send cookies along with all requests. CSRF attacks depend upon this behavior. If you do not use cookies, and don't rely on cookies for authentication, then there is absolutely no room for CSRF attacks, and no reason to put in CSRF protection. If you have cookies, especially if you use them...DNothing prevents ads from reading your passwords. Ads (or any other script like analytics or JavaScript libraries) have access to the main JavaScript scope, and are able to read a lot of sensitive stuff: financial information, passwords, CSRF tokens, etc. Well, unless they're being loaded in a sandboxed iframe. Loading an ad in a sandboxed iframe will add security restrictions to the JavaScript scope it has access to, so it won't be able to do nasty stuff. Unfortunately, most of the third-party scripts are not sandboxed. This is because some of them require access to the main scope to work...answerDdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://security.stackexchange.com/questions/214784/can-ads-on-a-page-read-my-password |
| idfinance_7377domainfinancequestion_titleApplications of Fourier theory in tradingquestion_bodyWhat are fashionable applications of Fourier analysis in trading? I have heard vague ideas of applications in High Frequency Trading but can somebody provide an example, maybe a reference? Just for clarification: The approach to split up a stock price in its cosines and to apply this for forecasts or anything similar seems theoretically not justified as we can not assume the stock price to be periodic (outside of the period of observation). So I don't really mean such applications. Put differently: are there useful, theoretically valid applications of Fourier theory in trading? I am curious for any comments, thank you! EDIT: I am aware of (theoretically $100\\%$ valid) applications in option pricing and calculation of risk measures in the context of Lévy processes (see e.g. here p.11 and following and references therein). This is well established, I guess. What I mean are applications in time series analysis. Sorry for any confusions.", "question_score": 30, "question_tags": ["trading", "high-frequency"], "choices": {"A": "There 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...", "B": "This isn't really an answer, but it's too long to add as a comment. I've always had a real problem with the correlation/covariance of price . To me, it means nothing. I realize that it gets used (abused) in many contexts, but I just don't get anything out of it (over time, price has to generally go up, go down, or go sideways, so aren't all prices \?). On the flip side, correlation/covariance of returns makes sense. You're dealing with random series, not integrated random series. For example, below is the code required to generate two price series that have...", "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": "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$ ;...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://quant.stackexchange.com/questions/7377/applications-of-fourier-theory-in-trading |
| idfinance_529domainfinancequestion_titleHow to quickly estimate a lower bound on correlation for a large number of stocks?question_bodyI would like to find stock pairs that exhibit low correlation. If the correlation between A and B is 0.9 and the correlation between A and C is 0.9 is there a minimum possible correlation for B and C? I'd like to save on search time so if I know that it is mathematically impossible for B and C to have a correlation below some arbitrary level based on A to B and A to C's correlations I obviously wouldn't have to waste time calculating the correlation of B and C. Is there such a \"law\"? If not, what are other methods of decreasing the search time?", "question_score": 25, "question_tags": ["time-series", "correlation", "numerical-methods"], "choices": {"A": "The minimum variance solution loads up on securities that have low variances and co-variances. Theoretically you are correct that this should have a low expected return profile. However, it turns out - in contradiction to modern portfolio theory - that securities that have low-volatility or low-beta experience higher returns than high-volatility or high-beta stocks. This is well-documented in the literature as the low-volatility anomaly . As a result, many funds and ETFs have been launched in recent years to exploit this phenomenon. There are a couple arguments as to why the anomaly exists. The paper I cite above argues that...", "B": "Yes, there is such a rule and it is not too hard to grasp. Consider the 3-element correlation matrix $$\\left(\\begin{matrix} 1 & r & \\rho \\\\ r & 1 & c \\\\ \\rho & c & 1 \\end{matrix}\\right)$$ which must be positive semidefinite . In simpler terms, that means all its eigenvalues must be nonnegative. Assuming that $\\rho$ and $r$ are known positive values, we find that the eigenvalues of this matrix go negative when \\begin{equation} c Therefore the right hand side of this expression is the lower bound for the AC correlation $c$ that you seek, with $\\rho$ being...", "C": "It is hard to find a stable non-trivial dependence structure in financial data. Usually when such is found it is hard to rationalize. One of my favorite (although I am sure there are others) is the so called \"Presidential Puzzle\". This is an old finding by Santa-Clara and Valkanov (2003) They find that \" Excess return in the stock market is higher under Democratic than Republican presidencies: 9 percent for the value‐weighted and 16 percent for the equal‐weighted portfolio. At the time the finding was very robust and did not seem to be explained by anything else. What is more...", "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": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://quant.stackexchange.com/questions/529/how-to-quickly-estimate-a-lower-bound-on-correlation-for-a-large-number-of-stock"} |
| {"id": "engineering_1767", "domain": "engineering", "question_title": "At what point does an I-beam becomes a H-beam?", "question_body": "According to BS5950, a beam section can be classified as plastic, semi-compact, compact or slender. For the same section area, a H-beam can take axial compression (without buckling) better than an I-beam, and as such, uses a different strut curve in the code: Now, I understand that a H-beam has a wider flange compared to an I-beam, but at what point, precisely, does this transition from I- to H- occurs? For example, is a 400x300 (depth x width) beam considered a H- or an I-beam? Update: Extracted from BS5950 guide, the following table shows H-beams (also known as universal columns, some of which with depth greater than width. This is the reason why I don't believe the differentiation is so straight forward.question_scorequestion_tagscivil-engineeringsteelbeamchoicesAI'm going to set aside the potential legal liability aspects of your question. In part because you didn't ask about them, but also because liability will vary based upon jurisdiction. Obviously, consult an attorney familiar with the relevant law. Ethically, I think you've done everything that you're obligated to do. You have contacted the customer and notified them of an unsafe situation or configuration of the product. And you have (strongly) advised them that they need to discontinue using the older product in the unsafe configuration. If the customer remains insistent about using the product in an unsafe manner, you...BIf you consider only the static forces then indeed the thickness might seem over-engineered. However, engine blocks are not statically loaded. They operate in the range of a few hundred to a few thousand rpm (Revolution Per Minute), so there are dynamic considerations here. Fatigue When materials are subjected to cyclic loading they exhibit a reduction in the allowable stresses. See below for an example: In general, BCC (body-centered cubic) materials (like steel) show a marked drop in strength (close to 50% or more depending on the steel). For these material there is stress (called the endurance limit), for which...CBS5950-1:2000 Clause 1.3.23 defines an H-section as having \, and Clause 1.3.25 defines an I section as having \. Note that at exactly a ratio of 1.2, it would be an H section not an I section.DSo there's an incorrect assumption underlying your question. In an ideal world the lifting capacity required of the jacks would be the self-weight of the bridge divided by the number of jacks (+ allowances for wind/snow, etc.). And the assumption there is that the lifting capacity is equivalent only to the weight of the bridge. The problem is that if anything goes wrong, you're likely to see a catastrophic failure of some sort which could lead to irreparable damage. Real world lifts don't operate in that \"ideal\" manner, and instead rely upon a safety factor in order to make sure..."}, "answer": "C", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://engineering.stackexchange.com/questions/1767/at-what-point-does-an-i-beam-becomes-a-h-beam"} |
| {"id": "medicine_1154", "domain": "medicine", "question_title": "What is the mechanism of eczema?", "question_body": "I'm trying to link the signs and symptoms of eczema (especially atopic dermatitis) to its causes . In short, what is the mechanism of the disease? In an answer of another question about eczema , @anongoodnurse has said (bolded words added by me): Signs and symptoms: Eczema (or Atopic Dermatitis) is an incompletely understood skin disorder, in which the normal skin barrier function (permeability) is compromised, allowing the skin to dry out more than normal skin. Causes: The cause of the dryness in AD is thought by some to be (1) a deficiency of a naturally occurring fatty substance in the skin called ceramide. Others believe it's (2) an abnormal or missing protein which causes the skin barrier to be compromised, allowing allergens and irritants to cause immune responses more easily, triggering the itch/chronic inflammation (this might explain the response seen with topical steroids). If the cause is a deficiency of ceramide, what causes this cause? Ceramides are a family of waxy lipid molecules , so exactly which chemical is produced? Is it because the skin produces another kind of ceramide which has lower quality, or it does not produce enough? If the cause is an abnormal or missing protein, what causes this cause? What protein it is? Is that something related to T cells (recognising antigens) or B cells (producing antibodies)? Is it a skin problem or an immune system problem? Also, I heard from many sources that this is an immune system problem. And the source of this problem is the gut. They quote Hippocrates: \"All disease begins in the gut\" . Is that true? Will just eating healthy food, adding more probiotics, and applying moisturizer help the skin effectively?", "question_score": 12, "question_tags": ["dermatology", "immune-system", "digestion", "eczema"], "choices": {"A": "This 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...BThis is a pretty old old-wives tale, taking many forms: don't go out into the cold while it's raining, or without a hat, with wet hair, without a warm coat or scarf, without boots, etc., \ The old wive's tale was immortalized by Jane Austin in her book, Pride and Prejudice , when the heroine's sister Jane falls ill after getting a soaking in the rain. This has been studied extensively. A New York Times article describes one such uncomfortable-sounding study: In the 1950's, Chicago researchers repeated the experiment on a larger scale with...", "C": "TLDR: The pathogenesis of eczema is multifactorial, but broadly follows a process of genetic (or epigenetic, in the case of the early gut microbiome) dysregulation relating to barrier integrity proteins like filaggrin with corresponding changes in the skin microenvironment's ceramide content. Following these changes in protein structure and function and lipid quantity, the compromised barrier is predisposed to irritation and infection, which leads to an abnormal immunological response as Th2 cells work to resolve inflammatory processes in the skin (it's not clear how B cells participate in the pathogenesis of eczema at this time). Treatment options for mild-moderate eczema are...", "D": "The MSDS linked to is for a product sold as a solution of 10% SM-102 in 90% chloroform. It's listed as \ because that's the interesting/useful thing that the company is selling. It's common for chemicals to be sold packaged with solvents to make a solution. Sometimes that solvent is just water, but if the product is not water-soluble in sufficient concentrations then other solvents may be necessary. Alcohol solutions are quite common, but for more hydrophobic chemicals it may be necessary to use more \ solvents. Because chloroform is quite a dangerous chemical for people to be exposed to...answerCdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://medicalsciences.stackexchange.com/questions/1154/what-is-the-mechanism-of-eczema |
| idcybersecurity_120748domaincybersecurityquestion_titleWhat should you do if you catch encryption ransomware mid-operation?question_bodyYou boot up your computer one day and while using it you notice that your drive is unusually busy. You check the System Monitor and notice that an unknown process is using the CPU and both reading and writing a lot to the drive. You immediately do a web search for the process name, and find that it's the name of a ransomware program. A news story also comes up, telling you about how a popular software distribution site was recently compromised and used to distribute this same ransomware. You recently installed a program from that site. Clearly, the ransomware is in the process of doing its dirty work. You have large amounts of important data on the internal drive, and no backup. There is also a substantial amount of non-important data on the drive. This question's title says \ operation, but in this example we have not yet investigated how far the ransomware might have actually gotten in its \ We can look at two situations: You want to preserve as much of your data as possible. However, paying any ransom is out of the question. If possible without risk, you want to know whether the important parts of your data are actually encrypted and overwritten. You also want to try and extract as much of your data as possible without making things worse. You would hate to pay a ransom. But certain parts of the data are so important to you that you would, ultimately, as a last resort, like to still be able to pay for a chance to get them back rather than risk losing any of them. Step by step, what is the ideal thing to do in situation 1 and 2? And why? Note: This is hypothetical. It hasn't actually happened to me. I always keep offsite backups of my important data and I've never been affected by ransomware.question_scorequestion_tagsencryptionmalwarevirusransomwaredata-recoverychoicesAPlenty 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,...BHibernate the computer If the ransomware is encrypting the files, the key it is using for encryption is somewhere in memory. It would be preferable to get a memory dump, but you are unlikely to have the appropriate hardware for that readily available. Dumping just the right process should also work, but finding out which one may not be trivial (eg. the malicious code may be running inside explorer.exe ), and we need to dump it now . Hibernating the computer is a cheap way to get a memory image¹ Then it could be mounted read-only on a clean computer...CYes encrypt, it is easy. Plus according to a 2014 Software Engineering Institute study 1 in 4 hacks was from someone inside the company with an average damage 50% higher than an external threat actor. Link to source: https://insights.sei.cmu.edu/insider-threat/2017/01/2016-us-state-of-cybercrime-highlights.html Although this is the 2017 version.DDiffie-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..."}, "answer": "B", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/120748/what-should-you-do-if-you-catch-encryption-ransomware-mid-operation"} |
| {"id": "engineering_137", "domain": "engineering", "question_title": "How does measurement uncertainty combine with tolerances?", "question_body": "Given a tolerance within which your workpiece should be manufactured, say some length should be $10\\pm1$mm. If you determine that your uncertainty in measuring this length is $0.2$mm (at 95%). How should a measurement of $9.1$mm be treated? Clearly there is a significant probability that this value will actually be outside of tolerance. Do you need to decrease you tolerance range based on the uncertainty in your measurement?", "question_score": 18, "question_tags": ["tolerance", "measurements", "statistics"], "choices": {"A": "You need to ensure that even in the worst case scenario, you still meet your measurement spec of $10 \\pm 1\\text{mm}$. If your tolerance is $0.2\\text{mm}$ of your measurement, then a measurement of $11\\text{mm}$, while may look like it meets spec, it doesn't because it could be $11.1\\text{mm}$. So the worst case that still meets your spec is a measurement of $10.9\\text{mm}$, because then with a max tolerance of $0.2\\text{mm}$, you still meet $11\\text{mm}$. With a $0.2\\text{mm}$ tolerance, your $10 \\pm 1\\text{mm}$ spec becomes $10 \\pm 0.9\\text{mm}$. How should a measurement of $9.9\\text{mm}$ be treated? So revised spec is between...BAnswering the question: What are possible types of low cost sensors I can use? There are several types of sensors that can provide millimeter level accuracy. \ is a very relative term, so you'll need to do some shopping around based on your specific budget. Optical sensors- Included here are those of the type you listed, though it's a very cheap sensor meant more to provide a \. There are also laser sensor systems which can provide millimeter level accuracy. Ultrasonic Sensors- Most ultrasonic sensors have relatively low accuracy; in the...CTrees 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...DIt is more efficient to transmit DC using about the same infrastructure. This is because of several effects: Skin effect experienced with AC. There is no skin effect with DC. Higher voltage allowed with DC for the same transmission lines. The lines have to withstand the peak voltage. With AC, that is 1.4 times higher than the RMS. With DC, the RMS and peak voltages are the same. However, the power transmitted is the current times the RMS, not peak, voltage. No radiation loss with DC. Long transmission lines act as antennas and do radiate some power. That can only...answerAdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://engineering.stackexchange.com/questions/137/how-does-measurement-uncertainty-combine-with-tolerances |
| idengineering_389domainengineeringquestion_titleThermoelectric Technology to Harvest Energy from Internal Combustions Enginesquestion_bodyBackground: In an automobile, only 1 / 3 of the potential energy in the fuel is converted into mechanical energy and significant portion of the energy is lost as heat. There have been previous attempts to recuperate this lost energy. In the early 1990's, Porsche developed automotive thermoelectric generators (ATEG) which didn't go past prototyping stage. Currently, Porsche Motorsports is testing a thermal energy harvesting system in their LeMans series Race car. In addition to Porsche's research, GM is in collaboration with Future Tech, LLC. to explore the idea of using themoelectric technology to harvest energy from internal combustion engines. Other automotive manufactures, such as BMW, are also exploring this technology. Currently the power usage in a Small car is approximately 150 W Full size truck is approximately 500 W If this technology can successfully be implemented, then components such as the radiator, water pump, and alternator could effectively have reduced workload or removed from the system, thus reducing the load to the internal combustion engine. Question: With the growing interest in green technology, are there technology barriers beside efficiency that are preventing the implementation of energy harvesting from internal combustion engines using thermoelectric technology? References: Which one must be used matched output voltage or open circuit voltage? Benefits of Thermoelectric Technology for the Automobile The Promise and Problems of Thermoelectric Generators Modeling of an Automotive ThermoElectricGenerator (ATEG) Thermoelectrics to replace car alternators and improve MPG Thermo-Electric Generator in Turbocharged Diesel Engine Kettering University researchers are working with General Dynamics to convert the unused heat energy of their propulsion systems to useful and clean energy Porsche 919 Hybrid LeMans Racer Goes After The Two Thirds of Gasoline’s Energy That’s Wasted As Heat Germans trying to replace Alternator with Thermoelectric Generators or TEGs Porsche 919 Hybrid LMP1 Le Mans prototype... Footnote The suggested duplicate is related, but still distinctly different. The order of magnitude of energy available to recover from an internal combustion engine is significantly greater than within the GPU of a video card. As such, the economies of scale are different and different solutions are therefore possible.", "question_score": 12, "question_tags": ["mechanical-engineering", "electrical-engineering", "thermodynamics"], "choices": {"A": "This is to make sure they know what the foundation is made of. For all they knew there may have been an old tunnel underneath that would have collapsed when the new building is put on top. London is built on top of an old marsh, this type of soil is very prone to sinking and uneven settling, digging down and reinforcing the foundation alleviates that. It also ensures the foundation is uniform under the building to avoid a new tower of Pisa. Given the age of the city it may have been to scour the land for potential archaeological...", "B": "As with all good things, it depends. If you can assume that your supports are totally stiff and that the loading on the shelf will be approximately uniform, then you basically have the following structure: A rectangular cross-section (such as a plank) will behave equally under positive or negative bending moment, so your objective should be to balance both. To do so, you want your main span to be $2\\sqrt2 \\approx 2.83$ times the cantilevers. This is found by calculating the cantilever required to offset half of the bending moment due to a uniform load along a simply supported beam:...", "C": "If you consider only the static forces then indeed the thickness might seem over-engineered. However, engine blocks are not statically loaded. They operate in the range of a few hundred to a few thousand rpm (Revolution Per Minute), so there are dynamic considerations here. Fatigue When materials are subjected to cyclic loading they exhibit a reduction in the allowable stresses. See below for an example: In general, BCC (body-centered cubic) materials (like steel) show a marked drop in strength (close to 50% or more depending on the steel). For these material there is stress (called the endurance limit), for which...", "D": "As with any new technology, the cost is the big driver here. In addition, these devices produce electricity which is a form of energy that a typical internal combustion automobile can only utilize for ancillary equipment. This would effectively improve fuel efficiency but the gain would be relatively minor. Engineers are generally reluctant to use expensive new technologies that are relatively untested when existing methods are sufficient for achieving the goal. In this case, most automobile manufacturers strive to produce a cost-competitive product. The people who are most concerned with fuel efficiency will tend to consider a hybrid (or all-electric)..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://engineering.stackexchange.com/questions/389/thermoelectric-technology-to-harvest-energy-from-internal-combustions-engines"} |
| {"id": "cybersecurity_136227", "domain": "cybersecurity", "question_title": "What is 'tabnabbing'?", "question_body": "Wikipedia is not very explicit on this, The exploit employs scripts to rewrite a page of average interest with an impersonation of a well-known website, when left unattended for some time. What is 'tabnabbing', how does one do it?", "question_score": 139, "question_tags": ["web-browser", "exploit"], "choices": {"A": "Tabnabbing is a phishing technique where a malicious web site changes its looks while the tab is inactive in order to trick the user into entering credentials. This page is simultaneously a description and a demo. When you visit it, it shows a description of what tabnabbing is. When you then click another tab, it changes the tabs favicon and title to look like Gmail. Later, when the user wants to read her mail she goes to this tab thinking it is Gmail and enters her credentials. Edit: In this animation, you see that while I am reading SE, the...", "B": "/** 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...CHere 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....", "D": "Note: 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..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/136227/what-is-tabnabbing"} |
| {"id": "law_28878", "domain": "law", "question_title": "How is it legal for a hospital to put two patients together in the same room in the US?", "question_body": "In the United States we have HIPAA regulations in place to (among other things) prevent healthcare providers, insurance providers, and any other entity that handles medical information from leaking patient information. From my experience with various HIPAA certifications, it seems pretty stringent. No leak is too small. So how is it legal for a healthcare provider to pair up two or more patients in a single room, when they are under inpatient care for several days? I ask this because I recently stayed in the hospital for 2 nights. Never spoke one word to the old guy I was roommates with. When I was discharged, I knew the following details about him: his full name his DOB his medical record # (if I felt like writing it down) some of his prior health history (he fought, and won, a battle with colon cancer) the reason he was in the hospital now (hasn't pooped in over a week) current health concerns (doctors wanted to do a biopsy to make sure the colon cancer wasn't back) These were all details given verbally by one or many different doctors or nurses over the course of my 3 days, 2 nights in the hospital. Of course, I'm sure he knows a lot of my details now, too, for the same reason - we were inpatient roommates in the hospital and the doctors used no discretion when discussing my condition. So how is this legal?question_scorequestion_tagsunited-stateshealthhipaachoicesAAs a short answer, guidance from the Department of Health and Human Services has clarified that HIPAA does not require hospitals to provide separate rooms. As a longer answer, HIPAA is very deeply misunderstood. It does not prohibit \ patient information; it prohibits unreasonable and unpermitted disclosures of protected health information (PHI). Among the PHI disclosures that are permitted are uses that are for the purpose of delivering medical treatment . Of course, the covered entity (in this case, the hospital) is required to take reasonable measures to safeguard that information. One of the areas that trips people up is...BYes. Let's assume this anecdote takes place while Gates was CEO. Bill Gates doesn't own all of Microsoft, and as an officer of the company, he owes a fiduciary duty to act in the best interests of the company and its shareholders as a whole. Taking the company's property for personal use breaches that fiduciary duty . Now, in this particular hypothetical, Gates might have a decent argument that, as a public figure who can afford any piece of technology he desires, him being seen using a Microsoft Surface actually is acting in the company's best interests. But that wouldn't...", "C": "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.", "D": "Maybe, Hence the Lawsuits In the absence of clear statute law these all circle around tort law. For the scooter companies, trespass to chattels , and for the affected landowners (who hire the removalists) trespass to land and nuisance seem applicable. In essence, I can’t take your stuff (trespass to chattels) but you can’t leave your stuff on my property (trespass to land) or impeding access to it (nuisance). If you do, I am entitled to the reasonable costs of dealing with it. Note that, as owner, you remain responsible for you stuff even if you rented it to someone..."}, "answer": "A", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://law.stackexchange.com/questions/28878/how-is-it-legal-for-a-hospital-to-put-two-patients-together-in-the-same-room-in"} |
| {"id": "law_77318", "domain": "law", "question_title": "Is "My Cousin Vinny" dismissal actually possible?", "question_body": "In one of my favorite films of all time, 1992's My Cousin Vinny , at the end of the trial when it's abundantly clear the prosecution will lose, at least that's the conclusion the filmmakers want the audience to surmise, Trotter pronounces... \ And . . . as per Hollywood, everyone rejoices. I am fully aware movies are movies and not real life and the film is a pure work of fiction . Since I have no direct connection to anyone in the legal field, I thought I would ask some knowledgeable users about something that's always had me wondering. (Just saw the film again tonight.) I am aware that an acquittal means one can not be tried for the same crime again (double jeopardy). But a dismissal may not provide such protection. Acquittal meaning the prosecution could not prove the defendant committed the crime, whereas dismissal may allow for retrial. So, is there a legal basis for Trotter dismissing a case merely because he'll clearly lose? Common sense leans towards thinking this may be \ and it could not actually happen at the final stages of a trial so close to jury deliberation. But.. again, I don't really know. I think this is fluff because if it were actually possible, why wouldn't all prosecutors merely drop charges if they fear they are going to lose, then go build a better case and retry the defendant. Are the requirement for an actual dismissal more stringent than the film would have the audience believe or in this aspect, is the film pretty close to reality? (I am referencing U.S. criminal law in general)question_scorequestion_tagsunited-statestriallaw-in-fictiondismissalchoicesAYou 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...BYes, it's illegal You are missing something terribly important: The package might not be your property [yet]. In any way, it is not in your possession, while it is in the hands of the postal service! The contents of the package started fully owned by the sender and were entrusted to the postal service to deliver it. This entrustment is (contractually) defined as the time it is handed to the postal service, but the postal service does not gain any ownership. They do however have insurance on the parcel (to some degree), as they are liable for the loss of...", "C": "Public nudity is illegal in New York as it is in almost every U.S. jurisdiction. And, if the police had arrested the nude protesters, the arrests probably would have been upheld in court, because a ban on nudity in public would probably be viewed as a time, place and manner restriction on the freedom of speech which is constitutionally valid. For example, the Ninth U.S. Circuit Court of Appeals recently upheld San Francisco’s public nudity ordinance in Taub v. City and County of San Francisco (2017). As the court in that case explains in a factually very similar case: Public...", "D": "This is entirely possible in a number of different motions that could have been made. At this point, Vinny had destroyed the Prosecutor's eyewitnesses by showing they had issues that called their testimony into question (The first has a timeline that doesn't line up with events, the second has poor vision and her prescription glasses were not doing their job, and the third had many obstructions blocking his view of the scene). His first witness tears apart the \"expert\" witness, who was only there to testify that the tires were the same brand (albeit, a popular brand at the time......"}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://law.stackexchange.com/questions/77318/is-my-cousin-vinny-dismissal-actually-possible"} |
| {"id": "cybersecurity_161071", "domain": "cybersecurity", "question_title": "How did "tech-supportcenter" phishers trick Google?", "question_body": "Related: Is the Web browser status bar always trustable? How can Google search change the location in a URL tooltip? I've always thought you can \ over a link to see where it really goes, until today. A coworker (working from home) searched for \ in Google Search (using edge). He clicked the top result, which happened to be an ad, and was redirected to a phishing page posing as Microsoft trying to get him to call a \ number. I got the same results on a different computer, on a different network. When I hover over the link, both links show \ at the bottom, but clicking the ad link takes you to a malware page and the second link (first search result after the ad) takes you to the real Target.com page. If displaying the wrong URL in the tooltip requires Javascript, how did tech-supportcenter get their Javascript onto the Google search results page? UPDATE Here's the same results in a virtual machine with a fresh install of Windows, on a different network: Here's the source for the URL. It looks like it does include the \ Javascript as the first question I linked to mentioned. Does Google allow advertisers to display any URL they want for the tooltip?question_scorequestion_tagsweb-browsergoogleurl-redirectionchoicesAGoogle Authenticator supports both the HOTP and TOTP algorithms for generating one-time passwords. With HOTP, the server and client share a secret value and a counter, which are used to compute a one time password independently on both sides. Whenever a password is generated and used, the counter is incremented on both sides, allowing the server and client to remain in sync. TOTP essentially uses the same algorithm as HOTP with one major difference. The counter used in TOTP is replaced by the current time. The client and server remain in sync as long as the system times remain the...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...CIs 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...", "D": "If displaying the wrong URL in the tooltip requires Javascript, how did tech-supportcenter get their Javascript onto the Google search results page? The scammers did not manage to inject JS into the search results. That would be a cross-site scripting attack with much different security implications than misleading advertisement. Rather, the displayed target URL of a Google ad is not reliable and may conceal the actual destination as well as a chain of cross-domain redirects. The scammers possibly compromised a third-party advertiser and hijacked their redirects to lead you to the scam site. Masking link targets is a deliberate feature..."}, "answer": "D", "distractor_source": "same_domain_answer_pool", "source": "stackexchange", "license": "CC-BY-SA 4.0", "url": "https://security.stackexchange.com/questions/161071/how-did-tech-supportcenter-phishers-trick-google"} |
| {"id": "medicine_365", "domain": "medicine", "question_title": "How can I prevent a cold from spreading to the people around me?", "question_body": "I have to attend classes at the university, band rehearsals, I live with my family, so I come close with many people during the day. I have to meet most of these people on a daily basis, even when I have the (common) cold. How can I prevent it from spreading to the people around me?", "question_score": 31, "question_tags": ["common-cold"], "choices": {"A": "This 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...BThere are lots of things you can do to be a responsible and considerate individual. Props for even asking this question! Cover your cough to prevent air-borne transmission with the inner part of your arm or your shoulder- whichever come into contact with other people less. Wash your hands with water and soap regularly for at least 20 seconds. That means before every meal and bathroom trip at least! Try as hot as you can bare so that it kills the bacteria. Carry hand sanitizer or some antibiotic wipes in case you don't have access to a sink or water....", "C": "Let's get a few things out of the way... Sex is normal ( 1 ). Sexual desire and arousal are normal ( 2 ). Asexuality is normal ( 3 ). Masturbation is normal ( 4 ),( 5 ). There is no problem whatsoever with these three things, although everyone blushes when they talk about them. Is Masturbation healthy? Downsides : Masturbation is not risk free. It is about as dangerous as chewing or walking ( 6 ). Some side effects are irritated skin and ruptured penis, but only if you really, really, really overdo it (Once or twice a day...DThere 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,...answerBdistractor_sourcesame_domain_answer_poolsourcestackexchangelicenseCC-BY-SA 4.0urlhttps://medicalsciences.stackexchange.com/questions/365/how-can-i-prevent-a-cold-from-spreading-to-the-people-around-me |
| |