<?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>Sysadmin Ramblings &#187; Geek</title>
	<atom:link href="http://ramblings.narrabilis.com/wp/category/geek/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramblings.narrabilis.com/wp</link>
	<description>Scripts, settings, and fixes...</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:29:37 +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>no more adsense</title>
		<link>http://ramblings.narrabilis.com/wp/no-more-adsense/</link>
		<comments>http://ramblings.narrabilis.com/wp/no-more-adsense/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 11:44:53 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/?p=246</guid>
		<description><![CDATA[I don&#8217;t really see the benefit of using adsense anymore.  Everyone knows they&#8217;re ads, no one clicks.  It doesn&#8217;t pay my isp bills anymore, so I&#8217;m dropping it.  They were only annoying anyway.]]></description>
			<content:encoded><![CDATA[I don&#8217;t really see the benefit of using adsense anymore.  Everyone knows they&#8217;re ads, no one clicks.  It doesn&#8217;t pay my isp bills anymore, so I&#8217;m dropping it.  They were only annoying anyway.]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/no-more-adsense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>recovering deleted files vfat linux &#8211; picasa deleted my pictures</title>
		<link>http://ramblings.narrabilis.com/wp/recovering-deleted-files-vfat-linux-picasa-deleted-my-pictures/</link>
		<comments>http://ramblings.narrabilis.com/wp/recovering-deleted-files-vfat-linux-picasa-deleted-my-pictures/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 03:49:21 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/?p=215</guid>
		<description><![CDATA[Ok, I accept a little bit of the blame for this one.  I started to import my photos using picasa.  The first three pictures that were imported were poor, so I decided to delete them.  At that point they were the only pictures in the folder, so Picasa decided to delete the [...]]]></description>
			<content:encoded><![CDATA[Ok, I accept a little bit of the blame for this one.  I started to import my photos using picasa.  The first three pictures that were imported were poor, so I decided to delete them.  At that point they were the only pictures in the folder, so Picasa decided to delete the folder, even though an import was going on to that folder.  All the rest of the pictures went into the abyss.  Pretty lame IMHO.  Picasa should probably check that it&#8217;s copying the files to a good location before deleting them from the card.<span id="more-215"></span>
<p>
Luckily someone was nice enough to write an easy undelete, <a href="http://www.cgsecurity.org/wiki/TestDisk">testdisk</a> has a nice utility called photorec.  I started up photorec with the device of my media card and it found all the deleted photos (486 vacation pics).
<code><br />
[root@imanidiot ~]# photorec /d Recovered /dev/sdb<br />
</code>
Photorec has a nice curses menu that was easy to understand and it recovered my files fast.  They have versions for linux, windows and dos and that other annoying thing with an X in it.
<p>
Thanks a lot CGSecurity.
]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/recovering-deleted-files-vfat-linux-picasa-deleted-my-pictures/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>using a mimo um-710 on linux (displaylink) with udlfb driver</title>
		<link>http://ramblings.narrabilis.com/wp/using-a-mimo-um-710-on-linux-displaylink-with-udlfb-driver/</link>
		<comments>http://ramblings.narrabilis.com/wp/using-a-mimo-um-710-on-linux-displaylink-with-udlfb-driver/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 19:06:39 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/?p=211</guid>
		<description><![CDATA[We&#8217;ve had this dream for some time of having a display that we can control from our desktops but mounted in the hallway.  The idea would be to use the sign in place of post-it notes or some other sort of messageboard arrangement.  We&#8217;ve tried the Kodak EX811 in the past with limited [...]]]></description>
			<content:encoded><![CDATA[We&#8217;ve had this dream for some time of having a display that we can control from our desktops but mounted in the hallway.  The idea would be to use the sign in place of post-it notes or some other sort of messageboard arrangement.  We&#8217;ve tried the Kodak EX811 in the past with limited success, we used mediatomb to control the kodak, but wheneverthe wireless network had problems or the kodak got confused, it would just go to a blank screen, hardly useful.
<span id="more-211"></span>
<p>
In walks the mimo, it&#8217;s a usb connected display, we found drivers for it here.  You can extend your X desktop onto the screen using the supplied drivers, but we only wanted to display one image at a time on the screen.  We opted to use a combination of tools to just cat data directly to the framebuffer device, and yes this incredibly silly arrangement actually works.  Here is the script we are using, we hope to replace this with something compiled later.
<code>#!/bin/sh<br />
&nbsp;<br />
SIZE=&#039;800x480!&#039;<br />
RESIZED=`mktemp -u /tmp/XXXXXXXX`.png<br />
CONVERTED=`mktemp /tmp/XXXXXXXX`<br />
if [ xxx${FRAMEBUFFER}xxx == &#039;xxxxxx&#039; ]; then<br />
&nbsp;&nbsp;FRAMEBUFFER=/dev/fb0<br />
fi<br />
&nbsp;<br />
CURRENT=/var/www/lighttpd/assets/current.jpg<br />
&nbsp;<br />
while [ 1 ]<br />
do<br />
&nbsp;&nbsp;convert -resize $SIZE $CURRENT $RESIZED<br />
&nbsp;&nbsp;mkdfiff -f RGB16 $RESIZED &gt; $CONVERTED<br />
&nbsp;&nbsp;dd if=$CONVERTED of=$FRAMEBUFFER bs=1 skip=24<br />
&nbsp;&nbsp;sleep 30<br />
done</code>

Hopefully useful to someone else out there&#8230;.
<p>
Here is our (<a href="http://allmybase.com">Ben Rose</a> and I) first attempt at a C version of the above&#8230;
<a href="/src/framebugger.tar.bz2">framebugger.tar.bz2</a>
<p>
<code>/* read color value from pixel (left-&gt;right, up-&gt; down) then convert<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * from RGB32 to RGB16 using code from directfb */<br />
for (j = 0; j &lt; gdImageSY(gdPtr); j++) {<br />
&nbsp;&nbsp;for (i = 0; i &lt; gdImageSX(gdPtr); i++) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;c = RGB32_TO_RGB16(gdImageGetPixel(gdPtr, i, j));<br />
&nbsp;&nbsp;&nbsp;&nbsp;fwrite(&amp;c,2,1,fbout);<br />
&nbsp;&nbsp;}<br />
}</code>]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/using-a-mimo-um-710-on-linux-displaylink-with-udlfb-driver/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dismantling the Gamecube (Taking apart the Gamecube)</title>
		<link>http://ramblings.narrabilis.com/wp/dismantling-the-gamecube-taking-apart-the-gamecube/</link>
		<comments>http://ramblings.narrabilis.com/wp/dismantling-the-gamecube-taking-apart-the-gamecube/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 16:46:07 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/dismantling-the-gamecube-taking-apart-the-gamecube/</guid>
		<description><![CDATA[I was thinking of making a component cable for myself, but this turned out to be too big a project.  Here is the dismantling of the gamecube instead.

There are 4 proprietary screws holding the bottom of the case to the top.  They look like an E6 to me, external Torx #6.  I [...]]]></description>
			<content:encoded><![CDATA[I was thinking of making a component cable for myself, but this turned out to be too big a project.  Here is the dismantling of the gamecube instead.
<span id="more-99"></span>
There are 4 proprietary screws holding the bottom of the case to the top.  They look like an E6 to me, external Torx #6.  I tried an E6 socket with no success, the hole in which the screw resides is very deep.
<p>
<a href="/GC/screw.jpg"><img height=200 src="/GC/screw-thumb.jpg" border=0></a> <a href="/GC/screw-head.jpg"><img height=200 src="/GC/screw-head-thumb.jpg" border=0></a>
<p>
<!--adsense#inline-->
First thing you&#8217;ll need is the screwdriver.  I got mine from ebay.  Two types are available, the screwdriver and the bit.  I think the bit is probably more useful, you can put it on a powered screwdriver that way.
<p>
<a href="/GC/screwdriver.jpg"><img height=200 src="/GC/screwdriver-thumb.jpg" border=0></a> <a href="/GC/bit.jpg"><img height=200 src="/GC/bit-thumb.jpg" border=0></a>
<p>
There are 4 screws holding the base to the top, after removing those screws the top just slides off.
<p>
<a href="/GC/top-half-off.jpg"><img height=200 src="/GC/top-half-off-thumb.jpg" border=0></a> <a href="/GC/top-removed.jpg"><img height=200 src="/GC/top-removed-thumb.jpg" border=0></a>
<p>
Next you remove all the screws holding the cd player to the motherboard.  It&#8217;s worth noting that the nintendo design is very technician friendly.  All the major components use sockets and are easily removed.
<p>
<a href="/GC/cd.jpg"><img height=200 src="/GC/cd-thumb.jpg" border=0></a> <a href="/GC/cd-connector.jpg"><img height=200 src="/GC/cd-connector-thumb.jpg" border=0></a>
<p>
With the CD removed you can unclip the front and back panels.  The front panel holds the controller ports and memory slots.  Once those are removed, you remove the 6 screws holding the motherboard to the bottom board.  There is some circuitry below the motherboard that I didn&#8217;t bother dismantling.
<p>
<a href="/GC/motherboard-top.jpg"><img height=200 src="/GC/motherboard-top-thumb.jpg" border=0></a> <a href="/GC/motherboard-bottom.jpg"><img height=200 src="/GC/motherboard-bottom-thumb.jpg" border=0></a>
<p>
Once you have removed the motherboard and turned it over, you can clearly see the pins for the digital and analog ports.
<p>
<a href="/GC/motherboard-connectors.jpg"><img height=200 src="/GC/motherboard-connectors-thumb.jpg" border=0></a> <a href="/GC/motherboard-pins.jpg"><img height=200 src="/GC/motherboard-pins-thumb.jpg" border=0></a>
<p>]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/dismantling-the-gamecube-taking-apart-the-gamecube/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Gamecube progressive scan cable (taking apart the gamecube)</title>
		<link>http://ramblings.narrabilis.com/wp/gamecube-progressive-scan-cable/</link>
		<comments>http://ramblings.narrabilis.com/wp/gamecube-progressive-scan-cable/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 13:59:42 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/gamecube-progressive-scan-cable/</guid>
		<description><![CDATA[The original Gamecube had two ports on the back, DIGITAL AV OUT and ANALOG AV OUT.  It is possible to get Composite and S-Video out of the Analog port.  The Digital Port is actually digital, the component cable from Nintendo  has a digital to analog converter chip embedded in the plug.  [...]]]></description>
			<content:encoded><![CDATA[The original Gamecube had two ports on the back, DIGITAL AV OUT and ANALOG AV OUT.  It is possible to get Composite and S-Video out of the Analog port.  The Digital Port is actually digital, the component cable from Nintendo  has a digital to analog converter chip embedded in the plug.  <span id="more-98"></span>
<p>
I&#8217;ve read people say that the digital port on the gamecube is a standard in Japan, I can find no evidence of this though.  AFAIK the plug is nintendo specific and the HD connector in Japan is a <a href="http://en.wikipedia.org/wiki/D-Terminal">D-Terminal</a>.  Also, the D-Terminal is an analog connection, so again AFAIK there is no direct way to connect anything to the digital port and display video.
<p>
<!--adsense#inline-->
The signal coming out of the gamecube is reported to be <a href="http://en.wikipedia.org/wiki/YCbCr">YCbCr</a>.  The signal needed by component is <a href="http://en.wikipedia.org/wiki/YPbPr">YPbPr</a>.
<p>
The chip in the cable has the following printed on it:

<table border=0>
<tr>
<td rowspan=3><font size=+3>MX</font></td><td>B012355</td>
</tr>
<tr><td>CMPV-DOL</td></tr>
<tr><td>T21642K1</td></tr>
</table>
<a href="/GC/cable-chip.jpg"><img border=0 src="/GC/cable-chip-thumb.jpg"></a>

As far as I know there isn&#8217;t a lot of information on the chip.
<!--adsense#bottom-->
<P>
<a href="http://ramblings.narrabilis.com/wp/dismantling-the-gamecube-taking-apart-the-gamecube/">Here is my page on dismantling the Gamecube.</a>
<p>
To take the cable apart, you just need to bend the thumbs that are holding the top to the bottom, there are 6 holes in the bottom of the cable, if you insert a small screwdriver in there, you can feel the thumb and bend it back to pry the top and botom apart.
<p>
<a href="/GC/cable-pins.jpg"><img src="/GC/cable-pins-thumb.jpg" width=200 border=0></a> <a href="/GC/cable-casing.jpg"><img src="/GC/cable-casing-thumb.jpg" width=200 border=0>
<p>
Once you have the top off, you can remove the metal shell and expose the board
<p>
<a href="/GC/cable-board.jpg"><img src="/GC/cable-board-thumb.jpg" width=200 border=0></a> <a href="/GC/cable-board2.jpg"><img src="/GC/cable-board2-thumb.jpg" width=200 border=0>
<p>
With the cover off you can clearly see the red green and blue colored cables for the component video coming off the board.
<p>
<a href="/GC/cable-wires.jpg"><img src="/GC/cable-wires-thumb.jpg" width=200 border=0></a> <a href="/GC/cable-top.jpg"><img src="/GC/cable-top-thumb.jpg" width=200 border=0>
<p>
I found <a href="http://gamesx.com/wiki/doku.php?id=av:nintendodigitalav">one page posting a pinout for the digital connector</a>, I don&#8217;t know if this is accurate though.
In case it goes away here it is:
There are 22 pins
<table border=1 bgcolor="#eee">
<tr><td>1</td><td>DetectCable (pull high)</td><td>2</td><td>54MHz Clock </td></tr>
<tr><td>3</td><td>ClkSelect(C10)</td><td>4</td><td>Ground</td></tr>
<tr><td>5</td><td>+12V</td><td>6</td><td>27MHz Clock</td></tr>
<tr><td>7</td><td>Data0 (C09)</td><td>8</td><td>Ground</td></tr>
<tr><td>9</td><td>Data1 (C08)</td><td>10</td><td>Data2 (C07)</td></tr>
<tr><td>11</td><td>Ground</td><td>12</td><td>Data3 (C06)</td></tr>
<tr><td>13</td><td>Data4 (C04)</td><td>14</td><td>Ground</td></tr>
<tr><td>15</td><td>Data5 (C03)</td><td>16</td><td>Data6 (C02)</td></tr>
<tr><td>17</td><td>3.3V</td><td>18</td><td>Data7 (C01)</td></tr>
<tr><td>19</td><td>LRCK (Audio)</td><td>20</td><td>Ground</td></tr>
<tr><td>21</td><td>Data (Audio)</td><td>22</td><td>BCK (Audio)</td></tr>
</table>
<p>
Your best bet for making something work is to find the MX chip and solder something up on the motherboard, the connectors are going to be just as hard to find as the component cables.

I was experimenting with a LMH1251 since it does all the same work as the MX chip, but without knowing the particulars of the MX chip it didn&#8217;t go far.  Maybe if I find a gamecube for 10$ I&#8217;ll try soldering something up.]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/gamecube-progressive-scan-cable/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Rifftrax for the Matrix using sharecrow matrix.crow</title>
		<link>http://ramblings.narrabilis.com/wp/rifftrax-for-the-matrix-using-sharecrow-matrixcrow/</link>
		<comments>http://ramblings.narrabilis.com/wp/rifftrax-for-the-matrix-using-sharecrow-matrixcrow/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 17:29:16 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/rifftrax-for-the-matrix-using-sharecrow-matrixcrow/</guid>
		<description><![CDATA[A couple of friends and I decided to try out rifftrax.  We decided on the Matrix as our first film.  Rifftrax.com is a great idea, finally the MST3k style can be applied to movies too popular or expensive to otherwise make fun of.  We eventually enjoyed the riff, but syncing wasn&#8217;t as [...]]]></description>
			<content:encoded><![CDATA[A couple of friends and I decided to try out rifftrax.  We decided on the Matrix as our first film.  Rifftrax.com is a great idea, finally the MST3k style can be applied to movies too popular or expensive to otherwise make fun of.  We eventually enjoyed the riff, but syncing wasn&#8217;t as simple as we had hoped.  We initally just opened up two vlc windows and manually synced that way.

One great line was in the dojo,
Morpheus: &#8220;You think that&#8217;s air you&#8217;re breathing?&#8221;
Riff: &#8220;Little baby thinks he&#8217;s breathing air
 little baby air breather&#8221;


I enclose my crow file, I hope it works for someone.  To follow the instructions at www.sharecrow.com/Rifftrax.htm we had to use Title 13 on our DVD, Title 1 would not work.  Also, our DVD Start time was 0:00:01.499, the sync timecode from rifftrax was 2.27, so we had to take this into account when doing the initial sync.

<h3><a href="/crow/matrix.crow">matrix.crow</a></h3> 

It&#8217;s a shame the crows are provided, without them it&#8217;s a big pain to keep the dvd in sync.  Still, it&#8217;s a great idea, I hope to see Xanadu and Lord of the Rings up there soon.  ]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/rifftrax-for-the-matrix-using-sharecrow-matrixcrow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto watch progressive scan dvd&#8217;s or gamecube on a VGA only LCD projector</title>
		<link>http://ramblings.narrabilis.com/wp/howto-watch-progressive-scan-dvds-or-gamecube-on-a-vga-only-lcd-projector/</link>
		<comments>http://ramblings.narrabilis.com/wp/howto-watch-progressive-scan-dvds-or-gamecube-on-a-vga-only-lcd-projector/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 03:40:25 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/howto-watch-progressive-scan-dvds-or-gamecube-on-a-vga-only-lcd-projector/</guid>
		<description><![CDATA[
I purchased a Proxima DPP6850 off ebay.
Because the projector is a few years old, it doesn&#8217;t have any component video capability.  It has composite, s-video and two rgbvh (VGA) inputs. 




The composite video display is not very good at the size of my screen (100&#8221;), I tried S-Video but the improvement was not enough. [...]]]></description>
			<content:encoded><![CDATA[<img border=0 src="/images/projector_connections-thumb.jpg" style="float:right;margin-right:1em">
I purchased a <a href="http://www.projectorcentral.com/Proxima-DP6850.htm">Proxima DPP6850</a> off ebay.
Because the projector is a few years old, it doesn&#8217;t have any component video capability.  It has composite, s-video and two rgbvh (VGA) inputs. 
<p>
<span id="more-17"></span>
<!--adsense#bottom-->
<a href="http://www.lik-sang.com/info.php?products_id=4233&#038;likref=froogle2"><img border=0 src="/images/adapter-thumb.jpg" style="float:left;margin-right:1em"></a>
The composite video display is not very good at the size of my screen (100&#8221;), I tried S-Video but the improvement was not enough.  I started researching adapters, the one I eventually 
I got this adapter.
<a href="/images/adapter_box.jpg"><img src="/images/adapter_box-thumb.jpg" style="float:right;margin-right:1em"></a>
The adapter only does progressive scan, it does not work on non-progressive component output.  You&#8217;ll have to setup your DVD for progressive output, in my case I did this using the composite input so I could see what I was doing, then switched to the adapter on the RGB input.  The difference is really very noticable and the noise is almost completely removed.  The inability to see non progressive output is somewhat of a nuisance, but you can always resort to the composite in a pinch. 
<p>
<img border=0 src="/images/superav.gif" style="float;margin=1em">
The adapter I have is pretty good, I also tried this adapter and the image was actually poorer than composite.  Also this adapter does not display progressive scan.  I&#8217;m still looking for a good component to RGB adapter, but so far, the progressive only one is the best I&#8217;ve tried.
<p>
<hr />
<p>
<table border=0 width=100%>
<tbody>
<tr><th colspan=2>Sample Output</th></tr>
<tr>
<td><a href="/images/corner_gas.jpg"><img src="/images/corner_gas-thumb.jpg"></a></td>
<td><a href="/images/partridge.jpg"><img src="/images/partridge-thumb.jpg"></a></td>
</tr>
<tr>
<td><a href="/images/sprunt.jpg"><img src="/images/sprunt-thumb.jpg"></a></td>
<td><a href="/images/the_incident.jpg"><img src="/images/the_incident-thumb.jpg"></a></td>
</tr>
<tr>
<td><a href="/images/puss.jpg"><img src="/images/puss-thumb.jpg"></a></td>
</tr>
</tbody>
</table>
<!--adsense-->]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/howto-watch-progressive-scan-dvds-or-gamecube-on-a-vga-only-lcd-projector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ICMP Parameters and my iptables table</title>
		<link>http://ramblings.narrabilis.com/wp/icmp-parameters/</link>
		<comments>http://ramblings.narrabilis.com/wp/icmp-parameters/#comments</comments>
		<pubDate>Mon, 06 Mar 2006 16:57:18 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/icmp-parameters/</guid>
		<description><![CDATA[The Internet Control Message Protocol (ICMP) has many messages that
are identified by a &#8220;type&#8221; field.  I use the types to specify what actions to take in my custom iptables config.


My iptables configuration has a separate table for icmp traffic.  This way icmp traffic is handled on it&#8217;s own.
I create the table in /etc/sysconfig/iptables:

:icmp-in [...]]]></description>
			<content:encoded><![CDATA[The Internet Control Message Protocol (ICMP) has many messages that
are identified by a &#8220;type&#8221; field.  I use the types to specify what actions to take in my custom iptables config.
<span id="more-18"></span>
<!--adsense#bottom-->
My iptables configuration has a separate table for icmp traffic.  This way icmp traffic is handled on it&#8217;s own.
I create the table in /etc/sysconfig/iptables:
<code><br />
:icmp-in - [0:0] <br />
:icmp-out - [0:0]<br />
</code>
Then I create some allow rules so that all icmp traffic is allowed within my own network, adding the first rule for lo (loopback) is really important if you are going to start blocking icmp.  The last two rules here allow icmp traffic outbound and any subsequent inbound traffic (established, related).
<code><br />
-A INPUT -i lo -p icmp -j icmp-in<br />
-A INPUT -p icmp &#45;-icmp-type 8 -s 10.0.0.0/8 -i eth0 -j ACCEPT<br />
-A INPUT -p icmp -m state &#45;-state ESTABLISHED,RELATED -j ACCEPT<br />
-A OUTPUT -p icmp -m state &#45;-state NEW,ESTABLISHED,RELATED -j ACCEPT<br />
</code>

Next I go down the table of codes (see the end of this post) and decide if I want to accept, reject or return the packets based on type.
<!--adsense#bottom-->
<code><br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 0 -j ACCEPT<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 3 -j RETURN<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 4 -j RETURN<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 8 -j ACCEPT<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 11 -j RETURN<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 12 -j RETURN<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 14 -j RETURN<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 16 -j RETURN<br />
-A icmp-in -p icmp -m icmp &#45;-icmp-type 18 -j RETURN<br />
-A icmp-out -p icmp -m icmp &#45;-icmp-type 0 -j ACCEPT<br />
-A icmp-out -p icmp -m icmp &#45;-icmp-type 4 -j RETURN<br />
-A icmp-out -p icmp -m icmp &#45;-icmp-type 8 -j ACCEPT<br />
-A icmp-out -p icmp -m icmp &#45;-icmp-type 12 -j RETURN<br />
-A icmp-out -p icmp -m icmp &#45;-icmp-type 13 -j RETURN<br />
-A icmp-out -p icmp -m icmp &#45;-icmp-type 15 -j RETURN<br />
-A icmp-out -p icmp -m icmp &#45;-icmp-type 17 -j RETURN<br />
&nbsp;<br />
</code>
Many ICMP types have a &#8220;code&#8221; field.  Here is a list of the types
with their assigned code fields.
<table border=0>
<tbody>
<tr>
<th>Type</th><th>Name</th>
</tr>
<tr valign=top>
  <td>0</td><td>Echo Reply<br />
Codes:<br />
            0  No Code</td>
</tr>
 <tr valign=top><td>1</td><td>Unassigned</td></tr>
 <tr valign=top><td>2</td><td>Unassigned</td></tr>
 <tr valign=top><td>3</td><td>Destination Unreachable<br />
Codes:<br />
	    0  Net Unreachable<br />
	    1  Host Unreachable<br />
            2  Protocol Unreachable<br />
            3  Port Unreachable<br />
            4  Fragmentation Needed and Don&#8217;t Fragment was Set<br />
            5  Source Route Failed<br />
            6  Destination Network Unknown<br />
            7  Destination Host Unknown<br />
            8  Source Host Isolated<br />
            9  Communication with Destination Network is
               Administratively Prohibited<br />
           10  Communication with Destination Host is
               Administratively Prohibited<br />
           11  Destination Network Unreachable for Type of Service<br />
           12  Destination Host Unreachable for Type of Service<br />
           13  Communication Administratively Prohibited<br />
           14  Host Precedence Violation<br />
           15  Precedence cutoff in effect</td></tr>
<tr valign=top><td>4</td><td>Source Quench<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>5</td><td>Redirect<br />
Codes:<br />
            0  Redirect Datagram for the Network (or subnet)<br />
            1  Redirect Datagram for the Host<br />
            2  Redirect Datagram for the Type of Service and Network<br />
            3  Redirect Datagram for the Type of Service and Host</td></tr>
<tr valign=top><td>6</td><td>Alternate Host Address<br />
Codes:<br />
            0  Alternate Address for Host</td></tr>
<tr valign=top><td>7</td><td>Unassigned<td></tr>
<tr valign=top><td>8</td><td>Echo<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>9</td><td>Router Advertisement<br />
Codes:<br />
            0  Normal router advertisement<br />
           16  Does not route common traffic </td></tr>
<tr valign=top><td>10</td><td>Router Selection<br />
Codes&#8221;<br />
            0  No Code</td></tr>
<tr valign=top><td>11</td><td>Time Exceeded<br />
Codes:<br />
            0  Time to Live exceeded in Transit<br />
            1  Fragment Reassembly Time Exceeded</td></tr>
<tr valign=top><td>12</td><td>Parameter Problem <br />
Codes:<br />
            0  Pointer indicates the error<br />
            1  Missing a Required Option<br />
            2  Bad Length</td></tr>
<tr valign=top><td>13</td><td>Timestamp<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>14</td><td>Timestamp Reply<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>15</td><td>Information Request<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>16</td><tr>Information Reply<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>17</td><td>Address Mask Request<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>18</td><td>Address Mask Reply<br />
Codes:<br />
            0  No Code</td></tr>
<tr valign=top><td>19</td><td>Reserved (for Security)</td></tr>
<tr valign=top><td>20-29</td><td>Reserved (for Robustness Experiment)</td></tr>
<tr valign=top><td>30</td><td>Traceroute</td></tr>
<tr valign=top><td>31</td><td>Datagram Conversion Error</td></tr>
<tr valign=top><td>32</td><td>Mobile Host Redirect</td></tr>

 <tr valign=top><td>33</td><td>IPv6 Where-Are-You</td></tr>
 <tr valign=top><td>34</td><td>IPv6 I-Am-Here </td></tr>
 <tr valign=top><td>35</td><td>Mobile Registration Request</td></tr>

 <tr valign=top><td>36</td><td>Mobile Registration Reply</td></tr>

 <tr valign=top><td>39</td><td>SKIP </td></tr>

 <tr valign=top><td>40</td><td>Photuris<br />
Codes:<br />
            0 = Bad SPI<br />
            1 = Authentication Failed<br />
            2 = Decompression Failed<br />
            3 = Decryption Failed<br />
            4 = Need Authentication<br />
            5 = Need Authorization</td></tr>
<tr valign=top><td>41-255</td><td>Reserved</td></tr>
</tbody>
</table>]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/icmp-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto get progressive scan on Nintendo Gamecube</title>
		<link>http://ramblings.narrabilis.com/wp/howto-get-progressive-scan-on-nintendo-gamecube/</link>
		<comments>http://ramblings.narrabilis.com/wp/howto-get-progressive-scan-on-nintendo-gamecube/#comments</comments>
		<pubDate>Mon, 06 Mar 2006 04:37:51 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/howto-get-progressive-scan-on-nintendo-gamecube/</guid>
		<description><![CDATA[Digital AV Out

To watch Gamecube games in progressive scan, you need to have a gamecube with digital out.  Since 2004, Nintendo took the digital port off the gamecube.  You can get your gamecube replaced with a model with the port directly from Nintendo.



Component Cable

Next you need the component cable.  The cable is [...]]]></description>
			<content:encoded><![CDATA[<h3>Digital AV Out</h3>
<a href="/images/gamecube_ports.jpg"><img border=0 src="/images/gamecube_ports-thumb.jpg" style="float:right;margin-right:1em"></a>
To watch Gamecube games in progressive scan, you need to have a gamecube with digital out.  Since 2004, Nintendo took the digital port off the gamecube.  You can get your gamecube replaced with a model with the port directly from <a href="http://www.nintendo.com/consumer/systems/nintendogamecube/component_faq.jsp">Nintendo</a>.
<p>
<span id="more-16"></span>
<!--adsense#bottom-->
<h3>Component Cable</h3>
<a href="/images/gamecube_cabled.jpg"><img border=0 src="/images/gamecube_cabled-thumb.jpg" style="float:right;margin-right:1em"></a>
<div>Next you need the component cable.  The cable is no longer available from Nintendo.  You can get the cable directly from <a href "http://store.nintendo.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10001&#038;storeId=10001&#038;langId=-1&#038;currency=USD&#038;ignoreCrumbs=N&#038;crumb1=&#038;crumb1Ignore=&#038;translateFrom=%C8%C9%C7&#038;translateTo=EEC&#038;usrSearchText=&#038;searchText=&#038;selSrchType=&#038;page=&#038;view=&#038;productId=63594&#038;categoryId=44009&#038;lastAction=ProductDisplay&#038;orderTotal=null">Nintendo</a>, but they do tend to sell out quickly.  There is a lot of people selling this cable on ebay for amazing profit, the retail from Nintendo is $29.95.</div>
<p>
For all you out there who are thinking of making a cable yourself now that Nintendo has stopped, please read <a href="http://ramblings.narrabilis.com/wp/gamecube-progressive-scan-cable/">this.</a>
My page on the <a href="http://ramblings.narrabilis.com/wp/gamecube-progressive-scan-cable/">component cable</a> and another on <a href="http://ramblings.narrabilis.com/wp/dismantling-the-gamecube-taking-apart-the-gamecube/">dismantling the gamecube.</a>
<p>
<h3>Turn on Progressive Scan</h3>
Now with all the cables connected (note, that the component cable is only for video, you still need the analog cable for audio), turn on your gamecube and hold down the &#8216;B&#8217; button while booting to turn on progressive scan mode. <a href="/images/confirm_ps.jpg"><img border=0 height=75 src="/images/confirm_ps-thumb.jpg" style="float:left;margin-right:1em"></a>.  You will see a confirmation dialog (note that the composite video continues to work until you confirm that you wish to use progressive scan). <a href="/images/ps_on.jpg"><img border=0 height=75 src="/images/ps_on-thumb.jpg" style="float:right"></a>. Click the &#8216;A&#8217; button to confirm that you wish to use progressive scan mode.  Not all games support progressive scan (why?  why not, what possibly extra work could it be?  It&#8217;s probably just a compile time option, what&#8217;s the point in not including it).  The flagship games all seem to have it.  Sonic 3d has it, and Metroid. <a href="http://ramblings.narrabilis.com/wp/gamecube-progressive-scan-game-list/">My Progressive Scan Gamelist</a>
<p>
<!--adsense-->
<h3>Comparison of composite to progressive scan</h3>
Here is the difference in output from my projector (note, it&#8217;s pretty difficult to take good pics, it&#8217;s much better live than these pics can show :-( ).
<table border=0>
<tbody>
<tr align=center>
  <td><a href="/images/mario_comp.jpg"><img border=0 src="/images/mario_comp-thumb.jpg"></a><br />Composite</td>
  <td><a href="/images/mario_ps.jpg"><img border=0 src="/images/mario_ps-thumb.jpg"></a><br />Progressive Scan/Component</td>
</tr>
<tr align=center>
  <td><a href="/images/zelda_comp.jpg"><img border=0 src="/images/zelda_comp-thumb.jpg"></a><br />Composite</td>
  <td><a href="/images/zelda_ps.jpg"><img border=0 src="/images/zelda_ps-thumb.jpg"></a><br />Progressive Scan/Component</td>
</tr>
</tbody>
</table>
<p>
So yes, a gamecube can do progressive scan, and yes the picture is much much much better.  And no, the composite are not out of focus, that&#8217;s just what composite looks like on a 100&#8221; screen.  Although, working out the holding down &#8216;B&#8217; part could drive you nuts and make you do <a href="http://david.narrabilis.com/2006/03/01/the-incident/">insane</a> things.]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/howto-get-progressive-scan-on-nintendo-gamecube/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Radio Codes</title>
		<link>http://ramblings.narrabilis.com/wp/radio-codes/</link>
		<comments>http://ramblings.narrabilis.com/wp/radio-codes/#comments</comments>
		<pubDate>Tue, 15 Nov 2005 21:58:04 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/radio-codes/</guid>
		<description><![CDATA[10-1&#160;&#160; Signal weak&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 10-8&#160;&#160; In service
10-2&#160;&#160; Signal good&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 10-9&#160;&#160; Repeat
10-3&#160;&#160; Stop transmitting&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 10-10&#160;&#160;Negative
10-4&#160;&#160; Affirmative&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 10-12&#160;&#160;Stand by
10-6&#160;&#160; Busy&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10-19&#160;&#160;Return to station
10-7&#160;&#160; Out of service&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;10-23&#160;&#160;Arrived at scene
 ]]></description>
			<content:encoded><![CDATA[<pre>10-1&nbsp;&nbsp; Signal weak&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10-8&nbsp;&nbsp; In service<br />
10-2&nbsp;&nbsp; Signal good&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10-9&nbsp;&nbsp; Repeat<br />
10-3&nbsp;&nbsp; Stop transmitting&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10-10&nbsp;&nbsp;Negative<br />
10-4&nbsp;&nbsp; Affirmative&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10-12&nbsp;&nbsp;Stand by<br />
10-6&nbsp;&nbsp; Busy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10-19&nbsp;&nbsp;Return to station<br />
10-7&nbsp;&nbsp; Out of service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10-23&nbsp;&nbsp;Arrived at scene</pre>
<a href="http://www.math.ias.edu/~uphill/content/posts/radio-codes5.php"> </a>]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/radio-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
