text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Let $\mathcal M_n (\mathbb R)$ be the set of all square matrices of order $n$. Show that $\|AB\| \le \|A\| \|B\|$. <p>Good night, I'm trying to solve this exercise:</p> <blockquote> <p>Let <span class="math-container">$\mathcal M_n (\mathbb R)$</span> be the set of all square matrices of order <span class="math-container">$n$</span>. Show that <span class="math-container">$\langle A,B \rangle := \operatorname {tr} (A^T B)$</span> is an inner product on <span class="math-container">$\mathcal M_n (\mathbb R)$</span> such that <span class="math-container">$\|AB\| \le \|A\| \|B\|$</span>.</p> </blockquote> <p>Could you please verify if my proof of <span class="math-container">$\|AB\| \le \|A\| \|B\|$</span> looks fine or contains logical gaps/errors? Thank you so much for your help!</p> <hr> <p><strong>My attempt:</strong></p> <p>We have <span class="math-container">$$\|A\|^2 = \operatorname {tr} (A^T A) =\sum_{i=1}^{n} \sum_{j=1}^{n} a_{ij}^2$$</span></p> <p>As such,</p> <p><span class="math-container">$$\begin{align} \|AB\|^2 &amp;=\sum_{i=1}^{n} \sum_{j=1}^{n}\left(\sum_{k=1}^n a_{ik} b_{kj} \right)^2 &amp;&amp;\le \sum_{i=1}^{n} \sum_{j=1}^{n} \left [ \left(\sum_{k=1}^n a_{ik}^2 \right ) \left (\sum_{k=1}^n b_{kj}^2 \right) \right ] \\ &amp;=\sum_{i=1}^{n} \left[ \left ( \sum_{k=1}^n a_{ik}^2 \right ) \cdot \left (\sum_{j=1}^{n} \sum_{k=1}^n b_{kj}^2 \right ) \right ] &amp;&amp;= \left (\sum_{j=1}^{n} \sum_{k=1}^n b_{kj}^2 \right ) \cdot \left( \sum\limits_{i=1}^{n} \sum_{k=1}^n a_{ik}^2 \right ) \\ &amp;=\|B\|^2 \|A\|^2 &amp;&amp;=\|A\|^2 \|B\|^2 \end{align}$$</span></p>
0non-cybersec
Stackexchange
Last doubts (1st PC Build). ###Build Help/Ready: Hey everybody. (1st off all, sorry for any English mistake, it's not my native language) I'm buildind my first PC ever and after many research days, this is what i ended up with. I'm still doubtful in some components, especially the GRAPHIC CARD and the MONITOR. Pcpartpicker could not find the case that i choose, i'm probably going for a "ATX Nox Hummer MC black 7" (please tell me if there's a better option to fit all these components). **What is your intended use for this build? The more details the better.** |70% Gaming |20% TV Shows, movies, ect| 10% Browsing| **If gaming, what kind of performance are you looking for? (Screen resolution, FPS, game settings)** I only play League of Legends (because i'm kinda restricted with this laptop). When i finish my PC i'l probably would like to play GTA, FIFA, CS GO, COD, FALLOUT, ect. So FPS is the priority here ( i suppose). **What is your budget (ballpark is okay)?** I'm planning to spend around 1400€ (~1570$), PC + Monitor only. **In what country are you purchasing your parts?** Portugal **Post a draft of your potential build here (specific parts please). [Consider formatting your parts list.](http://www.reddit.com/r/buildapc/wiki/pcpp) Don't ask to be spoonfed a build (read the rules!)**. [PCPartPicker part list](http://pcpartpicker.com/list/b9FLcc) / [Price breakdown by merchant](http://pcpartpicker.com/list/b9FLcc/by_merchant/) Type|Item|Price :----|:----|:---- **CPU** | [Intel Core i5-6600K 3.5GHz Quad-Core Processor](http://pcpartpicker.com/product/gx648d/intel-cpu-bx80662i56600k) | $227.99 @ SuperBiiz **CPU Cooler** | [CRYORIG H7 49.0 CFM CPU Cooler](http://pcpartpicker.com/product/93Crxr/cryorig-cpu-cooler-h7) | $34.99 @ Newegg **Motherboard** | [MSI Z170A GAMING PRO ATX LGA1151 Motherboard](http://pcpartpicker.com/product/Qn7CmG/msi-motherboard-z170agamingpro) | $170.00 **Memory** | [G.Skill Ripjaws V Series 16GB (2 x 8GB) DDR4-3000 Memory](http://pcpartpicker.com/product/3CdFf7/gskill-ripjaws-v-series-16gb-2-x-8gb-ddr4-3000-memory-f4-3000c15d-16gvkb) | $78.99 @ Newegg **Storage** | [Crucial MX300 525GB 2.5" Solid State Drive](http://pcpartpicker.com/product/2VWrxr/crucial-mx300-525gb-25-solid-state-drive-ct525mx300ssd1) | $119.99 @ Newegg **Storage** | [Western Digital Caviar Blue 1TB 3.5" 7200RPM Internal Hard Drive](http://pcpartpicker.com/product/MwW9TW/western-digital-internal-hard-drive-wd10ezex) | $48.71 @ OutletPC **Video Card** | [MSI GeForce GTX 1060 6GB 6GB GAMING X Video Card](http://pcpartpicker.com/product/JVWrxr/msi-geforce-gtx-1060-6gb-gaming-x-video-card-geforce-gtx-1060-gaming-x-6g) | $289.99 @ SuperBiiz **Power Supply** | [Corsair RMx 650W 80+ Gold Certified Fully-Modular ATX Power Supply](http://pcpartpicker.com/product/Rp8H99/corsair-power-supply-cp9020091na) | $89.99 @ Newegg **Operating System** | [Microsoft Windows 10 Home OEM 64-bit](http://pcpartpicker.com/product/wtgPxr/microsoft-os-kw900140) | $84.88 @ OutletPC **Case Fan** | [Corsair Air Series AF140 Red 66.4 CFM 140mm Fan](http://pcpartpicker.com/product/YLtCmG/corsair-case-fan-co9050017rled) | $12.89 @ OutletPC **Monitor** | [Asus VG248QE 24.0" 144Hz Monitor](http://pcpartpicker.com/product/rkphP6/asus-monitor-vg248qe) | $219.99 @ Best Buy | *Prices include shipping, taxes, rebates, and discounts* | | Total (before mail-in rebates) | $1408.41 | Mail-in rebates | -$30.00 | **Total** | **$1378.41** | Generated by [PCPartPicker](http://pcpartpicker.com) 2016-09-30 20:37 EDT-0400 | **Provide any additional details you wish below.** Please let me know if you would change anything (and why) because i stll feel like a newbie here. I think i checked the compatibility between all the components but tell me if i'm wrong (given that i choose the NOX Hummer MC 7 case) Thank you all and please help me with anything you think i'm failing here!
0non-cybersec
Reddit
Reasons for irregular—sporadically slow to fast—USB flash drive transfer speeds. <p>One of my USB flash drive (Sandisk 256 GB USB 3.0) is showing quite irregular transfer speeds for larger files (~4GB per file), on my Surface Pro 6. There are no other resource-intensive processes running, and the machine is plugged in. Both the USB flash drive and the Surface's SSD are NTFS formatted.</p> <p>I am wondering, what could be potential reasons for this behaviour, and are there ways to fix this? Defrag? Driver Update? Shorter File Names? Other performance settings?</p> <p>These are graphs for one individual 4GB file each:</p> <p><a href="https://i.stack.imgur.com/Plfau.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Plfau.png" alt="88% complete."></a></p> <p><a href="https://i.stack.imgur.com/Osmb5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Osmb5.png" alt="77% complete."></a></p>
0non-cybersec
Stackexchange
Is there a way to improve sharpness in your hearing?. I've realized in social situations where there is a lot of loud noises, a lot of people talking all at once it, or if the person talking to me tries to whisper something at me I can hear him talking but I can't tell exactly what the person said. I would have to ask the person to repeat it again once or twice until my brain fully registers what the person said and sometimes it irritates the person having to repeat it again that they just tell me to forget about it. Are there any books that you know of that could help with understanding how to improve sharpness in hearing?
0non-cybersec
Reddit
URL shortening algorithm. <p>Now, this is not strictly about URL shortening, but my purpose is such anyway, so let's view it like that. Of course the steps to URL shortening are:</p> <ol> <li>Take the full URL</li> <li>Generate a unique short string to be the key for the URL</li> <li>Store the URL and the key in a database (a key-value store would be a perfect match here)</li> </ol> <p>Now, about the second point. Here's what I've come up with:</p> <pre><code>ByteArrayOutputStream baos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(baos); UUID uuid = UUID.randomUUID(); dos.writeLong(uuid.getMostSignificantBits()); String encoded = new String(Base64.encodeBase64(baos.toByteArray()), "ISO-8859-1"); String shortUrlKey = StringUtils.left(encoded, 6); // returns the leftmost 6 characters // check if exists in database, repeat until it does not </code></pre> <p>Is this good enough?</p>
0non-cybersec
Stackexchange
We're Trending! My man!.
0non-cybersec
Reddit
A paper argumenting that P might be equal to NP. <p>It seems like most serious computer scientists believe that P is not equal to NP, but they just do not know how to prove it.</p> <p>Is there any worth-mentioning paper in which an argument is made in favor of P being equal to NP?</p>
0non-cybersec
Stackexchange
Limit of time derivative in linear parabolic equation. <p>$M^n$ , $n\ge 1$ , is a compact n-dimensional manifold without boundary. $F_0: M^n\rightarrow \mathbb R^{n+1}$ is smoothly immersion with nonnegative mean curvature. Deform $F(x,t)$ by $$ \partial_t F(x,t) = \Delta_g F+ F \\ F(\cdot , 0)=F_0~~~~~~~~ $$<br> $\Delta_g$ is Laplace-Beltrami operator. If the solution exist for all $t\ge0$. Then, how to show $ \partial_t F \rightarrow 0 $ as $t\rightarrow \infty$ ?</p> <p>This question is origin from Huisken's <a href="http://dx.doi.org/10.4310/jdg/1214444099" rel="nofollow noreferrer"><strong>Asymptotic behavior for singularities of the mean curvature flow</strong></a>. In fact, Huisken want to prove the limit of $F$ is a sphere. First , he proves the limit manifold $F_\infty(M^n)$ satisfies $$ H=\langle F, \nu\rangle $$ $H$ is the mean curvature , $\nu$ is normal vector, $\langle \cdot,\cdot \rangle$ is Euclid inner. For proving this, he needs a monotonicity formula. In my view , the monotonicity formula is not easy to think. And obviously, there is a intuitional way. If we have $\partial _t F \rightarrow 0$, because $\Delta_g F=-H\nu$, we can easily get $H=\langle F, \nu\rangle$ in the limit manifold. Maybe, this is too strong, just $\langle \partial _t F ,\nu \rangle \rightarrow 0$ is enough.</p>
0non-cybersec
Stackexchange
How do I customize the notification banner in OSX Mountain Lion. <p>Is there anyway to move the notification center alert/banner to bottom right instead of top right?</p>
0non-cybersec
Stackexchange
Bring up the baby question, or let it go?. ETA tl;dr: In LTR that is going to end in marriage, could go either way on whether to have or not have babies, bring it up with my boyfriend or leave the subject alone since it isn't a dealbreaker for me? I am a 32 y.o. childless female, he is a 38 y.o. male with a 10 y.o. son from his first marriage. For all intents and purposes, we have been together for a bit over 2 years. We are 19 months into a 3 year LDR, I had to leave for school, with plans to live together while I intern in his city this summer and then full-time after I graduate in 2012. We are not officially engaged, but our eventual marriage is a foregone conclusion. I have spent most of my adult life vacillating on my position on children. As a child myself, I knew I wanted to be a wife and mommy when I grew up. I married young, and during the 16 months that that marriage lasted my then-husband and I unsuccessfully tried to start a family. I then got into a 7 1/2 year relationship with a man with grown children and a vasectomy. I did a lot of soul searching and eventually decided I would rather have the relationship with my then-boyfriend than the possibility of children. I even went through a phase of very vehemently not wanting children, as I enjoyed the freedom of my child-free lifestyle. At about 28 the biological clock started ticking though, and I told my then-boyfriend that if we were still together when I was 35 I was going to order some sperm popsicles and a turkey baster, and he could help raise the baby with me or not. Within a year or two though, the clock seemed to have broken. So for the couple years since then (and for the entire time I have been with my boyfriend) I have been just without a desire one way or the other on the matter. I have known that if a pregnancy were to transpire I would be happy about it, though the timing right now would be quick frankly atrocious, but I have not actively wanted a baby enough to try for one or for it to be a deal-breaker in my relationship. I should note that as far as I am concerned, at this point I have a 10 y.o. son, and I love him dearly. But I did miss out on the first 8 years of his life. My boyfriend has mentioned a vasectomy, so I infer from that that he is done, but we have never actually discussed having any more children. I've never brought it up because it's never really been an issue for me, I've figured if he decides he wants more children I'll be happy to go there, and if he decides he is done I'm okay with that too. Today though, I was on a forum where suddenly a LOT of women are announcing their pregnancies, and the idea of never having that myself did make me a little sad. I think I do want at least one more child more than I an admitting to myself. At the same time though, more children would only be icing on the cake, I am wholly happy and content with the little family that I have now. There is nothing in the world I would choose over them. So all that being said, do I even bother discussing this with my boyfriend? And if I do bring this up, how do I make it clear that whatever decision we make is together? Because he always wants my happiness about all else, and I am concerned that if he knows that I would like to try for a baby he will say of course just to see the smile on my face. I am sure that he would love that child, but I don't want him to go there just for me.
0non-cybersec
Reddit
Permissions problem with BULK INSERT. <p>We are getting the following error when trying to use <code>BULK INSERT</code>.</p> <blockquote> <p>Msg 4861, Level 16, State 1, Line 10 Cannot bulk load because the file "\filer\share\loadfile.txt" could not be opened. Operating system error code 5(Access is denied.).</p> </blockquote> <p>When we check the security on the directory <code>everyone</code> is listed as having full access and in fact we have confirmed this by trying to open the file manually as myself, another DBA, one of the devs, and the service account running the instance. We also get the error when attempting to run the BULK INSERT myself, the other DBA, the dev and a sysadmin SQL login I created to run the test.</p> <p>The instance is SQL Server 2008 R2</p> <p>The code is: </p> <pre><code> CREATE TABLE #Temp1 (CodeNum VarChar(10), Cost Money) BULK INSERT #Temp1 FROM '\\filer\share\loadfile.txt' WITH ( FIELDTERMINATOR = ',', ROWTERMINATOR = ';\n' ); GO </code></pre> <p>Can anyone give me some direction on where my security issue is?</p>
0non-cybersec
Stackexchange
Endomorphism Rings in Ring vs R-Mod. <p>Let $M$ be an $R$-module. </p> <p>Considering $M$ as an abelian group, forgetting the $R$-action on $M$, we can unambiguously write $\mathsf{End}(M)$ to denote the endomorphism ring with addition defined as in $M$ and composition as the multiplication operation. </p> <p>Next, considering $M$ as an $R$-module, we can write $\mathsf{End}_R(M)$ for the endomorphism ring of $R$-maps, that is, $\mathsf{End}_R(M) := \mathsf{Hom}_R(M,M)$.</p> <p>Finally, we can consider the abelian group $M$ as a $\mathbb{Z}$-module and in this case we can write $\mathsf{End}_{\mathbb{Z}}(M)$ to denote the corresponding endomorphism rings.</p> <p>So, we have three different endomorphism ring structures and I'm trying to understand precisely how they are related. Rotman, in Advanced Modern Algebra states that $\mathsf{End}_R(M)$ is in fact a subring of $\mathsf{End}_{\mathbb{Z}}(M)$ but I don't really see this. What's a good way to think about these three endomorphism rings and how they are related?</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
Wanted, dead or alive: Have you seen this curve? (circular variant of cardioid). <p>Let me start with the context. This is definitely <em>not</em> a "research level" question, but I'm hoping that the research community will be able to settle for me whether or not a particular construction has been done before or not. I'm also hoping that the wider context will mean that this question doesn't get closed instantaneously.</p> <p>I do an extension class with 10/11 year olds, not selected for their interest in mathematics (ie it's just a regular class). One of the activities I get them to do is to draw a cardioid by joining points on a circle with straight lines. One pair decided that instead of using straight lines, they would use curves instead. The resulting picture is similar to a cardioid, but is not the same.</p> <p>My goal is to be able to say to them one of two things:</p> <p>Either:</p> <blockquote> <p>"Well done! You took the construction and <em>played</em> with it, seeing what else you could make. That's exactly what mathematicians do. What you've discovered is called the <em>hyperlogical antiometric cardiobloid</em> and it was first made in 1832 by de Grundie. It's linked to <em>hyperlogical geometry</em> which is a really key area of mathematics."</p> </blockquote> <p>Or:</p> <blockquote> <p>"Well done! You took the construction and <em>played</em> with it, seeing what else you could make. That's exactly what mathematicians do. What you've discovered is quite probably completely new! No-one I've asked has heard of it. That's brilliant! What would you like to call it?"</p> </blockquote> <p>But to say either one, I need to know if this has been seen before. Note that it doesn't matter what the answer is, and also please note that I'm not claiming that the curve itself has any intrinsic value. Its value is purely extrinsic in that I can use it to show the students what being a real mathematician is like.</p> <p>Without further waffle, here's a more precise construction.</p> <p>On a circle, draw an arc between $\theta$ and $2 \theta$ so that the arc meets the circle at right-angles (in the manner of the Poincaré disc model of hyperbolic geometry - indeed, if this has been seen before then "curve stitching in hyperbolic space" seems a likely candidate). This draws out an envelope, just as the straight-line version draws a cardioid. In actual fact, one can draw the full circles - not just the arcs - and get another part of the curve outside the original circle.</p> <p>Using the theory of envelopes, and sticking stuff into Sagemath, I found an equation of the curve:</p> <p>$$ \begin{align} x^8 + y^8 &amp;+ 16x^7 + 4(x^2 + 4x + 19)y^6 + 76x^6 + 48x^5 \\ &amp;+ 6(x^4 + 8x^3 + 38x^2 + 8x - 47)y^4 - 282x^4 + 48x^3\\ &amp;+ 4(x^6 + 12x^5 + 57x^4 + 24x^3 - 141x^2 + 12x + 19)y^2 + 76x^2 + 16x + 1 = 0 \end{align} $$</p> <p>Using Geogebra, I drew a diagram showing the curve and its construction:</p> <p><a href="https://i.stack.imgur.com/UolsG.png"><img src="https://i.stack.imgur.com/UolsG.png" alt="Hyper cardioid"></a></p> <p>Any pointers will be gratefully received, (but please note that I no longer have access to paywalled articles (nor to MathSciNet) so if you supply references please try to find accessible ones).</p>
0non-cybersec
Stackexchange
Russia escalates spy games after years of US neglect - "Lawmakers and intelligence officials say that the United States missed opportunities to crack down on Russian espionage efforts.".
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
I'm an elephant now.
0non-cybersec
Reddit
Real Madrid are unbeaten in 33 consecutive games across all competitions: WWWWWDWWWWWWWWWWWDDDDWWWWWDWWWWWD.
0non-cybersec
Reddit
How to set the default umask in Arch Linux. <p>How can I set the default umask for Arch Linux. I need 0022 but the default is 0027 on my system. I checked <code>etc/profile/</code> and it says </p> <pre><code>umask 0022 </code></pre> <p>But somewhere another value for umask gets set and I can't find it. Any suggestions where the 0027 umask could be set or where I can override it?</p>
0non-cybersec
Stackexchange
Cant redeem game case PS+ codes....?. I have about 14 disc based games, most came with a 7 day free trial of PS+, and 3 of them have a 1 month (Destiny, LBP3, and TLOU i think it was) Now I never used these, left them in the game case, seeing as how PS+ stacks with whatever and my 1 year just ran out a few days ago, I figured I could use these to gain some free PS+ for the time being... There's just one thing... NONE of these codes work... None of the 3 7 day codes, and neither do the 30 day codes, now ive NEVER touched these at all, and they all have an expiration of 12/31/2015.... It says invalid code or redeemed already ... wth? Why are invalid codes in here? ;___;
0non-cybersec
Reddit
Does Instagram deactivate accounts or go straight to deletion if the account has been inactive for a long time?. <p>If I don't use instagram for a while, and don't deactivate my account, will instagram deactivate it for me after some period or time, or will they go straight to deletion? I did read that they may delete accounts that have been not used for a while, but I'm wondering if they first deactivate it and wait a period of time before they delete it.</p>
0non-cybersec
Stackexchange
Evaluate this integral : $\int \frac{e^{2x}-1}{e^{2x}+1}dx$. <p>$$\int \frac{e^{2x}-1}{e^{2x}+1}dx$$ I had this question for today's test and still can't find out how to do it. Any hint is appreciated. Thanks</p>
0non-cybersec
Stackexchange
Why are so few things @specialized in Scala&#39;s standard library?. <p>I've searched for the use of <code>@specialized</code> in the source code of the standard library of Scala 2.8.1. It looks like only a handful of traits and classes use this annotation: <code>Function0</code>, <code>Function1</code>, <code>Function2</code>, <code>Tuple1</code>, <code>Tuple2</code>, <code>Product1</code>, <code>Product2</code>, <code>AbstractFunction0</code>, <code>AbstractFunction1</code>, <code>AbstractFunction2</code>.</p> <p>None of the collection classes are <code>@specialized</code>. Why not? Would this generate too many classes?</p> <p>This means that using collection classes with primitive types is very inefficient, because there will be a lot of unnecessary boxing and unboxing going on.</p> <p>What's the most efficient way to have an immutable list or sequence (with <code>IndexedSeq</code> characteristics) of <code>Int</code>s, avoiding boxing and unboxing?</p>
0non-cybersec
Stackexchange
This Will Give You Nightmares~!.
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
Replacing a 3 Way Switch with unlabeled wires. I have 2 3 way switches hooked up to a light in my hallway. Currently, they do not work the way 3 way switches should. The wires are not color coded, they are all black. I know how to install a 3 way switch when i know what ground, neutral and hot are, however there is no way to tell by looking at them. Since they dont work as they should, they obviously arent wired the right way, so i cant just replace the switches with new ones and wire them identical. What is the best way to test these wires to see which is which?
0non-cybersec
Reddit
Vincent van Gogh's shoes - an inspirational album. http://imgur.com/a/KIJYa
0non-cybersec
Reddit
For centuries, a massive grapevine has grown on the northern end of Roanoke Island, and long ago came to be called the Mother Vine. Then a utility contractor sprayed it with weedkiller. .
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
Switching from version 4.3.11.Final to 5.0.1.Final causes compilation error. <p>I am trying to upgrade my Hibernate version from</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt; &lt;version&gt;4.3.11.Final&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>to</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt; &lt;version&gt;5.0.1.Final&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>Unfortunately by compiling I get the following error.</p> <blockquote> <p>TestDao.java:[5,25] cannot find symbol</p> <p>[ERROR] symbol: class Transactional</p> <p>[ERROR] location: package javax.transaction</p> </blockquote> <p>I have been struggling with it for over an hour now.</p> <p>I have tried adding package <code>spring-tx</code> but it did not help.</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-tx&lt;/artifactId&gt; &lt;version&gt;4.2.1.RELEASE&lt;/version&gt; &lt;/dependency&gt; </code></pre> <p>Did anyone face a similar issue?</p>
0non-cybersec
Stackexchange
What vendor supports the trill protocol?. <p>I would like to know what manufacturers support trill and on what platforms specific. </p> <p>I am especially interested in Cisco platforms. </p> <p>I can't find to much information on the internet about it other than the fact that nexus series are capable of running trill.</p>
0non-cybersec
Stackexchange
Alignment of multiple elements with indentation. <p>I'm trying to typeset an optimization problem that uses variable conditioned constraints (vif) in combination with normal constraints. My current syntax (of a part of the problem) is </p> <pre><code>\begin{align*} \max \sum_{i \in I} z_i \\ \text{subject to} \\ x_i^0 &amp;= x_i^{\text{start}} &amp;&amp;\forall i \in I, \\ l_i^t + r_i^t + c_i^t &amp;= 1 &amp;&amp;\forall t = 0,...,N-1, i \in I, \\ \text{vif } v_i^t = 1 \text{ then} \\ x_j^t - x_i^t &amp;\leq \epsilon \\ \text{else} \\ x_j^t - x_i^t &amp;\geq \epsilon + \hat{\epsilon}\\ \text{end} &amp;&amp;&amp;\forall t=0,...,N-1, i,j \in I: i &lt; j, \\ k_i^t &amp;= \sum_{j \in I \setminus \{i\}} v_{\min(i,j),max(i,j)}+1+c_i^t &amp;&amp;\forall t=0,...,N-1, i \in I, \\ \end{align*} </code></pre> <p>which displays <a href="https://i.stack.imgur.com/qo5Dj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qo5Dj.png" alt="misplaced end and else"></a></p> <p>I would like to have the <code>else</code> and the <code>end</code> aligned to the left (like the <code>vif</code> is already) while maintaining the slight indent for the line underneath the <code>vif</code>. If I try to put an ampersand in front of the <code>else</code> or <code>end</code> however, I cannot manage to align the other equations around the <code>=</code> or <code>\geq</code> signs properly. A satisfactory result would look roughly like this (I edited the picture) <a href="https://i.stack.imgur.com/XCJA3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XCJA3.png" alt="edited picture"></a> </p> <p>How can such indentation be achieved while keeping the constraints aligned in this way?</p>
0non-cybersec
Stackexchange
My kids put their dolls glasses on him. I'm having a good laugh at this one..
0non-cybersec
Reddit
Traveling by Couchette is a way many people keep down the cost of accommodation and not wake up with a crick in your neck..
0non-cybersec
Reddit
Any suggestions on a fast paced, 2-4 player game with Free-For-All or Co-Op?. I like to play with a fairly small group consisting of myself and younger brothers. They get bored playing long games like "Betrayal at House on the Hill" so I'm looking for a rather fast paced game where you have to kill everyone or work together at some point. I do have "Cutthroat Caverns" which isn't too bad.
0non-cybersec
Reddit
cd to a directory and execute many commands. <p>I have following script. </p> <pre><code>#!/bin/bash mount /dev/sda6 /mnt/gentoo set +e cd /mnt/gentoo &amp;&amp; mount -t proc none /mnt/gentoo/proc \ &amp;&amp; mount --rbind /dev /mnt/gentoo/dev \ &amp;&amp; mount --rbind /sys /mnt/gentoo/sys \ &amp;&amp; chroot /mnt/gentoo /bin/bash \ &amp;&amp; source /etc/profile \ &amp;&amp; export PS1="(chroot)$PS1" </code></pre> <p>What I am trying to accomplish here is to change to a directory <code>/mnt/gentoo</code> and execute few commands. This works ok first time when none of the path were mounted. But if I run it after mounting has been successfully performed on some paths, it does not continue and stops on first failure. I want all commands to be executed even if mount is failing due to 'already mounted' error. How can I do this? </p> <p>Also is there a better way than combining all these commands together in one line? </p>
0non-cybersec
Stackexchange
Quantifying Orgs Security Position.
1cybersec
Reddit
Caterham Seven spotted in Utah! My dream car is finally stateside!. [This](http://gfycat.com/BareEnlightenedHoiho) was in Utah just north of SLC. I cant wait to see more of these around. They are definitely a cool car.
0non-cybersec
Reddit
Bending arrows in Tikz. <p>In <code>Tikz</code>, I would like to bend an arrow like the one between <code>$H_2O$</code> and <code>$O_2$</code> in this figure:</p> <p><img src="https://i.stack.imgur.com/1D1So.gif" alt="enter image description here"></p> <p>I'm able to have a bended line between <code>$H_2O$</code> and <code>$O_2$</code>, but it's not touching the photophosphorylation node…</p> <p>How can I do that?</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 I run startx via SSH?. <p>I have a computer with a monitor and network connection, but no keyboard.</p> <p>When I turn on the computer, the screen shows virtual terminal number 1 (VT1).</p> <p>Is there a way to run startx on VT1 through SSH?</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
Turning off &quot;created by&quot; stamp when generating files in IntelliJ. <p>I can't find an option for this. For example, when I create a new Scala class, this text is placed in the file:</p> <pre><code>/** * Created by ben on 6/23/14. */ </code></pre>
0non-cybersec
Stackexchange
Randomize number on click but never the same number. <p>I want to random a number on clicking <code>button</code> but I don't want same numbers to be randomized any solutions?</p> <pre><code> $('button').click(function(){ var nomeri = Math.floor(Math.random() * 100); } </code></pre> <pre class="lang-html prettyprint-override"><code>&lt;button&gt;დამაკლიკე&lt;/button&gt; </code></pre>
0non-cybersec
Stackexchange
Ex cons what is the most fucked up thing about prison that nobody knows about?.
0non-cybersec
Reddit
JPA/EclipseLink: Does EntityManager.getTransaction() create a new transaction or return the active one?. <p>I am using EclipseLink 2.3.0. I have a method that I am calling from a unit test (hence outside of a container, no JTA) that looks like this:</p> <pre><code>EntityManager em = /* get an entity manager */; em.getTransaction().begin(); // make some changes em.getTransaction().commit(); </code></pre> <p>The changes were NOT being persisted to the database, and looked at this for a long time and finally realized that EntityManager.getTransaction() is actually returning a NEW EntityTransaction, rather than the same one in both calls. The effect is that the first call creates a new transaction and begins it, and the second call creates ANOTHER transaction and commits it. Because the first transaction was never committed, the changes are not saved. We verified this like this:</p> <pre><code>log.info(em.getTransaction().toString()); log.info(em.getTransaction().toString()); </code></pre> <p>Which resulted in these log messages:</p> <pre><code>INFO: org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl@1e34f445 INFO: org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl@706a4d1a </code></pre> <p>The two different object ID's verifying that there are two different instances. Changing the code to this:</p> <pre><code>EntityManager em = /* get an entity manager */; EntityTransaction tx = em.getTransaction(); tx.begin(); // make some changes tx.commit(); </code></pre> <p>... remedied the problem. Now when I run the code, I see the SQL statements generated to do the database work, and looking in the database, the data has been changed.</p> <p>I were a bit surprised by this outcome, since I have seen numerous code examples online (for JPA generally and for EclipseLink specifically) that recommend the code we used for managing transactions. I searched far and wide for information specifically about this but have not found anything. So what's going on?</p> <p>I looked in the JPA spec for something that specifies exactly what getTransaction() does and it was not specific if the transaction is new or the same. Is there a setting in persistence.xml that controls this? Is the behavior specific to each implementation of the JPA spec?</p> <p>Thanks so much for any information or guidance.</p>
0non-cybersec
Stackexchange
Shots fired!.
0non-cybersec
Reddit
It hurts to care and value certain people and not get the same amount in return.. By this I'm not referring to my family; they love care and support me. Though lately, I've been around some people who I care about, and value their thoughts but in return they put what I think beneath other people as if I'm a second choice or what I think isn't as equally important as someone else in their life. I'm not trying to be conceited, or looking for pity. I'm just saying that sometimes it really hurts to care about people who don't care as much about you.
0non-cybersec
Reddit
Re-position windows when going from two screens to one. <p>So long story short, at work I use my MacBook Pro and I connect it to another, bigger monitor. I use a shared screen setup so I can drag windows back and forth between the two monitors, but when I get home I use the Mac by itself, with no external display. </p> <p>When I leave work, I never really turn off my MacBook Pro. I just disconnect the cable that connects the laptop to the monitor, close the Mac, and leave.</p> <p>The problem is that when I get home and open the Mac, the windows that were on the external monitor while at work now are off-screen. (I can for example see a tiny bit of the side of the window, so it is hard to grab said window to move it into the middle of my laptop's internal display.)</p> <p>Is there a way/setting/method so that when I disconnect the second screen, everything that was on the external screen moves fully to the MacBook Pro screen?</p> <p>For example on my home workstation, I run a 3 monitor Windows setup and as soon as any of those are disconnected, all that monitor's assets are shifted to the main screen. I'm wondering if apple has anything similar.</p> <p><strong>EDIT</strong>: another thing that's a bit annoying is that if I enlarged a window on the bigger monitor and drag it from the side to the center when going from 2 screens to 1, I sometimes have to resize with the resize handle on the bottom-right. When that's off-screen, I have to close the window and reopen it.</p>
0non-cybersec
Stackexchange
Rejoin words breaked by hyphen and double newline characters. <p>I have converted some PDF files to text by Calibre. Sample text as below:</p> <pre><code>The booming population, coupled with a development strategy pre- mised on high levels of investment, meant that an increasingly large pop- ulation would be condemned indefinitely to living standards barely above subsistence level. </code></pre> <p>I just want to combine words "premised" and "population", the pattern should be "-\n\n". But I can't replace the words by <code>perl -p -e 's/-\n\n//</code> or <code>tr -d '\-\n\n'</code> in the case where two newline characters follow the hyphen character. Any ideas?</p>
0non-cybersec
Stackexchange
A question on linear transformation. <p>Let $T$ be a linear transformation on $\mathbb{R}^{4}$ whose standard matrix is $$\left(\begin{array}{rrrr} 1 &amp; -1 &amp; -1 &amp; -1\\ 1 &amp; 1 &amp; 1 &amp; -1\\ 1 &amp; 1 &amp; -1 &amp; 1\\ 0 &amp; 0 &amp; 0 &amp; 0 \end{array}\right).$$ Does there exist a $3$-dimensional subspace of $\mathbb{R}^{4}$, $V$, and a linear transformation $S$ on $\mathbb{R}^{4}$ such that $S(\mathbf{v})=T(\mathbf{v})$ for all $\mathbf{v}\in V$ and $\left\Vert S(\mathbf{x})\right\Vert _{1}\le2$ for all $\mathbf{x}\in\mathbb{R}^{4}$ with $\left\Vert \mathbf{x}\right\Vert _{1}=1$?</p> <p>Thanks in advance for any helpful answers.</p>
0non-cybersec
Stackexchange
Installing JDK on 16.04 problem. <p>I am trying to install JDK 8 or 9, can't get either to work, so that I can use my laptop for my Java class. When I try to install it I get an error to install. This is what I have done so far: </p> <pre><code>sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java9-installer </code></pre> <p>and I get an error:</p> <pre class="lang-none prettyprint-override"><code>download failed Oracle JDK 9 is NOT installed. dpkg: error processing package oracle-java9-installer (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oracle-java9-installer E: Sub-process /usr/bin/dpkg returned an error code (1) </code></pre> <p>I've tried everything that I could find to remedy this but it all looked to be the same. This happens with version 8 or 9. Once I get this going I plan to install jGrasp since that is what I am familiar with and don't plan on any major programming.</p>
0non-cybersec
Stackexchange
Excel - Name Comparison. <p>I read an answer from a post submitted five years ago. In that post the individual was trying to compare the names in one spreadsheet with those in another spreadsheet and flag the differences. In that case the first and last names were in two separate columns. The poster identified the spreadsheets as F1 and F2. The formula looked pretty straight forward, but my confusion was with the name of the spreadsheets. Were they named that way for ease in setting up the formula? I have my lists in two spreadsheets in one workbook—I can change the names on the spreadsheets if necessary. Thanks for any help you can give me.</p>
0non-cybersec
Stackexchange
Making Noodles by Hand - No matter how many times I see it, it still amazes..
0non-cybersec
Reddit
What happens with my pc with RAID 1 just after a single hdd failure?. <p>I just was wondering what would happen immediately after a hdd failure occurs in a hardware raid 1 array? Will the pc continue to work with only one hdd? </p>
0non-cybersec
Stackexchange
Fellow Ents, can you pull all of these expressions?.
0non-cybersec
Reddit
KasbaH - Divane.
0non-cybersec
Reddit
Sony Xperia XZ1 Compact review: the triumphant return of the compact - Hardware reviews.
0non-cybersec
Reddit
Startup Repair-&quot;Windows cannot repair this computer automatically&quot;. <p>My windows would not start, so I put in my windows disk and started windows repair. But then I got this error message... Sorry for bad English please help me, I am using Windows 7 proffessional 64 bit by the way. This is what I found in the problem detais:</p> <pre><code>Problem signature: Problem Event Name: StartupRepairOffline </code></pre> <p>PS. I already did <code>chkdsk</code> and <code>sfc /scannow</code> in the command line, did not work.</p>
0non-cybersec
Stackexchange
The Beatles... new drawing.
0non-cybersec
Reddit
Given AB=BA then A is diagonizable iff B is diagonalizable.(True/False). <p>Let <span class="math-container">$A$</span> and <span class="math-container">$B$</span> be two <span class="math-container">$n\times n $</span> matrices in <span class="math-container">$\mathbb{M_n}($$\mathbb{R}$</span>) such that <span class="math-container">$AB=BA$</span> ,then prove or disprove </p> <blockquote> <p><span class="math-container">$A$</span> is diagonizable over <span class="math-container">$\mathbb{R}$</span> if and only if <span class="math-container">$B$</span> is diagonalizable over <span class="math-container">$\mathbb{R}$</span></p> </blockquote> <p>Solution Ii tried - Given that <span class="math-container">$A$</span> is diagonalizable then it implies <span class="math-container">$$A=PDP^{-1},$$</span>where <span class="math-container">$P$</span> is an invertible matrix.Now by using this we have to prove that <span class="math-container">$B$</span> is also diagonalizable (don't know whether this is true or false )</p> <p>I am stuck here how to use this information to prove or disprove this statement.</p> <p>Please Help</p> <p>Thankyou.</p>
0non-cybersec
Stackexchange
Pointwise convergence if and only if $\|f_n-f\| \to 0$. <p>Is there a norm in the C[0,1] space function such that this happens?</p> <p>$ f_n(x) \rightarrow f(x) $ if and only if $ \|f_n - f\| \rightarrow 0$</p> <p>Whene $f_n$ is a function sucession, and $ f_n(x) \rightarrow f(x) $ means Pointwise convergence</p>
0non-cybersec
Stackexchange
FUCK that guy.
0non-cybersec
Reddit
[OC][Art]A while ago I converted and painted some models for our party: Dwarf Cleric, Dwarf Bard, Gnome Artificer and Half-Orc Paladin!.
0non-cybersec
Reddit
Recyclerview(Getting item on Recyclerview). <p>I've implemented SearchView + Recyclerview using this on github. <a href="https://github.com/Wrdlbrnft/Searchable-RecyclerView-Demo" rel="noreferrer">GITHUB</a><br> My next step is to get the item on selected part on the recyclerview.<br> Then I saw some code getting the child on recyclerview.<br> The code is working when the getChildAt(index) =0.<br> But when i put on index=12 or greater than that.<br> The program crashed. </p> <pre><code>mRecyclerView.setAdapter(mAdapter); mRecyclerView.addOnItemTouchListener( new RecyclerItemClickListener(getContext(), new RecyclerItemClickListener.OnItemClickListener() { @Override public void onItemClick(View view, int position) { final int valueThisIteration = position; mRecyclerView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { TextView textViewDrawerTitle = (TextView) mRecyclerView.getChildAt(valueThisIteration).findViewById(R.id.tvText); textViewDrawerTitle.setText("Checked"); mRecyclerView.getViewTreeObserver().removeGlobalOnLayoutListener(this); } }); } }) ); </code></pre> <p>And im getting this error.</p> <pre><code>11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: FATAL EXCEPTION: main 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: Process: com.thesis.juandirection.juandirectionfinale, PID: 1629 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at com.thesis.juandirection.juandirectionfinale.fragments.FragmentSearch$1$1.onGlobalLayout(FragmentSearch.java:94) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:815) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1867) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:580) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:550) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5221) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) 11-04 09:36:02.818 1629-1629/? E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) </code></pre>
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
How to direct the mouse wheel input to control under cursor instead of focused?. <p>I use a number of scrolling controls: TTreeViews, TListViews, DevExpress cxGrids and cxTreeLists, etc. When the mouse wheel is spun, the control with focus receives the input no matter what control the mouse cursor is over.</p> <p>How do you direct the mouse wheel input to whatever control the mouse cursor is over? The Delphi IDE works very nicely in this regard.</p>
0non-cybersec
Stackexchange
DIY Minimal and clean room decor.
0non-cybersec
Reddit
Where does jest localStorage implementation come from?. <p>I've created a small node app:</p> <pre><code># package.json { "name": "testapp", "version": "1.0.0", "main": "index.js", "scripts": { "test": "jest" }, "devDependencies": { "jest": "^24.9.0" } } # index.test.js test('localStorage', () =&gt; { localStorage.setItem('foo', 'bar'); expect(localStorage.getItem('foo')).toBe('bar'); }); </code></pre> <p><code>npm test</code> runs without errors.</p> <p>Searching on StackOverflow for "localStorage jest" leads to questions that deal with mocking <code>localStorage</code>; and I was under impression that Storage is a browser API that is not available in node. </p> <p>So how come this works?</p>
0non-cybersec
Stackexchange
[Image] A month ago GetMotivated rallied behind Jared and had an outpouring of support for him.You guys have literally changed his life with your positive thoughts!.
0non-cybersec
Reddit
Empty museum exhibit.
0non-cybersec
Reddit
How did early programming (on crude display resolutions) work out in nations with very complicated letters?. Or have all the programming languages always been in Latin writing system?
0non-cybersec
Reddit
I am a VIP at GameStop expo, who has played bf4, TITANFALL, zoo tycoon, forza 5, kinect sports rivals, and had a LOT of hands on time with the controller. AMA. Title says all, AMA. Edit: http://i.imgur.com/FOn0ViR.jpg http://i.imgur.com/sZzcl9k.jpg http://i.imgur.com/sUqazYA.jpg More coming. Edit 2: http://youtu.be/_jWwcrPQAGo
0non-cybersec
Reddit
DVD not found error while kickstart installation on RHEL 6.5/6.4. <p>I want <code>ks.cfg</code> on dvd itself to keep everything at same place.</p> <p>Content of <code>isolinux/isolinux.cfg</code></p> <pre><code>label ks menu label ^Kickstart kernel vmlinuz append initrd=initrd.img ks=cdrom:/ks.cfg </code></pre> <p>And <code>ks.cfg</code> is on top <code>/</code> of cdrom. but when actual installation starts it says disk not found in any of cdrom. I am creating iso with following command, </p> <pre><code>mkisofs -o $ISO_NAME -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -l -r -T -v . </code></pre> <p>I tried with creating new dir <code>/ks/ks.cfg</code> but it is also not working</p>
0non-cybersec
Stackexchange
Two little girls just walked into the hotel that I work at and gave me this. .
0non-cybersec
Reddit
Gimbal or Steadicam ideas for iPhone 6+?. Anyone using anything to further steady the image for more professional video?
0non-cybersec
Reddit
Excel 2016: How to remove single axis label or gridline from chart?. <p>I have a line chart in Excel where the vertical axis is below 0 as some values of my graphs are negative. I have a label at -2.0%. The problem is the associated horizontal line at -2.0% intersects with the horizontal axis labels. </p> <p>Is it possible to remove this line while letting all others remain? Or can I remove a single axis label (including its line)? </p> <p>My workaround right now is to change the scale because the only other alternative I see is to have the labels above the chart, which is not what I want. </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
How to create dual mode usb liux, bootable and startable directly from a Windows OS as virtual machine. <p>I have found many tutorials about create a bootable live Linux image, but I whant to create a very particular USB-linux pendrive that allows me </p> <ol> <li><p>-to boot Linux image using the native harware if started at boot time (so not virtualized)</p></li> <li><p>-to use the remaining space for storage purpose on Windows (so not formatted with ext filesystem)</p></li> <li><p>-to start as virtualized OS if I try to start it from another already started OS eg Windows</p></li> </ol> <p>The distro that I have choosen for the installation on the pendrive is Kali, but I don't know how to do all this.</p> <p>Someone could help me? Thanks</p>
0non-cybersec
Stackexchange
BibTeX: Putting a \href around a title leads to unwanted use of &quot;title style&quot; (instead of the desired &quot;sentence style&quot;). <p>I'm trying to have titles link to articles in bibliography entries by putting a <code>\href</code> around them that with the link. However, when I do this, it results in words in the title not getting properly put in lower case. An obvious solution would be to just put the titles in the bib file with the capitalization called for by the bibliography style, but I was wondering if there's a simple way to make BibTeX format the titles as it does normally without having to fix the titles by hand.</p> <p>MWE:</p> <pre><code>\documentclass{article} \usepackage{natbib} \usepackage{hyperref} \begin{filecontents}{my.bib} @unpublished{Sample, Author = {Sample}, Title = {\href{}{A Title in Title Case}}, Year = {0000}, Note = {Note} } \end{filecontents} \begin{document} \bibliographystyle{plain} \nocite{Sample} \bibliography{my} \end{document} </code></pre> <p>This produces undesired capitalization:</p> <p>[1] Sample. A Title in Title Case. Note, 0000.</p> <p>Leaving out the \href in the title produces the desired capitalization: </p> <p>[1] Sample. A title in title case. Note, 0000.</p>
0non-cybersec
Stackexchange
[advice] I [23F] have recently started seeing a guy who said he has HPV. I just started seeing this guy that I really like, we've been friends for a long time and have recently hit it off. I was driving him to the airport when we finally had the chance to have a good talk and he amitted that he has HPV. He seemed very nervous and anxious to tell me, however I didn't know how to respond. I am a 23 year old female with no STI history, and he has recently got out of a long term relationship. He said he hasn't told anyone except for his ex-girlfriend, and he told me because he felt as though this could be a deal breaker in our relationship since we have not slept together yet. I admitted that I really didn't know how this could be that big of an issue, and he said we could talk more about it at a different time. Can anyone offer any advice in this situation? Is this something that should be considered a deal breaker?
0non-cybersec
Reddit
Angry citizen tries as hard as he can to provoke two cops. Fails to get response he hoped for..
0non-cybersec
Reddit
Luis Nani's wife leaves Istanbul.. Original article below, I will translate. http://www.fotomac.com.tr/fenerbahce/2016/02/02/danielaya-ragmen-fenerde-kaldi Nani's wife Daniela saw the offer from China as a oppurtinity and said "Let's go". But Nani, despite the 10 million Euro a year offer and pleads from his wife, said, I will not leave until I make Fenerbahce Champions, and stayed in Istanbul. Daniela got mad and left Istanbul This was not Nani's first sacrifice to play for Fenerbahce. During the transfer peroid, Daniela tried to stop Nani and said "I dont want to live in Istanbul", while Nani tried his best, he could not convince her. At which point the teams sporting director Giuliano Terraneo stepped in and went to visit the couple during their vacation in Spain. He was able to convince Daniela, and the transfer was finalized. But Daniela kept on complaining after moving to Istanbul. She would keep bothering him about leaving Istanbul. Nani told her "I have a promise to the president of the club, I told him I will not leave until I make this club Champions." Nani did exactly what he said he would, and stayed at Fenerbahce. Daniela with her sons, left Istanbul Friday night and headed to Portugal. Nani is now living alone in Istanbul. While Nani chose to stay at the club despite getting into a fight with his wife, he has earned the respect and hearts of the Fenerbahce supporters one more time. Nani said "I will not leave Fenerbahce down on its face. Let's be champions, we can talk about the future later. If the club wants me to leave, than I will think about it" I personally think his wife is being a ass. Istanbul is a beautiful city. I hope this does not affect him on the pitch considering he is our best player at the moment. I give him kudos for being a man and not giving into his wife. Most players would leave in a heart beat if some club offered them 10 Million euros a year.
0non-cybersec
Reddit
Cisco 12.4 ACL with DHCP-obtained address. <p>I figured this would be an easy one, but I've had a good amount of trouble finding this answer myself. I have a Cisco router that I'm setting up to have my Internet connection on one interface (external) that obtains an IP via DHCP, and my LAN on another interface (internal) that has an internal static IP. I also have port 80 forwarded to an internal address (using "ip nat inside source static...interface fa0/0...). </p> <p>Everything works properly, but I have a question about the ACL I am applying inbound to the external interface. I currently have this: "permit tcp any any eq www". This works, but I am wondering if this is secure. Typically I would specify the external IP to match more specifically, but I don't necessarily have the IP since it's learned via DHCP. Is there a way to accurately specify this, or is this permit line appropriate.</p>
0non-cybersec
Stackexchange
Existence of a prime number between $x$ and $y$ if $\operatorname{li}(y) - \operatorname{li}(x) = 1$. <p>Is between $x$ and $y$ ($x &lt; y$), there is always at least one prime number (or exactly one?) if $\operatorname{li}(y) - \operatorname{li}(x) = 1$?</p>
0non-cybersec
Stackexchange
Vertically aligning divs around a floated left div. <p><a href="https://i.stack.imgur.com/oTer0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oTer0.png" alt="3 divs" /></a></p> <p>Is there a way in css to align 3 divs (as shown), where the first is floated left and the container height = that div height (+ padding), and the second and third combined are vertically aligned in the container?</p> <p>I tried <a href="https://jsfiddle.net/c2f1q65a/1/" rel="nofollow noreferrer">this</a> but couldn't quite get there.</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>.x { width: 100%; height: 56px; display: flex; flex-wrap: wrap; align-items: center; } .x&gt; :nth-child(1) { display: block; float: left; width: 48px; height: 48px; border-radius: 50%; border: solid 1px #333333; margin: 4px 16px 4px 4px; } .x&gt; :nth-child(2) { font-size: 12pt; } .x::after { content: ''; width: 100%; } .x&gt; :nth-child(3) { font-size: 10pt; font-weight: 600; order: 1; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="x"&gt; &lt;div&gt;&lt;/div&gt; &lt;div&gt;Line 1&lt;/div&gt; &lt;div&gt;Line 2&lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p> <p>I'd prefer to drop the sizing from the first div and allow that to happen automatically if possible</p>
0non-cybersec
Stackexchange
Should I delete my Yahoo! account?. <p>NBC News is running this story: "<a href="http://www.nbcnews.com/nightly-news/video/experts-don-t-delete-your-yahoo-account-despite-1b-being-compromised-834294339939" rel="noreferrer">Experts: Don't Delete Your Yahoo! Account</a>". According to the story, if your account's email is linked to your online banking account, deleting your account will allow a hacker to recreate it; so instead, you should change the password and security questions.</p> <p>They didn't say what experts they consulted or quote any famous security gurus. Has this vulnerability ever been exploited in the wild? Is this sound advice?</p>
1cybersec
Stackexchange
In his prime, nobody could ever touch John Carpenter.. The only one who comes close is Dario Argento. But in his prime, John Carpenter delivered NO bad movie, and that is something not many directors accomplished. His movie streak from 76 to 88 is stellar. Also including non horror but oh well, he's a horror director mainly. I mean look at it. Look at THIS. 1976 Assault On Precinct 13, 1978 Halloween, 1980 The Fog, 1981 Escape From New York, 1982 The Thing, 1983 Christine, 1984 Starman, 1986 Big Trouble In Little China, 1987 Prince Of Darkness, 1988 They Live Bonus 1994 In The Mouth Of Madness This list of movies ranges from masterpieces (Halloween, The Fog, The Thing, In The Mouth Of Madness) over great films (Big Trouble, Escape From New York) to good films (Assault, Christine, Starman, Prince Of Darkness, They Live) at worst. Tell me anyone who can rival that or even top it. TELL ME. I'm binging Carpenter atm, so it really made me realize how fantastic this man is. Fuck I'm hyped. I appreciate his work so much.
0non-cybersec
Reddit
How is tamper-proofing of software evaluated for effectiveness?. <blockquote> <p>How is tamper-proofing of software evaluated for effectiveness?</p> </blockquote> <p>I've been implementing a few algorithms listed within <em>Surreptitious Software: Obfuscation, Watermarking, and Tamperproofing for Software Protection</em>. The algorithms include tamper-proofing of software by means of introspection (or computing a hash at runtime over some region of code).</p> <p>However, nothing is said about the evaluation of such tamper-proofing algorithms: How are they compared to each other and how are their effectiveness measured?</p> <p>Searching Google, I've come across few articles discussing the subject. One of the articles made an emperical evaluation, where they asked "hackers" to break their implementation and then measured the time taken.</p> <p>Does anyone know how to evaluate tamper-proofing at a theoretical level?</p>
0non-cybersec
Stackexchange
Kony level: solved..
0non-cybersec
Reddit
Proving if $A \subseteq B$ and $A \nsubseteq C$ then $B \nsubseteq C$. <p>This is one of the problem I have been solving in Velleman's How to prove book:</p> <blockquote> <p>Prove that if $A \subseteq B$ and $A \nsubseteq C$ then $B \nsubseteq C$</p> </blockquote> <p>This is my solution:</p> <blockquote> <p>Suppose $A \subseteq B \cap A \nsubseteq C$. Let x be an arbitrary element in A. From $x \in A$ and $A \subseteq B$, it follows that $x \in B$. From $x \in A$ and $A \nsubseteq C$, it follows that $x \notin C$. Therefore, $x \in B$ and $x \notin C$. Since x is arbitrary, $B\nsubseteq C$.</p> </blockquote> <p>This is the solution given in the book:</p> <blockquote> <p>Suppose that $A \subseteq B$ and $A \nsubseteq C$. Since $A \nsubseteq C$, we can choose some $a \in A$ such that $a \notin C$. Since $a\in A$ and $A \subseteq B$, $a \in B$. Since $a \in B$ and $a \notin C$, $B \nsubseteq C$.</p> </blockquote> <p>The book uses existential quantification to prove it but I assume x as arbitrary and prove that. Is there some flaw in my way of thinking ?</p>
0non-cybersec
Stackexchange
How does proxylist sites discover new proxy?. <p>I always got proxies from proxylist websites but I never asked me how these sites discover new proxy. So how?</p>
0non-cybersec
Stackexchange
Balmain x H&M Price Breakdown.
0non-cybersec
Reddit
For those of you who don't like Reddit Sync v8: Reddit Sync Classic.
0non-cybersec
Reddit
NAT and ACL order - Cisco ASA, Palo Alto, Checkpoint. <p>I've recently begun working with firewalls (Different brands) and what really confuses me is the order the different firewalls check the ACL and NAT rules.</p> <p>For instance, allow HTTP traffic from the internet to a webserver on a LAN:</p> <ul> <li>Public IP: 1.1.2.2</li> <li>Privat IP: 192.168.1.2</li> <li>Destination port: 80</li> <li>NAT the public IP-address 1.1.2.2 to 192.168.1.2</li> </ul> <p>On some firewalls the ACL allows traffic from the internet to the webserver defining the LAN IP-address as the destination:</p> <ul> <li>ACL: outside-in</li> <li>Allow</li> <li>Interface: Outside</li> <li>Source: any</li> <li>Destination: 192.168.1.2</li> <li>Port: 80</li> </ul> <p>But I sometimes see the public IP-address instead:</p> <ul> <li>ACL: outside-in</li> <li>Allow</li> <li>Interface: Outside</li> <li>Source: any</li> <li>Destination: 1.1.2.2</li> <li>Port: 80</li> </ul> <p>In what order does the different brands of firewalls check NAT rules and the ACL's? Is there a difference between versions on the same type of firewall?</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
Magnetic suspension bulb.
0non-cybersec
Reddit
Upgrading through every version of Mac OS. [https://youtu.be/l1vW0cOAfro](https://youtu.be/l1vW0cOAfro) Did this in August and thought that this should go here.
0non-cybersec
Reddit
A modular equation of 19th degree of Dedekind’s $\eta$ function.. <p>Regarding the Post <a href="https://math.stackexchange.com/questions/3101157/additional-values-of-dedekinds-eta-function-in-radical-form">Additional values of Dedekind&#39;s $\eta$ function in radical form</a> I wrote the equation that has as root the value <span class="math-container">$\frac{\eta(19i)}{\eta(i)}$</span> that is missing.</p> <p>Can someone help me solve (in radical form) the following equation, whose solution is the value of Dedekind’s modular <span class="math-container">$\frac{\eta(19i)}{\eta(i)}$</span> function?</p> <p><span class="math-container">$x^{40}-\frac{4}{19}x^{36}+\frac{138}{ 19^{3}}x^{32}-\frac{154}{19^{4}}x^{28}+\frac{41035}{19^{7}}x^{24}-\frac{359820}{19^{9}}x^{20}+\frac{1743935}{19^{11}}x^{16}-\frac{4798430}{19^{13}}x^{12}+\frac{16921266}{19^{15}}x^{8}+\frac{422140}{19^{17}}x^{4}-\frac{1}{19^{19}}=0$</span></p> <p>where</p> <p><span class="math-container">$$x=\frac{\eta(19i)}{\eta(i)}.$$</span></p> <p>This equation comes from the work of L. Kiepert and specializes for the value reported in the title of the application. My intent is to find the solution in closed form. </p>
0non-cybersec
Stackexchange
Father Son arrested in Brunswick.
0non-cybersec
Reddit