<?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>Octavio Heredia &#187; web development</title>
	<atom:link href="http://www.octavioheredia.com/blog/archives/category/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://www.octavioheredia.com/blog</link>
	<description></description>
	<lastBuildDate>Tue, 26 Feb 2008 05:49:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Remove a dash in multiple records with TSQL</title>
		<link>http://www.octavioheredia.com/blog/archives/2007/07/remove-a-dash-in-multiple-records-with-tsql.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2007/07/remove-a-dash-in-multiple-records-with-tsql.php#comments</comments>
		<pubDate>Wed, 18 Jul 2007 00:11:21 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[tsql-work]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/blog/archives/2007/07/remove-a-dash-in-multiple-records-with-tsql.php</guid>
		<description><![CDATA[Just a self-reference to TSQL code used to clean up multiple records in a table column by removing a dash from the value.
SELECT TOP 10 * FROM table_name WHERE some_logic
SELECT replace(column_name, '-', '') as [New column_name] FROM table_name WHERE some_logic
UPDATE table_name SET column_name = replace(column_name, '-', '') WHERE some_logic
]]></description>
			<content:encoded><![CDATA[<p>Just a self-reference to TSQL code used to clean up multiple records in a table column by removing a dash from the value.</p>
<p><code>SELECT TOP 10 * FROM table_name WHERE some_logic<br />
SELECT replace(column_name, '-', '') as [New column_name] FROM table_name WHERE some_logic<br />
UPDATE table_name SET column_name = replace(column_name, '-', '') WHERE some_logic</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2007/07/remove-a-dash-in-multiple-records-with-tsql.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Supporting multiple browsers</title>
		<link>http://www.octavioheredia.com/blog/archives/2006/02/supporting-multiple-browsers.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2006/02/supporting-multiple-browsers.php#comments</comments>
		<pubDate>Sat, 25 Feb 2006 03:38:52 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=447</guid>
		<description><![CDATA[We been working on a new project which has a very short time line and several people are involved adding to the complexity of the project. The application calls for lectures being streamed over the web utilizing the same technology we use for our online lectures which takes some of the pressure away since the [...]]]></description>
			<content:encoded><![CDATA[<p>We been working on a new project which has a very short time line and several people are involved adding to the complexity of the project. The application calls for lectures being streamed over the web utilizing the same technology we use for our online lectures which takes some of the pressure away since the system has been tested and it is a scalable application.</p>
<p>What is this all about? well, today while coming up with some technical requirements for the project one of my colleagues said we should only support Internet Explorer. I walked in late to the meeting and caught him mid-sentence so I asked what that was for since our applications are 100% cross-browser. Now, to his credit, this is an application that <em>used</em> to require IE as its only player but the version we are running these days don&#8217;t have this limitation. I argued that we should not require IE for our users when the application also supports Firefox and Safari.</p>
<p>His response to listing IE as the only supported browser was to limit the number of variables when we have to deal with technical support questions. A valid argument but it is not 1991 anymore and we need to make sure that we support <strong>all</strong> of our users not just that use a specific platform. Specially when the technical choices we have made support multiple platforms. I agreed to take all issues with non-IE browsers but I know that won&#8217;t be a problem. I would be far more concerned about the user having the proper media player installed and updated than having the <q lang="en-us">proper browser</q>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2006/02/supporting-multiple-browsers.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Close comments on older MT entries</title>
		<link>http://www.octavioheredia.com/blog/archives/2006/01/close-comments-on-older-mt-entries.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2006/01/close-comments-on-older-mt-entries.php#comments</comments>
		<pubDate>Fri, 27 Jan 2006 00:45:03 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=441</guid>
		<description><![CDATA[So I don&#8217;t forget about it in the future.
UPDATE mt_entry SET entry_allow_comments=2 WHERE entry_blog_id = # AND entry_allow_comments = 1 AND entry_created_on ]]></description>
			<content:encoded><![CDATA[<p>So I don&#8217;t forget about it in the future.</p>
<p><code>UPDATE mt_entry SET entry_allow_comments=2 WHERE entry_blog_id = # AND entry_allow_comments = 1 AND entry_created_on <= DATE_SUB(CURDATE(), INTERVAL 7 DAY)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2006/01/close-comments-on-older-mt-entries.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking for a new CMS</title>
		<link>http://www.octavioheredia.com/blog/archives/2005/12/looking-for-a-new-cms.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2005/12/looking-for-a-new-cms.php#comments</comments>
		<pubDate>Thu, 08 Dec 2005 04:54:26 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=427</guid>
		<description><![CDATA[I am currently looking into WordPress and the functionality it can provide as a content management system (CMS) for a fairly basic website. I&#8217;ve installed the core package to take a close look at the functionality, specially because I was not able to find any content describing the strategy for a project like this one. [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently looking into <a href="http://www.wordpress.org/">WordPress</a> and the functionality it can provide as a content management system (CMS) for a fairly basic website. I&#8217;ve installed the core package to take a close look at the functionality, specially because I was not able to find any content describing the strategy for a project like this one. Many claim that WP is great but I will have to find out by myself.</p.</p>
<p>The time-consuming aspect of this kind of research is the time I have to spend becoming familiar with the syntax, functions and overall code strategy which WP provides. I have succesfully used MovableType (MT) as the CMS behind a couple of projects so I feel very comfortable with that package. However, I need an alternative for the project I have in mind and WP appears to be a good candidate. The project site will be very basic with only a couple of sections being heavy on the &quot;dynamic&quot; aspect. I hope to spend some time during the holiday break getting to know WordPress a little better.</p>
<p>Some links for future reference: <a href="http://www.garinungkadol.com/2005/08/16/wordpress-as-a-cms/">Wordpress as a CMS</a>, <a href="http://www.technosight.com/blog/wordpress-a-complete-cms/">A complete CMS</a> and <a href="http://www.alexking.org/blog/2005/03/22/wordpress-as-cms/">WordPress 1.5 as a web site CMS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2005/12/looking-for-a-new-cms.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript back to top links</title>
		<link>http://www.octavioheredia.com/blog/archives/2005/10/javascript-back-to-top-links.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2005/10/javascript-back-to-top-links.php#comments</comments>
		<pubDate>Wed, 19 Oct 2005 16:30:34 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=403</guid>
		<description><![CDATA[Using unobtrusive javascript to provide &#34;back to top&#34; links without extra markup. (source: Web-Graphics)


&#60;script type="text/javascript"&#62;
    function backToTop() {
        var x1 = x2 = x3 = 0;
        var y1 = y2 = y3 = 0;

     [...]]]></description>
			<content:encoded><![CDATA[<p>Using unobtrusive javascript to provide &quot;back to top&quot; links without extra markup. (source: <a href="http://web-graphics.com/mtarchive/001659.php">Web-Graphics</a>)</p>
<p><span id="more-403"></span></p>
<pre class="code">
&lt;script type="text/javascript"&gt;
    function backToTop() {
        var x1 = x2 = x3 = 0;
        var y1 = y2 = y3 = 0;

        if (document.documentElement) {
            x1 = document.documentElement.scrollLeft || 0;
            y1 = document.documentElement.scrollTop || 0;
        }

        if (document.body) {
            x2 = document.body.scrollLeft || 0;
            y2 = document.body.scrollTop || 0;
        }

        x3 = window.scrollX || 0;
        y3 = window.scrollY || 0;

        var x = Math.max(x1, Math.max(x2, x3));
        var y = Math.max(y1, Math.max(y2, y3));

        window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));

        if (x > 0 || y > 0) {
            window.setTimeout("backToTop()", 25);
        }
    }
&lt;/script&gt;

&lt;a href="#" onclick="backToTop(); return false"&gt;back to top&lt;/a&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2005/10/javascript-back-to-top-links.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Properly create the XMLHttpRequest object</title>
		<link>http://www.octavioheredia.com/blog/archives/2005/10/properly-create-the-xmlhttprequest-object.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2005/10/properly-create-the-xmlhttprequest-object.php#comments</comments>
		<pubDate>Tue, 04 Oct 2005 22:30:12 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=395</guid>
		<description><![CDATA[Posting this as a reminder for the future. IE 7 will support the native XMLHttpRequest object, but the older versions will continue to use the ActiveX object. Right now, when creating the XMLHttpRequest object, the norm is to attempt to instantiate the ActiveX object, if that does not work, then attempt to use the native [...]]]></description>
			<content:encoded><![CDATA[<p>Posting this as a reminder for the future. IE 7 will support the native XMLHttpRequest object, but the older versions will continue to use the ActiveX object. Right now, when creating the XMLHttpRequest object, the norm is to attempt to instantiate the ActiveX object, if that does not work, then attempt to use the native implementation. I saw a better recommendation on <a href="http://getahead.ltd.uk/blog/joe/2005/10/03/1128330948468.html"> Joe Walker&#8217;s blog</a>.</p>
<p>This will attempt to create a native object first, which will work for IE7 and other browsers, and only attempt to create the ActiveX object as a last resort.</p>
<p><code><br />
var xhr; <br />
if (window.XMLHttpRequest) {<br />
&nbsp;&nbsp;xhr = new XMLHttpRequest();<br />
}<br />
else if (window.ActiveXObject) {<br />
&nbsp;&nbsp;xhr = new ActiveXObject("Msxml2.XMLHTTP");<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2005/10/properly-create-the-xmlhttprequest-object.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting my head around frameworks</title>
		<link>http://www.octavioheredia.com/blog/archives/2005/08/getting-my-head-around-frameworks.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2005/08/getting-my-head-around-frameworks.php#comments</comments>
		<pubDate>Fri, 12 Aug 2005 04:16:13 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=372</guid>
		<description><![CDATA[I received the Programming Ruby book yesterday and today I received an email from Dave Thomas that our Agile Web Development with Rails has been shipped so I should be getting that one next week sometime. Are we drinking the Rails kool-aid? I would say that we are not but I certainly think there is [...]]]></description>
			<content:encoded><![CDATA[<p>I received the <a href="http://www.pragmaticprogrammer.com/titles/ruby/">Programming Ruby</a> book yesterday and today I received an email from Dave Thomas that our <a href="http://www.pragmaticprogrammer.com/titles/rails/">Agile Web Development with Rails</a> has been shipped so I should be getting that one next week sometime. Are we drinking the Rails kool-aid? I would say that we are not but I certainly think there is a place for it in the enterprise. Will it replace PHP, Perl, Java or X technology? I don&#8217;t think <a href="http://www.rubyonrails.com/">RoR</a> will take over these technologies but some projects will be a perfect fit for this dynamic language.</p>
<p>Since I don&#8217;t want to just believe the hype around RoR, I would like to put a small application together and get a first hand look at the framework. However, RoR is not the only framework getting some attention these days. <a href="http://www.model-glue.com/">Model-Glue</a> has been picking up fans as well among the ColdFusion community. There are some PHP frameworks that are also gaining some steam by riding the AJAX train and applying some lessons taken from the Rails camp. So, I would like to put a sample application and port it across these frameworks as a learning experience.</p>
<p>I would also like to become more familiar with these frameworks. I have found the organization they provide, a key factor in getting a stronger grip on the whole object oriented programing paradigm. However, the regular semester starts in less than a week so our experiment will take a short delay before we get into any development. This might be a good time to get some of the design decisions made and look a little more into <a href="http://cakephp.org/">Cake</a> (a PHP framework) and get some reading done on the Ruby book.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2005/08/getting-my-head-around-frameworks.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFJS DSSS Day Two and Three</title>
		<link>http://www.octavioheredia.com/blog/archives/2005/08/nfjs-dsss-day-two-and-three.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2005/08/nfjs-dsss-day-two-and-three.php#comments</comments>
		<pubDate>Tue, 02 Aug 2005 03:56:44 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=368</guid>
		<description><![CDATA[Days two and three were just as great as far as the content of the presentations and the level of the speakers. I really the enjoy the contact that we have with developers such as Ben Galbraith, Dave Thomas, David Geary and Jason Hunter &#8212; just to name a few, since everyone here are amazing [...]]]></description>
			<content:encoded><![CDATA[<p>Days two and three were just as great as far as the content of the presentations and the level of the speakers. I really the enjoy the contact that we have with developers such as Ben Galbraith, Dave Thomas, David Geary and Jason Hunter &#8212; just to name a few, since everyone here are amazing technical minds.</p>
<p>Saturday morning I caught &quot;Unit Testing Java with Jython&quot; by Stuart Halloway and &quot;Killer Web UIs&quot; by David Geary. The Jython presentation was interesting for two reasons: we are not doing as much unit testing as we should be doing and it is python. I know that we need to increase our testing habits but I am not sure that our team could handle python, despite the recommendations other developers made. Killer Web UIs was a great presentation on Tiles and Sitemesh. Instead of comparing the frameworks to each other,  Geary took an example and demonstrated how to accomplish the objective with each one by itself and at last with both combined. It was a truly learning experience and I will take a closer look at tiles after watching his presentation.</p>
<p>The evening sessions included what I probably think was the most attended presentation of the weekend. Ben Galbraith took on ~100 developers and live-coded an AJAX application. There were a couple of little bugs but nothing that could not be solved by the entire group. I attended the presentation because I wanted to hear what he had to say about the technology. The implementation is the easy thing at this point in time, there are other issues that need to be investigated before we decide to deploy AJAX applications everywhere.</p>
<p>On Sunday I attended &quot;Lightweight Development Strategies&quot; by Bruce Tate, &quot;Introduction to WS-2005&quot; by Ted Neward , &quot;Extreme Web Caching&quot; by Jason Hunter and &quot;Introduction to TestNG&quot; by Andrew Glover. The first couple were mostly discussions about the current state of technology and sort of looking into the magic ball. Jason&#8217;s presentation on caching was fantastic. He explained some of the caching strategies shared by Yahoo&#8217;s Mike Radwin and I have to say that most of them were trivial, easy to deploy and so simple that you ask yourself how come you never thought of that <em>yourself!</em></p>
<p>Jay Zimmerman announced that NFJS DSSS will back to Phoenix in July of 2006 and I plan to be there. During the conference I was able to have some conversations with Ted Neward, Jason Hunter and Andrew Glover. It was great to hear what they had to say on technology and non-technology topics, after all they are human!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2005/08/nfjs-dsss-day-two-and-three.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFJS DSSS Day One</title>
		<link>http://www.octavioheredia.com/blog/archives/2005/07/nfjs-dsss-day-one.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2005/07/nfjs-dsss-day-one.php#comments</comments>
		<pubDate>Sat, 30 Jul 2005 05:56:25 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=367</guid>
		<description><![CDATA[Just got back from the NFJS Dessert Southwest Software Symposium  or NFJS DSSS from now. I attended David Geary&#8217;s Introduction to JSF and two presentations by Dave Thomas on Ruby and Ruby on Rails. I had seen a presentation on JSF from a sales-engineer in the past so I had some curiosity about this [...]]]></description>
			<content:encoded><![CDATA[<p>Just got back from the NFJS Dessert Southwest Software Symposium  or NFJS DSSS from now. I attended David Geary&#8217;s Introduction to JSF and two presentations by Dave Thomas on Ruby and Ruby on Rails. I had seen a presentation on JSF from a sales-engineer in the past so I had some curiosity about this framework. It is certainly something exciting but I certainly have to give it some more research time and attention.</p>
<p>Both presentations by Dave Thomas on Ruby were great, his style and personality help as well to get the point across. A little interesting note is the fact that not only is Dave presenting Ruby at a Java conference, but the fact that the room is full is even more impressive. Some people left before the RoR presentation but I am sure they walked away interested enough to give Ruby a look in the future. His RoR presentation ran out of time but he made his point and it was loud and clear: RoR will have a place in the IT shop in the not so distant future.</p>
<p>He asked to get together with him to look over his testing approach or any other questions we might have. I took him up on it and we are going to take a look at his approach to test-driven development on Rails. I might also ask him about his thoughts on how to best take an already developed application and migrate it to RoR. I would be really interested in his thoughts in doing so.</p>
<p>Overall it was a good first day, I wish I could&#8217;ve attended the intro to AOP with AspectJ presentations but hopefully I can pick up that material from the presentations. Tomorrow (7/30) morning I am planing on checking out the unit testing with Jython from Stuart Halloway and Killer Web UIs from David Geary. The afternoon is still up on the air for now. More updates tomorrow!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2005/07/nfjs-dsss-day-one.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFJS Desert Southwest Software Symposium</title>
		<link>http://www.octavioheredia.com/blog/archives/2005/07/nfjs-desert-southwest-software-symposium.php</link>
		<comments>http://www.octavioheredia.com/blog/archives/2005/07/nfjs-desert-southwest-software-symposium.php#comments</comments>
		<pubDate>Fri, 29 Jul 2005 06:58:57 +0000</pubDate>
		<dc:creator>Octavio</dc:creator>
				<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.octavioheredia.com/wp/?p=366</guid>
		<description><![CDATA[Tomorrow starts the Desert Southwest Software Symposium organized by the No Fluff Just Stuff folks. I attended last year&#8217;s conference and walked away with a few ideas to improve our development environment.
This year I will be catching a couple presentations on Ruby as well as some about test-driven development. Instead of focusing on our platform, [...]]]></description>
			<content:encoded><![CDATA[<p>Tomorrow starts the <a href="http://www.nofluffjuststuff.com/sh/2005-07-phoenix">Desert Southwest Software Symposium</a> organized by the No Fluff Just Stuff folks. I attended <a href="http://www.octavioheredia.com/blog/archives/2004/07/nfjs_in_phoenix.php">last year&#8217;s</a> conference and walked away with a few ideas to improve our development environment.</p>
<p>This year I will be catching a couple presentations on Ruby as well as some about test-driven development. Instead of focusing on our platform, I would like to address our actual development methodology. I will post more details about the presentations that I actually end up attending.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.octavioheredia.com/blog/archives/2005/07/nfjs-desert-southwest-software-symposium.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
