escaping curly braces for string.format
How to escape braces (curly brackets) in a format string in .NET
What is the difference between apt and apt-get? I'm looking for the best / friendliest way to reboot my rooted android 4.1.1 device. I found these solutions so far:   su -c "reboot" - Causes problems with wifi after restart on my device... I read that this can cause a currupt file system in some cases... Doesn't work via ssh for me. toolbox reboot - Same concerns here, but works via ssh. reboot -d 8 -f - causes problems after restart e.g. some apps wont start busybox killall system_server - "Hot Reboot" (not really a system restart) start|stop - Starts/stops Android Runtime (not really a system restart)   What is the device doing exactly when I'm pushing the (hardware) power button? I guess that's the most friendly way. Interface vs Base class How to secure my laptop so that hacking by physical access is not possible? Opportunity attack when moving in and out of range of a creature in the same move? Let's say I'm 10ft away from an enemy. In my turn, I choose to move 5ft to get close enough to attack, I do attack, then I use my remaining movement to move out of range of the enemy. Does this still allow them an opportunity attack? Recursively rename files and directories Partitioning with varying partition size Will fruit/seed of a bonsai yield another bonsai plant/tree? With practice one can create a bonsai; no complicated modification of the DNA in a high-end lab required. The bonsai will even beget bonsai fruit.   What I am curious about is - if such bonsai fruit is planted again, will it give rise to a normal, or a bonsai tree? How to find unused/dead code in java projects What tools do you use to find unused/dead code in large java projects? Our product has been in development for some years, and it is getting very hard to manually detect code that is no longer in use. We do however try to delete as much unused code as possible.  Suggestions for general strategies/techniques (other than specific tools) are also appreciated.  Edit: Note that we already use code coverage tools (Clover, IntelliJ), but these are of little help. Dead code still has unit tests, and shows up as covered. I guess an ideal tool would identify clusters of code which have very little other code depending on it, allowing for docues manual inspection. Convolution operator has norm 1 with respect to $L^2$ norm Let $C_c(\mathbb{R})$ be the following:  $$C_c = \{ f \in C(\mathbb{R}) \mid \exists \text{ } T &gt; 0 \text{ s.t. } f(t) = 0  \text{ for } |t| \geq T\}$$  Let $T_n \in L(C_c(\mathbb{R}))$ be a linear operator such that:  $$T_n u = \delta_n *u, \forall u \in C_c(\mathbb{R}),$$  where  $$ \delta_n(t)= \begin{cases}        n^2(t+1/n) &amp; -1/n \leq t \leq 0 \\       -n^2(t-1/n) &amp; 0 &lt; t \leq 1/n \\       0 &amp; \text{elsewhere}     \end{cases} $$  I have to prove that with respect to the 2-norm, the operator $T_n$ has $\|T_n\| = 1$ and I have succeeded in proving that $\|T_nu\|_2 \leq \|u\|_2, \forall u \in C_c(\mathbb{R}).$  Now, I remained  to prove that $\exists \text{ } u \in C_c(\mathbb{R}) \text{ s.t. } \|T_nu\|_2 = \|u\|_2$, but I really don't get how $u$ should be shaped in order to satisfy it. Modern Linux commands that parallel uuencode/uudecode functionality I need to get binary files into text format.  Years ago, I used uuencode/uudecode, and it was easy:  uuencode file.xls &gt; file.txt # Delete file.xls # Do whatever with file.txt # Now I need file.xls back uudecode file.txt &gt; file.xls   But uuencode/uudecode is not on my system, and as I look around, the yum/rpm process is ugly--this gives me the clue that maybe no one uses it any more and instead there is something more modern to do this.  I looked at xxd and hexdump but couldn't get them to do it.  Could just be dumb user issues.  What can I use on Linux to do this?  Would like it to be something that tends to be in the native install so I don't need to yum/rpm it if possible.  Just for your own understanding, what I'm specifically trying to do now is source control an *.xls file but the corporate tool doesn't allow *.xls in.  I respect that constraint normally, but in my context, an *.xls is a configuration table for my code so It is logically like source code, but the corporate SVN trigger is physical--if it's *.xls, it gets rejected, so I'll encode it and source control the *.txt file.  Thanks! Nautilus bookmarks are missing since upgrade to 13.04 My bookmarks are not shown anymore after upgrading to 13.04 Raring ringtails and I can't add any new bookmarks. The function is not shown and the shortcut Ctrl+D isn't working either. Is this functionality just gone for some reason (as the split screen with F3) or is there something wrong with my upgrade?  Thanks for any hints. I just wrote a question before this one and had trouble uploading a screenshot. The drop your image dialog throws no warning or error, but after uploading it won't show.  I also noticed that other questions won't load their images. Could this be some issue with imgur or similar?  Example:     When opening the image in a separate tab, Chrome gives a "too many redirects" error:    This might be linked to How to remove a USB drive without worry if its been unmounted? Which one is correct to say: "It's me" or "It's I"? I was taught at school that the following expression is not grammatically correct:  Who is there? It's me.  The correct one is:  Who is there? It's I.  Can you let me know which one is accurate? Anchor Text code string is automatically modified by WordPress I have created an ad for a merchant wanting to rent ad space on my website home page. After creating the ad, (anchor text and pic/graphics with embedded hyperlink) the merchant has requested I remove my url from the ad code. The anchor text along with the embedded hyperlinks links to the merchant's home page.  Problem is I don't know how my url was added to the code as I never inputted it in the original code in the first place. Somehow it was added by I think, WordPress or my server (PHP).  When I view the page source I do see my url was added to the ad code.  Can anyone help explain this and tell me how I can remove the url? Also, if I am able later to remove my url, how will it affect the hyperlink and anchor text?  Thank you, -Dan  Hi s_ha_dum,  I have read your answer and have now made sure the code reads as abosolute url.  Here it is with absolute url:  &lt;strong&gt;If you are interested in helping others treat and prevent hypertension, consider a healthcare degree from &lt;a href="http://elearning.loyno.edu/"&gt;Loyola Online Courses today!&lt;/a&gt;&lt;/strong&gt;   It still shows in page source however with my url addended to the code string.  What am I not understanding? Thank you! Fractional Scaling 18.04 LTS How to compute the size of the allocated memory for a general type Search using symbols is broken We used to be able to , but that now appears to be broken.  I'd expect a  to return a result, but instead the search engine appears to put quotes around the whole request; the search box shows the search has been replaced with "[python] += list" and the  I was looking for doesn't appear among the returned questions.  Using quotes around the symbols do not seem to help here;  returns an empty result. What desktop environments can group window icons in the taskbar like Windows 7? I find it much faster to identify a window in the taskbar (window list) by its icon,    rather than by its text:    The problem with most graphical interfaces I've  is that they don't group windows, and if you have more terminals or file managers, they'll just clutter the taskbar and you won't know which is which. Windows 7 offers a relatively elegant solution to this by grouping similar window icons together.  Question: What Linux  have this functionality? If addons exist that provide it, that's alright.  For reference, a Cinnamon applet that sort of does this is .