Binary search of a number within a list in Python
Binary search (bisection) in Python
The order of words in a clause: "tell me who is the real man" vs. "tell me who the real man is" Is it safe to answer "erase disk and install Ubuntu" on a virtual machine? What does the above Error mean? What is an installation candidate?  I was trying to do  sudo apt-get install munin-memcached     and I get this message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package munin-memcached is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package munin-memcached has no installation candidate   I googled for the problem and someone said to do a apt-get upgrade but it still did not solve my problem. Designer Added then removed by Visual Studio on load/unload I had a bunch of errors in the output of sudo apt-get update:  duplicate entries and 404 not found errors.  Figured those out, I hope: I removed PPAs that didn't have any packages associated with them, then I removed out a duplicate entry in /etc/apt/sources.list.  It seems I have royally buggered it up.  Now most of the lines say Ign when I do sudo apt-get update.  How do I go about straightening out what I have screwed up?  I need to get rid of these Igns that are all over the place.  There are about 50% (eyeball guess) Igns! Solidify conundrum? I stumbled across a solidify issue, I cannot wrap my head around. I have a simple mesh, consisting of three faces.  When adding a solidify modifier, I expect to get an object with three walls, where every angle is square. However, whatever I try, tweaking the various solidify parameters, what I get is something like the following, with a skewed rim.  Did I hit a bug, or is it a limitation of the solidify modifier? Is there a workaround? GeoTools CRS.getAxisOrder(CRS.getAxisOrder("EPSG:4326")) returns EAST_NORTH (LON_LAT) All is in the title, with GeoTools if I do :  AxisOrder order = CRS.getAxisOrder(CRS.getAxisOrder("EPSG:4326"));   It returns EAST_NORTH (= LON_LAT), but EPSG:4326 is defined as ordering latitude first and then longitude, as stated here :   So, what is happening here ? Am I doing something wrong ? Identify story: Overpopulation problem causes people to live one day a week This story is about a man that is able to live every day of the week, while everybody else has a single day of wakefulness assigned to them. Due to overpopulation, each human spends 6 out of 7 days of the week in stasis, and has jobs assigned to them in daily shifts. 1/7 of the population works on Monday. 1/7 works on Tuesday, &amp; so on. The main character has found away to circumvent the process and illegally live out his days consecutively by skipping the stasis program that is imposed on the general population and by working a different job everyday. Can somebody name this scifi story? Why is information indestructible? Here in the Figure R5=50K. This resistor value is not in the equations to obtain output voltage, and in many tutorials non-inverting input is directly grounded without a resistor. What might be the reason to use it here? Interpreting exp(B) in multinomial logistic regression This is somewhat of a beginner's question, but how does one interpret an exp(B) result of 6.012 in a multinomial logistic regression model?  1) is it 6.012-1.0 = 5.012 = 5012% increase in risk?  or  2) 6.012/(1+6.012) = 0.857 = 85.7% increase in risk?  In case both alternatives are incorrect, can someone please mention the correct way?  Ive searched many resources on the internet and I get to these two alternatives, and I am not entirely sure which one is correct. How to calculate the $H_2$ and $H_\infty$ norms of TransferFunctionModels or StateSpaceModels? Generating x,y coordinates for an edge detection of image Is it possible to build a .dmg file (for distributing apps) from a non-Mac platform? And if yes, how? How can I repair a ceiling fan that hums, but doesn't turn? Prove that $f(x)$ is irreducible iff its reciprocal polynomial $f^*(x)$ is irreducible. This is what I'm trying to prove:     Let $f(x)\in\mathbb{Q}[x]$ and $\deg(f(x))&gt;1$. Prove that $f(x)$ is irreducible in $\mathbb{Q}[x]$ iff its reciprocal polynomial $f^*(x)$ is irreducible in $\mathbb{Q}[x]$.    Note: The reciprocal polynomial $f^*(x)=x^nf(1/x) \in \mathbb{Q}[x]$, where $n=\deg f$.   So my thoughts are to prove the contrapositive, i.e. $f^*(x)$ is reducible iff $f(x)$ is reducible.   So to prove the ($\Rightarrow$) direction I assume that $f^*(x)=g(x)h(x)$, so I get that $g(x)h(x)=x^nf(1/x)$ which implies $f(1/x)=(1/x^n)g(x)h(x)$. I want to say this somehow makes $f(x)$ reducible but I am unable to proceed as $f(1/x)\notin \mathbb{Q}[x] $. I thought about substituting $y=1/x$, which gives $f(y)=y^ng(1/y)h(1/y)$, but I am unable to show that this is irreducible in $\mathbb{Q}[y]$. If I could, then it would be irreducible in $\mathbb{Q}[x]$ since $\mathbb{Q}[y]\cong \mathbb{Q}[x]$   Any suggestions or hints will be appreciated. How to convert Bedrock texture pack to Java Edition Minecraft I'm trying to use a texture pack designed for the Bedrock Edition of Minecraft, on Java Edition. I looked at the texture names for a Java Edition texture pack and compared those to the names of the Bedrock Edition texture names, and they aren't the same. A lot of the texture names are flipped, such as:   Jungle Log (Java = jungle_log.png) (Bedrock = log_jungle.png)   Most of the texture names are flipped, like the Jungle Log (and all of the other log types) and there are some .json files that are different and/or not there.  Trying to open the Bedrock texture pack would result in some animated blocks not being animated, other blocks play the wrong sound (or no sound) when broken, if OptiFine is in the mix, the skybox could be missing, which I am pretty sure would result in an always black sky, along with no sun and moon textures.  Any help in finding a program or site that can do this would be helpful, because I tried doing it manually, but almost every texture is different.  Any help is appreciated! Prove that $\lim_{n \to \infty} \int_0^1{nx^nf(x)}dx$ is equal to $f(1)$. I remember reading a sci-fi story where astronauts visit a planet, which is covered in stationary aliens with mile long necks that filter feed from the atmosphere.  It was published between 1960 and 2000.    It was in English and involved a pair of astronauts that went from planet to planet on a tour or something, though I don't know details of any other planets they visited. SPSite and SPWeb object dispose inside foreach loop