text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
West Michigan will get its first rage room next week..
0non-cybersec
Reddit
Unable to run executable with &#39;.Move&#39; in filename as non-admin. <p>I had a C# winforms project that had ".Move" in the name. Whenever we ran it in Visual Studio, we got an 'Access is denied' error. </p> <p>After trying different things, we noticed that it only happens when the executable filename has '.Move' in it. However, if we ran that executable as administrator, it'd run without any problem. I've tried renaming other '.exe' files on my computer with the same result.</p> <p><a href="https://i.stack.imgur.com/lTCIf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lTCIf.png" alt="You may not have the appropriate permissions to access the item."></a></p> <p>Does anyone know why you can't run an executable with <code>.Move</code> in it as non-admin user in Windows 10?</p> <p>To reproduce, simply rename an executable to include '.Move' in the name and try to run it under an non-administrator account.</p>
0non-cybersec
Stackexchange
Overleaf: file not found in \includegraphics (when just a few days ago it was working). <p>I have a paper I'm working on in Overleaf, where I need to insert some images. Up until last week the compilation was perfectly fine (I haven't changed anything in the meanwhile). Now, when I opened the document again, there's a compilation error where the image files are not found. </p> <p>Image files are in a folder called Images. I've tried moving them in the same folder as main.tex, doesn't change the problem. Another thing is that Overleaf has an autocomplete function, and when I try re-typing the image paths, the autocomplete gives me the option of filling the \includegraphics{} with the correct images, which means that Overleaf recognises them.</p> <p>Simple code example: </p> <pre><code>\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{subcaption} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{textcomp} \begin{document} \begin{figure} \centering \includegraphics[width=\linewidth]{Images/2dclusters.png} \end{figure} \end{document} </code></pre> <p>error:</p> <pre><code>LaTeX Warning: File `2dclusters.png' not found on input line 31. ! Package pdftex.def Error: File `2dclusters.png' not found: using draft settin g. See the pdftex.def package documentation for explanation. Type H &lt;return&gt; for immediate help. ... l.31 ...graphics[width=\linewidth]{Images/2dclusters.png} Try typing &lt;return&gt; to proceed. If that doesn't work, type X &lt;return&gt; to quit. </code></pre> <p>Again: this problem did not arise the last few times I was editing the document. It only appeared today, when I opened overleaf again. </p>
0non-cybersec
Stackexchange
Live edge Alder bench completed this morning..
0non-cybersec
Reddit
Sign of energy and solving the Schrodinger equation.. <p>The particular problem that triggered my question is as follows: </p> <p>A particle of mass m is confined within the box $0 &lt; x &lt; a$, $0 &lt; y &lt; a$ and $0 &lt; z &lt; c$. The potential vanishes inside the box and is infinite outside. Find the allowed energies for a stationary state wave function of the form $X(x)Y(y)Z(z)$.</p> <p>Proceeding as usual, consider the particle (mass $m$, in state $\chi$) inside the box and seek values of $E$ such that $-\dfrac{\hbar^2}{2m}\nabla^2\chi = E\chi $.</p> <p>My first question is this: if necessary, how does one determine whether it is the case that $E&gt;0$ or $E&lt;0$ given the wording of the problem (i.e. given that there's no indication whether the state is bound or not)?</p> <p>If not necessary, we proceed using the usual separation techniques and end up with a system of three second-order DE's in X, Y and Z, each with their own separation constants summing to $E$.</p> <p>My next question comes in two parts: 1) Does knowing the sign of $E$ allow us to determine the sign of <em>all</em> of the separation constants; and 2) How does one determine which sign a separation constant takes (as in, is there a physical reason why a separation corresponding to, say, the x-coordinate must have a particular sign)?</p> <p>Obviously, the sign of the separation constant makes a major difference to the solution so clearly it must be necessary to determine their signs.</p> <p>Thanks in advance, this has been a niggling issue for quite some time! </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
This is my second build.
0non-cybersec
Reddit
Which local process is connected to given server on given port?. <p>On Linux, I can simply:</p> <pre><code>netstat -ntp | grep server_ip:port </code></pre> <p>And I get PID and process name of the program that is making given connection.</p> <p>But how do I do it on Solaris?</p>
0non-cybersec
Stackexchange
Irrational distances, rational area triangles. <p>Given any positive integer $n\ge3$ how to show that there are $n$ distinct points in the plane such that</p> <p>1- the distance between any two points is irrational number and </p> <p>2- each set of three points determines a non-degenerate triangle whose area is a rational number </p>
0non-cybersec
Stackexchange
$X$ and $f(X)$ independent $\Longleftrightarrow$ $f(X)$ is degenerate. <p>Let $(\Omega, \cal{A}, \mathbb{P})$ be a probability space and $X$ a random variable on $\Omega$. Let, also, $f:\Omega\to\mathbb{R}$ be a Borel function. Then:<br> $X$ and $f(X)$ are independent $\Longleftrightarrow$ there exists some $t\in\mathbb{R}$ such that $\mathbb{P}[f(X)=t]=1$, that is $f(X)$ is a degenerate r.v. </p> <p>The only thing that I could make out is that if $X$ and $f(X)$ are independent, then<br> $\mathbb{P}[f(X)\in B]=0$ or $1$ for every Borel subset of $\mathbb{R}$, since $\sigma(f(X))\subseteq \sigma(X)$ and hence, $f(X)$ is independent of its self. Suppose, now, that $\mathbb{P}[f(X)\leq x]=0$ for all $x\in\mathbb{R}$. Then:<br> $\mathbb{P}[f(X)\in\mathbb{R}]=\mathbb{P}[\bigcup_{n=0}^{\infty}[f(X)\leq n]]\leq\sum_{n=0}^{\infty}[f(X)\leq n]=0$ which obviously is a contradiction since $\mathbb{P}[f(x)\in\mathbb{R}]=1$. </p> <p>However, I don't know ow to prove this and my attempt isn't likely to become a complete solution.<br> Any help would be appreciated.<br> Thanks in advance! </p>
0non-cybersec
Stackexchange
TIL 63 Earths can fit inside of Uranus.
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 can I resolve data dependency in pointer arrays?. <p>If we have an array of integer pointers which all pointing to the same int, and loop over it doing <code>++</code> operation, it'll be 100% slower than those pointers pointing to two different ints. Here is a concrete example </p> <pre><code>int* data[2]; int a, b; a = b = 0; for (auto i = 0ul; i &lt; 2; ++i) { // Case 3: 2.5 sec data[i] = &amp;a; // Case 2: 1.25 sec // if (i &amp; 1) // data[i] = &amp;a; // else // data[i] = &amp;b; } for (auto i = 0ul; i &lt; 1000000000; ++i) { // Case 1: 0.5sec // asm volatile("" : "+g"(i)); // deoptimize // ++*data[0]; ++*data[i &amp; 1]; } </code></pre> <p>In summary, the observations are: (described the loop body)</p> <p><strong>case 1 (fast)</strong>: ++*pointer[0]</p> <p><strong>case 2 (medium)</strong>: ++*pointer[i] with half pointer pointing to one int and other half pointing to another int.</p> <p><strong>case 3 (slow)</strong>: ++*pointer[i] with all pointer pointing to the same int</p> <p>Here are my current thoughts. Case 1 is fast because modern CPU knows we are read/write the same memory location, thus buffering the operation, while in Case 2 and Case 3, we need to write the result out in each iteration. The reason that Case 3 is slower than Case 2 is because when we write to a memory location by pointer a, and then trying to read it by pointer b, we have to wait the write to finish. This stops superscalar execution.</p> <p>Do I understand it correctly? Is there any way to make Case 3 faster without changing the pointer array? (perhaps adding some CPU hints?)</p> <p>The question is extracted from the real problem <a href="https://github.com/ClickHouse/ClickHouse/pull/7550" rel="nofollow noreferrer">https://github.com/ClickHouse/ClickHouse/pull/7550</a></p>
0non-cybersec
Stackexchange
Merged mining custom bitcoind. <p>What are the core <a href="http://dot-bit.org/Merged_Mining#Getting_the_source_code_.28pool_operators_only.29" rel="nofollow">changes to bitcoind</a> that allow one to <a href="http://dot-bit.org/Merged_Mining" rel="nofollow">merge-mine</a>? Are there any new JSON-RPC commands that are enabled, or changes to the existing ones?</p>
0non-cybersec
Stackexchange
Could crypto put transparency in charitable donations?.
1cybersec
Reddit
Understanding message reversible mapping function in group G. In ElGamal encryption, it says that the message *M* that is about to get encrypted must be mapped to its *m* counterpart in the group *G* using a reversible mapping function. > Map the message ***M*** to an element ***m*** of ***G*** using a reversible mapping function Can someone help me understand (and point to some explanatory source) exactly what function this could represent? Can **any** message be mapped in such a way even though the group *G* is finite?
1cybersec
Reddit
ELI5: How is a beer equal to 4 slices of bread?. Is it just in calories or in carbs? Doesn't the body process beer sugars differently than bread carbs?
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
Quicktime 10 - export in original size, not 4k, 1080p, 720p etc?. <p>I do a lot of non full size screen recordings, e.g., they could be small such as 320x240 or in completely non-standard sizes and proportions like 1500x300. I want to save them using HEVC (rather than the default H.264).</p> <p>In QTP HEVC is only available using File -> Export but that way I can only use a couple of standard dimensions (4k, 1080p, 720p and 480p).</p> <p>How can I use both HEVC and a non-standard format in QTP10?</p>
0non-cybersec
Stackexchange
FYI: An Open Letter to Teenage Girls Who Don’t Always Wear a Bra.
0non-cybersec
Reddit
Getting my dog into her jack-o-lantern custom was easy. The hard part was keeping the candle inside her head lit..
0non-cybersec
Reddit
Who is Harry Vox and what is the deal with him and the Rockefeller plan?. Who is Harry Vox and what is the deal with him amd Rockerfeller Plan? Ive seen this rant from a guy called Harry Vox who rants about martial law and the Rockefeller plan on Instagram and YouTube so I've seen the whole video, but I cant find any information about the plan or who he is or why he is important? Who is he and why is this video popping up now? Video https://youtu.be/XdkHMGoZJ_Y
0non-cybersec
Reddit
Someone posted this picture to r/unexpected but honestly it has a better home here in r/dadjokes. Don't you think? http://imgur.com/RpK3CJK
0non-cybersec
Reddit
Only Human: Can't Stop Eating (Channel 4 2006). Documentary about people who suffer from Prader-Willi Syndrome. This rare disorder makes the sufferer unable to control their eating habits..
0non-cybersec
Reddit
Routing packets between two interfaces. <p>i have a SBC where the network camera is connected in ethernet interface and also i am having WIFI, LTE modules connected in the SBC. i want to route the packets from the ethernet to LTE. could anyone tell me how to do it? both are in different networks EG:- camera ip: - 169.254.x.x LTE : - dynamci ( 59.63.x.x)</p>
0non-cybersec
Stackexchange
Submitted for the approval of the Battlestations Society I present my messy station.
0non-cybersec
Reddit
[Build Help] PC needs replacing, suggestions?. My desktop is starting to get a bit sluggish for my needs, the MOBO is maxed out RAM wise, the case is naff and the HDD is slow, it's a Pentium D 3.00ghz, so nothing really worth salvaging. I regularly want 3 18megapixel images open in photoshop, 4 tabs in chrome, a photo browser, iTunes and tweetdeck open at once, and have £500 to spend, what can you suggest? :) [Full build, from Eclipse Computers](http://i.imgur.com/5G28W.jpg) [Casecom Case](http://www.ebuyer.com/265748-casecom-cm-431-shiny-black-microatx-case-cm-431)
0non-cybersec
Reddit
handbreak does not extract subtitles. <p>i have a personal DVD i am trying to backup to a medium that will not go the way of the 5" floppy...</p> <p>when i "rip" it via handbreak, i select subtitles, then i click "add all" and the subtitle does show up as <code>1 - English (VOBSUB) -&gt; passtrhoug</code>.</p> <p>then i hit Start and the final m4v (i am using the default "high" profile, nothing changed besides adding all subtitles) ends up with a single subtitle track. but when i enable it and play the file on vlc, all i get for subtitles is "Chapter 1"...</p> <p>nothing of the original subtitles. Playing the DVD on vlc and selecting the only subtitle channel, i do get the right text.</p> <p>what do i have to do on handbreak to include the subtitle correctly?</p>
0non-cybersec
Stackexchange
h:form attribute enctype=&quot;multipart/form-data&quot; not rendered after post back. <p>I have a form with file upload component:</p> <pre><code>&lt;h:form id="form" enctype="multipart/form-data"&gt; ... &lt;h:inputFile id="file" value="#{importController.file}" label="File:"&gt;&lt;/h:inputFile&gt; ... &lt;/h:form&gt; </code></pre> <p>and viewscoped backing bean with Part property</p> <pre><code>@Named @ViewScoped public class ImportController implements Serializable { ... private Part file; // getters and setters omitted } </code></pre> <p>If the user fills everything in the form correctly at first try then the logic works fine. But if there is a validation error (i.e. some text field is missing) after the POST, so the page is being rendered again with posted data and validation messages, the form is rendered without <code>enctype="multipart/form-data"</code> attribute. It causes problems if user corrects the values, chooses the file for upload again and submits the form. An exception "Not a multipart request" is thrown then. </p> <p>I tried to replace the native jsf h:inputFile with primefaces p:fileUpload but the behaviour is similar. In case of primefaces the exception is not thrown but the UploadedFile property in backing bean is not injected at all because of missing enctype of the rendered form.</p> <p>I fixed this using javavscript which forces the enctype after the page load, but that is not the correct way. So is this correct behavior or bug or am I missing something fundamental?</p> <p>There are some parts of the form that are loaded dynamically using ajax, but that is not the case of the inputFile component. However, the missing enctype is not caused by ajax call, but it is missing immediately after the POST when the page is re-rendered and no ajax is called after that.</p> <p>Wildfly 12.0.0.Final, Mojarra 2.3.3.SP1, Primefaces 6.2</p>
0non-cybersec
Stackexchange
Mr grey for MUFE event at Sephora.
0non-cybersec
Reddit
Diagonalize $\left(\begin{smallmatrix} 1 &amp; 3 \\ 0 &amp; 6 \end{smallmatrix}\right)$. <p>The whole question is this:</p> <p>$A=\begin{pmatrix}1 &amp; 3\\ 0 &amp; 6\end{pmatrix}$</p> <p>$T:M_2(\mathbb{R})\rightarrow M_2(\mathbb{R})$ is a linear transformation defined by $T(M)=AM$</p> <p>I need to show that T is diagonizable and find basis B of $M_2(\mathbb{R})$ such that $[T]_B$ is diagonal.</p> <p>I've tried the following:</p> <p>$P_A(t)=|tI-A|$ is the characteristic polynomial</p> <p>$P_A(t)=(t-1)(t-6)$</p> <p>Hence, the eigenvalues are $\lambda=1,6$</p> <p>$V_\lambda = P(\lambda I-A)$, where $P$ is the solution space.</p> <p>I got stuck here:</p> <p>$V_1=(I-A)=\begin{pmatrix}0 &amp; -3\\0 &amp; -5\end{pmatrix}$ which leaves me the only solution of $\begin{pmatrix}0\\0\end{pmatrix}$. Seems to me like it's too bad for an eigenvector.</p>
0non-cybersec
Stackexchange
Smoking and caffeine use are correlated primarily due to genetics, not environment or causality. The largest ever twin study of its kind combined with GWAS data and a separate longitudinal twin study indicates that genetic factors may make quitting smoking more difficult for heavy caffeine drinkers..
0non-cybersec
Reddit
Google announces End-to-Google email encryption.
1cybersec
Reddit
How to preserve information after exporting Tikz code from Geogebra and compiling it?. <p>I use Geogebra to draw the figures in my book, exporting it to Tikz code to compile. </p> <p>However I found that the information of labeling in Geogebra was lost after exporting or compiling, and it depends on the operating systems that I used (Arch Linux, Crunchbang or Window 7). Each OS have its own way of loosing, and I have to label again each time I change the OS. </p> <p>Here is the original Geogebra figure. </p> <p><img src="https://i.stack.imgur.com/ygPaM.png" alt="enter image description here"></p> <p>Here is the result after compiling code: <img src="https://i.stack.imgur.com/GzJhs.png" alt="enter image description here"></p> <p>And here is my MWE: </p> <pre><code>\documentclass{gsm-l} \usepackage[papersize={160mm,240mm},inner=20mm, outer=15mm, vmargin=15mm]{geometry} \geometry{includeheadfoot} \usepackage{graphicx} \DeclareGraphicsExtensions{.pdf,.png,.jpg, .tif} \usepackage{float} \usepackage{amssymb, amsmath} \usepackage{mathtools} \usepackage{graphicx} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \makeatletter \g@addto@macro\@floatboxreset\centering \makeatother \begin{document} \begin{center} \begin{tikzpicture}[line cap=round,line join=round,&gt;=triangle 45,x=1.0cm,y=1.0cm] \draw (-0.98,5.18)-- (-2,1); \draw (-2,1)-- (3,1); \draw (3,1)-- (-0.98,5.18); \draw (-0.98,5.18)-- (-0.28,-0.64); \draw (-0.28,-0.64)-- (3,1); \draw (-0.28,-0.64)-- (-2,1); \draw (-5.04,3.2)-- (6.6,0.76); \draw (3,1)-- (5.455081967213114,1); \draw (-4.100846583584014,3.003132788998711)-- (-2,1); \draw (3.725230024213075,1.362615012106538)-- (3,1); \draw(1.013560827918247,1.779415874429849) circle (2.743514678103197cm); \draw(-0.787343875388026,2.653088709264506) circle (3.331941034138976cm); \draw (2.515425264611452,5.122219341216774)-- (-0.84627055466588,-1.807255366746791); \begin{scriptsize} \draw (1.520000000000002,-1.380000000000003) node[anchor=north west] {h.74}; \draw (0.280000000000001,2.459999999999999) node[anchor=north west] {$\Delta$}; \draw (1.180000000000002,3.879999999999999) node[anchor=north west] {$\Delta_3$}; \fill [color=black] (-0.98,5.18) circle (1.5pt); \draw[color=black] (-0.979999999999999,5.54) node {$A$}; \fill [color=black] (-2,1) circle (1.5pt); \draw[color=black] (-2.06,0.779999999999998) node {$B$}; \fill [color=black] (3,1) circle (1.5pt); \draw[color=black] (3.040000000000002,0.779999999999998) node {$C$}; \fill [color=black] (-0.28,-0.64) circle (1.5pt); \draw[color=black] (-0.199999999999999,-0.820000000000003) node {$O$}; \fill [color=black] (-1.637216330361333,2.486701704989832) circle (1.5pt); \draw[color=black] (-1.799999999999999,2.839999999999999) node {$R$}; \fill [color=black] (2.387792933442892,1.642971240755957) circle (1.5pt); \draw[color=black] (2.680000000000002,1.919999999999999) node {$Q$}; \fill [color=black] (5.455081967213114,1) circle (1.5pt); \draw[color=black] (5.500000000000003,1.339999999999998) node {$P$}; \fill [color=black] (-0.630686889734209,2.275710997504422) circle (1.5pt); \draw[color=black] (-0.439999999999999,2.599999999999999) node {$X$}; \fill [color=black] (3.725230024213075,1.362615012106538) circle (1.5pt); \draw[color=black] (4.000000000000003,1.659999999999998) node {$Z$}; \fill [color=black] (-4.100846583584014,3.003132788998711) circle (1.5pt); \draw[color=black] (-4.32,2.919999999999999) node {$Y$}; \fill [color=black] (2.113120626857999,4.292947461166578) circle (1.5pt); \fill [color=black] (0.971560019650176,1.939844806877455) circle (1.5pt); \draw[color=black] (1.020000000000002,1.699999999999998) node {$I$}; \end{scriptsize} \end{tikzpicture} \end{center} \end{document} </code></pre> <p>So what should I do to preserve the original labeling (and other information)? </p>
0non-cybersec
Stackexchange
KeychainItemWrapper crash on iOS10. <p>When I try to add the item to Keychain i found this crash on iOS10 *** Assertion failure in -[KeychainItemWrapper writeToKeychain]</p> <p>On iOS 9.3 I write the key in the keychain without problem Thanks</p>
0non-cybersec
Stackexchange
How to save login Information locally in android. <p>I have made an android app which working fine. I implemented the Login functionality in it. Can anyone guide me how to store the login credentials of the user so that the user does not have to login everytime he/she starts the app and when user logout then clear the stored login information.</p> <p>Actually i want that user does not have to enter login information everytime when he/she starts the app.How can i do this?</p>
0non-cybersec
Stackexchange
Flawed twofold induction on an inequation (but where?). <p><em>The following induction is flawed because the result admits a counter-example, but I can't find where is the flaw. Please advise.</em> [<strong>Edit:</strong> As pointed out in the answer, the error was in the base case. The base case can further be boiled down to $H_2$ alone.]</p> <p>Let $A_n$ be the average number of comparisons to sort $n$ keys by merging them in a top-down fashion (see any algorithm textbook). It can he shown that $$ A_0 = A_1 = 0;\quad A_n = A_{\lfloor{n/2}\rfloor} + A_{\lceil{n/2}\rceil} + n - \frac{\lfloor{n/2}\rfloor}{\lceil{n/2}\rceil+1} - \frac{\lceil{n/2}\rceil}{\lfloor{n/2}\rfloor+1}. $$ I am interested in a lower bounds on $A_n$ of the form $n\lg n + an + b$, where $\lg n$ is the binary logarithm.</p> <p>By distinguishing on the parity of $n$, we get $$ A_{2p} = 2 A_{p} + 2p - 2 + \frac{2}{p+1};\quad A_{2p+1} = A_{p} + A_{p+1} + 2p - 1 + \frac{2}{p+2}. $$ Let $H_n$ be the property to prove $n\lg n + an + b \leqslant A_n$. </p> <p>Let us assume $H_n$ for $n &lt; 2p$, in particular, $H_p \colon (2p\lg p + 2ap + 2b) + 2p - 2 + 2/(p+1) \leqslant A_{2p}$. We want $H_{2p} \colon 2p\lg(2p) + 2ap + b = 2p\lg p + 2ap + 2p + b \leqslant A_{2p}$, which holds if $$ 2 - \frac{2}{p+1} = \frac{2p}{p+1} \leqslant b. $$</p> <p>Let $g(p) := 2p/(p+1)$. This function is strictly increasing for $p &gt; 0$ and $g(p) \rightarrow 2^{-}$, as $p \rightarrow +\infty$.</p> <p>We assume $H_n$ for $n &lt; 2p+1$, in particular, $H_p$ and $H_{p+1}$, which imply $p\lg p + (p+1)\lg(p+1) + a(2p+1) + 2b + 2p - 1 + 2/(p+2) \leqslant A_{2p+1}$ We want to prove $H_{2p+1} \colon (2p+1)\lg(2p+1) + a(2p+1) + b \leqslant A_{2p+1}$, which holds if $$ (2p+1)\lg(2p+1) - (p+1)\lg(p+1) - p\lg p - 2p + 1 - \frac{2}{p+2} \leqslant b. $$ Let $f(p) := (2p+1)\lg(2p+1) - (p+1)\lg(p+1) - p\lg p - 2p + 1 - \frac{2}{p+2}$. We then have the condition $f(p) \leqslant b$. This function is strictly increasing for $p &gt; 0$ and $f(p) \rightarrow 2^{-}$, as $p \rightarrow +\infty$.</p> <blockquote> <p>Because we need to satisfy the conditions $f(p) \leqslant b$ and $g(p) \leqslant b$ for both inductive steps to hold, we have to compare $f$ and $g$, when $p$ is a natural number: $g(1) &lt; f(1)$, $g(2) &lt; f(2)$, but $f(p) &lt; g(p)$ if $p \geqslant 3$.</p> </blockquote> <p>We have $A_{6} = 59/6$ and $A_{7} = 191/15$. Let us choose $p=3$ for the base case:</p> <ul> <li>$H_{6} \colon 6\lg 6 + 6a + b \leqslant A_{6} \Leftrightarrow a \leqslant 59/36 - \lg 6 - b/6$,</li> <li>$H_{7} \colon 7\lg 7 + 7a + b \leqslant A_{7} \Leftrightarrow a \leqslant 191/105 - \lg 7 - b/7$.</li> </ul> <p>Since we want to maximise $a$, we need to minimise $b$. We know that $f(p) &lt; g(p) \leqslant b$, so the only choice for $b$ not to depend on $p$ is the smallest upper bound of $g(p)$, that is, $$ b_{\min} = 2, \quad \text{therefore}\quad a_{\max} = \frac{47}{36} - \lg 6 \simeq -1.2794. $$</p> <p>By the principle of complete induction, we just established, for $n &gt; 5$, $$ n\lg n - \left(\lg 6 - \frac{47}{36}\right)n + 2 &lt; A_{n}. $$</p> <p>But this is wrong! The first counter-example is $n=2^3$, for which the bound is approximatively $15.7647$ and the exact value is $A_8 = 236/15 \simeq 15.733$. Where is the flaw in my argument? Does the problem happens only at $n=2^p$?</p>
0non-cybersec
Stackexchange
Rewriting product to a binomial. <p>I'm currently researching Wigner matrices. I wanted to calculate the moments of its spectral density. The probability density is $$\frac{1}{2\pi} \sqrt{4-x^2} \text{ for } x \in [-2,2] $$</p> <p>I have found an expression for the $k^{th}$ moment by integrating $$ \int_{-2}^2 \frac{x^k}{2\pi} \sqrt{4-x^2} \, dx.$$</p> <p>This is $0$ if $k$ is uneven and $$ \frac{\prod _{i=1}^{\frac{k}{2}} \frac{4k - 8i +12}{k - 2i +4}}{k+1}$$ if $k$ is even. </p> <p>It is known that the moments are the Catalan numbers for k is even $$ \frac{1}{k+1}\binom{2k}{k}. $$ In Mathematica i found that my solutions are the Catalan numbers. But I can't figure out how to rewrite my product to the expression of the Catalan numbers. Which would be a way more intuitive expression. </p> <p>Are there any tricks one can use to write products to binomials?</p>
0non-cybersec
Stackexchange
Is this a partial non injective non surjective function?. <p>I am trying to express a many to many relationship in mathematical terms. My problem can be represented as below.</p> <p><img src="https://i.stack.imgur.com/STUAP.jpg" alt="Many to Many example"></p> <p>However, I will also have values like below. </p> <ul> <li><em>4</em>,<em>5</em> in <strong>A</strong> domain with no mapping to B domain.</li> <li><em>d</em>,<em>e</em> in <strong>B</strong> domain with no mapping to A domain. </li> </ul> <p>I want to express this problem in mathematical terms. Is this a <strong>partial</strong> (<em>because of values 4 and 5 with no mapping</em>) <strong>non injective</strong> ( <em>1 and 3 are mapped to a</em>) <strong>non surjective</strong> (<em>d and e are left without mapping</em>) function? </p> <p>If I am correct about the mathematical function, How should I express it in mathematical terms?</p>
0non-cybersec
Stackexchange
Texting her is like pulling teeth but in person she doesn't stop talking.... So the title may be a bit cryptic but that's exactly how I feel. Its just really strange. So I [M17] have been talking to this girl [F15] for like 9 months now (I'll ask her out eventually that's not why I'm here) and in person she always comes up to me, goes out of her way to talk to me and tries her best to carry a conversation (She's reasonably socially awkward, which is fine, kinda cute tbh) when I don't. Most of the time I do carry the conversation buuuut I test the waters from time to time. Now the problem comes in when I text her. She doesn't have a clue how to text. I know she can carry a conversation because I have seen it with my own eyes, as soon as we get to texting though, It seems like a different person, apart from the annicdotes that she puts in conversation that she also puts in text. Its like talking to a brick wall though. Even when I ask really open ended questions she somehow manages to find the smallest response she can think of. Granted she is a slow texter so she may just not want to type a lot because it takes a while. Sooo has anyone had an SO or crush who just doesn't text? How did you deal with it? Did you manage to find a work around or just not text or found some way to get them to text more?
0non-cybersec
Reddit
Cajun Snow Crab!!!.
0non-cybersec
Reddit
Lara Logan's 60 Minutes interview [vid].
0non-cybersec
Reddit
Accuracy of clock() function in C. <p>I have some code that tries to determine the execution time of a code block.</p> <pre><code>#include &lt;time.h&gt; #include &lt;stdio.h&gt; int main() { clock_t start_t, end_t, total_t; int i; start_t = clock(); //clock start printf("Starting of the program, start_t = %ld\n", start_t); printf("Going to scan a big loop, start_t = %ld\n", start_t); for(i=0; i&lt; 10000000; i++) //trying to determine execution time of this block { } end_t = clock(); //clock stopped printf("End of the big loop, end_t = %ld\n", end_t); total_t = (long int)(end_t - start_t); printf("Total time taken by CPU: %lu\n", total_t ); return(0); } </code></pre> <p>The output of the code snippet on my machine is </p> <pre><code>Starting of the program, start_t = 8965 Going to scan a big loop, start_t = 8965 End of the big loop, end_t = 27259 Total time taken by CPU: 18294 </code></pre> <p>So if my CPU was running at 21 MHz and assuming that this was the only thing getting executed, each machine cycle would be approximately equal to 47 nanoseconds so (18294 * 47) = 859818 nanoseconds.</p> <p>Would this be the execution time for the for loop in my code? Am I making some incorrect assumptions here.</p>
0non-cybersec
Stackexchange
Cursed ice.
0non-cybersec
Reddit
This website which allows you to "visit" open public spaces without even leaving your room!.
0non-cybersec
Reddit
Trigonometric/polynomial equations and the algebraic nature of trig functions. <p>Prove or disprove that an equation involving one trig function (either $\sin,\cos,\tan$, etc) with an argument of the form $ax+b$ for non-zero rational $a,b$ and a polynomial with non-zero rational coefficients and a constant term not equal to $\pm1$ or zero is not solvable in closed form. For example,</p> <p>$$\sin(x)=2-x-x^2$$</p> <p>It has solutions near $x=0.752$ and $x=-2.242$</p> <p>My reasoning for why there is no closed form solution is because</p> <ol> <li><p>If $x$ is a rational multiple of $\pi$, the LHS is algebraic, while the RHS is transcendental.</p></li> <li><p>If $x$ is of the form $x=\arcsin(u)\ne\frac ab\pi$ and $u$ is algebraic, then the LHS is algebraic but the RHS... is not algebraic? See <a href="https://mathoverflow.net/questions/36272/when-is-arctan-a-rational-multiple-of-pi">When is ArcTan a rational multiple of pi?</a> for some information.</p></li> <li><p>If $x$ is none of the above, I don't think there exists a closed form solution since $\sin(x)$ cannot be calculated in closed form and neither can $2-x-x^2$.</p></li> </ol> <p>Can someone prove this general idea?</p> <p>If it is solvable, then under what conditions?</p> <hr> <p>Attempting to reduce the amount of questions that ask for closed form solutions in these scenarios, like</p> <p><a href="https://math.stackexchange.com/questions/2081249/nonlinear-algebraic-equation-with-trigonometric-function">Nonlinear algebraic equation with trigonometric function</a></p> <p><a href="https://math.stackexchange.com/questions/1939607/how-to-solve-x-sinx-b">How to solve $x+\sin(x)=b$</a></p> <p><a href="https://math.stackexchange.com/questions/2005604/solving-an-equation">Solving an equation</a></p> <p>etc.</p> <hr> <p>To clarify, closed form in this context is a solution in terms of <a href="https://en.wikipedia.org/wiki/Mathematical_constant#Table_of_selected_mathematical_constants" rel="noreferrer">well-known constants</a> and a finite combination of <a href="https://en.wikipedia.org/wiki/List_of_mathematical_functions" rel="noreferrer">well-known functions</a>.</p>
0non-cybersec
Stackexchange
oh i guess im the stupid one here. i better shut up.
0non-cybersec
Reddit
On an idle instance, why does setting max memory to 256mb cause %CPU to jump. <p>Five 2012 instances on a 2-node cluster using AVGs. Two of them doing nothing yet, no user databases or users. Customer insists on specific max mem settings while waiting for additional memory approval. We lowered max mem from 1gb to 256mb on both and each instances CPU usage jumped to 20% and stayed there. Raising it to 512mb brought it back down to basically nothing. Regardless of mem setting each instances memory usage stayed right around 200mb.</p> <p>Any ideas? I'm still doing research for the technical answer they are requesting.</p>
0non-cybersec
Stackexchange
Match thread: Valencia vs Barcelona (Copa semi finals, first leg). [Barcelona](http://www.reddit.com/r/Barca/) vs Valencia, Copa Del Rey semifinals first leg. Winner of the tie will face either Athletic Bilbao or Mirandés in the final. **Line ups**: **Barcelona**: Pinto, Puyol, Piqué, Mascherano, Abidal, Busquets, Thiago, Cesc, Messi, Alexis and Cuenca *Bench*: Valdés, Adriano, Alves, Sergi Roberto, dos Santos, Xavi and Tello **Valencia**: Alves; Miguel, Rami, V. Ruiz, Mathieu; Albelda, Éver; Piatti, Jonas, J.Alba; Soldado Streams: [Wiziwig.tv](http://www.wiziwig.tv/broadcast.php?matchid=143970&part=sports) | [First Row Sports](http://www.firstrow.tv/watch/105235/1/watch-valencia-cf-vs-fc-barcelona.html) | ESPN3 in 'mericah. **Trivia**: - Valencia have a solid record at Mestalla this season, having won all but five of their games there in all competitions, and losing just two. - Los Che and Barcelona last met each other in the Copa del Rey in the semi-final stage in 2008, which the Mestalla club won 4-3 on aggregate before going on to lift the cup with victory against Getafe in the final. - Barcelona are the most successful club in Copa del Rey history, having won the tournament 25 times.
0non-cybersec
Reddit
Adding numerical value to node in TikZ. <p>I define a node <code>Q</code> in TikZ:</p> <p><code>\node (Q) at (1,1) {};</code></p> <p>Now I want to draw a line to the point (2,2) by doing something like <code>(Q) + (1,1)</code>. Doing that I got an error. What is the correct way to do that? </p>
0non-cybersec
Stackexchange
Baklava complete! Ready for the meetup! [Credit to my wife for busting this out at the last minute.].
0non-cybersec
Reddit
A man goes to the doctor and says,. "Doc, there's a piece of lettuce sticking out of my anus." The doctor instructs him to drop his trousers, and then examines him. The man asks, "Is it serious, doc?" The doctor replies, "Sorry to tell you, but this is just the tip of the iceberg."
0non-cybersec
Reddit
Website for Elsevier Encyclopedia (or glossary)?. <p>I'm quite positive that I saw before an encyclopedia (more accurately, dictionary/glossary) on Elsevier website. I remember I looked up the definition of a hyperplane there, few months ago. But I can't find it through Google anymore.</p> <p>Does anyone know the link?</p>
0non-cybersec
Stackexchange
Adam Schefter on Twitter: "NFL admitted to Lions today that officials missed a hold on Ndamukong Suh on the 4th-down conversion...".
0non-cybersec
Reddit
Teamwork at its best...
0non-cybersec
Reddit
How to route none http request in pound.cfg. <p>I'm trying to route all request that point on the port 3050 to another host, here is what i usually write in the /etc/pound/pound.cfg:</p> <pre><code>ListenHTTP Address 10.165.30.58 Port 3050 Service BackEnd Address 10.10.101.10 Port 3050 End End End </code></pre> <p>But the request is not an HTTP request but a simple TCP request, what shall i do ?</p> <p>Please note that my example do not works</p>
0non-cybersec
Stackexchange
Today, I was attacked by my senior dog for not giving him treats..
0non-cybersec
Reddit
what is the exact difference between different distributions?. <p>I have only used ubuntu (with unit and gnome as DE). I have heard people saying that ubuntu are for beginners and advanced users use fedora, open suse or arch. But all the difference i have seen is that the desktop environments are different and the package managers are different(ubuntu using apt, fedora using yum and arch using packman).</p> <p>so my question is how are these distributions different if we fix the above lying DE(which interacts with the user) to gnome? What is the actual difference apart from the desktop environment between different distributions of linux?</p>
0non-cybersec
Stackexchange
SpriteKit - didMovetoView is not called. <p>This is my code for the view controller</p> <pre><code>import UIKit import SpriteKit import GameplayKit class GameViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() if let view = self.view as! SKView? { // Load the SKScene from 'GameScene.sks' if let scene = SKScene(fileNamed: "GameScene") { // Set the scale mode to scale to fit the window scene.scaleMode = .aspectFill // Present the scene view.presentScene(scene) } view.ignoresSiblingOrder = true view.showsFPS = true view.showsNodeCount = true } } </code></pre> <p>And this is my code for the GameScene</p> <pre><code>import SpriteKit import GameplayKit class GameScene: SKScene { override func didMove(to view: SKView) { print("gets called") } </code></pre> <p>But for some reasons, in the debug area, it didn't print "gets called", which indicates that didMove didn't even get called. What's happening here? Did I miss anything?</p>
0non-cybersec
Stackexchange
40 year old ice cream man. Go for it.
0non-cybersec
Reddit
Mr. Porter at up to 70% Off Sale Prices.
0non-cybersec
Reddit
One was already too much to handle.
0non-cybersec
Reddit
How to restructure code to avoid warning: &quot;Adapting argument list by creating a 2-tuple&quot;. <p>The following code has already been <em>verified as working</em> as I want it: i.e. adding a tuple to an existing sequence (also of tuples)</p> <pre><code>iter.map { r =&gt; // Iterator of org.apache.spark.sql.Row r.toSeq :+ (outColName,locMap(r.getAs[String](inColName))) } </code></pre> <p>However our build system has <code>fail on warning</code> enabled and thus errors out the above code with:</p> <pre><code>[info] 'compiler-interface' not yet compiled for Scala 2.10.6. Compiling... [info] Compilation completed in 24.504 s [error] /home/../Sampling.scala:40: Adapting argument list by creating a 2-tuple: this may not be what you want. [error] signature: SeqLike.:+[B &gt;: A, That](elem: B)(implicit bf: scala.collection.generic.CanBuildFrom[Repr,B,That]): That [error] given arguments: outColName, locMap(r.getAs[String](inColName)) [error] after adaptation: SeqLike.:+((outColName, locMap(r.getAs[String](inColName))): (String, Int)) [error] r.toSeq :+ (outColName,locMap(r.getAs[String](inColName))) [error] ^ [error] one error found </code></pre> <p>Now - as mentioned - this <em>is</em> what I want. But <code>Travis</code> needs to be made happy. So what is the correct invocation to signfify the same -i.e. this is the desired behavior - and avoid the warnings here?</p>
0non-cybersec
Stackexchange
Looking for help for anyone experienced with Man Ups. **EDIT - I meant Muscle Ups, no Man Ups** Thanks to Sodomizing Mexican Just a quick re-cap - I can do 27 pull ups in one set, multiple sets of L pull ups 10 reps, and pull ups up to chest level 10 reps multiple sets. Normally I do about 90+ pull ups in my weekly routine. I tried Man Ups today, and could only get up to chest level. I couldn't even get all the way up to do one. Anyone got any tips on progressing up to a full Man Up? They are much, much harder than I thought possible. Thanks in advance.
0non-cybersec
Reddit
It's just dog in a bowl, keep scrolling.
0non-cybersec
Reddit
AngularJS and HTML: Escaping quotes inside a variable for an onclick function. <p>i'm just wondering how to escape a function if it has quotes inside. for example, my variable is:</p> <pre><code> {{ video.Id }} = "Don't"; </code></pre> <p>then if my markup in html is like this:</p> <pre><code> &lt;button ng-click="executeFunc('{{video.Id}}')"/&gt; </code></pre> <p>I will have an error saying that I have unterminated quotes. (Coming from the variable that have quotes inside.) Any help would be appreciated! thank you</p>
0non-cybersec
Stackexchange
Mama mia mama mia let me go.
0non-cybersec
Reddit
Was thinking of getting this made into a Tshirt.. What do you guys think?.
0non-cybersec
Reddit
Attacking several browser/OS combinations with only one link. <p>I’m relatively new to this topic so forgive what may be an obvious lack of understanding. </p> <p>Say that an attacker had a malicious website whose objective was to plant a Trojan into the device of the user who clicks on a particular link.</p> <p>Assuming that the website could be accessed by various browsers and/or operating systems, and that they only wanted to include one malicious link in the website, would they be confined to targeting only one browser/OS combination? Or could several Trojans be included in one link, each targeting a different browser/OS combination?</p>
1cybersec
Stackexchange
Concatenate rows of a data frame. <p>I would like to take a data frame with characters and numbers, and concatenate all of the elements of the each row into a single string, which would be stored as a single element in a vector. As an example, I make a data frame of letters and numbers, and then I would like to concatenate the first row via the paste function, and hopefully return the value "A1"</p> <pre><code>df &lt;- data.frame(letters = LETTERS[1:5], numbers = 1:5) df ## letters numbers ## 1 A 1 ## 2 B 2 ## 3 C 3 ## 4 D 4 ## 5 E 5 paste(df[1,], sep =".") ## [1] "1" "1" </code></pre> <p>So paste is converting each element of the row into an integer that corresponds to the 'index of the corresponding level' as if it were a factor, and it keeps it a vector of length two. (I know/believe that factors that are coerced to be characters behave in this way, but as R is not storing df[1,] as a factor at all (tested by is.factor(), I can't verify that it is actually an index for a level)</p> <pre><code>is.factor(df[1,]) ## [1] FALSE is.vector(df[1,]) ## [1] FALSE </code></pre> <p>So if it is not a vector then it makes sense that it is behaving oddly, but I can't coerce it into a vector</p> <pre><code>&gt; is.vector(as.vector(df[1,])) [1] FALSE </code></pre> <p>Using <code>as.character</code> did not seem to help in my attempts</p> <p>Can anyone explain this behavior?</p>
0non-cybersec
Stackexchange
Burp Suite Guide || interface, Settings & Example.
1cybersec
Reddit
Interesting subject.
0non-cybersec
Reddit
Mexican 100.
0non-cybersec
Reddit
Can i upload a config file from a previous release in FreeNAS?. <p>Background: </p> <p>motherboard went bad and RMA'd to the vendor. just received the new MB and am going thru the fresh install of FREENAS (most recent Release release 11.1). Supposedly all my data volumes were safe, and all i'd have to do is restore the previous config file. </p> <p>the config file i have saved is form Release 11.0. Can i upload that config and get my data back?</p>
0non-cybersec
Stackexchange
How to Call Static Function In Symfony2 Twig Template. <p>How to call my static function in twig template without passing through controller?</p> <p>For example: </p> <pre><code>... {{ MyStaticClass::getData() }} ... </code></pre> <p>My Static Class:</p> <pre><code>class MyStaticClass { const v1 = 'Value1'; const v2 = 'Value2'; ... public static function getData() { ... return $data; } } </code></pre>
0non-cybersec
Stackexchange
nice stickers for cars only with 0,69$ just released don't miss out.
0non-cybersec
Reddit
DIY: Ant Killer!.
0non-cybersec
Reddit
Retrieve all association&#39;s attributes of an AR model?. <p>What do you think is the most optimal way to retrieve all attributes for all the associations an AR model has?</p> <p>i.e: let's say we have the model <code>Target</code>.</p> <pre><code>class Target &lt; ActiveRecord::Base has_many :countries has_many :cities has_many :towns has_many :colleges has_many :tags accepts_nested_attributes_for :countries, :cities, ... end </code></pre> <p>I'd like to retrieve all the association's attributes by calling a method on a Target instance:</p> <pre><code>target.associations_attributes &gt;&gt; { :countries =&gt; { "1" =&gt; { :name =&gt; "United States", :code =&gt; "US", :id =&gt; 1 }, "2" =&gt; { :name =&gt; "Canada", :code =&gt; "CA", :id =&gt; 2 } }, :cities =&gt; { "1" =&gt; { :name =&gt; "New York", :region_id =&gt; 1, :id =&gt; 1 } }, :regions =&gt; { ... }, :colleges =&gt; { ... }, .... } </code></pre> <p>Currently I make this work by iterating on each association, and then on each model of the association, But it's kind of expensive, How do you think I can optimize this?</p> <p>Just a note: I realized you can't call <code>target.countries_attributes</code> on <code>has_many</code> associations with <code>nested_attributes</code>, <code>one_to_one</code> associations allow to call <code>target.country_attributes</code> </p>
0non-cybersec
Stackexchange
Father of Glivec hails Indian Supreme Court ruling against Novartis.
0non-cybersec
Reddit
Requirements for a Bitcoin Miner Data &amp; Bandwidth needs. <p>Can someone elaborate on the other aspects of a Bitcoin miner set up / rig's needs, things such as the amount of data in MB's per day it can get through in getting and sending, if your asymmetrical broadband connection is sufficient.</p>
0non-cybersec
Stackexchange
x-post /r/badtattoos.
0non-cybersec
Reddit
How do you know if a line is straight?. <p>How do you know a line is straight? How can you check in a practical way if something is straight - without assuming that you have a ruler? How do you detect that something is not straight?</p> <p>If you fold a piece of paper the crease will be straight — the edges of the paper needn’t even be straight. This utilizes mirror symmetry to produce the straight line.</p> <p>Carpenters also use symmetry to determine straightness — they put two boards face to face, plane the edges until they look straight, and then turn one board over so the planed edges are touching.They then hold the boards up to the light. If light passes between the boards the edges are not straight.</p> <p>Are there other ways to determine if a line is straight?</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
Can x86&#39;s lock prefix on uncacheable memory cause a Denial of Service on memory bandwidth?. <p>Can an instruction with lock prefix starve rest of the CPUs (virtual machines) for memory bandwidth in a virtualized environment ? <br></p> <p>For example, consider the following piece of code </p> <pre><code>loop: lock inc dword [rax] jmp loop </code></pre> <p>Now assume that rax contains the address of an uncacheable memory location. (Using PAT or MTRR to set the memory type to UC).</p> <p>This will force the CPU to lock the memory bus and slow down memory accesses of rest of the CPU which makes it a potential tool for denial of service.</p> <p>Do modern processors have mechanisms to partition memory bandwidth among virtual machines to prevent attacks like this?</p>
0non-cybersec
Stackexchange
Why do we breathe irregularly while crying?. I just don't get it. Why do teary eyes and a runny nose cause irregular breathing?
0non-cybersec
Reddit
Help DIY, the wife wants to have plants in our kitchen.. I need some way to hang them close to our skylight in the day but lower them to water. [Here's a few pictures, any ideas or suggestions?](http://imgur.com/a/UIkXV)
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
Community Thread: 03/05/2018. What are you up to? Share with your e-friends! What's that shiny new piece of equipment? Show off cool stuff you've created. We want to see and discuss your pictures, videos, website...or anything, really! If you've got interesting links to stuff created by someone else we'd love to discuss that too!
0non-cybersec
Reddit
What do the fields in /proc/net/ipt_hashlimit/FILE mean?. <p>What do the fields in <code>/proc/net/ipt_hashlimit/FILE</code> mean?</p> <p>These files are created upon <code>iptables -A CHAIN -m hashlimit--hashlimit-name FILE [...]</code></p> <p><code>[...] 9 198.51.100.23:0-&gt;0.0.0.0:0 80000 80000 160 [...]</code></p> <p>The first column shows the time in seconds when the entry of the hashlimit will be removed by the garbage collection, if there are no matched packets for the rule.</p> <p>The second column is based upon the mode you specify with <code>--hashlimit-mode</code> In this case it is <code>srcip</code>. It shows the srcip here.</p> <p>What are the meaning of columns 3,4 and 5?</p>
0non-cybersec
Stackexchange
Mom donates over 1,000 ounces of breast milk to Hurricane Harvey victims.
0non-cybersec
Reddit
Hmmmmmmmmmmmm🤔.
0non-cybersec
Reddit
First post on aww. Reddit, meet Diamond the Pitbull..
0non-cybersec
Reddit
Recursively include Nuget DLLs via Gitignore. <p>I am using GIT with a new ASP.NET MVC project. I have a line in my gitignore file to ignore dlls </p> <pre><code>*.dll </code></pre> <p>I would like to add something along the lines of the following to include (i.e. do not ignore) DLLs in my NUGET packages folder</p> <pre><code> !/packages/*.dll </code></pre> <p>The problem I'm encountering is that not all nuget packages are created equally and, depending on the package in question, DLLs may be nested an arbitrary number of levels in the path hierarchy. It seems that I simply need a recursive solution along the lines of:</p> <pre><code>!/packages/**/*.dll !/packages/**/* </code></pre> <p>I have not yet found a solution that will work via mysysgit (or any windows distribution of git).</p> <p>Does anyone know of a way to make this work???</p>
0non-cybersec
Stackexchange
Solving this quant interview question. <p>I found this exercise:</p> <p>For $R$ a map taking $n \in \mathbb{N}$ to $0,1,\ldots, n-1$ randomly with uniform distribution.</p> <p>Defining a random sequence $x_0 = 10^{100}$ and $x_{i+1} = R(x_n)$ until $x_i=0$. What is the expected length $L(x_0 = 10^{100})$ of this sequence?</p> <p>I have translated in into a recursion, for $L(0) = 1$ and $$L(n) = 1 + \frac{1}{n} \sum \limits_{i=0}^{n-1} L(i).$$</p> <p>And this is where I am stuck. I am thinking of a way of expanding the $L(i)$ in the sum, until expressing everything as $L(0)$. Am I on the right track?</p>
0non-cybersec
Stackexchange
Can Chrome Sync or Firefox Sync be trusted with sensitive data? (Spoiler Alert: No).
0non-cybersec
Reddit
Were there real historical cases of long-lost heirs?. It turns up in stories a lot, and I know that historically there were plenty of people who claimed to be a long-lost heir. But were there any historical cases where there was incontrovertible evidence that the claimant was who they said they were, or at least had enough support to take power and be widely accepted/unchallenged?
0non-cybersec
Reddit
How do I add a margin between bootstrap columns without wrapping. <p>My layout currently looks like this</p> <p><img src="https://i.stack.imgur.com/XSuLL.png" alt="Current Layout"></p> <p>In the center column, I want to add a small margin between each <code>Server</code> Div. But, if I add a margin to the CSS, it ends up line wrapping and looking like this</p> <p><img src="https://i.stack.imgur.com/XNvPt.png" alt="Attempted Change"></p> <pre><code>&lt;div class="row info-panel"&gt; &lt;div class="col-md-4 server-action-menu" id="server_1"&gt; &lt;div&gt; Server 1 &lt;/div&gt; &lt;/div&gt; &lt;div class="col-md-4 server-action-menu" id="server_2"&gt; &lt;div&gt; Server 2 &lt;/div&gt; &lt;/div&gt; &lt;div class="col-md-4 server-action-menu" id="server_3"&gt; &lt;div&gt; Server 3 &lt;/div&gt; &lt;/div&gt; &lt;div class="col-md-4 server-action-menu" id="server_4"&gt; &lt;div&gt; Server 4 &lt;/div&gt; &lt;/div&gt; &lt;div class="col-md-4 server-action-menu" id="server_5"&gt; &lt;div&gt; Server 5 &lt;/div&gt; &lt;/div&gt; &lt;div class="col-md-4 server-action-menu" id="server_6"&gt; &lt;div&gt; Server 6 &lt;/div&gt; &lt;/div&gt; &lt;div class="col-md-4 server-action-menu" id="server_7"&gt; &lt;div&gt; Server 7 &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>And the CSS </p> <pre><code>.server-action-menu { background-color: transparent; background-image: linear-gradient(to bottom, rgba(30, 87, 153, 0.2) 0%, rgba(125, 185, 232, 0) 100%); background-repeat: repeat; border-radius:10px; } .info-panel { padding: 4px; } </code></pre> <p>I attempted to add the margins by doing this</p> <pre><code>.info-panel &gt; div { margin: 4px; } </code></pre> <p>How can I add a margin to the DIVs so that they don't leave so much space on the right hand side?</p>
0non-cybersec
Stackexchange
Why am I not getting two positive pivots for this symmetric matrix?. <p>I'm watching Gilbert Strang's linear algebra <a href="http://ocw.mit.edu/courses/mathematics/18-06sc-linear-algebra-fall-2011/positive-definite-matrices-and-applications/symmetric-matrices-and-positive-definiteness/" rel="nofollow">lecture on positive definite matrices</a> and I have a question about the example he uses in the last 10-15 minutes of the video.</p> <p>Strang is demonstrating the claim that all pivots of a positive definite matrix are positive using the example of $$\mathbf{A}=\begin{bmatrix}5&amp;2\\2&amp;3\end{bmatrix}$$ He finds that the pivots are $5$ and $\frac{11}{5}$, but I'm not sure how he gets the second one. Elimination $(2\text{row}_1-5\text{row}_2\to\text{row}_2)$ yields for me $$\begin{bmatrix}5&amp;2\\0&amp;-11\end{bmatrix}$$ which suggests to me that the pivots are $5$ and $\color{red}{-11}$. But that can't be right, as Strang goes on to say that the product of the pivots is equal to the determinant of $\mathbf{A}$, and indeed: if one of the pivots is $5$ (no argument there), this means $5x=11\implies x=\frac{11}{5}$. Furthermore, the eigenvalues of $\mathbf{A}$ are both positive $(4\pm\sqrt5)$ which means both pivots must be positive.</p> <p>How do I get $\frac{11}{5}$? Am I misunderstanding something fundamental about what a pivot is?</p>
0non-cybersec
Stackexchange
I overheard this at the Apple display in a Best Buy today.. A potential "switcher" was discussing the display of MacBook Pros with a Best Buy sales associate, who sounded reasonably knowledgeable about Macs. When the customer asked about Apple's extended warranty, the sales associate said he didn't recommend Apple's extended warranty, it didn't cover batteries, which is particularly problematic in the unibody MacBooks, and recommended Best Buy's extended warranty instead. Sheesh. While the associate was off checking on something, I sidled over to the customer and explained that the associate's remark about Applecare simply wasn't true--I had personally benefitted from Applecare coverage when I had a MBP battery lose capacity prematurely, after about 100 recharge cycles. I also blurted out, in front of the sales associate, that a MacBook Pro hardware refresh was rumored to be imminent, and when I bumped into the customer again in the parking lot I recommended he visit the local Mac store (an independent chain of Apple resellers here in the Pacific Northwest, where I got that battery replaced). I'd hate to see someone submit a MBP to the tender "mercy" of the Geek Squad.
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