<?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>/home/\/\ick &#187; programming</title>
	<atom:link href="http://timony.com/mickzblog/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://timony.com/mickzblog</link>
	<description>Things that interest me.</description>
	<lastBuildDate>Fri, 29 Jul 2011 04:08:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel="next" href="http://timony.com/mickzblog/category/programming/feed/?page=2" />

		<item>
		<title>Install Oracle SQL Developer on Ubuntu Karmic &amp; Lucid</title>
		<link>http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/</link>
		<comments>http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 20:40:48 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql developer]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=708</guid>
		<description><![CDATA[If you want to install Oracle&#8217;s SQL Developer on Ubuntu (or another DEB based system such as Debian) you can do one of the following: Download the RPM package and install using rpm (not advisable). Download the RPM package and convert to a DEB package using alien Download the ZIP file titled &#8220;Oracle SQL Developer [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to install Oracle&#8217;s <a title="Oracle's SQL Developer" href="http://www.oracle.com/technology/software/products/sql/index.html">SQL Developer</a> on Ubuntu (or another DEB based system such as Debian) you can do one of the following:</p>
<ol>
<li>Download the RPM package and install using rpm (not advisable).</li>
<li>Download the RPM package and convert to a DEB package using alien</li>
<li>Download the ZIP file titled &#8220;Oracle SQL Developer for other platforms&#8221; and manually install</li>
<li>Use the make-sqldeveloper-package to convert the ZIP file into a DEB package</li>
</ol>
<p>I used the make-sqldeveloper-package, which is available for Debian and Ubuntu and it&#8217;s derivatives. However, the man page and the instructions are little unclear on how to use it. You need to download the zip file available at <a href="http://www.oracle.com/technology/software/products/sql/index.html">Oracle&#8217;s</a> (and not the RPM file nor any of the other packages) and then use the make-sqldeveloper-package to convert it to a DEB which you can then install using the dpkg command.</p>
<p>This is preferable to using rpm or alien as you can more easily manage the package using Debian&#8217;s and Ubuntu package management tools, plus it will integrate SQL Developer into Gnome&#8217;s Menu System . Plus, when Oracle updates their version you can use make-sqldeveloper-package to create an updated DEB package and easily update the version you have installed. The procedure outlined below works on Ubuntu Karmic and should also work on any Debian version that has the make-sqldeveloper-package.</p>
<p>As the man page states:</p>
<blockquote><p>This utility will require you to download the &#8220;Oracle  SQL  Developer  for  other  platforms&#8221;  archive  from  &lt;<a href="http://otn.oracle.com/software/prod‐ucts/sql/">http://otn.oracle.com/software/prod‐ucts/sql/</a>&gt; to create the Debian package from.</p></blockquote>
<h4>1. Download the ZIP file from Oracle&#8217;s site</h4>
<p>You will need to accept Oracle&#8217;s license agreement and download the ZIP file, titled &#8220;Oracle SQL Developer for other platforms&#8221;, from:</p>
<p><a href="http://www.oracle.com/technology/software/products/sql/index.html">http://www.oracle.com/technology/software/products/sql/index.html</a></p>
<h4>2. Install the make-sqldeveloper-package package</h4>
<pre style="padding-left: 30px;">sudo apt-get install sqldeveloper-package</pre>
<p>You will need Ubuntu&#8217;s <a title="Ubuntu software repositorys" href="http://www.ubuntu.com/community/ubuntustory/components">multiverse</a> software repository. See the <a href="https://help.ubuntu.com/community/Repositories/Ubuntu">instructions</a> on how to do so.</p>
<h4>2.a. Install the tofrodos package</h4>
<pre style="padding-left: 30px;">sudo apt-get install tofrodos</pre>
<p>Create symbolic links to the tofrodos commands to allow the sqldeveloper-package to work:</p>
<pre style="padding-left: 30px;">sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix</pre>
<pre style="padding-left: 30px;">sudo ln -s /usr/bin/todos /usr/bin/unix2dos</pre>
<p>Thanks to <a href="#comment-5906">Miles</a> for the tofrodos tip.</p>
<h4>3. Convert the ZIP file to .DEB package</h4>
<p>The format of the command is:</p>
<pre style="padding-left: 30px;">make-sqldeveloper-package -b BUILD_LOCATION LOCATION_OF_ZIP_FILE</pre>
<p>In my example, I&#8217;m going to use /tmp/ORA as the build location and the ZIP file has been download to my Desktop (~Desktop).</p>
<pre style="padding-left: 30px;">make-sqldeveloper-package -b /tmp/ORA/ ~/Desktop/sqldeveloper-2.1.0.63.73-no-jre.zip</pre>
<p>The command will create the build directory and remove it when the command finishes. If the command completes successfully you&#8217;ll see the following output after a minute or two:</p>
<pre style="padding-left: 30px;">make-sqldeveloper-package: Building sqldeveloper package in "/tmp".</pre>
<p>The DEB file will be created in the current directory. In my example I had changed directories to /tmp and that&#8217;s where the DEB file will be:</p>
<pre style="padding-left: 30px;">/tmp/sqldeveloper_2.1.0.63.73+0.2.3-1_all.deb</pre>
<p>See the man page for more information about the tool:</p>
<pre style="padding-left: 30px;">man make-sqldeveloper-package</pre>
<h4>4. Install the package</h4>
<pre style="padding-left: 30px;">sudo dpkg -i sqldeveloper_2.1.0.63.73+0.2.3-1_all.deb</pre>
<h4>5. Run SQL Developer</h4>
<p>After installing there should he an entry in Gnome&#8217;s menu to start the SQL Developer. It&#8217;s located under:</p>
<p style="padding-left: 30px;"><strong>Applications-&gt;Programming-&gt;SQL Developer</strong></p>
<p><em>Note</em>: You will need a JVM installed for the tool to run.</p>
<p>Obligatory Screen Shot:</p>
<div id="attachment_719" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-719" href="http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/sqldeveloper_screenshot-2/"><img class="size-medium wp-image-719" title="Oracle SQL Developer on Ubuntu" src="http://timony.com/mickzblog/wp-content/uploads/2010/01/sqldeveloper_screenshot1-300x248.jpg" alt="" width="300" height="248" /></a><p class="wp-caption-text">Oracle SQL Developer</p></div>
<p><em>Updated September 27th 2010</em>. Added instructions from <a href="http://milespomeroy.com/">Miles</a> on installing dos2unix alternative for Ubuntu Lucid. The dos2unix command is not available in Ubuntu Lucid.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2010/01/09/install-oracle-sql-developer-on-ubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Compiling EIGENSOFT on Ubuntu Januty</title>
		<link>http://timony.com/mickzblog/2009/07/08/compiling-eigensoft-on-ubuntu-januty/</link>
		<comments>http://timony.com/mickzblog/2009/07/08/compiling-eigensoft-on-ubuntu-januty/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 05:34:18 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[fortran]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chemical computing]]></category>
		<category><![CDATA[EIGENSOFT]]></category>
		<category><![CDATA[EIGENSTRAT]]></category>
		<category><![CDATA[example.perl]]></category>
		<category><![CDATA[make]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=665</guid>
		<description><![CDATA[These are rough notes on how to compile Eigensoft 3 on Ubuntu Jaunty. Update, Eigensoft 4 is available and should compile on more recent versions of Ubuntu: http://www.hsph.harvard.edu/faculty/alkes-price/software/ Create a location to build the code: Warning: /tmp is for temporary files, and any files &#38; directories you create there will be remove upon some subsequent [...]]]></description>
			<content:encoded><![CDATA[<p>These are rough notes on how to compile <a href="http://genepath.med.harvard.edu/~reich/Software.htm">Eigensoft 3</a> on Ubuntu Jaunty.</p>
<p><strong>Update</strong>, <em>Eigensoft 4 is available and should compile on more recent versions of Ubuntu:</em><br />
<a href="http://www.hsph.harvard.edu/faculty/alkes-price/software/">http://www.hsph.harvard.edu/faculty/alkes-price/software/</a></p>
<p><strong>Create a location to build the code:</strong></p>
<p><em>Warning:</em> /tmp is for temporary files, and any files &amp; directories you create there will be remove upon some subsequent reboot.</p>
<pre>cd /tmp;</pre>
<pre>mkdir EIGEN;</pre>
<pre>cd  EIGEN;</pre>
<p><strong>Get the Eigensoft source code:</strong></p>
<pre>wget  http://www.hsph.harvard.edu/faculty/alkes-price/files/EIG3.0.tar.gz;</pre>
<pre>tar xzvf EIG3.0.tar.gz;</pre>
<p><strong>Install required dependences:<span id="more-665"></span></strong></p>
<pre>sudo apt-get install f2c libg2c0 libatlas-base-dev liblapack-dev;</pre>
<p>This symbolic link is needed as the Makefile links looks for the static version of the library and not the shared version (correct me if I&#8217;m wrong, it&#8217;s late at night and I could be mistaken):</p>
<pre>sudo ln -s /usr/lib/libg2c.so.0 /usr/lib/libg2c.so;</pre>
<p><strong>Build the code:</strong></p>
<pre>cd /tmp/EIGEN;</pre>
<pre>cd src;</pre>
<p><strong>Create a backup copy of the Makefile:</strong></p>
<pre>cp Makefile  Makefile.org;</pre>
<p><strong>Edit the Makefile:</strong></p>
<pre>emacs -nw Makefile;</pre>
<p><em>Change this line (line 24):</em></p>
<p>FF=g77</p>
<p>To read as:</p>
<p>FF=&#8221;gfortran -std-legacy&#8221;</p>
<p>This is needed as the g77 fortran compiler is not longer included with Ubuntu, but you can use the gfortan compiler instead, but you must run it in legacy mode.</p>
<p><strong>Run make:</strong></p>
<pre>make eigenstrat;</pre>
<p>This next step is essential, because binaries are included in the bin directory that appear to have been build against a 64-bit kernel and are probably artefact&#8217;s left over from when the author was testing his code. Also, running &#8220;make clean&#8221; does not remove the binaries in the bin directory, but does remove those build in the src directory.</p>
<pre>make install;</pre>
<p>And that should be it run the example.perl in the EIGENSTRAT directory and you should see output like this:</p>
<p style="padding-left: 30px;"><em>./example.perl<br />
smartpca.perl -i example.geno  -a example.snp  -b example.ind  -k 2  -o example.pca  -p example.plot  -e example.eval  -l example.log  -m 5  -t 2  -s 6.0<br />
smartpca -p example.pca.par &gt;example.log<br />
ploteig -i example.pca.evec -c 1:2  -p Case:Control  -x  -y  -o example.plot.xtxt<br />
evec2pca.perl 2 example.pca.evec example.ind example.pca<br />
smarteigenstrat.perl  -i example.geno  -a example.snp  -b example.ind  -p example.pca  -k 1  -o example.chisq  -l example.log<br />
smarteigenstrat -p example.chisq.par &gt;example.loggc.perl example.chisq example.chisq.GC</em></p>
<p>If you run into problems running and compiling the code, the README suggests running the following:</p>
<pre>make pcatoy;</pre>
<p>And, as per the README, contact your sys admin if it doesn&#8217;t work. <img src='http://timony.com/mickzblog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/07/08/compiling-eigensoft-on-ubuntu-januty/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Compiling Osra on Ubuntu Jaunty</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/</link>
		<comments>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 14:30:06 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Cplusplus]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gocr]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[ocrad]]></category>
		<category><![CDATA[openbabel]]></category>
		<category><![CDATA[osra]]></category>
		<category><![CDATA[potrace]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646</guid>
		<description><![CDATA[This is a brief HOWTO on compiling OSRA, (Optical Structure Recognition) on Ubuntu Jaunty. To quote the OSRA home page, OSRA is &#8230; is a utility designed to convert graphical representations of chemical structures, as they appear in journal articles, patent documents, textbooks, trade magazines etc., into SMILES (Simplified Molecular Input Line Entry Specification &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>This is a brief HOWTO on compiling <a title="OSRA Home Page" href="http://cactus.nci.nih.gov/osra/">OSRA</a>, (Optical Structure Recognition) on Ubuntu Jaunty. To quote the OSRA home page, OSRA is</p>
<blockquote><p>&#8230; is a utility designed to convert graphical representations of chemical structures, as they appear in journal articles, patent documents, textbooks, trade magazines etc., into SMILES (Simplified Molecular Input Line Entry Specification &#8211; see <a href="http://en.wikipedia.org/wiki/SMILES"> http://en.wikipedia.org/wiki/SMILES</a>) or SD file &#8211;  a computer recognizable molecular structure format.  OSRA can read a document  in any of the over 90 graphical formats parseable by ImageMagick &#8211; including  GIF, JPEG, PNG, TIFF, PDF, PS etc., and generate the SMILES or SDF representation of the molecular structure images encountered within that document &#8230;</p></blockquote>
<p><strong>Make a directory to compile the source:</strong></p>
<p><em>mkdir /tmp/OSRA; cd /tmp/OSRA;</em></p>
<p>Be careful doing this in /tmp is cleaned upon reboot the directory may be removed.</p>
<p><strong>Install dependencies needed by the OS:</strong></p>
<p><em>sudo apt-get install libgraphicsmagick1-dev libmagick++-dev libgraphicsmagick++1-dev potrace gocr  libtclap-dev libopenbabel-dev libopenbabel3 openbabel libnetpbm10 libnetpbm10-dev</em></p>
<p>Don&#8217;t install ocrad and remove it if it&#8217;s on your system (you can probably reinstall if you need to after you get Osra to compile):<br />
<em> sudo apt-get remove &#8211;purge ocrad;</em></p>
<p><strong>Source Code:</strong></p>
<p>Instead of manually getting the source packages download the sources used to build the packages for Ubuntu if available.  Make sure the src lines are commented in, in your /etc/apt/sources.list . This will automatically download and extract the code into the current directory:</p>
<p><em>cd /tmp/OSRA; apt-get source gocr ocrad potrace;</em></p>
<p>This downloads Gocr 0.46 which the OSRA docs say may not work:</p>
<blockquote><p>- GOCR/JOCR, optical character recognition library, version 0.43 or later (version 0.45 recommended, do not use 0.46! See special instructions for 0.47 compilation below)<span id="more-646"></span></p></blockquote>
<p><strong>Get the Osra Source and extract it</strong></p>
<p><em>cd /tmp/OSRA;</em></p>
<p><em>wget http://cactus.nci.nih.gov/osra/osra-1.2.1.tgz;</em></p>
<p><em>tar xzvf osra-1.2.1.tgz</em></p>
<p><em>cd /tmp/OSRA2/osra-1.2.1;</em></p>
<p><strong>Make a backup copy of the OSRA Makefile:</strong></p>
<p><em>cp Makefile Makefile.bak;</em></p>
<p><strong>Edit the Makefile<br />
</strong></p>
<p>Change the following lines:</p>
<p><em>GOCR=../gocr-0.45/</em><br />
to<br />
<em> GOCR=../gocr-0.46/</em></p>
<p><em>OPENBABEL=/usr/local/</em><br />
to<br />
<em>OPENBABEL=/usr/</em></p>
<p><em>TCLAPINC=-I/usr/local/include/tclap/</em><br />
to<br />
<em>TCLAPINC=-I/usr/include/tclap/</em></p>
<p><span style="text-decoration: line-through;"><em>GOCR=../gocr-0.46/</em><br />
to<br />
<em>GOCR=../gocr-0.45/</em></span></p>
<p><strong>Compiling</strong></p>
<p>Compile, but don&#8217;t install the potrace source:<br />
<em>cd /tmp/OSRA/potrace-1.8;<br />
./configure;<br />
make;</em></p>
<p>Compile the OSRA source:<br />
<em>cd /tmp/OSRA/osra-1.2.1;<br />
make;</em></p>
<p>This produces a working OSRA binary:</p>
<p><em>./osra<br />
./osra  [-f &lt;can/smi/sdf&gt;] [-g] [-p] [-s &lt;dimensions, 300x400&gt;] [-n] [-r<br />
&lt;default: auto&gt;] [-o &lt;filename prefix&gt;] [-t &lt;0.2..0.8&gt;] [--]<br />
[--version] [-h] &lt;filename&gt;</em></p>
<p>Now I just need a file to test it against to see if it will run correctly.</p>
<p>If you want to build with Gocr 0.47 this step is required:<br />
<em>cd /tmp/OSRA/gocr-0.47;<br />
./configure CPPFLAGS=-fPIC LDFLAGS=-fPIC;<br />
make libs;<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Stuff I&#8217;ve read or reading &#8230;</title>
		<link>http://timony.com/mickzblog/2009/03/04/stuff-ive-read-or-reading/</link>
		<comments>http://timony.com/mickzblog/2009/03/04/stuff-ive-read-or-reading/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 03:10:19 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=528</guid>
		<description><![CDATA[Some links to stuff I&#8217;ve either read or plan to read which I think is interesting: Python is not Java, tips for Java programmers starting w/ Python: http://dirtsimple.org/2004/12/python-is-not-java.html Python for Bioinformatics: http://www.pasteur.fr/recherche/unites/sis/formation/python/index.html BioPython: http://biopython.org/DIST/docs/tutorial/Tutorial.html I need to know Selenium better, it&#8217;s possible that I might consider using it for a project I might be working [...]]]></description>
			<content:encoded><![CDATA[<p>Some links to stuff I&#8217;ve either read or plan to read which I think is interesting:</p>
<p>Python is not Java, tips for Java programmers starting w/ Python:<br />
<a href="http://dirtsimple.org/2004/12/python-is-not-java.html">http://dirtsimple.org/2004/12/python-is-not-java.html</a><br />
Python for Bioinformatics:<br />
<a href="http://www.pasteur.fr/recherche/unites/sis/formation/python/index.html">http://www.pasteur.fr/recherche/unites/sis/formation/python/index.html</a><br />
BioPython:<br />
<a href="http://biopython.org/DIST/docs/tutorial/Tutorial.htm">http://biopython.org/DIST/docs/tutorial/Tutorial.html</a></p>
<p>I need to know Selenium better, it&#8217;s possible that I might consider using it for a project I might be working on (that sounds like it might have some UI bugs/issues/problems):<br />
<a href="http://seleniumhq.org/">http://seleniumhq.org/</a></p>
<p>10 things every programmer should read (this will take a while to wade through):<br />
<a href="http://blog.objectmentor.com/articles/2009/02/26/10-papers-every-programmer-should-read-at-least-twice">http://blog.objectmentor.com/articles/2009/02/26/10-papers-every-programmer-should-read-at-least-twice</a></p>
<p>Xen Cluster Mgt using Ganeti for Debian Lenny:<br />
<a href="http://www.howtoforge.com/xen-cluster-management-with-ganeti-on-debian-lenny">http://www.howtoforge.com/xen-cluster-management-with-ganeti-on-debian-lenny</a><br />
Ganeti admin guide and install guide:<br />
<a href="http://ganeti-doc.googlecode.com/svn/ganeti-1.2/admin.html">http://ganeti-doc.googlecode.com/svn/ganeti-1.2/admin.html</a><br />
<a href="http://ganeti-doc.googlecode.com/svn/ganeti-1.2/install.html">http://ganeti-doc.googlecode.com/svn/ganeti-1.2/install.html</a></p>
<p>David Byrne (of Talking Heads) interviews Thom Yorke (of Radiohead):<br />
<a href="http://www.wired.com/entertainment/music/magazine/16-01/ff_yorke?currentPage=all">http://www.wired.com/entertainment/music/magazine/16-01/ff_yorke?currentPage=all</a></p>
<p>With a great quote, that shows how well the record companies treat their performing artists (that&#8217;s sarcasm in case you don&#8217;t have a sense of humour). First Radiohead made zip/zilch/nada from EMI sales of digitized versions of their music:</p>
<blockquote><p>Yorke: In terms of digital income, we&#8217;ve made more money out of this record than out of all the other Radiohead albums put together, forever — in terms of anything on the Net. And that&#8217;s nuts. It&#8217;s partly due to the fact that EMI wasn&#8217;t giving us any money for digital sales. All the contracts signed in a certain era have none of that stuff &#8230;</p>
<p>Yorke: &#8230; It&#8217;s about whether the music affects you or not. And why would you worry about an artist or a company going after people copying their music if the music itself is not valued?</p></blockquote>
<p>Then he talks about how the music iteself isn&#8217;t valued, but the business processes surrounding the marketing and selling of music:</p>
<blockquote><p>
Byrne: You&#8217;re valuing the delivery system as opposed to the relationship and the emotional thing&#8230;</p>
<p>Yorke: You&#8217;re valuing the company or the interest of the artists rather than the music itself. I don&#8217;t know. We&#8217;ve always been quite naive. We don&#8217;t have any alternative to doing this. It&#8217;s the only obvious thing to do. </p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/03/04/stuff-ive-read-or-reading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Emacs and tilde files</title>
		<link>http://timony.com/mickzblog/2009/03/02/emacs-and-tilde-files/</link>
		<comments>http://timony.com/mickzblog/2009/03/02/emacs-and-tilde-files/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 18:47:18 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/2009/03/02/emacs-and-tilde-files/</guid>
		<description><![CDATA[By default Emacs saves a copy of the previous version of a file you are editing in the same directory as where the original file is located. It saves a copy with ~ appended to the end of the name. ~ is pronounced tilde. However, some tools and programming environments don&#8217;t know how to handle [...]]]></description>
			<content:encoded><![CDATA[<p>By default Emacs saves a copy of the previous version of a file you are editing in the same directory as where the original file is located. It saves a copy with ~ appended to the end of the name. ~ is pronounced tilde. However, some tools and programming environments don&#8217;t know how to handle these tilde files and this can cause various problems. Someone mentioned on the Boston Ruby list that &#8220;<a href="http://groups.google.com/group/boston-rubygroup/browse_thread/thread/0171b77ffd0abee1?hl=en">Rails 2.3 router picked up emacs tilde ~ file before *.erb.html file &#8230;</a>&#8220;. And the solution is pretty easy, you just tell emacs to save the ~ files in a different directory:<br />
<a href="http://amitp.blogspot.com/2007/03/emacs-move-autosave-and-backup-files.html">http://amitp.blogspot.com/2007/03/emacs-move-autosave-and-backup-files.html</a></p>
<p>Now I wonder is there a way to have it only do this for certain types of files, or only to do it for certain workspaces, that way if I&#8217;m edit a file in a directory named ruby it will save the files elsewhere, otherwise save the file in the CWD.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/03/02/emacs-and-tilde-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RAD7.5 on Debian or Ubuntu</title>
		<link>http://timony.com/mickzblog/2009/02/07/rad75-on-debian-or-ubuntu/</link>
		<comments>http://timony.com/mickzblog/2009/02/07/rad75-on-debian-or-ubuntu/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 02:27:44 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[libstdc++5]]></category>
		<category><![CDATA[rad7]]></category>
		<category><![CDATA[Rational]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=433</guid>
		<description><![CDATA[If your installing RAD 7.5 (IBM Rational Application Developer) on Debian or Ubuntu, install the libstdc++5 package: apt-get install libstdc++5]]></description>
			<content:encoded><![CDATA[<p>If your installing RAD 7.5 (IBM Rational Application Developer) on Debian or Ubuntu, install the libstdc++5 package:</p>
<pre>apt-get install libstdc++5</pre>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/02/07/rad75-on-debian-or-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails for Eclipse!</title>
		<link>http://timony.com/mickzblog/2009/02/05/rails-for-eclipse/</link>
		<comments>http://timony.com/mickzblog/2009/02/05/rails-for-eclipse/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 21:51:10 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=413</guid>
		<description><![CDATA[Aha! There is RoR support for Eclipse, via Aptana. I&#8217;ve just installed it and the instructions are a bit cryptic. Basically you have to install Aptana first (you can do this as an Eclipse plug-in). Then restart Eclipse and then install the Rails plugin called RadRails. Aptana also has Python and PHP support. Install Aptana: [...]]]></description>
			<content:encoded><![CDATA[<p>Aha! There is RoR support for Eclipse, via Aptana. I&#8217;ve just installed it and the instructions are a bit cryptic. Basically you have to install Aptana first (you can do this as an Eclipse plug-in). Then restart Eclipse and then install the Rails plugin called RadRails. Aptana also has Python and PHP support.</p>
<p>Install Aptana:</p>
<p>In Eclipse click on <em>Help-&gt;Software Updates</em>. Then click on the <em>Available Software </em>tab, then click on <em>Add Site</em> and paste this URL into the Dialog Box that opens:<br />
<a href="http://update.aptana.com/install/3.2/">http://update.aptana.com/install/3.2/</a></p>
<div id="attachment_414" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-414" href="http://timony.com/mickzblog/2009/02/05/rails-for-eclipse/eclipse_aptana_install/"><img class="size-medium wp-image-414" title="Eclipse Aptana Install Dialog" src="http://timony.com/mickzblog/wp-content/uploads/2009/02/eclipse_aptana_install-300x140.jpg" alt="Eclipse Aptana Install Dialog" width="300" height="140" /></a><p class="wp-caption-text">Eclipse Aptana Install Dialog</p></div>
<p>Install Aptana, then restart Eclipse. Aptana will then prompt you to install the Subversion plugin, then restart.</p>
<p>When Eclipse restarts following the same procedure as above, except add the following site for Rails support:<br />
<a href="http://update.aptana.com/install/rails/3.2/"> http://update.aptana.com/install/rails/3.2/</a></p>
<p>And restart Eclipse. Aptanta may prompt for further plugins, some of which are from their Professional version which will only work for 60 days.</p>
<p>This works with Eclipse 3.4, and should work on 3.3 and 3.2.</p>
<p>IBM shows how to use RadRails:</p>
<p><a href="http://www.ibm.com/developerworks/opensource/library/os-ecl-radrails/">http://www.ibm.com/developerworks/opensource/library/os-ecl-radrails/</a></p>
<p>Complete install instructions:</p>
<p><a href="http://ubuntumagnet.com/2008/01/installing-eclipse-radrails-and-subclipse-under-ubuntu-710-gutsy-gibbon">http://ubuntumagnet.com/2008/01/installing-eclipse-radrails-and-subclipse-under-ubuntu-710-gutsy-gibbon</a></p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/02/05/rails-for-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netbeans 6.5, with Ruby on Rails &amp; JMaki</title>
		<link>http://timony.com/mickzblog/2009/02/02/netbeans-61-with-ruby-on-rails-jmaki/</link>
		<comments>http://timony.com/mickzblog/2009/02/02/netbeans-61-with-ruby-on-rails-jmaki/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 21:10:19 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Scriptaculous]]></category>
		<category><![CDATA[spry]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=381</guid>
		<description><![CDATA[While writing some RoR code at home (or at least trying to grok the RoR way) I&#8217;ve alternating between using Emacs &#38; Netbeans 6.5. Emacs is one true editor to rule them all, but what it&#8217;s lacking is code completion such as in Netbeans. I was working on test RoR project last night with Emacs, [...]]]></description>
			<content:encoded><![CDATA[<p>While writing some RoR code at home (or at least trying to grok the RoR way) I&#8217;ve alternating between using Emacs &amp; Netbeans 6.5. Emacs is one true editor to rule them all, but what it&#8217;s lacking is code completion such as in Netbeans.</p>
<p>I was working on test RoR project last night with Emacs, and after a couple of hours imported the project into Netbeans 6.1 (a painless process). When I opened the &#8220;.erb&#8221; file I had been editing in Emacs, I noticed a panel on the right side of Netbeans titled &#8220;Palette&#8221;, that allows easy creation of html items such as tables &amp; lists. It also, includes JMaki support for Dojo, Yahoo&#8217;s YUI, Scriptaculous, Spry, &amp; JQuery, which allows quick and easy insertion of Ajax features using JMaki. After about 5 minutes of mucking around with various Ajax tables, I was easily able to replace a basic HTML table with a prettier, sortable, Yahoo YUI, Dojo, or JQuery tables.</p>
<p>Here&#8217;s a rough example, showing the difference between an list, and a sortable Yahoo YUI table created with Netbeans &amp; JMaki:</p>
<p style="text-align: center;"><a rel="attachment wp-att-382" href="http://timony.com/mickzblog/2009/02/02/netbeans-61-with-ruby-on-rails-jmaki/jmaki_table/"><img class="size-full wp-image-382 aligncenter" title="JMaki Yahoo YUI Table vs HTML Table" src="http://timony.com/mickzblog/wp-content/uploads/2009/02/jmaki_table.jpg" alt="Sample Tables" width="179" height="119" /></a></p>
<p>This is fairly powerful, and for those inexperienced with Ajax provides a quick and simple way to add Ajax features to a web-page or application as it provides Ruby constructs to create the necessary JavaScript and encapsulates the programmer away from the JavaScript. On the other hand, if your an &#8220;ace Ajax guru&#8221; this doesn&#8217;t allow you to directly write and access JavaScript, and the abstraction might seem like an hindrance.</p>
<p>Here&#8217;s a quickie overview showing how to use the JMaki features using a 6.1 beta and<em> Ruby on Rails</em>:</p>
<p><a href="http://blogs.sun.com/arungupta/entry/jmaki_on_rails_reloaded_for">http://blogs.sun.com/arungupta/entry/jmaki_on_rails_reloaded_for</a></p>
<p>And a more recent generic overview using 6.1 &amp; standard HTML/JSP:</p>
<p><a href="http://www.netbeans.org/kb/docs/web/ajax-jmaki-quickstart.html">http://www.netbeans.org/kb/docs/web/ajax-jmaki-quickstart.html</a></p>
<p>What&#8217;s also useful, is that JMaki in Netbeans creates the same looking code on your HTML rendering page, which means that if you can create JMaki widgets using Java you can easily do the same with RoR, and presumably with PHP.</p>
<p>If your haven&#8217;t looked at Netbeans 6.1 or haven&#8217;t tried Netbeans in a while, I do think there are some really useful features that sometime give it the edge over it main competitor Eclipse. I use both IDE&#8217;s regularly, and prefer Eclipse for Java &amp; Perl development, but for RoR (especially on Linux) and Ajax features I think Netbeans is the winner (for now). However, there is a JMaki <a title="JMaki Eclipse Plug-in" href="https://ajax.dev.java.net/eclipse/">plugin</a> for Eclipse which I haven&#8217;t tried that might be comparable (for Java applications).</p>
<p>Using both IDE&#8217;s could be a useful addition to a programmer&#8217;s toolbox. What I must do next is test Netbeans with a J2EE project created under Eclipse and see if I can use both IDE&#8217;s on the same project without problems. It be interesting to see if I can edit the Java code with Eclipse and then modify the view and add JavaScript/Ajax feature with Netbeans.</p>
<p>More information about JMaki can be found at:</p>
<p><a title="JMaki Home" href="https://ajax.dev.java.net/">https://ajax.dev.java.net/</a></p>
<p>Updated: Fixed version number, it&#8217;s Netbeans 6.5 and not 6.1. Fixed typos from writing tooo fast.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/02/02/netbeans-61-with-ruby-on-rails-jmaki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable mod_perl on Debian, Ubuntu, &amp; Other Linuxes.</title>
		<link>http://timony.com/mickzblog/2009/01/31/mod_perl/</link>
		<comments>http://timony.com/mickzblog/2009/01/31/mod_perl/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 02:44:56 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[directories]]></category>
		<category><![CDATA[enable]]></category>
		<category><![CDATA[ExecCGI]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[ModPerl]]></category>
		<category><![CDATA[mod_perl]]></category>
		<category><![CDATA[perl-script]]></category>
		<category><![CDATA[PerlSendHeader]]></category>
		<category><![CDATA[pl]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SetHandler]]></category>
		<category><![CDATA[sites-available]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=377</guid>
		<description><![CDATA[To enable mod_perl with Apache2 on Debian &#38; Ubuntu for all directories served up by Apache2, including user directories such as ~/public_html, add the following lines to /etc/apache2/sites-available/default # enable mod_perl     &#60;Files ~ "\.(pl&#124;cgi)$"&#62;            SetHandler perl-script            PerlResponseHandler ModPerl::Registry            Options +ExecCGI            PerlSendHeader On     &#60;/Files&#62; In a real production environment you [...]]]></description>
			<content:encoded><![CDATA[<p>To enable mod_perl with Apache2 on Debian &amp; Ubuntu for all directories served up by Apache2, including user directories such as ~/public_html, add the following lines to /etc/apache2/sites-available/default</p>
<pre># enable mod_perl
    &lt;Files ~ "\.(pl|cgi)$"&gt;
           SetHandler perl-script
           PerlResponseHandler ModPerl::Registry
           Options +ExecCGI
           PerlSendHeader On
    &lt;/Files&gt;</pre>
<p>In a real production environment you probably don&#8217;t want to enable this for all directories that Apache2 serves up, but only from those directories you expect to run perl in.</p>
<p>Thanks to this <a title="mod_perl question on Ubuntu Forums" href="http://ubuntuforums.org/archive/index.php/t-78161.html">thread</a> on the Ubuntu Forums for the info.</p>
<p>Titled updated as per Ozkar&#8217;s suggestion.</p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2009/01/31/mod_perl/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Netbeans 6.5 on Debian</title>
		<link>http://timony.com/mickzblog/2008/12/03/netbeans-65-on-debian/</link>
		<comments>http://timony.com/mickzblog/2008/12/03/netbeans-65-on-debian/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 04:55:41 +0000</pubDate>
		<dc:creator>Mick</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jvm]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://timony.com/mickzblog/?p=310</guid>
		<description><![CDATA[Doesn&#8217;t perform badly, I&#8217;ve been using it recently with Ruby code, and I like how it colourises the code to make editing code easier, and performs it auto-completion and method lookup (basically all the features you&#8217;d expect with a modern IDE). It&#8217;s does&#8217;t startup as fast as using Emacs, or vi, but I find the [...]]]></description>
			<content:encoded><![CDATA[<p>Doesn&#8217;t perform badly, I&#8217;ve been using it recently with Ruby code, and I like how it colourises the code to make editing code easier, and performs it auto-completion and method lookup (basically all the features you&#8217;d expect with a modern IDE).</p>
<p>It&#8217;s does&#8217;t startup as fast as using Emacs, or vi, but I find the features very handy and very convenient. It doesn&#8217;t look  bad either. It runs better on my PC at home running Debian Linux than it does on my PC at work running WinXP. This is probably because I&#8217;m using a 1.5 JVM on WinXP and a 1.6 JVM on Debian. Running on 1.6 JVM&#8217;s means that Netbeans will automatically use anti-aliased fonts if you have anti-aliased fonts enabled (much easier on the eyes if your using a LCD screen).</p>
<p><a href="http://timony.com/mickzblog/wp-content/uploads/2008/12/screenshot-r4rmusic1-netbeans-ide-65.jpg"><img class="aligncenter size-medium wp-image-311" title="Netbeans 6.5 on Debian Linux" src="http://timony.com/mickzblog/wp-content/uploads/2008/12/screenshot-r4rmusic1-netbeans-ide-65-300x238.jpg" alt="" width="300" height="238" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://timony.com/mickzblog/2008/12/03/netbeans-65-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

