I have a python script  $ cat ~/script.py import sys from lxml import etree from lxml.html import parse doc = parse(sys.argv[1]) title = doc.find('//title') title.text = span2.text.strip() print etree.tostring(doc)   I can run the script on an individual file by issuing something like  $ python script.py foo.html &gt; new-foo.html   My problem is that I have a directory ~/webpage that contains hundreds of .html files scattered throughout sub-directories. I would like to run ~/script.py on all of these html files. How can I do this?  I'm aware that I can list all the .html files under ~/webpage/ by issuing   $ find ~/webpage/ -name "*.html"   but I'm not quite sure how to use this list to run my script on them.
I want to run the command   python quast.py -o quast contigs.fasta   but I want to do this for multiple contigs.fasta files in multiple directories.  I'm running OSX.
in questions, answers, and comments. Can we get something like this going on Stack Overflow?  I think it’d be appropriate as I at least pretty often want to write something like n^2 and would benefit greatly from prettier markup. Sync +- 70 000 records from CSV into drupal I have a CSV file with approx. 70.000 records that I want to import into Drupal 7. Once this is done the client will provide a new CSV file on a daily base that has to sync the updated rows to Drupal.   I wrote a import with  and the  module, but in both cases it takes like forever to import the 70.000 rows. Is there any other solution to import the data faster in Drupal 7? Should 'using' directives be inside or outside the namespace? I have been running  over some C# code, and it keeps reporting that my using directives should be inside the namespace.  Is there a technical reason for putting the using directives inside instead of outside the namespace? Using a function in two different ways heat weighting: failed to find solution for one or more bones Every package "has no installation candidate" While attempting to install openssh-server on Ubuntu 14.04 64-bit, I get the following error:  Package openssh-server 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  E: Package 'openssh-server' has no installation candidate   I see the same error when trying to install any package.  This is the sources.list file:  deb http://archive.canonical.com/ubuntu hardy partner deb-src http://archive.canonical.com/ubuntu hardy partner LaTeX code sniffer and/or beautifier? I'm looking for a LaTeX code sniffer and/or code beautifier, because I'm creating a CI server for my LaTeX books and I wanted a few things. :D Equation of motion of a free particle We know that the equation of motion of particle can be derived from the respective action. But in the book I am reading, the author is saying:     ... timelike worldline of a massive particle is parametrised by proper time, $x^a=x^a(\tau)$. The velocity (tangent) vector is $u^a \equiv \dot{x}^a(\tau)$. This is normalised as $u^au_a =-c^2$.   How can one derive e.o.m? Axiom of Choice: Family of non-empty sets mutually disjoint or not? I have noticed that the family of non-empty sets referred to in statements of the Axiom of Choice is sometimes required to be mutually disjoint, and sometimes not. Why is that? Should I upgrade to the "mainline" kernels? I am trying to render a kitchen sink / Faucet    Here is another reference image of what I want   What I have got so far is this   Settings for World:  I have used an environment map HDRI with 0 saturation.  Material settings:  Triad with glossy, glass anisotropic and there mix shader combinations and the new principled bsdf shader too but didn't get the required result.  Studio lights: Followed multiple youtube tutorials on setting up studio lights in blender but the results were not what I wanted.    LEAVING CYCLES :  Decided to try some other software So, Downloaded Keyshot 5 but keyshot wasn't able to produce cycles like results LoL.  Not : I have always struggled to get professional quality product rendering in cycles      So now I'm back in cycles looking for help. After my , I've now got a new suggestion: down votes should not have any side effect in meta.  By side effects, I mean something like banning me from asking questions due to too many down votes, which I am experiencing right now:     states that I am permanently banned unless I improve my standing by posting some quality answers.  Seriously, I'm new to the site, and thus I'm not capable of posting quality answers on Meta.  So my only refuge was to create a new account. I think this check for previously downvoted posts should be disabled on Meta. How to install Opera Browser? I am trying to install opera browser from the terminal.  I downloaded the 'debian' installer because it didn't show up in software center.  It completely destroyed my software center - it is frozen and I have no idea how to fix (I have a different thread for that though).  Can I use this thing called synaptic package manager to install Opera?  or am I stuck with Firefox?    How do I install Opera Browser? Position of the adverb "substantially" Show f is continuous on (0, ∞) iff f is continuous at 1 for a defined function. exercise: Suppose that $f:(0,∞) → R$  satisfies $f(x) - f(y) = f(x/y)$  for all $x,y$ in $(0, ∞)$ and $f(1) = 0$.   Prove f is continuous on $(0, ∞)$ if and only if f is continuous at $1$.    (proof→:) Suppose that $f:(0,∞) → R$ satisfies $f(x) - f(y) = f(x/y)$ for all $x,y$ in $(0, ∞)$ and $f(1) = 0$. Suppose f is continuous on (0,∞), then by definition f is said to be continuous at a point $a$ if for every $ε &gt; 0$  there is a $δ &gt; 0$ such that $|x-a| &lt; δ$ implies $|f(x) - f(a)| &lt; ε$.   Then suppose f is continuous at $1$, then by our defined function  f(x) - f(y) = f(x/y) , we get $|x-1| &lt; δ$ implies $|f(x) - f(1)| = |f(x) - 0| = |f(x)| =  &lt; ε$.   (proof ←) :Suppose that $f$ is continuous at $1$, then we need to show $f$ is continuous on every point $a$ on $(0, ∞)$. Thus, by definition, f is said to be continuous at a point $a$ if for every $ε &gt; 0$ there is a $δ &gt; 0$ such that $|x-a| &lt; δ$ implies $|f(x) - f(a)| &lt; ε$. Thus, $|x-a| &lt; δ → |f(x) - f(a)| = |f(x/a)| &lt; ε$. Then $f$ is continuous on on $(0, ∞)$.  Please can anyone please help me verify this makes sense. If not, can someone please give any feedback/hints. Thank you in advance. The Download CSV link seems broken in SEDE query result window I've created   which works nice. I would really like to download those results as an CSV file. Therefor I click on the provided link on the right hand side of the screen called Download CSV. The result is:  The webpage cannot be found  https://data.stackexchange.com/stackoverflow/csv/202355?UserId=187606 I expected: A file in CSV format. It looks like a regression of  Queries without a parameter work as advertised. Can this be fixed? I read on the :     Focal-length determines the angle-of-view seen through a lens for a   given sensor-size. With a full-frame sensor a lens gives the same   angle-of-view as it would on a 35mm film camera. With a smaller   sensor, the angle-of-view becomes smaller. The crop-factor, also   called FLM, is the ratio representing the difference in equivalent   focal-lengths. So a 150mm on a full-frame DSLR such as the Nikon D700   gives the same angle-of-view as a 100mm on a D7000 since its FLM is   1.5X.      Short focal-lengths show a greater angle-of-view compared to longer   ones. [...]   In layman's terms, what is angle-of-view? Is it the same as focal length? If not, how is it different? How is it used? Why do I need to know about it? I was trying to prove this inequality using induction, but couldn't do.  Question: Suppose $a$ and $b$ are real numbers with $0 &lt; b &lt; a$. Prove that if $n$ is a positive integer, then:  $$a^n-b^n \leq na^{n-1}(a-b)$$ Could I have a hint for testing the convergence of the following series please?  $$\sum_{n=2}^\infty\frac{1}{(\ln n)^{\ln n}}$$  I am very appreciative for your help. hostname returns another device's name I realized that the hostname had changed while I was doing some work using terminal in OS X Yosemite. I thought there might be an IP address conflict so I reset it. However I still get another device's name (someone else's iPhone, to be exact) when I use the hostname command:  Last login: Fri May  1 15:52:42 on ttys000 SomeonesiPhone:~ irem$  SomeonesiPhone:~ irem$ hostname SomeonesiPhone.wireless.duke.local   What's going on and how can I fix this?  It appears the IP address has not changed. But the address that I get by doing ipconfig getifaddr en0 is different from my public IP address.  I looked up my public IP address using Google, like this: