text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Ontario parents who object to vaccines could be forced to take a class in science of immunization..
0non-cybersec
Reddit
Show that a specific $w$ cannot be the root of an quadratic with integer coefficients.. <p>Let $w$ be the only real root of $x^3-x-1=0$. Show that $w$ cannot satisfy the quadratic $ax^2 + bx + c$ ,where $a,b,c\in \Bbb Z$.</p> <p>I have written $$w^3=w+1$$ but I can't go any further than this. Thank you.</p>
0non-cybersec
Stackexchange
The existence of Pisot numbers in any real number field. <p><a href="http://en.wikipedia.org/wiki/Pisot_number#Elementary_properties" rel="nofollow">Wikipedia claims</a> that, given a real algebraic number field $K$ of degree $n$, there is an algebraic integer $r \in K$ of degree $n$ such that $r&gt;1$, but every conjugate of $r$ has modulus $&lt;1$ (Such a number is called a Pisot number). I'm trying to prove this fact.</p> <p>I would be finished if I could show that given $n$ distinct real numbers $a_1,...,a_n$ there is a polynomial $P$ with integer coefficients such that $P(a_1)&gt;1$ and $|P(a_i)|&lt;1$ for $i=2,...,n$. </p> <p>Does anyone know whether the above conjecture is valid? Is there another way to prove Wikipedia's proposition? Any suggestion for a possible solution is appreciated.</p>
0non-cybersec
Stackexchange
Rockets and fluid mechanics question (not technical). <p>Hi I am just wondering what kind of maths goes into rockets and fluid mechanics. I understand there is variable mass system. </p> <p>But I guess they must also consider the change in gravity and air resistance depending on height and on speed. This just seems like a lot of variables and am wondering how mathematicians would model this? Would it be ODES, PDE'S for example and what other maths would be involved? Also what does fluid mechanics entail? I assume this would be of equal importance to anyone in making rockets, cars, missiles ext and am wondering what kind of maths goes into it.</p> <p>At undergraduate level, which topics complement classical mechanics/dynamics relativity and fluid dynamics best? At A-level it was all just simple differential equations and integrals. Im wondering whether it would need an understanding of multivariate calculus at uni .(including partial derivatives , triple integrals, contour integration, vector fields, stokes and greens theorem and whatever else i really dunno haha im not an undergrad just yet.</p> <p>Also would this require a solid understanding of multivariate analysis (i.e of 2 variables?) Im also just wondering what a surface integral would be useful for in general. I know that a line integral could be considered as work done by a particle going from A to B but am not sure about for 3d. would complex analysis be useful?</p> <p>So basically what would be the order of these prerequisites be in terms of learning? I guess real analysis--> multivariate analysis--> diff, int, and then i have no idea Many thanks.</p>
0non-cybersec
Stackexchange
My first ever battlestation.
0non-cybersec
Reddit
[M21]Really overthinking my relationship [F24], don't know if we should get back together or officially cut it off.. This might sound stupid but you've all been here at one point, I just want some outside opinion because I don't know where to go. One of my first real "long term" relationships. Meeting families and all is new for me Me and my girlfriend (since January) had a rough patch in March ('rona... yay). A bit of stuff building up to it, we have very different politics and religion. Never usually a big issue, but to me feels like tension often in little things from it. We were very good at talking things out and working through arguments and all, but I can get stuck up and definitive of my views too much sometimes. Anyway, sometimes I can totally see a future for us. We both love eachothers families, we hit it off very strong and fast. We both have same career goals and passions. She is super smart and linked with every organization in our field. Knows big people all over, and I'm brilliant at it. Applying to gradschools all over, ivy league and locals. And her family comes from a lot of money and I know it's shitty to think but I know it's a safe future and comfortable life. But we disagree a bunch on little things, and I've read the horror stories of how that just gets worse progressively in long term relationships. But I don't know if it's possible or one couple really can work through things like that, such as strong views on politics and religion. I know I get stick in my ways, she is always saying "we really don't disagree that much, but you are making a big deal out of it". I know I am sometimes and working on it. We broke up a month or two ago and have been kind-of talking and stuff since. Big breakup was just a bunch of arguing at the end, my family staying really isolated and safe (preexisting conditions) and her mad I couldn't / wouldn't see her. How my family was reacting (our "politics" on how we were living life because of Corona) We're still talking some but I haven't lost hope. Randomly I have a true gut feeling "it can work what am I doing??" And other days I have the deepest gut feeling "no it won't work get out of it" I'm just scared of login distance gradschool and life and everything that comes with this. ugh help a dumbass out
0non-cybersec
Reddit
This is what I saw when I woke up today..
0non-cybersec
Reddit
Petition to bring Paul the thrall to D2. https://youtu.be/NHWTzqHXMTU
0non-cybersec
Reddit
how can I show that $\overline A + \overline B = \overline{A+B}$. <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://math.stackexchange.com/questions/60452/example-where-closure-of-ab-is-different-from-sum-of-closures-of-a-and-b">Example where closure of $A+B$ is different from sum of closures of $A$ and $B$</a><br> <a href="https://math.stackexchange.com/questions/137431/need-one-counter-example-for-sum-of-two-closed-set-need-not-be-closed">need one counter example for sum of two closed set need not be closed</a> </p> </blockquote> <p>Given $A$ and $B$ two non empty set in $\mathbb R$ with $A$ bounded how can I show that $$\overline A + \overline B = \overline{A+B}$$</p> <p>I have no idea how to approach this question.</p>
0non-cybersec
Stackexchange
The Future of Cyber Crime.
1cybersec
Reddit
The Four Horsemen of the Apocalypse hold auditions for a 5th member, Americas Got Talent style. [wp].
0non-cybersec
Reddit
linux cron: want to backup a folder. <p>I would like to backup a folder using cron on a centos. The folder <code>c2duo_mms</code> is located in <code>/usr/local/src/djcode/c2duo_mms</code>. I would like it backed ip every 1:00pm on Tuedays to my home folder <code>/home/sh</code>. </p>
0non-cybersec
Stackexchange
Angular4 Routing: Force Navigation By Bypassing Route Guard. <p>When my users have dirty changes on a screen, I have a route guard to prompt them to save or discard when they try to navigate away.</p> <p>However, if I am logging them out due to inactivity, I want to force navigation and bypass the route guard (by discarding their changes), in order to ensure that their screen is blanked. </p> <p>How can I bypass route guards?</p>
0non-cybersec
Stackexchange
Is there an algorithm that can decide whether a polygon is self-intersecting using only its vertex coordinates?. <p>I'm trying to determine whether a polygon is self-intersecting or not by calculating the sum of the interior angles; i.e. if the sum is less than $(n-2)\pi$, then it is self-intersecting. The information that I have is the ordered set of vectors locating the vertices on the plane. I can calculate the angle between sides using dot and cross product, but my algorithm doesn't distinguish between internal and external angles. Also, I need the algorithm to work regardless of the polygon's regularity and convexity.</p> <p>Any suggestions will be much appreciated.</p>
0non-cybersec
Stackexchange
Installing LaTeX into Google&#39;s Debian8 docker image. <p>I'm trying to figure out how to install LaTeX (specifically, <a href="https://packages.debian.org/stretch/texlive" rel="nofollow noreferrer">this texlive package</a>) into Google's Debian8 Docker image, which is called <code>gcr.io/google-appengine/debian8</code>. I wish I could provide a link to that, but I can't find it on Docker or on GitHub. Actually, I'm using <a href="https://github.com/dart-lang/dart_docker/blob/master/runtime-base/Dockerfile.template" rel="nofollow noreferrer">this image</a> which derives indirectly from it.</p> <p>If I try and install it into the image I get an error:</p> <pre><code>&gt; apt-get install texlive Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package texlive </code></pre> <p>I suspect I need to add an appropriate source (and possibly key) to the apt sources, but I have no idea how to figure out what exactly. I believe I'd end up with a Docker command along the lines of this (but likely simpler):</p> <pre><code>RUN \ apt-get -q update &amp;&amp; apt-get install --no-install-recommends -y -q curl git ca-certificates apt-transport-https openssh-client &amp;&amp; \ curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &amp;&amp; \ curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list &gt; /etc/apt/sources.list.d/dart_stable.list &amp;&amp; \ curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_unstable.list &gt; /etc/apt/sources.list.d/dart_unstable.list &amp;&amp; \ apt-get update &amp;&amp; \ apt-get install dart=$DART_VERSION-1 &amp;&amp; \ rm -rf /var/lib/apt/lists/* </code></pre> <p>Can anyone point me in the right direction here? How do I determine what needs to be added to <code>/etc/apt/sources</code> to make the <code>texlive</code> package show up?</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
Symmetric function. <p>I have a continuous function $\mu(x,y)=G(h_1(x+y), h_2(|x-y|))$ such that $\mu(x,x)=0$ and $\mu(x,y)+\mu(y,z)=\mu(x,z)$ for $x\le y\le z$. I want to show that the only possible case is $\mu(x,y)=c\cdot (x+y)|x-y|$ for some constant $c$.</p> <p>If I assume that I have a polynomial, no problem, since I have elementary symmetric polynomial as the basis of symmetric polynomials. My question: is it possible for $\mu(x,y)$ to not be a polynomial? </p>
0non-cybersec
Stackexchange
Miss me with that gay shit..
0non-cybersec
Reddit
My ex dog bit my ex's boyfriend's face. I'm taking him in (the dog). What to do?. Edit: [I'm sorry, Linus :(](http://imgur.com/4gCxh)
0non-cybersec
Reddit
Chihuahua showing the new kitten about life 😅.
0non-cybersec
Reddit
install a .sty code. <p>How can I install <a href="http://www.latextemplates.com/templates/calendars/1/calendar.sty" rel="nofollow">this</a> code of .sty? I would like to make this calendar, so I need to install it.</p>
0non-cybersec
Stackexchange
Me and my buds got the three starter evolutions on our legs, inspired by which we first chose as kids. I got Blastoise..
0non-cybersec
Reddit
Indiana NOW offers birth control via app without doctor appointments. Hello contraceptives and goodbye excuses. Indiana women can now order birth control through an app called Nurx (I have heard there are others but this is the one I used). Launch the app, answer a few questions, select your preferred method/brand, and wait. A doctor will review and contact you as necessary and then once approved it will be shipped directly to you! You still have the option to use your health insurance but can opt not to. Don’t forget to still get your bi-yearly pap and regular STD testing if you are sexually active. If you don’t have free contraceptive healthcare for some reason use code: BLUESKY-9XKT to get $20 towards your Rx. Edit: accidentally said bi-yearly app but there is no such thing. Just go get your vagina checked every other year (aka Pap smear) to make sure everything is cool down there. Remember reproductive health is important regardless of your reproductive years.
0non-cybersec
Reddit
They are not evil.
0non-cybersec
Reddit
understanding how elasticsearch stores dates internally. <p>I would like to understand how ES stores date values internally in its indexes. Does it convert to UTC?</p> <p>I have a field "t" of type date. Here's the mapping:</p> <pre><code>"t": { "type" : "date" }, </code></pre> <p>Now when I insert/add a document to ES, how does it store in its indexes.</p> <ol> <li><p>"t" : "1427700477165" (milliseconds generated from Date.now() function). Does ES recognize its epoch time in UTC and stores as is?</p></li> <li><p>"t" : "2015-03-29T23:59:59" (i adjust mapping date format accordingly)- how does ES store this. If it converts to UTC, how does it know what time zone this date is and convert it to UTC? Does ES get the default time zone from the machine its running on?</p></li> </ol> <p>Thank you!</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
[PSA] If you're in the area, Sony has opened Sony Square NYC, play some VR and try out unreleased demos like Bound!.
0non-cybersec
Reddit
Prove that $\chi(X \times Y)=\chi(X)\,\chi(Y) $ for finite CW complexes. <p>Let $X$ and $Y$ be finite CW Complexes. Prove that $$\chi(X \times Y) = \chi(X) \, \chi(Y),$$ where $\chi$ is the Euler characteristics.</p> <p>I have thought in this way that if $X= e_{1}^{0}\cup e_{1}^{0}...\cup e_{k}^{0}\cup e_{k+1}^{1}....\cup e_{l}^{1}....\cup e_{m}^{n}$ and $Y= e_{1}^{0}\cup e_{1}^{0}...\cup e_{k_1}^{0}\cup e_{{k_1}+1}^{1}....\cup e_{l_1}^{1}....\cup e_{m_1}^{n}$. Then $X \times Y$ is the products of corresponding $r$ cells. So am I right? And please give me the right answer in details. </p> <p>Again anyone think it w.r.t homology groups?</p>
0non-cybersec
Stackexchange
Order of prime ideals over split primes in the class group.. <p>Let $P$ be a prime ideal of $\mathcal O_K$ ($K$ a quadratic field) and let $P$ have norm $p$ where $p$ is a split prime. Is it possible for the ideal class $[P]$ to have order less than three? I feel like this must happen sometimes, as e.g. $3$ splits in $\mathcal O_K$ where $K=\mathbb Q(\sqrt{-5}),$ but the class group $Cl(K)$ is $C_2$. So if $P_3$ is a prime ideal of norm $3$ here, it's class must have order 1 or 2. However, at the same time, $P_3 \overline{P_3}=(3)$ is principal, and so $[\overline{P_3}]=[P_3]^{-1}$. But $P_3 \neq \overline{ P_3}$. So must we have $[\overline{P_3}]=[P_3]$, in this case, since the order of the class divides 2? Is there any other way of telling when $[\overline{P}]=[P]$ in general?</p> <p>In a similar vein, can ideal classes of prime ideals over ramified primes $p$ ever be of order 1 or are they always order 2? We would need $(a+b\sqrt d)=P \implies a^2-db^2=p$ for some $a, b \in \mathbb Z$ (or $\frac{1}{2}\mathbb Z$, if $d \equiv 1 \pmod 4$) and $K=\mathbb Q(\sqrt d)$. Are there simple examples when this happens? <strong>Attempt 1:</strong> since $p$ ramifies, either $p|d$ or $p=2, d \equiv 3 \pmod 4$. In the first case, we get $a^2=p-db^2$ which is divisible by $p$. Hence $p|a$ and so $d&gt;0$. In the second case, $a^2-3b^2 \equiv 2 \pmod 4 \implies a^2+b^2 \equiv 2 \pmod 4 \implies 2 \nmid a,b$.</p> <p><strong>Attempt 2:</strong> For ramified primes, $P=\overline P$ and so $a+b\sqrt d \sim a-b\sqrt d $. If $d&lt;-1, d \equiv 2,3 \pmod 4$ then the units are the elements of norm 1, so $\pm 1$. So either $a+b\sqrt d=a-b\sqrt d $ or $-a+b\sqrt d$. So either $b=0$ or $a=0$, but then $p=a^2$ or $-db^2$, which gives a contradiction unless $b=1,p=-d$. (is this argument correct?)</p>
0non-cybersec
Stackexchange
Batch Files make Directory within Directory. <p>How would you create a directory inside of a directory in batch files? I've tried various times and I couldn't get it to work. Please help.</p>
0non-cybersec
Stackexchange
DAE love the works of Haruki Murakami?. I found his books while living overseas. He seems to be very well known outside of America, but I don't know many Americans who have read his work. His prose are absolutely fantastic, and his books consistently blow me away. My favorites are [Hardboiled Wonderland and the End of the World](http://en.wikipedia.org/wiki/Hard-Boiled_Wonderland_and_the_End_of_the_World), [Kafka on the Shore](http://en.wikipedia.org/wiki/Kafka_on_the_Shore), and [Norwegian Wood](http://en.wikipedia.org/wiki/Norwegian_Wood_(novel))
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
Survey for school assignment, I would be very grateful if you could fill it out :).
0non-cybersec
Reddit
[Everything] GRRM hinted at Jon's real name in the books in a pretty genius way.. Aemon Targaryen giving Aegon (Jon Snow) Targaryen the same advice he once gave to his late brother Aegon (Egg) Targaryen just before he was made King! **“Allow me to give my lord one last piece of counsel," the old man had said, "the same counsel I once gave my brother when we parted for the last time.** He was three-and-thirty when **the Great Council chose him to mount the Iron Throne**. A man grown with sons of his own, yet in some ways still a boy. **Egg had an innocence to him, a sweetness we all loved.** Kill the boy within you, I told him the day I took ship for the Wall. **It takes a man to rule. An Aegon**, not an Egg. Kill the boy and let the man be born." The old man felt Jon's face. **"You are half the age that Egg was, and your own burden is crueler one, I fear.** You will have little joy of your command, but I think you have the strength in you to do the things that must be done. Kill the boy, Jon Snow. Winter is almost upon us. Kill the boy and let the man be born.” ― George R.R. Martin, A Dance with Dragons Fact that Aemon's brother Aegon happened to be the King on the iron throne and Jon is an Aegon who is the heir to Iron throne is pretty clear hinting now in retrospect.
0non-cybersec
Reddit
Is this my computer being hacked or is this a defect in my anti-theft software?.
1cybersec
Reddit
[NBA] GSW's Iguodala received a warning for violating the league’s anti-flopping rule during a game on Oct. 25..
0non-cybersec
Reddit
Fragments onResume from back stack. <p>I'm using the compatibility package to use Fragments with Android 2.2. When using fragments, and adding transitions between them to the backstack, I'd like to achieve the same behavior of onResume of an activity, i.e., whenever a fragment is brought to "foreground" (visible to the user) after poping out of the backstack, I'd like some kind of callback to be activated within the fragment (to perform certain changes on a shared UI resource, for instance).</p> <p>I saw that there is no built in callback within the fragment framework. is there s a good practice in order to achieve this?</p>
0non-cybersec
Stackexchange
Good Vibes for GM: Tests prove the Vibe&#8217;s brakes work &laquo; Road Reality.
0non-cybersec
Reddit
AnotherDay - Blu (prod. by Exile).
0non-cybersec
Reddit
I guess I am going to sleep now.
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
RGB is cool.
0non-cybersec
Reddit
They removed an extra head just because the shaver has one attached..
0non-cybersec
Reddit
energy equation in cylindrical coordinates and conservative form of fluid flow equations. <p>We can easily find the energy equation for incompressible fluid as a temperature equation:</p> <p>$$ \rho c \frac{DT}{Dt}=\nabla\cdot(k\ \nabla T) + \tau_{xx}\frac{\partial u}{\partial x}+\tau_{yx}\frac{\partial u}{\partial y} +\tau_{zx}\frac{\partial u}{\partial z}+\tau_{xy}\frac{\partial v}{\partial x}+\tau_{yy}\frac{\partial v}{\partial y}+\tau_{zy}\frac{\partial v}{\partial z}+\tau_{xz}\frac{\partial w}{\partial x}+\tau_{yz}\frac{\partial w}{\partial y}+\tau_{zz}\frac{\partial w}{\partial z}+S_i (1) $$</p> <p>where $\frac{D()}{Dt}$ is the material derivative, $\nabla\cdot \vec e$ is the divergent operator applied on vector $\vec e$, $\nabla \phi$ is the gradient operator applied on scalar function $\phi$ and $S_i$ are source terms.</p> <p>Using the Newtonian model for the viscous stresses, we can write it as </p> <p>$$ \rho c \frac{DT}{Dt}=\nabla\cdot(k\nabla T)+\Phi+S_i (2) $$</p> <p>and $\Phi$ is the dissipation function and is the multiplication of the viscosity $\mu$ and the rates of deformation.</p> <p>We can also find another way of writing this equation as: $$ \frac{\partial(\rho T)}{\partial t} + \nabla\cdot(\rho T \vec u)=\nabla\cdot(k\nabla T)+\Phi+S_i (3) $$ which is more suitable for a finite volume analysis.</p> <p>This equation is similar to the conservative form of the fluid flow equation for a general variable $\phi$, which can be usefully written in the following form:</p> <p>$$ \frac{\partial(\rho \phi)}{\partial t} + \nabla\cdot(\rho \phi \vec u)=\nabla\cdot(\Gamma\ \nabla T)+S_{\phi} (4) $$</p> <p>which is a general equation, which can be formally integrated over a volume control and we use the Gauss-Divergence theorem to obtain the discretized equations in a finite volume analysis.</p> <p>My questions are about these same equations, but written in cylindrical coordinates. The material derivative can be written as</p> <p>$$ \frac{D\phi}{Dt}=\frac{\partial\phi}{\partial t}+\vec u \nabla(\phi) (5) $$</p> <p>So, if we use (5) on (2) and the \nabla operator in cylindrical coordinates, we get to the energy equation in cylindrical coordinates (in steady state form, disregarding the time variations):</p> <p>$$ \rho c \left( u \frac{\partial T}{\partial x} + \frac{v_{\theta}}{r}\frac{\partial T}{\partial \theta}+v_r\frac{\partial T}{\partial r} \right) = k \frac{\partial^2 T}{\partial x^2}+\frac{k}{r}\frac{\partial}{\partial r}\left(r \frac{\partial T}{\partial r} \right) + \frac{k}{r^2}\frac{\partial^2 T}{\partial \theta^2} + \mu \Phi (6) $$</p> <p>which is absolutely right and uses the gradient operator in cylindrical coordinates.</p> <p>However, if I want to to a finite volume analysis, equation (4) is more suitable, because we want to use the Divergence Theorem to change the volume integral of the advective term in a surface (flux) integral. However, if we use the $\nabla$ operator in cylindrical coordinates, the term relative to the $r$ coordinate in the advective (LHS of the equation) should be </p> <p>$$ \frac{\rho v_r}{r} \frac{\partial(r T)}{\partial r} (7) $$</p> <p>instead of the $v_r\frac{\partial T}{\partial r}$ term in eq 6.</p> <p>What am I doing wrong or using wrong? Is the conservative general form for a general variable $\phi$ only suitable for the cartesian coordinates? How do I treat the advective term in finite volume analysis in cylindrical coordinates?</p>
0non-cybersec
Stackexchange
Newton&#39;s Method: Found a case where it doesn&#39;t work. Why?. <p>So I was looking to use Newton's Method to evaluate $x^3-2*x+2 = 0$. I noticed that I could plug in a negative number for $x_0$ and it worked but when I tried $x_0 = 0$ then my code started going crazy and did not find the root. Anyone know why this does this, and how I can fix it? Thanks! </p>
0non-cybersec
Stackexchange
Ubisoft gives free game to stop lawsuits.
0non-cybersec
Reddit
Looking for a Shiba Inu puppy in SOCAL.. Hi! I have been looking for a few months now for a Shiba puppy for my home. I've contacted rescues and breeders and even third party sites. Yet I mostly come up with scammers or I'm never written back. I was curious if someone here might be able to help me on my way to finding a shiba inu puppy? Maybe you have a litter coming up or could refer me to your personal breeder? I have done my research and I understand the breed can be difficult, but I feel confident in my abilities to raise one. Thanks so much for taking the time to listen!
0non-cybersec
Reddit
Pleasant upgrade incoming.
0non-cybersec
Reddit
ELI5: As I sit in the airport having missed 2 flights now, I wonder, how is it legal to oversell plane seats? How can you sell more than you have, regardless of how many show up?. Edit: Thank you all so much for responding! This day has been terrible, but these answers help tons.
0non-cybersec
Reddit
Hey /r/teenagers! I just wanted to tell you some great news I got today!. Today we had an awards ceremony, and the school usually calls to tell you that you got an award. Well, I didn't think we got an award. The Honors award came up, and since my last name begins with C, I was the first one called up. I was completely shocked, and when I walked up I looked over and saw my mom and dad who had left their work that's about an hour drive away just to see me get the award! Turns out we did get a call, just my parents never told me. I've been feeling kinda down lately, but this really boosted my spirits so I thought I would share! :)
0non-cybersec
Reddit
How to detect MouseWheel event is ended in WPF. <p>When I scroll mouse wheel several MouseWheel events are fired. And I'm using these events to scale some image.</p> <p>I want to call a method the moment the series of <code>MouseWheel</code> events are ended. How can I know when they end?</p> <p>Here is my implementation so far</p> <pre><code>private void ModelWindowBorder_MouseWheel(object sender, MouseWheelEventArgs e) { intervaltimer = null; // Do stuff like zooming and etc CheckEventInterval() } private void CheckEventInterval() { intervaltimer = new Stopwatch(); intervaltimer .Start(); if (intervaltimer.ElapsedMilliseconds &gt; 50) { // Do some other stuff } } </code></pre>
0non-cybersec
Stackexchange
NASCAR drifts/saves.
0non-cybersec
Reddit
Beautiful timelapse project on La Palma two friends of mine just completed after months of editing! • r/videos.
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
Apple 1 computer sells for $200,000; donor sought.
0non-cybersec
Reddit
Wrong Number [part 7]. [Part 1] (http://www.reddit.com/r/nosleep/comments/268wdw/wrong_number/) [Part 2] (http://www.reddit.com/r/nosleep/comments/26c1jp/wrong_number_part_2/) [Part 3] (http://www.reddit.com/r/nosleep/comments/26epr7/wrong_number_part_3/) [Part 4] (http://www.reddit.com/r/nosleep/comments/26h9fw/wrong_number_part_4/) [Part 5] (http://www.reddit.com/r/nosleep/comments/26l2q5/wrong_number_part_5/) [Part 6] (http://www.reddit.com/r/nosleep/comments/26oc0w/wrong_number_part_6/) ... I woke up in a hospital, thick gauze covering both wrists. I didn't feel anything - no pain, no numbness... nothing. Not even a little tingle when I tried to shift my leg. I tried to call out but my throat rasped wordlessly. My mouth tasted like pennies and rot. I reached for the side-table and grasped at a water-jug there. Just as I gripped it, it slipped from my fingers and clattered off of the floor, spilling water everywhere. A police officer and nurse came into the room, looking startled to see me awake. "I thought you said she was comatose." "She was," the nurse murmured softly, thinking I couldn't hear her, I guess. She rushed to my side and pressed a hand to my forehead. “Amber, can you hear me?” I nodded and rasped, “Water.” All that came out was a keening moan. I tapped my throat, hoping that would get the message through. The nurse nodded and left the room, returning shortly thereafter with a glass of water and a straw. She held the cup while I slurped greedily at the water. She took it away long before I wanted to be finished, and smiled. “Take it easy. It’s not good to drink too much.” “Should I notify the family?” the officer asked, looking confused and out of place. And then, remembering himself, he added, "Mrs. Patterson, how are you feeling? Are you still in pain?" I tried to shake my head, but it ended up lolling over onto my shoulder. The nurse came over and tilted my head back in a suitable position. "It's the painkillers," she explained to the officer. "She's going to have a very difficult time speaking with you right now." "Understood," he sighed. To me, he added, "Do you feel up to answering some questions?" I tried to furrow my eyebrows but I literally couldn't feel any of my face. I did manage to speak, now that my throat was lubricated. “What about...? What happened to... Miller?" The officer opened his mouth and then closed it before pulling a chair close to my bedside and sitting in it. "Detective Miller was dead when we arrived." I blinked at him, not comprehending. "But he... how?” The officer watched me closely. "We were hoping you could answer that for us." "He was going to kill me. Or kill her." My head was swimming. I couldn't get my thoughts in order. It was like they kept slipping. "Her, who?" the officer pressed. “Was someone else there with you?” "My mom," I murmured, my eyes fluttering closed. The officer cursed softly, but I heard it. "Amber," the officer tried to grab my attention again. I tried to read his badge but the letters were dancing. "Amber, did you see your mother?" I nodded. The nurse grabbed some tissues at patted my face with them. They came back damp with tears. "She was protecting me." The officer nodded, but he didn't look convinced. After all, my mother's been dead for years. "You get some rest, Amber," he sighed, patting my hand with his. “I’ll go notify the family. Can they come in?” “I’m not sure if she’s ready-” “I need to see them,” I interrupted. “Please. Please.” The officer nodded and ducked out of the room. I felt my heavy eyelids closing but a thought jolted me awake again. "Nurse!" "I'm right here," she murmured, brushing a hand over my forehead. "I take pills," I groaned. "I haven't had one since... since Monday morning. I need... I need to make sure I get my pills-" "You're okay," the nurse replied soothingly. "We have your pills right here. Once the Vicodin is out of your system, we'll get you back on track, okay?" I swallowed thickly. "Okay." Josh and Aidan pushed through the door then and nearly dive-bombed the bed. Josh covered my numb face in kisses, his tears wetting my face and hair. Aidan gripped my hand tightly in his - so tight I could feel the pressure through my painkiller haze. "I love you both," I whispered because I could feel my consciousness slipping. They were okay. They were both okay. And so was I. I thought I saw her, for a split second, standing beside the large bay window. She was wearing the sheets from the basement pulled up over her so only her eyeless orbitals were visible. “I love you,” I murmured to her, hoping she understood. “Thank you… for saving me.” And when she replied, I felt as if she was speaking within me. *I love you, too, silly duck. * I looked at her without fear now because I knew her haunting had been a kind one - a protective one. She had done what she’d done out of a crazed-vengeance. But now she was just my mother. My sweet, loving, happy mother. *I’m sorry I scared you the morning I was behind your car. And again at the window. I forgot how frightful I must look to you now.* I smiled. So that was her. The long tongue lolling against the window sill. The dark figure behind our car. "I don’t care how you look. I miss you, Mommy," I whispered. I knew she would smile if she could. But she couldn't, and she didn't. She simply stood in her funerary frock, covered up to her cheeks in sheets, watching over me. Aidan looked toward the window, but he showed no sign of seeing her. He looked at Josh, seeming terrified, but Josh only smiled. "It's just the painkillers," he said softly while he stroked my hair. "She's okay." … “Thanks for the look at our weekend weather forecast, Tom. And, to our Channel 5 News at 5 – horror and confusion filled the city of Spokane, Washington when a missing woman was found in her home, bound and nearly bled to death. The story took an even more horrific turn when her captor, a Detective who had been assigned to her as a protector, was found dead and dismembered. “Amber Patterson, a 27 year old women, went missing around 2:00 pm on Monday afternoon. Amber and her family had recently been victims of break-ins, prank-like stalking, and recipients of severed body parts through the post. The police were investigating these events, however had no leads or evidence. “Unexpectedly, her stalker and captor turned out to be the lead Detective into the investigations – Detective Gerald Miller. Detective Miller was a recent transfer from Sacramento Police Department. Miller cited wanting to move back near his father as the reason of the transfer, however he is now suspected for his father’s death, as well as three other seniors. “Over the past few days, the story got even deadlier. Evidently, the new home-owners who bought Miller’s old home in Sacramento have requested their backyard to be thoroughly scoured for remains of bodies. Evidently, the family’s dog found a large bone while digging there earlier this month. The family didn’t think much of it at the time, but are now having second thoughts.” “How we heard anything about the progress there, Tina?” “Yes, Tom. In fact, we have live footage playing right now that shows the multitude of bones being removed from the back yard. They have an estimated twenty grave sites; three of which are confirmed to be minors.” … “I’m Gina Fredricks with Channel 5 News and we have a new update on the terrible case surrounding the former Detective Gerald Miller. Of the bodies pulled out of the backyard of his old Sacramento home, all but three have been positively identified. It seems that all of these women not only had no families or close friends, but most of them had a history of substance abuse or mental instability. “In addition, the car pulled out of Medical Lake in Medical Lake, Washington was indeed the car that belonged to Amber Patterson. A partial fingerprint was found on the steering wheel that was a positive match for Detective Miller, leading investigators to believe that, after subduing Mrs. Patterson, he drove the car into the lake to avoid anyone looking at the woman’s house. “The good news, however, is that we have heard from Joshua Patterson, Amber’s husband, and he has assured us that Amber is doing well and on the mend thanks to local hospital staff…” … Over the next few days of healing and detoxing in the hospital, there was a steady stream of police officers and investigators. It was always a toss-up whether they were there to offer me more information or if they were there to question me. I learned that, when the police had arrived on Wednesday evening, they found Miller in the middle of the living room. Miller, of course, was missing all of his limbs. The limbs, evidently, had been transported outside and formed a macabre arrow pointing at the house. A terrified neighbor had called it in. Initially, the police thought *I* had been the one to tear Miller apart. However, when they found me duct taped and bound in the rolling chair, almost dead from blood loss and drugged out of my mind, they threw that idea out. Another theory was that a wild animal had somehow made it into the basement and up through the ventilation shaft that let out into the crawl space. This was more reasonable (and a little more accurate) than the idea I had done it, but it still didn't make sense. Miller had been pulled limb from limb with brute force. There were no teeth marks, there was no sign that he had been gnawed or chewed on. Josh was a popular speculation, however he had an air-tight alibi – the second I went missing (naturally, when I didn't show up to pick up Aidan and couldn't be reached by phone, everyone knew something was up), Josh and Aidan were put under a protective detail. They had been relocated to a safe house outside of the city while everyone in Spokane started the manhunt for me and my "protective detail," Miller. When finding the answer for “who the hell did this?” didn't pan out, the police turned to something they thought might be more tangible. They had a lot of questions about all of the markings on the walls, all drawn with my blood, but I had no answers for them. Since I had been drugged through most of the experience, they didn't push too much when I shrugged my shoulders. So, they did the next best thing - they brought in a professional medium. I shit you not. They called *me* crazy, but they brought in a psychic. The psychic (sorry, *medium*) might have known what she was talking about however, because she quickly ascertained that the wards were for protection against a vengeful spirit. Unfortunately for Miller, the laws of blood magic were tricky – since he had used my blood, I was the only one it granted protection to. The cops laughed off the theory but I sent the psychic a thank you note. I hoped she understood what it meant, even though I didn't come right out and tell her she was right. After all, I was trying no to look insane. … I was scheduled to leave this hospital on the Monday following my admission into the hospital. I was on a temporary leave of absence from work, and Christa had been calling me daily to make sure I was okay and getting rest. She didn’t say anything about Daniel and she didn't ask about my capture. She was smart enough to figure I'd talk when I was ready. If I am ever ready. It's easier to write it all down. It's even therapeutic to let the words flow and to type them out. But I still can't talk about them. Josh and Aidan have been respectfully quiet with the questions. I know they're dying to know. I'm just not sure if I feel comfortable telling them yet. I began going through my missed called and voice messages from the week I'd been kidnapped and hospitalized. There were a lot of calls from Josh and Aidan, frantically begging me to call them back. There were a few calls from Christa, asking if I'd seen Daniel because he hadn't shown up to work. There was one from a restoration company who took care of homicide victims' houses through the police department. They left their contact information and let me know that not a dime would be paid out of our pockets and that insurance had approved a full restoration to the house. *“It will be even better than new,”* the man had chuckled on the phone. He sounded jovial; like he wasn't aware what my family had just been through. It wasn't a sliced finger or a quick, unseen robbing. Three people had been murdered in my house - one of which was ripped limb from limb. My family thought I was dead for two days. I tried not to let my emotions get the better of me and moved on to the next call. Our real estate agent left a call for me giving her condolences and apologies for what had happened, and stating she understood we wanted to sell the house. She'd begin working with the restoration company and get it taken care of for us. She'd even arrange a moving company to pack our things - we didn't even have to return to the house. That call was followed by Reddy Moovers, who let us know that they would be happy to pack our things in a moment's notice and transfer it wherever in the country we wanted to go. And then there was one from the small town police department in Oklahoma, letting me know they had exhumed the body of Nathaniel Oswald and nothing (besides a missing hand) was out of the ordinary. They asked me to call them back at my earliest convenience in order to decide what to do with the remains - rebury or cremate. I called that number back and spoke with the receptionist, asking them to please rebury my father. He had always hated fire - been childishly afraid of it, even. He would have hated to be cremated. If there was one thing I had learned from this experience with Miller, it was that there *were* monsters in this world. Or in another world who could bridge the gap sometimes. But they weren't the men who hurt us as children or the men who hurt us as adults. Those are just men. They are flesh and bone and they have fears and insecurities. They have weaknesses. They have defects in their brains that make them forget (or never learn) the difference between right and wrong. My father was one of those men. Miller was one of those men. But they were just men. In the end, *I* was the one who had a monster on my team. I haven't seen her since; she was probably finally at rest, having protected her children from a man who meant them harm. She hadn't been able to do it with our father, not in time. But she was able to do it with Miller. I *hope* she is at rest. I hope that her spirit was released and set free. I hope that she's happy in whatever afterlife there may or may not be. … Aidan is calling me. I’m not sure why he’s calling me, when he’s driving his car right behind mine, rocking out to his angry, screaming music. Maybe he wants to tell me to quit following the U-Haul so closely and to give Josh a break about forgetting to pack Peach’s favorite squeaky toy. I patch the call through to my hands-free stereo device. “What’s up, Bro?” Amid the static, I hear Aidan laughing about something he saw on the GPS navigation system – a town called Zig Zag was pretty unusual. But through the static, I swear I hear another laugh – a softer, whispery one. The same laugh that had pressed itself against my ear while I was tied up and bound to a rolling chair. *Hello, Amber. Did you miss me?* [Final] (http://www.reddit.com/r/nosleep/comments/279nfj/wrong_number_final/)
0non-cybersec
Reddit
Sobolev spaces of maps between manifolds and the Palais-Smale Condition. <p>I'm currently reading some papers by Uhlenbeck on harmonic maps. She mentions the following facts:</p> <p>Let $M^m$ and $N^n$ be compact Riemannian manifolds, $N$ embedded isometrically into Euclidean space.</p> <p>1) For $p &gt; 1$ the space $W^{1,p}(M,N)$ is a Banach manifold.</p> <p>2) For $p&gt;m$ the space $W^{1,p}(M,N)$ is a $C^\infty$ Banach manifold.</p> <p>3) For $p&gt;m$ the $p$-energy functional $\int_M|du(x)|^pd\mu$ satisfies the Palais-Smale condition.</p> <p>The reference that she gives, Palais' <em>Foundations of Global Nonlinear Analysis</em> is too daunting a read at this time for me. There seem to be no other references where these facts are proved. If anyone could give a proof of any of these three ( especially 2) or 3) ), it would be much appreciated. A reference other than Palais' would also be much appreciated.</p>
0non-cybersec
Stackexchange
What&#39;s wrong with my method that gives $0.\bar9 = 1$?. <p>This is what I learned :</p> <p>$x = 0.\bar3$ (I)</p> <p>$10x=3.\bar3$ (II)</p> <p>(II)-(I) : $9x = 3 =&gt; x = 1/3.$ And It's OK.</p> <p>But now, I think this similar calculation gives me wrong answer:</p> <p>$x = 0.\bar9$ (I)</p> <p>$10x=9.\bar9$ (II)</p> <p>(II)-(I) : $9x = 9 =&gt; x = 1$</p> <p>Why does: $0.\bar9 = 1 $ ?</p>
0non-cybersec
Stackexchange
How to resolve URI encoding problem in spring-boot?. <p>I am using spring-boot to host a http request service. </p> <pre><code>@RequestMapping("/extract") @SuppressWarnings("unchecked") @ResponseBody public ExtractionResponse extract(@RequestParam(value = "extractionInput") String input) { // LOGGER.info("input: " + input); JSONObject inputObject = JSON.parseObject(input); InputInfo inputInfo = new InputInfo(); //Object object = inputObject.get(InputInfo.INPUT_INFO); JSONObject object = (JSONObject) inputObject.get(InputInfo.INPUT_INFO); String inputText = object.getString(InputInfo.INPUT_TEXT); inputInfo.setInputText(inputText); return jnService.getExtraction(inputInfo); } </code></pre> <p>When there is a % sign, as follows, it got an errror:</p> <pre><code> http://localhost:8090/extract?extractionInput={"inputInfo":{"inputText":"5.00%"}} </code></pre> <p>The error message is below:</p> <pre><code>2018-10-09 at 19:12:53.340 [http-nio-8090-exec-1] INFO org.apache.juli.logging.DirectJDKLog [180] [log] - Character decoding failed. Parameter [extractionInput] with value [{"inputInfo":{"inputText":"5.0022:%225.00%%22}}] has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values. Note: further occurrences of Parameter errors will be logged at DEBUG level. 2018-10-09 at 19:12:53.343 [http-nio-8090-exec-1] WARN org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver [140] [resolveException] - Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'extractionInput' is not present] </code></pre> <p>How to configure the URI encoding to fix this issue in my spring-boot configurations?</p> <p>EDIT: Possible Java client code to make the request:</p> <pre><code>public String process(String question) { QueryInfo queryInfo = getQueryInfo(question); ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); String jsonResult = null; try { String jsonStr = mapper.writeValueAsString(queryInfo); String urlStr = Parameters.getQeWebserviceUrl() + URLEncoder.encode(jsonStr, "UTF-8"); URL url = new URL(urlStr); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); jsonResult = in.readLine(); in.close(); } catch (Exception jpe) { jpe.printStackTrace(); } return jsonResult } </code></pre>
0non-cybersec
Stackexchange
Is there a MySql binary dump format? Or anything better than plain text INSERT statements?. <p>Is there anything better (faster or smaller) than pages of plain text CREATE TABLE and INSERT statements for dumping MySql databases? It seems awfully inefficient for large amounts of data.</p> <p>I realise that the underlying database files can be copied, but I assume they will only work in the same version of MySql that they come from.</p> <p>Is there a tool I don't know about, or a reason for this lack?</p>
0non-cybersec
Stackexchange
avoid System Repair. <p>A coworker had an electrical hit and lost usage of usb and ps2 on her computer. I added in a pci to usb card to get it back to "usable"...The usb ports seem to be inactive until windows boots, have no use of keyboard to get into the bios or control anything before login screen.</p> <p>The computer was improperly shutdown and on startup it comes up with "Launch System Repair"(default) or start normally. I can't switch it to start normally because usb from the pci card isn't active yet. Runs through a check and then ask me if I want to use system restore, but still, no keyboard.</p> <p>If I pull the hard drive into another computer, is there a file I can modify to tell it not to perform the system check? There has to be a file somewhere that has a flag set to do this, I just have no idea what or where to look.</p>
0non-cybersec
Stackexchange
Cannot join CIFS server to a active directory domain. <p>We have a VNX5700 in our environment , it had two datamovers(one as primary and the other secondary). Recently we added a third datamover to the array and configured it as an active DM , so we will have two active and one standby DM.</p> <p>Our issue is that when we try creating CIFS server , its not joining to the domain it throws the error " the operation failed due to a communication problem with DataMover...control station was unable to send request or receive response from Datamover"</p> <p>We have tried:</p> <ol> <li>adding DNS records to Datamover</li> <li>We found that the time to be off on the new DM by more than 5 min,this is fixed now.</li> <li>We have compared with the configuration and vlan of the network port with the network port of the other DM that works fine-> the configuration is found to be the same, except that both resides on different port channels</li> <li>we tried rebooting the DM .</li> <li>getreason command gives the output for all DM as 'contacted'</li> <li>We are able to ping the default gateway from the DM that works fine, but we cannot ping the same ip from the new DM</li> </ol> <p>Please advice what should be the next step taken to resolve this issue.</p>
0non-cybersec
Stackexchange
Just a thought about Companion AI. I was listening to JRE with Ben Goertzel and had a thinky thought. I believe that Siri, Alexa, etc will probably start aping internet celebrities with thousands of hours of content with behavior, speech patterns and thought processes to emulate. I don't think it would quite play out like Sam from Her, because nobody wants to hang out with the same person 100% of the time, no matter how much you like them. Let's say you were googling some random subject, you might want an expert in the field to explain it to you and dumb it down as need be, rather than your VR waifu. And maybe your drinking buddies or SO might be annoyed with both professor metal bottom and your VR waifu. There is a darkside though. That shit would probably be spying like a motherfucker and snitch on you to a neural net, to pick up on how you interact with people and sell it to corporations and governments. It'll probably have some dark psychological profile of personality defects to prevent it from adopting unpleasant behavior and target your personal vulnerabilities to influence you.
0non-cybersec
Reddit
You're not lyin.
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
Cool mystery heroes team victory pose. So playing a game of mystery heroes a few weeks back, and was shown [this victory screen](http://imgur.com/XKyOoQ5) after we won. I thought the symmetry of the characters being given and them all having the same poses and positioning was pretty impressive! Edit: video for proof: http://xboxdvr.com/gamer/sham93/video/26477768
0non-cybersec
Reddit
swarnim infotech-digital marketing classes.
0non-cybersec
Reddit
A fish that eats birds.
0non-cybersec
Reddit
What is the difference between block and inline-block with width: 100%?. <p>I've recently been trying to figure out when it is appropriate to use <code>inline-block</code>s. They seem to be far more useful than just a <code>block</code> element. In fact, an inline-block element seems to be able to do anything a block element can do, but with a little extra styling.</p> <p>Is there any reason an element with <code>display: inline-block; width: 100%;</code> is any different than an element with <code>display: block;</code>? (Aside from the fact that one is longer?)</p> <p>I've been researching this topic by reading the <a href="http://www.w3.org/TR/CSS2/visuren.html" rel="noreferrer">w3c recommendation</a>. I can't seem to find a difference.</p>
0non-cybersec
Stackexchange
Monsters of the Climate Crisis: Carbon Dioxide [OC].
0non-cybersec
Reddit
Prove that two sets recursively inseparable.. <p>Let φ be the standard indexing of the partial computable functions. Prove that the sets <span class="math-container">$$A = \left\{e : φ_e(0) = 0\right\}$$</span> and <span class="math-container">$$B = \left\{e : φ_e(0) = 1\right\}$$</span> are recursively inseparable</p> <p>In books like "Handbook of recursive mathematics, Vol. 2" I found different example: <span class="math-container">$$A = \left\{x : φ_x(x) = 0\right\}$$</span> and <span class="math-container">$$B = \left\{x : φ_x(x) = 1\right\}$$</span> which can be proven very easy, what I can't say about 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
SiS chipset video problem. <p>Is there any release of Ubuntu that will install (and run) on an older computer with an SiS 651 integrated video chipset? It's a know problem on 12.10. It doesn't seem to be mentioned in any of the later release notes.</p>
0non-cybersec
Stackexchange
Heavyweight division champ..
0non-cybersec
Reddit
Dogs on a log [pic].
0non-cybersec
Reddit
Making the Asians proud.
0non-cybersec
Reddit
Wha- How?!?.
0non-cybersec
Reddit
Batch export torrent files from KTorrent. <p>To export single torrent file: <br>Right mouse click -> Advanced -> Export Torrent</p> <p>To export n torrent files: <br>???</p>
0non-cybersec
Stackexchange
Learn to delete BAT/TrojanDownloader.Ftp.NOK virus from your computer.
1cybersec
Reddit
Construct a real matrix from a system of three differential equations. <p><a href="https://i.stack.imgur.com/mJGDR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mJGDR.png" alt="enter image description here"></a></p> <p>Could anyone please explain it to me what this question demands me to do? Thank you.<br> (I am aware I need to proof I have tried with my effort before asking a question, but I really have no idea where I should begin)</p> <p>Follow-up: Now I have obtained eigenvalues of 1,-2+ root(-36) and -2-root (-36)</p> <p>Updates: My eigen-vectors of A is a 3x3 identity matrix</p>
0non-cybersec
Stackexchange
A learning question about volume forms. <p>I am learning differential manifold and got a question.</p> <p>How do we calculate the surface area? Or how to calculate the volume of a submanifold? Like for the surface area of $S^n$, if $\phi$ is the embedding map, then it seems that $S=\int\phi^*(\sum_{j=1}^{n+1}(-1)^{j-1}x_j dx_1\wedge dx_2...dx_{j-1}\wedge dx_{j+1}...\wedge dx_{n+1})$ according to some webpage I found. But where did that volume form come from? For a general case, if $(N,\phi)$ is a n-dimension submanifold embedding in a m-dimension manifold M, what is the n-form in $A(M)$ that should be pulled back and integrate on $N$?</p> <p>Thank you for your patience.</p>
0non-cybersec
Stackexchange
Solving an inhomogeneous difference equation. <p>Consider the following difference equation: $$-(1+a)u_{i-1} + 2 u_i - (1-a) u_{i+1} - \frac{h^2}{\epsilon} = 0, \; i = 1, ..., N, \tag{1}$$ $$u_0 = 0, \; u_N = 1.$$</p> <p>Can someone explain me how to solve this equation?</p> <p>I read somewhere the following method:</p> <p>1) Solve the homogeneous equation;</p> <p>2) Find a particular solution of inhomogeneous equation (1);</p> <p>3)The general solution of (1) is the sum of the particular solution and the solution of homogeneous equation.</p> <p>Is this method right? </p> <p>I can't find a particular solution of equation (1). Can someone help me?</p> <p>Thank you!</p>
0non-cybersec
Stackexchange
13yo with a Full Sleeve Tattoo.
0non-cybersec
Reddit
Strange behavior of F# records. <p>There is a few cases when F# records behavior is strange to me:</p> <p><strong>No warning on ambiguity</strong></p> <pre><code>type AnotherPerson = {Id: int; Name: string} type Person = {Id: int; Name: string;} // F# compiler will use second type without any complains or warnings let p = {Id = 42; Name = "Foo";} </code></pre> <p><strong>Warning on records deconstruction instead of records construction</strong></p> <p>Instead of getting a warning on records construction in previous case, F# compiler issued a warning on records "deconstruction":</p> <pre><code>// Using Person and AnotherPerson types and "p" from the previous example! // We'll get a warning here: "The field labels and expected type of this // record expression or pattern do not uniquely determine a corresponding record type" let {Id = id; Name = name} = p </code></pre> <p>Note, that there is no warnings with pattern matching (I suspect thats because patterns are built using "records construction expressions" and not with "records deconstruction expression"):</p> <pre><code>match p with | {Id = _; Name = "Foo"} -&gt; printfn "case 1" | {Id = 42; Name = _} -&gt; printfn "case 2" | _ -&gt; printfn "case 3" </code></pre> <p><strong>Type inference error with missing field</strong></p> <p>F# compiler will choose second type and than will issue an error because Age field is missing!</p> <pre><code>type AnotherPerson = {Id: int; Name: string} type Person = {Id: int; Name: string; Age: int} // Error: "No assignment given for field 'Age' of type 'Person'" let p = {Id = 42; Name = "Foo";} </code></pre> <p><strong>Ugly syntax for "records deconstruction"</strong></p> <p>I asked several collegues of mine a question: "What this code is all about?"</p> <pre><code>type Person = {Id: int; Name: string;} let p = {Id = 42; Name = "Foo";} // What will happend here? let {Id = id; Name = name} = p </code></pre> <p>That was total surprise for everyone that "id" and "name" are actually "lvalues" although they placed at the "right hand side" of the the expression. I understand that this is much more about personal preferences, but for most people seems strange that in one particular case output values are placed at the right side of the expression.</p> <p>I don't think that all of this are bugs, I suspect that most of this stuff are actually features.<br> My question is: <strong>is there any rational behind such obscure behavior?</strong></p>
0non-cybersec
Stackexchange
Prove $r^n - s^n = (r-s)\sum_{j=0}^{n-1} r^js^{n-j-1}$ by induction. <p>Prove $$r^n - s^n = (r-s)\sum_{j=0}^{n-1} r^js^{n-j-1} $$ $(1)$by induction.</p> <p>I've verified that $$n=1: r^1 - s^1 = (r-s)(r^0s{1-0-1}) = r-s$$</p> <p>Assume $(1)$ is true for $n \le k$. That is $$r^k - s^k = (r-s)\sum_{j=0}^{k-1} r^js^{k-j-1} $$ is true.</p> <p>$$ n = k + 1: \sum_{j=0}^{(k+1)-1} r^js^{(k+1)-j-1} =\sum_{j=0}^{k-1} r^js^{(k+1)-j-1} + r^k = s\sum_{j=0}^{k-1} r^js^{k-j-1} + r^k \Rightarrow (r-s)\sum_{j=0}^{(k+1)-1} r^js^{(k+1)-j-1} = (r-s)(s(r^k-s^k)+r^k)$$ $(2)$</p> <p>However I cannot write the last expression $(2)$ as $r^{k+1}-s^{k+1}$. Could someone help me out ? </p>
0non-cybersec
Stackexchange
Cauchy functional inequality. <p>Given a function on a closed interval $f\colon I\subset \mathbb{R}\to \mathbb{R}$ with $$f(x+y) \leq f(x) + f(y).$$ Moreover, I know that $f$ is </p> <ul> <li>monotonic increasing</li> <li>continuous on all points except countably many</li> <li>continuous from the right</li> <li>such that the limit from the left at each point exists.</li> <li>$f(nx) \leq nf(x)$ for all $n\in\mathbb{N}$.</li> </ul> <p>Can I say more on this function? In particular, I would like to show that $f(\lambda x) \leq \lambda f(x)$ for all $\lambda \geq 1$ or at least for all rational $\lambda \geq 1$.</p>
0non-cybersec
Stackexchange
Some screenshots taken from the SUPERHOT beta.
0non-cybersec
Reddit
Pong.
0non-cybersec
Reddit
Gamer described how his outlook on video games had changed as he's grown up..
0non-cybersec
Reddit
Aligned multiline equations. <p>I'm using an <code>align</code> environment in a long derivation. Each equality is aligned at the equal sign. Individual lines are too long to fit the page, so I need wrap them. However, I don't just want them to continue in the next line as I usually do and maybe indent them with a <code>\quad</code>, I want them to align with the opening bracket which contains all the terms. I've been looking into the <code>aligned</code> environment which sort of does what I want, but now the <code>aligned</code> lines are vertically centered with the beginning of the equality:</p> <pre><code>\begin{align*} Z &amp;= Tr_\text{el, ph}\bigl[\exp(-\beta H)\bigr]\\ &amp;= \int\mathcal{D}q Tr_\text{el}\biggl[T_\tau\exp\biggl(-\int_0^\beta d\tau\sum_j\Bigl[ \begin{aligned} &amp;-t\sum_\sigma\bigl(c_{j\sigma}^\dag(\tau)c_{j+1,\sigma}(\tau)+\text{h.c.}\bigr)\\ &amp;+\tfrac{M}{2}\bigl(\dot q_j(\tau)^2+\omega_0^2q_j(\tau)^2\bigr)\\ &amp;-g\sqrt{2M\omega_0}\sum_\sigma n_{j\sigma}(\tau)q_j(\tau)\Bigr]\biggr)\biggr] \end{aligned}\\ &amp;= ... \end{align*} </code></pre> <p><a href="https://i.stack.imgur.com/fa4QG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fa4QG.png" alt="What I have"></a></p> <p>This is what I would like it to look (photoshopped): <a href="https://i.stack.imgur.com/M5VAp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M5VAp.png" alt="enter image description here"></a></p> <p>I imagine, I'm not the first one to have this problem. I did a thorough search before posting this question, so before you mark this as a duplicate, please consider carefully if the alleged duplicate really addresses my issue.</p>
0non-cybersec
Stackexchange
Rice wine and spring rolls in Vietnam (OC) [6000x4000].
0non-cybersec
Reddit
Renaming the Package Name inside an APK. <p>I have created an <strong>AIR app</strong> that is currently on the market. To update the app, obviously I must keep the same package name. My first version's were packaged using <strong>Eclipse</strong> with the ADT plugin.</p> <p>Now to use <strong>AIR 3.0 Native Extensions</strong> (ANE) which were not available when I first developed the app, I currently must create my APK using AIR's command line tools. Unfortunately, these command line tools force you to have a package name that starts with the word "air". For example, I need the package name "com.example". AIR creates the package name as "air.com.example".</p> <p>So now, I cannot update my app in the market since the package name has changed. Adobe has this horrific article to help you rename and remove the "air" in the package. I'm not a great programmer so this has really stumped me. <a href="http://kb2.adobe.com/cps/875/cpsid_87562.html" rel="noreferrer">http://kb2.adobe.com/cps/875/cpsid_87562.html</a></p> <p>Apparently this info is out of date or incorrect in a few areas. I have completely stumbled at step 12 which uses <strong>apkbuilder</strong>:</p> <pre><code> apkbuilder final.apk -u -z resources.arsc -f classes.dex </code></pre> <p>I am getting this error message:</p> <p><em>THIS TOOL IS DEPRECATED. See --help for more information. java.io.FileNotFoundException: <strong>resources.arsc</strong> does not exist</em></p> <p>I have used step 10 to create the new <strong>resources.arsc</strong> file. It clearly DOES exist and in the correct location. I tried using apkbuilder with other resources.arsc files taken from other projects. I still get the same error message.</p> <p>Is there a chance in hell of this working? If anyone is interested in this, I have a zip file with a sample AIR apk, windows bat files for all the command line work, and all the needed utilities so they don't need to be downloaded. To get started you just need to change my path.bat to fit your system. And you need notepad++ (or an equivalent) to batch automate renaming the package name across several files. <a href="http://bradwallacedesign.com/dktimer/renameApkProject.zip" rel="noreferrer">bradwallacedesign.com/dktimer/renameApkProject.zip</a></p> <p>Thanks so much!</p>
0non-cybersec
Stackexchange
BeginInvoke with/without using MethodInvoker—does it make any difference?. <p>I've seen these 2 versions of code while looking at some other developers' code:</p> <p>1.</p> <pre><code> Me.BeginInvoke(New MethodInvoker(Sub() cbo.ShowPopup())) </code></pre> <p>2.</p> <pre><code> Me.BeginInvoke(Sub() cbo.ShowPopup() End Sub) </code></pre> <p>Are both statements equivalent, or are they different in some way? Also, isn't EndInvoke() necessary with BeginInvoke()?</p>
0non-cybersec
Stackexchange
Jared sucks..
0non-cybersec
Reddit
Super easy to make cornbread from scratch (recipe included). I tried to make boxed corn muffins last night and messed them up. They stuck to the muffin tin and put me into a bad mood. I usually feel I'm a decent cook and felt like I'd failed. Then I remembered that I had corn meal in a cabinet and knew I could find a cornbread recipe easily. Sure enough there was one right on the corn meal package. I used the sweeter recipe and greased my glass baking pan with softened butter. Baking time of 22 minutes in my junky old electric oven gave me the best cornbread in my life. I only had skim milk, too. Dinner was saved and my family ate almost all the bread! Here's the link and photos of the finished cornbread. http://imgur.com/a/aaHFI
0non-cybersec
Reddit
Atmosphere is great, But this is my fav MN Hip-Hop... .
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
Witch charecters should be playable in super mario maker 2. [removed] [View Poll](https://www.reddit.com/poll/gcy4hn)
0non-cybersec
Reddit
Cost of self storage by city and state [OC].
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