z flag for head command in centos 7
How can I execute an equivalent of `head -z` when I don't have the `-z` option available?
tikz trees: How to not draw a single edge System.currentTimeMillis() vs. new Date() vs. Calendar.getInstance().getTime() In Java, what are the performance and resource implications of using  System.currentTimeMillis()    vs.   new Date()    vs.   Calendar.getInstance().getTime()   As I understand it, System.currentTimeMillis() is the most efficient. However, in most applications, that long value would need to be converted to a Date or some similar object to do anything meaningful to humans. DOM event precedence What order of precedence are events handled in JavaScript?  Here are the events in alphabetical order...   onabort - Loading of an image is interrupted onblur - An element loses focus onchange - The user changes the content of a field onclick - Mouse clicks an object ondblclick - Mouse double-clicks an object onerror - An error occurs when loading a document or an image onfocus - An element gets focus onkeydown - A keyboard key is pressed onkeypress - A keyboard key is pressed or held down onkeyup - A keyboard key is  released onload - A page or an image is  finished loading onmousedown - A mouse button is  pressed onmousemove - The mouse is moved onmouseout - The mouse is moved off  an element onmouseover - The mouse is moved  over an element onmouseup - A mouse button is  released onreset - The reset button is  clicked onresize - A window or frame is  resized onselect - Text is selected onsubmit - The submit button is  clicked onunload - The user exits the page   What order are they handled out of the event queue?  The precedence is not first-in-first-out (FIFO) or so I believe. If I want to draw an overline over some text, not an equation, how can I do it? \overline seems to only work in math mode, and when used outside of math mode, it automatically says "Missing $ inserted". $_POST vs. $_SERVER['REQUEST_METHOD'] == 'POST' If I buy a game from PSN on ps3 Is it permanently mine? tar compression without directory structure How to adjust the gap between figure and caption within the same subfloat My question is:  How to adjust the gap between figure and caption within the same subfloat  Not the gap between two subfloat.  For the following example:  \begin{figure}     \centering     \subfloat[A]{\includegraphics[ scale=0.5]{images/a.jpg}}     \vspace{-10pt}     \subfloat[B]{\includegraphics[scale=0.5]{images/b.jpg}}     \vspace{-10pt}     \caption{}\label{fig:online_test} \end{figure}   I got the following figure:    The sub-caption of (a) is too close to the sub-figure B. I hope the caption (a) to stay closer to sub-figure A. How can I adjust the space between the caption and figure within a subfloat?  Thank you all for helping me and I would prefer a solution for subfloat, instead of using other packages. But I would also appreciate a solution of using other packages.   I know my question looks similar to . But please make it clear. I'm asking for how to adjust the gap between figure and caption within a subfloat, not the gap between two subfloat. That is, the gap between the caption "a" and the figure "A"  Thank you. How can I create launchers on my desktop? In older versions it was easy to create a launcher on my desktop. All I had to do is right click on my desktop and select the "create launcher" option.  How can I create such launchers now? Why are my render times 30+ minutes, but other people's are ~3 minutes? I am currently using Sheep It! to render my blend (built on v2.68c) on multiple computers, and I noticed something rather strange. According to the log on-site, the frames rendered from other people's blends were completing in 3 to 4 minutes. This was on an 4 core i5. My main rig (with an 8 core i7) was completing frames in no less than half an hour. How is this possible?  To clarify, these people's frames are very complex, often with very detailed textures. I have 2 objects in my blend. Below are the options I changed for my blend:   Aspect Ratio: 1000px x 1000px Output: PNG Clamp Indirect: 0.98 Render Sampling: 128 Min Light Bounces: 0 Max Light Bounces: 4 Cycles Render   Is there something in there that I should change to make it go faster? I can't really comprehend how it's going to quickly.  EDIT: To answer what @Duarte asked...   System Specs: i7-920, 3GB DDR3, GT 630, Windows 10 I have two circles, extended to form a sort of coin with a star on it. It is not complex at all. I have Firefox and Steam running in the background, but not actively. I've been away from the computer for 8 hours and noticed this behavior. (I am running Blender from Steam.) I made sure when I began rendering that the blend was set for CPU rendering.          And to answer what @pycoder asked, yes, I am using Cycles Render. Ways to Install and uninstall programs in deb format How can I convert raster (stream segments result of a watershed analysis) to vector polylines, preferably shapefile. In ArcGIS this is easily acomplished with the Raster to Polyline tool.  I only see Polygonize (Raster to Vector) tool under the Raster -> Conversion menu. Prove $\lim_{x\to0}\sqrt{4-x}=2$ using the precise definition of limits. (Epsilon-Delta) Variable with colon dash ${VAR:-} LaTeX errors in Formatting I want to print this text :  make -j 5 KDEB_PKGVERSION=1.yourcustomname deb-pkg  But I feel because of the underscore , LaTeX generates an error missing $ inserted and it doesn't print it as well.  Secondly, In the \fbox{} , I wanted to print the two texts on the next line(i.e) one text per line , so I used \ and even \par but it doesn't seem to work and I would like to align the (or) as well.   \fbox{\texttt{uname -a}\\(or) \texttt{cat /proc/version}}   Here is my full source code:  \documentclass[12pt]{article} \author{Subham Soni S.} \date{\today} \title{Compiling and Installing a Kernel 3.13.3 On Ubuntu, Debian and its Derivatives} \begin{document} \maketitle To replace the existing \textsl{kernel} with a new one, do the following: \begin{enumerate} \item Create a folder named \emph{kernel} in the home directory. \item Download the latest kernel to the folder from  \texttt{www.kernel.org}. \item Extract the file. \item In the terminal, type the following command to \textbf{install the neccesary tools to compile the kernel}:   \begin{center}     \fbox{\texttt{sudo apt-get install gcc libncurses5-dev dpkg-dev}}   \end{center} \item Enter the directory of the extracted kernel source   \begin{center}     \fbox{\texttt{cd kernel} \par \texttt{cd linux-3.13.3}}   \end{center} \item Configure the kernel   \begin{center}     \fbox{\texttt{make menuconfig}}   \end{center}   In this menu you can customize your kernel \item Save and exit \item Compile the kernel   \begin{center}     \fbox{\texttt{make -j 5 KDEB_PKGVERSION=1.yourcustomname deb-pkg}}   \end{center}   \emph{This process might take a while...} \item Install the kernel   \begin{center}     \fbox{\texttt{sudo dpkg -i ../linux*.deb}}   \end{center} \item Reboot   \begin{center}     \fbox{\texttt{sudo reboot}}   \end{center} \item Run the following commands to check the kernel version   \begin{center}     \fbox{\texttt{uname -a}\\(or) \texttt{cat /proc/version}}   \end{center} \item You can easily uninstall the kernel with the command:   \begin{center}     \fbox{\texttt{sudo apt-get purge linux-image-3.13.3 linux-image-3.13.3-dbg}}   \end{center} \end{enumerate} \end{document} Choosing the best model from among different "best" models How do you choose a model from among different models chosen by different methods (e.g. backwards or forwards selection)?  Also what is a parsimonious model? Set active image node with python There's any way to change it directly by Python, or there's any way to set by Python what node image is the active to display in viewport (Textured) and bake? Applied modifiers are not visible Proving set of interiors is open Artinian affine $K$-algebra