<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>I am NOT a Web Designer ...</title>
	<atom:link href="http://acsummer.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://acsummer.wordpress.com</link>
	<description>... but here are some reasons why you might think I am</description>
	<lastBuildDate>Sat, 07 May 2011 02:01:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='acsummer.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>I am NOT a Web Designer ...</title>
		<link>http://acsummer.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://acsummer.wordpress.com/osd.xml" title="I am NOT a Web Designer ..." />
	<atom:link rel='hub' href='http://acsummer.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Quick Answer: Add Random Dates to MySQL Database</title>
		<link>http://acsummer.wordpress.com/2008/01/30/quick-answer-add-random-dates-to-mysql-database/</link>
		<comments>http://acsummer.wordpress.com/2008/01/30/quick-answer-add-random-dates-to-mysql-database/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 22:12:54 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Quick Answers]]></category>
		<category><![CDATA[CONCAT()]]></category>
		<category><![CDATA[FLOOR()]]></category>
		<category><![CDATA[RAND()]]></category>
		<category><![CDATA[random date]]></category>
		<category><![CDATA[STR_TO_DATE()]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/?p=77</guid>
		<description><![CDATA[Looking for a way to add random dates to a column in one of your MySQL tables? I ran across this problem and found a straightforward solution. By utilizing str_to_date(), concat(), floor() and rand() you can specify a random date for a column. update mytable set mycolumn = str_to_date( concat( floor(1 + rand() * (12-1)), [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=77&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Looking for a way to add random dates to a column in one of your MySQL tables?</p>
<p>I ran across this problem and found a straightforward solution. By utilizing str_to_date(), concat(), floor() and rand() you can specify a random date for a column.</p>
<pre>
update  mytable
set     mycolumn = str_to_date(
                               concat(
                                      floor(1 + rand() * (12-1)), 	/* Generate a random month */
                                      '-',
                                      floor(1 + rand() * (28 -1)), 	/* Generate a random day */
                                      '-',
                                      '2008'
                                      ),
                                '%m-%d-%Y'
                                );</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=77&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2008/01/30/quick-answer-add-random-dates-to-mysql-database/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating VIEWs in MySQL</title>
		<link>http://acsummer.wordpress.com/2008/01/03/creating-views-in-mysql/</link>
		<comments>http://acsummer.wordpress.com/2008/01/03/creating-views-in-mysql/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 21:10:14 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Temp Tables]]></category>
		<category><![CDATA[MySQL Temporary Tables]]></category>
		<category><![CDATA[MySQL View]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[VIEW]]></category>
		<category><![CDATA[VIEWS]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2008/01/03/creating-views-in-mysql/</guid>
		<description><![CDATA[The MySQL VIEW acts like a virtual table. Each VIEW is actually a SQL statement that has been previously defined. To create a VIEW: CREATE VIEW view_name AS sql_statement; A basic VIEW could be created as the following: CREATE VIEW Cities AS SELECT DISTINCT(City) FROM Customers ORDER BY City ASC; When we run a SHOW [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=75&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The MySQL VIEW acts like a virtual table. Each VIEW is actually a SQL statement that has been previously defined.</p>
<p>To create a VIEW:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">CREATE VIEW view_name AS
sql_statement;</pre>
<p>A basic VIEW could be created as the following:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">CREATE VIEW Cities AS
SELECT     DISTINCT(City)
FROM       Customers
ORDER BY   City ASC;</pre>
<p>When we run a SHOW COLUMNS FROM Cities MySQL returns the following:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">+-------+-------------+------+-----+---------+-------+
| Field | Type        | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| city  | varchar(50) | YES  |     | NULL    |       |
+-------+-------------+------+-----+---------+-------+
1 row in set (0.16 sec)</pre>
<p>To access the information from the newly created VIEW:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">SELECT     City
FROM       Cities
LIMIT      5;</pre>
<p>And MySQL returns:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">+----------------+
| city           |
+----------------+
| 100 MILE HOUSE |
| ABBOTSFORD     |
| ABBOTT PARK    |
| ACHESON        |
| ACTON          |
+----------------+
5 rows in set (0.09 sec)</pre>
<p>I know this example is incredibly simple, but I hope you can see the potential for using VIEWs. The creation syntax for VIEWs also includes the capability to assign an algorithm type (either AUTO, MERGE or TEMPTABLE) and there are some limitations (not being able to access user variables). The example that I have included is the most simplified method for creating a new view.</p>
<p>With the MySQL VIEWs I am able to simplify other-wise complicated SQL statements. To generate summary level details (by using several aggregate functions) and JOIN that information to more readable SQL, I am saving myself a lot of debugging and troubleshooting if future modifications are required.</p>
<p>For example if I was working on a bulletin board application and I want to display a summary for a user:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">CREATE VIEW user_summary AS
SELECT     Users.UserID,
           COUNT(Comments) AS user_comment_count,
           COUNT(Posts) AS user_post_count
FROM       Users LEFT JOIN
           (
            Comments LEFT JOIN Posts
            ON
             (
              Comments.PostID = Posts.ID
             )
            )
            ON
             (
              Users.UserID = Comments.UserID
             )
GROUP BY   Users.UserID;</pre>
<p>Now I have a VIEW that contains the bulletin board summary information for the users. To JOIN the VIEW to another SQL statment:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">SELECT    Users.UserID,
          user_summary.user_comment_count,
          user_summary.user_post_count
FROM      Users LEFT JOIN user_summary
          ON
           (
            Users.UserID = user_summary.UserID
           );</pre>
<p>If you have any questions, or would like further clarification. Please leave me a comment and I will answer you promptly.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/75/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/75/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=75&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2008/01/03/creating-views-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Answers: Dynamically Apply a Border to all IMGs in the DOM</title>
		<link>http://acsummer.wordpress.com/2008/01/02/quick-answers-dynamically-apply-a-border-to-all-imgs-in-the-dom/</link>
		<comments>http://acsummer.wordpress.com/2008/01/02/quick-answers-dynamically-apply-a-border-to-all-imgs-in-the-dom/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 21:42:34 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quick Answers]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Dynamically Border Images]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2008/01/02/quick-answers-dynamically-apply-a-border-to-all-imgs-in-the-dom/</guid>
		<description><![CDATA[Many people have asked me to put up a Quick Answer that would allow them to dynamically apply a border to all IMG elements in the DOM. Before &#8230; After &#8230; To dynamically apply CSS padding and borders to all IMG elements in the DOM, you can use the following Javascript function: &#60;html&#62; &#60;head&#62; &#60;script [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=72&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many people have asked me to put up a Quick Answer that would allow them to dynamically apply a border to all IMG elements in the DOM.</p>
<p>Before &#8230;</p>
<p><img src="http://acsummer.files.wordpress.com/2008/01/border-002.png?w=450" alt="border-002.png" /></p>
<p>After &#8230;</p>
<p><img src="http://acsummer.files.wordpress.com/2008/01/border-001.png?w=450" alt="border-001.png" /></p>
<p>To dynamically apply CSS padding and borders to all IMG elements in the DOM, you can use the following Javascript function:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">&lt;html&gt;
  &lt;head&gt;
    &lt;script language="Javascript"&gt;
      function drawIMGBorder()
      {
        //Create a reference of all IMG elements in DOM
        var imgs = document.getElementsByTagName('img');

        //Loop through each of the IMG elements
        for(i = 0; i &lt;= (imgs.length -1); i++)
        {
          //Apply CSS padding to current IMG
          imgs[i].style.padding = "2px";
          //Apply CSS border to current IMG
          imgs[i].style.border = "2px Solid #cacaca";
        }
      }
    &lt;/script&gt;
  &lt;/head&gt;
&lt;body onLoad="drawIMGBorder();"&gt;
  &lt;img src="picture1.jpg" border="0" /&gt;
  &lt;img src="picture2.jpg" border="0" /&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>In this example the Javascript function is called when the page loads, but this can easily be modified to another Javascript event.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/72/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/72/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=72&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2008/01/02/quick-answers-dynamically-apply-a-border-to-all-imgs-in-the-dom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2008/01/border-002.png" medium="image">
			<media:title type="html">border-002.png</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2008/01/border-001.png" medium="image">
			<media:title type="html">border-001.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Join Tables Across Different Databases</title>
		<link>http://acsummer.wordpress.com/2008/01/02/join-tables-across-different-databases/</link>
		<comments>http://acsummer.wordpress.com/2008/01/02/join-tables-across-different-databases/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 21:03:45 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[JOIN Multiple Databases]]></category>
		<category><![CDATA[LEFT JOIN]]></category>
		<category><![CDATA[SQL QUERY]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2008/01/02/join-tables-across-different-databases/</guid>
		<description><![CDATA[Joining tables in queries across different MySQL databases is possible if you use fully qualified database and table names. Both databases will need to be on the same server for this to work SELECT db1.table1.column1, db2.table1.column1 FROM db1.table1 LEFT JOIN db2.table1 ON ( db1.table1.column2 = db2.table1.column2 ); The example query will pull two columns (column1 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=71&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Joining tables in queries across different MySQL databases is possible if you use fully qualified database and table names.</p>
<blockquote><p>Both databases will need to be on the same server for this to work <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p></blockquote>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">
SELECT  db1.table1.column1,
        db2.table1.column1
FROM    db1.table1 LEFT JOIN db2.table1
        ON
          (
            db1.table1.column2 = db2.table1.column2
          );</pre>
<p>The example query will pull two columns (column1 from both databases) and display the results of the LEFT JOIN.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/71/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/71/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=71&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2008/01/02/join-tables-across-different-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction to Regular Expressions in MySQL</title>
		<link>http://acsummer.wordpress.com/2008/01/02/introduction-to-regular-expressions-in-mysql/</link>
		<comments>http://acsummer.wordpress.com/2008/01/02/introduction-to-regular-expressions-in-mysql/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 20:28:13 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[LIKE]]></category>
		<category><![CDATA[MySQL REGEXP]]></category>
		<category><![CDATA[MySQL Regular Expressions]]></category>
		<category><![CDATA[REGEXP]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[Search Strings]]></category>
		<category><![CDATA[[0-9]]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2008/01/02/introduction-to-regular-expressions-in-mysql/</guid>
		<description><![CDATA[Using the LIKE clause can only get you so far when you are building search functionality into your applications. Implementing Regular Expressions will open your search functionality far beyond the most complicated LIKE statement you can create. SELECT City FROM Customers WHERE City REGEXP 'vancouver' ORDER BY City ASC; SELECT City FROM Customers WHERE City [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=70&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using the LIKE clause can only get you so far when you are building search functionality into your applications. Implementing Regular Expressions will open your search functionality far beyond the most complicated LIKE statement you can create.</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">SELECT    City
FROM      Customers
WHERE     City REGEXP 'vancouver'
ORDER BY  City ASC;</pre>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">
SELECT    City
FROM      Customers
WHERE     City REGEXP '.ancouver'
ORDER BY  City ASC;</pre>
<blockquote><p>The &#8220;.&#8221; is used to replace a single character in your search string.</p></blockquote>
<p>The querys above would work the same if you replaced REGEXP with LIKE (and used wildcards). The main difference between LIKE and REGEXP is that LIKE matches entire column values (unless wildcards are used), and REGEXP automatically searches for matches within the column values.</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">
SELECT     City
FROM       Customers
WHERE      City REGEXP "Vancouver|Richmond"
ORDER BY   City ASC;</pre>
<blockquote><p>Searching for multiple items can be accomplished by separating the searches with the OR operator (|).</p></blockquote>
<pre>SELECT     City
FROM       Customers
WHERE      City REGEXP '[St|Saint] Johns'
ORDER BY   City ASC;</pre>
<blockquote><p>[] is used to specify AND as a operator, [12345] and [1|2|3|4|5] are the same.</p></blockquote>
<p>It is important to note that &#8216;St|Saint Johns&#8217; and &#8216;[St|Saint] Johns&#8217; will not produce identical results. Below are the example queries and their respective output:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">SELECT    Distinct(City)
FROM      Customers
WHERE     City REGEXP '[st|saint] john';
+--------------+
| City         |
+--------------+
| ST JOHN'S    |
| SAINT JOHN   |
| FORT ST JOHN |
+--------------+
3 rows in set (0.09 sec)</pre>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">
SELECT     City
FROM       Customers
WHERE      City REGEXP 'st|saint john';
+-----------------------------+
| City                        |
+-----------------------------+
| ESTEVAN                     |
| FORESTBURG                  |
| ST-ISIDORE                  |
| ESTERHAZY                   |
| EAST YORK                   |
...
| ALVINSTON                   |
| EAST PROVIDENCE             |
+-----------------------------+
148 rows in set (0.14 sec)</pre>
<p>The &#8216;st|saint john&#8217; query is requesting all cities that include the letters &#8216;st&#8217; OR &#8216;saint john&#8217;, whereas the &#8216;[st|saint] john&#8217; query requested the letters &#8216;st john&#8217; AND &#8216;saint john&#8217;. Big difference!</p>
<blockquote><p>[1-9] is shorthand for [123456789]</p></blockquote>
<blockquote><p>[a-e] is shorthand for [abcde]</p></blockquote>
<p>If you are still with me on the REGEXP syntax, my next post will go further into searching for multiple instances and repetition in MySQL.</p>
<pre></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/70/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/70/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=70&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2008/01/02/introduction-to-regular-expressions-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Answers: How many images are in the DOM?</title>
		<link>http://acsummer.wordpress.com/2008/01/02/quick-answers-how-many-images-are-in-the-dom/</link>
		<comments>http://acsummer.wordpress.com/2008/01/02/quick-answers-how-many-images-are-in-the-dom/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 17:37:27 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quick Answers]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2008/01/02/quick-answers-how-many-images-are-in-the-dom/</guid>
		<description><![CDATA[You can dynamically determine the number of images (&#60;img&#62;) on a web page by using Javascript. var imgCount = document.getElementsByTagName('img').length To create a reusable function you can use the following code: function countAllImages() { var imgCount = document.getElementsByTagName('img').length; return imgCount; }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=49&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can dynamically determine the number of images (&lt;img&gt;) on a web page by using Javascript.</p>
<p><code> </code></p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">var imgCount = document.getElementsByTagName('img').length</pre>
<p>To create a reusable function you can use the following code:</p>
<p><code> </code></p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">function countAllImages()
{
var imgCount = document.getElementsByTagName('img').length;
return imgCount;
}</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=49&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2008/01/02/quick-answers-how-many-images-are-in-the-dom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>
	</item>
		<item>
		<title>Forms Without Tables</title>
		<link>http://acsummer.wordpress.com/2008/01/02/forms-without-tables/</link>
		<comments>http://acsummer.wordpress.com/2008/01/02/forms-without-tables/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 17:13:34 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[gradient background]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[ID]]></category>
		<category><![CDATA[Table-less forms]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2008/01/02/forms-without-tables/</guid>
		<description><![CDATA[Tables are overused in web development these days. I must admit that years ago (around 1995) I used tables to help position elements in web pages. NEVER USE TABLES to format your forms. Not only are tables tacky but they will require more time to modify layouts and do not make much sense in terms [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=58&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://acsummer.files.wordpress.com/2008/01/forms-001.png?w=450" alt="Tableless Form 001" align="right" border="0" />Tables are overused in web development these days. I must admit that years ago (around 1995) I used tables to help position elements in web pages. NEVER USE TABLES to format your forms. Not only are tables tacky but they will require more time to modify layouts and do not make much sense in terms of accessibility.</p>
<p>CSS (Cascading Style Sheets) allows you to define the formatting and layout of your web pages. Using CSS will add greater flexibility to your web sites and reduce the time it would take to adjust layout changes versus HTML.</p>
<p>I am going to start building the table less form in a &lt;div&gt;:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">
&lt;div id="form_body"&gt;
  &lt;form method="post" action=""&gt;
    &lt;fieldset&gt;
      &lt;legend&gt;Shipping Details&lt;/legend&gt;
      &lt;ul&gt;
        &lt;li&gt;
          &lt;label for="name"&gt;Attention&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
          &lt;input type="text" name="name" id="name" /&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label for="street_address"&gt;Street Address&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
          &lt;input type="text" name="street_address" id="street_address" /&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label for="city"&gt;City&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
          &lt;input type="text" name="city" id="city" /&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label for="province"&gt;Province&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
          &lt;input type="text" name="province" id="province" /&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label for="postal_code"&gt;Postal Code&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
          &lt;input type="text" name="postal_code" id="postal_code" /&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label for="email"&gt;Email&lt;/label&gt;
          &lt;input type="text" name="email" id="email" /&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;label for="submit"&gt; &lt;/label&gt;
          &lt;input type="submit" name="submit" id="submit" value="Continue" class="button" /&gt;
      &lt;/ul&gt;
    &lt;/fieldset&gt;
  &lt;/form&gt;
&lt;/div&gt;</pre>
<p>Without any CSS Rules being applied, we now have a form that looks like the following:</p>
<p><img src="http://acsummer.files.wordpress.com/2008/01/forms-002.png?w=450" alt="Forms Without Tables 002" border="0" /><br />
To prevent your visitors from running away from the horribly formatted form, I am going to start applying CSS.</p>
<p>I will first specify the font to be used:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">#form_body
{
  font: 8pt Arial;
}</pre>
<p>Next I will specify the &lt;fieldset&gt; border, background color and of course the &lt;legend&gt; style:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">#form_body fieldset
{
  border: 1px Solid #c8c8c8;
  background: #f0f0f0;
  width: 300px;
}
  #form_body fieldset legend
  {
    font: Bold 8pt Arial;
  }</pre>
<p>Now we can apply some formatting to the &lt;ul&gt; and the child &lt;li&gt; elements:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">#form_body fieldset ul
{
  margin: 0;
  padding: 0;
}
  #form_body fieldset ul li
  {
    list-style: none;
    margin-bottom: 3px;
    text-align: left;
  }</pre>
<p>Here is the CSS to position the &lt;label&gt; for each of the &lt;input&gt; items, this is where all the magic happens:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">#form_body fieldset ul li label
{
  width: 150px;
  float: left;
}
  #form_body fieldset ul li label em
  {
    color: #ff1515;
    font: 10pt Arial;

  }</pre>
<p>Before I display the final bit of CSS, let&#8217;s take a look at our HTML now:</p>
<p><img src="http://acsummer.files.wordpress.com/2008/01/forms-003.png?w=450" alt="Forms Without Tables 003" /></p>
<p>Now all that is needed is to specify the formatting of the &lt;input&gt; elements:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">#form_body fieldset ul li input
{
  border: 1px Solid #c8c8c8;
  font: 8pt Arial;
  width: 150px;
}
#form_body fieldset ul li input.button
{
  border: 1px Solid #71ff72;
  background: #caffca;
  font: 8pt Arial;
}</pre>
<p>Before I display some other possible enhancements to the form here is the entire HTML to reproduce our new table less form:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">&lt;html&gt;
&lt;head&gt;
  &lt;style type="text/css"&gt;
    #form_body
    {
      font: 8pt Arial;
    }
      #form_body fieldset
      {
        border: 1px Solid #c8c8c8;
        background: #f0f0f0;
        width: 300px;
      }
        #form_body fieldset legend
        {
          font: Bold 8pt Arial;
        }
        #form_body fieldset ul
        {
          margin: 0;
          padding: 0;
        }
          #form_body fieldset ul li
          {
            list-style: none;
            margin-bottom: 3px;
            text-align: left;
          }
            #form_body fieldset ul li label
            {
              width: 150px;
              float: left;
            }
              #form_body fieldset ul li label em
              {
                color: #ff1515;
                font: 10pt Arial;

              }
            #form_body fieldset ul li input
            {
              border: 1px Solid #c8c8c8;
              font: 8pt Arial;
              width: 150px;
            }
            #form_body fieldset ul li input.button
            {
              border: 1px Solid #71ff72;
              background: #caffca;
              font: 8pt Arial;
            }
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div id="form_body"&gt;
    &lt;form method="post" action=""&gt;
      &lt;fieldset&gt;
        &lt;legend&gt;Shipping Details&lt;/legend&gt;
        &lt;ul&gt;
          &lt;li&gt;
            &lt;label for="name"&gt;Attention&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
            &lt;input type="text" name="name" id="name" /&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;label for="street_address"&gt;Street Address&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
            &lt;input type="text" name="street_address" id="street_address" /&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;label for="city"&gt;City&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
            &lt;input type="text" name="city" id="city" /&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;label for="province"&gt;Province&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
            &lt;input type="text" name="province" id="province" /&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;label for="postal_code"&gt;Postal Code&lt;em&gt;*&lt;/em&gt;&lt;/label&gt;
            &lt;input type="text" name="postal_code" id="postal_code" /&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;label for="email"&gt;Email&lt;/label&gt;
            &lt;input type="text" name="email" id="email" /&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;label for="submit"&gt; &lt;/label&gt;
            &lt;input type="submit" name="submit" id="submit" value="Continue" class="button" /&gt;
        &lt;/ul&gt;
      &lt;/fieldset&gt;
    &lt;/form&gt;
  &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>To add a more modern look, we can change the background properties of the &lt;fieldset&gt;. Below are some examples with gradient backgrounds:</p>
<p><img src="http://acsummer.files.wordpress.com/2008/01/forms-004.png?w=450" alt="forms-004.png" /><img src="http://acsummer.files.wordpress.com/2008/01/forms-005.png?w=450" alt="forms-005.png" /></p>
<p>Applying a background image to the &lt;fieldset&gt; is very straight forward:</p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">#form_body fieldset
{
  border: 1px Solid #c8c8c8;
  background: url('green_grad.jpg') repeat-x top left;
  width: 300px;
}</pre>
<pre></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/58/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/58/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=58&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2008/01/02/forms-without-tables/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2008/01/forms-001.png" medium="image">
			<media:title type="html">Tableless Form 001</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2008/01/forms-002.png" medium="image">
			<media:title type="html">Forms Without Tables 002</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2008/01/forms-003.png" medium="image">
			<media:title type="html">Forms Without Tables 003</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2008/01/forms-004.png" medium="image">
			<media:title type="html">forms-004.png</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2008/01/forms-005.png" medium="image">
			<media:title type="html">forms-005.png</media:title>
		</media:content>
	</item>
		<item>
		<title>SELECT INTO OUTFILE</title>
		<link>http://acsummer.wordpress.com/2007/12/31/select-into-outfile/</link>
		<comments>http://acsummer.wordpress.com/2007/12/31/select-into-outfile/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 16:24:24 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ENCLOSED BY]]></category>
		<category><![CDATA[FIELDS TERMINATED BY]]></category>
		<category><![CDATA[INTO OUTFILE]]></category>
		<category><![CDATA[LINES TERMINATED BY]]></category>
		<category><![CDATA[SELECT INTO OUTFILE]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2007/12/31/select-into-outfile/</guid>
		<description><![CDATA[There are times when, for example I am about to run a large database update or compare two tables, I need to output a simple copy of a SELECT statement to a file for reference at a later date. After creating a script to handle the task, I realized that MySQL will do all this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=55&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are times when, for example I am about to run a large database update or compare two tables, I need to output a simple copy of a SELECT statement to a file for reference at a later date.</p>
<p>After creating a script to handle the task, I realized that MySQL will do all this work for me. All I need to do is create the SELECT query, and append the INTO OUTFILE syntax to generate my file.</p>
<p>Below is a simple example of SELECT &#8230; INTO OUTFILE:</p>
<pre style="background:#f8f8f8;">SELECT   *
FROM     Customers
INTO OUTFILE 'C:/MySQL_Output/Customers_Output.txt'
FIELDS  TERMINATED BY '|'
        ENCLOSED BY '"'
LINES TERMINATED BY '\n';</pre>
<p>We are asking MySQL to SELECT all records from the Customers table and output the query results to the MySQL_Output folder in a file called Customers_Output.txt with some specific formatting. In the example above I am asking MySQL to terminate all fields from the result set with a | and enclose each field with a &#8221; and at the end of a result set, output a new line.</p>
<p>The output from such a request would look like the following:</p>
<pre style="background:#f8f8f8;">
"ABC Widgets"|"12345 Simple Street"|"Richmond"|"British Columbia"
"XYZ Fasteners"|"78910 Enterprise Avenue"|"Vancouver"|"British Columbia"</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=55&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2007/12/31/select-into-outfile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Answer: Count the Number of Child Elements in DOM</title>
		<link>http://acsummer.wordpress.com/2007/12/30/quick-answers-count-the-number-of-child-elements-in-dom/</link>
		<comments>http://acsummer.wordpress.com/2007/12/30/quick-answers-count-the-number-of-child-elements-in-dom/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 17:32:53 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quick Answers]]></category>
		<category><![CDATA[Client Side Scripting]]></category>
		<category><![CDATA[Document Object Model]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Dynamic HTML]]></category>
		<category><![CDATA[getElementById()]]></category>
		<category><![CDATA[getElementsByTagName()]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2007/12/30/quick-answers-count-the-number-of-child-elements-in-dom/</guid>
		<description><![CDATA[Sometimes I come across the need to count the number of child elements in any given area of the DOM. Below is an example of how to count the number of elements by using the getElementsByTagName() function. &#60;html&#62; &#60;head&#62; &#60;script language = "Javascript"&#62; function countChildElements(parent, child) { var parent = document.getElementById(parent); var childCount = parent.getElementsByTagName(child).length; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=54&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes I come across the need to count the number of child elements in any given area of the DOM. Below is an example of how to count the number of elements by using the getElementsByTagName() function.</p>
<p><code></code></p>
<pre style="background:#f8f8f8 none repeat scroll 0 50%;overflow:auto;">&lt;html&gt;

&lt;head&gt;
&lt;script language = "Javascript"&gt;
function countChildElements(parent, child)
     {
          var parent = document.getElementById(parent);
          var childCount = parent.getElementsByTagName(child).length;
          alert(childCount);
     }
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ul id = "listing"&gt;
 &lt;li&gt;List Item 1&lt;/li&gt;
 &lt;li&gt;List Item 2&lt;/li&gt;
 &lt;li&gt;List Item 3&lt;/li&gt;
&lt;/ul&gt;
&lt;input type = "button" value = "Count &lt;li&gt;" onClick="countChildElements('listing','li');" /&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>When you click the button, the browser will alert you to the number of child &lt;li&gt; elements to the &#8220;listing&#8221; &lt;ul&gt;.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=54&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2007/12/30/quick-answers-count-the-number-of-child-elements-in-dom/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Answer: Dynamically Adding a Hyperlink to the DOM</title>
		<link>http://acsummer.wordpress.com/2007/12/29/quick-answer-dynamically-adding-a-hyperlink/</link>
		<comments>http://acsummer.wordpress.com/2007/12/29/quick-answer-dynamically-adding-a-hyperlink/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 20:56:34 +0000</pubDate>
		<dc:creator>acsummer</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quick Answers]]></category>
		<category><![CDATA[Add]]></category>
		<category><![CDATA[Add Link]]></category>
		<category><![CDATA[Append Child Javascript]]></category>
		<category><![CDATA[appendChild()]]></category>
		<category><![CDATA[createElement()]]></category>
		<category><![CDATA[document.appendChild()]]></category>
		<category><![CDATA[document.createElement()]]></category>
		<category><![CDATA[dynamically add a link]]></category>
		<category><![CDATA[javascript appending child to document]]></category>
		<category><![CDATA[Quick Answer]]></category>

		<guid isPermaLink="false">http://acsummer.wordpress.com/2007/12/29/quick-answer-dynamically-adding-a-hyperlink/</guid>
		<description><![CDATA[Javascript is capable of appending child elements to the DOM of a web page dynamically. This quick answer demonstrates one way to append a &#60;a&#62; element to a &#60;div&#62;. How to append a hyperlink to the DOM is relatively straight forward. First reference the parent node to add the new child element to Create a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=50&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Javascript is capable of appending child elements to the DOM of a web page dynamically. This quick answer demonstrates one way to append a &lt;a&gt; element to a &lt;div&gt;.</p>
<p>How to append a hyperlink to the DOM is relatively straight forward.</p>
<ol>
<li>First reference the parent node to add the new child element to</li>
<li>Create a new &lt;a&gt; element using document.createElement(&#8216;a&#8217;);</li>
<li>Set the &#8220;href&#8221; attribute value for the &lt;a&gt;</li>
<li>Create a new text node using document.createTextNode();</li>
<li>Append the text node to the &lt;a&gt; element</li>
<li>Finally, append the new &lt;a&gt; element to the parent node</li>
</ol>
<p><code> </code></p>
<pre style="background:#f8f8f8;">&lt;html&gt;
  &lt;head&gt;
    &lt;script language="Javascript"&gt;
      function appendLink()
      {
        //Get the element that we want to append to
         var divEl = document.getElementById('link_div');
        //Create the new &lt;a&gt;
        var aElem = document.createElement('a');
        aElem.href="http://www.google.com";
        //Create a text node to hold the text of the &lt;a&gt;
        var aElemTN = document.createTextNode('link to Google.com');
        //Append the &lt;a&gt; text node to the &lt;a&gt; element
        aElem.appendChild(aElemTN);
        //Append the new link to the existing &lt;div&gt;
        divEl.appendChild(aElem);
      }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;input type="button" value="Add Link" onClick="appendLink();"&gt;
    &lt;div id="link_div"&gt;&lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre>
<p>Web Browser Output of code before button is clicked:</p>
<p><img src="http://acsummer.files.wordpress.com/2007/12/quick-answer-add-link-001.png?w=450" alt="Dynamically Adding a Hyperlink 001" border="0" /></p>
<p>Web Browser Output after button is clicked:<br />
<img src="http://acsummer.files.wordpress.com/2007/12/quick-answer-add-link-002.png?w=450" alt="Dynamically Adding a Hyperlink 002" border="0" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/acsummer.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/acsummer.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/acsummer.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/acsummer.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/acsummer.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/acsummer.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/acsummer.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/acsummer.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/acsummer.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/acsummer.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/acsummer.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/acsummer.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/acsummer.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/acsummer.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/acsummer.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/acsummer.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=acsummer.wordpress.com&amp;blog=1243120&amp;post=50&amp;subd=acsummer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://acsummer.wordpress.com/2007/12/29/quick-answer-dynamically-adding-a-hyperlink/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7df9a6c92817386f8795585c01af312?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">acsummer</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2007/12/quick-answer-add-link-001.png" medium="image">
			<media:title type="html">Dynamically Adding a Hyperlink 001</media:title>
		</media:content>

		<media:content url="http://acsummer.files.wordpress.com/2007/12/quick-answer-add-link-002.png" medium="image">
			<media:title type="html">Dynamically Adding a Hyperlink 002</media:title>
		</media:content>
	</item>
	</channel>
</rss>
