After creating the admin user on a new build server, I create the builder user via the command-line using Ansible. gitlab-runner is installed via brew and a launch daemon plist starts the service  automatically as the builder user. Unfortunately, gitlab-runner hangs when git fetching changes until I manually log-in the builder user account via Remote Desktop one time and click through the first-time setup of the user account. After the initial login, you can logout, reboot and everything just works after that.  Since I have a workaround of logging in the first-time through the GUI to complete the setup of the builder user is there a way to get the macOS Mojave to do whatever it does during the first login via the command-line?  gitlab-runner.plist  For completeness, I'm providing the /Library/LaunchDaemons/gitlab-runner.plist file  &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist version="1.0"&gt;   &lt;dict&gt;     &lt;key&gt;SessionCreate&lt;/key&gt;&lt;true/&gt;     &lt;key&gt;KeepAlive&lt;/key&gt;&lt;true/&gt;     &lt;key&gt;RunAtLoad&lt;/key&gt;&lt;true/&gt;     &lt;key&gt;Disabled&lt;/key&gt;&lt;false/&gt;     &lt;key&gt;Label&lt;/key&gt;     &lt;string&gt;gitlab-runner&lt;/string&gt;     &lt;key&gt;UserName&lt;/key&gt;     &lt;string&gt;builder&lt;/string&gt;     &lt;key&gt;GroupName&lt;/key&gt;     &lt;string&gt;staff&lt;/string&gt;     &lt;key&gt;ProgramArguments&lt;/key&gt;     &lt;array&gt;       &lt;string&gt;/usr/local/opt/gitlab-runner/bin/gitlab-runner&lt;/string&gt;       &lt;string&gt;run&lt;/string&gt;       &lt;string&gt;--working-directory&lt;/string&gt;       &lt;string&gt;/Users/builder&lt;/string&gt;       &lt;string&gt;--config&lt;/string&gt;       &lt;string&gt;/Users/builder/.gitlab-runner/config.toml&lt;/string&gt;       &lt;string&gt;--service&lt;/string&gt;       &lt;string&gt;gitlab-runner&lt;/string&gt;       &lt;string&gt;--syslog&lt;/string&gt;     &lt;/array&gt;   &lt;/dict&gt; &lt;/plist&gt;
How do you make a script or app to run or stop running automatically when the system is booted, a user logs on, at a specific time, when a disk is attached, etc.?
The number of solutions to an $n^{th}$ order differential equation. For an $n$th order differential equation, why are there always $n$ solutions? Why exactly $n$, not $n - 1, n+1$ or infinite many?    Addendum by LePressentiment :   This is motivated by P176 on Strang's Intro to Lin Alg, 4th Ed. An $n$th order differential equation, how many basis functions does it have? I'd guess $n$, because the diffl eqn have $n$ linearly independent solutions (predicated on Julián Aguirre's answer), all of which look to span the nullspace/solution space of the homogeneous ODE. I would be happy to get some hints on the following integral: $$ \int_0^1\frac{x^{19}-1}{\ln x}\,dx $$ I have recently created a logo. I have seen an online trend of showing off a logo in a realistic environment, illustrating possible use cases of the logo.  An example of this can be seen here, with the original logo at the bottom and a 3D mockup at the top:    How can I create such a mockup? Why my sql query run faster than my stored procedure? I am trying to write a script in MYSQL Workbench to update my database every day using stored procedure but I find it too slow compared normal query or temporary tables. If i use temporary table the time of execution : 6 second but my stored procedure 370 second.  I really need help.        CREATE DEFINER=`datasll`@`...` PROCEDURE `product`()       BEGIN       EXPLAIN SELECT                cs.id,              cs.fk_c,              cs.so,               cs.pr,              cs.date,              cs.o_p,              cs.sh_c,              cs.x,              LEFT(cs.x,2),              cs.doc,              cs.fk_op,              cc.id_c_c,              cc.name,              cc.descrip,              left(cc.n_o,3) as bon,              cc.fk_c_br,              cc.de,              cc.m_mat,              cc.color,               cc.fk_c_s       FROM             data_pro.catas cs        LEFT OUTER JOIN             data_pro.c_co cc ON  data_pro.cs.fk_c_c = data_pro.cc._id_cc       WHERE             data_pro.cc.pap = 1       AND   data_pro.cc.stati = 'b';       END   When i use EXPLAIN this's the result :   Many Thanks for any help. How to change color for a block of texts? 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? Does encrypting my home folder make my computer more secure? Do I have to enter my password more if my home folder is encrypted? What else should I know about encrypting my home folder? A simple stupid question that I should already know the answer to:  Is this true: $\left|z^5\right| = \left|z\right|^5$ where z is a complex number with a non-zero imaginary component.  Thanks in advance. FPDF error: Some data has already been output, can't send PDF What are the technical advantages and disadvantages of mirrorless? The main doubt one can have about mirrorless is, I think that they do not provide ttl viewfinder. Is this a big disadvantage? In what way is it worst (or best) than classical reflex system?  What are the others advantages and disadvantages of a mirrorless compared to a reflex?  Have mirrorless a chance to replace reflex (at least for non pros) in the future? How did the Tesseract come to Earth from Asgard? Changing back button in iOS 7 disables swipe to navigate back Given the case I made two independent changes in one file: eg. added a new method and changed another method.  I often don't want to commit both changes as one commit, but as two independent commits.  On a git repository I would use the Interactive Mode of  to split the hunk into smaller ones:   git add --patch   What's the easiest way to do this with Subversion? (Maybe even using an Eclipse plug-in)  Update: In , Ryan calls it: “The Tangled Working Copy Problem.” Read/write to Windows registry using Java How is it possible to read/write to the Windows registry using Java? Set keyboard caret position in html textbox Does anybody know how to move the keyboard caret in a textbox to a particular position?  For example, if a text-box (e.g. input element, not text-area) has 50 characters in it and I want to position the caret before character 20, how would I go about it?  This is in differentiation from this question:  , which requires jQuery. If one obtains results in one area of a field (say during an MSc thesis) before deciding that one is not interested in making a career in that area, should one take the time (as a PhD student) to get make those results publishable, or is it better to focus on the new area? Can I have multiple Schengen visas for future travels in my passport? I'm a citizen of Ukraine planning on visiting Italy early in October for tourism. Later that month I'm accepted as a speaker at the conference in Prague, Czech Republic. Both countries are members of Schengen agreement and a visa is required for me to visit them. Therefore, I need to visit Schengen countries 2 times and I need to get my visas ASAP (to confirm my talk to the conference organizers, as well as to avoid overpaying for hotels/flight tickets).   I've heard a number of times that a single person can't apply for a Schengen visa if already in possession of one, but I'd like to clarify this. Say, I've got a visa from Italy for the period of October 1st - October 14th. Can I get another one from Czech Republic for October 25th - October 30th before I visit Italy? Would the answer be different if I were to visit the second country (CZ) on October 13th - October 20th, thus, having a single day overlap between these visits. It would be of a tremendous help if you could link to the official documents that prove your point, but I'd certainly appreciate answers even without such links.  Both times I'm going to apply for a short-term tourist visa covering the dates of my travel. If the answer to both questions above is no - would several visits to multiple Schengen countries over a short period of time be a valid reason to apply for a single multiple-entry visa that covers the whole period from October 1st to October 30th from Italy? Why do we use $x - y$ rather than $x + y$ in the definition of the convolution? Is it just convention? (If we are thinking of convolutions as weighted averages, for instance against "good kernels," it should make no difference.)  Why $(f * g) (x) = \int f(y) g(x - y) dy$ rather than $(f * g) (x) = \int f(y) g(x + y) dy$?  Edit: I'm finding it really hard to choose a best answer. There are at least three very good ones here. I was wondering if anyone knows how to configure a Windows 7 x64 Enterprise install that is on a domain to run a script if the user attempts to shutdown the computer - but I dont want the script to run if the user tries to log out.   Here is a bit of detail on my situation...  I have installed drive encryption software on 5 desktops that are in use by various people in my group.  These desktops are installed a few buildings away in a secure lab that very people have access to.   People in my group access these machines (8 Core 2600K Intel Sandybridge with 8GB RAM) over RDP to preform tasks that require heavy lifting that laptops are not well suited for.    I wrote a shutdown script (.hta file) to warn a user that if he/she shuts the computer down, they will have to get access to the lab and enter the drive encryption password in order to bring the machine back online.   The script has a timer that counts down for 1 minute and allows the user to cancel the shutdown command.    The script works as expected when a user tries to shutdown the computer, but I just realized that the script seems to run when a user tries to log off.  Is there any way to differentiate between a user logging off and a user shutting down a machine?   If possible, I would only want the script to run if the machine is shutdown.  If the user logs out, I would not want any script to run.  If this is possible, it seems like this would be managed via local Group Policy.     Let me know if you need any further details. rsync over ssh "error in protocol data stream" (code 12). ssh works I tried:  rsync -v -v -e 'ssh -p YY' ./testfile me@XXXXX:/home   Error Message  opening connection using: ssh -p YY -l me 146.6.84.206 rsync -&gt;-server -vvve.s . /home  [sender] make_file(testfile,*,0) send_file_list done send_files starting server_recv(2) starting pid=17537 rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600)[sender=3.0.6] _exit_cleanup(code=12, file=io.c, line=600): about to call exit(12)   This works fine:  ssh -p YY me@XXXXX   Which suggests to me the problem is neither that sshd is not running nor that port YY is firewalled. I have checked anyway.  What other problems could there be?  EDIT: The problem seems to have been "self resolving." I could not replicate the following day. I started my local computer up. Perhaps notably I had a different IP address than last time. And now rsync magically works. I'd appreciate guesses as to what it could have been in light of it going away.