<?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>Logic High Blog &#187; Software</title>
	<atom:link href="http://blog.logichigh.com/tag/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.logichigh.com</link>
	<description>Logic High Software Blog</description>
	<lastBuildDate>Fri, 03 Sep 2010 00:29:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Validating an e-mail address</title>
		<link>http://blog.logichigh.com/2010/09/02/validating-an-e-mail-address/</link>
		<comments>http://blog.logichigh.com/2010/09/02/validating-an-e-mail-address/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 00:29:33 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email validation]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=231</guid>
		<description><![CDATA[
			
				
			
		
Question:  How do I verify if a string of characters is a valid e-mail address?
First, you can only be sure about the second half of the e-mail address (the domain), as (in order to protect the anonymity of their users) many e-mail servers don&#8217;t give immediate responses when checked to see if the first [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F09%2F02%2Fvalidating-an-e-mail-address%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F09%2F02%2Fvalidating-an-e-mail-address%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Question:  How do I verify if a string of characters is a valid e-mail address?</p>
<p>First, you can only be sure about the second half of the e-mail address (the domain), as (in order to protect the anonymity of their users) many e-mail servers don&#8217;t give immediate responses when checked to see if the first part of the e-mail address is valid (although some will send a bounce notification at a later date, once an e-mail has been attempted).</p>
<p>Second, you can only TRULY verify if the domain address is accurate if the testing application has internet access.</p>
<p>So, without making a DNS call (or before), you can&#8217;t be absolutely sure that the user or the domain actually exists, and can never be sure if the user (and therefore the email) is an actual e-mail address.</p>
<p>But you can check to see if the format is valid using a regular expression.  And this is where things get REALLY tricky, as how restrictive you want to be in your filtering depends on you, and while there is a defined standard, simply adhering to that standard may exclude e-mail addresses that are in use.</p>
<p>It seems that the most common regular expression that is suggest on the web is the following:</p>
<pre name="code">
^[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$
</pre>
<p>This will cover ALMOST all e-mail address you will run into, and will exclude obnoxious e-mails like badpirate@gmail.com.nospam</p>
<p>However, it will exclude a few e-mail addresses that are in use (but are probably being excluded and having trouble in lots of places:</p>
<ul>
<li>kevin@yesthistldexists.museum &#8211; Yes .museum is a valid Top Level Domain</li>
<li>kevin@kevin@logichigh.com &#8211; Yes the current e-mail RFC doesn&#8217;t allow this type of e-mail address HOWEVER older RFC&#8217;s did, and so there may be some folks still using this format (and not being able to use this format in lots of other places)</li>
<li>??@??web.jp &#8211; International characters in domains and user names are already being normalized to ascii friendly code by browsers and e-mail clients, so they are being used regularly, however if you are checking before that normalization occurs, these sorts of e-mail addresses will get tossed</li>
</ul>
<p>Therefore, I&#8217;ve also written a super lax e-mail format checker that will catch all scenarios.  This reg ex would probably be best used if you plan on checking to see if the domain exists after checking to see if the format loosely matches SOME format that COULD be in use <img src='http://blog.logichigh.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre name="code">
^.+@.+\.[A-Za-z]{2}[A-Za-z]*$
</pre>
<p>Finally, if you&#8217;d like to implement this in cocoa code:</p>
<pre name="code" class="c++">
BOOL NSStringIsValidEmail(NSString *checkString)
{
	NString *stricterFilterString = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
	NSString *laxString = @".+@.+\.[A-Za-z]{2}[A-Za-z]*";
	NSString *emailRegex = stricterFilter ? stricterFilterString : laxString;
	NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
	return [emailTest evaluateWithObject:checkString];
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2010/09/02/validating-an-e-mail-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PirateWalla iPhone</title>
		<link>http://blog.logichigh.com/2010/05/31/piratewalla-2/</link>
		<comments>http://blog.logichigh.com/2010/05/31/piratewalla-2/#comments</comments>
		<pubDate>Mon, 31 May 2010 20:02:44 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[gowalla]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iphone app]]></category>
		<category><![CDATA[location based]]></category>
		<category><![CDATA[logichigh]]></category>
		<category><![CDATA[pirate]]></category>
		<category><![CDATA[piratewalla]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=221</guid>
		<description><![CDATA[Coming soon!]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F05%2F31%2Fpiratewalla-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F05%2F31%2Fpiratewalla-2%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><em>Coming soon!</em></p>
<p>Arrr&#8230; For the truly compulsive GoWalla user.  This here application will perform an ever growing spiral search from your current location and will find any booty (items) you have not collected yet in all nearby locations.  Yarr.. and it can be fine tuned to even help you lower the issue numbers of your existing collected items.<br />
Why would you want to do all of this?  Because you are compulsive.  And gotta have them all.<br />
Why am I charging $5??</p>
<ol>
<li>This tool is incredibly effective at helping you find rare items.  Rare items that I might also need.  Rare items that other users of the application would just as soon hope that YOU never find.  By making it cost as much as a draft beer, I can assure that only the devoted pirates find the treasure.</li>
<li>The Gowalla API be a shifty one.  Gowalla changes the way their backend works ALL THE TIME, and with NO WARNING.  I could do this application for free&#8230; but the upkeep would soon make it not worth the effort to update, and it would be a free broken application.  By charging a few bucks, I can make it worth my time to deal with the GoWalla headache.</li>
<li>I&#8217;m a pirate.  Yarr.  Need dub-loons to buy rum.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2010/05/31/piratewalla-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PirateWalla</title>
		<link>http://blog.logichigh.com/2010/03/22/piratewalla/</link>
		<comments>http://blog.logichigh.com/2010/03/22/piratewalla/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 23:09:38 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[gowalla]]></category>
		<category><![CDATA[gowalla tools]]></category>
		<category><![CDATA[Hawaii]]></category>
		<category><![CDATA[iphone logic high]]></category>
		<category><![CDATA[Oahu]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=210</guid>
		<description><![CDATA[
			
				
			
		
I made a tool that should be useful to people who play GoWalla too much.  Currently, it has two functions:

GCD &#8211; Gowalla Compulsive Disorder &#8211; Gives you a score based on how many items you&#8217;ve collected and how cool (low number issue) they are.
Search Oahu &#8211; Searches ALL of Oahu and your friends inventories for [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F03%2F22%2Fpiratewalla%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F03%2F22%2Fpiratewalla%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I made a tool that should be useful to people who play GoWalla too much.  Currently, it has two functions:</p>
<ul>
<li>GCD &#8211; Gowalla Compulsive Disorder &#8211; Gives you a score based on how many items you&#8217;ve collected and how cool (low number issue) they are.</li>
<li>Search Oahu &#8211; Searches ALL of Oahu and your friends inventories for items that you need in your collection and tells you where to find them.</li>
</ul>
<p><a href="http://software.logichigh.com/piratewalla">Enjoy.</a></p>
<p style="text-align: center;"><a href="http://software.logichigh.com/piratewalla"><img class="size-full wp-image-213 aligncenter" title="Yarr" src="http://blog.logichigh.com/wp-content/uploads/2010/03/Screen-shot-2010-03-22-at-1.07.34-PM.png" alt="PirateWalla" width="258" height="249" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2010/03/22/piratewalla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Malama Card Application</title>
		<link>http://blog.logichigh.com/2010/03/15/malama-card-application/</link>
		<comments>http://blog.logichigh.com/2010/03/15/malama-card-application/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 05:05:08 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[coupon]]></category>
		<category><![CDATA[Hawaii]]></category>
		<category><![CDATA[Honolulu]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Logic High]]></category>
		<category><![CDATA[malama card]]></category>
		<category><![CDATA[Oahu]]></category>
		<category><![CDATA[savings]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=206</guid>
		<description><![CDATA[
			
				
			
		
Just finished another iPhone Application, and you can find it in the Apple Store for free starting today!  Start getting great savings around Hawaii using this Malama Card Application built for Kamehameha Schools.  And keep your ears open for more great applications from Logic High Software!
Fast Tube by Casper
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F03%2F15%2Fmalama-card-application%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F03%2F15%2Fmalama-card-application%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Just finished another iPhone Application, and you can find it in the <a href="http://itunes.apple.com/us/app/id360014095?mt=8">Apple Store for free</a> starting today!  Start getting great savings around Hawaii using this Malama Card Application built for Kamehameha Schools.  And keep your ears open for more great applications from <a href="http://software.logichigh.com">Logic High Software</a>!</p>
<p style="text-align: center;"><!--[Fast Tube]--><span id="-9aN68sYYWQ" style="display:block;"><a title="Click here to watch this video!" href="http://blog.logichigh.com/2010/03/15/malama-card-application/#-9aN68sYYWQ"><img src="http://i.ytimg.com/vi/-9aN68sYYWQ/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2010/03/15/malama-card-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beta Testers Needed</title>
		<link>http://blog.logichigh.com/2010/03/08/beta-testers-needed/</link>
		<comments>http://blog.logichigh.com/2010/03/08/beta-testers-needed/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 09:23:55 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Beta]]></category>
		<category><![CDATA[beta testers]]></category>
		<category><![CDATA[Domacy]]></category>
		<category><![CDATA[Geo-Location based]]></category>
		<category><![CDATA[Hawaii]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[Logic High]]></category>
		<category><![CDATA[Oahu]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=202</guid>
		<description><![CDATA[
			
				
			
		
Hey everybody, I&#8217;ve got a new geo-location based game coming out very soon that I&#8217;d like to beta test a little bit before it&#8217;s launch.
Specifically I&#8217;m looking for iPhone 2G, 3G and 3GS owners, preferably in the Oahu area as the game is multi-player and depends on having friends to battle with, however if you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F03%2F08%2Fbeta-testers-needed%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2010%2F03%2F08%2Fbeta-testers-needed%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Hey everybody, I&#8217;ve got a new geo-location based game coming out very soon that I&#8217;d like to beta test a little bit before it&#8217;s launch.</p>
<p>Specifically I&#8217;m looking for iPhone 2G, 3G and 3GS owners, preferably in the Oahu area as the game is multi-player and depends on having friends to battle with, however if you have a few friends who are also iPhone owners and want to test it out in your area then that is dandy as well.</p>
<p style="text-align: center;"><a href="http://blog.logichigh.com/beta-testers-2/">Sign up for the beta tester mailing list to be a tester</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2010/03/08/beta-testers-needed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You call that art?</title>
		<link>http://blog.logichigh.com/2009/03/18/you-call-that-art/</link>
		<comments>http://blog.logichigh.com/2009/03/18/you-call-that-art/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 09:35:18 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[musing]]></category>
		<category><![CDATA[romance]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=138</guid>
		<description><![CDATA[
			
				
			
		
He sat in a poorly lit corner of the furniture crowded coffee house.  His apparel would become outdated if you described it.  Pen in one hand, and a black notebook in the other he bent over his work.
She was at the counter, chatting with the barista, biding her time until she noticed him.  The attraction [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F03%2F18%2Fyou-call-that-art%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F03%2F18%2Fyou-call-that-art%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>He sat in a poorly lit corner of the furniture crowded coffee house.  His apparel would become outdated if you described it.  Pen in one hand, and a black notebook in the other he bent over his work.</p>
<p>She was at the counter, chatting with the barista, biding her time until she noticed him.  The attraction instant and subconscious.  A primal understanding, here was a mate with talent.  The way young girls swoon over pop stars, or the girl at the bar goes home with the guy that clears the pool table.  She approached the table and sat.</p>
<p>He glanced up from his work, immediately taken in his own way, physically reacting to his own unconscious understanding of her quality.  He felt fueled and inspired by it.  Whether or not he realized it, sitting across from him was the only reason he practiced his art.  His designs the human equivalent of carefully pruned plumage.  He smiled at her, and went back to work, with passion and drive.  He could work the rest of his life sitting across from her, the power of woman so subtle and strong.</p>
<p>She sat and watched him work for a while, without saying a word.  Enraptured in the way he would look up every now and again, making her wonder, is it a portrait?  Or maybe a poem.  Perhaps he&#8217;s writing a screenplay.</p>
<p>Is it about me?</p>
<p>&#8220;Can I see?&#8221;</p>
<p>He clutched the notebook close to his now palipitating chest.  This was his work, what would she think?  It is a big moment, but he has courage and confidence.  He smiles, and pushes the notebook across the table.</p>
<p>She looks at it slowly moving it from side to side.</p>
<p>&#8220;What is it?&#8221;</p>
<p>Perplexed with a sprig of disappointment she looks to him.</p>
<p>&#8220;Code.&#8221;</p>
<p style="text-align:center;">&#8212;<span id="more-138"></span>Sometimes I wish I&#8217;d been a painter.  My work isn&#8217;t the Picasso of PHP, but perhaps an AI graduates fruit still life.  The shame is, it&#8217;s hard to gain a good feeling of accomplishment without recognition.  And recognition can&#8217;t come without some sort of understanding.  I can spend weeks on a piece of code and the only thing noticed is the UI.  It&#8217;s like being the Bass Guitar player in a rock band.  Or writing poetry in Esperanto.  Few and far between are there those with enough subject matter knowledge to ridicule or praise your work.  Sure, friends and family provide acknowledgment and love, but they are biased and generally unqualified.  Like your red neck cousin complementing you on your choice of wine (Livingston I presume).  I want to hang my functions and classes on a wall.  I&#8217;d love to hear the real experts say it sucks.  We all want to be admired.</p>
<p>Though, I guess it could be worse&#8230;  I could be a plumber.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2009/03/18/you-call-that-art/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Software Blog</title>
		<link>http://blog.logichigh.com/2009/02/24/software-blog/</link>
		<comments>http://blog.logichigh.com/2009/02/24/software-blog/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 05:33:24 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Logic High]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=135</guid>
		<description><![CDATA[
			
				
			
		
I&#8217;ve taken the Logic High Software portion of this blog in house so that I can access some of the better features of wordpress.org
All the old posts will remain here, but new posts will be made at http://software.logichigh.com
See you around!
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F24%2Fsoftware-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F24%2Fsoftware-blog%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve taken the Logic High Software portion of this blog in house so that I can access some of the better features of wordpress.org</p>
<p>All the old posts will remain here, but new posts will be made at <a title="Logic High Software" href="http://software.logichigh.com">http://software.logichigh.com</a></p>
<p>See you around!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2009/02/24/software-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix a string in PHP for use in Unix Filenames</title>
		<link>http://blog.logichigh.com/2009/02/05/fix-a-string-in-php-for-use-in-unix-filenames/</link>
		<comments>http://blog.logichigh.com/2009/02/05/fix-a-string-in-php-for-use-in-unix-filenames/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 10:13:40 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[slashes]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[unix filename]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=126</guid>
		<description><![CDATA[
			
				
			
		
Language: PHP
Problem: You are trying to use a string as or in a UNIX filename (for instance, passing a filename to a command within the exec() function) and addslashes() falls short because it doesn&#8217;t include spaces or ampersands.
Solution: It&#8217;s rough but it works fine.  Run your strings through this function first, and don&#8217;t use surrounding [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F05%2Ffix-a-string-in-php-for-use-in-unix-filenames%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F05%2Ffix-a-string-in-php-for-use-in-unix-filenames%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Language: PHP</p>
<p>Problem: You are trying to use a string as or in a UNIX filename (for instance, passing a filename to a command within the exec() function) and addslashes() falls short because it doesn&#8217;t include spaces or ampersands.<br />
Solution: It&#8217;s rough but it works fine.  Run your strings through this function first, and don&#8217;t use surrounding quotation marks (no need).  If you&#8217;ve got a better one or have questions, leave a comment <img src='http://blog.logichigh.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre name="code" class="php">function makeUnixFilename($string)
 {
 return str_replace("&amp;",'\&amp;',str_replace(" ",'\ ',addslashes($string)));
 }
 </pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2009/02/05/fix-a-string-in-php-for-use-in-unix-filenames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gamers Assistant 1.1 available now!</title>
		<link>http://blog.logichigh.com/2009/02/04/gamers-assistant-11-available-now/</link>
		<comments>http://blog.logichigh.com/2009/02/04/gamers-assistant-11-available-now/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 11:03:16 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[free codes]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Gamers Assistant]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=119</guid>
		<description><![CDATA[
			
				
			
		
Check out the new version of gamers assistant in the iTunes store!
I&#8217;ve also added two new howto videos to show off the new features and functionality
Find them, and read more in the gamers assistant blog.
Finally&#8230; Because it&#8217;s a new version, here are some free codes (Let me know if they are all used up)!
XEXEY3XEYNEJ
RJWTTYYPE64E
6MTFMXWLKNT3
NLFT6T4JTFA3
9KW6AJWTH7EA
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F04%2Fgamers-assistant-11-available-now%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F04%2Fgamers-assistant-11-available-now%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align:center;">Check out the <a href="http://blog.logichigh.com/2009/01/29/gamers-assistant-11-awaiting-review/">new version</a> of <a href="http://blog.logichigh.com/logic-high-software/gamers-assistant/">gamers assistant</a> in the <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=303253890&amp;mt=8">iTunes store!</a></p>
<p style="text-align:center;">I&#8217;ve also added two new howto videos to show off the new features and functionality</p>
<p style="text-align:center;">Find them, and read more in the <a href="http://blog.logichigh.com/tag/gamers-assistant/">gamers assistant blog</a>.</p>
<p style="text-align:center;">Finally&#8230; Because it&#8217;s a new version, here are some free codes (Let me know if they are all used up)!</p>
<p style="text-align:center;">XEXEY3XEYNEJ<br />
RJWTTYYPE64E<br />
6MTFMXWLKNT3<br />
NLFT6T4JTFA3<br />
9KW6AJWTH7EA</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2009/02/04/gamers-assistant-11-available-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gamers Assistant howto &#8211; Dungeons and Dragons setup</title>
		<link>http://blog.logichigh.com/2009/02/04/gamers-assistant-howto-dungeons-and-dragons-setup/</link>
		<comments>http://blog.logichigh.com/2009/02/04/gamers-assistant-howto-dungeons-and-dragons-setup/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 10:57:31 +0000</pubDate>
		<dc:creator>BadPirate</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Dungeons and Dragons]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Gamers Assistant]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.logichigh.com/?p=117</guid>
		<description><![CDATA[
			
				
			
		
Check out gamers assistant in the iTunes store!
Fast Tube by Casper
Sample How to &#8211; setup Gamers Assistant for use with Dungeons and Dragons
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F04%2Fgamers-assistant-howto-dungeons-and-dragons-setup%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.logichigh.com%2F2009%2F02%2F04%2Fgamers-assistant-howto-dungeons-and-dragons-setup%2F&amp;source=badpirate&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: center;">Check out <a href="http://blog.logichigh.com/logic-high-software/gamers-assistant/">gamers assistant</a> in the <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=303253890&amp;mt=8">iTunes store!</a></p>
<p style="text-align: center;"><!--[Fast Tube]--><span id="S_EnvGcwH08" style="display:block;"><a title="Click here to watch this video!" href="http://blog.logichigh.com/2009/02/04/gamers-assistant-howto-dungeons-and-dragons-setup/#S_EnvGcwH08"><img src="http://i.ytimg.com/vi/S_EnvGcwH08/0.jpg" alt="Fast Tube" border="0" width="320" height="240" /></a><br /><small>Fast Tube by <a title="Casper's Blog" href="http://blog.caspie.net/">Casper</a></small></span><!--[/Fast Tube]--></p>
<p style="text-align: center;">Sample How to &#8211; setup Gamers Assistant for use with Dungeons and Dragons</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.logichigh.com/2009/02/04/gamers-assistant-howto-dungeons-and-dragons-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
