<?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>Brian A. Thomas .com &#187; Programming</title>
	<atom:link href="http://www.brianathomas.com/archives/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brianathomas.com</link>
	<description>Random Musings of Brian A. Thomas. Love for Ari and Sidd. Playing SWTOR...</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:34:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Revisiting Android Development</title>
		<link>http://www.brianathomas.com/archives/2009/05/21/revisiting-android-development/</link>
		<comments>http://www.brianathomas.com/archives/2009/05/21/revisiting-android-development/#comments</comments>
		<pubDate>Thu, 21 May 2009 11:02:47 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Hello World]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/?p=1476</guid>
		<description><![CDATA[That is a screenshot of a basic Hello World application I did for Android&#8230; Well, I followed the lesson to make it so it isn&#8217;t an original&#8230; Anyhow, [..]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brianathomas.com/wp-content/uploads/2009/05/2009-05-21_0655.png"><img src="http://www.brianathomas.com/wp-content/uploads/2009/05/2009-05-21_0655-155x300.png" alt="" title="2009-05-21_0655" width="155" height="300" class="alignleft size-medium wp-image-1477" /></a> That is a screenshot of a basic Hello World application I did for Android&#8230; Well, I followed the lesson to make it so it isn&#8217;t an original&#8230; Anyhow, this is what it would look like on a G1, or other Android based phone.<br />
I thought I would see if I could get into Android development again, and the Hello World application is where you typically start all programming lessons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2009/05/21/revisiting-android-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A MySpace, Facebook Application for the Google Android Phone</title>
		<link>http://www.brianathomas.com/archives/2008/06/12/a-myspace-facebook-application-for-the-google-android-phone/</link>
		<comments>http://www.brianathomas.com/archives/2008/06/12/a-myspace-facebook-application-for-the-google-android-phone/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 14:32:06 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[MySpace]]></category>
		<category><![CDATA[Social Networks]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2008/06/12/a-myspace-facebook-application-for-the-google-android-phone/</guid>
		<description><![CDATA[I talked how I was wanting to learn Java, so I could start making programs for the Android mobile phone platform. A project that I thought of, but [..]]]></description>
			<content:encoded><![CDATA[<p>I talked how I was wanting to learn Java, so I could start making programs for the Android mobile phone platform.<br />
A project that I thought of, but is perhaps beyond my ability for any time soon, is an application that will tie in with <a href="http://www.myspace.com/">MySpace</a>, <a href="http://www.facebook.com/">Facebook</a> and expendable to other social network websites.<br />
Basically, it searches your friends lists, and if they have an Android phone as well and the location tracking feature turned on, you can see which of your MySpace/Facebook friends are nearby by using the Android&#8217;s built in GPS. There are variants I saw of this out there, but none I know tie in directly with the current social network, rather they setup their own networks.<br />
Bes I can figure it, each user who has an Android device, sets up an application on their MySpace/Facebook page that detects when they enable the location feature on their Android. For privacy reasons, all it shows on the webpage itself is that location tracking is on. The back end of the application that the Friends can&#8217;t see, but the user can, allows them to block certain friends, or allow only certain friends to see their location.<br />
If two friends have their location tacking enabled, then when they look at the application on their Android, it shows where they are via Google Maps. You can see in an instant if your friends are running late to meet you at the movie theater, or see when a friend arrives in town and a host of other cool features.<br />
At the same time, there are the normal security concerns if some pervert is using a fake MySpace account to find young girls or something like that. I haven&#8217;t figured a way around that, but in all honesty I don&#8217;t know as if one does need to, since if they already got friended, they are already in, and as I said, the back end allows you to add only select friends to the location tracking, so hopefully that added level of security will be enough. Still the end user license would need to be written in a way so that the developer would assume no responsibility for abuse of the system. Personally, I would add a warning when they add friends to the location tracking that reminds them to be extra careful of whom they allow to track their location (this would be a dialog box that pops up each time, but would probably have a check mark so you could avoid the message next time). By default, it wouldn&#8217;t have any friends listed in the allow column.<br />
Anyhow, that is the basics of it. I have more details floating around in my head.<br />
Some of the variations out there currently (well, currently may not be the right word since Android itself isn&#8217;t out yet, but these are the ones that I know of in active development) that I know of:<br />
<span id="more-1296"></span><br />
<a href="http://beetaun.com/">Beetaun</a>. &#8220;Social network around geographical content created by people and for people.&#8221;<br />
<a href="http://commandro.net/">Commandro</a>. Location based social networking utility.<br />
<a href="http://lifeaware.net/">LifeAware</a>.<br />
Those don&#8217;t include some of the more game oriented ones which rely on the Android&#8217;s built in GPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2008/06/12/a-myspace-facebook-application-for-the-google-android-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Java</title>
		<link>http://www.brianathomas.com/archives/2008/06/10/learning-java/</link>
		<comments>http://www.brianathomas.com/archives/2008/06/10/learning-java/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 14:31:56 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Cell Phone]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Head First Java 2nd Edition]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[nVidia]]></category>
		<category><![CDATA[Open Handset Alliance]]></category>
		<category><![CDATA[Tegra]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2008/06/10/learning-java/</guid>
		<description><![CDATA[There is a phone platform coming out called Android, which is a project of the Open Handset Alliance. A number phone manufacturers are going to be making mobile [..]]]></description>
			<content:encoded><![CDATA[<p>There is a phone platform coming out called <a href="http://code.google.com/android/">Android</a>, which is a project of the <a href="http://www.openhandsetalliance.com/">Open Handset Alliance</a>. A number phone manufacturers are going to be making mobile phones based on the Open Handset Alliance specification, all of which use Android. To program for Android, you need to know Java, and so I am starting on a path of learning Java. I chose C# over Java eons ago as I was mostly interested in Windows programming, so Java&#8217;s ability to compile on one machine and run on many others, even if they weren&#8217;t Windows machines, be they Linux, Mac or whatever, wasn&#8217;t a concern. Most mobile phones use Java for their games and applications. Apple&#8217;s iPhone is cool, but to program for it, you have to have a Mac, so no programming for the iPhone. Plus the iPhone&#8217;s market is limited right now do to the exclusive AT&#038;T deal (you can unlock the phone and run it on T-Mobile for example, but most people won&#8217;t go through that much trouble). nVidia has a chipset coming out, but for the moment, none of the Tegra based phones are for Android, but Windows Mobile based phones (and other handheld devices). nVidia is a member of the Open Handset Alliance, so they may support somebody making a Tegra based phone that conforms to the Open Handset Alliance and Android. This will be cool since they seem to have the best graphics of the phones.<br />
There are a couple of caveats however as I embark on learning Java. First, while most Java programs can be ran on many platforms, this doesn&#8217;t seem to be the case with Android&#8217;s implementation. While the language itself is the same, you can&#8217;t compile a program that will run on both Android and say a Windows machine, another cell phone, or something like that, and vica-versa. The problem is they apparently use a different virtual machine to run on than all other implementations. They did this so it would run better on a mobile platform as I understand it. It isn&#8217;t clear to me, but it looks like since the language is the same, you could do two compiles, one for Android and one for everything else, but I may be wrong on that part&#8230; of course if you use Android specific APIs, then it won&#8217;t work on anything else.<br />
Anyhow, I am presently staring on reading <a href="http://www.amazon.com/gp/product/0596009208?ie=UTF8&#038;tag=briaathomcom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596009208">Head First Java, 2nd Edition</a><img src="http://www.assoc-amazon.com/e/ir?t=briaathomcom-20&#038;l=as2&#038;o=1&#038;a=0596009208" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> (I am just borrowing that copy, so I don&#8217;t have a good hardcopy of my own yet&#8230;). Early into the first chapter we do an exercise where we do the &#8220;99 Bottle of Beer on the Wall&#8221;. The program compiles and runs fine, but, as they note, the output isn&#8217;t 100% correct. It took me a while, but I found it.<br />
<span id="more-1295"></span><br />
I won&#8217;t revel the answer here, but I&#8217;ll drop hints, just in case somebody hits this via a Google search and is looking for some hints.<br />
The code block below doesn&#8217;t have the answer, but gives to big a hint, so try for the first one if you can advert your eyes from the code block&#8230; <img src='http://www.brianathomas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
First hint:<br />
Look carefully at the output when the count is 1.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2008/06/10/learning-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing GStyles</title>
		<link>http://www.brianathomas.com/archives/2007/10/12/fixing-gstyles/</link>
		<comments>http://www.brianathomas.com/archives/2007/10/12/fixing-gstyles/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 12:41:17 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[GStyles]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2007/10/12/fixing-gstyles/</guid>
		<description><![CDATA[I am working on fixing the theme I am using, GStyles (available here) and trying to make it work with WordPress 2.3. So far I have fixed index.php [..]]]></description>
			<content:encoded><![CDATA[<p>I am working on fixing the theme I am using, GStyles (available <a href="http://milo.peety-passion.com/themes/">here</a>) and trying to make it work with WordPress 2.3.<br />
So far I have fixed index.php and singles.php.<br />
Here is an original code snippet from singles.php (sorry, the code runs over the edge, the theme is fixed width so it runs over... I might make this column flexible in due time, one thing at a time... or see if there is a "word wrap" feature in the program highlighter)...it should be the same in index.php:</p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;small&gt;Category: <span style="color:#000000; font-weight:bold;">&lt;?php</span> the_category<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">', '</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> &lt;strong&gt;|&lt;/strong&gt; <span style="color:#000000; font-weight:bold;">&lt;?php</span> edit_post_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Edit'</span>,<span style="color:#FF0000;">''</span>,<span style="color:#FF0000;">'&lt;strong&gt;|&lt;/strong&gt;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> <span style="color:#000000; font-weight:bold;">&lt;?php</span> comments_popup_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Leave a Comment'</span>, <span style="color:#FF0000;">'1 Comment'</span>, <span style="color:#FF0000;">'% Comments'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;br /&gt;Tags: <span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'UTW_ShowTagsForCurrentPost'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> UTW_ShowTagsForCurrentPost<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"commalist"</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&gt;&lt;?php <span style="color:#006600; font-weight:bold;">&#125;</span>?&gt;&lt;/small&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
This was fixed in my new version to look like this:</p>
<div class="igBar"><span id="lphp-5"><a href="#" onclick="javascript:showPlainTxt('php-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-5">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;small&gt;Category: <span style="color:#000000; font-weight:bold;">&lt;?php</span> the_category<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">', '</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> &lt;strong&gt;|&lt;/strong&gt; <span style="color:#000000; font-weight:bold;">&lt;?php</span> edit_post_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Edit'</span>,<span style="color:#FF0000;">''</span>,<span style="color:#FF0000;">'&lt;strong&gt;|&lt;/strong&gt;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> <span style="color:#000000; font-weight:bold;">&lt;?php</span> comments_popup_link<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Leave a Comment'</span>, <span style="color:#FF0000;">'1 Comment'</span>, <span style="color:#FF0000;">'% Comments'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; ?&gt;&lt;br /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_tags'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#0000FF;">$my_tags</span> = get_the_tags<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;if <span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#0000FF;">$my_tags</span> != <span style="color:#FF0000;">""</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span> the_tags<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Tags: '</span>, <span style="color:#FF0000;">', '</span>, <span style="color:#FF0000;">'&lt;br /&gt;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Tags: None"</span>;<span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'UTW_ShowTagsForCurrentPost'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'Tags: '</span>;UTW_ShowTagsForCurrentPost<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"commalist"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;echo <span style="color:#FF0000;">'&lt;br /&gt;'</span>; <span style="color:#006600; font-weight:bold;">&#125;</span> ?&gt;&lt;/small&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
That should allow it to fall back to UTW if somebody is still using an older version of WordPress. However, I don't have an old install to test it on, but near as I can tell it should be good.<br />
I am now working on fixing the functions.php and finding a fix for the <code>post2cat</code> problems in it.<br />
The problem with GStyles in WordPress 2.3 as it stands now also comes from the following in singles.php:</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span> is_single<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> or is_page<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span> <a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'cattag_related_posts'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$relatedposts</span> = cattag_related_posts<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$relatedposts</span> === <span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// echo '&lt;p&gt;No related posts&lt;/p&gt;';</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'&lt;div class=&quot;related-posts&quot;&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;"></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&lt;h2&gt;Related posts:&lt;/h2&gt;&lt;ul&gt;'</span> . <span style="color:#0000FF;">$relatedposts</span> . <span style="color:#FF0000;">'&lt;/ul&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;"></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&lt;/div&gt; &lt;!-- [related-posts] --&gt;'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
The fix is simple enough for now, just take that bit out. It kills the Related Posts function, but <code>cattag_related_posts</code> needs the <code>post2cat</code>. Now that is the part that may be past my programming experiences so far... then again, I did figure out how to get the rest working. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2007/10/12/fixing-gstyles/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Yet Another Program I Want to Make</title>
		<link>http://www.brianathomas.com/archives/2007/07/04/yet-another-program-i-want-to-make/</link>
		<comments>http://www.brianathomas.com/archives/2007/07/04/yet-another-program-i-want-to-make/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 13:18:31 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Class-Picker/Scheduler]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2007/07/04/yet-another-program-i-want-to-make/</guid>
		<description><![CDATA[Oh for the time to actually do some programming. I was looking at a college schedule, trying to figure out what classes I would want to take. For [..]]]></description>
			<content:encoded><![CDATA[<p>Oh for the time to actually do some programming.<br />
I was looking at a college schedule, trying to figure out what classes I would want to take. For a single class however, there may be 6 during the same semester, and this is just the day ones, and 3 or so of which I could probably do before I had to go to work myself. To add to the complications you have 5 or 6 subjects to take during the semester so you had to really consult dates and times when trying to figure out which ones to take. I then decided the best idea would be to make a program where I would enter all 6 or so classes for each of 5 or 6 subjects into a program and use it to help avoid conflicts.<br />
I then modified my idea to include warning levels if a class might conflict with work or the time to get to work. For example, I work at 3 PM. It might give a yellow alert when I have an hour and an orange alert at 30 minutes and a red alert at 15 minutes, all configurable for each user of the program.<br />
The idea was further revised when talking with Sara and trying to figure a way that we can both work, both go to school and minimize the time that Ari would have to be watched by somebody other than us. To then the program idea was modified to allow 2 or more people see how much overlap they have and try to minimize it.<br />
The unfortunate thing is that the user will have to enter lots of information. English Composition for example may be offered 12 times during the semester during the time period the user might be able to go. The user has to enter each of those. The user interface will make things easier by allowing the user to "duplicate" an entry and then all they have to modify is the Class ID (the ID given by the school for that specific class at that specific date and time, this compares to the Course ID which is what all 12 of the same class from above would share) dates the class is offered if that changes (class starting and ending dates such as 8/27/07 to 9/13/07), times, days (Mon, Tue, etc.), campus and room information.<br />
I tried finding a program like this morning, but so far I haven't had any luck, at least not free. Most of what I have seen, free or otherwise is geared to the school itself, not for the student, and none of which seemed to really do what I wanted. So I guess I have another program to add to <a href="http://www.brianathomas.com/programs/">my programming queue</a>.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2007/07/04/yet-another-program-i-want-to-make/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back on the Developer Reading Block</title>
		<link>http://www.brianathomas.com/archives/2007/05/16/back-on-the-developer-reading-block/</link>
		<comments>http://www.brianathomas.com/archives/2007/05/16/back-on-the-developer-reading-block/#comments</comments>
		<pubDate>Wed, 16 May 2007 15:17:03 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2007/05/16/back-on-the-developer-reading-block/</guid>
		<description><![CDATA[I am getting back to reading Murach's C# 2005 and Visual C# 2005 How to Program (2nd Edition) (How to Program) as I am finding myself a bit [..]]]></description>
			<content:encoded><![CDATA[<p>I am getting back to reading <a href="http://www.amazon.com/gp/product/1890774375?ie=UTF8&#038;tag=briaathomcom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1890774375">Murach's C# 2005</a><img src="http://www.assoc-amazon.com/e/ir?t=briaathomcom-20&#038;l=as2&#038;o=1&#038;a=1890774375" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> and <a href="http://www.amazon.com/gp/product/0131525239?ie=UTF8&#038;tag=briaathomcom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0131525239">Visual C# 2005 How to Program (2nd Edition) (How to Program)</a><img src="http://www.assoc-amazon.com/e/ir?t=briaathomcom-20&#038;l=as2&#038;o=1&#038;a=0131525239" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> as I am finding myself a bit rusty having not programmed anything for a long time. I really need to keep myself doing a little bit every once and a while just to keep my mind fresh with it. I've gone on how good these two books are enough that I won't go on again, but they are seriously great... Now if only I had a slightly better PC with a good DirectX 10 video card and Vista and I could really get cracking with Visual Studio 2007 when it comes out (VS 2007 will work on XP, but it is really meant to be for Vista development)... to be fair, actually my PC is mostly okay, perhaps a bit more RAM, it is my video card that is the problem at the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2007/05/16/back-on-the-developer-reading-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Lottery Program Part 4</title>
		<link>http://www.brianathomas.com/archives/2007/05/12/my-lottery-program-part-4/</link>
		<comments>http://www.brianathomas.com/archives/2007/05/12/my-lottery-program-part-4/#comments</comments>
		<pubDate>Sat, 12 May 2007 13:42:24 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2007/05/12/my-lottery-program-part-4/</guid>
		<description><![CDATA[Continuing my updates on the progress of my Lottery Program, I recently got it to parse the Mega Millions website to get the latest numbers. Basically it gets [..]]]></description>
			<content:encoded><![CDATA[<p>Continuing <a href="/archives/2007/05/07/my-lottery-program-part-3/">my updates on the progress of my Lottery Program</a>, I recently got it to parse the Mega Millions website to get the latest numbers. Basically it gets a text file, which I have yet to get the program to extract just what I want, but I am making progress slow and sure. I am a little rusty as I haven't been programming like I should on a constant basis. It got me to break out <a href="http://www.amazon.com/gp/product/1890774375?ie=UTF8&#038;tag=briaathomcom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1890774375">Murach's C# 2005</a><img src="http://www.assoc-amazon.com/e/ir?t=briaathomcom-20&#038;l=as2&#038;o=1&#038;a=1890774375" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> and <a href="http://www.amazon.com/gp/product/0131525239?ie=UTF8&#038;tag=briaathomcom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0131525239">Visual C# 2005 How to Program (2nd Edition) (How to Program)</a><img src="http://www.assoc-amazon.com/e/ir?t=briaathomcom-20&#038;l=as2&#038;o=1&#038;a=0131525239" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />, two great books on learning C# (I am guessing they both will be updating for Visual Studio 2007/2008 whatever it may be called, since there seems to be some major advances coming with it).<br />
I really could use winning a small sum from the lottery myself. Beyond the need for new(er) cars, I could also use a good laptop so I could work on my programming lessons and stuff while away from the main PC (such as spending the day at Borders, or during my breaks at work and so on). </p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2007/05/12/my-lottery-program-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Time Do I Leave Friday Updated</title>
		<link>http://www.brianathomas.com/archives/2007/05/12/what-time-do-i-leave-friday-updated-2/</link>
		<comments>http://www.brianathomas.com/archives/2007/05/12/what-time-do-i-leave-friday-updated-2/#comments</comments>
		<pubDate>Sat, 12 May 2007 13:32:53 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2007/05/12/what-time-do-i-leave-friday-updated-2/</guid>
		<description><![CDATA[My What Time Do I Leave Friday program had a minor update today. No change to the main program, but the installer no longer chokes if your version [..]]]></description>
			<content:encoded><![CDATA[<p>My <a href="/program-what-time-do-i-leave-friday/">What Time Do I Leave Friday</a> program had a minor update today. No change to the main program, but the installer no longer chokes if your version of the .Net framework isn't exactly as needed (sometimes it would have a problem if you had a newer version). It still checks your .Net version, and if you have an older version, it will offer you a chance to download the newest 2.x version... so basically, it is just an installer upgrade. <img src='http://www.brianathomas.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
It will not download the newest 3.x version of .Net, and it appears it will download the newest 2.x version, run the .Net installer then continue to run the rest of the install. Also, the installer presently only checks if you have 2.0, not if you have the absolute newest version. I may change the value later to be sure you have the newest version, but since the program only requires 2.0 that is all I checked for.<br />
Anyhow, the newest version of the program can be found <a href="http://www.brianathomas.com/software/whattimefriday/WhatTimeSetup.zip">here</a>. Download the .zip, extract it then run the setup.exe. The program includes a help file to help you use it, though I think it is fairly straight forward.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2007/05/12/what-time-do-i-leave-friday-updated-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Lottery Program, Part 3</title>
		<link>http://www.brianathomas.com/archives/2007/05/07/my-lottery-program-part-3/</link>
		<comments>http://www.brianathomas.com/archives/2007/05/07/my-lottery-program-part-3/#comments</comments>
		<pubDate>Mon, 07 May 2007 12:54:42 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[lottery]]></category>
		<category><![CDATA[lottery_program]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2007/05/07/my-lottery-program-part-3/</guid>
		<description><![CDATA[What I meant to say in my previous post about my Lottery Program before I got too distracted, was to continue on about selling the program in a [..]]]></description>
			<content:encoded><![CDATA[<p>What I meant to say in my <a href="/archives/2007/05/06/more-on-my-lottery-program/">previous post about my Lottery Program</a> before I got too distracted, was to continue on about selling the program in a few stores that I figure are more or less a lock to get into, short of it being against the rules for them to sell it there. Since we have friends and family that owns stores that sell tickets, I figured it would be natural to start sells there, however I have a couple issues to address before I can do that.</p>
<ul>
<li>My CD/DVD burner doesn't recognize CDs. Something got messed up with it's laser alignment or something, I don't know, so I'll have to get a new one. I have a few models I am looking at. A <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16827129007">Pioneer Black 18x</a>, about ($31), <a href="http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&#038;DEPA=0&#038;Description=+LH-20A1H&#038;x=31&#038;y=42">Lite-On LH-20A1H</a> ($33 for OEM, $38 Retail) which adds <a href="http://en.wikipedia.org/wiki/Lightscribe">LightScribe</a> which may be helpful and nullify one of the points below, on up to the <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16827249003">Plextor PX-760A</a> ($100) which doesn't have LightScribe but is faster than the others, and being a Plextor, a bit more reliable. If I was to get one right now, it would probably be the Lite-On with LightScribe, since it save me the expense of...</li>
<li>My printer is a Cannon Pixma IP4000, which outside of the USA here can print on printable CDs and DVDs. In the US, they took out two parts and put in a slightly altered front door. So to print on CDs, properly,  you need to buy two parts, the roller and the tray. Both are <a href="http://search.ebay.com/search/search.dll?cgiurl=http://cgi.ebay.com/ws/&#038;fkr=1&#038;from=R8&#038;satitle=canon+cd+tray&#038;category0=">available on eBay</a> and the two parts together will set you back $31, not too bad really (note the link only takes you to the CD tray, the CD tray in question needed for this printer is tray B, but a few of the listings have the roller as well). <a href="http://www.stevesforums.com/forums/view_topic.php?id=58907&#038;forum_id=40">Details on CD/DVD printing on US IP3000/4000/50000</a> are available at the link provided. The nice thing is that this provides for full color printing on CDs and DVDs that are inkjet printable, unlike LightScribe which is monochromatic, though some of the newer ones have a background color other than just gold. It is probably recommended to get anyhow, even with a LightScribe burner, there are times when either you want color, or like me you have a bunch of inkjet printable disks.</li>
</ul>
<p><span id="more-1055"></span><br />
I'll probably get the Lite-On soon, since I really need a CD burner... heck my DVD burner is so messed up it won't even read a CD anymore. Nobody out there seems to have a clue as to what happened, I know it isn't a driver issue as it won't even boot using a bootable CD, and it didn't work in Linux when I had Linux semi-working for a while back when. While I am at it, perhaps I should pick up a <a href="http://www.mwave.com/mwave/skusearch.hmx?SCriteria=AA32400&#038;CartID=done&#038;nextloc=">Mitsumi FA404A</a> ($20), which would give me a floppy drive again, along with a media card reader (I still don't know if the card that was in my camera before the camera became inoperative had any images on it).<br />
Anyhow, a printing system of some type will be needed, to that end I think the Lite-On is the solution to go for... Hmm... I just noticed printing times on LiteScribe are kind of slow. No question on using 1.2 media since there is a huge time savings and boost in quality, but with each disk taking 15 to 20 minutes for a nice image... Of course if I stuck with basic text it might not be that bad.<br />
What I really want to find is a Lite-On DH-20A3L, but it must be too new...</p>
<p>EDIT: Also, I need to come up with a really cool name for the program.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2007/05/07/my-lottery-program-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More on My Lottery Program</title>
		<link>http://www.brianathomas.com/archives/2007/05/06/more-on-my-lottery-program/</link>
		<comments>http://www.brianathomas.com/archives/2007/05/06/more-on-my-lottery-program/#comments</comments>
		<pubDate>Sun, 06 May 2007 21:26:34 +0000</pubDate>
		<dc:creator>Brian A. Thomas</dc:creator>
				<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[free_cell_game]]></category>
		<category><![CDATA[lottery]]></category>
		<category><![CDATA[lottery_program]]></category>

		<guid isPermaLink="false">http://www.brianathomas.com/archives/2007/05/06/more-on-my-lottery-program/</guid>
		<description><![CDATA[Continuing where I left off with regards to My Lottery Program that I want to make. It also occurred to me while starting out the design there are [..]]]></description>
			<content:encoded><![CDATA[<p>Continuing where I left off with regards to <a href="/archives/2007/05/06/my-lottery-program/">My Lottery Program</a> that I want to make.<br />
It also occurred to me while starting out the design there are several stores that I could sell it in if I can get it to a semi-professional status. All of them sell lottery tickets, so it would be a natural for them to have a program, made by somebody in the family non-the-less, to help people pick ticket numbers. It may entice them to buy more tickets, which equals more revenue for the stores. Unless of course there are rules against having such a program in a store that sells lottery tickets.<br />
In regards to Lottery Wheels, another example. Let's say you have 7 numbers you want to play on the Mega Millions (not counting the Mega Ball) you will end up playing 9 tickets to guarantee a win of 4 numbers. Again, 4 of the 7 numbers you picked have to come up, so the guarantee just says that one of the tickets will be a winner in the event 4 of your 7 are drawn, which you can't guarantee with just a pure random selection.<br />
Random numbers is such an interesting concept. You would think randomness would be easy to achieve, but say if they drop all the numbers into the lottery bin in the same order, at the same rate every time, and the paddles in the bin are in the same spot every time, your ability to be truly random, even with a machine like a lottery machine goes down some. Computers have an even harder time generating truly random numbers. The <a href="/archives/2005/04/14/freecell/">Free Cell</a> game you have on your computer has 1 million different deals (on XP anyhow, only 32,000 on older versions, see the previous link for more details of the number of deals and solvable/unsolvable ones). Nobody programmed all 1 million deals in (or 32,000 for that matter0, laying out what order each card will come out in. The way they archive it is that they give the random number generator a number called a seed, and from there it generates a random pattern, except after the first time, the same seed results in the same pattern. Generally to pull a "true" random number the computer will use the time clock, the problem is, two otherwise equal PCs doing the same task at the exact same time would get the same results, so you are once again not truly random, though this is normally random enough for most things. There is a logical reason for computers to be so predictable with random numbers, and that is testing. By constantly giving it the same set of seed values you can predict how it should behave and find problems with other aspects of a program or something before seeding it with a truly random number.<br />
Anyhow, there are some features that I plan on adding that I haven't seen in any of the other programs yet, but then again some of them don't have free time limited demos, so I can't be sure, I don't recall seeing these features on any of their feature pages. Since they don't mention it, I won't mention this feature until the program is out since this may make me a unique entry in the market place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianathomas.com/archives/2007/05/06/more-on-my-lottery-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

