<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SuperWebDeveloper.com &#187; Web Development</title>
	<atom:link href="http://www.superwebdeveloper.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.superwebdeveloper.com</link>
	<description>code, design, concepts, ecommerce, media</description>
	<lastBuildDate>Tue, 03 May 2011 04:41:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Wordcamp Vancouver 2011</title>
		<link>http://www.superwebdeveloper.com/2011/01/17/wordcamp-vancouver-2011/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2011/01/17/wordcamp-vancouver-2011/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 06:07:48 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[User Groups]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=583</guid>
		<description><![CDATA[WordCamp: Developers is an one-day technology conference by developers for developers. Held in Vancouver, BC, WordCamp: Developers is slated to take place as part of the Vancouver Open Source Week on May 5, 2011. The conference will feature 2 tracks, one targeting WordPress UX topics and issues, and the other targeting strictly development issues. The [...]]]></description>
			<content:encoded><![CDATA[<p><a title="wordcamp" href="http://wordcampdevelopers.com/" target="_blank">WordCamp: Developers</a> is an one-day technology conference by developers  for developers. Held in Vancouver, BC, WordCamp: Developers is slated  to take place as part of the Vancouver Open Source Week on May 5, 2011.</p>
<p>The conference will feature 2 tracks, one targeting WordPress UX  topics and issues, and the other targeting strictly development issues.  The day will also be host to a WordPress Un-Conference where  participants are encouraged to pitch talks and join in discussion.</p>
<p>The conference is open to all WordPress Developers and Designers  interested in learning about practical, applied WordPress development by  industry thought leaders and local WordPress practitioners.</p>
<p><a href="http://wordcampdevelopers.com/" target="_blank">WordCamp:Developers is part of the Vancouver Open Source Week.</a></p>
<p>We hope to see you there!</p>
<h2><a title="wordcamp" href="http://wordcampdevelopers.com/" target="_blank">http://wordcampdevelopers.com/</a></h2>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">http://wordcampdevelopers.com/</div>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2011/01/17/wordcamp-vancouver-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreams and Nightmares of Web Hosting Co-Location Centers</title>
		<link>http://www.superwebdeveloper.com/2010/09/27/dreams-and-nightmares-of-web-hosting-co-location-centers/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2010/09/27/dreams-and-nightmares-of-web-hosting-co-location-centers/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 22:56:52 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=560</guid>
		<description><![CDATA[I have seen some front page posts recently on that site, Reddit.com, of the ugly and the beautiful in server collocation facilities.  Here we see the expressions of genius and a cluttered mind. First the ugly: Now the Beautiful: Here are my photos, taken in an empty colo facility, just sitting there, waiting for a [...]]]></description>
			<content:encoded><![CDATA[<p>I have seen some front page posts recently on that site, Reddit.com, of the ugly and the beautiful in server collocation facilities.  Here we see the expressions of genius and a cluttered mind.</p>
<h2>First the ugly:</h2>
<p><a href="http://www.superwebdeveloper.com/wp-content/uploads/2R3p7.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-large wp-image-558" title="Scary Colocation facility" src="http://www.superwebdeveloper.com/wp-content/uploads/2R3p7-256x1024.jpg" alt="Scary Colocation facility" width="256" height="1024" /></a></p>
<h2>Now the Beautiful:</h2>
<div id="attachment_559" class="wp-caption aligncenter" style="width: 483px"><a href="http://www.superwebdeveloper.com/wp-content/uploads/D3E8M.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="size-large wp-image-559" title="Beautiful Colocation Facility" src="http://www.superwebdeveloper.com/wp-content/uploads/D3E8M-473x1024.jpg" alt="Beautiful Colocation Facility" width="473" height="1024" /></a><p class="wp-caption-text"> </p></div>
<h2>Here are my photos, taken in an empty colo facility, just sitting there, waiting for a reason to go to work. The collocation facility was built, and then never used:</h2>
<table border="0" cellspacing="2" cellpadding="2" align="center">
<tbody>
<tr>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1432.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-557" title="Server Rack" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1432-240x300.jpg" alt="Server Rack" width="240" height="300" /></a></td>
<td style="text-align: center;"><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1430.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-556" title="Power Supply for web server" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1430-240x300.jpg" alt="Power Supply for web server" width="240" height="300" /></a></td>
</tr>
<tr>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1421.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-550" title="Main Floor space for racks " src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1421-240x300.jpg" alt="Main Floor space for racks" width="240" height="300" /></a></td>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1417.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-547" title="Power Supply and Battery Banks" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1417-240x300.jpg" alt="Power Supply and Battery Banks" width="240" height="300" /></a></td>
</tr>
<tr>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1422.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-551" title="Power Supply Terminals for building" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1422-240x300.jpg" alt="Power Supply Terminals for building" width="240" height="300" /></a></td>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1425.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-554" title="Fiber connection" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1425-240x300.jpg" alt="Fiber connection" width="240" height="300" /></a></td>
</tr>
<tr>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1424.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-553" title="Fiber Optic Terminal Box" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1424-240x300.jpg" alt="Fiber Optic Terminal Box" width="240" height="300" /></a></td>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1423.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-552" title="Battery Bank" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1423-240x300.jpg" alt="Battery Bank" width="240" height="300" /></a></td>
</tr>
<tr>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1421.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-549" title="Power panels and Battery Supply" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1419-240x300.jpg" alt="Power panels and Battery Supply" width="240" height="300" /></a></td>
<td><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1418.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-548" title="Ground floor area for server racks" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1418-240x300.jpg" alt="Ground floor area for server racks" width="240" height="300" /></a></td>
</tr>
<tr>
<td colspan="2"><a href="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1417.jpg#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-547" title="Power Supply and Battery Banks" src="http://www.superwebdeveloper.com/wp-content/uploads/25-11-09_1417-240x300.jpg" alt="Power Supply and Battery Banks" width="240" height="300" /></a></td>
</tr>
</tbody>
</table>
<p>This location is in a Canadian town, originally built by 360 Networks, which built a number of these buildings, built to identical spec, to service its fiber optic trunk line.  360 is long gone and the property was part of an assets liquidation deal. The photos are from about a year ago, and I dont know what happened to the property. But what you are looking at is a beautiful dream job, with a super redundant clean power system, with a truck sized diesel gen set to feed the batteries. And its right beside a railway track, so you could even roll up a diesel car beside the generator for long term supply. Naturally, all the power is routed through the battery bank, the facility has air cleaning and conditioning, cooling, and the location can be cooled by ambient air 8 months of the year. It has a secure entry system, high quality trunk line, pure copper and silver components in the power system; the bank of batteries alone must be worth over a million dollars.</p>
<h2>The collocation facility was built, and then never used&#8230;</h2>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2010/09/27/dreams-and-nightmares-of-web-hosting-co-location-centers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Global TV Report Misleads about WordPress and Web Security</title>
		<link>http://www.superwebdeveloper.com/2010/09/08/global-tv-report-misleads-about-wordpress-and-web-security/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2010/09/08/global-tv-report-misleads-about-wordpress-and-web-security/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 19:33:59 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[editorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=473</guid>
		<description><![CDATA[Re: &#8220;Flashy Website, Cheap Backend&#8221; http://www.globaltvbc.com/video/index.html?releasePID=F2c99hC0V1kc4WrGZu0sZguKx_83_IuT Editors, As a web developer experienced with WordPress, I know you have made errors in your understanding of the software. If the mayor has really broken some law with regards to the bidding process, then that is another matter. It is however hard for people to find good, skilled [...]]]></description>
			<content:encoded><![CDATA[<p>Re: &#8220;Flashy Website, Cheap Backend&#8221;<br />
<a href=" http://www.globaltvbc.com/video/index.html?releasePID=F2c99hC0V1kc4WrGZu0sZguKx_83_IuT#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" target="_blank"></p>
<p>http://www.globaltvbc.com/video/index.html?releasePID=F2c99hC0V1kc4WrGZu0sZguKx_83_IuT</a></p>
<p>Editors,<br />
As a web developer experienced with WordPress, I know you have made errors in your understanding of the software. If the mayor has really broken some law with regards to the bidding process, then that is another matter. It is however hard for people to find good, skilled web developers and themers, on a per project basis, when a quality website is needed.</p>
<p>A quick consultation of the home page of <a href="http://wordpress.org" target="_blank">http://wordpress.org</a> would show you that this free open source software is used by the <a href="http://wordpress.org/showcase/tag/new-york-times/" target="_blank">New York Times</a>, <a href="http://wordpress.org/showcase/webmonkey/" target="_blank">Wired.com</a>, and many many other individuals and corporations much larger than Global TV. Suffice to say if it is a good choice for NYT then it is probably a good software choice for Mayor Robertson. Actually it is not even so much about the software, but the developers who take steps to &#8216;harden&#8217; the software from security intrusions during the development and deployment process.</p>
<blockquote>
<h2>It is a shame that a member of the press such as Global TV does not  understand the parallels between freedom of speech and of the press, and  the openness of the Free Open Source Software community, and how both  are so effective in exposing lies and moving towards the truth.</h2>
</blockquote>
<p>Free Open Source Software such as WordPress is <strong>free as in speech, not free as in beer</strong>. Indeed, WordPress is just one software package among thousands of others that the Internet and the World Wide Web rest upon. But I realise by the comments in your report that you are unaware of the massive worldwide movement to create and distribute Free Open Source Software. While the cost of the software may be a factor for the contractors, as it is in every other business, it is the openness that is really important. The openness of the software and the community allow for the exposure of security problems, and then expedites their repair to the entire community of WordPress users. It also allows for such things as the enforcement of high technical standards, and the independent development and release of thousands of additional software add-ons to boost and customise software functionality.</p>
<p>Shawn Moore of <a href="http://thinkprofits.com" target="_blank">thinkprofits.com</a> claims in the news piece that he can quickly hack and steal information submitted through the contact form on Gregor Robertson&#8217;s website. Instead of just claiming this, he should prove it. I say this because security breaches in general take more time to manifest themselves than Moore implied when he said &#8216;quickly&#8217;. And if Moore does know of a current security exploit WordPress, he should do the right thing and contribute the exploit to the WordPress development community, or to the head company behind WordPress, <a href="http://automattic.com/" target="_blank">Automaticc</a>, so that the patch may be written and released.</p>
<p>It is a shame that a member of the press such as Global TV does not understand the parallels between freedom of speech and of the press, and the openness of the Free Open Source Software community, and how both are so effective in exposing lies and moving towards the truth. You should be really educating your viewers on the benefits of Free Open Source Software instead of insinuating that WordPress is merely a &#8216;cheap&#8217; alternative.</p>
<p>As I said in the beginning, I dont know if the mayor broke any laws or not. But please understand that good developers may be harder to come across than you think. Neither are they cheap. Please also educate yourselves on the benefits of Free Open Source software because it is in use widely and in many roles across the Internet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2010/09/08/global-tv-report-misleads-about-wordpress-and-web-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tax Rates in Canada</title>
		<link>http://www.superwebdeveloper.com/2010/08/13/tax-rates-in-canada/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2010/08/13/tax-rates-in-canada/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 08:14:40 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[tax]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=470</guid>
		<description><![CDATA[The HST is now law here, at least for the present time. For selling things on the web, and setting up your tax rates, to be current with July 1 2010 here is what needs to be set up to tax products in shopping carts: GST Only: 5% Alberta Quebec Manitoba Saskatchewan Prince Edward Island [...]]]></description>
			<content:encoded><![CDATA[<p>The HST is now law here, at least for the present time. For selling things on the web, and setting up your tax rates, to be current with July 1 2010 here is what needs to be set up to tax products in shopping carts:</p>
<ul>
<li> GST Only: 5%
<ul>
<li>Alberta</li>
<li>Quebec</li>
<li>Manitoba</li>
<li>Saskatchewan</li>
<li>Prince Edward Island</li>
<li>Nunavut</li>
<li>Yukon Territories</li>
<li>Northwest Territories</li>
</ul>
</li>
<li>HST 12%
<ul>
<li>British Columbia</li>
</ul>
</li>
<li>HST 13%
<ul>
<li>Ontario</li>
<li>New Brunswick</li>
<li>Newfoundland</li>
</ul>
</li>
<li>HST 15%
<ul>
<li>Nova Scotia</li>
</ul>
</li>
</ul>
<p>From what I have learned, you charge the buyer the tax rate relevant to their local. You may be in BC but you charge them HST 15% because they live in Nova Scotia.</p>
<p>Disclaimer:  I am not a fan of taxes. Just trying to help fellow developers out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2010/08/13/tax-rates-in-canada/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presenting GourmetPregnancy.com</title>
		<link>http://www.superwebdeveloper.com/2010/03/18/presenting-gourmetpregnancy-com/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2010/03/18/presenting-gourmetpregnancy-com/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 21:47:34 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=373</guid>
		<description><![CDATA[I recently launched a new project, GourmetPregnancy.com. Its a website in support of the new book &#8216;The Gourmet Pregnancy&#8217;, by Leah Douglas. The book features sumptuous and creative recipes for foodie expecting moms. This project had been in the works since January, and after seeing an initial layout provided by Mike Douglas, I went to [...]]]></description>
			<content:encoded><![CDATA[<p>I recently launched a new project, GourmetPregnancy.com. Its a website in support of the new book &#8216;The Gourmet Pregnancy&#8217;, by Leah Douglas. The book features sumptuous and creative recipes for foodie expecting moms. This project had been in the works since January, and after seeing an initial layout provided by Mike Douglas, I went to work adapting the layout to the theme, enabled plugins, and configuring things in a subdomain.</p>
<p style="text-align: center;">
<div id="attachment_374" class="wp-caption aligncenter" style="width: 483px"><a href="http://gourmetpregnancy.com" target="_blank"><img class="size-full wp-image-374    " title="GourmetPregnancy.com website" src="http://www.superwebdeveloper.com/wp-content/uploads/screenshotgourp.jpg" alt="GourmetPregnancy.com website" width="473" height="382" /></a><p class="wp-caption-text">GourmetPregnancy.com website</p></div>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		A:link { so-language: zxx } -->Notes for development</p>
<p>When creating a WordPress site, I now generally attempt to pull in all the resources I can in one go, as I find this saves a large amount of time. <a title="wordpress installation script" href="http://github.com/superwebdeveloper/wordpress-install/tree/nosvn" target="_blank">I have a small project in github</a> for automated installation of WordPress, which I would like to keep telling people about. Grabbing all the resources for a project is a very regular, standard task, and this process can be automated. There are other projects like it for other applications, like <a title="drush" href="http://drupal.org/project/drush" target="_blank">Drush for Drupal</a>.</p>
<p>When developers get into new packages, they start off by downloading zips and tarballs. A little more skill and confidence and people start pulling down the software from the SVN or CVS repository. <a title="wordpress installation script" href="http://github.com/superwebdeveloper/wordpress-install/tree/nosvn" target="_blank">My github project is a shell script with the commands captured for obtaining the WordPress core</a>, as well as a host of the common plugins and themes that I am going to use. Its a very simple idea, but one that is a huge time saver when you use it. It takes about 2.5 minutes for the script to run on my local Ubuntu desktop, in the shell. Its not perfect, but it is just meant to be a massive time saver over the tedium of grabbing the source, and then browsing through plugins and themes. A script like this can save untold hours.</p>
<p>So after that the site was a matter of layout and enabling plugins, creating a copy of the arras theme to hack on, configuring the cforms contact form page, and a host of layout fixes, for which <a title="firebug" href="http://getfirebug.com/" target="_blank">Joe Hewitt&#8217;s Firebug plugin for Firefox</a> is invaluable. Even so, there are multiple style sheets in the system and it was found lower down in the details that there was 1 or 2 conflicts. The <a title="arras theme" href="http://wordpress.org/extend/themes/arras-theme" target="_blank">Arras theme</a> is more of a &#8216;feature&#8217; theme as opposed to a &#8216;news&#8217; theme, but still we spruced it up by removing columns and expanding the main area. Incidentally, the cformsII plugin required a complete rebuilding when the site was launched in the root domain. It didnt like me hacking the serialized array directly in the db.</p>
<blockquote>
<p style="padding-left: 30px;">You replace the instance of &#8216;the_excerpt();&#8217; with &#8216;the_content();&#8217; to get your full posts for the category. Search engines and users will thank you for it.</p>
</blockquote>
<p>The home page in the theme has a Jquery slide show and dynamic feature boxes. There is always a question of the tools you have to do the presentation and we decided to swap out the slide show for a flash object, and replace the lower boxes with static content, since they will never change. The theme does provide for page &amp; post options in in the slide show and sections on the page, and the options within the theme and plugins would have an influence over the content design, meaning what content gets defined as pages and posts. There is the time factor to consider in straightening out all the little issues between our layout and their theme, so after some investigation the static chunks and flash object was how we did it.</p>
<p>The header navigation took some time to master, but it came out looking nicely. The multi-level navigation plugin was in the end, not needed.</p>
<p>The book page has a light box plugin working, which works quite well.</p>
<p>The site has two post categories, News &amp; Reviews and Recipes. The one important change for posts was a simple one line change to the template. It seems that in WordPress themes the post category listing displays only an excerpt by default. This doesn&#8217;t do much for usability or page ranking. Home pages, as I have on other news &amp; blog themed WordPress sites, show the latest posts from all categories. You would expect that navigating to a given category should present like the home page, but only for that given category. That is not the case, but the fix is a one liner. You replace the instance of &#8216;the_excerpt();&#8217;  with &#8216;the_content();&#8217; to get your full posts for the category. Search engines and users will thank you for it.</p>
<p style="text-align: left;">
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2010/03/18/presenting-gourmetpregnancy-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Incredible Rate of Diminishing Returns of Fixing Software Bugs</title>
		<link>http://www.superwebdeveloper.com/2009/11/25/the-incredible-rate-of-diminishing-returns-of-fixing-software-bugs/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2009/11/25/the-incredible-rate-of-diminishing-returns-of-fixing-software-bugs/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 20:41:25 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[thephpcc]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=287</guid>
		<description><![CDATA[While I was at Codeworks DC in September 2009, there was a particular slide during the talk by Stefan Priebsh, in his talk on OOP and Design Patterns that stood out more than all the others. It&#8217;s a slide that describes the relative cost of of a bug fix at different times in the life [...]]]></description>
			<content:encoded><![CDATA[<p>While I was at Codeworks DC in September 2009, there was a particular slide during the talk by Stefan Priebsh, in his talk on OOP and Design Patterns that stood out more than all the others. It&#8217;s a slide that describes the relative cost of of a bug fix at different times in the life cycle of a software project. At first, the cost of fixing a bug at the requirements stage is nominal, when everything is on the drawing board. But as the software moves along in its life cycle the cost of fixing a bug increases radically. We start at 1 times when we are at the initial development stage when a bug is no more than a change in notion. But at the design stage, the relative cost is 5 times what it was compared to the requirements stage, and then ten times what it was when it becomes code and on this goes until it the relative cost of a bug fix is 150 times what it was originally.  Conversely, the graphic indicates that the cost of rewriting is far less than attempting to maintain broken software. Starting right, or starting over right, is by far preferable to the alternative.</p>
<div id="attachment_286" class="wp-caption aligncenter" style="width: 546px"><img class="size-full wp-image-286" title="Relative Cost Of A Software Bug Fix" src="http://www.superwebdeveloper.com/wp-content/uploads/relativecostbugfix.png" alt="Relative Cost Of A Software Bug Fix" width="536" height="480" /><p class="wp-caption-text">Relative Cost Of A Software Bug Fix </p></div>
<p>Slide credit: Barry Boehm, “Equity Keynote Address” March 19, 2007.</p>
<p>This chart is intended for developers, to decide how best to spend ones time.  Ever wonder why, as a developer, fixing bugs is such a pain and a kludge? There is something not simply tough about fixing bugs, there is something fundamentally wrong about putting any effort at all into repairing them. But the chart is also a message to the paying client, the person whose dime it is on. A client may be only thinking in the short term to make the software work, but it is the most expensive and unproductive path to the realization of goals.</p>
<p>The effort to fix bugs is great and the rewards are minimal. Frustrations are high, satisfactions are low. The website suffers from some sort of performance penalty, users are inconvenienced. Bugs must be dealt with with some amount of procedural overhead no matter what, and when the bug is fixed and submitted, very little was ever really accomplished. It is really far better to think of a better solution to all your problems together rather than to continue fixing things one at at time. It will cost the customer less and they will get more. So when bugs become a staple of the work load, its time to persuade the client to accept a rewrite.</p>
<blockquote>
<h1>&#8230;with the software in production, fixing bugs is akin to repairing a car while it is driving down the road, long after it has left the drawing board, the assembly line, and the dealer lot. Its as expensive to do as it can possibly be.</h1>
</blockquote>
<p>Developers still have a great deal in common with the clients they perform work for. They charge money for their work so they think in terms of the cost in terms of labor time (actually, developers also think this way when they work on their own software). The question every developer asks is, “What is the simplest, easiest, and fastest way to get something done?” The answer could be open to interpretation, but that is because the long view must be taken into consideration, and that is why software makes use of functions, templates, classes, objects, and design patterns. The work is needed now, but  how will it be possible to understand the software in a few months time when noone is mentally fresh? How do I share my ideas with other people? How do I take the long view into account?</p>
<p>Despite the love a client may have for their own project, nobody is interested in working on the same software forever. After all, software developers are creative people who really want to expand their skills and take all that they have learned and apply it to the next project, instead of keeping something half dead on life support.</p>
<p>I enjoy attending talks from the best people in the world in my business, because they are very good at exposing the importance of planning and organizing the overall picture, and are very knowledgeable in all the concepts that make projects produce a top quality result in an efficient manner. They also point out the simple mistakes people make that cost them so much. When we are at the far right of the graph, with the software in production, fixing bugs is akin to repairing a car while it is driving down the road, long after it has left the drawing board, the assembly line, and the dealer lot. Its as expensive to do as it can possibly be.</p>
<p>Developers should try to understand the message of this graphic before going further fixing bugs. If you are put in a position fixing bugs, it is time to change the way you work, because you are the one  bearing the cost in terms of your own time performing the least valuable, most expensive, and least meaningful work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2009/11/25/the-incredible-rate-of-diminishing-returns-of-fixing-software-bugs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation Script Using WordPress Subversion Repositories</title>
		<link>http://www.superwebdeveloper.com/2009/11/07/installation-script-using-wordpress-subversion-repositories/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2009/11/07/installation-script-using-wordpress-subversion-repositories/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 06:07:19 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=268</guid>
		<description><![CDATA[I&#8217;d like to take the example of svn externals from my previous post a bit further. I created a bash script that captures a group of commands that one would need to deploy a vanilla WordPress website with a cherry picking of plugins and themes. This script is a big-ass time saver. It&#8217;s especially useful [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d like to take the example of svn externals from my previous post a bit further. I created a bash script that captures a group of commands that one would need to deploy a vanilla WordPress website with a cherry picking of plugins and themes. <strong>This script is a big-ass time saver. </strong>It&#8217;s especially useful for deployment of websites based on a package like WordPress or Drupal, that host publicly available subversion repositories. I tested it recently and made two websites spending two hours on each site, four hours total.</p>
<p>Web developers as they learn start by downloading packages in zip and tar.gz archives which is fine. A pro technique is to pull in the resource via SubVersion (svn). Svn provides additional features such as svn externals and svn hooks. Svn externals allows for the pulling in of external resources into a defined project in a svn repository. Svn hooks is for additional labor saving scripting that allows for the automation of repeated tasks such as a script that can pass along data from commit messages into other resources in the project such as the bug tracker. Learning these tricks allows for labor savings at every step in the production cycle. We can take these practices to the next level with capturing the commands in a bash script and then organise all the features of a website in a deployment script, something that is done all the time at software majors.</p>
<blockquote>
<h2>This script is a big-ass time saver.</h2>
</blockquote>
<p>I took the time to sort this out recently because I had some web development requests from people who have simple websites that could be converted to WordPress easily enough, but I wasn&#8217;t interested in going fishing for plugins and themes twice, and again when the next people come along needing the same thing. The job of a software developer should be to automate processes. I say often that the credo of developers is not to work for a living, but to eliminate work. But this idea is not always employed by developers in all the places it could, and its sometimes even a harder to get a client on board to make full use of methods and procedures that automate tasks and eliminate work.</p>
<blockquote>
<h2>&#8230;the credo of (software) developers is not to work for a living, but to eliminate work.</h2>
</blockquote>
<p>Lets at least cover the benefits in point form:</p>
<ul>
<li> The script takes a couple of minutes and you save hours.</li>
<li>You dont repeat the labor, but you can repeat the use of the script, deploying anywhere else.</li>
<li>All your stuff is there at the beginning. Useful for planning, development, and policy across teams.</li>
<li>You are organised, and you can develop variations. Svn export may be good enough for your needs.</li>
</ul>
<p>In pseudo code, here is what your script will do:</p>
<ul>
<li> Set up your repository.</li>
<li>Make your directory structure for your project.</li>
<li>Check out your repository.</li>
<li>Run procedures for svn externals for core WordPress.</li>
<li>Run procedures for svn externals for plugins, iterating through data in an external file resource.</li>
<li>Run procedures for svn externals for themes, iterating through data in an external file resource.</li>
<li>Grab additional resources in an array, iterate through them using wget command, extract them.</li>
<li>Cleanup.</li>
<li>Commit message.</li>
<li>&#8230; anything else you can think to do.</li>
</ul>
<p>The bash file, save as getallwpsvn.sh:</p>
<blockquote>
<pre>#!/bin/bash
# run this script with chmod 755 permissions.

workPath=$(pwd)

rm -rf filerepository repository www *.zip # this line cleans dir for testing, comment out when done

svnadmin create repository

mkdir -p filerepository/{branches,tags,trunk/{html,db,cron,scripts,themes,plugins,project,selenium}}
# got anything to import into those directories under trunk?
# import into the directories under trunk now
# before the next step
svn import filerepository file://$workPath/repository -m "initial import using getallwpsvn.sh script"
rm -rf filerepository
svn checkout file://$workPath/repository/trunk www
cd www
svn rm html
svn commit -m "rm html temporarily for clean propset"
svn propset svn:externals 'html http://core.svn.wordpress.org/trunk/' .
svn up
cd html/wp-content/
# get plugins from repository http://svn.wp-plugins.org/
# plugins listed in svn.plugins.externals
svn propset svn:externals -F ../../../svn.plugins.externals plugins/
#svn commit "plugins propset" # no commit if no local repository
svn up
# themes repository: http://svn.wp-themes.org/
# themes repository is a bit of a ghost town, none grabbed here
# browse the site and get the zip
# themes listed in svn.themes.externals file, if there are any
svn propset svn:externals -F svn.themes.externals plugins/
svn up

cd themes
# load up on themes
#more human readable format for array

THEMESITES[0]=http://dev.digitalnature.ro/fusion/fusion-wordpress.zip
THEMESITES[1]=http://ericulous.com/?load=googlechrome.zip
THEMESITES[2]=http://ericulous.com/?load=internetcenter.zip
THEMESITES[3]=http://ericulous.com/?load=redbusiness.zip
THEMESITES[4]=http://wordpress.org/extend/themes/download/elegant-box.4.1.1.zip
THEMESITES[5]=http://wordpress.org/extend/themes/download/thirtyseventyeight.4.0.zip
THEMESITES[6]=http://wordpress.org/extend/themes/download/thirtyseventyeight.4.0.zip
THEMESITES[7]=http://wordpress.org/extend/themes/download/constructor.0.6.4.zip
THEMESITES[8]=http://wordpress.org/extend/themes/download/jq.2.4.zip
THEMESITES[9]=http://wordpress.org/extend/themes/download/ahimsa.3.0.zip
THEMESITES[10]=http://wordpress.org/extend/themes/download/retromania.1.3.zip
THEMESITES[11]=http://wordpress.org/extend/themes/download/skinbu.1.0.3.zip
THEMESITES[12]=http://wordpress.org/extend/themes/download/mystique.1.16.zip
THEMESITES[13]=http://wordpress.org/extend/themes/download/lightword.1.9.3.zip
THEMESITES[14]=http://wordpress.org/extend/themes/download/monochrome.2.3.zip
THEMESITES[15]=http://wordpress.org/extend/themes/download/thematic.0.9.5.1.zip
THEMESITES[16]=http://wordpress.org/extend/themes/download/hybrid.0.6.1.zip
THEMESITES[17]=http://wordpress.org/extend/themes/download/new-york.1.0.1.zip
THEMESITES[18]=http://wordpress.org/extend/themes/download/f8-lite.1.3.zip
THEMESITES[19]=http://wordpress.org/extend/themes/download/simplex.1.3.1.zip
THEMESITES[20]=http://wordpress.org/extend/themes/download/cleanr.0.1.2.zip

for s in ${THEMESITES[@]}
do wget "$s"
done

FILES="*.zip"
for f in "$FILES"
do unzip "$f"
done

rm *.zip
rm *.zip.*
cd ../../../
svn commit -m "load in of plugins and themes complete"

cd $workPath
cp $workPath/www/html/wp-config-sample.php  $workPath/www/html/wp-config.php
chmod 777 $workPath/www/html/wp-config.php
chmod 777 $workPath/www/html/wp-content #temporarily, for cache
mkdir $workPath/www/html/wp-content/uploads &amp;&amp; chmod 777 $_
touch $workPath/www/html/.htaccess &amp;&amp; chmod 777 $_

# do any post processing, other importing now, and commit it if you did.</pre>
</blockquote>
<p>Set the file permission to chmod 755, and run it from the shell command line as in ./getallwpsvn.sh.</p>
<p>The file you save as svn.plugins.externals:</p>
<blockquote>
<pre>all-in-one-seo-pack http://svn.wp-plugins.org/all-in-one-seo-pack/trunk
advertising-manager http://svn.wp-plugins.org/advertising-manager/trunk
cforms http://svn.wp-plugins.org/cforms/trunk
google-sitemap-generator http://svn.wp-plugins.org/google-sitemap-generator/trunk
sociable http://svn.wp-plugins.org/sociable/trunk
stats  http://svn.wp-plugins.org/stats/trunk
ultimate-google-analytics http://svn.wp-plugins.org/ultimate-google-analytics/trunk
vipers-video-quicktags http://svn.wp-plugins.org/vipers-video-quicktags/trunk
wordbook http://svn.wp-plugins.org/wordbook/trunk
wp-flickr http://svn.wp-plugins.org/wp-flickr/trunk
wp-super-cache http://svn.wp-plugins.org/wp-super-cache/trunk</pre>
</blockquote>
<p>The svn.plugins.externals file is a name &#8211; resource listing, one per line, when you have more than one resource to define with svn externals.</p>
<p>Please note that you may not need all of this; comment whatever out you want. You dont need to create a local repository, that is only if you are doing team development, or perhaps custom development on themes and plugins. I found though that it was necessary with svn propset directives to create a top-level directory structure wherein is stored all the different directories. The point of this exercise is a pull-in of public resources in a step that you can repeat automatically over and over. It also need not be a very sophisticated script to get the benefits from it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2009/11/07/installation-script-using-wordpress-subversion-repositories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Power of svn externals</title>
		<link>http://www.superwebdeveloper.com/2009/10/17/the-power-of-svn-externals/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2009/10/17/the-power-of-svn-externals/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 06:11:02 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=258</guid>
		<description><![CDATA[I have a list of svn tricks over on a previous post, (my) Essential Cheat Sheet of Shell Commands. But I was listening to a very lengthy, and I mean really lengthy Zend podcast, over two hours in length: The ZendCon Sessions Episode 26: Best Practices of PHP Development, with Matthew Weier O&#8217;Phinney and Mike [...]]]></description>
			<content:encoded><![CDATA[<p>I have a list of svn tricks over on a previous post, (my) <a href="http://www.superwebdeveloper.com/2008/10/08/essential-cheat-sheet-of-shell-commands/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" target="_self">Essential Cheat Sheet of Shell Commands</a>. But I was listening to a very lengthy, and I mean really lengthy Zend podcast, over two hours in length: <a href="http://devzone.zend.com/article/9930-The-ZendCon-Sessions-Episode-26-Best-Practices-of-PHP-Development" target="_blank">The ZendCon Sessions Episode 26: Best Practices of PHP Development</a>, with Matthew Weier O&#8217;Phinney and Mike Naberezny. I learned a new trick about subversion I would like to share and note here for the future, <strong>svn externals</strong> .</p>
<p>I had of course heard of svn externals before but a little explanation really enlightened me. You can multiply your power as a developer with svn externals. Alongside your own project under svn control, you can add in other remote projects from remote svn repositories with the <strong>svn propset command</strong> and they will naturally remain current as you run updates on your own repository.</p>
<blockquote>
<h2>You can multiply your power as a developer with svn externals.</h2>
</blockquote>
<p>In the struggle for project housekeeping it can be a chore to keep libraries, plugins, middleware, and other goodies up to date. In general we as developers have a mindset about keeping a project managed by version control, but its an idea that I have seen stopping at the project in question. The project is under svn, the rest of the libraries are from static resources like tarballs. By just extending the power of version control just a little bit further, we have a big labor saver, and we are opened up to the great universe of software. Svn externals gives us mighty lever, because we then have the power to keep in step with all of the other bits and pieces that go along with a project.</p>
<p>Your main project is under version control, but your rich html editor, TinyMCE, is not. Well it can be. Lets use it as an example.</p>
<blockquote>
<pre>test$ mkdir tmc
test$ cd $_
test/tmc$ mkdir html
test/tmc$ mkdir project
test/tmc$ cd $_
test/tmc/project$ mkdir branches tags trunk
test/tmc/project$ cd -
/home/pbg/websites/test/tmc
test/tmc$ cd html/
test/tmc/html$ ls
test/tmc/html$ emacs index.php
test/tmc/html$ cd ../
test/tmc$ cp -rf html project/trunk/
test/tmc$ ls
html  project
test/tmc$ ls project/trunk/
html
test/tmc$ ls project/trunk/html/
index.php  tiny
test/tmc$ ls
html  project
test/tmc$ rm -rf html
test/tmc$ ls
project
test/tmc$ svnadmin create tmcrepository
test/tmc$ svn import project file:///home/pbg/websites/test/tmc/tmcrepository -m "initial import"
Adding         project/trunk
Adding         project/trunk/html
Adding         project/trunk/html/index.php
Adding         project/branches
Adding         project/tags
Committed revision 1.
test/tmc$ ls
project  tmcrepository
test/tmc$ svn checkout file:///home/pbg/websites/test/tmc/tmcrepository/trunk .
A    html
A    html/tiny
test/tmc$
/test/tmc/html$ svn propset svn:externals 'tinymce https://tinymce.svn.sourceforge.net/svnroot/tinymce/tinymce/trunk' .
/test/tmc/html$    svn commit -m "propset"
/test/tmc/html$    svn up
/test/tmc/html$</pre>
</blockquote>
<p>So that is how its done from bash with a vanilla website and one repository checked in for your pleasure. Tips to know include wrapping the directory and resource in quotes, don&#8217;t create the directory, specify it in propset and let svn create it for you. Go to a directory somewhere else on your system and test your checkout. In the example above the remote repository trunk is checked out. However, you are also able to <a href="http://blogs.gnome.org/johannes/2008/02/20/svnexternals-for-noobs/" target="_blank">check out specific branches or even specific revisions if </a>you want the bias more to stability over new features. You can also<a href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" target="_blank"> specify multiple remote repositories by creating a text file with directory and remote resource pairs</a> and point svn propset at that file. Be prepared to handle things that you flub up using svn propedit. Your repository is not broken, but you may have to know how to fix a thing or two that you didn&#8217;t do the first time. That is why doing a vanilla procedure like what is described above helps show what the right way is.</p>
<p>So Imagine having a repository somewhere with all the tools you like to work with as part of your own best practices, sitting there, in one place ready to go with one checkout. That whole kit and kaboodle becomes your blank slate from where to start from, but you are already miles ahead of the competition because you already have tabs on all the resources you are going to use in your project. Having it all on hand saves labor and helps foster better practices as a developer.</p>
<ul>
<li>Zend Framework, CakePHP, Symphony, PEAR or whatever middleware turns your crank</li>
<li>PHP Unit, or SimpleUnit, or some other unit testing suite</li>
<li>WordPress, Drupal, Joomla, or of course any of the related themes and plugins</li>
<li>Tiny MCE</li>
<li>Jquery, Scriptaculous, Dojo, whatever floats your boat with javascript</li>
<li>XDebug,</li>
<li>phpmyadmin</li>
<li>Integration testing software like Selenium or Molybdenum</li>
<li>bloody well anything from sourceForge, or anything else for that matter public and under svn control.</li>
</ul>
<p>Links for this blog post:</p>
<p><a href="http://www.superwebdeveloper.com/2008/10/08/essential-cheat-sheet-of-shell-commands/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" target="_blank">http://www.superwebdeveloper.com/2008/10/08/essential-cheat-sheet-of-shell-commands/</a></p>
<p><a href="http://devzone.zend.com/article/9930-The-ZendCon-Sessions-Episode-26-Best-Practices-of-PHP-Development" target="_blank">http://devzone.zend.com/article/9930-The-ZendCon-Sessions-Episode-26-Best-Practices-of-PHP-Development</a></p>
<p><a href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" target="_blank">http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/</a></p>
<p><a href="http://blogs.gnome.org/johannes/2008/02/20/svnexternals-for-noobs/" target="_blank">http://blogs.gnome.org/johannes/2008/02/20/svnexternals-for-noobs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2009/10/17/the-power-of-svn-externals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8.4 Upgrade</title>
		<link>http://www.superwebdeveloper.com/2009/09/06/wordpress-2-8-4-upgrade/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2009/09/06/wordpress-2-8-4-upgrade/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 02:04:53 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=137</guid>
		<description><![CDATA[SuperWebDeveloper.com has now been upgraded to WordPress 2.8.4. The upgrade process is pretty smooth, until the plugins. That part requires some care and attention.]]></description>
			<content:encoded><![CDATA[<p>SuperWebDeveloper.com has now been upgraded to WordPress 2.8.4. The upgrade process is pretty smooth, until the plugins. That part requires some care and attention.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2009/09/06/wordpress-2-8-4-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comedy Central, Fix The Mirror Redirection for Canadian Redditors Already</title>
		<link>http://www.superwebdeveloper.com/2009/03/05/comedy-central-fix-the-mirror-redirection-for-canadian-redditors-already/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2009/03/05/comedy-central-fix-the-mirror-redirection-for-canadian-redditors-already/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 07:32:17 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Daily Show]]></category>
		<category><![CDATA[fuuuuuu]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[reddit]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=105</guid>
		<description><![CDATA[Yeah, so when I want to just have a break and watch the latest Daily Show posted on Reddit, Comedy Central dumps me off to fend for myself like some kind of bum. Ok maybe Im Canadian, but for the level of popularity of this link, this is damn well unforgiveable. Lets see, we have [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_106" class="wp-caption alignnone" style="width: 645px"><a href="http://www.superwebdeveloper.com/wp-content/uploads/fuuuuuu.gif#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="size-full wp-image-106" title="fuuuuuu" src="http://www.superwebdeveloper.com/wp-content/uploads/fuuuuuu.gif" alt="When I want to see the latest clip from the Daily Show, I am abandoned by Comedy Central. This is fixable!" width="635" height="574" /></a><p class="wp-caption-text">When I want to see the latest clip from the Daily Show, I am abandoned by Comedy Central. This is fixable!</p></div>
<p>Yeah, so when I want to just have a break and watch the latest Daily Show posted on Reddit, Comedy Central dumps me off to fend for myself like some kind of bum. Ok maybe Im Canadian, but for the level of popularity of this link, this is damn well unforgiveable.</p>
<p>Lets see, we have a url with a query string:</p>
<p><a title="episode id has a value we can pass along" href="http://www.thedailyshow.com/full-episodes/index.jhtml?episodeId=220250" target="_blank">http://www.thedailyshow.com/full-episodes/index.jhtml?episodeId=220250</a></p>
<p>But somebody at Comedy Central, probably someone with no sense of humor at all, cant figure out how to pass <strong>episodeId=220250 </strong>to the canadian mirror. It takes a little more programming, but not a lot more. Something like this is easy to figure out, because there is a unique identifier there to work with. From there on in, we would just be passed along to the mirror and we would be happy and laughing and we wouldnt be <strong>left on a dead page</strong>, screaming <strong>FFFFFFFFFFFFFUUUUUUUUUUUUUUUUUU</strong>- &#8230;&#8230;.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><strong>Holy Crap here is an update!</strong></p>
<p>On <a href="http://digg.com/television/Colbert_and_Stewart_s_Best_Glenn_Beck_Moments?" target="_blank">digg recently</a>, someone posted the fix for this one!</p>
<p>You are a <a href="http://www.mozilla.com/en-US/firefox" target="_blank">Firefox user</a>, yes? I dont need to tell you now do I? Good. Go install the following Firefox plugin:</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/967" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/967</a></p>
<p>1) In Firefox, Go to tools-&gt;modify headers<br />
2) From the drop down box on the left select add<br />
3) Then enter: &#8220;X-Forwarded-For&#8221; in the first input box without the quotation marks<br />
4) Enter: &#8220;12.13.14.15&#8243; in the second input box without the quotation marks<br />
5) Leave the last input box empty, and save the filter, and enable it<br />
6) Click the &#8216;Configuration&#8217; tab on the right then proceed to check the &#8216;always on&#8217; button.<br />
Close the Modify Headers box and it should work.</p>
<p>Tested on Ubuntu. It worky.</p>
<p>All credit goes to<a href="http://digg.com/users/casspa" target="_blank"> Digg user casspa</a>.</p>
<p>ah, no more screamin!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2009/03/05/comedy-central-fix-the-mirror-redirection-for-canadian-redditors-already/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better to Avoid Variable Variables</title>
		<link>http://www.superwebdeveloper.com/2009/01/22/better-to-avoid-variable-variables/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2009/01/22/better-to-avoid-variable-variables/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 23:07:14 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=95</guid>
		<description><![CDATA[A variable can be a variable, did you know? Its something you may have learned in introductory PHP, like on p.32 of my copy of the Zend PHP Certification Study Guide. But while knowing data types is part of the job, its not always how you should code! Here is an example of something I [...]]]></description>
			<content:encoded><![CDATA[<p>A variable can be a variable, did you know? Its something you may have learned in introductory PHP, like on p.32 of my copy of the <a title="books on php" href="http://www.phparch.com/c/phpa/books">Zend PHP Certification Study Guide.</a> But while knowing data types is part of the job, its not always how you should code!</p>
<p>Here is an example of something I saw recently. Names have been changed to protect the innocent.</p>
<p>&lt;?php<br />
foreach ($fieldName as $field=&gt;$type) {<br />
$UserObject-&gt;setValueInDB($field, $$field);<br />
}<br />
?&gt;</p>
<p>This is from a form submission script. There are a couple of transgressions I can think of, not least of all the reliance on <a title="register_globals" href="http://ca.php.net/register_globals">the register_globals directive</a> which is now off by default, and soon to be eliminated from a future release of PHP.</p>
<p>The variable variable part here is $$field, basically, what has been posted. The $fieldName value is a list of fields grabbed from the table, so you don&#8217;t trust $_POST. But what is the point in trusting the scalar equivalent of your posted value? You are getting farther away from certainty, not closer. A $_POST submission from an attacker could wipe out data because their $_POST array doesn&#8217;t have any keys that your table has. As well, if your $_POST array on your own page doesn&#8217;t have a $key=&gt;$value that is also in $field=&gt;type, well that value is going to get wiped out. In the case of a user profile edit page, a form page probably wont have all the fields that are posted. Especially if a developer doesn&#8217;t consider using table joins elsewhere.</p>
<p>One of the cardinal rules of programming is never trust user input. And I consider losing user data to be a deadly sin. But setting up a situation where you risk losing data in a field because of one additional field in the table for the user is downright dangerous.</p>
<p>One of the early-ish contributors to PHP, by virtue of being a C programmer, was no doubt familiar with the variable variable language construct, and appreciated its eloquence in CRUD scripts and elsewhere. You got your field names, so cycle through them in a looping construct and execute your value setting method.  He or she is forgiven for not realizing that eventually, with the blossoming of a thousand new web hosts and thousands more developers on the web, not only users had to be protected from themselves, but developers from themselves also. And so, as of release 4.2.0, register_globals was finally set to OFF by default. Many hosting companies have been slow to react, and even today set it to ON to support legacy software.</p>
<p>So while you have this spartan and eloquent structure, it relies on an obtuse language construct which in turn relies on data that is potentially not trustable. The solution to the above problem required a static array of field names that must not be overwritten. Of course, testing this once might reveal that data is being overwritten with empty values. Unintentionally. By design. Due to a deprecated directive and an obscure language construct.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2009/01/22/better-to-avoid-variable-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Design Coding Rapper</title>
		<link>http://www.superwebdeveloper.com/2009/01/18/the-design-coding-rapper/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2009/01/18/the-design-coding-rapper/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 19:01:33 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[rap]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=91</guid>
		<description><![CDATA[Here it is, encapsuated, all the things you should know about web design and development. If you can do all this stuff, you are going to do ok as a developer.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.superwebdeveloper.com/2009/01/18/the-design-coding-rapper/"><em>Click here to view the embedded video.</em></a></p>
<p>Here it is, encapsuated, all the things you should know about web design and development. If you can do all this stuff, you are going to do ok as a developer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2009/01/18/the-design-coding-rapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatted print_r is Darn useful</title>
		<link>http://www.superwebdeveloper.com/2008/11/11/formatted-print_r-is-darn-useful/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/11/11/formatted-print_r-is-darn-useful/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 20:39:21 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[print_r]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=80</guid>
		<description><![CDATA[Here is one of the little improvements upon a php script that makes it even more useful &#8211; at least appropriate for browser output. I make no claim to having invented this, its just a useful little script to pass on for debugging arrays in PHP. function printR($arr, $label= null) { if($label){ echo &#8220;&#60;h2&#62;$label&#60;/h2&#62; \n [...]]]></description>
			<content:encoded><![CDATA[<p>Here is one of the little improvements upon a php script that makes it even more useful &#8211; at least appropriate for browser output. I make no claim to having invented this, its just a useful little script to pass on for debugging arrays in PHP.</p>
<p>function printR($arr, $label= null) {<br />
if($label){<br />
echo &#8220;&lt;h2&gt;$label&lt;/h2&gt; \n &#8220;;<br />
}<br />
echo &#8220;\n\n&lt;pre&gt;\n&#8221;;<br />
print_r($arr);<br />
echo &#8220;\n&lt;/pre&gt;\n\n&#8221;;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/11/11/formatted-print_r-is-darn-useful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Edit a line in all php files in a directory with find and sed</title>
		<link>http://www.superwebdeveloper.com/2008/11/01/edit-a-line-in-all-php-files-in-a-directory-with-find-and-sed/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/11/01/edit-a-line-in-all-php-files-in-a-directory-with-find-and-sed/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 03:41:42 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/?p=76</guid>
		<description><![CDATA[Here is about the simplest example I could come up with, to change a reference to a new include directory location in a codebase. You can of course do fancier things should you wish to dump your results to a directory before overwriting your files. #!/bin/sh for files in `find *.php` do sed &#8216;s/..\/..\/adminincl/includes/g&#8217; $files [...]]]></description>
			<content:encoded><![CDATA[<p>Here is about the simplest example I could come up with, to change a reference to a new include directory location in a codebase.</p>
<p>You can of course do fancier things should you wish to dump your results to a directory before overwriting your files.</p>
<p>#!/bin/sh<br />
for files in `find *.php`<br />
do<br />
sed &#8216;s/..\/..\/adminincl/includes/g&#8217; $files &gt; &#8216;temp&#8217;.$files &amp;&amp; mv &#8216;temp&#8217;.$files $files<br />
done</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/11/01/edit-a-line-in-all-php-files-in-a-directory-with-find-and-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Essential Cheat Sheet of Shell Commands</title>
		<link>http://www.superwebdeveloper.com/2008/10/08/essential-cheat-sheet-of-shell-commands/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/10/08/essential-cheat-sheet-of-shell-commands/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 02:37:54 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[GNU Linux]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[cheats]]></category>
		<category><![CDATA[codes]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=62</guid>
		<description><![CDATA[Though I would add a list of shell commands I keep using as a guide to myself and others. svn make svn code directory, call it codebase. Put a trunk, branches, and tags directory below it. Import all that codebase under trunk. That means, the whole site. Also, make a directory for your db, and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Though I would add a list of shell commands I keep using as a guide to myself and others.</strong></p>
<p><strong>svn</strong><br />
make svn code directory, call it codebase. Put a trunk, branches, and tags directory below it. Import all that codebase under trunk. That means, the whole site. Also, make a directory for your db, and put a db dump in there. If you are running a cron, make a directory called cron, put your cron scripts in there and a text file copy of your crontab. Don&#8217;t store passwords in subversion, as in the top level file that your site uses. Make a version of the file without the passwords, call it something like config.orig.php or whatever, and check that in instead. Also, you may need the equivalent of the CVS ignore command called svn propset and make use of it.<br />
#svnadmin create repository_directory</p>
<p>#svn import codebase file:///home/user/pathtorepositorydir/repository_directory -m &#8220;initial import&#8221;<br />
check out your remote repository into your local machine at the command line:<br />
#svn checkout svn+ssh://user@domain.com/home/user/repository_directory/trunk .<br />
local:<br />
#svn checkout file:///home/user/pathtorepository/repository_directory html/</p>
<p>now you are checked in and out, you can delete codebase directory.</p>
<p><strong>svn export</strong> works in a similar way. It pulls out the files from the repository sans .svn directories.<br />
#svn export svn+ssh://user@domain.com/home/user/repository_directory/trunk</p>
<p><strong>grep</strong><br />
find instance and string in and below current directory, pipe it to less.<br />
#grep -r &#8220;string&#8221; * | less</p>
<p><strong>find</strong><br />
find all those old CVS or .svn directories, and kill them:<br />
to look:<br />
#find . -type d -name &#8220;.svn&#8221;<br />
to dump to a file<br />
#find . -type d -name &#8220;.svn&#8221; &gt; dump.txt<br />
when you are ready:<br />
#find . -type d -name &#8220;.svn&#8221; -exec rm -rf {} \;</p>
<p>Another way to wipe out everything:<br />
#<span class="nfakPe">find</span> . -name &#8216;*&#8217; -print0 | xargs -0 <span class="nfakPe">rm<br />
this means find here, the name of all, dont print it to stdout, then redirect the output to as an argument that the rm command will execute on. </span></p>
<p><strong>scp<br />
</strong>push a file<br />
#scp localfile.txt user@domain.com:pathtofile/remotefile.txt<br />
grab a file<br />
#scp user@domain.com:pathtofile/remotefile.txt localfile.txt</p>
<p><strong>rsync</strong><br />
get all those image files<br />
#rsync -avz user@domain.com:/home/pathtofiles/ .<br />
ah yes, but I will get a complaintÂ  from subversion about my directory being out of sync because what I just did was downloaded the .svn file from the server over that directory. They arent the same, so your svn update now crashes. What do do?<br />
# rsync -avz &#8211;exclude=.svnÂ  &#8230;&#8230;.then everything else after that. More options in the man pages.</p>
<p><strong>mysql</strong><br />
Export a db<br />
#mysqldump -uuser -ppassword -hlocalhost dbname &gt; db.sql<br />
Import a db<br />
#mysql -uuser -ppassword -hlocalhost dbname &lt; db.sql</p>
<p><strong>crontab<br />
</strong>A crontab line should point to a .sh script. The .sh script can then execute the shell script. This enables you to use either the sleep funciton or looping constructs to run the script a multiple of times if you like, andÂ  keeps your command to one line inside the cron.<br />
Look at your crontab with #crontab -l edit it with #crontab -e<br />
Crontab time examples:|<br />
1 */3 * * *Â  every 3 hours, one minute after the hour. Where possible, dont run a crontab exactly on the hour, because that is when everybody else does it on a shared host. Set it for a minute after when the cpu isnt likely to be so taxed.<br />
1 0,12 * * * every 12 hours, one minute after the hour.<br />
*/1 * * 3/6 every minute on every third and sixth day of the week</p>
<p><strong>wget</strong><br />
use wget to grab that tarball directly, for when you are grabbing such things off sourceforge or wherever.<br />
# wget http://domain.com/pathtofile.tar.gz</p>
<p><strong>tar</strong><br />
good old <strong>t</strong>ape <strong>ar</strong>chive.<br />
To extract:<br />
#tar -xvvf filename.tar.gz<br />
To archive:<br />
# tar -czvf tarballname.tar.gz directory</p>
<p><strong>screen</strong><br />
Got a shell connection to a dodgy host that keeps giving you the boot? after you login, run screen:<br />
#screen -DD -R</p>
<p>You will still get booted, but at least you can get right back to where you were when you reconnect by replaying the above command.</p>
<p><strong>mysql</strong><br />
you probably know mysql command line access if you are on this page. You have to know how to work with this because a database can exceed the size allowable for transfer over http, making into phpMyAdmin impossible. But a goodie that I found is that case when you want to wipe out all the tables in a db, but not the db itself, in order to preserve all the privleges, and access credentials. The following line can save a step:<br />
#mysqldump -uuser -ppassword &#8211;add-drop-table &#8211;no-data dbname | grep ^DROP | mysql -uuser -ppassword dbname</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/10/08/essential-cheat-sheet-of-shell-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protect weak passwords with login trap</title>
		<link>http://www.superwebdeveloper.com/2008/06/17/protect-weak-passwords-with-login-trap/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/06/17/protect-weak-passwords-with-login-trap/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 05:37:15 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=44</guid>
		<description><![CDATA[If one thing is for sure, the weaker the user, the weaker the password they use. Its a disaster waiting to happen. I decided to shore things up on a site I take care of just so I can sleep at night. It has lots of users, but weak ones. Many sites out there already [...]]]></description>
			<content:encoded><![CDATA[<p>If one thing is for sure,<strong> the weaker the user, the weaker the password they use</strong>. Its a disaster waiting to happen. I decided to shore things up on a site I take care of just so I can sleep at night. It has lots of users, but weak ones. Many sites out there already have safeguards in place to forbid further login attempts if you keep failing. If you let users own their passwords, and you probably do, there are no doubt some weak ones that could fall to some kind of rainbow attack if you allow an attacker to keep trying. There should be more than one example of this process on the web to compare this to.</p>
<p>It would work like this:</p>
<ul>
<li>set a number of allowed login attempts.</li>
<li>set the time limit in seconds for duration of access denial.</li>
<li>keep track of the number of failed login attempts.</li>
<li>keep track of when login attempts started with timestamp function.</li>
<li>test for meeting or exceeding the number of allowed login attempts.</li>
<li>let them keep trying if they have waited past the time limit.</li>
<li>set a time limit for when they can come back, and forbid them.</li>
<li>give them some messages and links to help.</li>
<li>if the login has been successful, wipe out all the tracking for login attempts.</li>
<li>You are done.</li>
</ul>
<p>Here we go, into your login processor after initial validation and constructing a sql query.</p>
<pre><code>$loginAttemptsAllowed = 5;</code></pre>
<pre>if( $_SESSION['loginAttempt']['Count'] &lt;= $loginAttemptsAllowed ) {
  $result = $db-&gt;queryRow($sql); // only query db if allowed to do so
}</pre>
<pre>if( !$result ){
  $seconds = 300; // 5 minutes
  // if trying again after lockout time limit ....
  if( $_SESSION['loginAttempt']['Count'] &gt;= $loginAttemptsAllowed ) {
    $difference  = abs($_SESSION['loginAttempt']['LockoutTime'] - $_SESSION['loginAttempt']['Time']);
    $diffSeconds = round($difference);
    if( $diffSeconds &gt; $seconds ) {
      unset($_SESSION['loginAttempt']); // they failed but have a new set of chances
      } else {
      $minutes = $seconds / 60;
      $message = "Sorry, you have had $loginAttemptsAllowed failed login attempts. &lt;br /&gt;
      We temporarily forbid access in order to protect your private information. &lt;br /&gt;
      Please wait $minutes minutes before logging on again.";
      }
    } else {
    if( !isset($_SESSION['loginAttempt']['Time']) ) {
      $_SESSION['loginAttempt']['Time']  = get_microtime();
      $_SESSION['loginAttempt']['Count'] = 1;
    } else {
      $_SESSION['loginAttempt']['Count']++;
    }
    if( $_SESSION['loginAttempt']['Count'] &gt;= $loginAttemptsAllowed ) {
      $_SESSION['loginAttempt']['LockoutTime'] = get_microtime();
    }
    $message = "login error";
  }
  addMessage($message, "MsgErr");
  redirect($_SESSION["backPage"]);
  exit();
}</pre>
<p>&#8230;.. go on and log them. Dont forget to unset( $_SESSION['loginAttempt'] );<br />
// a couple of the functions in there are custom ones, they are basically just wrappers.<br />
// I forget where I got the following function, but it is used for benchmarking. Maybe php.net?</p>
<pre><code>
function get_microtime() {</code></pre>
<pre><code>  $mtime = microtime();</code></pre>
<pre><code>  $mtime = explode(" ",$mtime);</code></pre>
<pre><code>  $mtime = doubleval($mtime[1]) + doubleval($mtime[0]);</code></pre>
<pre><code>  return ($mtime);
}</code></pre>
<p><code> </code>So there you have it. Forcing users to have highly secure passwords, while a good idea, is not always possible.</p>
<p>Keep your users safe. And curses to wordpress for screwing up my code formatting&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/06/17/protect-weak-passwords-with-login-trap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doing Mod_Rewrite Right</title>
		<link>http://www.superwebdeveloper.com/2008/05/16/doing-mod_rewrite-right/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/05/16/doing-mod_rewrite-right/#comments</comments>
		<pubDate>Fri, 16 May 2008 21:35:59 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=35</guid>
		<description><![CDATA[There are a few different things to do to make Apache_mod rewrite right. Overall the difficulty isnt too great, but setting it up right at the beginning is the key. You dont really want to have to catch every little exception in mod_rewrite regular expressions. Using your database to store safe strings to use in [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few different things to do to make Apache_mod rewrite right. Overall the difficulty isnt too great, but setting it up right at the beginning is the key. You dont really want to have to catch every little exception in mod_rewrite regular expressions. Using your database to store safe strings to use in your url makes the whole process much more efficient. This little fact is usually not mentioned in tutorials for mod_rewrite.</p>
<p>You really do want to keep the mod_rewrite rules simple. Dont try to write a complex regexp in mod_rewrite that handles all kinds of apostropes, special characters, etc. (like I did). You dont have to have question marks, quotations, colons in the rewritten url for it to be useful to search engines. You can turn a title like &#8220;O&#8217;mally&#8217;s dog&#8217;s bone&#8221; into http://domain.com/Omallys_dogs_bone and there is definitely enough textual sense in that rewritten url for a search engine to deal with it.</p>
<p>Take your table with all your content data in it. Create a field for your content for a safe title. Then you can process your old titles into the new field. In your looping construct, use a bit of php to clean out your old titles for spaces, quotes, slashes, and other silly things.</p>
<pre>$punctuations = array('.', '\'', '?','!','*','=','Ã“','%','@','&amp;',',','/');</pre>
<pre>$safeTitle = str_replace($punctuations, "", $title);// get rid of the junk</pre>
<pre>$safeTitle   = str_replace(" ", "_", $safeTitle);// replace spaces with underscores</pre>
<p>Now you have a content resource which you can add to your output queries that will fill in your url link on your page for mod_rewrite goodness.</p>
<p>Make your mod_rewrite rule in your .htaccess file. Note here that the rule has a place for 2 variables, and is looking for all instances of strings with upper and lower case letters, the numbers 0-9, and the underscore character. And of course, it turns it all back into a query string to submit to your content page.</p>
<p>RewriteRule ^/?([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)(/)?$  item.php?safeTopicName=$1&amp;safeTitle=$2</p>
<p>Almost done right? Eh, not quite. Almost though. Dont screw over your existing users, who may have linked to something of yours to the past. You can still account for your old reference style to your web content, and you most definitely should. You can write checks for query string data validation to allow for  transparent access to content through either the old query string method or the new one.</p>
<pre>if($_GET["safeTopicName"]){</pre>
<pre>  $sql = sprintf("SELECT topicId
                  FROM contentTopics</pre>
<pre>                  WHERE safeTopicName</pre>
<pre>                  LIKE '%s'",</pre>
<pre>                mysql_real_escape_string($_GET["safeTopicName"]));</pre>
<pre>  diode($topicId = $db-&gt;getOne($sql), $sql); // my db connection wrapper</pre>
<pre>  $sql = sprintf("SELECT articleid</pre>
<pre>                  FROM content</pre>
<pre>                  WHERE safeTitle</pre>
<pre>                  LIKE '%s'",</pre>
<pre>                mysql_real_escape_string($_GET["safeTitle"]));</pre>
<pre>  diode($articleid = $db-&gt;getOne($sql), $sql);
} else {</pre>
<pre>  if($_GET["topicId"]) {</pre>
<pre>    $topicId =  (int)$_GET["topicId"]);</pre>
<pre>  }</pre>
<pre>  if($_GET["articleid"]) {</pre>
<pre>    $articleid =  (int)$_GET["articleid"];</pre>
<pre>  }
}
if(!isset($topicId) || !isset($articleid)) {</pre>
<pre>    addMessage("no item found", "MsgErr");</pre>
<pre>    redirect();</pre>
<pre>    exit();</pre>
<pre>}</pre>
<p>A couple notes: Im using PEAR, and a couple of custom functions for efficiency sake. Note the use of (int) and mysql_real_escape_string() for sanitizing and typing.Â  And yes, there are probably better ways to write this up, but you get the idea. Look for your $_GET vars, and if you dont have one set or the other, no result, otherwise, process it so the rest of the code needs no further reliance on these initial options so a user can get to your site with /Planets/earth as well as with item.php?topicId=2&amp;articleid=249.</p>
<p>To Recap:</p>
<ul>
<li>Set up safe versions of your content titles</li>
<li>process the old titles with a script</li>
<li>make a simpler rewrite rule as a result</li>
<li>set up your validation to process both kinds of queries</li>
<li>marvel about how much simpler it was to do it that way than to try and do it all with Mod_Rewrite alone.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/05/16/doing-mod_rewrite-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Form Security: Moving target vs. Honeypot</title>
		<link>http://www.superwebdeveloper.com/2008/05/13/web-form-security-moving-target-vs-honeypot/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/05/13/web-form-security-moving-target-vs-honeypot/#comments</comments>
		<pubDate>Wed, 14 May 2008 04:32:18 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=20</guid>
		<description><![CDATA[In my last blog posting I alluded to using randomizing form field names as a solution to form attacks. Here is an example of how it can be created for a simple form page. There is no doubt more than one way to accomplish this kind of idea, so please this example only as a [...]]]></description>
			<content:encoded><![CDATA[<p>In my last blog posting I alluded to using randomizing form field names as a solution to form attacks. Here is an example of how it can be created for a simple form page. There is no doubt more than one way to accomplish this kind of idea, so please this example only as a basic demo that suited my needs.</p>
<p>Create a moving target that attackers cannot seize upon repeatedly.  build arrays in a looping construct for all the form fields you want to assign in your page. Store them in a PHP Session array. You use built-in php functions such as md5(), uniqid(), microtime(), mt_rand(), and a salt value if you like as well. You output your form fields dynamically, using php to assign the randomized hash to the name value of the form field. Enter some data, submit the form. The script takes your $_POST array and compares the array keys to $_SESSION. You can then do further validation and then assign your values to  common sense variable names that are always private.</p>
<p>When you have validated this submission, you know the data has come from your form page. While you can spoof referrers, You cant spoof the form field names because they are only created at runtime.</p>
<p>The honeypot is the inverse approach, And also has lots of fans in its camp. A honeypot is a web form with addtional form elements, usually of a hidden type, that get discovered by a spammers crawler. They then seize upon the field name and use it in an attack. But since the form field isnt visible to users through the browser, it must be some kind of forged submission, and is worthy of filtering out.</p>
<p>The advantage of the moving target over honeypot is that forged submissions can be filtered out earlier in the script. Also, an attacker could easily analyze the form page once and determine what form fields to omit, and just add that information into the submitting script. They visited the page once, made a correction, and are back in business. Even so it is known as a successful defense. It is a successful defense because of the reason spam is spam: people messing with your site without ever even visiting it, not once. And if you are using an off-the-shelf website-in-a-box like WordPress or Drupal or whatever, the attacker can even more easily attack your site, with its cookie cutter template form elements, one same as the other million out there already.</p>
<p>It is very economical to attack as many sites as possible in the same way as possible. It will always be so.</p>
<p>I have had my share of naysayers over the moving target method. Please allow me reply to a few of the comments others have already made.</p>
<p><em>Why not just use the form name, why all form fields?</em> I guess you could, but really there are a couple answers. First is the concept of defense in depth. Secure the whole thing, not just one element that an attacker could lock on to. Next answer is that it is simple enough to do the work in php to generate all the form field names you wish.</p>
<p><em>The site could still be attacked</em>. Yes. Assume that it will be. Funky forms is of course not the only line of defense you must apply to stop your site from being trashed. What I was able to accomplish here is to break the link between the site and the garden variety automated attack, which must assume to know your form name and names of input fields in order to forge the rest of the information. The client must be on your web page in real time to submit data into your form. And in fact that is all the moving target approach does. The attacker still harvests your page, prepares a http remote attack in the guise of a simulated form posting, then goes to work, submitting to all the websites. But nothing gets through to a site with the moving target approach because field names wont match up.</p>
<p><em>A position based attacker could still hit it</em>. Yes but of course you are not done validating your input because you have this in place. Spam, like anything else, is a matter of economics, in terms of both time and money.  Yes someone could get you, but not likely, because like 2 boxers in a ring, both have to be stationary for a moment for a punch to connect. Otherwise its much harder to be effective, and much less powerful. The analogy is a fair one: The time required to hit a site with moving target is greater than the time to perform the usual kind of automated crawling and submitting designed for static form field names. The mere fact that you require your user to be on your page, absolutely, is enough in itself for attackers not to bother changing its tactics for millions of websites, or to lose so much time to making an exception to you that it becomes uneconomical to do so. As it stands, they may never even know that their submission was unsuccessful. You can of course push suspicious submissions to Akismet.</p>
<p><em>Yeah but sessions are evil and should never be used</em>. Some have said so. Not to long ago, they didn&#8217;t work very well. But this isnt the case anymore. Drupal doesn&#8217;t use sessions, for example, and other middlewares avoid them as well. Projects with requirements for handling legacy code, particular kinds of services or policies may insist that sessions not be used. But even more evil is to never use sessions because of not understanding how to use them properly and parsimoniously.</p>
<p>First comes your form page, use some php before the form to generate the fields that you need.</p>
<pre style="padding-left: 30px;">&lt;?php
session_start();
if(!$_SESSION["subscriber"]["values"]) {
  $fieldNamesCount = 11;
  $fieldNamesArray = array();
  for ($i = 0; $i &lt; $fieldNamesCount; $i++) {
    // $fieldNamesArray2[] =  md5("killSpam" . uniqid(microtime(), 1)); // random coctail with salt, if you wish
    $fieldNamesArray[] =  uniqid(md5(mt_rand())); // random coctail
  }
  $_SESSION["subscriber"]["fieldNames"] = $fieldNamesArray;
} else {
// do something when its a return pag
}</pre>
<pre>echo "&lt;pre&gt;";
print_r($fieldNamesArray)
echo "&lt;/pre&gt;";</pre>
<p>&#8230;&#8230;. and then your form fields look something like this:</p>
<pre>Name: &lt;input type="text" name="{$_SESSION["subscriber"]["fieldNames"][0]}" value="&lt;?php  echo  $_SESSION["subscriber"]["values"][0]; ?&gt;" size="20" maxlength="50" /&gt;</pre>
<pre>Phone: &lt;input name="{$_SESSION["subscriber"]["fieldNames"][1]}" type="text" value="&lt;?php echo  $_SESSION["subscriber"]["values"][1]; ?&gt;" size="20" maxlength="20" /&gt;</pre>
<p>You submit this to your form target script. If you look at your page Info in Firefox, under the forms tab, you will see you have form field names created from random hashes generated at runtime. The values for the names will be unique at every page load. The user must be on the page to submit.</p>
<p>So lets take a look at the script you are posting this data to.</p>
<p>Lets just assume that you are pointing this form submission to a different file, so here is what is required at a minimum:</p>
<pre>&lt;?php
session_start();
if (!$_POST) {
  echo "no post reference";
  exit();
}
// compare $_SESSION["subscriber"]["fieldNames"]
// to array_keys($_POST);
if(!$_SESSION["subscriber"]["fieldNames"]) {
  echo "no ref to my session";
  exit();
}</pre>
<pre>$postedKeys = array_keys($_POST); // I need to access this as an  array.</pre>
<pre>$_SESSION["subscriber"]["values"] = $_POST;
$realNames = array('Name','Telephone',.... etc);</pre>
<pre>for($i = 0; $i &lt; count($postedKeys); $i++) {
  if($postedKeys[$i] == $_SESSION["subscriber"]["fieldNames"][$i]) {
    // no cheating! you must you my randomly generated field names to use this page!!!!
    $realValues[$realNames[$i]] = $_SESSION["subscriber"]["values"][$_SESSION["subscriber"]["fieldNames"][$i]];
  } else {
    // its the work of satan
    echo "please dont do that ";
    exit();
  }
}</pre>
<p>so if it passes all the tests, its good to go. Otherwise, its like two people talking to each other who dont speak each others language. They will never get what each other is saying, will never understand, and will just move on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/05/13/web-form-security-moving-target-vs-honeypot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the problem with cms packages is&#8230;.</title>
		<link>http://www.superwebdeveloper.com/2008/04/25/the-problem-with-cms-packages-is/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2008/04/25/the-problem-with-cms-packages-is/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 06:16:02 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=14</guid>
		<description><![CDATA[I noticed yet again on vancouver.php.net that surprise surprise, while our backs were turned organizing the OpenWeb Vancouver 2008 conference, our Drupal based site got hammered with spam, again. We have a group of working professionals experienced in Drupal, up, down, and sideways, but we dont always have the time to monitor the website as [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed yet again on vancouver.php.net that surprise surprise, while our backs were turned organizing the OpenWeb Vancouver 2008 conference, our Drupal based site got hammered with spam, again. We have a group of working professionals experienced in Drupal, up, down, and sideways, but we dont always have the time to monitor the website as closely as we would like. We make upgrades, we review configurations, security issues, we deal with issues as best as we can, but as volunteers, we have other things to do. We cannot keep ahead of exploits as fast as the exploiters, and I wonder who ever really does.</p>
<p>But really, this is a problem that is endemic to cms packages. A hacker can write one script and attack all drupal sites on the world wide web. Same problem for wordpress and every other website in a box. They all have a url that someone can post to with name &amp; value pairs. There are always lots of things to do to protect your site, but with every new upgrade and patch, there are always new exploits that might just work when applied to your site.</p>
<p>Without a human being to look and see, you wont know that your site has been tossed until you see it for yourself, and remains that way until it is fixed.</p>
<p>Randomizing not only the form name but also the field names was a very successful experiment in my case when someone had my number. The attacker cant presume the name of your fields then so easily, and then they cant attack you. Its like you become a moving target, not a static one. At the very least, they actually need to be on the page in real time in order to post something. Now other developers have told me that in fact it could be attacked with a position based form filler, say based on a xul widget or hacked firefox, but this solution, while possible by some attackers, is generally extra effort to include in the whole looping construct for the attack.</p>
<p>Spam networks hire out at at least $5000 an hour, I learned at a VanLug talk last year. So if an exploit takes too long to seize on to, it is not worth the time. CMS packages are uniform instances of software in terms of action urls and form and field names, so they are static things to sieze upon in the eyes of an attacker who has to provide the biggest bang for the buck. They are sitting ducks, just waiting to get attacked. If even an array key was constructed of a md5 hash at page load time, stored in a sessionÂ  (oops, no sessions in Drupal, not Kosher, if you are a Drupalist), that at a minimum would be enough to be a moving target an attacker would be unable to sieze upon without actually being on the page in real time. And that is the whole problem with spammers, they never even visit your site. Never have and never will.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2008/04/25/the-problem-with-cms-packages-is/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Book Review</title>
		<link>http://www.superwebdeveloper.com/2006/09/27/drupal-book-review/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2006/09/27/drupal-book-review/#comments</comments>
		<pubDate>Wed, 27 Sep 2006 18:40:55 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=6</guid>
		<description><![CDATA[There are lots of Content Management Systems out there, right? Drupal is just another, right? Why this CMS? Is there something to all this excitement for Drupal? What, exactly, is in that kool-aid that everyone else is drinking? Maybe, there's something to this Drupal thing after all...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.packtpub.com/drupal/book/mid/21070659l3za" target="_blank"><img style="padding: 5px" src="http://www.packtpub.com/images/100x123/1904811809.png" border="0" alt="" align="left" /></a> <a href="http://www.packtpub.com/drupal/book/mid/21070659l3za" target="_blank"> Drupal: Creating Blogs, Forums, Portals, and Community Websites, by David Mercer</a>.</p>
<p>Mercer, David.  Drupal: Creating Blogs, Forums, Portals, and Community Websites, How to set up, configure, and customize this powerful PHP/MySQL-based Open Source CMS. Birmingham, U.K.: Packt Publishing, 2006.</p>
<p>Its a pleasure to write a review on David Mercer&#8217;s Drupal, Creating Blogs, Forums, Portals, and Community Websites, from Packt Publishing. This title will allow you to know much more about Drupal&#8217;s features, and it will become a much more valuable to you as a result.</p>
<p>I have wanted to know more about Drupal  ever since seeing  Drupal emerge as the Content Management System (CMS) of choice in my local user group community over the past couple of years. You might say that that some of the local developers have really drank the kool-aid by the measure of their enthusiasm for Drupal. There is a Drupal User Group in town now; I also sat in on a PHP User group presentation on Drupal by inventor Dries van Buytaert; I&#8217;ve eavesdropped on the conversations of developers waxing away on all the great stuff they can do with it, and how great it is; then of course there was the massively successful Northern Voice / OpenSourceCMS conference, said hi to Dries again, and a couple hundred coders and bloggers, were all very thirsty, hungry, and excited about all they could do or wanted do with Drupal. It was all they could talk about. Drupal Drupal Drupal, its all I ever heard! Its just another Content Management System, right? But I cant remember when I saw so much enthusiasm for a single piece of software. There are lots of Content Management Systems out there, right? Drupal is just another, right? Why this CMS? Is there something to all this excitement for Drupal? What, exactly, is in that kool-aid that everyone else is drinking? Maybe, there&#8217;s something to this Drupal thing after all&#8230;</p>
<p>Drupal is a content management system written in PHP with MySQL database. Its for blogs, communities, news sites and more. It is one of those select breed of packages that you can always rely upon to run the first time, &#8216;right out of the box&#8217;, with a minimum of effort, ready to run. Then there is a large array of extensions and skins, written by that enthusiastic Open Source community I just mentioned that you can add into your package, and when you do, they just work, with a minimum of instruction and effort. Drupal is what most people would call an excellent example of what Open Source software is all about, with thousands of sites using this package and development communities around the world.</p>
<p>So its a package that works right out of the box, easy to set up and run, lots of resources, and tons of community support. In fact, with some basic knowledge of computers, a shared hosting account, and a bit of your time with David Mercer&#8217;s book, you could become a self-reliant owner/operator of a Drupal website, with features and functionality that dynamic websites are supposed to have, supporting categories of text and media, and users organized by roles an access levels you can define.</p>
<p>Say you might be someone I would describe as a website client I build sites for. You could use Drupal and avoid having to pay a developer ( like me ) money to build a dynamic website that has the features that Drupal has. On top of that you would have the benefit of the free extensions, modules, skins, and community that you wouldn&#8217;t have if you got someone to code up a site for you. There are arguments against using an off-the-shelf CMS, like if you have a very particular need, type of thing you are doing, but I am not going to entertain that here. You even have the contentment of knowing what it is you have for a website, if you weren&#8217;t technically inclined, and you would know six months from now. You are sold, you save a bundle on your website budget, but why would a developer give that all away? The answer is this: the higher the abilities of my clients, the more interesting the work is for me. Work is performed on tasks that need to be done, not on tasks that have been done already. We don&#8217;t need to reinvent the wheel here, most of the time, and the work a developer does within a Drupal site can be applied to other Drupal sites, and even shared with the development community. Find out everything to know about Drupal, its history and future, at <a title="Drupal" href="http://drupal.org" target="_blank">http://drupal.org</a>.</p>
<p>If you are that kind of person, David Mercer&#8217;s book on Drupal is for you. Its a well written book to help reduce your trial and error, and allow you to get on with the business of operating your website in a knowledgeable manner. And isn&#8217;t that the point? Its a book that is designed to help you learn about what Drupal can really do for you. Use this book and you can become an expert in Drupal without necessarily needing to be an expert in PHP.</p>
<p>The first chapter provides an introduction to Drupal, and explains again a lot of those whys I covered above, but in detail to give it credit. The second chapter covers setting up your development environment and gives you an overview of the technologies Drupal is built upon, namely the LAMP stack. Follow the instructions in this book and you will be fine. You need a development environment? No, but really you do, trust me, you do. Apache2Triad is recommended as an offline development environment. While I would have recommended XAMPP instead, both do the job.  If you don&#8217;t have one of these, get one.  Hey, everybody needs a sandbox.</p>
<p>You then get  lessons in site configuration, and adding functionality. After the groundwork has been laid for you, an aspect that you will appreciate down the road, you get on with the business of adding features and functionality to your site.  You get introduced to modules, so you can add the chunks of code you need so you can do what you want with the site, and blocks, so you can place them where you want.</p>
<p>Users, Roles, and Permissions explains Drupal&#8217;s web admin system for managing users with access policy, roles, and rules. Access rules are something site owners need to know about because the task of keeping the people you want as members to your site is simpler than keeping the people you don&#8217;t like off your site, like members who make nuisance postings in your forum.</p>
<p>You then move on adding and management and content, where you learn how to add and manage content in your site, and then cover in more detail filtering input for code, and what that means, and the Taxonomy module, arguable the most important module within Drupal. The Taxonomy module allows you to determine the method of your your content is organized. Good advice is here: it means the difference between running your site and running it eloquently and well.</p>
<p>The book continues on at in a look at Drupal&#8217;s theme system, and techniques for styling and customizing your site look with CSS. The following chapter is on more advanced features and Modifications to the site, with examples such as Adsense, Flexinode, and News Ticker. While depth of this  material is in many ways introductory, it also does a good job of indicating for more experienced developers an overview of what depth one has to wade into in order to start in earnest with the customization of the site.</p>
<p>Your site development efforts are all applied together when you are ready to deploy your site. Again, the chapter covers tips, hints, tricks, and other valuable lessons for running your site, such as choosing  a  host, your database, backups, crons, poormanscron, site throttling, search engine optimization, web site statistics, and more. Again, this material is laid out to cover the major points in live website maintenance so you know how to be independent, but also as an overview to more experienced developers for what in a Drupal site needs to be done the &#8216;Drupal way&#8217;.</p>
<p>You don&#8217;t need this book to start with Drupal, but you will learn a lot more about it if you do. And that is the whole point, isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2006/09/27/drupal-book-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of PHP related websites</title>
		<link>http://www.superwebdeveloper.com/2006/04/28/php-sites/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2006/04/28/php-sites/#comments</comments>
		<pubDate>Sat, 29 Apr 2006 02:16:00 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=4</guid>
		<description><![CDATA[By all means this is a partial list of php related websites out there. Vancouver PHP Users http://vancouver.php.net/ sites for tutorials, reviews http://developer.yahoo.com/php/ http://www.php.net/manual/en/ http://www.phpit.net/ http://www.elroubio.net/ http://www.sitepoint.com/ http://www.thesitewizard.com/ http://www.phpdeveloper.org/ http://www.phparch.com/ http://www.phpbuilder.com/ http://www.zend.com/zend/tut/ http://www.devshed.com/c/b/PHP/ http://webmonkey.wired.com/webmonkey/programming/php/ Content Management systems http://moodle.org/ http://www.phpbb.com/ http://drupal.org/ http://wordpress.org/ http://phpadsnew.com/two/ Software tools http://www.mysql.com/ http://www.sqlite.org/ http://www.apache.org/ http://www.phpmyadmin.net/ http://lamppix.tinowagner.com/ Internet News http://slashdot.org/ http://news.netcraft.com/ http://www.digg.com Scripts, [...]]]></description>
			<content:encoded><![CDATA[<p>By all means this is a partial list of php related websites out there.</p>
<p>Vancouver PHP Users  <a href="http://vancouver.php.net/" target="_blank">http://vancouver.php.net/</a></p>
<p>sites for tutorials, reviews</p>
<p><a href="http://developer.yahoo.com/php/">http://developer.yahoo.com/php/</a><br />
<a href="http://www.php.net/manual/en/" target="_blank">http://www.php.net/manual/en/</a><br />
<a href="http://www.phpit.net/" target="_blank">http://www.phpit.net/</a><br />
<a href="http://www.elroubio.net/" target="_blank">http://www.elroubio.net/</a><br />
<a href="http://www.sitepoint.com/" target="_blank">http://www.sitepoint.com/</a><br />
<a href="http://www.thesitewizard.com/" target="_blank">http://www.thesitewizard.com/</a><br />
<a href="http://www.phpdeveloper.org/" target="_blank">http://www.phpdeveloper.org/</a><br />
<a href="http://www.phparch.com/" target="_blank">http://www.phparch.com/</a><br />
<a href="http://www.freewebmasterhelp.com/tutorials/php/" target="_blank"><br />
</a><a href="http://www.phpbuilder.com/" target="_blank">http://www.phpbuilder.com/</a></p>
<p><a href="http://www.zend.com/zend/tut/" target="_blank">http://www.zend.com/zend/tut/</a><br />
<a href="http://www.devshed.com/c/b/PHP/" target="_blank">http://www.devshed.com/c/b/PHP/</a></p>
<p><a href="http://webmonkey.wired.com/webmonkey/programming/php/" target="_blank">http://webmonkey.wired.com/webmonkey/programming/php/</a></p>
<p>Content Management systems<br />
<a href="http://moodle.org/" target="_blank">http://moodle.org/</a><br />
<a href="http://www.phpbb.com/" target="_blank">http://www.phpbb.com/</a><br />
<a href="http://drupal.org/" target="_blank">http://drupal.org/</a><br />
<a href="http://wordpress.org/" target="_blank">http://wordpress.org/</a><br />
<a href="http://phpadsnew.com/two/" target="_blank">http://phpadsnew.com/two/</a></p>
<p>Software tools<br />
<a href="http://www.mysql.com/" target="_blank">http://www.mysql.com/</a><br />
<a href="http://www.sqlite.org/index.html" target="_blank">http://www.sqlite.org/</a><br />
<a href="http://www.apache.org/" target="_blank">http://www.apache.org/</a><br />
<a href="http://www.apachefriends.org/en/" target="_blank"><br />
</a><a href="http://www.phpmyadmin.net/" target="_blank">http://www.phpmyadmin.net/</a><br />
<a href="http://lamppix.tinowagner.com/" target="_blank">http://lamppix.tinowagner.com/</a></p>
<p>Internet News<br />
<a href="http://slashdot.org/" target="_blank">http://slashdot.org/</a><br />
<a href="http://news.netcraft.com/" target="_blank">http://news.netcraft.com/</a><br />
<a href="http://www.digg.com" target="_blank">http://www.digg.com</a></p>
<p>Scripts, etc  <a href="http://freshmeat.net/" target="_blank">http://freshmeat.net/</a><br />
<a href="http://sourceforge.net/" target="_blank">http://sourceforge.net/</a><br />
<a href="http://pear.php.net/" target="_blank">http://pear.php.net</a><br />
<a href="http://www.phpclasses.org/" target="_blank">http://www.phpclasses.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2006/04/28/php-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get to know your local user groups</title>
		<link>http://www.superwebdeveloper.com/2006/04/27/get-to-know-your-local-user-groups/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.superwebdeveloper.com/2006/04/27/get-to-know-your-local-user-groups/#comments</comments>
		<pubDate>Fri, 28 Apr 2006 01:05:13 +0000</pubDate>
		<dc:creator>pbg</dc:creator>
				<category><![CDATA[User Groups]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.superwebdeveloper.com/wp/?p=3</guid>
		<description><![CDATA[For almost every programming language, software, platform, operating system you will also find a local user group where you can find out more for yourself.]]></description>
			<content:encoded><![CDATA[<p>For almost every programming language, software, platform, operating system you will also find a local user group where you can find out more for yourself.</p>
<p>A little time spent with user groups can improve your skills. Take for example the possibility of reducing costs by learing how to use Open Source software, or perhaps you can find new ways to serve your clients and customers.</p>
<p>User groups are really for anybody interested in technology.  if your skill background is different from the group, its still an opportunity to share your own knowledge,  and you add diversity to the group. Think about going to a user group for something you might want to know more about.</p>
<p>User groups arent just for experts; they consist of regular people, and this is important to understand. They are the grassroots organizations for modern technologies, and they help put a human face to technology.</p>
<p>User groups provide an unprecedented opportunity for networking and learning in the field. You can get exposure and information from first hand users you may never get from learning on your own. Regular meetings feature talks by association members or invited guests, and the groups all have websites which post forum discussions and job postings. Groups even occaisonally organize larger events and conferences. Its a great opportunity to see how the field of technology works from the inside.</p>
<p>User groups operate with minimal overhead. Meetings are free to attend, and sometimes there are even courtesy offerings of pizza and soft drinks. Membership is optional. But still what is really surprising is that most user groups are fairly small, even though the opportunities for networking, knowledge and participation are excellent. Maybe these organizations just need a little more publicity to increase their attendance numbers.</p>
<p>The best way to support these groups is by going to meetings because you can help share the awareness of these groups with your colleagues. User groups have become the bulwark in promoting Open Source technologies, which otherwise dont have marketing and advertising budgets that major technology corporations have.  It can help you get ahead in your profession &#8211; and you can enjoy a good slice of pizza while you are at it.</p>
<p>If only groups were a bit more aware of each other, they could become a greater force and option for the public to get what they want and need from technology.</p>
<p>To start you off, here&#8217;s a partial list of groups for Vancouver area. Spread the word!</p>
<p>PHP: Vancouver PHP Users Association <a title="vancouver php users association" href="http://vancouver.php.net" target="_blank">http://vancouver.php.net</a><br />
Linux: Vancouver Linux User Group (VANLUG) <a title="vancouver linux users" href="http://www.vanlug.bc.ca" target="_blank">http://www.vanlug.bc.ca</a><br />
XML: Vancouver XML Developers Association <a title="vancouver xml users group" href="http://www.vanx.org/" target="_blank">http://www.vanx.org/</a><br />
freeBSD: <a title="Vancouver freeBSD users " href="http://www.vanbug.org" target="_blank">http://www.vanbug.org</a><br />
Python / Zope : <a title="vancouver Python and zope" href="http://www.vanpyz.org" target="_blank">http://www.vanpyz.org</a><br />
Java: <a title="Vancouver Java users group" href="http://www.openroad.ca/vanjug" target="_blank">http://www.openroad.ca/vanjug</a><br />
.NET: <a title="Vancouver .net users " href="http://www/netbc.ca" target="_blank">http://www/netbc.ca</a><br />
Macintosh: Hosted by Apple Canada <a title="Apple users " href="http://www.mactag.org" target="_blank">http://www.mactag.org</a><br />
Perl: Vancouver Perl Mongers <a title="Vancouver Perl Mongers" href="http://vancouver.pm.org" target="_blank">http://vancouver.pm.org</a><br />
Microsoft: <a title="vancouver microsoft users" href="http://www.vantug.com" target="_blank">http://www.vantug.com</a><br />
Information Processing: Canadian Information Processing Society <a title="Canadian Information Processing Society" href="http://local.cips.ca/vancouver/" target="_blank">http://local.cips.ca/vancouver/</a><br />
Graphic Design: SIGGRAPH <a title="SIGGRAPH Vancouver" href="http://www.vancouver.siggraph.org/" target="_blank">http://www.vancouver.siggraph.org/</a><br />
Game Design: <a title="Vancouver Game Designers" href="http://www.igda.org/vancouver/" target="_blank">http://www.igda.org/vancouver/</a><br />
Software Developers: Vancouver Software Developers Network (VANDEV) <a title="Vancouver Software Developers" href="http://softwaredev.meetup.com/17/" target="_blank">http://softwaredev.meetup.com/17/</a><br />
Software QA: Vancouver Software Quality Assurance Group <a title="Vancouver software qa" href="http://vanq.org/" target="_blank">http://vanq.org/</a><br />
GIS: Vancouver GIS Users Group <a title="Vancouver GIS" href="http://www.vancouvergis.org/" target="_blank">http://www.vancouvergis.org/</a><br />
Bioinformatics: VanBUG: Vancouver Bioinformatics User Group <a title="Vancouver bioinformatics" href="http://www.vanbug.org/" target="_blank">http://www.vanbug.org/</a><br />
Useability: The Vancouver User Experience Group (VanUE)  <a title="Vancouver useability group" href="http://vanue.com/" target="_blank">http://vanue.com/</a><br />
Wired Woman: <a title="Wired Woman" href="http://www.wiredwoman.com/mc/page.do?sitePageId=2952" target="_blank">http://www.wiredwoman.com/mc/page.do?sitePageId=2952</a><br />
Engineers: IEEE Computer Society, Vancouver Chapter <a title="IEEE Vancouver" href="http://www.kruchten.com/IEEE/" target="_blank">http://www.kruchten.com/IEEE/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.superwebdeveloper.com/2006/04/27/get-to-know-your-local-user-groups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

