text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Css overflow-y: how to show only when needed. <p>I'm adding the overflow-y parameter to "scroll" in my css in order to have scrolling bar in case of overflow..</p>
<p>My problem is that if the content is not overflowing - i'm still having the blank scroll bar.</p>
<p>How can i set the overflow to show the scrolling bar only when needed ?</p>
| 0non-cybersec
| Stackexchange |
How do I install fuse-ext2 to use with OSXFuse. <p>I'm trying to make Ext4 disk readable on mac OSX 10.10.5. I've already installed <strong>OSXFuse</strong>, I read on this site that I also needed to install <strong>fuse-ext2</strong>. I downloaded <strong>fuse-ext2-master.zip</strong> and unzipped it. It seems to contain source code files but no installation program. How am I supposed to use these files?</p>
| 0non-cybersec
| Stackexchange |
#FCL (Fileless Command Lines) - Known command lines of fileless malicious executions. | 1cybersec
| Reddit |
Igloos are great. | 0non-cybersec
| Reddit |
Cucumber Java Convert Data Table to Specific Type. <p>I want to use a data table in my feature file and have the contents converted to a single specific type in the step definition. For Example I would like to be able to convert the following data table into a single instance of the User class. </p>
<pre><code> Given the user is
| firstname | lastname | nationality |
| Roberto | Lo Giacco | Italian |
</code></pre>
<p>The User class:</p>
<pre><code>class User {
String firstName;
String lastName;
Nationality nationality;
//getters / setters / etc
}
</code></pre>
<p>Step Definition:</p>
<pre><code> @Given("^the user is$")
public void the_user_is(User user) {
this.user = user;
}
</code></pre>
<p>However when I run this I get the following error:</p>
<blockquote>
<p>cucumber.runtime.CucumberException:
cucumber.runtime.CucumberException: Not a Map or List type: class example.User</p>
</blockquote>
<p>The documentation suggests that it is possible to convert a data table to a single object.</p>
<p><a href="https://cucumber.github.io/api/cucumber/jvm/javadoc/cucumber/api/Transpose.html" rel="nofollow noreferrer">Cucumber Transpose API Docs</a></p>
<p>However from inspecting the code it looks like it will always return a list. This code snippet is from cucumber/runtime/table/TableConverter.convert(DataTable dataTable, Type type, boolean transposed) :</p>
<pre><code>Type itemType = listItemType(type);
if (itemType == null) {
throw new CucumberException("Not a Map or List type: " + type);
}
</code></pre>
<p>I know it works for a list:</p>
<pre><code> @Given("^the user is$")
public void the_user_is(List<User> user) {
this.user = user.get(0);
}
</code></pre>
<p>but in my real world step (rather than this simplified example) there is only ever one object that needs created and I want to avoid using a list and then taking the first item.</p>
| 0non-cybersec
| Stackexchange |
Found this in my AP Government book. | 0non-cybersec
| Reddit |
invalid username/password in egit when pushing changes to googlecode. <p>I have a project hosted in googlecode with Git.</p>
<p>I'm using STS (SpringSource Tool Suite) with eGit.</p>
<p>I cloned the repository at home and I could commit & push the changes successfully.
I did the same thing at work and when I try to push the changes after commiting them, it shows the following error: </p>
<pre><code>https://[email protected]/p/myproject/: Invalid username/password.
You may need to use your generated googlecode.com password; see https://code.google.com/hosting/settings
</code></pre>
<p>I entered the googlecode generated password when I first cloned the repository (as I did at home, and this error never showed up). I try entering it again and nothing changes.</p>
<p>Does anyone know what could be causing this?</p>
<p>Thanks!!</p>
| 0non-cybersec
| Stackexchange |
Is the organic search page rank I see the same as the organic search page rank you see?. <p>The short story is that I'm trying to find out whether we'd all get the same results (more or less) from Google if we all searched for the same term at the same time.</p>
<p>Our site targets 10 specific search terms for organic search results. We do no PPC advertising.</p>
<p>When you search for most of the targeted terms (7 of 10), we're in the first 5 results. The rest of the terms are in the top 15.</p>
<p>How consistent is that likely to be world-wide, especially considering </p>
<ul>
<li>searches in other languages might use our city name in English, but other terms in the local language, and</li>
<li>the influence of Google+ and personalization.</li>
</ul>
<p>It's my understanding that personalization and Google+ shouldn't affect organic search results at all. Instead, they add information to the right-hand column of the page. I'm not really sure what to do with language, since the terms we target in English might be completely different terms--not just the same words in a different language, but different words altogether--in other languages.</p>
| 0non-cybersec
| Stackexchange |
Boards of Canada -- Happy Cycling [IDM] (1998) Today, April 19, is Bicycle Day to celebrate Albert Hoffman's discovery of LSD, and his harrowing bike ride home after ingesting a dose of the drug. HAPPY CYCLING!. | 0non-cybersec
| Reddit |
Create template and open in TexStudio (Linux). <p>I am constantly writing up my homework in Latex and they always have the same framework. Is there anyway I can create a script in Linux that creates a file with the framework then opens it in TexStudio?</p>
<p>For example let's say I am in /home/school/ directory and want to create a file named HW3.tex in the same directory with the framework then open it in TexStudio. Is there anyway of doing this?</p>
| 0non-cybersec
| Stackexchange |
Disable right column for this page. <p>I have a long, two column document. In one of these pages, I added a graphic that spans exactly the right half of that page and touches the edge; done with this code:</p>
<pre><code>\begin{tikzpicture}[remember picture,overlay]
\node[anchor =north east, inner sep=0pt,outer sep=0pt] at (current page.north east) {\includegraphics[width=0.5\paperwidth,height=\paperheight]{gfx/portraitmod}};
\end{tikzpicture}
</code></pre>
<p>The problem is that the text on the right column just flows through the image, which looks pretty ugly.</p>
<p>How can I tell Latex to not use the left or right column for a given page (e.g., this page), without disrupting any other typesetting? </p>
| 0non-cybersec
| Stackexchange |
Help me identify this tree!. | 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 |
Notation on wreath product. <p>While reading some (relatively old) papers on group-theory I encountered the following notations whose meanings I cannot understand:</p>
<p>If $W= G \wr H$ is the (unrestricted) wreath product of $G$ and $H$, $f$ an element of the basis $G^H$ and $h$ an element of $H$, what do
$f^H$ and $h^W$ mean? </p>
<p>Just for the sake of completeness: the action of $h \in H$ on $f \in G^H$ is denoted by $f^h$</p>
| 0non-cybersec
| Stackexchange |
Europeans Like the E.U. More Since Brexit. Even the British. | 0non-cybersec
| Reddit |
Might be related to a science lab, also might be missing parts.. | 0non-cybersec
| Reddit |
Structs and passing values to them. <p>If i had an array such as int numbers[5] i could assign values to it with numbers[0] = 1 or numbers[3] = 4. Then if i had a struct such as</p>
<pre><code>struct structName
{
int number0;
int number1;
int number2;
};
</code></pre>
<p>is there any way to do something like the following (note this is not working code)</p>
<pre><code>int main(void)
{
struct structName name; //how could i declare this to do the following
for(int i = 0; i < 2; i++)
{
name[i] = i; //maybe name.[i]
}
}
</code></pre>
<p>so is there a way to write name[ variable ] = someNumber to assign someNumber to say number0 (if variable was 0) or number2 (if variable was 2). ive been looking for days and cant find anything that does this. (maybe i just don't know what to look for) </p>
| 0non-cybersec
| Stackexchange |
Linux : Major and Minor device numbers. <p>What types of devices fall under the major device number category and what types of devices fall under the minor device number category. What is the real difference between the two categories? </p>
| 0non-cybersec
| Stackexchange |
Mod allows MK11 to run in full 60 fps during all cutscenes, in the menu as well as the Krypt with optional 21:9 support on PC. | 0non-cybersec
| Reddit |
Good Guy Greg: "Not everyone has to like me.". | 0non-cybersec
| Reddit |
"Warning! Secondary partition overlaps the last partition by x blocks" in gdisk, is it safe to use gdisk here?. <p>I'm trying to install convert my hard drive into GPT using <code>gdisk</code>, when I run <code>sudo gdisk /deve/disk1s4</code> I get this:</p>
<pre><code>Warning! Secondary partition table overlaps the last partition by
2032668853 blocks!
You will need to delete this partition or resize it in another utility.
</code></pre>
<p>Does this mean that it's unsafe to change my HD to GPT?</p>
| 0non-cybersec
| Stackexchange |
Can three transpositions generate a transitive subgroup of $S_5?$. <p>Can three transpositions generate a transitive subgroup of $S_5?$</p>
<p>I found all the transitive subgroups of $S_5$ upto isomorphism as follows.</p>
<p>(1) $\left< (12345) \right >$ of order $5.$</p>
<p>(2) $\mathbb {AGL} (1, \mathbb F_5) \cap A_5$ of order $10.$</p>
<p>(3) $\mathbb {AGL} (1, \mathbb F_5)$ of order $20.$ It is the normalizer of any Sylow-$5$-subgroup of $S_5.$</p>
<p>(4) $A_5$ of order $60.$</p>
<p>(5) $S_5$ of order $120.$</p>
<p>But now how can I proceed? Please help me.</p>
<p>Thank you in advance.</p>
| 0non-cybersec
| Stackexchange |
Philadelphia Phillies' dugout 1914 colorized [1024X800]. | 0non-cybersec
| Reddit |
[Question] Lv40 Trainers, how did you handle your lv40 bonus of 176 items dumped into your inventory?. I’m 220,000 XP from joining the ranks of the Lv40 club. Have to admit for some time now watching that xp bar approach the end has yielded some warm feels of satisfaction. That was until, I started getting curious what the Lv40 rewards looked like.
Sure I’d heard the jokes about turning 40 and getting 4 lucky eggs; as if what’s the point. I was curious what did the entire haul look like.
OMG! 176 items. WTH am I gonna do with all that? My bag is already maxed, I already have separation anxiety when deleting evolution items because they just feel like such a waste; there should be more value and excitement from finding one (or 7day spin) than just deleting it into oblivion. Not to mention I’m an casual raider who hordes those rare candies (dropped 3 at a time, bah!) for the dream of an EX Mewtoo Raid that has never developed. What am I gonna do???
What did you do when this substantial 176 items windfall came crashing down upon your inventory? How’d you handle it? | 0non-cybersec
| Reddit |
185 pounds down in 15 months.. I still have a fair ways to go, but Keto has changed my life. All of my health markers are near perfect, blood pressure is 117/79. It’s very rare for me to have a blood glucose over 100. My blood ketones are between 1-2 most days. I’ve gone from wearing tight 60” jeans from big and tall to 40” super skinny cut from Old Navy. I feel great and look forward to losing more this year.
Two pics linked here:
https://imgur.com/a/toxSH
I like to work in the yard and play with my kids, we go for bike rides and stuff. But otherwise there is no exercise just diet change. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
The relationship between minimum of summation and the summation of minimum. <p>I would like to investigate the relationship between:</p>
<p>$\min\{f(x) + g(x)\}$ and $\min\{f(x)\} + \min\{g(x)\}$</p>
<p>I think that it is fundamental and of course there exists a theorem or a lemma handling this relationship but I cannot find out.</p>
<p>My try: I made a toy example:
$f(x) = x^2 - 2x - 3$ and $g(x) = x^2 + 2x -3$. Then $\min\{f(x) + g(x)\} = -6$ and $\min\{f(x)\} + \min\{g(x)\} = -8$. It means that $\min\{f(x) + g(x)\}\geq \min\{f(x)\} + \min\{g(x)\}$</p>
| 0non-cybersec
| Stackexchange |
He also commented I have your IP address. | 0non-cybersec
| Reddit |
Override a WordPress plugin translation file on load. <p>I'm using WordPress in french with the plugin <a href="http://wordpress.org/plugins/the-events-calendar/" rel="noreferrer">The Events Calendar</a>.</p>
<p>This plugin comes with a bundled french translation but it has some mistakes. I want to fix them but replacing the original file is a bad idea since it's gonna be replaced with the next update. I contacted the developer to submit a fix but it may take some time.</p>
<p>In the meantime, I would like to load a duplicate I did from my template directory. I already tried multiple things like:</p>
<pre><code>load_plugin_textdomain( 'tribe-events-calendar', get_template_directory() . '/languages' );
</code></pre>
<p>Or with</p>
<pre><code>add_filter('override_load_textdomain', …)
</code></pre>
<p>in my functions.php but it doesn't seem to work. The only thing I was able to do is disabling the load of the original translation file.</p>
<p>Is there any way to replace a plugin translation file on load? I use WPML too but in "Translate with .mo files" mode not in "Translate with WPML" so I can't change plugin translation on the fly. Maybe WPML can load my own translation of The Events Calendar?</p>
| 0non-cybersec
| Stackexchange |
pheobe =^.^=
. | 0non-cybersec
| Reddit |
This is not what I intended.. | 0non-cybersec
| Reddit |
Object array initialization without default constructor. <pre><code>#include <iostream>
class Car
{
private:
Car(){};
int _no;
public:
Car(int no)
{
_no=no;
}
void printNo()
{
std::cout<<_no<<std::endl;
}
};
void printCarNumbers(Car *cars, int length)
{
for(int i = 0; i<length;i++)
std::cout<<cars[i].printNo();
}
int main()
{
int userInput = 10;
Car *mycars = new Car[userInput];
for(int i =0;i < userInput;i++)
mycars[i]=new Car[i+1];
printCarNumbers(mycars,userInput);
return 0;
}
</code></pre>
<p>I want to create a car array but I get the following error:</p>
<pre><code>cartest.cpp: In function ‘int main()’:
cartest.cpp:5: error: ‘Car::Car()’ is private
cartest.cpp:21: error: within this context
</code></pre>
<p>is there a way to make this initialization without making Car() constructor public?</p>
| 0non-cybersec
| Stackexchange |
Permanently unmap network printer (from network locations). <p>I have a printer that creates an unusable 'network drive' in the computer, and thus reserves that drive letter. I have a lot of hard disks and need every drive letter available. It is annoying to disconnect the drive each time I log in. How can I stop the printer from creating this network drive without a net-use-bat-file?</p>
<p>The network drive isn't listening in disk management so I can't simply remove the drive letter.</p>
<p>Here is a guy with a similar <a href="http://www.technologyquestions.com/technology/windows-vista/473176-printer-mapped-drive.html" rel="nofollow noreferrer"><strong>question</strong></a>.</p>
<p>I'm using windows 7 Ultimate x64 and the printer is a HP Officejet 7310 AIO.</p>
| 0non-cybersec
| Stackexchange |
Number of Fucks given < 0 (X-post /r/funny). | 0non-cybersec
| Reddit |
Failed to create AV capture input device: Cannot use Built-in Microphone. <p>I want to record the microphone on macOS with FFMPEG. I run:</p>
<pre class="lang-bsh prettyprint-override"><code>ffmpeg -f avfoundation -i ":1" -acodec libmp3lame -ab 32k -ac 1 output.mp3
</code></pre>
<p>and get this error:</p>
<pre><code>[avfoundation @ 0x7fcf2b000800] Failed to create AV capture input device: Cannot use Built-in Microphone
</code></pre>
<p>The output before the error message is:</p>
<pre><code>ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3_1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.2.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
</code></pre>
<p>How can I record microphone sound with FFMPEG on macOS?</p>
| 0non-cybersec
| Stackexchange |
Solve sum for theta. <p>Is there any way to solve the following sum of trigonometric functions for theta without using a solver?
$$25\sin(\theta)-1.5\cos(\theta)=20$$</p>
| 0non-cybersec
| Stackexchange |
Lengthy \section titles cause strange fancy headers and TOC. <p>Below is my document. My problem is, that whenever the \section titles are too long, they overlap with the logo and the TOC looks very strange with indents, where there shouldn't by any. Is there a way to reduce the header font size or make it adjust to the section-title length?</p>
<p>Here's <a href="https://www.sharelatex.com/read/hhnsdskddxcx" rel="nofollow noreferrer">a link</a> to the document, where you can see the overlapping etc.</p>
<pre><code>\documentclass[a4paper,10pt,titlepage,twoside]{article}
\usepackage[ngerman]{babel}
%lots of maths packages
\usepackage{tikz-3dplot,framed,enumitem,bbm}
%break after each section
\usepackage{titlesec}
\newcommand{\sectionbreak}{\vspace{6mm}}
\usepackage[margin=1.5cm, headheight=12.6pt, includeheadfoot, left=2cm, right=2cm]{geometry}%new borders
\usepackage{fancyhdr}%header
\pagestyle{fancy}
\fancyhf{}
\fancyhead[RE,LO]{\scshape\nouppercase{{\rightmark}}}
\fancyhead[LE]{\includegraphics[width=1cm]{tub_logo.png}}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{1.2pt}
\setlength\headheight{25pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{titlepage}
\begin{center}
{\scshape\Large Technische Universität Berlin \par}
% title page (omitted text etc. because its not relevant)
\tableofcontents
\end{center}
\end{titlepage}
\section{Vollständigkeit, Kompaktheit, endliche Durchschnittseigenschaft und der Banachsche Fixpunktsatz}
text
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
Is there a free and downloadable single-file version of the iPhone XR or iOS 12 guide?. <p>Is there a free and downloadable single-file version of the manual for the iPhone XR or for the iOS 12 that it comes installed with? I mean downloadable (for example as a .pdf) without using Apple's iOS or having logged in to an Apple server from an actual iPhone XR.</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's one thing that instantly makes someone less attractive?. | 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 |
PsBattle: Sleeping kitty with a slightly open mouth. | 0non-cybersec
| Reddit |
What is the difference between Windows UEFI bootmgfw.efi and Windows UEFI bkpbootx64.efi?. <p>Also help me by explaining why windows UEFI loader was first taking me to windows but now is redirecting back to this page:</p>
<p><a href="https://i.stack.imgur.com/qjJ1a.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qjJ1a.jpg" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
UDID Replacement in IOS7. <p>Is there is a alternative for UDID. My app will not be going to App Store as i'm using enterprise distribution. So is there any replacement. I tied advertising identifier, open udid, UIID and secure UDID. But if the phone is reset then i will get a new UDID. Any help would be appreciated. </p>
| 0non-cybersec
| Stackexchange |
The teeth are sharpened. I took this pic in a museum in Costa Rica.. | 0non-cybersec
| Reddit |
Newly discovered flaws in IoT and ICS devices would allow criminals to paralyze them or force them to run malicious code. | 1cybersec
| Reddit |
Musical Notes: "Yello Submarine" Sails into Theatres. | 0non-cybersec
| Reddit |
How to get specific column value for a specific row value in AWK?. <p>My folder structure looks like this:</p>
<pre><code>$ tree
.
├── Original_folder
│ └── cat.txt
├── folderCD
│ └── cat.txt
├── folderGK
│ └── cat.txt
├── folderFE
└── cat.txt
</code></pre>
<p>My <code>cat.text</code> file is like this </p>
<pre><code>Version LRv1.10.0
Build date 2017-12-06
MOL-calc
PRESSURE
!
Time[s] InletT[K] InletP[Pa] O2_GasOut C_GasOut
100 0.001885 1070000 0.0007 0.2111
200 0.050885 1005000 0.0056 0.2171
50 0.010885 1200000 0.0855 0.2411
and so on....
</code></pre>
<p>How to extract the column value with keyword in columnheader "_GasOut" for Time[s]=200?
How to extract the same data from all those cat.txt file and generate a new text file like this.....</p>
<pre><code>Folder Time[s] O2_GasOut C_GasOut
Original_folder 200 0.0007 0.2111
FolderCD 200 0.0007 0.2111
FolderGK 200 0.0056 0.2171
FolderFE 200 0.0855 0.2411
</code></pre>
<p>So far I tried to grab the column with <code>"_GasOut"</code> header.</p>
<pre><code>gawk -F $'\t' '
/_GasOut/{
for(f=1;f<=NF;f++){
# $a ~ "B" matches if string B is part of field $a
# only these elements are taken to array colhdr
if ($f ~ "_GasOut") colhdr[f]=$f
print $f
}
}
</code></pre>
<p>But it is not printing the columns f. And I don't know how to proceed further.
I wanted to have a new file(desired output text file) so that I can plot all the columns in separate graphs along with folder names in X axis.
I added one of the cat.txt file for reference. <a href="https://1drv.ms/t/s!Aoomvi55MLAQh1wMmpnPGnliFmgg" rel="nofollow noreferrer">https://1drv.ms/t/s!Aoomvi55MLAQh1wMmpnPGnliFmgg</a> </p>
| 0non-cybersec
| Stackexchange |
Quarter life crisis. I realize that this may not make sense to an outside reader, but I just feel like my journal entry needed to be read.
I am unhappy. I've admitted it; I'm unhappy. In spite of the numerous things that I've got going for me right now, I am not living it up. And I'm pretty sure I know why. It's because I don't love myself. I put myself down. I feel like I'm not good enough. I constantly look for other people to tell me what to do or how to act. I value their opinions above my own. I don't have a passion. While in school, I dropped a lot of my pastimes so that I could make good grades and do things with the band. Now, I'm not really sure what I like. Reading is fun, but I just don't have the same passion for it that I once did. Art takes time and money. Baking, my newest discovery, requires the same. None of them are very practical for college life, yet when I get home, I now find that I have nothing. I'm so used to living without that I can't pick them back up. I read one or two books, do a brief sketch, bake a few cakes, but it's not the same.
Additionally, I am still trying to cope with the fact that I don't have any friends. Well, I have lots of friends, but I will say 3 close-ish friends, one of them my boyfriend, all of them of the male persuasion. I find this to be a barrier when I need to talk. It's not the same as having girlfriends. (Part of me is amazed I can even make this claim since I was never really close with my girlfriends in high school either.) I think this is because I am not a gamer. I don't really enjoy FPS; they're not something I'd seek out. Because of this, my boys and I really don't have that much in common, nothing to talk about on an everyday basis. I'm still looking for someone to chat with about relationships, cute boys, shopping, makeup, zombies, gore, etc. I'm looking for someone like me. Yet, I'm not sure who I am. I can only look for someone that I think would be like me. I look for someone who wants to go to parties, but isn't a drinker (which is hard to find when neither of us would go to the party). I'm looking for someone who has, at the very least, expressed in interest in dating so our conversations aren't incredibly lopsided. I'm looking for someone who I can just hang out with, who I can call up and just have a conversation with. (Yes, it's "whom", but screw it.)
All of this is just compounded by the fact that I have a really hard time confiding in people. I think it might be from being hurt in the past, but it might also be due to the fact that I'm terribly afraid of being judged, since I'm not confident enough to defend myself. It's kind of funny, now that I think about it. I trust people to always tell me the truth, but I don't trust them not to tell other people. Selective trust issues. Anyway, hopefully by the end of this next semester, I will have made some progress in that regard. I know that it kills my boyfriend that I only confide in him. It's not (I don't think) healthy and it puts way too much pressure on him. Everything that I've mentioned is affecting our relationship. He's going through rough times, but is afraid to lean on me since I'm putting all my weight on him. We're both slowly becoming different people, which is more than expected at our age. But now, with increasing frequency, I'm starting to have doubts about our relationship.
I think it's mostly due to what I'm realizing about myself. The idea of taking a break until I can fully claim that I am my own independent person is becoming appealing. (So is the idea of moving out of my parent's house, even though I have no earthly idea of how to take care of myself, but that subject can be breached later.) I'm deathly afraid of blowing my chance with him if I do this though. It would be cruel to ask him to wait for me, especially because I'm not even sure what I'd want to do to try to find myself. I just feel like I'm not really ready for a relationship, which is something that I should have discovered long ago. At the same time, when I'm actually enjoying myself and doing things, I love my boyfriend and our relationship. It's mostly in quiet times when I start to question and think to myself that it looks less bright. How do I know whether to hold out through the storm or cast off and try to fix my own life raft? I should not that I realize the irony in asking for advice, since I already mentioned that one of my issues is taking advice too seriously.
Thanks for reading, anonymous person.
TL;DR: Kibbles and bits | 0non-cybersec
| Reddit |
Does it exist an Eclipse plugin to show two pans of code simultaneously?. <p>As Eclipse cannot show two pans of code simultaneously, I am used to using gvim to have it. But it is unpractical.</p>
<p>Does it exist an Eclipse (CDT) plugin to show two pans of code simultaneously ?</p>
| 0non-cybersec
| Stackexchange |
Elephant throw 1100 pound buffalo in the air like it's nothing (photographer Kim Maurer). | 0non-cybersec
| Reddit |
Stop all subscripts if test fails. <p>Consider the situation: </p>
<p><strong>script files:</strong> <code>main.sh</code>, <code>sub1.sh</code> and <code>sub2.sh</code>.</p>
<p>In <code>main</code> I call <code>sub1</code> and <code>sub2</code>. Then I am running <code>main</code> for all files from a folder, using <code>for</code>:</p>
<pre><code>for file in samples/*.jpg; do bash ./main.sh $file; done
</code></pre>
<p>and it works very well. </p>
<p>But in <code>sub1</code> I am computing some values and I'd like to stop the execution of <code>main</code> for the current <code>$file</code> if the test fails, and start again <code>main</code> for the next file from the loop. </p>
<p>For example, if the folder contains jpg files <code>01,...,09</code> and the test in <code>sub1</code> fails for the file <code>04</code> then stop <code>sub1</code> for <code>04</code>, skip <code>sub2</code> for <code>04</code>, stop the rest of <code>main</code> for <code>04</code> and start <code>main</code> for <code>05</code>.</p>
<p>The test is:</p>
<pre><code>if (( $numcc % 3 == 0 ))
then
...
else
...
fi
</code></pre>
| 0non-cybersec
| Stackexchange |
You may be interested in: (samsung apps). | 0non-cybersec
| Reddit |
Judge freezes $30 million that Santa Clara county withheld from 49ers stadium. . | 0non-cybersec
| Reddit |
arXiv:nlin/0204016v2 [nlin.PS] 26 Aug 2002
ar
X
iv
:n
li
n/
02
04
01
6v
2
[
nl
in
.P
S
]
2
6
A
ug
2
00
2
Does ohmic heating influence the flow field in thin-layer electrodeposition?
Matthias Schröter∗ and Klaus Kassner
Fakultät für Naturwissenschaften, Otto-von-Guericke Universität Magdeburg, Postfach 4120, D-39016 Magdeburg, Germany
Ingo Rehberg
Physikalisches Institut, Universität Bayreuth, D-95440 Bayreuth, Germany
Josep Claret and Francesc Sagués
Departament de Qúımica-F́ısica, Universitat de Barcelona, Mart́ı i Franquès 1, E-08028 Barcelona, Spain
(Dated: November 11, 2018)
In thin-layer electrodeposition the dissipated electrical energy leads to a substantial heating of
the ion solution. We measured the resulting temperature field by means of an infrared camera. The
properties of the temperature field correspond closely with the development of the concentration
field. In particular we find, that the thermal gradients at the electrodes act like a weak additional
driving force to the convection rolls driven by concentration gradients.
PACS numbers: 81.15.Pq, 87.63.Hg, 47.27.Te
I. INTRODUCTION
The electrochemical deposition of metals from aque-
ous solutions in quasi-two-dimensional geometries has
proven to be a valuable test bed to examine concepts
of interfacial growth like fractal growth [1, 2], morpho-
logical transitions [3, 4, 5] or dendritic growth [6, 7].
The properties of the evolving deposit are in many cases
sensitive to the presence of convection currents in the
solution [8, 9, 10, 11, 12, 13]. There are two well-
known origins of convection rolls: a) on small scales,
spatial inhomogeneities of the ionic charge distribution
can trigger electro-convection [14, 15, 16]; b) density in-
homogeneities due to concentration changes at the elec-
trodes induce large scale gravity-driven convection rolls
[7, 10, 13, 16, 17, 18, 19, 20].
However there is another potential source of density
changes: due to the small cell volume of typically ≤
1 cm3, the dissipated electric energy can be the source
of a significant heating. If the cell were completely ther-
mally insulated, a solution exposed to an electrical power
of 500mW would start to boil after 500 s. While ther-
mal conduction will confine the overall temperature in-
crease to smaller values, considerable temperature gradi-
ents might arise and generate density driven convection.
Thermally induced convection rolls have been thor-
oughly studied in thin-layer geometries heated from be-
low (for a recent review see [21]) and the side [22, 23,
24, 25, 26]. In contrast, the role of thermal effects was
previously not examined in electrodeposition. In order
to quantify the possible temperature gradients, a high
spatial resolution of the temperature field is necessary.
We present here measurements of the temperature field
at both electrodes performed by use of an infrared cam-
era. The so determined evolution of the temperature field
∗Electronic address: [email protected]
can be related to the development of the concentration
field, which is known from interferometric measurements
[7, 27]. The remainder of the paper is organized as fol-
lows: Section II describes our experimental setup, sec-
tion III presents the measurement results, which will be
discussed in sec. IV.
II. EXPERIMENTAL SETUP
The measurements are performed with the infrared
camera Varioscan 3021-ST from InfraTec, which contains
a Stirling-cooled HgCdTe-detector with 360 × 240 pixel.
Using its macro we observe an area of 5.0 × 3.4 cm2,
which yields a spatial resolution of 140µm. The max-
imal image capturing frequency is 1.1Hz, the thermal
resolution ± 30mK.
While the sensor is sensitive for wavelengths in the
range of 8-12 µm, glass plates, which are normally used
as top and bottom plate of the cell, are opaque in this
region. Therefore the upper cell cover was realized using
a polyethylene foil stretched over an aluminium frame.
Due to the flexibility of the polyethylene foil and a small
overpressure necessary to fill the cell, the plate separation
of about 0.5 mm is not well defined. The bottom plate
of the cell consists of a block of Teflon, because this ma-
terial has a low reflectivity in the infrared. This reduces
the so called narcissism: the response of the cooled detec-
tor to its own mirror image. The electrodes are parallel
zinc wires (Goodfellow 99.99%) of 0.25mm diameter and
separated by a distance of 4 cm. Fig.1 shows an image of
the cell during an experiment.
The cell is filled with an 0.1M ZnSO4 solution pre-
pared from Merck p.a. chemicals in nondeaerated ultra-
pure H2O. The measurements are performed at a con-
stant potential of 20 ± 0.003 V. Due to the current in-
crease during the electrodeposition process, the average
electrical power feed Q̇el increases from 470mW at the
beginning of the experiment to 650mW after 500 s.
http://arxiv.org/abs/nlin/0204016v2
mailto:[email protected]
2
FIG. 1: Cell used for the infrared measurements. The bottom
(white) consists of Teflon, the upper cover is a polyethylene
foil stretched over an aluminium frame. The electrodes are
parallel zinc wires with a distance of 4 cm. The deposit at the
cathode has grown for 410 s.
Because of the modified cell construction, the question
of comparability with experiments performed in standard
electrodeposition cells could be raised. Therefore we cal-
culate the heat-flux kiAi for the confining plates, where
Ai and ki are the area and the heat transfer coefficient
of the plate. It is important to keep in mind, that 1/ki
is equivalent to 1/α1 + 1/α2 + ∆zi/λi. Here α1 and α2
are the heat transition numbers from solution to plate
resp. plate to air, λi is the heat conductivity and ∆zi the
thickness of the plate.
Inserting the material parameters of our setup [28, 29]
and using only the area between the two electrodes, we
derive a kiAi of 16.2mW per Kelvin temperature dif-
ference for the polyethylene foil and 11.5mW/K for the
Teflon plate, while a typical glass plate (Schott BK 7,
6.3mm thick) yields 16mW/K. So in a first approxima-
tion our setup is thermally equivalent to a standard elec-
trodeposition cell.
III. EXPERIMENTAL RESULTS
Fig. 1 shows the growing deposit at the cathode, which
belongs to the homogenous morphology [30]. It is charac-
terized by tip-splitting but retaining a growing front par-
allel to the cathode. After 500 s a Hecker transition [4]
takes place and the growth front breaks up into more
spatially localized zones of active development.
Immediately before each experiment the infrared cam-
era takes a zero image, which is then subtracted from all
images taken during the experiment. Therefore the ther-
mographies solely depict the temperature increase. Fig. 2
gives an example of such a thermography after 280 s, the
scale at the right describes the temperature increase with
respect to the beginning of the experiment. The white
line marks the position of the anodic zinc wire. The
temperature decrease at the left hand side of the image
is caused by the thermal conductivity of the aluminium
frame, the warm “island” in the middle is due to the
inhomogeneity of the cell thickness.
FIG. 2: Thermography taken 280 s after the start of the ex-
periment. The size of the image is 5.0 × 3.4 cm2. The white
line corresponds to the position of the anodic zinc wire, the
rows between the black lines are averaged to produce Fig. 3.
In order to improve the signal to noise ratio, zones of
spatial homogeneity and a width of 9.1mm are chosen
by visual inspection. Such a zone is depicted in Fig. 2
with two parallel black lines. Inside this zone all rows
are averaged, yielding a temperature increase ∆T (y, t),
which is only a function of distance to the cathode y and
time.
Fig. 3 shows the evolution of ∆T in the neighborhood
of the anode. It is clearly visible that the temperature
increase at the anode itself lags behind with respect to
the one observed in the middle of the cell.
Fig. 4 illustrates the evolution of the temperature field
at the cathode. The most prominent feature is the ex-
istence of a local temperature maximum, denoted with
small arrows. This maximum moves towards the middle
of the cell, where a plateau of spatially constant temper-
ature is located.
In order to characterize the heating process in the cell,
we pick the temperature at a distance of 25.6mm to the
cathode (this is approximately the location, where the
two convection rolls emerging from the electrodes finally
meet, as will be discussed in Section IVB). Referring to
this point, we will speak of the bulk in the following. In
Fig. 5 this temperature increase ∆Tbulk is given for the
two experiments presented in Fig. 3 and 4. The fact that
the two measurements are almost identical reflects the
reproducibility of the experiment. The solid line is a fit
to an exponential function, which is motivated in detail
in Section IVC.
The arrows in Fig. 3 represent the location, where the
temperature is 20 mKsmaller than ∆Tbulk. The distance
of these points with respect to the anode is denoted La(t)
and is shown in Fig. 6 (a). Its monotonous increase with
3
0
1
2
3
4
5
6
26 28 30 32 34 36 38 40
T
e
m
p
e
ra
tu
re
in
cr
e
a
se
∆
T
(
K
)
Position along the cell y (mm)
11 s
97 s
208 s
309 s
402 s
FIG. 3: Temporal evolution of the temperature field at the
anode, which is located at 40mm. All data are averaged over
a width of 9.1mm. The arrows indicate the position where
the deviation of ∆T from the bulk temperature becomes less
than 20mK.
0
1
2
3
4
5
6
7
0 5 10 15 20 25
T
e
m
p
e
ra
tu
re
in
cr
e
a
se
∆
T
(
K
)
Distance to initial cathode position y (mm)
25 s
100 s
200 s
303 s
400 s
FIG. 4: Temporal evolution of the temperature field at the
cathode. All data are averaged over a width of 9.1mm. The
arrows mark the position of the temperature maximum.
time is fitted by a power law, which will be explained
in Section IVA. Correspondingly, Fig. 6 (b) shows the
growth of the distance Lc(t) between the the location of
the temperature maximum in Fig. 4 and the cathode.
The straight line is a fit to all data with t > 100 s, which
will be motivated in Sec. IVB.
IV. DISCUSSION AND CONCLUSIONS
In principle, the energy balance involves three con-
tributions: the electrical energy feed into the cell, the
dissipated ohmic heat and the chemical reaction energy.
However the short calculation presented in the appendix
supports the assumption that the chemical energy con-
0
1
2
3
4
5
6
7
0 50 100 150 200 250 300 350 400 450 500
T
e
m
p
e
ra
tu
re
in
cr
e
a
se
∆
T
b
u
lk
(
K
)
Elapsed time (s)
FIG. 5: Temperature increase in the bulk of the cell at a
distance of 14.4 mm to the anode and 25.6 mm to the cathode.
The ◦ correspond to the experiment presented in Fig. 4 the
� to the one in Fig. 3. The solid line is a fit of Equation 5 to
the ◦.
tribution is mostly irrelevant.
The ohmic heat dissipated at some position in the cell
will be proportional to the local resistivity ρ(y, t) in a
one-dimensional model, while ρ will depend on the local
ion concentration c(y, t). In the next three subsections
we will compare the evolution of the temperature field
at the anode, at the cathode and in the bulk with the
development of the concentration field, which is known
from interferometric measurements [7, 27].
A. Evolution of the temperature field at the anode
At the anode Zn2+ ions go into solution, increasing
the local concentration and therefore density. While this
denser solution sinks down to the bottom plate, it gets
replaced by less dense bulk solution. This mechanism
drives a convection roll of size L [13, 16, 19]. According
to the fluid dynamical description there are two growth
regimes: Initially during the so called immiscible fluid
regime L will grow with t0.8, while after some time there
will be a crossover to the diffusion hindered spreading
regime with a t0.5 growth law. Chazalviel et al. [19]
showed, that both the fluid velocity v and the ion con-
centration decrease with increasing distance to the elec-
trode. The distance, where v has dropped to zero and
coincidently c has fallen to cbulk, defines L.
Figure 3 shows that the temperature increase in the
region between the anode and the arrows lags behind the
one observed in the bulk. As c > cbulk translates into
reduced ohmic heating, we identify the position of the
arrows with the end of the anodic convection roll. A fit
to its length with:
La(t) = at
b (1)
4
0
2
4
6
8
10
12
14
L
a
(
m
m
)
(a)
0
2
4
6
8
10
0 50 100 150 200 250 300 350 400
L
c
(m
m
)
Elapsed Time (s)
(b)
FIG. 6: Temporal evolution of: (a) the distance between the
anode and the point, where the temperature starts to deviate
from the bulk. The solid line is a fit with Equation 1. (b) the
distance between the temperature maximum and the initial
cathode position. The fit is performed with Equation 2 to the
data indicated with filled symbols.
is presented in Fig 6 (a). It yields: a = 0.13 ± 0.01 mm
and b = 0.78 ± 0.01, which indicates that the convection
roll is in the immiscible fluid regime for the whole run of
the experiment. According to the scaling analysis pre-
sented in Ref. [13], this corresponds to an average plate
separation of about 650µm.
B. Evolution of the temperature field at the
cathode
Due to the growing deposit, there is a zone of ion deple-
tion in the vicinity of the cathode, the size of which will
be affected by the convection roll driven by the occur-
ing density difference. As the decreased c leads to higher
dissipation, the increased temperature denoted by the ar-
rows in Fig. 4 is qualitatively explained. The distance of
the arrows to the initial cathode position Lc(t) should
correspond to the actual size of the deposit. Therefore
we perform a linear fit with:
Lc(t) = vct+ lc (2)
which is shown in Fig. 6 (b). We derive vc = 21.2 ±
0.4 µm/s, which agrees well with 20.7 ± 0.8 µm/s front
velocity determined from photographs of the deposit.
lc is found to be 2 ± 0.1 mm. This finite distance can
be explained by the absence of heat production in the
metallic deposit because of its low resistivity and the fact
that its heat conductivity is 190 times higher than water.
So the deposit is an effective heat sink, the resulting heat
flux shifts the temperature maximum into the cell.
If the cathodic convection roll, apart from the fact that
it starts at the actual front of the deposit, grows in the
same way as the anodic roll, they meet 450 s after the
beginning of the experiment at a distance of 25mm to
the cathode. This corresponds to the observed change in
morphology after that time.
C. Temperature evolution in the bulk
The temperature increase observed in Fig. 5 can be
modeled, if we assume, that the whole cell shares the
constant bulk properties c and ρ and therefore T . The
supplied electrical power Q̇el would then be compensated
by the heating of the system with heat capacity C and
the heat flow Q̇flow:
Q̇flow = −(T − T0)
∑
i
kiAi (3)
where T0 represents the ambient temperature and T the
temperature inside the electrolyte. If we assume Q̇el to
be constant, the corresponding differential equation:
Q̇el = (T − T0)
∑
i
kiAi + C
∂T
∂t
(4)
has the straightforward solution:
(T − T0) = Tfinal
(
1− e
−t/τ
)
(5)
Here Tfinal = Q̇el/
∑
i kiAi denotes the finally reached
temperature difference and τ = C/
∑
i kiAi is the time
constant of the heating up. A fit of Equation 5 to the ex-
perimental data is displayed in Fig. 5. It yields: Tfinal =
9 ± 0.2 K. This translates to an overall heat-flux
∑
i kiAi
of 60mW per K temperature difference. A comparison
of this result with the values of kiAi calculated in Sec. II
shows that about 50% of the heat flux takes place through
the top and the bottom plate of the cell. The heat flux
through the side walls, the electrodes and the plate area
beyond the electrodes accounts for the rest.
5
D. Influence of the temperature gradients on the
convection rolls
In order to estimate the influence of the temperature
gradients on the concentration driven convection cur-
rents, we plot in Fig. 7 the difference between ∆Tbulk
and a) the cathodic temperature maximum and b) the
anode. These temperature gradients result in a down-
flow at the anode and an up-flow at the growth front, so
they act as an additional driving.
-4
-3.5
-3
-2.5
-2
-1.5
-1
-0.5
0
0.5
1
1.5
0 50 100 150 200 250 300 350 400 450 500
T
e
m
p
e
ra
tu
re
c
o
m
p
a
re
d
w
ith
∆
T
b
u
lk
(
K
)
Elapsed time (s)
FIG. 7: Temperature difference between the bulk and ◦: the
cathodic temperature maximum and �: the temperature at
the anode.
1.01
1.02
1.03
1.04
20 25 30 35 40
D
e
n
si
ty
(
g
c
m
-3
)
Temperature (°C)
1 mg cm-3
24.1 mg cm-3
0.25 M ZnSO4
0.1 M ZnSO4
FIG. 8: Temperature dependency of the densities at the anode
and in the bulk. The • correspond to c = 1.0m ZnSO4, the
◦ to cbulk = 0.1m ZnSO4.
For a more quantitative determination of their con-
tribution, the temperature dependency of the density
was measured for different concentrations. The applied
density measurement instrument DMA 5000 from Anton
Paar has an accuracy better than 50µg/cm3.
After 400 s the temperature of the 0.1M ZnSO4 bulk
solution has reached about 30 ◦ C which corresponds to
a density of 1012.3 mg/cm3. In accordance with the
measurements presented in Ref. [7] and the theory in
Ref. [19], we estimate c at the anode for that time as
0.25M. This corresponds to a density of 1036.4mg/cm3
for T = 30 ◦ C and 1037.4mg/cm3 for the actually mea-
sured T ≈ 27 ◦ C. So the contribution of the temperature
gradient to the overall density difference at the anode is
about 4% as visualized in Fig. 8.
At the cathode c has reached zero at that time, ρ of
H2O is 995.68mg/cm
3 for T = 30◦C and 995.38mg/cm3
for the T = 31◦C at the maximum. This results in a
2% contribution of the temperature gradient to the total
density contrast.
As our applied potential is above average for standard
electrodeposition experiments, we conclude that temper-
ature inhomogeneities will only weakly contribute to the
density driven convection rolls. This result justifies with
hindsight the use of the theoretical description of Chaz-
alviel et al.[19]. Finally it should be remarked that
morphologies like stringy [31], where the zone of active
growth is restricted to few small spots with very high
local current densities, may differ substantially from our
results.
Acknowledgments
We want to thank Jürgen Fiebig from InfraTec for his
friendly support. We are also grateful to Niels Hoppe
and Gerrit Schönfelder from IMOS, Universität Magde-
burg for their assistance with the density measurements.
This work was supported by the Deutsche Forschungsge-
meinschaft under the project FOR 301/2-1. Cooperation
was facilitated by the TMR Research Network FMRX-
CT96-0085: Patterns, Noise & Chaos.
V. APPENDIX
The standard enthalpy of formation ∆bH
⊖ of Zn2+
ions in an infinitely diluted solutions is −153.89kJ/mol
[32]. It contains three different contributions: 1) the en-
ergy necessary to liberate an atom from the surrounding
lattice, 2) the energy needed to ionize the atom and 3)
the hydration energy, which is set free when the water
dipoles surround the ion. Only the last term depends
on the concentration of the solution, decreasing with the
number of ions already dissolved.
As the reaction rate at the electrodes is directly pro-
portional to the electrical current I, so is the chemical
power Q̇chem :
Q̇chem =
∆bH
⊖
F z
I (6)
where F is the Faraday constant (96485As/mol) and z
the charge number. For zinc we derive Q̇chem/I = -
6
0.8mW/mA. In the vicinity of the anode this number
leads to additional heating due to the transformation of
chemical energy. At the cathode the chemical energy
stored in the newly produced zinc has to be subtracted
from the overall heat production, but does not lead to a
direct cooling of the cathode.
With our experimental conditions an average current
of 30mA feeds an electrical power of 600mW into the
cell. Compared to that Q̇chem is 24mW which is about
4% of the electrical power.
At the cathode the ion concentration drops fast to zero,
which justifies the approximation of an infinitely diluted
solution. At the anode the ion concentration increases
during the whole run of the experiment. Therefore the
hydration energy of the newly produced Zn2+ ions de-
creases and in consequence the heat, which is released
from the chemical reaction decrease as well. So the over-
all heat production from chemical energy at the anode
is smaller than estimated here and therefore mostly ir-
relevant for the energy balance. This conclusion agrees
with the fact that the anode is the coldest point of the
cell as clearly shown in Fig 3, in spite of this extra heat
production there.
[1] F. Argoul, A. Arneodo, G. Grasseau, and H. L. Swinney,
Phys. Rev. Lett. 61, 2558 (1988).
[2] A. Kuhn and F. Argoul, J. Electroanal. Chem. 397, 93
(1995).
[3] V. Fleury, M. Rosso, and J.-N. Chazalviel, Phys. Rev. A
43, 6908 (1991).
[4] A. Kuhn and F. Argoul, Phys. Rev. E. 49, 4298 (1994).
[5] M.-Q. Lòpez-Salvans, F. Sagués, J. Claret, and J. Bassas,
Phys. Rev. E 56, 6869 (1997).
[6] D. Barkey, F. Oberholtzer, and Q. Wu, Phys. Rev. Lett.
75, 2980 (1995).
[7] F. Argoul, E. Freysz, A. Kuhn, C. Léger, and L. Potin,
Phys. Rev. E 53, 1777 (1996).
[8] J. Jorne, Y.-J. Lii, and K. E. Yee, J. Electrochem. Soc.
134, 1399 (1987).
[9] L. López-Tomàs, J. Claret, and F. Sagués, Phys. Rev.
Lett. 71, 4373 (1993).
[10] D. P. Barkey, D. Watt, and S. Raber, J. Electrochem.
Soc. 141, 1206 (1994).
[11] M.-Q. Lòpez-Salvans, P. P. Trigueros, S. Vallmitjana,
J. Claret, and F. Sagués, Phys. Rev. Lett. 76, 4062
(1996).
[12] M. Rosso, E. Chassaing, and J.-N. Chazalviel, Phys. Rev.
E 59, 3135 (1999).
[13] M. Schröter, K. Kassner, I. Rehberg, J. Claret, and
F. Sagués, Phys. Rev. E 65, 041607 (2002).
[14] V. Fleury, J.-N. Chazalviel, and M. Rosso, Phys. Rev.
Lett. 68, 2492 (1992).
[15] V. Fleury, J.-N. Chazalviel, and M. Rosso, Phys. Rev. E
48, 1279 (1993).
[16] J. M. Huth, H. L. Swinney, W. D. McCormick, A. Kuhn,
and F. Argoul, Phys. Rev. E 51, 3444 (1995).
[17] M. Rosso, J. N. Chazalviel, V. Fleury, and E. Chassaing,
Elektrochimica Acta 39, 507 (1994).
[18] K. A. Linehan and J. R. de Bruyn, Can. J. Phys. 73, 177
(1995).
[19] J. N. Chazalviel, M. Rosso, E. Chassaing, and V. Fleury,
J. Electroanal. Chem. 407, 61 (1996).
[20] S. Dengra, G. Marshall, and F. Molina, J. Phys. Soc.
Jpn. 69, 963 (2000).
[21] E. Bodenschatz, W. Pesch, and G. Ahlers, Annu. Rev.
Fluid. Mech. 32, 709 (2000).
[22] D. E. Cormack, L. G. Leal, and J. Imberger, J. Fluid
Mech. 65, 209 (1974).
[23] J. Imberger, J. Fluid Mech. 65, 247 (1974).
[24] J. Patterson and J. Imberger, J. Fluid Mech. 100, 65
(1980).
[25] B. Boehrer, Int. J. Heat Mass Transfer 40, 4105 (1997).
[26] R. Delgado-Buscalioni, Phys. Rev. E 64, 016303 (2001).
[27] C. Léger, J. Elezgaray, and F. Argoul, J. Electroanal.
Chem. 486, 204 (2000).
[28] A. M. James and M. P. Lord, eds., Macmillan’s Chemical
and Physical Data (The Macmillan Press, London, 1992).
[29] H. Lindner, Physik für Ingenieure (Fried. Vieweg & Sohn,
Braunschweig, 1989).
[30] F. Sagués, M. Q. Lòpez-Salvans, and J. Claret, Physics
Reports 337, 97 (2000).
[31] P. P. Trigueros, J. Claret, F. Mas, and F. Sagués, J.
Electroanal. Chem. 328, 165 (1992).
[32] P. W. Atkins, Physikalische Chemie (VCH Verlagsge-
sellschaft, Weinheim, 1990).
| 0non-cybersec
| arXiv |
What does "p a h p i d t i H a m o" mean?. Hi all,
Sorry about the vague title. I thought it might be the best way to catch your attention, because I've been dealing with a problem that's had me at my wit's end the whole day and...well, honestly, I need all the help I can get. I'm typing this up in the kitchen right now. It's the only place I feel comfortable in because there are no dolls here.
I'll explain: I’m housesitting for my friend’s house this week. I don’t usually do things like this (I always feel like an intruder in other people’s homes), but he was my best friend in high school and really helped me through a lot. We haven’t been as close since his daughter, Kit, committed suicide a year ago. It's been hard on them, to the point where we dropped out of contact for a while. Imagine my surprise when they called me last week, asking if I could housesit for them. They didn’t have anyone else to go to, they said, and of course that made me feel sorry for them.
So I said yes, and last Thursday I came over with a week’s worth of clothes, and they gave me a rundown of their rules. I could pretty much do anything what I wanted, except have other people over (as if I had enough other friends for that), or go into Kit’s room.
They were pretty strict about that second one. I don’t blame them, though. I think they’ve been keeping it untouched since her death — I hear about parents doing that as a coping mechanism all the time, so I completely understand.
Plus, it’s a little creepy to even be on the same floor as a room where a now-dead girl used to sleep, you know?
Anyways, they left after that — now that I think about it, they didn’t even tell me where they were going, just that they were in a hurry. The first night went pretty quietly. I slept on the couch — again, that whole feeling-like-an-intruder thing. It didn’t feel right to sleep upstairs, and I slept just as well on the couch. The *tap-tap-tapping* of the clock made it easy to fall asleep.
Friday — yesterday — was quiet too. I didn’t do much, just read from their books. I stayed in their living room at first, but the dolls on the shelves were starting to seriously creep me out. I swear, there’s at least one doll in every room I’ve seen, even in the halls. They’re on the shelves in the living room, there’s one on top of the grandfather clock in the hall, and there are little matroyshka dolls in the bathroom. I haven’t been to any of the upstairs rooms, but I’d bet there are dolls there too. That’s why I’ve been in the kitchen — no dolls around here, thank God. I think that’s another coping mechanism of theirs; I know Kit loved dolls. (That doesn’t make them any less creepier, though. Don’t tell them I said that.)
The whole reason I wrote this up was because this morning, I woke up, and there were letters on the wall beside the shelves. I don’t even want to call it writing because it was almost *carved* into the plaster. There were three rows of them, and they looked pretty nonsensical:
>p a h p i d t i H a m o
>l s e m d n d t E d e i
>e e l e i o o S m e d t
I swear, those dolls were *smirking* at me when I panicked and called my friend. I frantically explained to him that someone had carved these things into the wall and *I swear it wasn’t me* but that I was so sorry and I’d help pay for the repairs. His response? “They’ve been there for weeks. We’re already planning to fix them soon, don’t worry.” I was relieved, but I don’t think I saw those letters when I first came to their house…?
I didn’t want to push my luck, though, so I made some joke about ghosts doing it or whatever. We laughed, and I thought it was a good time to comment about how maybe it was the dolls after all.
“The dolls?” he asked, and suddenly his voice had turned angry. Then he accused me of going into Kit’s room, which confused me. I told him, “No, I mean all the dolls around the house?” and he asked, “What dolls?” and I said, “The *dolls*, like the one with curly hair in the living room.”
He went sort of silent for a while. Then he said he had to go, he’d call me back, and hung up. I tried to call both him and his wife back several times, but neither of them have picked up. I’ve moved to the kitchen, like I said. But did you know what I saw on my way back in? The clock's a fake. I realized the time didn't look right, so I tried to fix the hands, only to realize that they don't even move around. The doll above it was grinning mockingly at me, I swear.
I'll let you know if he finally calls back, but for now I’m just sitting here, a little bit confused and a little bit creeped out, trying to figure out what the hell to do.
_____________________________________________________________________________________________
Update 1:
So several people have pointed out that the message spells out, "please help me i did not do it SHE made me do it." I really don't know who "she" could be or what "it" is, though being in that house, just under Kit's room...of course I think about her suicide, you know? Please tell me I'm not the only one thinking it.
I'm convinced now that someone is playing a sick joke — even sicker if it really is about Kit's death. They must have known that the owners of the house are gone, and it's not like the house is equipped with any of those fancy security gadgets. I know Kit wasn't the nicest kid in school — my friend often asked me to pick her up from the principal's office when he couldn't get out of work — so maybe someone's still holding a grudge.
I'm currently sitting out on the porch; it's been a few minutes since I finished talking to the neighbors. They looked surprised when I told them that I was housesitting, which inevitably meant that they didn't know where my friend went so suddenly. I asked if they might have seen anyone strange lurking around the house last night, but since they didn't know their neighbors were gone in the first place, they hadn't really been paying attention.
I tried to ask as casually as possible if Kit or her parents might have any sour relationships with anyone around the area. I wasn't sure how to ask, "Do you know who might want to break into someone's house and play a prank on their daughter's death?" without saying exactly that. They looked uncomfortable at the question. The husband finally admitted that Kit never really got along with the other kids in the neighborhood, but quickly added that he didn't know "anyone," he said, "who would want to try to break into their house, if that's what you're trying to hint at." Actually, at that point, I was more paranoid about the dolls, but the whole situation was starting to make me feel silly, so I just thanked them, told them "good night," and came back.
It's getting dark. I'm not too keen on the idea of going back into the house, but they *did* trust me to housesit, and I do have to sleep somewhere.
Fuck, there's a doll out here too. Didn't realize it was sitting on one of the chairs. [I took a picture.](https://imgur.com/XrLOorg) I might send it to my friend for proof.
I'm going to go back to the kitchen now — doll-free zone, here I come. I'll update you if I find out anything else or, God willing, one of my calls are finally answered.
_____________________________________________________________________________________________
Update 2:
It's close to 1 AM here. I've moved to the living room and am currently sitting on the couch in a way that keeps that doll out of my vision. I would toss it out of the room (or into the trash), but all this talk about exorcisms and possessions makes me really, really, really not want to touch it.
I moved because the tapping is here again. I realize how easy it was for me to assume it was coming from the clock when I was half asleep, but I notice now it's a little slow to be measuring seconds. I was in the kitchen when it began, and I was startled to discover that it was louder than I remember and sounded like it was coming from the same room. I walked around the kitchen, then into the living room, the dining room, the hall — the clock was definitely too far away to be the source of the noise, fake or not. I started looking into the cabinets when I realized that the noise was specifically coming from the ceiling.
It's this steady *tap-tap-tapping*, about once every two seconds, like there's someone in the room upstairs just tapping their finger on the floor, over and over.
I think I remember seeing the door to Kit's room being right above the kitchen.
I'm going to go check on it. My heart feels like it's going to wrench itself out of my ribcage, but...I have to do this. I owe it to him.
I'll let you all know if I find anything.
_____________________________________________________________________________________________
Update 7:
Phone says it's almost 2pm but outside doesn't look any different from when I update at 7am. My calls have stopped asking for me to leave a message and started telling me that the number I'm trying to reach is invalid. I went around the neighborhood, trying to ask for help, but no one's opening their doors for me. I haven't seen anyone one the streets. I tried to drive out further, but this neighborhood's like a maze, I swear. It's just with luck that I kept ending up in front of this house; I don't know what I'd do if I got lost around here.
My phone has gotten even slower since my last update. It's become a lot harder to load a single page, and I've resorted to just staying on this page to minimize the time I have to wait. I don't want to be in this house anymore but the living room is the only place where I can press the edit button without the page going to a "can't connect" error, if I go even to the next room the page freezes up. I have no idea if any of these edits are even saving properly. God, I hope they are I feel so alone.
I've been trying to look into the house's history like I said I would, brought all the books and albums I could find to the kitchen and started looking through them there.
Tapping started again about 30 min ago, it startled the hell out of me and I knocked some books over. I was picking them up when I saw something weird under the table. I looked and this was carved into its underside:
>e l i s y m e K L e
>s l l e o a m I s s
>a w l e u d e L h e
I don't know if it was there before I'm going to work on it now. Maybe it's just my nerves being fried, I barely got any sleep and the tapping is still there it's driving me crazy, but it just looks like gibberish to me. It doesn't feel right, I don't know why the letters have to be scrambled but I'll update with anything else I find. Thank you for the concern. I don't like to talk much about myself but I hope the last update helps you all understand why he's so important to me.
Okay the tapping is driving me crazy, at this point I'm going to save this and hope it goes through and then I'm taking all of the books with me to the living room. I definitely feel better after tossing out the dolls but there's still no way I'm going near the stairs again not after what I saw
_____________________________________________________________________________________________
update 15
half past midnight now, it's darker outside and my eyes are so tired but I can't sleep. the tapping won't stop, I hear it all the time even when I'm outside no matter how far I walk I hear it when I inevitably end up back in the house I still hear it
I found a grill in their backyard with a tank of propane. would show you the picture I took of all the dolls piled up in the trash but it always comes out too dark...and I don't think I'd have any luck successfully uploading them within the next century ha.
it feels like there are eyes watching me through the windows. even if the curtains are closed I feel them watching watching watching, how is that possible when it's so *bare* here?
I've made up my mind I'm going to tear the tables and chairs down, they're wooden they'll build a fire nicely. I figured out the third message myself there's no fucking way I'm listening to this thing I can't trust it
_____________________________________________________________________________________________
Update 9:
So I finally summed the courage to open the journal. I kept it at the bottom of my pile; I think I was hoping I would find information in the other albums and that I wouldn't have to open it after all. But all I've found so far are pictures, perfectly normal looking ones with my friend and his wife and his daughter. They were such a beautiful family, I don't understand
But the journal is Kit's, just like I thought. The dates are close to the day she died which I don't understand she sounds so happy in them, just in her last entry she's talking about how excited she is to put on a play with her dolls for her parents on father's day. It really makes me think about that first message, how "it" might be referring to Kit's suicide. I want to believe that my friend would have been able to save his daughter from leaving the world like that like he saved me, but then that means that someone - or something - made her do it, and believe it's much, much more comfortable to think that it's just Kit's...ghost or whatever, with me right now, and not something else, especially after I figured out that second message.
on that note, bad spirits can't pretend to be good spirits can they? it's just...the way these messages are jumbled up, it feels as if they are either supposed to be discreet, passed in secrecy, or meant to entertain their sender by watching me struggle to string them together
I really don't think any of these are getting to you but writing it out like this helps.
_____________________________________________________________________________________________
update 13
I almost missed this because of the tap tap tapping, thought it was just another noise but this was under table on the floor. I didn't want to touch it but it looked carved into the tile. I swear it wasn't there before
>e y d l u H b k r m a
>l o o s t E a i o i n
>p u l p T M c n o c h
Head aching a little, gonna try to hunker down somewhere while I wait for this to post and just sit still. With luck my head will stop hurting and I can think clearly, all I keep thinking now is how I regret putting the dolls in the pile. they look morbid like that.
_____________________________________________________________________________________________
update 16
wish i could send a picture of what victory looks like, thats one glorious fire
i think i hear someone knocking out front!!! gonna go, can't wait to finally get out of here | 0non-cybersec
| Reddit |
How to configure zsh prompt so that its length is proportional to terminal width. <p>In <code>zsh</code> my current (left) prompt is the following</p>
<pre><code>PROMPT="%F{106}%22<…<%3~%f%(?..%{$fg[red]%} %?%{$reset_color%})%(1j.%{$fg[cyan]%} %j%{$reset_color%}.)%# "
</code></pre>
<p>The <code>%22<…<</code> specifies that the prompt will become truncated when it is longer than 22 characters. This is because I don't want the prompt to take up too much horizontal space.</p>
<p>However, when I have a terminal that is very wide, I could have spent more than 22 characters on the prompt and I would still have had plenty of horizontal space to spare.</p>
<p>So, I'd like to format the prompt so that it has a maximum width that is a <em>percentage</em> of the full terminal width (e.g. 20%). Is there a way to do that?</p>
<p>Ideally, the prompt width should be recalculated if the terminal changes width.</p>
<p>(In case it matters: the shell will normally be inside <code>tmux</code> on MacOS)</p>
| 0non-cybersec
| Stackexchange |
Sophia, the robotic citizen of Saudi Arabia, now has a baby sister. | 0non-cybersec
| Reddit |
I believe I can fly!. | 0non-cybersec
| Reddit |
Do you run production boxes with logs completely turned off?. <p>We are internally debating in our team if we should continue to run our production boxes with logs turned off completely and just log errors and exceptions with log rotations.</p>
<p>I want to know how everyone else logs info in their production environment and any particular strategy/tool that has worked well for you.</p>
<p>Thanks
Isaq</p>
| 0non-cybersec
| Stackexchange |
My buttons go down when I press them. <p>I have 9 buttons in a board and I want to show an 'X' or an 'O' whenever I press them. However when I press a button it goes down.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function(){
var against = 'human';
var board = ['-','-','-',
'-','-','-',
'-','-','-'];
var turn = 'X';
$('.xo-btns').click(function(){
$(this).text(turn);
});
});</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>body{
padding: 0px;
margin: 0px;
width: auto;
height: auto;
background: black;
font-family: 'Raleway', sans-serif;
}
.container{
text-align: center;
}
.board{
display: inline-block;
text-align: center;
background: red;
padding-top: 15px;
padding-left: 10px;
height: 250px;
width: 250px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
.xo-btns{
width: 70px;
height: 70px;
padding: 0px;
border-radius: 4px;
background: transparent;
outline: none;
color: white;
/* display: inline-block; */
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="board">
<button class="xo-btns" id="one" value="1"></button>
<button class="xo-btns" id="two" value="2"></button>
<button class="xo-btns" id="three" value="3"></button>
<br>
<button class="xo-btns" id="four" value="4"></button>
<button class="xo-btns" id="five" value="5"></button>
<button class="xo-btns" id="six" value="6"></button>
<br>
<button class="xo-btns" id="seven" value="7"></button>
<button class="xo-btns" id="eight" value="8"></button>
<button class="xo-btns" id="nine" value="9"></button>
<br>
</div>
</div></code></pre>
</div>
</div>
</p>
<p>How can I fix it so every time I press one of them, they stay where they started.</p>
<p>Thank you!</p>
| 0non-cybersec
| Stackexchange |
NASA warns 'risk of losing' space station rising. | 0non-cybersec
| Reddit |
Any caveats using SQL Server 2008 CDC off replicated tables?. <pre><code>Main TRX System ---- Replicated to ---> "Archive" --- CDC/ETL --> Some NOSQL DB...
</code></pre>
<p>For performance reasons we never run any ETL off the main transnational system only off the archive.</p>
<p>I enabled CDC on the archive on the replicated tables and it seems to work. So as soon as the archive receives replication data from trx system, CDC finally sees the changes. Just wondering if any issues with this?</p>
| 0non-cybersec
| Stackexchange |
DHT22 Sensor import Adafruit_DHT error. <p>So I've properly attached DHT22 Humidity Sensor to my BeagleBone Black Rev C.
I'm running OS Mavericks on my MacBook Pro and I followed the directions provided by Adafruit on how to use my DHT22 </p>
<p>The website I used was pretty clear: <a href="https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/software-install-updated" rel="noreferrer">https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/software-install-updated</a></p>
<p>Also here is the github files I cloned: <a href="https://github.com/adafruit/Adafruit_Python_DHT" rel="noreferrer">https://github.com/adafruit/Adafruit_Python_DHT</a></p>
<p>I put in these lines:</p>
<pre><code>git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo apt-get upgrade
sudo apt-get install build-essential python-dev
sudo python setup.py install
cd examples
sudo ./AdafruitDHT.py 22 P8_11
</code></pre>
<p>I am successful until that last line. Once I enter that last line (sudo ./AdafruitDHT.py 22 P8_11), I get the following error message:</p>
<pre><code>Traceback (most recent call last):
File "./AdafruitDHT.py", line 23, in <module>
import Adafruit_DHT
ImportError: No module named Adafruit_DHT
</code></pre>
<p>I know there is an Adafruit_DHT file somewhere because when I ls in the Adafruit_Python_DHT directory, I get this:</p>
<pre><code>root@beaglebone:~/Adafruit_Python_DHT# ls
Adafruit_DHT examples ez_setup.py ez_setup.pyc LICENSE README.md setup.py source
</code></pre>
<p>I've tried reinstalling the setup.py, but the outcome is still the same.</p>
<p>I've followed all the directions Adafruit provided, but I just can't seem to get past this. Any idea on what is going on? It seems like a simple problem, but it's proving to be one major obstacle in getting readings from my DHT22. If there is more information needed to help answer this problem please let me know. </p>
| 0non-cybersec
| Stackexchange |
Match Thread: Manchester United vs Hull City [Premier League]. #**FT: Manchester United [](#sprite1-p2) [0-0](#bar-3-white) [](#sprite1-p117) Hull City**
--------
**Venue:** Old Trafford, Manchester
**Referee:** M. Jones
--------
/r/soccerstreams
[Reddit comments stream](http://www.reddit-stream.com/comments/5rhrpl)
---------
[](#icon-notes-big) **LINE-UPS**
**[](#sprite1-p2) Manchester United**
De Gea, P. Jones, M. Rojo, M. Carrick, D. Blind, H. Mkhitaryan, Ander Herrera, A. Valencia, P. Pogba, M. Rashford, Z. Ibrahimović.
**Subs:** S. Romero, C. Smalling, J. Lingard, A. Young, Mata, W. Rooney, A. Martial.
^____________________________
**[](#sprite1-p117) Hull City**
E. Jakupovic, A. Robertson, J. Tymon, M. Dawson, H. Maguire, D. Meyler, L. Marković, T. Huddlestone, S. Clucas, Evandro, O. Niasse.
**Subs:** D. Marshall, A. Ranocchia, S. Maloney, O. Elabdellaoui, J. Bowen, A. Hernández, A. Diomande.
------------
[](#icon-net-big) **MATCH EVENTS** | *via [goal.com](http://www.goal.com/en-us/match/manchester-united-vs-hull-city/2241982)*
**13'** [](#icon-yellow) Yellow Card El-Hadji Baye Oumar Niasse
**46'** [](#icon-sub) Substitution: [](#icon-down)Michael Carrick [](#icon-up)Wayne Rooney
**55'** [](#icon-sub) Substitution: [](#icon-down)Phil Jones [](#icon-up)Chris Smalling
**62'** [](#icon-sub) Substitution: [](#icon-down)Henrikh Mkhitaryan [](#icon-up)Juan Manuel Mata García
**66'** [](#icon-sub) Substitution: [](#icon-down)Josh Tymon [](#icon-up)Andrea Ranocchia
**69'** [](#icon-sub) Substitution: [](#icon-down)El-Hadji Baye Oumar Niasse [](#icon-up)Abel Mathías Hernández Platero
**72'** [](#icon-sub) Substitution: [](#icon-down)Evandro Goebel [](#icon-up)Omar Elabdellaoui
**79'** [](#icon-yellow) Yellow Card Sam Clucas
**81'** [](#icon-yellow) Yellow Card Lazar Marković
**84'** [](#icon-yellow) Yellow Card Wayne Rooney
**89'** [](#icon-yellow) Yellow Card David Meyler
| 0non-cybersec
| Reddit |
Surround sound woes with 14.04. <p>I have intel onboard audio and am trying to get surround sound working over the digital coax spdif port. I followed these instructions:
<a href="https://help.ubuntu.com/community/DigitalAC-3Pulseaudio" rel="nofollow">https://help.ubuntu.com/community/DigitalAC-3Pulseaudio</a>
...which got me to the point where I can use speakertest -c 6 and successfully hear sound out of all my speakers independently, but I can't actually select this new device from VLC, the built-in "videos" app, or mplayer without getting errors and/or no sound whatsoever.</p>
<p>Anyone using 14.04 and getting surround sound (via DTS/AC3 passthrough)? If so, how!?</p>
| 0non-cybersec
| Stackexchange |
1955: 'Catwalk Cop Cars' added in the NY-NJ Holland Tunnel - pic from Hoboken Historical Museum [613x480]. | 0non-cybersec
| Reddit |
Intuition on Mean Value Theorem. <p>The following is my opinion, please correct it if I'm wrong or not good explanation:</p>
<p>if we get $a, b$, then there must be a constant changing-rate $m$ of $(a, f(a))$ and $(b, f(b))$, if the function go this straight line, then everything point has derivative equal to m, if $f'(x)$ <strong>greater or lower</strong> than m, then it must be <strong>somewhere to lower or greater</strong> than m in order to reach the f(b), between them, <strong>it meets the m</strong>. If we get this 'feeling', then theorem is just natural and obvious : there must exist at least one x for, $f'(x)=\frac{f(b)-f(a)}{b-a}=m$ </p>
<p>I realize if I think like this way to get the <strong>mathematical feeling behind</strong> definitions or theorems, then most of them are just <strong>natural</strong>, for example, fundamental theorem of calculus, if a function $f(x)$, we consider function value as changing-rate, $$\lim\limits_{n\rightarrow\infty}\left[\sum_{i=1}^{n}f(x_i)(x_{i}-x_{i-1})\right]$$ is just how much the original function-value changes, i.e. $\Delta F(x)=F(b)-F(a)$</p>
<p>But for some other things which always called rules, it seems <em>cannot be understood directly</em>, like the Chain rule, I could prove it by basic definition of derivative, but just cannot 'feel' it as <strong>the same way with Mean-Value theorem.</strong> </p>
| 0non-cybersec
| Stackexchange |
Bluetooth crashing when streaming on Ubuntu 16.04. <p>I've got a problem with my bluetooth drivers on my Ubuntu 16.04 machine.
When I first load the OS, I can see the bluetooth tray icon, and even connect to my bluetooth headset. The moment I try to stream something to the headset, the bluetooth crashes, and I can't reactivate it in any way other than restarting my computer.</p>
<p>Some logs:</p>
<pre><code> # dmesg | grep -i bluetooth
[ 4.223998] Bluetooth: Core ver 2.21
[ 4.224011] Bluetooth: HCI device and connection manager initialized
[ 4.224013] Bluetooth: HCI socket layer initialized
[ 4.224015] Bluetooth: L2CAP socket layer initialized
[ 4.224021] Bluetooth: SCO socket layer initialized
[ 4.317038] Bluetooth: hci0: read Intel version: 370810011002270d39
[ 4.317039] Bluetooth: hci0: Intel device is already patched. patch num: 39
[ 4.393310] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.393311] Bluetooth: BNEP filters: protocol multicast
[ 4.393313] Bluetooth: BNEP socket layer initialized
[ 7.552520] Bluetooth: RFCOMM TTY layer initialized
[ 7.552528] Bluetooth: RFCOMM socket layer initialized
[ 7.552532] Bluetooth: RFCOMM ver 1.11
[ 238.609823] Bluetooth: hci0 setting interface failed (19)
[ 241.041785] Bluetooth: hci0 command 0xfc05 tx timeout
[ 241.041786] Bluetooth: hci0: Reading Intel version information failed (-110)
[ 241.068201] Bluetooth: hci0: read Intel version: 370810011002270d39
[ 241.068202] Bluetooth: hci0: Intel device is already patched. patch num: 39
</code></pre>
<hr>
<pre><code> # lspci -nnk | grep -iA2 net; lsusb; lsmod | grep blue
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (3) I218-LM [8086:15a2] (rev 03)
DeviceName: Onboard LAN
Subsystem: Dell Ethernet Connection (3) I218-LM [1028:062e]
Kernel driver in use: e1000e
Kernel modules: e1000e
02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 3b)
Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5510]
Kernel driver in use: iwlwifi
Bus 001 Device 005: ID 0a5c:5804 Broadcom Corp. BCM5880 Secure Applications Processor with fingerprint swipe sensor
Bus 001 Device 004: ID 1bcf:2b8d Sunplus Innovation Technology Inc.
Bus 001 Device 006: ID 8087:0a2a Intel Corp.
Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 046d:c01e Logitech, Inc. MX518 Optical Mouse
Bus 002 Device 002: ID 045e:07a5 Microsoft Corp. Wireless Receiver 1461C
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
bluetooth 557056 15 btrtl,btintel,bnep,btbcm,rfcomm,btusb
# rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: dell-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
2: dell-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
</code></pre>
<p>This has already happened with 2 different headsets, so I doubt it has anything to do with these headsets.</p>
<p>After the bluetooth crashes, this is what the bluetooth manager looks like:</p>
<p><a href="https://i.stack.imgur.com/A1hOL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A1hOL.png" alt="bluetooth manager"></a></p>
<p>As you can see, even though I activated the bluetooth, it is disabled. And even though the "Show bluetooth status in the menu bar" is checked, I see nothing.</p>
<p>I tried to reinstall bluez, with no change.</p>
<p>Thanks for the help!</p>
| 0non-cybersec
| Stackexchange |
Windows 10 and Boot Camp drivers. <p>6th August 2015, Windows 10 has launched quite well. However, there are some people eying the new OS wit little concerns. Mine is: Will Windows 10 work on a Mac - and, that means with a few "accessoirs"?</p>
<p>The responses to the Boot Camp drivers seen confused forth and back on the internet, this is why I ask here for an answer.</p>
<p>Further, with accessoirs I meant virtualization software capable of booting the Boot Camp partition. I would like to know which ones are confirmed to work with this method? I am testing VMWare Fusion and I am still on my trial period. I'd like to buy the right software that is compatible with what I want to run and do.</p>
| 0non-cybersec
| Stackexchange |
Getting a bound on the coefficients of the factor polynomial. <p>Suppose $f(x):=a_0+a_1x+\cdots+a_nx^n$ is a polynomial in $\mathbb{Z}[x]$ and $|a_i|\leq M$ for each $i=0,\ldots ,n.$ Now suppose $g(x)$ is a factor of $f(x)$ in $\mathbb{Z}[x]$, then is it possible to get a bound on the coefficients of $g(x)$ in terms of $M$ i.e. if $g(x)=\sum_{i=0}^mb_ix^i$ then does there exist some $M^\prime $, which depends only on $M,n$ and $m$, such that $|b_i|\leq M^\prime$ for all $i=0,\ldots ,m$ ?</p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Why should I need to sign in to a (school) wifi network every time?. <p>My school's wifi network is open, but requires a login with student account name/password in the browser.</p>
<p>What confuses me is that it asks for this login every time the network is accessed (or every few hours while continuously connected). Is there a reason it has to do that? Why can't the network just remember my computer/phone and let it in every time? (And if this has to do with the browser login, I'm pretty sure I've used similar logins in the past in hotels, and those networks remembered my devices) </p>
<p>Is this set-up due to a security concern? </p>
| 0non-cybersec
| Stackexchange |
I made improvements to free code I found online and notified the author. Was this the right thing to do?. <p>I recently used a library from <a href="http://www.braemoor.co.uk/software/index.shtml" rel="nofollow noreferrer">http://www.braemoor.co.uk/software/index.shtml</a> (the EU VAT No validation library at <a href="http://www.braemoor.co.uk/software/vat.shtml" rel="nofollow noreferrer">http://www.braemoor.co.uk/software/vat.shtml</a>) in a project at work. It mentions as the license (or something that looks like one):</p>
<blockquote>
<p>All software is provided as freeware for personal or commercial use without obligation by either party. The author will not accept responsibility for any problems that may be incurred by use of this software, although any errors reported will be corrected as soon as possible. Re-distribution of this software is NOT permitted without explicit permission.</p>
</blockquote>
<p>I checked the code and found (and applied) a few ways to improve the code so it's more easily maintainable and more readable (you can find <a href="https://codereview.stackexchange.com/q/57791/11074">one of them</a> on CodeReview.SE). After applying these changes, I considered that others might benefit from them as well and sent them as feedback to the author on his contact address. A few hours later, the author sent a reply thanking me for my suggestions, and that he would go over my changes and keep me informed.</p>
<p>My main concern is that while the website mentioned that it was freeware, I'm not sure how far I am allowed to go in altering his software without knowing the license. I assume it's license-free, but it's not specifically mentioned as open source, and I'm slightly worried that I might have overstepped my bounds and took too much liberty with the whole thing.</p>
<p>Did I do the right thing?</p>
| 0non-cybersec
| Stackexchange |
display total and used GB with percentage in one line linux command. <p>I am trying to get <code>/dev/sda</code> output in the following format.</p>
<blockquote>
<p>20% (10 GB used out of 50 GB).</p>
</blockquote>
<p>I tried using:</p>
<p><code>df -h /dev/sda3|awk 'NR==2'|awk '{print $5}'</code></p>
<p>but it gives me the percentage.
I tried using echo and multiple awk statement, but either the command does not work or does not give desired output.</p>
| 0non-cybersec
| Stackexchange |
Barber Shop in Clanton, Alabama, 1920s [2048x1390]. | 0non-cybersec
| Reddit |
Does it exist an approximation using sums and a way to do the computation with more accuracy both by hand to find the length of a spiral?. <p>I have found this riddle in my book and so far which may require the use of calculus (integrals) to which I'm familiar but not very savvy with it. Since, I've not yet come with an answer. I wonder if such problem can be also solved using sums in the scope of college precalculus like an approximation (proven) which could be solved by hand even the calculus method which I also feel might also help me.</p>
<p>The problem is as follows: </p>
<blockquote>
<p>In a research facility in Taiwan a group of technicians built a new
optical disk which stores information in a spiral engraved in its
bottom face named "lecture side". Under the microscope it can be seen
that the spiral begins in a region starting from <span class="math-container">$\textrm{2.6 cm}$</span>
from its axis of rotation and it ends at <span class="math-container">$\textrm{5.7 cm}$</span> from the
center of the disk. It can also be seen that individual turns of the
spiral are <span class="math-container">$0.74\,\mu\textrm{m}$</span>. Using this information calculate
the length of the entire track.</p>
</blockquote>
<p>So far I've only come with the idea of using the spiral of Archimedes, whose formula is given as follows:</p>
<p><span class="math-container">$$r=a+b\phi$$</span></p>
<p>However, I'm not very familiar with the realm of polar coordinates or how can this equation be used to solve my problem.
To better illustrate the situation, however I've drawn this sketch to show how I'm understanding the problem.</p>
<p><a href="https://i.stack.imgur.com/NuWVj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NuWVj.png" alt="Sketch of the problem"></a></p>
<p>I've included a cartesian grid, which well "may not be" in scale. But gives an idea of how I believe it is intended to be said.</p>
<p>I've really wanted to offer more into this such as an attempt into solving, but so far I've ran out of ideas.</p>
<p>However, I've come with the idea that the solution may be linked with finding how many turns are in the "readable sector" which is alluded in the problem.</p>
<p>To calculate this what I did was the following:</p>
<p><span class="math-container">$\textrm{number of turns}= \left( 5.7 - 2.6 \right)\times 10^{-2}\textrm{m}\times \frac{\textrm{1 turn}}{0.74\times 10^{-6}\textrm{m}}$</span></p>
<p>By evaluating this short conversion factors I obtained</p>
<p><span class="math-container">$\textrm{number of turns} = 41891.89189\,\textrm{turns or rad}$</span></p>
<p>And that's it. But from there I don't know how to relate this information with what would be needed to solve this riddle. The answer in the book states that the track's length is <span class="math-container">$1.09\times 10^{4}\,\textrm{m}$</span>. But again. I don't know what can I do to get there.</p>
<p>So far I've did some preliminary research in the community and I've found <a href="https://math.stackexchange.com/questions/2307561/how-to-calculate-length-of-screw-thread">this</a> but it isn't really very helpful as the example relates to a vertical helix going upwards around a cylinder and my situation doesn't fit into this. Other proposed methods such <a href="https://www.intmath.com/blog/mathematics/length-of-an-archimedean-spiral-6595" rel="nofollow noreferrer">as the one</a> seen here propose using calculus and this also is referenced <a href="https://math.stackexchange.com/questions/424669/archimedean-spiral-arc-length-of-coil">here</a>. Needless to say that the only existing solution doesn't give much details of how the supposed formula works. It also contributes to the problem that I'm not very savvy with it and since this problem was obtained from a precalculus book, I aimed my question to. Does it exist a method to make this computation relying in college algebra?. With this I don't intend to totally discard a calculus approach, but an answer with would really be very pedagogical for me is one which can show me the two methods, so I can compare which can be better according to my current knowledge so I can practice more in what I feel I'm lacking.</p>
<p>Well that's it. I do really hope somebody could help me with the two methods, one using algebra and another using calculus. </p>
| 0non-cybersec
| Stackexchange |
Proving this permutation identity. <p>How can I prove this identity to be correct</p>
<p>$$\sum_\sigma\sum_{k=1}^N\left[c_k(x_{\sigma(k)} - \mu_k)\right] \equiv \sum_\sigma\sum_{k=1}^N\left[c_{\sigma(k)}(x_k - \mu_{\sigma(k)})\right],$$</p>
<p>where σ ranges over elements of the permutation group on N objects and $c_k$ is some constant and $μ_j$ characterises the position of the $j^\text{th}$-particle such that </p>
<p>$$μ_j=\left(j− \frac{N+1}{2}\right)d.$$ </p>
<p>I understand that the above follows from the identity that </p>
<p>$$\sum_{k=1}^Nc_{\sigma(k)}\mu_{\sigma(k)} \equiv \sum_{k=1}^Nc_k\mu_k,$$</p>
<p>but I was wondering whether there is a way to prove the identity by use of properties of the permutation group alone.</p>
| 0non-cybersec
| Stackexchange |
Andy Reid on how to stop Julio Jones: "You hope he misses the bus.". | 0non-cybersec
| Reddit |
Possible to use Siri to trigger custom actions?. <p>These days, Macs have Siri.</p>
<p>Siri even works offline for tasks like dictation.</p>
<p>When Siri interprets audio into written words, can I somehow capture those written words, and trigger a self-defined action if a certain pattern is detected?</p>
<p>For example, if I say "Hey Siri, run my backup script", could a shell script located in my home folder then be executed?</p>
<p>(Bonus question: If Siri cannot do this, is there some other free technology that can?)</p>
| 0non-cybersec
| Stackexchange |
If I go to my doctor for depression, should I really not mention suicidal thoughts? Is it best for them to know or will they really lock me straight up in some kind of institution? [Unanswered]. I was reading that secrets thread on /r/AskReddit and there were a few people saying that they were depressed but couldn't tell anyone about their suicidal thoughts. I really really need to see somebody about my problems because they are frankly destroying everything, but I've heard on a number of occasions that you shouldn't tell a professional you're having thoughts of hurting/killing yourself. I've kept my problems in and have been working up courage to see a doctor to sort myself out - but I have a young family and people who need me and I can't be bundled off to a mental hospital or wherever. I can't ask anyone in real life obviously. So...here goes my stupid question. Is it true that I should keep suicidal thoughts a secret? Will I really be locked up right away as soon as they hear it? What if they ask? I can't lie.
I'm in the UK if anyone knows anything about laws/procedures or anything.
Edit: I don't think I can change the title, and I don't think I flaired it properly, but thank you all for your answers :) my mind's made up now I just have to get the courage to go and see my doctor!
Double Edit: I really want to thank everybody for taking the time to give me your answers and advice. It means a lot to me that so many people went to the trouble of answering. I'm sorry I can't individually reply to you all and I hope all of you see my edit. You're all wonderful and I sincerely hope that those of you with troubles like my own are doing well and will continue to conquer them. Love from a stranger on the internet :D | 0non-cybersec
| Reddit |
I made some snowman cookies for you!. | 0non-cybersec
| Reddit |
Initctl missing, need to run reload-configuration command. <p>Ubuntu Sever, 18.04</p>
<p>I have a situation where I need to run a configuration file. The instructions call for me to run the following command:<br>
initctl reload-configuration</p>
<p>However, initctl doesn't exist on my system.
I have tried installing upstart via apt-get but it failed and told me that the package was unavailable and recommended a different package.</p>
<p>Package upstart is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
systemd-sysv</p>
<p>I installed this package ( systemd-sysv )</p>
<p>But when I tried to run the initclt reload-configuration command it still failed. I did some additional research here about the difference between service vs initctl.</p>
<p>I tried to run service reload-configuration but that didn't work because it doesn't know what the reload-configuration was.</p>
<p>Can someone tell me what else I can do to get this new config file to be acted upon?</p>
<p>Thanks</p>
| 0non-cybersec
| Stackexchange |
These large ears of the black-tailed jackrabbit, aka the American desert hare, are used in cooling, radiating heat via an extensive network of blood vessels.. | 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 |
iPhone 2G: Did the test on my own. Grabbing it harder across the antennae does show 2 bar decrease.. Apple does have weight there.
I wonder if by grabbing tighter causes more electrical impulses in the hand thus causing more radio interference.
Is that what happens here?
p.s. On Apple's test vids, I thought it humorous that AT&T's signal wasn't full strength to begin with (3/5 bars), and all of the other's signals were full 5/5 bars. | 0non-cybersec
| Reddit |
Robyn - Dancing On My Own [Electro/Pop] (2010) She's releasing a mini album in May. | 0non-cybersec
| Reddit |
World Of WorldCraft: Cataclysm Sells 3.3 million in 24 Hours To Become The Fastest Selling PC Game Of All Time
. | 0non-cybersec
| Reddit |
I saw a photon go by.... ...it seemed friendly, but it didn't wave. | 0non-cybersec
| Reddit |
Ottawa reportedly set to pay millions to Omar Khadr. | 0non-cybersec
| Reddit |
RAM is the new SSD. | 0non-cybersec
| Reddit |
Why does nvi think I have files being editing?. <p>I've got a couple of FreeBSD servers that throw several copies of the following error on reboot:</p>
<pre><code>On Wed Oct 10 15:13:16 2012, the user root was editing a file named /tmp/crontab.s00huOAZD2 on the machine server, when it was saved for recovery. You can recover most, if not all, of the changes to this file using the -r option to vi:
vi -r /tmp/crontab.s00huOAZD2
</code></pre>
<p>However, nobody was editing anything (at least not in recent memory). I certainly don't want to recover whatever is in those files. I've turned on clear_tmp (on boot) and cleaned out the tmp directory manually as well. No change though, I get several copies of the above on every boot. Even if I boot, then reboot immediately. What's causing nvi to think I'm doing crontab editing and what's the best way to clean these out?</p>
| 0non-cybersec
| Stackexchange |
It belongs in a peaceful place.. | 0non-cybersec
| Reddit |
Use apply family function to create multiple data frame columns by operating on multiple other columns. <p>I am doing some data manipulation involving creating multiple columns by operating on other columns. It is easy to work using a for loop but I am stuck using an apply like function to do the coding.</p>
<p>One problem is how to refer to the new columns which haven't been created yet. Second is, each of the new column involves operation on two other columns in the same data frame. </p>
<p>Example: let's say I have a simple data frame (actually I have much more columns):</p>
<pre><code>> df <- data.frame("x1" = 1:2, "x2" = 3:4, "y1"= 1:2, "y2"= 3:4)
> df
x1 x2 y1 y2
1 3 1 3
2 4 2 4
</code></pre>
<p>I wanted to create two other variables called z1 and z2, so that z1 = (x1 + y1)/3, and z2 = (x2 + y2)/3</p>
<p>Using for loop, I can do this easily.</p>
<pre><code>x.var <- paste("x", 1:2, sep = '')
y.var <- paste("y", 1:2, sep = '')
z.var <- paste("z", 1:2, sep = '')
for (i in 1:2) {
df[[z.var[i]]] <- (df[[x.var[i]]] + df[[y.var[i]]])/3
}
df
x1 x2 y1 y2 z1 z2
1 1 3 1 3 0.6666667 2.000000
2 2 4 2 4 1.3333333 2.666667
</code></pre>
<p>How can this for loop be transformed using some compact code using apply family functions?</p>
| 0non-cybersec
| Stackexchange |
I was just on the toilet having my morning movement. My wife walked up and said she was proud of me. "You're not holding on to last year's shit"
My wife beat me to the first dad joke of the year. Damnit | 0non-cybersec
| Reddit |
Playing nice-nice with the crazy neighbor sometimes be like. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How do I get a hyperlink open only one internet explorer window. <p>How do I get a hyperlink open only one Internet Explorer window? It keeps opening the same thing from the link but in two IE windows. </p>
| 0non-cybersec
| Stackexchange |
Every regular language has a finite index. <p>For a language <span class="math-container">$L$</span> over an alphabet <span class="math-container">$\Sigma$</span>, we say that two words <span class="math-container">$v,w \in \Sigma^*$</span> are equivalent, denoted <span class="math-container">$v\sim w$</span>, if for every word <span class="math-container">$z \in \Sigma^*$</span>, <span class="math-container">$vz \in L$</span> iff <span class="math-container">$wz \in L$</span>. We define <span class="math-container">$[w]_L$</span> to be the equivalence class of <span class="math-container">$w$</span> under this relation. The index of <span class="math-container">$L$</span> is the number of equivalence classes of strings in <span class="math-container">$L$</span>.</p>
<p>How can I prove that every regular language has a finite index?
can I use the Myhill-Nerode theorem?</p>
<p>I tried to use the fact that if <span class="math-container">$\delta^*(v) = \delta^*(w)$</span> then <span class="math-container">$v \sim w$</span>.</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.