<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>wonkablog &#187; Programming</title>
	<atom:link href="http://wonkabar.org/category/computers/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://wonkabar.org</link>
	<description>cornflakes, cartoons, dragons, linux, multimedia, psychology, teenagers</description>
	<lastBuildDate>Wed, 25 Jan 2012 01:25:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='wonkabar.org' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>wonkablog &#187; Programming</title>
		<link>http://wonkabar.org</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wonkabar.org/osd.xml" title="wonkablog" />
	<atom:link rel='hub' href='http://wonkabar.org/?pushpress=hub'/>
		<item>
		<title>pear list</title>
		<link>http://wonkabar.org/2011/04/19/pear-list/</link>
		<comments>http://wonkabar.org/2011/04/19/pear-list/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 22:11:29 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1408</guid>
		<description><![CDATA[I&#8217;ve been tinkering with PEAR at work, switching between using portage to install stuff and sometimes using pear directly to install it. One thing that&#8217;d be nice is to get a list of the packages installed in pear command-line syntax. &#8230; <a href="http://wonkabar.org/2011/04/19/pear-list/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1408&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been tinkering with PEAR at work, switching between using portage to install stuff and sometimes using pear directly to install it.</p>
<p>One thing that&#8217;d be nice is to get a list of the packages installed in pear command-line syntax.  I.e. pear install MDB2-beta.</p>
<p>So, here&#8217;s a quick reference to convert the output of &#8220;pear list&#8221; to a list you can use with pear:</p>
<p><code>pear list | egrep "(stable|beta|alpha)$" | while read line; do echo $line | cut -d " " -f 1,3 --output-delimiter=-; done</code></p>
<p>A sample output would be:</p>
<p>$ pear list<br />
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:<br />
=========================================<br />
PACKAGE                                   VERSION   STATE<br />
Archive_Tar                               1.3.7     stable<br />
Auth_SASL                                 1.0.4     stable<br />
Console_Color                             1.0.3     stable<br />
Console_Getopt                            1.2.3     stable<br />
Console_Table                             1.1.4     stable<br />
Crypt_HMAC                                1.0.1     stable</p>
<p>to this:</p>
<p>Archive_Tar-stable<br />
Auth_SASL-stable<br />
Console_Color-stable<br />
Console_Getopt-stable<br />
Console_Table-stable<br />
Crypt_HMAC-stable<br />
etc &#8230;</p>
<p>For me it&#8217;s just a nice way to backup the pear module list, or copy it to a file and then install the pear modules on another box.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1408/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1408&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2011/04/19/pear-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>
	</item>
		<item>
		<title>uphpu presentation: ripping dvds</title>
		<link>http://wonkabar.org/2011/03/18/uphpu-presentation-ripping-dvds/</link>
		<comments>http://wonkabar.org/2011/03/18/uphpu-presentation-ripping-dvds/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 17:28:31 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[Matroska]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1398</guid>
		<description><![CDATA[I gave a short presentation last night at uphpu on ripping and encoding DVDs under Linux. I wanted to type up a few notes on some stuff I mentioned during the meeting. Short version: Use Handbrake (available on Linux, Mac &#8230; <a href="http://wonkabar.org/2011/03/18/uphpu-presentation-ripping-dvds/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1398&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I gave a short presentation last night at <a href="http://uphpu.org/">uphpu</a> on ripping and encoding DVDs under Linux.  I wanted to type up a few notes on some stuff I mentioned during the meeting.</p>
<p>Short version: Use <a href="http://handbrake.fr/">Handbrake</a> (available on Linux, Mac OS X and Windows).  I&#8217;ve gone through a lot of applications through the years trying to find that &#8220;perfect rip&#8221;, and Handbrake beats everything hands down.  I&#8217;m a videophile who likes everything looking as nice as it can, and this is what I use regularly.</p>
<p><strong>Accessing DVDs</strong></p>
<p>The first things you&#8217;ll need installed on your box is libdvdread and libdvdcss.  libdvdread will access the DVD filesystem, and libdvdcss will decrypt the DRM on the disc.  These should both ship with your distro, or if they don&#8217;t, should be relatively easy to acquire.</p>
<p>I use a lot of command line tools to access DVDs, so my focus was on that.  The reason for that is because I have a lot of shell scripts to rip my massive library of discs, and I store data about them in a database.</p>
<p><a href="http://sourceforge.net/projects/lsdvd/files/lsdvd/">lsdvd</a> is the first stop.  A very small app that uses libdvdread to display human and script-friendly output of the details of your disc.</p>
<p><a href="http://www.mplayerhq.hu/">mplayer</a> dvd:// and mplayer dvdnav:// plus the optional track (dvd://3) or optional -dvd-device argument to specify the location of the device or ripped ISO.</p>
<p>I use dd to copy the contents of the entire disc to the harddrive and then rip it from there, to avoid wear and tear on the DVD drive, and also because I can do things like simultaneously rip one disc in the background and encode another at the same time.</p>
<p>When accessing the drive, you&#8217;ll want to use mplayer or some other program to access the drive and decrypt the CSS so that the drive itself caches the access.  Otherwise, it may lock up.</p>
<p>I use pv to dump the disc and give me a pretty progress bar with ripping ETA and disc read speed: <a href="http://www.ivarch.com/programs/pv.shtml">pv</a> -ptre -w 80 /dev/dvd | dd of=movie.iso</p>
<p>If you want to extract the chapters, you can use dvdxchap, which is part of the <a href="http://www.bunkus.org/videotools/ogmtools/">ogmtools</a> package.</p>
<p><strong>DVD Tracks</strong></p>
<p>Every movie I&#8217;ve run into has one track specifically for the video.  Using lsdvd you can find the longest track, time-length wise, and that will be the movie.</p>
<p>TV shows on DVD often put many episodes into one track, where one or more chapters may contain an episode.  You&#8217;ll need to examine these yourself to find out where each one starts and each one ends.</p>
<p>Another caveat is that they are not always ordered on the track or on the DVD in the same order that shows up in the menu.  The best advice when accessing tracks and titles on DVDs is to never assume anything, if you are trying to preserve order.</p>
<p><strong>DVD Subtitles</strong></p>
<p>Subtitles on DVDs come in two formats: <a href="http://wiki.multimedia.cx/index.php?title=VOBsub">VobSub</a> and Closed Captioning.  VobSub subtitles are images that are overlaid onto the picture.  Closed captioning is a text format.</p>
<p>If you have a ripped <a href="http://wiki.multimedia.cx/index.php?title=VOB">VOB</a> (DVD MPEG-2 video), you can extract the subtitles using a program called ccextractor.  It will save the subtitles to <a href="http://wiki.multimedia.cx/index.php?title=SubRip">SRT</a>, a subtitle format that can be muxed into your final video.</p>
<p><strong>Encoding DVDs</strong></p>
<p>Handbrake is a very &#8220;smart&#8221; application that will make things extremely easy on you.  It supports encoding using three codecs: x264, ffmpeg and theora.  <a href="http://www.videolan.org/developers/x264.html">x264</a> is an actively-developed H.264 video codec, and is used professionally by many companies.  It also has a lot of options that you may find useful in your encode, based on your target playback device (ipod, ipad, iphone, apple tv, htpc, computer, etc.).</p>
<p>Handbrake supports muxing (or putting audio and video into a wrapper format) to two containers: MP4 and <a href="http://matroska.org/">Matroska</a>.  MP4 is a very popular standard used in lots of places.  It&#8217;s an open-specification.  Audio is usually AAC.  Matroska is an open-source openly developed container format that has a standardized specification.  Support for it is growing in a lot of devices.  Matroska can handle multiple video streams, multiple audio streams, multiple subtitles, stores metadata, chapters and attachments.  Strictly speaking, either one will work fine for most people&#8217;s needs, but for those looking for advanced usage and tagging, Matroska will fit your needs.  On linux, the tools for muxing and accessing information about a Matroska file are found in the <a href="http://www.bunkus.org/videotools/mkvtoolnix/">mkvtoolnix</a> package.</p>
<p><strong>Deinterlacing and Decombing</strong></p>
<p>Most movies will be progressive video, meaning that each frame is one full picture.  Production studios and DVD authors may have their video interlaced.  Interlaced video is where half of the frame is shown in quick succession where the second half is shown.  On older TVs (like the CRT tube TVs) display at a native resolution of 480i, so you won&#8217;t notice the lines.  Progessive displays (computer monitors, HDTVs, etc.) will display the lines and it can be a visual annoyance.</p>
<p>Handbrake uses filters to convert interlaced video to progressive video, called deinterlacing.  Decombing is also a feature that Handbrake supports, which is basically &#8220;smart&#8221; deinterlacing.  It is safe to turn on the decombing filter to the default setting for all your encodes, and let Handbrake automatically convert your video for you.  Don&#8217;t use the deinterlacing filter unless you specifically know what you are doing.</p>
<p>Please see <a href="http://100fps.com/">100fps.com</a> for a quick explanation of video deinterlacing.</p>
<p><strong>Other Handbrake Features</strong></p>
<p>Handbrake has lots of handy features.  It has support for &#8220;profiles&#8221; which is a combined set of preferences for container format, video codec, audio codecs, preferred subtitle settings, post-processing, deinterlacing, decombing, and all the H.264 settings that come with x264.</p>
<p>One nice thing it will do as well is auto-crop your feature film for you.  This is a boon if you have a letterbox source video, where the movie itself is in widescreen, but the presentation is in fullframe.</p>
<p>You can also &#8220;queue&#8221; up your encodes, so Handbrake can be working on multiple files.  You don&#8217;t need to wait for one to finish before assigning it it&#8217;s next task.</p>
<p>Handbrake is also multi-threaded when using x264 to encode your video.  With a six-core desktop, I have been able to encode video using the &#8220;Normal&#8221; profile between 160 to 180 frames per second.  Meaning a 25 minute video will take about 2 1/2 minutes to encode.</p>
<p><strong>PHP Classes</strong></p>
<p>I&#8217;ve got <a href="http://spaceparanoids.org/code/php/">some small classes</a> that I use in my shell scripts for Matroska and Handbrake (v0.95 required).  You may or may not find these helpful.  I should warn that these are just used on my own set of scripts, so they may or may not be very clean or can have small bugs.</p>
<p><strong>References</strong></p>
<p>If you want more information, here are some good places to go:</p>
<p><a href="http://forum.doom9.org/">doom9</a><br />
<a href="http://wiki.multimedia.cx/index.php?title=Main_Page">Multimedia wiki</a><br />
<a href="https://forum.handbrake.fr/">Handbrake forums</a><br />
<a href="http://100fps.com/">100fps.com</a></p>
<p>Also, feel free to <a href="http://wonkabar.org/contact-me">contact me</a> if you have any questions, and I&#8217;ll be glad to help.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1398/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1398/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1398/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1398&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2011/03/18/uphpu-presentation-ripping-dvds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>
	</item>
		<item>
		<title>wrapper script for disc_id</title>
		<link>http://wonkabar.org/2011/02/27/wrapper-script-for-disc_id/</link>
		<comments>http://wonkabar.org/2011/02/27/wrapper-script-for-disc_id/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 00:02:02 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[bend / dvd2mkv]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1392</guid>
		<description><![CDATA[I wrote a little wrapper script for disc_id tonight, available here. disc_id is a little binary that ships with libdvdread, or at least, it used to in older versions. I use disc_id to give me a unique 32-character string of &#8230; <a href="http://wonkabar.org/2011/02/27/wrapper-script-for-disc_id/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1392&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wrote a little wrapper script for disc_id tonight, available <a href="http://spaceparanoids.org/code/bash/dvd_id">here</a>.  disc_id is a little binary that ships with libdvdread, or at least, it used to in older versions.</p>
<p>I use disc_id to give me a unique 32-character string of a DVD, so I have an identifier to track them by in my database of DVDs.</p>
<p>I don&#8217;t know if it&#8217;s just me or not, but my DVD drives have issues trying to poll the devices.  Once I insert a disc, it will take a few seconds for it to register completely so I can access it.  However, binaries that access it will think it&#8217;s ready to respond sooner than it is able, and will die unexpectedly.  So what I needed was a way to get the disc id and not worry about whether or not the drive has finished registering or not.</p>
<p>I just call my little script dvd_id and it is simply a small wrapper that checks the exit code of the disc_id binary.  If it doesn&#8217;t work the first time, it sleeps for one second and tries again, then repeats the process until it gets a successful exit code of zero.</p>
<p>That&#8217;s it.  Pretty simple, but like all little scripts, you really tend to depend on them.<br />
<code>#!/bin/bash<br />
EXIT_CODE=1<br />
DEVICE=$1<br />
if [[ -z $DEVICE ]]; then<br />
        DEVICE=/dev/dvd<br />
fi</p>
<p>if [[ ! -b $DEVICE ]]; then<br />
        echo "Device $DEVICE doesn't exist" &gt;&amp;2<br />
        exit 1<br />
fi</p>
<p>while [[ $EXIT_CODE != 0 ]]; do<br />
        /usr/local/bin/disc_id $DEVICE 2&gt; /dev/null<br />
        EXIT_CODE=$?</p>
<p>        if [[ $EXIT_CODE != 0 ]]; then<br />
                sleep 1<br />
        fi<br />
done</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1392&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2011/02/27/wrapper-script-for-disc_id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>
	</item>
		<item>
		<title>web media frontend</title>
		<link>http://wonkabar.org/2010/11/08/web-media-frontend/</link>
		<comments>http://wonkabar.org/2010/11/08/web-media-frontend/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 05:21:44 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1371</guid>
		<description><![CDATA[I have always wanted to tweak my HTPC frontend quite a lot to add extra functionality, but the entry barrier to learning a GUI language has been way too high for me.  I&#8217;ve had success though, in patching MythFrontend to &#8230; <a href="http://wonkabar.org/2010/11/08/web-media-frontend/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1371&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have always wanted to tweak my HTPC frontend quite a lot to add extra functionality, but the entry barrier to learning a GUI language has been way too high for me.  I&#8217;ve had success though, in patching MythFrontend to do some things a little better for me, but I&#8217;ve always wanted to get my own going if I could.</p>
<p>Recently, I was thinking about how LIRC can capture IR events and map them to X keyboard events.  Basically, you can control X applications with your remote control.  I started to reason that if that were possible, then I could just use my web development skills and create a webpage frontend for my HTPC that would run on a lightweight browser, and listen for keystrokes.</p>
<p>Just playing around with it tonight, I actually made some really great progress thanks to a combination of <a href="http://novapages.com/">a good friend</a>, my humble jQuery beginnings, and my laughable CSS skills.  <a href="http://spaceparanoids.org/code/media/media.html">This is the result so far</a>. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m really stoked about the implementation so far.  You&#8217;ll most likely need Firefox to get that working properly.  It will capture the arrow key presses (up, down, left, right) and use that for navigation.  I realize that the beginnings are rather crude, but the fact that I could throw this together, so quickly, while I&#8217;m just barely learning my way around jQuery seems pretty impressive to me.  I&#8217;m actually quite proud, though, that I got the navigation to work properly, too, so wrapping around rows and columns works. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This is certainly going to be a fun project to hack on.  If I could get this working, this would open up all kinds of possibilities for me for displaying metadata and new options for navigation.</p>
<p>For comparison, here&#8217;s a screenshot of what my frontend looks like right now.  As you can see, I&#8217;m trying to imitate the style as closely as possible.</p>
<p style="text-align:center;"><a href="http://wonkabar.org/wp-content/uploads/2010/11/2010-11-08-183929_1280x720_scrot.png"><img class="aligncenter size-full wp-image-1372" title="2010-11-08-183929_1280x720_scrot" src="http://wonkabar.org/wp-content/uploads/2010/11/2010-11-08-183929_1280x720_scrot.png" alt="" width="461" height="259" /></a></p>
<p style="text-align:left;">There&#8217;s a lot of advantages to having it web-based &#8212; not that I&#8217;m going to serve up anything remotely or anything, this is solely for my LAN.  It&#8217;ll just allow me to build out stuff much faster.</p>
<p style="text-align:left;">The hard part is going to be doing testing on the frontends.  They are both running off of tiny installations, and it&#8217;s not easy building and porting software to run on them.  Sounds like a challenge that&#8217;s extremely hard, going to take a lot of time, and will have marginal benefit and at the same time increase my workload and opportunity to own more of my software stack when things go wrong.  That&#8217;s just right up my alley. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1371/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1371&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/11/08/web-media-frontend/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>

		<media:content url="http://wonkabar.org/wp-content/uploads/2010/11/2010-11-08-183929_1280x720_scrot.png" medium="image">
			<media:title type="html">2010-11-08-183929_1280x720_scrot</media:title>
		</media:content>
	</item>
		<item>
		<title>javascript rest api using prototype</title>
		<link>http://wonkabar.org/2010/10/14/javascript-rest-api-using-prototype/</link>
		<comments>http://wonkabar.org/2010/10/14/javascript-rest-api-using-prototype/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 22:25:32 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1358</guid>
		<description><![CDATA[JavaScript seems to be in my future, it looks like.  Plus a bunch of Warner Archive awesome cartoons on DVD, but I&#8217;ll get into that later. I&#8217;ve been doing web design for a long time, but it hasn&#8217;t really gotten &#8230; <a href="http://wonkabar.org/2010/10/14/javascript-rest-api-using-prototype/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1358&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>JavaScript seems to be in my future, it looks like.  Plus a bunch of <a href="http://www.wbshop.com/Thundarr-The-Barbarian-The-Complete-Series-198082/1000180186,default,pd.html?cgid=TV">Warner Archive awesome cartoons on DVD</a>, but I&#8217;ll get into that later.</p>
<p>I&#8217;ve been doing web design for a long time, but it hasn&#8217;t really gotten too interesting until I started playing with MVCs and JS frameworks and AJAX.  Now, all the *boring* stuff is totally out of the way, and the fun stuff is where I can see what I can quickly develop.  Kind of interesting really.  Plus, I think it&#8217;s kinda cool because I had pretty much sworn off getting more into computer tech, but this is one that really is interesting.  Well, for now, anyway.</p>
<p>So, I&#8217;m working on creating a REST API inside my MVC (using CodeIgniter), but on top of that, I&#8217;m writing a class that JavaScript can use to send calls to the REST API.  Here&#8217;s what I&#8217;ve come up with so far: <a href="http://spaceparanoids.org/code/prototype/rest.api.js">link</a>.</p>
<p>I&#8217;m really looking for some peer review on this thing .. the only thing you need to be familiar with is PrototypeJS and JavaScript, and it should make sense.  It doesn&#8217;t matter what REST API it sends stuff to.</p>
<p>I want to explain a couple of coding conventions though.</p>
<p>The get_rest_url() function is a protected method, which is kinda cool &#8212; I didn&#8217;t know until today you could do that with JavaScript.  If you created a REST  object named, then calling the function wouldn&#8217;t work.   You can only call it internally.  That&#8217;s why it&#8217;s in the constructor.</p>
<p>I should probably learn to use exceptions.  The concept of them just baffles me though, and I don&#8217;t really see the point of them when you can do things procedurally.  Whatever.  I&#8217;m holding out on being stubborn on this one.</p>
<p>The class supposes that your REST URL will accept the uniq identifer at the end.</p>
<p>The AJAX requests need to be synchronous, otherwise I couldn&#8217;t access the responses.  If someone knows a way to do both, I&#8217;d be glad to hear about it &#8230; synchronous and then using bind(this) on the function is the only option I&#8217;ve found.</p>
<p>That&#8217;s all I can think of.  Like I said, JS is not my strongest coding skill, so if anyone could do a once-over, it&#8217;d be nicely appreciated.</p>
<p>For what it&#8217;s worth, the code works just fine for my needs though. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1358/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1358&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/10/14/javascript-rest-api-using-prototype/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>
	</item>
		<item>
		<title>lost on mvc basics: where to order data</title>
		<link>http://wonkabar.org/2010/09/20/lost-on-mvc-basics-where-to-order-data/</link>
		<comments>http://wonkabar.org/2010/09/20/lost-on-mvc-basics-where-to-order-data/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 00:55:15 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1338</guid>
		<description><![CDATA[I&#8217;m really struggling recently with understanding some basics of MVC.  I&#8217;m sold on the concept, but confused when it comes to asking hard questions like which kind of data manipulation goes into which box: model or controller.  Hopefully someone can &#8230; <a href="http://wonkabar.org/2010/09/20/lost-on-mvc-basics-where-to-order-data/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1338&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really struggling recently with understanding some basics of MVC.  I&#8217;m sold on the concept, but confused when it comes to asking hard questions like which kind of data manipulation goes into which box: model or controller.  Hopefully someone can help me out, because searching isn&#8217;t yielding much.  For background, I&#8217;m using PHP, CodeIgniter and PostgreSQL as my database.  That really shouldn&#8217;t matter much, but it helps to know what the Model is accessing (using SQL).</p>
<p>The basic question I have is, if you are running a complex query where you would have specific instructions on how to order the data, who does the ordering? the Model or the Controller?</p>
<p>If it&#8217;s the Model &#8230; then how do you pass in the order by variables into a function?  Do you have an argument that takes an ORDER BY variable that is inserted into your SQL statement?  Do you write specific functions in the Model that spit out the data in the possible orders that are available from the View?</p>
<p>If it&#8217;s the Controller &#8230; then how the heck do you order it?  Do you grab all the data, and then run ways to sort the arrays?  That seems extremely tedious.</p>
<p>I could go on ranting more, but I think I&#8217;ll leave my question as small as that for now.  Frankly, I&#8217;m stumped.</p>
<p>My situation I&#8217;m in right now is that I&#8217;m building reports which pull together data from multiple sources, and then need to organize them based on the most simplest ordering scheme which spans multiple columns.  That is, order by this first, then that, then the third column.  That&#8217;s all fine and good, but what about when the client wants to rearrange the data?  That&#8217;s where I get lost.</p>
<p>And I&#8217;m not looking for some out of the box solution like using JavaScript to rearrange data in the view dynamically.  I&#8217;m not interested in something like that.</p>
<p>Basically, my question is, if you are customizing data presented to the View, based on input from the client, where does the lifting go, and how do you get it in there?  Like I said, I&#8217;m lost.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1338/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1338&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/09/20/lost-on-mvc-basics-where-to-order-data/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>
	</item>
		<item>
		<title>prototype form serializer gotcha</title>
		<link>http://wonkabar.org/2010/03/29/prototype-form-serializer-gotcha/</link>
		<comments>http://wonkabar.org/2010/03/29/prototype-form-serializer-gotcha/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 21:38:59 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1195</guid>
		<description><![CDATA[In learning JavaScript / AJAX, I&#8217;ve been using the Prototype library, and I&#8217;ve been really happy with it.  It&#8217;s quickly gotten me able to wrap my head around what the possibilities are, as well as providing some good docs with &#8230; <a href="http://wonkabar.org/2010/03/29/prototype-form-serializer-gotcha/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1195&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In learning JavaScript / AJAX, I&#8217;ve been using the <a href="http://prototypejs.org/">Prototype</a> library, and I&#8217;ve been really happy with it.  It&#8217;s quickly gotten me able to wrap my head around what the possibilities are, as well as providing some good docs with great examples.</p>
<p>I hit a snag with the <a href="http://prototypejs.org/api/form/serialize">Form.serialize</a> function today that took me a while to figure out what was going on.  Blame it on a confusing doc, because this certainly could have been explained with more clarity.</p>
<p>The Prototype doc (the old one, <a href="http://api.prototypejs.org/dom/form.html#serialize-class_method">the new one</a> is hard to navigate and has less information) says that if you pass true to the getHash parameter, it will return &#8220;an object hash.&#8221;  A careful reading of that should be implied, because it returns a <em>JavaScript hash</em>, not a <em>Prototype Hash</em> object.  Big difference.</p>
<p>I hit upon the problem because I would serialize my form, then try to add more keys to it, using the <a href="http://prototypejs.org/api/hash/set">set</a> function.  That would throw errors, and I couldn&#8217;t figure out why.</p>
<p>So, there&#8217;s a couple of ways around it.  The simplest one I like is to immediately create it as a <a href="http://prototypejs.org/api/hash">Prototype Hash</a>, so you can do what you would normally do.</p>
<p>var h = $H($(&#8216;form&#8217;).serialize(true));</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1195&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/03/29/prototype-form-serializer-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>
	</item>
		<item>
		<title>learning javascript</title>
		<link>http://wonkabar.org/2010/02/24/learning-javascript/</link>
		<comments>http://wonkabar.org/2010/02/24/learning-javascript/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 20:58:30 +0000</pubDate>
		<dc:creator>beandog</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1170</guid>
		<description><![CDATA[At work, I&#8217;m starting on a new Intranet site for the company, and one thing I am really wanting to do is ramp up my JavaScript skills in the process so I can make a large part of it AJAX &#8230; <a href="http://wonkabar.org/2010/02/24/learning-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1170&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At work, I&#8217;m starting on a new Intranet site for the company, and one thing I am really wanting to do is ramp up my JavaScript skills in the process so I can make a large part of it AJAX driven.  I&#8217;ve played with it a bit in the past, and with the awesome <a href="http://www.prototypejs.org/">Prototype</a> class as well, but up until now it hasn&#8217;t been anything more glamorous than hiding and displaying pockets of information.</p>
<p>I&#8217;ve been doing some reading up the past few days, and stumbled upon some great resources.  One really cool thing I found, that I&#8217;ll write about later since I&#8217;ve got some ebuilds in the works, is <a href="http://live.gnome.org/Seed">GNOME Seed</a>.  Seed is, basically, JavaScript bindings for <a href="http://www.gtk.org/">GTK+</a>.  In other words, you can <a href="http://people.gnome.org/~racarr/seed/tutorial-standalone/tutorial.html">build GUI applications in JavaScript</a>.  How freaking cool is that?  (For the curious, read <a href="http://arstechnica.com/open-source/news/2009/01/javascript-gtk-bindings.ars">this</a>, <a href="http://library.gnome.org/devel/seed/stable/">this</a> and <a href="http://alsaf1.wordpress.com/">this</a>.)</p>
<p>Anyway, one part of doing my research about JavaScript is building a little toolkit of common functions that I can use as a fallback when I need to understand what&#8217;s going on.  I&#8217;m really familiar with PHP, so I&#8217;ve been using that as  a sort of inspiration.</p>
<p>I&#8217;ve got a little function I wrote, called var_dump(), which basically does the same thing as <a href="http://us.php.net/var_dump">the PHP function</a>, and with similar syntax output.  The code is <a href="http://spaceparanoids.org/code/javascript/common.js">here</a>.  If any JavaScript gurus wants to look at it and give me some pointers, let me know.  I&#8217;d appreciate it. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Mine is making a call to Seed, but obviously it&#8217;d be easy enough to put into a browser.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sdibb.wordpress.com/1170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sdibb.wordpress.com/1170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sdibb.wordpress.com/1170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sdibb.wordpress.com/1170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sdibb.wordpress.com/1170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sdibb.wordpress.com/1170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sdibb.wordpress.com/1170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sdibb.wordpress.com/1170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sdibb.wordpress.com/1170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sdibb.wordpress.com/1170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sdibb.wordpress.com/1170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sdibb.wordpress.com/1170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sdibb.wordpress.com/1170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sdibb.wordpress.com/1170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wonkabar.org&amp;blog=19113962&amp;post=1170&amp;subd=sdibb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/02/24/learning-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5812f6204f3a0213164c80b96f522fb7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">beandog</media:title>
		</media:content>
	</item>
	</channel>
</rss>
