Could you avoid to die due to the death note if you have no heart in your body?
What happens if a person can't die of a heart attack?
I'm trying to write a blog post which includes a code segment inside a &lt;pre&gt; tag. The code segment includes a generic type and uses &lt;&gt; to define that type. This is what the segment looks like:  &lt;pre&gt;     PrimeCalc calc = new PrimeCalc();     Func&lt;int, int&gt; del = calc.GetNextPrime; &lt;/pre&gt;   The resulting HTML removes the &lt;&gt; and ends up like this:  PrimeCalc calc = new PrimeCalc(); Func del = calc.GetNextPrime;   How do I escape the &lt;&gt; so they show up in the HTML? How can I make a script run automatically after gdm login and logout? I have a setup where my users log on using ldap and it works just fine.  I want to run a script after my users login (its a script that will detect which groups they are in and map network shares accordingly), and after they logout (umounting their shares).  Both scripts are done and they work.  I want that when the user logs in the box a script runs downloading the mounting script from my server (wget i guess?) and runs it, same thing for logout.  Can it be done? I've been searching the net and had no luck so far. I've managed to make that work on shell login/logout, but my users dont even know what shell is and have no use for it :) Why does a 'sudo -i' login shell break a here-doc command string argument? In the sequence of five commands below, all depend on single-quotes to hand off possible variable substitution to the called bash shell rather than the calling shell. The calling user is xx, but the called shell will be run as user yy. The first command substitutes $HOME with the calling shell's value because the called shell is not a login shell. The second command substitutes the value of $HOME loaded by a login shell, so it is the value belonging to user yy. The third command does not rely on a $HOME value and creates a file in the guessed home directory of user yy.  Why does the fourth command fail? The intention is that it writes the same file, but relying on the $HOME variable belonging to user yy to ensure it actually does end up in her home directory. I don't understand why a login shell breaks the behaviour of a here-doc command passed in as a static single-quoted string. The failure of the fifth command verifies that this problem is not about variable substitution.  xx@host ~ $ sudo -u yy bash -c 'echo HOME=$HOME' HOME=/home/xx xx@host ~ $ sudo -iu yy bash -c 'echo HOME=$HOME' HOME=/home/yy xx@host ~ $ sudo -u yy bash -c 'cat &gt; /home/yy/test.sh &lt;&lt; "EOF" &gt; script-content &gt; EOF &gt; ' xx@host ~ $ sudo -iu yy bash -c 'cat &gt; $HOME/test.sh &lt;&lt; "EOF" &gt; script-content &gt; EOF &gt; ' bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOFscript-contentEOF') xx@host ~ $ sudo -iu yy bash -c 'cat &gt; /home/yy/test.sh &lt;&lt; "EOF" &gt; script-content &gt; EOF &gt; ' bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOFscript-contentEOF')   These commands were issued on a Linux Mint 18.3 Cinnamon 64-bit system, which is based on Ubuntu 16.04 (Xenial Xerus).  Update: The here-doc aspect is just clouding the issue. Here's a simplification of the problem:  $ sudo bash -c 'echo 1 &gt; echo 2' 1 2 $ sudo -i bash -c 'echo 1 &gt; echo 2' 1echo 2   Why does the first of those two commands preserve the linebreak and the second does not? sudo is common to both commands, yet seems to be escaping/filtering/interpolating differently depending on nothing but the "-i" option. Is there any scrappable junk I should hold on to that could otherwise be used for other purposes? Does it have or has? What should be in the sources.list for Kali Rolling Linux? This is exact content from my sources.list:  #  # deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free #deb cdrom:[Debian GNU/Linux 2016.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160830-11:29]/ kali-rolling contrib main non-free   I couldn't install the Synaptic package manager and was told to modify sources.list.  I googled a lot and added some repos into it and ran update and upgrade command only to see Kali crash... I had to recover it.  Please mention the exact content that should be there to ensure that Kali Linux works. How to Give Credit for An Answer in the Comments I asked a question on SO and someone gave me the answer as a comment to the question. Subsequently, someone else gave the same answer as an answer.  I would like to give credit to the poster who made the comment. Is there any way to do that?   Being new to the site, my only thought would be to contact the commenter and tell him to post an answer if he/she wants credit. Down Arrow Key is not working Should I use "who" or "that" when referring to an organisation? I generally use the rule of thumb of using who when referring to a person and that when referring to an object. Example:  Jim is someone who makes me smile. I was nearly knocked out by the ball that hit me.  But what about when we're talking about an organisation?  I am forever indebted to the charities who helped me. I am forever indebted to the charities that helped me.  The former seems somewhat warmer, if that makes sense, although the latter feels more correct. What should I use? And how about this:  I'm really happy with the insurance company who helped me with my claim. I can't stand them, they're the insurance company that ripped me off.  To me the former evokes a team of helpful people while the latter evokes a cold heartless corporate entity. Is this just a matter of style and so should go with my instincts, or should I aim for what is 'correct?' A groupoid is defined to be a category where every morphism is an isomorphism. So sometimes a group is said to just be a groupoid with one object.   When I try to make sense of this, I denote the single object as $G$. I view the morphisms as the analogue of "elements." The identity $1_G$ is the analogue of the usual identity $e$, we can compose any two morphisms since they are all arrows on $G$, and for any arrow $f$, we have some $f^{-1}$ such that $f\circ f^{-1}=f^{-1}\circ f=1_G$, so the idea of inverses is still there.  So I informally associate the elements of the group in the usual definition to be the arrows in the groupoid. But what does the sole object $G$ in the groupoid "correspond to" if I were to try to informally make sense of a group in the usual sense? Does it even correspond to anything? Since i upgraded to Ubuntu 15.04, if i click on the shutdown button it only logs out and i have to click again on the shutdown button (from the ubuntu login screen) to power off the pc. How can i fix this? Let's assume you have a table groups and a table item. Each item belongs to exactly one group. It is an inherent part of that group. An item cannot exist outside of a group and it cannot be moved to another group.  When trying to decide on a primary key for the item table, what should I use?  Should I make up an artificial global serial key like this:  CREATE TABLE items (     item serial PRIMARY KEY,     group integer NOT NULL REFERENCES groups(group), );   ... or should I rather use a composite key and per-group item serial like this:  CREATE TABLE items (     group integer NOT NULL REFERENCES groups(group),     item integer NOT NULL,      PRIMARY KEY(group, item) );   The reason why I'm leaning more towards the second solution is that the post URL will always show the group and item, so it makes sense to have both of them as the composite primary key. In case of the first solution, the URL contains superfluous information because the group ID can already be deduced from the item ID alone. The URL structure is given, however, and cannot be changed.  The disadvantage of the second solution is that you have to manage a per-group serial (i.e. each item integer should start from 0 for each group).  What's better in terms of best practices, normalization and performance? Or is it simply a matter of taste? What is meant by immutable? This could be the dumbest question ever asked but I think it is quite confusing for a Java newbie.    Can somebody clarify what is meant by immutable?  Why is a String immutable? What are the advantages/disadvantages of the immutable objects? Why should a mutable object such as StringBuilder be preferred over String and vice-verse?   A nice example (in Java) will be really appreciated. Citing papers, that are cited within a paper? I am reading a paper which discussing the change in a specific idea in a field of science over time. I would like to basically summarize the points in the paper but in a smaller fashion by taking some quotes and explaining how they relate to my situation.   For instance, in the paper I am reading the author said "in 2002, Stanley and Miikkulainen [SM02b] argued that the topology of a neural network also affects their functionality" where the tag [SM02b] is a reference to a entry in the author's bibliography.   Is it sufficient to only cite the author of the paper, or do I need to cite both the author of the paper and the author of the paper the author cited in the paper? What is the definition of "creature" and is it used consistently? Using round function in QGIS expression? I created a grid of rectangular polygons with the Create Grid function, from the Vector Creation group of the Processing Toolbox in QGIS 3.4.2. The rectangles measure half a degree of longitude by half a degree of latitude.    When I want to label the polygons, I write an expression that rounds the values of latitude and longitude attributes to 2 decimal places, since the attributes created in the grid brings many decimal places.    But the round function rounds the values badly.    I know that I can create new attributes that express the coordinates with fewer decimal places and label the entities based on those attributes, but I was struck by the behavior of the function. I expected it to round to the nearest value.    Does anyone know what the problem is that the round function wrongly rounds off the decimal number?    Attached screenshots of Source Fields and the Attribute Table. What lens focal length most closely resembles the perspective of the human eye? I've been to South Korea a few times already and always enjoy it but I've always had an onward ticket before.  Now I need to fly home from a trip that's lasted over a year, but I still want to take my time and keep my options open.  There's a good choice of cheap flights from Istanbul to Seoul and from Seoul I can't decide yet whether to fly straight home or take a ferry to China, hitchhike to Guangzhou, and get a cheap flight home from there.  I can't really just buy the China-Australia flight now because I'm not sure yet whether I'll be able to get the Chinese visa easily enough or how long my remaining money will last.  I know Korea, like most countries, has rules saying you need an onward ticket, but in my experience many countries never try to verify that you have this ticket unless you fit some profile. So in this instance I would find first-hand knowlegde much more informative that pointers to a government website.  In practice does South Korea admit tourists with one-way tickets? How to align floating point variables in Latex3 I would like to have the variables (defined in Latex3) aligned in a table with the decimal point. Of course, without using the &quot;trial and error&quot; extra space &quot;,&quot;. Is there any possibility? Thank you very much. \documentclass{article} \usepackage{xparse} \usepackage[version=4]{mhchem}  \usepackage{siunitx,booktabs}  % \ExplSyntaxOn \NewDocumentCommand{\calcnumd}{o m}   {\IfValueTF{#1}      {\num[round-mode = figures, round-precision = #1, round-integer-to-decimal]{\fp_to_decimal:n{#2}}}      {\num{\fp_to_decimal:n{#2}}}   } % data \fp_set:Nn \dhfbiox {33.18} \fp_set:Nn \dhftetrox {9.16} \fp_set:Nn \dgfbiox {51.31} \fp_set:Nn \dgftetrox {97.89} \fp_set:Nn \cpbiox {37.20} \fp_set:Nn \cptetrox {77.28} % calculations % \ExplSyntaxOff % \begin{document}  \begin{center} \begin{tabular}{l|ccc}    &amp; $\Delta_f H^{\ominus}$ &amp; $\Delta_f G^{\ominus}$ &amp; $C_P$ \\    &amp; \si{\kilo\joule\per\mole} &amp; \si{\kilo\joule\per\mole} &amp; \si{\joule\per\kelvin\per\mole} \\ \midrule \ce{NO2} &amp; \calcnumd{\dhfbiox} &amp; \calcnumd{\dgfbiox} &amp; \calcnumd[4]{\cpbiox} \\ \ce{N2O4} &amp; \,\,\,\calcnumd{\dhftetrox} &amp; \calcnumd{\dgftetrox} &amp; \calcnumd{\cptetrox} \\ \bottomrule \end{tabular} \end{center}  \end{document} How is the zero flag set in terms of hardware?