<?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>Dave Page &#187; Computers</title>
	<atom:link href="http://chwalisz.org/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://chwalisz.org</link>
	<description>Stuff</description>
	<lastBuildDate>Sun, 01 Jan 2012 18:18:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SSH public key and Bitbucket</title>
		<link>http://chwalisz.org/2011/11/26/ssh-public-key/</link>
		<comments>http://chwalisz.org/2011/11/26/ssh-public-key/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 16:16:56 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=833</guid>
		<description><![CDATA[<p>So I use Bitbucket to host several private Hg repos, all working great from Windows via Putty and Pageant.</p> <p>Today I tried to update the local repo.</p> C:\bin\app>hg pull sending hello command sending between command abort: no suitable response from remote hg! <p>WTF? Tried different machines, other accounts, same problem.</p> <p>Bit of Googling&#8230; some users [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>So I use <a href="https://bitbucket.org/">Bitbucket</a> to host several private Hg repos, all working great from Windows via Putty and Pageant.</p>
<p>Today I tried to update the local repo.</p>
<pre>C:\bin\app>hg pull
sending hello command
sending between command
abort: no suitable response from remote hg!</pre>
<p>WTF? Tried different machines, other accounts, same problem.</p>
<p>Bit of Googling&#8230; some users report Bitbucket messes up the public keys, at arbitrary times, as they all share the hg user.<br />
Updated the public key on Bitbucket with the SAME value. It even looked different, like it was missing a character. Now it works&#8230;</p>
<pre>C:\bin\app>hg pull
pulling from ssh://&#x68;&#x67;&#x40;&#x68;&#x67;&#x2e;&#x64;&#x61;&#x63;&#x73;&#x6f;&#x66;&#x74;&#x2e;&#x63;&#x6f;&#x6d;/dacsoft/bin
searching for changes
no changes found</pre>
<p>Go figure.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/11/26/ssh-public-key/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Best Eulogy Ever</title>
		<link>http://chwalisz.org/2011/11/09/best-eulogy-ever/</link>
		<comments>http://chwalisz.org/2011/11/09/best-eulogy-ever/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 17:52:22 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Musings]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=826</guid>
		<description><![CDATA[<p>Rest in Peace, Dennis</p>]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p><a href="http://www.muppetlabs.com/~breadbox/rip-dmr.html">Rest in Peace, Dennis</a></p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/11/09/best-eulogy-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centos Fun with a locked Boot. Thanks, Hudson 2.1.1.</title>
		<link>http://chwalisz.org/2011/09/02/centos-fun-with-a-locked-boot-thanks-hudson-2-1-1/</link>
		<comments>http://chwalisz.org/2011/09/02/centos-fun-with-a-locked-boot-thanks-hudson-2-1-1/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 21:55:29 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=787</guid>
		<description><![CDATA[<p>Say the Hudson script locks up during boot, for example, after you upgrade to 2.1.1 and it does not work and someone said removing the &#8211;daemon argument makes it work and something else fails so you roll back the hudson.war and restart and it now locks up on boot. No SSH &#8211; sshd is the [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>Say the Hudson script locks up during boot, for example, after you upgrade to 2.1.1 and it does not work and someone said removing the &#8211;daemon argument makes it work and something else fails so you roll back the hudson.war and restart and it now locks up on boot. No SSH &#8211; sshd is the next service to load. I had to &#8220;power down&#8221; the VM, and tried to &#8220;<a href="http://www.cyberciti.biz/tips/10-boot-time-parameters-you-should-know-about-the-linux-kernel.html">force the runlevel</a>&#8220;: several ways, say, using &#8220;init=/bin/sh 3&#8243;. Nothing worked. </p>
<p>The obvious thing is to do the Interactive Boot (type I). Someone said this didn&#8217;t work, so I didn&#8217;t try. Liars. Worked great. Said &#8220;Y&#8221; until I hit Hudson, typed &#8220;N&#8221;, and then &#8220;C&#8221;ontinue&#8230; voila!</p>
<p>2.1.1 has some problems. Wait until 2.1.2 at least.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/09/02/centos-fun-with-a-locked-boot-thanks-hudson-2-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Atahualpa</title>
		<link>http://chwalisz.org/2011/07/31/upgrading-atahualpa/</link>
		<comments>http://chwalisz.org/2011/07/31/upgrading-atahualpa/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 02:00:33 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=776</guid>
		<description><![CDATA[<p>Did you know that if you upgrade the Atahualpa theme from the Update page in the WordPress Admin, it deletes all the custom header images in your website? </p> <p>Me neither.</p>]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>Did you know that if you upgrade the <a href="http://wordpress.bytesforall.com/">Atahualpa</a> theme from the Update page in the WordPress Admin, it deletes all the custom header images in your website? </p>
<p>Me neither.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/07/31/upgrading-atahualpa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading WordPress in Bulk</title>
		<link>http://chwalisz.org/2011/04/17/upgrading-wordpress-in-bulk/</link>
		<comments>http://chwalisz.org/2011/04/17/upgrading-wordpress-in-bulk/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 15:05:54 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=749</guid>
		<description><![CDATA[<p>Of course there is the old faithful Updating_WordPress_with_Subversion and Upgrading_WordPress_Extended, but there is a lot of fluff there. Old blogs are &#8220;You are using WordPress 2.9.1&#8243;. Show me the command lines.</p> <p>Certainly.</p> &#8220;Backup your database. Read Backing Up Your Database for a detailed explanation.&#8221; Use Plugin WP-DB-Backup from http://austinmatzko.com/wordpress-plugins/wp-db-backup/ Download it &#8211; make sure the copy is here. [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>Of course there is the old faithful <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">Updating_WordPress_with_Subversion</a> and <a href="http://codex.wordpress.org/Upgrading_WordPress_Extended">Upgrading_WordPress_Extended</a>, but there is a lot of fluff there. Old blogs are &#8220;You are using WordPress 2.9.1&#8243;. Show me the command lines.</p>
<p>Certainly.</p>
<ul>
<li>&#8220;Backup your database. Read <a href="http://codex.wordpress.org/Backing_Up_Your_Database#Using_WordPress_Database_Backup_Plugin">Backing Up Your Database</a> for a detailed explanation.&#8221;
<ul>
<li>Use Plugin WP-DB-Backup from http://austinmatzko.com/wordpress-plugins/wp-db-backup/</li>
<li>Download it &#8211; make sure the copy is here. Open it up.</li>
</ul>
</li>
<li>&#8220;Backup ALL your WordPress files in your WordPress directory. Don&#8217;t forget your .htaccess file.&#8221;
<ul>
<li>Make a local shadow directory
<ul>
<li><code>$ rsync -vur ./sarajane/ ./backups/sarajane-snapshot-20110416/</code></li>
</ul>
</li>
<li>Make a tar file for download for archive</li>
<li><code>$ tar cvf sarajane-snapshot-20110416.tar sarajane/</code></li>
<li><code>$ gzip sarajane-snapshot-20110416.tar</code></li>
<li>Verify the backups you created are there and usable. This is essential.</li>
</ul>
</li>
<li>&#8220;Deactivate ALL your Plugins.&#8221;</li>
<li>&#8220;Ensure first four steps are completed. Do not attempt the upgrade unless you have completed the first four steps.&#8221;</li>
<li>Gotta upgrade the MYSQL Database? I did&#8230; The nice thing is, use two different ones. Since you saved the original directory, you can switch back to old state and db by replacing the directory.
<ul>
<li>Per <a href="http://codex.wordpress.org/Backing_Up_Your_Database#Backing_Up_the_Database">Backing_Up_the_Database </a>
<ul>
<li><code>$ mysqldump --add-drop-table -h mysqlservername  -u mysqlusername -p dbname&gt; ms-db-backup-20110416.sql</code></li>
</ul>
</li>
</ul>
<ul>
<li>Per <a href="http://codex.wordpress.org/Restoring_Your_Database_From_Backup">Restoring_Your_Database_From_Backup</a>
<ul>
<li><code>$ mysql -h mysqlservername -u mysqlusername-p dbname&lt; ms-db-backup-20110416.sql</code></li>
</ul>
</li>
</ul>
</li>
<li>edit wp-config.php (save the old one)<a href="http://codex.wordpress.org/Restoring_Your_Database_From_Backup"></a></li>
<li><code>$ cp wp-config.php wp-config.php.save</code></li>
<li><code>$ vi wp-config.php ...</code></li>
<li>Use new SVN install into new folder</li>
<ul>
<li><code>$ mkdir sarajane2</code></li>
<li><code>$ cd sarajane2</code></li>
<li><code>$ svn co http://core.svn.wordpress.org/tags/3.1.1 .</code></li>
</ul>
</li>
<li>Copy these files from your old site to the new
<ul>
<li><code>$ export OLDBLOG=$HOME/sarajane</code></li>
<li><code>$ export NEWBLOG=$HOME/sarajane2</code></li>
<li><code>$ cp $OLDBLOG/wp-config.php $NEWBLOG/</code></li>
<li><code>$ ls $OLDBLOG/wp-content/cache</code></li>
<li><code>$ rm -rf $OLDBLOG/wp-content/cache</code></li>
<li><code>$ ls $OLDBLOG/wp-content/plugins/widgets</code></li>
<li><code> $ rm -rf $OLDBLOG/wp-content/plugins/widgets</code></li>
<li><code>$ rsync -vur --exclude=.svn/  $OLDBLOG/wp-content/ $NEWBLOG/wp-content</code></li>
</ul>
</li>
<li># this only is in older WP installs
<ul>
<li><code>$ rsync -vur --exclude=.svn/  $OLDBLOG/wp-images/ $NEWBLOG/wp-images</code></li>
<li><code>$ cp sarajane/.htaccess sarajane2</code></li>
</ul>
</li>
<li>Swap directories
<ul>
<li><code>$ mv sarajane sarajane0</code></li>
<li><code>$ mv sarajane2 sarajane</code></li>
</ul>
</li>
<li>Hit the upgrade link
<ul>
<li><a href="http://sarajane.info/wp-admin/upgrade.php">http://localhost/wp-admin/upgrade.php</a></li>
</ul>
</li>
</ul>
<p>Atualhalpa stores settings in the database, so you don&#8217;t have to copy anything.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/04/17/upgrading-wordpress-in-bulk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final ledger entries</title>
		<link>http://chwalisz.org/2011/04/16/final-ledger-entries/</link>
		<comments>http://chwalisz.org/2011/04/16/final-ledger-entries/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 13:49:24 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[accounting]]></category>
		<category><![CDATA[quicken]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=727</guid>
		<description><![CDATA[<p>For three days now I have been trying to figure out how to account for payments to the Clinic via PayPal. The money goes into my personal PayPal account, and credits against money owed me for expenses, but I just don&#8217;t want to post the delta, I want to track what happened so the cash [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>For three days now I have been trying to figure out how to account for payments to the Clinic via PayPal. The money goes into my personal PayPal account, and credits against money owed me for expenses, but I just don&#8217;t want to post the delta, I want to track what happened so the cash flow report is accurate. I tried a lot of accounts, but always ended up with the debits and credit balances fighting so the cash flow was backwards. Then I read <a href="http://community.intuit.com/posts/record-the-paypal-fee-and-the-net-amount-to-give-me-the-total-paid">this post</a> who recommended that I treat the PayPal account like a bank account. I created &#8220;PayPal Bank&#8221;, receipts were deposits, and actual transfers into the account were transfers. Works like a charm.</p>
<p>So how do I account for donations of cash? Duh. <a href="http://canbootcamp.blogspot.com/2006/10/donation-transactions.html">Contribution Revenue</a>. </p>
<p>It&#8217;s so nice when things work out. Now I can actually finish the books and work on my OWN taxes.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/04/16/final-ledger-entries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Epsilon woes</title>
		<link>http://chwalisz.org/2011/04/05/epsilon-woes/</link>
		<comments>http://chwalisz.org/2011/04/05/epsilon-woes/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 02:18:36 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[epsilon]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=743</guid>
		<description><![CDATA[<p>Walgreens. Chase. 1800Flowers.com. Target.</p> <p>Dear 1800Flowers.com Customer:</p> <p>One of our email service providers, Epsilon, has informed us that we are among a group of companies affected by a data breach that may have exposed your email address to unauthorized third parties. It&#8217;s important to know that this incident did not involve other account or personally [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>Walgreens.<br />
Chase.<br />
1800Flowers.com.<br />
Target.</p>
<blockquote><p>Dear 1800Flowers.com Customer:</p>
<p>One of our email service providers, Epsilon, has informed us that we<br />
are among a group of companies affected by a data breach that may<br />
have exposed your email address to unauthorized third parties.<br />
It&#8217;s important to know that this incident did not<br />
involve other account or personally identifiable information.<br />
We use permission-based email service providers such as Epsilon<br />
to help us manage email communications to our customers.</p></blockquote>
<p>Jeez, doesn&#8217;t anyone do their own email anymore? </p>
<p>Seems to be a lot of new spam. <a href="http://getpopfile.org/">Popfile</a> is getting most of it, but some new stuff in the Inbox. Morons.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/04/05/epsilon-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>osql -&gt; isql -&gt; aargh on Ubuntu</title>
		<link>http://chwalisz.org/2011/03/17/osql-isql-aargh-on-ubuntu/</link>
		<comments>http://chwalisz.org/2011/03/17/osql-isql-aargh-on-ubuntu/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 22:02:48 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=732</guid>
		<description><![CDATA[<p>Trying to set up ODBC on Ubuntu. osql is a great script to test it out, but running it on Ubuntu 10.10:</p> <p>root:~# osql -S fcstest -U sa -P ***** osql: error: no potential directory strings in "/usr/local/bin/isql" isql strings are: + /lib/ld-linux.so.2 </p> <p>So inspecting the code, I can extract the meaningful parts on [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>Trying to set up ODBC on Ubuntu. osql is a great script to test it out, but running it on Ubuntu 10.10:</p>
<p><code>root:~# osql  -S fcstest -U sa -P *****<br />
osql: error: no potential directory strings in "/usr/local/bin/isql"<br />
isql strings are:<br />
+ /lib/ld-linux.so.2<br />
</code></p>
<p>So inspecting the code, I can extract the meaningful parts on RHEL, where it works:</p>
<p><code>ISQL=$(command -v isql)<br />
strings ${ISQL} | grep ^/<br />
/lib64/ld-linux-x86-64.so.2<br />
/usr/local/lib<br />
</code></p>
<p>but on Ubuntu, the same sequence:</p>
<p><code>dchwalis:/usr/local/src$ strings ${ISQL} | grep ^/<br />
/lib/ld-linux.so.2<br />
</code></p>
<p>Note the missing /usr/local/lib &#8211; the grep filters following will NEVER find any strings&#8230;</p>
<p>Maybe we should do this: RHEL:</p>
<p><code>$ ldd /usr/local/bin/isql<br />
        libodbc.so.1 => /usr/local/lib/libodbc.so.1 (0x00002b5b76eb4000)<br />
        ...<br />
</code></p>
<p>and Ubuntu:</p>
<p><code>root:/usr/local/bin# ldd  isql<br />
	libodbc.so.1 => /usr/local/lib/libodbc.so.1 (0x001cd000)<br />
</code></p>
<p>We can pull a path from that!</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/03/17/osql-isql-aargh-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hudson, Git and the extra space</title>
		<link>http://chwalisz.org/2011/03/16/hudson-git-and-the-extra-space/</link>
		<comments>http://chwalisz.org/2011/03/16/hudson-git-and-the-extra-space/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 22:24:24 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=730</guid>
		<description><![CDATA[<p>At work I am installing a new Hudson slave for continuous integration. Everything works great, using the Tanuki Java Service Wrapper to fire up the slave.jar, but when it comes time to run the build, it fails: </p> <p>Started by user anonymous Building remotely on warehouse_build_slave Checkout:WarehousePortal_Rake / /var/hudson/workspace/WarehousePortal_Rake - hudson.remoting.Channel@26c81672:warehouse_build_slave Using strategy: Default Checkout:WarehousePortal_Rake [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>At work I am installing a new Hudson slave for continuous integration. Everything works great, using the Tanuki Java Service Wrapper to fire up the slave.jar, but when it comes time to run the build, it fails: </p>
<p><code>Started by user anonymous<br />
Building remotely on warehouse_build_slave<br />
Checkout:WarehousePortal_Rake / /var/hudson/workspace/WarehousePortal_Rake - hudson.remoting.Channel@26c81672:warehouse_build_slave<br />
Using strategy: Default<br />
Checkout:WarehousePortal_Rake / /var/hudson/workspace/WarehousePortal_Rake - hudson.remoting.LocalChannel@1e9b7b2<br />
Cloning the remote Git repository<br />
Cloning repository origin<br />
ERROR: Error cloning remote repo 'origin' : Could not clone ssh://XXXXXX.XXX/git/projectname<br />
ERROR: Cause: Error performing command: /usr/local/bin/git  clone -o origin ssh://XXXXXXX.XXX/git/projectname /var/hudson/workspace/projectname_rake<br />
Cannot run program "/usr/local/bin/git ": java.io.IOException: error=2, No such file or directory<br />
Trying next repository<br />
ERROR: Could not clone repository<br />
FATAL: Could not clone<br />
hudson.plugins.git.GitException: Could not clone<br />
	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:880)<br />
	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812)<br />
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)<br />
	at hudson.remoting.UserRequest.perform(UserRequest.java:114)<br />
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)<br />
	at hudson.remoting.Request$2.run(Request.java:270)<br />
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)<br />
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)<br />
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)<br />
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br />
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br />
	at hudson.remoting.Engine$1$1.run(Engine.java:58)<br />
	at java.lang.Thread.run(Thread.java:662)<br />
</code></p>
<p>Lots of Googling. Pulled down the source for Hudson, opened in Eclipse. Pulled down the Git plugin source. Reviewed the setup with other Hudson slaves. Looks great. But it doesn&#8217;t work. </p>
<p>Run <code>/usr/local/bin/git  clone -o origin ssh://XXXXXXX.XXX/git/projectname /var/hudson/workspace/projectname_rake</code> from the shell. Works great.</p>
<p>Permissions good. Using /usr/local/bin/git to launch. Replaced with a shell script and could echo out some stuff. The dang thing is running!</p>
<p>Finally poking around in hudson.Util.ArgumentListBuilder.<br />
<code>if(arg.indexOf(' ')>=0 || arg.length()==0)<br />
                buf.append('"').append(arg).append('"');<br />
            else<br />
                buf.append(arg);<br />
        }<br />
</code></p>
<p>Oh no. If there is a space in the program name it will double quote it. </p>
<p>Open Manage Hudson, Configure System. Check the git &#8220;Path to Git executable&#8221;.  It is &#8220;/usr/local/bin/git &#8221; with a space at the end. Just like in the log:<br />
<code> Cannot run program "/usr/local/bin/git ": java.io.IOException: error=2, No such file or directory</code></p>
<p>Remove the space. Fixed. 3 hours I will never get back.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/03/16/hudson-git-and-the-extra-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Unix Rocks &#8211; cat</title>
		<link>http://chwalisz.org/2011/02/18/721/</link>
		<comments>http://chwalisz.org/2011/02/18/721/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 13:12:14 +0000</pubDate>
		<dc:creator>dave</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://chwalisz.org/?p=721</guid>
		<description><![CDATA[<p>I got an email from a friend where the Word doc attachment was broken into 19 pieces and Base64 encoded. I started to open each file and copy out the payload, then got bored and considered a Perl script.</p> <p>What&#8217;s the simplest thing?</p> <p>First have a batch file: copy p1 + p2 temp1 copy p3+temp1 [...]]]></description>
			<content:encoded><![CDATA[<div class='wp_fbs_top'></div><p>I got an email from a friend where the Word doc attachment was broken into 19 pieces and Base64 encoded. I started to open each file and copy out the payload, then got bored and considered a Perl script.</p>
<p>What&#8217;s the simplest thing?</p>
<p>First have a batch file:<br />
<code>copy p1 + p2 temp1<br />
copy p3+temp1 temp2<br />
copy p4+temp2 temp3<br />
...</code></p>
<p>Nuts. I gave up typing. Too much thinking.</p>
<p>Create a small batch file via <code>dir /b</code>:<br />
<code>cat "Stained Glass Book StAnnsStainedGlass.docx [01_19].eml" > fred.docx<br />
cat "Stained Glass Book StAnnsStainedGlass.docx [02_19].eml" >> fred.docx<br />
..<br />
cat "Stained Glass Book StAnnsStainedGlass.docx [19_19].eml" >> fred.docx<br />
</code></p>
<p>Then edit <code>fred.docx</code> using <a href="http://www.scintilla.org/SciTE.html">Scite</a>, looking for an X-header to remove the headers. Probably could have used <code>grep</code> or <code>sed</code>, but for 19 edits, why look up the command line options?</p>
<p>Then run <code>base64 -d -i fred.docx  >ff.docx</code>. The -i handles stuff I missed.</p>
<p>Works great. Of course, you need the Unix utils via <a href="http://www.cygwin.com/">cygwin</a>. It should be built into Windows. Or we should just use <a href="http://www.ubuntu.com/">Ubuntu</a>&#8230;</p>
<p>Or maybe <code>type filename >> target</code> would work. Whatever.</p>]]></content:encoded>
			<wfw:commentRss>http://chwalisz.org/2011/02/18/721/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

