text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
This table has legs. | 0non-cybersec
| Reddit |
How do I make a VMWare VM not be running on a snapshot?. <p>I'm not sure I understand snapshots. I took a snapshot of a VM on ESXi. The Snapshot manager in VSPhere show the tree and at the bottom of that three is "You are here." It is underneath the snapshots. I only wanted the snapshot for a supplementary backup.</p>
<p>Why wouldn't "You are here" be at the top? I never told it to run on snapshot x. I need to be able to provision more space for the Virtual Disk but cannot because (I think) I am running on a snapshot.</p>
| 0non-cybersec
| Stackexchange |
18.04 is slow in VirtualBox—how to make is usable?. <p>I run Ubuntu in VirtualBox. 18.04 is considerably less responsive than 16.04, with exactly the same VM settings (3D acceleration, 3 cores, 4 GB RAM, guest additions installed, host: macOS, VirtualBox 5.2.18).</p>
<p>18.04 is often slow to respond to clicks and even typing. It is borderline unusable. 16.04, on the other hand, works perfectly fine. The 18.04 is a fresh install.</p>
<p>Is this considerable performance drop an inevitable consequence of switching to Gnome 3? Are there any simple settings I can try to make it usable? I do not need animations or fancy visual effects—this in an OS in a VM so it gets only occasional use, and I mostly just need the terminal.</p>
<hr>
<p><strong>More details:</strong></p>
<ul>
<li><p>Right after boot, performance is satisfactory</p></li>
<li><p>After opening a Terminal, <em>and maximizing it</em>, performance becomes awful. It does not recover even after unmaximizing the Terminal window, or closing it.</p></li>
<li><p>Turning <em>off</em> 3D acceleration in VirtualBox makes is more sluggish after startup (e.g. moving window on the screen is choppy), but it never gets <em>unusably</em> slow after maximizing a window.</p></li>
</ul>
| 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 |
Add compiler option without editing Makefile. <p>I should compile a program written in C through a Makefile. I should insert into the Makefile, some option, for instance: <code>-O2, -march=i686</code>. How can I insert this option in the Makefile without writing into it?</p>
| 0non-cybersec
| Stackexchange |
NoRouteToHostException on client or server?. <p>I am getting</p>
<pre><code>Caused by: java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:564)
at sun.reflect.GeneratedMethodAccessor638.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
</code></pre>
<p><a href="http://docs.oracle.com/javase/6/docs/api/java/net/NoRouteToHostException.html" rel="noreferrer">javadoc</a> says </p>
<blockquote>
<p>Signals that an error occurred while attempting to connect a socket to
a remote address and port. Typically, the remote host cannot be
reached because of an intervening firewall, or if an intermediate
router is down.</p>
</blockquote>
<p>Is this error on client side or remote side or it can be either of these?</p>
| 0non-cybersec
| Stackexchange |
Using ActiveSheet.Shapes("Fotos_Campo").Fill.UserPicture. <p>I'm using <code>ActiveSheet.Shapes</code> to show the image in a shape in Excel, but it's not working. </p>
<p>I named the shape "Fotos Campo".
I'm using a Macbook Pro 2019.</p>
<pre><code>Sub carrega_foto()
'/Users/raphaelperciliano/Desktop/Teste/imagem
Range("H4") = ThisWorkbook.Path & "/imagem/foto" & Range("H2") & ".png"
ActiveSheet.Shapes("Fotos_Campo").Fill.UserPicture Range("H4")
End Sub
</code></pre>
| 0non-cybersec
| Stackexchange |
Why can we disentangle the squeezing operator $\exp[\frac12(\xi a^{\dagger 2}-\xi^* a^2)]$ via the $\mathfrak{su}(1,1)$ algebra?. <p>In the context of quantum mechanics, we define the <a href="https://en.wikipedia.org/wiki/Squeeze_operator" rel="nofollow noreferrer">squeezing operator</a> <span class="math-container">$S(\xi)$</span> as:
<span class="math-container">$$S(\xi)\equiv \exp[\frac12(\xi a^{\dagger 2}-\xi^* a^2)],$$</span>
where <span class="math-container">$a^\dagger$</span> and <span class="math-container">$a$</span> are the so-called <em>creation</em> and <em>annihilation</em> operators, which satisfy <span class="math-container">$[a,a^\dagger]=1$</span>.</p>
<p>It is often convenient to consider the <em>disentangled form</em> of <span class="math-container">$S(\xi)$</span>, that is, to split the operator into an exponential involving only <span class="math-container">$a^{\dagger 2}$</span> and one involving only <span class="math-container">$a^2$</span>. This can be done as following:
<span class="math-container">$$S(r e^{i\theta})=
\exp\left[\frac12e^{i\theta}\tanh(r) a^{\dagger 2}\right]
\exp\left[-\ln\cosh(r) \left(a^\dagger a+\frac12\right)\right]
\exp\left[-\frac12e^{-i\theta}\tanh(r) a^{2}\right].
$$</span></p>
<p>This result is obtained via the following observations (see also <a href="https://physics.stackexchange.com/a/416126/58382">here</a> for more details):</p>
<ol>
<li>Define <span class="math-container">$K_+\equiv \frac12 a^{\dagger 2}$</span> and <span class="math-container">$K_-\equiv K_+^\dagger=\frac12 a^2$</span>, and observe that
<span class="math-container">$$[K_-,K_+]=\frac12(1+2 a^\dagger a)\equiv K_0 \quad\text{ and }\quad
[K_0,K_\pm]=\pm2 K_\pm.$$</span></li>
<li>Observe that these define the <span class="math-container">$\mathfrak{su}(1,1)$</span> Lie algebra, a faithful representation for which is given in terms of the Pauli matrices:
<span class="math-container">$$i\sigma_-\equiv\begin{pmatrix}0 & 0 \\ i & 0\end{pmatrix}=K_-,
\qquad i\sigma_+\equiv\begin{pmatrix}0 & i \\ 0 & 0\end{pmatrix}=K_+, \\
\sigma_3 = \begin{pmatrix}1 & 0 \\ 0 & -1\end{pmatrix}= K_0.$$</span></li>
<li>Using this representation in terms of <span class="math-container">$2\times2$</span> matrices, we compute the matrix exponential <span class="math-container">$\exp[i(\xi \sigma_+ - \xi^* \sigma_-)]$</span> using standard techniques.</li>
<li>We use Gauss decomposition to write the resulting matrix as product of matrices which correspond to exponentials of the original operators.</li>
</ol>
<p>My question relates to the mathematical justification behind this procedure.
I understand that the representation of the operators in terms of <span class="math-container">$2\times2$</span> matrices is faithful, but that only relates to the <em>commutators</em>, the operators themselves don't behave the same way. So why should we expect to be able to compute the exponential in the representation and then convert the results back into the original operators?</p>
| 0non-cybersec
| Stackexchange |
closed formula for: $(g\partial)^n$. <p>The <strong>objective</strong> is to obtain a closed formula for:
<span class="math-container">$$
\boxed{A(n)=\big(g(z)\,\partial_z\big)^n,\qquad n=1,2,\dots}
$$</span>
where <span class="math-container">$g(z)$</span> is smooth in <span class="math-container">$z$</span> and <span class="math-container">$\partial_z$</span> is a derivative with respect to <span class="math-container">$z$</span>.
I think the first few terms are,
<span class="math-container">\begin{equation}
\begin{aligned}
A(1) &= g\,\partial\\
A(2)&= g\,(\partial g)\,\partial+g^2\,\partial^2\\
A(3)&= \big[(\partial^2g)g^2+(\partial g)^2g\big]\partial+3(\partial g)g\,\partial^2+g^2\partial^3\\
A(4) &= \big[(\partial^3g)g^3+4(\partial^2g)(\partial g)g^2+(\partial g)^3g\big]\partial\\
&\quad +\big[4(\partial^2g)g^3+7(\partial g)^2g^2\big]\partial^2+6(\partial g)g^3\partial^3+g^4\partial^4\\
&\,\,\vdots
\end{aligned}
\end{equation}</span>
and presumably there is a simple pattern that I'm failing to see. The coefficients do not seem (to me) to be associated to a special function (such as a Bell polynomial) in a simple way.</p>
<p>Any ideas? Perhaps there is a standard formula? </p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
What's the deal with crying and boners?. Almost every guy I've dated has gotten a boner when I've cried to them about something. Girlfriends have said the same thing. I find it hilarious - I tease my SO about wanting to use tears for lube. But seriously, can anyone explain to me why this happens? No one ever seems to want to tell me why they have a boner when I'm crying. Help me understand! | 0non-cybersec
| Reddit |
What could go wrong trying to double down. | 0non-cybersec
| Reddit |
19 simple and healthy road trip snack recipes.. | 0non-cybersec
| Reddit |
How do I insert a variable image file in a rmarkdown pdf. <p>The problem is simple - How do I insert a variable filename into an rmarkdown PDF? I want to do this:</p>
<pre><code>---
FNL = "image.png"
---

