Will this create a memory leak?
How does Java Garbage Collection work with Circular References?
Nested indenting issue How to get correct indentation after entering a nested list? I am writing a code review and I could not figure this out by googling. Here is an example of the three formatting styles I tried to use (but none of them works as I would like):  Case 1  The task is to align the last line (see below) "In the first line you use camelCase..." with the last line above the numbered list. In my first attempt, I added a new line (empty line) after the second numbered list item, and then indented by 4 spaces:     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame   In the first line you use camelCase, whereas in the second you use     snake_case.     As you can see, this gives the correct indentation but it introduces a blank line above the first numbered item.  Case 2  In this case I do not add the blank line after the second numbered list item ( but still indent by 4 spaces ):     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame In the first line you use camelCase, whereas in the second you use     snake_case.      In this case the line is considered as part of the last list item  Case 3  In this case, I try to add two blank spaces (invisible) at the end of the second list item:     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame In the first line you use camelCase, whereas in the second you use     snake_case.      In this case the line is considered part of the second item, and hence not correctly indented.  How to achieve the correct indentation? Can a hyphen be used without anything on the right side? The set of functions which map convergent series to convergent series Suppose $f$ is some real function with the above property, i.e.  if $\sum\limits_{n = 0}^\infty {x_n}$ converges, then $\sum\limits_{n = 0}^\infty {f(x_n)}$ also converges.   My question is: can anything interesting be said regarding the behavior of such a function close to $0$, other than the fact that $f(0)=0$? How to do relative imports in Python? I want to model the transfer function of a resistor mathematically, and am after some resources / tips on if it's possible to do so.  For example, if I put 1V into a 1 Ohm resistor, I want to know how long and how (shape) it will take to reach a steady state temperature, given 25 deg C ambient.  I.e.   $$ \frac{T(s)}{V(s)} = ??? $$  Where T(s) is the laplace transform of temperature T(t), measured in say Kelvin.  I understand there are a lot of factors which will affect this model (material, size, shape, ambient (?)), but I'm not sure where to even start. A  shows the heat rise at a certain load, but not really how it gets there. I can't find a time-domain function for the temperature rise either. Uploading video to youtube in right format Find four groups of order 20 not isomorphic to each other. Which is the correct way to tell where I'm working?        I'm working in XYZ company.   I'm working for XYZ company.   I'm working at XYZ company.      Or is there any difference in the meaning? Inform moderators migrating a question if the migration would have been normally blocked Proving which QM interpretation is correct Let's assume that the existence of gravitons is theoretically proven or they are detected by LHC could one interpretaion be proven correct? How to obtain $f(x)$, if it is known that $f(f(x))=x^2+x$? How force Chrome to use google.com search engine without https How to prove $\bar{m}$ is a zero divisor in $\mathbb{Z}_n$ if and only if $m,n$ are not coprime Let us consider the ring $\mathbb{Z}_n$ where $\bar{m}\in\mathbb{Z}_n$  Could anyone help me prove that $\bar{m}$ is a zero divisor in $\mathbb{Z}_n$ if and only if $m,n$ are not coprime  So far I have:  Assume $\exists \bar{a}: \bar{m} \bar{n}=n \mathbb{Z} \Rightarrow$ for some $b\in\mathbb{Z}:am=bn$  I then assumed $n,m$ were coprime and attempted to use $\exists a&#39;,b&#39;\in \mathbb{Z}:a&#39;m+b&#39;n=1$ to come to a contradiction, however haven't found one, the most promising thing I have found so far is that  $a=n(a&#39;b+ab&#39;)$ and $b=m(a&#39;b+ab&#39;)$ $\Rightarrow n|a$ and $m|b$ Unicode error in inputenc package If an email message contains an email address in the body, Gmail automatically converts it into a mailto: link, which is helpful.  And many times each day I've enjoyed being able to right-click a mailto: link in an email (within Gmail) and then click "Copy email address" in the context menu.  Then I can paste that email address into a program (such as when I want to search a database).  However, within the past month or so, I've noticed that I can't right-click and click "Copy email address" without Gmail then popping open a "New Message" panel and changing my current URL to have ?compose=new at the end.  I wonder if it's related to .  How can I disable it?  I'm tried of having to click the "Discard draft" trash can button so many times throughout the day. Is it possible to set the "urgent" flag in Gmail for outgoing mail? I'd like to be able to flag time-sensitive emails as such. How to add csv file in QGIS 2.0 using Delimited Text Layer Plugin? I used to import csv files in previous versions of QGIS using the format below, but when I upgraded to QGIS 2.0 the delimited text layer plugin was changed and I can't import the file anymore. The plugin can't also detect the x,y or long lat field unlike in previous versions. Any ideas how to add the file? Thanks      Heres what it looks in Text Editor: A word for "intimate friends" without any kind of romance? I'm looking for a word to describe that a particular situation where two people (a man and a woman) are probably the best of friends but have no romantic inclinations towards each other. They may invade each others thoughts periodically but aren't really in a relationship per se. What would be a good word to describe this?  I'm aware of "platonic" but am wondering if there is another word? How to redirect output of an entire shell script within the script itself? Is it possible to redirect all of the output of a Bourne shell script to somewhere, but with shell commands inside the script itself? Redirecting the output of a single command is easy, but I want something more like this: #!/bin/sh if [ ! -t 0 ]; then     # redirect all of my output to a file here fi  # rest of script...  Meaning: if the script is run non-interactively (for example, cron), save off the output of everything to a file.  If run interactively from a shell, let the output go to stdout as usual. I want to do this for a script normally run by the FreeBSD periodic utility.  It's part of the daily run, which I don't normally care to see every day in email, so I don't have it sent.  However, if something inside this one particular script fails, that's important to me and I'd like to be able to capture and email the output of this one part of the daily jobs. Update: Joshua's answer is spot-on, but I also wanted to save and restore stdout and stderr around the entire script, which is done like this: # save stdout and stderr to file  # descriptors 3 and 4,  # then redirect them to &quot;foo&quot; exec 3&gt;&amp;1 4&gt;&amp;2 &gt;foo 2&gt;&amp;1  # ...  # restore stdout and stderr exec 1&gt;&amp;3 2&gt;&amp;4 (1, eval)('this') vs eval('this') in JavaScript?