<?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>JamesMarquez.com</title>
	<atom:link href="http://www.jamesmarquez.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jamesmarquez.com</link>
	<description>filipino web applications developer and designer</description>
	<lastBuildDate>Fri, 22 Jan 2010 17:00:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>soulsight</title>
		<link>http://www.jamesmarquez.com/soulsight.html</link>
		<comments>http://www.jamesmarquez.com/soulsight.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 17:00:56 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PSD to Protoype]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=28</guid>
		<description><![CDATA[ This is my recent psd to prototype work (xhtml + css + jquery interactions). Soulsight site was created by just pure html, css, and jquery, with no flash elements.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jamesmarquez.com/wp-content/uploads/2010/01/soulsight.png" alt="soulsight" title="soulsight" width="251" height="304" class="alignleft size-full wp-image-29" /> This is my recent psd to prototype work (xhtml + css + jquery interactions). <a href="http://bit.ly/7bHXgL">Soulsight</a> site was created by just pure html, css, and jquery, with no flash elements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/soulsight.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick way to get the form ID of any form element</title>
		<link>http://www.jamesmarquez.com/quick-way-to-get-the-form-id-of-any-form-element.html</link>
		<comments>http://www.jamesmarquez.com/quick-way-to-get-the-form-id-of-any-form-element.html#comments</comments>
		<pubDate>Sun, 19 Apr 2009 08:13:03 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=26</guid>
		<description><![CDATA[Here&#8217;s a quick snippet to get the form ID from any form element.
$(this).parents("form").attr('id');
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick snippet to get the form ID from any form element.</p>
<p><code>$(this).parents("form").attr('id');</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/quick-way-to-get-the-form-id-of-any-form-element.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP file reading error in Vista</title>
		<link>http://www.jamesmarquez.com/php-file-reading-error-in-vista.html</link>
		<comments>http://www.jamesmarquez.com/php-file-reading-error-in-vista.html#comments</comments>
		<pubDate>Thu, 15 Jan 2009 05:06:28 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[PHP Snippets]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=20</guid>
		<description><![CDATA[I recently encountered this problem on Vista running localhost with XAMPP 1.7
I had this calendar script that loads a template from a given path, but it gives me a timeout error. It was previously running smoothly on an XP machine. After further checking, I found out that the problem was something related to the PHP [...]]]></description>
			<content:encoded><![CDATA[<p>I recently encountered this problem on Vista running localhost with XAMPP 1.7<br />
I had this calendar script that loads a template from a given path, but it gives me a timeout error. It was previously running smoothly on an XP machine. After further checking, I found out that the problem was something related to the PHP function file_get_contents, for sure this was not the problem as it is running okay on XP.</p>
<p>Here&#8217;s part of the script:</p>
<pre>function getCalendarTemplate($strPath)
{
    $content = file_get_contents($strPath);
    return $content;
}
</pre>
<p><span id="more-20"></span></p>
<p>After browsing and searching for some clue, I found with <a rel="nofollow" href="http://www.gaiaonline.com/forum/computers-technology/php-and-vista-are-making-me-go-nuts/t.42697373_1/">this forum</a> that using IP address instead of &#8220;localhost&#8221; on the path solved the problem. I&#8217;ve added extra line prior to file_get_content that replace the &#8220;localhost&#8221; into 127.0.01</p>
<p>Here&#8217;s the script now:</p>
<pre>function getCalendarTemplate($strPath)
{
    $strPath = str_replace('localhost', '127.0.0.1', $strPath);
    $content = file_get_contents($strPath);
    return $content;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/php-file-reading-error-in-vista.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pinoy-Express.com</title>
		<link>http://www.jamesmarquez.com/pinoy-expresscom.html</link>
		<comments>http://www.jamesmarquez.com/pinoy-expresscom.html#comments</comments>
		<pubDate>Fri, 14 Nov 2008 05:25:12 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=15</guid>
		<description><![CDATA[
Type: Web System Development and Design
Client: Pinoy Express Hatid Padala Services, Inc.
Details: Web system and Public information website
Tools: PHP, MySQL, and Photoshop 7
Website: www.pinoy-express.com
This one of my very first project back in 2004
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-16" title="Pinoy-Express.com" src="http://www.jamesmarquez.com/wp-content/uploads/2008/11/px.jpg" alt="Pinoy Express Hatid Padala Services, Inc." width="500" height="395" /></p>
<p>Type: Web System Development and Design<br />
Client: Pinoy Express Hatid Padala Services, Inc.<br />
Details: Web system and Public information website<br />
Tools: PHP, MySQL, and Photoshop 7<br />
Website: <a rel="nofollow" href="http://www.pinoy-express.com" target="_blank">www.pinoy-express.com</a></p>
<p>This one of my very first project back in 2004</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/pinoy-expresscom.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with Google Spreadsheet</title>
		<link>http://www.jamesmarquez.com/playing-with-google-spreadsheet.html</link>
		<comments>http://www.jamesmarquez.com/playing-with-google-spreadsheet.html#comments</comments>
		<pubDate>Wed, 13 Aug 2008 05:28:00 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=13</guid>
		<description><![CDATA[There are a lots of tools on Google spreadsheet that we could use to display live data from a source website into your own website and it keeps get updated when the source is updated.
One good example I tried is getting the 2008 Beijing Olympics Overall Medal Standing, my goal is to have a list [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lots of tools on Google spreadsheet that we could use to display live data from a source website into your own website and it keeps get updated when the source is updated.</p>
<p>One good example I tried is getting the <strong>2008 Beijing Olympics Overall Medal Standing</strong>, my goal is to have a list of medal standing that is updated regularly.<br />
<span id="more-13"></span><br />
The source data is from http://en.beijing2008.cn/ <a href="http://results.beijing2008.cn/WRM/ENG/INF/GL/95A/GL0000000.shtml" rel="nofollow" target="_blank">medal standing page</a></p>
<p><strong>Getting the data</strong><br />
Open up blank/new sheet on your google docs, and on the first cell put this <code>=ImportHtml("http://results.beijing2008.cn/WRM/ENG/INF/GL/95A/GL0000000.shtml", "table",2)</code>. </p>
<p>ImportHtml is a Google function that retrieves info from an HTML file. The first parameter  is the URL of source data, the second parameter indicate that we are going to get a table format, and the last parameter is the index of the query format, in our case the 2nd table from the source html.</p>
<p><strong>Formating the data</strong><br />
In some cases, the result doesn&#8217;t replicate the exact column of the source table most, especially those with colspan that could be the merged cells in spreadsheet, so we are going format it to our own liking and in my case I only want to output the list of countries with their rankings, total golds, silvers, bronze, and their overall total medals. Some regular spreadsheet functions will do the job for formatting.</p>
<p><strong>Generating codes to embed</strong><br />
After formatting, publish the sheet by going to &#8220;Publish&#8221; tab. Check the &#8220;Automatically re-publish when changes are made&#8221; so it will always updated when the source data gets updated. Click &#8220;More publishing options&#8221; this will pop up a new window, and from there select &#8220;HTML to embed in a webpage&#8221; from the File format option, then click on Generate URL button to generate the html code we need.</p>
<p><strong>The Result:</strong><br />
<iframe width='500' height='1000' frameborder='0' src='http://spreadsheets.google.com/pub?key=pRRLUKiz7TCvUvfXXMZDCcA&#038;output=html&#038;gid=1&#038;single=true&#038;range=A1:F100'></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/playing-with-google-spreadsheet.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Video Blog Content</title>
		<link>http://www.jamesmarquez.com/video-blog-content.html</link>
		<comments>http://www.jamesmarquez.com/video-blog-content.html#comments</comments>
		<pubDate>Mon, 11 Aug 2008 00:51:17 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=12</guid>
		<description><![CDATA[
Add relevant video content to your blog.
A WordPress plugin that will search video using the Truveo API and will add video to your content.

Version 1.0:

Add video content automatically base on the post title.

Check the demo at Camp Rock lyrics
Download Now!.
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-5" title="AllBestBlog.com" src="http://www.jamesmarquez.com/wp-content/uploads/2008/06/allbestblog.jpg" alt="" width="400" height="398" /></p>
<p>Add relevant video content to your blog.</p>
<p>A WordPress plugin that will search video using the <a href="http://www.truveo.com" target="_blank">Truveo</a> API and will add video to your content.<br />
<span id="more-12"></span><strong></strong></p>
<p><strong>Version 1.0:</strong></p>
<ul>
<li>Add video content automatically base on the post title.</li>
</ul>
<p>Check the demo at <a title="Camp Rock lyrics" href="http://www.allbestblog.com/hit-lyrics/this-is-me-camp-rock.html">Camp Rock lyrics</a></p>
<p><a href="http://www.jamesmarquez.com/plugins/video_blog_content_1.0.zip" onclick="javascript: pageTracker._trackPageview('/downloads/video-blog-content'); ">Download Now!</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/video-blog-content.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Standard compliant CSS Min Width and Max Width for IE6</title>
		<link>http://www.jamesmarquez.com/css-compliant-min-width-and-max-width-for-ie6.html</link>
		<comments>http://www.jamesmarquez.com/css-compliant-min-width-and-max-width-for-ie6.html#comments</comments>
		<pubDate>Mon, 28 Jul 2008 03:31:10 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[CSS Solutions and Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=11</guid>
		<description><![CDATA[It&#8217;s not actually a pure CSS tricks/hacks, as we all know, IE6 doesn&#8217;t support CSS minimum and maximum width but we can achieve those properties to work using DOM manipulation.
I used jQuery library to make my DOM manipulation simple and easy.
First step, get the CSS min width and max width value defined in the CSS [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not actually a pure CSS tricks/hacks, as we all know, IE6 doesn&#8217;t support CSS minimum and maximum width but we can achieve those properties to work using DOM manipulation.</p>
<p>I used <a title="jQuery" href="http://www.jquery.com/">jQuery</a> library to make my DOM manipulation simple and easy.</p>
<p>First step, get the CSS min width and max width value defined in the CSS file, so that the resizing will still dependent on the CSS properties. I use &#8220;container&#8221; as my div tag ID that wraps up all the html elements.</p>
<pre>  var min_width	= parseInt($('#container').css('min-width'));
  var max_width	= parseInt($('#container').css('max-width'));
</pre>
<p>Here is the function that will resize the container:<span id="more-11"></span></p>
<pre>  function resizeContainer()
  {
    var old_width = document.body.offsetWidth;
    var new_width = old_width;

    if (old_width &gt; max_width)
    {
      new_width = max_width - 40 + 'px';
    }
    else if (old_width &lt; min_width)
    {
      new_width = min_width - 40 + 'px';
    }
    else
    {
      new_width = '96%';
    }

    $('#container').css({width: new_width});
  }
</pre>
<p>Call the resizer function on page load to make the layout render base on the browser&#8217;s width.</p>
<p>On window resize, call the resizer if the min_width and max_width has values. There&#8217;s no reason to resize if the &#8220;container&#8221; in CSS file doesn&#8217;t have min-width and max-width values. Here&#8217;s the code to resize the container on window resize:</p>
<pre>  $(window).resize(function()
  {
    if (min_width!='undefined' &amp;&amp; max_width!='undefined')
    {
      resizeContainer();
    }
  });
</pre>
<p>To wrap it all, here&#8217;s my complete js code:</p>
<pre>$(document).ready(function()
{
  // get the CSS container width values
  var min_width	= parseInt($('#container').css('min-width'));
  var max_width	= parseInt($('#container').css('max-width'));

  // resize the container on page load
  resizeContainer();

  $(window).resize(function()
  {
    if (min_width!='undefined' &amp;&amp; max_width!='undefined')
    {
      resizeContainer();
    }
  });

  function resizeContainer()
  {
    var old_width 	= document.body.offsetWidth;
    var new_width	= old_width;

    if (old_width &gt; max_width)
    {
      new_width = max_width - 40 + 'px';
    }
    else if (old_width &lt; min_width)
    {
      new_width = min_width - 40 + 'px';
    }
    else
    {
      new_width = '96%';
    }

    $('#container').css({width: new_width});
  }
});
</pre>
<p>Save the js code on external file or include the code on the header tag of your document but use  conditional comments so that only IE6 will execute it.</p>
<pre>
&lt;!--[if IE 6]&gt;
&lt;script src="ie6.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/css-compliant-min-width-and-max-width-for-ie6.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>White Beach in Anda Pangasinan</title>
		<link>http://www.jamesmarquez.com/white-beach-in-anda-pangasinan.html</link>
		<comments>http://www.jamesmarquez.com/white-beach-in-anda-pangasinan.html#comments</comments>
		<pubDate>Thu, 24 Jul 2008 01:19:14 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Travel & Leisure]]></category>
		<category><![CDATA[beach resort]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=10</guid>
		<description><![CDATA[Tondol White Beach Resort in Anda Pangasinan, a community base beach resort that has fine white sand and a long stretch of shallow water.

for more info visit Tondol White Beach
]]></description>
			<content:encoded><![CDATA[<p>Tondol White Beach Resort in Anda Pangasinan, a community base beach resort that has fine white sand and a long stretch of shallow water.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="240" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="MagToo" /><param name="name" value="MagToo" /><param name="bgcolor" value="#FFFFFF" /><param name="flashvars" value="tempID=1210121818296&amp;serverURL=http://www.magtoo.com" /><param name="src" value="http://www.magtoo.com/tour.do?method=FlashVarsSender&amp;fl_type=magtooPanorama.swf" /><param name="wmode" value="transparent" /><embed id="MagToo" type="application/x-shockwave-flash" width="400" height="240" src="http://www.magtoo.com/tour.do?method=FlashVarsSender&amp;fl_type=magtooPanorama.swf" wmode="transparent" flashvars="tempID=1210121818296&amp;serverURL=http://www.magtoo.com" bgcolor="#FFFFFF" name="MagToo"></embed></object></p>
<p>for more info visit <a href="http://www.beachresortfinder.com/tondol-white-beach/" title="Anda White Beach - Tondol Anda Pangasinan">Tondol White Beach</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/white-beach-in-anda-pangasinan.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to get the first date of the week in PHP?</title>
		<link>http://www.jamesmarquez.com/how-to-get-the-first-date-of-the-week-in-php.html</link>
		<comments>http://www.jamesmarquez.com/how-to-get-the-first-date-of-the-week-in-php.html#comments</comments>
		<pubDate>Mon, 21 Jul 2008 05:30:45 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[PHP Snippets]]></category>
		<category><![CDATA[code snippets]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=8</guid>
		<description><![CDATA[To get the first date of the current week, you need subtract the numeric representation of the day of the week to the given date, in this case the current date.
The code will return the timestamp of the first date of the current date.

$timestamp = mktime(0, 0, 0, date('m'), date('d') - date('w'), date('Y'));

From the code [...]]]></description>
			<content:encoded><![CDATA[<p>To get the first date of the current week, you need subtract the numeric representation of the day of the week to the given date, in this case the current date.</p>
<p>The code will return the timestamp of the first date of the current date.<br />
<code><br />
$timestamp = mktime(0, 0, 0, date('m'), date('d') - date('w'), date('Y'));<br />
</code></p>
<p>From the code above, we can create functions that will return the first day of the week on any given date.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/how-to-get-the-first-date-of-the-week-in-php.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Truveo Auto Search</title>
		<link>http://www.jamesmarquez.com/truveo-auto-search.html</link>
		<comments>http://www.jamesmarquez.com/truveo-auto-search.html#comments</comments>
		<pubDate>Wed, 25 Jun 2008 04:40:20 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.jamesmarquez.com/?p=4</guid>
		<description><![CDATA[Moved to its appropriate page (Video Blog Content)
]]></description>
			<content:encoded><![CDATA[<p>Moved to its appropriate page (<a href="http://www.jamesmarquez.com/video-blog-content.html" title="Video Blog Content">Video Blog Content</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamesmarquez.com/truveo-auto-search.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
