<?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>yalamber.com</title>
	<atom:link href="http://blog.yalamber.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yalamber.com</link>
	<description>About me, my learnings and more..</description>
	<lastBuildDate>Mon, 28 Jun 2010 15:03:46 +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>tutorial.Wpexpo.com</title>
		<link>http://blog.yalamber.com/2010/06/28/tutorial-wpexpo-com/</link>
		<comments>http://blog.yalamber.com/2010/06/28/tutorial-wpexpo-com/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 15:03:19 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=245</guid>
		<description><![CDATA[I will be blogging tutorials on wordpress at http://tutorial.wpexpo.com . Let me know what you want to know about wordpress. I will try my best to put it up at tutorial.wpexpo.]]></description>
			<content:encoded><![CDATA[<p>I will be blogging tutorials on wordpress at <a href="http://tutorial.wpexpo.com">http://tutorial.wpexpo.com</a> . Let me know what you want to know about wordpress. I will try my best to put it up at tutorial.wpexpo.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/06/28/tutorial-wpexpo-com/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>wordpress 3.0 is out now</title>
		<link>http://blog.yalamber.com/2010/06/18/wordpress-3-0-is-out-now/</link>
		<comments>http://blog.yalamber.com/2010/06/18/wordpress-3-0-is-out-now/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 05:22:24 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/2010/06/18/wordpress-3-0-is-out-now/</guid>
		<description><![CDATA[yes a long awaited wordpress 3.0 is out now. Go download it from wordpress.org now and update your website.]]></description>
			<content:encoded><![CDATA[<p>yes a long awaited wordpress 3.0 is out now. Go download it from wordpress.org now and update your website.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/06/18/wordpress-3-0-is-out-now/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>empire avenue badge widget</title>
		<link>http://blog.yalamber.com/2010/06/08/empire-avenue-badge-widget/</link>
		<comments>http://blog.yalamber.com/2010/06/08/empire-avenue-badge-widget/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 11:15:03 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=236</guid>
		<description><![CDATA[This will add empire avenue badge widget to your blog. I did this plugin for Kublé AG Download Download plugin Installation Upload the empire avenue badge widget plugin to your blog, Activate it. Go to widget management page and select &#8230; <a href="http://blog.yalamber.com/2010/06/08/empire-avenue-badge-widget/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This will add empire avenue badge widget to your blog. I did this plugin for <a href="http://kuble.com">Kublé AG</a><br />
<strong>Download</strong><br />
<a href="http://blog.yalamber.com/empire-avenue-badge-widget.zip">Download plugin</a><br />
<strong>Installation</strong><br />
Upload the empire avenue badge widget plugin to your blog, Activate it.<br />
Go to widget management page and select the widget empire avenue badge and put in desired sidebar.<br />
You&#8217;re done!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/06/08/empire-avenue-badge-widget/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My first post using mastory on n900</title>
		<link>http://blog.yalamber.com/2010/06/07/my-first-post-using-mastory-on-n900/</link>
		<comments>http://blog.yalamber.com/2010/06/07/my-first-post-using-mastory-on-n900/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 09:59:48 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/2010/06/07/my-first-post-using-mastory-on-n900/</guid>
		<description><![CDATA[Hi this post is just to say hello world as m using my n900 to post this blog.]]></description>
			<content:encoded><![CDATA[<p>Hi this post is just to say hello world as m using my n900 to post this blog. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/06/07/my-first-post-using-mastory-on-n900/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>upgrade your n900 to pr1.2</title>
		<link>http://blog.yalamber.com/2010/05/28/upgrade-your-n900-to-pr1-2/</link>
		<comments>http://blog.yalamber.com/2010/05/28/upgrade-your-n900-to-pr1-2/#comments</comments>
		<pubDate>Fri, 28 May 2010 05:57:50 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=231</guid>
		<description><![CDATA[Today i flashed my n900 to new firmware pr1.2 There are lot&#8217;s of improvement over it&#8217;s previous versions. I am going to show you a step forward way to flash your n900 to pr1.2 from your windows pc. 1.Go here: &#8230; <a href="http://blog.yalamber.com/2010/05/28/upgrade-your-n900-to-pr1-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today i flashed my n900 to new firmware pr1.2 There are lot&#8217;s of improvement over it&#8217;s previous versions. I am going to show you a step forward way to flash your n900 to pr1.2 from your windows pc.<br />
1.Go here: http://tablets-dev.nokia.com/nokia_N900.php<br />
2.Input your IMEI no. that you can get from settings &gt; about product.<br />
3.Download the PR 1.2 version 10.2010.19-1 from the download list.</p>
<p>http://tablets-dev.nokia.com/nokia_N900.php?f=RX-51_2009SE_10.2010.19-1_PR_COMBINED_MR0_ARM.bin</p>
<p>4.Download flasher from here: http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2.exe<br />
5. Install flasher in your pc.<br />
6.Copy the downloaded pr1.2 image file to the flasher installed location. that would probably be at C:\Program Files\maemo\flasher-3.5 folder.<br />
7.Open command prompt.<br />
8.Change the directory to the flasher using the command cd C:\Program Files\maemo\flasher-3.5<br />
9.Switch off your device and then press and hold the u key on the n900 keyboard and connect your usb cable  to the pc and your n900. Your device should be now set to the flashing mode. A usb icon should appear on the upper right hand corner.<br />
10. Run following command on the command prompt.<br />
flasher-3.5.exe -F RX-51_2009SE_10.2010.19-1_PR_COMBINED_MR0_ARM.bin -f -R<br />
This should execute a series of command and reboot your n900 to latest pr1.2 maemo successfully.</p>
<p>I SEE GOOD BATTERY IMPROVEMENTs IN THIS VERSION</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/05/28/upgrade-your-n900-to-pr1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Breadcrumb generator function</title>
		<link>http://blog.yalamber.com/2010/05/07/breadcrumb-generator-function/</link>
		<comments>http://blog.yalamber.com/2010/05/07/breadcrumb-generator-function/#comments</comments>
		<pubDate>Fri, 07 May 2010 13:01:54 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=227</guid>
		<description><![CDATA[Here is a piece of code i used for generating breadcrumbs for one of my project. Function for generating breadcrumb first parameter an array with key and values, value is used for link where as keys are used for link &#8230; <a href="http://blog.yalamber.com/2010/05/07/breadcrumb-generator-function/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a piece of code i used for generating breadcrumbs for one of my project.</p>
<p><strong>Function for generating breadcrumb</strong></p>
<p>first parameter an array with key and values, value is used for link where as keys are used for link name.</p>
<p>second optional parameter for sending class of ul in the breadcrumb listing.</p>
<pre class="brush: php">
&lt;?php
function breadcrumb_generate($paths = array(), $ul_class = &#039;breadcrumb&#039;)
{
	$forward_icon = &#039;&lt;img src=&quot;&#039;.base_url().&#039;images/front_img/icons/forward.png&quot; alt=&quot;&amp;raquo;&quot; /&gt;&#039;;
    $breadcrumb = &#039;&lt;ul class=&quot;&#039;.$ul_class.&#039;&quot;&gt;&#039;;
	$i=1;
	$total_paths = count($paths);
	foreach($paths as $path=&gt;$link)
	{
		if($link!=&#039;nolink&#039;)
		{
			$breadcrumb .= &#039;&lt;li&gt;&lt;span&gt;&lt;a href=&quot;&#039;.site_url($link).&#039;&quot;&gt;&#039;.$path.&#039;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&#039;;
		}
		else
		{
			$breadcrumb .= &#039;&lt;li&gt;&lt;span&gt;&#039;.$path.&#039;&lt;/span&gt;&lt;/li&gt;&#039;;
		}
		$i++;
	}
	$breadcrumb .= &#039;&lt;/ul&gt;&#039;;

	return $breadcrumb;
}
?&gt;
</pre>
<p><strong>usage</strong></p>
<pre class="brush: php">

&lt;?php echo breadcrumb_generate(array(&#039;Home&#039;=&gt;&#039;&#039;, &#039;Group&#039;=&gt;&#039;group/browse&#039;, ucfirst($row-&gt;name)=&gt;&#039;group/&#039;.$row-&gt;permalink, &#039;Forum&#039;=&gt;&#039;group/&#039;.$row-&gt;permalink.&#039;/topic&#039;, $topic_row-&gt;title=&gt;&#039;nolink&#039;), &#039;topicBreadcrumb&#039;);?&gt;
</pre>
<p>css styles for listing breadcrumbs</p>
<pre class="brush: css">
ul.breadcrumb{
	padding-top:5px;
	width:400px;
}
ul.breadcrumb li{
	float:left;
	list-style:none;
	background:url(../images/front_img/icons/forward.png) no-repeat 0.2em 0;
	padding-left:17px;
}
ul.breadcrumb li span{
	padding:5px;
}
ul.breadcrumb li span:hover{
	padding:4px;
	border:1px solid #090;
	-moz-border-radius:5px; -webkit-border-radius:5px;

}
ul.breadcrumb li:first-child{
	background:none;
	padding-left:0px;
}
</pre>
<p>This is just a rough usage of this function. you can hack it up and use as needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/05/07/breadcrumb-generator-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>changing timezone and locale for time in wordpress</title>
		<link>http://blog.yalamber.com/2010/05/07/changing-timezone-and-locale-for-time-in-wordpress/</link>
		<comments>http://blog.yalamber.com/2010/05/07/changing-timezone-and-locale-for-time-in-wordpress/#comments</comments>
		<pubDate>Fri, 07 May 2010 12:50:14 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=225</guid>
		<description><![CDATA[In a recent project i had to change the time displayed in the wordpress posts to spanish language. I think there are other better ways than mine to change the time and locale in wordpress but what i came up &#8230; <a href="http://blog.yalamber.com/2010/05/07/changing-timezone-and-locale-for-time-in-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In a recent project i had to change the time displayed in the wordpress posts to spanish language. I think there are other better ways than mine to change the time and locale in wordpress but what i came up with quickly was to set the locale to spanish and then use strftime function to change the time to spanish language.</p>
<ol>
<li>set the locale in the theme header.php file.<br />
setlocale(LC_ALL, &#8216;es_ES.UTF8&#8242;); //at the very top of the theme header file.</li>
<li>using strftime function to change the time in the wordpress loop function.<br />
&lt;?php echo strftime(&#8220;%A, %d&#8221;,strtotime(get_the_time(&#8216;d M Y&#8217;)));?&gt; de &lt;?php echo strftime(&#8220;%B&#8221;,strtotime(get_the_time(&#8216;d M Y&#8217;)));?&gt; de &lt;?php echo strftime(&#8220;%Y&#8221;, strtotime(get_the_time(&#8216;d M Y&#8217;)));?&gt;</li>
</ol>
<p>This was how i set the locale for time to spanish in wordpress. if you have better ways out please comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/05/07/changing-timezone-and-locale-for-time-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dynamic database based routing with codeigniter</title>
		<link>http://blog.yalamber.com/2010/03/31/dynamic-database-based-routing-with-codeigniter/</link>
		<comments>http://blog.yalamber.com/2010/03/31/dynamic-database-based-routing-with-codeigniter/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 17:45:11 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[codeigniter]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=214</guid>
		<description><![CDATA[Ever wanted to generate routing from database with codeigniter? I had to for one of my recent project. Here goes the detailed instruction on doing it. Extend the Router class. Create new file My_Router.php in your application libraries folder with &#8230; <a href="http://blog.yalamber.com/2010/03/31/dynamic-database-based-routing-with-codeigniter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to generate routing from database with codeigniter? I had to for one of my recent project. Here goes the detailed instruction on doing it.<br />
Extend the Router class. Create new file My_Router.php in your application libraries folder with following content. </p>
<pre class="brush: php">
class MY_Router extends CI_Router {

    function MY_Router()
    {
        parent::CI_Router();
    }

    function _validate_request($segments)
    {
        // Does the requested controller exist in the root folder?
        if (file_exists(APPPATH.&#039;controllers/&#039;.$segments[0].EXT))
        {
            return $segments;
        }

        // Is the controller in a sub-folder?
        if (is_dir(APPPATH.&#039;controllers/&#039;.$segments[0]))
        {
            // Set the directory and remove it from the segment array
            $this-&gt;set_directory($segments[0]);
            $segments = array_slice($segments, 1);

            if (count($segments) &gt; 0)
            {
                // Does the requested controller exist in the sub-folder?
                if ( ! file_exists(APPPATH.&#039;controllers/&#039;.$this-&gt;fetch_directory().$segments[0].EXT))
                {
                    show_404($this-&gt;fetch_directory().$segments[0]);
                }
            }
            else
            {
                $this-&gt;set_class($this-&gt;default_controller);
                $this-&gt;set_method(&#039;index&#039;);

                // Does the default controller exist in the sub-folder?
                if ( ! file_exists(APPPATH.&#039;controllers/&#039;.$this-&gt;fetch_directory().$this-&gt;default_controller.EXT))
                {
                    $this-&gt;directory = &#039;&#039;;
                    return array();
                }

            }
            return $segments;
        }

	$user_routes = $this-&gt;user_routing($segments);
	if($user_routes !== FALSE)
	{
		return $user_routes;
	}

        show_404($segments[0]);
    }

function user_routing($segments)
	{
		if($this-&gt;check_username_exist($segments[0]))
		{
			//only profile
			if(count($segments)==1)
			{
				return array(&#039;user&#039;,&#039;profile&#039;,$segments[0]);
			}
		}
		return FALSE;
	}

	function check_username_exist($username)
	{
		//connect to database and find the category
		include(APPPATH.&#039;config/database&#039;.EXT);

		$conn = mysql_connect($db[&#039;default&#039;][&#039;hostname&#039;], $db[&#039;default&#039;][&#039;username&#039;], $db[&#039;default&#039;][&#039;password&#039;]);
		mysql_select_db($db[&#039;default&#039;][&#039;database&#039;],$conn);
		$sql = sprintf(&quot;SELECT COUNT(id) as count FROM users WHERE username = &#039;%s&#039;&quot;, mysql_real_escape_string($username));
		$query = mysql_query($sql);
		$row = mysql_fetch_object($query);
		mysql_close($conn);
		if($row-&gt;count)
		{
			return TRUE;
		}
		return FALSE;
	}
}
</pre>
<p>The above code checks for the username in database table user and routes them to controller user/profile. Offcourse you could use simple routing rules but there can be case when you specifically route for the records in the database only. So this method comes handy in that condition.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/03/31/dynamic-database-based-routing-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using phpQuery with codeigniter</title>
		<link>http://blog.yalamber.com/2010/03/31/using-phpquery-with-codeigniter/</link>
		<comments>http://blog.yalamber.com/2010/03/31/using-phpquery-with-codeigniter/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 15:42:43 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[phpQuery]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=209</guid>
		<description><![CDATA[phpQuery is very useful for server based DOM manipulation. Where jquery is famous for client side Dom manipulation and traversing. Here comes phpQuery based on jquery for server Dom manipulation. Recently i needed to use phpQuery in one of my &#8230; <a href="http://blog.yalamber.com/2010/03/31/using-phpquery-with-codeigniter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>phpQuery is very useful for server based DOM manipulation. Where jquery is famous for client side Dom manipulation and traversing. Here comes phpQuery based on jquery for server Dom manipulation.</p>
<p>Recently i needed to use phpQuery in one of my project based on codeigniter. I would like to show you ease of usage of phpquery for dom manipulation and getting it to work with codeigniter. First get the phpQuery <a href="http://code.google.com/p/phpquery/" target="_blank">http://code.google.com/p/phpquery/</a></p>
<p>Extract the phpquery you will get several folders like api-reference, cli, jqueryServer, phpQuery, test-cases.. copy the phpQuery  folder and drop it in to libraries folder of you codeigniter application.</p>
<p>Now to use it in any of your controller.</p>
<p>do this:</p>
<pre class="brush: php">

class PhpQueryTest extends Controller{

function PhpQueryTest(){

parent::Controller();

}

function index(){

//include phpQuery for dom manipulations
require_once(&#039;application/libraries/phpQuery/phpQuery.php&#039;);
//getting html from url
$html = @file_get_contents(&#039;http://www.yalamber.com&#039;);
//response from the curl
$html = $response;
$doc = phpQuery::newDocument($html);

//getting title of the url

$title = $doc[&#039;title&#039;]-&amp;amp;amp;gt;text();

echo &#039;title of the site is &#039;. $title;

//here title is the selector you can use any selector like # for id and .(dot) for class similar to jquery and the function like text(), html() etc similar to jquery. I will add more tutorial on phpquery like getting video embed code from site and other parts later.

}

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/03/31/using-phpquery-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some useful documentation in chm format</title>
		<link>http://blog.yalamber.com/2010/03/30/some-useful-documentation-in-chm-format/</link>
		<comments>http://blog.yalamber.com/2010/03/30/some-useful-documentation-in-chm-format/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 14:57:58 +0000</pubDate>
		<dc:creator>yalamber</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.yalamber.com/?p=206</guid>
		<description><![CDATA[Here are some of the useful documentations in chm format. Mysql -&#62; http://downloads.mysql.com/docs/refman-5.0-en.chm php -&#62; http://www.php.net/get/php_manual_en.chm/from/a/mirror jquery -&#62; http://www.mediafire.com/?mgmrt0ehzyz&#38;sref=]]></description>
			<content:encoded><![CDATA[<p>Here are some of the useful documentations in chm format.</p>
<p>Mysql -&gt; <a href="http://downloads.mysql.com/docs/refman-5.0-en.chm" target="_blank">http://downloads.mysql.com/docs/refman-5.0-en.chm</a></p>
<p>php -&gt; <a href="http://www.php.net/get/php_manual_en.chm/from/a/mirror" target="_blank">http://www.php.net/get/php_manual_en.chm/from/a/mirror</a></p>
<p>jquery -&gt; <a href="http://www.mediafire.com/?mgmrt0ehzyz&amp;sref=" target="_blank">http://www.mediafire.com/?mgmrt0ehzyz&amp;sref=</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.yalamber.com/2010/03/30/some-useful-documentation-in-chm-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
