Looping through an object's (class instance) properties in python and printing them
How to get instance variables in Python?
How can I identify what application is using a given file? Slow leak on front cruiser tire I ride my cruiser to the supermarket and back, using either a trailer or a basket over the front wheel for carrying groceries. The bike has developed a persistent slow leak on the front wheel, and I've replaced the tube without it helping. I can't see anything puncturing the tire, and the spokes aren't poking through the rim tape that I can see.   These are 26" wheels with low pressure (around 40 - 50 psi). What else can I look for that might be causing this? When dragging an object, there is a greater start-up force than the force it takes to keep it moving. Why is this? Why are there two different values for friction? Windows Update Slow on Vista Update I was able to get Readiness Tool to run but not the update Now the reediness tool will not even run Security Essentials will run    I have legal Windows 7 to install Do you think that is safe bet to try?    Had some performance issue so I ran MalwareBytes and Security Essentials.     It found some malware that was successfully removed.    I was able to Update Security Essentials and I ran it again for safety and it found nothing additions.     The last successful Windows Update was 5 days ago     Checking for Updates has been running 6 hours CPU 100%  network 0%     Windows6.0-KB947821-v35-x86.mnu fails to install It is supposed to be a tool to address update problems   I fear the registry got hacked to prevent updates     What can I do?  I know Vista.  I got it free. Is the 64-Bit version of Ubuntu only compatible with AMD CPUs? I was told that computers with more than 2 gig's memory need a 64 bit operating system to utilize all RAM.  Is the 64bit Ubuntu download really JUST for AMD processors? I am asking because the disk image I downloaded says AMD64.  So will my new Intel 2.3Ghz Core i3 Dual Core processor work with 64 bit Ubuntu?  It runs the 64bit version of Windows without any qualm. Can I visit the US for tourism on a previously unused B1/B2 visa? Note: This is NOT a duplicate of  Difference: In both other questions, the posters traveled once to the US for the original purpose for which the B1 visa was obtained. Their question is about visiting again using the same visa. However, I've not traveled to the US yet, and I'm planning my visit. What I want to understand whether I can use this visa for a visit whose purpose is not the same as what was submitted along with the application.  Can I use a B1/B2 visa for tourism that was originally obtained for business purposes BEFORE I actually visit the US even once? I had applied for a business visitor visa for a valid business reason but by the time I got it stamped, my plan changed. So I've not visited the US even once. Can I now use this visa to visit as a tourist without having used that visa for its original intended purpose? PS: I live in India. $ \tan 1^\circ \cdot \tan 2^\circ \cdot \tan 3^\circ \cdots \tan 89^\circ$ How can I find the following product using elementary trigonometry?     $$ \tan 1^\circ \cdot \tan 2^\circ \cdot \tan 3^\circ \cdots \tan 89^\circ.$$   I have tried using a substitution, but nothing has worked. Does existence of $\gcd$ implies PID? How to install the latest stable version of Chromium? Is there an easier way to install Chromium than what is described ?  Furthermore, is there an easier way to stay up to date with current Chromium releases rather than having to re-build Chromium each release? (a script which automatically grabs and installs the latest build possibly?).  Related: How to add upload field in a custom taxonomy? How do you subtract Dates in Java? Linear algebra is a very well-behaved part of mathematics. Soon after you have mastered the basics you got a good feeling for what kind of statements should be true -- even if you are not familiar with all major results and counterexamples.  If one replaces the underlying field by a ring, and therefore looks at modules, things become more tricky. Many pathologies occur that one maybe would not expect coming from linear algebra.  I am looking for a list of such pathologies where modules behave differently than vector spaces. This list should not only be a list of statements but all phenomena should be illustrated by an example.  To start the list I will post an answer below with all pathologies that I know from the top of my head. This should also explain better what kind of list I have in mind. I have the following code: info = new System.Diagnostics.ProcessStartInfo(&quot;TheProgram.exe&quot;, String.Join(&quot; &quot;, args)); info.CreateNoWindow = true; info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; info.RedirectStandardOutput = true; info.UseShellExecute = false; System.Diagnostics.Process p = System.Diagnostics.Process.Start(info); p.WaitForExit(); Console.WriteLine(p.StandardOutput.ReadToEnd()); //need the StandardOutput contents  I know that the output from the process I am starting is around 7MB long. Running it in the Windows console works fine. Unfortunately programmatically this hangs indefinitely at WaitForExit. Note also this code does NOT hang for smaller outputs (like 3KB). Is it possible that the internal StandardOutput in ProcessStartInfo can't buffer 7MB? If so, what should I do instead? If not, what am I doing wrong? What are the powers shown by the Rings of Power? Efficiency of a heat pump water heater during the winter In my understanding, heat pump water heaters pump energy from the room around the water tank into the water.  Clearly, this must be energy efficient in the summer time, especially if I am using AC anyway. The heat pump water heater may actually cool the house a bit.  However, in the winter time the savings are not so obvious. If I am using a heater to heat the home, including the water tank room, then I don't see how there can be any savings. Instead of generating heat using a coil in the water, I generate heat in another area of the house which gets pumped into the water. A joule is a joule and I need to get it from somewhere. It seems to me that if I am actively heating the house, and lets assume everything is electric, then a heat pump water heater cannot be more efficient than a traditional one.  Am I missing something in the winter case? How can I prove that $xy\leq x^2+y^2$? How can I prove that $xy\leq x^2+y^2$ for all $x,y\in\mathbb{R}$ ? How can I remove the first line of a text file using bash/sed script? I have some files with TikZ graphics that have suddenly changed appearance since I upgraded to PGF-2.10.  Here is a minimal example:  \documentclass{minimal} \usepackage{tikz} \begin{document} \pgfversion\par \begin{tikzpicture} \draw[blue] plot[domain=-1:1] (\x,{\x^2 + \x^3}); \draw[xshift=4cm,blue] plot[domain=-1:1] (\x,{(\x)^2 + (\x)^3}); \end{tikzpicture} \end{document}   In PGF 2.00 I had this:    while in 2.10 I have this:    The one on the left in PGF 2.10 looks like the graph of y=x^3 but could also be y=x^3 + x|x|.   This has been  on sourceforge and  on the pgf-users mailing list.  Although I haven't checked myself yet, the bug remains open and some of the commenters below report that problems still exist in the CVS version.   Geoffrey Jones notes the bug is in the 2.00 CVS version:     Hi Matthew, not an answer, just an FYI   that's too large for the comment box.   My compile of your code through pgf   v2.00 produces the result you see with   v2.10, above:       I.e., the difference you observe seems   to pre-date v2.10.   There is a workaround by inserting parentheses.  But since I have so many old lecture files I'd rather find a solution that doesn't involve rewriting my TikZ code.  And I'm squeamish about using the CVS bleeding edge code even if it were fixed, since I don't want to introduce other problems.  Ideally I'd like a simple patch that I can stick at the preamble, or just fix one file in the PGF distro. In eevee, shadows are clipped by camera distance As shown in the gif, the shadow in eevee is clipped by the camera distance. The same is true for F12 rendering. Where are the options to improve this issue? What can a wizard take instead of a familiar at 1st level? The familiar is brilliant feature for a wizard, but not for a prestige multiclassing one. Such a wizard stops upgrading his familiar once getting off the main road. So if he still wants to utilize his familiar, he should take the obtain familiar feat, but this would made the basic familiar feature redundant.  So what options can a wizard take instead of gaining a familiar at 1st level?