text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Toddler (2y) chews up foods and spits them out. My son has a strange habit of chewing up foods for a few minutes and eventually spitting the mashed up food all over his plate/the table/his shirt. He's good at trying a lot of foods, but I'm a bit concerned about how little seems to stay in. This happens with a variety of foods depending on his mood, but most commonly with crunchier things like apples or chewy things like shrimp.
He's been doing this for a whole year, so I don't think it's a cry for attention. He never seems to make a gagging noise…he just spits it out when he's done with the flavour. I've tried telling him not to spit, I've tried ignoring it, I've tried serving softer textures/peeling fruit - all with no result/improvement. Any suggestions, or is this just part of normal toddlerhood? | 0non-cybersec
| Reddit |
Google logo, map tiles and other google images don’t load in Chrome (HTTP 400). <p>There are several similar entries in stackoverflow for this error (HTTP 400), but I haven't found anything relevant to mine; so if this is already answered... my apologies.</p>
<p>Chrome is my default browser, and I use many Google services everyday, like Gmail, Maps, Docs, etc.</p>
<p>However, time-to-time, when I am logged-in to Google, I notice some assets are not loading from Google websites (*.google.com).</p>
<p>For example; Google logo in upper-left corner at main www.google.com search results; or image tiles in Maps.</p>
<p>Those missing images (or assets in general images, JS, CSS) have references in the DevTools Console: <code>Failed to load resource: the server responded with a status of 400</code></p>
<p>Once I clear storage in DevTools > Application, naturally I get logged out, but those missing assets start behaving normal and load as expected. I can log back in to Google services and use them without any issues, until next time it happens.</p>
<p>Since clearing storage (cookies and cache) fixes the issue, I don't think it's related with any of the installed add-ons (read AdBlock).</p>
<p>Has anyone experienced this issue, or better yet have a solution for this? Or should I continue blaming Google in general? :)</p>
| 0non-cybersec
| Stackexchange |
My best friend and me. He's one cool cat. . | 0non-cybersec
| Reddit |
Evolved Pokémon should give you more candy if transferred. I think it's pretty silly that an evolved Pokémon, which took so many candies to achieve, only gives you one candy if you transfer it. I hope this changes in the future as it would make total sense | 0non-cybersec
| Reddit |
Earth faces sixth ‘great extinction’ with 41% of amphibians set to go the way of the dodo. | 0non-cybersec
| Reddit |
sddm-greeter ignores HideUsers in /etc/sddm.conf. <p>I'm using lubuntu disco with displaymanager sddm</p>
<pre><code>cat /etc/X11/default-display-manager
/usr/bin/sddm
</code></pre>
<p>On my system are 2 users the main one and a test account.
I'll try to hide the test user in sddm.</p>
<pre><code>cat /etc/sddm.conf
[Autologin] #original entry
Session=Lubuntu #also original entry
[users]
RememberLastUser=true
HideUsers=testie
[Theme]
EnableAvatars=true
FacesDir=/usr/share/sddm/faces
</code></pre>
<p>when i start sddm-greeter in testmode the user is still present.</p>
<pre><code>sddm-greeter --test-mode
[13:54:22.459] (II) GREETER: High-DPI autoscaling not Enabled
[13:54:22.491] (II) GREETER: Reading from "/usr/share/xsessions/Lubuntu.desktop"
[13:54:22.491] (II) GREETER: Reading from "/usr/share/xsessions/lxqt.desktop"
[13:54:22.491] (II) GREETER: Reading from "/usr/share/xsessions/openbox.desktop"
[13:54:22.494] (II) GREETER: Loading theme configuration from "qrc:/theme/theme.conf"
[13:54:22.498] (EE) GREETER: Socket error: "QLocalSocket::connectToServer: Invalid name"
[13:54:22.522] (II) GREETER: Loading qrc:/theme/Main.qml...
[13:54:22.609] (II) GREETER: Adding view for "LVDS1" QRect(0,0 1600x900)
</code></pre>
<p>Other changes are (like own avatar for main user) are showning up.</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
What are the 3-dimensional subspaces (or quotient spaces) to which the projections are made in the given figures? (Topological Data Analysis). <p><strong>EDIT: I was told by my supervisor to implement the algorithm first and then look back over the question because "<em>biologists' papers do not always contain the information that is necessary to reproduce their calculations</em>". That is to say that I will come back to this question at some point when I've had an epiphany.</strong></p>
<p>I've just started my mathematics thesis on Topological Data Analysis last week and I was given a question to resolve for next week:</p>
<p>"<strong><em>What are the 3-dimensional subspaces to which the projections are made in figure A? Are they really subspaces or are they quotient spaces?</em></strong>"</p>
<ul>
<li><p>These are the figures which are mentioned:
<a href="https://i.stack.imgur.com/bZdas.png" rel="nofollow noreferrer"><em>A. Branching analysis</em></a></p></li>
<li><p>A link to where the figures are from (p.10): <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6216255/pdf/EMBR-19-e46171.pdf" rel="nofollow noreferrer"><em>Single-cell transcriptomics reveals distinct
inflammation-induced microglia signatures</em></a></p></li>
</ul>
<p>I am actually not sure how to proceed to resolve this question. I've skimmed over the paper and I didn't spot anything helpful, except for the figure description:</p>
<p>"<em>leads to nine distinct clusters in a two-dimensional state space inferred by generalized regression modelling</em>"</p>
<ol>
<li>Why do they talk about a two-dimensional state space. The question mentions a three-dimensional space.
<a href="https://mathoverflow.net/users/353/j-c"><strong>j.c.</strong></a>: "<em>The three lines you call axes actually arise from the branching analysis performed by the software Monocle 2. <a href="http://cole-trapnell-lab.github.io/monocle-release/docs/#analyzing-branches-in-single-cell-trajectories" rel="nofollow noreferrer">Relevant documentation</a></em>" </li>
<li>Using some method we project an n-dimensional space to a 2 (or 3)-dimensional space. What does he mean by "<em>subspaces/quotient spaces to which the projections are made</em>" How would I check this?</li>
<li>Do I need to find out how the branching analysis or <strong>G</strong>eneralized <strong>R</strong>egression <strong>M</strong>odelling works? By G.R.M. do they mean this: <a href="https://mathoverflow.net/users/353/j-c">Generalized linear model</a>?</li>
</ol>
<p><strong>It would be great if someone could assist me with this problem, or maybe make the question more understandable.</strong></p>
| 0non-cybersec
| Stackexchange |
Torsor whose ring of function is a field. <p>Let $G$ be an affine group scheme over $\mathbb{Q}$. Then it is easy to see that if the ring of regular functions $H^0(G,\mathcal{O}_G)$ is a field then $G$ is the trivial group. </p>
<p>Let $P$ be a $G$-torsor (for the etale or fpqc topology). Is it possible for $H^0(P,\mathcal{O}_P)$ to be a field of transcendance degree $>0$? </p>
| 0non-cybersec
| Stackexchange |
How does the memory of a 64bit and 32bit processor work. <p><a href="https://www.geeksforgeeks.org/difference-32-bit-64-bit-operating-systems/" rel="nofollow noreferrer">In this article</a>, the author states that a 64bit processor can theoretically reference 2^64 bytes of memory. What does he mean by this statement, or rather the word, <em>reference</em>?</p>
<p>Also, I visualize the entire RAM to be divided into little memory cells, each having an n-bit binary number that represents a given instruction or value that is needed for running any program in the computer. <strong><em>Is this visualization right?</em></strong></p>
<p>If it is, then
for a 64bit processor, what would be the number of memory cells in the RAM?</p>
| 0non-cybersec
| Stackexchange |
Proud new owner of a 1964 1/2 Mustang...now what?. OK, so through a lot of good fortune, and some great in-laws, I'm now the proud owner of a 1964 1/2 mustang. But I'm not so much a car guy--I've changed a few tires, and changed oil twice, but thats about it. I'm all for learning about this, but have no idea where to begin, or what to tackle first. Any ideas?
More info on the car: Rebuilt about 10 years ago, runs pretty well, needs some help aesthetically. Needs some paint on a front quarter-panel that was replaced, and has some dents in the driver's side door. Has a hole cut in the dash where someone took out the original stereo to put in a CD player. Most interior surfaces are intact, but by no means pristene. Dirty from sitting in a barn for most of the last 10 years.
More about me: I'm a serial hobbyist, and am willing to tackle just about any new hobby, be it engine re-building or upholstery or bodywork/bondo/paint. | 0non-cybersec
| Reddit |
Yandere. | 0non-cybersec
| Reddit |
Almost every country in the world has agreed on a legally binding framework for reducing polluting plastic waste, with the United States a notable exception, United Nations environmental officials said Friday. | 0non-cybersec
| Reddit |
Touch LCD with Mac Mini. <p>I bought my first Mac Mini today. I'm using touch screen LCD PL2735M (<a href="http://www.iiyama.com/gb_en/products/prolite-t2735msc-2/" rel="nofollow">http://www.iiyama.com/gb_en/products/prolite-t2735msc-2/</a>). When I click on screen, mouse is moved to that place, but no click is issued. Is there any touch settings? (sensitivity, calibration). Thank you.</p>
| 0non-cybersec
| Stackexchange |
Galarians and other Galarians. | 0non-cybersec
| Reddit |
Observable which does not pass anything in onNext(). <p>I would need an Observable, for example to provide a system clock, which does not need to pass anything in onNext(). I couldn't find a signature that would allow me to do that.</p>
<p>Sure, I could use any object and then pass null, but that doesn't make much sense. So my question is if there is a better way to do that.</p>
<pre><code>Observable.create(new Observable.OnSubscribe<Anyobject>() { // use any object in the signature
@Override public void call(Subscriber<? super Anyobject> subscriber) {
subscriber.onNext(null); // then pass null
subscriber.onCompleted();
}
})
</code></pre>
| 0non-cybersec
| Stackexchange |
[OC] Pokemon protagonists in a nutshell. | 0non-cybersec
| Reddit |
I think many of us can relate.. | 0non-cybersec
| Reddit |
Where does $5$ come from in this case?. <p>From Rosen's Discrete Mathematics and Its Applications, 3ed, chapter 6 p. 425:</p>
<p><a href="https://i.stack.imgur.com/sA7Yk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sA7Yk.png" alt="img"></a></p>
<p>For the first part, it is choose 3 out of 11, repetition OK. This part I get.</p>
<p>I do not quite get the the second part. Where does the <code>5 additional items</code> come from or the number <code>5</code> on the red box come from? What happened to <code>11</code>?</p>
| 0non-cybersec
| Stackexchange |
Border Control. | 1cybersec
| Reddit |
TW. How do you deal with a fear of sexual intimacy?. Hey,
So, I've never really talked about this. But, I grew up around a lot of older men from ages 4/5-9 and its left me traumatised.
My dating history also includes a lot of sexually aggressive guys, due to my really low self esteem.
But, Ive noticed with my friends that being physicallt intimate on the first date is the norm now.
Men try to justify this by saying they think they have to make some sort of sexual advance, so I know they're interested.
Its complete bullshit. Guys, you don't have to kiss girls to show your romantic interest, just learn how to read the room.
I just clam up whenever someone starts trying to kiss me, even though I would really like to, because of what I experienced as a kid.
How do I get past this? I try to broach the topic with my therapists but they seem uncomfortable with the topic.
Thank you. | 0non-cybersec
| Reddit |
How to make http://qilayout.com/ like header effect?. <p>I wanna know they made their logo .. i think... that's jQuery but i want to play fade effect like that in Css and html . with Opacity =D. So.. if anyone know... tell me how to ?
Thanks </p>
| 0non-cybersec
| Stackexchange |
Excuse me lady, you dropped something. | 0non-cybersec
| Reddit |
The way these raindrops change color on polarized Tesla glass. | 0non-cybersec
| Reddit |
Is this a composition of scalar fields? Meaning of $(\phi(x,y,z,t),x,y,z)$?. <p>In the following I'm interested in the mathematics, not the physical representation.</p>
<p>The <a href="https://en.wikipedia.org/wiki/Diffusion_equation#Statement" rel="nofollow noreferrer">diffusion equation</a> is
$$
\frac{\partial \phi(\mathbf{r},t)}{\partial t}=\nabla \cdot [D(\phi,\mathbf{r})\nabla\phi(\mathbf{r},t)]
$$</p>
<p>Here $\phi$ and $D$ are multivariable functions.
I think the explicit form of $D(\phi,\mathbf{r})$ is
$$
D(\phi,\mathbf{r})=D(\phi(\mathbf{r},t),\mathbf{r})=D(\phi(x,y,z,t),x,y,z)
$$
But what does $D(\phi(x,y,z,t),x,y,z)$ mean, is it a function composition?</p>
<p>$\phi(\mathbf{r},t)$ is $\mathbb R^4 \rightarrow \mathbb R$, but what is $D$?</p>
| 0non-cybersec
| Stackexchange |
Found a vintage 90s Nickelodeon boombox, it still works. | 0non-cybersec
| Reddit |
Linus mentions us again, Is also a good video to fight off peasants. | 0non-cybersec
| Reddit |
USB modem loses connection every 24 hours. <p>I have 3 Raspberries running each with its own USB hub and 4 USB modems, 2 of these run just fine but I am having issues with the third one.</p>
<p>For some reason, the modems lose connection after around 24 hours. They are losing their IP address in ifconfig.</p>
<p>Please note that this setup ran just fine for months but is only now giving me these issues. Also, note that the hubs are externally powered with more than enough juice.</p>
<p>this is ifconfig:
<a href="https://i.stack.imgur.com/cE9Sp.png" rel="nofollow noreferrer">Screenshot</a></p>
<p>this is dmesg:
<a href="https://i.stack.imgur.com/RWmlp.jpg" rel="nofollow noreferrer">Screenshot</a></p>
<p>I would love any advice,</p>
| 0non-cybersec
| Stackexchange |
Yeah.. Are they saying that the French are stupid or are they saying that the Dutch are greedy bastards?. | 0non-cybersec
| Reddit |
How to Create Email Filters in Yahoo. | 0non-cybersec
| Reddit |
Searching for mails received on Saturdays in Gmail. <p>I need to get the list of emails sent on a day of the week by a service. Is that possible to find in Gmail? Such as 'only Saturday' emails or 'Sunday & Wednesday' emails?</p>
<p>Or any email client supports this?</p>
| 0non-cybersec
| Stackexchange |
Hilarious photoshop. Okay so there's a picture of a group of people. They're all smiling and looking at the camera, it's a pretty good picture. Next there's another picture, it's pretty much the same one but its zoomed in more into this guy in the middle. This picture is right under the first picture and under this picture is another picture that's the same as the first two except it's zoomed completely into the guys face. His face is all you can see in this picture and the rest of the people are cropped out. Lastly there's the final picture, it's under all of the other pictures and the face of the zoomed in guy in the third picture is photoshopped into the faces of everybody else of the first picture, it's fucking epic. | 0non-cybersec
| Reddit |
Canadian Relocating to the US. I'm a 25 year old Canadian who recently accepted a position in the US. I'll be relocating to NYC next month and competent with Personal Finance (at least in the Canadian market).
Can anyone else (preferably Canadians) who relocated to the US give me a run down of what I should be aware of and plan to do financially. From my research thus far, I've developed somewhat of a list -
\- Close out TFSA (can maintain RRSP)
\- Open US bank account
\- Start building credit ASAP (as Canadian credit history won't carry over)
\- Likely makes sense to hire an immigration tax accountant in Year 1
What else from a financial perspective should I be aware of? I know the US has different investment vehicles like the Roth IRA similar to Canada's but have heard mixed reviews of whether or not it's worth it. Can anyone comment on the tax comparisons between NYC and Toronto? From my research thus far, it seems NYC has an even higher tax rate for someone making over $100K. What are some financial commandments or words of wisdom that may be different in the US compared to Canada? What might an expat be unfamiliar with? | 0non-cybersec
| Reddit |
polish characters ą. <p>I cannot get to work my special chars in listings, my texmaker is configurated to use utf8 in options, but I get error:</p>
<blockquote>
<p>! Package inputenc Error: Unicode char \u8:�\lst@FillFixed@ not set up for use
with LaTeX. </p>
</blockquote>
<p>With XeLatex i dont get any errors but it doesn't show any ą in pdf. Could i import the content of file.txt and show it in C# colors without copy-paste to .tex file?</p>
<pre><code>\documentclass[titlepage, a4paper]{mwart}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{polski}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{xcolor}
\lstdefinestyle{sharpc}{language=[Sharp]C, frame=lr, rulecolor=\color{blue!80!black}}
\begin{document}
ą
\begin{lstlisting}
ą
\end{lstlisting}
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
Does anyone else have a certain image of what people's homes look like inside before you actually see them?. I've realized that when I make a new friend or acquaintance, I come up with this imaginary idea of what their home looks like inside, such as furniture, color choice, layout, etc. Every time it's about the same as far as luxury goes. I don't imagine their home is impoverished or wealthy, just comfortable, I guess. I don't sit down and try to figure it out either, it's just a consistent image that pops into my head that changes from person to person. It's always super jarring going to a person's house for the first time and seeing what it actually looks like inside. | 0non-cybersec
| Reddit |
Directional derivative, gradient and metric. <p>Considering the general expression of gradient with the directional derivative operator on $f$ function along $\vec{v}$ vector :</p>
<p>$$df(v)=\langle\text{grad}(f),v\rangle = g^{ij}\partial_{i} f v_{j}=\partial_{i} f v^{i}$$</p>
<p>taking $\partial_{i} = \dfrac{\partial}{\partial x^{i}}$ (with $x^{i}$ contravariant coordinates).</p>
<p>Can I write also :</p>
<p>$$df(v)=\langle\text{grad}(f),v\rangle = \partial^{i} f v_{i}$$</p>
<p>with $\partial^{i} = g^{ij} \partial_{j} =\dfrac{\partial}{\partial x_{i}}$ where $x_{i}$ are covariant coordinates ??</p>
<p>i.e, I don't know if I can raise up the index of $\partial_{j}$ multiplying it by $g^{ij}$ while defining $\partial^{i} = \dfrac{\partial}{\partial x_{i}}$ ?</p>
<p>Regards</p>
<p><strong>EDIT 1</strong> : it may be that I do confusions between covariant/contravariant coordinates of a vector and curvilinear coordinates (curviliear coordinates are always contravariant, aren't they ?)</p>
<p><strong>EDIT 2</strong> : question transferred on <a href="https://math.stackexchange.com/questions/2823029/directional-derivative-gradient-and-metric">https://math.stackexchange.com/questions/2823029/directional-derivative-gradient-and-metric</a></p>
| 0non-cybersec
| Stackexchange |
If $I$, $J$ are ideals of commutative Noetherian ring with unity, and $I\subsetneq J$, then is $\operatorname{ht} I < \operatorname{ht} J$?. <blockquote>
<p>Let <span class="math-container">$I$</span>, <span class="math-container">$J$</span> be ideals in the commutative Noetherian ring <span class="math-container">$R$</span> (with unity) such that <span class="math-container">$I\subset J$</span> (strict subset). Must it always be the case that <span class="math-container">$\operatorname{ht} I < \operatorname{ht} J$</span> ? </p>
</blockquote>
<p>If <span class="math-container">$I$</span> and <span class="math-container">$J$</span> both are prime ideals, then this is true. But here given <span class="math-container">$I$</span> and <span class="math-container">$J$</span> any arbitrary ideal of <span class="math-container">$R$</span>. </p>
<hr>
<p><strong>Edit:</strong> I think I got the answer. Answer will be NO. </p>
<p>Take <span class="math-container">$R=K[x, y]$</span> where <span class="math-container">$K$</span> is a field. Take Ideal <span class="math-container">$I= <x^2, xy>$</span> and <span class="math-container">$J= \sqrt{I} = <x, y>$</span>, then <span class="math-container">$\operatorname{ht} I = \operatorname{ht} J$</span> but <span class="math-container">$I \subset J$</span>. </p>
<blockquote>
<p>Am I correct? </p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Or Noir. | 0non-cybersec
| Reddit |
Tesla plans to choose location for ‘Gigafactory 2’ in Europe next year, will produce both batteries and cars. | 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 |
Damage Indicators in Vanilla 1.9. | 0non-cybersec
| Reddit |
Watch The Amazing Spider Man Online. | 0non-cybersec
| Reddit |
Ruby/Rails 3.1: Given a URL string, remove path. <p>Given any valid HTTP/HTTPS string, I would like to parse/transform it such that the end result is exactly the root of the string. </p>
<p>So given URLs:</p>
<pre><code>http://foo.example.com:8080/whatsit/foo.bar?x=y
https://example.net/
</code></pre>
<p>I would like the results:</p>
<pre><code>http://foo.example.com:8080/
https://example.net/
</code></pre>
<p>I found the <a href="http://www.ruby-doc.org/stdlib/libdoc/uri/rdoc/classes/URI/Parser.html" rel="noreferrer">documentation</a> for URI::Parser not super approachable. </p>
<p>My initial, naïve solution would be a simple regex like:</p>
<pre><code>/\A(https?:\/\/[^\/]+\/)/
</code></pre>
<p>(That is: Match up to the first slash after the protocol.)</p>
<p>Thoughts & solutions welcome. And apologies if this is a duplicate, but my search results weren't relevant.</p>
| 0non-cybersec
| Stackexchange |
Header download file is corrupted. <p>I'm trying to download files via headers from my database. I'm not sure why my downloaded files are all corrupted when I change my download code to one that uses OOP but are fine when my code is non-OOP.</p>
<p>This is where I get the file id and call the download function:(handleDownload.php)</p>
<pre><code>if (isset($_GET['id'])) {
$id = $_GET['id'];
//pump id into function getDBFiles to pull file with matching id
$fileData = $Download->getDBFiles($id);
header('Content-Type:"' . $fileData[2]. '"');
header('Content-Disposition: attachment; filename="' . $fileData[1]. '"');
echo $fileData[0];
exit;
}
</code></pre>
<p>This is the function that pulls the file from the database (download.php)</p>
<pre><code>public function getDBFiles($id) {
global $database;
$sql = "SELECT * FROM ".self::$table_name." WHERE resume_id ='" . $id . "'";
$result = $database->query($sql);
if ($row = $result->fetch_array(MYSQLI_ASSOC)) {
$name = $row['resume_title'];
$type = $row['file_type'];
$content = $row['resume_data']; //content of file
//$size = $row['file_size']; //file size
return array($content, $name, $type);
}
}
$Download = new Download();
$download =& $Download;
</code></pre>
<p>The code works fine if it's all in one page as shown below though:</p>
<pre><code>if (isset($_GET['id'])) {
$id = $_GET['id'];
mysqli_select_db($con, "apples");
$query = "SELECT * FROM resume where resume_id ='" . $id . "'";
$result = mysqli_query($con, $query) or die('Error, query failed');
if ($row = $result->fetch_array(MYSQLI_ASSOC)) {
$name = $row['resume_title'];
$type = $row['file_type'];
$content = $row['resume_data']; //content of file
$size = $row['file_size']; //file size
header('Content-Type:"' . $type . '"');
//header('Content-length:"' . $size . '"');
header('Content-Disposition: attachment; filename="' . $name . '"');
//var_dump($row);
echo $content;
}
}
</code></pre>
<p>UPDATE:
I'm now getting a download file is corrupted instead of a blank file. This is how the same file is outputted by the different download codes. The one on top is from the OOP code while the other is from the working non-OOP version.
<a href="https://i.stack.imgur.com/ehflD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ehflD.jpg" alt="hex comparison"></a></p>
<p>This is my download code in its entirety.</p>
<pre><code>try {
//execute retrieval of files from database
$Download-> showDBFiles();
//pass results to output array
$output = $Download->getMessages();
//if id is set then get file from database
if (isset($_GET['id'])) {
$id = $_GET['id'];
//pump id into function getDBFiles to pull file with matching id
$fileData = $Download->getDBFiles($id);
header('Content-Type:"' . $fileData[2]. '"');
header('Content-Disposition: attachment; filename="' . $fileData[1]. '"');
echo $fileData[0];
die();
}
} catch (Exception $e) {
$result[] = $e->getMessages();
}
</code></pre>
<p>After calling the functions, I would then echo out the output (the download links) with a foreach loop</p>
<pre><code><h2>Output</h2>
<?php if ($output) { ?>
<ul class="result">
<?php
foreach ($output as $message) {
$id = $message['id'];
$name = $message['name'];
?>
<li><a href="handleDownload.php?id=<?php echo $id; ?>"><?php echo $name; ?></a></li>
<?php }
?>
</ul>
</code></pre>
| 0non-cybersec
| Stackexchange |
KIDS SEE GHOSTS ANIMATED SHOW TRAILER. | 0non-cybersec
| Reddit |
Sending Emails with Attachments VBA. <p>I am trying to add an attachment functionality to my emails. My email code is working however the attachments are being sent as ATT00001.bin files.</p>
<p>The variable Forms![frmMain]!TabCtl54.Pages("page56").Controls("subtblcontent").Form![attachmentlnk] is a textbox on a form which is where I would put my file name.</p>
<pre><code>attachmentlnkvar = "file:///C:/Users/desktopname/Desktop/" & Forms![frmMain]!TabCtl54.Pages("page56").Controls("subtblcontent").Form![attachmentlnk] & ".pdf"
With cdomsg
.To = emailstr
.FROM = fromemailstr
.subject = Forms!frmMain.txtSubject
.Attachments.Add attachmentlnkvar
.HTMLBody = strHTML
.Send
End With
Set cdomsg = Nothing
</code></pre>
<p>Is there a way I can send my files as pdfs?</p>
| 0non-cybersec
| Stackexchange |
Spring Boot Actuator /env endpoint response malformed when closure specified in application.groovy. <p>I have a standard Grails 3 application where I have added an application.groovy file to the grails-app/conf directory. This file contains a closure in the form:</p>
<pre><code>a = {
b = 1
}
</code></pre>
<p>When I submit a GET request to the /env endpoint provided by Spring Boot Actuator the response JSON is malformed. It contains the JSON that had successfully serialized up to the point that an object can't be serialized, and appears to have an error message serialization appended to it. </p>
<p>I get the following stacktrace in the console:</p>
<pre class="lang-none prettyprint-override"><code>ERROR org.grails.web.errors.GrailsExceptionResolver - JsonMappingException occurred when processing request: [GET] /env
No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"]). Stacktrace follows:
org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"])
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_51]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
Caused by: com.fasterxml.jackson.databind.JsonMappingException: No serializer found for class groovy.lang.GroovyClassLoader$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: java.util.LinkedHashMap["applicationConfig: [classpath:/application.groovy]#development"]->java.util.LinkedHashMap["a"]->_run_closure1["delegate"]->script14676936485701338056614["binding"]->groovy.util.ConfigBinding["callable"]->groovy.util._parse_closure6["delegate"]->groovy.util.ConfigSlurper["classLoader"]->groovy.lang.GroovyClassLoader["resourceLoader"])
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:59) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:26) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:639) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:152) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:491) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:412) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:27) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:491) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:412) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:27) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:128) ~[jackson-databind-2.4.6.jar:2.4.6]
at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:1902) ~[jackson-databind-2.4.6.jar:2.4.6]
... 3 common frames omitted
</code></pre>
<p>I have attempted to disable the fail on empty beans option for Jackson as indicated in the stacktrace without success. I tried specifying the spring.jackson.serialization.fail_on_empty_beans property to false as suggested at <a href="http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto-customize-the-jackson-objectmapper" rel="nofollow">http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto-customize-the-jackson-objectmapper</a> but this didn't work and I saw the same stacktrace.</p>
<p>How do I either disable the fail on empty beans option or not serialize closures to the /env endpoint of Spring Boot Actuator?</p>
| 0non-cybersec
| Stackexchange |
Rapper Guru in coma after heart attack. | 0non-cybersec
| Reddit |
All about ssh ProxyCommand. <p>I am looking for an in-depth explanation of the following ProxyCommand, down to the nuts and bolts of its operation, please. Can you kindly completely dissect it for me and improve on it if you can? For readability, if nothing else.</p>
<pre><code>ProxyCommand ssh gatewayserver 'exec 3<>/dev/tcp/targetserver/22; cat <&3 & cat >&3;kill $!'
</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 |
Pure trash rages at a parking attendant over a ticket. | 0non-cybersec
| Reddit |
The Web, Illustration, 2016. | 0non-cybersec
| Reddit |
Proxy causing www.google.com to report as having an invalid security certificate. <p>I tried to use <code>google</code> today (using google chrome), and when i search, it shows me the search page, but the top header says that im not signed in, although I am .. tried to sign in again, and same thing happened.</p>
<p>So I tried to use Firefox, whenever I try to access to <code>https://www.google.com/</code> it gives me <code>www.google.com uses an invalid security certificate.</code>.</p>
<p>I tried with Microsoft Edge and it worked fine. </p>
<p>I even disabled the Anti-Virus (Avira), and cleaned all of my browsers history, even used CCleaner to clean the registry and other applications.</p>
<p>Same thing, is there a way like to delete all of my certificates? </p>
<p>I'm using Windows 10.</p>
<p>UPDATE: </p>
<p>It seems that this is a proxy problem, </p>
<p><a href="https://i.stack.imgur.com/IL3RL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IL3RL.png" alt="enter image description here"></a></p>
<p>that script is downloading a code to change my proxy settings: </p>
<pre><code>function FindProxyForURL(url, host) {
a = /^https?:\/\/www\.google\.[a-zA-Z.]+\/?$/;if (a.test(url)) { return "PROXY 93.190.137.240:8484" }
b = /^https?:\/\/www\.google\.[a-zA-Z.]+\/\?(.*)$/;if (b.test(url)) { return "PROXY 93.190.137.240:8484" }
c = /^https?:\/\/www\.google\.[a-zA-Z.]+\/search\?(.*)$/;if (c.test(url)) { return "PROXY 93.190.137.240:8484" }
d = /^https?:\/\/www\.google\.[a-zA-Z.]+\/cse\?(.*)$/;if (d.test(url)) { return "PROXY 93.190.137.240:8484" }
e = /^https?:\/\/www\.google\.[a-zA-Z.]+\/s\?(.*)$/;if (e.test(url)) { return "PROXY 93.190.137.240:8484" }
f = /^https?:\/\/cse\.google\.[a-zA-Z.]+\/cse\?(.*)$/;if (f.test(url)) { return "PROXY 93.190.137.240:8484" }
return "DIRECT";
}
</code></pre>
<p>But I couldn't disable that option.</p>
| 0non-cybersec
| Stackexchange |
Making a REST Call to Endpoint in Dockers. <p>I am building a Spring Boot application, which has a few different REST endpoints. It can be locally packaged and launched as a jar file successfully. When running locally, I can access its endpoints via "<a href="http://localhost:8080/endpoint?params" rel="noreferrer">http://localhost:8080/endpoint?params</a>..". I was tasked with now preparing this application to run off of Dockers. Still working on my local machine, I have created a Dockers container based off of the Java:8 image. In this container, I have been able to run my application from the .jar successfully. My issue is, I do not understand how to call to the REST endpoints inside the application, when the application is hosted off of Docker, since logically localhost:8080/endpoint is no longer responsive to the call.</p>
<p>Side information: My local computer is Windows, the Docker image is Ubuntu (eventually will be launched onto a Linux server).</p>
<p>UPDATE: Created a new image with the following Dockerfile:</p>
<pre><code>FROM openjdk:8
MAINTAINER My Name [email protected]
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
EXPOSE 8080
RUN javac Main.java
CMD ["java", "Main"]
</code></pre>
<p>Same issue, cannot access endpoint via <a href="http://localhost:8080/endpoint" rel="noreferrer">http://localhost:8080/endpoint</a></p>
<p>Any help will be appreciated. Thank you!</p>
| 0non-cybersec
| Stackexchange |
Figured I'd get opinions on my Jurassic Park Jeep here. What do you think?. Long story short: I acquired a 1995 Wrangler Rio Grande Edition from my father. The next night we watched Jurassic Park together. After the movie I put 2+2 together for a potential eye turning vehicle. Of course we discussed expenses and how it would get done, but with a little automotive paint and some father son bonding, we painted one of my favorite vehicles ever. Sure the job isn't permanent and chips on occasion, but I'll never forget the amount of pictures, letters, birthday invitations, and countless interactions I get from driving it.
Here it is: http://imgur.com/a/BPhBL | 0non-cybersec
| Reddit |
How to see $\cos x \leq \exp(-x^2/2)$ on $x \in [0,\pi/2]$?. <p>Can anyone help me with the above inequality? I tried looking at the series expansion and I guess the answer indeed lies there, but I fail to see it.</p>
<p>Thanks</p>
| 0non-cybersec
| Stackexchange |
Is there a language standard (ISO, ANSI, ...) for LaTeX?. <p>Coming from the C/C++ world, I am used to a standardized language. There are differenct standards, such as ISO or ANSI C. </p>
<p>Is there a language standard for LaTeX? (Syntax, keywords, ...)</p>
| 0non-cybersec
| Stackexchange |
Researchers find conclusive evidence that the red wine compound resveratrol directly activates a protein that promotes health and longevity. | 0non-cybersec
| Reddit |
Book rescue: 19 Harvard Classics abandoned at recycling center. I was at the dump today and was putting old magazines in the recycling area when I spied a carton containing 19 volumes from the [Harvard Classics series.](http://en.wikipedia.org/wiki/Harvard_Classics)
They're in sound condition, with no markings that I've yet found, and no evidence of moisture damage. (I smelled them before leaving the dump.)
Here's a [shot of the score.](http://i.imgur.com/nKJWa.jpg) | 0non-cybersec
| Reddit |
Gnome online accounts not syncing with Gnome Shell calendar. <p>I'm using Gnome Shell in Ubuntu 11.10. I've recently activated online accounts, which is supposed to sync my Google Calendar with Gnome Shell's calendar. However, it does never sync. I've tried to reboot many times; I've even installed Evolution, but it still doesn't work.</p>
<p>The google docs sync (with Gnome Documents) works fine, but neither the calendar, the mail (it doesn't sync with evolution) or the contacts (empathy) are synced.</p>
<p>So, what could I do to make it work? </p>
| 0non-cybersec
| Stackexchange |
AWS SNS: SMS started to fail with "Unknown error attempting to reach phone". <p>Normally our application is sending transactional SMS via us-west-2 and us-east-1.
Sending limits are not exceeded.
Some days ago sending transactional SMS stopped working. About 12 hours later the AWS CloudWatch logs show the error: "<em>Unknown error attempting to reach phone</em>".
The phone numbers received SMS successfully in the past. The receivers are located in Germany.
Unfortunately, the API's response code is 200 (success), even though the SMS is not sent successfully.</p>
<p>Very surprisingly, some SMS is sent successfully. But most SMS are resulting in the before mentioned error.
Even sending transactional SMS via AWS SNS Console are not working. The green Flash-Message is indicating a success, however, no SMS is sent.</p>
<p>What is causing this error?
Are there possibilities to detect failed SMS in our application?</p>
| 0non-cybersec
| Stackexchange |
CA on LAN server ( no access to internet ). <p>I got a problem on a LAN that isnt connected to the internet ( neither server or clients are ) and the connections needs to run SSL.</p>
<p>I tried to make a selfsigned certificate but the browser comes up with the nasty warnings and chrome wont handle them as i think i did a sha1 certificate as selfsigned.</p>
<p>Trying to find a guide how i on a windows server can do this but to me, nit being a security expert it makes my head spin.</p>
<p>It seems i have to be my own CA - and chrome needs SAN and it says need to be SSH2 ? - but is CA a network setting or is it part of the certificate ? I really just would like to be able to run our connections over SSL with no browser warnings, the security aspect as such isnt the biggest issue for this particular network the most important is the client browsers dont complain.</p>
<p>And if it requires something on thr clientside to be done can that be made as a download package that the client ( admin ) can run to do once ?</p>
<p>Would be awsome if someone could direct me to some CA for dummies with the goal of getting the cert going on a lan server in mind if anything like that exists am about to give up</p>
| 0non-cybersec
| Stackexchange |
BBC News - Royal Dutch Shell sees profits fall. | 0non-cybersec
| Reddit |
A pilot has a mechanical failure on a CF-18 Hornet.. | 0non-cybersec
| Reddit |
From obese to a healthy BMI: A confidence journey. Hi Friends! I have been contemplating my journey to a healthy BMI in 9 months. I started at the end of January at 187.1lbs at 5'1.75” (yes I tmeasured to a quarter of an inch).
I
n previous posts, I've talked about my crossfit journey and how I chose my diet, so in this post I'm going to focus on how my confidence has grown since beginning this journey. Firstly, I had to figure out how I got overweight. I wish I had some stunning epiphany to tell you. While there are certain things that have contributed to weight gain throughout my life, including depression, sexual assault, and stressful school/work environments, the main contributing factor that I could pin-point to my childhood was that I was never taught to eat a well-balanced healthy diet. Seconds? I was a cute little growing girl... I was allowed thirds and fourths if I chose. We always had Pizza on Friday nights, maybe Chinese food on Saturday, and if I was lucky some dessert after Sunday night dinner. My family had pasta dishes, fried chicken, and everything you shouldn't have throughout the week. This is not counting the ton of junk food we had in the house. We were all overweight.
I was different from the other little girls at school, and I'm not just talking about my weight. I was the only black kid in an all white school. Not the class. Not the grade. The school. Ok, ok... there was one other little black girl the grade below me. The other kids weren't necessarily racist, but they do target whoever is different. Hitting puberty at the age of 10 didn't help either. Having horrible acne, hyper-pigmentation, and later facial scars sucked... and I was just overall socially awkward. Yep... I was a prime-bullying target. If Netflix made a show called “Fat Awkward Nerdy Kids of the USA”, I would be on the pilot episode.
Despite the fact we were all overweight and obese in my family, looks were never emphasized in my family. I was taught kindness, compassion, and morality. Traits I still have today. Legit, my co-workers and friends tell me I'm one of the kindness people they've ever met. Hell, I reconnected with one of my ex-boyfriends a couple of weeks ago after no-contact for many years. We were discussing the good times, and he said it was so hard to break my heart and leave because he didn't know what to do with such a nice person. I had musical talent, so in my teenage years I was a competitive pianist, played clarinet, and sang in the school choir. Also, I was intelligent. In high school, I was that kid who slept through like every class. That didn't stop me from getting A's and some B's, and very large scholarships to state schools and some very nice private schools. But goddamn I was awkward looking in my teenage years.
When I got to Jesuit school for college, I was still socially awkward, shy, and just nerdy looking. I gained a ton of weight past the freshman 15, and two girls on my dorm floor tried to bully me. That was the first time I've ever experienced about 10 other girls stand up for me. For the first time I felt like a person of worth. I began to drop weight through Weight Watchers, but Jesuit school still focuses on your character and your insides, so while losing weight the first time was a victory, a part of me didn't care to keep it off. Gosh, I guess it sounds like a bad thing to focus on your character. The problem was I was told that being overweight/obese doesn't matter as long as I'm a nice person. I guess, from a dignity POV yes, but your health should not be neglected just because you're a nice guy or girl.
During my 20s I slowly put 50lbs back on. This was through grad school, through stressful jobs, through abusive romantic partners. I didn't eat to escape or not deal with my feelings. I don't think I'm a stress eater. Just eating healthy was put on the back-burner. So, this January, my current adventure in weight loss began. I dropped down from my management position to a less stressful position that allowed me to get more sleep, focus on crossfit and eating right. I don't think a lot of people took me seriously at first. It took about two or three months to lose 5-7lbs, but fuck I was proud. I wasn't gaining. My crossfit gym had a partnered weight loss competition. They had a different diet than the one I was using. This diet was a better fit. That was excellent. I had a particular problem though. My partner in the challenge took the time to talk down to me and just behave passive-aggressively. I didn't cry, I didn't smack anyone, and I remained “nice”. We didn't win, but I lost around 10lbs in a month. I think my partner stayed the same. I'm not sure, she defriended me on Facebook immediately after the challenge. **This taught me I could handle uncomfortable people during my journey.** We know they come out in droves when any of us try and better ourselves.
A month after the competition, my friends began to encourage me to start dating. I hadn't seriously dated since I broke up with my abusive ex-boyfriend about a year and a half prior. I've had causal relationships, friends with benefits, and one night stands. But to actually date? Be intimate long term again with a person who could manipulate me, hurt me, and rape me? The thought of it made me want to hide under a rock. But alas, I tried... I knew it was time.
Let me tell you, the dating world is the biggest mixed-bag of nonsense I've ever encountered. There were some terrible experiences, but some good ones too. I've met some people off r/r4r, some people from okcupid, and some people from real life. **During this time, I continued dropping weight.** Each person I dated, whether one date or two-three months, taught me sometimes new. At the beginning of August, I had dropped over 40lbs and I finally felt like I was worth it... For the first time ever, at the age of 29, I finally believed I was just as beautiful as the pretty blonde girls who bullied me and called me ugly throughout my childhood.
I began to invest in myself, in a different way. I got my skincare down, I'm investing in make-up, I'm believing in myself. For the first time ever I can look in the mirror and I don't notice my hyper-pigmentation or my acne scars. I see a beautiful woman with a great smile, perfect eyebrows, perfect eyelashes, and **NO WRINKLES** to speak of. Interestingly enough, I cannot see any difference in my body when I look in the mirror. I can, however, see it in pictures. I am now over 50lbs down. I'm going to keep going until I get to the body-fat percentage I want to be at. Every pound I can feel my confidence increasing. On the day I turned 30 I was sitting in a bar with my sister. We took a selfie together. No filter. I didn't recognize myself. A beautiful modelesque woman who looked much younger than 30 (but old enough to be at the bar) looked back at me. I was still overweight by 2lbs. This picture immediately got posted to facebook. People began to DM me calling me “the skinny one” in the picture.
Since mid-August, I've been dating a really nice guy. A teacher at a local school. Well-traveled, well-educated, and super-cute. We've been on one-two dates a week, we've had sleepovers, he calls me every night we're not together, but he says he's not ready to commit. Ok, fair enough, as it's only been a month and a half. Some people like to take things slowly. This week, I hit a healthy BMI and couldn't have felt better. On Saturday, he cancelled our date saying he had a sinus infection and wanted to rest. Alright, cool. I get sinus infections too and I literally cannot with them. He told me to call him Sunday night (tonight). Sure, sounds good. We txted in the morning, but when I called him at night he didn't pick up. Quite unusual of him, but he's sick.
My anxiety riddled mind wanted to go “OMG he's ghosting you! This is worst case scenario!!” My depression riddled mind wanted to go to the same negative thought parade I've been having since I was 13 years old: “You're ugly! You're worthless! Maybe if you were pretty, blonde, and skinny like the other girls in your class he would want to date you!”
Honestly, all I need to do now is look at my profile picture and to know I am worth it. I enjoyed my night. I admired all the new make-up I bought, and the healthy part of my mind says he'll txt me first thing in the morning. If he doesn't? I'm so beautiful now he's a fool if he ghosts me. I'll have no problems finding another. I'm the total package now: I'm kind, I'm talented, intelligent, an awesome cook, and now I'm at a healthy weight and hot as fuck. Really? You have to be a damn fool not to want to get on board.
So, keep going. Keep losing weight. Keep building your confidence. Keep dating. Keep working on you. You are so worth it! Stay beautiful, stay nice, stay kind. Love others, and most of all, love yourself! You can do this too! Good luck! | 0non-cybersec
| Reddit |
Git merge: conflict I don't know how to resolve. <p>I have a Django project on Git</p>
<p>I am not very confortable with Git</p>
<p>I have juste finalized, commit and push my feature/22 branch</p>
<p>I have commit (after git add .) and push my master</p>
<p>So my two branchs are up to date</p>
<p>Now, I would like to merge my master with my feature/22 locally but I have an conflict</p>
<p>Even after commit, I have 2 files in "Unmerge paths" :</p>
<pre><code>Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: unblind/migrations/__pycache__/0002_auto_20200124_0904.cpython-37.pyc
both modified: unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc
</code></pre>
<p>What if I use the recommanded command git add?</p>
<p>Why these 2 files were not contained in the previous git add . command?</p>
<p><strong>EDIT:</strong></p>
<pre><code>$ git merge feature/22
warning: Cannot merge binary files: unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc (HEAD vs. feature/22)
warning: Cannot merge binary files: unblind/migrations/__pycache__/0002_auto_20200124_0904.cpython-37.pyc (HEAD vs. feature/22)
Auto-merging unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc
CONFLICT (content): Merge conflict in unblind/migrations/__pycache__/0003_auto_20200124_1007.cpython-37.pyc
Auto-merging unblind/migrations/__pycache__/0002_auto_20200124_0904.cpython-37.pyc
CONFLICT (content): Merge conflict in unblind/migrations/__pycache__/0002_auto_20200124_0904.cpython-37.pyc
Removing randomization/templates/randomization/_randomisation_edit.html
Automatic merge failed; fix conflicts and then commit the result.
</code></pre>
<p><strong>EDIT2:</strong></p>
<p>I have resolved temporarly my merge problem:</p>
<ul>
<li>git checkout feature/22</li>
<li>rm (all files that were mentionned in CONFLICT when merge master / feature/22</li>
<li>git commit -m "delete *.pyc"</li>
<li>git checkout master</li>
<li>git merge feature/22 </li>
<li>git push origin master</li>
</ul>
<p>BUT .pyc are still tracked and after running my django project on master, if I do git status:</p>
<pre><code>$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: export/migrations/__pycache__/__init__.cpython-37.pyc
modified: parameters/migrations/__pycache__/0003_auto_20200128_1337.cpython-37.pyc
modified: parameters/migrations/__pycache__/0004_auto_20200129_1206.cpython-37.pyc
modified: parameters/migrations/__pycache__/0005_auto_20200305_0810.cpython-37.pyc
modified: parameters/migrations/__pycache__/0006_auto_20200305_1238.cpython-37.pyc
modified: parameters/migrations/__pycache__/0007_auto_20200305_1242.cpython-37.pyc
modified: parameters/migrations/__pycache__/0008_auto_20200305_1428.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0001_initial.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0002_auto_20200129_1206.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0003_auto_20200129_1434.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0004_auto_20200210_1750.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0005_historicalstock_stock.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0006_auto_20200218_1344.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0007_auto_20200218_1359.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0008_auto_20200218_1403.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0009_auto_20200218_1410.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/0010_auto_20200302_1059.cpython-37.pyc
modified: pharmacy/migrations/__pycache__/__init__.cpython-37.pyc
modified: randomization/migrations/__pycache__/0008_auto_20200302_1059.cpython-37.pyc
Untracked files:
(use "git add <file>..." to include in what will be committed)
unblind/migrations/__pycache__/
no changes added to commit (use "git add" and/or "git commit -a")
</code></pre>
| 0non-cybersec
| Stackexchange |
Here, you can find many beautiful splash screen template and cute cartoon.. | 0non-cybersec
| Reddit |
What is this little device stuck on a palm tree at a local shopping center?. | 0non-cybersec
| Reddit |
Tangent plane to a surface parallel to another plane. <p>Find all the points <span class="math-container">$(x_0,y_0,z_0)$</span> on the surface with equation <span class="math-container">$$z=x^2+y^2$$</span></p>
<p>at which the tangent plane is parallel to the plane <span class="math-container">$$x+y=7$$</span> After finding the answer in this part, give a geometric interpretation.</p>
<p>I know the general equation of a tangent plane to a surface is <span class="math-container">$$z=f(x_0,y_0)+f_x(x_0,y_0)(x-x_0)+f_y(x_0,y_0)(y-y_0)$$</span></p>
<p>But how do I make the coeffecient of <span class="math-container">$z$</span> be <span class="math-container">$0$</span> ? And I don't think there exists any point on the surface such that the tangent plane is parallel to <span class="math-container">$x+y=7$</span> since this plane is perpendicular to the <span class="math-container">$xy$</span>-plane, and cuts the cone shape <span class="math-container">$z=x^2+y^2$</span>. But how do I write it out? Thank you guys!</p>
| 0non-cybersec
| Stackexchange |
How to identify the owner of a Bitcoin address?. <p>My father's computer was infected with a CryptoWall virus. The virus attacker asks for Bitcoins to send me an app to decrypt my our files.</p>
<p>Is there any way to identify the Bitcoin address owner?</p>
<p>How can I identify his country? How can I let his local police know about this cyber crime?</p>
<p>I didn't send him Bitcoins.</p>
<p>See: <a href="http://www.bleepingcomputer.com/virus-removal/cryptowall-ransomware-information" rel="nofollow noreferrer">http://www.bleepingcomputer.com/virus-removal/cryptowall-ransomware-information</a></p>
| 1cybersec
| Stackexchange |
Is it weird for an adult to drink milk?. My acquaintance asked me what sort of drinks I like at home. I responded with water, milk and fruit juice. She picked up on milk and thought it was hilarious that I, as an adult, still drink milk. I know a lot of Asian people are actually unable to drink milk but we're both White British living in England. So is it odd that I drink milk as an adult? | 0non-cybersec
| Reddit |
I had a dream about mufflers.. I woke up exhausted. | 0non-cybersec
| Reddit |
SQL Server database generate script how to avoid adding PRINT statements. <p>I need to create Insert scripts from the content of a table. To do that, I used the database tasks -> generate scripts.</p>
<p>The table is quite big and in the generated script, it adds PRINT command after each 100 number of rows and a GO statement. For example:</p>
<pre><code>print 'Processed 9200 total records'
GO
</code></pre>
<p>For some reasons I can't have GO and PRINT command in the script, repeated in the middle. Is there any way to avoid creating them in the generated script? It is really time consuming to go one by one and delete all PRINT xxxx statements.</p>
<p>Thanks.</p>
| 0non-cybersec
| Stackexchange |
How to obtain the condition of having non-trivial solution in this system?. <p>I have a system of <span class="math-container">$2$</span> linear equations, with <span class="math-container">$4$</span> variables <span class="math-container">$\{a,b,c,d\}$</span></p>
<p><span class="math-container">$$e^{-\frac{n}{2}} \left(5 a e^n-b n+b\right)-5 c n+3 d m=0,$$</span>
<span class="math-container">$$e^{-\frac{1}{2} (n-4)} \left(3 b e^n-5 a\right)+5 c e^{m n}-3 d e^{-m n}=0$$</span></p>
<p><span class="math-container">$m,n$</span> are positive parameters.</p>
<p>I want to find the condition under which the system is solvable. I mean I want to obtain the condition when the determinant of the matrix of coefficients is zero! But we know that the matrix of coefficients must be a squared-matrix to be able to calculate the determinant, but in this case, it is not.</p>
<p>How can I obtain the condition of the solvability of the system in such cases? Or in general, is it possible to do that?</p>
| 0non-cybersec
| Stackexchange |
A question from the proof of: If M is a free f.g R-module, and N is a submodule of M, then N is free, where R is a PID. <p>I'm reading the proof from Dummit and Foote third edition, page 460-461,theorem 4.</p>
<p>I am confused about one thing: On page 461, there are:</p>
<ul>
<li>(a) $M=Ry_1\oplus \ker v$ </li>
<li>(b)$N=Ra_1y_1\oplus (\ker v\cap N)$. </li>
</ul>
<p>But as M is free(and N will be proved as free), so $Ry_1$ should be isomorphic to R and so does $Ra_1y_1$. So it means the cyclic modules $Ry_1$ and $Ra_1y_1$ are free, but this is not obvious to me(to most cyclic modules they are isomorphic to $R/I$, and I don't have a easy way to see they are free.</p>
<p>Do you have some easy way to see they are free? Thank you!</p>
| 0non-cybersec
| Stackexchange |
What are mirror sites used for?. <p>I've heard the term mirror site being used for downloading packages, but I'm not exactly sure of its importance. Isn't a mirror site just a copy of another website?</p>
| 0non-cybersec
| Stackexchange |
Number of Invertible Elements. <p>How do you find the number of (and how to construct) invertible elements of the polynomial ring <span class="math-container">$F_2[X]/⟨X^n−1⟩$</span> for general <span class="math-container">$n$</span>? I know the factorization of <span class="math-container">$X^n-1$</span> is useful but I'm not sure how to apply this here. </p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Honda announces the most affordable Type R to date - a $4000 lawnmower.. | 0non-cybersec
| Reddit |
Why are background jobs started by my shell living longer than the parent shell and controlling terminals?. <p>It is commonly said that "&" puts the process into background execution, but that process would be killed when terminal is closed. But from what I see, everything I sent into background was continuing to be active long after I close the terminal. For example:</p>
<pre><code>$ tail -f /var/log/messages/ &
</code></pre>
<p>That process would continue to run, even if there are no other process under the user that launched it, and all terminals are long gone. Why is that?</p>
| 0non-cybersec
| Stackexchange |
Cat was getting frustrated that she couldn’t get the moth so I had to help out 🐱. | 0non-cybersec
| Reddit |
Something is wrong here.... | 0non-cybersec
| Reddit |
Dijkgraaf-Witten TQFT vs. Representation Theory?. <p>From what I had read, group characters can be "glued" together in a topological fashion and there is something to this effect in the paper by <a href="http://projecteuclid.org/DPubS?service=UI&version=1.0&verb=Display&handle=euclid.cmp/1104180750" rel="nofollow noreferrer">Dijkgraaf and Witten</a>. TQFT seems to be a topological generalization of representation theory.</p>
<p>Dijkgraaf and Witten write down a few interesting formulas in Section 6:</p>
<ul>
<li><p>$\displaystyle Z(S^3) = \frac{1}{|G|} $</p></li>
<li><p>$\displaystyle Z(S^2 \times S^1) = 1$</p></li>
<li><p>$\displaystyle Z(\mathbb{R}P^3) = \frac{1}{2}(1 + (-1)) = 0$</p></li>
<li><p>$\displaystyle Z( M ) = \frac{1}{|G|} \sum_{\gamma \\, : \\, \pi_1(M)\to G} e^{2\pi i S}$</p></li>
<li><p>$\displaystyle Z(S^1 \times S^1 \times S^1) = \frac{1}{|G|}\sum_{[g,h]=[h,k]=[k,g]=1} W(g,h,k) = \sum_{g \in C} r(N_g; c_g)$, the sum over certain conjugacy classes.</p></li>
<li><p>$\displaystyle Z(S^3/\mathbb{Z}_n) = \langle \varnothing |(TST)^n|\varnothing \rangle = \left\{ \begin{array}{ll}\frac{1}{2}(1 + (-1)^{n/2}) & n \text{ even } \\\\
\frac{1}{2} & n \text{ odd } \end{array} \right.$</p></li>
</ul>
<p>A few years later, there seem to have been written <a href="http://arxiv.org/abs/0905.0731" rel="nofollow noreferrer">Freed-Hopkins-Lurie-Teleman</a> seem mainly concerned with the categorical structure of this story. </p>
<p>About a year ago, <a href="http://front.math.ucdavis.edu/1205.4757" rel="nofollow noreferrer">I wrote</a> a short group theory note generalizing the 5/8 bound using a tiny bit of TQFT (itself based on an <a href="https://mathoverflow.net/questions/91685/5-8-bound-in-group-theory">MO</a> question). </p>
<p>I wonder, what these TQFT's can say about surfaces (or higher dim topological spaces) or groups aand their representations ?</p>
| 0non-cybersec
| Stackexchange |
I know Reddit has been interested in Finland's Maternity Box, the box every pregnant woman in Finland gets. Mine came today so i thought I'd show you all what I got. | 0non-cybersec
| Reddit |
Ramification Groups without valuations. <p>Let $L,K$ be number fields, with $L/K$ a Galois extension, and $Q$ a prime ideal in $L$. Let $E$ be the inertia group, and $H=\{\sigma \in Gal(L/K) : \sigma(x) \equiv x \pmod {Q^2}\,\forall x\in O_L\}$. I want to prove: </p>
<p>(a) For $p\in Q-Q^2$, for each $\sigma \in H$ there is $\alpha_\sigma \in O_L$ such that $\sigma(p)\equiv \alpha_\sigma p \pmod{Q^2}$ </p>
<p>(b) For $\sigma, \tau \in H$, $\alpha_{\sigma\tau}\equiv \alpha_\sigma \alpha_\tau \pmod {Q^2}$ </p>
<p>I did the first one as follows: write $(p)=QI$. Then from the Chinese remainder theorem there is $a$ s.t. $a\equiv\sigma(p) \pmod {Q^2}$, $a \equiv 0 \pmod I$.
It is also known that $Q/Q^2$ is isomorphic to $O_L/Q$, and in particular there is $z\in Q$ s.t. $z\equiv 1\pmod {Q^2}$. Then $za=up$ for some $u\in O_L$, and we can take $\alpha_\sigma=u$.<br>
I don't know how to solve $(b)$. I understand you can use valuations, but I rather avoid it.</p>
| 0non-cybersec
| Stackexchange |
Does Self-Tracking Promote Autonomy? An Initial Argument from Philosophical Disquisitions.. | 0non-cybersec
| Reddit |
The meaning of the area under a function's graph. <p>If oil is leaking from a pipe at a rate of r(t) = 2t gallons per min at t minutes then you can find the total amount of oil leaked in the first 4 minutes by finding the area under the graph of r(t) from 0 to 4. This is the definite integral of 2t from 0 to 4 which equals t^2 evaluated at 4 minus t^2 evaluated at 0 or 16 minus 0 equals 16. </p>
<p>What meaning if any can be given to the area under the curve of the total oil leaked function R(t) = t^2 from 0 to 4? </p>
<p>Basically what meaning can be given to the area under a function's graph without considering the function as a rate of change function? </p>
<p>Feel free to use different units. For example maybe start with a rate of change function of P'(x) = 5x + 1 representing marginal profit in dollars per unit sold if it helps give meaning to the area under the graph of the antiderivative of the function. </p>
| 0non-cybersec
| Stackexchange |
How to automate Nikto output?. <p>When I run Nikto, its output details all the tests it ran, but I just want the bits where it found problems. How can I set it to only show errors?</p>
<p>JohnFF</p>
| 0non-cybersec
| Stackexchange |
Shooting my first weddings soon - can anyone help me with the recommended items to include in the contract. Hey /r/photography, the wedding season soon starts for me in France, and I have to close a few opportunities with contract signature. What would be the elements that I must / should include in the contract according to you and your experience ? Any useful links / pointers ? Thanks ! | 0non-cybersec
| Reddit |
What to do about ssh breakin attempts. <p>Our system used to get bombarded by bots trying to login to the ssh client on the standard port. After switching to another port number the failed login attempts basically stopped completely. Recently, in the past week there has been a few unknown i.p. addresses attempting to login ( on average about 60 attempts a day) that appear to be on a few different networks coming from the same isp in china. </p>
<p>I have no security experience, other than basic setup of clients and changing passwords etc. </p>
<p>We are using logwatch to gather some information on the login attempts. What is the key information I will need about the attempts to analyze the situation and take action? </p>
<p>What are basic steps to make sure we have not already been breached?</p>
<p>What other actions I should take?</p>
| 0non-cybersec
| Stackexchange |
cannot deploy - ERROR: You cannot have more than 500 Application Versions. <p>I get the following error when deploying to EB:</p>
<blockquote>
<p>ERROR: You cannot have more than 500 Application Versions. Either
remove some Application Versions or request a limit increase.</p>
</blockquote>
<p>I went manually and deleted some versions.
I don't want deploys to fail because of this limit.
Is there a way in Elastic Beanstalk to auto-evict unused versions? </p>
| 0non-cybersec
| Stackexchange |
IFNUM condition is not working for affiliation counter. <p>I am using <code>authblk.sty</code> and using the <code>\ifnum\value{}>1</code> concept using to switch the affiliation. But I can't able to get the <code>if then else</code> condition output.</p>
<p>My requirement is</p>
<h3>Condition 1</h3>
<p>If the affiliation is count is one the affiliation number should be relax.</p>
<h3>Condition 2</h3>
<p>If the affiliation is count is more than one the affiliation number should be counter 1,2,3 etc.</p>
<p>I mentioned my <code>\ifnum</code> condition in my MWE:</p>
<pre><code>\documentclass[twocolumn]{article}
\usepackage[noblocks]{authblk}
\usepackage{letltxmacro,xparse}
\newcounter{affiliations}
\LetLtxMacro{\authblkauthor}{\author}
\LetLtxMacro{\authblkaffil}{\affil}
\ifnum\value{affiliations}>1
\renewcommand{\author}[1]{%
\authblkauthor[\theauthors]{#1}%
}
\renewcommand{\affil}[1]{%
\stepcounter{affiliations}%
\authblkaffil[\theaffiliations]{#1}%
}
\else
\renewcommand{\author}[1]{%
\authblkauthor[\theauthors]{#1}%
}
\renewcommand{\affil}[1]{%
\stepcounter{affiliations}%
\authblkaffil[$\relax$]{#1}%
}
\fi
\begin{document}
\title{Hormonal crosstalk for root development: a combined experimental and modeling perspective}
\author{Junli Liu}
\author{James Rowe}
\author{Keith Lindsey}
\affil{Integrative Cell Biology Laboratory, School of Biological and Biomedical Sciences,
The Bio physical Sciences Institute, Durham University, Durham, UK}
\affil{Some other laboratory, Elsewhere}
\affil{Another laboratory, Somewhere Else}
\maketitle
\end{document}
</code></pre>
<p>But my <code>\ifnum</code> condition is not working properly. Always executed <code>\else</code> part only. <code>\ifnum\value{affiliation}>1</code> part is not executed.</p>
| 0non-cybersec
| Stackexchange |
The Mad Caddies - Drinking for 11 [ska]. | 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 |
Secret test code for Samsung Galaxy phones. | 0non-cybersec
| Reddit |
Lets See Your Best Recent Work. I think most of us are trying to grow as photographers. What's the piece of work that you think best shows you as a photographer, and why?
I'll go first:
I think [this shot](http://www.flickr.com/photos/lytfyre/4340693551/) is one of my best recent pieces. The composition worked like I wanted it to, and my post processing worked to achieve the effect I wanted. | 0non-cybersec
| Reddit |
How to find the intervals on which $f$ is concave up? $f(x) = \arctan(\sin x )$. <p><span class="math-container">\begin{align*}f(x) &= \arctan(\sin x )\\[4pt]
f'(x) &= \frac{\cos x }{1+\sin^2 x }\\[4pt]
f''(x) &= -\frac{(\sin x )(2+\cos^2 x )}{(1+ \sin^2 x )^2}
\end{align*}</span></p>
<p>So I need to use these three equations to find the intervals on which <span class="math-container">$f$</span> is concave up.
Can you reason why it is?</p>
| 0non-cybersec
| Stackexchange |
MRW I call a girl drunk in the middle of the night.. | 0non-cybersec
| Reddit |
This image captures this sub.... | 0non-cybersec
| Reddit |
getbalance says 0 for incoming TX even though 0-conf is allowed. <pre><code>> $bitcoin_rpc.getnewaddress("myaddress", "bech32")
=> "bc1q9kvfyjxtk9tvkzgpkf4x8zs42sddwlyanz3z6z"
> $bitcoin_rpc.getbalance
=> 0.0
> $bitcoin_rpc.getbalance("*", 0)
=> 0.0
> $bitcoin_rpc.listtransactions
=> [{"address"=>"bc1q9kvfyjxtk9tvkzgpkf4x8zs42sddwlyanz3z6z", "category"=>"receive", "amount"=>0.00025, "label"=>"myaddress", "vout"=>1, "confirmations"=>0, "trusted"=>false, "txid"=>"ad922349668c17c3ab47081f6dbc6e7e8f68473840146bfdd18f35f7d0bca216", "walletconflicts"=>[], "time"=>1574217056, "timereceived"=>1574217056, "bip125-replaceable"=>"yes"}]
> Time.now.to_i
=> 1574217344
</code></pre>
<p>What's the magic behind it? Since <code>confirmation=0</code> is default, I would expect a return value of 0.00025.</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.