where to run python programs in ubuntu I am completely new to python and ubuntu. I am reading a book that has an example to run on python. in windows i used to run in IDLE, but where is that in python ?  and if I dont want to get IDLE, then is there any other way i can run in terminal? please instruct me run the program   odbchelper.py:  def buildConnectionString(params):     """Build a connection string from a dictionary of parameters.      Returns string."""     return ";".join(["%s=%s" % (k, v) for k, v in params.items()])  if __name__ == "__main__":     myParams = {"server":"mpilgrim", \                 "database":"master", \                 "uid":"sa", \                 "pwd":"secret" \                 }     print buildConnectionString(myParams)
A great Python IDE for Ubuntu Possible Duplicate:          I want to develop Python apps in Ubuntu, and I'm tired of working with gedit one time and another.  So I'm trying to find a great Python IDE (a true IDE, not just a syntax-highlighting editor) on the Ubuntu repositories. Which one do you recommend me?
Finding the search terms behind 'not provided' So I've been thinking through some test cases. If $a_n = n$ then $\sum_n \frac{a_{n+1} - a_n}{a_n}$ is the harmonic series which diverges. And if $a_n = \sum_{k=1}^n 1/k$ then $\sum_n \frac{a_{n+1} - a_n}{a_n}$ diverges like $\sum_n 1/(n \log n)$. So that got me thinking, if $a_n$ is a strictly increasing unbounded sequence, does $\sum_n \frac{a_{n+1} - a_n}{a_n}$ necessarily diverge? How to remove illegal characters from path and filenames? I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am I missing?  using System; using System.IO;  namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             string illegal = "\"M&lt;&gt;\"\\a/ry/ h**ad:&gt;&gt; a\\/:*?\"&lt;&gt;| li*tt|le|| la\"mb.?";              illegal = illegal.Trim(Path.GetInvalidFileNameChars());             illegal = illegal.Trim(Path.GetInvalidPathChars());              Console.WriteLine(illegal);             Console.ReadLine();         }     } } I just would like to know if a question or an answer saved draft is visible to someone else, apart from the OP.  Will a copy of a saved draft remain visible even after it has been deleted? Who has access to it? Manual/automatic line breaks and text alignment in TikZ nodes How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE).  Is there a way to make lines break automatically at some specified width?  And can I control the alignment of the text (left, right, centered, justified)?  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node {First line\\second line}; \end{tikzpicture} \end{document} Keeping track of programs When I install a simple program it often uses make &amp;&amp; make install and doesn't often even have an uninstall target.  If I wish to upgrade a program, is it standard protocol to assume it just rewrites seamlessly over the old program?  How do I keep track of these programs; do most people just 'fire and forget' and if no uninstall target is given do I have to manually delete everything? system of ode with non-constant coefficient matrix Can a finite sum of square roots be an integer? Can a sum of a finite number of square roots of integers be an integer? If yes can a sum of two square roots of integers be an integer?  The square roots need to be irrational. Mammals, reptiles, arachnids, insects, etc are all as far as I am aware symmetrical in appearance.  Take a human for instance, make a line from the top of our head right down the middle. However, internally it is not the same. Our organs excluding the kidneys, lungs, reproductive organs, etc are not symmetrically placed in our body.   Why do we not have an even number of each organ so it can be placed symmetrically? If we have a single organ why is it not placed in the middle like the brain or bladder is for instance? Is there some evolutionary advantage that led to this setup? Sell your home and invest in growth stock mutual fund I purchased a home and I made an agreement with a guy who is living in that home and paying me monthly rent. Since I live with my brother I don't have to live in my purchased home.  The rent I'm getting is only 10% of total cost of home while stock fund industry (mutual fund) is paying 20% minimum i.e. I'm getting 10% loss every year and that is a big amount.  I'm not really sure if my home also increase it's value by 10% every year. But I don't think it will be.  Now I'm thinking of selling that home and investing all of my money in a growth mutual fund. Any advice? Character of the subobject classifier in the topos of $\mathbf{M}$-sets. You can start fire by focusing the sunlight using the magnifying glass.   I searched the web whether you can do the same using moonlight. And found  and  - the first two in Google search results.  What I found is the thermodynamics argument: you cannot heat anything to a higher temperature using black body radiation than the black body itself, and Moon isn't hot enough.  It may be true, but my gut feelings protest... The larger your aperture is, the more light you collect, also you have better focus because the airy disk is smaller. So if you have a really huge lens with a really short focus (to keep Moon's picture small), or in the extreme case you build a Dyson-sphere around the Moon (letting a small hole to the let the sunlight enter), and focusing all reflected light into a point it should be more than enough to ingnite a piece of paper isn't it?   I'm confused. So can you start fires using the Moon? Is it possible to build a .dmg file (for distributing apps) from a non-Mac platform? And if yes, how? Why bosons have integer spin and fermions have half-integer ones? Due the fact that the fermions are the "block particles" and the bosons are the "carriers" I just came out with the question that, why the "block particle" have half-integer spin and the "carriers" have an integer spin? iPhone: Detecting user inactivity/idle time since last screen touch How does the system determine which one close reason should be displayed on a closed question, given the close votes? When voting to close a question, it's possible for users to vote for any close reason, even if others have voted for different reasons. However, in the end, once the question reaches five close votes for any reason, only one of those reasons can be displayed.  How does the system determine which one close reason to display, given the votes made by users? If I add a comment but navigate (by mistake) to another page, I lose my unfinished comment (ok, depends on browser etc). On the other hand, when formulating a question, and I click on a link by mistake, I'm asked if I really want to leave.  It would be nice to have this warning for comments as well. If I change the password for the root user is that going to automatically change the password for the user account?   I found this link for root:    How do I change the user account password? Java Enum definition Can it hurt to put my GRE score on my resume?