<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>Musings</title>
	<link>http://jwlandry.org/blog</link>
	<description>Reviews, tips, commentary, and other miscellanea</description>
	<pubDate>Wed, 10 Oct 2007 01:11:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>PyX 0.10 is out</title>
		<link>http://jwlandry.org/blog/?p=4</link>
		<comments>http://jwlandry.org/blog/?p=4#comments</comments>
		<pubDate>Wed, 10 Oct 2007 01:11:43 +0000</pubDate>
		<dc:creator>jwl</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Plotting]]></category>

		<guid isPermaLink="false">http://jwlandry.org/blog/?p=4</guid>
		<description><![CDATA[PyX version 0.10 is out.  3d plotting is now available.  It looks ok, though there is something weird about the axis labeling in the first example.  Maybe it has to be rotated more efficiently.
If you aren&#8217;t familiar with PyX, it is a plotting program with a Python interface that generates beautiful postscript [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pyx.sourceforge.net">PyX</a> version 0.10 is out.  <a href="http://pyx.sourceforge.net/examples/3dgraphs">3d</a> plotting is now available.  It looks ok, though there is something weird about the axis labeling in the first example.  Maybe it has to be rotated more efficiently.</p>
<p>If you aren&#8217;t familiar with <a href="http://pyx.sourceforge.net">PyX</a>, it is a plotting program with a Python interface that generates beautiful postscript or pdf plots and drawings using the TeX and LaTeX interpreters to render everything.  Nothing else looks as good as TeX, so the plots from PyX look terrific.</p>
]]></content:encoded>
			<wfw:commentRss>http://jwlandry.org/blog/?feed=rss2&amp;p=4</wfw:commentRss>
		</item>
		<item>
		<title>Using LaTeX with matplotlib</title>
		<link>http://jwlandry.org/blog/?p=3</link>
		<comments>http://jwlandry.org/blog/?p=3#comments</comments>
		<pubDate>Tue, 22 Nov 2005 03:39:16 +0000</pubDate>
		<dc:creator>jwl</dc:creator>
		
		<category><![CDATA[LaTeX]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://jwlandry.org/blog/?p=3</guid>
		<description><![CDATA[Matplotlib is a great program with a python interface for making 2D plots, both with python scripts and interactively.  It can display plots with a variety of interfaces and also output them as eps, etc.
One nice feature is that using matplotlib.texmanager, you can have it use your native LaTeX installation interpret everything in the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://matplotlib.sf.net">Matplotlib</a> is a great program with a python interface for making 2D plots, both with python scripts and interactively.  It can display plots with a variety of interfaces and also output them as eps, etc.</p>
<p>One nice feature is that using matplotlib.texmanager, you can have it use your native LaTeX installation interpret everything in the plot.  That means everything has the same font and style as the program you are embedding it in, and you can put any kind of mathematical formula you like in there.</p>
<p>There is documentation on <a href="http://matplotlib.sourceforge.net/matplotlib.texmanager.html">texmanager</a> and also a little tutorial in the matplotlib examples called tex_demo.py.</p>
<p>Essentially, you need to set the following in your python script to activate latex interpretation:<br />
<code><br />
rc('text', usetex=True)<br />
</code><br />
and only export to eps or ps.  Only PS and Agg are supported formats for LaTeX.</p>
<p>To get this working on Fedora Core 4, you need a newer version of ghostscript, downloadable in source format from <a href="http://www.cs.wisc.edu/~ghost/">here</a>.  Get ghostscript version 8.51 and the fonts tarball, and make sure you have libjpeg-devel, libpng-devel, and zlib-devel installed.</p>
<p>You can just do the standard for the ghostscript-8.51 source directory structure<br />
<code><br />
% ./configure<br />
% make<br />
% make install<br />
</code><br />
as root, and it will automatically install in /usr/local.  I didn&#8217;t need the fonts directory at all for my tests, but it may be necessary in some situations.</p>
<p>Once it is installed, matplotlib should create latex files naturally, and they will look great!</p>
<p>UPDATE:</p>
<p>There is a problem with the pygtk threading code that can sometimes cause the TeX output to fail.  One way around this is to use the TkAgg extension instead.  Just make sure you have that option installed and edit your matplotlibrc file to use TkAgg as the default backend, and it should produce TeX output perfectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://jwlandry.org/blog/?feed=rss2&amp;p=3</wfw:commentRss>
		</item>
		<item>
		<title>Maxtor One Touch II external hard drive with Linux</title>
		<link>http://jwlandry.org/blog/?p=2</link>
		<comments>http://jwlandry.org/blog/?p=2#comments</comments>
		<pubDate>Sun, 30 Oct 2005 23:40:08 +0000</pubDate>
		<dc:creator>jwl</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://jwlandry.org/blog/?p=2</guid>
		<description><![CDATA[I recently purchased a Maxtor One Touch II external hard drive to use for backups with my Linux and Windows boxes.  Since I&#8217;m going to use rsync (using cygwin on Windows) for backups, I don&#8217;t care about the one touch functionality.
So I followed the excellent advice from Harish Narayanan and that seems to work [...]]]></description>
			<content:encoded><![CDATA[<p>I recently purchased a Maxtor One Touch II external hard drive to use for backups with my Linux and Windows boxes.  Since I&#8217;m going to use rsync (using cygwin on Windows) for backups, I don&#8217;t care about the one touch functionality.</p>
<p>So I followed the excellent advice from <a href="http://www-personal.umich.edu/~hnarayan/maxtor-harddrive-linux.html">Harish Narayanan</a> and that seems to work fine.  Thanks Harish!  I&#8217;m using Fedora Core 4 with kernel version kernel-2.6.13-1.1532_FC4.</p>
<p>Plug in the external drive.  It should be detected and mounted to /media/usbdrive automatically by the machine.  You should do all this as root:<br />
<code><br />
# su<br />
</code><br />
You can check if it is there by running dmesg, using the tail to get only the last part.  It should show up as /dev/sda1.<br />
<code><br />
# dmesg | tail<br />
</code><br />
You can check for this by running<br />
<code><br />
# dmesg | grep Maxtor<br />
 Vendor: Maxtor    Model: OneTouch II       Rev: 023g<br />
</code></p>
<p>Now you want to reformat the drive, using fdisk<br />
<code><br />
# /sbin/fdisk /dev/sda1<br />
</code><br />
Once in fdisk, look for the partition tables by hitting &#8216;p&#8217;, then delete them using &#8216;d&#8217;, then write this to disk using &#8216;w&#8217;.  You will get an error message, but don&#8217;t worry.  The new partition will be written.  Harish says to reboot at this point, but I think all you have to do is unmount the drive using<br />
<code><br />
umount /media/usbdrive<br />
</code><br />
and then unplug and then plug it back in.  </p>
<p>At this point, you can then format it correctly, using<br />
<code><br />
# /sbin/mkfs -t ext3 -j /dev/sda1<br />
</code><br />
and wait for it to format as an ext3 filesystem.</p>
<p>At this point, I am stopping, because I don&#8217;t think you need to create a /mnt/external at all.  You can just count on Fedora Core 4 to autodetect it as /media/usbdrive and write to that when you connect it.</p>
<p>In a later post, I will talk about rsync and how to use it to back up disks.</p>
<p>Update: actually <a href="http://www.nongnu.org/rdiff-backup/">rdiff-backup</a> looks substantially easier to use and seems to have all the features I need.  Later post will discuss that.</p>
]]></content:encoded>
			<wfw:commentRss>http://jwlandry.org/blog/?feed=rss2&amp;p=2</wfw:commentRss>
		</item>
		<item>
		<title>First post</title>
		<link>http://jwlandry.org/blog/?p=1</link>
		<comments>http://jwlandry.org/blog/?p=1#comments</comments>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<dc:creator>jwl</dc:creator>
		
		<category><![CDATA[Administration]]></category>

		<guid isPermaLink="false">/?p=1</guid>
		<description><![CDATA[This is the first post to the blog.  This blog will contain musings on a variety of topics, from book reviews to software tips and tricks.  I reserve the right to edit comments or update posts, but I will always label them as such.
]]></description>
			<content:encoded><![CDATA[<p>This is the first post to the blog.  This blog will contain musings on a variety of topics, from book reviews to software tips and tricks.  I reserve the right to edit comments or update posts, but I will always label them as such.</p>
]]></content:encoded>
			<wfw:commentRss>http://jwlandry.org/blog/?feed=rss2&amp;p=1</wfw:commentRss>
		</item>
	</channel>
</rss>
