Injecting variable before/during import
Injecting variables into an import namespace
Automatically run commands over SSH on many servers There is a list of IP addresses in a .txt file, ex.:  1.1.1.1 2.2.2.2 3.3.3.3   Behind every IP address there is a server, and on every server there is an sshd running on port 22. Not every server is in the known_hosts list (on my PC, Ubuntu 10.04 LTS/bash).  How can I run commands on these servers, and collect the output?  Ideally, I'd like to run the commands in parallel on all the servers.  I'll be using public key authentication on all the servers.  Here are some potential pitfalls:   The ssh prompts me to put the given servers ssh key to my known_hosts file. The given commands might return a nonzero exit code, indicating that the output is potentially invalid. I need to recognize that. A connection might fail to be established to a given server, for example because of a network error. There should be a timeout, in case the command runs for longer than expected or the server goes down while running the command.   The servers are AIX/ksh (but I think that doesn't really matter. What canon evidence is there that Stormtroopers are/are not still clones? Reading this article about , my nerd-rage started flaring as they claimed that Stormtroopers were still Fett-Clones 20 years after the rise of the Empire.  As I started thinking about it, I realized that everything I had read saying that Modern-Day Stormtroopers not being clones was from the EU - C Level books or games.   One of the quotes often cited for backing the idea that the Stormtroopers are clones comes from Princess Leia:     Aren't you a little short for a Stormtrooper?   But through the movie, paying close attention, Stormtroopers are often shown to be slightly different heights. One even hits his head in the doorway while others walk through uninjured.                                  Is there any G Canon fully canon (non-Legends/Infinities) evidence to support the idea that Stormtroopers are, or are not still clones at the time of Episode IV? Linear mixed effect model vs. Ordered Probit vs. Ordered Logit with ordinal response I have a set of data with an ordinal response ranging from 1-5 (worst to best) and a categorical predictor with five unordered levels. The experiment is a language experiment whereby subjects are asked to rate different sentence types. In the literature it seems that people fit lmer() most of the time by scaling the ordinal response per subject (i.e. taking the mean response and standard deviation of that subject and dividing the every single response by it.). On the other hand, it seems a reasonable approach to use ordered linear mixed effects probit models or ordered linear mixed effects logit models as implemented in e.g. MCMCglmm() or clmm().  (1) I find myself asking what the best method would be. When is one method to be prefered over the other in an experiment as I have sketched above?  (2) Why do people prefer fitting an lmer() model with a scaled response? What is the advantage?  (3) If it is advisable to use an ordered probit or logit model, how do I decide between an ordered probit or ordered logit model?  Thanks for any help! How to test if these two samples are from the same distribution? (These are tweets located near some tourist attractions.     If yes, is there a simple implementation in Python? include svg images with the svg package Using OPENQUERY to execute a script I have a SQL Server 2008 instance which I want to use to import data from an Oracle server.  I have set up a linked server that works correctly when running simple queries like SELECT * FROM table. However, if I declare a variable or loop through the rows in a table or anything else inside the OPENQUERY, I get errors.  Is it possible to do this using OPENQUERY? Do I need additional permissions? Is there a tool that combines zcat and cat transparently? When handling log files, some end up as gzipped files thanks to logrotate and others not. So when you try something like this:  $ zcat *   you end up with a command line like zcat xyz.log xyz.log.1 xyz.log.2.gz xyz.log.3.gz and then with:  gzip: xyz.log: not in gzip format   Is there a tool that will take the magic bytes, similar to how file works, and use zcat or cat depending on the outcome so that I can pipe the output to grep for example?  NB: I know I can script it, but I am asking whether there is a tool out there already. Check tag classes with watir? Allow given application to run as administrator, without prompting user for credentials If $f_k \to f$ a.e. and the $L^p$ norms converge, then $f_k \to f$ in $L^p$ Let $1\leq p &lt; \infty$. Suppose that    $\{f_k\} \subset L^p$ (the domain here does not necessarily have to be finite),  $f_k \to f$ almost everywhere, and  $\|f_k\|_{L^p} \to \|f\|_{L^p}$.    Why is it the case that $$\|f_k - f\|_{L^p} \to 0?$$   A statement in the other direction (i.e. $\|f_k - f\|_{L^p} \to 0 \Rightarrow \|f_k\|_{L^p} \to \|f\|_{L^p}$ ) follows pretty easily and is the one that I've seen most of the time. I'm not how to show the result above though. I'm trying to match SHA1's in generic text with a regular expression.  Ideally I want to avoid matching words.   It's safe to say that full SHA1's have a distinctive pattern (they're long and a consistent length) - so I can match these reliably - but what about abbreviated SHA1's?  Can I rely on the presence of numbers?  Looking at the SHA1's in my commit log - numbers always appear in the first 3 characters. But is this too short? How many characters of SHA1 do I need to consider before I can assume a number would have appeared?    This does not have to be 100% accurate - I just need to match an abbreviated SHA1 99% of the time. Why are the solutions of polynomial equations so unconstrained over the quaternions? Do I need a passport to visit Edinburgh in Scotland from elsewhere in the UK? I'm visiting Scotland for the first time this week, Edinburgh. I've lived in the UK for over 10 years but my nationality is Spanish. I only have a Spanish passport.  I'm also traveling by train.  Do I need a passport to enter Scotland and stay in my booked hotel? Which is correct: "__ is different from __" or "__ is different than __"? As someone who learned English later on in life, I was taught that different from is the correct grammar to use: this is different from that. However, it seems these days everyone uses different than instead. I know it's incorrect usage, but does the language evolve if the majority wins?  Edit: Some commented different than is American English and different from is British English, both are OK. IMO, this isn't like color versus colour, though.   Than is used after a comparative adjective, e.g. taller than, whiter than. The word different isn't a comparative adjective, unless used in more different than. Logically, it makes no sense to say different than. Override a single JavaScript file from a module How to fix 'android.os.NetworkOnMainThreadException'? Jenkins + git: "tell me who you are" error, why does it need to tag? Who is sample No. 118 in The Case of Charles Dexter Ward? In H. P. Lovecraft's The Case of Charles Dexter Ward, Dr. Willett      Enters Joseph Curwen's dungeon and resurrects a dead person identified as No. 118 by reciting the incantation of the Ascending Node over his salts.   Dr. Willett is told by      The resurrected Joseph Curwen, impersonating Charles Dexter Ward, who he secretly murdered,   that   " 'twas Number 118, and I conceive you would have shook had you looked it up in my list in t'other room."  No. 118 himself gives Dr. Willett a note asking the doctor to      kill Joseph Curwen.   It soon becomes clear that No. 118 is opposed to the nefarious dealings that have been transpiring and desirous of being an ally of Dr. Willett.  Who is No. 118?  Earlier in the story,      The grave of Ezra Weeden, a primary instigator in Joseph Curwen's initial downfall and the romantic rival of Curwen, is robbed. There doesn't seem to be any other mention of Weeden in the 20th century occurrences, so without a further connection the passage seems superfluous.   The shared goals of these two people seem to indicate that No. 118 may, in fact, have been that person, but the      Note given by No. 118 to Dr. Willett in eighth century Latin seems to indicate someone much older than Ezra Weeden.   It also occurred to me that No. 118 could be      The recently murdered Charles Dexter Ward himself. Ward's reference to killing Dr. Allen (who is actually an alias of Curwen) and dissolving his body with acid and No. 118's mention of doing the same to Curwen seem to support the idea, but that still doesn't explain the archaic note. Ward is described as writing in a somewhat modern style, at least as opposed to Curwen. It also doesn't explain why Curwen would want to murder Ward if he was going to resurrect him later anyway. How do I create a very long delay with Redstone? The only things I've found so far are a cart method (which ceased working in 1.6), a dispenser method (utilizing the decay on dropped items, but this requires occasional feeding), and a binary counter (which won't work for a single input but rather a fluctuating one).  I want to have a circuit that when I apply an input signal, the output signal doesn't change for 2 to 5 minutes.  When the input turns off, I again want a 2 to 5 minute delay.  I could accomplish this with (roughly) 240 to 600 redstone repeaters, but this is far in excess of being useful.  The only method I can think of, but would require a XOR gate (on the button-input and final output) to start and stop a clock attached to a binary counter.  While I can make room for a device of this size, I was hoping for something simpler. How are you dealing with the  in your machine learning models? Let's say you used to predict the number of sales each month. The virus affected your results last year and it will affect for at least a couple of months. So your model, I guess, is missing a lot. What are some approaches we can use to fix our models?