Problem with creating an ext3 partition on SD card
SD card partitioning? why? how?
Differences in the behaviour of pinching a garden hose and closing a tap Let's say you have a garden hose connected to an ordinary water tap which is opened fully. If you pinch the end of the hose, water leaves the hose at a higher speed (and this can be useful while watering plants, to reach pots which are further away). However when a tap (with no hose connected) is opened only slightly, water flows out at a low speed, possibly even in drops.  The actions of pinching the end of a hose and of almost-closing an open tap seem similar, so why the difference in behaviour? Database does not update automatically with MySQL and Python I'm having some trouble updating a row in a MySQL database. Here is the code I'm trying to run:  import MySQLdb  conn=MySQLdb.connect(host="localhost", user="root", passwd="pass", db="dbname") cursor=conn.cursor()  cursor.execute("UPDATE compinfo SET Co_num=4 WHERE ID=100") cursor.execute("SELECT Co_num FROM compinfo WHERE ID=100") results = cursor.fetchall()  for row in results:     print row[0]  print "Number of rows updated: %d" % cursor.rowcount  cursor.close() conn.close()   The output I get when I run this program is:     4Number of rows updated: 1   It seems like it's working but if I query the database from the MySQL command line interface (CLI) I find that it was not updated at all. However, if from the CLI I enter UPDATE compinfo SET Co_num=4 WHERE ID=100; the database is updated as expected.  What is my problem? I'm running Python 2.5.2 with MySQL 5.1.30 on a Windows box. Java equivalent to PHP's preg_replace_callback How to use "fit" to frame the nodes and labels I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit}  \begin{document} \begin{tikzpicture}   \node [label=label1,draw] (node1) {Node1}; \node [label=label2,draw] (node2) at (4,2){Node2};  \node[fit=(node1)(node2), draw] {}; \end{tikzpicture} \end{document}     How to fit the rectangle also around the node labels? What focal length lens do I need for photographing the moon? I would like to know whether it is possible to photograph moon without any flaws with a canon EOS 550d..   Also to get an image of the moon as close as the following image, what kind of equipment(lens,etc) is need to be used with the 550d Body What is the number of invertible $n\times n$ matrices in $\operatorname{GL}_n(F)$? What are the rules and limits of Accio spell? We know that Accio spell (aka ) has some limits:   It can be blocked (e.g. Harry couldn't Accio the Diadem in RoR in Deathly Hallows). Many more failures are listed on Wikia.   But what are the exact full rules and limitations governing the spell in Harry Potter world?   Distance?  Line-of-sight?  Knowing exact or approximate location?  Specificity of item (e.g. "Accio Broom" seemed to work for Weasleys in OotP to bring their locked-up brooms - why not just a random broom?) Types of Accio-able stuff? Can you Accio water? Lump of earth? Gases/liquids/etc...? Can you Accio based on jQuery selector (or an SQL where clause), for lack of a better description? E.g. "Accio the book that has the word 'Flammel'"? "Accio biggest green ball from this room"? Can you Accio ALL items of a kind? (the reason I thought of this whole question was seeing "Accio all guns" comment in ). Can you Accio vague stuff? ("Accio meal"). Other rules that can be inferred.   NOTE: While Wikia article has some of the info, it is clearly very lacking in details on specific rules based on specific instances in canon. I'm looking for a fully comprehensive, organized ruleset for the charm, not merely 1-2 tidbits in Wikia article. How do I grep for all non-ASCII characters? Lets say I'm building a base class which will be extended upon by the children class. So a base class is called Base and children can be Child1, Child2, etc.  In the base class's constructor, how can i get the value of Child1/Child2?  This is all using PHP Why does the image not appear? My Command is below and its print Free CPU and Used CPU below format.  I want to restrict awk output to 2 decimal place.  grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} {free=($5)*100/($2+$3+$4+$5)} END {print "Used Cpu:",usage "%"} {print "Free Cpu:",free "%"}'   Output :   Free Cpu: 98.9588%  Used Cpu: 1.04125%   Desired output :  Free Cpu: 98.95%  Used Cpu: 1.04% Evaluating the limit $\lim_{n\to\infty} \left[ \frac{n}{n^2+1}+ \frac{n}{n^2+2^2} + \ldots + \frac{n}{n^2+n^2} \right]$ Evaluating the limit $\displaystyle \lim_{n\to\infty} \left[  \frac{n}{n^2+1}+ \frac{n}{n^2+2^2} + \ldots + \frac{n}{n^2+n^2} \right]$  I have a question about the following solution:  We may write it in the form:  $$ \frac{1}{n} \left[ \frac{1}{1+(\frac{1}{n})^2} + \ldots + \frac{1}{1+(\frac{n}{n})^2} \right] $$  Somehow I need to figure out that the limit is actually the Riemann sum of $\frac{1}{1 + x^2}$ on $[0,1]$ for $\pi = 0 &lt; \frac{1}{n} &lt; \ldots &lt; \frac{n}{n}$.  Can you explain to me to reach this conclusion? DOS commands for Epson dot matrix not working Our Epson dot matrix printer is not printing on the following DOS command.:  Type text.txt&gt;prn   But it does print perfectly on:  open TEXT.txt&gt;File&gt;Print    What is the issue here? With the new permission model for Marketing Cloud Installed Packages, there is a problem with the "Read"-Scope for Data Extensions.  If an installed package is granted the permission/scope "Data Extensions - Read" the API-Call fails with HTTP 403 "Forbidden".  How to provide read access to Data Extensions?  Related documentation: Finding $\int_0^\infty \frac{\cos(ax)-\cos(bx)}{x}dx$ I am practicing calculus section of GRE Math Subject test, and I can't figure out a way to do the following integral: $$\int_0^\infty \frac{\cos (ax) - \cos (bx)}{x}dx.$$  I absolutely have no clue how to do this. Can someone show me the solution explicitly? Thank you. How to replace forward slash with backward slash Find the product $\prod_{n=1}^{\infty} (1+x^{2n-1}) $ Does taking levels in a prestige class cause XP Penalty? Is it possible to configure Windows 7 to use YYYY-MM-DD instead of DD/MM/YYYY as the date format? How? Where? Why doesn't an orbiting body keep accelerating? As a physics newbie I'm trying to get a grip on basic orbital mechanics. I think I'm beginning to get grasp on how bodies interact with each other. When a body approaches another body it accelerates due to gravity. It can reach a point where its velocity is high enough to keep falling but also keep missing the object it is falling towards. What keeps it from accelerating (because of gravity) and eventually reaching escape velocity? I feel like I'm either looking at things the wrong way or I have the entire thing wrong.