text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
The Witcher 2 EE - Xbox 360 | Dev Diary #0: The Beginning.
0non-cybersec
Reddit
Socket.io SSL error. <p>I'm trying to secure my web-site</p> <p>Everything was ok until I've finally installed SSL certificate (from CloudFlare, not a self-signed one)</p> <p>So the problem is: when I'm opening my site via HTTP - everything works perfectly, but when I'm opening it via https - site is losing connection to the host (it's needed to work)</p> <p>In console I can see: </p> <blockquote> <p>socket.io-1.4.5.js:1 GET <a href="https://188.226.131.219:8080/socket.io/?EIO=3&amp;transport=polling&amp;t=LlI-URk" rel="nofollow noreferrer">https://188.226.131.219:8080/socket.io/?EIO=3&amp;transport=polling&amp;t=LlI-URk</a> net::ERR_CONNECTION_CLOSED</p> </blockquote> <p>If I understood correctly here is a problem with ports. Using HTTP port 80 is ok and using https port 443 has problems. Is there any way to swap ports?</p>
0non-cybersec
Stackexchange
Portugal coach Carlos Queiroz banned for six months.
0non-cybersec
Reddit
Arcade light switch..
0non-cybersec
Reddit
Cannot login to goodreads.com using Tor. <p>I am using the latest version of the Tor Browser Bundle. I have created an account for <a href="http://www.goodreads.com/" rel="nofollow">Goodreades</a>. After the account creation I was automatically logged in and was able to use the site. Today I tried to login again, but the screen just refreshes and nothing happens. At first I thought I had forgotten my password, but even after a password reset I was not able to login. I suppose this is a more general issue, then related to Goodreads. What settings should I change in order to be able to login?</p>
0non-cybersec
Stackexchange
Am I solving this question correctly?. <p>How can I evaluate the following term: $$\left((\{a,b\}\cup\{b,a\})\times(\{b,a\}\cap\{a,b\})\right)\setminus \left((\{b,a\}\setminus\{a,b\})\cup(\{a,b\}\times\{b,a\})\right)$$</p> <p>You can see the notes to my approach in this picture. Am I solving it correctly? <img src="https://i.stack.imgur.com/2xAwH.jpg" alt="enter image description here"></p>
0non-cybersec
Stackexchange
Linux returns “No space left on device” while copying data to a non-full USB flash drive. <p>I'm trying to copy a file to a USB flash drive. The drive does not have a write-protect switch.</p> <p><code>df</code> gives the following:</p> <pre><code>$ df -h . Filesystem Size Used Avail Use% Mounted on /dev/sde1 1.9G 622M 1.3G 33% /media/lindenb/803C-078D </code></pre> <p><code>df -i</code> produces strange output to me (0 everywhere)</p> <pre><code>$ df -i . Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sde1 0 0 0 - /media/lindenb/803C-078D </code></pre> <p>Number of files on the drive:</p> <pre><code>$ find . |wc -l 170 </code></pre> <p>But when I try to copy a file, I get this:</p> <pre><code>$ mv ~/file.txt ./ mv: cannot create regular file ‘./file.txt’: No space left on device </code></pre> <p>How can I fix this ?</p>
0non-cybersec
Stackexchange
Putting a Virtual Machine Between the Users and the Gateway. <p>Hello fellow superusers,</p> <p>I was thinking of installing Pepperspot (which is the dual stack IPv6/IPv4 version of Chillispot, which is essentially an appliance that authenticates people with a captive portal and does some accounting) on a virtual machine to act as a network access controller for a 100 Mb/s gateway. What I'm installing on this virtual appliance is really quite irrelevant. What I would like to know from you folks is what are the hardware requirements for a server to be able to pass 100 Mb/s through a virtual machine? pfSense recommends at least a Pentium 3 and a lot of RAM for 100 Mb/s connection, but how much slowdown should I expect because of virtualization? Should I not be trying this through a virtual machine? Has anyone run a large amount of bandwidth through a virtual machine before?</p> <p>I've left out my motivation for doing this for the sake of brevity, but let me know if this would help answer my question.</p> <p>P.S. I apologize if this is in the wrong Stack Exchange, I though it would be most appropriate to post here (instead of Server Fault) because it was related to hardware and did not involve any complex networking.</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&#39;t click on button element when nested inside of Div&#39;s?. <p>I have a <code>button</code> nested inside of 3 <code>div</code>'s. The innermost <code>div</code> where the <code>button</code> is nested has a higher <code>z-index</code> of all the other <code>div</code>'s. Still cannot click the <code>button</code>. What am I doing wrong?</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>* { font-family: 'Raleway', sans-serif; } #main { background: url('../image/bg2.jpg'); background-size: cover; background-position: center; height: 720px; width: 2000px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: -50px; position: relative; z-index: -50; } #content { z-index: -25; } #content h3 { font-size: 8rem; color: #fff; } #button { z-index: 99999!important; } .submain h3 { display: inline; padding: 25px; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!--Main--&gt; &lt;div id="main"&gt; &lt;div id="content"&gt; &lt;h3&gt;&lt;i class="fa fa-cogs" aria-hidden="true"&gt;&lt;/i&gt;DNS&lt;sup&gt;2&lt;/sup&gt;&lt;/a&gt;&lt;/h3&gt; &lt;div id="button"&gt; &lt;button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample"&gt;Learn More&lt;/button&gt; &lt;/div&gt; &lt;div class="collapse" id="collapseExample"&gt; &lt;div class="card card-block"&gt; Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras molestie dignissim lacus id tempus. Donec malesuada efficitur ultricies. Vestibulum nec lobortis est, quis efficitur nunc. Proin finibus, massa in pharetra tempus, velit ante dictum massa, eget porttitor arcu tellus eu orci. Quisque vitae ante lacus. In tortor purus, tristique nec felis ac, accumsan malesuada risus. Nam consectetur eget lacus vel condimentum. Donec in nisl volutpat, cursus arcu ac, mattis neque. Pellentesque metus nisi, maximus eget metus sed, tincidunt euismod nisl. Quisque sed ipsum imperdiet, semper quam ac, varius leo. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p>
0non-cybersec
Stackexchange
How do you escape from the ideological black hole of "not caring"?. Basically how do you stay motivated?
0non-cybersec
Reddit
Challenging RTMP stream. <p>I can't figure out how to download this RTMP stream. I got all the info here extracted from Firefox:</p> <pre><code> netstreambasepath=http://streamin.to/embed-stx1jx4ysd5a-828x480.html id=vplayer file=85/1612548173_n.flv?h=3kipfvn55tuzcg3h5eksbdvhzmsxwlhpsbk7m2ab3ybz34efqrdxpbba7ozq streamer=rtmp://95.211.214.98:1935/vod?h=3kipfvn55tuzcg3h5eksbdvhzmsxwlhpsbk7m2ab3ybz34efqrdxpbba7ozq skin=http://streamin.to/player/skin.zip duration=6173 controlbar.position=over volume=0 mute=true </code></pre> <p>I'm trying to use rtmpsrv following: </p> <p><a href="https://superuser.com/questions/528818/how-can-i-download-stream-videos-with-rtmp-protocol-from-harvard-extension-mor">How can I download stream videos with rtmp protocol? From Harvard Extension, more specifically</a></p> <p>I've tried :</p> <pre><code>rtmpdump.exe -r "rtmp://95.211.214.98:1935/" -y "85/1612548173_n.flv?h=3kipfvn55tuzcg3h5eksbdvhzmsxwlhpsbk7m2ab3ybz34efqrdxpbba7ozq" RTMPDump v2.3 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL WARNING: You haven't specified an output file (-o filename), using stdout Connecting ... INFO: Connected... ERROR: RTMP_ReadPacket, failed to read RTMP packet header </code></pre> <p>and</p> <pre><code>rtmpdump.exe -r "rtmp://95.211.214.98:1935/vod?h=3kipfvn55tuzcg3h5eksbdvhzmsxwlhpsbk7m2ab3ybz34efqrdxpbba7ozq" RTMPDump v2.3 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL ERROR: You must specify a playpath (--playpath) or url (-r "rtmp://host[:port]/playpath") containing a playpath </code></pre> <p>and</p> <pre><code>rtmpdump.exe -t "rtmp://95.211.214.98:1935/vod?h=3kipfvn55tuzcg3h5eksbdvhzmsxwlhpsbk7m2ab3ybz34efqrdxpbba7ozq" RTMPDump v2.3 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname </code></pre> <p>What am I missing here?</p>
1cybersec
Stackexchange
Continuous image of a closed and bounded set in a metric space is closed?. <p>I know that in metric space, continuous image of closed sets and continiuous image of bounded sets may not be closed or bounded. I am asking that if continuous image of a both closed and bounded set but not necessarily compact set is closed? Moreover, is it bounded? Thanks.</p>
0non-cybersec
Stackexchange
All posters to date in "numerical" order.👌🏻.
0non-cybersec
Reddit
I'll be queen of the world...after my snooze....
0non-cybersec
Reddit
How to solve $ \tan (m \theta) + \cos(n \theta) =0$. <p>$$ \tan (2m \theta) + \cos(2n \theta) =0 $$</p> <p>I am trying to solve this trigonometric equation of theta to get a general solution. </p> <p>I tried this question by using the substitutions $t_1= \tan(n\theta)$ and $t_2= \tan(m \theta)$.</p> <p>But i was not able to get a good answer.</p> <p>Any ideas ?</p>
0non-cybersec
Stackexchange
Merging circles. [GIF].
0non-cybersec
Reddit
pvmove to smaller drive?. <p>I am running on CentOS 7, lvm, with an XFS formatted root drive. As originally set up, the server had a single large root volume that contained both the OS and the data. The data has now grown, and I would like to move it off to a separate drive. This is simple enough, but at the end of the process it will leave a fairly large root drive almost empty. As this is a VM (proxmox server), and I would like to free up the host drive space, I want to "shrink" the root drive. So far the best procedure I have come up with is the following:</p> <ol> <li>Add a new, smaller, physical drive to the drive group </li> <li>Use <code>pvmove</code> to move the extents from the old drive to the new drive </li> <li>Remove the old physical volume and discard the image</li> </ol> <p>The problem I am having is with step 2: based on my knowledge, it will fail because there are fewer physical extents available on the new volume than are used on the old volume. I could move only a portion of the extents, but how do I know which ones actually contain the data? How can I best accomplish this?</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
Installing on a separate hard drive partition. <p>I have two hard drives on my computer, one SSD with windows (C:) and another for storing documents (F:). I created a free space on F: to install Ubuntu alongside Windows 7.</p> <p>Can you confirm my partition settings are correct ?</p> <p><img src="https://i.stack.imgur.com/i3jfQ.png" alt="enter image description here"></p> <p>Also what should I select for boot loader installation?</p>
0non-cybersec
Stackexchange
BTC-E API and determining volume for any time interval. <p>I've been logging data from BTC-E for a couple of months now and am writing my own charting app for personal use. I've been stumped for a while now on what the difference between "vol" and "vol_cur" is and how to determine the volume for any given interval I want (1min, 60min, 2month, etc):</p> <p><a href="https://btc-e.com/api/2/ltc_usd/ticker" rel="nofollow">https://btc-e.com/api/2/ltc_usd/ticker</a></p> <pre><code>{"ticker":{"high":11.976,"low":11.35,"avg":11.663,"vol":2147898.06418,"vol_cur":184074.26807,"last":11.35,"buy":11.35,"sell":11.32,"updated":1396883318,"server_time":1396883319}} </code></pre> <p>Subtracting the "vol" values from the end of my interval to the start sometimes yields negative numbers:</p> <pre><code>id | timestamp_open | timestamp_close | open | close | high | low | volume ----+---------------------+---------------------+----------+---------+----------+----------+-------------- 2 | 2014-02-15 18:00:00 | 2014-02-15 18:30:00 | 16.05385 | 15.9761 | 16.0675 | 15.9761 | -62044.90371 3 | 2014-02-15 18:30:00 | 2014-02-15 19:00:00 | 15.9761 | 16.049 | 16.05385 | 15.94642 | -40416.73599 4 | 2014-02-15 19:00:00 | 2014-02-15 19:30:00 | 15.94652 | 16.002 | 16.05385 | 15.935 | 32560.39743 5 | 2014-02-15 19:30:00 | 2014-02-15 20:00:00 | 16.002 | 16.05 | 16.05 | 16 | 31619.54125 6 | 2014-02-15 20:00:00 | 2014-02-15 20:30:00 | 16.03175 | 15.999 | 16.0532 | 15.9 | -10595.7155 7 | 2014-02-15 20:30:00 | 2014-02-15 21:00:00 | 15.999 | 15.997 | 15.999 | 15.94 | 61109.18234 8 | 2014-02-15 21:00:00 | 2014-02-15 21:30:00 | 15.997 | 16.132 | 16.25 | 15.997 | -33001.28287 </code></pre> <p>The price did not close down so it is not representative of volume indicative of selling; how do I properly calculate the volume for an interval?</p>
0non-cybersec
Stackexchange
Starting XI of Departures from A.C. Milan, courtesy of ESPNPressPass, woah..
0non-cybersec
Reddit
Create dashed intersections with labels using pgfplots and tikz. <p><strong>Problem:</strong></p> <p>I have several minor issues that I can not seem to be able to solve.</p> <ol> <li>Add and position labels to x/y-axis</li> <li>Add dashed intersections</li> <li>Show x/y-axis numbers for -1 and 1</li> </ol> <p><strong>Minimal Working Example (MWE):</strong></p> <pre><code>\documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{axis}[% axis on top = true, domain = -13:7, samples = 150, xmin=-13, xmax=7, ymin=-13, ymax=7, minor x tick num=4, minor y tick num=4, axis lines = middle, xtick distance = 5, xticklabel style = {font=\footnotesize}, yticklabel style = {font=\footnotesize}, xlabel = $x$, ylabel = $y$ ] \addplot[very thick, blue] {2*abs(\x-1)-3*abs(\x+2)} node[pos=-.7,left] {\footnotesize $y=|2x-1|-3|x+2|$}; \addplot[thick, red, dashed] (x,4); \end{axis} \end{tikzpicture} \end{document} </code></pre> <p><strong>Current output:</strong></p> <p><a href="https://i.stack.imgur.com/HBpfG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HBpfG.png" alt="enter image description here"></a></p> <p><strong>Desired output:</strong></p> <p><a href="https://i.stack.imgur.com/7dFtI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7dFtI.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
How to install the dynamic content compression component of IIS (both 6 and 7) non interactively?. <p>Any of the following goes as non interactive for me:</p> <ul> <li>Command line silent installation</li> <li>Script file</li> <li>Code (.NET, C, VB, whatever)</li> </ul> <p>Thanks.</p> <p><strong>EDIT</strong></p> <p>I'd like to stress, that I wish to install the module responsible for the dynamic content compression. This is different from configuring the dynamic content compression after the respective module has already been installed.</p>
0non-cybersec
Stackexchange
Gruber: Three Takeaways From Today’s WWDC Keynote.
0non-cybersec
Reddit
select only prefered dns servers on dhcp. <p>I am connecting to a number of wi-fi networks via the network-manager-applet</p> <p>For debugging purposes, I want to select my dns providers, so that no other dnd provider other than the ones selected is active.</p> <p>So I edited <code>/etc/dhcp/dhclient.conf</code>, adding the line</p> <pre><code>supersede domain-name-servers 8.8.8.8, 8.8.4.4; </code></pre> <p>And, sure enough, all ipv4 dns servers disappeared, except for those two</p> <p>Running <code>systemd-resolve --status</code>, I see</p> <pre><code>Link 3 (wlp1s0) Current Scopes: DNS LLMNR setting: yes MulticastDNS setting: no DNSSEC setting: no DNSSEC supported: no DNS Servers: 8.8.8.8 8.8.4.4 2804:14c:11:672:201:6:2:20 2804:14c:10:672:201:6:2:193 </code></pre> <p>However, two things still worry me. The DNS Servers still include some v6 addresses that I have not been able to purge or replace, and <code>systemd-resolve --status</code> has a heading called DNSSEC NTA, with a lot of address-looking entries that I dont know the meaning of</p> <pre><code> DNSSEC NTA: 10.in-addr.arpa 16.172.in-addr.arpa 168.192.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 31.172.in-addr.arpa corp d.f.ip6.arpa home </code></pre> <p>My question: how do I make sure that the OS (and firefox, if there is any difference there) uses only the dns servers I specify?</p> <p>OBS: I dont need a method that actually changes configurations. A temporary change that does not get undone by the OS for 10 minutes or so would do just as well. </p> <p>Also, I am not sure I am looking in the right place. Is my interpretation of the output of <code>systemd-resolve --status</code> correct?</p>
0non-cybersec
Stackexchange
Do load balancers flood?. <p>I am reading about load balancing.</p> <p>I understand the idea that load balancers transfer the load among several slave servers of any given app. However very few literature that I can find talks about what happens when the load balancers themselves start struggling with the huge amount of requests, to the point that the "simple" task of load balancing (distribute requests among slaves) becomes an impossible undertaking.</p> <p>Take for example this picture where you see 3 Load Balancers (LB) and some slave servers.</p> <p><a href="https://i.stack.imgur.com/DyLBE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DyLBE.png" alt="enter image description here"></a> <strong>Figure 1:</strong> Clients know one IP to which they connect, one load balancer is behind that IP and will have to handle all those requests, thus that first load balancer is the bottleneck (and the internet connection).</p> <p>What happens when the first load balancer starts struggling? If I add a new load balancer to side with the first one, I must add even another one so that the clients only need to know one IP. So the dilema continues: I still have only one load balancer receiving all my requests...!</p> <p><a href="https://i.imgur.com/yHBbJM3.png" rel="noreferrer"><img src="https://i.imgur.com/yHBbJM3.png" alt="enter image description here"></a> <strong>Figure 2:</strong> I added one load balancer, but for having clients to know just one IP I had to add another one to centralize the incoming connections, thus ending up with the same bottleneck.</p> <p>Moreover, my internet connection will also reach its limit of clients it can handle so I probably will want to have my load balancers in remote places to avoid flooding my internet connection. However if I distribute my load balancers, and want to keep my clients knowing just one single IP they have to connect, I still need to have one central load balancer behind that IP carrying all the traffic once again...</p> <p>How do real world companies like Google and Facebook handle these issues? Can this be done without giving the clients multiple IPs and expect them to choose one at random avoiding every client to connect to the same load balancer, thus flooding us?</p>
0non-cybersec
Stackexchange
Inject Serilog&#39;s ILogger interface in ASP .NET Core Web API Controller. <p>All the examples I can find about using Serilog in an ASP .NET Core Web Application use Microsoft's <code>ILogger&lt;T&gt;</code> interface instead of using Serilog's <code>ILogger</code> interface.</p> <p>How do I make it so that Serilog's ILogger can be injected via constructor, instead?</p> <pre><code>using Serilog; public class HomeController : Controller { ILogger logger; public HomeController(ILogger logger) { this.logger = logger; } public IActionResult Index() { this.logger.Information("Index was called"); return View(); } } </code></pre>
0non-cybersec
Stackexchange
The truck in front of me today had a tailgate with Chevrolet written in braille..
0non-cybersec
Reddit
Getting write permission for /snap. <p>How can I get the write permission for the files residing under <code>/snap</code> directory which is created by snap v.2.44?<br /> I cannot do that even with root access and also there isn't any group named <code>snap</code> in <code>/etc/group</code> to enable me to add my user to it to gain any special privilege.<br /> Also when I want to <code>chmod</code> the files I get this error :</p> <pre><code>Read-only filesystem </code></pre>
0non-cybersec
Stackexchange
Can someone walk me through the simplest way of installing WorldEdit?. I don't really play MC often, but every now and then I get the urge to login and build something. It's been a long time since I used WorldEdit but it's incredibly useful. Now when I've tried to go back to it wants me to install some mod manager which I don't need (Forge), which I did try to do, except it doesn't work (the console flashes up with some sort of error before vanishing). Dropping the WorldEdit .jar into the mods folder doesn't work either. What's the best way to get WorldEdit installed? Preferably with minimal extraneous I don't need.
0non-cybersec
Reddit
Girlfriend made this for me, only used pencils. She doesn't think she's any good. Any TON fans?.
0non-cybersec
Reddit
A great clip of Kevin Smith talking about his experience with writing a Superman Script for Warner Brothers.
0non-cybersec
Reddit
Pre-commit hook for Git when Hudson build has failed. <p>I'm trying to figure out how to write a pre-commit hook for <code>Git</code> that checks the status of my <code>Hudson</code> build. If the previous build failed, it should disallow anyone from committing without first writing a specific line, e.g. "fixed build."</p> <p><strong>EDIT:</strong></p> <p>The first answerer has provided one side of the coin: the Hudson API.</p> <p>I now need the other side. <strong>How do I write the pre-commit hook in <code>Git</code>?</strong></p>
0non-cybersec
Stackexchange
How to preserve lenghts to use with \includegraphics scaling, when calculating them with pgf. <p>This question is related to my earlier question here: <a href="https://tex.stackexchange.com/questions/122299/how-to-define-a-macro-that-uses-image-width-and-height-to-define-a-variable-for">How to define a macro that uses image width and height to define a variable for later use</a> . There you can find a full MWE of the problematic code. Which I skip here for sake of brevity. </p> <p>I use a mixture of <code>\newlength</code>, <code>\setlength</code> and <code>\pgfmathsetmacro</code> to calculate the optimal height for two figures I want to plot. The code works fine and the resulting images are displayed correclty. <strong>However</strong>, I get the error message:</p> <pre><code>ERROR: Illegal unit of measure (pt inserted). </code></pre> <p>when using the calculated height (here <code>\finalheight</code>) for: </p> <pre><code>\includegraphics[height=\finalheight] . </code></pre> <p>My guess is that using e.g.</p> <pre><code>\pgfmathsetmacro{\finalheight}{\effwidth/\sumratio} , </code></pre> <p>I change a length that has a physical unit, to a mere number. Is that right? However I had a problem using <code>\setlength</code> to calculate ratios, which is why I started to use <code>\pgfmathsetmacro</code> in the first place. Does someone know a clean way to perform the calculation below such that the results <code>\finalheight</code> has a unit?</p> <pre><code>\newlength\firstheight% \newlength\firstwidth% \newlength\secondheight% \newlength\secondwidth% \def\firstim{\includegraphics{pathToImage}}% \def\secondim{\includegraphics{pathToImage}}% \setlength{\firstheight}{\heightof{\firstim}}% \setlength{\firstwidth}{\widthof{\firstim}}% \pgfmathsetmacro{\firstratio}{\firstwidth/\firstheight}% \setlength{\secondheight}{\heightof{\secondim}}% \setlength{\secondwidth}{\widthof{\secondim}}% \pgfmathsetmacro{\secondratio}{\secondwidth/\secondheight}% \pgfmathsetmacro{\gapspace}{0.5cm}% \pgfmathsetmacro{\effwidth}{\textwidth-\gapspace}% \pgfmathsetmacro{\sumratio}{\firstratio+\secondratio}% \pgfmathsetmacro{\finalheight}{\effwidth/\sumratio}% </code></pre>
0non-cybersec
Stackexchange
Status bar turns white and does not show content behind it. <p>I am trying out AppCompat on Marshmallow. And I want to have a transparent status bar however it turns white. I've tried a couple solutions but they didn't work for me (<a href="https://stackoverflow.com/questions/28289477/transparent-status-bar-not-working-with-windowtranslucentnavigation-false">Transparent status bar not working with windowTranslucentNavigation=&quot;false&quot;</a>, <a href="https://stackoverflow.com/questions/27856603/lollipop-draw-behind-statusbar-with-its-color-set-to-transparent">Lollipop : draw behind statusBar with its color set to transparent</a>). Here's related code.</p> <p>My styles.xml </p> <pre><code>&lt;style name="Bacon" parent="Theme.Bacon"/&gt; &lt;style name="Theme.Bacon" parent="Theme.AppCompat.Light.NoActionBar"&gt; &lt;item name="colorPrimary"&gt;@color/theme_primary&lt;/item&gt; &lt;item name="colorPrimaryDark"&gt;@color/theme_primary_dark&lt;/item&gt; &lt;item name="colorAccent"&gt;@color/theme_accent&lt;/item&gt; &lt;item name="windowActionBar"&gt;false&lt;/item&gt; &lt;item name="windowActionBarOverlay"&gt;true&lt;/item&gt; &lt;item name="windowNoTitle"&gt;true&lt;/item&gt; &lt;item name="android:windowBackground"&gt;@color/background_material_light&lt;/item&gt; &lt;/style&gt; &lt;style name="Theme.Bacon.Detail" parent="Bacon"/&gt; </code></pre> <p>v21</p> <pre><code>&lt;style name="Bacon" parent="Theme.Bacon"&gt; &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt; &lt;/style&gt; &lt;style name="Theme.Bacon.Detail" parent="Bacon"&gt; &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt; &lt;/style&gt; </code></pre> <p>Activity</p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"&gt; &lt;android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" /&gt; &lt;/FrameLayout&gt; </code></pre> <p>Fragment</p> <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"&gt; &lt;android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="192dp" android:fitsSystemWindows="true" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt; &lt;android.support.design.widget.CollapsingToolbarLayout android:id="@+id/collapsing_toolbar" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:expandedTitleMarginBottom="32dp" app:expandedTitleMarginEnd="64dp" app:expandedTitleMarginStart="48dp" app:layout_scrollFlags="scroll|exitUntilCollapsed" app:statusBarScrim="@color/black_trans80"&gt; &lt;ImageView android:id="@+id/photo" android:layout_width="match_parent" android:layout_height="match_parent" android:contentDescription="@string/photo" android:fitsSystemWindows="true" android:scaleType="centerCrop" app:layout_collapseMode="parallax" /&gt; &lt;android.support.v7.widget.Toolbar android:id="@+id/anim_toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:layout_collapseMode="pin" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /&gt; &lt;/android.support.design.widget.CollapsingToolbarLayout&gt; &lt;/android.support.design.widget.AppBarLayout&gt; </code></pre> <p><a href="https://i.stack.imgur.com/U6OEI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U6OEI.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
set or peg bivariate distribution values using matplotlib. <p>I've <code>animated</code> a <code>bivariate</code> <code>gaussian</code> <code>distribution</code> using <code>matplotlib</code>. I've calculated this <code>distribution</code> by adjusting the <code>COV</code> <code>matrix</code> to account for specific variables. I can provide greater detail on this process but essentially each <code>scatter</code> point covers a specific displacement that is easily identifiable. My question or problem I'm having is trying to set/fix/peg areas that isn't covered by <code>the distribution</code>. You can see the values oscillating around by the variation in colour. </p> <p>Question: Is it possible to set or peg these <em>neutral</em> areas to a specific value and therefore colour. Specifically, the <code>coordinates</code> that aren't covered by <code>xy</code> values should not change <code>contour</code> values. They should be fixed as <code>0.5</code>. </p> <pre><code>import numpy as np import pandas as pd import matplotlib.pyplot as plt import scipy.stats as sts from matplotlib.animation import FuncAnimation DATA_LIMITS = [-100, 100] def datalimits(*data): return DATA_LIMITS # dmin - spad, dmax + spad def rot(theta): theta = np.deg2rad(theta) return np.array([ [np.cos(theta), -np.sin(theta)], [np.sin(theta), np.cos(theta)] ]) def getcov(radius=1, scale=1, theta=0): cov = np.array([ [radius*(scale + 1), 0], [0, radius/(scale + 1)] ]) r = rot(theta) return r @ cov @ r.T def mvpdf(x, y, xlim, ylim, radius=1, velocity=0, scale=0, theta=0): X,Y = np.meshgrid(np.linspace(*xlim), np.linspace(*ylim)) XY = np.stack([X, Y], 2) x,y = rot(theta) @ (velocity/2, 0) + (x, y) cov = getcov(radius=radius, scale=scale, theta=theta) PDF = sts.multivariate_normal([x, y], cov).pdf(XY) return X, Y, PDF def mvpdfs(xs, ys, xlim, ylim, radius=None, velocity=None, scale=None, theta=None): PDFs = [] for i,(x,y) in enumerate(zip(xs,ys)): kwargs = { 'xlim': xlim, 'ylim': ylim } X, Y, PDF = mvpdf(x, y,**kwargs) PDFs.append(PDF) return X, Y, np.sum(PDFs, axis=0) fig, ax = plt.subplots(figsize = (10,4)) ax.set_xlim(DATA_LIMITS) ax.set_ylim(DATA_LIMITS) line_a, = ax.plot([], [], '.', c='red', alpha = 0.5, markersize=5, animated=True) line_b, = ax.plot([], [], '.', c='blue', alpha = 0.5, markersize=5, animated=True) cfs = None def plotmvs(tdf, xlim=None, ylim=None, fig=fig, ax=ax): global cfs if cfs: for tp in cfs.collections: tp.remove() df = tdf[1] if xlim is None: xlim = datalimits(df['X']) if ylim is None: ylim = datalimits(df['Y']) PDFs = [] for (group, gdf), group_line in zip(df.groupby('group'), (line_a, line_b)): # Update the scatter line data group_line.set_data(*gdf[['X','Y']].values.T) kwargs = { 'xlim': xlim, 'ylim': ylim } X, Y, PDF = mvpdfs(gdf['X'].values, gdf['Y'].values, **kwargs) PDFs.append(PDF) PDF = PDFs[0] - PDFs[1] normPDF = PDF - PDF.min() normPDF = normPDF / normPDF.max() cfs = ax.contourf(X, Y, normPDF, levels=10, cmap='viridis', alpha = 0.8) return cfs.collections + [line_a, line_b] n = 10 time = range(n) d = ({ 'A1_Y' : [10,20,15,20,25,40,50,60,61,65], 'A1_X' : [15,10,15,20,25,25,30,40,60,61], 'A2_Y' : [10,13,17,10,20,24,29,30,33,40], 'A2_X' : [10,13,15,17,18,19,20,21,26,30], 'A3_Y' : [11,12,15,17,19,20,22,25,27,30], 'A3_X' : [15,18,20,21,22,28,30,32,35,40], 'A4_Y' : [15,20,15,20,25,40,50,60,61,65], 'A4_X' : [16,20,15,30,45,30,40,10,11,15], 'B1_Y' : [18,10,11,13,18,10,30,40,31,45], 'B1_X' : [17,20,15,10,25,20,10,12,14,25], 'B2_Y' : [13,10,14,20,21,12,30,20,11,35], 'B2_X' : [12,20,16,22,15,20,10,20,16,15], 'B3_Y' : [15,20,15,20,25,10,20,10,15,25], 'B3_X' : [18,15,13,20,21,10,20,10,11,15], 'B4_Y' : [19,12,15,18,14,19,13,12,11,18], 'B4_X' : [20,10,12,18,17,15,13,14,19,13], }) tuples = [((t, k.split('_')[0][0], int(k.split('_')[0][1:]), k.split('_')[1]), v[i]) for k,v in d.items() for i,t in enumerate(time)] df = pd.Series(dict(tuples)).unstack(-1) df.index.names = ['time', 'group', 'id'] interval_ms = 200 delay_ms = 1000 ani = FuncAnimation(fig, plotmvs, frames=df.groupby('time'), blit=True, interval=interval_ms, repeat_delay=delay_ms) plt.show() </code></pre>
0non-cybersec
Stackexchange
Report: North Korea placed under martial law; troops told to be ready for a war as nuclear test looms.
0non-cybersec
Reddit
Stray bullet landed on a solar panel i just installed..
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
Finding the third vertex of a right isosceles triangle. <p>Okay so, here is what I was stuck on:</p> <p>Two vertices of isosceles right triangle ABC are located at A(2,2) and B(5,2), where segment AB is a leg of the triangle.<br> Find the coordinates of C.<br> Find the coordinates of a different C.<br> How many different locations are there for C.</p> <p>I've tried everything, but I just don't know how to go about this. . . </p> <p>Could someone please point me in the right direction???</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
When I went to get munchies last night, I wrote a poem about trees on the fridge..
0non-cybersec
Reddit
PC not turning on?. I upgraded my cpu and I noticed that my screen wouldn't turn on so I had to put my old cpu back in and then update my bios. Now, I have my new cpu in and now the pc wont even turn on. Why is this happening?
0non-cybersec
Reddit
SK Telecom T1 vs. Invictus Gaming / Rift Rivals 2019 - LCK-LPL-LMS-VCS Group Stage / Post-Match Discussion. ###RIFT RIVALS 2019 LCK-LPL-LMS [Official page](https://lolesports.com/en_US/rift-rivals) | [Leaguepedia](https://lol.gamepedia.com/Rift_Rivals_2019/LCK-LPL-LMS) | [Liquipedia](https://liquipedia.net/leagueoflegends/Rift_Rivals/LCK-LPL-LMS/2019) | [Eventvods.com](https://eventvods.com/featured/lol?utm_source=reddit&utm_medium=subreddit&utm_campaign=post_match_threads) | [New to LoL](http://lol.gamepedia.com/New_To_League/Welcome) --- ###SK Telecom T1 0-1 Invictus Gaming **SKT** | [Leaguepedia](https://lol.gamepedia.com/SK_Telecom_T1) | [Liquipedia](http://liquipedia.net/leagueoflegends/SK_Telecom_T1) | [Website](http://www.sksports.net/T1/main.asp) | [Twitter](http://twitter.com/#!/sktelecom_t1) | [Facebook](https://www.facebook.com/SKsports.T1/) | [YouTube](https://www.youtube.com/user/SKTTeam1st) **IG** | [Leaguepedia](https://lol.gamepedia.com/Invictus_Gaming) | [Liquipedia](http://liquipedia.net/leagueoflegends/Invictus_Gaming) | [Website](http://www.igaming.com.cn/index.php) | [Twitter](http://twitter.com/#!/invgaming) | [Facebook](https://www.facebook.com/InvictusGaming.Official) | [Subreddit](http://reddit.com/r/InvictusGaming) --- ###MATCH 1: SKT vs. IG [**Winner: Invictus Gaming** in 42m](https://i.imgur.com/ow7ia9z.jpg) [Game Breakdown](https://i.imgur.com/vFQvn3W.jpg) ||Bans 1|Bans 2|[G](#mt-gold)|[K](#mt-kills)|[T](#mt-towers)|D/B| |:--|:--:|:--:|:--:|:--:|:--:|:--:| |**SKT**|[irelia](#c-irelia) [xayah](#c-xayah) [yuumi](#c-yuumi)|[leblanc](#c-leblanc) [reksai](#c-reksai)|72.5k|12|6|[M](#mt-mountain)^1 [H](#mt-herald)^2 [O](#mt-ocean)^3 [C](#mt-cloud)^4 [M](#mt-mountain)^7 [E](#mt-elder)^8 | |**IG**|[karma](#c-karma) [tahmkench](#c-tahmkench) [sejuani](#c-sejuani)|[jayce](#c-jayce) [aatrox](#c-aatrox)|83.7k|19|11|[O](#mt-ocean)^5 [B](#mt-barons)^6 [B](#mt-barons)^9 [E](#mt-elder)^10 | |**SKT**|12-19-22|[vs](#mt-kills)|19-12-36|**IG**| |--:|--:|:--:|:--|:--| |Khan [camille](#c-camille) ^3|0-6-6|TOP|3-4-4|^1 [neeko](#c-neeko) TheShy| |Clid [lee sin](#c-leesin) ^3|3-3-5|JNG|3-3-4|^3 [sylas](#c-sylas) Ning| |Faker [azir](#c-azir) ^2|7-3-3|MID|7-2-8|^4 [taliyah](#c-taliyah) Rookie| |Teddy [kalista](#c-kalista) ^2|1-2-3|BOT|6-1-7|^2 [kaisa](#c-kaisa) JackeyLove| |Mata [nautilus](#c-nautilus) ^1|1-5-5|SUP|0-2-13|^1 [lux](#c-lux) Baolan| --- We're recruiting! If you're interested in making Post-Match Threads, please [click here to apply](https://docs.google.com/forms/d/e/1FAIpQLSdhGkc_x4zt7984I3gcXeKqPbyqWexT75IfdT5Qv9jbLezxtg/viewform?usp=sf_link). [This thread was created by the Post-Match Team](https://postmatch.team).
0non-cybersec
Reddit
TIL Medals from 2016 Rio Olympic Games are defective and show rusting, chipping.
0non-cybersec
Reddit
prove if f(x), xf(x) ∈ L1(R) then integral of f(x)sin(wx)dw is defined, continuous, and differentiable at every point w. <p>if f(x), xf(x) ∈ L1(R) then F(w) = ∫f(x)sin(wx)dw is defined, continuous, and differentiable at every point w ∈ R.</p>
0non-cybersec
Stackexchange
Italian Parliament stops national SOPA.
0non-cybersec
Reddit
Analog stick change from elite controller.
0non-cybersec
Reddit
Sugar and water are the two main ingredients in most popular drinks, yet people would judge you if you drank the mixture by itself..
0non-cybersec
Reddit
Sooo like does it have no sugar or 75% less sugar?.
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
Show that the following operator is not a surjection.. <blockquote> <p><em>"Take $X=C([0,1])$ with the uniform norm, $\|f\|=\sup_{x\in[0,1]}|f(x)|$, and define the operator $T:X\to X$ by, $$T(f)(x)=f(x)-\int_0^1f(s)ds$$ Show that $T$ is not a surjection"</em>.</p> </blockquote> <p>Here is what I have done:</p> <p>Saying that $T$ is <strong>not</strong> a surjection means that $\exists\, g\in X:\nexists f\in X:Tf=g$</p> <p>So we consider,</p> <p>$$T(f)(x)=f(x)-\int_0^1f(s)ds=g(x)$$</p> <p>$$\implies\int_0^1f(x)dx-\int_0^1\int_0^1f(s)ds\,dx=\int_0^1g(x)dx$$</p> <p>$$\implies0=\int_0^1g(x)dx$$</p> <p>In the solutions I have, it says that two functions are equal if we obtain the same value after evaluating their integrals over the interval. Is this enough to show that $T$ is not a surjection? I am not entirely convinced.</p> <p>Clearly the only $g\in X$ for which this holds is $g=0$, the zero function in $X$. But since $g\in X$ was arbitrary, and not every $g\in C([0,1])$ satisfies $\int_0^1g(x)dx=0$, $T$ is not a surjection?</p> <p>Is my thinking here correct?</p>
0non-cybersec
Stackexchange
Return list of all values that match criteria. <p>I am trying to help my boss set up an Excel sheet but I am not too familiar. </p> <p>I am looking to list all values of a cell that match a criteria.</p> <pre><code>Sheet 1 A B 1 Adam 4 2 Dave 4 3 Steve 3 4 Ryan 4 </code></pre> <p>What I want is to return a list of all names with values in column B that equal 4.</p> <p>So the result would look like this:</p> <pre><code> A B 1 RESULTS Adam Dave Ryan </code></pre> <p>Any help would be greatly appreciated, thank you.</p>
0non-cybersec
Stackexchange
As Colorado legalizes recreational marijuana, hopes soar in other states.
0non-cybersec
Reddit
Redefine smart key mappings in vim&#39;s Latex-suite plugin. <p>When using the Latex-suite plugin in vim, typing <code>...</code> expands to either <code>\ldots</code> or <code>\cdots</code> (see section <a href="http://vim-latex.sourceforge.net/documentation/latex-suite.html#smart-keys" rel="nofollow">3.9 Smart Key Mappings</a> of the latex-suite manual). I am using a lot the <em>amsmath</em> package that provides <code>\dots</code>, and I'd like to make <code>...</code> expand to just <code>\dots</code>.</p> <p>I tried putting</p> <pre><code>:call IMAP('...', '\dots','tex') </code></pre> <p>in <code>$VIM/after/ftplugin/tex_macros.vim</code> but it does nothing.</p> <p>How can I make <code>...</code> expand to <code>\dots</code>?</p> <p>Moreover, is there any way to do the above <em>only</em> if the <em>amsmath</em> package is detected? </p>
0non-cybersec
Stackexchange
Installing Windows 7 in Boot Camp is Unavailable on Mojave. <p>On my MacBook Pro (Mid 2014), it seems that Apple has stopped support for installation of Windows 7 via Boot Camp on my Mac. I am currently trying to edit the info.plist to attempt to find a way to allow Boot Camp to run Windows 7, but I can't figure it out. Is there any way to get this to work?</p>
0non-cybersec
Stackexchange
Vectors in align environment with additional split. <p>I want to do the following: Some vectors (using <code>pmatrix</code>) aligned in an <code>align</code> environment but with a single equation number (using <code>split</code>):</p> <pre><code>\documentclass[11pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \begin{split} {\bf a} &amp;= \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} \, , &amp;{\bf b} &amp;= \begin{pmatrix} -\tfrac{\sqrt{2}}{3} \\ -\sqrt{\tfrac{2}{3}} \\ \tfrac{1}{3} \end{pmatrix} \, , \\ {\bf c} &amp;= \begin{pmatrix} -\tfrac{2\sqrt{2}}{3} \\ 0 \\ -\tfrac{1}{3} \end{pmatrix} \, , &amp;{\bf d} &amp;= \begin{pmatrix} -\tfrac{\sqrt{2}}{3} \\ \sqrt{\tfrac{2}{3}} \\ \tfrac{1}{3} \end{pmatrix} \, . \end{split} \end{align} \end{document} </code></pre> <p>I get error message like Extra alignment tab has been changed to \cr. }$\hfill \endtemplate. Using <code>eqnarray</code> it works. Why is that and is it possible to use align instead?</p>
0non-cybersec
Stackexchange
Determine values of coefficients of a linear homogeneous second-order ODE. <blockquote> <p>Let $y''+ay'+by=0$.</p> <p>1) Find values of $a,b$ such that all the solutions are bounded on $\mathbb{R}$.</p> <p>2) Find values of $a,b$ such that there exists a solution which is not bounded, and which attains the value $0$ infinite number of times (that is - there are infinitely many points $x_0$ such that $y(x_0)=0$).</p> <p>3) Find a necessary and a sufficient condition on $a,b$ values so that one of the basis vectors of the solution vector space will have the property $$\lim_{x\to\infty}\left(y(x)\exp\left({\frac{ax}{2}}\right ) \right )=0$$ while the second basis vector will have the property $$\lim_{x\to-\infty}\left(y(x)\exp\left({\frac{ax}{2}}\right ) \right )=0$$</p> </blockquote> <p>My attempt:</p> <p>1) None, because the solutions are always proportional to $e^{\lambda x}$ which is not bounded.</p> <p>2) All the values of $a,b$ for which the roots of the equation $\lambda^2+a\lambda+b=0$ are complex ($a^2-4b&lt;0$). In this case the solution has the form $e^{\alpha x}\cos(\beta x)$ which has infinitely many intersections with the $x$-axis. Also, these solutions are not bounded due to the $e^{\alpha x}$ factor.</p> <p>3) Can't really find. Any suggestions?</p>
0non-cybersec
Stackexchange
Fallout 4 – The Wanderer Trailer (PEGI).
0non-cybersec
Reddit
SSH LocalCommand on exit. <p>In <code>~/.ssh/config</code> you can use the <code>LocalCommand</code> directive to execute a local command whenever you connect to a remote machine via SSH. But how do I execute a command when I <em>exit</em> an SSH connection? It seems that *.bashrc/.bash_profile* files are not sourced when connection ends or is closed.</p>
0non-cybersec
Stackexchange
My absolute favorite Star Fox 64 parody.
0non-cybersec
Reddit
Debian installation USB boots to GRUBv2 rather than GUI. <p>I have downloaded the Debian 8 AMD x64 iso and have attempted to make a bootable USB using Rufus on my PC and I have also tried this using UNetbootin on Ubuntu.</p> <p>I was expecting a graphical user interface to install the OS as I had on my virtual machine but instead I get a command line interface labelled GRUBv2.</p> <p>The laptop BIOS will boot to USB and has done before for the Ubuntu install so unsure how to get Debian to install via GUI.</p> <p>How to fix?</p>
0non-cybersec
Stackexchange
Property &#39;virtual&#39; does not exist on type &#39;typeof Schema&#39;. <p>I am trying to change_id from mongoose schema to 'id' like is shown here <a href="https://stackoverflow.com/questions/7034848/mongodb-output-id-instead-of-id?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">MongoDB: output &#39;id&#39; instead of &#39;_id&#39;</a></p> <p>Duplicate the ID field.</p> <pre><code>Schema.virtual('id').get(function(){ return this._id.toHexString(); }); // Ensure virtual fields are serialised. Schema.set('toJSON', { virtuals: true }); </code></pre> <p>I am using typescript and Schema does not seem to have a 'virtual' method nor a 'set' method, and keyword 'this' is not bound in this context either. Who knows their typescript equivalents?</p>
0non-cybersec
Stackexchange
Satanists want to use Hobby Lobby decision to exempt women from anti-abortion laws.
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
Output random number between 30-35 using Random.seed(), &#39;for&#39; and multiplication in Python. <p>I am new to programming. I had an assignment to write a code that will output a random number between 30 and 35. This code needs to use <code>random.seed()</code>, a <code>for</code> statement and a multiplication. I understand that the <code>random.seed([x])</code> generates an initial value that could be used in the proceeding section of the code. However, I can't figure out how to proceed after obtaining the value of the random:</p> <pre><code>import random random.seed(70) print(random.random()) # This returns a value of 0.909769237923872 </code></pre> <p>How do I use this value to generate a random value between 30 and 35?</p> <p>Note: Without the specific directions above, I have been able to write two codes that function as desired, so please I am not looking for alternative ways of writing the code. </p>
0non-cybersec
Stackexchange
What's the best gaming laptop for under 1200 dollars?. I have all these PC games and a steam account lying around, but I have zero computers that run any of it. I looked at Alienware, and they're sexier than hell, but way too much.
0non-cybersec
Reddit
Streaming on low level DSL. <p>I got DSL 2000 (280k/bits down, 19 up to 40 k/bits up), now I want to stream me for example coding live, so at a low FPS rate. Would this be possible, and which tool / provider should I use for such low FPS rated streaming? (feel free to post Windows Tools, if there are no matching available for Linux)</p> <p>regards,</p>
0non-cybersec
Stackexchange
A perfect addition to any VR headset.
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to 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
Is there a Windows CMD command for pasting. <p>If I have a file in the clipboard I can paste it to a directory using ctrl+v or right click + paste. Is there a way to execute the paste through command line?</p>
0non-cybersec
Stackexchange
Restoring the script command. <p>I overwrote the binary "script" in the "/usr/bin" directory (ubuntu 16:04), after the script command did not work.</p> <p>Is there a way to restore the binary, so the command works again?</p>
0non-cybersec
Stackexchange
[Question] I have venous leakage and can't get erect what do I do?. Right now I'm 21 and I'm considering an implant. The last urologist said it's all in my head; it's not. I can get an erection but it leaks out quickly. I have an appointment on the 11th and I need to get my concerns addressed. I haven't gotten morning wood in years.
0non-cybersec
Reddit
Frame whole sections in ConTeXt. <p>I am trying to improve overview in working sheets and right now I am trying to frame a whole section, preferably with rounded corners but couldn't find any solutions. Is there something like <code>\framedsection</code> in context?</p>
0non-cybersec
Stackexchange
[Yates] The Packers have exercised the 2020 fifth year option on DL Kenny Clark, per source. He’s emerged as a force for Green Bay..
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
Muppet Movie 1979 Camera Test: The banter is so hilariously improvised even the actors can't help but laugh(8:33).
0non-cybersec
Reddit
Today I discovered TVGameLauncher. Recently I've found myself reaching for the big screen to play my games, the frustration of switching the main display around in windows when I wanna game, then switching audio source to HDMI has always been a little tedious. Then the ball ache of switching the "main" display back to the monitor once finished to browse. Steam big picture is great, but I only play single players on the TV and so it's not exactly frustration free. A little Google turned up TVGameLauncher, which creates a shortcut on your desktop which once clicked changes the audio source to your choosing and launch's the game on the monitor you initially asked it too, all automagically! All you need to do is drop an executable either on the one time bit, or the "create shortcut on desktop" bit for something you always want launching on the display of your choosing. So far I've only tried Witcher 3 (GOG), but it worked perfect. It also works with steam games, and is VAC safe. http://sourceforge.net/projects/tvgamelauncher/
0non-cybersec
Reddit
We need to talk about Dany (and her eyebrows). People of Westeros, The Free Cities, The Summer Islands, and beyond, hear me. Many of you complain about Dany’s eyebrows, but I want to defend their honor. As a natural blonde, my eyebrows are darker than my head of hair. This is very common for people with fair hair. But I don’t mean to draw a fallacy—you may say that just because something is natural doesn’t make it good. True. But let me show you something. Please look [here](http://25.media.tumblr.com/tumblr_maylg4VEGA1qg6ri4o1_400.jpg) and [here](http://www.beautyrsvp.com/wp-content/uploads/2012/10/Gucci.jpg) and [here](http://livesofstyle.com/thelastword/wp-content/uploads/2012/10/brow1.jpg) at these photos of light blonde women with matched eyebrows. The look has been popular in high fashion for a couple years now. It is known. To me, the effect is slightly nightmarish. Eyebrows define our eyes, enhance expression, and divide the forehead. Not only do I think the GOT stylists have it accurate with Dany, I think they have it right. A bleached brow would disservice her gorgeous eyes and bone structure. Please discuss. Edit: Because some people have asked, I think every few days I see people getting all plucky about this (indulge me the pun) in threads. In fact, I don't think I've seen a single photo of Emilia that doesn't have some eyebrow raising (there I go again) hair and brow comments.
0non-cybersec
Reddit
Protestor at NATO summit describes her time at secret Chicago 'black site': 'You're a hostage. It's kidnapping'.
0non-cybersec
Reddit
Lloyd Kaufman, President of Troma Entertainment and the Creator of the Toxic Avenger will being doing an (AMA) tomorrow at 1pm EST! (cross-post from /r/troma).
0non-cybersec
Reddit
Is it necessary to link to all landing pages from the homepage?. <p>What I am wanting to do is build quite a few landing pages targeting specific keywords from google search. These pages will give a brief explanation of what we do and how we can help them with what they are looking for. Along with that, they will have a signup form. </p> <p>My question is where should these go in the site structure? Should the homepage link to all of them somehow? Or should the homepage link to some 'features' page or 'sitemap' page that then links to all of the landing pages? Or maybe the pages don't need to be linked from the homepage at all and can just be included in the sitemap. I feel that the last option probably isn't the best idea.</p> <p>EDIT: Quite a few is around 50 - 100. I plan on getting uses to the page by targeting niche ketwords and probably some adwords traffic as well. However I don't know if they need to be linked to somewhere in my site.</p>
0non-cybersec
Stackexchange
Doggo wants to be noticed.
0non-cybersec
Reddit
Former FDA commissioner says "this is not the time" to be cutting ties with the WHO.
0non-cybersec
Reddit
What is something most people won't believe the first time they hear it?.
0non-cybersec
Reddit
Mt Kirkjufell, Iceland - 3000x2000 [OC].
0non-cybersec
Reddit
Only 30's kids will remember..
0non-cybersec
Reddit
A panorama of the night sky from 12,400ft at Buckskin Pass near Aspen, CO [OC] [3000x1687].
0non-cybersec
Reddit
$x^{3}+ax^2+bx+c$ has all roots negative real numbers and a&lt;3. Establish an inequality between only b and c. <blockquote> <p>A cubic equation <span class="math-container">$x^{3}+ax^2+bx+c$</span> has all negative real roots and <span class="math-container">$a, b, c\in R$</span> with <span class="math-container">$a&lt;3.$</span></p> <p>Prove that <span class="math-container">$b+c&lt;4.$</span></p> </blockquote> <p>My attempt :</p> <p>Let the cubic be <span class="math-container">$f(x)$</span></p> <p>Plotting graph we see that ,</p> <p><span class="math-container">$f(x\geq 0)&gt;0$</span>.</p> <p>So we can see that a relation between <span class="math-container">$a, b, c$</span> can be established by putting <span class="math-container">$x=1$</span>, so,</p> <p><span class="math-container">$1+a+b+c&gt; 0$</span>.</p> <p>So <span class="math-container">$b+c&gt;-4$</span>.</p> <p>Also by using <em>Vieta's Formula</em> we get <span class="math-container">$a, b, c &gt; 0$</span>.</p> <p>Now I'm uncertain how to proceed, any help will be appreciated. This is a problem of a maths olympiad. Thanks.</p>
0non-cybersec
Stackexchange
Properties of Quasi-Coherent Modules. <p>Let $X=\mathrm{Spec}\,A$ be an affine scheme and $M$ an $A$-module. Show that the following two conditions are equivalent: </p> <p>(a) $\tilde{M}$ is a locally free $\mathcal{O}_{X}$-module of finite type.</p> <p>(b) $M$ is a finitely generated projective $A$-module. </p> <p>How would one prove this equivalence? Any help would be valuable!</p> <p>Also, it seems that one could find projective $A$-modules $M$ such that $\tilde{M}$ is not locally free, if we remove the condition of finite generation on $M$. What would be a good example of this? I thought something along the lines of the following: $\mathfrak{m}=k^{(J)}$ is a projective ideal where $k$ is a field and $J$ is an infinite indexing set. Set $A=k^{(J)}$, $X=\mathrm{Spec}\,A$. Then it seems we could find some $\mathfrak{\tilde{m}}$ that is not a locally free $\mathcal{O}_{X}$-module.</p>
0non-cybersec
Stackexchange
install php-mcrypt Centos 6. <p>I'm trying for a few days now to install php-mcrypt on Centos 6 64bit, but I get this error</p> <pre><code>[root@cimpan tmp]# yum install php-mcrypt Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mi.mirror.garr.it * epel: mirror.switch.ch * extras: mi.mirror.garr.it * rpmforge: mirror.crazynetwork.it * updates: mi.mirror.garr.it Setting up Install Process Resolving Dependencies --&gt; Running transaction check ---&gt; Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be installed --&gt; Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3- 3.el6.x86_64 --&gt; Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64 --&gt; Finished Dependency Resolution Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel) Requires: php(zend-abi) = 20090626 Installed: php-common-5.4.28-1.el6.remi.x86_64 (@remi) php(zend-abi) = 20100525-x86-64 Available: php-common-5.3.3-26.el6.x86_64 (base) php(zend-abi) = 20090626 Available: php-common-5.3.3-27.el6_5.x86_64 (updates) php(zend-abi) = 20090626 Error: Package: php-mcrypt-5.3.3-3.el6.x86_64 (epel) Requires: php(api) = 20090626 Installed: php-common-5.4.28-1.el6.remi.x86_64 (@remi) php(api) = 20100412-x86-64 Available: php-common-5.3.3-26.el6.x86_64 (base) php(api) = 20090626 Available: php-common-5.3.3-27.el6_5.x86_64 (updates) php(api) = 20090626 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest [root@cimpan tmp]# rpm -qa | grep epel epel-release-6-8.noarch </code></pre> <p>Epel release version seems to be ok too. Tried <code>yum clean all</code> but no luck either. It may be broken because I've updated PHP to 5.4.28?</p> <p>(P.S.: pretty new to server management)</p>
0non-cybersec
Stackexchange
Ultimate Comfort.
0non-cybersec
Reddit
ELI5: How do parrots repeat words back to you?.
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
how to subtract algebraic equations using column method?. <p><img src="https://i.stack.imgur.com/b9kKE.jpg" alt="enter image description here"> How to subtract the algebraic equations using column method? Also is any possibility to solve algebraic equations using latex? Help to produce result like this latex </p>
0non-cybersec
Stackexchange
18.10 upgrade issue. <p>I have two different PCs, each multi-boot, with Ubuntu 18.04 as one of the operating systems on each. When I run the 18.10 upgrade on either machine, it appears to be fully processing the upgrade, but when I reboot, it still says I'm on 18.04. I've tried it both thru the GUI and thru the terminal, same result. What gives? Oddly, the report seems to show a completed upgrade, but under System>Details, it still says it's the last version (see screenshot).</p> <p>dave@BigBoy:~$ ubuntu-report show</p> <p>{ "Version": "18.10", "OEM": { "Vendor": "To Be Filled By O.E.M.",</p> <p>"Product": "To Be Filled By O.E.M." },</p> <p>"BIOS": { "Vendor": "American Megatrends Inc.",</p> <p>"Version": "P1.30" },</p> <p>"CPU": { "OpMode": "32-bit, 64-bit",</p> <pre><code>"CPUs": "4", "Threads": "1", "Cores": "4", "Sockets": "1", "Vendor": "AuthenticAMD", "Family": "16", "Model": "4", "Stepping": "3", "Name": "AMD Phenom(tm) II X4 955 Processor", "Virtualization": "AMD-V" </code></pre> <p>},</p> <p>"Arch": "amd64", "GPU": [</p> <p>{ "Vendor": "10de", "Model": "1244" }</p> <p>], "RAM": 32.9, "Disks": [ 240.1, 2000.4, 2000.4, 320.1, 0, 0, 0, 0, 0, 0, 0, 15.6 ],</p> <p>"Partitions": [ 19.5, 1, 15.2 ],</p> <p>"Screens": [</p> <p>{ "Size": "598mmx336mm", "Resolution": "1920x1080", "Frequency": "60.00" }</p> <p>], "Autologin": true, "LivePatch": false, "Session": { "DE": "Unity:Unity7:ubuntu", "Name": "unity", "Type": "x11" },</p> <p>"Language": "en_US",</p> <p>"Timezone": "America/New_York",</p> <p>"Upgrade": {</p> <p>"From": "18.04",</p> <pre><code>"InstallMedia": "Ubuntu 14.04.3 LTS \"Trusty Tahr\" - Beta amd64 (20150805)", "Type": "GTK", "ThirdPartySources": false, "Stages": { "0": "start", "6": "PREPARE", "22": "MODIFY_SOURCES", "75": "FETCH", "193": "INSTALL", "199": "INSTALL", "356": "INSTALL", "15163": "POSTUPGRADE", "15370": "CLEANUP", "20526": "REBOOT" } </code></pre> <p>}</p> <p>dave@BigBoy:~$ ubuntu-report show | grep Version</p> <p>"Version": "18.10",</p> <pre><code>"Version": "P1.30" </code></pre> <p><a href="https://i.stack.imgur.com/nzgop.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nzgop.png" alt="screenshot of system&gt;details after upgrade"></a></p> <p>During the upgrade process, I did note some oddities toward the end (I often leave the terminal window open, and monitor it), where it would begin some process, hesitate, then come back with an error message about "no swap area available", when in fact I have about 8GB set aside specifically for swap. That happened 4 or 5 times, near the end of the process. After that, the upgrade finally acted as if it was finished and asked for a restart, but on rebooting and seeing that "18.04" still showing, I wasn't so sure everything had finished properly -- or if it had chickened out and reverted me to 18.04.</p>
0non-cybersec
Stackexchange
Statistics Poisson Distribution. <p>Suppose that the number of eggs laid by a certain insect has a Poisson distribution with mean λ. The probability that any one of the eggs hatches is p. Assume that the eggs hatch independently of one another. Let Y denote the number of eggs which hatch. I am trying to find E(Y), Var(Y), and P(Y=1).</p> <p>Let N denote the number of eggs, then E(Y)=EE(Y|N)=E(N)p=λp. Is this right first off?</p> <p>Then for the variance, Var(Y) would equal λp also correct?</p> <p>And for P(Y=1), would this just equal p?</p> <p>Thanks for any help!</p> <p>Where would I find the proof? I'm new to this site.</p>
0non-cybersec
Stackexchange
Update on my battlestation ~2 years later.
0non-cybersec
Reddit