For example i am given this string as an input: "HeLlo" How can i make this case insensitive for later uses? I want it to be equal to "hello" or "HELLo" etc...
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.
Cannot deserialize instance of time from VALUE_STRING value Show $$\frac{(2n)!}{n!\cdot 2^n}$$ is an integer for $n$ greater than or equal to $0$.   Could anyone please help me with this proving? Thanks! Variable parameters in C# Lambda During my attempt to upgrade my Xubuntu 14.04 installation with  sudo apt-get dist-upgrade   I made the mistake of interrupting the process by closing my laptop, which caused it to suspend to disk. After re-opening, the monitor remained black, so I was forced to reboot the system. I have since discovered many failures of drivers (wlan0 missing, USB memory stick cannot be mounted, USB mouse not recognised, and maybe more undiscovered problems with hardware).   My beginner's attempts to manually repair the single problems could have made it even worse. During the installation of the current distribution I chose to encrypt my whole hard disk. Train passport control from London to Paris I'm a non-EU citizen, I will be travelling from London to Paris next month, so I was wondering since most countries track entry and leave dates, if I use the train to switch these countries and they don't control it, my UK visa will seem like entry YES but no leaving. Same for the Schengen, I wouldn't have an entry date but I'll be leaving,  Will it be trouble later? Are they controlling this on trains? If not is there anything I should do before? How can I find out which process is locking a file or folder in Windows?  For instance, when trying to delete a folder, Windows reports this:     The action can't be completed because the folder is open in another program   Happens the same with a file, but how do I find out what program or application is currently using it and preventing me from deleting the file or folder? Selecting the right crank length What is the best way to determine the correct crank length for my height and more specifically my leg length? Can my child attend a private school whilst I'm on USA ESTA? I am British, currently staying in the USA for 6 weeks on an ESTA Visa Waiver. I am living with a local family and whilst here my child (9 years old) has been attending a private (non-state) school with the children of the local family.  Today somebody told me that by having my child attend a private school I may be in violation of the terms of the ESTA Visa Waiver.  I have found nothing about this at   Where can I find official documentation / online advice about this? Bootcamp: The startup disk does not have enough space to be partitioned When clicking continue on the first Boot Camp screen,  I am presented with a dialog that displays:     The startup disk does not have enough space to be partitioned.   You must have at least 39 GB of free space available.     This is despite "About this Mac" reporting 271GB of free space:    And "Disk Utility" reporting 268GB of free space:    Searching online I found  which suggested it was the result of Time Machine which i recently enabled and suggests to run sudo tmutil thinlocalsnapshots / 999999999999 which I did, it ran sucessfully, and I restarted, yet to no avail.  What is the solution to this instance of Apple's poor engineering?  Running macOS High Sierra 10.13.4 (17E202) For natural numbers $a$ and $b$, show that $a \Bbb Z + b \Bbb Z = \gcd(a, b)\Bbb Z $ For natural numbers $a$ and $b$, show that $a \Bbb Z + b \Bbb Z = \gcd(a, b)\Bbb Z $  I just basically said that the gcd of a and b { written as C } obviously divides aZ and bZ, therefore it can be rewritten as  CdZ + CeZ -> C[dZ + eZ] -> CZ[d+e] where Cd=a and Ce=b.   if a and b and C are natural numbers, then  so are d and e. the sum of d and e is an integer, that when multiplied by an integer produces an integer. therefore  CZ[d+e] = CZ, so aZ + bZ = GCD(a,b)Z  { Where C is the gcd(a,b) } $(xy + 1)(yz + 1)(zx + 1) $ is a perfect square if and only if each factor is Increasing Letterspace for words in caps or small caps Some typographers say it's a good habit to increase the letterspace when writing words in caps or small caps. So my question is, how to do it with pdflatex and/or xelatex? And while we're at it, which words would you alter this way? Acronyms like USA, NATO, IBM, GNU, etc.? How about words like PCs, UdSSR, FreeBSD or TV-Station? While I was reading Enderton's "A mathematical introduction to Logic", I came across the proof of the following sentence: "The set of all finite sequences of members of the countable set A is also countable".   Proof: The set S of all such finite sequences can be characterized by the equation  $$S=\bigcup_{n \in N} A^{n+1}$$ Since A is countable, we have a function f mapping A one-to-one into N. The basic idea is to map S one-to-one into N by assigning to $(a_0,a_1,...,a_m)$ the number $2^{f(a_0)+1}3^{f(a_1)+1}\cdot ... \cdot p_m^{f(a_m)+1}$, where $p_m$ is the $(m+1)$st prime. This suffers from the defect that this assignment might not be well-defined. For conceivably there could be $(a_0,a_1,...,a_m)=(b_0,b_1,...,b_n)$, with $a_i$ and $b_j$ in A but with $m\neq n$. But this is not serious; just assign to each member of S the smallest number obtainable in the above fashion. This gives us a well-defined map; it is easy to see that it is one-to-one.  Note: P is a finite sequence of members of A iff for some positive integer $n$, we have $P=(x_1,...,x_n)$, where each $x_i \in A$.  First of all, I cannot understand why the former assignment might not be well-defined and the latter assignment is well-defined. Secondly, I cannot understand what Enderton means by "just assign to each member of S the smallest number obtainable in the above fashion". By the way, is $(a,b,c,d) = ((a,b),(c,d))$ true? Also, in which cases can I omit/add parentheses in a tuple so as to have an equal tuple? I can't seem to find a story related to mine so here it is.  I am 25 and a German citizen. In 1998 when I was 7 years old my family moved to the states and we stayed until early 2002 and left voluntarily. Basically we overstayed. I am aware that my parents had the ten year ban and since I was a minor at the time of our overstay I did not receive such ban.  Ever since 2002 I have not attempted to go back to the USA for any reason. However now that I am older I would like to go back for vacation and stay for a short period of time (one month) during my christmas break.  I've lived in Germany since leaving, have a great job, enough money in the bank account. My whole life is here and I have no intention on moving anywhere else.  After reading a bunch of stories online I have decided to apply for a B2 visa to be on the safe side but I was curious about the ESTA approval. For the last question. 8) Have you ever stayed in the United States longer than the admission period granted to you by the U.S. government?   I should put yes but is it a no if I stayed when I was a minor? And what are my chances on getting the B2 Visa? Two Clash of Clans accounts on one device I have been playing on two clash of clans accounts on one device for a long time but just recently i cannot switch from my lvl17 to my lvl75. The switch villages option is not popping up for me and I don't know why. Can anyone help me get my main account back? Remove last character from line I know that Wubi is slower in disk IO, but I can't find anything about it online other than vague statements such as "slightly slower disk seeks".  Has anyone done any benchmarks to quantify the speed difference? Where to or how to ask "Best of" Questions for what software tools to use I am wondering where is a good place or how is a good way to ask a question on what software tools to use for a specific task.  A lot of the time when searching for information on these types of problems stackoverflow comes up with the top and actually useful discussions and answers, but the question is locked.  I completely understand the point of discouraging "best of" or list questions as discussed in this question () and agree they often aren't constructive enough to justify the effort in moderating them.  What I am wondering is where is the right place to have a discussion like this? Stackoverflow has a good and active community so perhaps there is another section or related site I can ask less specific questions. And I do find some value in reading people's opinions, even if subjective on issues like this.  Here are some examples of the kind of questions I mean:    and   First results in google when searching for those subjects and some useful discussion.  Perhaps asking a question like this but with a strict and detailed specification it might be considered a valid and reasonable question to ask on stackoverflow; perhaps it's just a case of re-thinking how to ask a question. Or perhaps there's a more relevant place for this kind of discussion. Please let me know what you think. What the matter is vs. what is the matter used in the affirmative I want to know what the matter is with her.  I want to know what's the matter with her. I want to know what's her problem.   Is "I want to know what's the matter with her" and 'what's the matter'  incorrect as Cambridge dictionary suggests (). In their explanation it is suggested that the word 'matter' be replaced with 'problem' as is written in the 3rd example.    Thanks for whatever help you can provide on this.  I've read Rathony's link and agree that his link answered the question about inversion. Now my question is specifically about the correctness of using this wording and if it is correct is there a rule in its usage. I have a laptop which is connected to the internet with ADSL modem, and I would like to share the internet for any laptop connecting to wireless router from my laptop using hotspot.  This is what I want:  ┌────────────────────┐ │ ADSL modem         │ └───┬────────────────┘     │ ┌───┴───────────────────────┐ │ laptop's wired adaptor    │ │                           │ │ Hotspot software          │ │                           │ │ laptop's wireless adaptor │ └───┬───────────────────────┘     │ ┌───┴──────────────────────┐ │ wireless router(linksys) │ └───┬──────────────────────┘     │ ┌───┴─────────────────────────────┐ │ Laptop computers and cellphones │ └─────────────────────────────────┘   How can I do that?