<?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>James Wilson -blog &#187; Scripts</title>
	<atom:link href="http://ja.meswilson.com/blog/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://ja.meswilson.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 17 Jun 2010 22:52:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Paintball Headlines Theme</title>
		<link>http://ja.meswilson.com/blog/2008/08/24/paintball-headlines-theme/</link>
		<comments>http://ja.meswilson.com/blog/2008/08/24/paintball-headlines-theme/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 19:03:19 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2008/08/24/paintball-headlines-theme/</guid>
		<description><![CDATA[I said I would post the theme for headlines when I thought it was acceptable. There are still problems, but whatever. Anyways, this theme is based upon this tutorial theme, but changed to have multiple author support, support tags and categories, and be a double right column instead of a column on both sides. There [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://paintballheadlines.com/2008/08/05/huzzah-new-theme/">I said I would post the theme</a> for <a href="http://paintballheadlines.com">headlines</a> when I thought it was acceptable. There are still problems, but whatever.</p>
<p>Anyways, this theme is based upon <a href="http://css-tricks.com/designing-for-wordpress-complete-series-downloads/">this tutorial theme</a>, but changed to have multiple author support, support tags and categories, and be a double right column instead of a column on both sides. There are a few other little changes in there.</p>
<p><a href="http://github.com/omgmovieslol/Paintball-Headlines-Theme">Github Repository</a></p>
<p>I&#039;ll try to update the theme whenever I change anything; I just have to remember to do a <code>svn ci</code> each time.</p>
<p>To run by default and not get errors, you need do need a few plugins, like wp_dtree. There&#039;s also a classifieds plugin that I wrote just for headlines that&#039;s needed, but I don&#039;t plan on releasing that, since it contains db info and it&#039;s pretty much just a MySQL query. In sidebar.php, just comment out the <code>get_classifieds_new(10);</code> code.</p>
<p>Edit: Changed to Github, since DevjaVu went away.</p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2008/08/24/paintball-headlines-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paintball Board Software Types</title>
		<link>http://ja.meswilson.com/blog/2008/01/10/paintball-board-software-types/</link>
		<comments>http://ja.meswilson.com/blog/2008/01/10/paintball-board-software-types/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 06:51:31 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2008/01/10/paintball-board-software-types/</guid>
		<description><![CDATA[I wrote a post on Paintball Headlines that had a side note about how paintball board software was done, and how I might write python scripts demonstrating both ways. Well, I did. Here they are. threaded.py runs the check in different threads while event.py only runs the check when an event occurs (the trigger is [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a <a href="http://paintballheadlines.com/2008/01/10/psp-officially-changes-rof/">post on Paintball Headlines</a> that had a side note about how paintball board software was done, and how I might write python scripts demonstrating both ways.</p>
<p>Well, I did. <a href='http://ja.meswilson.com/blog/wp-content/uploads/2008/01/board.zip' title='board.zip'>Here they are</a>.</p>
<p>threaded.py runs the check in different threads while event.py only runs the check when an event occurs (the trigger is pulled). You can look a the source code of each to understand the differences. </p>
<p>These weren&#039;t made or show that one way is better than the other, they just demonstrate both methods.</p>
<p>Do I know how they do it? No. I&#039;m sure they aren&#039;t running higher level language like python. If any board manufacturers want to let me know, please comment. </p>
<p>I&#039;m also sure that actual board software is done much better, and not the work of some 20 year old hacking some code together in about an hour.</p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2008/01/10/paintball-board-software-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure GMail Shortcut (Plus Google Reader)</title>
		<link>http://ja.meswilson.com/blog/2007/11/24/secure-gmail-shortcut-plus-google-reader/</link>
		<comments>http://ja.meswilson.com/blog/2007/11/24/secure-gmail-shortcut-plus-google-reader/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 02:17:41 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/11/24/secure-gmail-shortcut-plus-google-reader/</guid>
		<description><![CDATA[These are just shorter urls to access GMail and Google Reader securely. Secure GMail: http://g.xrho.com/ => https://mail.google.com/mail/ Secure Hosted GMail (edit domain.tld with your domain): http://g.xrho.com/domain.tld => https://mail.google.com/a/domain.tld/ Secure GMail HTML Only: http://h.g.xrho.com/ => https://mail.google.com/mail/h/ Secure Hosted GMail HTML Only (edit domain.tld with your domain): http://h.g.xrho.com/domain.tld => https://mail.google.com/a/domain.tld/h/ Secure Google Reader: http://r.g.xrho.com/ => https://www.google.com/reader/view/]]></description>
			<content:encoded><![CDATA[<p>These are just shorter urls to access GMail and Google Reader securely.</p>
<p>Secure GMail:<br />
<strong><a href="http://g.xrho.com/">http://g.xrho.com/</a></strong> => https://mail.google.com/mail/</p>
<p>Secure Hosted GMail (edit domain.tld with your domain):<br />
<strong><a href="http://g.xrho.com/domain.tld">http://g.xrho.com/domain.tld</a></strong> => https://mail.google.com/a/domain.tld/</p>
<p>Secure GMail HTML Only:<br />
<strong><a href="http://h.g.xrho.com/">http://h.g.xrho.com/</a></strong> => https://mail.google.com/mail/h/</p>
<p>Secure Hosted GMail HTML Only (edit domain.tld with your domain):<br />
<strong><a href="http://h.g.xrho.com/domain.tld">http://h.g.xrho.com/domain.tld</a></strong> => https://mail.google.com/a/domain.tld/h/</p>
<p>Secure Google Reader:<br />
<strong><a href="http://r.g.xrho.com/">http://r.g.xrho.com/</a></strong> => https://www.google.com/reader/view/</p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/11/24/secure-gmail-shortcut-plus-google-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python Random Show Player</title>
		<link>http://ja.meswilson.com/blog/2007/10/28/python-random-show-player/</link>
		<comments>http://ja.meswilson.com/blog/2007/10/28/python-random-show-player/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 17:44:42 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/10/28/python-random-show-player/</guid>
		<description><![CDATA[This is a pretty simple little script I coded a while back that will play an n amount of randomly picked shows from a collection of shows. Like, &#034;randomshow.py 5&#034; will play 5 randomly picked episodes back to back. I usually use this to cue up some shows right before going to sleep. It&#039;s better [...]]]></description>
			<content:encoded><![CDATA[<p>This is a pretty simple little script I coded a while back that will play an n amount of randomly picked shows from a collection of shows.</p>
<p>Like, &#034;randomshow.py 5&#034; will play 5 randomly picked episodes back to back. I usually use this to cue up some shows right before going to sleep. It&#039;s better than flipping through channels trying to find something to watch.</p>
<p>By default, it uses a gui-less mplayer in full screen to play the videos. You can edit the playback command to use a different video player or use different settings.<br />
Note: It expects the video player to exit after finishing playback. Mplayer does this by default (without the gui), but VLC, Xine, etc. don&#039;t. </p>
<p>To use, edit the first part of the file with the location(s) of your video files and the commands if needed. Run <code>python randomshow.py rescan</code> to generate your collection file. Then run <code>python randomshow.py</code> to play a random show.</p>
<p>This was made and used on linux, but it should also be compatible on Windows, though you might need to edit the commands.</p>
<p>I&#039;ll probably edit this to have better control over collections, a playlist option that&#039;ll just generate a playlist so you can use VLC or other video players. If you have any suggestions, let me know.</p>
<p>I&#039;m also making a movie version, that will also support browsing of the collection (probably just via a web interface), and support multiple CD versions and archives. It&#039;ll be more like MythTV, but allowing less overhead.</p>
<p><strong>Download <a href='http://ja.meswilson.com/blog/wp-content/uploads/2007/10/randomshow.txt' title='randomshow.txt'>randomshow.txt</a> (rename to randomshow.py) or <a href='http://ja.meswilson.com/blog/wp-content/uploads/2007/10/randomshow.tar' title='randomshow.tar'>randomshow.tar</a></strong></p>
<p>randomshow.py &#8211;help</p>
<blockquote><p>Random Show 1.0 &#8211; James Wilson</p>
<p>randomshow.py [option] [count]</p>
<p>For 1 random show<br />
randomshow.py</p>
<p>For n random shows<br />
randomshow.py n</p>
<p>Rescan your collection<br />
randomshow.py rescan</p>
<p>Use different collection and play 1 show. If collection doesn&#039;t exist, it will use default. latenight.txt can be any collection text file.<br />
randomshow.py latenight.txt</p>
<p>Use different collection and play n shows<br />
randomshow.py latenight.txt n</p>
<p>Rescan different collection<br />
randomshow.py rescan latenight.txt</p>
<p>Create new collection<br />
randomshow.py create latenight.txt &#034;/media/tv/&#034;
</p></blockquote>
<p>Example rescan output:</p>
<blockquote><p>From location(s)<br />
['/media/My Book/downloads/tv/', '/media/hdb1/Documents and Settings/User/My Documents/My Videos/tv/Futurama', '/media/hdb1/Documents and Settings/User/My Documents/Fastlane']<br />
Clearing collection file<br />
Added 113 King of the Ant Hill.avi<br />
Added 110 Keeping Up With Our Joneses.avi<br />
Added 104 Luanne&#039;s Saga.avi<br />
[...]<br />
Added Fastlane &#8211; 120 &#8211; Asslane.avi<br />
Added Fastlane &#8211; 121 &#8211; Dosed.avi<br />
Added Fastlane &#8211; 122 &#8211; Iced.avi<br />
Collection built &#8211; 696 files</p></blockquote>
<p>Example collection file:</p>
<blockquote><p>Random-Show-Collection-1.0;shows.txt;/media/My Book/downloads/tv/,/media/hdb1/Documents and Settings/User/My Documents/My Videos/tv/Futurama,/media/hdb1/Documents and Settings/User/My Documents/Fastlane<br />
/media/My Book/downloads/tv/koth1/113 King of the Ant Hill.avi<br />
/media/My Book/downloads/tv/koth1/110 Keeping Up With Our Joneses.avi<br />
/media/My Book/downloads/tv/koth1/104 Luanne&#039;s Saga.avi<br />
[...]<br />
/media/hdb1/Documents and Settings/User/My Documents/Fastlane/Season 1/Fastlane &#8211; 120 &#8211; Asslane.avi<br />
/media/hdb1/Documents and Settings/User/My Documents/Fastlane/Season 1/Fastlane &#8211; 121 &#8211; Dosed.avi<br />
/media/hdb1/Documents and Settings/User/My Documents/Fastlane/Season 1/Fastlane &#8211; 122 &#8211; Iced.avi</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/10/28/python-random-show-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress YouTube Sidebar Video Plugin</title>
		<link>http://ja.meswilson.com/blog/2007/07/23/wordpress-youtube-sidebar-video-plugin/</link>
		<comments>http://ja.meswilson.com/blog/2007/07/23/wordpress-youtube-sidebar-video-plugin/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 23:13:37 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/07/23/wordpress-youtube-sidebar-video-plugin/</guid>
		<description><![CDATA[This is a plugin based on the YouTube widget. It&#039;ll display a YouTube video, most likely in your sidebar, by calling the youtube function which you can specify the url, width, height, and if it&#039;ll autoplay. It&#039;s not much, at all, but meh. Download youtube-plugin.zip (youtube-plugin.tar.gz) This plugin is one function called youtube that will [...]]]></description>
			<content:encoded><![CDATA[<p>This is a plugin based on <a href="http://ja.meswilson.com/blog/2007/05/31/wordpress-youtube-widget/">the YouTube widge</a>t. It&#039;ll display a YouTube video, most likely in your sidebar, by calling the youtube function which you can specify the url, width, height, and if it&#039;ll autoplay. It&#039;s not much, at all, but meh.</p>
<p><b><a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/07/youtube-plugin.zip">Download youtube-plugin.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/07/youtube-plugin.tar.gz">youtube-plugin.tar.gz</a>)</b></p>
<p>This plugin is one function called youtube that will display a YouTube video. It&#039;s pretty much the same as copying the embed code from YouTube, but will allow you to change the width and height much easier.</p>
<p>I&#039;m not going to go too much into this, so here&#039;s the whole calling it premise. You would place this in your template in php tags.</p>
<p><code>youtube(uri[,width,height[,autoplay]])</code></p>
<p>Display a video with default width and height (250&#215;165)<br />
<code>youtube("http://www.youtube.com/watch?v=AYxu_MQSTTY")</code></p>
<p>Display a video with custom width and height (500&#215;330)<br />
<code>youtube("http://www.youtube.com/watch?v=AYxu_MQSTTY",500,330)</code></p>
<p>Display a video with default width and height (&#034; will cause it to default), but autoplay<br />
<code>youtube("http://www.youtube.com/watch?v=AYxu_MQSTTY","","",TRUE)</code></p>
<p>Display a video with custom width and height and autoplay<br />
<code>youtube("http://www.youtube.com/watch?v=AYxu_MQSTTY",500,330,TRUE)</code></p>
<p><b><a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/07/youtube-plugin.zip">Download youtube-plugin.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/07/youtube-plugin.tar.gz">youtube-plugin.tar.gz</a>)</b></p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/07/23/wordpress-youtube-sidebar-video-plugin/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WordPress Reddit Widget</title>
		<link>http://ja.meswilson.com/blog/2007/06/01/wordpress-reddit-widget/</link>
		<comments>http://ja.meswilson.com/blog/2007/06/01/wordpress-reddit-widget/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 21:04:51 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Widget-A-Day]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/06/01/wordpress-reddit-widget/</guid>
		<description><![CDATA[Number 8 in Widget-A-Day is a reddit widget. It&#039;ll display your latest liked items on reddit.com. You can edit the display, count, and username. Not much of widget (can be kinda done via the RSS widget), but it&#039;ll be the closer in Widget-A-Day. I might have one on Saturday, but there&#039;s no guarantee. It&#039;s been [...]]]></description>
			<content:encoded><![CDATA[<p>Number 8 in <a href="http://ja.meswilson.com/blog/category/widget-a-day/">Widget-A-Day</a> is a reddit widget.</p>
<p>It&#039;ll display your latest liked items on reddit.com. You can edit the display, count, and username.</p>
<p>Not much of widget (can be kinda done via the RSS widget), but it&#039;ll be the closer in Widget-A-Day. I might have one on Saturday, but there&#039;s no guarantee. It&#039;s been fun. Hopefully someone has found these useful. I&#039;ll do it again sometime. If you have any problems, suggestions, or whatever, <a href="/contact/">let me know</a></p>
<p><b><a href="http://downloads.wordpress.org/plugin/reddit-widget.zip">Download reddit.zip</a></b></p>
<p><b>SVN Checkout</b><br />
<code>svn co http://svn.wp-plugins.org/reddit-widget/trunk</code></p>
<p>Default display:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/06/reddit1cropped.png' alt='reddit1cropped.png' /></p>
<p>Admin panel:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/06/reddit2cropped.png' alt='reddit2cropped.png' /></p>
<h3>Requirements</h3>
<ul>
<li>WordPress 2.2 or 2.0.x/2.1.x with <a href="http://automattic.com/code/widgets/">WordPress Widgets</a></li>
<li>PHP 4.3.0 or greater (needed for function <a href="http://www.php.net/manual/en/function.file-get-contents.php">file_get_contents</a>)</li>
</ul>
<h3>Installation</h3>
<ol>
<li>Download <a href="http://downloads.wordpress.org/plugin/reddit-widget.zip">reddit.zip</a></li>
<li>Extract and upload reddit.php to the plugins/ directory</li>
<li>Enable reddit Widget in the Plugin admin panel</li>
<li>In widget admin panel, place reddit in the sidebar, and edit it to enter your username</li>
</ol>
<h3>Features</h3>
<ul>
<li>Displays your latest liked items (on reddit.com)</li>
<li>Completely customizable display</li>
<li>Caching for large traffic sites</li>
</ul>
<p><a name="formatting"></a></p>
<h3>Formatting</h3>
<p>There are 3 parts needed to format the output.<br />
<br />
The first part, called items start in the admin panel, is the first part of the widget after the title. For the default formatting, this is just <code>&lt;ul&gt;</code>.<br />
<br />
The second part, called items end, is the ending of the widget. By default, this is:<br />
<code>&lt;/ul&gt;<br />
&lt;a href="%profile%" style="float:right;"&gt;%username%&lt;/a&gt;<br />
</code><br />
<br />
The third part is what is called for each item. By default, this is:<br />
<code>&lt;li style="list-style-type: none;"&gt;&lt;a href="%link%"&gt;%title%&lt;/a&gt; (&lt;a href="%more%"&gt;more&lt;/a&gt;)&lt;/li&gt;</code></p>
<p>The premise of calling each value is this:</p>
<ol>
<li>start</li>
<li>item</li>
<li>item</li>
<li>&#8230;</li>
<li>item</li>
<li>end</li>
</ol>
<p>The formatting for items is:</p>
<ul>
<li><b>%title%</b> &#8211; Title of the item</li>
<li><b>%link%</b> &#8211; Link to the item</li>
<li><b>%desc%</b> &#8211; Description of the item &#8211; Just [link] [more] links</li>
<li><b>%date%</b> &#8211; Date the item was submitted (ISO)</li>
<li><b>%more%</b> &#8211; More link &#8211; The link to the comments</li>
<li><b>%number%</b> &#8211; The number of the current item</li>
</ul>
<p>The formatting for start and end is:</p>
<ul>
<li><b>%username%</b> &#8211; Your username</li>
<li><b>%profile%</b> &#8211; Link to your profile</li>
<li><b>%rss%</b> &#8211; Link to your profile&#039;s RSS feed</li>
<li><b>%count%</b> &#8211; Number of items shown</li>
</ul>
<p><b><a href="http://downloads.wordpress.org/plugin/reddit-widget.zip">Download reddit.zip</a></b></p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/06/01/wordpress-reddit-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress YouTube Widget</title>
		<link>http://ja.meswilson.com/blog/2007/05/31/wordpress-youtube-widget/</link>
		<comments>http://ja.meswilson.com/blog/2007/05/31/wordpress-youtube-widget/#comments</comments>
		<pubDate>Thu, 31 May 2007 23:07:07 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Widget-A-Day]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/05/31/wordpress-youtube-widget/</guid>
		<description><![CDATA[Number 7 in Widget-A-Day is a YouTube widget. It&#039;ll display a YouTube video in the sidebar. Just enter the URL of the video, and it&#039;ll show in the sidebar. You can change the width and height, and make it autoplay or not. Download youtube.zip SVN Checkout svn co http://svn.wp-plugins.org/youtube-widget/trunk Default display: Admin panel: Requirements WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>Number 7 in <a href="http://ja.meswilson.com/blog/category/widget-a-day/">Widget-A-Day</a> is a YouTube widget.</p>
<p>It&#039;ll display a YouTube video in the sidebar. Just enter the URL of the video, and it&#039;ll show in the sidebar. You can change the width and height, and make it autoplay or not.</p>
<p><b><a href="http://downloads.wordpress.org/plugin/youtube-widget.zip">Download youtube.zip</a></b></p>
<p><b>SVN Checkout</b><br />
<code>svn co http://svn.wp-plugins.org/youtube-widget/trunk</code></p>
<p>Default display:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/youtbe1cropped.png' alt='youtbe1cropped.png' /></p>
<p>Admin panel:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/youtube2cropped.png' alt='youtube2cropped.png' /></p>
<h3>Requirements</h3>
<ul>
<li>WordPress 2.2 or 2.0.x/2.1.x with <a href="http://automattic.com/code/widgets/">WordPress Widgets</a></li>
</ul>
<h3>Installation</h3>
<ol>
<li>Download <a href="http://downloads.wordpress.org/plugin/youtube-widget.zip">youtube.zip</a></li>
<li>Extract and upload youtube.php to the plugins/ directory</li>
<li>Enable YouTube Widget in the Plugin admin panel</li>
<li>In widget admin panel, place YouTube in the sidebar, and edit it to enter the YouTube URL, not the embed code</li>
</ol>
<p><b><a href="http://downloads.wordpress.org/plugin/youtube-widget.zip">Download youtube.zip</a></b></p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/05/31/wordpress-youtube-widget/feed/</wfw:commentRss>
		<slash:comments>86</slash:comments>
		</item>
		<item>
		<title>WordPress Digg Widget</title>
		<link>http://ja.meswilson.com/blog/2007/05/31/wordpress-digg-widget/</link>
		<comments>http://ja.meswilson.com/blog/2007/05/31/wordpress-digg-widget/#comments</comments>
		<pubDate>Thu, 31 May 2007 05:15:11 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Widget-A-Day]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/05/31/wordpress-digg-widget/</guid>
		<description><![CDATA[Sorry for the lateness. Went out, and it wasn&#039;t working by the time I left. Anyways, number 6 in Widget-A-Day is a Digg widget. It&#039;ll display your latest dugg stories and the number of diggs the story has. It can be customized to include just about all the information the RSS feeds gives. Check out [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry for the lateness. Went out, and it wasn&#039;t working by the time I left.</p>
<p>Anyways, number 6 in <a href="http://ja.meswilson.com/blog/category/widget-a-day/">Widget-A-Day</a> is a Digg widget. It&#039;ll display your latest dugg stories and the number of diggs the story has. It can be customized to include just about all the information the RSS feeds gives. Check out <a href="#formatting">formatting</a> for more information.</p>
<p><b>Update</b>: If you downloaded this before 6 CST on May 31, the caching system wouldn&#039;t work. Just redownload the file, and it&#039;ll work or just remove <code>AND FALSE</code> on line 39.</p>
<p><b><a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/06/digg.zip">Download digg.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/06/digg.tar.gz">digg.tar.gz</a>)</b></p>
<p>Default display:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/digg1cropped.png' alt='digg1cropped.png' /></p>
<p>Admin panel:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/digg2cropped.png' alt='digg2cropped.png' /></p>
<h3>Requirements</h3>
<ul>
<li>WordPress 2.2 or 2.0.x/2.1.x with <a href="http://automattic.com/code/widgets/">WordPress Widgets</a></li>
<li>PHP 4.3.0 or greater (needed for function <a href="http://www.php.net/manual/en/function.file-get-contents.php">file_get_contents</a>)</li>
</ul>
<h3>Installation</h3>
<ol>
<li>Download <a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/06/digg.zip">digg.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/06/digg.tar.gz">gz</a>)</li>
<li>Extract and upload digg.php to the plugins/ directory</li>
<li>Enable Digg Widget in the Plugin admin panel</li>
<li>In widget admin panel, place digg in the sidebar, and edit it to enter your username</li>
</ol>
<h3>Features</h3>
<ul>
<li>Displays your latest dugg items from <a href="http://digg.com">Digg</a></li>
<li>Completely customizable display</li>
<li>Caching for large traffic sites</li>
</ul>
<p><a name="formatting"></a></p>
<h3>Formatting</h3>
<p>There are 3 parts needed to format the output.<br />
<br />
The first part, called items start in the admin panel, is the first part of the widget after the title. For the default formatting, this is just <code>&lt;ul&gt;</code>.<br />
<br />
The second part, called items end, is the ending of the widget. By default, this is:<br />
<code>&lt;/ul&gt;<br />
&lt;a href="%profilelink%" style="float:right;"&gt;%username%&lt;/a&gt;<br />
</code><br />
<br />
The third part is what is called for each item. By default, this is:<br />
<code>&lt;li style="list-style-type: none;"&#038;gt&lt;a href="%link%"&gt;%title% (%diggs%)&lt;/a&gt;&lt;/li&gt;</code></p>
<p>The premise of calling each value is this:</p>
<ol>
<li>start</li>
<li>item</li>
<li>item</li>
<li>&#8230;</li>
<li>item</li>
<li>end</li>
</ol>
<p>The formatting for items is:</p>
<ul>
<li><b>%title%</b> &#8211; Title of the item</li>
<li><b>%link%</b> &#8211; Link to the item</li>
<li><b>%desc%</b> &#8211; Description of the item</li>
<li><b>%date%</b> &#8211; Date the item was submitted (in GMT)</li>
<li><b>%category%</b> &#8211; Category of the item</li>
<li><b>%diggs%</b> &#8211; Number of diggs the item has</li>
<li><b>%comments%</b> &#8211; Number of comments the item has</li>
<li><b>%user%</b> &#8211; User name of the submitter</li>
<li><b>%userimage%</b> &#8211; Link to the submitter&#039;s icon</li>
<li><b>%number%</b> &#8211; The number of the current item</li>
</ul>
<p>The formatting for start and end is:</p>
<ul>
<li><b>%username%</b> &#8211; Your username</li>
<li><b>%profile%</b> &#8211; Link to your profile</li>
<li><b>%rss%</b> &#8211; Link to your profile&#039;s RSS feed</li>
<li><b>%count%</b> &#8211; Number of items shown</li>
</ul>
<p><b><a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/06/digg.zip">Download digg.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/06/digg.tar.gz">digg.tar.gz</a>)</b></p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/05/31/wordpress-digg-widget/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress Weather Widget</title>
		<link>http://ja.meswilson.com/blog/2007/05/29/wordpress-weather-widget/</link>
		<comments>http://ja.meswilson.com/blog/2007/05/29/wordpress-weather-widget/#comments</comments>
		<pubDate>Tue, 29 May 2007 23:43:40 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Widget-A-Day]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/05/29/wordpress-weather-widget/</guid>
		<description><![CDATA[Number 5 in Widget-A-Day is a Weather widget. It isn&#039;t too fanciful. It displays the current condition, temperature, and the feels like temperature. It uses weather.com&#039;s xoap api to retrieve the information. I&#039;ll probably come back to this and make it better. Download weather.zip SVN Checkout svn co http://svn.wp-plugins.org/weather-widget/trunk Default display: Admin panel: Requirements WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>Number 5 in <a href="http://ja.meswilson.com/blog/category/widget-a-day/">Widget-A-Day</a> is a Weather widget. </p>
<p>It isn&#039;t too fanciful. It displays the current condition, temperature, and the feels like temperature. It uses <a href="http://www.weather.com">weather.com</a>&#039;s xoap api to retrieve the information. I&#039;ll probably come back to this and make it better.</p>
<p><b><a href="http://downloads.wordpress.org/plugin/weather-widget.zip">Download weather.zip</a></b></p>
<p><b>SVN Checkout</b><br />
<code>svn co http://svn.wp-plugins.org/weather-widget/trunk</code></p>
<p>Default display:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/weather1cropped.png' alt='weather1cropped.png' /></p>
<p>Admin panel:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/weather2cropped.png' alt='weather2cropped.png' /></p>
<h3>Requirements</h3>
<ul>
<li>WordPress 2.2 or 2.0.x/2.1.x with <a href="http://automattic.com/code/widgets/">WordPress Widgets</a></li>
<li>PHP 4.3.0 or greater (needed for function <a href="http://www.php.net/manual/en/function.file-get-contents.php">file_get_contents</a>)</li>
</ul>
<h3>Installation</h3>
<ol>
<li>Download <a href="http://downloads.wordpress.org/plugin/weather-widget.zip">weather.zip</a></li>
<li>Extract and upload weather.php to the plugins/ directory</li>
<li>Enable Weather Widget in the Plugin admin panel</li>
<li>In widget admin panel, place Weather in the sidebar, and edit it to enter your location</li>
</ol>
<p><a name="location"></a></p>
<h3>Location</h3>
<p>The location can either be a zip code for US users or the locid. To find the locid, you can do a search using <code>http://xoap.weather.com/search/search?where=<b>[search parameters]</b></code>.This will return an XML file with search results and their corresponding locid&#039;s.</p>
<p>You can also find it out by the <a href="http://www.weather.com">Weather.com website</a>. After searching for and selecting you city, you will be sent to a url that will look something like, <code>http://www.weather.com/outlook/driving/interstate/local/<b>USTX0617</b>?from=search_city</code>, where <b>USTX0617</b> is the locid.</p>
<p><a name="image"></a></p>
<h3>Image Hosting</h3>
<p>I&#039;ve provided the images used and provided by weather.com <a href="http://ja.meswilson.com/blog/weatherimages.tar.gz">here</a>. If you want to host your own images, extract and upload the files, then, in the admin panel, edit the &#039;Image Location&#039; field to point to your directory of images. Make sure to have the trailing slash.</p>
<p>If you don&#039;t use your own images, you are free to use the ones that I&#039;ve hosted, which are located at http://ja.meswilson.com/blog/weatherimages/</p>
<h3>Editting display</h3>
<p>You can edit &#039;Widget Formatting&#039; to change how the info is displayed. To access the variables, use this formatting: </p>
<ul>
<li><b>%loc%</b> &#8211; Location</li>
<li><b>%temp%</b> &#8211; Current temperature</li>
<li><b>%feels%</b> &#8211; Feels like temperature</li>
<li><b>%icon%</b> &#8211; The icon referring to the current weather. This is just a number</li>
<li><b>%iconhref%</b> &#8211; The location of the image with your set image location at the front</li>
<li><b>%attribution%</b> &#8211; The link supposedly required to be displayed. <a href="http://www.weather.com/?prod=xoap&#038;par=">Weather data provided by weather.com&reg;</a></li>
</ul>
<p>The default formatting is:<br />
<code><br />
&lt;img src="%iconhref%" alt="%cond%" style="float:right;" /&gt;<br />
%loc%&lt;br /&gt;<br />
&lt;span style="font-size: 150%;"&gt;%temp% &deg;F&lt;/span&gt;<br />
(%feels% &deg;F)&lt;br /&gt;<br />
&lt;span style="font-size: 65%; float: right;"&gt;%attribution%&lt;/a&gt;<br />
</code></p>
<p><b><a href="http://downloads.wordpress.org/plugin/weather-widget.zip">Download weather.zip</a></b></p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/05/29/wordpress-weather-widget/feed/</wfw:commentRss>
		<slash:comments>120</slash:comments>
		</item>
		<item>
		<title>WordPress Countdown Widget</title>
		<link>http://ja.meswilson.com/blog/2007/05/27/wordpress-countdown-widget/</link>
		<comments>http://ja.meswilson.com/blog/2007/05/27/wordpress-countdown-widget/#comments</comments>
		<pubDate>Sun, 27 May 2007 23:40:32 +0000</pubDate>
		<dc:creator>James Wilson</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Widget-A-Day]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://ja.meswilson.com/blog/2007/05/27/wordpress-countdown-widget/</guid>
		<description><![CDATA[Today is my birthday. Woo! So that means, I&#039;m not doing anything fancy, so without further ado Number 4 in Widget-A-Day is a countdown widget. It&#039;ll display the amount of time until a certain event, or if it passed, how long ago it was. Lame? Yes. Do I care? Not really. Is there Javascript? No. [...]]]></description>
			<content:encoded><![CDATA[<p>Today is my birthday. Woo! So that means, I&#039;m not doing anything fancy, so without further ado</p>
<p>Number 4 in <a href="http://ja.meswilson.com/blog/category/widget-a-day/">Widget-A-Day</a> is a countdown widget.</p>
<p>It&#039;ll display the amount of time until a certain event, or if it passed, how long ago it was. Lame? Yes. Do I care? Not really. Is there Javascript? No. Was there supposed to be? Yes. Why not? Because I&#039;m lazy.</p>
<p><b>Update</b>: By request, added a <a href="#comment-54">new version</a></p>
<p><b><a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown.zip">Download countdown.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown.tar.gz">countdown.tar.gz</a>)</b></p>
<p>Default display:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown1cropped.png' alt='countdown1cropped.png' /></p>
<p>Admin panel:<br />
<img src='http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown2cropped.png' alt='countdown2cropped.png' /></p>
<h3>Requirements</h3>
<ul>
<li>WordPress 2.2 or 2.0.x/2.1.x with <a href="http://automattic.com/code/widgets/">WordPress Widgets</a></li>
</ul>
<h3>Installation</h3>
<ol>
<li>Download <a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown.zip">countdown.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown.tar.gz">gz</a>)</li>
<li>Extract and upload countdown.php to the plugins/ directory</li>
<li>Enable Countdown Widget in the Plugin admin panel</li>
<li>In widget admin panel, place Countdown in the sidebar, and edit it to enter your the time and name</li>
</ol>
<p><b><a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown.zip">Download countdown.zip</a> (<a href="http://ja.meswilson.com/blog/wp-content/uploads/2007/05/countdown.tar.gz">countdown.tar.gz</a>)</b></p>
]]></content:encoded>
			<wfw:commentRss>http://ja.meswilson.com/blog/2007/05/27/wordpress-countdown-widget/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
