I'm trying to set a new password on a router using paramiko. In Ubuntu terminal it looks like that:  admin:~$ ssh admin@IP_address IP_address's password: password You logged in: router command line : router_1&gt;set_password Changing admin's password type old password : type new password : retype new password :   So when I'm trying to do the same with python as soon as it comes to set password   import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname='IPaddress', username='admin', password='password') stdin, stdout, stderr = ssh.exec_command(command='set_password')   it pops out a window or a line asking to input old password  Is it possible to input thous passwords automatically ?
I'm trying to run an interactive command through paramiko.  The cmd execution tries to prompt for a password but I do not know how to supply the password through paramiko's exec_command and the execution hangs.  Is there a way to send values to the terminal if a cmd execution expects input interactively?  ssh = paramiko.SSHClient() ssh.connect(server, username=username, password=password) ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command("psql -U factory -d factory -f /tmp/data.sql")   Does anyone know how this can addressed? Thank you.
Mount ext4 partition with >4KiB block size I'm attempting to mount a partition from a NAS and the block size is 65536 bytes, this is above my distribution's precompiled kernel memory paging size of 4KiB, so I cannot mount it normally.  Which kernel compilation parameters would I need to change to get a memory paging size large enough?  Would it be possible under the x86-64 architecture?  EDIT: There doesn't seem to be an option for it in make xconfig unless I'm just missing it.  From page_types.h under arch\x86\include\asm  /* PAGE_SHIFT determines the page size */ #define PAGE_SHIFT  12 #define PAGE_SIZE   (_AC(1,UL) &lt;&lt; PAGE_SHIFT) #define PAGE_MASK   (~(PAGE_SIZE-1))`   It doesn't look to be configurable.  I could change this number directly to 16 and it would probably make pretty explosions and destroy Tokyo.  I shall probably try it later this evening. How do I install Ubuntu? I would like to see a full how-to guide on how to install Ubuntu. List partition labels from the command line Is there a command that will list all partitions along with their labels? sudo fdisk -l and sudo parted -l don't show labels by default.  EDIT: (as per comment below) I'm talking about ext2 labels - those that you can set in gparted upon partitioning.  EDIT2: The intent is to list unmounted partitions (so I know which one to mount). Mclaurins with $e^{\sin(x)}$ To evaluate $e^{\sin(x)}$ I use the standard series $e^t$ and $\sin(t)$, combining them gives me:  $e^t = 1+t+\dfrac{t^2}{2!}+\dfrac{t^3}{3!}+\dfrac{t^4}{4!}+O(t^5)$  $\sin(t) = t-\dfrac{t^3}{3!}+O(t^5)$  $\therefore e^{\sin(x)} = 1+\sin(x)+\dfrac{\sin^2(x)}{2!}+\cdots+O(x^5)$  $\iff e^{\sin(x)}=1+\left(x-\dfrac{x^3}{6}\right)+\dfrac{\left(x-\frac{x^3}{6}\right)^2}{2}+\dfrac{x^3}{6}+O(x^5) = 1+x +\dfrac{x^2}{2}-\dfrac{x^4}{6} + O(x^5)$  In the last step, I only evaluate up to $\sin^3x$ term, everything above has a grade equal to or greater than $x^5$  However, I'm wrong. According to Wolfram, the series expansion for $e^{\sin x} = 1+x+\dfrac{x^2}{2}-\dfrac{x^4}{8}+O(x^5)$.  What did I do wrong? I can't seem to find what or where. Number theory in Physics As a Graduate Mathematics student, my interest lies in Number theory. I am curious to know if Number theory has any connections or applications to physics. I have never even heard of any applications of Number theory to physics. I have heard Applications of linear algebra and analysis to many branches of physics, but not number theory.  Waiting forward in receiving interesting answers! Find $\lim_{n\to\infty}2^n\underbrace{\sqrt{2-\sqrt{2+\sqrt{2+\dots+\sqrt2}}}}_{n \textrm{ square roots}}$. Find $\displaystyle \lim_{n\to\infty}2^n\underbrace{\sqrt{2-\sqrt{2+\sqrt{2+\dots+\sqrt2}}}}_{n \textrm{ square roots}}$.   By geometry method, I know that this is $\pi$. But is there algebraic method to find this ?   Thank you. The Megahertz Myth became a promotional tactic due to differences between the PC's INTEL 8086 processor and Apple's Rockwell 6502 processor.  The 8086 ran at 4.77MHz while the 6502 ran at 1MHz.  However, instructions on the 6502 needed fewer cycles; so many fewer, in fact, that it ran faster than the 8086.  Why do some instructions need fewer cycles?  And why can't the instructions of the 6502, needing fewer cycles, be combined with a fast cycling processor of the 8086?  Wikipedia's article for instructions per cycle (IPC) says     Factors governing IPC   A given level of instructions per second can be achieved with a high IPC and a low clock speed...or from a low IPC and high clock speed.   Why can't you have both high instructions per cycle and high clock speed?  Maybe this has to do with what a clock cycle is?  Wikipedia mentions synchronization of circuits?  Not sure what that means.  Or maybe this has to do with how a pipeline works?  I'm not sure why instructions in a short pipeline are different from instructions in a long pipeline.  Any insight would be great!  Just trying to understand the architecture behind the myth.  Thanks!  References: How is $ \cos (\alpha / \beta) $ expressed in terms of $\cos \alpha $ and $ \cos \beta $? If it is possible to express  $ \cos n \alpha $ in terms of $ \cos \alpha $  as a power series for integer $n$ ...  I like to see an expression for the quotient angle that obviously tallies when $ (\alpha , \beta) $ are swapped.  EDIT1:  Something like:  $$ \cos (\alpha - \beta)= \cos \alpha \cos \beta  + \sin \alpha  \sin \beta $$  EDIT2:  Like to know why $ \cos ( \alpha / \beta )$ cannot be expressed in terms of $ \cos \alpha, \cos \beta $, but  $ \cos ( \alpha + \beta) $  can be expressed in terms of  $\cos \alpha $ and $ \cos \beta. $ i have read most of the related postings and answers allready ... (e.g.  and  ... among others)  but (!) unfortunately none of them solved my problem. as someone postet on 2012-01-04 12:27 definition of properly defined *.csvt doesn't effect field-import - they are expected to be numbers and still are string.  her is a sample of my csv  InputID,Mean,Stdev,min,max 1,334.7617168,36.87450474,294.4334857,383.5583136 2,446.3946568,207.949905,153.2494524,613.3182137 and the csvt "Integer","Real","Real","Real","Real"  .. i have already:    checked field names (no blanks), checked separators, ... which are qgis' default because the csv is distance matrix calculation result defined the csvt with simle "Integer","Real" and the precision-type-style "Integer(6)","Real(8.3)" changed country settings in win7, win8, osx 10.9 due to known decimal separator issues   used csv as specified as well as "excel-style" csv (";"-separated)    checked all that in qgis 2.0, 2.2, 2.3(master)   and: at the beginning this problem was related to distance matrix output  ... where qgis calculates the results (and writes the csv-outputs), which of course are numbers (mean, stdev, min, max)  so, initially i was just looking for a straight forward way to use qgis' own calculation results for mapping of distance-distribution ...  is there a way to solve or completely bypass the csv-t issue in a way, i can easily communicate to gis-beginners ? Many times I see that URL extensions are hidden (e.g. .html, .php), but not all websites do this.  Why do webmasters hide the extension? Is it for security, for the URL to look cleaner, or for some other purpose? Sieve of eratosthenes infinite primes I don't understand why the sieve of eratosthenes doesn't prove an infinite number of primes.  For example the number 2 eliminates 1/2 of an infinite number of numbers.  The next prime, 3, eliminates 1/3 of the remainder, not 1/3 of all the numbers and so on.  5 would eliminate 1/5 of the remaining numbers. Why doesn't that prove an infinite number of primes? Thanks IN clause and placeholders show that Cov(X+ Y, X-Y)= Var(X) - Var(Y) I have four competing models which I use to predict a binary outcome variable (say, employment status after graduating, 1 = employed, 0 = not-employed) for n subjects. A natural metric of model performance is hit rate which is the percentage of correct predictions for each one of the models.   It seems to me that I cannot use ANOVA in this setting as the data violates the assumptions underlying ANOVA. Is there an equivalent procedure I could use instead of ANOVA in the above setting to test for the hypothesis that all four models are equally effective? Past participle after noun: "proposed cost" vs. "cost proposed" I have the following two examples:        Our proposed cost is expensive.   Our cost proposed is expensive.      Is there any difference between them? Or is the second sentence wrong? Often times I am not interested in the question so much as I am the answer. Unfortunately, the only site option for bookmarking an optimal answer is to bookmark the question. This leaves you having to remember that no the question wasn't that great, but there's an answer in here worth a million. It'd be nice to be able to favorite an answer allowing you to jump immediately to the answer that was much more valuable than the question. I understand that I can bookmark the answers link using my browser but it seems being able to favorite the answer within the site's ecosystem is useful. Is the universe fundamentally deterministic? How to develop RPG Damage Formulas? I have a login called user1. user1 can execute stored procedure [Test].[SP1]  EXEC [Test].[TestSortation] EXEC [TestSortation]   Both of the above commands work.  Now if I give the user1 the server role of sysadmin in addition to public. the later of the 2 statements above fails, and throws this error:     Could not find stored procedure 'TestSortation'.   I don't want to have to change every stored procedure in the database to have the schema name included with EXECute commands manually. Can someone explain to my why this is happening. Also, is there a way to get around this, automatically fix my stored procedures, have the schema default to [Test]? Is the distribution of an Ito diffusion at time t absolutely continuous wrt Lebesgue measure?