<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Lost-In-Code</title>
	
	<link>http://www.lost-in-code.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sat, 28 Jun 2008 23:30:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Lost-in-code" type="application/rss+xml" /><feedburner:emailServiceId>1174848</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>Wordpress : Using jQuery library with your plugin or theme</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/322296278/</link>
		<comments>http://www.lost-in-code.com/57/wordpress-using-jquery-library-with-your-plugin-or-theme/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 23:20:05 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[Wordpress Plugins]]></category>

		<category><![CDATA[Wordpress Themes]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[library]]></category>

		<category><![CDATA[noconflict]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=57</guid>
		<description>When you develop a Wordpress plugin or theme, you might want to make use of the jQuery library included and distributed with the Wordpress package.

The jQuery library is located inside the &amp;#8220;wp-includes/js/jquery/&amp;#8221; folder. Even though you know what the location of the jQuery library is, I do not recommend that you reference this script using [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/322296278" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/57/wordpress-using-jquery-library-with-your-plugin-or-theme/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/57/wordpress-using-jquery-library-with-your-plugin-or-theme/</feedburner:origLink></item>
		<item>
		<title>Wordpress : Translate a Plugin</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/320141839/</link>
		<comments>http://www.lost-in-code.com/48/wordpress-translate-a-plugin/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 00:32:38 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[Wordpress Plugins]]></category>

		<category><![CDATA[language]]></category>

		<category><![CDATA[localization]]></category>

		<category><![CDATA[localize]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[translate]]></category>

		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=48</guid>
		<description>First off, you have to know that not all Wordpress plugins can be translated. The plugin developer(s) had to take the necessary steps such as using the Wordpress __() and _e() functions and load_plugin_textdomain() in order to parse the strings/text of the plugin through the localization system.

If you have a plugin with the ability of [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/320141839" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/48/wordpress-translate-a-plugin/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/48/wordpress-translate-a-plugin/</feedburner:origLink></item>
		<item>
		<title>Wordpress : Using Javascript libraries with your plugin or theme</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/316971428/</link>
		<comments>http://www.lost-in-code.com/47/wordpress-using-javascript-libraries-with-your-plugin-or-theme/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 15:58:16 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[Wordpress Plugins]]></category>

		<category><![CDATA[Wordpress Themes]]></category>

		<category><![CDATA[add javascript]]></category>

		<category><![CDATA[libraries]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[themes]]></category>

		<category><![CDATA[wp_enqueue_script]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=47</guid>
		<description>When you develop a Wordpress plugin or theme, you might want to make use of some of the Javascript libraries distributed with the Wordpress package such as Prototype, Scriptaculous and jQuery.

Simple enough, they are in the &amp;#8220;wp-includes/js/&amp;#8221; folder, so what more is there to it? Can&amp;#8217;t I just add a SCRIPT tag in the HEAD [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/316971428" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/47/wordpress-using-javascript-libraries-with-your-plugin-or-theme/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/47/wordpress-using-javascript-libraries-with-your-plugin-or-theme/</feedburner:origLink></item>
		<item>
		<title>PHP : Date difference in days</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/313938159/</link>
		<comments>http://www.lost-in-code.com/45/php-date-difference-in-days/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 16:13:00 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[date]]></category>

		<category><![CDATA[days]]></category>

		<category><![CDATA[difference]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[subtract]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=45</guid>
		<description>You might need to calculate the date difference in days using PHP. You can easily calculate the days difference by using something like the code below.

&amp;#60;?php
//date in the past.
$date1 = &amp;#34;2008-04-11&amp;#34;;
//current date.
$date2 = date&amp;#40;&amp;#34;Y-m-d&amp;#34;, time&amp;#40;&amp;#41;&amp;#41;;
//calculate the difference in seconds.
$difference = abs&amp;#40;strtotime&amp;#40;$date2&amp;#41; - strtotime&amp;#40;$date1&amp;#41;&amp;#41;;
//calculate the number of days
$days = round&amp;#40;&amp;#40;&amp;#40;&amp;#40;$difference/60&amp;#41;/60&amp;#41;/24&amp;#41;, 0&amp;#41;;
?&amp;#62;
The code shown above takes the [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/313938159" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/45/php-date-difference-in-days/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/45/php-date-difference-in-days/</feedburner:origLink></item>
		<item>
		<title>Hash sign/symbol on the Macbook</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/310965424/</link>
		<comments>http://www.lost-in-code.com/44/hash-signsymbol-on-the-macbook/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 06:02:33 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[hash]]></category>

		<category><![CDATA[keyboard]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[macbook]]></category>

		<category><![CDATA[pound]]></category>

		<category><![CDATA[shortcut]]></category>

		<category><![CDATA[sign]]></category>

		<category><![CDATA[symbol]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=44</guid>
		<description>I had to get a new notebook yesterday after spilling a cup of green tea on my Macbook pro. I&amp;#8217;ve spilled some liquids on it before, but this time the keyboard and trackpad stopped working completely.

After using the Macbook for a few minutes, I realized that it doesn&amp;#8217;t have a hash symbol, also known as [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/310965424" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/44/hash-signsymbol-on-the-macbook/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/44/hash-signsymbol-on-the-macbook/</feedburner:origLink></item>
		<item>
		<title>PHP : Array to Object</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/284983170/</link>
		<comments>http://www.lost-in-code.com/39/php-array-to-object/#comments</comments>
		<pubDate>Tue, 06 May 2008 23:04:20 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[array]]></category>

		<category><![CDATA[convert]]></category>

		<category><![CDATA[object]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=39</guid>
		<description>I wrote a quick and simple function which allows you to quickly convert arrays to objects. It allows you to change an array like this :

$a&amp;#91;&amp;#8216;b&amp;#8217;&amp;#93;;
To an object like this :
$a -&amp;#62; b;
Below is the function. Have fun!
&amp;#60;?php
function array_to_object&amp;#40;$array = array&amp;#40;&amp;#41;&amp;#41; &amp;#123;
&amp;#160; &amp;#160; if &amp;#40;!empty&amp;#40;$array&amp;#41;&amp;#41; &amp;#123;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; $data = false;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/284983170" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/39/php-array-to-object/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/39/php-array-to-object/</feedburner:origLink></item>
		<item>
		<title>Wordpress : get_pages</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/283308673/</link>
		<comments>http://www.lost-in-code.com/38/wordpress-get_pages/#comments</comments>
		<pubDate>Sun, 04 May 2008 12:51:05 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[get_pages]]></category>

		<category><![CDATA[pages]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=38</guid>
		<description>The Wordpress get_pages function works similar to the get_posts function which fetches posts from the database by criteria. The get_pages function takes different arguments and allows you to take control of parent and child pages as you execute the function.

Usage :
&amp;#60;?php $pages = get_pages&amp;#40;$arguments&amp;#41;; ?&amp;#62;
Example :
&amp;#60;?php
$arguments = array&amp;#40;
&amp;#160; &amp;#160; &amp;#8216;child_of&amp;#8217;&amp;#160; &amp;#160; &amp;#160; =&amp;#62;&amp;#160; 0,
&amp;#160; &amp;#160; [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/283308673" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/38/wordpress-get_pages/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/38/wordpress-get_pages/</feedburner:origLink></item>
		<item>
		<title>Embed Quicktime Movie</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/279886155/</link>
		<comments>http://www.lost-in-code.com/37/embed-quicktime-movie/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 05:36:23 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[HTML/XHTML]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[.mov]]></category>

		<category><![CDATA[.mp4]]></category>

		<category><![CDATA[.mpeg]]></category>

		<category><![CDATA[embed]]></category>

		<category><![CDATA[movie]]></category>

		<category><![CDATA[object]]></category>

		<category><![CDATA[quicktime]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=37</guid>
		<description>Embedding a Quicktime movie player into your webpage work similarly to embedding Flash files, making use of the OBJECT, EMBED and PARAM tags inside your HTML code. You can play .MOV, .MP4 and .MPEG files with the embedded Quicktime movie player.

As you might know (or have noticed), the Internet Explorer 7 rendering engine &amp;#8220;blocks&amp;#8221; these [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/279886155" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/37/embed-quicktime-movie/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/37/embed-quicktime-movie/</feedburner:origLink></item>
		<item>
		<title>HTML : Option Groups/Sections</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/279173118/</link>
		<comments>http://www.lost-in-code.com/35/html-option-groupssections/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 05:05:14 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[HTML/XHTML]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[groups]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[optgroup]]></category>

		<category><![CDATA[option]]></category>

		<category><![CDATA[sections]]></category>

		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=35</guid>
		<description>Have you ever wanted/needed to create a select drop down menu with options divided into sub-sections or groups with labels? See the screenshot below.


You can easily achieve this with HTML by wrapping OPTION tags inside a SELECT tag with an OPTGROUP tag, each with a label attribute in order to create the group caption or [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/279173118" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/35/html-option-groupssections/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/35/html-option-groupssections/</feedburner:origLink></item>
		<item>
		<title>PHP : Strip filename from a URL</title>
		<link>http://feeds.feedburner.com/~r/Lost-in-code/~3/278127146/</link>
		<comments>http://www.lost-in-code.com/34/php-strip-filename-from-a-url/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 06:36:44 +0000</pubDate>
		<dc:creator>lost-in-code</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[filename]]></category>

		<category><![CDATA[path]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[remove]]></category>

		<category><![CDATA[strip]]></category>

		<category><![CDATA[uri]]></category>

		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=34</guid>
		<description>Using PHP, you might need to strip the path from a URL, leaving behind just the filename at the end of the URL. You can achieve this with a regular expression pattern of course, but I have a much simpler solution. See the example code below.

$url = &amp;#34;http://www.domain.com/path/to/file/filename.php&amp;#34;;
$filename = basename&amp;#40;$url&amp;#41;;
echo $filename; //filename.php
And that&amp;#8217;s all there [...]&lt;img src="http://feeds.feedburner.com/~r/Lost-in-code/~4/278127146" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.lost-in-code.com/34/php-strip-filename-from-a-url/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.lost-in-code.com/34/php-strip-filename-from-a-url/</feedburner:origLink></item>
	</channel>
</rss>