</code></pre>
<p>only I need to pass in the value for FNL when calling rmarkdown::render</p>
<p>The purpose is to give the image a unique ID so that users get images marked for their session.</p>
<p>Anyone able to help with this?</p>
| 0non-cybersec
| Stackexchange |
SolusVM Migration. <p>I have an old server on which I am hosting about 30 OpenVZ VPS Servers. I have purchased a new server which is much more powerful and I plan to do a complete migration in the future. Currently I would like to know how to migrate VPS servers one by one, where the migrated VPS would keep all of the configuration, IP addresses and be completely independent from the server it was migrated from. </p>
| 0non-cybersec
| Stackexchange |
Sql server partitioned table: what happens when an update of a record changes the destination partition?. <p>I my company we are facing performance issues on a big Sql server DB (running on Azure, total size > 150GB).</p>
<p>We have one big table (1,5GB, 3 millions records) that has several quite slow "select".</p>
<p>Those records have an "insert date" and I know that it is easy to make partitions based on date.</p>
<p>But I am exploring a different idea.</p>
<p>I have a "Status" column that can have different values, one of them is "Closed" and different other values that I'll call "Open".
My idea is to add a calculated persisted column with a value that can be "Open" or "Closed", i'll call it OpenClosedStatus.</p>
<p>"Closed tickets" continue to be accumulate and are rarely (if ever) read again, instead "open" tickets are normally less than 100 so having a dedicated partition should allow extremely fast read of their values.
Please note: the record is inserted once, selected potentially several hundred times and finally updated once (the update sets the "closed" status).</p>
<p>It is very complex to make proper indexes to speed up the several selects on the "Open" tickets because we have hundreds of instances of different programs that read "open" tickets accordingly with different criteria, therefore I am considering to partition them accordingly with the OpenClosedStatus.</p>
<p>This idea implies that a ticket is always inserted in the "Open" partition, then it should be transferred to the "Closed" partition when the status is updated as closed. The "OpenClosedStatus" will always be used in the WHERE clause of our queries, at least when searching for "open" tickets (therefore going on the small partition).</p>
<p>I do not find a reference of this "dynamic change" of partition on update of the record, I am therefore looking for advice for or against this atypical usage or partitions.</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 |
What unusual spices change the game for everyday cooking?. | 0non-cybersec
| Reddit |
GUCCI brogue Derby for $300. | 0non-cybersec
| Reddit |
spring/application.rb:161 undefined method `reject!' for nil:NilClass (NoMethodError). <p>I am using ruby 2.5 and rails 5.0.1 for my application. when i try to run console or generate controller or migration it gives me this error:</p>
<p><code>Running via Spring preloader in process 6473
Loading development environment (Rails 5.0.1)
Traceback (most recent call last):
/home/abwahed/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.0.1/lib/spring/application.rb:161:in</code>fork': undefined method <code>reject!' for nil:NilClass (NoMethodError)</code></p>
| 0non-cybersec
| Stackexchange |
If real humans had character sheets like the ones in mmorpgs what would be on it?. | 0non-cybersec
| Reddit |
DNS Over VPN Tunnel Won't Resolve. <p>We have a site to site tunnel with using a Meraki router to the Google Cloud. Pings and normal traffic flows between the two sites. The server on the Google Cloud side is a domain controller running DNS. However, the Google side of the tunnel will not return queries.</p>
<p>We did packet captures on the Meraki side and they show that the traffic is leaving over the tunnel but there's no response. I verified that I have the following in the firewall section on Google's side:</p>
<p>vpn-dns Ingress Apply to all
IP ranges: 0.0.0.0/24 tcp:53, udp:53
Allow 65534 default</p>
<p>Thoughts on what may be missing or how to pinpoint? The domain controller has all firewalls turned off. You can RDP to it and ping it from the remote location as well.</p>
| 0non-cybersec
| Stackexchange |
Snake swallowing a bird from a tree. | 0non-cybersec
| Reddit |
Drug test in 7-8 days, have been researching, but was hoping for some information specialized to my situation?. Well, I'm in a bit of a panic and all because of my own stupidity. The last I smoked weed was either the 26th or the 27th (3-4 days ago). I have my test on May 7th or 8th (7-8 days from now).
Prior to that I have myself documented smoking the 25th, the 24th (very beginning of day 12:01 am), towards the end of the day on the 19th, the 18th, the 12th, the 11th, the 8th, the 6th and the 1st of April.
To clarify, I've never actually smoked. I have only vaped very loose packs in my arizer solo stem. I already drink 64 - 90 fl ozs of water every day and exercise every other day (have been doing this for months).
This is the most I've ever smoked and my test was supposed to be over two months from now.
From my research the following questions are unclear regarding my specific situation. Could you please help answer my questions?
1)Worth buying an at home drug test? I'd like to see if I'm clean before I go in, but I hear these are poor indicators.
2)Best plan up until the day before the test?
I know there is some mix of b vitamins I should be taking. What about Niacin? I will continue exercising and drinking lots of water. I'll also start taking creatine despite the nausea it induces. Should I stop eating fats? Is there anything else?
3)Should I just buy cranberry juice or some other diuretic? I already drink coffee daily.
4) The day before/of what is the best plan?
I have read that I should stop exercising and cycle my pee in the morning. What about diet? There are so many conflicting plans I do not know what is best.
5)
Given the information provided is there any way that I can assure a passed test other than cheating?
6) Any other tips/advice?
If not, what is the best fake urine/equipment that I should buy?
I know these issues have been covered many times (I have been reading for a few hours now), but would really love some clarification on my specific situation?
Any insight to get me on the right track would be incredible. Thank you.
Edit: also, I've started to bulk in the last few months, I've been largely unsuccessful only gaining around 5 pounds (currently at 168), but I'm sure a good amount of this was fat. I'm afraid this could negatively impact my results as well .
Edit:
I've been reading a lot of information on this sub and everyone seems very helpful. I know this shit gets posted all the time, but it means the world if you could chime in on my situation. (xpost /r/askdrugs)
Edit:
Would this be a decent detox method? Is there any benefit of taking creatine/b12 for the week leading up to? Or is it only beneficial for the day of to balence nutrients and color? | 0non-cybersec
| Reddit |
Big Check For Science. | 0non-cybersec
| Reddit |
Sliding down a hill with no supervision. | 0non-cybersec
| Reddit |
The world's largest sea-dwelling crocodile, previously unknown to science has been discovered: This prehistoric crocodile is believed to have measured more than 30 feet long and weighed three tons. The skull alone is more than five feet long. Researchers named the new species the Machimosaurus rex.. | 0non-cybersec
| Reddit |
bacula - client choose backup content. <p>I would be interested to deploy bacula as my backup solution. My drawback so far is that I haven't found how/if is possible for a client to determine what he wants to be backed up. </p>
<p>My understanding is that this must be defined inside Director and Client has no way to change it. (Except for contact the administrator)</p>
<p>Is that correct ? If yes, is there any elegant way to bypass it ?</p>
<p>cheers</p>
| 0non-cybersec
| Stackexchange |
Pay more on student loans or pay more on condo?. I have about $100k in student loan debt and I have about $78k on my condo. Both are at 6.5% interest.
I bought my condo at the height of the market way back when, and I can't refinance or sell at the moment. (I tried-- but too many owners defaulted so there are a ton on the market for super cheap and the bank won't refinance because the owner to renter ratio is skewed.)
It was my primary residence, but it was only a 600sft 1 bedroom, so when I got married and had kids we had to move. Fortunately, it's a really good rental property due to its location near employers and public transit, and it has been consistently rented for the past 3 years.
I have a little extra money each month I can put toward either of these loans.
Right now I'm thinking to pay the minimum on the student loans and then to put my extra income toward the mortgage because once that is paid off I'll have income coming in that I can then put toward the student loans.
I don't know if I'm thinking about this the right way or not though-- thoughts?
| 0non-cybersec
| Reddit |
Forward difference operator. <p>What does $\Delta^{-1}$ mean?</p>
<p>I have seen it in a question such as "justify that $\Delta^{-1}k^{(n)} = {k^{n+1}\over{n+1}}$".</p>
<p>Thanks for your help.</p>
| 0non-cybersec
| Stackexchange |
For Honor: Year 3 Season 1 – Vortiger Gameplay Trailer. | 0non-cybersec
| Reddit |
Inside the brain of Los Angeles Lakers forward Ron Artest - ESPN. | 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 |
More Boy With Tape on His Face. | 0non-cybersec
| Reddit |
The greatest Halloween remake that could have been (an opinion of mine).. Sure, Zombie wanted to do something of his own while trying to balance the elements from the Original. Meanwhile, in the second he went all out with his own story.
So wanting a remake that's not an exact copy, but something new and fresh while remaining close to the vein of the Original, I believe THE STRANGERS could have done the job.
Imagine if there was only ONE killer - MYERS.
and the back-story we'd get is simply the tale of a Child who killed his sister several states away who was locked up in a Sanitarium near the cabin of that couple (Liv Tyler, etc). Naturally, Michael escapes.
No Loomis (this way, there's no need to replace someone irreplaceable).
Anyway, the story would play out EXACTLY like the strangers did, yet with Michael as the killer.
In the end, I think we would have received a gritty, nail-biting, remake that was stripped to the bones, realistic and absolutely worthy of a modern rendition of our beloved classic.
Killer gets out (we wouldn't see this happen. Everyone would assume, based on the backstory)
Killer finds cabin by Sanitarium - and then everything plays out as it did in THE STRANGERS.
At the end of the film, Michael walks away from the cabin.
The audience is left to believe that he's heading HOME.
..To Haddonfield.
BOOM - SETUP FOR SEQUEL.
Thoughts? | 0non-cybersec
| Reddit |
Friend asked this today. | 0non-cybersec
| Reddit |
Diagonal Output of a file. <p>How would you output the diagonal of a file?</p>
<p>e.g I got a file with the following inside.</p>
<pre><code>1,2,3,4,5
6,7,8,9,0
1,2,3,4,5
6,7,8,9,0
1,2,3,4,5
</code></pre>
<p>The output would be supposed to look like: <code>1 7 3 9 5</code> or something like that.</p>
<p>I can output a column via cut (cut -d "," -f5 filename), but I am unsure what to write in order to output the diagonal only.</p>
| 0non-cybersec
| Stackexchange |
Notation Question $n$ $ < <$ $m$. <p>What does the following notation mean:
$n< < m$ , where $n$ and $m$ are numbers?</p>
| 0non-cybersec
| Stackexchange |
Update CAE linux to latest Ubuntu OS that has been installed with windows 7. <p>I have installed Windows within CAE linux. Can I update linux safely so that the windows OS is not disturbed ??? CAE linux is the primary OS. </p>
| 0non-cybersec
| Stackexchange |
% in subsection. <p>I have searched the web but did not find anything besides the command <code>\texorpdfstring</code> for including math symbols which did btw not work for me</p>
<p>I simply want to add a percent symbol in my subsection i.e.</p>
<pre><code>\subsection{under 5%}
</code></pre>
| 0non-cybersec
| Stackexchange |
Album Review: Junkie XL - Synthesized
"find some candy, jump aboard, and be transported to an era when P.L.U.R. was still the scene’s calling card.". | 0non-cybersec
| Reddit |
GameStop launches full publishing division and signs Ready at Dawn, Insomniac, Frozenbyte and Tequila Works. | 0non-cybersec
| Reddit |
Delving inside Apple's new 21.5-inch iMac. | 0non-cybersec
| Reddit |
What did you eat for breakfast?. I just want to see what everyone is eating, get some ideas, start discussion, whatever. I'm not necessarily looking for what's your favorite breakfast (my favorite breakfast certainly isn't something that I have the time or inclination to cook every morning) I'm just looking for a wide range of answers which is why I thought it'd be good to specify what did you eat this morning?
Weekends are the only time I eat breakfast. This morning I had a slice of pumpernickel toast topped with a slice of melted cheese, half an avocado, salt and pepper and a cucumber on the side. Super simple, put together in 5 minutes and most importantly, tasty! ~250 calories.
Edit: Thanks for all the replies! I love seeing what other people are eating, it gives me lots of ideas and things to think about!
| 0non-cybersec
| Reddit |
PsBattle: Children during a puppet show, Paris - 1963. | 0non-cybersec
| Reddit |
Bouncing on elastic bands. | 0non-cybersec
| Reddit |
React Routing implementation. <p>I am trying to implement routing in my react app. So I have a component with navigation to another components:</p>
<pre><code> class Order extends Component {
render() {
return (
<div>
<ul>
<li>
<Link to="/stepOne/">1</Link>
</li>
<li>
<Link to="/stepTwo/">2</Link>
</li>
<Link to="/stepThree/">3</Link>
<li>
<Link to="/steFour/">4</Link>
</li>
</ul>
<Switch>
<Route exact path="/stepOne" component={SearchConcoctionFormula} />
<Route exact path="/stepTwo" component={OrderStepTwoIndex} />
<Route exact path="/stepThree" component={OrderStepThreeIndex} />
<Route exact path="/stepFour" component={OrderStepFourIndex} />
</Switch>
</div>);
}
}
export default Order;
</code></pre>
<p>But my problem is that when I click on the link, the selected component is rendered along with the navigation links.
But I expect only the selected component to be rendered. What should I change?</p>
| 0non-cybersec
| Stackexchange |
Lower bound of the spectrum of a Schrodinger operator on a bounded domain. <p>I am trying to look for references on estimate of the lower bound of the spectrum of a Schrodinger operator $-\Delta + V$ on a bounded domain in three-dimensional space. For simplicity, we can take the domain to be a ball or torus, and the potential $V$ to be cylindrically radial, i.e. $V = V(r)$, where $r$ is as in the cylindrical coordinates.</p>
<p>Any suggestion is welcome - Thanks in advance!</p>
| 0non-cybersec
| Stackexchange |
Found at the Keeper of the Plains in Wichita, KS (X-post from r/thelastavatar). | 0non-cybersec
| Reddit |
Writing an expression for a change in angular velocity of an angle. <p><a href="https://i.stack.imgur.com/zFjdA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zFjdA.jpg" alt="enter image description here"></a></p>
<p>Let $AB$ is rotating at $\omega_{AB}=4$ rad/s. Find $\omega_{CD}$ when $\theta=\pi/6$.</p>
<p>So the first thing I did was wrote an express for $CD$ call it $r$. $\phi$ is Angle $CAB$ for reference.</p>
<p>By law of sines I have that $r=\dfrac{0.3\sin \phi}{\sin \theta}$</p>
<p>Since $\Delta ABC $ is a right triangle, $r=0.6\cos \theta$ Taking derivative, and equating to each other I find that $\omega_{CD}$ is $\dfrac{0.3\cos \phi\cdot \omega_{AB}}{r\cos \theta - 0.6(\sin \theta)^2}$</p>
<p>For some reason this isn't the answer. Did I use the wrong relationship?</p>
| 0non-cybersec
| Stackexchange |
Learning recursion schemes in Haskell by TicTacToe. <p>Looking around, I noticed that recursion schemes are quite a general concept and I wanted to learn by experiencing it first hand. So I started implementing a minimax algorithm for TicTacToe. Here is a small snippet that sets the stage. Feel free to skip it, since it's just a basic implementation for completeness or read in an <a href="https://ideone.com/4QxrQz" rel="nofollow noreferrer">online IDE</a></p>
<pre class="lang-hs prettyprint-override"><code>{-# LANGUAGE DeriveFunctor #-}
import Data.Maybe
import Data.Sequence hiding (zip, filter, length)
import Data.Foldable
import Data.Monoid
import Control.Arrow
data Player = Cross | Nought deriving (Eq, Show)
type Cell = Maybe Player
data Board = Board { getPlayer :: Player, getCells :: Seq Cell }
type Move = Int
(!?) :: Seq a -> Move -> a
s !? m = index s m
showCell :: Cell -> String
showCell Nothing = " "
showCell (Just Cross) = "x"
showCell (Just Nought) = "o"
instance Show Board where
show (Board p cells) = "+---+---+---+\n"
++ "| " ++ showCell (cells !? 0)
++ " | " ++ showCell (cells !? 1)
++ " | " ++ showCell (cells !? 2) ++ " |\n"
++ "+---+---+---+\n"
++ "| " ++ showCell (cells !? 3)
++ " | " ++ showCell (cells !? 4)
++ " | " ++ showCell (cells !? 5) ++ " |\n"
++ "+---+---+---+\n"
++ "| " ++ showCell (cells !? 6)
++ " | " ++ showCell (cells !? 7)
++ " | " ++ showCell (cells !? 8) ++ " |\n"
++ "+---+---+---+\n"
++ "It's " ++ show p ++ "'s turn\n"
other :: Player -> Player
other Cross = Nought
other Nought = Cross
-- decide on a winner. The first found winner is taken, no matter if more exist
decide :: Board -> Maybe Player
decide (Board p cells) = getAlt $
isWinner 0 1 2 <> isWinner 3 4 5 <> isWinner 6 7 8 <>
isWinner 0 3 6 <> isWinner 1 4 7 <> isWinner 2 5 8 <>
isWinner 0 4 8 <> isWinner 2 4 6 where
sameAs :: Cell -> Cell -> Cell
sameAs (Just Cross) (Just Cross) = Just Cross
sameAs (Just Nought) (Just Nought) = Just Nought
sameAs _ _ = Nothing
isWinner a b c = Alt $ (cells !? a) `sameAs` (cells !? b) `sameAs` (cells !? c)
initialState :: Board
initialState = (Board Cross (fromList $ map (const Nothing) [0..8]))
findMoves :: Board -> [Move]
findMoves (Board p cells) = map fst $ filter (isNothing . snd) $ zip [0..] $ toList cells
applyMove :: Board -> Move -> Board
applyMove (Board player cells) move = Board (other player) (update move (Just player) cells)
data MinimaxRating = Loss | Draw | Win deriving (Eq, Ord, Show)
invertRating Win = Loss
invertRating Draw = Draw
invertRating Loss = Win
</code></pre>
<p>Now, for the fun parts. I've come up with the following type to define my game tree:</p>
<pre class="lang-hs prettyprint-override"><code>-- a game tree is a tree with a current board
-- and a list of next boards tagged with moves
data GameTreeF b m f = Tree b [(m, f)]
deriving (Functor)
type GameTree b m = Fix (GameTreeF b m)
</code></pre>
<p>and, easily enough, we can use an anamorphism to represent expanding a game by all legal moves</p>
<pre class="lang-hs prettyprint-override"><code>fullGameTree :: Board -> GameTree Board Move
fullGameTree = ana phi where
phi board = Tree board $ map (id &&& applyMove board) (findMoves board)
</code></pre>
<p>and the minimax algorithm is represented as a catamorphism which we can write like so</p>
<pre class="lang-hs prettyprint-override"><code>-- given a game tree to explore, finds the best rating and a
-- move sequence that results in it
minimax :: GameTree Board Move -> (MinimaxRating, [Move])
minimax = cata phi where
mergeInMove (m, (r, ms)) = (invertRating r, m:ms)
compareMoves (m, ms) (n, ns) = compare m n <> compare (length ns) (length ms)
phi (Tree board []) = (Draw, []) -- no legal moves is a draw
phi (Tree board moves) = case decide board of
Just winner | winner == getPlayer board -> (Win, []) -- we win
Just winner -> (Loss, []) -- they win
Nothing -> maximumBy compareMoves $ map mergeInMove moves
</code></pre>
<p>For my question: I now want to construct a <code>GameTree</code> that has tagged at each node the minimax result. So what I'm searching for, I believe is this function:</p>
<pre><code>-- tag each node with the result of minimax for its subtree
computeKITree :: GameTree Board Move -> GameTree (Board, MinimaxRating, [Move]) Move
</code></pre>
<p>I just can't figure out how to write this function with recursion schemes. Can someone help me out here?</p>
| 0non-cybersec
| Stackexchange |
Waiting for a sign?. | 0non-cybersec
| Reddit |
How Safe Are Encrypted Websites Really?. <p>I was at a coffee shop and had to (I mean had to) check something on my bank account and another account. I figured since the two websites I was viewing were encrypted, and because my computer (I'm on a Mac) has a firewall, and I don't share through a cloud or such, that my information is safe. Google is encrypted from the moment that you search, and I connected to the actual wifi of the coffee shop (I had to accept their terms in order to do so). </p>
<p>So I was using HTTPS the entire time. I contacted the bank tech support and they confirmed that their whole website is completely encrypted. Same with the other account. Was I safe? There was a person nearby who looked as if he was doing something suspicious on his computer as far as hacking/networking.</p>
| 0non-cybersec
| Stackexchange |
Transpose of a linear operator is well-defined. <p>I would like to define the transpose of a linear operator $T$ between finite-dimensional vector spaces $V$ and $W$. Wikipedia gives a straightforward one, but I would like to define it based on what I already know about matrices. Thus, I define the transpose of $T$ to be given by choosing bases $B_1$ and $B_2$ of $W$ and $V$ respectively, and taking the transpose of $T$'s matrix with respect to these bases.</p>
<p>I would like to show that this definition is independent of basis choice, however. In other words, if the matrix chosen above is $A$, then if I changed basis from $B_1$ with change of basis matrix $Q$ and from $B_2$ with matrix $P$, that $QA^TP^{-1} = (PAQ^{-1})^T$. This does not seem to be the case, however. What have I done incorrectly, if anything?</p>
| 0non-cybersec
| Stackexchange |
CHIC, Nile Rodgers & Lady Gaga - I Want Your Love [Disco]. | 0non-cybersec
| Reddit |
He's cute but he likes to bite :(. | 0non-cybersec
| Reddit |
Should I try to start dating if depression makes me boring, but is caused by loneliness?. 23M, always had social anxiety, never dated normally, except one two-week thing a year ago that started because of unknown reason, lasted just enough for me to understand how lonely was I all my entire life and ended horribly. That, and couple of other reasons (like moving out my parents house, living in the middle of nowhere with almost no social interaction) was, probably, a cause of my current depression.
And depression caused some negative effect. Most of the time I feel only apathy, I sleep bad, I have absolutely no energy for anything when I return from my work. I became a lot less interesting - sometimes I read my messages from a year ago - I was a lot more interesting, funnier, wittier, remembered a lot of interesting stuff that I can't remember now, was a lot more passionate about stuff that I liked.
And I'm still extremely lonely.
So, I don't know, should I try something now. On one hand, loneliness is main reason for my depression (extroversion and social anxiety do not mix well, add here lack of any social interaction and a fact that now I understand how much I want affection), so maybe some changes will ease this condition. On another hand, I became boring and apathetic, unemotional - probably I have no chance of making a girl like me now
| 0non-cybersec
| Reddit |
Best Forever Alone Ever. | 0non-cybersec
| Reddit |
Can email be hosted on a different server than the website?. <p>While of course the answer in general is a resounding yes, this is my particular issue.</p>
<p>A person has a website "example.com" that is hosted unfortunately at hostgator. There email "@example.com" is hosted on that same server on hostgator which uses cpanel to manage the site and email.</p>
<p>The new website will be hosted on a separate robust and optimized DigitalOcean server. Normally, we would simply point the a record for example.com to point to the new server. The problem I see is that I imagine the email system would go down. Normally, if people use a third party service like Google Apps it's not a problem.</p>
<p>In this scenario however, is there anyway to point the website to the new server, but leave the email system intact on the previous server without having to have the 200+ people have to change any settings on their end? In the host gator DNS "example.com" and "webmail.example.com" and "mail.example.com" all point to the same ip. Theoretically, if I leave webmail and mail alone and just change "example.com" to point to the new server ip, the email should remain working exactly as before but with the website now be served at the new server? Or would the email stop working for reason? Any advice would be most helpful.</p>
| 0non-cybersec
| Stackexchange |
Tiger Woods speaks out on George Floyd death, urges peaceful protests.. | 0non-cybersec
| Reddit |
Recommendation Tuesdays Megathread - Week of July 02, 2019.
Need a recommendation or have one to share? This is your thread! This thread is active all week, so you can post in it when it's not Tuesday and still get an answer! :)
If you have a recommendation to share that's well written and longer than 1.5k characters, consider instead posting a [WT!] (Watch This!) thread.
If you'd like to look through the previous WT! threads to find recommendations or check if there is already one for your favourite show, [click here.](https://docs.google.com/spreadsheets/d/13JtLBsaUlkIYgokKV0CQo0naTL7TuVcTELturmAVRxo/edit#gid=0)
**Not sure how to ask for a recommendation?** Fill this out, or simply use it as a guideline, and other users will find it much easier to recommend you an anime!
*I'm looking for:* A certain genre? Something specific like characters travelling to another world? etc
*Shows I've already seen that are similar:*
*Link to my MAL (or other anime list):* Leave blank if you don't have one. | 0non-cybersec
| Reddit |
LPT: Storing cables with toilet paper rolls. **WARNING**: Several sound and other technicians in the comments claims that this might damage your cables. Read comments for instructions.
Imgur image: [http://i.imgur.com/kN2ITZq.jpg](http://i.imgur.com/kN2ITZq.jpg)
Found here: [http://www.reddit.com/r/funny/comments/1n4red/ahhh_the_life_of_a_bachelor_been_working_on_this/ccftzq7](http://www.reddit.com/r/funny/comments/1n4red/ahhh_the_life_of_a_bachelor_been_working_on_this/ccftzq7)
| 0non-cybersec
| Reddit |
Proof that operator is an isometry. <p>A linear operator $L$ between complex spaces with inner product $U$ and $V$ is an isometry, only if $\left < Lu_i, Lu_j \right > = \left < u_i, u_j \right >$ for all $u_j, u_i$ from a basis of $U$ (not necessary orthonormal).</p>
<p>I would like to see a proof of this statement.</p>
| 0non-cybersec
| Stackexchange |
Packaged to appear low profile. | 0non-cybersec
| Reddit |
global warming bitches. | 0non-cybersec
| Reddit |
Usain Bolt stops an interview in deference to the American national anthem for a medal ceremony. | 0non-cybersec
| Reddit |
Should MSVC's C4138 warning ("'*/' found outside of comment") be disabled?. <p>When compiling the following code with msvc2017</p>
<pre><code>void Foo::bar(A */*a*/)
</code></pre>
<p>I get this warning:</p>
<pre><code>foo.cpp:38: warning: C4138: '*/' found outside of comment
</code></pre>
<p>I can fix this by adding a space after the asterisk:</p>
<pre><code>void Foo::bar(A * /*a*/)
</code></pre>
<p>however, I would have to do this in a bunch of places, and if I ever uncomment the parameter, the coding style I use won't be followed due to the extra space.</p>
<p>Since I don't get the same warning with gcc or clang, I'm wondering if this is a MSVC-specific quirk that can safely be disabled.</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 |
Why can't I copy/paste or drag/drop into my virtual machine?. <p>I'm working on a project, and I'm using Ubuntu Studio 14.10 inside Virtual Box (4.3.22; which is the latest version AFAIK).</p>
<p>I'd like to copy some files from my host (Windows 8.1) to the virtual machine, but I can't seem to make it work.<br>
I've tried both "drag 'n' drop" and copy-paste, but neither work.</p>
<p>I have enabled both in the Virtual Box options:</p>
<p><img src="https://i.stack.imgur.com/Hsg8J.png" alt=""></p>
<p><img src="https://i.stack.imgur.com/kBoxr.png" alt=""></p>
<p><strong>Why aren't copy/paste and drag 'n' drop working, even though they're enabled?</strong></p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
When you walk into the teachers lounge. | 0non-cybersec
| Reddit |
Git Hook under Windows. <p>I have the following code to checkout in a working directory in the hook post-receive:</p>
<pre><code>#!/bin/sh
git --work-tree=d:/websites/__gitweb --git-dir=d:/_gitrepo.git/ checkout -f
</code></pre>
<p>Unfortunately it doesn't seem to work. However, the command does work when I enter just this in the windows command line (cms):</p>
<pre><code>git --work-tree=d:/websites/__gitweb --git-dir=d:/_gitrepo.git/ checkout -f
</code></pre>
<p>I have checked the permissions and the executing attributes but nothing.</p>
<p><strong>UPDATE:</strong></p>
<p>I think I'm getting closer. Now I know what the problem is but I don't know why is this happening. The hook is actually being triggered but I receive this message:</p>
<pre><code>remote: Starting copy from repository to work tree...
remote: fatal: Not a git repository: 'd:/_gitrepo.git/'
remote: Finished.
</code></pre>
<p>I have tried to change the path of d: to the whole network path but it still doesn't work. If I go to the remote repository and I do a git log, the changes are there and if I run the hook with sh, it works.
Why is it saying that it is not a git repository when clearly it is?</p>
| 0non-cybersec
| Stackexchange |
Equivalent of SQL 2005's SQLAgentOperatorRole (msdb ) in SQL 2000?. <p>Can anyone tell me what is the Equivalent of SQL 2005's SQLAgentOperatorRole (msdb ) in SQL 2000?
I want to grant a login ability to disable a job in SQL 2000.</p>
<p>Thanks in advance....</p>
| 0non-cybersec
| Stackexchange |
Trouble installing ncurses. <p>I've git cloned a program I need: <a href="https://github.com/dbdexter-dev/meteor_demod" rel="nofollow noreferrer">https://github.com/dbdexter-dev/meteor_demod</a></p>
<p>When I try to compile it with <code>make</code>, I get a <code>fatal error: ncurses.h: No such file or catalog</code></p>
<p>So I tried <code>sudo apt install ncurses</code>, but then I get <code>Couldn't find package ncurses</code>.</p>
<p>So i <code>git clone https://github.com/millionbonus/ncurses.git</code>, but when I <code>make</code>, it says <code>no makefile found</code>.</p>
<p>I've run out of ideas. Any help, please? :-)</p>
| 0non-cybersec
| Stackexchange |
Man does T-1000 impression for my dashcam [UK]. | 0non-cybersec
| Reddit |
How can I avoid hardcoding the database connection password?. <p>I am working on a school-project (writing a website) and I ran into the problem of providing the password for the connection to our database. Because of our Open-Source license we have to publish the sourcecode but that would mean that everyone could connect to the database and see tha data.</p>
<p>Currently our connection (a php file) looks like this:</p>
<pre><code>$host="************";
$password="************";
$this->conn = new mysqli($host, $user, $password, $dbname).mysqli_connect_error());
</code></pre>
<p>Now my question is: how can i provide the password to connect to the database without needing to write <code>$password=...</code> ?</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 |
Which islands from the The Cyclades should be on my Greek itinerary? Why?. | 0non-cybersec
| Reddit |
After installing wine with a .pkg, I get the error wine: command not found when running from the terminal but the app works fine. <p>I have installed wine through a .pkg from <a href="https://dl.winehq.org/wine-builds/macosx/download.html" rel="nofollow noreferrer">here</a>. <code>Wine Stable.app</code> works fine, but when I run any wine-related command from the terminal, I get <code>command not found</code>.</p>
| 0non-cybersec
| Stackexchange |
Patriots announce DT Tommy Kelly is done for the season. | 0non-cybersec
| Reddit |
After 16 years of thinking my pokedex was stolen, I found it and got it signed by Veronica Taylor!. | 0non-cybersec
| Reddit |
everyone's pokemon tattoos are so awesome! i wanted to share mine too... done by sabstars @ tokyotattoo birmingham uk. | 0non-cybersec
| Reddit |
Stochastic integral with respect to a stochastic integral. <p>[From Bass R.F. Stochastic processes. Exercise 10.4]</p>
<p>Let $N_t = \int_0^tH_sdM_s$ where $M$ is a continuous square integrable martingale and H is predictable and integrable and $L_t = \int_0^tK_sdN_s$ where $K$ is predictable and integrable. Show that</p>
<p>$$
L_t = \int_0^tH_sK_sdM_s
$$</p>
<p>As $N_t = \int_0^tH_SdM_s$, differentiating we get:
$$
dN_t = H_SdM_s
$$
and substituting into $L_t$ we get the required result.</p>
<p>Here I feel as if I am abusing mathematical notation and fear I might go to hell for it - is there another way of about it?
Thanks. </p>
| 0non-cybersec
| Stackexchange |
Cannot open files from iCloud drive on Mac but they open on iOS devices. <p>I only use iCloud Drive for files I need to access on my Mac and my iPad. I have a few Keynote presentations that open fine on my iPad and iPhone, but when I try ot open them on my Mac, I get an error saying that the file could not be opened. The error is the same for MindNode files as well. </p>
<p>The error message simply says that it "Cannot open" the file. There is nothing else in the message.</p>
<p>I tried to logout and log back into my iCloud account, but that did not work.</p>
<p>Any suggestions how I can access these files on my Mac again?</p>
| 0non-cybersec
| Stackexchange |
Why is my overflow dropdown menu on top of the actionbar?. <p><img src="https://i.stack.imgur.com/eHU3w.png" alt="dropdown list on top of actionbar"></p>
<p>By default isn't it supposed to be under the actionbar? So what am I doing wrong?</p>
<pre><code>@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
</code></pre>
<p>res/menu/main.xml</p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.example.test.MainActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never"/>
</menu>
</code></pre>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Todd Akin Gets Fresh National Republican Funding For Advertising. | 0non-cybersec
| Reddit |
Why is traffic matching the public zone instead of the desired zone?. <p>Trying to self-train on <code>firewalld</code> I set up apache and configured the zones as follows:</p>
<pre><code>[root@localhost ~]# firewall-cmd --get-active-zones
work
sources: 192.168.122.1
public
interfaces: ens3
[root@localhost ~]# firewall-cmd --zone=work --list-all
work
interfaces:
sources: 192.168.122.1
services: dhcpv6-client ipp-client ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@localhost ~]# firewall-cmd --zone=public --list-all
public (default, active)
interfaces: ens3
sources:
services: dhcpv6-client http https ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
</code></pre>
<p>My expected result is that traffic from the hypervisor would match the "work" zone and since http isn't allowed for that zone for it to be dropped. However I'm still able to get to the web page from there: </p>
<p><img src="https://i.stack.imgur.com/0dBPR.gif" alt="enter image description here"></p>
<p>I know the traffic is matching the "public" zone because removing the "http" and "https" services causes web traffic to stop and adding them back to the public zone restores service while making the same modifications on the "work" zone does nothing.</p>
<p>I'm sure it's a failure of my understanding but I can't spot it.</p>
<h3>Update</h3>
<p>Still having this issue. If I remove the interface from <code>public</code> and add it to <code>work</code> it starts to work but that's likely because all <code>ens3</code> traffic will be going to that zone now. I did a <code>iptable -Z</code> to zero out the packet counts and did verify that the chains associated with the <code>public</code> zone are getting the packets.</p>
<p>Interestingly, if I do the <code>--add-source</code> so that it adds the traffic to the <code>drop</code> or <code>block</code> zones it works how I would expect (traffic is dropped/rejected regardless of what services are configured on the <code>public</code> zone).</p>
<p>Here's the output from netstat on the server running the firewall:</p>
<pre><code>[root@localhost ~]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.122.1 0.0.0.0 UG 0 0 0 ens3
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 ens3
</code></pre>
| 0non-cybersec
| Stackexchange |
IS FAT12 somewhat the same thing with reiserfs, xfs?. <p>I just partitioned my hard disk, and made the sdb6, sdb7.</p>
<p>next, I installed file systems, reiserfs, on sdb6
and ,xfs, on sdb7.</p>
<p>after that, I viewed my hard disk information using fdisk -l,
but found that sdb6, sdb7 have FAT12 systems.
is that something wrong? or IS FAT12 somewhat same with reiserfs, xfs ?</p>
<pre><code>Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe9ffe9ff
Device Boot Start End Blocks Id System
/dev/sda1 * 1 10199 81923436 7 HPFS/NTFS
/dev/sda2 10200 19457 74364885 f W95 Ext'd (LBA)
/dev/sda5 10200 19457 74364853+ 7 HPFS/NTFS
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf16cf16c
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 10199 81923436 7 HPFS/NTFS
/dev/sdb2 10200 19457 74364885 f W95 Ext'd (LBA)
/dev/sdb5 10200 19075 71296438+ 7 HPFS/NTFS
/dev/sdb6 19076 19267 1542208+ 1 FAT12
/dev/sdb7 19268 19457 1526143+ 1 FAT12
</code></pre>
| 0non-cybersec
| Stackexchange |
Update kernel on ARM device. <p>How can I update the kernel of my ARM device? The device I have been using is <code>A20-Olinuxino</code> <code>LIME</code> board, with<code>Debian GNU/Linux 7.6 (wheezy)</code> image booted from <code>NAND</code>.</p>
<p>The <code>uname -a</code> command displays <code>3.4.102</code>. I updated <code>Wheezy</code> to <code>Jessie</code> but after reboot the <code>uname -a</code> command still displays the old version of kernel (3.4.102). In <code>lib/modules</code> directory there are modules of the new version (3.16.0-4-armp) and in boot directory there are these files:</p>
<pre><code>config-3.16.0-4-armmp script.bin uImage initrd.img-3.16.0-4-armmp System.map-3.16.0-4-armmp vmlinuz-3.16.0-4-armmp
</code></pre>
<p>Why does <code>uname -a</code> not display the new version of Kernel? P.S. <code>cat /etc/debian_version</code> displays the new Debian version 8.4.</p>
| 0non-cybersec
| Stackexchange |
It really annoys me when people say that age is just a number. Age is clearly a word | 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 |
Please tell me I’m not the only one.... There are times where I crave getting out and backpacking/hiking. I am a city girl through and through, but I’ve recently started getting into backpacking. There times where life gets to be too much and I want to go into the woods and forget everything. Just push my body to its limits and shut my brain off. Am I the only one that gets this feeling? | 0non-cybersec
| Reddit |
Oh damn, they werent joking. | 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 |
Our flight was delayed. Needless to say, we set up shop pretty quick.. | 0non-cybersec
| Reddit |
RaspberryPi for a beer brewer. I'm doing the reddit Secret Santa and my match is big into brewing his own beer. Are there any cool Raspberry Pi projects that would benefit a home brewer? I thought I would send him the PI and then whatever articles or ideas you guys (and gals) contributed. I saw one that was a network temp controller; just wondering if there were other projects? If all else fails I saw my match had a big PC hooked to their TV maybe they could use the PI for a media controller.
Thanks everyone! | 0non-cybersec
| Reddit |
Printing doesn't print "o"'s - WTF?. So, I tried to print out a bill and everything is fine except there are no letter "o"'s. I tried to use the print dialog to save to PDF, and the PDF has no "o"'s as well. Why would this happen?
EDIT: Apparently it's only happening from this Verizon Wireless bill I'm trying to print. I need to use it as proof of my address to a bank. Arg.
EDIT 2: I don't need it anymore - but it was a strange problem. | 0non-cybersec
| Reddit |
Robbie Rivera & Paige - Dirty Little Things (JJ Mullor Deep Remix) [Juicy Music]. | 0non-cybersec
| Reddit |
There is no tracking information for the current branch. <p>I've been using github from a relatively short period, and I've always used the client to perform commits and pulls. I decided to try it from the git bash yesterday, and I successfully created a new repo and committed files.</p>
<p>Today I did changes to the repository from another computer, I've committed the changes and now I'm back home and performed a <code>git pull</code> to update my local version and I get this:</p>
<pre><code>There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream develop origin/<branch>
</code></pre>
<p>the only contributor to this repo is me and there are no branches (just a master). I'm on windows and I've performed the pull from git bash:</p>
<p><a href="https://i.stack.imgur.com/AeyH8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AeyH8.png" alt="enter image description here"></a></p>
<p>git status:</p>
<pre><code>$ git status
# On branch master
nothing to commit, working directory clean
</code></pre>
<p>git branch:</p>
<pre><code>$ git branch
* master
</code></pre>
<p>What am I doing wrong?</p>
| 0non-cybersec
| Stackexchange |
Whats the difference between an amateur thief and a professional thief?. An amateur thief says, "Give me all your money!"
A professional thief says, "Sign here please." | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.