<?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>Kenneths Blob &#187; Uncategorized</title>
	<atom:link href="http://blog.langly.org/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.langly.org</link>
	<description>My rants about everything</description>
	<lastBuildDate>Wed, 28 Apr 2010 18:10:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New blog</title>
		<link>http://blog.langly.org/2009/09/26/new-blog/</link>
		<comments>http://blog.langly.org/2009/09/26/new-blog/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 07:56:01 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.langly.org/2009/09/26/new-blog/</guid>
		<description><![CDATA[As maybe the observant reader can see, I&#8217;ve chickend out and replaced my old blog system, pyblosxom, with wordpress.
Just me being waay to lazy  
]]></description>
			<content:encoded><![CDATA[<p>As maybe the observant reader can see, I&#8217;ve chickend out and replaced my old blog system, pyblosxom, with wordpress.</p>
<p>Just me being waay to lazy <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2009/09/26/new-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sixty Symbols</title>
		<link>http://blog.langly.org/2009/04/23/sixty-symbols/</link>
		<comments>http://blog.langly.org/2009/04/23/sixty-symbols/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 10:47:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">posts/23042009-sixtysymbols</guid>
		<description><![CDATA[
Just came over this one: Sixty Symbols from the Uni. of Nottingham. Basically, it&#8217;s a collection of 5 minutes youtube videos where scientists talks about a mathematical symbol / constant of their choice


And it&#8217;s really not as boring as it sounds like. They even have rockets under η 
]]></description>
			<content:encoded><![CDATA[<p>
Just came over this one: <a href="http://www.sixtysymbols.com/#">Sixty Symbols</a> from the Uni. of Nottingham. Basically, it&#8217;s a collection of 5 minutes youtube videos where scientists talks about a mathematical symbol / constant of their choice
</p>
<p>
And it&#8217;s really not as boring as it sounds like. They even have rockets under η <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2009/04/23/sixty-symbols/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CUDA: Hacking PTX code.</title>
		<link>http://blog.langly.org/2009/02/12/cuda-hacking-ptx-code/</link>
		<comments>http://blog.langly.org/2009/02/12/cuda-hacking-ptx-code/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 09:24:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[GPU]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">gpu/12022009-ptx</guid>
		<description><![CDATA[
In order to provide the CUDA developer with a low level programming
language without exposing any of the underlying instruction set, NVIDIA
have given us, the developers, the option to program in PTX ( Parallel
Thread eXecution ). The PTX being somewhat similar to &#8220;assembly code&#8221; in
structure opens up a new set of features to the developer, which ]]></description>
			<content:encoded><![CDATA[<p>
In order to provide the CUDA developer with a low level programming<br />
language without exposing any of the underlying instruction set, NVIDIA<br />
have given us, the developers, the option to program in PTX ( Parallel<br />
Thread eXecution ). The PTX being somewhat similar to &#8220;assembly code&#8221; in<br />
structure opens up a new set of features to the developer, which in<br />
certain cases might be useful to take advantage of. One case which I use<br />
a lot in my daily work is the ability to internally time blocks of code<br />
within a thread using the %clock register( Somewhat like the Time Stamp<br />
Counter on x86 ), which is not exposed through the CUDA high level<br />
language.
</p>
<p>
Although useful, the documentation is rather poor. Let me rephrase that.<br />
The PTX code itself is pretty well documented in the Nvidia SDK<br />
documentation, in the CUDA/docs/ptx_1.x.pdf file, with everything you<br />
need to know about the instruction format. However, its application is<br />
poorly documented in the documentation of the nvidia cuda compiler (<br />
nvcc.pdf ), and thus I thought I could be as kind as to provide you with<br />
a small hands on tutorial.
</p>
<p>
First, what I&#8217;ve found works best is to do some cheating, and let the<br />
compiler itself create a skeleton framework for me. This allows me to<br />
rapidly start developing the PTX code, without the boring part where I<br />
have to create all the auxiliary files by hand. What I usually do is to<br />
write a small skeleton .cu file, where I just create an empty __global__<br />
function with the correct parameters. Hence my initial skeleton file<br />
would look something like:
</p>
<p><div class="codesnip-container" >
<div class="c codesnip" style="font-family:monospace;"><span class="coMULTI">/* Cu-code */</span><br />
<span class="co2">#include &lt;cuda.h&gt;</span></p>
<p>__global__ <span class="kw4">void</span> zeroKernel<span class="br0">&#40;</span><span class="kw4">int</span> <span class="sy0">*</span>in<span class="sy0">,</span> <span class="kw4">int</span> <span class="sy0">*</span>out<span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; out<span class="br0">&#91;</span>threadIdx.<span class="me1">x</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="nu0">0</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></p>
<p><span class="kw4">int</span> main<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//** Set up **/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;&lt;&lt;</span>threads<span class="sy0">,</span> grid<span class="sy0">&gt;&gt;&gt;</span> zeroKernel<span class="br0">&#40;</span>foo<span class="sy0">,</span>bar<span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="coMULTI">/** Tear down **/</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>
 I would then run the nvcc with the command <i>&#8220;nvcc main.cu –ext=all<br />
–dir=a.out.devcode&#8221;</i>  in order to have it create the necessary files for me.<br />
Some explanation is needed though. One very useful feature of the CUDA runtime<br />
library is the support for what they call code repositories. During execution,<br />
the CUDA binary will check its current directory for a sub directory  and look<br />
for child directories, containing a cubin file. If the executable file finds a<br />
file matching his kernel, he will use the one from the code repository instead<br />
of the one found embedded in his binary file. The matching cubin file for the<br />
kernel can be seen here:
 </p>
<p><pre>
// cubin
architecture {sm_10}
abiversion   {1}
modname      {cubin}
code {
    name = _Z4testPiS_
    lmem = 0
    smem = 24
    reg  = 3
    bar  = 0
    const {
            segname = const
            segnum  = 1
            offset  = 0
            bytes   = 4
        mem {
            0x00000004
        }
    }
    bincode {
        0x00000005 0x60004780 0x30010209 0xc4100780
        0x1000ca05 0x0423c780 0x60040005 0x00000003
        0xd00e0209 0xa0c00781
    }
}
</pre>
</p>
<p>
The cubin file, is the executable file, and keeps all information<br />
needed by the binary application in order to execute. It also contains<br />
the kernel code in the <b>CODE</b> section of the cubin file itself. Quite<br />
nifty. For those of you especially interested in the binary format<br />
itself, Wladimir J. van der Laan has created an assembler / disassembler<br />
for the G80 architecture[1], and which can be read if you want to learn<br />
more about the true instruction set of the nvidia G80.
</p>
<p>
Besides the .cubin file, it should be a couple of files named comp_10 or<br />
comp_12, depending on which architecture you tried to compile the<br />
original .cu file to. This file will contain the PTX code for you to<br />
start code in, although with some extra directives such as debug<br />
statements, and various other lines of unneeded code. The following<br />
figure shows how the PTX code for the zeroKernel looks when compiled<br />
into PTX, minus the crud:
</p>
<p><pre>
/**
	PTX code
**/
.version 1.3

.entry _Z4testPiS_
{
    .reg .u16 %rh<3>;
    .reg .u32 %r<6>;
    .param .u32 __cudaparm__Z4testPiS__in;
    .param .u32 __cudaparm__Z4testPiS__out;
    .loc    14  5   0
	$LBB1__Z4testPiS_:
    .loc    14  6   0

    mov.u32     %r1, 0;

    ld.param.u32    %r2, [__cudaparm__Z4testPiS__out];
    mov.u16     %rh1, %tid.x;
    mul.wide.u16    %r3, %rh1, 4;
    add.u32     %r4, %r2, %r3;

    st.global.u32   [%r4+0], %r1;
    .loc    14  7   0
    exit;
$LDWend__Z4testPiS_:
}
</pre>
</p>
<p>
The given PTX code is the one that you can modify for your own purpose.<br />
Hence an easy check to make sure that the tool chain works is to change<br />
the <i>&#8220;mov.u32 %r1, 0;&#8221;</i> to <i>&#8220;mov.u32 %r1, 0xDEADBEEF;&#8221;</i>, which should give a<br />
different output from your main kernel. When done modifying the kernel,<br />
you can run <i>&#8220;ptxas -o sm10&#8243;</i> which will give you an updated of the cubin<br />
file itself. Careful though, ptxas will output by default to sm10<br />
architecture, so if your GPU/Tesla supports a different architecture you<br />
have to set this with the -arch sm_XX option.
</p>
<h3>Links: </h3>
<p>
[1] <a href="http://www.cs.rug.nl/~wladimir/decuda/">Decuda</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2009/02/12/cuda-hacking-ptx-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Perian &#8212; Codex for QuickTime</title>
		<link>http://blog.langly.org/2008/10/23/perian-codex-for-quicktime/</link>
		<comments>http://blog.langly.org/2008/10/23/perian-codex-for-quicktime/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 19:04:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">mac/23102008-perian</guid>
		<description><![CDATA[
So, I&#8217;m going to kick off my new mac category by recommending a new
recommendation for a nice app for OsX. Usually, I&#8217;m a fond user of VLC when it
comes to playing my media. However, it seems like the newest version has some
bugs in it, notably some problems with some files. Thus I was trying to ]]></description>
			<content:encoded><![CDATA[<p>
So, I&#8217;m going to kick off my new mac category by recommending a new<br />
recommendation for a nice app for OsX. Usually, I&#8217;m a fond user of VLC when it<br />
comes to playing my media. However, it seems like the newest version has some<br />
bugs in it, notably some problems with some files. Thus I was trying to play my<br />
media with quicktime, only to end up in the eternal codec hell.
</p>
<p>
However, I came over a small app ( Not as much an app as a collection of codecs )<br />
named <a href="http://perian.org/">Perian</a>. I installed it the usual way you install stuff in OsX, and it allowed me to play all my files through QuickTime by installing all the needed codecs. Check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2008/10/23/perian-codex-for-quicktime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Returned from Acaces08</title>
		<link>http://blog.langly.org/2008/07/21/returned-from-acaces08/</link>
		<comments>http://blog.langly.org/2008/07/21/returned-from-acaces08/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 19:21:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">school/phd/21062008-acaces</guid>
		<description><![CDATA[So, last week I went with some of my fellow Ph.D students to Acaces, which is a summer school
for computer architects and compiler designers. Here we could meet up with a
lot of other students and industry people from the rest of the world, to build
network and learn stuff in classes.
Needless to say, I had a ]]></description>
			<content:encoded><![CDATA[<p>So, last week I went with some of my fellow Ph.D students to <a href="http://www.hipeac.net/acaces2008/">Acaces</a>, which is a summer school<br />
for computer architects and compiler designers. Here we could meet up with a<br />
lot of other students and industry people from the rest of the world, to build<br />
network and learn stuff in classes.</p>
<p>Needless to say, I had a great time and got to meet a lot of new people. I<br />
hope I can get back next year as well.</p>
<p><a rel="lightbox" href="http://langly.org/tmp/acaces08.jpg"><img src="http://langly.org/tmp/acaces08.jpg" alt="" height="200" /></a></p>
<p>Even a pretty picture stolen from Andreas Popp. If my prof. asks what we<br />
did on that picture, the answer is that we were discussing computers, not<br />
sitting in the sun relaxing <img src='http://blog.langly.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2008/07/21/returned-from-acaces08/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update on the UTF-8</title>
		<link>http://blog.langly.org/2008/03/28/update-on-the-utf-8/</link>
		<comments>http://blog.langly.org/2008/03/28/update-on-the-utf-8/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 22:16:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">hacking/27032008-mutt-utf8</guid>
		<description><![CDATA[So, a couple of weeks ago I posted a entry on how
to make your favorite mail client ( MUTT ) read HTML mails, using links. Now
for most mails that works just fine, but I seemed to have some problems with
certain character sequences. Now, I did some playing around, only to figure out
that the easiest thing ]]></description>
			<content:encoded><![CDATA[<p>So, a couple of weeks ago I posted a <a<br />
href="http://blog.langly.org/hacking/05022008-mutt-htmlmail">entry</a> on how<br />
to make your favorite mail client ( MUTT ) read HTML mails, using links. Now<br />
for most mails that works just fine, but I seemed to have some problems with<br />
certain character sequences. Now, I did some playing around, only to figure out<br />
that the easiest thing was to switch the embedded reader to w3m instead. ( It<br />
seems like elinks have some problems with chars that look like this: \123 )</p>
<p>
So, the quick fix is to put this in your .mailcap file instead:<br />
<i><br />
text/html; w3m -I %{charset} -dump %s; nametemplate=%s.html; copiousoutput<br />
</i><br />
and it will display everything correctly <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2008/03/28/update-on-the-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daylight savings time</title>
		<link>http://blog.langly.org/2008/03/10/daylight-savings-time/</link>
		<comments>http://blog.langly.org/2008/03/10/daylight-savings-time/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 21:52:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">posts/10032008-dst-problems</guid>
		<description><![CDATA[
So, first some background. This weekend the Americans introduced their
DST. Well, not everybody did but most parts of the United States as well
as Canada. This as always quite confusing to the big masses.

Now as a part of my personalized Google search thing, I&#8217;ve added the hot
trends application. All in hope that it will some day ]]></description>
			<content:encoded><![CDATA[<p>
So, first some background. This weekend the Americans introduced their<br />
DST. Well, not everybody did but most parts of the United States as well<br />
as Canada. This as always quite confusing to the big masses.
</p>
<p>Now as a part of my personalized Google search thing, I&#8217;ve added the hot<br />
trends application. All in hope that it will some day help me spot the<br />
hot trends on the internet. Which it did this weekend as the Americans<br />
switched to DST ( Otherwise I would have blatantly ignored it ). With no<br />
further delay, I present you the screen shot showing the top 100 search<br />
terms on Google, having no less than 18 related to time <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p><a<br />
href="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2125"<br />
rel="lightbox"><br />
<img height="200"<br />
src="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2125"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2008/03/10/daylight-savings-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 UPS and the Coffee machine.</title>
		<link>http://blog.langly.org/2008/03/06/3-ups-and-the-coffee-machine/</link>
		<comments>http://blog.langly.org/2008/03/06/3-ups-and-the-coffee-machine/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 17:34:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">school/06032008-coffee</guid>
		<description><![CDATA[
So, I feel this one is worth bloging about  . Yesterday, we had a power
outage at the university. And with no power to drive our computers, the
only sane thing would be to sit and drink coffee. But making coffee
without power is somewhat of a challenge. However, as Ph.D students, we
are expected to solve the ]]></description>
			<content:encoded><![CDATA[<p>
So, I feel this one is worth bloging about <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Yesterday, we had a power<br />
outage at the university. And with no power to drive our computers, the<br />
only sane thing would be to sit and drink coffee. But making coffee<br />
without power is somewhat of a challenge. However, as Ph.D students, we<br />
are expected to solve the unsolvable, and we did. </p>
<p>
<a href="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2120&#038;g2_serialNumber=2" rel="lightbox"><br />
	<img height="200" src="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2120&#038;g2_serialNumber=2"><br />
</a></p>
<p>
We first tried with one UPS, but that seemed to fail. We had to bring in<br />
two more to be able to drive the coffee machine, but two UPSs managed to<br />
create 3 coffees ( That is, two rounds of coffee making ). You can see<br />
the final picture here <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p><a href="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2124&#038;g2_serialNumber=2" rel="lightbox"><br />
	<img height="200" src="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2124&#038;g2_serialNumber=2"><br />
</a></p>
<p>
And yes, I know I should clean the cell phone camera. Expect the paper pretty soon, we just have to sort out the<br />
authors list <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2008/03/06/3-ups-and-the-coffee-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First OGP post</title>
		<link>http://blog.langly.org/2008/02/19/first-ogp-post/</link>
		<comments>http://blog.langly.org/2008/02/19/first-ogp-post/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 21:00:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[GPU]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">ogp/firstpost</guid>
		<description><![CDATA[
Seeing how I&#8217;m lately have grown more and more involved into the OpenGraphics project, I&#8217;ve started a
separate blog category for it.  For those unaware of the OpenGraphics
project, we&#8217;re trying to create an open graphics board. At the moment
we&#8217;re close to having the Verilog down for the two main chips, just some
infrastructure and testing left.


And ]]></description>
			<content:encoded><![CDATA[<p>
Seeing how I&#8217;m lately have grown more and more involved into the <a<br />
href="http://opengraphics.org">OpenGraphics</a> project, I&#8217;ve started a<br />
separate blog category for it.  For those unaware of the OpenGraphics<br />
project, we&#8217;re trying to create an open graphics board. At the moment<br />
we&#8217;re close to having the Verilog down for the two main chips, just some<br />
infrastructure and testing left.
</p>
<p>
And what&#8217;s a blog entry about hardware without a screenshot. I still<br />
enjoy watching the RTL Schematics output from ISE, even after a couple<br />
of projects <img src='http://blog.langly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><p>
<a href="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2115&#038;g2_serialNumber=2" rel="lightbox"><br />
<img src="http://imgs.langly.org/main.php?g2_view=core.DownloadItem&#038;g2_itemId=2115&#038;g2_serialNumber=2" height="200"><br />
</a><br />
<br />
An I<sup>2</sup>C master I&#8217;m working on between writing tests.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2008/02/19/first-ogp-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making HTML mails work with Mutt</title>
		<link>http://blog.langly.org/2008/02/06/making-html-mails-work-with-mutt/</link>
		<comments>http://blog.langly.org/2008/02/06/making-html-mails-work-with-mutt/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 10:04:00 +0000</pubDate>
		<dc:creator>kenneo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">hacking/05022008-mutt-htmlmail</guid>
		<description><![CDATA[Well, there&#8217;s a lot of people sending HTML mails out there. And it&#8217;s starting
to get annoying not being able to read them in our favorite mail client, Mutt.
Now, I know, mails being sent in HTML format are usually not worth reading, but
here&#8217;s a quick how-to anyways.

in your .mailcap file put something like this:

text/html;links %s; nametemplate=%s.html
text/html;links ]]></description>
			<content:encoded><![CDATA[<p>Well, there&#8217;s a lot of people sending HTML mails out there. And it&#8217;s starting<br />
to get annoying not being able to read them in our favorite mail client, Mutt.<br />
Now, I know, mails being sent in HTML format are usually not worth reading, but<br />
here&#8217;s a quick how-to anyways.</p>
<p>
in your .mailcap file put something like this:</p>
<pre>
text/html;links %s; nametemplate=%s.html
text/html;links -dump %s; nametemplate=%s.html; copiousoutput
</pre>
</p>
<p>Now, somewhere in your .muttrc put this line:</p>
<pre>
auto_view text/html
</pre>
<p>and you should be all set to read HTML mail in your favorite mail client.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.langly.org/2008/02/06/making-html-mails-work-with-mutt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
