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 |
Gellért Spa - Budapest, Hungary. | 0non-cybersec
| Reddit |
Bash script: "[[: not found". <p>This is my code:</p>
<pre><code>#!/bin/bash
if [[ -d ~/viwiki ]]; then
cd ~/viwiki
else
mkdir ~/viwiki
cd ~/viwiki
fi
if ! [[ -d ./log ]]; then
mkdir log
mkdir log/log
mkdir "log/wget"
elif ! [[ -d ./log/log ]]; then
mkdir log/log
elif ! [[ -d "./log/wget" ]]; then
mkdir "log/wget"
fi
</code></pre>
<p>When running, it has errors:</p>
<pre><code>tuankiet65@UbuntuPC:~$ sh viwik/test2.sh
viwik/test2.sh: 2: viwik/test2.sh: [[: not found
viwik/test2.sh: 8: viwik/test2.sh: [[: not found
</code></pre>
<p>How can I fix this?</p>
| 0non-cybersec
| Stackexchange |
Updating the status bar style between view controllers. <p>In my <code>info.plist</code>, file I have <code>View controller-based status bar appearance</code> set to <code>YES</code></p>
<p>I have a <code>FirstViewController</code> where the status bar is hidden.</p>
<p>In my <code>SecondViewController</code> I have</p>
<pre><code>override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
override var prefersStatusBarHidden: Bool {
return false
}
override func viewDidLoad() {
super.viewDidLoad()
setNeedsStatusBarAppearanceUpdate()
}
</code></pre>
<p>However, the status bar is showing up, but is black.</p>
<p>How can I get it to update correctly? Thanks</p>
<p>Edit:</p>
<p><code>AppDelegate.swift</code> also has this</p>
<p><code>UIApplication.shared.statusBarStyle = .lightContent</code> in <code>didFinishLaunchingWithOptions</code></p>
| 0non-cybersec
| Stackexchange |
What else!. | 0non-cybersec
| Reddit |
Her bio said "Send me Brooklyn 99 quotes and I'll be yours forever". | 0non-cybersec
| Reddit |
If pikachu can do it why not us?. | 0non-cybersec
| Reddit |
Mom hiking around 1972. | 0non-cybersec
| Reddit |
Black bean chili stuffed peppers. | 0non-cybersec
| Reddit |
I SURPRISED HER ALL NITE LONG. | 0non-cybersec
| Reddit |
Why is Mail app taking ages to setup my new Apple ID?. <p>I'm sitting here creating an Apple ID through the Mail app on OS X Yosemite, wondering why it's been taking an inordinate amount of time to finish.</p>
<p>Is it normal to take this long for it to finalize account creation, or should I just go and close the app and start again? I'm tempted to just close it and retry, but I'm not sure if doing so will mess anything up.</p>
| 0non-cybersec
| Stackexchange |
How to convert below method to Java 8 inline function?. <p>I need to convert below method java 8 inline function. need some expert help and explanation to do this. </p>
<pre><code>@Override
public boolean a(final Collection<DoseDetailMutableDTO> detailModels) {
for (DoseDetailMutableDTO dd : detailModels) {
final boolean doseDetailTextScheduled = isDoseDetailTextScheduled(dd, 1);
if (doseDetailTextScheduled) {
return true;
}
}
return false;
}
</code></pre>
<p>and Are there any short cut to do this intelj IDE ?</p>
| 0non-cybersec
| Stackexchange |
What is a regular submanifold?. <blockquote>
<p><strong>Definition</strong>: Let $M$ be a non-empty subset of $\mathbb{R}^n$ and consider $m\in\mathbb{N}$ such that $1\leqslant m\leqslant n$. M is named a regular sub manifold of $\mathbb{R}^n$ of dimension $m$ if it verifies the following condition:
For each point $p$ of $M$ there is an open set $V$ of $\mathbb{R}^n$ and a function $F:V\to\mathbb{R}^{n-m},x\to(F_1(x),...,F_{n-m}(x))$ of $\mathscr{C}^{\infty}$ such that:</p>
<p>(<strong>i</strong>) $F(p)=0$</p>
<p>(<strong>ii</strong>) $F^{-1}(0)\cap M$ is an open set of $M$.</p>
<p>(<strong>iii</strong>) $F$ is a submersion in each point $x\in F^{-1}(0)\cap M$, such as $rank(J(F,x))=n-m\:\:\:\:\forall x\in F^{-1}(0)\cap M$</p>
</blockquote>
<p><em>J stands for the jacobian matrix</em></p>
<p>I was presented this definition of a regular sub manifold in an real analysis course. It has been difficult to get an intuition of what is sub manifold, since I cannot picture it. I have been looking in real analysis books for this definition in a hope that it could be explained in a more intuitive way.</p>
<p><strong>Question:</strong></p>
<p>Can someone give me an intuitive explanation of what a sub manifold is? I would appreciate if someone could give a source of where I can find geometric pictures of this definition. The teacher did not define manifold in the material it has provided.</p>
<p>Thanks in advance!</p>
| 0non-cybersec
| Stackexchange |
VSCode: Prevent split editor to open same file left & right. <p>I'm currently using VSCode as my main editor, however, when I split the editor into 2, it opens the same file twice, like left & right (see image below).</p>
<p><a href="https://i.stack.imgur.com/AE7eM.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/AE7eM.jpg" alt="enter image description here"></a>
Is there any way to prevent it from opening the same file on the next editor? Currently, I have my custom settings and can be copied from <a href="https://gist.github.com/genesisneo/4e98d3c0ad1f3e634f474a32d36b9f12" rel="noreferrer">here</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 |
The lifespan of a bullshit Wikipedia article.. In January 2005 a friend of mine created a bogus Wikipedia entry in my name to be funny. I didn't find it funny since I did not want my name associated with Wikipedia vandalism, so I quickly used the intended form at Wikipedia to request a deletion, as one is supposed to.
My friend then created the same bullshit entry two days later, only this time he altered my name to give it an Italian ring to it. This time I couldn't be bothered to respond to his pranks, so I just left it there.
The article consisted of only a phew phrases of this made up person's life and career, it was both poorly written and chronologically unrealistic.
During 2006 it received one modification, a Wikipedian added a
"biography of a dead person"-template on it.
In 2007 another person added a "this article does not cite or reference any sources"-template.
In 2008 a Wikipedian added a link to the article on a page listing notable people with this surname.
In 2009 nothing happened.
This month the article was deleted by a mod with the reason "Attack page or negative unsourced biography of a living person" despite the article was clearly none of those.
The contents of this article is now spread greatly across the web on multiple pages describing notable historic Italian people and the like derived from the very limited content in the article.
The name is still listed on the "notable people with this surname"-page.
So in conclusion, the lifespan of one insignificant, random bullshit Wikipedia article is 5 years. I wonder how long would it have been if one had put just an ounce of effort into it? | 0non-cybersec
| Reddit |
Remove file if it exists. <p>What is the right way of doing this in Haskell?</p>
<pre><code>if exists "foo.txt" then delete "foo.txt"
doSomethingElse
</code></pre>
<p>So far I have:</p>
<pre><code>import System.Directory
main = do
filename <- getFileNameSomehow
fileExists <- doesFileExist filename
if fileExists
then removeFile filename
???
doSomethingElse
</code></pre>
| 0non-cybersec
| Stackexchange |
How to change the GRUB select menu key?. <p>I want to select GRUB menu with a specific key. For example, the first menu key can be selected by pressing the <kbd>F1</kbd> key, the second item can be selected by pressing the <kbd>F2</kbd> key, etc...</p>
<p>How I should do this?</p>
| 0non-cybersec
| Stackexchange |
Sublime Text 2 - Show file navigation in sidebar. <p>I just switched to Sublime Text as my new editor. If I open the sidebar it shows the opening file, but what I want is a file navigation sidebar, is it possible to change that without downloading plugins? </p>
| 0non-cybersec
| Stackexchange |
How does everyone deal with jealousy?. I'm currently in my third long-term relationship and although I've grown quite a bit, I'm still having issues with jealousy. I've always had girlfriends that I could trust and I'm certain that I've never been cheated on, but I've always had issues with my girlfriends giving other men attention.
In my current relationship, I usually approach her and calmly discuss my feelings. I say I'm feeling jealous when it is a problem, but it feels like this happens too frequently. She is an extremely nice and outgoing girl. She is great to me and I know she wouldn't cheat, but occasionally I can't help but feel possessive. A lot of her actions can easily be interpreted as being flirtatious due to her generosity and she's had a few male friends eventually express interest in her over the years.
We have good ground rules. We tell each other who we're hanging out with, particularly when it's people of the opposite sex. We have a healthy relationship, but I can't help but get annoyed at how friendly she is with other guys. She's incredibly loving, so I feel like my jealousy is ridiculous, but for as long and as often as I've tried to convince myself of my irrationality, I can't help but feel this way.
I've been around RA for a long time now, but just made this throwaway for this post. Besides my jealousy, I've always been a good boyfriend and I'm happy. Anyone have any ideas on how to deal with this? | 0non-cybersec
| Reddit |
Emulators. Hey guys, wanting to play some good ol' SNES and Gamecube games and such. What's a good emulator to use? | 0non-cybersec
| Reddit |
ELI5: Why men get sleepy after orgasm?. | 0non-cybersec
| Reddit |
Cannot type '^' (caret) in native KDE apps. <p>I cannot type the caret character '^' in native KDE apps, such as plasmoids, editors (Kate, KWrite), etc.</p>
<p>It worked in previous (older) versions of KDE (3.5, I think). I believe it may be related to the fact that I'm using a keyboard with a german layout, however, it would seem farfetched - I can type the caret character just fine in non-KDE apps (such as chrome, firefox, etc).</p>
<p>I tried switching keyboard layouts, but no cigar. What's going on? What do I have to change to get the caret character back?</p>
| 0non-cybersec
| Stackexchange |
What happened with all my previous ratings on Netflix?. <p>So today, Netflix officially <a href="https://techcrunch.com/2017/04/05/netflixs-new-thumbs-rating-system-goes-live/" rel="noreferrer">launched a new "thumbs up / thumbs down" rating system</a>, completely replacing its "5 star" rating system. While I have many complaints and questions about this, for the most part, okay. I won't argue.</p>
<p>What I am puzzled about however is what happened to all the hundreds of movies and shows that I've already rated over the years? How did the 5-star rating get converted over to the new 2-thumb rating?</p>
<p>The way I used the 5-star rating system was like so:</p>
<ul>
<li>1 Star = Absolutely hated it, nothing good about it at all.</li>
<li>2 Stars = Hated it, but at least they put some effort in.</li>
<li>3 Stars = Meh, it was okay but not worth my time.</li>
<li>4 Stars = It was great, but could have been better. [Most Common]</li>
<li>5 Stars = Loved it, would recommend to others.</li>
</ul>
<p>Obviously, the above is now impossible to reflect with just a thumb up or down. I'm <em>guessing</em>, or rather <em>hoping</em>, that it may have been done like so:</p>
<ul>
<li>1 Star = Thumb Down</li>
<li>2 Stars = Thumb Down</li>
<li>3 Stars = No Thumb</li>
<li>4 Stars = Thumb Up</li>
<li>5 Stars = Thumb Up</li>
</ul>
<p>How exactly did all my historical ratings get transferred over to this new system, if at all? What algorithm did they use to decide?</p>
| 0non-cybersec
| Stackexchange |
Accessing $_COOKIE immediately after setcookie(). <p>I'm trying to access a cookie's value (using <code>$_COOKIE</code>) immediately after calling the <code>setcookie()</code> function in PHP. When I do so, <code>$_COOKIE['uname']</code> isn't set. Why? </p>
<p>Note, however, that <code>$_COOKIE['uname']</code> is set as expected upon the next execution of the script, such as after a page refresh.</p>
<pre><code>setcookie('uname', $uname, time() + 60 * 30);
echo "Cookie value: " . $_COOKIE['uname'];
</code></pre>
| 0non-cybersec
| Stackexchange |
Minelad. | 0non-cybersec
| Reddit |
Uniqueness of radix representation of integers in base 3. <p>I have recently begun self-studying Number Theory, and am working on proving:</p>
<blockquote>
<p>Show that every integer $n>0$ can be uniquely written as $$n = \sum_{i=0}^mc_i3^i$$ where $c_i \in \{ -1,0,1\}$ and $c_m \neq 0$.</p>
</blockquote>
<p>I believe I have already shown the existence portion of this proof correctly, and now I am looking for some <em>hints</em> on the uniqueness part. So far what I have tried is:</p>
<blockquote>
<p>Suppose for the sake of contradiction that there is an alternate representation of $n$ besides $n = \sum_{i=0}^mc_i3^i$, say $n = \sum_{i=0}^pb_i3^i$ where we still have $b_p \neq 0$ and $b_i \in \{-1,0,1\}$. </p>
</blockquote>
<p>At this point I felt that I first need to establish that $m=p$, and second show $c_i=b_i$ for each $i \in \{1,2,\dots, m\}$. To show the former, I left off in my proof by contradiction with </p>
<blockquote>
<p>Without loss of generality suppose $p>m$. We know there is an integer $q$ such that $m+q=p$. We have two ways of writing $n$, which means $$ \sum_{i=0}^pb_i3^i-\sum_{i=0}^mc_i3^i=0 \\ \implies \left(\sum_{i=0}^mb_i3^i+\sum_{i=m+1}^{m+q}b_i3^i\right)-\sum_{i=0}^mc_i3^i=0 \\ \implies \sum_{i=0}^m(b_i-c_i)3^i+\sum_{i=m+1}^{m+q}b_i3^i=0 \\ \implies \sum_{i=m+1}^{m+q}b_i3^i=\sum_{i=0}^m(c_i-b_i)3^i$$</p>
</blockquote>
<p>At this point I am stuck. If anyone has any hints to help me find the contradiction or feel that there is a better way to establish uniqueness, please let me know!</p>
| 0non-cybersec
| Stackexchange |
I am not impressed. | 0non-cybersec
| Reddit |
A winner. | 0non-cybersec
| Reddit |
Graph Theory and Dijkstra's Algoirthm. <p>I am trying to use Dijkstra's Algorithm to calculate the best route the score the most objectives in a game within 60 seconds. However, some objectives in the game grant more points when scored. Is there any way I can account for it? Using weighted graphs, I can make certain paths longer than others making it take more time in my situation, however it does not help me with my main issue. If anyone can help me in addressing this situation, or tell me about another pathfinding algorithm that may help me account for this, it would be greatly appreciated.</p>
| 0non-cybersec
| Stackexchange |
Something that no-one on Reddit has ever seen before.... | 0non-cybersec
| Reddit |
I forgot to post this yesterday, this is what I smoked this year. | 0non-cybersec
| Reddit |
Is $f(x)=\sum_{n=0}^\infty a_nx^n$ for $x \in [0,1]$ uniformly convergent?. <blockquote>
<p>Let $\{a_n\}_0^\infty \subset \mathbb{R}$ where $\sum_{n=0}^\infty |a_n| <\infty$. Is $f(x)=\sum_{n=0}^\infty a_nx^n$ for $x \in [0,1]$ uniformly convergent?</p>
</blockquote>
<p>I believe it is. By Abel's uniform convergence test since $\sum_{n=0}^\infty |a_n|$ converges and $x^n$ is monotonically decreasing on the set. Is this sound reasoning or is there another approach?</p>
| 0non-cybersec
| Stackexchange |
Mount existing partition on VirtualBox. <p>I've been trying to boot my <strong>Windows 8.1</strong> on a <strong>VirtualBox</strong> machine under my <strong>Linux Mint 17</strong>. Everything is in <strong>x64</strong>. I've installed VirtualBox and its GUI to do so. My <strong>Windows 8.1</strong> is on <strong>/dev/sda2</strong>, my <strong>Mint 17</strong> on <strong>/dev/sda3</strong>.</p>
<p>I'm using the command : <code>VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/Eight.vmdk -rawdisk /dev/sda -partitions 2</code></p>
<p>Which gives back : <code>VBoxManage: error: Cannot open the raw disk '/dev/sda': VERR_ACCESS_DENIED [...]</code></p>
<p>I'm using <a href="http://www.qc4blog.com/?p=483" rel="nofollow noreferrer">http://www.qc4blog.com/?p=483</a> and <a href="https://superuser.com/questions/451573/use-virtualbox-to-boot-a-physical-drive-partition">Use VirtualBox to boot a physical drive/partition</a> to get it.</p>
<p>There are many thing said on the net regarding this error. But I'm lost in the middle of them. What should I do to achieve my goal ?</p>
| 0non-cybersec
| Stackexchange |
If $\mathbb E[|X_n-X|^2]\to 0$ can we say that $X_{n_k}(\omega )\to X(\omega )$ for a.e. $\omega $?. <p>Let <span class="math-container">$(\Omega ,\mathcal F,\mathbb P)$</span> a probability space and let <span class="math-container">$X_n\to X$</span> in <span class="math-container">$L^2(\Omega )$</span> where <span class="math-container">$(X_n)$</span> is a sequence of random variable and <span class="math-container">$X$</span> is a random variable as well. </p>
<p>By a theorem of Lebesgue measure theory, we know that there is a subsequence such that <span class="math-container">$X_{n_k}(\omega )\underset{k\to \infty }{\to} X(\omega )$</span> a.e. Is it also true with random variable ? Because if yes, then the convergence in <span class="math-container">$L^2$</span> is very strong (and I don't get why <span class="math-container">$L^2$</span> convergence is called weak convergence). Indeed, we get that <span class="math-container">$$\mathbb P\{\lim_{k\to \infty }X_{n_k}=X\}=1,$$</span>
which is (at my opinion) very strong.</p>
| 0non-cybersec
| Stackexchange |
Researchers believe we could soon cross a threshold leading to boiling hot temperatures and towering seas in the centuries to come. Even if countries succeed in meeting their CO₂ targets, we could still lurch on to this "irreversible pathway".. | 0non-cybersec
| Reddit |
How to avoid long chain of free's (or deletes) after every error check in C?. <p>Suppose I write my code very defensively and always check the return types from all the functions that I call.</p>
<p>So I go like:</p>
<pre><code>char* function() {
char* mem = get_memory(100); // first allocation
if (!mem) return NULL;
struct binder* b = get_binder('regular binder'); // second allocation
if (!b) {
free(mem);
return NULL;
}
struct file* f = mk_file(); // third allocation
if (!f) {
free(mem);
free_binder(b);
return NULL;
}
// ...
}
</code></pre>
<p>Notice how quickly <code>free()</code> things get out of control. If some of the function fails, I have to free every single allocation before. The code quickly becomes ugly and all I do is copy paste everything over. I become a copy/paste programmer, even worse, if someone adds a statement somewhere in between, he has to modify all the code below to call the <code>free()</code> for his addition.</p>
<p>How do experienced C programmers go about this problem? I can't figure anything out.</p>
<p>Thanks, Boda Cydo.</p>
| 0non-cybersec
| Stackexchange |
SSD and Superdrive on Nvidia MCP79 SATA controller. <p>Right now I have a <code>Hitachi 320GB 5400rpm</code> and a <code>MATSHITADVD-R UJ-868</code> superdrive connected to the Nvidia MCP79 SATA controller in my MacBook Pro 5,3. The link speed of the hard disk drive is negotiated to 1.5 Gbps as, according to <a href="https://apple.stackexchange.com/a/54549/24324">this</a> answer the device is a SATA I (1.5Gbps) device.<br />
This is what my system profiler says about the SATA controller:</p>
<pre><code>Vendor: NVidia
Product: MCP79 AHCI
Link Speed: 3 Gigabit
Negotiated Link Speed: 1.5 Gigabit
Description: AHCI Version 1.20 Supported
</code></pre>
<p>Now I'm wondering the following:</p>
<p>If I would replace the Hitachi HDD with an SSD of any brand will the negotiated link speed be 3Gbps? The SSD being a SATA II or III device. Or will this be capped because it has to divide the 3Gbps over the HDD/SSD and the Superdrive?</p>
| 0non-cybersec
| Stackexchange |
Play with pairs of numbers. <p>Two players are playing a game. The game is played on a sequence of positive integer pairs. The players make their moves alternatively. During his move the player chooses a pair and decreases the larger integer in the pair by a positive multiple of the smaller integer in the pair in such a way that both integers in the pair remain positive. If two numbers in some pair become equal then the pair is removed from the sequence. The player who can not make any move loses (or in another words the player who encounters an empty sequence loses). </p>
<p>Given the sequence of positive integer pairs determine whether the first player can win or not (assuming that both players are playing optimally).</p>
<p>EXAMPLE : Let say we have N=2 i.e 2 pairs : (4,5),(5,6) Then in this If the first player choose to move (4,5) to (4,1) the second player will make it to (1,1). If the first player choose to move (5,6) to (5,1) the second player will make it to (1,1). So regardless of the move of the first player, the second will always win.</p>
| 0non-cybersec
| Stackexchange |
I made a 2 hour mixtape featuring anime and EDM music. 55 songs spanning 30 years of Anime and Dance Music. Check it out!. | 0non-cybersec
| Reddit |
[Image] UFC 196 - Conor McGregor's Post-Fight Response. | 0non-cybersec
| Reddit |
showing monotonicity of $\frac{n^{1/n}}{n}$ with only elementary tools. <p>I would like to show , that the sequence is monotonically decreasing.<br>
I do not want to use any advanced math like Stirling formula nor derivatives.<br>
I was wondering whether it is possible to show it by computing <span class="math-container">$a_{n+1}-a_{n}\ \ \text{or}\ \ \frac{a_{n+1}}{a_n}$</span>.<br>
I had no success so far in doing so.<br>
Thanks for help </p>
| 0non-cybersec
| Stackexchange |
Viewing disk usage of temporary buffers of running queries in Postgres. <p>I know how to get the sizes of relations or total table disk usage per table in Postgres 9.5 (<a href="https://wiki.postgresql.org/wiki/Disk_Usage" rel="nofollow">https://wiki.postgresql.org/wiki/Disk_Usage</a>), but I have some queries running whose temporary disk buffers use significant amounts of space. How can I see how much each is using? My disk is slowly running out of space due to many long-running queries, and I need to kill one of them.</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 |
Damnit, she got me.. | 0non-cybersec
| Reddit |
Elizabeth Taylor, 1957.. | 0non-cybersec
| Reddit |
So true.. | 0non-cybersec
| Reddit |
MGMT - Electric Feel [Indie Rock]. | 0non-cybersec
| Reddit |
Django rotates iphone image after upload. <p>I'm working on a photo website where I want the user to be able to upload a portrait or landscape oriented photo. The maximum width should be 1250px, but the maximum height could be 1667px if it's in portrait mode. When I upload photos in portrait orientation, they show up rotated 90 degrees to the left. Is there a way using Pillow to make sure the photo stays in the correct orientation? </p>
<p>This is my code:</p>
<pre><code>class Result(models.Model):
result01 = models.FileField(upload_to=get_upload_file_name, null=True, blank=True)
result01thumb = models.FileField(upload_to=get_upload_file_name, null=True, blank=True)
def save(self):
super(Result, self).save()
if self.result01:
size = 1667, 1250
image = Image.open(self.result01)
image.thumbnail(size, Image.ANTIALIAS)
fh = storage.open(self.result01.name, "w")
format = 'png'
image.save(fh, format)
fh.close()
</code></pre>
<p>It's important that users be able to upload photos from their phones while they're mobile, so the correct orientation is really important. Is there anything I can do here?</p>
| 0non-cybersec
| Stackexchange |
Please help us get Rosie the puppy home!. | 0non-cybersec
| Reddit |
How to bundle JRE with application?. <p>Due to the fact Oracle dropping JavaFX form JDK 11 on there will be the need to bundle a JavaFX supporting JRE with any application which uses JavaFX based UIs.</p>
<p>Is there an officially way to bundle JRE with an application? Is there a distributable version of the JDK or only "hacks" to do that?</p>
| 0non-cybersec
| Stackexchange |
Timothy Evans is escorted by police to Notting Hill police station. Evans was wrongfully executed in 1950 for the murder of his wife and baby daughter. In 1966 he was granted a posthumous royal pardon. December 1949. [512 x 688]. | 0non-cybersec
| Reddit |
"To us, Kukoc was simply Jerry Krause in a Croatian uniform" -Scottie Pippen. This is the famed match up between the Dream Team and Croatia during the 1992 Olympics. Famed because MJ and Pippen made it a point to see who this European kid really was.. | 0non-cybersec
| Reddit |
Is there an art to creating an aftertaste that is distinct from the main flavor?. Over the course of a year or so I tweaked my own version of chicken tikka masala until mine was better than the local Indian restaurants (here in the US). Visiting London, I went to an Indian restaurant and their tikka masala put mine to shame. It was spicy and savory, yet had a sweet aftertaste that brought out the cinnamon spice flavor.
I've been unable to recreate it. I tried adding brown sugar to my dish but it just made the whole thing sweeter. This tikka masala that I had in London didn't taste sweet at all until after I swallowed my food, and only then would I notice the cinnamon sweetness. What's going on here?
Beyond my own personal problem, I think the concept of an engineered aftertaste in food is interesting in general. Have you ever engineered an aftertaste in your cooking, or experienced it? Any general tips and tricks? I think some ingredients naturally present themselves in aftertaste, like cilantro - I generally don't notice cilantro until I've swallowed, and the cilantro flavor is the 'last man standing', so to speak.
| 0non-cybersec
| Reddit |
Can I install my ubuntu /home partition in my mac extended journaled partition. <p>I just bought a second hand late 2011 mac mini upgraded with a 500gb SSD, 8gb ram, running a new clean install El Capitan I just installed a few hours ago. I'd like to dual boot it with ubuntu gnome 16.04 with a separate /home partition but OSX is already installed with an extended partition. Once I shrink my OSX extended partition and create a primary /root partition can I shrink my logical Macintosh HD partition an install my dedicated /home partition as a logical partition with the unallocated space inside the OSX extended partition or should I just install it as a primary partition.</p>
<p>Disk Utility says it is using a GUID partition map</p>
<p>I've always thought a 500gb HDD/SSD was average sized. If It is considered small it's still more than enough for my purposes.</p>
| 0non-cybersec
| Stackexchange |
Making nutella less sweet?. So I've tried adding heavy whipping cream which does a great job of making the nutella less sweet, but when I get the nutella to my desired taste it really takes the overall thickness down and becomes more like pudding than a spread. What would be the best way to make it thicker again? I've tried cornstarch but that didn't really do too much. | 0non-cybersec
| Reddit |
Disappearing status bar at the top after MPMoviePlayerController is closed. <p>Having an interesting little problem with my iPhone app. I have a view with a table and each cell, when clicked, plays a video fullscreen then when you press done, the video stops and goes back to the table view. The only problem is, when you press done within the first 2 or 3 seconds of the video loading, when the view goes back to the table view, the bar at the top of the screen that tells the time and battery strength etc is no longer there, its just a white space. But if you press done after the first few seconds, then when you go back to the table view, everything is absolutely fine! I have absolutely no idea why this is happening and the only thing I found on the internet is this which is some guy with pretty much exactly the same problem as me:</p>
<p><a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/53020-disappearing-status-bar.html" rel="noreferrer">http://www.iphonedevsdk.com/forum/iphone-sdk-development/53020-disappearing-status-bar.html</a></p>
<p>This lead me to try using:</p>
<pre><code>[UIApplication sharedApplication].statusBarHidden = NO;
</code></pre>
<p>However this lead nowhere either.</p>
<p>The code that is executed when they click on a video:</p>
<pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:currentTitle ofType:@"m4v"];
NSURL *url = [NSURL fileURLWithPath:path];
movieController = [[MPMoviePlayerController alloc] initWithContentURL:url];
[movieController setControlStyle:MPMovieControlStyleFullscreen];
[movieController setFullscreen:YES];
movieController.view.frame = self.view.bounds;
[self.view addSubview:movieController.view];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackFinished:) name:MPMoviePlayerPlaybackDidFinishNotification object:nil];
</code></pre>
<p>And the code that executes either when the video is done or when the user clicks done is:</p>
<pre><code>NSLog(@"movieController moviePlayBackDidFinish");
[[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:nil];
[movieController setFullscreen:NO animated:NO];
[movieController.view removeFromSuperview];
[movieController release];
LiveEventsView *liveEventsView = [[LiveEventsView alloc] initWithNibName:@"LiveEventsView" bundle:nil];
UIView *currentView = self.view;
UIView *theWindow = [currentView superview];
UIView *newView = liveEventsView.view;
newView.frame = CGRectMake(0, 20, 320, 460);
[currentView removeFromSuperview];
[theWindow addSubview:newView];
[UIApplication sharedApplication].statusBarHidden = NO;
</code></pre>
<p>If anybody can shed any light on this situation, I would be very grateful as it is extremely frustrating!</p>
<p>Thanks,</p>
<p>Matt</p>
| 0non-cybersec
| Stackexchange |
Equation ref's connected by "or". <p>Using <code>cleveref</code>, running the command
<code>\cref{e1,e2}</code>
prints something along the lines of "eqs. (1) and (2)" or "eqs. (1)—(2)". What if I need to have and "or" instead of the "and", in a specific cross-reference? I expect I should use</p>
<pre><code>\newcommand\crefpairconjunction{<conjunction>}
</code></pre>
<p>in the preamble, but I don't know how to make this change conditional instead of global, e.g. accessible through a command like <code>\cref[or]{e1,e2}</code>.</p>
| 0non-cybersec
| Stackexchange |
How to enable ECN marking in IP header in Linux. <p>Is the ECN marking in the IP header is performed by default in Ubuntu (4.15.x kernel) or should the kernel be recompiled with a special option?
I configured a RED ingress queue at an Ubuntu machine, net.ipv4.tcp_ecn is set to 1 in all hosts of the network and ECN is enabled in the tc qdisc command.</p>
<p>I am using 4 ubuntu machines using this topology: client --- rt1 --- rt2 --- server. <br>
<code>iperf -s</code> is running at the server side and <code>iperf -c server -P 100 -d</code> at the client side.<br>
(client --- rt1): 100mbit 1 ms latency; (rt1 --- rt2): 10mbit 1ms latency; (rt2 --- server): 100mbit 1ms latency;</p>
<p>The RED queue is configured at the client-facing interface of rt1 as following:<br></p>
<h1>Create ingress on external interface</h1>
<p><code>tc qdisc add dev $ext handle ffff: ingress</code></p>
<p><code>ifconfig $ext_ingress up</code></p>
<h1>Forward all ingress traffic to the IFB device<br></h1>
<p><code>tc filter add dev $ext parent ffff: protocol all u32 match u32 0 0 action mirred egress redirect dev $ext_ingress</code></p>
<h1>Apply RED on the IFB device<br></h1>
<p><code>tc qdisc add dev $ext_ingress root red limit 50000 min 4167 max 12500 burst 7 avpkt 1000 probability 0.5 bandwidth 100mbit ecn</code></p>
<p>I see dropped packets as early drop due to congestion but there are no marked packets.</p>
| 0non-cybersec
| Stackexchange |
Salt is just a rock that we find tasty.. | 0non-cybersec
| Reddit |
Checking a family of sets for an infinite number of primes - featuring $ \lambda(n,k) = n^2 -kn + 1$.. <p>Working with integers...</p>
<p>Define <span class="math-container">$\lambda(n,k) = n^2 -kn + 1$</span>.</p>
<p>Define, for each integer <span class="math-container">$k \ge 3$</span>, the set</p>
<p><span class="math-container">$\tag 1 A_k = \{n^2-kn+1 \mid n \ge k+1 \}$</span></p>
<blockquote>
<p>Do all these sets contain an infinite number of primes?</p>
</blockquote>
<p><strong>My work</strong></p>
<p>I've been investigating <span class="math-container">$\lambda$</span>; see, for example</p>
<p><span class="math-container">$\quad$</span><a href="https://math.stackexchange.com/q/3556728/432081">Proving (or not) that two integer valued sequences are equal</a> (<span class="math-container">$\; \lambda(n,k) = n^2 -kn + 1\;$</span>).</p>
<p>and this question naturally comes to mind.</p>
<p>I set <span class="math-container">$k = 1000000000$</span> and had python check the first <span class="math-container">$1000$</span> numbers in <span class="math-container">$A_{1000000000}$</span> and it found these prime numbers (listing <span class="math-container">$n,\lambda(n,k)$</span>):</p>
<pre><code>1000000020 20000000401
1000000074 74000005477
1000000120 120000014401
1000000200 200000040001
1000000326 326000106277
1000000356 356000126737
1000000384 384000147457
1000000410 410000168101
1000000414 414000171397
1000000554 554000306917
1000000590 590000348101
1000000666 666000443557
1000000744 744000553537
1000000776 776000602177
1000000834 834000695557
1000000854 854000729317
1000000980 980000960401
</code></pre>
| 0non-cybersec
| Stackexchange |
Why a man exposing himself to a woman is not as comical as many redditors on the front page tonight seemed to believe, I'd like to share my story. The post in question was a picture of a man, who at a slut walk, decided to expose himself to the women (and girls) attending. Some of the [comments](http://www.reddit.com/r/pics/comments/123a64/this_guy_whipped_out_his_dong_at_a_feminist_pride/) on the post berated women for being too sensitive, and frequently used the term "feminazi" when referring to those that thought the guy was out of line. Many also implied that a man exposing himself is not threatening, this is specifically what I wanted to discuss. I wanted to share my story about why I feel it is threatening for a man to expose himself to a woman (we're not talking baseball diamond streaker).
When I was still a kid (14) a 40-something year old man exposed himself to me in a parking lot. HAHA so funny, right? Get over it, it's not a violent act. Well actually he ended up hopping in his car and began following me. I didn't know what to do, I was petrified and small and knew that I wouldn't stand much of a chance if he was able to get me into a secluded area where he could possibly attack. The only thing I could think to do was memorize the plates on the car and book it.
Luckily as I ran, I happened to stumble upon a cop car patrolling by the woods of the local library, where I was able to report the incident (later had to ID him and eventually received a subpoena in the mail, though he plead guilty prior to the trial). I don't know what would have happened if I hadn't come across the police, how far he would have kept following, or if he would have dragged me into his vehicle once I reached a more deserted area. I looked up his record later to find he had been charged with violent crimes in the past.
A man exposing himself is always a potential threat because the situation can quickly escalate into a full on assault, and you have no idea whether that will happen or not. What happened to me may not seem like a big deal to most people. However, as a child, having to come home with the police and explain what happened to my parents, and later in detail to a prosecutor, was humiliating and, to some extent, traumatizing.
The point of me posting this is not to say whether the guy in the picture was a threat or not or to discuss his actions specifically, but more to discuss how the act of a man exposing himself to a woman against her will, is threatening in many contexts, though it seems that many people view it as immature at worst. Of course many men and women already realize this, but not all of them. Sometimes I feel like brushing off or excusing actions such as exposing oneself to an unwilling bystander allows institutional sexism to continue. By affirming, and not condemning such actions, we are saying, hey its okay to make women feel uncomfortable because it's just how things work.
Anyway, it's late so I'm getting off topic, the point was, I consider the action threatening because it can and sometimes does lead to a more serious offense. It could have escalated in my situation had I not found help.
**EDIT**: Thank you for all of the responses, I really wanted to open up a discussion and am happy to see so many stories and opinions being expressed. | 0non-cybersec
| Reddit |
Dean Schneider Loving And Playing With Hyenas||Dean Explains Some Amazin.... | 0non-cybersec
| Reddit |
NASA May Announce New Manned Missions To The Moon . | 0non-cybersec
| Reddit |
How do we make PDFs reflowable?. <p>I read news that Adoble released some Mobile SDK that would make PDFs reflowable. Is such technology out yet? Does involve converting a standard PDF to a reflowable? If so, how do we do it? Or is it based on a software that dynamically reflows content?</p>
| 0non-cybersec
| Stackexchange |
Spring Boot: Could not resolve view with name 'index' in servlet with name 'dispatcherServlet'. <p>I am trying to set home page of my application by using spring boot.. but I am getting the error as <strong>Could not resolve view with name 'index.html' in servlet with name 'dispatcherServlet'</strong></p>
<p>My code is as follow</p>
<p>RunApplication.java</p>
<pre><code>@SpringBootApplication
public class RunApplication {
static Logger logger = Logger.getLogger(RunNavneetApplication.class);
public static void main(String[] args) {
SpringApplication.run(RunNavneetApplication.class, args);
}
}
</code></pre>
<p>application.properties</p>
<pre><code>spring.mvc.view.prefix=/WEB-INF/view/
spring.mvc.view.suffix=.html
</code></pre>
<p>HomeController.java</p>
<pre><code>@Controller
public class HomeController {
@RequestMapping("/")
public String index() {
return "index";
}
}
</code></pre>
<p>WebConfig.java</p>
<pre><code>@Configuration
@EnableWebMvc
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**");
}
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/productImages/**")
.addResourceLocations("file:/home/rahul/Desktop/product_images/")
.setCachePeriod(0);
}
}
</code></pre>
<p>pom.xml</p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.wocs</groupId>
<artifactId>REST</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<java-version>1.8</java-version>
<service-version>0.1.36-SNAPSHOT</service-version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.2.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.wocs</groupId>
<artifactId>services</artifactId>
<version>${service-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
</dependencies>
</code></pre>
<p>Please help me to fix this issue.. Thanks a lot in advance...</p>
| 0non-cybersec
| Stackexchange |
Android: javac vs Dalvik. <p>My understanding is that Google didn't like Oracle's licensing policy for using the JRE in Java ME so it just rewrote
it using its own JVM specification that <em>mimics</em> the JRE but behaves a little bit differently, especially when it comes
to making things more efficient and more secure.</p>
<p>So, if my understanding is correct, it means that when <code>javac</code> is ran on some Java source code and compiled into "binary"
byetcode, a compliant JVM will interpret that bytecode different than Dalvik will (in some cases). This is the inherent
difference between Dalvik and other (compliant) JVMs.</p>
<p>If anything I have said so far is incorrect, please begin by correcting me!</p>
<p>Now, if Android came with its own compiler (which it might), and compiled Java source in a different (Dalvik-compliant)
manner than <code>javac</code>, then I could understand how some code (not compiled with the Android SDK) would not run on an
Android device:</p>
<pre><code>MySource.java --> javac --> MySource.class (JRE-compliant) --> JVM --> running Java app
MySource.java --> android-compiler --> MySource.class (Dalvik-compliant) --> Dalvik JVM --> running Android app
</code></pre>
<p>However, it looks like you use <code>javac</code> to compile Android apps!?!? So it looks like we have this:</p>
<pre><code>MySource.java --> javac --> MySource.class (JRE-compliant) --> JVM --> running Java app
MySource.java --> javac --> MySource.class (JRE-compliant) --> Dalvik JVM --> running Android app (???)
</code></pre>
<p>If <code>javac</code> is used to compile all sources into bytecode, then why is it that Dalvik can't run some types
of Java code?</p>
<p>I asked a very similar question yesterday and although it was technically answered (after re-reading my question
I see I was simply not specific enough) no one was able to explain what it is that's inherent to Dalvik that
makes it impossible to run Java code from projects like Google Guice or Apache Camel. I was told that in order to get Camel to run on Dalvik, that I would have to get Camel's source and then it would have to be "built with the Android SDK", but I couldn't get clarity on what that meant or implied.</p>
<p>With Camel, for instance, you have this (simplified):</p>
<pre><code>RouteBuilder.java --> javac --> RouteBuilder.class --> jartool --> camel-context-2.9.jar --> JVM --> running Camel ESB
RouteBuilder.java --> javac --> RouteBuilder.class --> jartool --> camel-context-2.9.jar --> Dalvik JVM --> doesn't work !!! (???)
</code></pre>
<p>Clearly, something is happening inside the Dalvik JVM that prevents it from running certain types of Java code.
<strong>I'm trying to understand what types of Java code will not run when "fed" into the Dalvik JVM.</strong></p>
<p><strong>Edit:</strong> In before "<em>but Camel 3.0 will run on Android!</em>" I know - not my question!</p>
| 0non-cybersec
| Stackexchange |
Connecting with SMBCLIENT to Windows 7 produces error: "protocol negotiation failed: ERRDOS:ERRnomem". <p>We've got a home network that has a mix of different operating systems, including two Windows 7 Ultimate PCs, a couple of Android phones, a MacBook Pro and two Linux PCs. My housemates own all but the Linux machines, and successfully have networking and file sharing with SMB/CIFS on all their devices without any issues at all. </p>
<p>However, I cannot get my Linux machines to connect to their file shares: each time I try, I just get an ERRDOS:ERRnomem response from Samba (smbclient). </p>
<pre><code>$ smbclient -L \\COMPUTER
Enter zoqaeski's password:
protocol negotiation failed: ERRDOS:ERRnomem
</code></pre>
<p>I've done a variety of searches on configuring Samba, and the ERRnomem response, and apparently there's <a href="http://www.dedoimedo.com/computers/windows-7-samba-errnomem.html" rel="noreferrer">a known Windows 7 issue that requires a registry change</a>. I've suggested that this might be the solution, but neither one of them is willing to amend the registry keys because it works on all the devices, and instead they're claiming I've either not configured Samba correctly, or I don't have the most up-to-date drivers. </p>
<p>It works fine between my two computers though, and I've always understood drivers to refer to software to control hardware physically located on the machine. Either way, my systems are fully up-to-date: I'm running Arch Linux (which is a rolling release distribution) with Samba 4.1.14. </p>
<p>Is there a solution that doesn't involve messing with my housemate's computers? They're both gamers with high-end systems so it seems bizarre that I'm being told that they don't have the memory to share files.</p>
| 0non-cybersec
| Stackexchange |
Anything that we take for granted today was once a luxury for a previous generation.. By this logic, anything that we find a luxury will one day be taken for granted by a later generation. | 0non-cybersec
| Reddit |
Don't ask. | 0non-cybersec
| Reddit |
Why does HashSet have "Hash" in its name?. <p>Why is Hashset called a "Hash"-set? </p>
<p>I understand we call hashtable or a hashmap since it's a key value store and when we put(), then the key is hashed and distributed evenly using a good hash function.</p>
<p>I assume its called a HashSet because when we add(), the value is hashed and stored to keep it unique. But why the overkill? We don't really care about "equal distribution" of data like we do in a Hash table.</p>
| 0non-cybersec
| Stackexchange |
Optirun problem. <p>I cannot run 'glxspheres'. Here is the result for <code>optirun glxspheres</code>:</p>
<pre><code>[ 54.811157] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Problem parsing the config file
[ 54.811195] [ERROR]Aborting because fallback start is disabled.
</code></pre>
<p>Result for <code>glxinfo</code>:</p>
<pre><code>Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
</code></pre>
<p>This is the content of <code>/etc/bumblebee/bumblebee.conf</code>:</p>
<pre><code># Configuration file for Bumblebee. Values should **not** be put between quotes
## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=
## Client options. Will take effect on the next optirun executed.
[optirun]
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false
# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
# bbswitch - new in BB 3, recommended if available
# switcheroo - vga_switcheroo method, use at your own risk
# none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods
## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
Module=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
</code></pre>
<p>The problem started when Steam suggested I should install <code>nvidia-331</code>. I did and now nothing works. I found that a number of people had issues with <code>bumblebee</code>. I tried implementing some solutions I saw but nothing has worked so far.</p>
<p>If anyone can tell me how to fix this problem I would be most thankful.</p>
| 0non-cybersec
| Stackexchange |
I made my Fitbit Flex into an anklet!. I've had my Fitbit for about 4 months now, and while I love the data that it gives me, it gets irritating having something on my wrist tell me how many steps ive taken, especially when I have the treadmill on a high incline and hold onto the bar for a bit and it registers no movement, and when it picks up thousands of steps on a long drive when I'm just sitting behind the wheel.
The solution came when my wrist strap broke and I had to buy a 3 pack of replacement straps. Looking at the two unused straps and the extra fastener I now had on hand, I realized that by cutting the "belt loop" portion of the uglier of the two spares off, and shaving the plastic down a bit on the end, I could use it as an extender so the strap would fit around my ankle!
I tested the ankle position tonight on my evening cardio and it pulled almost exactly the mileage that the treadmill recorded, and closer to the number of steps per mile that other pedometers had recorded, so it doesn't seem to have any negative impact on accuracy.
Bonus benefit, it sits just above my shoe line, and even my shortest pair of socks cover it completely. Pictures below
[Doesn't look too bad, if I say so myself](http://imgur.com/a/QP5Zy) | 0non-cybersec
| Reddit |
Surjectivity of $\Delta : \mathcal{P}^k \to \mathcal{P}^{k-2}$?. <p>Let $P^k$ be the space of homogeneous polynomials of degree $k$, i.e. $P^k = \text{span} \{x_1^{k_1} \dots x_n^{k_n} : k_1 + k_2 + \dots + k_n = k\}$. I am trying to show that the Laplacian operator $\Delta : \mathcal{P}^k \to \mathcal{P}^{k-2}$ is surjective. I think I can use the identity $\Delta (f g) = (\Delta f)g + f (\Delta g) -2<\nabla f, \nabla g>$, but it seems doubtful. </p>
<p><strong>Partial answer :</strong> Assume $p=\sum_{a+b=k} f_{a,b} x^a y^b$ such that $\Delta p = x^c y^d$ ($c+d=k-2$). $$\Delta p = \sum_{a+b=k} f_{a,b} \Delta(x^a y^b) = \sum_{a+b=k} f_{a,b} ((\Delta x^a) y^b+ x^a (\Delta y^b) -2 <\nabla x^a, \nabla y^b>)$$ $$=\sum_{a+b=k} f_{a,b} (a (a-1) x^{a-2} y^b+ b(b-1) x^a y^{b-2} = x^c y^d$$ ($<\nabla x^a, \nabla y^b>$ vanishes) and using induction on $n$. </p>
<p>Is it possible to find the good $p$ for surjectivity in that way? Otherwise, is there exists a nice way to prove surjectivity of $\Delta$?
Could anyone be able to complete in details a proof for that exercise</p>
| 0non-cybersec
| Stackexchange |
Is php's 'include' a function or a statement?. <p>There are plenty of examples of both on the web. The php manual says "The include() statement [...]", which seems contradictory - if it's a statement shouldn't it not have parenthesis?</p>
<p>Both of these work:</p>
<pre><code>include('somefile.php');
include 'somefile.php;
</code></pre>
<p>So should I or anyone else care?</p>
| 0non-cybersec
| Stackexchange |
Why are albert result items not sorted the way I prefer?. <p>I would like to move the result items of the application extension up in front. Albert seems to have no particular order for items and actually I dont like this fact. How can I achieve something similar?</p>
| 0non-cybersec
| Stackexchange |
Nike Killshot for $55.98 or $47.58 using ebates. | 0non-cybersec
| Reddit |
Got a surprise in my mailbox today !. https://imgur.com/0sSkKzi
Long story short, someone in trade chat on my french realm said that he bought the novel "Illidan" in french by mistake while trying to buy it in english and was looking for someone speaking french to give him the book. Turned out to be true !
Thanks Mirko :) | 0non-cybersec
| Reddit |
Viewing latex file and pdf file in split screen mode. <p>I want to have both latex source code on left half of screen and compiled pdf file on right side of screen. How can I do ths</p>
| 0non-cybersec
| Stackexchange |
Australia [2]-1 Syria - Tim Cahill. | 0non-cybersec
| Reddit |
A site to compare two things of a similar nature.. | 0non-cybersec
| Reddit |
Blursed fast and furious. | 0non-cybersec
| Reddit |
CPU,Memory and disk I/O utilization for each query in mysql. <p>How can we identify the exact CPU,Memory and disk I/O, when a query is executed. I am using mysql 5.7.20 community version. I am able to get only cpu details for session level by setting SET profiling=1. How can we identify all these details in global level for all the sessions. </p>
| 0non-cybersec
| Stackexchange |
New Doctor Who stopped at Heathrow airport with sonic screwdriver - Telegraph. | 0non-cybersec
| Reddit |
Delay all emails I send in a specific time span. <p>The company I work for has a "no email between 10 and 12" policy as a way to give everybody 2 hours to focus on their tasks without being disturbed. In this time span, we are supposed to avoid sending emails to each other (except for emergencies).</p>
<p>We're using Outlook 2010.</p>
<p>I'd like to be able to put together some form of rule that delays every email I send during this period so I can still make my requests or deliver reports, and have them sit in my outbox until the "no email period" is finished. This way, I could get things out of my head without forgetting to deliver them.</p>
<p>Is that possible?</p>
<p>(sorry if this has been asked, couldn't find it)</p>
| 0non-cybersec
| Stackexchange |
How can I automate modifying key/value pairs in a shell script?. <p>I often want to automate this sort of task in a shell script:</p>
<p>if the line:</p>
<p><code>SOMEKEY=SOMEVALUE</code></p>
<p>exists in a file, then change it to</p>
<p><code>SOMEKEY=SOMEOTHERVALUE</code></p>
<p>otherwise, append the line <code>SOMEKEY=SOMEOTHERVALUE</code> in the file. </p>
<p>How could I go about this? I think I could do it using a combination of <code>grep</code> and <code>sed</code>, but I'm sure it's a common enough task that someone has already worked out an elegant solution. </p>
<p>By the way, when replacing I would normally do something like this</p>
<p><code>sed -i 's/old/new/g' fname</code></p>
<p>But it means I have to be very careful when composing my regular expressions, so as not to make a mistake. Is there an easy way to "preview" what changes which would occur from my call to <code>sed</code> without actually stomping on the file?</p>
| 0non-cybersec
| Stackexchange |
How to get other citations than \cite work with chicago package. E.g. \fullcite. <p>I have gotten a template from my university in which I have added a bibliography. Since I am not very experienced with LaTex, I have no clue about all the packages that are included in my template.</p>
<p>The problem I have is that I can only use the <code>\cite</code> command. But since I want to use more precise citations this is not enough. So i found out about the <code>\fullcite</code> or even better the <code>\footfullcite</code> commands which are supposed to be included in the chicago package. Unfortunately, if I try to use <code>\fullcite</code>, I get the error message:</p>
<pre><code>"! Undefined control sequence.
l.96 \fullcite
{han2005macht}"
</code></pre>
<p>The <code>literaturvz.bib</code> file includes the following code:</p>
<pre><code>@book{han2005macht,
Address = {Stuttgart},
Author = {Han, Byung-Chul},
Date-Added = {2015-11-23 15:08:53 +0000},
Date-Modified = {2015-11-23 15:13:57 +0000},
Hdsurl = {https://hds.hebis.de/ubffm/Record/HEB130215988},
Isbn = {978-3-15-018356-4},
Publisher = {Reclam},
Series = {Reclams Universal-Bibliothek},
Title = {Was ist Macht?},
Uniqueid = {HEB130215988},
Volume = 18356,
Year = 2005,
Bdsk-Url-1 = {http://scans.hebis.de/HEBCGI/show.pl?13021598_toc.pdf}}
</code></pre>
<p>And here is an example of my file which is giving me the errors:</p>
<pre><code>\documentclass[a4paper,oneside,titlepage,12pt]{article}
\usepackage{german}
\usepackage[a4paper, top=2.5cm, footskip=0pt, headheight=0.8cm, headsep=1.1cm, lmargin=3cm, rmargin=2cm]{geometry}
\usepackage{chicago}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{helvet}
\usepackage{extramarks}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage[right]{eurosym}
\usepackage[utf8]{inputenc}
\usepackage{tikz}[]
\usepackage[absolute,overlay]{textpos}
\renewcommand{\baselinestretch}{1.2}
\fancyhead[L]{\slshape \small \firstleftmark}
\fancyhead[R]{\normalsize\thepage} \fancyfoot{}
\begin{document}
\begin{titlepage}
\includegraphics[width=.3\textwidth]{grafiken/KITLogo_RGB.pdf}
\vspace*{2cm}
\begin{center}
\Huge{Title
\\}
\vspace*{1cm}
\huge{Author\\}
\small{(Matrikelnummer: 00000000)}
\vspace*{1cm}\\
\Large{
Bachelorarbeit
\\}
\vspace*{2cm}
\normalsize{
Fakultät für Wirtschaftswissenschaften\\
Institut für Wirtschaftstheorie und Statistik\\
Lehrstuhl für Wirtschaftstheorie
}
\end{center}
\vspace{2cm}
\begin{center}
\large{Wintersemester 2015}
\end{center}
\vspace*{3cm}
\small{
\begin{tabular}[ht]{l c l}
Gutachter: & \hfill & Prof. Dr. Susanne Fuchs-Seliger\\
\end{tabular}
}
\begin{textblock}{10}[0,0](4,16.8)
\tiny{
KIT -- Universität des Landes Baden-Württemberg und nationales Forschungszentrum der Helmholtz-Gesellschaft
}
\end{textblock}
\begin{textblock}{10}[0,0](14,16.75)
\large{
\textbf{www.kit.edu}
}
\end{textblock}
\end{titlepage}
\thispagestyle{empty}\clearpage
%----------------------------------------------------------------------------- ------------------------------------------------------
\rmfamily \pagestyle{fancy} \setcounter{secnumdepth}{4}
\newtheorem{satz}{Satz}
\newtheorem{lemma}[satz]{Lemma}
\newtheorem{folgerung}[satz]{Folgerung}
\theoremstyle{definition}
\newtheorem{definition}[satz]{Definition}
\numberwithin{equation}{section}
\renewcommand{\proofname}{Beweis}
\newcommand\macht{\textit{Ma\-cht }}
\pagenumbering{roman}\setcounter{page}{3} \tableofcontents
\newcounter{roemisch} \setcounter{roemisch}{\value{page}}
\clearpage
\setcounter{page}{2} \pagenumbering{arabic}
\section{Einleitung}
Abc\footcite{han2005macht}
\newpage
%Literaturverzeichnis----------------------------------------------------------------------------------------------------------------
\addcontentsline{toc}{section}{Literaturverzeichnis}
\bibliographystyle{abbrvdin}
\bibliography{literaturvz}
\end{document}
</code></pre>
<p>I've been searching for hours now and tried to implement the natbib or biblatex packages which didn't work either. So I really hope one of you can help me since I am totally over-challenged here.</p>
| 0non-cybersec
| Stackexchange |
Why won't disk utility let me remove a partition from my external hard drive?. <p>I have an external 1.5 TB hard drive split evenly with a partition for backup and a partition that was used for Time Machine on my previous computer (OS X Lion).</p>
<p>Now I'm using this hard drive with a new computer (OS X Lion), and I don't want the Time Machine partition anymore. I should also point out that I've never configured Time Machine on my new computer.</p>
<p>I'm trying to remove the Time Machine partition, but the minus (-) option isn't available. Does anyone know why or how I could get the (+/-) options un-grayed?</p>
<p><img src="https://i.stack.imgur.com/SjwWe.png" alt="enter image description here"></p>
| 0non-cybersec
| Stackexchange |
Just 11 hours as of now before I get my life changing surgery. This surgery is something that I've been wanting for years!. That's right! 11 hours until I get the surgery where I have to relearn how to walk again! The surgery that I'm getting in called a "selective dorsal rhizotomy". For the surgery they have to cut a nerve in the back of my spine to loosen up the tightness, and spasticity in my legs. Fortunately, I was lucky enough to have one of the best doctors in the world who specializes in this type of surgery to operate on me. I honestly could not be happier!
EDIT: I just woke up from anesthesia, and I'm already doing really well the doctors already said that I'm doing really well! | 0non-cybersec
| Reddit |
Examples of Diophantine equations with a large finite number of solutions. <p>I wonder, if there are examples of <a href="http://en.wikipedia.org/wiki/Diophantine_equation">Diophantine equations</a> (or systems of such equations) with integer coefficients fitting on a few lines that have been proven to have a finite, but really huge number of solutions? </p>
<p>Are there ones with so large number of solutions that we cannot write any explicit upper bound for this number using <a href="http://en.wikipedia.org/wiki/Conway_chained_arrow_notation">Conway chained arrow notation</a>?</p>
<p><em>Update:</em> I am also interested in equations with few solutions but where a value in a solution is very large itself.</p>
| 0non-cybersec
| Stackexchange |
Unable to install anything using apt. <p>I was trying to install an earlier gcc and g++ (4.6.3) for compatibility reasons and now apt seems to be broken. It appears that apt-get install behaves like this for everything, not just dpkg:</p>
<pre><code>>> sudo apt-get install dpkg
Reading package lists..
Done
Building dependency tree
Reading state information...
Done
dpkg is already the newest version. 0 upgraded, 0 newly installed, 0 to
remove and 0 not upgraded. 1 not fully installed or removed. After this
operation, 0 B of additional disk space will be used. Do you want to
continue? [Y/n]
</code></pre>
<p>And choosing "Y" always results in this:</p>
<pre><code>Setting up gcc (4:4.8.2-1ubuntu6) ...
update-alternatives: error: alternative path /usr/bin/gcc doesn't exist
dpkg: error processing package gcc (--configure):
subprocess installed post-installation script returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)
</code></pre>
<p>I did run the configure script while trying to install gcc 4.6.3 and I might have given a bad value for the --target option. I have tried various combinations of the following without success:</p>
<pre><code>apt-get update && apt-get upgrade
apt-get install -f
sudo dpkg --configure -a
apt-get remove/purge/autoremove gcc
</code></pre>
<p>Also, Synaptic claims there are no broken packages.</p>
<p>Advice is appreciated.</p>
<p>EDIT: In response to comments</p>
<pre><code>>> sudo apt-get purge gcc
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gcc*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 42.0 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 278757 files and directories currently installed.)
Removing gcc (4:4.8.2-1ubuntu6) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
>> sudo dpkg -C
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
gcc GNU C compiler
</code></pre>
<p>Trying to remove any of these fails with complaints about dependencies:</p>
<pre><code>>> sudo dpkg --get-selections | grep gcc
gcc install
gcc-4.6 install
gcc-4.6-base:amd64 install
gcc-4.8 install
gcc-4.8-base:amd64 install
gcc-4.9-base:amd64 install
libgcc-4.8-dev:amd64 install
libgcc1:amd64 install
>> sudo dpkg --configure -a
Setting up gcc (4:4.8.2-1ubuntu6) ...
update-alternatives: error: alternative path /usr/bin/gcc doesn't exist
dpkg: error processing package gcc (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
gcc
>> sudo dpkg -P gcc-4.9-base gcc-4.8-base gcc-4.8 1> command.out
dpkg: dependency problems prevent removal of gcc-4.9-base:amd64:
libgcc1:amd64 depends on gcc-4.9-base (= 4.9.1-0ubuntu1).
dpkg: error processing package gcc-4.9-base:amd64 (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of gcc-4.8-base:amd64:
libitm1:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libgomp1:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libstdc++6:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libgfortran3:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libasan0:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libgcc-4.8-dev:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libtsan0:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libquadmath0:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libstdc++-4.8-dev:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
cpp-4.8 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
libatomic1:amd64 depends on gcc-4.8-base (= 4.8.2-19ubuntu1).
dpkg: error processing package gcc-4.8-base:amd64 (--purge):
dependency problems - not removing
dpkg: warning: ignoring request to remove gcc-4.8 which isn't installed
Errors were encountered while processing:
gcc-4.9-base:amd64
gcc-4.8-base:amd64
>> sudo dpkg -P gcc-4.6 gcc-4.6-base
dpkg: dependency problems prevent removal of gcc-4.6:
g++-4.6 depends on gcc-4.6 (= 4.6.4-6ubuntu2).
dpkg: error processing package gcc-4.6 (--purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of gcc-4.6-base:amd64:
gcc-4.6 depends on gcc-4.6-base (= 4.6.4-6ubuntu2).
libstdc++6-4.6-dev depends on gcc-4.6-base (= 4.6.4-6ubuntu2).
g++-4.6 depends on gcc-4.6-base (= 4.6.4-6ubuntu2).
cpp-4.6 depends on gcc-4.6-base (= 4.6.4-6ubuntu2).
dpkg: error processing package gcc-4.6-base:amd64 (--purge):
dependency problems - not removing
Errors were encountered while processing:
gcc-4.6
gcc-4.6-base:amd64
</code></pre>
| 0non-cybersec
| Stackexchange |
Kaleidascope. | 0non-cybersec
| Reddit |
What are the "standard Gtk+ toolkit command line options"?. <p>I have a problem with the 'synaptic' application (GUI version of apt), and was hoping to get some debug output from it. The man page however has just a couple of command line options and this very helpful statement: </p>
<p>"Synaptic accepts all of the standard Gtk+ toolkit command line options as well as the following:"</p>
<p>Unfortunately, there's no indication of how I might determine what those are, and my googlefu has so far been unhelpful..</p>
| 0non-cybersec
| Stackexchange |
Using Debian linux command 'whereis' to show files without man pages. <p>From the 'whereis' man pages on my Debian/GNU Linux I see:</p>
<pre>
-u Search for unusual entries. A file is said to be unusual
if it does not have one entry of each requested type. Thus
`whereis -m -u *' asks for those files in the current
directory which have no documentation.
</pre>
<p>so I did:</p>
<pre>
root@wheezy:~# cd /bin
root@wheezy:/bin# whereis -um *
</pre>
<p>and i get those lines:</p>
<pre>
...
kmod:
login: /usr/share/man/man3/login.3.gz /usr/share/man/man1/login.1.gz
mkdir: /usr/share/man/man2/mkdir.2.gz /usr/share/man/man1/mkdir.1.gz
mknod: /usr/share/man/man2/mknod.2.gz /usr/share/man/man1/mknod.1.gz
mktemp: /usr/share/man/man3/mktemp.3.gz /usr/share/man/man1/mktemp.1.gz
mount: /usr/share/man/man8/mount.8.gz /usr/share/man/man2/mount.2.gz
ntfsck:
ntfsdump_logfile:
...
</pre>
<p>I understand it correctly shows kmod, ntfsck, and ntfsdump_logfile, etc. for not having man pages, but why it shows the other ones?
Didn't I ask <em>correctly</em> for the one without man pages?</p>
| 0non-cybersec
| Stackexchange |
How to get the Windows XP "Explore" behavior in Windows 7?. <p>I liked the Windows XP Explorer style. Windows XP always kept the the left hand side tree view and the main view in sync. Clicking an folder in the tree view caused an update in the folder view. And opening a folder in the right view updated the tree state.</p>
<p><img src="https://i.stack.imgur.com/3BnT2.png" alt="alt text"></p>
<p>In Vista and Windows 7 this behavior has changed. You now need to double click a folder item in the tree to have the main view updated. And when navigating by double clicking folders in the main view, the tree often scrolls out of the view so you can't see where you are.</p>
<p>I would like to have the old behavior. Is there a way to enable it? Or is there perhaps an Explorer plugin for this?</p>
| 0non-cybersec
| Stackexchange |
LPT: Use your phone’s onboard markup features to edit photos and keep track of measurements during home improvement work. [The tip in action. ](https://imgur.com/a/7gwID)
This is especially useful since you can mark the exact location of the measurement and the measurement itself. It’s easy to forget you measurement paper when you go to the store, but your phone is almost always on you. | 0non-cybersec
| Reddit |
The face of my nightmares (x-post /r/trashy). | 0non-cybersec
| Reddit |
Failed to upgrade certbot on Ubuntu Bionic. <p>I have installed previously Certbot on Ubuntu, but I believe the package wasn't yet available for this distribution yet, so I believe I installed it from a pre-built package (maybe, I'm really not sure).
Anyway, right now I have certbot 0.26.1 installed:</p>
<pre><code>certbot --version
certbot 0.26.1
</code></pre>
<p>I tried to install it using the guide from here:
<a href="https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx" rel="nofollow noreferrer">https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx</a></p>
<p>Here are some outputs from the current system:</p>
<pre><code>apt-get install python-certbot-nginx
python-certbot-nginx is already the newest version (0.28.0-1+ubuntu18.04.1+certbot+3).
certbot --version
certbot 0.26.1
which certbot
/usr/bin/certbot
dpkg-query -L python-certbot-nginx
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-certbot-nginx
/usr/share/doc/python-certbot-nginx/changelog.Debian.gz
/usr/share/doc/python-certbot-nginx/copyright
</code></pre>
<p>so it looks like to me, that "python-certbot-nginx" package doesn't install any binaries. That am I doing wrong here?
I have some totally different packages that can be upgraded (e.g. MySQL, PHP), but I can upgrade these only this sunday. But I believe this is absolutely unrelated to my problem.
Thanks!</p>
| 0non-cybersec
| Stackexchange |
Skull by Shawn Buss at Wisconsin Tattoo Company, Neenah, WI.. | 0non-cybersec
| Reddit |
Just ordered components for my first desktop in almost 10 years. After much lurking on buildapc and about a solid week of research, I finally decided on the components for my new desktop:
Component | Price
:----------|------:
[LIAN LI PC-X2000F Case](http://www.newegg.com/Product/Product.aspx?Item=N82E16811112289)|$499.99
[Gigabyte GA-X58A-UD7 Motherboard](http://www.newegg.com/Product/Product.aspx?Item=N82E16813128413)|$339.99
[Intel Core i7-980X Extreme Edition](http://www.newegg.com/Product/Product.aspx?Item=N82E16819115223)|$999.99
[Kingston HyperX 12GB (3x4GB) DDR3 1600](http://www.newegg.com/Product/Product.aspx?Item=N82E16820104127)|$594.99
[XFX Radeon HD 5970 Black Edition 2GB](http://www.newegg.com/Product/Product.aspx?Item=N82E16814150460)|$714.99
[Thermaltake Toughpower 1200W PSU](http://www.newegg.com/Product/Product.aspx?Item=N82E16817153054)|$349.99
[Cooler Master V8 CPU Cooler](http://www.newegg.com/Product/Product.aspx?Item=N82E16835103055)|$59.99
[2 x Western Digital Caviar Black 2TB 7200RPM](http://www.newegg.com/Product/Product.aspx?Item=N82E16822136456)|$359.98
[LG Black 10X Blu-ray Burner](http://www.newegg.com/Product/Product.aspx?Item=N82E16827136181)|$109.99
[D-Link DWA-556 Wireless Adapter](http://www.newegg.com/Product/Product.aspx?Item=N82E16833127218)|$44.99
[Arctic Silver 5 Thermal Compound](http://www.newegg.com/Product/Product.aspx?Item=N82E16835100007)|$9.99
**Total:**|**$4084.88**
I'm really hoping I didn't forget anything, I hovered over the 'Place Order' button on Newegg for 30 minutes trying to think of anything I left out.
You guys are an awesome subreddit. I'll be sure to post some pics when the build is complete. | 0non-cybersec
| Reddit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.