<?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>Sherzy.com &#187; Web Development</title>
	<atom:link href="http://www.sherzy.com/category/web_development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sherzy.com</link>
	<description>If cheese is involved I might be interested</description>
	<lastBuildDate>Mon, 26 Jul 2010 15:18:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mobile Website Development</title>
		<link>http://www.sherzy.com/2010/05/mobile-website-development/</link>
		<comments>http://www.sherzy.com/2010/05/mobile-website-development/#comments</comments>
		<pubDate>Thu, 13 May 2010 16:42:43 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[RIM]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=949</guid>
		<description><![CDATA[My recent web project has been to develop a mobile website for our clients. Not a mobile app, but a mobile website. Finding information on mobile website development was not easy – a lot of info was directed toward making mobile apps, primarily for the iPhone. One good resource I found was on the yahoo [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-953" title="9000" src="http://www.sherzy.com/wp-content/uploads/2010/05/9000-187x300.jpg" alt="" width="187" height="300" />My recent web project has been to develop a mobile website for our clients. Not a mobile app, but a <strong>mobile website</strong>. Finding information on mobile website development was not easy – a lot of info was directed toward making mobile apps, primarily for the iPhone. One good resource I found was on the <a href="http://yuiblog.com/blog/2007/10/02/challenges-of-interface-design-for-mobile-devices/">yahoo user interface blog</a>.</p>
<p>In order to<strong> emulate the popular iPhone apps</strong> we decide to use <strong><a href="http://jqtouch.com/">jQtouch</a></strong> (good basic <a href="http://building-iphone-apps.labs.oreilly.com/ch04.html">how-to article</a>). It does a good job of wrapping most of the touch events, making a smooth looking site on iPhone and other touch devices. We were able to take advantage of a few <strong>HTML5 </strong>(the “placeholder” attribute) and <strong>CSS3 </strong>(border-radius and gradients) features which was fun. I was able to test and debug the site using Safari (developer tools allow you to emulate iPhone) and my Android phone.</p>
<p>Everything was coming together nicely until I had to test on the <strong>Blackberry</strong>. After overcoming the challenge of installing the Blackberry MDS service and a couple <a href="http://na.blackberry.com/eng/developers/resources/simulators.jsp">device emulators</a> I was finally able to do some testing of my mobile website on the Blackberry browser. I had 3 devices I was using to test (client is in Canada, these are 3 of the popular<a href="http://your.rogers.com/business/wireless/products/business_products.asp?features=3"> Blackberrys offered by Rogers</a>): Bold 9000, Curve 8900, and Curve 8520. I was surprised at the differences in html and css rendering across these devices, despite the fact they are all running 4.6 version of the Blackberry browser.</p>
<p>Here are a few of the things I learned about making a mobile website that can be used on a Blackberry device:</p>
<ul>
<li>Give inputs size attributes (both the Bold 9000 and the Curve 8900 required this)</li>
<li>Buttons &#8211; use padding and margin (the Bold would not center align text)</li>
<li>Images cannot have width: 100%</li>
<li>Float right = bad. Use absolute positioning instead</li>
<li>Text areas &#8211; sigh, still not sure what will work to make them scale nicely</li>
<li>Use &lt;meta content=&#8221;true&#8221; /&gt; &#8211; tells the browser you have optimized the site for handheld devices</li>
<li>If you are using XHTML &#8211; ensure that your HTML validates. Or use</li>
</ul>
<pre id="line1"> &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8" /&gt;
</pre>
<p><strong>Update</strong>: This could be handy: <a href="http://www.vcarrer.com/2010/07/bulletproof-css3-media-queries.html">CSS3 media queries</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2010/05/mobile-website-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto-Populating Drop Down List</title>
		<link>http://www.sherzy.com/2010/02/auto-populating-drop-down-list/</link>
		<comments>http://www.sherzy.com/2010/02/auto-populating-drop-down-list/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 19:25:40 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[AddDays()]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=791</guid>
		<description><![CDATA[Sometimes I write a little C# code. Not as much as I would like, but I like the challenge. Today&#8217;s challenge was to populate a drop-down list with the dates of the next 10 Wednesdays. Sounds simple enough, but I did get caught on one thing &#8211; the AddDays() method. Fortunately I found this, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sherzy.com/wp-content/uploads/2010/02/ddl.gif"><img class="aligncenter size-full wp-image-807" title="ddl" src="http://www.sherzy.com/wp-content/uploads/2010/02/ddl.gif" alt="" width="198" height="175" /></a>Sometimes I write a little C# code. Not as much as I would like, but I like the challenge. Today&#8217;s challenge was to populate a drop-down list with the dates of the next 10 Wednesdays. Sounds simple enough, but I did get caught on one thing &#8211; the AddDays() method. Fortunately I found <a href="http://weblogs.asp.net/lorenh/archive/2004/09/20/232190.aspx">this</a>, and my drop-down was populated:</p>
<pre>// Get the current day
DateTime today = DateTime.Now;
bool isWed = today.DayOfWeek == DayOfWeek.Wednesday;
while (!isWed){
    today= today.AddDays(1);
     isWed = today.DayOfWeek == DayOfWeek.Wednesday;
}
// add to the first Wednesday
 DateAttending.Items.Add(new ListItem(today.ToLongDateString(), today.ToShortDateString()));
// Now add 9 more
for (int i = 0; i &lt; 9; i++)
{
      today = today.AddDays(7);
      DateAttending.Items.Add(new ListItem(today.ToLongDateString(), today.ToShortDateString()));
}
</pre>
<p>Works great, and the client was very impressed (they had been updating the drop down list by hand on their old website)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2010/02/auto-populating-drop-down-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello IE8</title>
		<link>http://www.sherzy.com/2009/07/hello-ie8/</link>
		<comments>http://www.sherzy.com/2009/07/hello-ie8/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 20:54:38 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=661</guid>
		<description><![CDATA[It’s the day I have dreaded for quite awhile: the day we start officially supporting Internet Explorer 8 at work and I have to make our sites compatible with it. I guess one good thing is the Firebug-inspired tool inside Internet Explorer We discussed discontinuing support of Internet Explorer 6, which I am all for. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-664" title="ie8" src="http://www.sherzy.com/wp-content/uploads/2009/07/ie8.png" alt="ie8" width="227" height="232" />It’s the day I have dreaded for quite awhile: the day we start officially supporting <strong>Internet Explorer 8</strong> at work and I have to make our sites compatible with it. I guess one good thing is the <a href="http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=ie8whitepapers&amp;ReleaseId=580">Firebug-inspired tool</a> inside Internet Explorer</p>
<p>We discussed discontinuing support of <strong>Internet Explorer 6</strong>, <a href="http://www.sitepoint.com/blogs/2009/04/14/10-cool-things-well-be-able-to-do-once-ie6-is-dead/" target="_blank">which I am all for</a>. But I can’t quite let go of having it around for checking, since some people are still forced to use it – because of old operation systems or work restrictions. A recent <a href="http://blog.digg.com/?p=878" target="_blank">Digg survey</a> found that users couldn&#8217;t change to another browser because they had no administrator access to their computer, weren&#8217;t allowed to upgrade, or simply couldn&#8217;t upgrade because they were still running Windows 2000, ME, or 98. We decided <strong>not to support</strong> IE6 anymore in that we wont go out of our way to make things work in it, but will still check IE6 for major layout issues (box model issues, etc…) So I decided to update my IE7 to 8, and keep 6 running in my VM.</p>
<p>I still don’t know which is worse – Internet Explorer 6 or 8. I guess time will tell. I think my first challenge with IE8 will be dynamically created check boxes, which were not properly supported in previous versions of Internet Explorer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2009/07/hello-ie8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating checkboxes in JavaScript</title>
		<link>http://www.sherzy.com/2008/11/creating-checkboxes-in-javascript/</link>
		<comments>http://www.sherzy.com/2008/11/creating-checkboxes-in-javascript/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 16:08:20 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=526</guid>
		<description><![CDATA[Because I always forget how to create checkboxes dynamically in JavaScript so Internet Expoler will be happy: var i = document.createElement("input"); i.type = "checkbox"; i.className = "CheckBox"; i.id = "uniqueID"; // this is what I forget - Firefox allows .checked, IE must have .defaultChecked i.defaultChecked = [true/false]; // always use labels var l = document.createElement("label"); [...]]]></description>
			<content:encoded><![CDATA[<p>Because I always forget how to create checkboxes dynamically in JavaScript so Internet Expoler will be happy:</p>
<pre>
<code>var i = document.createElement("input");
i.type = <span style="color: #333399;">"checkbox"</span>;
i.className = <span style="color: #333399;">"CheckBox"</span>;
i.id = <span style="color: #333399;">"uniqueID"</span>;
<span style="color: #008000;">// this is what I forget - Firefox allows .checked, IE must have .<strong>defaultChecked</strong></span>
i.defaultChecked = [true/false];
<span style="color: #008000;">// always use labels</span>
var l = document.createElement("label");
<span style="color: #008000;">// ALWAYS use for attributes on your labels. FF allows .for, IE must have .<strong>htmlFor</strong></span>
l.htmlFor = <span style="color: #333399;">"uniqueID"</span>;
l.appendChild(document.createTextNode("checkbox label"));</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2008/11/creating-checkboxes-in-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Do Women Write Better Code?</title>
		<link>http://www.sherzy.com/2008/06/do-women-write-better-code/</link>
		<comments>http://www.sherzy.com/2008/06/do-women-write-better-code/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 15:11:01 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=222</guid>
		<description><![CDATA[I like this article by Rebecca Buckman, Men Write Code from Mars, Women Write More Helpful Code from Venus, and I totally agree. Not that I have worked with a lot of bad code per say, but comments sure do help. I like this: They’ll intersperse their code–those strings of instructions that result in nifty [...]]]></description>
			<content:encoded><![CDATA[<p>I like this article by Rebecca Buckman, <a href="http://blogs.wsj.com/biztech/2008/06/06/men-write-code-from-mars-women-write-more-helpful-code-from-venus/" target="_blank">Men Write Code from Mars, Women Write More Helpful Code from Venus</a>, and I totally agree. Not that I have worked with a lot of bad code per say, but comments sure do help. I like this:</p>
<blockquote><p>They’ll intersperse their code–those strings of instructions that result in nifty applications and programs–with helpful comments and directions, explaining why they wrote the lines the way they did and exactly how they did it.  The code becomes a type of “roadmap” for others who might want to alter it or add to it later.</p></blockquote>
<p>I have definately worked with code like this:</p>
<blockquote><p>Men, on the other hand, often try to show how clever they are by writing very cryptic code.</p></blockquote>
<p>To be fair, I have seen great code written by both genders, and not so great code written by both. But I have worked with far more men than women programmers so it is hard to compare.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2008/06/do-women-write-better-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is how I feel today.</title>
		<link>http://www.sherzy.com/2008/04/this_is_how_i_feel_today/</link>
		<comments>http://www.sherzy.com/2008/04/this_is_how_i_feel_today/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 10:40:25 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[tee shirt]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img class="feature_photo" src="http://www.sherzy.com/upload/blog/UnicodeWindows.jpg" border="0" alt="Unicode" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2008/04/this_is_how_i_feel_today/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>In case you have ever wondered</title>
		<link>http://www.sherzy.com/2008/01/in-case-you-have-ever-wondered/</link>
		<comments>http://www.sherzy.com/2008/01/in-case-you-have-ever-wondered/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 02:28:09 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=35</guid>
		<description><![CDATA[Do websites need to look exactly the same in every browser? Well, now you know.]]></description>
			<content:encoded><![CDATA[<p><a href="http://dowebsitesneedtolookexactlythesameineverybrowser.com/"  target="_blank">Do websites need to look exactly the same in every browser</a>? Well, now you know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2008/01/in-case-you-have-ever-wondered/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 CSS Hack Cheat Sheet</title>
		<link>http://www.sherzy.com/2008/01/ie6-css-hack-cheat-sheet/</link>
		<comments>http://www.sherzy.com/2008/01/ie6-css-hack-cheat-sheet/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 18:13:28 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=43</guid>
		<description><![CDATA[Internet Explorer 6 – web developers love to hate it. But, unfortunately, IE7 adoption rate is not going as fast as expected, so we still need to make websites look decent in IE6. I recently spent quite some time making Century21.ca look decent in IE6, the following is a quick cheat sheet of the most [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer 6 – web developers love to hate it. But, unfortunately, IE7 adoption rate is not going as fast as expected, so we still need to make websites look decent in IE6.</p>
<p>I recently spent quite some time making Century21.ca look decent in IE6, the following is a quick cheat sheet of the most common fixes I used.</p>
<ol>
<li><strong>{ position: relative }</strong><br />
Adding this property can fix all sorts of bugs, from <a href="http://www.positioniseverything.net/explorer/peekaboo.html">peekaboo bug</a> to repeating character bug. In some cases removing this property can also fix things.</li>
<li><strong>{width:auto | pixel value }<br />
</strong>Another common peekaboo fix. Also broken box model fix &#8211; add left and right padding and border to box width.</li>
<li><strong>{display:inline}</strong><br />
Element is floated and has any margin larger than zero .</li>
<li><strong> {margin-left | right: -3px}</strong><br />
Repeating character bug. <a href="http://www.positioniseverything.net/explorer/dup-characters.html">More</a></li>
<li><strong>{background-image:url();<br />
background-repeat :no-repeat;<br />
background-position: 0 0; }<br />
</strong><br />
If background images are not showing up and you are using shorthand try breaking the properties apart.</li>
</ol>
<p><a href="http://www.communitymx.com/content/article.cfm?page=1&amp;cid=C37E0">More details and hacks</a></p>
<p><strong>Methods to target Internet Explorer 6 and below</strong></p>
<pre><code>/* targets IE6 &amp; below - CSS valid */
* html {}</code></pre>
<pre><code>/* applies property in IE6 &amp; below - CSS invalid */
_property: value;
/* applies property in IE6 &amp; below - CSS invalid */
-property: value;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2008/01/ie6-css-hack-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Realestate Website Ever</title>
		<link>http://www.sherzy.com/2007/11/best-realestate-website-ever/</link>
		<comments>http://www.sherzy.com/2007/11/best-realestate-website-ever/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 14:35:08 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=45</guid>
		<description><![CDATA[After months of hard work, Century21.ca was launched yesterday at 5:21 pm. It is a pretty awesome website, we are very pleased with how it turned out. So if you are looking for a house in Canada this is the site for you! Next up: sleep.]]></description>
			<content:encoded><![CDATA[<p>After months of hard work, <a href="http://www.century21.ca" target="_blank">Century21.ca</a> was launched yesterday at 5:21 pm. It is a pretty awesome website, we are very pleased with how it turned out. So if you are looking for a house in Canada this is the site for you! Next up: sleep.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2007/11/best-realestate-website-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Programming is Misunderstood</title>
		<link>http://www.sherzy.com/2007/05/web-programming-is-misunderstood/</link>
		<comments>http://www.sherzy.com/2007/05/web-programming-is-misunderstood/#comments</comments>
		<pubDate>Wed, 02 May 2007 15:02:35 +0000</pubDate>
		<dc:creator>sherzy</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.sherzy.com/?p=62</guid>
		<description><![CDATA[When people ask me what I do for a living I often say, &#8220;I am a web programmer&#8221;, or &#8220;I develop websites&#8221; to which they then say, &#8220;Oh, you design websites&#8221;. At which point I sigh heavily and, depending on who is doing the asking and how much I care at the time, proceed to [...]]]></description>
			<content:encoded><![CDATA[<p>When people ask me what I do for a living I often say, &#8220;I am a web programmer&#8221;, or &#8220;I develop websites&#8221; to which they then say, &#8220;Oh, you design websites&#8221;. At which point I sigh heavily and, depending on who is doing the asking and how much I care at the time, proceed to explain that I do not &#8220;design&#8221; websites, but I &#8220;program&#8221; websites, or &#8220;make them work&#8221; (my favorite illustration: its like if someone tells you he is an auto mechanic and you say to him, &#8220;oh, you paint cars&#8221;. ). Web developers in general are misunderstood, even by other developers, so I don’t let it bother me (too much).</p>
<p>Today I came across a great article by <a href="http://www.wait-till-i.com/">Christian Heilmann</a> on his site about <a href="http://www.wait-till-i.com/index.php?p=434">Web Developers</a> and some of the unique situations we face. A favorite line:<br />
<blockquote>You can be the most amazing developer in your field but if you cannot communicate and distribute this wisdom to others, you are not a lead developer or should get a manager role.</p></blockquote>
<p>This perfectly describes the situation at one of my former jobs &#8211; the so-called &#8220;Lead Programmer&#8221;<br />
was incapable of sharing or distributing programming knowledge, and it hurt the company. Just one of the reasons I am glad to have moved on. I wonder if it has gotten any better there&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sherzy.com/2007/05/web-programming-is-misunderstood/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
