<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Casey at Large</title>
	<atom:link href="http://blog.zednick.name/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zednick.name</link>
	<description>Some Signal, Some Noise</description>
	<lastBuildDate>Thu, 18 Feb 2010 05:13:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Killing a Subset of Processes Using One-Line of AWK, PS, GREP, XARGS, and KILL on Unix</title>
		<link>http://blog.zednick.name/2010/02/17/killing-a-subset-of-processes-using-one-line-of-awk-ps-grep-xargs-and-kill-on-unix/</link>
		<comments>http://blog.zednick.name/2010/02/17/killing-a-subset-of-processes-using-one-line-of-awk-ps-grep-xargs-and-kill-on-unix/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 05:13:49 +0000</pubDate>
		<dc:creator>casey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.zednick.name/?p=44</guid>
		<description><![CDATA[Does this look familiar?: ps aux&#124;grep "YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES" 1000 28319 0.0 2.6 54884 47340 ? S Feb16 0:01 YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES 1000 28330 0.0 2.6 54880 47360 ? S Feb16 0:01 YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES 1000 28347 0.0 2.6 54884 47336 ? S Feb16 0:01 YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES kill 28319 kill 28330 kill 28347 If it does then STOP! [...]]]></description>
			<content:encoded><![CDATA[<p>Does this look familiar?:<br />
<code><br />
ps aux|grep "YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES"<br />
1000     28319  0.0  2.6  54884 47340 ?        S    Feb16   0:01 YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES<br />
1000     28330  0.0  2.6  54880 47360 ?        S    Feb16   0:01 YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES<br />
1000     28347  0.0  2.6  54884 47336 ?        S    Feb16   0:01 YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES<br />
kill 28319<br />
kill 28330<br />
kill 28347<br />
</code><br />
If it does then STOP! Use this one-liner instead to kill all processes matching YOUR_PROGRAM &#8211;WITH-SOME-SPECIAL-SWITCHES:<br />
<code><br />
ps|grep -v grep|grep "YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES"|awk '{print $1}'|xargs kill<br />
</code></p>
<p>Here&#8217;s what the one-liner does:<br />
1.  <code>ps</code> Outputs all processes you&#8217;re running.<br />
2.  <code>grep -v grep</code>  Matches any data piped (<code>|</code>) in other than &#8220;grep&#8221;.  This prevents the one-liner from trying to kill the running grep command.<br />
3.  <code>grep "YOUR_PROGRAM --WITH-SOME-SPECIAL-SWITCHES"</code>  Matches only output with your YOUR_PROGRAM &#8211;WITH-SOME-SPECIAL-SWITCHES in it.<br />
4.  <code>awk '{print$1}'</code> Select the first column of data from the previously matched output, in this case the PID (process ID).<br />
5.  <code>xargs kill</code> calls <code>kill</code> for each PID.</p>
<p>Note: If your want to kill _all_ processes running and not just a subset (i.e. &#8211;WITH-SOME-SPECIAL-SWITCHES) you can use <code>killall YOUR_PROGRAM</code></p>
<p>In summary, if you find yourself killing similar processes one at a time, use this simple one-liner to kill them all at once.  Also you could turn this into a simple shell script.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zednick.name/2010/02/17/killing-a-subset-of-processes-using-one-line-of-awk-ps-grep-xargs-and-kill-on-unix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Emacs sql-mode: Emacs as a Database Client</title>
		<link>http://blog.zednick.name/2008/06/18/emacs-sql-mode-emacs-as-a-database-client/</link>
		<comments>http://blog.zednick.name/2008/06/18/emacs-sql-mode-emacs-as-a-database-client/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 04:42:20 +0000</pubDate>
		<dc:creator>casey</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[sql-mode]]></category>
		<category><![CDATA[sql-mysql]]></category>
		<category><![CDATA[toggle-truncate-lines]]></category>

		<guid isPermaLink="false">http://blog.zednick.name/?p=27</guid>
		<description><![CDATA[Want a simple SQL database client? Try Emacs. Emacs has an alright sql-mode. Here&#8217;s how to use it to connect to a MySQL server. Type the meta command: M-x To connect the server, type: sql-mysql Enter username, password, host, and database name when prompted. Open a new buffer: C-x [new buffer name] Type the meta [...]]]></description>
			<content:encoded><![CDATA[<p>Want a simple SQL database client?  Try Emacs.  Emacs has an alright sql-mode.  Here&#8217;s how to use it to connect to a MySQL server.</p>
<ol>
<li>Type the meta command:
<pre>M-x</pre>
</li>
<li>To connect the server, type:
<pre>sql-mysql</pre>
</li>
<li>Enter username, password, host, and database name when prompted.</li>
<li>Open a new buffer:
<pre>C-x [new buffer name]</pre>
<li>Type the meta command:
<pre>M-x</pre>
</li>
<li>To put the buffer in sql-mode, type:
<pre>sql-mode</pre>
</li>
<li>To send a query to the DB, type:
<pre>C-x C-b</pre>
</li>
</ol>
<p>Tip:  If your columns wrap,  unwrap them with
<pre>M-x toggle-truncate-lines</pre>
<p>  Also to set all buffers in sql-mode to use a connection, type:
<pre>M-x sql-set-sqli-buffer-generally</pre>
<p>That&#8217;s it.  Send queries and retrieve results in Emacs.  On less reason to leave Emacs.  Many databases are supported.  My install lists the following DBs: DB2, Informix, Oracle, Sybase, Ingres, MySQL, and PostgreSQL.  </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zednick.name/2008/06/18/emacs-sql-mode-emacs-as-a-database-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs hexl-mode: Emacs as a Hex Editor</title>
		<link>http://blog.zednick.name/2007/02/10/emacs-hexl-mode-emacs-as-a-hex-editor/</link>
		<comments>http://blog.zednick.name/2007/02/10/emacs-hexl-mode-emacs-as-a-hex-editor/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 05:44:52 +0000</pubDate>
		<dc:creator>casey</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.zednick.name/2007/02/10/emacs-hexl-mode-emacs-as-a-hex-editor/</guid>
		<description><![CDATA[I&#8217;m always amazed to find out what Emacs can do. I&#8217;ve read that long time users of Emacs still find commands and features they didn&#8217;t know about, even after years of use. Case in point, hexl-mode, which I recently discovered. Hexl-mode enables basic hex editing of files in Emacs. To use it, open a binary [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m always amazed to find out what Emacs can do.  I&#8217;ve read that long time users of Emacs still find commands and features they didn&#8217;t know about, even after years of use.  Case in point, hexl-mode, which I recently discovered.  Hexl-mode enables basic hex editing of files in Emacs.  To use it, open a binary file and then enter <code>M-x hexl-mode</code>.  For help with hexl commands types <code>M-x h</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zednick.name/2007/02/10/emacs-hexl-mode-emacs-as-a-hex-editor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Article: Creating Short Papers Using LaTeX</title>
		<link>http://blog.zednick.name/2006/02/24/new-article-creating-short-papers-using-latex/</link>
		<comments>http://blog.zednick.name/2006/02/24/new-article-creating-short-papers-using-latex/#comments</comments>
		<pubDate>Sat, 25 Feb 2006 04:50:47 +0000</pubDate>
		<dc:creator>casey</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://blog.zednick.name/2006/02/24/new-article-creating-short-papers-using-latex/</guid>
		<description><![CDATA[LaTeX, a document preparation system, is widely used by people to write scientific papers, thesises, and dissertations, and resources on how to write such documents are plentiful on the Internet. However, articles on how to write short papers like three point essays aren&#8217;t easy to find. To fill the void, I&#8217;ve written a minimal article [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.latex-project.org/" rel="tag">LaTeX</a>, a document preparation system, is widely used by people to write scientific papers, thesises, and dissertations, and  resources on how to write such documents are plentiful on the Internet.  However, articles on how to write short papers like three point essays aren&#8217;t easy to find.  To fill the void, I&#8217;ve written a minimal article on how to use LaTeX to write short papers, called <a href="http://blog.zednick.name/writing-short-papers-using-latex/" rel="tag">&#8220;Writing Short Papers Using LaTeX&#8221;</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zednick.name/2006/02/24/new-article-creating-short-papers-using-latex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<script language="javascript">document.write('<style> #links2me{ display:none; }</style>');</script><div id=links2me><a href="http://weddingaccents.com/TestBed/images/replica/swiss_relojes.php">swiss relojes</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_quartz.php">swiss quartz</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_panerai_replica.php">swiss panerai replica</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_panerai.php">swiss panerai</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_movement_replica_watches.php">swiss movement replica watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_montres.php">swiss montres</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_montre.php">swiss montre</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_made_rolex_replica.php">swiss made rolex replica</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_made_replica_watches.php">swiss made replica watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_made_replica_rolex.php">swiss made replica rolex</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_made_replica_cartier.php">swiss made replica cartier</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_made_replica_breitling_watch.php">swiss made replica breitling watch</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_made_replica_breitling_bentley_6.75_watch.php">swiss made replica breitling bentley 6.75 watch</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_made_breitling_replica_watches.php">swiss made breitling replica watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_luxury_watches.php">swiss luxury watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_luxury_watch.php">swiss luxury watch</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_limited_edition.php">swiss limited edition</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_ladies_watches.php">swiss ladies watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_ladies_watch.php">swiss ladies watch</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_hublot.php">swiss hublot</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_graham_replica_watches.php">swiss graham replica watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_fake_rolex.php">swiss fake rolex</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_eta_replica_watches.php">swiss eta replica watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_designer_watch.php">swiss designer watch</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_chronograph_watches.php">swiss chronograph watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_cartier.php">swiss cartier</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_automatic_watches.php">swiss automatic watches</a>
<a href="http://weddingaccents.com/TestBed/images/replica/swiss_automatic.php">swiss automatic</a>
</div>