text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
What are the advantages and disadvantages of different types of motion sensors?. <p>I understand there are a number of different motion sensor technologies out there, including Active Infrared (AIR), Passive Infrared (PIR), Microwave and Ultrasonic motion sensors. </p> <p>I would like to know what the advantages and disadvantages of these different types of motion sensors are and what (if any) vulnerabilities exist in them. </p> <p>Additionally, have I overlooked any other similar motion sensing devices?</p> <hr> <p>Edit: just to clarify, human based motion sensors is what im interested in. Practical, non-theoretical technologies. This question isn't to do with vibration sensors, glass break sensors etc</p> <p>Edit: To limit the scope somewhat, lets stick to more common types of motion sensors rather than exotic situation specific types?</p>
0non-cybersec
Stackexchange
Snowboard Makeover | 1 Player | view at | Woogames.net.
0non-cybersec
Reddit
Definition of $C^1_c((a,b);H)$. <p>Can I define $C^1_c((a,b);H)$ as space of compactly-supported continuous functions from $[a,b]$ to a Banach space $H$ with compactly supported derivative (that may not be continuous)? So basically I am not saying "continuously differentiable." Would it make sense at all?</p>
0non-cybersec
Stackexchange
A minimal REST API in Java.
0non-cybersec
Reddit
Question on numbers modulo $(n+1)!$. <p>I just noticed the following surprising 'fact' (it holds at least for low values of n):</p> <p>Pick any number k &lt; $(n+1)!$</p> <p>Consider the n products $ki$ with $1 \le i \le n$, i.e. $k, 2k, ... nk$ modulo $(n+1)!$.</p> <p>In at least one of these cases, this modulus will at either:</p> <ul> <li>be at most $n!$, or</li> <li>be at least $(n+1)! - n!$</li> </ul> <p>So basically it will lie in the range $[-n!, n!]$ modulo $(n+1)!$.</p> <p>For example, let n = 5. Here, $(n+1)! = 720$.</p> <p>Pick a random number in $[0, 720]$, say $489$. We get $n = 5$ products:</p> <ul> <li>$489 * 1 \mod 720 = 489$</li> <li>$489 * 2 \mod 720 = 258$</li> <li>$489 * 3 \mod 720 = 27$</li> <li>$489 * 4 \mod 720 = 516$</li> <li>$489 * 5 \mod 720 = 285$</li> </ul> <p>Although we managed to escape in four cases, with $i=3$ we ended up with a residue of $27$ which lies between $-120$ and $120$.</p> <p>Any ideas on how to prove that this will always happen? Or maybe a counter-example?</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
Someone graced one of my recent posts with their art. I thought it needed to be seen by more..
0non-cybersec
Reddit
Partitions that separate all subsets. <p>Let $A=\{1,2,\dots,n\}$ and let $\mathcal{A}_1,\dots,\mathcal{A}_k$ be partitions of $A$ into two sets. Suppose that for each subset $B\subseteq A$ of even size, there exists a partition $\mathcal{A}_i$ such that half the elements of $B$ is in one part of the partition and the other half is in the other part. What is the minimum possible $k$ for which this is possible?</p> <p>An asymptotic bound for $k$ would already be good enough. For example, can we use just $k=O(n)$ partitions? Or even some polynomial in $n$ partitions?</p> <p>If we only consider subsets $B$ of size two, then we can do it with $\log n$ partitions by writing each element of $A$ in base two and have $\mathcal{A}_i$ be the partition according to whether the $i$th digit is $0$ or $1$. However this does not work when $B$ is of arbitrary size: For example among the four numbers $001,010,011,111$, none of the digits has $0$ and $1$ appearing twice each.</p>
0non-cybersec
Stackexchange
Can&#39;t see previous boot journal log. <p>I found that CentOS/Redhat will not store systemd-journal log to disk, Ubuntu will.</p> <p>For CentOS/Redhat, each time I reboot, the journal log were removed ( it seems write to tmpfs only )</p> <p>Why CentOS/Redhat don't want to keep journal log?</p>
0non-cybersec
Stackexchange
How can I share my clipboard between two Macs?. <p>Is there an easy way I could send clipboard data from one Mac on the LAN to another?</p>
0non-cybersec
Stackexchange
Apple statement to Bloomberg: “out of an abundance of caution, Apple will be re-closing some of its U.S. stores in Florida, Arizona, South Carolina, and North Carolina due to spikes in COVID-19 cases”.
0non-cybersec
Reddit
Fix For &quot;Package xxx is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0)&quot;. <p>I created a blank solution with framework 4.6.1 and add a project core 2.0. This error show in output for many package 'Package xxx is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0)'. How Can I Fix it?</p>
0non-cybersec
Stackexchange
Why is there no &quot;pathspec&quot; when I try to remove a folder in Git?. <p>I am trying to remove a folder from my Git repository with</p> <pre><code>git rm folderToRemove </code></pre> <p>but Git issues this error when I try to do so.</p> <pre><code>fatal: pathspec 'siteFiles/applicationFiles/templates/folderToRemove' did not match any files </code></pre> <p>My current directory is "templates." I am finding this error odd since I can <code>cd</code> into the folder "folderToRemove," so it clearly exists. What does this error mean?</p>
0non-cybersec
Stackexchange
Strange entry in Apache log. <p>in my <a href="https://serverfault.com/questions/215074/strange-stuff-in-apache-log">previous pos</a>t I got something weird in Apache log. Again, I found something strange, but what freaks me out is the response code. It's not 501 anymore, but 200. What do you say? Should I enable the paranoid-mode? Here's the entry:</p> <pre><code>***.***.***.*** - - [02/Feb/2011:00:42:51 +0100] "=\xa29)\x84\x11\xd0O\xa7@\xbd\x8f\xc4G\x96T\xf4" 200 25564 </code></pre>
1cybersec
Stackexchange
60% CPU Usage just moving my mouse around | Ubuntu 18.04. <p>So last night I decided to return to Linux after reviewing the way Microsoft manufactures consent for surveillance type behaviour on their Windows operating system.</p> <p>I'm having a problem with high CPU usage just moving around my mouse in Firefox I get 30% CPU usage and 30% web content usage which seems a tad high for my CPU which is actually an AMD A10-4655m APU with Radeon HD graphics × 4. This problem also occurs just moving my mouse over the dock icons to the left which causes the CPU usage to spike to 30% also for gnome-shell.</p> <p>The machine feels sluggish, I have looked in the additional drivers area but there are no additional drivers available and I am kind of stuck from where to go from here so I am relying on your kind responses.</p> <p>There is actually a post from 2012 <a href="https://askubuntu.com/questions/166538/problems-with-ubuntu-and-amd-a10-4655m-apu">here</a> which tells you how to install proprietary drivers but on installation I did check the mark to install 3rd party drivers at the point of installation.</p> <p>Is there any way to fix this problem and give me a bit of speed so I can stick with Ubuntu. Thank you for taking the time to help me out in advance.</p>
0non-cybersec
Stackexchange
A question about carbonated drinks and pressure. I have a hypothesis. If you put a carbonated drink in low pressure, say by squeezing the plastic bottle, screwing on the cork and releasing the bottle to try to straighten itself out again, the CO2 will form large bubbles quicker, escaping the soft drink and turning it stale sooner than usual. Could this be true reddit? I heard the opposite suggested as a method of *preserving* the CO2 in the bottle, but it sounded a bit strange to me.
0non-cybersec
Reddit
Since you guys liked my walnut + steel coffee table, here are some Buffalo Trace bourbon barrels that I restored to use at my wedding..
0non-cybersec
Reddit
Error: More than one module matches. Use skip-import option to skip importing the component into the closest module. <p>When I try to create a component in the angular cli, it's showing me this error. How do I get rid of it ?</p> <blockquote> <p>Error: More than one module matches. Use skip-import option to skip importing the component into the closest module.</p> </blockquote> <p>I'm using angular cli version: 1.4.1 </p>
0non-cybersec
Stackexchange
[EGS] Encore Sale (Holiday Sale extended by 1 week, but not grants new Coupons anymore).
0non-cybersec
Reddit
Incredible double team catch in the Indian Premier League. Gif credit to /u/Firefistace28.
0non-cybersec
Reddit
Future cubano sandwiches coming up. See you in 9 hours buddy..
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
PsBattle: This Flying Owl.
0non-cybersec
Reddit
Dividing elliptic curve point on integer. <p>Can we solve the equation $nP = Q$, where $P$, $Q$ is a rational poins on elliptic curve ($P$ is unknown), and $n$ is integer?</p>
0non-cybersec
Stackexchange
HD images on eCommerce and SEO. <p>I have an eCommerce website where product images are currently resized to 250x250 max and shown to the user. I shrink the original high-definition images to a size that makes it possible for the page to load quickly.</p> <p>This is what is currently being done:</p> <ul> <li>Images are part of the Product microdata information.</li> <li>Every product image is listed on my website's sitemap.xml</li> <li>The product image is loaded via an IMG tag.</li> </ul> <p>I want to take advantage of the HD version that I keep on my server, and show it to users in a friendly way, but also want to help images rank.</p> <p>How can I get Google to associate my image in the most SEO friendly way? I could possibly replace the image on the sitemap with the HD version.</p> <p>However, what bothers me is that I can't seem to do the same for the Product snippet, since Google hates hidden content, and I certainly don't want the HD image to be loaded when the product page is loaded. Are there any alternatives to actually loading the full-sized image?</p>
0non-cybersec
Stackexchange
He isn't coming back up after that..
0non-cybersec
Reddit
Since health potions exist in WoW as icons, I decided to try my hand at seeing what they'd actually look like..
0non-cybersec
Reddit
D3 bar chart background with dots. <p>I found this d3 example showing a bar chart with a solid background and a diagonal line pattern. I'm trying to modify it to show dots, solid, white circles instead of lines, by modifying the 'd' attribute, but think there is probably a better way to do this. </p> <p>This is my fiddle showing diagonal lines:</p> <p><a href="http://jsfiddle.net/ljp007/gruc1vod/1/" rel="nofollow noreferrer">http://jsfiddle.net/ljp007/gruc1vod/1/</a></p> <pre><code>var svg = d3.select("body").append("svg"); svg .append('defs') .append('pattern') .attr('id', 'diagonalHatch') .attr('patternUnits', 'userSpaceOnUse') .attr('width', 4) .attr('height', 4) .append('path') .attr('d', 'M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2') .attr('stroke', '#fff') .attr('stroke-width', 1); svg.append("rect") .attr("x", 0) .attr("width", 100) .attr("height", 100) .style("fill", 'blue'); svg.append("rect") .attr("x", 0) .attr("width", 100) .attr("height", 100) .attr('fill', 'url(#diagonalHatch)'); </code></pre> <p>and here is what I'm trying to achieve:</p> <p><a href="https://i.stack.imgur.com/QYA1m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QYA1m.png" alt="enter image description here"></a></p> <p>The dots do not plot data but are simply for appearance to distinguish this bar from others in the chart. How can I convert the lines to dots to achieve this?</p>
0non-cybersec
Stackexchange
Is anyone mad that I tore this pizza?.
0non-cybersec
Reddit
Is there a way for Snow Leopard to remember previously unidentified USB keyboards?. <p>I have an arbitrary Dell USB keyboard that I use with my MBP running Snow Leopard. Everytime I plug the keyboard in, or reboot my computer, Keyboard Setup Assistant pops up saying the keyboard needs to be identified before it can be used. Once I follow its instructions, I can proceed to use this keyboard.</p> <p>Is there some way my computer can automatically identify this keyboard in the future so I don't have to run Keyboard Setup Assistant?</p>
0non-cybersec
Stackexchange
Definition of a Manifold from Guillemin Pollack. <p>I have been studying differential topology from Guillemin and Pollack (GP). Unlike many other books that define differentiable manifolds using maximal atlases GP starts by saying $ X \subset R^{N}$ for some ambient space $R^{N}$ and then goes on to define a $k$ dimensional manifold. But I know that this containment comes due to a weak version of Whitney's theorem.</p> <p>Later on when they prove Whitney's theorem it is done so by induction on $N &gt;= 2k+1$. But how to I justify that $ X \subset R^{N}$ in the first place? How can it just be assumed in definition like that?</p> <p>I need help getting from the general definition of manifolds using atlases to the weak version of Whitney.</p> <p>Thanks</p>
0non-cybersec
Stackexchange
CC desperately needed! Anna from frozen costume makeup attempt #1 (Sorry about the potato quality. It's night.).
0non-cybersec
Reddit
lab mouse disection.
0non-cybersec
Reddit
Can I upgrade to Linux 3 Kernel on Ubuntu 10.10?. <p>I need to use Linux 3, becasue with Linux 2.6.x has display problems with my SandyBridge integrated graphic. On the other hand, I need to downgrade to Ubuntu 10.04/10 because <a href="http://www.betavine.net/bvportal/resources/datacards/os/ubuntu" rel="nofollow">Betavine</a> packages for running my mobile broadband modem work only with Ubuntu 10.04 (and 10.10). Hence I need to make a compromise. I appreciate your hints. </p>
0non-cybersec
Stackexchange
A limit coming from high school. <p>I'm sure you guys can do this in many ways, using integrals, Taylor series, but I need a<br> high school way, like the use of a simple squeeze theorem. Can we get such a way? </p> <p>$$\lim_{n\to\infty}\left(1+\log\left(1+\frac{1}{n^2}\right)\right)\left(1+\log\left(1+\frac{2}{n^2}\right)\right)\cdots\left(1+\log\left(1+\frac{n}{n^2}\right)\right)$$</p> <p><strong>EDIT</strong>: The proof I need I plan to present to some kids, so everything should be clear for them.</p>
0non-cybersec
Stackexchange
Pin and PLAY Pickups (NC/CDG).
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
Where did the super long-necked eggsecutor meme come from?. I keep seeing it, but have yet to find a source. It's driving me nuts
0non-cybersec
Reddit
Airport doggo excited for work..
0non-cybersec
Reddit
want to get rid of the gap between \mathcal{F} and \mid_S. <p>With this code</p> <p><pre><code> \documentclass[12pt]{amsart} \usepackage{pstricks} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{latexsym,amsmath} \usepackage{graphicx} \usepackage{stmaryrd}</p> <p>\begin{document}</p> <p>$L^{2}(\mathcal{F})\cong L^{2}(\Gamma)\otimes L^2(\mathcal{F}\mid_{S})\cong L^{2}(\Gamma) \otimes L^2(\mathcal{F}_{\Gamma})$</p> <p>\end{document} </pre></code></p> <p>how do I get rid of the gap between the F and the \mid_S ?</p>
0non-cybersec
Stackexchange
[NSFW] Shadow Company (2006) [1:25:32] - eye-opening film exploring the moral and ethical issues of mercenaries and private military solutions such as Blackwater.
0non-cybersec
Reddit
MySQL/MariaDB/PerconaDB - Video Demo of PoC Exploits RaceCond PrivEsc CVE-2016-6663 CVE-2016-6664.
1cybersec
Reddit
Doctrine 2.1 where foreign key id =?, edit: Fixed in Doctrine 2.2. <p>I've looked at a lot of answers here related to what seems to be a serious lack of functionality in Doctrine 2.1 that may be the result of OOP correctness trumping relational sanity. </p> <p>I have two tables with a many to one relationship, Articles and Members. A Member can have many published Articles. The annotation on the owning side is</p> <pre><code>/** * @var \Member * @ORM\ManyToOne(targetEntity="Member") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="member_id", referencedColumnName="id") * }) */ private $member; </code></pre> <p>I want to get all active articles for member 6, this is a simple query in SQL: </p> <pre><code>SELECT * FROM mbr_article WHERE active = 1 AND member_id = 6 ORDER BY article_id DESC </code></pre> <p>What I ended up with was </p> <pre><code>$rep = $this-&gt;getDoctrine()-&gt;getRepository('SMWMemberBundle:Article'); $q = $rep-&gt;createQueryBuilder('a') -&gt;leftJoin('a.member','m') -&gt;where('m.id = ?1') -&gt;andWhere('a.active = 1') -&gt;orderBy('a.id', 'DESC') -&gt;setParameter(1, $id) -&gt;getQuery(); </code></pre> <p>which generated</p> <pre><code>SELECT m0_.id AS id0, m0_.active AS active1, m0_.update_time AS update_time2, m0_.content AS content3, m0_.member_id AS member_id4 FROM mbr_article m0_ LEFT JOIN mbr_member m1_ ON m0_.member_id = m1_.id WHERE m1_.id = ? AND m0_.active = 1 ORDER BY m0_.id DESC </code></pre> <p>which works and probably isn't much slower, but that JOIN is not needed as I already have the Member object. When I tried it the other way, I got all Articles not just active ones. </p> <p>I've seen responses such as <a href="https://stackoverflow.com/questions/8211679/can-you-get-a-foreign-key-from-an-object-in-doctine2-without-loading-that-object">Can you get a foreign key from an object in Doctine2 without loading that object?</a> that use <code>getEntityIdentifier</code> and mentions improvements coming in the 2.2 where I could say <code>IDENTITY(member)</code>. </p> <p>Is there a reasonable way to do this in Doctrine 2.1? Will the enhancement allow <code>andWhere('IDENTITY(member) = ?')</code> in the query builder? </p> <p>Edit:</p> <p>Thanks to @Ocramius, ->where('IDENTITY(a.member) = ?1') does work in Doctrine 2.2</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 change the console font size. <p>How can I change the font size in a console app on Windows? Simplest way? What is the difference between changing console color using <code>system("")</code> and windows.h?</p>
0non-cybersec
Stackexchange
Sections of a bundle. <p>I would like that someone explain to me why in general $ \Gamma ( T^*M \otimes TM ) = \Gamma ( T^*M ) \otimes_{\mathcal{C}^{\infty} ( M )} \Gamma ( TM ) $ with $ \Gamma ( T^*M ) $ is a set of sections of the bundle $ T^*M $ ? Thanks a lot.</p>
0non-cybersec
Stackexchange
Smol boi.
0non-cybersec
Reddit
Backbone.js: communication between views. <p>I'm working on a Backbone app that contains a list of entries, much like the example app Todos (<a href="http://documentcloud.github.com/backbone/examples/todos/index.html" rel="nofollow noreferrer">http://documentcloud.github.com/backbone/examples/todos/index.html</a>).</p> <p>So, I have an App view and one view per list item. Now, say I have a global edit button. The App view would handle a click and what I then want to do is tell each list view to show a delete button. </p> <p>In the screenshots below (from Spotify), pressing the Edit button causes all list views to change appearance.</p> <p>What's the best way to do this with Backbone. I need to iterate over all list views and call a editMode function. But the App view (out of the box) doesn't know about the list views..</p> <p><img src="https://i.stack.imgur.com/xkoVx.png" alt="enter image description here"></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 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
PsBattle: Gonzo the cat.
0non-cybersec
Reddit
Revisiting /u/jdbee's Five summer color combos that can do no wrong, do these still stand the test of time?.
0non-cybersec
Reddit
Error installing Canon LBP 2900 on Ubuntu 18.04. <p><a href="https://i.stack.imgur.com/eHWzP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eHWzP.png" alt="error image"></a></p> <p>I've been trying to install Canon LBP 2900 driver on my Ubuntu 18.04 for the past few days. I tried following many tutorials such as <a href="https://askubuntu.com/questions/920841/how-to-install-canon-lbp2900b-printer-in-ubuntu-16-04-lts">How to install canon lbp2900b printer in ubuntu 16.04 lts</a>, and also tried installing via GUI by downloading <a href="https://www.canondriver.net/canon-lbp-2900-driver-linux/" rel="nofollow noreferrer">this driver</a>. I'm having problems installing.</p> <pre><code>Preparing to unpack cndrvcups-capt_2.71-1_amd64.deb ... Unpacking cndrvcups-capt (2.71-1) ... dpkg: dependency problems prevent configuration of cndrvcups-capt: cndrvcups-capt depends on cndrvcups-common (&gt;= 3.21); however: Version of cndrvcups-common on system is 2.60-1. dpkg: error processing package cndrvcups-capt (--install): dependency problems - leaving unconfigured Processing triggers for systemd (237-3ubuntu10.2) ... Processing triggers for ureadahead (0.100.0-20) ... Errors were encountered while processing: cndrvcups-capt </code></pre> <p>How can I get this printer working?</p>
0non-cybersec
Stackexchange
Proof that $\frac{1}{2} &gt; 0$ using order properties of $\mathbb R$. <p>Let <span class="math-container">$\mathbb P$</span> be a non-empty subset of <span class="math-container">$\mathbb R$</span> such that for all <span class="math-container">$a, b \in \mathbb P$</span>,</p> <ul> <li><span class="math-container">$a + b \in \mathbb P$</span></li> <li><span class="math-container">$ab \in \mathbb P$</span></li> <li>Exactly one of the following holds: <span class="math-container">$a \in \mathbb P$</span>, <span class="math-container">$-a \in \Bbb P$</span>, <span class="math-container">$a = 0$</span>.</li> </ul> <p>I already know that <span class="math-container">$n &gt; 0$</span> for all <span class="math-container">$n\in \mathbb N$</span>. How do I show that <span class="math-container">$\frac{1}{2} &gt; 0$</span>, or, in general, <span class="math-container">$\frac{1}{n} &gt; 0$</span>? My initial attempt at doing this was to assume by contradiction that <span class="math-container">$\frac{1}{2} &lt; 0$</span>. Then by definition, <span class="math-container">$-\frac{1}{2} \in \mathbb P$</span>. My question is, can I assume that <span class="math-container">$-\frac{1}{2} - \frac{1}{2} = -1$</span> if I'm basing this on the algebraic properties of <span class="math-container">$\mathbb R$</span> where <span class="math-container">$\mathbb R$</span> is treated as a field?</p> <p>For instance, although it's obvious that <span class="math-container">$1*0 = 0$</span> in common sense math, in field theory, it is proven rigorously (a.k.a the annihilator property). Does a similar idea apply for other numbers in the field, for instance, the number <span class="math-container">$\frac{1}{2}$</span>?</p> <p>Thanks in advance.</p>
0non-cybersec
Stackexchange
What are those nul bytes doing in Certificate Subject CN?. <p>While doing some research with SSL certificates, I found some weird certificates containing nul bytes in their Subject field. One example is <code>www.refah - bank.ir</code> (did the Iranian government fake this CA? It looks very similar to a Spanish CA except for location...).</p> <p>Another example is <code>mcafee.com</code> which looks more trustworthy to me. They have two different IP addresses for <code>mcafee.com</code> and <code>www.mcafee.com</code>, the certificate also differs. What surprised me was that such a company uses certificates containing nul bytes in their Subject field:</p> <pre><code>Data: Version: 3 (0x2) Serial Number: c8:e6:3c:67:a8:7f:38:ba:c9:ab:06:ef:4e:68:67:0d Signature Algorithm: sha1WithRSAEncryption Issuer: O=Network Associates, OU=NAI Certificate Services, CN=NAI SSL CA v1 Validity Not Before: Aug 26 20:36:38 2008 GMT Not After : Apr 26 09:28:50 2019 GMT Subject: C=US, ST=Texas, L=Plano, O=McAfee, Inc, OU=IIS-Plano, CN=\x00*\x00.\x00m\x00c\x00a\x00f\x00e\x00e\x00.\x00c\x00o\x00m </code></pre> <p>Opening <code>mcafee.com</code> correctly rejected the certificate as the wildcard does not match against this. Out of curiosity, I edited my host file and made <code>foo.mcafee.com</code> (and <code>www.</code>) point to the IP address 161.69.13.40 (mcafee.com). I would expect such a certificate to be rejected, but Firefox and Chromium both accept this certificate.</p> <p>I found another website that has nul bytes in the CN and is still "trusted": <a href="https://www.digiturk.com.tr">https://www.digiturk.com.tr</a></p> <p>What is happening here?</p>
0non-cybersec
Stackexchange
dont you hate it when you're a guest in someone's house who you don't know too well and they hand you the TV remote and tell you, "put on whatever you want!". I get anxious. What do i do??? Do i change what they had on? Should I keep the TV off? What if i want to watch something i know they have no interest in? What if I have NO IDEA what to watch??? I normally just go on the guide for a long time (something i never even do lol) and end it with like "gee i don't know" or something like that. awfully awkward!
0non-cybersec
Reddit
Get and display the selected variation SKU in WooCommerce. <p>I have this code that works for simple product type but not for variable products in WooCommerce: </p> <pre><code>add_shortcode( 'product_sku_div', 'wc_product_sku_div'); function wc_product_sku_div() { global $product; return sprintf( '&lt;div class="widget" sp-sku="%s"&gt;&lt;/div&gt;', $product-&gt;get_sku() ); } </code></pre> <p>How can I make it work for both simple and variable products?</p>
0non-cybersec
Stackexchange
I really don't want this to be a real thing.
0non-cybersec
Reddit
RHEL HA cluster, is it possible to get a notification upon failover. <p>I have configured Linux HA cluster on RHEL 7.1, can i get a notification upon failover or is it possible to start the crashed resource automatically ?</p>
0non-cybersec
Stackexchange
San Japan.
0non-cybersec
Reddit
20 Interesting Facts About Comets.
0non-cybersec
Reddit
Symfony2: Slow page loads. <p>I am attempting to setup Symfony2 on an Ubuntu virtual host. However even the simple hello world page is taking around 7-8 seconds to load. I have tried running other applications such as PhpMyAdmin and they are running fine but i cannot figure out why symfony is taking so long to load.</p> <p>Here are some webgrind results: <img src="https://i.stack.imgur.com/JZKsj.png" alt="Web Grind Results" /></p> <p>Im sorry i cant provide any more information at the moment but im not sure where to look. Thanks in advance.</p> <p>Daniel</p>
0non-cybersec
Stackexchange
ITAP of a puddle.
0non-cybersec
Reddit
SQL Server fulltext_semantic_languages. <p>When trying to install <a href="http://blogs.msdn.com/b/sqlfts/archive/2011/07/21/introducing-fulltext-statistical-semantic-search-in-sql-server-codename-denali-release.aspx" rel="nofollow">a semantic search example</a>, I'm running into a problem. </p> <p>There are some steps in the example to check if the 'new' Semantic Search and Full Text Search are installed. </p> <p>Executing the following T-SQL code returns the version '11.0.1153.1.1' of the semantic database. </p> <pre><code>/* Verify the registration is succeeded */ SELECT * FROM sys.fulltext_semantic_language_statistics_database; GO </code></pre> <p>And...the following T-SQL code returns 1, which indicates that Full-Text Search and Semantic Search are installed.</p> <pre><code>/* Check if Full-Text Search and Semantic Search are installed*/ SELECT SERVERPROPERTY('IsFullTextInstalled'); GO </code></pre> <p>I also registered the 'language_statistics_db'. </p> <pre><code>/* Register Language Statistics Database */ EXEC sp_fulltext_semantic_register_language_statistics_db 'semanticsdb'; GO </code></pre> <p>I'm executing the following T-SQL code to verify if the languages are installed correctly <em>(this is were something odd happens)</em>. </p> <pre><code>/* Check available languages for statistical semantic extraction */ SELECT * FROM sys.fulltext_semantic_languages; GO </code></pre> <p>This statement returns no rows, indicating that there are no languages installed. I tried reinstalling the database(s) but with no effect. </p> <p>Can someone point out to me were I made a mistake?</p> <p><strong>UPDATE</strong>: After unregistering the semantic_language database and registering it using 'master' it worked. No idea why this worked. <strong><em>Why? Someone?</em></strong></p> <p>The code that worked for me:</p> <pre><code>/ * Unregistar language db */ EXEC sp_fulltext_semantic_unregister_language_statistics_db GO </code></pre> <p>And registering: </p> <pre><code>/ * register_language db */ Use master EXEC sp_fulltext_semantic_register_language_statistics_db GO </code></pre>
0non-cybersec
Stackexchange
Subfigure float - caption above, and how to break figure over two pages. <p>Firstly, thanks a lot in advance for your help with this problem. I've looked long and hard but not found a solution anywhere. I am writing my PhD thesis in Lyx and love how it makes the formatting so smart and easy, but I am having real trouble with some of my figures. I have three things I would like to achieve:</p> <p>1) I would like to make figures with several subfloats (to show the same combination of an image and a graph in each. (I'll attach an example to this email). It really is valuable to have all three subfloats under the same single figure heading. The problem is that only two of my three floats fit on a page and the third one is started but gets lost off the bottom. I don't want to make the figures smaller so they fit. Can I persuade Lyx to split the figure over two pages (a bit like it does with long tables)?</p> <p>2) I would like the captions of the subfigures ABOVE the figures. </p> <p>3) I would like the gap between the subfigure legends and the images to be bigger (you can see how squashed up they are).</p> <p>I'm using the following in my document preamble to justify the labels on the left.</p> <pre><code>\usepackage{caption} \captionsetup{labelfont=bf,format=plain,indention=0cm, justification=raggedright,singlelinecheck=false} </code></pre> <p>I tried to upload a pdf of what happens to the figure but it took too long so perhaps you can take it on trust that the bottom of the figure and main figure legend disappears off the end of the page.</p>
0non-cybersec
Stackexchange
Database design for products with bundles of products. <p>I am building a database system for my retail business. I have set some tables which are:</p> <ul> <li>Product</li> <li>Purchase</li> <li>Sales</li> <li>Balance</li> </ul> <p>All are connected one another and are able to show my inventory level.</p> <p>The problem I am having is I also sell bundles of products - that have different prices than their individual prices.<br> Example: I sell an orange for $1, an apple for $1.2; I sell fruit package 1 (2 oranges and 2 apples) for $3.8, package 2 (4 oranges and 4 apples) for $7.</p> <p>Is there a right way how to create relationship for these product bundles?</p> <p>PS: I am using FileMaker Pro creating this.</p>
0non-cybersec
Stackexchange
Are all roots of polynomials complex numbers?. <p>I'm sure this is a terrible question but I'd like to make sure. Given a polynomial, will its roots always be complex numbers? What else could they even be?</p>
0non-cybersec
Stackexchange
Gang-rape shame could drag India into 21st century.
0non-cybersec
Reddit
Encoutering an error when trying to run an .exe through both Ollydbg and x64dbg (failure to load a DLL).
1cybersec
Reddit
Can not transform code with babel transform with config file. <p>This is the config file:</p> <pre><code>{ &quot;presets&quot;: [ &quot;@babel/preset-env&quot; ], &quot;plugins&quot;: [ &quot;@babel/plugin-transform-modules-commonjs&quot; ] } </code></pre> <p>This is the command:</p> <pre><code>npx babel src/* --out-dir build </code></pre> <p>The CLI output is</p> <pre><code>src/script.js -&gt; build\src\script.js </code></pre> <p>The output script file is identical to the input script file.</p> <hr /> <p>This is the node.js file:</p> <pre class="lang-js prettyprint-override"><code>const babel = require('@babel/core'); const fs = require('fs'); fs.writeFileSync( 'build/index.js', babel.transformFileSync( 'src/index.js', { plugins: [&quot;@babel/plugin-transform-modules-commonjs&quot;] } ).code ); </code></pre> <p>The output script file's content is what is expected.</p> <hr /> <p>I used this as input:</p> <pre><code>const test = 0; export default { test }; </code></pre> <p>This is the output from the CLI command shown above.</p> <pre><code>const test = 0; export default { test }; </code></pre> <p>This is the output from the NodeJS file shown above (which is my expected output from the CLI).</p> <pre><code>&quot;use strict&quot;; Object.defineProperty(exports, &quot;__esModule&quot;, { value: true }); exports[&quot;default&quot;] = void 0; var test = 0; var _default = { test: test }; exports[&quot;default&quot;] = _default; </code></pre> <hr /> <p><strong>Q:</strong> Can you you babel CLI to transform code?</p>
0non-cybersec
Stackexchange
Add keyboard shortcut to print custom characters. <p>I would like to map the Alt (Option) + (a/u/o/s) to ä,ü,ö,ß </p> <p>Is there a native way, or a software for it?</p>
0non-cybersec
Stackexchange
Is Samsung 850 EVO worth it?. Hi, I'm going to upgrade my PC, and the first thing I will buy is an SSD. So, in paper, the 850 EVO is the winner in the 250 GB category, but in practice is there a significant performance difference between a more budget SSD? Thank you.
0non-cybersec
Reddit
Laravel changes created_at on update. <p>I found <a href="https://stackoverflow.com/questions/31842470/laravel-updating-row-changes-created-at-column">this answer</a> on the subject, but it doesn't work for me.</p> <p>So, I make an entry in the database:</p> <pre><code>// Write lead to database $lead = Lead::create($lead_data); </code></pre> <p>And the timestamps look like this, which is good:</p> <pre><code>| 2016-01-08 10:34:15 | 2016-01-08 10:34:15 | </code></pre> <p>But then I make a request to an external server, and I need to update the row:</p> <pre><code>$lead-&gt;user_id = $response['user_id']; $lead-&gt;broker_id = $response['broker_id']; $lead-&gt;save(); </code></pre> <p>and the created_at field gets changed:</p> <pre><code>| 2016-01-08 04:34:17 | 2016-01-08 10:34:17 | </code></pre> <p>How do I solve this problem?</p> <p><strong>EDIT</strong></p> <p>I need a solution that would just modify the behavior without dropping columns or resetting migrations. The fix has to be performed on a live database without touching the data. As suggested below, I tried the following migration:</p> <pre><code>$table-&gt;datetime('created_at')-&gt;default(DB::raw('CURRENT_TIMESTAMP'))-&gt;change(); </code></pre> <p>but nothing happens. The created_at field still gets modified on update.</p>
0non-cybersec
Stackexchange
TIL The creator of Wonder Woman was in a polyamorous relationship with his wife and another woman. They all lived together and both women served as exemplars for the character and greatly influenced the character's creation..
0non-cybersec
Reddit
Fruit + yogurt.
0non-cybersec
Reddit
Austria stops train from Italy due to coronavirus suspects.
0non-cybersec
Reddit
$\frac{n!}{(n+\frac{1}{x})!} = ?$ for some positive real $x$. <p>Is there a simple way to express : $\frac{n!}{(n+\frac{1}{x})!} = ?$ where $x, n$ are positive real numbers ? </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
#PaulRyanSoScared, He Sent SIX Security Guards to Block Planned Parenthood Volunteers.
0non-cybersec
Reddit
Looking for a good exercise to help me get better at Multithreading. <p>I think of myself as a pretty decent developer, however when it comes to multithreading I'm a total n00b. I mean the only multithreading I've done at work was the very basic stuff like spawning off multiple threads using the ThreadPool to do some background work. No synchronization was necessary, and there was never any need to create threads manually.</p> <p>So, my question is this; I want to write some application that will need to be heavily multithreaded and that will need to do all of the advanced things like synchronization etc.. I just can't think of anything to write. I've thought of maybe trying to write my own ThreadPool, but I think I need to learn to walk before I can run. So what ideas can anyone suggest? It doesn't have to have any real world useage, it can be totally pointless and worthless, but I just want to get better. I've read tons of articles and tutorials on all the theory, but the only way to REALLY get better is by doing. So, any ideas?</p>
0non-cybersec
Stackexchange
Is there a program equivalent to lint for LaTeX?. <p>Is there a program equivalent to lint for LaTeX? (lint checks C code for syntax errors and possible mistakes.)</p>
0non-cybersec
Stackexchange
Pytorch saving model UserWarning: Couldn&#39;t retrieve source code for container of type Network. <p>When saving model in Pytorch by using:</p> <pre><code>torch.save(model, 'checkpoint.pth') </code></pre> <p>I get the following warning:</p> <blockquote> <p>/opt/conda/lib/python3.6/site-packages/torch/serialization.py:193: UserWarning: Couldn't retrieve source code for container of type Network. It won't be checked for correctness upon loading. "type " + obj.<strong>name</strong> + ". It won't be checked "</p> </blockquote> <p>When I load it I get the following error:</p> <pre><code>state_dict = torch.load('checkpoint_state_dict.pth') model = torch.load('checkpoint.pth') model.load_state_dict(state_dict) AttributeError Traceback (most recent call last) &lt;ipython-input-2-6a79854aef0f&gt; in &lt;module&gt;() 2 state_dict = torch.load('checkpoint_state_dict.pth') 3 model = 0 ----&gt; 4 model = torch.load('checkpoint.pth') 5 model.load_state_dict(state_dict) /opt/conda/lib/python3.6/site-packages/torch/serialization.py in load(f, map_location, pickle_module) 301 f = open(f, 'rb') 302 try: --&gt; 303 return _load(f, map_location, pickle_module) 304 finally: 305 if new_fd: /opt/conda/lib/python3.6/site-packages/torch/serialization.py in _load(f, map_location, pickle_module) 467 unpickler = pickle_module.Unpickler(f) 468 unpickler.persistent_load = persistent_load --&gt; 469 result = unpickler.load() 470 471 deserialized_storage_keys = pickle_module.load(f) AttributeError: Can't get attribute 'Network' on &lt;module '__main__'&gt; </code></pre> <p>Why is not possible to save a model and reload it entirely?</p>
0non-cybersec
Stackexchange
Relative Spaces in Snow Leopard. <p>I usually have a 4x3 grid for spaces. Each row is dedicated to a different subject/project. Does anyone know a way to move to different column of the current row? So if I pressed control + 1 it would move to column 1 of whatever row I was current in.</p>
0non-cybersec
Stackexchange
What is empty session path in tomcat?. <p>I have read apache tomcat documentation a day before, and I am so confused about <code>emptySessionPath</code> . Up to my knowledge, if it's set to true, the <code>emptySessionPath</code> is stored at the root folder of web application. Please give the right definition of the term <code>emptySessionPath</code> and what happens if it is set to true and false?</p> <p>Please guide me.Thanks in advance.</p>
0non-cybersec
Stackexchange
How to remove Win+K &#39;connect to wireless device&#39; shortcut?. <p>In Windows 10 there's a Win+K shortcut to launch the "Connect to a wireless display and audio devices" sidebar app. I would like to remove this shortcut because I like to use Win+K as a shortcut to launch an app using an AutoHotKey script that I use on multiple computers.</p>
0non-cybersec
Stackexchange
Parental Guidance and Control.
0non-cybersec
Reddit
EU Parliament votes 663-13 against ACTA's enforcement measures.
0non-cybersec
Reddit
This is the most DEAD meme on YouTube.
0non-cybersec
Reddit
When you really need that selfie..
0non-cybersec
Reddit
www.YALQUZAQ.com.
0non-cybersec
Reddit
Setting up a Godaddy SSL on CentOS?. <p>I've never set up an SSL on Linux before, but have a general idea of how it works. Server specs below if it helps:</p> <p>Server: CentOS Linux 6 Workstation: Windows 7</p> <p>So, I have 4 domains all of which share a single Magento installation and IP address. Assume one of my domains is "mywebsite1.com" I am trying to enable SSL just for this one domain for now, but I am running into errors. What am I doing wrong? Here's my work flow:</p> <ol> <li><p>I purchased an SSL from Godaddy then generated the csr and key with the command given by them:</p> <p><code>openssl req -new -newkey rsa:2048 -nodes -keyout mywebsite1.key -out mywebsite1.csr</code></p></li> <li><p>I copy both the files to /etc/pki/tls/private</p></li> <li><p>I open mywebsite1.crs then copy and paste the code to Godaddy. </p></li> <li><p>I generate the crt files and download them from Godaddy, upload to my server, and then move them to /etc/pki/tls/certs</p></li> <li><p>a. 1st try, I opened /etc/httpd/conf.d/ssl.conf and updated the <em>default</em> VirtualHost block's SSLCertificate File, KeyFile, and ChainFile values to point to the correct locations. </p> <p>b. 2nd try, following <a href="http://dev.antoinesolutions.com/apache-server/mod_ssl" rel="nofollow noreferrer">http://dev.antoinesolutions.com/apache-server/mod_ssl</a> I modified ssl.conf and added this directive: </p> <p><code>NameVirtualHost *:443</code></p> <p>c. Then I removed the entire <em>default</em> VirtualHost block (which was quite lengthy).</p> <p>Last attempt, I added the following to the modified ssl.conf from</p></li> </ol> <p><code> &lt;VirtualHost *:443></p> <pre><code> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/mywebsite1.com.crt SSLCertificateKeyFile /etc/pki/tls/private/mywebsite1.key SSLCertificateChainFile /etc/pki/tls/certs/gd_bundle.crt DocumentRoot /var/www/html ServerName mywebsite1.com &lt;/VirtualHost&gt; </code></pre> <p></code></p> <p>6.. I restart Apache</p> <p>7.. I then go to <a href="https://mywebsite1.com" rel="nofollow noreferrer">https://mywebsite1.com</a> only to find errors that prevent me from viewing the site in various browsers.</p> <hr> <p>Browser: Firefox</p> <pre><code>SSL received a record with an unknown content type. (Error code: ssl_error_rx_unknown_record_type) </code></pre> <hr> <p>Browser: Chrome</p> <pre><code>Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error. </code></pre> <hr> <p>Browser: IE ...takes me to Google...</p> <hr> <p>httpd.conf:</p> <pre><code>NameVirtualHost 12.34.567.89 &lt;VirtualHost 12.34.567.89&gt; DocumentRoot /var/www/html ServerName website1.com &lt;/VirtualHost&gt; &lt;VirtualHost 12.34.567.89&gt; DocumentRoot /var/www/html ServerName website2.com &lt;/VirtualHost&gt; &lt;VirtualHost 12.34.567.89&gt; DocumentRoot /var/www/html ServerName website3.com &lt;/VirtualHost&gt; &lt;VirtualHost 12.34.567.90:80&gt; DocumentRoot /var/www/html ServerName website4.com &lt;/VirtualHost&gt; </code></pre> <p>Notes: </p> <ol> <li>I've read that you must enable ssl with a command called "a2enmod ssl" but that command does not exist for my server. </li> <li>There are no ssl error logs in /etc/httpd/logs.</li> <li>As per Godaddy, I was instructed to name the key "mywebsite1" without the extension. However, they give me a crt with the extension, which is odd.</li> <li>This is only development phase and this change will need to be quickly reproduced with a new SSL and different domains once we launch the production server.</li> </ol> <p>I've tried all of the steps 3 times (see 5a-5c), but still no luck in getting the SSL to work for 1 of my domains. How can I get SSL to work?</p> <p><strong>UPDATE: apachectl -S</strong></p> <pre><code>12.34.567.90:80 mywebsite4.com (/etc/httpd/conf/httpd.conf:1021) 12.34.567.89:* is a NameVirtualHost default server mywebsite3.com (/etc/httpd/conf/httpd.conf:1016) port * namevhost mywebsite3.com (/etc/httpd/conf/httpd.conf:1016) port * namevhost mywebsite1.com (/etc/httpd/conf/httpd.conf:1026) port * namevhost mywebsite2.com (/etc/httpd/conf/httpd.conf:1031) port * namevhost mywebsite5.com (/etc/httpd/conf/httpd.conf:1036) wildcard NameVirtualHosts and _default_ servers: *:443 is a NameVirtualHost default server mywebsite1.com (/etc/httpd/conf.d/ssl.conf:77) port 443 namevhost mywebsite1.com (/etc/httpd/conf.d/ssl.conf:77) Syntax OK </code></pre> <p><strong>UPDATE: Got it working..but..</strong></p> <p>I managed to get the SSL running by changing the vhost to just point to mywebsite1 instead of *:443</p> <pre><code>&lt;VirtualHost mywebsite1.com&gt; SSLEngine on SSLCertificateFile /etc/pki/tls/certs/mywebsite1.com.crt SSLCertificateKeyFile /etc/pki/tls/private/mywebsite1.key #SSLCertificateChainFile /etc/pki/tls/certs/gd_bundle.crt DocumentRoot /var/www/html ServerName mywebsite1.com ErrorLog logs/ssl_error_log TransferLog logs/ssl_access_log LogLevel warn &lt;/VirtualHost&gt; </code></pre> <p>This pulls up the SSL, however... the HTTP protocol returns a "Bad Request" </p> <p>This change seems to be affecting the non-ssl viewing of the site. I can't specify the port because restarting apache will give me an error that ports and non-ports can't be mixed.</p> <p><strong>UPDATE</strong></p> <p>Fixed with the suggestion by Michael Hampton. Thanks guys.</p>
0non-cybersec
Stackexchange
Seagate&#39;s 30TB NAS with SimplyRAID configuration. <p>I recently bought a Seagate NAS Pro 6-Bay 30TB Network Attached Storage Drive (STDF30000100) from Amazon (<a href="http://rads.stackoverflow.com/amzn/click/B00LM6KVZA" rel="nofollow noreferrer">http://www.amazon.com/gp/product/B00LM6KVZA?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o00_s00</a>). It says it uses Seagate's SimplyRAID configuration. Unfortunately I could not find a clear explanation of how much space will I get if I opt for SimplyRAID as opposed to other RAID solutions. Can someone explain this to a newbie? Thanks.</p>
0non-cybersec
Stackexchange
Found on a visit to St. Thomas. Taken with Canon Ti3. Hope you enjoy it as much as I do..
0non-cybersec
Reddit
This 😡.
0non-cybersec
Reddit
How do I know if I will be able to daisy-chain monitors? (connect two monitors to 1 DisplayPort). <p>I am planning to use <a href="http://en.wikipedia.org/wiki/Microsoft_Surface_Pro_2" rel="noreferrer">Surface Pro 2</a> with a dock station as my main computer and I would like to connect two external monitors to it, but <a href="http://www.microsoft.com/surface/en-us/support/hardware-and-drivers/docking-station" rel="noreferrer">the dock station</a> only contains a single DisplayPort socket. However, I see that <a href="http://en.wikipedia.org/wiki/DisplayPort#1.2" rel="noreferrer">DisplayPort 1.2</a> specification, approved in 2009, allows for daisy-chaining monitors through its <em>Multi-Stream Transport</em> feature.</p> <p>How do I tell if I will be able to use two monitors in daisy-chain mode with my computer?</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
Nike Flex 2016 RN Running Shoes- $39.98 + shipping.
0non-cybersec
Reddit
Dog hug!.
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
VirtualBox says &quot;No bootable medium found!&quot;. <p>I downloaded the latest <code>mu microsoft hpc pack 2008 r2 with service pack 2 x86 x64 dvd 709909.iso</code>. </p> <p>Both VMWare Workstation and Oracle's VirtualBox give me an option to select an ISO file . When I do this, I get "No bootable medium found!".</p> <p>What am I doing wrong?</p>
0non-cybersec
Stackexchange