<?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>JaguarNac.com &#187; Programming</title>
	<atom:link href="http://www.jaguarnac.com/blog/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaguarnac.com</link>
	<description></description>
	<lastBuildDate>Sat, 10 Jul 2010 05:07:22 +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>Do all posts need title?</title>
		<link>http://www.jaguarnac.com/blog/do-all-posts-need-title/</link>
		<comments>http://www.jaguarnac.com/blog/do-all-posts-need-title/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 19:02:30 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Handwriting]]></category>
		<category><![CDATA[happy]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Studies]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2008/02/19/do-all-posts-need-title/</guid>
		<description><![CDATA[Handwriting was quite boring today. Wrote it but don&#8217;t feel like posting it here. Meanwhile, I was just playing around Flash after a while. Trying to recurse through XMLs, decently easy&#8230; Got it right. Will extend it to something useful soon enough.
A few good things are happening as well&#8230; I&#8217;m learning DBMS at college. I [...]]]></description>
			<content:encoded><![CDATA[<p>Handwriting was quite boring today. Wrote it but don&#8217;t feel like posting it here. Meanwhile, I was just playing around Flash after a while. Trying to recurse through XMLs, decently easy&#8230; Got it right. Will extend it to something useful soon enough.</p>
<p>A few good things are happening as well&#8230; I&#8217;m learning DBMS at college. I wanted to learn it &#8220;Properly&#8221; since i got my eyes on RDBMS thingy in &#8216;<strong class="sans">Sams Teach Yourself Database Programming with Visual Basic 6 in 21 Days&#8217;</strong> book six years back. I hardly got past to day 4 from that book, but it was sufficient to trigger my interests in VB and Databases. It&#8217;s nice to understand the stuff I&#8217;ve been only hearing about. Like E-R diagrams, Normalization etc&#8230; etc&#8230; It&#8217;s easier to understand as I can relate it to a practical scenario from workplace. It&#8217;s Fun !!</p>
<p>Second nicer thing : Mom has finally agreed on buying me a Laptop. Will get my hands on my very own lappy very soon <img src='http://www.jaguarnac.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Am happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/do-all-posts-need-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache, URL Routing and Aliases</title>
		<link>http://www.jaguarnac.com/blog/apache-url-routing-and-aliases/</link>
		<comments>http://www.jaguarnac.com/blog/apache-url-routing-and-aliases/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 18:29:17 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[happy]]></category>
		<category><![CDATA[jaguarnac]]></category>
		<category><![CDATA[KewlThingiez]]></category>
		<category><![CDATA[Meow]]></category>
		<category><![CDATA[mod_alias]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[URL routing]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2008/02/02/apache-url-routing-and-aliases/</guid>
		<description><![CDATA[Recently while playing with PHP and MVC architecture, I came accross a thingy called URL routing. It&#8217;s basically a mechanism to route various request to your applications through a definite point and thus to facilitate efficient, convenient and structured programming of web applications.  Mostly, while using MVC, it&#8217;s preferred to route all requests to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently while playing with PHP and MVC architecture, I came accross a thingy called URL routing. It&#8217;s basically a mechanism to route various request to your applications through a definite point and thus to facilitate efficient, convenient and structured programming of web applications.  Mostly, while using MVC, it&#8217;s preferred to route all requests to the application through a frontcontroller.  Normally, the links go like www.somewebsite.com/someapp/index.php?page=meow.  However, to make things friendlier to search engines and also be able to write more legible and simple URLs, we need to reach the Apache Configuration.</p>
<p>The link below talks about URL routing in  PHP. It&#8217;s a three part series which tells about a basic .htaccess file that facilitates the URL routing and gives some php codes and classes to interpret the URLs and have them handled by appropriate controllers.</p>
<p><a href="http://www.phpaddiction.com/tags/category/url-routing/" title="URL routing in PHP">http://www.phpaddiction.com/tags/category/url-routing/ </a></p>
<p>Now, here comes some interesting information to make the same thing work for &#8220;Aliases&#8221; in apache. I&#8217;m using apache on windows XP so, things here will talk only about apache on window. Same may work for other systems, but, I am not sure about that. (you may want to browse for documentations/help files/tutorials to enable and use mod_alias and mod_rewrite. I wont be writing much about them frankly because I don&#8217;t know much about them&#8230;)</p>
<p><strong>Alias </strong></p>
<p>By default, apache processes and serves the files from it&#8217;s documentRoot directory. It&#8217;s like a default directory for the web files to be served by the server.</p>
<p>So, when a URL is like www.somesite.com/meow/meow1.php,  and my documentRoot is D:/apache/htdocs ,  Apache will serve D:/apache/htdocs/meow/meow1.php file by default.</p>
<p>However, when our meow directory does not fall under the documentRoot, that&#8217;s when we need to use aliases. Using aliases, we can have apache serve files from location other than documentRoot.</p>
<p>Suppose, my &#8220;meow&#8221; directory is located at &#8220;l:\apps&#8221; and i want to serve files from that directory for all &#8220;/meow&#8221; links to my site, i can add a line n httpd.conf to get this done.</p>
<blockquote><p>Alias /meow  l:/apps/meow</p></blockquote>
<p>This creates an alias for /meow. Now, instead of documentroot, apache comes to l:/apps/meow for all www.somesite.com/meow links.</p>
<p>now apache also needs a &lt;Directory &gt; directive to define various options and access policies for &#8220;l:/apps/meow&#8221; directory.</p>
<blockquote><p>&lt;Directory &#8220;l:/apps/meow&#8221;&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p></blockquote>
<p>This block allows access to &#8220;l:/apps/meow&#8221; and also facilitates .htaccess file in the directory to manipulate all available settings for the directory.  You need to place the .htaccess from &#8220;URL Routing with PHP&#8221; part one in that directory.</p>
<blockquote><p>Options +FollowSymLinks<br />
IndexIgnore */*<br />
# Turn on the RewriteEngine<br />
RewriteEngine On<br />
#  Rules<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . index.php</p></blockquote>
<p>Now, when you try out the first part here, everything does not work perfect&#8230;. Apache says &#8220;Bad Request&#8221; (400)</p>
<p><strong>&#8220;The Problem&#8221; </strong></p>
<p>Everything till here goes file, except for one thing.<br />
The  .htaccess would have worked perfect if your meow was in documentroot.</p>
<p>When a request like www.somesite.com/meow/abc/pqr/xyz is handled, the .htaccess in &#8220;l:/apps/meow&#8221; comes into action.</p>
<blockquote><p>Alias takes the request to l:/meow/abc/pqr/xyz .<br />
Provided that none of the directories in url exist beyond /meow, Apache rewrites the URL .<br />
it takes the /abc/pqr/xyz part out and puts index.php in the place. So,  request goes to l:/meow/index.php</p></blockquote>
<p>But&#8230; that is not what we exactly want.</p>
<p>when, instead of alias, the meow exists under document root,  (say d:/apache/htdocs), the similar request gets processed in a slightly different manner.</p>
<blockquote><p> The request is taken to d:/apache/htdocs/meow/abc/pqr/zyx<br />
it takes the /abc/pqr/xyz part out and puts index.php in the place. So,  request goes to d:/apache/htdocs/meow/index.php<br />
now, as d:/apache/htdocs is documentRoot, apache reduces the url to /meow/index.php only.</p></blockquote>
<p>In case of aliases, the last step does not occur.</p>
<p><strong> The Solution</strong></p>
<p>In order to take the request to /meow/index.php instead of l:/apps/meow/index.php, we need to add &#8220;rewriteBase /meow&#8221; to our .htaccess file (without quotes&#8221;.  This directive tells apache about the base URL from which, relative URLs can be constructed.  So, the new .htaccess looks like this:</p>
<blockquote><p>Options +FollowSymLinks<br />
IndexIgnore */*<br />
# Turn on the RewriteEngine<br />
RewriteEngine On<br />
RewriteBase   /meow<br />
#  Rules<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . index.php</p></blockquote>
<p>Once the rewriteBase is in place, URL www.somesite.com/meow/abc/pqr/xyz gets properly routed to www.somesite.com/meow/index.php. Thus, making us feel Happy ^^</p>
<p>That&#8217;s it for the aliases, apache and htaccess. It took some browsing, log tracking and afternoon hours to get things right with aliases. I&#8217;m not sure about complete correctness of the above process, this is how it worked for me. If you find any flaw or wish to make any addition/suggestion, please do so, It&#8217;s most welcome <img src='http://www.jaguarnac.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>~JaguarNac</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/apache-url-routing-and-aliases/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Developer Designers</title>
		<link>http://www.jaguarnac.com/blog/developer-designers/</link>
		<comments>http://www.jaguarnac.com/blog/developer-designers/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 19:27:36 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[jaguarnac]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web designing]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2007/12/30/developer-designers/</guid>
		<description><![CDATA[People look for the developers who are good even at designing or designers who can handle the coding as well. Being ONLY developer or ONLY designer is not going to do much good to satisfy these requirements.
The very variety in the different mindsets of designers and developers makes this combination a &#8220;special&#8221; case. Both types [...]]]></description>
			<content:encoded><![CDATA[<p>People look for the developers who are good even at designing or designers who can handle the coding as well. Being ONLY developer or ONLY designer is not going to do much good to satisfy these requirements.</p>
<p>The very variety in the different mindsets of designers and developers makes this combination a &#8220;special&#8221; case. Both types think that &#8220;the other work&#8221; is hard,  tedious, unimaginable and most often, &#8220;not for us to do&#8221;.</p>
<p>In a general training course of a web designer, teachers or institutes follow a typical method. They usually begin with the designing tools like Photoshop or CorelDraw. Next step is to teach web designing. Basics of web page. It&#8217;s seen as designing a brochure. Students are given a topic or theme and taught the basics of placing links, images, contents etc. on the design using Photoshop or CorelDraw. A page is designed within a fixed size optimized for certain screen resolution. Web page elements (mostly links) are positioned . Later on, they teach to convert the &#8220;Image&#8221; to &#8220;Web Page&#8221; by slicing and exporting as web page, thus teaching to create a scary table based structure. During conversion, students are often &#8220;NOT&#8221; taught the basics of splitting the page into appropriate HTML elements. Soon after learning this &#8220;Page cutting&#8221; technique, students are taken to the WYSIWYG editor, in most of the cases, &#8220;Dreamweaver&#8221;. Editors are used to replace &#8220;The content&#8221; slice exported from Photoshop with actual content text and most of the remaining part of the page is kept as is&#8230; ALL IMAGES&#8230; sometimes, even replacing some image content with &#8220;Flash Animations&#8221;. Here, students are navigated through the basics of HTML and JavaScript. Though CSS is taught, it is mostly through the GUI driven interfaces provided by the WYSIWYG editors. These students however, get trained well in Designing tools and can produce good output for Print Media or Web based banners and flash ads.</p>
<p>Developer course on the other hand takes a complete development track. They&#8217;re taught the server side languages with a little bit introduction to the client side techniques such as AJAX. Modern server-side frameworks come with components that can effectively render the client-side AJAX stuff. Server-side developer does not need to know what exactly happens at the client side as these frameworks make the things as optimized as possible. Frameworks like Ruby on Rails or ASP.NET give good idea of this. even on PHP, There&#8217;s a huge number of plugins, scripts and API&#8217;s available for developers that render the javascripted page on their behalf.</p>
<p>In short, Web Developers with decent JavaScript and CSS knowledge don&#8217;t come easy and need to be specifically trained or obtained through a tiresome search.  However, the things that are expected from such candidate can easily be learned through online tutorials and trial and error study.</p>
<p>In a few coming days, I&#8217;ll try to post a basic guideline on how to go with web designing. Wish me luck!!</p>
<p>~JaguarNac</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/developer-designers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Void Main</title>
		<link>http://www.jaguarnac.com/blog/void-main/</link>
		<comments>http://www.jaguarnac.com/blog/void-main/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 20:04:49 +0000</pubDate>
		<dc:creator>JaguarNac</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[jaguarnac]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.jaguarnac.com/blog/index.php/2007/12/28/void-main/</guid>
		<description><![CDATA[How would you like to live your life? There are many ways. Many options to choose from but most of the time we need to choose only one option and go ahead with life.  We can&#8217;t do it ALLâ€¦ there&#8217;s not enough time. So, how&#8217;d you make your choice ?? how would you go [...]]]></description>
			<content:encoded><![CDATA[<p>How would you like to live your life? There are many ways. Many options to choose from but most of the time we need to choose only one option and go ahead with life.  We can&#8217;t do it ALLâ€¦ there&#8217;s not enough time. So, how&#8217;d you make your choice ?? how would you go with your life???</p>
<p>If you are a part of immensely huge programming logic, what you would be? A parameterized function with definite returns? Or a function that features a good amount of utility but voids for returns. It&#8217;s strange that we don&#8217;t come into existance with predefined procedures and logics. We have choice. Inheritance and Implementations are optional upon us to high extent. On ocassions, this entire time intensive system puts forth a dialog full of choices, however it may or may not be very obvious. Some choices can significantly change the state of individual instance while some only manipulate a few properties here and there. Here, in this world, we as an object have a choice to alter or control our instance, make it better or worse. It&#8217;s youâ€¦ your own build.</p>
<p>So, would prefer to be a constructor of yourself? Or would you rather extend a third-party class and all those typical interfaces?? Wuold you like to be invoked as some new CommonlyKnownClass() or new You() sounds much more powerful?</p>
<p>Your choiceâ€¦</p>
<p>~JaguarNac~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaguarnac.com/blog/void-main/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
