text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
More than half US aid goes to Israel and its gov't ignores our warnings on settlements -- Kerry.
0non-cybersec
Reddit
Cover-up of an old monstrosity. Cover up done by Joice (Kato) Wang at Heirloom Tattoo in Manville, NJ.
0non-cybersec
Reddit
How to set up a rebase in Git Bash on Windows. <p>I'm trying to following the instructions on <a href="https://help.github.com/articles/using-git-rebase-on-the-command-line/" rel="noreferrer">https://help.github.com/articles/using-git-rebase-on-the-command-line/</a> for interactively rebasing from my initial commit (More specifically, I'm trying to remove all the <code>bin</code> and <code>obj</code> folders from the history). So once I type in </p> <pre><code>git rebase -i --root </code></pre> <p>I get the following screen as expected, but then I can't figure out how to change the first one to <code>edit</code>. Like I can't figure out which button on the keyboard to click. Sorry if this is a stupid question.</p> <p><a href="https://i.stack.imgur.com/PmeFP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PmeFP.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
Can you see out of extruded eyeball?. Was going thru emt class and we are on the eyeball chapter. Was wondering if you can see out of an extruded eyeball. Google yielded no results for me
0non-cybersec
Reddit
Since sound is a mechanical wave, is it harder to hear the higher you get in the atmosphere?.
0non-cybersec
Reddit
Distribute load evenly across many cycles. <p>I am looking for a solution that is fast and still readable. I have to do this in C but the code will be static in the end, which mean I could use any tool to generate it.</p> <p>I have a task which runs cyclically and calls different functions also cyclically</p> <blockquote> <p>Main functions cycle is 1.</p> <p>Function a has also cycle 1. So the main function calls it every time</p> <p>Function b has cycle 2. Main function calls it every second cycle.</p> <p>Function c has cycle 2.</p> <p>Function d has cycle 4.</p> <p>Function e has cycle 4.</p> <p>Function f has cycle 4.</p> <p>Function g has cycle 4.</p> <p>... many more ....</p> <p>Function X has cycle 500.</p> </blockquote> <p>If we have many functions that run in the same cycle we try to distribute them.<br /> So for function b we would call it in one cycle and c in the other. Distributing the load evenly.<br /> Similar for d to g. Each one gets called in a different cycle.</p> <p>My current implementation is very bad.<br /> Every developer who had to add their task to main function calculates their on modulo and calls when needed. This leads to a very unreadable code.</p> <p>I was thinking of doing something like:</p> <pre><code>uint32 mod4 = timer % 4; bool fourth_1 = mod4 == 0; bool fourth_2 = mod4 == 1; bool fourth_3 = mod4 == 2; bool fourth_4 = mod4 == 3; bool second_1 = fourth_1 || fourth_3; bool second_2 = fourth_2 || fourth_4; /* and so on*/ </code></pre> <p>But this seems cumbersome and too error prone specially as the highest cycle time is too high.</p> <p>How to approach this kind of problem?</p> <p>-Edit-</p> <p>As asked i have compiled some information about the number of functions that i have:</p> <ul> <li>32 functions cycle 1</li> <li>9 functions cycle 2</li> <li>14 functions cycle 4</li> <li>3 functions cycle 8</li> <li>3 functions cycle 32</li> <li>3 functions cycle 40</li> <li>2 functions cycle 200</li> <li>2 functions cycle 400</li> </ul>
0non-cybersec
Stackexchange
orthonormal vectors in generalized eigenvalue problem. <p>Consider the generalized eigenvalue problem <span class="math-container">$$A\textbf{v}=\lambda B \textbf{v},$$</span> where <span class="math-container">$A$</span> is assumed to be symmetric, nonsingular with distinct eigenvalues and <span class="math-container">$B$</span> symmetric and positive definite and let <span class="math-container">$(\lambda_i,\textbf{v}_i)$</span> be the <span class="math-container">$i$</span>-th eigenpair of the problem. I would like to show that the <span class="math-container">$\textbf{v}_i$</span> can be chosen such that <span class="math-container">$$\textbf{v}_i^TB\textbf{v}_j=\delta_{ij}.$$</span> I have managed to show that for <span class="math-container">$i \neq j$</span> the vectors <span class="math-container">$\textbf{v}_i$</span> and <span class="math-container">$\textbf{v}_j$</span> are orthogonal with respect to <span class="math-container">$B$</span> (i.e. <span class="math-container">$\textbf{v}_i^TB\textbf{v}_j= 0$</span> for <span class="math-container">$i \neq j$</span>), but I am not sure how to show that in the case <span class="math-container">$i=j$</span> I can have <span class="math-container">$$\textbf{v}_i^TB\textbf{v}_i=1.$$</span></p>
0non-cybersec
Stackexchange
That was the flowchart, yes.
0non-cybersec
Reddit
Watching Hitchcock trailer, noticed what might be the most brilliant marketing scheme ever devised....
0non-cybersec
Reddit
Bond 25’ Gets Cary Joji Fukunaga As New Director For 007 Daniel Craig.
0non-cybersec
Reddit
Is this an alternative answer to Spivak&#39;s question? (Chapter 1 Calculus). <p>The question is</p> <p>Prove that if $0 \leq x &lt; y$ then $x^n &lt; y^n$, $n = 1, 2, 3, \ldots $</p> <p>Spivak's solution was using (if $0 \leq x &lt; y$ then $y^2 &lt; x^2$) and generalising it for all n. Spivak does acknowledge the fact that the proof isn't rigorous </p> <p>My method was: as $0 \leq x$, I used cases </p> <p>First taking the case $x = 0$. We have $x= 0$ and $0 &lt; y$, thus any power of zero will be greater than any power of $y$.</p> <p>Then taking the case $0 &lt; x &lt; y$,</p> <p>I use the fact that $(y - x)$ is in p.</p> <p>Now, $y^n - x^n = (y - x) (y^{(n-1)} + y^{(n-2)}x \cdots + yx^{(n-2)} + x^{(n-1)})$</p> <p>$(y - x)$ is positive.</p> <p>The other term in the product is also positive due to closure under addition because we're adding only positive terms to positive terms.</p> <p>Now as both the terms are positive, due to closure under multiplication, $y^n -x^n$ is also positive. </p> <p>i.e, $y^n - x^n$ is in P. Thus $y^n &gt; x^n$.</p> <p>I'm confident I have used only those results that I have proved during earlier exercises and not assuming anything. Is my method consistent or flawed? Thank you very much for your time. :-)</p>
0non-cybersec
Stackexchange
How to show icon Googsystray?. <p>I have upgrade my ubuntu from maverick to natty, and my problem is Googlesystray not show in panel. but the app is work. how to show icon notification in unity panel?</p>
0non-cybersec
Stackexchange
Kotlin addTextChangeListener lambda?. <p>How do you build a lambda expression for the EditText addTextChangeListener in Kotlin? Below gives an error:</p> <pre><code>passwordEditText.addTextChangedListener { charSequence -&gt; try { password = charSequence.toString() } catch (error: Throwable) { raise(error) } } </code></pre>
0non-cybersec
Stackexchange
Question about ready to install section. I'm kind of doubting here, do "free play days" games automatically appear in "ready to install" section? I think I might have bought R6 when it came out, but also having it on ps4, I'm not sure if I got it on both consoles back in December. I sadly have a bad impulsive purchase history and a lot of the games I buy I forget to install since I jump on bf4 straight away when I turn my console on. If anyone can clear that out, I owe you a big thank you.
0non-cybersec
Reddit
Ethernet works from laptop, but not docking station. <p>I couldn't get my USB 3.0 ProDock Ethernet port to connect to the Internet for my connected Windows 10 ThinkPad. However, plugging into my native Ethernet port on the back of the laptop worked.</p> <p>I only use one port at at time, so despite warnings from Windows, I gave them both the same static IP address. But then, the dock quit working and it seems that I've tried every combination of setting IP addresses versus "Automatic" settings.</p> <p>When I run <code>ipconfig</code>, I see that the docking station Ethernet adapter gets an autoconfigured IP address, even when I try to explicitly assign a Static IP address.</p> <p>(The <a href="https://superuser.com/questions/594022">post here</a> might be related, but it didn't mention the need for setting a static IP address.)</p>
0non-cybersec
Stackexchange
So, what character are you LEAST excited about ?. and why?
0non-cybersec
Reddit
How to safely try KDE?. <p>There's a way to safely try KDE on top of an Ubuntu installation, keeping the possibility to revert the changes in case I dislike how it runs?</p>
0non-cybersec
Stackexchange
Disable auto focus in dialog- modal in Angular 2/ material. <p>I'm using dialog from angular material-2.</p> <p>The problem is: I can't disable auto focus when modal-dialog is opened in iPhone or tablet especially. In iOS, it automatically focuses the first input field in the dialog!</p> <p>I tried with tab index and with auto focus in other input-field it doesn't work</p> <p>I'm using Angular 2 for my code, in my dialog I'm using form-control. I tried to use <code>markasuntouched</code> <code>afterviewInit</code>, but I still have the same problem !! </p>
0non-cybersec
Stackexchange
using perl or python to replace arabic character &quot;ا&quot; with &quot;a&quot; in one word, but &quot;ә&quot; in a different word. <p>I need to change a plain text UTF8 document from a R to L language to a Latin language. It isn't as easy as a character-character transliteration unfortunately.<br> For example, the "a" in the R to L language (ا) can be either "a" or "ә" depending on the word composition.</p> <p>In words with a g, k, e, or hamza (گ،ك،ە، ء)<br> I need to change all the a, o, i, u (ا،و،ى،ۇ) to Latin ә, ѳ, i, ü (called "soft" vowels).<br> eg. سالەم becomes sәlêm, ءۇي becomes üy, سوزمەن becomes sѳzmên</p> <p>In words without a g, k, e, or hamza (گ،ك،ە، ء)<br> the a, o, i, u change to Latin characters, a, o, i, u (called "hard" vowels).<br> eg. الما becomes alma, ۇل becomes ul, ورتا becomes orta.</p> <p>In essence,<br> the g, k, e, or hamza act as a pronounciation guide in the arabic script.<br> In Latin, then I need two different sets of vowels depending on the original word in the arabic script.</p> <p>I was thinking I might need to do the "soft" vowel words as step one, then do a separate Find and Replace on the rest of the document. BUT, how do I conduct a Find and Replace like this anyway with perl, or python?</p> <p>Here is a unicode example: \U+0633\U+0627\U+0644\U+06D5\U+0645 \U+0648\U+0631\U+062A\U+0627 \U+0674\U+06C7\U+064A \U+0633\U+0648\U+0632\U+0645\U+06D5\U+0645 \U+0627\U+0644\U+0645\U+0627 \U+06C7\U+0644 \U+0645\U+06D5\U+0646\U+0649\U+06AD \U+0627\U+062A\U+0649\U+0645 \U+0634\U+0627\U+0644\U+0642\U+0627\U+0631.</p> <p>It should come out looking like: "sәlêm orta üy sѳzmên alma ul mêning atim xalқar".(NOTE: the letter ڭ, which is U+06AD actually ends up as two letters, n+g, to make an "-ng" sound). It shouldn't look like "salêm orta uy sozmên alma ul mêning atim xalқar", nor "sәlêm ѳrtә üy sѳzmên әlmә ül mêning әtim xәlқәr". </p> <p>Much thanks to any help.</p>
0non-cybersec
Stackexchange
How do you get access to environment variables via Elasticbeanstalk configuration files (using Docker)?. <p>For example, if I wish to mount a particular volume that is defined by an environment variable. </p>
0non-cybersec
Stackexchange
Can only boot notebook with disabled driver signature enforcement after crash. <p>I am running Windows 10 Enterprise Edition on an Acer notebook. Yesterday there was a short power outage, for about 5 seconds, which crashed my computer. After that I couldn't boot normally into Windows anymore. The computer just stays stuck at the Acer logo, even when trying to boot in safe mode.</p> <p>So, I tried various things from the Windows Automatic Repair menu and the console I could access through that. But nothing I did there helped.</p> <p>After all that I tried out all the options in the Startup Settings and with #7 Disable driver signature enforcement I can actually get into Windows again. When I boot like that, it seems to boot rather slowly though.</p> <p>I ran sigverif and that shows 2 files that haven't been signed.</p> <ul> <li>basicrenderer.sys version: 10.0.16299.19</li> <li>bthport.sys version: 10.0.16299.64 </li> </ul> <p><br></p> <ul> <li>How can I fix that and sign these drivers? I don't want to run the computer with that permanently disabled.</li> <li>And are these 2 files not being signed even the actual reason for me not being able to boot Windows? </li> <li>Is it possible that that happened when my computer suddenly crashed?</li> </ul> <p><br></p> <p>I also ran sfc /scannow and that returned:</p> <p>Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log.</p> <p>I was then looking into CBS.log to find that, but that file has 37492 lines and I don't know what to search for.</p> <ul> <li>Is that also related to the startup issue?</li> <li>How can I find which corrupted files it hasn't been able to fix?</li> </ul> <p><br></p> <p>I also had a look into SRTlog and it says there: - Number of root causes = 1 - all the error codes are 0x0 - Startup Repair has tried several times but still cannot determine the cause of the problem.</p> <ul> <li>What is that telling me about the problem?</li> </ul>
0non-cybersec
Stackexchange
Writing propositions using connectives and quantifiers. <p>So I have this statement that says:</p> <p>For every two real numbers $x$ and $y$ with $x &lt; y$, there is a real number with the property $P$ between $x$ and $y$.</p> <p>Let $P(x)$ be the statement that says that a real number $x$ has some property $P$.</p> <p>I have to write this using connectives and quantifiers and construct a negation for this proposition.</p> <p>I've started by using the statements:</p> <p>$(∀x \in R)(∀y \in R)(x &lt; y)(x &lt; P(x) &lt; y)$</p> <p>Something along the lines of this although I know this is incorrect.</p>
0non-cybersec
Stackexchange
Hells yeah! Samsung IR sensor can suck it.. So, I dunno where else I can post this but I feel damn proud I found a way to tell the "man" to shove it today. I have a Samsung CLX-2160 Colour Laser Printer. Now, to those unfamiliar to Samsung laser printers, most modern models have this thing called a Waste Toner Tank. Basically, it's a little plastic bin that slots in along side all the toners that collects excess toner powder during the printing process. What's supposed to happen is that whenever the Waste Toner Tank is full, you are supposed to replace it ($12-$15). Problem was, the tank wasn't full. Not even close. And the way the printer detects if the tank is full is by having an IR LED shine through a clear section of the tank and on the opposite side is a IR sensor. If the sensor detects IR light, then all is well. So, the key is to clean the clear section of the tank to ensure it remains clear. Problem is I washed and cleaned it as much as I could and it was still giving me that error. And the printer refuses to work when this error shows up. I don't want to pay $15 to get a replacement, only to have it screw up a few months later. So, I took the printer apart. Found where the IR sensor is and solder a short circuit between the two leads of the sensor. Now, regardless of what happens, this error will never happen again. I've had other Samsung printers that also had this problem. Samsung really needs to get this fixed. It is a really stupid design and they purposely make it impossible to clean the tank throughly so you have to shell out money every few months. Fucking Samsung. TLDR: I "hacked" a fix for my Samsung laser printer that is obviously designed to make you spend more. EDIT: Images and instructions here: http://imgur.com/a/w4IA7
0non-cybersec
Reddit
Minecraft crashing after PS FW2.55. Just after updating the system to fw2.55 minecraft crashes randomly after only a few seconds of gaming. Anyone else experiencing this behavior? Edit: hm, this happens only when I farm Sand.
0non-cybersec
Reddit
How to solve $|x-5|=|2x+6|-1$?. <p>$|x-5|=|2x+6|-1$. </p> <p>The answer is $0$ or $-12$, but how would I solve it by algebraically solving it as opposed to sketching a graph?</p> <p>$|x-5|=|2x+6|-1\\ (|x-5|)^2=(|2x+6|-1)^2\\ ...\\ 9x^4+204x^3+1188x^2+720x=0?$</p>
0non-cybersec
Stackexchange
There was a kitten at work, It looks like it’s plotting something..
0non-cybersec
Reddit
Sign of a series. <p>Someone could compute the sign of the following series ?</p> <p>\begin{equation} \underset{k &gt; 0}{\sum} \frac{\sin (kx)}{k} \end{equation}</p> <p>I expect that is the same as the first term $\sin x$ because of the pseudo terms-alternate property of the serie, but it's not clear. If you have an idea, it would be nice. </p> <p>Thanx for helping.</p>
0non-cybersec
Stackexchange
Wordpress loop show limit posts. <p>This is the basic loop</p> <p><code>&lt;?php while (have_posts()) : the_post(); ?&gt;</code></p> <p>I want to show 20 posts on the search results page. I know we can change the value on admin panel options but it will change all i.e. index page and archive page etc. I need to have them differently.</p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Which is the kernel build directory (4.4.0-17134-Microsoft build)?. <p>How can I fix the following issue (4.4.0-17134-Microsoft build)?</p> <pre><code>checking for Linux kernel build in /lib/modules/4.4.0-17134-Microsoft/build... not found checking for Linux kernel build in /usr/src/linux-4.4.0-17134-Microsoft-obj... not found checking for Linux kernel build in /usr/src/linux-4.4.0-17134-Microsoft... not found checking for Linux kernel build in /usr/src/linux-headers-4.4.0-17134-Microsoft... not found checking for Linux kernel build in /usr/src/kernels/4.4.0-17134-Microsoft... not found **configure: error: Could not find a directory containing a Linux kernel 4.4.0-17134-Microsoft build. Perhaps try --with-linux=FULL_PATH_TO_KERNEL_BUILD** </code></pre>
0non-cybersec
Stackexchange
Ancient (and awesome-looking) extinct squash revived..
0non-cybersec
Reddit
Apollo 1550 Highly Safer Security lock system.
1cybersec
Reddit
In the midst of all the negativity in the world, here’s our little guy showing off his new teeth.
0non-cybersec
Reddit
TIL that the Tardigrade is the hardest thing to kill on (or off) planet earth..
0non-cybersec
Reddit
Differentiability of a defined corner of a function?. <p>This is my first question so I apologise in advance if it doesn't fit the format that is expected, and I would appreciate any advice on how to ask questions properly.</p> <p>I am given a function;</p> <p><a href="https://i.stack.imgur.com/gcd71.png" rel="nofollow noreferrer">g(x)</a></p> <p>I am then asked to do the following:</p> <p><a href="https://i.stack.imgur.com/ahYhW.png" rel="nofollow noreferrer">Question.</a></p> <p>The problem is that it really doesn't seem to me to be differentiable at $0$. $g(x)$ is undefined at $x=0$. Using the Squeezing Theorem I determined that the limit of $g(x)$ exists at $0$. The function $g(x)$ is even, and is therefore symmetric across the y axis. This implies that as both sides of the function approach $(0,0)$ they both make the same angle with the x axis. $h(x)$ fills the discontinuity, but surely that could not make it differentiable just because it is continuous? The opposite sides of the y-axis must meet at a corner, and corners cannot have tangents, right? Also, I'm a first year undergraduate, so an appropriately complex answer would be very much appreciated. Thank You!</p>
0non-cybersec
Stackexchange
[REQUEST] Life Hacks for People Moving Across the US. Essentially, what kinds of things made the move easier that someone who has never moved cross-country might not think of doing? Thanks in advance!
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Sexually Transmitted Magical Diseases?. A thought just occurred to me, but has anyone ever considered making some magical diseases sexually transmittable?
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Inline-level element being forced to a new line in flexbox. <p>How come the <code>&lt;strong&gt;</code> element, which is an inline element, is forced to a new line? </p> <p>This setup has a flex within a flex, nothing particularly crazy I wouldn't have thought. So perhaps it's just my misunderstanding of how flexbox works.</p> <p>Take a look at: <a href="http://codepen.io/leads/pen/mEYOay" rel="noreferrer">http://codepen.io/leads/pen/mEYOay</a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>* { margin: 0; padding: 0; } .container { display: flex; border: 1px solid red; height: 200px; max-width: 600px } .left { flex: 1; background: rgba(0, 0, 0, .3); } .middle { flex: 0 0 200px; background: rgba(0, 0, 0, .4); text-align: center; display: flex; flex-direction: column; } .middle button { flex: 0 0 50px; } .middle p { display: flex; flex: 1; flex-direction: column; justify-content: center; } strong { background: red; } .right { text-align: center; flex: 0 0 100px; background: rgba(0, 0, 0, .5); }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt; &lt;div class="left"&gt; &lt;p&gt;some content in the top left&lt;/p&gt; &lt;/div&gt; &lt;div class="middle"&gt; &lt;p&gt;Lorem ipsum &lt;strong&gt;dolor&lt;/strong&gt; sit amet, consectetur adipisicing elit. &lt;/p&gt; &lt;button&gt;CTA&lt;/button&gt; &lt;/div&gt; &lt;div class="right"&gt; &lt;p&gt;CTA&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p>
0non-cybersec
Stackexchange
‘Mrs. Doubtfire’ at 25: Inside the Making of the Robin Williams Classic.
0non-cybersec
Reddit
What are some examples of journals that will accept undergraduate student research?. <p>I am currently doing a research project with a professor and 3 other students in an area that is usually seen as a "recreational" math topic; that of change-ringing and its relation to group theory. The papers regarding change-ringing that I have managed to find on JSTOR are generally of an expository nature, and since we do have one or two somewhat original results (we were trying to see what subgroups of Sn can be enumerated using transformations allowed under the restrictions of change-ringing), I think we might have something at least worth trying to submit to a small journal. </p> <p>Does anyone have any recommendations?</p>
0non-cybersec
Stackexchange
Took a while to see it but now just keep it around for entertainment..
0non-cybersec
Reddit
Girl in glasses.
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to make a simple modal pop up form using jquery and html?. <p>I already read the tutorials on jquery but I'm having a hard time understanding it is there someone who can teach me more easier, please I want to happen is that when I press one of my buttons its value will display in #valueFromMyButton and when the modal pop out i can type a text and after i click ok the text that I type will be placed on #valueFromMyModal </p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;/head&gt; &lt;body&gt; &lt;input id="btn1" type="button" value="1"&gt; &lt;input id="btn2" type="button" value="2"&gt; &lt;input id="btn3"type="button" value="3"&gt; &lt;input id="valueFromMyModal" type="text"&gt; &lt;!--How to make this pop up modal form--&gt; &lt;div id="myform"&gt; &lt;form&gt; &lt;label id="valueFromMyButton"&gt;&lt;/label&gt; &lt;input id="name" type="text"&gt; &lt;input id="btnOK" type="button" value="Ok"&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
0non-cybersec
Stackexchange
Moving grub from one disk to another. <p>I have 13.04 installed on my hard drive in my laptop, I now also have 13.10 on an SSD in the same machine.</p> <p>At the moment to boot 13.10 I have to set in bios to boot my hard drive (which is not the disk 13.10 is on) which I guess launches grub from my hd and then I can select to launch Ubuntu (which launches 13.10) or Ubuntu 13.04 - both work.</p> <p>My question is - how do I move grub from the hd to the SSD so in future if my hd fails my instal won't? I don't really need the 13.04 install to keep working although it would be handy.</p> <p>Many thanks.</p>
0non-cybersec
Stackexchange
Logout: GET or POST?. <p><strong>This question is not about when to use GET or POST in general;</strong> it is about which is the recommended one for handling logging out of a web application. I have found plenty of information on the differences between GET and POST in the general sense, but I did not find a definite answer for this particular scenario.</p> <p>As a pragmatist, I'm inclined to use GET, because implementing it is way simpler than POST; just drop a simple link and you're done. This seems to be case with the vast majority of websites I can think of, at least from the top of my head. Even Stack Overflow handles logging out with GET.</p> <p>The thing making me hesitate is the (albeit old) argument that some web accelerators/proxies pre-cache pages by going and retrieving every link they find in the page, so the user gets a faster response when she clicks on them. I'm not sure if this still applies, but if this was the case, then in theory a user with one of these accelerators would get kicked out of the application as soon as she logs in, because her accelerator would find and retrieve the logout link even if she never clicked on it.</p> <p>Everything I have read so far suggest that <em>POST should be used for "destructive actions", whereas actions that do not alter the internal state of the application -like querying and such- should be handled with GET</em>. Based on this, the real question here is:</p> <p>Is logging out of an application considered a destructive action/does it alter the internal state of the application?</p>
0non-cybersec
Stackexchange
Protect the Children.
0non-cybersec
Reddit
Can we say bye-bye to common cold in this lifetime? Asks Richard Dawkins..
0non-cybersec
Reddit
Maintain Scroll Position of large HTML page when client returns. <p>I'm serving very long html pages (short ebooks) </p> <p>When client returns, too much of a hassle to try to find exact place where left off due to long html page.</p> <p>Is there a simple way to maintain the scroll position automatically so that next time the client returns to the page the page scrolls down automatically to where he left off. this needs to be transparent, i.e. no clicking to "store" scroll position.</p>
0non-cybersec
Stackexchange
Relabelling reference with link. <p>Sorry if this is a repeat question, I have found it really difficult to even google what I am trying to do! As such I have to admit to not really having tried much myself as I dont even really know where to start.</p> <p>In my text I make frequent reference to a bibtex item and as such have taken the standard procedure of writing &quot;\cite{someone2020} (hereafter paper1)&quot;. Now I wish to do two things:</p> <ol> <li><p>I would like it if I could have the text hyperlink every time I have &quot;paper1&quot; as if it was a regular bib item. That is it would jump to the relevant bib item if clicked on.</p> </li> <li><p>I would also like it if this could be put into a citation &quot;group&quot;. So like \ref{someone2020, bob, betty, tom}&quot; would give &quot;paper1, Bob 1961, betty 2030, tom et al. 1945&quot;.</p> </li> </ol> <p>Hopefully this makes sense.</p>
0non-cybersec
Stackexchange
It seems wrong by looking both right and wrong, but it's right..
0non-cybersec
Reddit
Coffeescript equivalent of python &#39;pass&#39; statement. <p>In Python one can use the 'pass' statement to do nothing:</p> <pre><code>if true: pass </code></pre> <p>Is there a similar statement in coffeescript? I'm trying to do a switch statement and do nothing if certain conditions are met.</p> <pre><code>switch variable: when 5 then pass else do variable </code></pre>
0non-cybersec
Stackexchange
MRW my doctoral thesis passes 400 pages in total length and doesn't show any sign of stopping..
0non-cybersec
Reddit
How to keep a shared web hosting server secure?. <p>What are the ways of keeping a shared LAMP server secure, assuming SSH access is available for every user? </p> <p>Edit: I am mainly thinking of securing the server from the users themselves and between themselves.</p>
0non-cybersec
Stackexchange
Git SSH Not Working after installing new Dev Shell. <p>I have carefully followed the document <a href="https://dev-shell.gaiacloud.jpmchase.net/#/index#intellijconfiguration" rel="nofollow noreferrer">go/dev-shell</a> to install the new dev shell and Git Setup on LVDI3. When I run the ds sync, I got the error message:</p> <pre><code>[email protected]: Permission denied (publickey). fatal: Could not read from remote repository. </code></pre> <p>I run the following two commands to check the configuration.</p> <pre><code>$ ssh-add -l error fetching identities: agent refused operation </code></pre> <pre><code>$ ssh -vT [email protected] OpenSSH_8.2p1, OpenSSL 1.1.1e 17 Mar 2020 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to bitbucketdc-cluster03-ssh.jpmchase.net [147.107.136.129] port 22. debug1: Connection established. debug1: identity file /c/Users/v684780/.ssh/id_rsa type 0 debug1: identity file /c/Users/v684780/.ssh/id_rsa-cert type -1 debug1: identity file /c/Users/v684780/.ssh/id_dsa type -1 debug1: identity file /c/Users/v684780/.ssh/id_dsa-cert type -1 debug1: identity file /c/Users/v684780/.ssh/id_ecdsa type -1 debug1: identity file /c/Users/v684780/.ssh/id_ecdsa-cert type -1 debug1: identity file /c/Users/v684780/.ssh/id_ecdsa_sk type -1 debug1: identity file /c/Users/v684780/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /c/Users/v684780/.ssh/id_ed25519 type -1 debug1: identity file /c/Users/v684780/.ssh/id_ed25519-cert type -1 debug1: identity file /c/Users/v684780/.ssh/id_ed25519_sk type -1 debug1: identity file /c/Users/v684780/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /c/Users/v684780/.ssh/id_xmss type -1 debug1: identity file /c/Users/v684780/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.2 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1 debug1: match: OpenSSH_6.1 pat OpenSSH* compat 0x04000000 debug1: Authenticating to bitbucketdc-cluster03-ssh.jpmchase.net:22 as 'v684780' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: ecdh-sha2-nistp256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server-&gt;client cipher: aes128-ctr MAC: [email protected] compression: none debug1: kex: client-&gt;server cipher: aes128-ctr MAC: [email protected] compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:U1WSHx08ejrFmnHhLOyTO6krz1ufthX3VNxKRKh1yjg @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The ECDSA host key for bitbucketdc-cluster03-ssh.jpmchase.net has changed, and the key for the corresponding IP address 147.107.136.129 is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:U1WSHx08ejrFmnHhLOyTO6krz1ufthX3VNxKRKh1yjg. Please contact your system administrator. Add correct host key in /c/Users/v684780/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /c/Users/v684780/.ssh/known_hosts:2 ECDSA host key for bitbucketdc-cluster03-ssh.jpmchase.net has changed and you have requested strict checking. Host key verification failed. </code></pre> <p>I googled the web, someone suggested to remove the cached key, or update the C:\Users\v684780.ssh\known_hosts. I am not sure how to do it.</p>
0non-cybersec
Stackexchange
Product is a supermartingale iff process itself is supermartingale. <p>Let <span class="math-container">$(\Omega,\mathcal A,\mathcal F)$</span> be a finite filtered measure space with time <span class="math-container">$\mathcal T=\{0,\ldots T\}, T\in\mathbb N$</span> and <span class="math-container">$P,Q$</span> two equivalent probability measures on it. Let <span class="math-container">$Z$</span> be the <span class="math-container">$\mathcal F$</span>-<span class="math-container">$P$</span> martingale defined by <span class="math-container">$Z(t)=E^P\big(\frac{dQ}{dP}\mid \mathcal F(t)\big)$</span>, <span class="math-container">$t\in\mathcal T$</span>. </p> <blockquote> <p>Show: A stochastic process <span class="math-container">$X$</span> on <span class="math-container">$\Omega$</span> wth time <span class="math-container">$\mathcal T$</span> is an <span class="math-container">$\mathcal F$</span>-<span class="math-container">$Q$</span> supermartingale iff <span class="math-container">$XZ$</span> is an <span class="math-container">$\mathcal F$</span>-<span class="math-container">$P$</span> supermartingale.</p> </blockquote> <p>Integrability is imediate and adaptedness aswell in both directions, but I do not see how to show the supermartingale property for both directions. Any help is welcome!</p>
0non-cybersec
Stackexchange
ErrorHandler &amp; RxJS 6.2.2. <p>I have an application with an globalError handler like this:</p> <pre><code>import { Injectable, ErrorHandler, Injector } from "@angular/core"; import { Router } from "@angular/router"; @Injectable() export class GlobalErrorHandler implements ErrorHandler { constructor( private injector: Injector) { } public handleError(error: any) { console.error("Something went wrong"); //.. Handle error here } } </code></pre> <p>This always worked in every constallation. If an error was thrown the global handler caught it and handled it.</p> <p>Now after upgrading to RxJs 6.2.2 I understood that catching http errors changed.</p> <p>Code errors still keep working but errors thrown by the HttpClient are not globally caught. The GlobalErrorHandler is not fired any more.</p> <p>I am aware that I can handle errors within my service and that works fine like this:</p> <pre><code>doSomething() { return this.http .get("http://someURL").pipe( map((res: any) =&gt; { console.log(res) }), catchError(this.handleError&lt;any&gt;(`blabla`)) ); } /** * Handle Http operation that failed. * Let the app continue. * @param operation - name of the operation that failed * @param result - optional value to return as the observable result */ private handleError&lt;T&gt;(operation = 'operation', result?: T) { return (error: any): Observable&lt;T&gt; =&gt; { console.log("Now throwing error"); // TODO: send the error to remote logging infrastructure console.error(error); // log to console instead // Let the app keep running by returning an empty result. // ToDo: Global Error handler hier aufrufen.... return of(result as T); }; } </code></pre> <p>But I actually would like to handle all errors centrally.</p> <p><strong>What is the correct way with Angular 6 and RxJs 6 to handle errors centrally?</strong></p>
0non-cybersec
Stackexchange
Living just above the poverty line. My husband and I are living paycheck to paycheck and we have no money for ourselves for Christmas. No one knows about it, so everyone else will be getting presents like normal. What kills me is that we've cut every single unnecessary expense and we're STILL starving ourselves to save a few dollars. We're living in a house that's out of our price range, but we can't move because we can't seem to save up any money for moving costs. We owe 2 months worth on our cable, so we can't cancel and go with a different provider. We each have our own credit cards (mine was about to get charged off for not paying because we literally had no money), a different credit line, and a car that we MUST pay on. We're behind on all of our bills, so we can't even put them off so we can buy food. We can't get food stamps because I make too much money, but what the state doesn't take into account is the fact that we have not just rent and utilities, but a car and gas so that we can get to our jobs to make money to barely pay bills. I could go out and get a second job, but with the hours I work, there's no time. My husband is already working a job that he hates and is going to school full time. He's on the verge of having a nervous breakdown (which is really saying something, since he's so even tempered), but then again, so am I. Sorry for the rant, I just needed to get this off my chest and have a little cry...now it's time to go eat a few bites of the Thanksgiving leftovers for dinner before they run out, too.
0non-cybersec
Reddit
Uniformly open functions - where&#39;s the contradiction. <p>Let $X$ and $Y$ be metric spaces. Let us say that $f\colon X\to Y$ is <strong>uniformly open</strong> if for every $\varepsilon &gt;0$ there is $\delta &gt; 0$ such that for any $x\in X$ $$ B(f(x),\delta) \subseteq f[B(x,\varepsilon)].$$</p> <p>(See p. 202 of Kelley's <em>General topology</em>.)</p> <p>It is not too hard to show that if $X,Y,Z$ are metric spaces and $f\colon X\to Y$ is a uniformly continuous surjection, $g\colon Y\to Z$ is a function such that $g\circ f$ is uniformly open, then $g$ is uniformly open. (A more abstract version of this statement can be found <a href="https://books.google.co.uk/books?id=eKTVeJ681iIC&amp;pg=PA11&amp;lpg=PA11&amp;dq=%22uniformly%20open%22&amp;source=bl&amp;ots=LNaTEvUctu&amp;sig=ZFGUzM25RF1Aosg3x2y35j-lLdk&amp;hl=pl&amp;sa=X&amp;ved=0ahUKEwiKvOPlsKTTAhVpLMAKHW1yDGoQ6AEIXTAI#v=onepage&amp;q=%22uniformly%20open%22&amp;f=false" rel="nofollow noreferrer">here</a> - Proposition 1.13.)</p> <blockquote> <p>Consider $X=\mathbb C \times \mathbb C$, $Y=Z=\mathbb C$ and $f(x,y)=x+y$ and $g(z)=e^z$. Then $f$ is a uniformly continuous surjection. Let us look at the composition $g\circ f$. This is nothing but multiplication in $\mathbb C$ restricted to $\mathbb{C}\setminus \{0\}$. However, multipliction in $\mathbb C$ is uniformly open with $\delta(\varepsilon)=\varepsilon^2/4$. Thus $g$ should be uniformly open <a href="https://math.stackexchange.com/questions/2210658/is-exponentiation-open">but it is not</a>.</p> </blockquote> <p>What is wrong here?</p>
0non-cybersec
Stackexchange
Relation between range and kernel of a linear operator. <p>Let $S = I - T$ where $T$ is a compact linear operator on a Hilbert space $H$. Why is it that the range of $S$ is equal to $S((\ker S)^{\perp})$?</p>
0non-cybersec
Stackexchange
Background tasks in Meteor. <p>I'm wondering, is there is way to implement background taks, maybe with workers pool. Can you show me direction, i'm thinking about writing package for this?</p>
0non-cybersec
Stackexchange
Miso Glazed Crispy-Skinned Salmon. Takes only 20 minutes and is my absolute favorite way to make salmon. The blog post has lots of pics. http://nerdswithknives.com/miso-glazed-crispy-skinned-salmon-updated/ PREP TIME: 10 MINS / COOK TIME: 10 MINS / TOTAL TIME: 20 MINS SERVES: 2 SERVINGS INGREDIENTS 2 salmon fillets, skin on if possible 3 tablespoons white miso (some miso is GF) 3 tablespoons honey 3 tablespoons mirin (sweet rice wine) or substitute one extra tablespoon of honey 2 tablespoons soy sauce (or Tamari for GF) 2 tablespoons ginger, grated or minced 2 teaspoons neutral oil (like peanut or canola) Thinly sliced scallions (optional for garnish) Toasted sesame seeds (optional for garnish) INSTRUCTIONS Preheat broiler to high In a small bowl, mix together the miso, honey, mirin, soy sauce, and ginger to form a thick sauce. If you've rinsed it, make sure the fish is very dry. Slather half the sauce on the exposed flesh of the fish, avoiding getting sauce on the skin (or the bottom flesh, if skinless). If you have time, marinate for 10-15 minutes. (If some sauce gets on the skin, just wipe it off a bit before putting it in the pan). Heat 2 teaspoons neutral oil in an ovenproof skillet on medium-high. Sear the fish, skin-side down, pressing the fish flat several times with a spatula so that it lies flush in the pan. Don't mash it to death, but you can use a bit of pressure here. Cook for three minutes, until the skin gets crispy. Carefully spoon another tablespoon of sauce over the flesh of each fillet. Try to avoid having it drip all over the pan so it doesn't get too smoky. Reserve the remaining sauce for drizzling. Pop the pan under the broiler for 4-7 minutes, depending on the thickness of the filet and how well done you like it (I like salmon medium-rare and found that a 1½ inch thick fillet took 5 minutes). While broiling, watch the fish carefully (the honey burns easily). If it starts to get too dark, move it down farther, away from the broiler. Serve it with steamed rice or rice noodles. Garnish with slices scallions, sesame seeds and lime segments.
0non-cybersec
Reddit
Can&#39;t serve files without extension because they &quot;appear to be script&quot; on IIS7.5. <p>I created a certain number of static JSON files with no extension in a subfolder of my site. I want to use them for tests.</p> <p>The problem is that IIS is refusing to serve them because :</p> <blockquote> <p>HTTP Error 404.17 - Not Found</p> <p>The requested content appears to be script and will not be served by the static file handler.</p> </blockquote> <p>The folder is a subfolder of an ASP.NET application and I can't create an application just for it, neither can I change the parent application's application pool. Actually, I don't have access to the IIS configuration other than through the <code>web.config</code> file in the folder in question.</p> <p>I assume there <em>must</em> be a way to get a web server to serve static files, right?</p>
0non-cybersec
Stackexchange
Need help with wet look finish on pine wood.. I've been making furniture out of pine wood (old pallets) and I want to find a wood finish that keeps its natural colour. I've tried stains and varnish but they give you a yellowish colour and the wood loses some of its natural character. they also leave the wood looking dry. In the link you can see how smooth it looks to the touch. your help would be greatly appreciated.
0non-cybersec
Reddit
I saw a strange horse today watching me through my bedroom window [photo].
0non-cybersec
Reddit
Seeking counterexample or proof for equivalence of two separation properties. <p>Two points $x,y$ of a topological space are said to be <em>distinguishable</em> if at least one has a neighborhood not containing the other, and <em>separated</em> if each has a neighborhood not containing the other.</p> <p>It is readily seen that in an $R_0$ space (one in which distinguishable points are separated), separated points have disjoint closures. I'm curious, however, if the $R_0$ condition is necessary for separated points to have disjoint closures. Does anyone know of an example of a non-$R_0$ space in which separated points have disjoint closures? Alternately, does anyone know of a proof that non-$R_0$ spaces will necessarily have separated points with non-disjoint closures?</p> <p><strong>Edit</strong>: coffeemath cleverly pointed out a trivial counterexample in the comments below. Does anyone know of a <em>non-trivial</em> counterexample? In particular, a space such that:</p> <ul> <li>there exist separated points in the space,</li> <li>there exist distinguishable, non-separated points in the space, and</li> <li>separated points in the space have disjoint closures.</li> </ul>
0non-cybersec
Stackexchange
AirPods Pro aren’t reliable with Mac mini. <p>I have a 2018 Mac mini with fully up to date software. In December I purchased some AirPods Pro headphones and love them...mostly. The main downside is they're very unreliable with my Mac and troubleshooting has proven challenging.</p> <p>First, and least concerning, is it often takes a little bit of time to pair when it's not already paired. 10, 15, 20 seconds may pass before it pairs. But next come the real problems. It's not uncommon for the headphones to randomly disconnect. Also, when I'm on calls in Webex or Microsoft Teams, people will often tell me my audio quality is poor but I can hear them just fine. If I have Webex call my phone, even using my Airpods, the audio is fine. This happens enough that I can't trust it to work reliably for talking on my Mac.</p> <p>I'm using three other Bluetooth (or 2.4Ghz) devices. I have a Magic Keyboard, Magic Trackpad, and a Logitech mouse which uses one of those USB dongles (I don't think that's Bluetooth). Wireless is setup at 5Ghz so that's not a concern. I've heard USB 3 can interfere with 2.4Ghz signals. I'm using 2x 4k Dell monitors that connect using HDMI->USB-C adapters to the back of the mini. The keyboard and trackpad are reliable so I'm not 100% convinced that's the root cause, nor do I know how to fix that problem if it is.</p> <p>I have used the Bluetooth Explorer you can download from Apple and found the AirPods RSSI does move more than the keyboard or trackpad. It'll be in the -40 range (very good!) and dip down into the -60 range, or worse. I just don't know if this is expected behavior with AirPods.</p> <p>Apple Support had me reset the AirPods which helped for a bit but the quality is still a problem.</p> <p>Can someone suggest troubleshooting steps I can take?</p>
0non-cybersec
Stackexchange
Moving /boot to a separate partition. <p>I've installed Ubuntu 12.04 on a partition with BTRFS as its file system, but it appears that grub2 seems to have some issues with that file system. For some reason it takes it very long time to boot and it doesn't display OS-selection screen at all.</p> <p>So I decided to move my <code>/boot</code> to a separate partition with ext2 file system. But I don't know what steps exactly should I take to do it. Please, help! :)</p>
0non-cybersec
Stackexchange
Ubuntu External HDD Login error. <p>I have Ubuntu installed on my external hard drive. It runs pretty decently until I leave it for a minute. Once it comes out of suspension, it asks for my password. After entering my password, the input box disappears and I get a message saying I entered the incorrect password. After pushing the power button to restart my PC, Ubuntu logs in normally but I get a message saying I have an error. After reporting the error, none of my programs show up in the dash. Nothing short of reinstalling Ubuntu can fix this and after reinstalling it happens again! Can anyone help?</p>
0non-cybersec
Stackexchange
CNN: Trump's latest tweet 'encourages violence against reporters'.
0non-cybersec
Reddit
Tracking yellow color object with OpenCV python. <p>How can I track a yellow object in python using opencv? And, if possible, how can I get the position of the object?</p> <p>I've tried using the following method but i can't figure out how to lower and upper ranges work.</p> <pre><code>import numpy as np import cv2 cap = cv2.VideoCapture(0) while True: screen = np.array(ImageGrab.grab()) ret, img = cap.read() hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) #Help lower = np.array([]) upper = np.array([]) mask = cv2.inRange(hsv, lower, upper) cv2.imshow('screen', mask) if cv2.waitKey(25) &amp; 0xFF == ord('q'): cv2.destroyAllWindows() break </code></pre> <p>It should find yellow objects and possibly get their position.</p>
0non-cybersec
Stackexchange
Turn Excel spreadsheet into a formula. <p>I have an Excel spreadsheet that has a complex computation that is not trivial to turn into a macro or a single-cell formula. The spreadsheet has about 10 different inputs (values a human enters in different cells of the spreadsheet) and then it outputs 5 independent calculations (in 5 different cells) based on that input. Their calculation is using some pre-entered data in the spreadsheet (about 100 different constants) and doing some look-ups on them.</p> <p>I would like to use this whole spreadsheet as a formula on a different spreadsheet to calculate a set of input values and produce the corresponding set of output values. Imagine this as creating different table with 10 columns for the input variables and 5 columns for the outputs, then copying each input into the other spreadsheet and copying back the output in the results table.</p> <p>For instance:</p> <ul> <li>A1, A2, A3,... A10 are cells where someone enters values</li> <li>through a series of calculations B1, B2, B3, B4 and B5 are updated with some formulas</li> </ul> <p>Can I use the whole series of calculations from A1...A10 into B1...B5 without creating one massive huge formula or a VBA macro?</p> <p>I want to have a set of input values in 100 rows from A100, B100, C100,... J100 onward then do some Excel magic that will:</p> <ol> <li>Copy the values from A100...J100 into A1 to A10</li> <li>Wait for the result to appear in B1 to B5</li> <li>Copy the values from B1 to B5 into K100 to O100 </li> <li>Repeat steps 1 to 3 for all rows from 100 to 150</li> </ol>
0non-cybersec
Stackexchange
[Physics] What happens to neutrons that are ejected from nuclei through various processes (fission, knocked out by high energy photons, etc)?. Do they just float around in space or do they attach themselves to existing atomic nuclei? Is there a significant amount of exclusively neutron material in our universe that simply exists unbonded to an proton? I don't think I've ever heard of neutrons existing by themselves outside of special cases like a neutron star (exclude these cases), so it made me curious.
0non-cybersec
Reddit
European countries that Vladir Putin visited during his first term as the President of Russia (2000-2004.) [OC][1984x1736].
0non-cybersec
Reddit
Login only as guest, after have modified ~/.profile file. <p>Yesterday I have modified the file <code>.profile</code>, adding a new PATH at the end of it. After this change I can only login as guest user. Could these two things be connected? How could I solve this problem?</p> <p>This is my <code>.profile</code> file content:</p> <pre><code>if [ -n "$BASH_VERSION" ]; then include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi set PATH so it includes user's private bin directories PATH="$HOME/bin:$HOME/.local/bin:$PATH" </code></pre>
0non-cybersec
Stackexchange
$y_1, y_2, y_3$ are particular solutions of $y&#39;+a(x)y=b(x)$, so the function $\frac{y_2-y_3}{y_3-y_1}$ is constant.. <p>I'd really love your help with the following exercise.</p> <p>I need to show that if $y_1, y_2, y_3$ are particular solutions of the linear equation:</p> <p>$y&#39;+a(x)y=b(x)$, so the function $$\frac{y_2-y_3}{y_3-y_1}$$ is constant.</p> <p>I got that a particular solution should be of the form: $e^{-\int_{x_0}^{x}a(s)ds}c(x)$, where $c&#39;(x)=e^{\int_{x_0}^{x}a(s)ds}b(x)$. what else should I do? How should I solve this one?</p> <p>Thanks!</p>
0non-cybersec
Stackexchange
Windows 10 1809 - Clock Speed Stuck at 0.40 Ghz. <p>lately my laptop clockspeed is stuck at 0.40 ghz that turned me lagging so bad , i dont know why but it only happen sometimes , like when im booting up my pc it 3ghz-2ghz until about 10 minutes and it turned to be 0.40 ghz again, heres all the picture of my pc specification, All i have tried is , setting the power option , my bios is up to date</p> <p><a href="https://i.stack.imgur.com/1uUm5.png" rel="nofollow noreferrer">DXDIAG</a></p>
0non-cybersec
Stackexchange
Thank you, Americans!.
0non-cybersec
Reddit
Check out my crazy fractal squid.
0non-cybersec
Reddit
Consonance, an IDA Color Scheme.
1cybersec
Reddit
How to use Web Workers in create-react-app with worker-loader?. <p>I am trying to implement Web Workers in my React app to share a single WebSockets connection over multiple tabs. I use the worker-loader dependency for loading in Web Workers.</p> <p>Unfortunately i can't even get a simple dedicated web worker to work. </p> <p>App.jsx:</p> <pre><code>import React, { Component } from 'react'; // eslint-disable-next-line import myWorker from 'worker-loader!./worker.js'; class App extends Component { constructor(props) { super(); this.state = {}; } componentWillMount() { if(window.SharedWorker) { console.log(myWorker); myWorker.port.postMessage('Hello worker'); myWorker.port.onmessage = function(e) { console.log('Message received from worker'); console.log(e.data); } } </code></pre> <p>worker.js:</p> <pre><code>onconnect = function(e) { var port = e.ports[0]; port.onmessage = function(e) { var workerResult = 'Result: ' + (e.data[0] * e.data[1]); port.postMessage(workerResult); } } </code></pre> <p>When loading the page the following webpack error appears:</p> <p><a href="https://i.stack.imgur.com/XN9Cr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XN9Cr.png" alt="webpack error"></a> I can't use the config style usage of worker-loader because that requires some changes in the webpack config. This config can't be edited because of create-react-app. I could if i eject create-react-app, but that does have some disadvantages. </p> <p>Why doesn't it work? Somebody any ideas?</p> <p>Thanks in advance, </p> <p>Mike</p>
0non-cybersec
Stackexchange
Problem with savesym. <p>MWE:</p> <pre><code>\documentclass[12pt,a4paper]{article} \usepackage{savesym} \begin{document} content... \end{document} </code></pre> <p>Gets the following error <code>You have requested package ``savesym',but the package provides ``savesymbol'.</code> If I look at the sty file it's clear the typo however in CTAN there's no mail to tell the developer.</p>
0non-cybersec
Stackexchange
"Angel of Death" by me.
0non-cybersec
Reddit
It took 5 police officers to escort this lady off the plane.
0non-cybersec
Reddit
Dad and son ambush mom with TP gun.
0non-cybersec
Reddit
It's the little things.
0non-cybersec
Reddit
npgsql Leaking Postgres DB Connections: Way to monitor connections?. <p>Background: I'm moving my application from npgsql v1 to npgsql v2.0.9. After a few minutes of running my application, I get a System.Exception: Timeout while getting a connection from the pool.</p> <p>The web claims that this is due to leaking connections (opening a db connection, but not properly closing them).</p> <p>So</p> <p>I'm trying to diagnose leaking postgres connections in npgsql.</p> <p>From the various web literature around; one way to diagnose leaking connections is to setup logging on npgsql, and look for the leaking connection warning message in the log. Problem is, I'm not seeing this message in the logs anywhere.</p> <p>I also found utility that monitors npgsql connections, but it's unstable and crashes.</p> <p>So I'm left manually inspecting code. For everyplace that creates an npgsql connection, there is a finally block disposing of it. For everyplace that opens a datareader, CommandBehavior.CloseConnection is used (and the datareader is disposed).</p> <p>Any other places to check or can someone recommend a way to look for leaking pool connections?</p>
0non-cybersec
Stackexchange
Check out this massive Sitka Spruce log I just got! What next?.
0non-cybersec
Reddit
How to setup your own .onion site. Pretty easy actually: https://dod.org.nz/d/5-setup-a-tor-hidden-service-onion check it out
1cybersec
Reddit
[OC][ART] twin tieflings by my lil bro.
0non-cybersec
Reddit
A drill instructor was yelling at a new recruit. He was all up in this guy's face, their noses less than an inch apart. He screamed at the recruit, "You hate me don't you?!?" The recruit responded as calmly as possible, "Sir, no sir." The instructor yelled back, "You're going to piss on my grave if you outlive me, aren't you?!?" The recruit retorted, "Sir, no way. When I get out of the service, I will not fucking wait in line for anything! Sir."
0non-cybersec
Reddit
Conscription.
0non-cybersec
Reddit
So You're Telling Me....
0non-cybersec
Reddit
Combining Hard Drives. <p>Ok so I have 3 hard drives in my machine, 1 that has Ubuntu 12.04 installed on it, one with Windows 7 and the last one has Unallocated space. The Windows 7 drive is almost full and I was wondering how can I extend my Win7 drive using Ubuntu? So that I have 2 Drives using Windows 7 and 1 drive using Ubuntu.</p>
0non-cybersec
Stackexchange
Hotel training makes room for learning disabled people at work.
0non-cybersec
Reddit
How to optimise this query?. <p><strong>Script to create Tables Person and Company</strong></p> <pre><code>USE optimisationTesting CREATE TABLE Person(Id int not null, Name nvarchar(60), StreetAddress nvarchar(60) , Height int, CompanyId int) CREATE TABLE Company(Id int not null, Name nvarchar(60)) GO ALTER TABLE [dbo].[Person] ADD CONSTRAINT [PK_Person] PRIMARY KEY CLUSTERED ([Id] ASC) ALTER TABLE [dbo].[Company] ADD CONSTRAINT [PK_Company] PRIMARY KEY CLUSTERED ([Id] ASC) GO DECLARE @i int = 0 WHILE @i &lt; 100000 BEGIN INSERT INTO Person(Id, Name, StreetAddress, Height, CompanyId) VALUES ( @i, CONVERT(nvarchar(60), newid()), CONVERT(nvarchar(60), newid()), 140+rand()*60, rand()*100) SET @i = @i + 1 END SET @i=0 WHILE @i &lt; 100 BEGIN INSERT INTO Company(Id, Name) values (@i, convert(nvarchar(60), newid())) SET @i = @i + 1 END ------------------------------------------------------------------------------- set statistics time on select * from Person p where p.Name like 'a%' set statistics time off </code></pre> <p>The average elapsed time after three execution was 363ms. <strong>How can this query be further optimized to find out the names of people that starts with A?</strong></p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Not quite sure how they did this but I am impressed..
0non-cybersec
Reddit