I am trying to compare two string and ignore case- sensitive but i don't want to use .lower() or .upper(). Is there another way of doing this?
How can I do case insensitive string comparison in Python?  I would like to encapsulate comparison of a regular strings to a repository string using in a very simple and Pythonic way. I also would like to have ability to look up values in a dict hashed by strings using regular python strings.
Using url package without hyperref makes link hit boxes erratic I've currently got a url link in a footnote in my document. With the hyperref package, everything works correctly. Because the IEEE PDF Express tool doesn't like having the hyperref package, I've removed it and only left in the url package.  However, some strange behavior occurs as a result of this. Instead of just the link being clickable, entire paragraphs of text before/after end up being clickable and going to the same link. This occurs for both Skim and Preview in Mac OSX.  Does anyone have an inkling of what might be causing this? I am applying for a UK visa. Can I show 5 months worth of bank statements for the UK visa, or is 6 months a requirement, as its not mentioned on their website?  There are no appointment dates showing in April. Is there any time limit in which we have to book an appointment after paying the fee? What kind of mortar should I use to point a fieldstone foundation?  The old mortar is crumbling, and sandy mortar is falling out onto the basement floor.  I plan to remove the crumbling mortar (see ), then point the foundation with new mortar.  But what kind of mortar should I use?    I have had a hard time finding definite answers about fieldstone foundations on the Internet, but I'll include some of what I've found here.  First,  has this to say about fieldstone foundations:     Most fieldstone foundations have, or had at some time, a thin mortar coating on the face of the stone. The purpose of this coating was to assist in holding the stones in place. This thin mortar coating will inevitably flake off from any moisture migration, revealing the surface of the stones. As this coating continues to erode, the mortar between the stones will begin to crumble and the soft, sandy mortar begins to slowly fall out onto the basement floor. It looks like a small pile of sand at the base of the foundation. When this occurs, tuck pointing is needed to refill the voids where the old mortar has fallen out. It's very important that you scrape away or chip away the crumbling mortar (in between the stones) in order to establish a small cavity or key way which can hold the new mortar that is being applied. Never apply new mortar over any old crumbling mortar, as this is a temporary fix and it will only last a couple years. All crumbling mortar must be removed in order for the newly applied surface to bond properly. While upgrading your field-stone foundation, only work on a section at a time. Do not remove the old mortar throughout the entire basement all at once. Complete all removal, tuck pointing and parging one section at a time.       To avoid annual tuck pointing, you should finish the foundation with a complete top coating of mortar. Be sure it is lime based. This top coat does not have to look like a stone artisan's creation: It merely has to serve the purpose of keeping the newly installed mortar in place. It's sort of like applying a frosting to a cake.    seems to suggest that I should be using not straight type-S hydrated lime, but type-S mortar, which consists of one part Portland cement, ¼ to ½ part lime, and an amount of sand equal to 2¼ to 3 times the total volume of cement and lime.  Do I need to analyze the existing mortar to make sure that the new mortar has the same lime content, as ?  Should I expect the new mortar to start crumbling and releasing dust soon, or should it stay solid and dust-free for many years? Let $X, Y$ be independent standard normal random variables.  We already know that $X+Y$ is normal with mean 0 and variance 2. However, I am trying to prove this result in a slightly different way than usual, i.e., using convolutions.  We can address the problem in the following way: the sum of the two variables has a density $h(x)$ given by the convolution product of the densities of the two variables, say $f$ and $g$, so that   $$ h(x) = \int_{-\infty}^{\infty} f(x-y)g(y)dy. $$  However,  $$ f(y) = g(y) = \frac{1}{\sqrt {2\pi}}\exp(-y^2/2). $$  Hence now the integral becomes:  $$ h(x) =\frac{1}{2\pi}\int_{-\infty}^{\infty}\exp(-(x-y)^2/2)\exp(-y^2/2)dy. $$  However, I am puzzled here. How should we go on from here? I cannot see how to transform this integral into the integral of a normal r.v of type $N(0,2)$. Thanks in advance for your help. I can't create an onCheckedChanged listener for my RadioGroup How to read a text file into GNU R with a multiple-byte separator? How to add startup applications in lubuntu? View history of changes Possible Duplicate:          How do I view the changes made to a question, in the SO-style visual diff?  I'm sure I've seen this before, but the "history" button eludes me. Clicking "edit" gives me a drop down of the revisions, but not the actual diff.    Edit  This edit is a demonstration of the revision history functionality. Number Theory: Find all solutions of $\phi(n)=16$ and $\phi(n)=24$ Catch multiple exceptions at once? It is discouraged to simply catch System.Exception. Instead, only the &quot;known&quot; exceptions should be caught. Now, this sometimes leads to unnecessary repetitive code, for example: try {     WebId = new Guid(queryString[&quot;web&quot;]); } catch (FormatException) {     WebId = Guid.Empty; } catch (OverflowException) {     WebId = Guid.Empty; }  I wonder: Is there a way to catch both exceptions and only call the WebId = Guid.Empty call once? The given example is rather simple, as it's only a . But imagine code where you modify an object multiple times, and if one of the manipulations fails expectedly, you want to &quot;reset&quot; the object. However, if there is an unexpected exception, I still want to throw that higher. I lost my .keystore file? What does `mv ./*` without specifying destination do? I accidentally forgot to specify destination before hitting the Return key. Where does mv ./* without specifying destination move the files and directories under current directory to? How to open files from other machine running ubuntu I tried to take data from my pc to laptop. Both are using ubuntu 11.10 os. I googled and tried to connect both the systems. Now it is showing connected symbol. Dont know how to proceed further. I need to take data from my pc using this lan connection. Please provide me solution for this... How do I speed up my design work? I've been a designer for 6 months, having previously had a 1st class honours degree in Graphic Communication. My issue is that I am a Very good designer, but I work too slow. It's beginning to drive a rift between myself and the creative director who desperately wants me to work quicker. I've always been a workaholic even in university, I put in 110% all the time, really work my ass off, but I'm still not fast enough to complete projects quickly, my work is good, but it's not efficient.  Do you guys have any tips to help me speed up? I have had significant problems with watching flash video in 64-bit Ubuntu.  Does anyone know of a good way to get flash running on the platform? Alternative IDE for VB6 and VBA I've been spoiled by Visual studio 2008 and Eclipse and have to do a little maintainence work on a VB6 app.  Does anyone know of an alternative/ updated IDE for VB6?  A rewrite is not an option I'm just fixing a couple of bugs and it's a big codebase. Add and remove update channels in an easy terminal way I know there is a GUI in Ubuntu Software &amp; Updates to enable the update channels   updates proposed backports security   as shown in this screenshot:    I am looking for an easy way to do this from within a terminal using commands such as    sudo apt-add-update enable updates sudo apt-add-update enable proposed sudo apt-add-update enable backports sudo apt-add-update enable security  sudo apt-add-update disable updates sudo apt-add-update disable proposed sudo apt-add-update disable backports sudo apt-add-update disable security   and an additional thing  sudo apt-add-update enable default  sudo apt-add-update disable default     Some examples for a better understanding   An empty sources.list   cat /etc/apt/sources.list  &lt;empty&gt;  sudo apt-add-update enable security  &lt;empty&gt;   One enabled repository (main)   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security main   Two or more enabled repositories in one or two lines   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe   or   deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily universe  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe   or  deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security main deb http://archive.ubuntu.com/ubuntu wily universe deb http://archive.ubuntu.com/ubuntu wily-security universe   With deb-src entries   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe deb-src http://archive.ubuntu.com/ubuntu wily main universe  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe deb-src http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe deb-src http://archive.ubuntu.com/ubuntu wily-security main universe   With inactive deb-src entries   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe # deb-src http://archive.ubuntu.com/ubuntu wily main universe  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe # deb-src http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe   The default thing    cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily-security universe  sudo apt-add-update enable default  deb http://archive.ubuntu.com/ubuntu wily universe deb http://archive.ubuntu.com/ubuntu wily-security universe   Only one entry and the disable action   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily-security universe  sudo apt-add-update disable security  &lt;empty&gt;   Different or the same servers for different or the samerepositories, respect each server   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily universe deb http://us.archive.ubuntu.com/ubuntu wily main  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily universe deb http://us.archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security universe deb http://us.archive.ubuntu.com/ubuntu wily-security main   Different Ubuntu releases for different repositories, respect each release   cat /etc/apt/sources.list  deb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu trusty main  sudo apt-add-update enable security  deb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu trusty main deb http://archive.ubuntu.com/ubuntu wily-security main universe deb http://archive.ubuntu.com/ubuntu trusty-security main   PPAs or other package sources (not-Canonical)  in the sources.list?  Ignore! Don't change the protocols, e.g. https, http, tor, ... Good 1st PDE book for self study I was told that the following does not work:     Employees having children will be granted a day off.   However, this sounds better:     Having children, those employees will be granted a day off.   What is wrong with the first clause? We are getting  in M19. What if I enchant my , copying my opponents . Then I pay the cost on my Bolas (previously a Delver) to activate his transform ability.  What will happen? I can think of 3 possibilities:   My Delver is exiled and the aura goes to the graveyard. My Delver is transformed, aura goes to the graveyard, but the Delver transforms into  My Delver is transformed, aura goes to the graveyard, and the Delver transforms into