How do I format a number with a variable number of digits in Python?
Format string dynamically
Changing default width of blocks in beamer After the therapy, eight children (43%) became able to crawl/move on their back.   Or should I use "on their backs"?   Singular because each child only has one back, or plural because we're dealing with eight backs? How to get next/previous record in MySQL? Using a question mark mid-sentence If $2a_{n+2} \le a_{n+1}+a_n$, then $\lim \sup a_n \le \frac23 a_2 + \frac13 a_1$ This is a reformulation of a deleted question:  If  $a_1 &gt; 0$ and $a_2 &gt; 0$ and $2a_{n+2} \le a_{n+1}+a_n$,  show that  $\lim \sup a_n \le \frac23 a_2 + \frac13 a_1$.  My proof involves showing that $a_{n+2} \le u_{n} a_{n+1} + (1-u_n)a_n $ where $u_n \to \frac23$, and I wondered if there is a simpler proof.  I will post my proof in a couple of days if no one does. How does 3-wire RTD or resistance measurement works in bridge of wheatstone? I cannot understand how 3-wire measurement will improve the resistance measurement.    They say that IF lead resistance \$ R_L \$ is the same, it will compensate. How can this happen?  If bridge is balanced (without \$ R_L \$):  \$ \frac {R_1}{R_2} = \frac {R_g}{R_3} \$  If \$ R_L \$ is added: \$ \frac {R1}{R2}= \frac {R_g+R_L}{R_3+R_L} \$  \$ \frac {R_g}{R_3} \$ is not same as \$ \frac {R_g+R_L}{R_3+R_L}\$; is this true only if \$ R_G=R_3 \$ in the beginning? So this means that \$R_L\$ does not get compensated? Emboss text onto curved surface I am fairly new to blender and I am trying to do something which I am assuming is fairly straight forward with no success. All I'm looking to do is emboss some text onto the curved part of a yogurt pot. Image attached below. What is the quickest and easiest way of doing this?  Thanks in advance System App Permissions I have an application that needs root permissions to run.  No biggie, all of my personal devices are rooted, so I am very comfortable with the process. The problem is that this application is to be used on company owned devices issued to certain employees and I don't want them to be able to uninstall the application nor do I want them having root access to the device.  I was thinking that the following process would accomplish my goals:   Root the device Install my app as a system app Launch the application and grant su rights to it Unroot the device   Since it would be a system app, and the device wouldn't be rooted, users would be prevented from removing the app.  What I am unsure of is whether or not that application would retain its root privileges once the device is unrooted?   Any feedback or insight would be greatly appreciated! What theorems can I use to prove this? Should I follow what was mentioned in the “duration of stay” or in the "validity of the visa"? I'm from Tunisia and I got a Schengen visa from the Austrian Embassy for  28 days, the “duration of stay”, and the number of entries is 1. But the validity of the visa is from 02/08/2015 to 13/09/2015.  Do I have to stay only 28 days, for example from 02/08/2015 to 29/08/2015 or can I stay there until 12/09/2015 ?  And if I have got to stay only 28 days, then can I choose the days of stay, that's mean can I stay in Austria for example from 09/08/2015 to 05/09/2015? An explanation for the Landauer's principle Has anyone understood the ? What is the current status?  In specific, is there a theoretical derivation of the Landauer's Principle?(not the heuristic one based on Salizard's engine) How does one account for thermodynamic concepts applicable to situations involving measurement? What does it mean to reset the state of the apparatus why is free energy expended in the process? Is it bad to defrag a ssd? Or just pointless? I've read on some websites that it's bad to defrag an ssd. But I'm reading on this website now and one person was like "You didnt do any harm its just not necessary to defrag it." I feel like that's wrong since every other website I've read says it will damage the ssd. In PostgreSQL, what is the difference between a "Stored Procedure" and other types of functions? I understand the distinction between:   Scalar functions Set-Returning-Functions (SRF)s Internal functions Window functions Aggregate functions of all sorts User-Implemented functions (which in PostgreSQL can be implement in any language) Etc.   In SQL Server "Stored Procedures" are permitted through EXEC. What does that provide over any other function executed with SELECT that returns NULL?  When PostgreSQL gets Stored Procedures what will they bring me, and what is the formal distinction if any between a function and a stored procedure in the spec?  I read I'm trying to use grep to show only lines containing either of the two words, if only one of them appears in the line, but not if they are in the same line.  So far I've tried  grep pattern1 | grep pattern2 | ... but didn't get the result I expected. Why does a candle blow out when we blow on it? Our breath is 16% oxygen and only 4% CO2 How to uninstall Windows from a Dual Boot system? I have 2-3 different column names that I want to look up in the entire DB and list out all tables which have those columns. Any easy script? I have seen many camera review sites illustrate the effect of using different focal lengths on the same photograph using frames. There are also similar illustrations to compare different sensors (). I find this kind of visualization to be very useful in comparing the actual effect of the longer focal length\different sensor size. Of course the ability to do a wider focal length visualization would also be equally useful, but that's not possible.  Is there any ready-made software or plugin that enables this? If not, is there any simple technique to visualize the effect of longer focal lengths on an image (one would of course have to use the zoom information in the image EXIF data to accurately represent this)? All I can think of is to use some trigonometry to do the necessary calculations for the frame sizes for cropping. Inequality between $\ell^p$-norms Farkas/guards pursuing me glitch I was doing a quest for the companions. When I entered Jorrvaskr, Farkas pulled out his sword and began to talk to me. Every time I would try to leave the conversation he would just follow me and try to talk to me again. This lead to me paralyzing Farkas and running away.   By the time I got to the gates of Whiterun he had already gotten up, ran to me and started another conversation. I quickly made it to the gates and exited, he followed me through the gates but I whirlwind sprinted to Shadowmere then attempted to fast travel - which game me the "Can not fast travel when guards are pursuing you" message even though no guards were following me.   I knew Farkas wasn't far behind so I quickly jumped on a carriage and I traveled to the nearest hold which was Dawnstar. Now I can't leave Dawnstar because the same message appears. I have tried to pay off my debt to the Dawnstar guards but it didn't fix the problem. How can I resolve this issue?