While loop skipping over if statements?
How do I compare strings in Java?
How do I parse an ISO 8601-formatted date? I need to parse  strings like "2008-09-03T20:56:35.450686Z" into Python's datetime type.  I have found  in the Python standard library, but it is not very convenient.  What is the best way to do this? How can I boot with an older kernel version? The latest kernel is causing problems with my sound, which worked fine with an older version. As I have only Ubuntu installed, Grub is not getting displayed while booting. How can I manually choose my kernel version while booting? Nsolve gives solutions with a small complex part which can't be eliminated by chop command Compilers and argument order of evaluation in C++ How many non congruent trapeziums are possible with the side lengths from {1,3,4,5,6} I need to find number of mutually non  congruent trapeziums with side lengths from {1,3,4,5,6}.   I know for a trapezium with a,c as non parallel sides the condition for my question is that  $$|a-c|&lt;b+d&lt;a+c$$  But i cant apply it to count the cases. Can someone help in how to get the number of cases? How to change Gnome-Terminal title? Is there a dominant gene for right-handedness? Has there been any definitive research about handedness being genetic? Also, why is right-handedness clearly dominant in humans? I'm interested in evolutionary theories, as well as any molecular explanation (if known). How do I check if a string is a number (float)? What is the best possible way to check if a string can be represented as a number in Python?   The function I currently have right now is:  def is_number(s):     try:         float(s)         return True     except ValueError:         return False   Which, not only is ugly and slow, seems clunky. However I haven't found a better method because calling float in the main function is even worse. New top bar quick reference guide / Where has the link to  gone? I currently have a valid Schengen tourist visa that expires next year, issued by the French Consulate in Saudi Arabia.   I am going to a 60-day study abroad program in Italy and they require a student visa. I went to the Italian Consulate in Boston and they asked me to go to the French Consulate and cancel my visa. However, the French Consulate said that I needed to contact the French Embassy in Saudi to cancel the visa.   How can I cancel my tourist visa if I am currently in the United States? My Italian student visa application is due tomorrow morning. Automorphism group of the quaternion group Let $Q_8$ be the quaternion group. How do we determine the automorphism group $Aut(Q_8)$ of $Q_8$ algebraically? I searched for this problem on internet. I found some geometric proofs that $Aut(Q_8)$ is isomorphic to the rotation group of a cube, hence it is isomorphic to the symmetric group $S_4$. I would like to know an algebraic proof that $Aut(Q_8)$ is isomorphic to $S_4$. I want to get the following:    I tried the following  \[    a(i,k) \leftarrow     \min\Big\{0, r(k,k) + \sum_{i^{'} | i^{'}\notin \{i,k\}}\max\{0, r(i{'},k)\}\Big\} \]   and got    How can I make the part under the summation extend to left and right without making a space between plus and max as in the first figure? What is a word for someone that only does something to benefit them? Take this paragraph for example: I am a follower, not a leader. Hell, I'm not even that good of a follower either, just someone who will do your bidding for the right price. Even then, if it doesn't benefit me -- or put you in debt to me -- I won't do it. Share Wireless connection with Wired Ethernet Port Can a multiclass sorcerer make spell slots for their other class using sorcery points?  For example: can a multiclassed sorcerer 3 / warlock 1 use Flexible Casting to create a warlock spell slot? Force pagebreak after every sentence/paragraph Is there a way to force a pagebreak after every sentence or paragraph?  This may seem like an odd thing to do, but for catching typos and just general editing I find it much easier to look at a sentence or paragraph in isolation so that I am not tempted to skip ahead.  Currently, I just zoom in so I can only see a few word at a time, but this is not a perfect solution. function customization_form_user_register_form_alter(&amp;$form, &amp;$form_state, $form_id) {  $form['account']['pass']['#attributes']['placeholder'] = t('Password'); }   I am trying to set placeholder on password field in registration form.  I seted placeholder on username and email, but on password field won't work...  Any help? Thank you! Correct MySQL username/password, but getting Access Denied error when run from script I am running the latest version of X3 Terran Conflict (3.1) and after about 30 min - 1 hour it's memory usage goes well above 2 GB.  I only have 4 GB of ram, running Windows 7 64 bit.  As a result of X3 using more ram than is available, my hard drive starts paging and makes the game and other applications become unusable.  I have to restart the game.  Is anyone aware of this issue or how to fix it and is there any way in Windows or through some tool, to limit how much memory is given to the game?  Is this a bug in the game? Can this even be fixed?  I'm using some mods but I doubt any of them are causing this as they are simple mods like adding a tractor beam etc. It is company policy for admins to login to the servers via a personal username, and then run sudo -i to become root.  Upon running sudo -i, sudo will create an environmental variable called SUDO_USER, which contains the original user's username.  Is there a way to log ALL commands within syslog with something akin to the following syntax:  ${TIME/DATE STAMP}: [${REAL_USER}|${SUDO_USER}]: ${CMD}   An example entry would be:  Sat Jan 19 22:28:46 CST 2013: [root|ksoviero]: yum install random-pkg   Obviously it doesn't have to be exactly the above syntax, it just has to include a minimum of the real user (eg. root), the sudo user (eg. ksoviero), and the full command that was run (eg. yum install random-pkg).  I've already tried snoopy, but it did not include the SUDO_USER variable.