text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
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 |
The one that always shows up when you start smoking. | 0non-cybersec
| Reddit |
How to write degrees into angles?. <p>So I have this code.</p>
<pre><code>\draw(A)-- (X)-- (D)
pic["$\epsilon$"] {angle= A--X--D};
</code></pre>
<p>And it works perfectly. But I don't know how to display numbers. For example </p>
<pre><code>\draw(A)-- (C)-- (D)
pic["$34$"] {angle= A--C--D};
</code></pre>
<p>and I get this</p>
<p><a href="https://i.stack.imgur.com/iXsfl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iXsfl.png" alt="enter image description here"></a></p>
<p>How to fix that? I mean how can I display the number (with degree symbol) like I did epsilon?</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 |
Went to the Apple store but the electricity was out - that didn't stop their employees.... | 0non-cybersec
| Reddit |
Going out tomorrow for a girlfriend’s birthday, what should I get from this menu?. https://www.briccokent.com/dinner
Thanks guys! | 0non-cybersec
| Reddit |
[FRESH] Earl Sweatshirt x Mach-Hommy - Fete Des Morts AKA Dia De Las Muertos. | 0non-cybersec
| Reddit |
[WDYWT] hawaii. | 0non-cybersec
| Reddit |
"Miss me with cancer" -big nibba. | 0non-cybersec
| Reddit |
A general theory of multiplicity-free actions of $G\times H$?. <p>There seem to be a bunch of different results of the form "This nice
representation $V$ of $G\times H$ breaks up as $\bigoplus_\lambda V_\lambda
\otimes W_\lambda$, where the $(V_\lambda)$ are distinct irreps of $G$
and the $(W_\lambda)$ are distinct irreps of $H$."</p>
<p>Examples I know (described algebraically):</p>
<ol>
<li><p>$G = S_n$, $H = GL(k)$, $V = ({\mathbb C}^k)^{\otimes n}$.</p></li>
<li><p>$G = H$, $V = Fun(G)$ (the Peter-Weyl theorem)</p></li>
<li><p>$G = GL(m)$, $H = GL(n)$, $V = Sym({\mathbb C}^m \otimes {\mathbb C}^n)$.</p></li>
</ol>
<p>I know there should be some analogous one with $O(m)$ and $Sp(n)$...</p>
<p>My questions: </p>
<ol>
<li><p>What are other examples?</p></li>
<li><p>Is there a general theory of these, that in particular would
encompass Peter-Weyl? (So not just about actions on symmetric algebras.)</p></li>
</ol>
| 0non-cybersec
| Stackexchange |
Went to a Planet Fitness today. It went better than expected.. After reading all of the reviews on here and bodybuilding.com, I was expecting something really awful. To be honest, it wasn't that bad.
I'm traveling at the moment and went looking for a gym nearby today. All of the locally owned gyms were trying to charge me something like $50-$70/week for a short-term, non-commitment membership! I even tried to get student discounts, but they weren't having it. They tried explaining that I get full access to their facilities though (pool, spa, fitness classes, tanning). Um...hello? McFly? I don't want that stuff, just give me some damn weights.
Called up the local PF, they let me get a one month, non-committal membership for $39, with $10/month for each additional month.
**My review:**
The guys working the desk were way cool. Mid-20s, had a very "yeah man, do whatever" attitude. They did **not** tell me I couldn't do squats, DL, or anything. The only thing they mentioned was about the no grunting policy (I'm not much of a grunter as it is).
I was a bit nervous about it being really crowded since I went at 5:30 in the evening (usually when my gym is most-crowded), but it was maybe half-full. The longest I waited for anything to open up was one set, and the people there were more than cool with letting me work in. There were plenty of cardio machines open, too.
Also, it wasn't full of overweight that they needed a "judgement free zone" and didn't know how to exercise. There were some guys in there doing some serious weight, and some very fit looking women lifting free weights as well.
*Equipment:*
No squat racks, only smith machines :-( Also, the angle on the Smith machines is pretty bad. Next time I go, I may try and rig something up where I can use the barbells from the benches in the Smith Machine racks to do legit squats.
They did have several barbell benches (incline too), and lots of dumbbells that went up to 90lb I believe. Also, I observed one guy taking advantage of the benches (which sat pretty low) to do rack deadlifts and nobody gave him any issues. I asked him about it and he said nobody has ever given him any problems.
I didn't see pizza, bagels, nor candy, but they did have tables and chairs set up at the front for people to eat/drink at (like a mini-cafe).
Never heard the lunk alarm once. Never saw anybody getting warned for anything.
Also, the color scheme makes me want to vomit.
*tl;dr: Went to the infamous Planet Fitness. Everything went better than expected.* | 0non-cybersec
| Reddit |
How do define get and set for an array data member?. <p>I am making a class <code>Customer</code> that has the following data members and properties:</p>
<pre><code>private string customerName;
private double[] totalPurchasesLastThreeDays; //array of 3 elements that will hold the totals of how much the customer purchased for the past three days i.e. element[0] = 100, element[1] = 50, element[2] = 250
public string CustomerName
{
get { return customerName; }
set { customerName = value; }
}
public double[] TotalPurchasesLastThreeDays
{
?
}
</code></pre>
<p>How do I define the get and set for the array data member?</p>
| 0non-cybersec
| Stackexchange |
How to meet new people?. I’m so frustrated right now. I just moved to a new city for an internship. Within two weeks of my moving here, the guy I had been seeing for almost two years broke it off which fucking sucked. I moved in with a girl I knew from college who has been here for 1 1/2 years so she’s pretty established as far as friends go. I do hang it with her sometimes, but we have pretty different schedules.
I’m such an introverted extrovert, it just takes me some time to get used to you once I’ve met you. I have no idea how to go out and make friends in the real world. Everyone I’ve met is because of school (mutual classes/same program) and then through mutual friends.
I’ve tried stupid apps, girl groups on Facebook, etc. I don’t feel like I can just walk up to some random girls in a bar or whatever because it just seems dumb.
Please help meeee | 0non-cybersec
| Reddit |
Absolute value of product is less than product of absolute values: $|(1+a_1)(1+a_2)\dots (1+a_n)-1|\leq (1+|a_1|)(1+|a_2|)\dots (1+|a_n|)-1$. <p>For a sequence $a_n\in\mathbb{C}$ I want to show that $$|(1+a_1)(1+a_2)\dots (1+a_n)-1|\leq (1+|a_1|)(1+|a_2|)\dots (1+|a_n|)-1$$</p>
<p>I think I should show this by induction on $n$. For the base case I'm sort of stuck, because $|(1+a_1)(1+a_2)-1|=|1+a_1+a_2+a_1a_2-1|\leq 1+|a_1|+|a_2|+|a_1a_2-1|$ and I don't see how to factor this into the result I want. The inductive step also isn't clear after I assume the statement to be true for some $n>2$. There might be some property of $\mathbb{C}$ that I'm missing for this.</p>
| 0non-cybersec
| Stackexchange |
$T\in\mathcal{L}(\mathbf{R^3})$ with eigen values $-4,5,\sqrt{7}$. <p>Is my attempt at the following proof correct?</p>
<p><strong>PRELIMINARY NOTATION AND PROOFS</strong> </p>
<ul>
<li><p>$\mathcal{L}(\mathbf{R^3})$ denotes the set of Linear operator on $\mathbf{R^3}$.</p></li>
<li><p><strong>$5.10$</strong> is the result that eigenvectors of a Linear operator $T$ corresponding to distinct eigenvalues form a linearly independent list.</p></li>
</ul>
<p><strong>Theorem.</strong> Given that $T\in\mathcal{L}(\mathbf{R^3})$ such that $-4,5$ and $\sqrt{7}$ are eigenvalues of $T$. There exists a $x\in\mathbf{R^3}$ such that $Tx-9x = (-4,5,\sqrt{7})$.</p>
<p><em>Proof.</em> Let $v_1,v_2,v_3$ be the eigenvectors corresponding to $-4,5$ and $\sqrt{7}$ respectively. Since $-4,5,\sqrt{7}$ are distinct it follows by theorem $\textbf{5.10}$ that the vectors $v_1,v_2,v_3$ are linearly independent and thus a basis for $\mathbf{R^3}$ but then so is the list $v_1+\overset{9}w_1,v_1+\overset{9}w_2,v_1+\overset{9}w_3$ where $\overset{9}w_i$ denotes a column vector of length $3$ with the $i^{th}$ row equal to $9$ and all others $0$.</p>
<p>With $v_1+\overset{9}w_1,v_1+\overset{9}w_2,v_1+\overset{9}w_3$ as a basis for $V$ it follows that the matrix of $T$ i.e. $\mathcal{M}(T)$ is as follows
$$
\mathcal{M}(T)
=
\begin{pmatrix}
5&0&0\\
0&14&0\\
0&0&\sqrt{7}+9
\end{pmatrix}
$$
and as a consequence that of the transformation $T-9I$ i.e. $\mathcal{M}(T-9I)$ is
$$
\mathcal{M}(T-9I)
=
\begin{pmatrix}
-4&0&0\\
0&5&0\\
0&0&\sqrt{7}
\end{pmatrix}
$$
Thus the vector $x = (1,1,1)$ yields the required result.</p>
| 0non-cybersec
| Stackexchange |
how to replace a variable in shell script string. <p>I'm having problems getting this to work...</p>
<p>I have a variable that is holding a SQL to with a placeholder:</p>
<pre><code>echo $SQL
SELECT PX_PROMOTION_ID, PRIORITY, STATUS, EXCLSVE, TYPE, PERORDLMT, PERSHOPPERLMT, TOTALLMT, RSV_INT, PX_GROUP_ID, CAMPAIGN_ID, STOREENT_ID, VERSION, REVISION, EFFECTIVE, TRANSFER, CDREQUIRED, EXPIRE, LASTUPDATEBY, TO_CHAR(LASTUPDATE, 'YYYYMMDD HH24MMSS') AS LASTUPDATE, TO_CHAR(STARTDATE, 'YYYYMMDD HH24MMSS') AS STARTDATE, TO_CHAR(ENDDATE, 'YYYYMMDD HH24MMSS') AS ENDDATE, TO_CHAR(RSV_TIME, 'YYYYMMDD HH24MMSS') AS RSV_TIME, RSV_REAL, TGTSALES, NAME, CODE, RSV_VCH, OPTCOUNTER FROM PX_PROMOTION WHERE LASTUPDATE BETWEEN (SELECT MAX(BATCHSTART) FROM XRPTEBATCHCONTROL) AND TIMESTAMP('$BATCH_END')
</code></pre>
<p>I have another variable that holds the value:</p>
<pre><code>echo $BATCH_END
2012-11-14 17:06:13
</code></pre>
<p>I want to replace the placeholder with the value. I'm not particularly great at Unix scripting, but I've tried this:</p>
<pre><code>echo $SQL | sed -e "s/'$BATCH_END/$BATCH_END/g"
</code></pre>
<p>but it still doesn't get replaced...</p>
<p>Can anyone help? I want to replace the placeholder, and keep the final string assigned to $SQL</p>
<p>I also need to know how to get the value of the output back into the variable, for example, I tried:</p>
<pre><code> SQL=`echo "$SQL" | echo "${SQL//\$BATCH_END/$BATCH_END}"`
</code></pre>
| 0non-cybersec
| Stackexchange |
Library cat outlasts councilman that wanted him gone. | 0non-cybersec
| Reddit |
How do you fix the "element not interactable" exception?. <p>I know this has been asked lots of times before but how do you get around the "element not interactable" exception?</p>
<p>I'm new to Selenium so excuse me if I get something wrong.</p>
<p>Here is my code:</p>
<pre><code>button = driver.find_element_by_class_name(u"infoDismiss")
type(button)
button.click()
driver.implicitly_wait(10)
</code></pre>
<p>Here is the HTML:</p>
<pre><code><button class="dismiss infoDismiss">
<string for="inplay_button_dismiss">Dismiss</string>
</button>
</code></pre>
<p>And here is the error message:</p>
<pre><code>selenium.common.exceptions.ElementNotInteractableException: Message:
</code></pre>
<p>After is says message there is literally nothing.</p>
<p>I have spent lots of time searching the web, not finding anything that solves my issue. I would really appreciate an answer.</p>
<p>Thanks in advance.</p>
<p><strong>Edit:</strong> Changed "w" to driver so it is easier to read</p>
<p><strong>Update:</strong> I have just realized that I've found the HTML of the wrong button! The real button HTML is below:</p>
<pre><code><button class="dismiss">
<string for="exit">Dismiss</string>
</button>
</code></pre>
<p>Also, I've used the answers and comments and edited my code to look like this:</p>
<pre><code>button = driver.find_element_by_css_selector("button.dismiss")
w.implicitly_wait(10)
ActionChains(w).move_to_element(button).click(button)
</code></pre>
<p>And now I get a new error:</p>
<pre><code>selenium.common.exceptions.WebDriverException: Message: Tried to run command without establishing a connection
</code></pre>
<p>The error happens in line 1: <code>button = driver.find_element_by_css_selector("button.dismiss")</code></p>
<p><strong>Note:</strong> I really appreciate the help that has been given, thanks</p>
| 0non-cybersec
| Stackexchange |
Thinking about sending your child back to school?. | 0non-cybersec
| Reddit |
SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask [Paper]. | 1cybersec
| Reddit |
What should junior developer expect from their senior team lead. <p>Disclaimer: Opinions expressed are solely my own and do not express the views or opinions of my employer.</p>
<p>I work for a small company, in which few people are developers, others are QA/Test and 1 is a Manager. I joined this company 1.5 years ago. 3 senior developers have 8+ years of experience. </p>
<p>These are the observations which I made about the team lead. (considering me as a fresher with less experience compared to them in all aspects )</p>
<ol>
<li>They never discuss 1:1 or they never consider the junior suggestion (I agree that it's up to them, whether they accept it or not, at least they should consider an opinion). </li>
<li>As senior team leader they can try to refactor the codebase with new technologies ( including the factor of rolling out new technologies is possible and other developer and infrastructure also ready), but these team leader feel less in-secure to work with new technologies, as they are not up to date. (reason I am telling, they don't know what current programming trend, *(such as popular open source projects like modernizr, bootstrap and many others). </li>
<li>In our codebase more than 10000+ lines are repeated, so I told them about <code>DRY: Don't Repeat yourself</code>. Their reply was : "It is a fascinating article, but never works in practice". I just told them if we do not make it 100% DRY, we can at least use interfaces, but that also was not considered. *(interfaces can be added for new features, not touching the previous codebase, if they are not ready to refactor) </li>
<li>All senior developers do maintenance and hot fixing of patches. The rest of the time they just spend on entertainment sites. They are just happy to finish the task. </li>
<li>Introducing new technology is bad? *(including factor of feasibility can be done). </li>
<li>Manager also least concerned about the things which I am talking about. </li>
<li>Junior expects they can learn many things from team lead. *(not by asking help or senior coding for them). </li>
</ol>
<p>My questions are:</p>
<ol>
<li>Am I too aggressive about the changes which I am proposing? </li>
<li>What should I expect from senior dev leads who have 8+ years experience? </li>
<li>Am I wrong to expect to learn and gain experience from a company?</li>
</ol>
<p>Update : </p>
<p>Why they feel DRY is impractical: because they don't want get involved with OOP concepts. They are happy with repeating tasks. </p>
<p>New technologies I am proposing:</p>
<ol>
<li>Usage of Minification of CSS, JS, SPrite images </li>
<li>Usage of Interfaces and .net framework 4, generics and many others.</li>
<li>Client side libraries such as modernizr, knockout js, bootstrap for responsive, </li>
</ol>
| 0non-cybersec
| Stackexchange |
Overview of what to learn for Web Development. I'm trying to get a general overview of all aspects of web development before diving in to studying a specific area of it. I came across [this video](https://www.youtube.com/watch?v=zXqs6X0lzKI) which seemed really useful. Is this a fair and accurate overview of what is needed from people going in to web development?
It's just that when I hear things like 'you can learn HTML in 2 days', it puts me off a little; I'm not trying to learn in the quickest possible way - I'm just trying to get a comprehensive overview of what will be expected of me in terms of knowledge should I pursue web development; if each part takes months then so be it.
Can you recommend any other good sources for web development information, or verify that the video I linked is an accurate source of general information? | 0non-cybersec
| Reddit |
How the 2018/19 Bundesliga table could change in gameweek 24.. | 0non-cybersec
| Reddit |
can't use paratype font even after running updmap. <p>I am trying to use a paratype font by putting the following into the preamble of my document:</p>
<pre><code>\RequirePackage{paratype}
\renewcommand*\familydefault{\sfdefault}
\RequirePackage[T1]{fontenc}
</code></pre>
<p>This works fine on my work machine, but on my personal machine I am getting the following error message when I try to compile my document:</p>
<pre><code>kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+340/600 --dpi 940 PTSans-Italic-tlf-t1--base
mktexpk: don't know how to create bitmap font for PTSans-Italic-tlf-t1--base.
mktexpk: perhaps PTSans-Italic-tlf-t1--base is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
</code></pre>
<p>I have tried to fix this with <code>updmap</code> (I realize there are downsides to using <code>updmap-user</code> as opposed to <code>updmap-sys</code>; that is not what I care about at the moment however):</p>
<pre><code>sudo updmap-user --force --enable Map=paratype-truetype.map
</code></pre>
<p>Here is the output from the above command:</p>
<pre><code>updmap [WARNING]: resetting $HOME value (was /home/username) to root's actual home (/root).
updmap will read the following updmap.cfg files (in precedence order):
/root/.texlive2017/texmf-config/web2c/updmap.cfg
/etc/texmf/web2c/updmap.cfg
/usr/share/texmf/web2c/updmap.cfg
/usr/share/texlive/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
/root/.texlive2017/texmf-config/web2c/updmap.cfg
dvips output dir: "/root/.texlive2017/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/root/.texlive2017/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/root/.texlive2017/texmf-var/fonts/map/dvipdfmx/updmap"
updmap [WARNING]: font PTSans-Narrow-tlf-t1--base is defined multiple times:
updmap [WARNING]: paratype-type1.map (from /usr/share/texlive/texmf-dist/web2c/updmap.cfg)
updmap [WARNING]: paratype-truetype.map (from /etc/texmf/web2c/updmap.cfg) (used)
... (ommitting many similar warnings) ...
updmap is creating new map files
using the following configuration:
LW35 font names : URWkb (default)
prefer outlines : true (default)
texhash enabled : true
download standard fonts (dvips) : true (default)
download standard fonts (pdftex) : true (default)
jaEmbed replacement string : noEmbed (default)
jaVariant replacement string : <empty> (default)
scEmbed replacement string : noEmbed (default)
tcEmbed replacement string : noEmbed (default)
koEmbed replacement string : noEmbed (default)
create a mapfile for pxdvi : false (default)
Scanning for LW35 support files [ 3 files]
Scanning for MixedMap entries [ 50 files]
Scanning for KanjiMap entries [ 11 files]
Scanning for Map entries [265 files]
Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...
Files generated:
/root/.texlive2017/texmf-var/fonts/map/dvips/updmap:
15786 2018-10-11 14:15:12 builtin35.map
21259 2018-10-11 14:15:12 download35.map
2445741 2018-10-11 14:15:12 psfonts_pk.map
2706850 2018-10-11 14:15:12 psfonts_t1.map
2700806 2018-10-11 14:15:12 ps2pk.map
14 2018-10-11 14:15:14 psfonts.map -> psfonts_t1.map
/root/.texlive2017/texmf-var/fonts/map/pdftex/updmap:
2700813 2018-10-11 14:15:14 pdftex_dl14.map
2699148 2018-10-11 14:15:13 pdftex_ndl14.map
15 2018-10-11 14:15:14 pdftex.map -> pdftex_dl14.map
/root/.texlive2017/texmf-var/fonts/map/dvipdfmx/updmap:
6706 2018-10-11 14:15:12 kanjix.map
Transcript written on "/root/.texlive2017/texmf-var/web2c/updmap.log".
updmap: Updating ls-R files.
</code></pre>
<p>However when I go to look at the generated files in my file explorer it appears they have not been updated; the date on them is 9/27/2018. I am at a loss; many other answers I have looked at suggest that running <code>updmap</code> should fix this issue.</p>
<p>I will note that adding <code>\pdfmapfile{+paratype-truetype.map}</code> to the preamble of my document fixes the problem, but this is not a good permanent solution.</p>
<p>I am running Xubuntu 18.04, TexLive 2017.</p>
| 0non-cybersec
| Stackexchange |
Stupid or genius?. | 0non-cybersec
| Reddit |
Convergence of $\sqrt[n]{a_n}$ given $a_{n+m}\leq a_na_m$.. <p>The situation is that $(a_n)$ is a sequence of (strictly) positive real nubmers such that $a_{n+m}\leq a_na_m$ for all $n,m\in\mathbb N$. Then we claim that $(\sqrt[n]{a_n})$ converges. It is easy to see that $a_n^{1/n}\leq a_1$ for all $n$, such that there is a convergent subsequence, but I cannot prove convergence. Thanks for the help!</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
PsBattle: This kids Halloween costume. | 0non-cybersec
| Reddit |
p tag in button tag not allowed?. <p>I have a <code><button></code> element and within it, a <code><p></code> element. The <code><p></code> element is used in combination with css, <code>margin-top</code>, in a class to vertical align the text within the button (the button has a specific height).</p>
<p>The html looks like this:</p>
<pre><code><button class="someClass">
<img ... />
<p class="anotherClass">Caption</p>
</button>
</code></pre>
<p>This works fine, the text is vertically aligned like it should be. However I get a warning inside visual studio 2012 saying: </p>
<blockquote>
<p>Element 'p' cannot be nested inside element 'button'.</p>
</blockquote>
<hr>
<p><strong>My questions:</strong> why isn't the <code><p></code> element allowed inside a <code><button></code> element? And what is the alternative?</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 |
In a REST service project, where should we put code that calls a third party REST API?. <p>My project is organized in layers like</p>
<ul>
<li>Configuration</li>
<li>Controller</li>
<li>Service</li>
<li>Repository</li>
<li>Domain</li>
</ul>
<p>Our REST Controller is in the Controller layer. We need to connect to another API via REST calls and I'm not sure if I should make a new Controller or do it in the Service layer.</p>
<p>I'm going to implement the REST calls with <a href="http://docs.spring.io/spring-framework/docs/4.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html" rel="nofollow">Spring's RestTemplate</a>.</p>
<p>The way our API will be used is like this: </p>
<ul>
<li>REST call is made that goes through our REST endpoint. </li>
<li>Our REST endpoint will call the third party API (either by calling another controller method or a service method).</li>
<li>We will then do a conversion between our format and the third party format</li>
<li>Then we will return the JSON of our format back to the client</li>
</ul>
| 0non-cybersec
| Stackexchange |
$\epsilon-\delta$ graph. <p>I'm wondering if it's possible to do something like this in Latex?</p>
<p><a href="https://i.stack.imgur.com/igILj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/igILj.png" alt="$\epsilon-\delta$ limit "></a></p>
<p>I have seen the similar question <a href="https://tex.stackexchange.com/questions/395153/how-to-reproduce-this-epsilon-delta-definition-diagram-with-tikz">here</a>, but I'm wondering if there is a way to shade, have dotted lines, and have the dot? Ideally, I'd want to have a way to show how different $\epsilon$ values affect the $\delta$ values, i.e., as $\epsilon$ gets smaller, there is a $\delta$ that works.</p>
<p>So far, I've simply recreated the image in PowerPoint which I then copy paste in my tex document.</p>
| 0non-cybersec
| Stackexchange |
[WP] Someone curses you to live in a loop like “Groundhog’s Day.” However, when you break the curse you realize that you were actually jumping through alternate timelines for a day, and leaving that timeline’s version of yourself to deal with the consequences.. | 0non-cybersec
| Reddit |
Don't want the subsection number to be italisized. <p>My MWE:</p>
<pre><code>\documentclass[12pt,twoside]{article}
\usepackage{titlesec}
\titleformat{\subsection}
{\normalfont\itshape}
{\thesubsection}{1em}{}
\begin{document}
\section{Section}
\subsection{Subsection}
\end{document}
</code></pre>
<p>This gives the subsection title as,
<em>1.1 Subsection</em></p>
<p>Instead, I want,
1.1 <em>Subsection</em></p>
| 0non-cybersec
| Stackexchange |
Can I use several pipelines as a argument?. <p>I want to check the difference of two file list </p>
<p>one is <code>ls | cut -c 1-4</code> another is <code>ls | cut -c 1-4 | uniq</code></p>
<p>does there exists any way can let me do like this <code>diff (ls | cut -c 1-4) (ls | cut -c 1-4 | uniq)</code> or anyway can let me without saving the two list command into files then check the difference of it ..</p>
<p>thanks</p>
| 0non-cybersec
| Stackexchange |
Christian Eriksen signs a new contract with Spurs until 2020. | 0non-cybersec
| Reddit |
Sure, it was there when you came back from the store. | 0non-cybersec
| Reddit |
WOTS+: Why does it XOR before running data through the hash function?. <p>I'm implementing WOTS+ in a new language and I can't seem to wrap my head around the fact that WOTS+ XOR's their input with its mask right before hashing it.</p>
<p>I tried to look for any reasoning but so far haven't found any. In my mind I also can't seem to come up with the logic that would make this more secure. For instance, <a href="https://tools.ietf.org/html/rfc8391#section-3.1" rel="noreferrer">this source</a> says:</p>
<blockquote>
<p>In each iteration, PRF is used to
generate a key for F and a bitmask that is XORed to the intermediate
result before it is processed by F.</p>
</blockquote>
<p>But it doesn't explain why this XOR is so important. Why is there a random mask needed in the first place? As far as I can understand, you are supposed to disclose the mask along with the signature and the message in order to get to the final public key that signed it.</p>
| 0non-cybersec
| Stackexchange |
Many Pokestops in Berlin are memorials to civilians that were murdered in the WW2.. | 0non-cybersec
| Reddit |
Is an arbitrary union of a chain of countable sets countable?. <blockquote>
<p>Let <span class="math-container">$C$</span> be a chain of countable sets, i.e. <span class="math-container">$\forall S, T \in C: S \subseteq T \lor T \subseteq S$</span>, and that every <span class="math-container">$S \in C$</span> is countable.</p>
<p>Then, is <span class="math-container">$\bigcup C := \{ t \mid \exists S \in C: t \in S\}$</span> countable?</p>
</blockquote>
<p>The answer is no, and a counter-example is <span class="math-container">$C = \omega_1$</span>, the first uncountable cardinal/ordinal.</p>
<p>Is there a more elementary example that doesn't involve, say, cardinals and ordinals?</p>
| 0non-cybersec
| Stackexchange |
We made it bois. | 0non-cybersec
| Reddit |
Martingale as the Product of i.i.d Non-Negative Random Variables. <p>I am currently working my way through Durett's Probability Theory, 4th edition and am a bit confused about what something means. It is problem 5.2.9.</p>
<p>Let $Y_{1},Y_{2},...$ be nonnegative i.i.d random variables with $\mathbb{E}Y_{m}=1$ and $\mathbb{P}\left(Y_{m}=1\right)<1$. Define $X_{n}=\prod_{k=1}^{n}Y_{n}$.</p>
<p>The first two parts of the problem I can do. First is to show that $X_{n}$ is a martingale. Second is to show that $X_{n}\to0$ a.s.</p>
<p>The part I am confused about is: Use the strong law of large numbers to conclude that $\frac{1}{n}\log X_{n}\to c<0$.</p>
<p>My solution uses Jensen's inequality with $\varphi(x)=\log(x)$ and then finds that $\mathbb{E}\log Y_{i}\in[-\infty,0]$. We then can use this in the strong law of large numbers since $\frac{1}{n}\log X_{n}=\frac{1}{n}\sum_{i=1}^{n}\log Y_{i}$ and this converges to $\mathbb{E}Y_{i}=\mathbb{E}Y_{1}$.</p>
<p>What I don't understand is what this means? What information about $X_{n}$ is this result giving us? I tried looking at this from the context of a non-negative distribution, such as considering $Y_{i}\sim Poisson(\lambda=1)$, but that didn't help. My other thought is that this is saying something about $\mathbb{E}\left[\sup_{n\in\mathbb{N}}X_{n}\right]$.</p>
<p>If someone could explain the meaning of this result, I would be very appreciative!</p>
| 0non-cybersec
| Stackexchange |
Report: Josh Gordon decision coming in 1-3 weeks. | 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 |
Simplifying $27^\frac23$ without a calculator. <p>I am trying to solve $27^\frac23$ without a calculator and so far I did this:
$$27^\frac23=27^{\frac13+\frac13}=27^\frac13\cdot27^\frac13=\sqrt[3]{27}\cdot\sqrt[3]{27}=3\cdot3=9$$
My book, however, presents a different way of solving this:
$$27^\frac23=\sqrt[3]{27^2}=\sqrt[3]{3^6}=3^2=9$$
I know that $27^\frac23=\sqrt[3]{27^2}$ because having an exponent of $\frac23$ is the same as calculating the square of the base and then the cubic root, or the other way around.</p>
<p>What I don't understand is how 27 becomes $3^6$. So, my questions are:</p>
<ol>
<li>In my attempt I knew that the cube root of 27 is 3, so solving this was easy. But what if there was a more complicated number instead of 27? Would I be able to solve the problem this way?</li>
<li>What was the thought process used to convert 27 into $3^6$?</li>
</ol>
| 0non-cybersec
| Stackexchange |
Android Malware Reverse Engineering [PDF]. | 1cybersec
| Reddit |
How to print/output overlapping diamonds in python3. <p>How would you output n overlapping diamonds with each diamond having a height of 2n-1. Here are the required outputs for:</p>
<p>n = 3</p>
<pre><code> * * *
* * * * * *
* * * * * * *
* * * * * *
* * *
</code></pre>
<p>n = 4</p>
<pre><code> * * * *
* * * * * * * *
* * * * * * * * * * * *
* * * * * * * * * * * * *
* * * * * * * * * * * *
* * * * * * * *
* * * *
</code></pre>
<p>n = 5 </p>
<pre><code> * * * * *
* * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * *
* * * * *
</code></pre>
<p>I have tried some code using loops. I have managed to output each shape correctly w.r.t the input n. However, I could not display the diamonds on a 'single line' only on multiple lines like this:</p>
<p>n = 3 </p>
<pre><code> *
* *
* * *
* *
*
*
* *
* * *
* *
*
*
* *
* * *
* *
*
</code></pre>
<p>This is the code I used:</p>
<pre><code>n = int(input()) #for number of diamonds per row
height = 2*n - 1
for j in range(1, n + 1): #for printing h no. of diamonds
#from row 1 to middle row
for row in range(1, (height + 1)//2 + 1):
for spaces in range((height + 1)//2 - row): #print spaces per row
print(" ", end = "")
for stars in range((2*row) - 1): #print stars per row
if stars % 2 == 0:
print("*", end = "")
else:
print(" ", end = "")
print()
#from middle row to last row
for row in range((height + 1)//2 + 1, height + 1):
for spaces in range(row - (height + 1)//2):
print(" ", end = "")
for stars in range((height + 1 - row)*2 - 1):
if stars % 2 == 0:
print("*", end = "")
else:
print(" ", end = "")
print()
</code></pre>
| 0non-cybersec
| Stackexchange |
The good old Russian turn signal. | 0non-cybersec
| Reddit |
OpenType font embedding permissions: what exactly do these mean?. <p>In our web site, we are using <code>@font-face</code> to embed fonts (we're using Font Squirrel). Currently, we are using only free fonts, but I'd like for us to purchase some high-quality OpenType fonts. One option is an <a href="http://store1.adobe.com/cfusion/store/html/index.cfm?code=1900&store=OLS-US&nr=0&event=displayFontPackage&newsample=InstantPage&view=View" rel="nofollow">Adobe "Value Pack"</a>. <a href="http://www.adobe.com/type/browser/info/embedding.html" rel="nofollow">According to Adobe</a>, they allow embedding in all electronic documents.</p>
<p>What we have some confusion about is which permission settings are required to allow the use of <code>@font-face</code>. Here are the permissions mentioned by Adobe's site:</p>
<blockquote>
<p>No Embedding: This permission signals that the font or any portion of the font may not be embedded in any electronic document. While there are no Adobe Type Showroom fonts with this permission, some third-party font foundries may set their fonts to “no embedding” or prohibit embedding through their end user license agreement.</p>
</blockquote>
<p>Obviously, couldn't use these fonts at all.</p>
<blockquote>
<p>Preview & Print: A font with an embedding permission of Preview & Print allows the font, either fully or as a subset, to be embedded in an electronic document solely for the purpose of viewing that document on screen and/or printing that document. While a font with a Preview & Print embedding permission (either through data in the font file or the font’s license agreement) may be embedded in an electronic document, the embedded font may not be used to further edit the document it is contained in or to edit or create other documents. Most fonts in the Adobe Type Showroom are set for Preview & Print embedding.</p>
</blockquote>
<p>Would a static web page fall under this category?</p>
<blockquote>
<p>Editable: Fonts with an editable embedding permission can be embedded in electronic documents, and the embedded font can then be used by the recipient of the electronic document to view, print and further edit or modify the text and structure of the document in which it is embedded. These changes or edits can then be saved in the original document. Several fonts in the Adobe Type Showroom, including all Adobe Originals typefaces, other Adobe-owned typefaces and certain third-party font foundry typefaces, allow for editable embedding.</p>
</blockquote>
<p>Would a web page that can include user-generated content fall under this category?</p>
<blockquote>
<p>Installable: Fonts with an installable embedding permission may be embedded in electronic documents for viewing, printing and editing, with the added capability that they may be also be permanently installed on the computer that receives the electronic document containing the embedded font. This allows the font to be used to create and author new documents. It is intended that the recipient of a font set to installable embedding obtains all of the same rights as the person who originally licensed the font.</p>
</blockquote>
<p>Would the fact that a browser uses a cache make it so that all <code>@font-face</code> fonts require the "Installable" permission?</p>
<p>Can anybody here clear up our confusion about license terms and embedding fonts on web pages?</p>
| 0non-cybersec
| Stackexchange |
Decline bench over incline bench? . I was thinking about this today, as I was inclining. My sticking point on flat bench is right at the bottom. I've never failed, to the best of my recollection, on any rep I've gotten more than 2" off my chest. If incline focuses more on triceps/delts than standard flat benching, and decline benching focuses more directly on the pecs, would it not make sense to add in some heavy decline work, since my sticking point indicates pec weakness? | 0non-cybersec
| Reddit |
How to completely delete and reinstall a printer driver?. <p>The printer has some issues and I believe that if I delete completely the printer driver and then I reinstall it, it will work.</p>
<p>How can I do this?</p>
<p>Removing the printer and then adding it again doesn't deletes the driver I guess.</p>
| 0non-cybersec
| Stackexchange |
My plan to lose weight while still being able to play hours of Diablo 3.. ~220lbs, 5'7', male. I want to lose about 30 pounds. 190 is a very comfortable weight for me. 180 would be better.
I eat well and I run from time to time, but I also to spend lots of time standing still, or sitting still, while playing video games. Then I decided to change that. I didn't want to give up video games, but I wanted to exercise more often. So! I combined them into [this!](http://i.imgur.com/cR36s.jpg)
I do not think I have ever made a better decision in my life, ever! Now I walk 2mph while I play my games. I am clocking in at over 21 miles a week and every day I feel better about myself. I am losing weight slowly and at a safe pace. This is something all gamers should play on, all the time.
The primary components clock in at under $350 ([desk](http://www.ikeafans.com/home/modular-desks-ikeas-jerker-is-undisputed-king/) and [treadmill](http://www.ebay.com/itm/CONFIDENCE-FITNESS-NEW-ELECTRIC-FOLDING-TREADMILL-W-PRO-TRACK-MOTORIZED-BELT-/330723563855?pt=US_Cardio_Treadmills&hash=item4d00a9194f)) and it is very easy to do. It does not effect your ability to play games or use a PC if you walk the proper speed. I have found that somewhere between 1 and 2.5 MPH is perfect, depending on the task.
Edit: I have stared a new diet also. I am not neglecting that part of weight loss. This is also not my only form of exercise. I run a few (3+) time a week and am doing other things like using the dumbbells you see. Push ups, sit ups, and and using a total gym. This is just a way to turn the gaming part of my life into part of a total fitness and weight loss program instead of it being counter to my over all goals.
Edit: It is not hard to play like this. I do not run. I walk. I use a mouse, it is easy. Doesn't mess with your game at all. Keep it around 2 mph and using a computer doesn't change.
Plus, this was cross posted to Gaming and Diablo, like some of you suggested. Give it some love! | 0non-cybersec
| Reddit |
How to safely control Linux with a light switch?. <p>I am trying to figure out if I can make a program bootup on linux, like a light switch. Power on and off at will. So, if the program is running, I can shut it off whenever I want, but, so that files won't corrupt when I do so. Kind of like those computers in cars nowadays. They can turn the computers on and off whenever the car is turned on or turned off at will. How, can I go about doing that with Linux?</p>
| 0non-cybersec
| Stackexchange |
Do I need to make multiple executables for targeting different instruction sets?. <p>Consider I have a program to do AES operations.</p>
<p>Some advanced CPUs have AES-NI instruction set, and other CPUs don't have.</p>
<p>Must I compile my program into two executables: A_with_aes_ni.exe and B_without_aes_ni.exe ?</p>
| 0non-cybersec
| Stackexchange |
[OC] My first pixel art pokemon. | 0non-cybersec
| Reddit |
"can't return a result set in the given context" error when calling stored procedure - differences between mysql 5.0 and 5.5?. <p>I have a <a href="https://gist.github.com/4692790#file-edgelisttonestedset-sql" rel="nofollow">stored procedure</a> to regenerate leafs (nleft, nright) in simple (id, id_parent) tree. (<a href="https://gist.github.com/4692790#file-data-sql" rel="nofollow">sample table</a>)</p>
<p>When I'am calling </p>
<pre><code>CALL EdgeListToNestedSet( 'category', 'id_category', 'id_parent');
</code></pre>
<p>it works great with version <strong>5.5.29</strong> of mysql but on <strong>5.0.26</strong> I've got an error: </p>
<pre><code>#1312 - PROCEDURE test.EdgeListToNestedSet can't return a result set in the given context
</code></pre>
<p>Any ideas what can be wrong and how to make it working?</p>
| 0non-cybersec
| Stackexchange |
Mate panel not working with Compiz in 16.04. <p>So, I tried to set up Compiz as my window manager in Mate. I am running Ubuntu 16.04, but I didn't install Ubuntu Mate. Instead, I installed a different flavor of Ubuntu and installed Mate in it. When I login I can't move Windows around and the panel for Mate is completely unresponsive. I can do Ctrl+Alt+T to open a terminal and such, but I want to be able to use Compiz in Mate so I can use features like the Compiz Cube. I believe I used <a href="http://www.webupd8.org/2014/11/how-to-use-compiz-in-ubuntu-mate-1404.html" rel="nofollow noreferrer">this</a> guide to get Compiz to work, except I had no need for installing Compiz because it is already installed and used as default in the official Ubuntu flavor.</p>
| 0non-cybersec
| Stackexchange |
Latest iPhone iOS Mail app client size attachment size limit. <p>Our Exchange Server with ActiveSync used by mobile clients has a 300 MB attachment limit.</p>
<p>We noticed that the Mail app on the latest iPhone removes attachments over a certain size (20 Mb??) before sending emails.</p>
<p>Other software (ex. AquaMail on Android) manages to send attachments up to 80 MB with the same email account. </p>
<p>We are 100% sure there are no iPhone specific smaller limits on the server side.</p>
<p>Does anyone know where to find the official maximum attachment size usable by the Mail app on iPhone?</p>
<p>I found this - <a href="https://support.apple.com/en-us/HT202305" rel="nofollow noreferrer">https://support.apple.com/en-us/HT202305</a> - but that's specific to iCloud mail accounts</p>
| 0non-cybersec
| Stackexchange |
Limit of a Bessel function is a Gaussian. <p>Let <span class="math-container">$x$</span> and <span class="math-container">$\nu$</span> be real. Is the following true?</p>
<p><span class="math-container">$$
e^{-\frac{x^2}{4}}=\lim_{\nu\rightarrow\infty}\Gamma(\nu+1)\left(\frac{2}{\sqrt\nu x}\right)^\nu J_\nu\left(\sqrt{\nu} x\right),
$$</span></p>
<p>It appears to be true numerically, but I couldn't prove it. </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 |
My friend's girlfriend stayed up till 5am creating this masterpiece: Kil'jaden Smith. | 0non-cybersec
| Reddit |
show that $\cos(\theta_{2}-\theta_{3})+\cos(\theta_{3}-\theta_{1})+\cos(\theta_{1}-\theta_{3})+1=0$. <p>If $$a = \cos\theta_{1} + i\sin\theta_{1}, \\ b = \cos\theta_{2} + i\sin\theta_{2}, \\ c = \cos\theta_{3} + i\sin\theta_{3}$$ and $a+b+c=abc$,
then show that </p>
<blockquote>
<p>$$\cos(\theta_{2}-\theta_{3})+\cos(\theta_{3}-\theta_{1})+\cos(\theta_{1}-\theta_{2})+1=0$$</p>
</blockquote>
<p>I am confused with where to start. I did try to proceed with the De Moivre's Theorem but was not able to get hold of the required equation. </p>
<p>Kindly provide a hint. </p>
<p>Thanks in advance !</p>
| 0non-cybersec
| Stackexchange |
Default key for Python builtin max/min functions. <p>The documentation for the built-in functions <code>max</code> and <code>min</code> in Python indicate that the <code>key</code> parameter should operate like it does in the <code>sort</code> function. In other words, I should be able to do this:</p>
<pre><code>a = [1, 2, 3, 4]
max(a, key=None)
</code></pre>
<p>However, this raises an error:
<code>TypeError: 'NoneType' object is not callable</code></p>
<p>But, if I do something similar with the <code>sort</code> function, I get the expected results:</p>
<pre><code>a = [1, 2, 3, 4]
a.sort(key=None)
</code></pre>
<p>No error is generated and the default sort is used. Several books also imply that I should be able to get away with the same behavior in the <code>max</code> and <code>min</code> functions. See this excerpt from <a href="http://books.google.com/books?id=JnR9hQA3SncC&lpg=PA58&ots=Jb3UEt090u&dq=set%20key%20argument%20to%20none%20python%20max&pg=PA58#v=onepage&q=set%20key%20argument%20to%20none%20python%20max&f=false">Python in a Nutshell</a>.</p>
<p>Is this really the default behavior of the <code>max</code> and <code>min</code> functions? Should it be? Shouldn't they match the sort function?</p>
| 0non-cybersec
| Stackexchange |
7 Amazing Brain Hacks. | 1cybersec
| Reddit |
Computer using hard drive in place of RAM?. <p>I am doing some school work about computer components and I came across this piece of information.</p>
<blockquote>
<p>you will find that if you don’t have enough RAM it can really bog down
your computer. <strong>This is because your operating system will try to use
your hard drive and your hard drive is a lot slower than the RAM</strong>.</p>
</blockquote>
<p>I don't understand this and don't want to learn the wrong facts, could someone please clarify this and if it is true or not?</p>
| 0non-cybersec
| Stackexchange |
7 Plus camera is really good 👌🏻. | 0non-cybersec
| Reddit |
Python: How to offer a single executable file without showing the code in 2020. <p>Stack Overflow has many questions about</p>
<ul>
<li>How to give someone else a python script protecting the source code</li>
<li>How to compile python files</li>
<li>How to create packages and deploy the code</li>
</ul>
<p>But I could not find the answer to my problem:</p>
<p>I want to give someone else my python script, without giving him the source code. My current attempt is <strong>compiling</strong> the file and giving away the .pyc file. </p>
<p>This is for sure not the best solution. Moreover, my code is made by different files. To offer a single executable pyc file, I put the code all together in a single file before compiling it: a true hell for a developer</p>
<p>How can I obtain my goal in a cleaner way?</p>
<h2>Side-notes</h2>
<p>I know .pyc files are not going to hide so much, but it is for sure better compared to giving .py files</p>
<p>Still, .pyc files can be incredibly problematic (as they can be system-dependant)</p>
| 0non-cybersec
| Stackexchange |
JFK was a lucky nigga [NSFW]. | 0non-cybersec
| Reddit |
Orbits of independent sets of the hypercube. <p>How does one enumerate the distinct orbit classes of independent sets of the hypercube modulo symmetries of the hypercubes? </p>
<p>The counting of the number of independent sets in an <span class="math-container">$n$</span>-dimensional hypercube modulo symmetries of the hypercube has been done up to <span class="math-container">$n=5$</span> by D.Eppstein as seen in the <a href="http://oeis.org/A060631" rel="nofollow noreferrer">OEIS</a>. We do have a bound on the number of independent sets of a regular graph as found by <a href="http://yufeizhao.com/papers/indep_reg.pdf" rel="nofollow noreferrer">Y.Zhao</a>. But I'm not aware of other results to this old problem of mine.</p>
<p>Does anyone know of a resource on how to go about this enumeration? I've already coded a brute-force program to do this listing and had reproduced Eppstein's results up to <span class="math-container">$n=5$</span>. The <span class="math-container">$n=6$</span> took too much time and memory space on my personal computer that it always crashed. But this was years ago. I was just reminded of this recently, so here's my first post on MO.</p>
| 0non-cybersec
| Stackexchange |
How to Calculate the Temperature from Cricket Chirps (Fahrenheit or Celsius). | 0non-cybersec
| Reddit |
Co-worker checking in due to having the weekend away from my GF and feeling a bit more of top of my depression.. | 0non-cybersec
| Reddit |
Is it possible to expand a Hyper-V drive if there are checkpoints?. <p>I have a Hyper-V VM with 3 checkpoints. Now I want to extend the virtual hard drive, but I cannot because there are checkpoints.</p>
<p>Is there a tool that would allow me to do it anyway? I would like to preserve the checkpoints, of course.</p>
<ul>
<li>Both the host and the guest machines are Windows 10.</li>
<li>The drive is VHDX.</li>
<li>The VM is Gen2.</li>
</ul>
| 0non-cybersec
| Stackexchange |
[NO SPOILERS] Harpy Eagle twinning with the Night King. | 0non-cybersec
| Reddit |
How the hell did you get there? Btw this is from BBC and he's okey. | 0non-cybersec
| Reddit |
How can I unlock a Microsoft .docx document?. <p>I have a Microsoft .docx document that is locked down and can't even be viewed without the forgotten password. </p>
<p>I'm wondering if there is an easy way to unlock it or get the computer to remember the password itself with a hint or something.</p>
| 0non-cybersec
| Stackexchange |
Digital Marketing Services in Delhi. | 0non-cybersec
| Reddit |
Revert a deleted file several commits later. <p>So I started down a new branch of development and decided that some files needed to go.</p>
<p>Several commits later I realise that a certain decision was wrong and I need a couple of the files back.</p>
<p>My initial thought of how to get the files back is to just take copies from the other branch and commit them to the head of the new branch, but I worry that this means that the files won't be associated with their old history.</p>
<p>Is there a way to do this that keeps the history intact?</p>
<p>I'm using mercurial version 1.5.2</p>
| 0non-cybersec
| Stackexchange |
It doesn't bleed but it stings, sometimes. My mama said physical appearances don't matter. That's why, as a kid, I did well in my studies, follow all the rules, and believe that people will love you if you're good and sincere. Yet, I had friends that talk to me when they need something. People would avoid me and think I'm weird since I don't talk much (Because I know I'd get rejected. I experienced it a lot of times before). I was always the second option. I told mama how sad my high school years were but she comforted me with words that I know were too good to be true. Mama loved to sugarcoat things. Even though I'm ugly, she assured me that I'm beautiful. Even though I'm fat, she told me that I have a healthy body. That was then, 3 years to be exact. Recently, I asked mama the same questions. It breaks my heart that mama didn't reply. She would change the subject to not hurt my feelings with the truth. The treatment that people gave me in the past wasn't that different today. Some would be painfully straightforward in their opinions. Others would choose mild words but the meaning's still the same. But that is okay. I accepted it then and now. I already know that this would happen. I was wounded with words and experiences that lashed my childhood and early teenage years. However, time's a healer. I became partially numb. The only thing that's left is a scar. It stands as a remembrance. Yes, it's invisible. It doesn't bleed. But it definitely stings, sometimes. | 0non-cybersec
| Reddit |
Iran's elite Revolutionary Guards Corps thwarted a Mossad assassination attempt against one of its nuclear scientists, a senior Iranian security official said on Saturday.. | 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 |
Does anyone think that saying there is a twist is one of the worst, if not the worst, spoiler you can give?. I can't help but notice that even when people are being knowledgeable that you don't want to know anything about a movie, they don't mind saying there's a twist as if that's not a spoiler. For myself, it's probably the worst thing you could have said out of all other things since it totally ruins the entire experience and effect of a twist.
Instead of being able to play along and then have your mind blown, you end up not trusting and second guessing everything anyone says and then when the twist comes it's just like "oh, that's what it was."
While I appreciate the fact that people who do this are trying to not ruin the movie for me, I feel it is crucial to know that saying a twist exists is in fact, a spoiler. | 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 |
Mall Walking with a bit too much enthusiasm (1987). | 0non-cybersec
| Reddit |
Just one request for Destiny 3: Don't remove tons of features like you did with D2.. **Don't just up and abandon like 90% of the QoL changes in the transition to D3 like what happened between D1 and D2:**
* Strike Scoring was added to D1 and it was phenominal. In D2? Only the Nightfall has scoring and it's got no medals, and multikills and kill streaks aren't worth crap.
* Strike Specific loot was a huge part of endgame Strike content in D1. D2? It was all added later as Nightfall exclusive.
* Random rolls in D1? D2 had fixed rolls for everything until we begged them to change it back.
* D1 had collections for ships and sparrows and stuff. Again, removed in D2 and we had to beg for it back.
* In D1 we had more control over what game modes we played in the Crucible, had 6v6, Rumble, Mayhem, and it was good. In D2? It launched with just 4v4. That's it, just 4v4. We had to wait for Rumble, we had to wait for 6v6. We had to wait for Private matches even though D1 had it first. We had Rift in D1, and that *still* hasn't come back!
* In D1 we could pick specific Strikes, in D2 they took it out and we had to beg them to put it back in.
* In D1 we could replay any story mission whenever we wanted. D2? Campaigns are once and done. We want to replay campaign missions? We can only do the ones that happen to be available that day. The only way to do a complete playthrough anymore is to delete a character and start over, that sucks!
* In D1 we had lore pickups, in D2 we had to beg before they were put back in.
* In D2, they decided that we'd be better off having every weapon that was remotely powerful crammed into one slot and being forced to carry 2 primaries. Again, we begged for it to be changed back.
* In D1 we had the Grimoire. Yeah, it was online only, and yeah we've got Lore in D2 now...but the original solution to the Lore being online only (and thus inconvenient) was for there to be *no Lore*. Another thing we had to beg Bungie to add back.
**Summary:**
Things like Private Matches in the Crucible, all of the different Game Types, Strike Scoring, that new thing where we can preview armor of other classes, Gambit, private matches in that, Trials, all of that needs to be in D3 *from the beginning*. It needs to be in D3 when it launches. We shouldn't have to sit there with a subpar game for several months just for it to get somewhat close to the standard set by the previous game.
The whole point of having a sequel is for it to be *better*, not worse.
We don't want any of this trimming the fat nonsense! If anything, we want the game to be fatter! More juicy!
Please, take your time and make D3 the best it can possibly be!
**A tiny personal request**
Could you also let us recustomize our characters' appearances in D3...and maybe give them actual names? My Hunter's been stuck forever with no name and a really fugly haircut, and the lack of barbers/cosmetic surgeons on the Tower is really starting to irritate him.
Edit: Formatting and grammar.
Edit 2: Holy cow! Right at the top of the subreddit!
*Ahem*
To any Bungie employee that might be reading this, I love your company and I love this series. I complain because I want the series to be as good as it can possibly be. I don't know if Destiny 3 will be the final game, or if there will be a Destiny 4. All I want is for the transition to Destiny 3 to be an upgrade as opposed to a downgrade.
Bungie, *you* control when the game is released now, you don't have to adhere to a release schedule decided upon by someone else. Please take advantage of that. I don't care if you have to delay the game, I just want it to have all of the features we're used to right out of the gate when it launches.
Take your time, please. | 0non-cybersec
| Reddit |
My friend was talking to me about his time at homecoming.. | 0non-cybersec
| Reddit |
Yen (¥) symbol for backslash (\) in TexWorks. <p>Hi I am running TexWorks 0.6.2 on windows 10. In my text editor ( of texworks) whenever I type backslash (<code>\</code>) it is replaced by yen symbol (¥). The code compiles normally and if I copy the code and paste it on notepad or some other editor it shows (<code>\</code>). I was wondering if there is some setup in TexWorks which is causing this issue. I don't have this issue on command prompt or any other editor.</p>
| 0non-cybersec
| Stackexchange |
I think I may have overwritten my harddrive while installing Ubuntu. <p>Crappy first experience with Ubuntu, and I think all my old files are gone. So I just downloaded Ubuntu yesterday and have been trying to install it. Errors every single step of the way. I won't mention them all but here are the pertinent ones:</p>
<p>I followed <a href="http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu" rel="nofollow noreferrer">Ubuntu's directions to create a bootable USB</a>, and when I restarted my computer through Ubuntu, I clicked the Install icon, clicked through the settings, etc and then clicked "Install now." All it showed was a "loading" cursor. Though it was installing and maybe it's just gonna take a while, went to sleep, woke up this morning and it was still showing the same screen. Apparently their own Installation routine is screwed.</p>
<p>So I googled and followed an example of how to install with more manually selected options, in case the default ones were incorrect. I selected the option called "Something else" as the installation type. I created a boot, ext4 by partitioning free space in memory. I did <strong>NOT</strong> select "delete everything" or overwrite Windows. After clicking "Install now" it hung on "Detecting file systems." It clearly was not moving, and it didn't give me an option to cancel. The tiny box supposedly for displaying output could barely be read, and cropped off a few letters on the left side -- couldn't read the errors, and I couldn't copy them either. Wanted to terminate the process screen because I was so frustrated at the poor design of Ubuntu, so I found a utility called xkill, went to use it, but the stupid installer window had disappeared behind the other windows, so I couldn't click the window.. figured I could go and click its icon on the left, then BAM the whole system terminates!! and I am asked to log in, even though I haven't made a username!</p>
<p>So I had to restart my computer. Doesn't get anywhere past the very first default loading screen--after that it just shows a black screen with a blinking underscore. ctrl+alt+del to restart again and choose F12 to see what options I have. Running from HDD is fu**ed. Can only choose Ubuntu, and when I get back in, the "OS" icon I once saw is gone--I can't see any of my old files. Many years of files GONE IN AN INSTANT. What kind of crap is this, Ubuntu? Jesus Christ.</p>
<p><strong>Is there any way I can restore my old memory???? PLEASE. THANKS.</strong></p>
| 0non-cybersec
| Stackexchange |
SBS: Documentary: Japanese Subs at Pearl Harbor?. | 0non-cybersec
| Reddit |
dhclient can't get ip address. <p>I have two interfaces: eth0 and eth1. eth0 gets ip address upon bootup, but eth1 never gets ip address.
Here's what I get with </p>
<blockquote>
<p>sudo dhclient eth1</p>
</blockquote>
<pre><code>Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth1/08:00:27:99:8e:91
Sending on LPF/eth1/08:00:27:99:8e:91
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3 (xid=0x3b2d7ff3)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5 (xid=0x3b2d7ff3)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0x3b2d7ff3)
</code></pre>
| 0non-cybersec
| Stackexchange |
Pork Potstickers [OC][1000x750]. | 0non-cybersec
| Reddit |
This drawing my nephew made. | 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 |
New law mandates Texas schools have “Stop the Bleed” stations. | 0non-cybersec
| Reddit |
didn't expect that.. | 0non-cybersec
| Reddit |
A Spider eating another spider. | 0non-cybersec
| Reddit |
Squat and OHP Form Check. Hi, currently doing strong lifts. These are some videos from the OHP / DL day. Battery ran out after OHP. Any and all advice is appreciated.
Height: 5' 6"
Weight: 224 lb
Exercise:
Squat High back (225 lb)
Overhead Press (110 lbs)
Questions:
For squats I'm concerned with the width of my legs. Also I think I have a slight preference on my right leg which should be visible in the "squat back" video. Also I'd like to check if my back straightnes is straight enough. Also is the speed i'm going down. Is it prone to injury or not? Prior I was having a slight issues with pain in my hip, but after doing some warm-ups(Agile 8) this particular weight was alot easier. Is my form potentially affecting or contributing to this?
For OHP, I think my back is going back too much and i'm not stabalizing enough?
OHP Back - https://youtu.be/3SzPurvvUN0
OHP Side - https://youtu.be/qTyKkOcj7KA
squat back - https://youtu.be/2evPIkVpRe0
squat side - https://youtu.be/Y9b4lM2ZuNc | 0non-cybersec
| Reddit |
Is there a connection between working mothers and young adult mental health?. There has been a large increase in the number of working mothers since the 1990's (in the UK) and, in a slightly later time period, an increase in the number of teenagers and young adults suffering from anxiety / depression (only some of which is from decrease in stigma and increase in diagnosis). Is there any evidence of a connection? | 0non-cybersec
| Reddit |
Hugging the Moon. | 0non-cybersec
| Reddit |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.