text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
These signs for the bathroom.. | 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 |
Finally, some delicious memes. | 0non-cybersec
| Reddit |
Bungie, I would 100% be willing to buy Destiny 2 on PC if Cross-Save could be implemented. While I bought D2 on PS4 and love it, I would very much enjoy having the option to play at a nice 60fps on my PC as well. Unfortunately, the main thing holding me back from making the leap is all the 300+ hours I've already put into D2 across three different characters on PS4. I am not sure from a technical standpoint how difficult it would be but I would bet the main issue for this being a feature would be console exclusive content (such as on the PS4). I would hope there could be a way around this, such as locking out the exclusive strikes from being playable when playing on PC. Anyone else in the same boat? | 0non-cybersec
| Reddit |
The Vegans are getting out of hand. | 0non-cybersec
| Reddit |
Reverse engineering Logitech mice wireless protocol (nrf24 based). | 1cybersec
| Reddit |
How do I grant NETWORK SERVICE read permissions. <p>I'm currently learning ASP.NET and I'm running into difficulties integrating SQL Server into ASP.NET. I'm trying to grant NETWORK SERVICE read permission as follows:</p>
<p>4.NETWORK SERVICE must be granted Read permission to the top-level Visual Studio folder located in your user's Documents folder. The Visual Studio folder will have different names depending on the version: "Visual Studio 2005", "Visual Studio 2008", or "Visual Studio 2010".</p>
<p>5.NETWORK SERVICE must be granted both read and write permissions to your project's top-level project folder. For example if your WAP project is called "MyCustomWebProject", then the folder "Documents\Visual Studio 20xx\Projects\MyCustomWebProject" needs to have read and write access enabled for NETWORK SERVICE. Or, if your webiste project is called "MyCustomWebProject", then the folder "Documents\Visual Studio 20xx\Websites\MyCustomWebProject" needs to have read and write access enabled for NETWORK SERVICE.</p>
<p>6.NETWORK SERVICE must be granted both read and write permissions to the App_Data folder located within your web project's directory structure.</p>
<p>I've located the folders and accessed their properties but under security I do not have an entry for NETWORK SERVICE, how do I grant NETWORK SERVICE read and write permissions?</p>
| 0non-cybersec
| Stackexchange |
If it wasn't the cars, It would looks like a VR game. | 0non-cybersec
| Reddit |
Girlfriend can't feel sex? Suggestions?. Alright, throwaway account here.
My girlfriend and I have been having some bedroom-related issues for awhile. And after lurking around this subreddit for awhile, I thought I'd ask for some help.
Firstly, she's pretty shy in bed. Basically, I thought that I'd never given her an orgasm, but she informed me later that she had finished long before me almost every time we had sex. I didn't know this however, because she is always completely silent in bed. When asking her why she didn't say anything sooner, she just told me that she felt very shy. we also haven't ventured very far in terms of positions (Missionary, Cowgirl, Sitting up on Couch).
And for the last little while, she's told me that she now doesn't feel anything. Shes said that she feels the initial penetration, and it's good for about five seconds afterwards, and then nothing.
I've tried to talk to her, asking what I can do to make it better, what she thinks I'm doing wrong, and all that kind of stuff, and she simply responds with "I don't know"
There is the occasional time (1 in 10-15) that everything is good, and she orgasms, but obviously that is not a very good number. I want her to enjoy sex as much as I do. It's certainly not as nice when the only way I can finish her is with my hand or mouth (which she doesn't usually want afterwards because she's frustrated about not feeling anything)
Needless to say, it's getting frustrating for the both of us. She still wants me, all the time for some reason. Though I love that, I'm finding myself not looking forward to sex nearly as much anymore, because if it doesn't go well, she seems angry at me, and I kind of get the cold shoulder for the rest of the night, and sometimes next morning (which I believe is absolutely unfair)
Any tips, suggestions, or what people who may have been in similar situations did to overcome it would be greatly appreciated. Thanks!
tl: dr- girlfriend can't feel sex anymore, shy and doesn't know what to say about it, frustrated, need advice.
Then all of a sudden, | 0non-cybersec
| Reddit |
PDFs go black & white when opened in Photoshop CC 2015.5. <p>I have noticed that very often when I open a PDF file in Photoshop, the image becomes black & white. </p>
<p>I am assuming this is somewhere in my settings; however, I don't know Photoshop well enough to know what to look for. Also, it doesn't happen with every document, but it does with most. </p>
| 0non-cybersec
| Stackexchange |
virtualization platform: Ubuntu + KVM/Xen. <p>performance and feature set offered by the latest Ubuntu 11.04?</p>
<p>while it works best as virtual workstation with direct attached storage, what is the tool-stack offered for server virtualization management: VM, network and storage provisioning?</p>
<p>want to be using the latest Linux Kernel and Filesystems: EXT4, XFS which are not offered by
XenCloud Platform</p>
<p>thanks in advance for sharing your experiences/advice</p>
| 0non-cybersec
| Stackexchange |
Evaluate $I=\int_{0}^{\infty}\frac{(x^2+x+1)dx}{(x^3+x+1)\sqrt{x}}$. <p>Evaluate <span class="math-container">$$I=\int_{0}^{\infty}\frac{(x^2+x+1)dx}{(x^3+x+1)\sqrt{x}}$$</span></p>
<p>My try:</p>
<p>Letting <span class="math-container">$\sqrt{x}=t$</span> we get</p>
<p><span class="math-container">$$I=2\int_{0}^{\infty} \frac{t^4+t^2+1}{(t^6+t^2+1)}\,dt$$</span></p>
<p>Now</p>
<p><span class="math-container">$$t^4+t^2+1=(t^2+1)^2-(t^2+1)+1$$</span></p>
<p><span class="math-container">$$t^6+t^2+1=(t^2+1)^3-2(t^2+1)^2+(t^2+1)+1$$</span></p>
<p>Any clue then?</p>
| 0non-cybersec
| Stackexchange |
Southwestern Stuffed Bell Peppers. | 0non-cybersec
| Reddit |
Benefit getting it together and putting all removeable items in their boxes- no more pans glued to cardboard!. | 0non-cybersec
| Reddit |
Thinking about upgrading from the iPhone 5 to a iPhone 6. Would like some advice.. Recently, my iPhone 5's (not 5s) camera went out and I mainly use the camera along with a few other apps. As far as upgrading, I have to buy **off contract** since Im still grandfathered into the *Unlimited Plan* at **Verizon**.
I've been looking at the iPhone 6 and the pricing and it is quite expensive so I want to know the best way of going about the upgrade to a new phone.
I've looked at **Amazon, Ebay, and Gazelle** so far and all the prices vary.
**1.)** Do I need to buy an Unlocked iPhone 6 to be off contract?
**2.)** Where is the best place to get an iPhone for the best price? (*Not going the craigslist route*)
**3.)** Should I buy certified used if I go through Gazelle?
**4.)** Should I wait till the iPhone 6s?
**5.)** Maybe I should just repair the iPhone 5 camera?
Any input is greatly accepted!! | 0non-cybersec
| Reddit |
Lotus Domino 8.5.3 FP6 ignoring archive policy. <p>We are using Domino 8.5.3 FP6. (64bit) on Win-2008 R2 64bit.</p>
<p>We have a policy to archive emails older then 365 days into archive folder (for all users).
2 years back, our server crashed dueto hardware failure. we acquired new hardware and restored the email DB's and settings from backup. all went fine.</p>
<p>After that we noticed that archive policy which run weekly and moves mails older then 365 days is moving many recent random emails like last days, week,month to the 'Older than 365days Archive' folder so I disabled archiving. </p>
<p>Today i found out that it happens with old accounts only, And Accounts which were created after that crash are working ok there archive is ok.</p>
<p>I have executed fixup -f -j , tried replacing the Mailfile template, Running an Updall -RX and a Compact -C. but no use.</p>
<p>my server is still bleeding with this bloody issue from past 2 years till date. most users inbox have crossed 15-20 Gb and above.</p>
<p>When ever i try to run the archive, it does not select only 365 days old. it selects random emails like one week, one month, few months also and move them to archive which creates confusion when users try to search recent email.</p>
<p>its getting very frustrating for me </p>
| 0non-cybersec
| Stackexchange |
Java JMS Messaging. <p>I have a working example of sending message to server and server receiving it via qpid messaging. Here is simple hello world to send to server :</p>
<p><a href="http://pastebin.com/M7mSECJn" rel="noreferrer">http://pastebin.com/M7mSECJn</a></p>
<p>And here is server which receives requests and sends response(the current client doesn't receive response) :</p>
<p><a href="http://pastebin.com/2mEeuzrV" rel="noreferrer">http://pastebin.com/2mEeuzrV</a></p>
<p>Here is my property file :</p>
<p><a href="http://pastebin.com/TLEFdpXG" rel="noreferrer">http://pastebin.com/TLEFdpXG</a></p>
<p>They all work perfectly, I can see the messages in the qpid queue via Qpid JMX management console. These examples are downloaded from <a href="https://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example" rel="noreferrer">https://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example</a> (someone may need it also).</p>
<p>I've done Jboss messaging using spring before, but I can't manage to do the same with qpid. With jboss inside applicationsContext I had beans jndiTemplate, conectionFactory, destinationQueue, and jmscontainer like this :</p>
<pre><code><!-- Queue configuration -->
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
<prop key="java.naming.provider.url">jnp://localhost:1099</prop>
<prop key="java.naming.factory.url.pkgs">org.jboss.naming:org.jnp.interfaces</prop>
<prop key="java.naming.security.principal">admin</prop>
<prop key="java.naming.security.credentials">admin</prop>
</props>
</property>
</bean>
<bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate" />
<property name="jndiName" value="ConnectionFactory" />
</bean>
<bean id="queueDestination" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="jndiTemplate" />
<property name="jndiName">
<value>queue/testQueue</value>
</property>
</bean>
<bean id="jmsContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="queueDestination" />
<property name="messageListener" ref="listener" />
</bean>
</code></pre>
<p>and of course sender and listener :</p>
<pre><code> <bean id="sender" class="com.practice.Sender">
<property name="connectionFactory" ref="connectionFactory" />
<property name="queueDestination" ref="queueDestination" />
</bean>
<bean id="listener" class="com.practice.MsgListener" />
</code></pre>
<p>Now I'd like to rewrite this qpid example using spring context logic. Can anyone help me?</p>
| 0non-cybersec
| Stackexchange |
How to check if hot-swap or hot-plug are activated on my Linux machine. <p>I have Ubuntu 12.04.1 LTS 64-bit on a PowerEdge 2900. My current setup has two 300GB disks (no RAID), but I want migrate the system to three new 600GB disks. I'm trying to connect the new disks, make a RAID5 array, and copy my partitions to the new RAID, but i'm not sure if the server has hot-plug support or, in particular, if it's activated.</p>
<p>Looking at the system I get:</p>
<pre><code>admin@host:~$ lsscsi -v
[4:0:0:0] disk HITACHI HUS151414VLS300 A48B /dev/sda
dir: /sys/bus/scsi/devices/4:0:0:0 [/sys/devices/pci0000:00/0000:00:05.0/0000:01:00.0/0000:02:08.0/host4/port-4:0/end_device-4:0/target4:0:0/4:0:0:0]
[4:0:1:0] disk HITACHI HUS151414VLS300 A48B /dev/sdb
dir: /sys/bus/scsi/devices/4:0:1:0 [/sys/devices/pci0000:00/0000:00:05.0/0000:01:00.0/0000:02:08.0/host4/port-4:1/end_device-4:1/target4:0:1/4:0:1:0]
admin@host:~$ lspci | grep '02:08.0'
02:08.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS (rev 01)
</code></pre>
<p><a href="http://www.lsi.com/products/storagecomponents/Pages/LSISAS1068.aspx" rel="nofollow">LSI SAS 1068</a> has hot-swap support according to the description, but I'm not sure, and I can't power-off the system for migration or check in bios. I'm afraid to just connect a disk in case it damages the controller or the disk itself, so I need a way to check if hot-plug/hot-swap is activated in the system.</p>
| 0non-cybersec
| Stackexchange |
Fool me once, shame on you; fool me twice, shame on me. Phantom Menace returns to theaters Feb 2012.. | 0non-cybersec
| Reddit |
Analyticity of one-dimensional PDE solutions with respect to the space variable. <p>Let $n>1$ and $u$ be a solution of a linear PDE with constant coefficients
$$
u_t-\sum_{k=0}^n a_k \partial_x^k u=0,\quad a_k\in \mathbb C,\quad a_n\ne0,
$$
in some neighborhood of a point $(x_0,t_0)$ on a plane. Is it true that the function $u(x,t_0)$ is analytic in some neighborhood of $x_0$?</p>
<p>In some special cases, such as the heat equation it follows from results of Petrovskii, namely that solutions of homogeneous parabolic equations with analytic coefficients are analytic with respect to space variables. But in the general case I'm unable to find a reference.</p>
| 0non-cybersec
| Stackexchange |
How do the steady states change as we change the parameter?. <blockquote>
<p>Consider the following ODE
<span class="math-container">$$
\frac{dx}{dt} = x \left(1-\frac{x}{m} - \frac{a}{1+x}\right),
$$</span>
where <span class="math-container">$a$</span> is a bifurcation parameter and <span class="math-container">$a\in(0,\infty)$</span> a positive constant.
How do you find the steady states as <span class="math-container">$a$</span> varies?
And what are the bifurcation points?
I know that <span class="math-container">$\frac{dx}{dt} = 0$</span>, however how do you move on from there? </p>
</blockquote>
<p>Also what is conufusing is the <span class="math-container">$m$</span>. It is a fixed parameter. However, how do you find the steady states if you have one parameter that varies and the other one fixed?</p>
<p>EDIT:
This is what I got after the reading the answer below. The steady points are <span class="math-container">$x=0$</span> and
<span class="math-container">$$
x = \frac{-(m-1)\pm \sqrt{(m-1)^2+4m(1-a)}}{2}
$$</span>
where <span class="math-container">$m>0$</span>. Now my question is how do you determine the stability of such a complicated root? You get distinct roots when <span class="math-container">$0< a\leq1$</span>. However as soon as <span class="math-container">$a>1$</span> I am not sure if I get a complex root or a distinct root because of the parameter <span class="math-container">$m$</span>. </p>
<p>Moreover,how do you determine their stability? Lastly,what are their bifurcation points?</p>
<p>NOTE: This a dimensionless biological system.</p>
| 0non-cybersec
| Stackexchange |
I would consider this a nononono yes. You know, because he didn't get killed.. | 0non-cybersec
| Reddit |
Making a mac network user administrator. <p>I am attempting to setup an open directory authentication system for a small iMac laboratory. </p>
<p>The open directory authenticates network users properly and allows a login on the Mac system although the only way to make a network user an administrator is to select the account via System Preferences and check the "Allow user to administer this Mac" checkbox.</p>
<p>Is there an easier implementation that allows a user/group on the open directory to administer all of the macs connected to the directory?</p>
| 0non-cybersec
| Stackexchange |
Today is Wes Anderson's birthday. Which of his films is your favorite?. Director Wes Anderson turns [47](https://en.m.wikipedia.org/wiki/Wes_Anderson) today. How would you rate his filmography? Which is your favorite? Least favorite?
Personally, Rushmore, Grand Budapest Hotel and The Life Aquatic are my favorites of his work. | 0non-cybersec
| Reddit |
Identify local maximum/minimum from contour map. <p><a href="https://i.stack.imgur.com/DZBGq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DZBGq.png" alt="contour map"></a></p>
<p>function f = green level curves,
constraint g = pink curve</p>
<p>I'm supposed to identify what point A and B are in the function f. The options are (a) local max (b) local min (c) neither.</p>
<p>For A, I think it is a local minimum.
For B, I think it is neither. </p>
<p>Can someone tell me if I'm wrong or right? If wrong, why? Thank you. </p>
| 0non-cybersec
| Stackexchange |
Patty Thrills with the dagger vs. Golden State - NBATV. | 0non-cybersec
| Reddit |
Can I install `libssl-dev:i386` on x86_64 system without losing important packages?. <p>On my x86_64 12.10 system, when I try to </p>
<pre><code>apt-get install libssl-dev:i386
</code></pre>
<p>apt wants to remove a bunch of things:</p>
<pre><code>The following packages will be REMOVED:
build-essential dkms g++ g++-multilib gcc gcc-multilib hardening-wrapper nvidia-current
The following NEW packages will be installed:
libc6-dev:i386 libssl-dev:i386 linux-libc-dev:i386 zlib1g-dev:i386
</code></pre>
<p>Why does this happen? How can I install <code>libssl-dev:i386</code> without losing gcc?</p>
<p>I noticed that <code>libssl-dev</code> and <code>libssl-dev:i386</code> have no "Multiarch" field reported by <code>apt-cache show</code>, which I think means they cannot coexist. ( <a href="https://wiki.ubuntu.com/MultiarchSpec" rel="noreferrer">https://wiki.ubuntu.com/MultiarchSpec</a> )</p>
| 0non-cybersec
| Stackexchange |
php jpeg support. <p>I have complied php with the below options</p>
<pre><code>'./configure' '--with-config-file-path=/opt/apache/php/etc' '--with-config-file-scan-dir=/opt/apache/php/etc/php.d' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-shmop' '--enable-soap' '--enable-bcmath' '--disable-debug' '--enable-ftp' '--with-curl=/usr/include' '--with-regex=system' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstring' '--enable-wddx=shared' '--enable-xml' '--with-gd' '--with-gettext' '--with-mysql' '--with-zlib-dir=/usr/local/lib' '--enable-mbstring' '--prefix=/opt/apache/php' '--with-apxs2=/opt/apache/bin/apxs' '--with-zlib' '--with-openssl' '--with-freetype-dir=/usr/include/freetype2/freetype--with-jpeg-dir=/usr/lib/'
</code></pre>
<p>but I have no jpeg support.</p>
<p>Am I missing something?</p>
<p>libjpeg and libjpeg-devel are installed </p>
<p>Thanks</p>
| 0non-cybersec
| Stackexchange |
How to add superscript on summation symbol. <p>I'd like to add superscript on summation symbol, but I get an error message: </p>
<blockquote>
<pre><code>Please, use `\mathaccent` for accents in math mode.
I can't use ^ symbol to add superscript.
</code></pre>
</blockquote>
<p>Here is the code:</p>
<pre><code>\begin{equation}
y & = \beta_{0}+\sumˆ{2}_{j=1}\beta_{j}X_{j}+\sum\sum_{i<j}\beta_{ij}X_{i}X{j}+\sum_{j=1}\beta_{jj}X_{j}\textsuperscript{2}
\label{equation1}
\end{equation}
</code></pre>
| 0non-cybersec
| Stackexchange |
Decomposed Guitar with Mount in De Stijl, Mixed Media Sculpture, 5’x5’. | 0non-cybersec
| Reddit |
How do you restore a corrupted object in a git repository (for newbies)?. <p>I tried to open my repository today and it came up with no commit history. Everything I tried (git status, git log, git checkout...) threw an error about a corrupt object.</p>
<p>I researched this problem online and found the <a href="http://www.kernel.org/pub/software/scm/git/docs/howto/recover-corrupted-blob-object.txt" rel="noreferrer">article</a> by Linus Torvalds, but got lost at the point where he found the broken link ID: none of my file IDs, tree or blob, match the culprit ID thrown by the error message.</p>
<p>I then returned to the article on recovering <a href="https://stackoverflow.com/questions/801577/how-to-recover-git-objects-damaged-by-hard-disk-failure">"git objects damaged by hard disk failure"</a> and (after moving the culprit object out of the way) worked my way through until </p>
<pre><code>$ cat packed-refs
</code></pre>
<p>at which point my computer said: <code>cat: packed-refs: No such file or directory</code>
I skipped that step and did the</p>
<pre><code>$ git fsck --full
</code></pre>
<p>and got the appropriate output, but then I was supposed to copy the culprit (or what I was referring to as the culprit, the sha1 ID thrown by the error) from a backup repository back into the main repository, then copy the missing objects from the backup repository into the main repository, as far as I can tell; and I don't want to do anything <em>too</em> drastic or I might force something I can't unforce later.</p>
<p>So my question(s) is (are), was I supposed to have made a backup (<em>ooh, newbie alert</em>), or was that what happened when I unpacked the .pack file? And is the "culprit" I'm copying back actually a clean file, i.e. not corrupted?</p>
<p>(I think it only fair to tell you that I was initially confused by a simple dash in Torvalds' file between the "git" and "fsck." So I'm <em>REALLY</em> new at this.)</p>
<h2>BUG-LIST</h2>
<h3>Original bug:</h3>
<pre><code>$ git status
fatal: object 016660b7605cfc2da85f631bbe809f7cb7962608 is corrupted
</code></pre>
<h3>Bug after moving corrupt object:</h3>
<pre><code>$ git status
fatal: bad object HEAD
$ git fsck --full
error: HEAD: invalid sha1 pointer 016660b7605cfc2da85f631bbe809f7cb7962608
error: refs/heads/RPG does not point to a valid object!
dangling tree 2c1033501b82e301d47dbf53ba0a199003af25a8
dangling blob 531aca5783033131441ac7e132789cfcad82d06d
dangling blob 74a47ff40a8c5149a8701c2f4b29bba408fa36f5
dangling blob b8df4d9751c0518c3560e650b21a182ea6d7bd5e
dangling blob fc2d15aead4bd0c197604a9f9822d265bb986d8b
$ git ls-tree 2c1033501b82e301d47dbf53ba0a199003af25a8
040000 tree 4a8b0b3747450085b1cd920c22ec82c18d9311bd folder1
040000 tree 33298295f646e8b378299191ce20b4594f5eb625 folder2
040000 tree dec82bad6283fc7fcc869c20fdea9f8588a2f1b2 folder3
040000 tree 4544967c6b04190f4c95b516ba8a86cab266a872 folder4
$ git ls-tree dec82bad6283fc7fcc869c20fdea9f8588a2f1b2
100644 blob 67bda6df733f6cd76fc0fc4c8a6132d8015591d8 fileA
100644 blob 4cb7272c9e268bfbd83a04e568d7edd87f78589c fileB
100644 blob ce9e0f2cc4d3b656fa30340afbdfed47fe35f3ef fileC
$ git ls-tree 4544967c6b04190f4c95b516ba8a86cab266a872
100644 blob d64fe3add8328d81b1f31c9dbd528956ab391fb6 fileD
100644 blob d1ebd7df7082abc5190d87caa821bf3edb7b68e8 fileE
100644 blob bb6cd264e47a3e5bc7beadf35ea13bac86024b02 ...
100644 blob 995d622b9012f4ef69921091d1e1a73f32aa94e6
100644 blob 9141dbd2b1c7931a6461195934b6599f5dfb485a
100644 blob ab128da1d82907cd0568448dc089a7996d5f79d3
100644 blob 57b11a7eb408a79739d2bb60a0dc35c591340d18
100644 blob 118105291c1c6ca4a01744889ffafbb018bc7ed3
100644 blob 86b1dfda56d0603f16910228327751f869d16bdc
100644 blob 077fe0cddde0d0be9d0974f928f66815caca7b76
100644 blob c0b32fd0450f21994bdc53ea83d3cf0bccd74004
100644 blob 37b87a4d11453468c4ae04572db5d322cd2d1d80
100644 blob 79d39f8d4e57fa3a71664598a63b6dfd88149638
100644 blob ee07bbe3e8cb5d6bb79fb0cd52cfbc9bd830498d files
$ git ls-tree 33298295f646e8b378299191ce20b4594f5eb625
100644 blob f9d6f45cd028aec97f761f00c5f4f2f6b50fb925 MoreFiles
100644 blob 0cb9eed1d0dd9214d54a03af1bda21f37b8c0d02
100644 blob 198e4f97ece735cce47b7e99b54f1b5fa99fabf5
100644 blob fc004212fa8e483e5a8ab35b508027c7a9a1cbfa
100644 blob 0c7d74c7a9a8337b4a9f20802b63d71d42287f89
$ git ls-tree 4a8b0b3747450085b1cd920c22ec82c18d9311bd
100644 blob 0320f5b23dd7cce677fac60b9ad03f418cff5c88 oneLASTfile
</code></pre>
<h3>After moving the corrupted object back:</h3>
<pre><code>$ git log --raw --all
fatal: object 016660b7605cfc2da85f631bbe809f7cb7962608 is corrupted
$ cat packed-refs
cat: packed-refs: No such file or directory
$ git fsck --full
fatal: object 016660b7605cfc2da85f631bbe809f7cb7962608 is corrupted
</code></pre>
<h3>After moving the file back out:</h3>
<pre><code>$ git fsck --full`
error: HEAD: invalid sha1 pointer 016660b7605cfc2da85f631bbe809f7cb7962608
error: refs/heads/RPG does not point to a valid object!
dangling tree 2c1033501b82e301d47dbf53ba0a199003af25a8
dangling blob 531aca5783033131441ac7e132789cfcad82d06d
dangling blob 74a47ff40a8c5149a8701c2f4b29bba408fa36f5
dangling blob b8df4d9751c0518c3560e650b21a182ea6d7bd5e
dangling blob fc2d15aead4bd0c197604a9f9822d265bb986d8b
</code></pre>
<h3>After unpacking the .pack file:</h3>
<pre><code>$ git log
fatal: bad object HEAD
$ cat packed-refs
cat: packed-refs: No such file or directory
$ git fsck --full
error: HEAD: invalid sha1 pointer 016660b7605cfc2da85f631bbe809f7cb7962608
error: refs/heads/RPG does not point to a valid object!
dangling tree 2c1033501b82e301d47dbf53ba0a199003af25a8
dangling blob 531aca5783033131441ac7e132789cfcad82d06d
dangling blob 74a47ff40a8c5149a8701c2f4b29bba408fa36f5
dangling blob b8df4d9751c0518c3560e650b21a182ea6d7bd5e
dangling blob fc2d15aead4bd0c197604a9f9822d265bb986d8b
</code></pre>
| 0non-cybersec
| Stackexchange |
2014 has been a great year! Hooray for sound finances!. | 0non-cybersec
| Reddit |
How many of you are also considering/planning on just hitting the road indefinitely, or are already doing so?. About a month ago I made the decision that when my lease is up in June, I'm simply going to hit the road, and if I can help it, never set foot in a cubicle again. I'm planning to start with Mexico, Central America and South America and see what happens from there.
Since I made that decision I'm noticing threads like [this](http://www.reddit.com/r/backpacking/comments/ljhkv/quitting_job_backpacking_americas_indefinitely/) and blogs like [this](http://hitchtheworld.com/) where people have either been doing so for a few years or are planning on doing the same thing.
I have a hunch that more people may be doing this or are planning to. So, if indefinite backpacking may be on your agenda, or if you are/have been doing so, I'd love to hear from you! Let's exchange ideas, experiences, advice, etc. | 0non-cybersec
| Reddit |
How to verify that array contains object with rest assured?. <p>For example, I have JSON in response:</p>
<pre><code>[{"id":1,"name":"text"},{"id":2,"name":"text"}]}
</code></pre>
<p>I want to verify if a response contains a custom object. For example: </p>
<pre><code>Person(id=1, name=text)
</code></pre>
<p>I found solution:</p>
<pre><code>Person[] persons = response.as(Person[].class);
assertThat(person, IsArrayContaining.hasItemInArray(expectedPerson));
</code></pre>
<p>I want to have something like this:</p>
<pre><code>response.then().assertThat().body(IsArrayContaining.hasItemInArray(object));
</code></pre>
<p>Is there any solution for this?<br>
Thanks in advance for your help!</p>
| 0non-cybersec
| Stackexchange |
[WP] In the near future, an astronaut commits murder. | 0non-cybersec
| Reddit |
Examples of Exp tool to export data from Oracle db table to text file. <p>I need to export data from an Oracle database and then import the data to another oracle database. To import data, I can use SQLLDR tool to load a flat text file. To do that, I have to generate this flat text file from a Oracle database table first.</p>
<p>Are there any examples to use this tool? I need to pass Oracle database name, schema name with user/pwd, table name, constrains, and date time column format information to generate a text file. This text file will be used by SQLLDR tool.</p>
| 0non-cybersec
| Stackexchange |
Eigenspace and Eigenvalues (Comprehension Question). <blockquote>
<p>I'm a bit confused on a couple linear algebra topics..</p>
<p>Say I have a $5 \times 5$ matrix, with 3 eigenvalues With One of
the corresponding eigen-spaces being 1 dimensional Another
corresponding eigen-spaces dimension being 2 dimensional </p>
<p>Would it be possible for that matrix to <strong>NOT</strong> be diagonalizeable?</p>
</blockquote>
<p>I would say <strong>YES</strong> because if the $3rd$ eigenvalue<br>
and it's associated eigen-space dimension is not $2$<br>
then it can't possibly be diagonalizeable.</p>
<p>Is this logical? Also would it be possible to have an eigen-space
with dimension $0$?</p>
<p>Also if anyone could help me understand how this relates to the geometric multiplicities and algebraic multiplicities it would be greatly appreciated!</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 |
Embedded Jetty rewrites not working properly. <p>I am trying to implement a simple rewrite rule in an embedded Jetty server, following the Jetty documentation examples.</p>
<p>I want requests to <code>/admin/</code> to rewrite to /admin.html.
At the moment if I request <code>/admin/</code> I get a 404 error with <code>/admin.html</code> not found.
But if I request <code>/admin.html</code> directly, it works!</p>
<p>There are 2 other similar posts on stackoverflow but no answers to the question!</p>
<p>Here's the code:</p>
<pre class="lang-java prettyprint-override"><code>WebAppContext _ctx = new WebAppContext();
_ctx.setContextPath("/");
_ctx.setDefaultsDescriptor(JETTY_DEFAULTS_DESCRIPTOR);
_ctx.setParentLoaderPriority(true);
_ctx.setWar(getShadedWarUrl());
_ctx.setResourceBase(getShadedWarUrl());
RewriteHandler rewriter = new RewriteHandler();
rewriter.setRewritePathInfo(true);
rewriter.setRewriteRequestURI(true);
rewriter.setOriginalPathAttribute("requestedPath");
RewritePatternRule admin = new RewritePatternRule();
admin.setPattern("/admin/");
admin.setReplacement("/admin.html");
admin.setTerminating(true); // this will stop Jetty from chaining the rewrites
rewriter.addRule(admin);
_ctx.setHandler(rewriter);
HandlerCollection _handlerCollection = new HandlerCollection();
_handlerCollection.setHandlers(new Handler[] {_ctx});
server.setHandlers(_result);
</code></pre>
| 0non-cybersec
| Stackexchange |
Sort a list of tuples with None values in Python3. <blockquote>
<p>In Python 3 the ordering comparison operators (<, <=, >=, >) raise a
TypeError exception when the operands don’t have a meaningful natural
ordering</p>
</blockquote>
<p>This change in comparison creates difficulties to order a list of tuples, if there exist None values.</p>
<p><strong>In Python 2:</strong></p>
<pre><code>>>> unordered_list = [('3', '1', None), ('3','1', '4'), ('3', '1', None)]
>>> sorted(unordered_list, reverse=True)
[('3', '1', '4'), ('3', '1', None), ('3', '1', None)]
</code></pre>
<p><strong>In Python 3:</strong></p>
<pre><code>>>> unordered_list = [('3', '1', None), ('3','1', '4'), ('3', '1', None)]
>>> sorted(unordered_list, reverse=True)
TypeError: unorderable types: str() < NoneType()
</code></pre>
<p>Do you have any idea how to have the same behavior with Python 2 an elegant way?</p>
<p><strong>NOTE:</strong> In the above examples I have integers, but it's only an example. The elements of the tuples will have the same type and they could be any type.</p>
<pre><code>ex.2 [('test3','test1', 'test4'), ('test3', 'test1', None)]
ex.3 [( 3, 1, 4), (3, 1, None)]
ex.4 [( 3.1, 1.1, 4.1), (3.1, 1.1, None)]
</code></pre>
| 0non-cybersec
| Stackexchange |
Maven/Gradle way to calculate the total size of a dependency with all its transitive dependencies included. <p>I would like to be able to perform an analysis on each of my project POMs to determine how many bytes each direct dependency introduces to the resulting package based on the sum of all of its transitive dependencies.</p>
<p>For example, if dependency A brings in B, C, and D, I would like to be able to see a summary showing A -> total size = (A + B + C + D).</p>
<p>Is there an existing Maven or Gradle way to determine this information?</p>
| 0non-cybersec
| Stackexchange |
The Larry Sanders Show: Imagine if Seinfeld hated himself and everyone else, but somehow had a successful late-night show, and his sidekick was a younger George Bluth Sr. Also, Rip Torn.. | 0non-cybersec
| Reddit |
/r/SpotifyEM: Electronic Music on Spotify - If you love Spotify as much as I do, come hang out and share playlists and releases you're digging.. | 0non-cybersec
| Reddit |
What can you do or have done fitness wise that puts you at the top 1%?. I recently achieved my life goal of doing 20 pull ups. I mentioned this to a friend who then said I'm in the top 1% (not really sure how valid this is). Never did I thought I would be able to achieve being in the top 1% for anything. So I want to pose this question to /r/fitness, what can you do or have done fitness wise that puts you at the top 1%?
Edit: Thanks for the all the amazing posts. I tried reading all of the accomplishments and upvoting everyone. Some of them are really amazing. Thanks for sharing!!!
Edit: Can't believe the posts are still coming in. Spending way too much time reading them all. You guys and gals have done some amazing stuff. It's a shame how if anyone had posted these individually it'll get downvoted to oblivion. It's apparent people like to share their accomplishments but can't because some people would view it as bragging. | 0non-cybersec
| Reddit |
How can I change the timezone in MySQL?. <p>In a MySQL DB, I have two varchar fields. One is for date and one is for time. I need to change the time from CST to GMT. In MySQL how do we convert the combination of these date and time fields from CST to GMT time? It could be helpful if I get some sample queries for retrieve the same.</p>
| 0non-cybersec
| Stackexchange |
Text 'stretched' in a table. <p>I have a minor problem, although I'm unsure how to fix it. The two tables below show the tables as they appear in my thesis:</p>
<p><img src="https://i.stack.imgur.com/COE29.png" alt="enter image description here"></p>
<p>As you can see the space between the words 'Each' and 'successive' is too much. However when I try to replicate the problem with a MWE, the problem does <strong>not</strong> appear:</p>
<p><img src="https://i.stack.imgur.com/4OId2.png" alt="enter image description here"></p>
<p>What could be causing the stretched words? I have other packages loaded in my main thesis document, but I don't think they are relevant to this problem.</p>
<p>My MWE is the following:</p>
<pre><code>\documentclass{article}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\Centering\arraybackslash}p{#1}}
\begin{document}
\begin{table}[htbp]
\centering
\renewcommand\arraystretch{1.2}
\begin{threeparttable}
\caption{Course Load of a Representative EBE student}
\label{table:eng}
\begin{tabular}{@{}p{0.20\textwidth}*{3}{L{\dimexpr0.25\textwidth-2\tabcolsep\relax}}@{}}
\toprule
& \multicolumn{3}{c}{\bfseries Cumulative Number of Prescribed Credits}
\\
\cmidrule(l){2-4}
& BSc (Eng)& ASPECT & BSc (Geomatics) \\
\midrule
First-year & \multicolumn{1}{c}{144 -- 148} & \multicolumn{1}{c}{104 -- 116} & \multicolumn{1}{c}{142 -- 144} \\
Each successive \hbox{two-year} period\tnote{1} & \multicolumn{1}{c}{264 -- 294} & \multicolumn{1}{c}{232 -- 248} & \multicolumn{1}{c}{296 -- 330} \\
\bottomrule
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}
</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 |
Samba as PDC on ubuntu 12.04.5. <p>Windows 7, 8 , and 10 machines are unable to join to samba(PDC).when i enter domain username and password i get the message:</p>
<p>The following error occured attempting to join domain "xxxxx". The specified domain either does not exist or could not be contacted.</p>
<p>Any ideas? I run a network of about 150 computers,and want each user to login to domain for control reasons</p>
<p>Ken.</p>
| 0non-cybersec
| Stackexchange |
Using Windows as middle for migrating between two Linux machines. <p>We're developing a tool that will do a migration between some platforms. Both source and/or destination servers can be Windows or Linux.</p>
<p>The tool is currently built in .NET and we'd like to keep it that way if possible. But a new requirement emerged that requires us to copy files and their permissions.</p>
<p>So my questions are</p>
<ul>
<li>Is it possible to copy permissions (or read old then write file and set new permissions)?</li>
<li>Possibly related, is it possible to execute remote scripts from windows (say PowerShell) on Linux?</li>
</ul>
<p>Is this possible, and where can I find any documentation on this topic?</p>
| 0non-cybersec
| Stackexchange |
Pharmacy Scammer Gives Advice on Keeping CC Safe. So I have been getting a call from these guys every day for weeks, but I never answer. I decided to answer today just to see what came of it, and sure enough, pharmacy call offering me pain meds.
After goofing around pretending I wanted to buy highly illegal drugs from them if available (street drugs) I offered to pay with my Visa.
Janet who was so kind to make me this 'once in a lifetime offer' kindly spent several minutes explaining to me why I should never give my credit card information to anyone who calls me asking for funds.
Despite trying to get me to buy pharmacy meds from them, I thought I'd give a shout out to her for trying to watch out for dumb-ol' me, just blindly trying to give out my credit card information.
Thanks for being a bro (kinda?), Janet! | 0non-cybersec
| Reddit |
Recent horror films that are not gross?. By recent I mean within the past 10 years, foreign or not.
The last one I saw was Let Me In, really great film but it's not scary at all.
Some movies I liked are One Missed Call from Japan, Late Night FM from Korea, I also like Final Destination aside from the bloody deaths. | 0non-cybersec
| Reddit |
Here are a bunch of quick tips to mitigate wrist aches and pains caused by bodyweight exercises.. **When doing planks, downward dogs, handstands, etc**
* **[Slight Turn Out:](http://i.imgur.com/OIXgJqh.png)** Spread the fingers wide apart and set the hand down in such a way that the index finger is facing forward. That will make sure you're turning your hands out slightly, just enough to reduce some potential impingement. (When going more extreme, like in the case of planche's, some people turn them out even more.)
* [**Press down the knuckle of the index finger:**](http://i.imgur.com/EKrcH6z.jpg) Avoid putting all your weight in the heel of your hand by making sure you're pressing the knuckle of the index finger firmly down into the ground! This helps to distribute the pressure better.
* **[Yoga mat mod:](http://i.imgur.com/hoTGvJF.jpg)** Another modification that works to distribute the pressure better, is to roll up the end of a yoga mat so that the wrist bones are elevated and the fingers can slope downwards off the end of them.
**If push ups hurt your wrists, here are some modifications:**
* **Do them on fists,** placing most of your weight on the knuckles of the index and middle fingers.
* **Use push up bars,** parallettes or the iron-gym pull up bar or dumbbells on the floor and use their handles.
* I made a video showing these tips [here](https://www.youtube.com/watch?v=Ua7B2q21UHg) if you wanna see visually.
**Don't rush through the wrist mobility stuff!**
* I recently had a friend who said they were starting to have wrist pains despite going through **[the wrist mobility exercises](https://youtu.be/8lDC4Ri9zAQ?t=7m20s)** of our [**recommended routine'**](https://www.reddit.com/r/bodyweightfitness/wiki/kb/recommended_routine) I asked them if they were rushing through them or doing them slowly. He admitted he was performing them all at quite a fast speed because he had memorized them and wanted to speed through them.
* **I've found it best to purposely slow everything down and not rush through the dynamic wrist stretching and strengthening exercises.** Do them purposely in a slower manner, much slower than you're used to and that should help quite a bit. Rushing through the exercises is almost the same as not doing a wrist warm-up at all sometimes. Exhibit mindfulness and control and respect for the ritual you're embarking on that involves warming up your body and mind. The warm-up becomes more and more important the more advanced you become so it's good to respect it.
Hope that helps! Also, if you have serious wrist issues that are not healing, seek out a sports oriented physical therapist and take care of your body. Nothing is more important than your health! If you got a tip to share, absolutely leave a comment! | 0non-cybersec
| Reddit |
Simple <-> realism, me, animation, 2019. | 0non-cybersec
| Reddit |
Nude maid service may be against the law. | 0non-cybersec
| Reddit |
Was going through old photos...didn't know I was such an abused child. . | 0non-cybersec
| Reddit |
How do they stop dogs from peeing on everything at PetsMart?. | 0non-cybersec
| Reddit |
dank dolan. | 0non-cybersec
| Reddit |
Every time I'm moving large and heavy stuff with friends.... | 0non-cybersec
| Reddit |
Windows 10 hangs for 1 second while typing. <p>My laptop recently started having an unusual issue: whenever I'm typing, it will randomly freeze for about 0.5 to 2 seconds, after that, it will resume working and also catch up on all the text I've written since.
Please note that since the freeze is so quick, it might just be an impression that it only happens while typing. I know for a fact that it does not stop audio or video playing.</p>
<p>It happens on any application where you can type, including any browser (Chrome, Edge, FFox), messaging app or text editor.</p>
<p>It happens randomly so it's very hard to trubleshoot, although my general impression is that the frequency increases if RAM usage is > 25%.
For example the frequency seems to increase a lot if I open Chrome or a heavy IDE.</p>
<p><strong>What I have tried:</strong></p>
<ul>
<li><p>Check windows files for integrity with <code>sfc /scannow</code>: No problems found</p></li>
<li><p>Updating keyboard, audio and video drivers from manufacter website: All were up to date</p></li>
<li><p>Clean boot (disabling all services except microsoft): Nothing changed</p></li>
<li><p>Ram memory diagnostic (the tool that comes with windows): No problems found</p></li>
<li><p>Clean cache, delete temp files</p></li>
<li>Reset winsock registry (<code>netsh winsock reset</code>): Nothing changed</li>
<li>Windows Update: all done</li>
<li><p>Undo any recent hardware or software changes: I haven't changed anything in weeks, except for updating a few drivers that were otherwise causing a BSOD. This however happened about 5-6 days before the freezing problem occurred, and I hadn't changed anything since.</p></li>
<li><p>Disabling "turn off Hard Drive after.." in advanced power settings</p></li>
<li><p>Setting manual virtual memory, minimal at recommended value and maximum at 1.5 times my total RAM</p></li>
</ul>
<p>Any idea? I'm lost at this point.</p>
<p><strong>Useful Specs:</strong></p>
<pre><code>Keyboard: Integrated laptop keyboard
Laptop: Alienware 17R3
Windows 10 Home 1709 Build: 16299.248 (Updated from .225)
SSD (C:, OS) 500GB, 150 GB avaiable
HDD (D:) 1TB, 250GB avaiable data only
Ram: 16GB DDR4 (8x2)
NVIDIA GTX 980M lastest drivers
</code></pre>
<p>Laptop froze about 6 times while writing this post.</p>
| 0non-cybersec
| Stackexchange |
At being homophobic.. | 0non-cybersec
| Reddit |
Cold War Coloring Book Taught A-10 Pilots to Kill Soviet Tanks. | 0non-cybersec
| Reddit |
set_metadata_recursive failing on Android install. <p>I'm trying to bring up a 4.4 android build for my droid razr HD. It compiles cleanly, but when I try to install it fails with the following error in the recovery log:</p>
<pre><code> ApplyParsedPerms: removexattr of /system/xbin/zipalign to 0 failed: Operation not supported on transport endpoint
script aborted: set_metadata_recursive: some changes failed
set_metadata_recursive: some changes failed
E:Error executing updater binary in zip '/external_sd/MSI/update-XenonHD-11-07-13-signed-xt926.zip'
Error flashing zip '/external_sd/MSI/update-XenonHD-11-07-13-signed-xt926.zip'
</code></pre>
<p>So... I did a fair amount of research into the changes made by AOSP in build and bootable/recovery, including comments others have made on this issue, and I'm thinking it's a missing seandroid configuration for /system/xbin. It's definitely something about items in /system/xbin because when I remove zipalign from the build, it errors out on tcpdump, and so on..
Is this indeed a sepolicy configuration that's missing? Is there something else I need to check?
Can anyone tell me how to include xbin without having to mess with the files residing there?
Thanks, appreciate your time! </p>
| 0non-cybersec
| Stackexchange |
Is there any need to specify PRAGMA page_size = 4096 for a new mobile phone application with SQLite?. <p>For a Xamarin Mobile phone application, can someone explain what these three statements do and if they are really needed when creating a SQLite database:</p>
<pre><code> db.execute("PRAGMA page_size = 4096");
db.execute("PRAGMA legacy_file_format = 0");
db.execute("VACUUM");
</code></pre>
| 0non-cybersec
| Stackexchange |
Man makes the worst pizza in existence. | 0non-cybersec
| Reddit |
Create directory in vifm. <p>I use vifm as my file manager occasionally and was wondering how to create a new directory?!</p>
<p>Both vifm -h and man vifm are pretty short and don't really help..</p>
<p>EDIT: Just noticed that in the MINT repros there only seems to be vifm version 0.4... :-S </p>
| 0non-cybersec
| Stackexchange |
My doctor listened to me when I requested a thyroid related blood test and I just went back in for more tests today. I finally might know what's been so wrong with my body!. I've been depressed ever since high school along with heaps of anxiety inherited from mom. In college I'd be perpetually fatigued but I just chalked it up to being so busy. Then I graduated and I. Kept. Sleeping. 12 hours, 15 hours, I'd sleep and sleep and sleep. I brushed it off though because I figured I had a sleep debt to repay.
Then I began to finally tackle the 10 pounds I gained in college. And as I counted my calories I noticed something odd. To lose weight I had to eat 1,000 calories a day or less. This is with daily moderate exercise. My weight is maintained with the same exercise on 1,300 calories max. No more. I am 5'7" but I chalked it up to being Chinese and thus having a smaller frame.
Then after a month of traveling in China I got back and my sleep deteriorated entirely and my depression kicked up to the point where I'd be crying miserably while feeling so fatigued I couldn't move. I felt even fogger than I did in college, as if I'm moving through mud. I made more typos while working, things slipped my mind, I just became a mess. Finally my mom and husband pushed me to seek out therapy.
My therapist immediately said I need to get bloodwork done for vitamin D and thyroid testing. And one of my college friends who was recently diagnosed with severe hypothyroidism later told me she wants me to be tested. She had a bad feeling in her gut that I might be suffering from the same condition.
So when I met my new doctor (I just aged out of my pediatric doctor) I told her everything and she listened. She felt my thyroid and said she thinks it is normal. But she submitted to the lab tests for vitamin D, a basic thyroid panel , other basic panels, and even anemia.
My results came back 24 hours later. My TSH levels were extremely high. The lab called me and said I need to go back ASAP for further testing. I was also severely deficient in vitamin D and my doctor already prescribed me supplements.
I just got my blood drawn again today. I already feel like a huge weight is off of me. Being so fatigued just makes my depression worse because then I get nothing done and I feel like a waste of a person. But hearing that there might be a physical problem makes me feel so relieved. And my doctor will help me fix it. Right now I'm laying in bed because my cat fell asleep on my chest and I just wanted to share a victory story with you all.
EDIT: ahhhhhhh thank you all for the support! And thank you kind stranger for the gold! | 0non-cybersec
| Reddit |
Permutation of alike objects. <p>Number of permutations of AAABBBCCC such that no two A's or B's or C's together</p>
| 0non-cybersec
| Stackexchange |
Real Analysis Qualifying Exam Problem. <p>I think this should be an easy question, and I believe the answer should be in the positive, but I am not sure how to start. I would appreciate some help. Thank you.</p>
<blockquote>
<p>Suppose that <span class="math-container">$f_j$</span> is a sequence of functions in <span class="math-container">$L^1(\mathbb{R})$</span> satisfying</p>
<p>(i) <span class="math-container">$\|f_j\|_\infty \leq 5$</span> and <span class="math-container">$f_j(x) = 0$</span> for <span class="math-container">$|x| \geq 10, j \in \mathbb{N}.$</span></p>
<p>(ii) the <span class="math-container">$f_j$</span> converge pointwise to <span class="math-container">$f \in L^1(\mathbb{R})$</span>.</p>
<p>Does it follow that the <span class="math-container">$\hat{f_j}$</span> converge pointwise to <span class="math-container">$\hat{f}$</span>?</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
New calf tattoo by nicko at rocknroll glasgow. | 0non-cybersec
| Reddit |
How to perform two searches at once in Vim?. <p>In Vim, I often find myself performing one search immediately followed by another search. I am wondering if I can combine the two searches into one command.</p>
<p>For example, if I want to find the first instance of the <code>foobar</code> variable within a function named <code>transmogrify</code>, I would enter:</p>
<pre><code>/def transmogrify
/foobar
</code></pre>
<p>Or if I'm in a log file and I want to search for an error that happened after a specific date:</p>
<pre><code>/2012-07-26
/ERROR
</code></pre>
<p>Is there a better way to do this? And no, I'm not looking to record a macro.</p>
| 0non-cybersec
| Stackexchange |
Facebook announces new tools to tackle video theft. | 0non-cybersec
| Reddit |
Modron Gang [OC]. | 0non-cybersec
| Reddit |
Prevent other language except English in EditText. <p>My android app has an EditText field where user can give input. But now i want user can't give input other (i.e Japanese, chain's) than English language.</p>
| 0non-cybersec
| Stackexchange |
I just finished watching Dazed and Confused. Any other movies like this or better. I have fallen in some weird chilled out mood after watching this movie. I was wondering if someone could recommend me some good movies like dazed and confused or almost famous. | 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 |
Calling an executable program using awk. <p>I have a program in C that I want to call by using awk in shell scripting. How can I do something like this?</p>
| 0non-cybersec
| Stackexchange |
Hi, we are the creator & designer of BoJack Horseman, Ask Us Anything!. Hi Redditors! I'm Lisa Hanawalt (production designer) and I'm here with Raphael Bob-Waksberg (creator). We're excited to answer your questions about BoJack Horseman, now streaming on Netflix! Or anything else! (Except Rampart, we will not be answering any questions about Rampart.)
Lisa is /u/ponytv and Raphael is /u/rbwrbw
**Our Proof:** https://twitter.com/lisadraws/status/515238200445378560
EDIT: Yes there will be a Season 2, not sure what the release date is yet. We are working on it RIGHT NOW! :)))) | 0non-cybersec
| Reddit |
Cisco IP communicator unreliable for incoming calls - IP address conflict?. <p>My workplace uses <a href="http://www.cisco.com/en/US/products/sw/voicesw/ps5475/index.html" rel="nofollow noreferrer">Cisco IP communicator</a> as a softphone for employees.</p>
<p>I have found it to be quite unreliable for receiving incoming calls. When my wife calls me, she intermittently gets forwarded straight to my voice-mail (which implies that there is a disconnect between the client and server). Sometimes she will have to try and call 3-4 times before it starts ringing on my PC.</p>
<p>I suspect this is a flapping issue of some sort where the client is constantly being disconnected from the server for short periods of time, and if the incoming phone call comes at a time when it is connected properly, my phone will ring.</p>
<p>Today when I came into work, there was the following message on my screen:</p>
<pre><code>Windows has detected an IP address conflict
...
</code></pre>
<p>It sounds like this could be connected. Any recommendations?</p>
| 0non-cybersec
| Stackexchange |
geometrically perfect cycle wheels. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
We're Going to Die in Record Numbers as Heatwaves Bake The World, First Global Study Shows. | 0non-cybersec
| Reddit |
Should I go to Iran or Jordan. Soon I am about to go on a round the world trip and at the end when I have some spare time (less than a week) I'd like to stop in the middle east. I will have been away for a few months at this stage so money will be tight and I wont be able to do both. I have narrowed it down to Iran and Jordan. Iran looks like it has great architecture and probably more to see, But Jordan has Petra and I have always dreamed of going there. Anyone that has been to both, which country would you recommended I experience? Is there more to view in Jordan than just Petra, or is Petra enough to justify the visit | 0non-cybersec
| Reddit |
Apple's Yerba Buena Decoration Shows Stretched iOS Icons, Possibly Hinting at Taller iPhone 5.. | 0non-cybersec
| Reddit |
I had no idea water chestnuts look so evil before they get processed.. | 0non-cybersec
| Reddit |
Google Engineers 'Mutate' AI to Make It Evolve Systems Faster Than We Can Code Them. | 0non-cybersec
| Reddit |
Why did China's coronavirus update site completely change? Can anyone who can translate help help navigate the site?. | 0non-cybersec
| Reddit |
'Golden Compass' Author Philip Pullman Opens Up About Returning to 'His Dark Materials'. | 0non-cybersec
| Reddit |
A backyard full of yellow flowers.. | 0non-cybersec
| Reddit |
Faces of the intersection of convex sets. <p>Let $V$ be a normed real vector space and let $K_1, K_2\subseteq V$ be closed convex subsets such that the intersection $K_1\cap K_2$ is non-empty. Assume that $F_1$ is a face of $K_1$ and $F_2$ is a face of $K_2$ (face $F$ of a convex set $K$ is a convex subset such that $a=tb+(1-t)c$, for $a\in F$, $b, c\in K$, $0<t<1$, implies $b,c\in F$). If $F_1\cap F_2$ is non-empty, then it is a face of $K_1\cap K_2$.</p>
<blockquote>
<p>Question: is every face $F$ of $K_1\cap K_2$ the intersection of $F_1, F_2$, where $F_1$ is a face of $K_1$ and $F_2$ is a face of $K_2$?</p>
</blockquote>
<p>Probably the answer is known to experts working in convexity, however I am not able to find a reference in the literature. In my opinion the answer is affirmative, but maybe I am wrong and there are (even simple) counterexamples. It is possible that the answer is much simpler if one assumes that $V$ is finite dimensional. On the other hand it is also possible that the answer is known also for more general case when instead of the intersection of two convex sets we have the intersection of an arbitrary family of closed convex sets.</p>
| 0non-cybersec
| Stackexchange |
David Sirota: America’s Newest Global War - Truthdig. | 0non-cybersec
| Reddit |
Fish and Chips with Lemon and Mushy Peas. Whitby, UK. [810 x 540]. | 0non-cybersec
| Reddit |
Can I configure git so it does not guess user.email configuration settings?. <p>On my system I don't have the <code>user.email</code> git configuration value set at the global level, on purpose. Instead, I configure it individually in each sandbox. This is because I need to use different e-mail addresses for different projects.</p>
<p>Unfortunately I sometimes forget to configure the value when I create a new sandbox. In those cases, git just "guesses" a value based on information it gets from the environment. That leads to various problems, for example commits are not attributed to me on github, and I won't have much luck getting those commits with <code>@localhost</code> e-mail addresses attributed to me retroactively.</p>
<p>Is there a way to configure git to error out instead of guessing when I try to commit without a local or global <code>user.email</code> value configured?</p>
| 0non-cybersec
| Stackexchange |
Comma as separator in variable initialization (not as operator). <p>This seems such a simple question, but something I've not examined for ages in my own style... When initializing variables separated by a comma, I've assumed the following to be an unsafe practice:</p>
<p><code>unsigned int n = foo.size, nxn = n * n;</code></p>
<p>Since I don't really ever use the comma <em>operator</em> as such for syntactic sugar, etc; but rather to indicate that two expressions are independent - as a kind of implicit commentary on 'fine-grained parallelism' (or expression independence), that often makes code a bit more terse, e.g.,</p>
<pre><code>if (<some condition>)
a = true, b = value;
</code></pre>
<p>rather than requiring <code>{}</code> scope for semi-colon separated expressions.</p>
<p>But my question is really in re-examining the variable initialization case. Have I been incorrect in my assumption that <code>nxn</code> can't be relied on to be initialized as expected? Or have I been laboring under a misinterpretation all this time?</p>
| 0non-cybersec
| Stackexchange |
Crash when trying to run WebGoat with a Java Agent. <p>I am currently learning how to boot a web application with a java agent for monitoring.</p>
<p>The Web Application I chose was <a href="https://github.com/WebGoat/WebGoat" rel="nofollow noreferrer">WebGoat</a>, and running WebGoat with <code>java -jar webgoat-server-8.0.0.M17.jar</code> as stated in WebGoat's README works perfectly fine.</p>
<p>However, when I try to add my agent, I get the following mess of an error log: </p>
<pre><code> . ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.12.RELEASE)
2018-06-06 22:36:08.528 INFO 3741 --- [ main] org.owasp.webgoat.StartWebGoat : Starting StartWebGoat v8.0.0.M17 on MacBook-Pro.local with PID 3741 (/Users/andrewfan/Desktop/Lang Agent Dev Proj help info/webgoat-server-8.0.0.M17.jar started by andrewfan in /Users/andrewfan/Desktop/Lang Agent Dev Proj help info)
2018-06-06 22:36:08.531 INFO 3741 --- [ main] org.owasp.webgoat.StartWebGoat : No active profile set, falling back to default profiles: default
2018-06-06 22:36:08.844 INFO 3741 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1376c05c: startup date [Wed Jun 06 22:36:08 EDT 2018]; root of context hierarchy
2018-06-06 22:36:11.354 INFO 3741 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$8e12590a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-06-06 22:36:11.442 WARN 3741 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConfiguration': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'webgoat.user.directory' in value "${webgoat.user.directory}"
2018-06-06 22:36:11.455 INFO 3741 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-06-06 22:36:11.464 ERROR 3741 --- [ main] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConfiguration': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'webgoat.user.directory' in value "${webgoat.user.directory}"
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:372) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[spring-beans-4.3.16.RELEASE.jar!/:4.3.16.RELEASE]
at
</code></pre>
<p>...</p>
<p>I cut the error messages short since the trace is a few pages long, but the main error seems to be <code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConfiguration': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'webgoat.user.directory' in value "${webgoat.user.directory}"</code></p>
<hr>
<p>I am running my agent as follows:
<code>java -javaagent:/Users/path/to/jar/Spn-LangAgent-0.0.jar -jar webgoat-server-8.0.0.M17.jar --server.port=8080 --server.address=localhost</code></p>
<p>My agent is as follows:</p>
<pre><code>package com.spnlangagent.langagent;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLClassLoader;
import java.lang.reflect.Field;
import java.lang.instrument.Instrumentation;
import java.lang.instrument.UnmodifiableClassException;
import com.google.monitoring.runtime.instrumentation.AllocationRecorder;
public class LangAgent {
public static void premain(String agentArgs, Instrumentation inst) throws Exception {
System.out.println("LangAgent: premain now running");
setupInstrumentation(agentArgs, inst);
startRuntime(agentArgs);
}
private static void setupInstrumentation(String agentArgs, Instrumentation inst) throws Exception {
System.out.println("setupInstrumentation: now running with agentArgs: " + agentArgs);
}
private static void startRuntime(String agentArgs) throws Exception {
System.out.println("startRuntime: now running with agentArgs: " + agentArgs);
}
}
</code></pre>
<p>The original contents of the agent were commented out except for a few print statements, and yet even with this, WebGoat is crashing on startup. </p>
<p>I tried another agent with WebGoat and it worked fine, so the only thing I can think of is that something is wrong with either my agent, or the way it is being packaged.</p>
<p>I am using Maven, and my MANIFEST.MF is as follows:</p>
<pre><code>Manifest-Version: 1.0
Premain-Class: com.spnlangagent.langagent.LangAgent
Can-Redefine-Classes: true
Can-Retransform-Classes: true
</code></pre>
<p>After running <code>mvn package</code>, the MANIFEST packaged in the .jar is as follows:</p>
<pre><code>Manifest-Version: 1.0
Premain-Class: com.spnlangagent.langagent.LangAgent
Built-By: andrewfan
Can-Redefine-Classes: true
Can-Retransform-Classes: true
Created-By: Apache Maven 3.5.3
Build-Jdk: 1.8.0_172
</code></pre>
<p>In my pom.xml, I am doing the following to reach the manifest:</p>
<pre><code> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</code></pre>
<p>If someone could point me in the right direction in regards to figuring out why WebGoat is crashing, or if someone could provide more insight into why what I am currently doing is wrong, that would be greatly appreciated. </p>
<p>Thank you.</p>
<p>Note: If the rest of my pom.xml is necessary for debugging, I will gladly provide it; it's just that the question is already very long as-is.</p>
| 0non-cybersec
| Stackexchange |
Children having recess on playground equipment circa 1910 [1242 x 919]. | 0non-cybersec
| Reddit |
It's Friday and I can't wait to get back here.. | 0non-cybersec
| Reddit |
Funny Animal Videos | New Compilation of 2019 | Grab your popcorn and laugh out loud. | 0non-cybersec
| Reddit |
Resolving dbcontext per request with Unity in WebApi. <p>I am struggling to make this work. I've got Unity and Unity.AspNet.WebApi packages (v 3.5.1404) installed and below activation code which came with the packages</p>
<pre><code>public static class UnityWebApiActivator
{
/// <summary>Integrates Unity when the application starts.</summary>
public static void Start()
{
var container = UnityConfig.GetConfiguredContainer();
var resolver = new UnityHierarchicalDependencyResolver(container);
GlobalConfiguration.Configuration.DependencyResolver = resolver;
// DynamicModuleUtility.RegisterModule(typeof(UnityPerRequestHttpModule));
}
/// <summary>Disposes the Unity container when the application is shut down.</summary>
public static void Shutdown()
{
var container = UnityConfig.GetConfiguredContainer();
container.Dispose();
}
}
</code></pre>
<p>and my type registration looks like this:</p>
<pre><code> public static void RegisterTypes(IUnityContainer container)
{
container.RegisterType<IAuditService, AuditService>(
new PerThreadLifetimeManager(),
new InjectionConstructor(new SecurityDbContext()));
}
</code></pre>
<p>So far I've tried PerThreadLifetimeManager and TransientLifetimeManager with no success. I've also got the Unity.Mvc package and tried using the PerRequestLifetimeManager as suggested by msdn but no luck. It always gives me the same instance of dbcontex.</p>
<p>I rather do not include any MVC dependency as this is purely WebApi but when I try to use Unity.Mvc, I ended up some http runtime errors too.</p>
<p>Anyone has a good suggestion/example to resolve dbcontext per request with Unity in WebApi, preferably without any mvc dependency?</p>
| 0non-cybersec
| Stackexchange |
Basic stochastic inequality. <p>Let $X$ and $Y$ be independent random variables. Prove that
$$P(X \leq x\mid X >Y) \leq P(X \leq x).$$</p>
<p>I try to use the definition of conditional probability, but I can't get success.
$$P(X \leq x\mid X >Y) = \frac{P(X \leq x, X > Y)}{P(X >Y)} = \frac{P(Y < X \leq x)}{P(X >Y)}$$</p>
<p>Any ideas?</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.