<?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>udkology.com</title>
	<atom:link href="http://idevelop.udkology.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://idevelop.udkology.com</link>
	<description></description>
	<lastBuildDate>Wed, 25 Nov 2009 04:19:50 +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>Creating a FireFox addon and/or toolbar : Tips and tricks</title>
		<link>http://idevelop.udkology.com/creating-a-firefox-addon-andor-toolbar-tips-and-tricks/</link>
		<comments>http://idevelop.udkology.com/creating-a-firefox-addon-andor-toolbar-tips-and-tricks/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 04:19:50 +0000</pubDate>
		<dc:creator>Uday Kalbhor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://idevelop.udkology.com/?p=14</guid>
		<description><![CDATA[In order to implement an idea that I had, I needed to create a FireFox toolbar. This post is a log about that journey, what I learnt, and what guides, tutorials &#38; tips that I found useful.
Any application, web or native, can broadly be broken down into two major sections. The backend logic part and [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>In order to implement an idea that I had, I needed to create a FireFox toolbar. This post is a log about that journey, what I learnt, and what guides, tutorials &amp; tips that I found useful.</p></blockquote>
<p>Any application, web or native, can broadly be broken down into two major sections. The backend logic part and the front end GUI part.</p>
<p>In a web application for example, the front end is defined by HTML and CSS while the backed is composed of Javascript working with a server side scripting language.</p>
<p>The same case applies to FireFox toolbars/addon. In this case, the GUI front end is defined by using an XML format called <a title="XUL" href="http://en.wikipedia.org/wiki/XUL">XUL</a> (spelled &#8216;zool&#8217;)  and CSS and the logic is implemented by using Javascript.</p>
<p>That&#8217;s really the concept behind it. Design using XUL and CSS implement logic using Javascript.</p>
<p>Other things that include the development process are installation file, jar files and proper packaging of the addon.These</p>
<p>have been included in the following tutorials and I think it redundant to re-write about them over here.</p>
<p><a href="http://www.captain.at/howto-firefox-statusbar-tutorial.php">http://www.captain.at/howto-firefox-statusbar-tutorial.php</a> &#8211; Excellent SINGLE page tutorial. A bit outdated though.<br />
<a href="http://www.rietta.com/firefox/Tutorial/env.html">http://www.rietta.com/firefox/Tutorial/env.html</a> &#8211;  Another good tutorial that goes in depth about the development process.</p>
<p>For XUL, I found <a href="https://developer.mozilla.org/en/XUL_reference">https://developer.mozilla.org/en/XUL_reference</a> to be infinitely useful. It contains all the XUL elements,their properties and description. Do go through it after you first get a gist of XUL from the above tutorials.</p>
<blockquote><p>Here are fewof the tips I would give to new users, miniscule things that should be kept in mind while developing an addon.</p></blockquote>
<p>1&gt; <a href="http://idevelop.udkology.com/wp-content/uploads/2009/11/make.bat">Here is the .bat (Windows)</a> that I use for packaging the addons. Go through it and change a few variables-folder names inside it. You may also need the command line zip utility found at http://www.info-zip.org/</p>
<p>2&gt; The browser element in XUL, HAS to be enclosed in a groupbox element. Further, the groupbox element may not contain other elements or may not have an id or a class.<br />
<code><br />
&lt;groupbox&gt;<br />
&lt;browser type="content" src="http://google.com" id="my-browser" height="50" /&gt;<br />
&lt;/groupbox&gt;<br />
</code><br />
3&gt; In install.rdf, do not mess with &#8216;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&#8217; . This tag uniquely identifies<br />
Firefox and tells the browser that the addon is intended for FireFox.</p>
<p>4&gt;<br />
<code><br />
&lt;statusbar id="status-bar"&gt;<br />
&lt;statusbarpanel id="mypanel" label="Browse" onclick="openBrowser();" /&gt;<br />
&lt;/statusbar&gt;<br />
</code></p>
<p>If you want to customize the original FireFox statusbar, keep the id &#8217;status-bar&#8217;. This identifies the original FF statusbar. If you assign a differnt value to it, FF will create abother statusbar.</p>
<p>I guess that should do it. Will most probably add more tips as and when I learn about them.</p>
]]></content:encoded>
			<wfw:commentRss>http://idevelop.udkology.com/creating-a-firefox-addon-andor-toolbar-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switch Ranges in PHP</title>
		<link>http://idevelop.udkology.com/switch-ranges-in-php/</link>
		<comments>http://idevelop.udkology.com/switch-ranges-in-php/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 06:12:13 +0000</pubDate>
		<dc:creator>Uday Kalbhor</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php switch ranges]]></category>

		<guid isPermaLink="false">http://idevelop.udkology.com/?p=5</guid>
		<description><![CDATA[You have to admit it.
The switch statement in PHP vis-a-vis to other language counter parts is very versatile and powerful.
It has support for  switching integer as well as characters and strings.
Further, as I discovered it the other day, it also supports ranges !.
[code lang="php"]
  switch(true)
    {
     case [...]]]></description>
			<content:encoded><![CDATA[<p>You have to admit it.</p>
<p>The switch statement in PHP vis-a-vis to other language counter parts is very versatile and powerful.</p>
<p>It has support for  switching integer as well as characters and strings.</p>
<p>Further, as I discovered it the other day, it also supports ranges !.</p>
<pre>[code lang="php"]
  switch(true)
    {
     case ($i==6):
        doSomething();
     break;
     case ($i >= 8 &#038;&#038; $i <= 17):
         rangedData();
     break;
   }

[/code]</pre>
<p>So basically, the 'case' statements can evaluate conditions. Conditional statements always return a true or a false.<br />
Notice that we are switching 'true'. So we are saying , if ($i==6) is true, then proceed to the block and then break.</p>
<p> This evaluations in case statements along with the 'break;' and 'continue;' combinations make the PHP switch so powerful that it can completely replace the 'if...else' statements while keeping the code elegant !</p>
]]></content:encoded>
			<wfw:commentRss>http://idevelop.udkology.com/switch-ranges-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

