<?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>Lance Williams &#187; Techy</title>
	<atom:link href="http://lancewilliams.us/category/techy/feed/" rel="self" type="application/rss+xml" />
	<link>http://lancewilliams.us</link>
	<description>my blog</description>
	<lastBuildDate>Fri, 17 Jul 2009 21:21:44 +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>Damn You Microsoft!</title>
		<link>http://lancewilliams.us/techy/damn-you-microsoft/</link>
		<comments>http://lancewilliams.us/techy/damn-you-microsoft/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 21:20:27 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Techy]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=86</guid>
		<description><![CDATA[I just don&#8217;t get it.  Considering how much I HATE Windows Vista, I was all over the Windows 7 Beta.  The day it came out, I had it downloaded and installed.  It worked like a charm.  No problems, didn&#8217;t have to change anything on my computer, kept all my files, it was great.  And I [...]]]></description>
			<content:encoded><![CDATA[<p>I just don&#8217;t get it.  Considering how much I HATE Windows Vista, I was all over the Windows 7 Beta.  The day it came out, I had it downloaded and installed.  It worked like a charm.  No problems, didn&#8217;t have to change anything on my computer, kept all my files, it was great.  And I LOVED the new OS.  It is clean, smooth, runs fast, has cool features, and I really love docking my programs in the task bar.</p>
<p>Then what happened?? The god damned Release Candidate!! That&#8217;s what happened.  I don&#8217;t know at which point Microsoft decided to add in their freezing, crashing, slow ass, shitty &#8220;plugin&#8221; to their OS, but it was apparently at the RC stage.  Did they not get enough complaints during the Beta?  Was it too good?  Why did they feel it was necessary to &#8220;Microsoftify&#8221; Windows 7?  Is there someone at the company who goes &#8220;Well, this is working too well.  We better make sure our OS lives up to people&#8217;s standards and freezes and crashes all the time.  It wouldn&#8217;t be Windows without it.&#8221;  Does having a shitty OS somehow make them more money?  Maybe since it creates the insane desire to get the next OS in the hopes that it won&#8217;t suck, Microsoft intentionally builds in everything we hate about PCs.  I never thought about it before, but I&#8217;m now pretty sure that&#8217;s the case.</p>
<p>So, now I&#8217;m off to format my hard drive for the <span style="text-decoration: underline;">3rd</span> time and put shitty ass Vista back on my laptop so that I can work for more than an hour without my laptop freezing.  *sigh* I wish I could just have the beta version back.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/damn-you-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just figured out how to tether my iPhone to my laptop</title>
		<link>http://lancewilliams.us/techy/iphone-techy/just-figured-out-how-to-tether-my-iphone-to-my-laptop/</link>
		<comments>http://lancewilliams.us/techy/iphone-techy/just-figured-out-how-to-tether-my-iphone-to-my-laptop/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 18:34:14 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=82</guid>
		<description><![CDATA[Found this on cnet:
According to CrunchGear you can also turn tethering on and MMS directly from your iPhone by visiting this Web site using Mobile Safari: http://help.benm.at/help.php. We tested tethering and that worked, but have yet to get the MMS portion of this Web sites hack up and running.
via How to activate tethering on any [...]]]></description>
			<content:encoded><![CDATA[<p>Found this on cnet:</p>
<p>According to CrunchGear you can also turn tethering on and MMS directly from your iPhone by visiting this Web site using Mobile Safari: <strong>http://help.benm.at/help.php</strong>. We tested tethering and that worked, but have yet to get the MMS portion of this Web sites hack up and running.</p>
<p>via <a href="http://reviews.cnet.com/8301-19512_7-10265889-233.html">How to activate tethering on any iPhone without jailbreaking | iPhone Atlas &#8211; CNET Reviews</a>.</p>
<p>I went to that help.benm.at/help.php file from my phone installed the package, restarted my phone, went to my settings and just followed the pictures from <a href="http://www.benm.at/2009/06/19/howto-firmware-30-tethering-windows/" target="_blank">here</a>. Obviously I couldn&#8217;t read it, but the pics explained it perfectly.</p>
<p>I&#8217;m totally stoked.  Now, hopefully AT&amp;T won&#8217;t fuck this up <img src='http://lancewilliams.us/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Note: I&#8217;ve noticed that my visual voicemail has stopped working correctly since doing this, I found this which is supposed to fix that:</p>
<p><a href="http://www.mydigitallife.info/2009/06/28/how-to-restore-and-enable-visual-voicemail-vvm-and-mms-that-not-working-after-iphone-tethering-hack/trackback/">MyDigitalLife.info</a></p>
<p>Basically, you just go to <strong>Settings</strong> -&gt; <strong>General</strong> -&gt; <strong>Reset</strong> on iPhone, and tap <strong>Reset Network Settings</strong>. The iPhone will reboot<a id="KonaLink4" style="text-decoration: underline ! important; position: static;" href="http://www.mydigitallife.info/2009/06/28/how-to-restore-and-enable-visual-voicemail-vvm-and-mms-that-not-working-after-iphone-tethering-hack/#" target="undefined"><span style="color: blue ! important; font-weight: 400; font-size: 13px; position: static;"><span style="color: blue ! important; font-family: &quot;Trebuchet MS&quot;,&quot;Bitstream Vera Sans&quot;,Verdana,Arial,&quot;Lucida Sans&quot;,&quot;Lucida Sans Unicode&quot;,Helvetica,sans-serif; font-weight: 400; font-size: 13px; position: static;"></span></span></a>. After the restart, MMS, VVM and tethering should be working fine again.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/iphone-techy/just-figured-out-how-to-tether-my-iphone-to-my-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3.0! 3.0! 3.0!</title>
		<link>http://lancewilliams.us/techy/3-0-3-0-3-0/</link>
		<comments>http://lancewilliams.us/techy/3-0-3-0-3-0/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:40:59 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iphone app]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=80</guid>
		<description><![CDATA[It&#8217;s finally here!!  MMS messages, copy and paste, bluetooth, and a whole lot more! And hopefully, I&#8217;ll get my kick-ass iPhone app made and become fantastically wealthy  
Apple &#8211; iPhone &#8211; New features in the iPhone 3.0 Software Update.
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s finally here!!  MMS messages, copy and paste, bluetooth, and a whole lot more! And hopefully, I&#8217;ll get my kick-ass iPhone app made and become fantastically wealthy <img src='http://lancewilliams.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.apple.com/iphone/softwareupdate/">Apple &#8211; iPhone &#8211; New features in the iPhone 3.0 Software Update.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/3-0-3-0-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wanna build a better search engine?</title>
		<link>http://lancewilliams.us/techy/wanna-build-a-better-search-engine/</link>
		<comments>http://lancewilliams.us/techy/wanna-build-a-better-search-engine/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 04:07:04 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[bing]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=75</guid>
		<description><![CDATA[Have you tried searching google lately for information?  Chances are you have.  And chances are you&#8217;ve noticed the search results are getting worse and worse.  If you haven&#8217;t then I&#8217;ll tell you that I have.  There&#8217;s so much noise and so much information out there that finding what you are looking for is becoming increasingly [...]]]></description>
			<content:encoded><![CDATA[<p>Have you tried searching google lately for information?  Chances are you have.  And chances are you&#8217;ve noticed the search results are getting worse and worse.  If you haven&#8217;t then I&#8217;ll tell you that I have.  There&#8217;s so much noise and so much information out there that finding what you are looking for is becoming increasingly difficult.  And the major search engines don&#8217;t work any more.  They&#8217;ve become so &#8220;smart&#8221; with their algorithms that they have gotten lost in them.  Google is so preoccupied with trying to guess what you are looking for that they have forgotten the most important element of the search: The User.</p>
<p>You want to build a better search engine?  The answer is simple:  ASK.</p>
<p>Why is that so hard?  I don&#8217;t understand myself.  Google is so popular because they built the best algorithm out there.  And it&#8217;s smart.  And they can often figure out what you are searching for based on your search query.  But it can&#8217;t always.  So they put in billions of dollars and tens of thousands of engineering hours trying to figure out better ways to guess what you are searching for.  Are you looking to buy something?  Are you just looking for information?  Are you looking for a specific website?  Google tries to figure this out based on what you type.  But what you type doesn&#8217;t always give that information, and sometimes they get it wrong.  How do you solve this?  You ask the person what they are looking for.</p>
<p>The solution is simple:  Google delivers their same search results based on their best guess.  But they also put in 3 simple links below the search bar asking which of these best fits what you are searching for.  It&#8217;s just a simple &#8220;Refine your Search&#8221;, but it would do wonders.</p>
<p>The next problem is the <a href="http://" target="_blank">homonymic</a> nature of our language.  If you type in &#8220;bark&#8221;, are you talking about a dog or a tree?  If you type &#8220;grocery&#8221; are you talking about a store or the food in it?  Again, how do you solve this?  Do you guess?  No, you ask!</p>
<p>The solution here:  Again, deliver the normal results, but ask which definition they are looking for.  This already exits, but I haven&#8217;t seen it at a search engine.  I&#8217;m sure it exists elsewhere, but I&#8217;ve only seen it at <a href="http://www.istockphoto.com/index.php" target="_blank">istockphoto</a>.</p>
<p>Here&#8217;s the root of the problem with the current search engines:  They have forgotten that they are part of a communication.  And a communication goes 2 ways.  As it is currently, the searcher types in a question and the search engine gives them an answer.  This is great, except when the correct answer to a question is another question.  Sometimes you need to clarify what the person has asked you.  That&#8217;s just common communication.  It&#8217;s the decency you&#8217;d give to someone who asked you a question in real life, so why is it so taboo in a search engine?</p>
<p>So, I&#8217;ll say it again:  If you want to build a better search engine, just ASK.  If you want to build a better search algorithm, teach it to ask <em>smart</em> questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/wanna-build-a-better-search-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Wave &#8211; Awesome</title>
		<link>http://lancewilliams.us/techy/google-wave-awesome/</link>
		<comments>http://lancewilliams.us/techy/google-wave-awesome/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 00:44:27 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[google wave]]></category>
		<category><![CDATA[new tech]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=68</guid>
		<description><![CDATA[I can&#8217;t wait for this to be broadly available.  It&#8217;s revolutionary and is going to change the way we communicate online.  And the online business possibilities are amazing.  I&#8217;m trying to see if I can get in on their super-beta and test it out.  I&#8217;m really excited  

]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t wait for this to be broadly available.  It&#8217;s revolutionary and is going to change the way we communicate online.  And the online business possibilities are amazing.  I&#8217;m trying to see if I can get in on their super-beta and test it out.  I&#8217;m really excited <img src='http://lancewilliams.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object width="460" height="283" data="http://www.youtube.com/v/v_UyVmITiYQ&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash"><param name="src" value="http://www.youtube.com/v/v_UyVmITiYQ&amp;hl=en&amp;fs=1&amp;" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/google-wave-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Penny Arcade! &#8211; His Southern Reaches</title>
		<link>http://lancewilliams.us/techy/penny-arcade-his-southern-reaches/</link>
		<comments>http://lancewilliams.us/techy/penny-arcade-his-southern-reaches/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 23:36:11 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[comics]]></category>
		<category><![CDATA[penny arcade]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=54</guid>
		<description><![CDATA[Hahahaha, fuckin hilarious.  Kinda subtle, took me a second to get it.


In case you aren&#8217;t familiar with Project Natal:

It looks pretty damn cool, but I just see a ton of bugs and &#8220;Dammit, this doesn&#8217;t f#@$in work!&#8221;
]]></description>
			<content:encoded><![CDATA[<p>Hahahaha, fuckin hilarious.  Kinda subtle, took me a second to get it.</p>
<p><a href="http://www.penny-arcade.com/comic/2009/6/5/"><img class="alignnone" title="Penny Arcade! - His Southern Reaches" src="http://www.penny-arcade.com/images/2009/20090605.jpg" alt="" width="450" height="226" /></a></p>
<p><a href="http://www.penny-arcade.com/comic/2009/6/5/"></a></p>
<p>In case you aren&#8217;t familiar with Project Natal:</p>
<p><a href="http://www.youtube.com/watch?v=g_txF7iETX0"><object width="425" height="350" data="http://www.youtube.com/v/g_txF7iETX0" type="application/x-shockwave-flash"><param name="src" value="http://www.youtube.com/v/g_txF7iETX0" /></object></a></p>
<p>It looks pretty damn cool, but I just see a ton of bugs and &#8220;Dammit, this doesn&#8217;t f#@$in work!&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/penny-arcade-his-southern-reaches/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make Custom iPhone Ringtones for Free &#124; eHow.com</title>
		<link>http://lancewilliams.us/techy/how-to-make-custom-iphone-ringtones-for-free-ehowcom/</link>
		<comments>http://lancewilliams.us/techy/how-to-make-custom-iphone-ringtones-for-free-ehowcom/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 20:26:41 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=50</guid>
		<description><![CDATA[I found this a while ago, but thought I should share it with the world.  I personally think it&#8217;s unheard of for iTunes to charge you the same for 40 seconds of a song and the whole song.  It&#8217;s a total rip-off.  I&#8217;m not gonna spend a buck to buy a song and then spend [...]]]></description>
			<content:encoded><![CDATA[<p>I found this a while ago, but thought I should share it with the world.  I personally think it&#8217;s unheard of for iTunes to charge you the same for 40 seconds of a song and the whole song.  It&#8217;s a total rip-off.  I&#8217;m not gonna spend a buck to buy a song and then spend another buck just to have them format it for me so I can use it on my iPhone.  So, anyways, here&#8217;s how you can do it yourself:</p>
<p><strong>Instructions</strong></p>
<p>Things You&#8217;ll Need:</p>
<p>* iPhone</p>
<p>* iTunes</p>
<p>* Mac or Windows Computer</p>
<p>* Non-DRM song (i.e. one not bought from the iTunes Store)</p>
<p><em>(If you want to do this with a song you bought from the iTunes Store, you have to first burn that song onto a CD and then re-load it into iTunes from the CD &#8211; that way it loses its DRM-ness)</em></p>
<p>Step 1</p>
<p>Open iTunes.</p>
<p>Step 2</p>
<p>Find the song that you want to make into a ringtone.</p>
<p>Step 3</p>
<p>Listen to the song and find the part of it you want to use. The chorus may be a good place to start.</p>
<p>Step 4</p>
<p>Write down the start and stop times of the clip.</p>
<p>Step 5</p>
<p>Right-click the song and select &#8220;Get Info.&#8221;</p>
<p>Step 6</p>
<p>Click the &#8220;Options&#8221; tab.</p>
<p>Step 7</p>
<p>Type in the start time of your ringtone in the text box next to &#8220;Start Time&#8221; in the minutes:seconds (i.e. 2:01) format.</p>
<p>Step 8</p>
<p>Type in the end time of your ringtone in the text box next to &#8220;Stop Time.&#8221; Make sure the ringtone is no more than 40 seconds long.</p>
<p>Step 9</p>
<p>Click &#8220;OK&#8221;.</p>
<p>Step 10</p>
<p>Right-click your song again and select &#8220;Convert Selection to AAC&#8221;. Wait for iTunes to convert your song. It will create a duplicate version.</p>
<p>Step 11</p>
<p>Right-click the ringtone and select &#8220;Delete&#8221;.</p>
<p>Step 12</p>
<p>Click on the &#8220;Keep Files&#8221; button.</p>
<p>Step 13</p>
<p>Find the file. It&#8217;s usually in your User folder under Music &gt; iTunes &gt; iTunes Music and under the band&#8217;s name. It will have an extension of &#8220;m4a.&#8221;</p>
<p>Step 14</p>
<p>Replace the &#8220;m4a&#8221; extension of your ringtone with &#8220;m4r&#8221;. You can either double-click slowly to re-name your file, or right-click and select &#8220;Get Info&#8221; on a Mac or &#8220;Rename&#8221; on a Windows PC.</p>
<p>Step 15</p>
<p>Click &#8220;Use .m4r&#8221; or the PC equivalent when the system warns you that the change may affect the use of your file.</p>
<p>Step 16</p>
<p>Double-click the ringtone file.   iTunes will automatically add it to your ringtones folder in your iTunes Music Library.</p>
<p>Step 17</p>
<p>Connect your iPhone and sync your ringtones.</p>
<p>via <a href="http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html">How to Make Custom iPhone Ringtones for Free | eHow.com</a>.</p>
<p><em>Step 18</em></p>
<p><em>Stick it to the man!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/how-to-make-custom-iphone-ringtones-for-free-ehowcom/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to move a site from one server to another using cPanel and WHM</title>
		<link>http://lancewilliams.us/techy/how-to-move-a-site-from-one-server-to-another-using-cpanel-and-whm/</link>
		<comments>http://lancewilliams.us/techy/how-to-move-a-site-from-one-server-to-another-using-cpanel-and-whm/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 02:39:20 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=24</guid>
		<description><![CDATA[First thing you have to do is create the backup/restore file in cPanel on your old server.  This is very simple.
You just need to log in to your cPanel, click on Backups and click on Generate/Download a Full Backup.  You can choose a backup destination, for the purpose of this example, I&#8217;m just going [...]]]></description>
			<content:encoded><![CDATA[<p>First thing you have to do is create the backup/restore file in cPanel on your old server.  This is very simple.</p>
<p>You just need to log in to your cPanel, click on Backups and click on Generate/Download a Full Backup.  You can choose a backup destination, for the purpose of this example, I&#8217;m just going to leave the default and save it to the Home Directory.  You can save it to a remote FTP if you want, but that sometimes creates difficulties and I find it easiest to do everything as its own separate step.  You fill out the email field with your email address as it&#8217;ll send you an email once it&#8217;s done (depending on the size of the site, it can take a long time).  Then just hit Generate Backup.</p>
<p>Once you get the email letting you know it&#8217;s done, log in to that site in FTP and download the backup file (backup-12.30.2008_13-27-10_somesite.tar).</p>
<p>Now move to the new server where you will be hosting the site.</p>
<p>Note: don&#8217;t create an account for the site on the new server, the restore process will do that for you and if there&#8217;s an existing account with the same user name, it won&#8217;t work.</p>
<p>First you have to upload the cPanel move/restore .tar (backup-12.30.2008_13-27-10_somesite.tar) to the server, any existing site is fine.</p>
<p>Then you log in through SSH (this is how I do it, you may have another way) and move the file to the /home directory of the whole server.</p>
<p>After that, you log into WHM on that server.  Under Backup is Restore a Full Backup/cpmove file.  Click on that.  You should see the move/restore .tar listed in the box on the bottom.  It usually has the user name in the name of the .tar (in this case, somesite).  You put that user name in the Enter the username for the account you wish to restore: field and hit Restore.</p>
<p>It&#8217;ll process the file, create the account and get everything set up as it was on the old server.</p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/how-to-move-a-site-from-one-server-to-another-using-cpanel-and-whm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple should buy Yahoo</title>
		<link>http://lancewilliams.us/techy/apple-should-buy-yahoo/</link>
		<comments>http://lancewilliams.us/techy/apple-should-buy-yahoo/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 22:17:03 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=17</guid>
		<description><![CDATA[Well, the title pretty much says it all. With all this talk of Yahoo going down in flames and Microsoft wanting to buy it and Google wanting to share their ads, something needs to be done with this site. And Steve Jobs is the man to do it. Imagine what Apple could do with an [...]]]></description>
			<content:encoded><![CDATA[<p>Well, the title pretty much says it all. With all this talk of Yahoo going down in flames and Microsoft wanting to buy it and Google wanting to share their ads, something needs to be done with this site. And Steve Jobs is the man to do it. Imagine what Apple could do with an established site like that and a big jump forward in the search engine game by grabbing all their technology, users and algorithm (which needs work). </p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/apple-should-buy-yahoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a variable for your MySQL database</title>
		<link>http://lancewilliams.us/techy/using-a-variable-for-your-mysql-database/</link>
		<comments>http://lancewilliams.us/techy/using-a-variable-for-your-mysql-database/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 00:18:39 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://i.maginos.com/?p=13</guid>
		<description><![CDATA[So, I&#8217;m working on a site making a bunch of changes.  I need to change the name of a database and well, to make a long story short, it&#8217;s called by name throughout all the files.  So I thought I&#8217;d do a quick post on how to use a variable name in place of the [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m working on a site making a bunch of changes.  I need to change the name of a database and well, to make a long story short, it&#8217;s called by name throughout all the files.  So I thought I&#8217;d do a quick post on how to use a variable name in place of the MySQL database name.  I had to figure it out myself, and had a hard time finding anywhere how to do it, although it&#8217;s not that difficult.</p>
<p>First off, you should have a config file that&#8217;s being called from every page in your site.  This way you can define some variables that you&#8217;ll be able to access throughout your site.  This is pretty common and is in fact the case on the site I&#8217;m working on.</p>
<p>Your config file should look something like this:</p>
<p><code>&lt;?php</p>
<p>$dbhost = 'localhost';<br />
$dbuser = 'mrcool';<br />
$dbpass = 'coolpassword';<br />
$dbname = 'database_name';</p>
<p>$dbh = mysql_connect($dbhost,$dbuser,$dbpass)<br />
or die (mysql_error());</p>
<p>$setts['sitename'] = "My Super Cool Site";<br />
$setts['siteurl'] = "http://www.mysupercoolsite.com/";<br />
$setts['email'] = "me@mysupercoolsite.com";<br />
$setts['default_theme'] = "CoolTheme";<br />
$setts['db_name'] = $dbname;</p>
<p>?&gt;</code></p>
<p>This covers the basics and allows you to do a lot of cool things with your site.  Anywhere you need to put the base url, you can just use $setts['siteurl'] instead and it makes your whole site portable.  And, as the point of this post, you can use $setts['db_name'] in place of the actual name anywhere you need to.  You can even go one more and name all your tables as variables here, so they can be changed in one spot and affect the whole site.</p>
<p>Ok, last part here.  How to use the variable in place of the name:</p>
<p>Take:</p>
<p>$query = mysql_query(&#8220;INSERT INTO database_name.tblName (first, second, third) VALUES<br />
(&#8216;First Value&#8217;,'Second Value&#8217;,'Third Value&#8217;)&#8221;) or die(mysql_error());</p>
<p>And instead use:</p>
<p>$query = mysql_query(&#8220;INSERT INTO &#8221; . $setts['db_name'] . &#8220;.tblName (first, second, third) VALUES<br />
(&#8216;First Value&#8217;,'Second Value&#8217;,'Third Value&#8217;)&#8221;) or die(mysql_error());</p>
<p>It&#8217;s just simple concatenation.  You have to close the quotes with &#8221; then use the . as the connector, put in your variable name and then another . to add the rest which needs to have the quotes started again.</p>
<p>Hope that helps someone <img src='http://lancewilliams.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/using-a-variable-for-your-mysql-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sent from my iPhone</title>
		<link>http://lancewilliams.us/techy/sent-from-my-iphone/</link>
		<comments>http://lancewilliams.us/techy/sent-from-my-iphone/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 22:51:53 +0000</pubDate>
		<dc:creator>imaginos</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://i.maginos.com/techy/sent-from-my-iphone/</guid>
		<description><![CDATA[So WordPress has an iPhone app that let&#8217;s you manage your blog from your phone. Pretty damn cool, huh? So I&#8217;m writing this post from my phone chillin out far away from home   Can&#8217;t wait to see what else I can do. 
]]></description>
			<content:encoded><![CDATA[<p>So WordPress has an iPhone app that let&#8217;s you manage your blog from your phone. Pretty damn cool, huh? So I&#8217;m writing this post from my phone chillin out far away from home <img src='http://lancewilliams.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Can&#8217;t wait to see what else I can do. </p>
]]></content:encoded>
			<wfw:commentRss>http://lancewilliams.us/techy/sent-from-my-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
