How to calculate interval in 30 minutes between two dates?
How to calculate the difference between two dates using PHP?
I am using Log4Net with the AdoNetAppender to log messages from a simple systray application into a SQL Server 2005 database.  I want to log the machine name along with the log message because this application will be running on multiple machines and I need to know on which one the message originated.  But, I cannot find a way to expose this information via the log4net.Layout.PatternLayout that I am using with the appender.  Is there a way to log the machine name via log4net in this manner? What TV movie had lost space cadets who piloted yellow tripod robots, and a squid bad guy? What is the difference between conditioning on regressors vs. treating them as fixed? Declare variable to hold job name and if job running kill it I’m looking for a single file that does these things in order.   Declare a variable to hold a job name  Run a query to check whether that job declared is currently running Set up an if loop If the job is running, execute the stored procedure that kills it.   My question is to write a query that declare a variable to hold a job name and gives us result the job is still running or not if the job is running execute the stored proc to kill it.  My manager was asking me to listing running jobs and suspended jobs and declare a variable to hold job name and setup an IF loop like if job is running run proc to kill it. Why my differential equations become True? Best way to extract a subvector from a vector? To prove Cayley-Hamilton theorem, why can't we substitute $A$ for $\lambda$ in $p(\lambda) = \det(\lambda I - A)$? Cayley Hamilton Theorem states that if $A$ is an $n \times n$ matrix over the field $F$ then $p(A) = 0$.  We note that $p(\lambda) = \det(\lambda I - A)$. Hence, why can't we just substitute $\lambda$ with $A$ and directly prove Cayley-Hamilton Theorem by saying that $p(A) = p(\lambda) = \det(\lambda I - A) = \det(AI - A) = 0$? How can I make Chrome open bookmarked pages in new tab by default? Current situation:  I am currently browsing a page (say, www.google.com). I want to open a bookmarked page (say, www.bing.com), but I want to keep the current page (Google) opened. I need to click on new tab, then click on the bookmark for Bing. Alternatively, I can right click and open Bing in new tab.  But I want none of those because why click twice when one is enough?    What I want:  I am currently on Google. I want to open Bing, so I click on the bookmark and Bing opens in a new tab. Google remains open.    I am aware of a duplicate question linked . However it didn't really provide a satisfactory answer. Changing every link to javascript breaks the icon and is a pain to do; middle clicking doesn't really work because I'm on a laptop and the touchpad does not support middle clicking. I hope there is an extension for Chrome that can redefine this behavior to the way I want. A hidden setting in Chrome would be even better but I doubt Chrome offers that. Can quarks be considered real and elementary? Also schemas can communicate over database links to schemas in other remote databases.    Could one replace the preposition over with through? Will it change the meaning, and if so, when should we use over instead of through? When functions commute under composition Print programs with its proper syntax I have defined my own language whose syntax is very close to the one of Pascal. I would like to type the following program for instance. Many people use the packages algorithmicx or algorithm2e to print programs, but it seems that we have to use their specific keywords of its syntax like procedure, end while.  I just want to indent spaces when needed, and bold some words when I want (sorry that I could not bold letters in the following figure). Do I have to use  texttt for each line? Also, with verbatim, I could not bold words...  Also, as the program is not large, I would need to put it on the left side of the page, and leave space for some explanasion text on its right hand side. So I  guss I need to get them all together, and use multicols.  Could anyone help?  program test                                      some text here var   i : integer;                                    ...    b : boolean; begin    i := 1;                                        ...    b := true;    while i &lt; 15 do       i := i  + 1;       b := not b                                  some text here    od end   Edit1: Following @Werner's tabbing solution, I have made the code a minipage:  \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} Werner's solution \end{tabbing} \end{minipage}\hfill \begin{minipage}[t]{0.48\linewidth} a paragraph \end{minipage}   Actually as the code shows, I want the texts to be another separated minipage on the right hand side of the code. I have then 2 questions:   is it reasonable to make 0.48\linewidth instead of 0.5\linewidth? 0.48\linewidth is a conventional choice? is it possible to make a frame around the code, and use \caption and \label to make it a reference (I prefer figures)? When to pull loose teeth My 5 year old is starting to have some teeth become loose. Specifically her lower two front teeth. I just noticed today that one of them is really loose. However, I don't know how loose it should be before pulling it out.  I'm also curious about how to pull them (or should I just let them fall out, which seems bad). My father pulled mine with pliers but I think my wife would freak out if I tried to do that.  So, how loose is lose enough and how to pull them out (technique, tools, etc.). Why I cannot unpin some directories from file explorer in windows 10 says:  Bash attempts to determine when it is being run with its standard input connected to a network connection, as when executed by the remote shell daemon, usually rshd, or the secure shell daemon sshd. If Bash determines it is being run in this fashion, it reads and executes commands from ~/.bashrc, if that file exists and is readable.  This Bash sources ~/.bashrc: ssh user@host :  But this Bash sources ~/.bash_profile: ssh user@host  I don't see a difference in these two commands according to the spec. Isn't stdin connected to a network connection in both cases? Change the order of integration in:  $$\int_0^{2a}\int_0^\sqrt{2ax-x^2}\frac{\phi'(y)(x^2+y^2)x }{\sqrt{4a^2x^2-(x^2+y^2)^2}}dxdy$$ and hence evaluate it.    I changed the order of integration and got the limits $y=0$ to $a$ and $x=a-\sqrt{a^2-y^2}$ to $a+\sqrt{a^2-y^2}$. I then tried changing to polar coordinates, but it is only making the integrand more complex. Reference template variable within Jinja expression Specify a field in attribute table with raster calculator Why is my text pixelated? Within my game I have some cubes with text which render fine. In addition to the cubes I want to display some static text, e.g. the current score. The score text has the camera as parent and a copy rotation constraint on the camera. While this concept works fine in principle, the score text is displayed very pixelated. I already increased the font size to 50 and made the text smaller by scaling it down, but it still doesn't show nicely. The score text is about 11 Blender units away from the camera. If I move the score text further away, it displays better, but then the text interferes (collides) with the cubes. What could I do to improve the quality of this text? Download . Open the SSCCE in Blender 2.70. Hover your mouse over the 3D viewport. Press P to start game engine. How to Customize the Email template on chatter posts