<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Code Boards - All Forums]]></title>
		<link>http://www.codeboards.com/</link>
		<description><![CDATA[Code Boards - http://www.codeboards.com]]></description>
		<pubDate>Thu, 11 Mar 2010 05:06:44 -0800</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Other sites giving info to my database]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=71</link>
			<pubDate>Fri, 06 Nov 2009 20:26:47 -0800</pubDate>
			<dc:creator>yilduz</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=71</guid>
			<description><![CDATA[I've been thinking of tackling another project for the sake of learning.<br />
<br />
This code will essentially track information on websites with a code that is voluntarily installed by the webmaster. I've been trying to think of the best way to get this information back to my database, though. I started looking around, trying to find the best way to do accomplish something like this, and I've noticed that many people use iframes to do it. I'm not too fond of iframes (although I used to love iframes and frames back in the day <img src="http://www.codeboards.com/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" />), so what other good ways do you know of to accomplish this?]]></description>
			<content:encoded><![CDATA[I've been thinking of tackling another project for the sake of learning.<br />
<br />
This code will essentially track information on websites with a code that is voluntarily installed by the webmaster. I've been trying to think of the best way to get this information back to my database, though. I started looking around, trying to find the best way to do accomplish something like this, and I've noticed that many people use iframes to do it. I'm not too fond of iframes (although I used to love iframes and frames back in the day <img src="http://www.codeboards.com/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" />), so what other good ways do you know of to accomplish this?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Making a living coding]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=70</link>
			<pubDate>Tue, 13 Oct 2009 17:09:30 -0700</pubDate>
			<dc:creator>yilduz</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=70</guid>
			<description><![CDATA[Do you make your living coding? What kind of coding do you do for money?]]></description>
			<content:encoded><![CDATA[Do you make your living coding? What kind of coding do you do for money?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Common Table Expressions]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=69</link>
			<pubDate>Wed, 30 Sep 2009 18:29:16 -0700</pubDate>
			<dc:creator>d03boy</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=69</guid>
			<description><![CDATA[Anyone who does database programming beyond the simplest of queries should probably have a mild understanding of <a href="http://www.codeboards.com/common-table-expressions-t-69.html" target="_blank">Common Table Expressions</a>. I've only discovered them recently and they are extremely helpful to simplify complex queries. Here is a very, very simple example:<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;SQL Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="sql" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #993333; font-weight: bold;">WITH</span> x <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #66cc66;">&#40;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> Name<span style="color: #66cc66;">,</span> Cost</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #993333; font-weight: bold;">FROM</span> Meals</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #993333; font-weight: bold;">SELECT</span> AVERAGE<span style="color: #66cc66;">&#40;</span>Cost<span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #993333; font-weight: bold;">FROM</span> x</div></li></ol></pre></code></div><br /></div><br />
<br />
Obviously you could do this with a single query very easily but this is simply to show you how the structure of it works.<br />
<br />
Edit: I did intend to link to this thread so google would have some search terms to build from. Also, CTEs aren't available in all SQL databases. SQL Server 2000 doesn't support them but SQL Server 2005 does.]]></description>
			<content:encoded><![CDATA[Anyone who does database programming beyond the simplest of queries should probably have a mild understanding of <a href="http://www.codeboards.com/common-table-expressions-t-69.html" target="_blank">Common Table Expressions</a>. I've only discovered them recently and they are extremely helpful to simplify complex queries. Here is a very, very simple example:<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;SQL Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="sql" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #993333; font-weight: bold;">WITH</span> x <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #66cc66;">&#40;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span> Name<span style="color: #66cc66;">,</span> Cost</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #993333; font-weight: bold;">FROM</span> Meals</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #993333; font-weight: bold;">SELECT</span> AVERAGE<span style="color: #66cc66;">&#40;</span>Cost<span style="color: #66cc66;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #993333; font-weight: bold;">FROM</span> x</div></li></ol></pre></code></div><br /></div><br />
<br />
Obviously you could do this with a single query very easily but this is simply to show you how the structure of it works.<br />
<br />
Edit: I did intend to link to this thread so google would have some search terms to build from. Also, CTEs aren't available in all SQL databases. SQL Server 2000 doesn't support them but SQL Server 2005 does.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Your dream workstation setup]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=68</link>
			<pubDate>Sun, 06 Sep 2009 20:40:53 -0700</pubDate>
			<dc:creator>Matt</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=68</guid>
			<description><![CDATA[After I settle down, and once I can afford it, I've been thinking of a great workstation setup I'd like to build... sure, some of the gorgeous and powerful hardware would be a costly one-time investment, but a lot of it is software-based. Here's what I'm thinking:<br />
<br />
My main desktop will feature a glass tabletop with a large LCD monitor just above eye level (for good posture). That computer will feature a nice little suite of security software I'm designing for my own personal use and experimentation. It'll have a mirrored backup to a central file server in the safe hidden away in the home. Of course, security is a concern and all the hard disks and flash drives would be encrypted.<br />
<br />
I'd probably rip any CDs and DVDs I bought to a disc image so they were easily accessible later.<br />
<br />
I'll have another computer, maybe a laptop, that is never connected to the Internet, or perhaps even the network. It'd be my ultra-secure workstation, complete with fingerprint scanner. This would be nice to have when travelling. If I needed to get online, I'd boot up a VM with Linux and, hopefully by that time, use Google Chrome.<br />
<br />
And yes, of course I'd use only Chrome to browse, even in Windows -- so far the only "unbroken" browser. (On a side note, it's interesting that IE7 and IE8 have similar "sandboxing" features that make Chrome so secure, yet IE is exploited almost daily because of its tight integration with Windows among other coding flaws.)<br />
<br />
If a flash drive was stolen, I could rest easy knowing it's securely encrypted and the password is stored on my locked-down file server at home (which, by the way, would not have a hard line to the Internet at all; I'd probably route remote backups through a different subnet entirely) -- also encrypted.<br />
<br />
I could tunnel all my Internet activities including IM, email, browsing, etc, through an SSH tunnel to a server in a remote data center -- whoever/wherever my host happens to be -- which would certainly be locked down against intruders. This would encrypt *all* my outgoing Internet transactions until it reached the server in that secure data center.<br />
<br />
I'd probably do all my coding in a VM on my main workstation, though. It would avoid complications and security risks by running potentially volatile and buggy code in a contained environment... I'm thinking of the times when I was writing some low-level C++ and caused some blue screens... hehe... oops.<br />
<br />
Anyway, I think that'd be a pretty cool setup. It'd be hardcore secure, for sure. Okay, it won't be perfect (what is?), but it's like... hm, think of the Bat Cave. Or Tony Stark's garage. <img src="http://www.codeboards.com/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /><br />
<br />
For a pet, I'd probably have a cat, and also a nice virus farm. If I could set up a bunch of virtual machines on a totally isolated network (as in, no possible hard line or wireless link with my <span style="font-weight: bold;">real</span> network), I'd have them talk to each other and download spam emails and malware from the Internet, run the infected software, and distribute it as much as possible among themselves. It'd be fun to see how long they lasted.<br />
<br />
<br />
What's your dream setup? Do you already have it?]]></description>
			<content:encoded><![CDATA[After I settle down, and once I can afford it, I've been thinking of a great workstation setup I'd like to build... sure, some of the gorgeous and powerful hardware would be a costly one-time investment, but a lot of it is software-based. Here's what I'm thinking:<br />
<br />
My main desktop will feature a glass tabletop with a large LCD monitor just above eye level (for good posture). That computer will feature a nice little suite of security software I'm designing for my own personal use and experimentation. It'll have a mirrored backup to a central file server in the safe hidden away in the home. Of course, security is a concern and all the hard disks and flash drives would be encrypted.<br />
<br />
I'd probably rip any CDs and DVDs I bought to a disc image so they were easily accessible later.<br />
<br />
I'll have another computer, maybe a laptop, that is never connected to the Internet, or perhaps even the network. It'd be my ultra-secure workstation, complete with fingerprint scanner. This would be nice to have when travelling. If I needed to get online, I'd boot up a VM with Linux and, hopefully by that time, use Google Chrome.<br />
<br />
And yes, of course I'd use only Chrome to browse, even in Windows -- so far the only "unbroken" browser. (On a side note, it's interesting that IE7 and IE8 have similar "sandboxing" features that make Chrome so secure, yet IE is exploited almost daily because of its tight integration with Windows among other coding flaws.)<br />
<br />
If a flash drive was stolen, I could rest easy knowing it's securely encrypted and the password is stored on my locked-down file server at home (which, by the way, would not have a hard line to the Internet at all; I'd probably route remote backups through a different subnet entirely) -- also encrypted.<br />
<br />
I could tunnel all my Internet activities including IM, email, browsing, etc, through an SSH tunnel to a server in a remote data center -- whoever/wherever my host happens to be -- which would certainly be locked down against intruders. This would encrypt *all* my outgoing Internet transactions until it reached the server in that secure data center.<br />
<br />
I'd probably do all my coding in a VM on my main workstation, though. It would avoid complications and security risks by running potentially volatile and buggy code in a contained environment... I'm thinking of the times when I was writing some low-level C++ and caused some blue screens... hehe... oops.<br />
<br />
Anyway, I think that'd be a pretty cool setup. It'd be hardcore secure, for sure. Okay, it won't be perfect (what is?), but it's like... hm, think of the Bat Cave. Or Tony Stark's garage. <img src="http://www.codeboards.com/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" /><br />
<br />
For a pet, I'd probably have a cat, and also a nice virus farm. If I could set up a bunch of virtual machines on a totally isolated network (as in, no possible hard line or wireless link with my <span style="font-weight: bold;">real</span> network), I'd have them talk to each other and download spam emails and malware from the Internet, run the infected software, and distribute it as much as possible among themselves. It'd be fun to see how long they lasted.<br />
<br />
<br />
What's your dream setup? Do you already have it?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[New management to build the community]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=67</link>
			<pubDate>Sun, 06 Sep 2009 06:24:13 -0700</pubDate>
			<dc:creator>Matt</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=67</guid>
			<description><![CDATA[In a couple of weeks (September 22) I'll be stepping out of the Internet for two full years as I serve  a mission for <a href="http://www.mormon.org" target="_blank">my church</a>. (For more information, go to: <a href="http://www.mwholt.com" target="_blank">http://www.mwholt.com</a> -- type something like "mission details".)<br />
<br />
Consequently, I won't be around to manage what's left of the forum -- but that's okay, since I have set up Yilduz and d03boy to take care of things while I'm gone.<br />
<br />
Anybody in the Code Boards community can help to build up the forum; member participation and growth is excellent, and would make for a more helpful environment.<br />
<br />
Code on!<br />
-Matt]]></description>
			<content:encoded><![CDATA[In a couple of weeks (September 22) I'll be stepping out of the Internet for two full years as I serve  a mission for <a href="http://www.mormon.org" target="_blank">my church</a>. (For more information, go to: <a href="http://www.mwholt.com" target="_blank">http://www.mwholt.com</a> -- type something like "mission details".)<br />
<br />
Consequently, I won't be around to manage what's left of the forum -- but that's okay, since I have set up Yilduz and d03boy to take care of things while I'm gone.<br />
<br />
Anybody in the Code Boards community can help to build up the forum; member participation and growth is excellent, and would make for a more helpful environment.<br />
<br />
Code on!<br />
-Matt]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Google Wave]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=66</link>
			<pubDate>Tue, 25 Aug 2009 20:20:52 -0700</pubDate>
			<dc:creator>yilduz</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=66</guid>
			<description><![CDATA[I watched this <a href="http://wave.google.com/" target="_blank">Google Wave</a> video with my friend the other day. He wants to keep up on any news and learn as much as he can about it because he wants to be on the front of this thing when it releases and start coding stuff into it.<br />
<br />
Do you guys know about it? What do you think of it?]]></description>
			<content:encoded><![CDATA[I watched this <a href="http://wave.google.com/" target="_blank">Google Wave</a> video with my friend the other day. He wants to keep up on any news and learn as much as he can about it because he wants to be on the front of this thing when it releases and start coding stuff into it.<br />
<br />
Do you guys know about it? What do you think of it?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Finding words in a dictionary]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=65</link>
			<pubDate>Sun, 23 Aug 2009 09:06:20 -0700</pubDate>
			<dc:creator>d03boy</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=65</guid>
			<description><![CDATA[I couldn't think of a suitable title for this.. so I'll just give an explanation. I have a Palm Pre cell phone and recently a game called Word Ace was released. Basically it's Texas Hold'em but instead of using a deck of regular cards, you have a deck of letters similar to Scrabble. Each letter has a point value. You have to spell a word (up to 7 letters) using your cards. Your goal is to get the highest score to win the hand. More obscure letters are worth more points. I thought this would be a good opportunity to write a script that allows me to type in my scrambled letters and allow it to spit back words from a dictionary with the highest score using my letters.<br />
<br />
So far this is what I've come up with:<br />
<br />
<span style="text-decoration: underline;"><span style="font-weight: bold;">Finding a suitable word list</span></span><br />
I searched for the official Scrabble word list since I assumed that is what this game was using. I came across this website <a href="http://www.morewords.com/help/" target="_blank">http://www.morewords.com/help/</a> and it pointed me to a word list called Enable2k. It contains 173,528 words and is 1.7MB in size. Loading this much data into a database isn't always the easiest thing to do when you have no local permissions on the database server.<br />
<br />
<span style="text-decoration: underline;"><span style="font-weight: bold;">Loading the list into a database</span></span><br />
I tried loading it in using some SQL queries that referenced a local or remote file path but that did not work because there were permission problems. I gave up on that right away and decided I would just do it the slow way and load the entire list directly from my end using SQLyog (MySQL client). But before doing this I wanted to get rid of any of the extra size by removing any words that were more than 7 letters. I tried using Notepad++ to do this but I couldn't figure out how to make a regular expression work in this case. And it was slow. I resorted to asking some folks online and they suggested I use the Windows command prompt with the command "findstr".<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">findstr /v /r ^.........*$ words.txt &gt; shorter-words.txt</div></li></ol></pre></code></div><br /></div><br />
<br />
Basically this line calls the findstr command, the /v tells it to select only things that DO NOT match the regular expression. The actual regex is the ^........*&#36; part. It is just looking for any lines 8 letters or more. If a line does not match that regex, it is exported into the shorter-words.txt file. I've never used this command before this and I must say it is a nice tool to have in your toolbox. It's basically a poor man's grep.<br />
<br />
Cutting out large words shrunk my list by a lot. It came down to 411KB. Unfortunately the next step involves adding in SQL code which makes it quite large once again. It ended up being about 2.3MB afterwards but originally it would have been more than 7MB if I didn't ditch the long words.<br />
<br />
My goal was to create a words.sql file that just used the INSERT command to get all of these words into a database in one straight shot. To do this I actually could have used a macro in Notepad++ but that was a bit slow so I opted for some cmd prompt scripting (batch?).<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">(for /f %i in (words.txt) do @echo INSERT INTO words ^(word^) VALUES ^('%i'^); ) &gt; words.sql</div></li></ol></pre></code></div><br /></div><br />
<br />
Basically this performs a loop over the entire file and echo's the following text into a new file.<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">INSERT INTO words (word) VALUES ('myword');</div></li></ol></pre></code></div><br /></div><br />
<br />
<span style="font-weight: bold;"><span style="text-decoration: underline;">Thought Process</span></span><br />
Upon receiving a query with a list of scrambled letters my initial thought was to programmatically come up with all permutations of those letters and search my database to see if any of those words exist. After trying this out it's actually not that great of an idea because you're dealing with many, many database calls per query. I thought of a much better way to handle it instead!<br />
<br />
Instead of checking for each word, I decided to add a column to my 'words' table in the database. Originally the table was just a single column with the word in it. Instead, I introduced a new column called 'ordered'. This stores the same text as as the 'word' column but instead I sorted the letters in alphabetical order. This allows me to easily do a query for ALL words that have those same letters simply by passing in the letters in sorted order. <del>This means I will not have to make more than 7 queries (actually 5) to the database for a request. This is because I will make one for each "level" of letters. One for all 7 letters, one for 6, one for 5....etc, one for 2. There are not any single letter words and actually the game requires 3 letters so really it would only take at most 5 queries.</del> I could probably do some things to make it a single database query but that might be overkill and a lot more work than I want to put into this.<br />
<br />
Here is an example of what the table looked like after the changes:<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">word | ordered</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">-----|--------</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">dac  | acd</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">adc  | acd</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">flub | bflu</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bluf | bflu</div></li></ol></pre></code></div><br /></div><br />
<br />
<br />
MORE TO COME ONCE I DO A LITTLE MORE<br />
Edit: So I've encountered a problem. I'll update this once I solve it. What I currently have actually does work great up to 7 letters and works fine for the original purpose. I just recently decided I wanted to expand it to be able to solve larger words. Follow the thread.]]></description>
			<content:encoded><![CDATA[I couldn't think of a suitable title for this.. so I'll just give an explanation. I have a Palm Pre cell phone and recently a game called Word Ace was released. Basically it's Texas Hold'em but instead of using a deck of regular cards, you have a deck of letters similar to Scrabble. Each letter has a point value. You have to spell a word (up to 7 letters) using your cards. Your goal is to get the highest score to win the hand. More obscure letters are worth more points. I thought this would be a good opportunity to write a script that allows me to type in my scrambled letters and allow it to spit back words from a dictionary with the highest score using my letters.<br />
<br />
So far this is what I've come up with:<br />
<br />
<span style="text-decoration: underline;"><span style="font-weight: bold;">Finding a suitable word list</span></span><br />
I searched for the official Scrabble word list since I assumed that is what this game was using. I came across this website <a href="http://www.morewords.com/help/" target="_blank">http://www.morewords.com/help/</a> and it pointed me to a word list called Enable2k. It contains 173,528 words and is 1.7MB in size. Loading this much data into a database isn't always the easiest thing to do when you have no local permissions on the database server.<br />
<br />
<span style="text-decoration: underline;"><span style="font-weight: bold;">Loading the list into a database</span></span><br />
I tried loading it in using some SQL queries that referenced a local or remote file path but that did not work because there were permission problems. I gave up on that right away and decided I would just do it the slow way and load the entire list directly from my end using SQLyog (MySQL client). But before doing this I wanted to get rid of any of the extra size by removing any words that were more than 7 letters. I tried using Notepad++ to do this but I couldn't figure out how to make a regular expression work in this case. And it was slow. I resorted to asking some folks online and they suggested I use the Windows command prompt with the command "findstr".<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">findstr /v /r ^.........*$ words.txt &gt; shorter-words.txt</div></li></ol></pre></code></div><br /></div><br />
<br />
Basically this line calls the findstr command, the /v tells it to select only things that DO NOT match the regular expression. The actual regex is the ^........*&#36; part. It is just looking for any lines 8 letters or more. If a line does not match that regex, it is exported into the shorter-words.txt file. I've never used this command before this and I must say it is a nice tool to have in your toolbox. It's basically a poor man's grep.<br />
<br />
Cutting out large words shrunk my list by a lot. It came down to 411KB. Unfortunately the next step involves adding in SQL code which makes it quite large once again. It ended up being about 2.3MB afterwards but originally it would have been more than 7MB if I didn't ditch the long words.<br />
<br />
My goal was to create a words.sql file that just used the INSERT command to get all of these words into a database in one straight shot. To do this I actually could have used a macro in Notepad++ but that was a bit slow so I opted for some cmd prompt scripting (batch?).<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">(for /f %i in (words.txt) do @echo INSERT INTO words ^(word^) VALUES ^('%i'^); ) &gt; words.sql</div></li></ol></pre></code></div><br /></div><br />
<br />
Basically this performs a loop over the entire file and echo's the following text into a new file.<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">INSERT INTO words (word) VALUES ('myword');</div></li></ol></pre></code></div><br /></div><br />
<br />
<span style="font-weight: bold;"><span style="text-decoration: underline;">Thought Process</span></span><br />
Upon receiving a query with a list of scrambled letters my initial thought was to programmatically come up with all permutations of those letters and search my database to see if any of those words exist. After trying this out it's actually not that great of an idea because you're dealing with many, many database calls per query. I thought of a much better way to handle it instead!<br />
<br />
Instead of checking for each word, I decided to add a column to my 'words' table in the database. Originally the table was just a single column with the word in it. Instead, I introduced a new column called 'ordered'. This stores the same text as as the 'word' column but instead I sorted the letters in alphabetical order. This allows me to easily do a query for ALL words that have those same letters simply by passing in the letters in sorted order. <del>This means I will not have to make more than 7 queries (actually 5) to the database for a request. This is because I will make one for each "level" of letters. One for all 7 letters, one for 6, one for 5....etc, one for 2. There are not any single letter words and actually the game requires 3 letters so really it would only take at most 5 queries.</del> I could probably do some things to make it a single database query but that might be overkill and a lot more work than I want to put into this.<br />
<br />
Here is an example of what the table looked like after the changes:<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;TEXT Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="text" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">word | ordered</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">-----|--------</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">dac  | acd</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">adc  | acd</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">flub | bflu</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bluf | bflu</div></li></ol></pre></code></div><br /></div><br />
<br />
<br />
MORE TO COME ONCE I DO A LITTLE MORE<br />
Edit: So I've encountered a problem. I'll update this once I solve it. What I currently have actually does work great up to 7 letters and works fine for the original purpose. I just recently decided I wanted to expand it to be able to solve larger words. Follow the thread.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[random images from folder]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=64</link>
			<pubDate>Thu, 23 Jul 2009 05:29:00 -0700</pubDate>
			<dc:creator>areaba</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=64</guid>
			<description><![CDATA[Hi, I am using the script random image show from the folder but its not showing the image. plz. help me to solve this issue.<br />
I am placing the script now . <br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;PHP Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> select_random_file_funny_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_dir"><span style="color: #990000;">is_dir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$HD</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/opendir"><span style="color: #990000;">opendir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000088;">$files</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/readdir"><span style="color: #990000;">readdir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HD</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_file"><span style="color: #990000;">is_file</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&#x26;&</span> <span style="color: #000088;">$file</span> <span style="color: #339933;">!=</span> <a href="http://www.php.net/basename"><span style="color: #990000;">basename</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'PHP_SELF'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$file</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <a href="http://www.php.net/closedir"><span style="color: #990000;">closedir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HD</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <a href="http://www.php.net/shuffle"><span style="color: #990000;">shuffle</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>      </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array_pop"><span style="color: #990000;">array_pop</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <span style="color: #000088;">$picpath</span> <span style="color: #339933;">=</span>    <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.jpg&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;j&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000088;">$picpath</span>    <span style="color: #339933;">=</span>   <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.gif&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;g&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$picpath</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <a href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="color: #0000ff;">'&lt;a href=funny-picture-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picpath</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">               &lt;img src=&quot;thumb.php?pic='</span><span style="color: #339933;">.</span><span style="color: #000088;">$dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp; w=96&amp; h=94&quot; border=0&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <a href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$image_dir</span> <span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;fun/pictures/&quot;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">select_random_file_funny_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre></code></div><br /></div>]]></description>
			<content:encoded><![CDATA[Hi, I am using the script random image show from the folder but its not showing the image. plz. help me to solve this issue.<br />
I am placing the script now . <br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;PHP Code
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> select_random_file_funny_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_dir"><span style="color: #990000;">is_dir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$HD</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/opendir"><span style="color: #990000;">opendir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #000088;">$files</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/readdir"><span style="color: #990000;">readdir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HD</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_file"><span style="color: #990000;">is_file</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&&</span> <span style="color: #000088;">$file</span> <span style="color: #339933;">!=</span> <a href="http://www.php.net/basename"><span style="color: #990000;">basename</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'PHP_SELF'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$files</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$file</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <a href="http://www.php.net/closedir"><span style="color: #990000;">closedir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$HD</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <a href="http://www.php.net/shuffle"><span style="color: #990000;">shuffle</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>      </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array_pop"><span style="color: #990000;">array_pop</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$files</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <span style="color: #000088;">$picpath</span> <span style="color: #339933;">=</span>    <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.jpg&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;j&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #000088;">$picpath</span>    <span style="color: #339933;">=</span>   <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;.gif&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;g&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$picpath</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">               <a href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a> <span style="color: #0000ff;">'&lt;a href=funny-picture-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$picpath</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html&gt;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">               &lt;img src=&quot;thumb.php?pic='</span><span style="color: #339933;">.</span><span style="color: #000088;">$dir</span><span style="color: #339933;">.</span><span style="color: #000088;">$file</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp; w=96&amp; h=94&quot; border=0&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <a href="http://www.php.net/echo"><span style="color: #990000;">echo</span></a><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$image_dir</span> <span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;fun/pictures/&quot;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">select_random_file_funny_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$image_dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre></code></div><br /></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[a[rel~="nofollow"&#93;]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=63</link>
			<pubDate>Thu, 23 Jul 2009 05:26:49 -0700</pubDate>
			<dc:creator>areaba</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=63</guid>
			<description><![CDATA[Hi all.<br />
<br />
I am just starting the validation of html and css , I have validate successfully the html and css files but when i shall validate my overall css from index file it shows me the css error like :<br />
<br />
3 a[rel~="nofollow"&#93; Too many values or values are not recognized : thin dashed firebrick<br />
<br />
<br />
I did not find this "a[rel~="nofollow"&#93;" can anyone tell me about that how can i correct this?<br />
<br />
Thanks]]></description>
			<content:encoded><![CDATA[Hi all.<br />
<br />
I am just starting the validation of html and css , I have validate successfully the html and css files but when i shall validate my overall css from index file it shows me the css error like :<br />
<br />
3 a[rel~="nofollow"] Too many values or values are not recognized : thin dashed firebrick<br />
<br />
<br />
I did not find this "a[rel~="nofollow"]" can anyone tell me about that how can i correct this?<br />
<br />
Thanks]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[BIRTHDAY!!]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=62</link>
			<pubDate>Wed, 01 Jul 2009 13:34:34 -0700</pubDate>
			<dc:creator>Matt</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=62</guid>
			<description><![CDATA[Happy birthday....<br />
<br />
<span style="font-size: xx-large;">D03BOY!</span><br />
<br />
<img src="http://www.codeboards.com/images/smilies/rolleyes.gif" style="vertical-align: middle;" border="0" alt="Rolleyes" title="Rolleyes" /><br />
<br />
Hope you have a good one. Any big plans?]]></description>
			<content:encoded><![CDATA[Happy birthday....<br />
<br />
<span style="font-size: xx-large;">D03BOY!</span><br />
<br />
<img src="http://www.codeboards.com/images/smilies/rolleyes.gif" style="vertical-align: middle;" border="0" alt="Rolleyes" title="Rolleyes" /><br />
<br />
Hope you have a good one. Any big plans?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[What is JSON]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=61</link>
			<pubDate>Sat, 20 Jun 2009 07:26:02 -0700</pubDate>
			<dc:creator>d03boy</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=61</guid>
			<description><![CDATA[I know very little about JSON but I'm wondering what its uses are and why someone would use it. I do a bit of AJAX with JQuery and I'm wondering if I should be using JSON with it.]]></description>
			<content:encoded><![CDATA[I know very little about JSON but I'm wondering what its uses are and why someone would use it. I do a bit of AJAX with JQuery and I'm wondering if I should be using JSON with it.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Here's an interesting one...]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=60</link>
			<pubDate>Fri, 22 May 2009 07:41:43 -0700</pubDate>
			<dc:creator>Matt</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=60</guid>
			<description><![CDATA[I have been trying to come up with a good algorithm for my website the past few days. My tests have not yielded very good results... here's my problem:<br />
<br />
My site, <a href="http://www.mwholt.com" target="_blank">http://www.mwholt.com</a>, as it stands now, uses a strict syntax -- the user must type exactly what the site expects in order to show the proper page. But I don't like that idea: I want something a little more powerful.<br />
<br />
I've been playing with the idea of letting the user type basically anything they want, then matching their request/phrase to any one page (such as 'about me' or 'send email' pages) that is then displayed. The "matching" part is tricky, though. I have each page attributed to a set of keywords, but I need to get the phrase to be a best match to the keywords.<br />
<br />
The keywords are, right now, stored in an array: one keyword/key phrase per element. The request (that the user types) is, right now, stored as a whole as a string.<br />
<br />
I've been playing with PHP's levenshtein(), soundex(), and similar_text() functions. While what I have right now works, it doesn't differ between two very different pages enough. Does anyone have ideas on how to accomplish this?]]></description>
			<content:encoded><![CDATA[I have been trying to come up with a good algorithm for my website the past few days. My tests have not yielded very good results... here's my problem:<br />
<br />
My site, <a href="http://www.mwholt.com" target="_blank">http://www.mwholt.com</a>, as it stands now, uses a strict syntax -- the user must type exactly what the site expects in order to show the proper page. But I don't like that idea: I want something a little more powerful.<br />
<br />
I've been playing with the idea of letting the user type basically anything they want, then matching their request/phrase to any one page (such as 'about me' or 'send email' pages) that is then displayed. The "matching" part is tricky, though. I have each page attributed to a set of keywords, but I need to get the phrase to be a best match to the keywords.<br />
<br />
The keywords are, right now, stored in an array: one keyword/key phrase per element. The request (that the user types) is, right now, stored as a whole as a string.<br />
<br />
I've been playing with PHP's levenshtein(), soundex(), and similar_text() functions. While what I have right now works, it doesn't differ between two very different pages enough. Does anyone have ideas on how to accomplish this?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Ruby 1.8.x or Ruby 1.9]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=59</link>
			<pubDate>Tue, 19 May 2009 07:47:03 -0700</pubDate>
			<dc:creator>-JC-</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=59</guid>
			<description><![CDATA[While Ruby 1.9 will have some nice advantages, such as speed, it has some huge disadvantages. Well, at least for the time being.<br />
<br />
First off, Ruby 1.9 has some core changes to syntax. This is not a huge issue and can be overcome, however. It will make updating your current applications to be Ruby 1.9 compatible a headache.<br />
<br />
Second, Ruby 1.9 does not have extensive Gem support. Reason for this is no doubt due to downside one. But, this will only be an issue in the beginning. As Gems update their code to work wtih 1.9 and new Gems are released solely for 1.9, then this will not be an issue any longer.<br />
<br />
Third, potential bugs in the core? I am not sure if this would be an issue or not, but since they changed how the core code works and operates then one can expect there to be some bug issues with the new changes.<br />
<br />
For me I can make the switch to Ruby 1.9 with no major issues. Why? Well, I do not have any huge applications running Ruby 1.8.x right now, however. I will still need to use 1.8.x on my machine soley because of Ruby on Rails.<br />
<br />
As I am aware of, Ruby on Rails is supposed to be compatible with 1.9 when it came out, but I am leary to make the switch just yet. Reason being, Ruby 1.9 will surely have the above disadvantages when it is first released, and even if Ruby 1.9 did not have any major bug issues that does not mean Ruby on Rails will not have any bug issues with compatibility.<br />
<br />
I believe I will wait a couple months before making the switch to Ruby 1.9. Maybe on the first or second patch update and once some Gems have updated their compatibility with Ruby 1.9 I will make the move to Ruby 1.9.]]></description>
			<content:encoded><![CDATA[While Ruby 1.9 will have some nice advantages, such as speed, it has some huge disadvantages. Well, at least for the time being.<br />
<br />
First off, Ruby 1.9 has some core changes to syntax. This is not a huge issue and can be overcome, however. It will make updating your current applications to be Ruby 1.9 compatible a headache.<br />
<br />
Second, Ruby 1.9 does not have extensive Gem support. Reason for this is no doubt due to downside one. But, this will only be an issue in the beginning. As Gems update their code to work wtih 1.9 and new Gems are released solely for 1.9, then this will not be an issue any longer.<br />
<br />
Third, potential bugs in the core? I am not sure if this would be an issue or not, but since they changed how the core code works and operates then one can expect there to be some bug issues with the new changes.<br />
<br />
For me I can make the switch to Ruby 1.9 with no major issues. Why? Well, I do not have any huge applications running Ruby 1.8.x right now, however. I will still need to use 1.8.x on my machine soley because of Ruby on Rails.<br />
<br />
As I am aware of, Ruby on Rails is supposed to be compatible with 1.9 when it came out, but I am leary to make the switch just yet. Reason being, Ruby 1.9 will surely have the above disadvantages when it is first released, and even if Ruby 1.9 did not have any major bug issues that does not mean Ruby on Rails will not have any bug issues with compatibility.<br />
<br />
I believe I will wait a couple months before making the switch to Ruby 1.9. Maybe on the first or second patch update and once some Gems have updated their compatibility with Ruby 1.9 I will make the move to Ruby 1.9.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[De-Introducing img.la]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=57</link>
			<pubDate>Mon, 18 May 2009 15:21:13 -0700</pubDate>
			<dc:creator>Matt</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=57</guid>
			<description><![CDATA[Code Boards is teaming up with a budding new open source project!<br />
<br />
<a href="http://www.img.la" target="_blank">img.la</a> is social image sharing gone open source. img.la follows the principals of design and development from "Getting Real", a book written by 37signals. Simplicity, elegance, and a focus on quality over quantity will guide the core project. It will be extensible with community-created plug-ins: an image hosting site developed and driven by its members!<br />
<br />
Details will be coming soon. img.la will be written in Ruby on Rails, fully compliant with the M-V-C standards, and well-documented. Code Boards members that have knowlege in Ruby on Rails or the desire to learn it are encouraged to participate!<br />
<br />
You may discuss this either by replying or you can start entirely new topics in the new <a href="http://www.codeboards.com/official-img-la-dev-forums-f-47.html" target="_blank">img.la Discussion Boards</a>.]]></description>
			<content:encoded><![CDATA[Code Boards is teaming up with a budding new open source project!<br />
<br />
<a href="http://www.img.la" target="_blank">img.la</a> is social image sharing gone open source. img.la follows the principals of design and development from "Getting Real", a book written by 37signals. Simplicity, elegance, and a focus on quality over quantity will guide the core project. It will be extensible with community-created plug-ins: an image hosting site developed and driven by its members!<br />
<br />
Details will be coming soon. img.la will be written in Ruby on Rails, fully compliant with the M-V-C standards, and well-documented. Code Boards members that have knowlege in Ruby on Rails or the desire to learn it are encouraged to participate!<br />
<br />
You may discuss this either by replying or you can start entirely new topics in the new <a href="http://www.codeboards.com/official-img-la-dev-forums-f-47.html" target="_blank">img.la Discussion Boards</a>.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Wolfram|Alpha]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=56</link>
			<pubDate>Fri, 15 May 2009 08:35:02 -0700</pubDate>
			<dc:creator>Matt</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=56</guid>
			<description><![CDATA[I'm pretty impressed so far, after watching this screencast: <a href="http://www.wolframalpha.com/screencast/introducingwolframalpha.html" target="_blank">http://www.wolframalpha.com/screencast/i...alpha.html</a><br />
<br />
Google's little "calculator" feature is about to be blown out of the water. What do you guys think of this?]]></description>
			<content:encoded><![CDATA[I'm pretty impressed so far, after watching this screencast: <a href="http://www.wolframalpha.com/screencast/introducingwolframalpha.html" target="_blank">http://www.wolframalpha.com/screencast/i...alpha.html</a><br />
<br />
Google's little "calculator" feature is about to be blown out of the water. What do you guys think of this?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Reg Expressions Resources]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=55</link>
			<pubDate>Thu, 14 May 2009 08:34:01 -0700</pubDate>
			<dc:creator>-JC-</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=55</guid>
			<description><![CDATA[Regular expressions are a thing of mystery! Master it and you have mastered programming <img src="http://www.codeboards.com/images/smilies/angel.gif" style="vertical-align: middle;" border="0" alt="Angel" title="Angel" /><br />
<br />
But regular expressions are very hairy pieces of code! In fact <span style="font-style: italic;">hairy code</span> is commonly used to describe regular expressions regardless of language! Why? Well, because the code structure can get very confusing! <img src="http://www.codeboards.com/images/smilies/huh.gif" style="vertical-align: middle;" border="0" alt="Huh" title="Huh" /><br />
<br />
Yes, you might only have /find this text/ and that is easily understood as "take this string and find this text within". That will search the given string and find "find this text" and you can work with it from there.<br />
<br />
Still, you might have a regular expression that looks like this: /^[A-Z0-9._%-&#93;+@([A-Z0-9-&#93;+\.)+[A-Z&#93;{2,4}&#36;/i<br />
<br />
Now that is some HAIRY CODE right there! Hence why we call reg expressions: <span style="font-style: italic;">hairy code</span> <img src="http://www.codeboards.com/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
I will not go into details and break this code down, but essentially you can use it to break down a string to verify that an email address is a valid string for when someone registers on your site. (this is  just a pre-validation that the string resembles a valid email -- you still need to send email validation to determine for certain that it is a valid email and the user has ownership of that email address.)<br />
<br />
But, since this is a collection of resources on regular expressions, then you can do the research and come to your own conclusion how this code works <img src="http://www.codeboards.com/images/smilies/wink.gif" style="vertical-align: middle;" border="0" alt="Wink" title="Wink" /><br />
<br />
Ok! Let's stop talking about what regular expressions are and list some resources to get more information on what reg expressions are, how we can use them in our code, why we should use them in our code, where we should use them in our code,  and what languages use regular expressions religiously!<br />
<br />
====================<br />
Reg Expressions Resources<br />
====================<br />
<br />
-------<br />
General<br />
-------<br />
<a href="http://www.regular-expressions.info/" target="_blank">http://www.regular-expressions.info/</a><br />
<br />
-------------<br />
Code Specific<br />
-------------<br />
-----<br />
Ruby<br />
-----<br />
<a href="http://www.zenspider.com/Languages/Ruby/QuickRef.html" target="_blank">http://www.zenspider.com/Languages/Ruby/QuickRef.html</a> <br />
<br />
----<br />
PHP<br />
----<br />
<a href="http://www.php.net/manual/en/regexp.reference.php" target="_blank">http://www.php.net/manual/en/regexp.reference.php</a><br />
<a href="http://www.php.net/manual/en/book.pcre.php" target="_blank">http://www.php.net/manual/en/book.pcre.php</a><br />
<br />
Feel free to add to the list!]]></description>
			<content:encoded><![CDATA[Regular expressions are a thing of mystery! Master it and you have mastered programming <img src="http://www.codeboards.com/images/smilies/angel.gif" style="vertical-align: middle;" border="0" alt="Angel" title="Angel" /><br />
<br />
But regular expressions are very hairy pieces of code! In fact <span style="font-style: italic;">hairy code</span> is commonly used to describe regular expressions regardless of language! Why? Well, because the code structure can get very confusing! <img src="http://www.codeboards.com/images/smilies/huh.gif" style="vertical-align: middle;" border="0" alt="Huh" title="Huh" /><br />
<br />
Yes, you might only have /find this text/ and that is easily understood as "take this string and find this text within". That will search the given string and find "find this text" and you can work with it from there.<br />
<br />
Still, you might have a regular expression that looks like this: /^[A-Z0-9._%-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}&#36;/i<br />
<br />
Now that is some HAIRY CODE right there! Hence why we call reg expressions: <span style="font-style: italic;">hairy code</span> <img src="http://www.codeboards.com/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
I will not go into details and break this code down, but essentially you can use it to break down a string to verify that an email address is a valid string for when someone registers on your site. (this is  just a pre-validation that the string resembles a valid email -- you still need to send email validation to determine for certain that it is a valid email and the user has ownership of that email address.)<br />
<br />
But, since this is a collection of resources on regular expressions, then you can do the research and come to your own conclusion how this code works <img src="http://www.codeboards.com/images/smilies/wink.gif" style="vertical-align: middle;" border="0" alt="Wink" title="Wink" /><br />
<br />
Ok! Let's stop talking about what regular expressions are and list some resources to get more information on what reg expressions are, how we can use them in our code, why we should use them in our code, where we should use them in our code,  and what languages use regular expressions religiously!<br />
<br />
====================<br />
Reg Expressions Resources<br />
====================<br />
<br />
-------<br />
General<br />
-------<br />
<a href="http://www.regular-expressions.info/" target="_blank">http://www.regular-expressions.info/</a><br />
<br />
-------------<br />
Code Specific<br />
-------------<br />
-----<br />
Ruby<br />
-----<br />
<a href="http://www.zenspider.com/Languages/Ruby/QuickRef.html" target="_blank">http://www.zenspider.com/Languages/Ruby/QuickRef.html</a> <br />
<br />
----<br />
PHP<br />
----<br />
<a href="http://www.php.net/manual/en/regexp.reference.php" target="_blank">http://www.php.net/manual/en/regexp.reference.php</a><br />
<a href="http://www.php.net/manual/en/book.pcre.php" target="_blank">http://www.php.net/manual/en/book.pcre.php</a><br />
<br />
Feel free to add to the list!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[CSS Frameworks]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=54</link>
			<pubDate>Thu, 14 May 2009 07:46:03 -0700</pubDate>
			<dc:creator>-JC-</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=54</guid>
			<description><![CDATA[Have any of you ever used <a href="http://blueprintcss.org" target="_blank">Blueprint CSS</a> or any other CSS framework?<br />
<br />
If so, did they really save you on time and help in the long run? I imagine using a CSS framework would only be good if you are developing a large project, or you develop multiple websites a month.<br />
<br />
<img src="http://www.codeboards.com/images/smilies/cool.gif" style="vertical-align: middle;" border="0" alt="Cool" title="Cool" />]]></description>
			<content:encoded><![CDATA[Have any of you ever used <a href="http://blueprintcss.org" target="_blank">Blueprint CSS</a> or any other CSS framework?<br />
<br />
If so, did they really save you on time and help in the long run? I imagine using a CSS framework would only be good if you are developing a large project, or you develop multiple websites a month.<br />
<br />
<img src="http://www.codeboards.com/images/smilies/cool.gif" style="vertical-align: middle;" border="0" alt="Cool" title="Cool" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PHP5 OOP ??]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=53</link>
			<pubDate>Thu, 14 May 2009 07:21:35 -0700</pubDate>
			<dc:creator>-JC-</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=53</guid>
			<description><![CDATA[I hear from some PHP programers that PHP5 is more Object Oriented ??<br />
<br />
What has changed in PHP5 to make it more Object Oriented as opposed to PHP4 ?? Does this mean that if I dabbed in PHP4 a year or two ago, then I would have to re-learn techniques used in PHP5 ??<br />
<br />
I am just curious if it was a huge change, or if PHP4 was always Object Oriented, and PHP programmers just did not design their code this way in general -- so, in PHP5 they placed more strict guidelines that are built in to help force OOP ??<br />
<br />
Thanks <img src="http://www.codeboards.com/images/smilies/wink.gif" style="vertical-align: middle;" border="0" alt="Wink" title="Wink" />]]></description>
			<content:encoded><![CDATA[I hear from some PHP programers that PHP5 is more Object Oriented ??<br />
<br />
What has changed in PHP5 to make it more Object Oriented as opposed to PHP4 ?? Does this mean that if I dabbed in PHP4 a year or two ago, then I would have to re-learn techniques used in PHP5 ??<br />
<br />
I am just curious if it was a huge change, or if PHP4 was always Object Oriented, and PHP programmers just did not design their code this way in general -- so, in PHP5 they placed more strict guidelines that are built in to help force OOP ??<br />
<br />
Thanks <img src="http://www.codeboards.com/images/smilies/wink.gif" style="vertical-align: middle;" border="0" alt="Wink" title="Wink" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Test Driven Development]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=52</link>
			<pubDate>Wed, 13 May 2009 23:17:48 -0700</pubDate>
			<dc:creator>-JC-</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=52</guid>
			<description><![CDATA[Test-driven development -- to do or not to do? That is the question!<br />
<br />
Two years ago I would have said, 'To hell with TDD!', but today I am leaning more toward the TDD facet of application development. <br />
<br />
Why? Well, I have been learning this concept in a new book I am working through, and if it was not for TDD, then there would have been many bugs I would not have realized were there until I launched the program.<br />
<br />
Even then I would have to hunt those bugs down. But, because I used TDD good practices I found these errors and  bugs early on, and was able to determine where the error or bug was caused faster.<br />
<br />
So, I am now a TDD programmer and proud of it <img src="http://www.codeboards.com/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
How about you?]]></description>
			<content:encoded><![CDATA[Test-driven development -- to do or not to do? That is the question!<br />
<br />
Two years ago I would have said, 'To hell with TDD!', but today I am leaning more toward the TDD facet of application development. <br />
<br />
Why? Well, I have been learning this concept in a new book I am working through, and if it was not for TDD, then there would have been many bugs I would not have realized were there until I launched the program.<br />
<br />
Even then I would have to hunt those bugs down. But, because I used TDD good practices I found these errors and  bugs early on, and was able to determine where the error or bug was caused faster.<br />
<br />
So, I am now a TDD programmer and proud of it <img src="http://www.codeboards.com/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
How about you?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Getting Real w/ Development]]></title>
			<link>http://www.codeboards.com/showthread.php?tid=51</link>
			<pubDate>Wed, 13 May 2009 19:36:58 -0700</pubDate>
			<dc:creator>-JC-</dc:creator>
			<guid isPermaLink="false">http://www.codeboards.com/showthread.php?tid=51</guid>
			<description><![CDATA[I ran across this book a few days ago, and I am really enjoying the read! The book is called 'Getting Real' by 37signals<br />
<br />
It is basically the design and development ideas and philosophies of 37signals, a company whom has had many successful web application launches and even a large open source launch (Ruby on Rails)<br />
<br />
Before this book I thought features were where the development was at, and now I understand it is at the features ... but not at the 'more features equal best application out there' -- instead 'less features and simplicity makes the best applications'<br />
<br />
This book has changed my outlook so far of how a product development and launch should take place! It has literly changed my life...<br />
<br />
I am on chapter 6 or 7 now, and I am loving it!<br />
<br />
They have three versions of the book. A solid 'i can hold it in my hands' book. A pdf formatted book. And, lastly an HTML version of the book.<br />
<br />
The first two cost money, but the last one does not cost anything!<br />
<br />
Needless to say I am reading the free HTML version, and if you wanna check it out here is the link: <a href="http://gettingreal.37signals.com/toc.php" target="_blank">http://gettingreal.37signals.com/toc.php</a><br />
<br />
Reply back here and let me know what you think of the book and if you agree or disagree with some of the ideas in the book <img src="http://www.codeboards.com/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" />]]></description>
			<content:encoded><![CDATA[I ran across this book a few days ago, and I am really enjoying the read! The book is called 'Getting Real' by 37signals<br />
<br />
It is basically the design and development ideas and philosophies of 37signals, a company whom has had many successful web application launches and even a large open source launch (Ruby on Rails)<br />
<br />
Before this book I thought features were where the development was at, and now I understand it is at the features ... but not at the 'more features equal best application out there' -- instead 'less features and simplicity makes the best applications'<br />
<br />
This book has changed my outlook so far of how a product development and launch should take place! It has literly changed my life...<br />
<br />
I am on chapter 6 or 7 now, and I am loving it!<br />
<br />
They have three versions of the book. A solid 'i can hold it in my hands' book. A pdf formatted book. And, lastly an HTML version of the book.<br />
<br />
The first two cost money, but the last one does not cost anything!<br />
<br />
Needless to say I am reading the free HTML version, and if you wanna check it out here is the link: <a href="http://gettingreal.37signals.com/toc.php" target="_blank">http://gettingreal.37signals.com/toc.php</a><br />
<br />
Reply back here and let me know what you think of the book and if you agree or disagree with some of the ideas in the book <img src="http://www.codeboards.com/images/smilies/smile.gif" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" />]]></content:encoded>
		</item>
	</channel>
</rss>