I have a few tasks in the pending at job queue,   $ atq 28  Wed Oct 31 10:23:00 2018 27  Tue Oct 30 21:20:00 2018 25  Tue Oct 30 21:19:00 2018 26  Tue Oct 30 21:20:00 2018 20  Tue Oct 30 18:25:00 2018 30  Wed Oct 31 10:59:00 2018 32  Wed Oct 31 21:03:00 2018 23  Tue Oct 30 18:28:00 2018 31  Wed Oct 31 13:58:00 2018 19  Tue Oct 30 15:43:00 2018 21  Tue Oct 30 18:27:00 2018   I'd like to get the job number and remove them  $ atq | awk '{print $1}' 20 30 32 23 31 19 21   However, it did not work as intended  $ atq | awk '{print $1}'| atrm ; atq 20  Tue Oct 30 18:25:00 2018 30  Wed Oct 31 10:59:00 2018 32  Wed Oct 31 21:03:00 2018 23  Tue Oct 30 18:28:00 2018 31  Wed Oct 31 13:58:00 2018 19  Tue Oct 30 15:43:00 2018 21  Tue Oct 30 18:27:00 2018   I solved the problem with command substituion   $ atrm $(echo "$(atq | awk '{print $1}')")   Why pipeline not perform as expected to atrm?
I have a series of pending jobs in the queue,   $ atq 8   Mon Oct 29 13:21:00 2018 5   Mon Oct 29 10:36:00 2018 15  Mon Oct 29 13:31:00 2018 4   Mon Oct 29 10:35:00 2018 18  Mon Oct 29 15:55:00 2018 3   Mon Oct 29 10:31:00 2018 16  Mon Oct 29 15:54:00 2018 11  Mon Oct 29 13:24:00 2018 12  Mon Oct 29 13:24:00 2018 17  Mon Oct 29 15:53:00 2018 10  Mon Oct 29 13:23:00 2018 19  Tue Oct 30 15:43:00 2018 2   Mon Oct 29 07:41:00 2018 6   Mon Oct 29 10:41:00 2018 7   Mon Oct 29 13:20:00 2018 9   Mon Oct 29 13:22:00 2018   and plan to remove them job on Oct 29. Fortunately, atrm could remove multiple jobs  atrm 8 5 15 4    despite this, a iteration might be a better solution,   $ atq | grep "Oct 29" 18  Mon Oct 29 15:55:00 2018 3   Mon Oct 29 10:31:00 2018 16  Mon Oct 29 15:54:00 2018 11  Mon Oct 29 13:24:00 2018 12  Mon Oct 29 13:24:00 2018 17  Mon Oct 29 15:53:00 2018 10  Mon Oct 29 13:23:00 2018 2   Mon Oct 29 07:41:00 2018 6   Mon Oct 29 10:41:00 2018 7   Mon Oct 29 13:20:00 2018 9   Mon Oct 29 13:22:00 2018   How could I select the first field of the job number so as to iterating them?
\includegraphics: Dots in filename \includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of course, complains about an unknown graphics extension.  This is annoying as I very often have filenames that contain parameter values, e.g. plot_a0.4_b0.6.pdf.  Is there a way to teach LaTeX to interpret only the string behind the last dot as extension? Some questions might be asked on three different sites, each site needing three different answers. For example, a question about a text editor.  So perhaps there should be a way to link the questions on the three different sites. Adding a link manually in the questions is certainly possible, but perhaps a feature officially supporting this will be beneficial. Do "owed" and "due" mean the opposite? How can I get the list of available databases on a SQL Server instance? I'm planning to make a list of them in a combo box in VB.NET. All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when...   just one program stops responding? nothing at all responds to mouse clicks or key presses? the mouse stops moving entirely? I have an    In what order should I try various solutions before deciding to pull the power plug?  What should I do when starting up Ubuntu fails?  Is there a diagnostic procedure I can follow? Who provides the Internet service to Internet Service Providers (ISPs)? I've been wondering recently about how the infrastructure of the Internet really works.    I know that I have an Internet Service Provider (ISP) that supplies my connection to the Internet.   But what I don't know is: Who provides the Internet to the ISP?  And who supplies it to them? Is there a never-ending loop that eventually connects us all together? Original file claudio antonio claudio michele  I  want to change only the first occurrence of &quot;claudio&quot; with &quot;claudia&quot; so that I would get the following: claudia antonio claudio michele  I have tried the following: sed -e '1,/claudio/s/claudio/claudia/' nomi  The above command performs global substitution (it replaces all occurrences of 'claudio') . Why? Visual Studio - How to change the return value of a method in the debugger? When I'm debugging, I often have to deal with methods that does not use an intermediate variable to store the return value :     private int myMethod_1()    {       return 12;    }     private int myMethod_2()    {       return someCall( someValue );    }   Well, in order to recreate a bug, I often have to change values on the fly. Here, I could want to see what happens when myMethode_1 return zero. Same thing for myMethod_2.  Is there a way to do that without modifying the code ? What I would like to do, it's to place a breakpoint on the return line (or on the closing bracket) and type-in a new return value.  Note : I'm using Visual Studio 2005 and Visual Studio 2008.  Thank ! Conditionals in English are usually formed by using if with normal word order; but for the three past (subjunctive) forms were, should, and had, it is also possible to express the conditional through subject–auxiliary inversion alone, with no if in the conditional clause.  Does forming conditionals in this manner differ semantically from if-conditionals? Is some aspect of the conditional statement or the conditionality emphasised more in one version than in the other? Or are there differences in how and when they are used? Or are they simply completely interchangeable?  For example:     If I were you, I would try it again   Were I you, I would try it again      If I had seen it, I would have told you   Had I seen it, I would have told you      If you should drink, don’t get behind the wheel   Should you drink, don’t get behind the wheel In a perfect world, the so-important advice "do not reinvent the wheel" would be extensively followed. In practice, everyday millions of wheels are reinvented simply because someone didn't know an existing solution for a specific problem. The best way to find a library, today, is googling it, but it's not always obvious which keywords to use. The lack of a tool for finding solutions is very counterproductive for the dev world as a whole. Stack Overflow is not very receptive for recommendation threads. So what about a new SE for it? Is there any general and systematic way of reducing the higher order linear ODE to a system of first order ODE?  For example, assume we have $a_3x^{(3)}+a_2x^{(2)}+a_1x^{(1)}+a_0x=0$, then how do we convert this into matrix form(a system of first order ODE). And after we solve the system of equation, how to combine them into our final solution $x(t)$?  Thanks for helping me out! How do you persuade an organization to value UX? UX is such an underrated field in a lot of industries. I wonder how companies consider employing UX designers and even heavily valuing their suggestions. Some big companies happen to see the light and invest in UX, and that keeps them on top of others. However, UX people rarely make it to the top management. In Don Norman's talk (  ), out of so many UX people (I don't know exactly), only two were vice presidents. I assume that there are even less influential UX designers in developing countries, and that's what makes it even harder for people like me. In the same talk, Don Norman suggested that UX designers should approach their executives like marketing people, showing how investing in something will affect profit. Perhaps, it's the best thing to do but it has to be mastered for it to be executed successfully.   I'm a fresh grad and am looking for a job. I think, working for a company with a more conventional job description would be the way to go. When I'm already influential enough, I'll go up to the executives and show them how UX will improve sales (in whatever industry it is. I just want to do UX)  Do you do UX as consultants or are you employed? How do you persuade companies to invest in UX? Are you lucky enough to be employed by people who you didn't have to persuade to value UX? Resistor circuit that isn't parallel or series From time to time, I need to typeset Welsh. Sometimes, I need to typeset citations and bibliographies in Welsh. I think that last time I did this, I may still have been using BibTeX although I am honestly not sure. In any case, my entire work-flow now uses biber and biblatex...  I found  on changing the names of things, including the names of things used by biblatex. However, that cannot deal with the case of an unsupported language.  Suppose that I want to typeset a document in Welsh:  \documentclass[a4paper,welsh]{article}  \usepackage{babel} \usepackage[utf8]{inputenc}% welsh needs utf8x but biblatex doesn't like it \usepackage[T1]{fontenc}% not great for Welsh but the best pdfTeX can do \usepackage{csquotes}% doesn't like Welsh though biblatex likes csquotes on account of babel... \usepackage[backend=biber]{biblatex} \bibliography{biblatex-examples}  \title{Fy Nogfen} \author{Rhywun}  \begin{document}   \maketitle   \tableofcontents   \section{Cyntaf}   \autocite{westfahl:space}    \printbibliography  \end{document}   There are multiple problems in such a case. (One is that I need utf8x but can't use it on account of biblatex. Another is that I need utf8x at all. Another is that biblatex likes csquotes but csquotes doesn't do Welsh. But these are irrelevant to this question.)  The output is as follows:    Note that the use of the English citation is just so this is easy to reproduce. Obviously, the content of the reference might well be in Welsh. (Though it might be in English, too.)  As can be seen, while elements of the document controlled by babel are handled correctly, those under the control of biblatex are not. However, I cannot simply modify the solution offered by lockstep for changing strings to customised English variants. That is, I can't just use a Welsh version of  \DefineBibliographyStrings{english}{%   bibliography = {Works Cited},   references = {Works Cited}, }   because biblatex has never heard of it.  What is the most appropriate way to configure biblatex for use with an unsupported language? Save Illustrator as PDF with transparent background Given a file L with one non-negative integer per line and text file F, what would be a fast way to keep only those lines in F, whose line number appears in file L?  Example:  $ cat L.txt 1 3  $ cat F.txt Hello World Hallo Welt Hola mundo  $ command-in-question -x L.txt F.txt Hello World Hola mundo   I'm looking for a command that can handle a file L with 500 million or more entries; file L is sorted numerically.  Note: I'm halfway through an implementation for a command-in-question but I just wondered, whether one might be able to use some Unix tools here as well.    Update: Thank for all the answers, I learned a lot today! I would like to accept more one answer, but that's not possible. Can I use images rendered with blender for commercial use? If I make a scene and then render it with BR or Cycles, am I allowed to use that image in a commercial project? Do I need to include any copyright notice or license? How to use unnumbered chapters with KOMA-script? I am having some issues with the hyperref package. I would like to create a Introduction chapter without a number so I use \chapter*{Introduction} and \addcontentsline{toc}{chapter}{Introduction} because I want it in the table of contents (see example).  But then the link in my PDF viewer gets it wrong and also the automatically created header is no longer correct (see picture). The table of contents shows the right page number (p.1) but the link is also wrong.   What is my mistake here?  \documentclass{scrbook}  \usepackage{hyperref} \usepackage{blindtext} \usepackage{glossaries}   \makeglossaries  \newacronym{eg}{e.g.}{% for example }   \begin{document}   \frontmatter  % abstract before the table of contents \chapter*{Abstract} \addcontentsline{toc}{chapter}{Abstract} \blindtext  \tableofcontents  % chapter with acronyms \cleardoublepage \phantomsection  \printglossary[type=\acronymtype] \addcontentsline{toc}{chapter}{Glossary}  \cleardoublepage \mainmatter   \phantomsection % \chapter{Introduction} % with this everything is correct but I don't want the number \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction}  \blindtext  \pagebreak  \blindtext  % first chapter \chapter{Chapter1}  \gls{eg} \blindtext  \pagebreak  \blindtext   \end{document} Do I have to recompile my application when I upgrade a third party jar? (exercise from Tao's analysis book) Proof of a lemma relating to power set of X I'm stuck at one exercise from chapter of sets from Terence Tao's analysis book. I need to proof the lemma:  Lemma: Let $X$ be a set. Then the set $\{Y : Y \:\text{is a subset of}\: X\}$ is a set.  Note: The set $\{Y : Y \:\text{is a subset of}\: X\}$ is known as the power set of $X$, defined as  $2^X $  I can understand why the lemma is true, but I have no clue how to prove it. Furthermore, the author gave a hint that I found very confusing, it follows:  Hint: start with the set $\{0, 1\}^X$ and apply the replacement axiom, replacing each function $f$ with the object $f^{-1}(\{1\})$.