<?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"
	>

<channel>
	<title>Building Injoos</title>
	<atom:link href="http://injoos.com/blog/buildinginjoos/feed/" rel="self" type="application/rss+xml" />
	<link>http://injoos.com/blog/buildinginjoos</link>
	<description>Just another Injoos.com Blogs weblog</description>
	<pubDate>Mon, 01 Mar 2010 08:27:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>How CSS Sprites helps your websites?</title>
		<link>http://injoos.com/blog/buildinginjoos/2010/02/28/css-sprites-in-your-websites/</link>
		<comments>http://injoos.com/blog/buildinginjoos/2010/02/28/css-sprites-in-your-websites/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 18:00:00 +0000</pubDate>
		<dc:creator>sriku</dc:creator>
		
		<category><![CDATA[Framework]]></category>

		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://injoos.com/blog/buildinginjoos/?p=14</guid>
		<description><![CDATA[<p class="MsoNormal">A conventional websites with multiple images take a long time to load and generates multiple server requests. Think your website has a small logo, a set of icons for comment, like/dislike, navigation, backgrounds images etc. loading all these generates multiple requests and also takes relatively more time to load.</p>
<p class="MsoNormal">Instead if we can load [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F28%2Fcss-sprites-in-your-websites%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/api.tweetmeme.com');"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F28%2Fcss-sprites-in-your-websites%2F" height="61" width="51" /></a></div><p class="MsoNormal">A conventional websites with multiple images take a long time to load and generates multiple server requests. Think your website has a small logo, a set of icons for comment, like/dislike, navigation, backgrounds images etc. loading all these generates multiple requests and also takes relatively more time to load.</p>
<p class="MsoNormal">Instead if we can load all the images that need to be displayed on the web page with just a single request it  reduce the time taken to render the whole web page.</p>
<p class="MsoNormal">An image sprite is a collection of images put into a single image. Image sprites will reduce the number of server requests and save bandwidth.</p>
<p class="MsoNormal"><em>Now How to create sprites?</em></p>
<p class="MsoNormal">You should know bit of Photoshop or any other image editing tool with bit of CSS.</p>
<p class="MsoNormal">First create sprite image by joining all the images that needs to be loaded using any image editing tool (even MS Paint will do but if you are playing with PNG better to use Photoshop and create a single image and do a save for web to optimize the size).</p>
<p class="MsoNormal">Say the image is image_sprite.png</p>
<p class="MsoNormal">Write few CSS classes to serve up the images</p>
<p class="MsoNormal">Example</p>
<p class="MsoNormal">.base { background:url(image_sprite.png);<span> </span>}</p>
<p class="MsoNormal">And say you have a logo of size 40px * 20px</p>
<p class="MsoNormal">Define logo class as</p>
<p class="MsoNormal">.logo { width:40px;height:20px;background-position:0 0; }</p>
<p class="MsoNormal">0 0 in background-position defines left 0px, top 0px of the image.</p>
<p class="MsoNormal">And replace your &lt;img src=”logo.png” /&gt; with &lt;span class=”base logo”&gt; &lt;/span&gt;</p>
<p class="MsoNormal">To get next image just change the background-position of the class with required width and height</p>
<p class="MsoNormal">.comment-icon{ width:16px;height:16px;background-position:-40px 0}</p>
<p class="MsoNormal">And replace your &lt;img src=”comment.png” /&gt; with &lt;span class=”base comment-icon”&gt; &lt;/span&gt;</p>
<p class="MsoNormal">You can use images sprites for anything as long as images in the sprites are small sized (not that you can’t use CSS Sprites for large images but not recommended because big images themselves take more time to load so sprites of big images takes much more render time)</p>
<p class="MsoNormal">You can use css sprites to create effects like on hover change the background etc.</p>
<p class="MsoNormal">A sample code</p>
<p class="MsoNormal">image: sprite.png<br />
<a href="http://injoos.com/blog/buildinginjoos/files/2010/02/sprite.png" ><img class="alignnone size-full wp-image-15" src="http://injoos.com/blog/buildinginjoos/files/2010/02/sprite.png" alt="" width="16" height="125" /></a></p>
<p class="MsoNormal">CSS class for few of the above icons :</p>
<p class="MsoNormal">.plus { background:url(‘sprite.png’);background-position: 0px 0px; width:16px;height:16px;}</p>
<p class="MsoNormal">.alert { background:url(‘sprite.png’);background-position: 0px -26px; width:16px;height:16px;}</p>
<p class="MsoNormal">.black-dot { background:url(‘sprite.png’);background-position: 0px -78px; height:8px;width:8px;}</p>
<p class="MsoNormal">.down { background:url(‘sprite.png’); background-position: 0px -115px; height:10px;width:10px;}</p>
<p class="MsoNormal">So now what are you waiting for enhance your websites performance now</p>
<p class="MsoNormal">Happy coding… <span style="font-family: Wingdings"><span> <img src='http://injoos.com/blog/buildinginjoos/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></span></p>
<p class="MsoNormal">useful links:</p>
<p class="MsoNormal"><a title="http://csssprites.com/" href="http://csssprites.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/csssprites.com');" target="_blank">http://csssprites.com/</a></p>
<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://injoos.com/blog/buildinginjoos/2010/02/28/css-sprites-in-your-websites/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Contributing to FOSS (Free and Open Source Software)</title>
		<link>http://injoos.com/blog/buildinginjoos/2010/02/25/contributing-to-foss-free-and-open-source-software/</link>
		<comments>http://injoos.com/blog/buildinginjoos/2010/02/25/contributing-to-foss-free-and-open-source-software/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 09:13:14 +0000</pubDate>
		<dc:creator>krishna</dc:creator>
		
		<category><![CDATA[Organizations]]></category>

		<category><![CDATA[FOSS]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://injoos.com/blog/buildinginjoos/?p=24</guid>
		<description><![CDATA[<p>Introduction to FOSS</p>
<p>Free and open source software is software which is liberally licensed to grant the right of users to study, change, and improve its design through the availability of its source code. Did you know that Firefox is a Free and Open source software? GNU/Linux, VLC player as well, we can get the source [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F25%2Fcontributing-to-foss-free-and-open-source-software%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/api.tweetmeme.com');"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F25%2Fcontributing-to-foss-free-and-open-source-software%2F" height="61" width="51" /></a></div><p><span style="font-size: medium;"><strong>Introduction to FOSS</strong></span></p>
<p>Free and open source software is software which is liberally licensed to grant the right of users to study, change, and improve its design through the availability of its source code. Did you know that Firefox is a Free and Open source software? GNU/Linux, VLC player as well, we can get the source code of these projects and use it to study and modify it according to our requirements. The code we write will be used by millions of people across the world. Some other famous Free softwares include Apache web server, Eclipse IDE, Sun&#8217;s Java, MySql database management system etc.</p>
<p>Let’s consider one of the projects here and then proceed. The project we are trying to build here is GNUSim8085. It is a 8085 simulator. The code is written in C, the front end is designed using GTK (GTK stands for GIMP Tool Kit, It is the building block of GNOME Desktop Environment on GNU/Linux).</p>
<p><span style="font-size: medium;"><strong>Installing the software</strong></span></p>
<p>One of the pre-requisites for most of the FOSS projects is a Unix/Linux machine. Almost all Open source projects have a domain where they host their project. The official page of the GNUSim8085 project is http://gnusim8085.sourceforge.net/. Here, we can download the program and start using it. The example programs that come bundled with it is sufficient to get a feel of the software. Debian and distributions based on it, like Ubuntu can install it from the command line using the command</p>
<p><strong>$ sudo apt-get instal gnusim8085</strong></p>
<p><span style="font-size: medium;"><strong>Getting the source code</strong></span></p>
<p>The Source code can be downloaded from the same link mentioned before, but this is not the latest source code. This is the code on or before the last release of the software. All the development that happens goes into a directory called the &#8216;trunk&#8217;. This &#8216;trunk&#8217; has the latest code at any point of time. It is maintained with the help of Revision Control system.</p>
<p>Many people across the world will be working on a single project. The Revision control systems are used to synchronize their work. Whenever a developer from one part of the world submits code to this ‘trunk’, the source file must be updated with this newly submitted code. We will see its functionality later on. Some of the Revision control systems widely used in FOSS are SVN (SubVersion) , CVS ( Concurrent Versions System), Git, Bazaar etc..</p>
<p>We can see in the GNUSim8085 website that it uses SVN for managing the project. Along with that they have also provided the URL of the SVN server where the project is hosted. Now we can download the source code from the link provided using the command:</p>
<p><strong>$ svn co https://gnusim8085.svn.sourceforge.net/svnroot/gnusim8085/trunk gnusim8085</strong></p>
<p>Here &#8217;svn&#8217; is the subversion client which will fetch the source code from the link provided and save it in gnusim8085 directory. The &#8216;co&#8217; used in the command is an instruction to the subversion client to &#8216;check out&#8217; (download) the code from the trunk.</p>
<p>If svn is not installed in the system, one can install it by following the instructions from http://subversion.tigris.org/ Debian and distributions based on it, like Ubuntu etc can install it using the command</p>
<p><strong>$ sudo apt-get install subversion</strong></p>
<p><span style="font-size: medium;"><strong>Building the Project</strong></span></p>
<p>Along with this, we will need some compilers to build the GNUSim8085 project. These compilers can be installed from the repositories depending on the Linux distribution one is using. Debian and distributions based on it can install it using the command</p>
<p><strong>$ sudo apt-get install build-essential</strong></p>
<p>We just used the term &#8216;build&#8217;, what exactly does this mean? We might have compiled many programs which are just 40 to 50 lines. When a project grows, we cannot restrict the entire code in a single file, so we have to split them into different files in order to increase the readability. This neat organization comes at a cost; we have to specify the order in which these files must be compiled before the object file is created. It gets more complicated as the project grows. Hence to avoid this, the concept of build system was introduced. With the help of this build system, the user need not worry about the sequence of compilation etc. He/she can concentrate on the implementation aspect of it. The build system generates a &#8216;Makefile&#8217;. This &#8216;Makefile&#8217; is nothing but a set of rules that guides the compiler to compile files of a project in the desired manner thereby eliminating the complication.</p>
<p>Once the compilers are installed, we can start building the GNUSim8085 project. Now we move to the directory where the source code is present.</p>
<p><strong>$ cd gnusim8085</strong></p>
<p>Here, we have to configure all the pre-requisites or dependencies in order to build the software and make use of the configure program.</p>
<p><strong>$ ./configure</strong></p>
<p>‘Error: Cannot find libgtk2.0 &gt;= 2.12.0&#8242;</p>
<p>Here, we will be informed that we do not have libgtk2.0 library. By searching on the internet, we get the exact library name. We can install this using the command:</p>
<p><strong>$ sudo apt-get install libgtk2.0-dev</strong></p>
<p>Once this is installed we proceed with configuring the build system.</p>
<p><strong>$ ./configure</strong></p>
<p>‘Error: Cannot find gtksourceview2 &gt;= 2.2.0&#8242;</p>
<p>This time it asks for the gtksourceview2 package.</p>
<p><strong>$ sudo apt-get install libgtksourceview2.0-dev</strong></p>
<p><strong>$ ./configure</strong></p>
<p>Now we should not come across any errors. If there are any, simply Google the error message, it will provide the solution almost instantaneously. The configure process is complete now.</p>
<p>Now we build the project using the make command</p>
<p><strong>$ make</strong></p>
<p>Once this is complete, the binary file is created in the ‘src’ directory.</p>
<p><strong>$ cd src</strong></p>
<p>This is the directory where all the C source files and the header files are present. All the changes we wish to make must be made here. We shall leave it as it is for time being.</p>
<p><strong>$ ./gnusim8085</strong></p>
<p>This is the program that we have built from the source. This command launches the GNUSim8085 program.</p>
<p><span style="font-size: medium;"><strong>Contribution</strong></span></p>
<p>If you think you can make this program better, then go ahead with your idea, implement it and submit it.</p>
<p>If you are not sure of what to do exactly: The program we are currently running is not 100 % bug free. There are errors! The list of all the bugs is submitted in the project webpage.</p>
<p><strong>https://sourceforge.net/tracker/?group_id=86462</strong></p>
<p>Here we can select either bugs or feature requests, make modifications in the code to fix the bug or provide the needed feature.</p>
<p>Once we have made the necessary changes to the code, the source must be re compiled.</p>
<p><strong>$ cd .. </strong></p>
<p>Moving to the parent directory</p>
<p><strong>$ make</strong></p>
<p>This command carefully compiles the files that were changed since the previous build.</p>
<p><strong>$ cd src</strong></p>
<p><strong>$ ./gnusim8085</strong></p>
<p>The program that executes now is the one with our modifications.</p>
<p>The code I have written works absolutely fine. How do I submit it to the project maintainers? To do that, we need to create something called a patch. Patch is nothing but a &#8216;diff&#8217; file (‘diff’ is a Unix command which gives us the difference between two text files). This diff file is uploaded to the sourceforge.net website where we came across the bug or the feature request.</p>
<p><span style="font-size: medium;"><strong>Generating the patch</strong></span></p>
<p><strong>$ svn diff &gt; Gnusim8085_bugno.patch</strong></p>
<p>Attaching the bug number is a good practice since it can be used to keep track of patches.</p>
<p>This is how one can start contributing to the Free and Open source Software world.</p>
]]></content:encoded>
			<wfw:commentRss>http://injoos.com/blog/buildinginjoos/2010/02/25/contributing-to-foss-free-and-open-source-software/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Managing Date and time differences in two servers in the cloud (virtual server)</title>
		<link>http://injoos.com/blog/buildinginjoos/2010/02/20/managing-date-and-time-differences-in-two-servers-in-the-cloud-virtual-server/</link>
		<comments>http://injoos.com/blog/buildinginjoos/2010/02/20/managing-date-and-time-differences-in-two-servers-in-the-cloud-virtual-server/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 06:50:55 +0000</pubDate>
		<dc:creator>subramanya</dc:creator>
		
		<category><![CDATA[Tools]]></category>

		<category><![CDATA[Cloud]]></category>

		<category><![CDATA[Configuration]]></category>

		<category><![CDATA[Date &amp; Time]]></category>

		<category><![CDATA[NTP]]></category>

		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://injoos.com/blog/buildinginjoos/?p=12</guid>
		<description><![CDATA[<p>When the virtual system boots, it takes the hardware clock from the node (the parent hardware) and sets that as the time.</p>
<p>The OS then adopts that time as the real time.</p>
<p>To fix this for Linux server,</p>
<p>Install Network Time Protocol(NTP), and it is an Internet protocol used to synchronize the clocks
of computers to some time reference</p>
<p>yum [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F20%2Fmanaging-date-and-time-differences-in-two-servers-in-the-cloud-virtual-server%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/api.tweetmeme.com');"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F20%2Fmanaging-date-and-time-differences-in-two-servers-in-the-cloud-virtual-server%2F" height="61" width="51" /></a></div><p>When the virtual system boots, it takes the hardware clock from the node (the parent hardware) and sets that as the time.</p>
<p>The OS then adopts that time as the real time.</p>
<p>To fix this for Linux server,</p>
<p>Install Network Time Protocol(NTP), and it is an Internet protocol used to synchronize the clocks<br />
of computers to some time reference</p>
<p>yum install ntp</p>
<p>Configure the ntp.conf configuration in /etc/ntp.conf</p>
<p>server 127.127.1.0 # local clock<br />
fudge 127.127.1.0 stratum 10<br />
server &lt;&lt;enter-parent-hardware-ip-or-dns&gt;&gt;<br />
server &lt;&lt;enter-parent-hardware-ip-or-dns&gt;&gt;<br />
driftfile /etc/ntp/drift<br />
broadcastdelay 0.008<br />
restrict default notrust nomodify nopeer noserve<br />
authenticate no</p>
<p>Use chkconfig runlevelinformation for system services in linux, ntpd should start service at boot time of virtual server<br />
chkconfig ntpd on<br />
chkconfig &#8211;level 2345 ntpd on<br />
chkconfig &#8211;list ntpd</p>
<p>Start the ntpd deamon<br />
/etc/init.d/ntpd start</p>
]]></content:encoded>
			<wfw:commentRss>http://injoos.com/blog/buildinginjoos/2010/02/20/managing-date-and-time-differences-in-two-servers-in-the-cloud-virtual-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Twitter API using PHP made easier with library oauth_twitter.php</title>
		<link>http://injoos.com/blog/buildinginjoos/2010/02/15/twitter-api-using-php-made-easier-with-library-oauth_twitterphp/</link>
		<comments>http://injoos.com/blog/buildinginjoos/2010/02/15/twitter-api-using-php-made-easier-with-library-oauth_twitterphp/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 06:45:50 +0000</pubDate>
		<dc:creator>basil</dc:creator>
		
		<category><![CDATA[Tools]]></category>

		<category><![CDATA[API]]></category>

		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://injoos.com/blog/buildinginjoos/?p=10</guid>
		<description><![CDATA[<p>OAuth_Twitter.php is a library which makes a layer between your twitter App and Twitter API. If OAuth_Twitter.php is included inside your code, which acts as a gate way for your Application to Twitter API, you can access Twitter data using the methods of this Library.</p>
<p>Setting up the coding environment
As stated above OAuth_Twitter.php uses Zend OAuth [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F15%2Ftwitter-api-using-php-made-easier-with-library-oauth_twitterphp%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/api.tweetmeme.com');"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F15%2Ftwitter-api-using-php-made-easier-with-library-oauth_twitterphp%2F" height="61" width="51" /></a></div><p>OAuth_Twitter.php is a library which makes a layer between your twitter App and Twitter API. If OAuth_Twitter.php is included inside your code, which acts as a gate way for your Application to Twitter API, you can access Twitter data using the methods of this Library.</p>
<p><span style="text-decoration: underline;"><strong>Setting up the coding environment</strong></span><br />
As stated above OAuth_Twitter.php uses Zend OAuth package in its backend. So it requires OAuth package in your code base. This package is included in the latest version of Zend Framework or you can download it from <a href="http://code.google.com/p/oauth-for-php/" onclick="javascript:pageTracker._trackPageview('/outbound/article/code.google.com');">code.google</a>. <img src='http://injoos.com/blog/buildinginjoos/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . Once its done you can <a href="http://github.com/basilbthoppil/oauth_twitter" onclick="javascript:pageTracker._trackPageview('/outbound/article/github.com');">download</a> OAuth_Twitter.php from git repository, and copy to proper include path. A detailed documentation is also provided with this, to make your journey easier.</p>
<p><span style="text-decoration: underline;"><strong>How to use this Library</strong></span><br />
This library provides a class &#8216;OAuth_Twitter&#8217; which accepts your twitter app configuration data which is provided by Twitter at the time of Registering the app. This configurations have to be provided to the class as an array.</p>
<p>$my_twitter = new OAuth_Twitter($configuration);</p>
<p>Most of the functions require twitter authentication to complete. So it will redirect to twitter authentication page, and on successful authentication it will redirect to the callback url of your app . There the app has to save the access token for other functions to work with the same session. This will be done using the following function</p>
<p>$my_twitter-&gt;handleCallback()</p>
<p>DONE \0/  \0/ \o/</p>
<p>Now you can use the functions directly in you code like</p>
<p>$my_twitter-&gt;updateStatus($status)  –&gt; to update your status</p>
<p>$my_twitter-&gt;getFollowersByHandle(‘injoosweb’)  &#8211;&gt; To get the followers list of injoosweb</p>
<p>$my_twitter-&gt;getFollowersByHandle(‘injoosweb’)  &#8211;&gt; To get the followers list of injoosweb</p>
<p>$my_twitter-&gt;getPublicUpdatesByHandle(&#8217;injoosweb&#8217;) &#8211;&gt; To know whats happening in injoos <img src='http://injoos.com/blog/buildinginjoos/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Start Rocking &#8230;&#8230;&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://injoos.com/blog/buildinginjoos/2010/02/15/twitter-api-using-php-made-easier-with-library-oauth_twitterphp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Get connected with IRC!</title>
		<link>http://injoos.com/blog/buildinginjoos/2010/02/09/get-connected-with-irc/</link>
		<comments>http://injoos.com/blog/buildinginjoos/2010/02/09/get-connected-with-irc/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 09:15:29 +0000</pubDate>
		<dc:creator>krishna</dc:creator>
		
		<category><![CDATA[Tools]]></category>

		<category><![CDATA[Chat]]></category>

		<category><![CDATA[IRC]]></category>

		<guid isPermaLink="false">http://injoos.com/blog/buildinginjoos/?p=22</guid>
		<description><![CDATA[<p>IRC stands for Internet Relay Chat. IRC is the most preferred mode of communication in the Free and Open source world. We may have to wait for a few hours for a reply if we choose e-mail or some forum as our communication channel. On the other hand, we can use IRC which is very [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F09%2Fget-connected-with-irc%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/api.tweetmeme.com');"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F09%2Fget-connected-with-irc%2F" height="61" width="51" /></a></div><p><span style="font-family: Calibri, serif;">IRC stands for Internet Relay Chat. IRC is the most preferred mode of communication in the Free and Open source world. We may have to wait for a few hours for a reply if we choose e-mail or some forum as our communication channel. On the other hand, we can use IRC which is very fast. </span></p>
<p><span style="font-family: Calibri, serif;"><strong>Getting Started</strong></span></p>
<p><span style="font-family: Calibri, serif;">Most IRC servers do not require users to log in, but a user will have to set a nickname before being connected. It is advised to have a nickname. Let’s see how to create an account and connect to IRC channels. We’ll need an IRC client in order to login to the network. We are using Pidgin, because it comes pre-installed on many GNU/Linux distributions.</span></p>
<p><span style="font-family: Calibri, serif;">We can manage multiple accounts from this single chat client. Some of the protocols supported by Pidgin are:</span></p>
<ul>
<li><span style="font-family: Calibri, serif;">AIM</span></li>
<li><span style="font-family: Calibri, serif;">Gtalk</span></li>
<li><span style="font-family: Calibri, serif;">IRC</span></li>
<li><span style="font-family: Calibri, serif;">MSN</span></li>
<li><span style="font-family: Calibri, serif;">MySpace</span></li>
<li><span style="font-family: Calibri, serif;">Yahoo 	etc</span></li>
</ul>
<p><span style="font-family: Calibri, serif;"><strong>Click on the Add button</strong></span></p>
<p><span style="font-family: Calibri, serif;"><strong>-&gt; Select IRC from the protocol menu</strong></span></p>
<p><span style="font-family: Calibri, serif;">Provide the Nickname in the Screen name field.</span></p>
<p><span style="font-family: Calibri, serif;">Change the server to irc.freenode.net </span></p>
<p><span style="font-family: Calibri, serif;">Leave the password field blank.</span></p>
<p><span style="font-family: Calibri, serif;">I have chosen the screen name: ‘username’</span></p>
<p><span style="font-family: Calibri, serif;">As soon as we login, a message from freenode-connect is received. It looks like this:</span></p>
<p><span style="font-family: Tahoma;">﻿</span><span style="font-family: Calibri, serif;"><span style="font-size: x-small;">(02:23:14 IST) </span></span><span style="font-family: Calibri, serif;"><strong>freenode-connect:</strong></span><span style="font-family: Calibri, serif;"> Received CTCP &#8216;VERSION&#8217; (to username) from freenode-connect</span></p>
<p><span style="font-family: Calibri, serif;">If the Nickname (screen name) is already chosen by someone else, we can change the nick name with the help of this command in the window that just opened:</span></p>
<p><span style="font-family: Calibri, serif;"><strong>/nick new_nick_name</strong></span></p>
<p><span style="font-family: Calibri, serif;">If username already exists, we can try for other nicknames like username2 by typing the command</span></p>
<p><span style="font-family: Calibri, serif;"><strong>/nick screen_name</strong></span></p>
<p><span style="font-family: Calibri, serif;">If we want to start using IRC without registering our nickname, we can do so by entering this command.</span></p>
<p><span style="font-family: Calibri, serif;"><strong>/join #channel-name</strong></span></p>
<p><span style="font-family: Calibri, serif;">If we want to join the #bmslug channel, we need to type the command</span></p>
<p><span style="font-family: Calibri, serif;"><strong>/join #bmslug</strong></span></p>
<p><span style="font-family: Calibri, serif;">We get a window which is similar to a chatroom :</span></p>
<p><span style="font-family: Calibri, serif;">To address someone, type the first few characters of their name and hit the tab key, the auto complete function will complete their name and append a “:” to it. Now we can type the message and hit the enter key. </span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: medium;"><strong>To Register the nickname</strong></span></span></p>
<p><span style="font-family: Tahoma;">﻿</span><span style="font-family: Calibri, serif;"><strong>/msg nickserv register &lt;password&gt; &lt;email&gt;</strong></span></p>
<p><span style="font-family: Calibri, serif;">This command registers us with the current Nickname of ours. </span></p>
<p><span style="font-family: Calibri, serif;">We can identify ourselves with the command:</span></p>
<p><span style="font-family: Calibri, serif;"><strong>/msg nickserv identify &lt;password&gt;</strong></span></p>
<p><span style="font-family: Calibri, serif;">This completes the basic usage of IRC. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://injoos.com/blog/buildinginjoos/2010/02/09/get-connected-with-irc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setup Zend on windows using WAMP Server</title>
		<link>http://injoos.com/blog/buildinginjoos/2010/02/02/setup-zend-on-windows-using-wamp-server/</link>
		<comments>http://injoos.com/blog/buildinginjoos/2010/02/02/setup-zend-on-windows-using-wamp-server/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 06:09:18 +0000</pubDate>
		<dc:creator>sriku</dc:creator>
		
		<category><![CDATA[Framework]]></category>

		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://injoos.com/blog/buildinginjoos/?p=6</guid>
		<description><![CDATA[<p>Download and install WAMP server from:</p>
<p>http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/WampServer2.0i.exe/download or</p>
<p>http://www.wampserver.com/en/download.php</p>
<p>Download Zend Library code from: </p>
<p>http://framework.zend.com/download/latest</p>
<p>Add library of zend framework folder (downloaded from above link) to php ini’s include path</p>
<p>And now before we start using Command Line Interface (CLI) to create your project copy  zf.bat and zf.php files to php bin directory (c:\wamp\bin\php\phpx.x\ if wamp is installed on c:\wamp)</p>
<p>Next [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F02%2Fsetup-zend-on-windows-using-wamp-server%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/api.tweetmeme.com');"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F02%2Fsetup-zend-on-windows-using-wamp-server%2F" height="61" width="51" /></a></div><p><span>Download and install WAMP server from:</span></p>
<p><span><span><a href="http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/WampServer2.0i.exe/download" onclick="javascript:pageTracker._trackPageview('/outbound/article/sourceforge.net');">http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.0/WampServer2.0i.exe/download</a></span><span> or</span></span></p>
<p><span><span><a href="http://www.wampserver.com/en/download.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wampserver.com');">http://www.wampserver.com/en/download.php</a></span></span></p>
<p><span>Download Zend Library code from: </span></p>
<p><span><a href="http://framework.zend.com/download/latest" onclick="javascript:pageTracker._trackPageview('/outbound/article/framework.zend.com');">http://framework.zend.com/download/latest</a></span></p>
<p><span>Add library of zend framework folder (downloaded from above link) to php ini’s include path</span></p>
<p><span>And now before we start using Command Line Interface (CLI) to create your project copy  zf.bat and zf.php files to php bin directory (c:\wamp\bin\php\phpx.x\ if wamp is installed on c:\wamp)</span></p>
<p><span>Next add php.exe to windows path [to add to windows path go <strong>my computer</strong> right click select <strong>properties</strong> and in <strong>system properties</strong> select <strong>advanced </strong>then select <strong>Environment variables</strong> browse path in system variables then click on edit then parse till the end insert a semi colon and path ‘;c:\wamp\bin\php\phpx.x’  after this go to <strong>cmd</strong> prompt and type php –help to check]</span></p>
<p><span>Go to <strong>cmd </strong>prompt and change the working directory to php bin directory [ cd  c:\wamp\bin\php\phpx.x\ ]</span></p>
<p><span>Run <strong>zf.bat create project &lt;project_name&gt;</strong>from current working directory </span><span>this command will create your basic site structure, including your initial controllers and views. The folder tree looks like the following:</span></p>
<p><span>&lt;project_name&gt;</span></p>
<p><span>\</span><span>application</span><span> </span></p>
<p><span>\</span><span>application\Bootstrap.php</span></p>
<p><span>\application\configs</span></p>
<p><span>\application\configs\application.ini</span></p>
<p><span>\application\controllers</span></p>
<p><span>\application\controllers\ErrorController.php</span></p>
<p><span>\application\controllers\IndexController.php</span></p>
<p><span>\application\models</span></p>
<p><span>\application\views</span></p>
<p><span>\application\views\helpers</span></p>
<p><span>\application\views\scripts</span></p>
<p><span>\application\views\scripts\error</span></p>
<p><span>\application\views\scripts\error\error.phtml</span></p>
<p><span>\application\views\scripts\index</span></p>
<p><span>\application\views\scripts\index\index.phtml</span></p>
<p><span><strong>\library *</strong></span></p>
<p><span>\public</span></p>
<p><span>\public\.htaccess</span></p>
<p><span>\public\index.php</span></p>
<p><span>\tests</span></p>
<p><span>\tests\application</span></p>
<p><span>\tests\application\bootstrap.php</span></p>
<p><span>\tests\library </span></p>
<p><span>\tests\library\bootstarp.php</span></p>
<p><span>\tests\phpunit.xml</span><span> </span></p>
<p><span><strong>*</strong>After creating your project copy the contents of zend framework library to &lt;project name&gt; /library folder</span></p>
<p><span>[copy  path/to/ZendFramework/library/Zend  and paste it in /library]</span></p>
<p><span>Change document root and directory settings of wamp server to &lt;project_name&gt;\public folder in httpd.conf file</span></p>
<p><span>And add your mysql connection details to &lt;project_name&gt;\application\configs\application.ini</span></p>
<p><span>resources.db.adapter = PDO_MYSQL</span></p>
<p><span>resources.db.params.host = localhost</span></p>
<p><span>resources.db.params.username = &lt;mysqlusername&gt;</span></p>
<p><span>resources.db.params.password = &lt;mysqlpassword&gt;</span></p>
<p><span>resources.db.params.dbname = &lt;mysqldb&gt;</span></p>
<p><span>and you are done restart wamp server and start coding your project.</span></p>
<p><em>Happy Coding</em></p>
<p><strong>For more info visit:</strong></p>
<p><span> <a href="http://framework.zend.com/manual/en/learning.quickstart.create-project.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/framework.zend.com');"><span>http://framework.zend.com/manual/en/learning.quickstart.create-project.html</span></a></span></p>
<p><span>For help on CLI </span></p>
<p><span><a href="http://framework.zend.com/manual/en/zend.tool.framework.clitool.html#zend.tool.framework.clitool.setup-general" onclick="javascript:pageTracker._trackPageview('/outbound/article/framework.zend.com');">http://framework.zend.com/manual/en/zend.tool.framework.clitool.html#zend.tool.framework.clitool.setup-general</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://injoos.com/blog/buildinginjoos/2010/02/02/setup-zend-on-windows-using-wamp-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Welcome to Building Injoos Blog</title>
		<link>http://injoos.com/blog/buildinginjoos/2010/02/02/hello-world/</link>
		<comments>http://injoos.com/blog/buildinginjoos/2010/02/02/hello-world/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 04:11:33 +0000</pubDate>
		<dc:creator>Srini</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>While we build and enhance the Injoos Social Collaboration platform we thought that it would be interesting and useful to share some of our learnings in building this platform. So what we will do on this blog is to share code snippets, tool &#38; framework configurations, coding standards etc. so that you could benefit while [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F02%2Fhello-world%2F" onclick="javascript:pageTracker._trackPageview('/outbound/article/api.tweetmeme.com');"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Finjoos.com%2Fblog%2Fbuildinginjoos%2F2010%2F02%2F02%2Fhello-world%2F" height="61" width="51" /></a></div><p>While we build and enhance the Injoos Social Collaboration platform we thought that it would be interesting and useful to share some of our learnings in building this platform. So what we will do on this blog is to share code snippets, tool &amp; framework configurations, coding standards etc. so that you could benefit while building your own product and Apps. This blog will be a two way process so we look for your suggestions and inputs which will give even more benefit to our readers and help us improve Injoos.</p>
]]></content:encoded>
			<wfw:commentRss>http://injoos.com/blog/buildinginjoos/2010/02/02/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
