Sed delete empty lines after a particular line number I am trying to delete all empty lines after line number 3, till the end of  the file: cat ${File} 1  2 3   4  5  5    6 7    8 9   sed -e '3,${s~^$~~g}' ${File} 1  2 3   4  5  5    6 7    8 9   Observation:  No change in the output. Desired Output 1  2 3 4 5 5 6 7 8 9  Any Suggestions?
How to delete blank lines starting from line 5 I have this:  sed -i '/^$/d' temp_spec.rb   which is stripping blank lines and works well.  How can I make it only do this for lines 5-999 (or ideally 5 to end-of-file).  I tried:  sed -n5,999 -i '/^$/d' temp_spec.rb sed '5,999!d/^$/d' temp_spec.rb   but neither worked (no errors).
As far as I know, the diamond symbol is given to the folks who  are the community elected moderators, for example,  are employees of the Stack Exchange, Inc., for example,   In those regards,  is neither a , nor is he a part of the  since March 1st, 2012. So my question is, other than the fact that he is the , is there any other reason why he still has the diamond symbol next to his name and whether he can still exercise his moderation abilities? :) Note: I do not have any problems with him having the Diamond Symbol. I just wanted to know the reason and whether he still has those privileges or not. In fact, I'd be very happy to know that he still has those privileges because, you know, he knows the site, the Best. :) Note: as of October 2017, . On the  it is mentioned that it is not a Cayley graph.    How it this proved? Honestly I don't even know how to start this. The only criteria I can think of is that all vertices must have the same degree. Also the degree being odd should imply that one generator of the group has order 2. But then how do I proceed?  Edit: As already mentioned in the comments, the link did not answer my question. Do I add quotes around my thoughts? He staggered in, late as usual, his hair this way and his collar the other. His socks were as mismatched as were his principles. I thought to myself, here comes yet another disastrous sales meeting.  It seems to me too much to write :     I thought to myself 'Here comes yet another disastrous sales meeting'.   The Authorised Version deliberately did away with punctuated speech, retaining only the capital to indicate the beginning of a quote but leaving out quotation marks.  Can I therefore do the same in common writing, for my thoughts ?     I thought to myself, Here comes yet another disastrous sales meeting.   I cannot find another question on EL&amp;U which covers this. Problem with pstricks and htlatex/tex4ht Consider the following MWE:  \documentclass{article} \usepackage{pst-all}  \begin{document}   \begin{pspicture}(0,-3)(12,5)       \psline[linewidth=2pt]{-&gt;}(1.5,0)(0,0)   \end{pspicture} \end{document}   This compiles fine with latex (not with pdflatex) but when run with htlatex it leads to the ghostscript error:  System call: dvips -E -q -Ppdf -f q.idv -pp 2 &gt; zzq.ps System return: 0 System call: gs -sDEVICE=pngalpha -sOutputFile=q0x.png -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zzq.ps -c quit Error: /configurationerror in --setpagedevice-- Additional information: [/PageSize [0 0]] Operand stack:    --nostringval--   (%%BoundingBox: 72 72 72 72)   --dict:1/2(ro)(G)--   --nostringval--   --nostringval--   (%%BoundingBox: 72 72 72 72)   1   72   72   false   --dict:1/1(L)-- Execution stack:    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1951   1   3   %oparray_pop   1950   1   3   %oparray_pop   --nostringval--   1934   1   3   %oparray_pop   1820   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   %ztokenexec_continue   (scanner state)   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   1913   10   3   %oparray_pop   --nostringval--   --nostringval--   --dict:1/10(L)--   --nostringval--   15   %dict_continue Dictionary stack:    --dict:1190/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)-- Current allocation mode is local Last OS error: Invalid argument Current file position is 169 GPL Ghostscript 9.16: Unrecoverable error, exit code 1 --- Warning --- System return: 256 Entering q.css Entering q.tmp   This code used to work fine. From other examples I suspect that the problem has something to do with dvips having trouble determining the bounding box for the image (compare with  -- although the solution given here, of using separate files for each image, is not a viable solution for me), but I have not been able to work out what the problem is.  Does anyone have any ideas? How does the system determine which one close reason should be displayed on a closed question, given the close votes? When voting to close a question, it's possible for users to vote for any close reason, even if others have voted for different reasons. However, in the end, once the question reaches five close votes for any reason, only one of those reasons can be displayed.  How does the system determine which one close reason to display, given the votes made by users? Suppose $m_1, m_2, m_3,\ldots, m_k &gt; 1$ and not necessarily pairwise relatively prime. Also $a_1, a_2,\ldots, a_k\in\Bbb Z$. What can we say about the solutions of the following congruence equations: $\begin{align*} x&amp;=a_1\mod m_1\\ x&amp;=a_2\mod m_2\\  &amp;\phantom{1}\vdots\\ x&amp;=a_k\mod m_k \end{align*}$ I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "&lt;Regex for 'doesn't contain hede'&gt;" input   Desired output:  hoho hihi haha Per-chapter bibliographies in biblatex I'm really new in using biblatex, compile the sample placed in , but what I get is    1.1 Foo    Some text [B02x ].    1.2 Bar    Some text [B02y ].   Do not get the bibliography by chapters, or the global references.  Really not remains to be done   \documentclass{report}  \usepackage[style=alphabetic]{biblatex}  \addbibresource{references.bib}  \begin{document}  \chapter{First chapter}  \section{Foo}  Some text \cite{childs_temperature}.  \printbibliography  \chapter{Second chapter}  \section{Bar}  Some text \cite{hashemian}.  \printbibliography  \newpage  \printbibliography  \end{document}   And the references.bib    @BOOK{childs_temperature,   title = {Practical Temperature Measurement},   publisher = {Butterworth - Heinemann},   year = {2001},   author = {Childs, Peter R N},   address = {Great Britain},   edition = {1},   isbn = {0 7506 5080 X}   }    @PHDTHESIS{hashemian,   author = {Hashemian, Hashem Mehrdad},   title = {Measurements of dynamic temperatures and pressures in nuclear power plants},   school = {{The University of Western Ontario}},   year = {2011},   type = {PhD {T}hesis}   }   I need to obtain references by chapter and global cited references, but i don't know how compile. Mysql: Select rows from a table that are not in another i am finding nowhere a solution I am running UBUNTU 12.04 and using GNOME desktop, which I installed additionally. Logging into classic GNOME I see the following:     WHAT is this "earth globe" icon coming from?Seems to be named "starter". It is configured to open a website, from my bookmarks. WHY is it not showing the TIME?   Using dconf-editor I had no luck in answering the above questions.  Any idea? What's the difference between "uname -r" and "uname -v"? Understanding shape and calculation of confidence bands in linear regression I am trying to understand the origin of the curved shaped of confidence bands associated with an OLS linear regression and how it relates to the confidence intervals of the regression parameters (slope and intercept), for example (using R):  require(visreg) fit &lt;- lm(Ozone ~ Solar.R,data=airquality) visreg(fit)     It appears that the band is related to the limits of the lines calculated with the 2.5% intercept, and the 97.5% slope, as well as with the 97.5% intercept, and the 2.5% slope (although not quite):  xnew &lt;- seq(0,400) int &lt;- confint(fit) lines(xnew, (int[1,2]+int[2,1]*xnew)) lines(xnew, (int[1,1]+int[2,2]*xnew))     What I don't understand are two things:   What about the combination of 2.5% slope &amp; 2.5% intercept as well as 97.5% slope and 97.5% intercept? These give lines that are clearly outside the band plotted above. Maybe I don't understand the meaning of a confidence interval, but if in 95%  of the cases my estimates are within the confidence interval, these seem like a possible outcome? What determines the minimum distance between the upper and lower limit (i.e. close to the point where the two lines added above intercept)?    I guess both questions arise because I don't know/understand how these bands are actually calculated.   How can I calculate the upper and lower limits using the confidence intervals of the regression parameters (without relying on predict() or a similar function, i.e. by hand)? I tried to decipher the predict.lm function in R, but the coding is beyond me. I'd appreciate any pointers towards relevant literature or explanations suitable for stats beginners.  Thanks. Using "of" or apostrophe, which is more common? I have a media server (Windows 8) located in a very inconvenient part of my house. Occasionally I will have to reset my router or it will reset itself. The issue is the PC loses connectivity for some reason, and I am forced to walk outside, around the house, into the basement, over a bunch of toys and weights and boxes, to push a button to reboot it.  I would love to have it check itself every 5-10 minutes and auto reboot if it is unable to ping a given address/IP.  Any ideas how to accomplish this? Shut down computer from keyboard Is there a keyboard shortcut available to shutdown the computer?  I know I can use the Power button, but I would like to be able to it from the keyboard.  If such a shortcut does not exist already, how do I set one? Got less output with print0 option on find? I have read the man page and other references, but I am still confused by the behavior of find with -print0 option.  -print0      This primary always evaluates to true.  It prints the pathname of              the current file to standard output, followed by an ASCII NUL              character (character code 0).   First command:  $ find /some/path/ -iname "*intro*jpeg" -o -iname "*intro*jpg" 2&gt; /dev/null /some/path//asdf199Intro-5kqlw.jpeg /some/path/199intro-2jjaj.JPEG /some/path/199intro-3.jpg /some/path/wuer199intro-4.JPG /some/path/xbzf199INTRO-1.jpg   Second command:  $ find /some/path/ -iname "*intro*jpeg" -o -iname "*intro*jpg" 2&gt; /dev/null -print0 /some/path/136intro-3.jpg/some/path/wuer136intro-4.JPG/some/path/xbzf136INTRO-1.jpg   I can see that the the filenames from the second command are null character separated, but why do I get 3 output as opposed to 5 above? How to encrypt in VBScript using AES? I am looking to encrypt some data using  in  using a specific key and  value. Are there any good function libraries or COM components that would be good to use?  I looked at ; it allows a passphrase only, and won't allow setting specific key and IV values. The Public Platform team is continuing to work towards  and we’re here today to announce a new onboarding experience for the review queues. In the  (), we learned that each queues’ instructions could be easily misinterpreted and additional information was difficult to find. Without proper guidance or context, new reviewers would contribute inconsistent reviews and risk having their review privileges suspended. With this release, our goals were to 1) better highlight the review privilege and 2) provide upfront instruction and guidance for successful reviewing. New privilege announcements Community moderation is a significant aspect of Stack Overflow and the Stack Exchange sites. We want users to be aware and familiar with this newly earned privilege, but also celebrate the opportunity to contribute to the community in a unique way.  Many users were discovering the review queues by chance. Once the privilege is earned, a new review queue icon with a red alert would appear in the top-right part of the navigation. We are adding a popover to bring more attention to this easy-to-miss icon. We will also be adding notices for when users earn access to other, higher reputation queues. Additionally, new reviewers will also receive an email notification about the newly earned privilege. They will only get the email if they earn the privilege and don't perform a review within 24 hours (anyone who doesn't want to receive email notifications like this can visit their  and turn off &quot;Tips and Reminders&quot;). We are also showing a popover to users who earned access to review queues in the past, but have never done a review or haven't reviewed in the last 30 days. This popover is only appearing for the next 90 days. The goal is to engage users who may not have interacted with the queues since we made  and . Welcome banner  If a reviewer clicks “Learn more” on the on-page popover or goes to the review queue home page (/review), they’ll be greeted with an onboarding message with general information about the review queues. Informational modals  Queue-specific modals will appear upon page load as you visit each queue. They summarize and highlight important aspects and tips about reviewing in a particular queue. This information can be revisited at any time by clicking “Learn more” under the page header. Feedback As always, please leave your feedback and any bugs you may discover related to this release below this post. We will be monitoring this post for the next few weeks (May 4, 2021). After May 4th, please report any further issues as new questions. How to enable bullet points when using the presento beamer theme? I have the problem that when I use an itemize list and the , there are no bullet points.  Here is a minimal working example (requires the  not available on CTAN to be downloaded first):  \documentclass{beamer} \usepackage{config/presento} \begin{document} \begin{frame} \begin{itemize} \item ... \item ... \item ... \end{itemize} \end{frame} \end{document}     How to fix this problem? I am confused by the behaviour of Currency fields in Multi-Currency environments. My app does a calculation on day X and stores its result in a record.  The custom page which displays a SUM of those values should always display the same as a database query. But...it does not. If I change Exchanges Rates those values change.  Was it wrong to store currency values in a Currency field, am I querying incorrectly or do I need to display a values that is manually calculated?  How does Multi-Currency and Currency fields work together? When are currency values converted and which conversion rate is taken into account?  I am confused?!