tag:blogger.com,1999:blog-132860142024-03-22T00:49:38.405+05:30Bin-BlogLearn about the latest in Web Development - as soon as I do.Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.comBlogger186125tag:blogger.com,1999:blog-13286014.post-58501795391405826462007-04-30T00:37:00.000+05:302007-04-30T00:40:50.647+05:30Nexty 1.0 Released<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg12l-3ieUTJm8sZc9iTSdXTrskSlxQ5GcY-k50ejZkN_xpLt2kO0fVwt136vaEuB9hM4bbYTY7bMS3mcRthVxwaeUAv6PY1hf-QEbVYE3fj7igVSvhfGuJfjr05WTshbBRTSQ-Gg/s400/nexty_logo.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5058929354679397970" />
<p class="intro">Remember <a href="http://binnyva.blogspot.com/2007/02/nexty-beta-released.html">Nexty</a>, the easy to use to-Do list manager using GTD principles? Well, that is ready for <a href="http://nexty.sourceforge.net/">public release</a>.</p>
<p>Nexty is a easy to use GTD tool created in PHP. It can be installed in a local server or in a online web server. The core idea behind this software is simplicity. I wanted to make a GTD tool that is the most easy to use.</p>
<h2>Nexty Links</h2>
<ul>
<li><a href="http://nexty.sourceforge.net/">Nexty</a></li>
<li><a href="http://www.bin-co.com/php/programs/apps/nexty/demo/">Demo</a></li>
<li><a href="http://sourceforge.net/projects/nexty">Project Page</a></li>
<li><a href="http://nexty.svn.sourceforge.net/viewvc/nexty/">Code (SVN Repository)</a></li>
<li><a href="http://sourceforge.net/project/downloading.php?group_id=188197&filename=nexty_1.00.a.tar.gz">Download</a></li>
</ul>
<p>The next project is ready - watch this space for its announcement.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/" rel="tag"></a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com2tag:blogger.com,1999:blog-13286014.post-28730113068117839762007-04-23T23:53:00.000+05:302007-04-23T23:54:57.019+05:30My Moves: A History<p class="intro">As you already know, <a href="http://www.bin-co.com/blog/">I have made my move</a>. Moving from one domain to another is not new to me - I have moved a lot before. Here is a small picture that will show all my 'domain hops'...</p>
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYDg3g_NlWuBedw8lDDi8nAFufQhnHMU2MBVaU10XkHYT915xGg667U0uXOMorlJCXJpIE61hnV8SHP4n1H99NW0r_bmM0D90KxsZ4PlDOABgs49moAb3rf015dWT2iHqcLFY_7Q/s1600-h/sites.png"><img style="cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYDg3g_NlWuBedw8lDDi8nAFufQhnHMU2MBVaU10XkHYT915xGg667U0uXOMorlJCXJpIE61hnV8SHP4n1H99NW0r_bmM0D90KxsZ4PlDOABgs49moAb3rf015dWT2iHqcLFY_7Q/s400/sites.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5056691256754112594" /></a>
<p>http://binnyva.bizland.com/ (Dead now) - My first site.</p>
<p><a href="http://binnyva.tripod.com/">http://binnyva.tripod.com/</a> - Started using Tripod when Bizland stopped my free account.</p>
<p><a href="http://www.geocities.com/binnyva/">http://www.geocities.com/binnyva/</a> - Tripod became very slow due to all their ads - so I moved to Geocities.</p>
<p><a href="http://binnyva.blogspot.com/">http://binnyva.blogspot.com/</a> - Decided that I have to get into this 'blog' thing.</p>
<p><a href="http://www.bin-co.com/">http://www.bin-co.com/</a> - Finally, got a credit card - thus making it possible to by web space/domain. Once I got the card - I did not stop with just one domain - I bought some more...</p>
<ul>
<li><a href="http://www.binnyva.com/">http://www.binnyva.com/</a></li>
<li><a href="http://blog.binnyva.com/">http://blog.binnyva.com/</a></li>
<li><a href="http://www.openjs.com/">http://www.openjs.com/</a></li>
<li><a href="http://www.bin-co.com/blog/">http://www.bin-co.com/blog/</a></li>
</ul>
<p>Serious articles from the next post...</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/history" rel="tag">history</a></li>
<li><a href="http://del.icio.us/binblog/personal" rel="tag">personal</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com1tag:blogger.com,1999:blog-13286014.post-73559788657747371882007-04-20T21:58:00.000+05:302007-04-20T21:59:51.451+05:30I have moved my Blog<p class="intro">Every commenter in the last post agreed with me. As a result, I am moving the blog from <a href="http://binnyva.blogspot.com/">http://binnyva.blogspot.com/</a> to <a href="http://www.bin-co.com/blog/">http://www.bin-co.com/blog/</a>. From the next post onwards, the post will be duplicated here and in my Bin-Co site. At the end of this month, I will abandon this blog and focus on the new one.</p>
<p>Abandon does not mean that I will delete the blog or its contents - that will stay. I will stop posting here. I will still carry out some maintenance tasks like weeding out the spam, repling to comments etc. However, from next month, no more new content will appear here.</p>
<p>So the new blog URL is ...drum roll...</p>
<p style="text-align:center;font-size:x-large;"><a href="http://www.bin-co.com/blog/">Bin-Blog</a></p>
<p>Take a look - no contents yet. But still, feel free to look around my <a href="http://www.bin-co.com/">Bin-Co</a> site too.</p>
<h2>Content Duplication</h2>
<p>One of my tougher decision was <strong>not to import the contents of this blog into the new one</strong>. So, the contents in this blog will not be there in the new blog. One major reason is <a class="external" href="http://googlewebmastercentral.blogspot.com/2006/12/deftly-dealing-with-duplicate-content.html">content duplication</a>. I don't want to be <a class="external" href="http://www.searchenginejournal.com/duplicate-content-penalty-how-to-lose-google-ranking-fast/1886/">penalized for duplicate content</a>.</p>
<h2>Feed</h2>
<p>Please DO NOT update/change the feed URL. I am using <a href="http://www.feedburner.com/" class="external">FeedBurner</a> - and I will change the source feed when the time is right. So, you don't have to change the feed URL.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/personal" rel="tag">personal</a></li>
<li><a href="http://del.icio.us/binblog/blog" rel="tag">blog</a></li>
<li><a href="http://del.icio.us/binblog/blogging" rel="tag">blogging</a></li>
<li><a href="http://del.icio.us/binblog/blogger" rel="tag">blogger</a></li>
<li><a href="http://del.icio.us/binblog/wordpress" rel="tag">wordpress</a></li>
<li><a href="http://del.icio.us/binblog/site" rel="tag">site</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com3tag:blogger.com,1999:blog-13286014.post-34681850435771253612007-04-16T00:38:00.000+05:302007-04-16T00:43:04.914+05:30Should I move my Blog?<img style="float:right; margin:0 0 10px 10px;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk-DWNF_TZ4IBD-K8QnGDZUC2HEAEz5QjmAB0PDpFT_8tZna47ll7NhOE4JzXvUH7neF1cTYwSpaGdXC_Ll7uT6iDw2Vj48taL23eE54T01bfHOe-yTs27uQVdwRkGltglfqRDdQ/s400/wp_blogger.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5053734187621554098" />
<p class="intro">Lately, I am under a lot of pressure to <strong class="highlight">move this blog to one of my own servers</strong>. I have <a href="http://binnyva.blogspot.com/2006/03/moving-blog-from-blogspot.html">thought about this before</a>. I even have moved parts of it - like <a href="http://binnyva.blogspot.com/2006/07/new-blog-binnyva.html">BinnyVA</a> and <a href="http://binnyva.blogspot.com/2006/04/my-new-site-openjscom.html">OpenJS</a> - but never moved the site entirely. Moving has its advantages and its disadvantages. Before I make the decision, I thought I will ask the site's readers for some feedback. So, what do you think guys? Should I move to my own domain?</p>
<h2>Advantages of Moving</h2>
<dl>
<dt>More Serious</dt>
<dd>A blog that has its own domain will be <strong class="highlight">considered by many to be more serious</strong> than a blogspot site.</dd>
<dt>WordPress!</dt>
<dd>A self-hosted WordPress blog is a better blogging platform than Blogger</dd>
<dt>Control</dt>
<dd>WordPress gives the user a lot more <strong class="highlight">control</strong> than blogger</dd>
<dt>Easier Commenting</dt>
<dd>I <strong class="highlight">can take the captcha out of commenting</strong> - Akismet will protect me from spam - even though there is some problems - <a href="http://binnyva.blogspot.com/2007/04/i-am-not-spam.html">like false positives</a>.</dd>
<dt>Google Juice Sharing</dt>
<dd>If I move, I plan to move my blog to <a href="http://www.bin-co.com/blog/">http://www.bin-co.com/blog/</a>. <dd>So all the SEO advantage for the blog will be available for <a href="http://www.bin-co.com/">Bin-Co.com</a> and all its SEO advantage will be available for the blog. A nice setup.</dd></dd>
</dl>
<h2>Disadvantages</h2>
<dl>
<dt>SEO</dt>
<dd>I have many links pointing to this site - this includes one <a class="external" href="http://www.digg.com/design/Creating_Web_2_0_Graphics_In_Gimp">Digg Homepage appearance</a>. I will lose all those advantages if I move away. This is the main reason I have not moved away yet.</dd>
<dt>Maintenance overhead</dt>
<dd>even though there is automatic installation and updating for WordPress in <a class="external" href="http://www.dreamhost.com/r.cgi?179344">Dreamhost</a>.</dd>
<dt>Server Capability</dt>
<dd>In the event of a Digging, a blogger site has more chance of staying alive than a smaller site. But I believe my hosting can take a beating before going down. But still, Dreamhost has its, how shall I put it..., <a class="external" href="http://blog.dreamhost.com/2006/08/01/anatomy-of-an-ongoing-disaster/">issues</a>.</dd>
</dl>
<h2>What do YOU think?</h2>
<p>I am forced to consider this move because many people have asked my why I am still on Blogger - despite having many sites of my own. Look at the <a href="http://binnyva.blogspot.com/2007/04/i-am-not-spam.html#comments">comments on my last post</a> - <a class="external" href="http://www.benh.org/techblog">Benedict Herold</a> has only one thing to say. Can't blame him - he already has made the move - from <a class="external" href="http://www.benh.org/techblog/2007/02/migrating-new-blogger-to-wordpress-2/">Blogger to WordPress</a>. He even has a neat picture to explain which is the better platform.</p>
<p>Then there is <a class="external" href="http://ajaydsouza.com/">Ajay</a>. Says <a class="external" href="http://ajaydsouza.com/archives/2007/03/06/why-you-should-comment-on-my-blog/#comment-19810">he won't comment on my site</a> unless I move to wordpress. When ever I chat with him, he wants to know if I will move to wordpress ;-). So, Ajay, here is your chance to have your say - should I move or not. Comment on this post, OK? Even if you think it is a bit slow for you.</p>
<p>Think of this as <strong class="highlight">a voting system. If enough people ask me to move, I will move</strong>. I am sure that <a href="http://www.bloghash.com/" class="external">many</a> of my <a href="http://www.jaysonjc.com/" class="external">readers</a> <a class="external" href="http://www.nirmaltv.com/" class="external">will</a> have some thoughts regarding this as well.</p>
<p>So, what do you think? <strong class="highlight">Should I make the move? Leave a comment</strong>. Do you have any experience to share about moving your blog? Let me know.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/blog" rel="tag">blog</a></li>
<li><a href="http://del.icio.us/binblog/blogging" rel="tag">blogging</a></li>
<li><a href="http://del.icio.us/binblog/blogger" rel="tag">blogger</a></li>
<li><a href="http://del.icio.us/binblog/wordpress" rel="tag">wordpress</a></li>
<li><a href="http://del.icio.us/binblog/move" rel="tag">move</a></li>
<li><a href="http://del.icio.us/binblog/server" rel="tag">server</a></li>
<li><a href="http://del.icio.us/binblog/personal" rel="tag">personal</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com14tag:blogger.com,1999:blog-13286014.post-10446023516343934022007-04-10T23:23:00.000+05:302007-04-10T23:26:11.861+05:30I am NOT Spam!<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8wqeb37nnc8tPSrfH0LF_fGPaehZsi-UDElJVXS4-CD_BMjIZ356HIznBRI5sbGP-AzJ_fjME5qcp4ERui0MxsgGeZZWXgFNmiiJXhLwpgzX59ueEWJplGTMwHbHoKKD3BPM6bw/s400/spam.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5051859601900574626" />
<p class="intro">When I was making the last post, I noticed something that was not there before - a word verification for posting. It was a rude shock for me - like a surcharge in a formerly surcharge free ATM. Turns out, the great <strong>Google bots think that this is a spam blog</strong>. Guys, this is not a spam blog! <a href="http://binnyva.wordpress.com/">I have a spam blog</a> - but this is <strong>not</strong> it.</p>
<img style="cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicyUhphEL53bNH3bMQpWj4_fUEwNIIYAqbsJdmJlztRJoYFTaSliQc97u-L44Tr7d-BmhyphenhyphenZEoh21PhcBPJ4Ne-CQRtfaz2tJogZTQN6Ysy4o4XlUvpnGSx-v9_-zKjytzYcmwW_A/s400/spam_blog_1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5051859485936457618" />
<blockquote><p>Your blog requires word verification</p>
<p>Blogger's spam-prevention robots have detected that your blog has characteristics of a spam blog. (What's a spam blog?) Since you're an actual person reading this, your blog is probably not a spam blog. Automated spam detection is inherently fuzzy, and we sincerely apologize for this false positive.</p></blockquote>
<p>Luckily there was an option to say that this blog is not spam. Needless to say, I used that option, and they sent out real humans to test my site. Before long, I was cleared of all wrong doings :-)</p>
<blockquote><p>We received your unlock request on April 5, 2007. On behalf of the robots, we apologize for locking your non-spam blog. Please be patient while we take a look at your blog and verify that it is not spam.</p></blockquote>
<p>All jokes aside, I appreciate the fact that the Blogger team is working hard to get rid of the spam blogs in blogger. Blogger is just infected with those. A side effect of this is that I cannot comment on other people's blog using my blog's address(<a href="http://binnyva.blogspot.com/">http://binnyva.blogspot.com/</a>) as the URL. Akismet thinks that since I use a blogger site, my comment must be spam.</p>
<p>Just a friendly reminder to the guys using <a href="http://akismet.com/">Akismet Plugin</a> - its great for blocking spam - I use it myself. But <a href="http://blog.liip.ch/archive/2006/11/27/akismet-false-positives.html">there</a> <a href="http://www.makeyougohmm.com/20051204/2693/">is</a> <a href="http://zed1.com/journalized/archives/2006/01/07/akismet-problems/">quite</a> a <a href="http://katesgasis.com/2006/02/09/akismet-false-positives/">few</a> <a href="http://wordpress.org/support/topic/92169">instance</a> of <a href="http://www.problogger.net/archives/2007/01/18/are-your-comments-being-filtered-as-spam-at-problogger">false</a> <a href="http://www.dellanave.com/blog/2006/11/27/akismet-with-local-whitelist/">positives</a> - ie. legitimate comments marked as spam. So make sure you check the spam folder often. False negatives I can stand - but not false positives. That's bad.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/spam" rel="tag">spam</a></li>
<li><a href="http://del.icio.us/binblog/blog" rel="tag">blog</a></li>
<li><a href="http://del.icio.us/binblog/blogging" rel="tag">blogging</a></li>
<li><a href="http://del.icio.us/binblog/blogger" rel="tag">blogger</a></li>
<li><a href="http://del.icio.us/binblog/comment" rel="tag">comment</a></li>
<li><a href="http://del.icio.us/binblog/akismet" rel="tag">akismet</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com5tag:blogger.com,1999:blog-13286014.post-86079112339449430022007-04-06T01:31:00.000+05:302007-04-06T01:36:34.867+05:30Naked Days are here again!<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIuH5rmWBuIXXo9LBSdM5j7f_v1SjEUxZpX4gwsxoBvWZAOzpVRbRE3rzhg0ArGT1PwrugNHLvKhRd2JoZFD8jTD57H2lOBiVZ44pH3rNO_z8sPYqKw2laeZVOnm-KXfkKySOJvw/s400/naked-day-07.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5050037812730079042" />
<p class="intro">Once again, its time to take off your stylesheets. April 5<sup>th</sup> is the official <a href="http://naked.dustindiaz.com/" class="external">Naked Day</a> for websites. My sites <a class="mypages" href="http://www.bin-co.com/">Bin-Co</a> and <a class="mypages" href="http://www.openjs.com/">OpenJS</a> will be naked for this day.</p>
<blockquote>The idea behind this event is to promote Web Standards. Plain and simple. This includes proper use of (x)html, semantic markup, a good hierarchy structure, and; well, a fun play on words. I mean, who doesn't want to get naked?</blockquote>
<p>I participated in this event the last year. Some thoughts from back then...</p>
<ul>
<li><a href="http://binnyva.blogspot.com/2006/04/annual-naked-xhtml-day.html">Annual Naked (X)HTML Day</a></li>
<li><a href="http://binnyva.blogspot.com/2006/04/preparations-for-naked-css-day.html">Preparations for Naked CSS Day</a></li>
<li><a href="http://binnyva.blogspot.com/2006/04/happy-naked-css-day-everyone.html">Happy Naked CSS Day Everyone</a></li>
</ul>
<h3>What about this site?</h3>
<p>No - this site will not drop its stylesheets - in blogger it is just too much work.</p>
<h3>What about You?</h3>
<p>Will you be naked today? If so, post a comment with your URL.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/naked" rel="tag">naked</a></li>
<li><a href="http://del.icio.us/binblog/css" rel="tag">css</a></li>
<li><a href="http://del.icio.us/binblog/stylesheet" rel="tag">stylesheet</a></li>
<li><a href="http://del.icio.us/binblog/accessibility" rel="tag">accessibility</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0tag:blogger.com,1999:blog-13286014.post-12395079847819009302007-04-03T00:45:00.000+05:302007-04-03T00:48:50.028+05:30Using Twitter, Part 3 - Offline Twitter<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT8O4Auf6q9mc8i_OTsOUe7SKxjlNgwsqw1XlPaJN_CmG11r9O_L40v2J51qbw5Da39qDsyyvT4W9P6tG-3G9UINu_J5XiZkRGIHxHjfODI1cklghKj8Q6l4qtpkChqdrn5N5aTA/s400/twitter.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5048912204366861442" />
<p class="intro">In my last post about the use of twitter, I said that my primary purpose for <a href="http://binnyva.blogspot.com/2007/03/using-twitter-part-2-use-of-twitter.html" class="internal">using twitter</a> is to track my time. However twitter is not created for that use. It is very difficult to track your time using twitter. But there is an easy solution to this problem - create an offline twitter.</p>
<p>Twitter is a huge application - but offline twitter is not. The whole application is just 4 lines of PHP code. Yes - that's right - just 4 lines. And a database.</p>
<h2>Database</h2>
<p>The database is just one table(OT) with 3 fields. The simplest solution is often the best.</p>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvox9fUZgRKLF_7vPCycQq1M4Sd0OgoeDRchnp5Bdg-kV0qxBYo_uZGFGnRg7naBYrad9RitzE_Blg-Vbabs_pliHPj0eybkJl7Br7L-q_bZu_ats8auf2SurJ7Hl7EMYJIty6Gw/s400/db.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5048911890834248818" />
<pre><code class="sql">
CREATE TABLE `OT` (
`id` int(11) unsigned NOT NULL auto_increment,
`status` varchar(255) NOT NULL,
`time` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM ;</code></pre>
<h2>PHP Code</h2>
<p>This code will be the entire application(if you can call it that). Just save this to a file called, say, <code>OT.php</code></p>
<pre><code class="php"><?php
if(!$_REQUEST['status']) exit;
mysql_connect('localhost','root','pass') or die("Cannot connect to mysql Server");
mysql_select_db('Data') or die("No database called 'Data'");
mysql_query("INSERT INTO OT VALUES('','$_REQUEST[status]',NOW())");
</code></pre>
<p>If you want to use a database abstraction layer, be my guest. If you escape the <code>$_REQUEST[status]</code> before using it in the query, by all means do so. But, the result will be the same. An offline twitter using just 4 lines of code.</p>
<h2>Input</h2>
<p>So, how does one enter new status into this system? By making a small modification to the <a href="http://binnyva.blogspot.com/2007/03/using-twitter-part-1-command-line.html">command line twitter client</a>...</p>
<pre><code class="cli">curl --data-ascii "status=`echo $@|tr ' ' '+'`" "http://localhost/tools/OT.php"
curl --basic --user "<User>:<Password>" --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json"</code></pre>
<p>The first line will send the status to my PHP file and the second will send it to the twitter server. Now I have all the status in the database.</p>
<h2>View the Contents</h2>
<p>I have still not created an interface that will use this database to show my time useage. If I want to know something, I just open up <a href="http://www.bin-co.com/database/clients/phpmyadmin/" class="mypages">phpMyAdmin</a> and run an SQL query.</p>
<p>I know - this method is not for everyone. You need to be on linux to use my command line client. You must have a web server and a MySQL server running for this method to work. But if you are working on the LAMP platform, you will have this stuff ready.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/twitter" rel="tag">twitter</a></li>
<li><a href="http://del.icio.us/binblog/php" rel="tag">php</a></li>
<li><a href="http://del.icio.us/binblog/mysql" rel="tag">mysql</a></li>
<li><a href="http://del.icio.us/binblog/offline" rel="tag">offline</a></li>
<li><a href="http://del.icio.us/binblog/application" rel="tag">application</a></li>
<li><a href="http://del.icio.us/binblog/script" rel="tag">script</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com2tag:blogger.com,1999:blog-13286014.post-51463284966177063402007-03-27T01:25:00.000+05:302007-03-27T01:27:23.908+05:30Using Twitter, Part 2 - The Use of Twitter<img class="intro" style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMOGJsDWZ_PowulRkQ-vkYFQq52DCy_3w2rwuX0Lqviui62hkbxhuo621aPVDLc7xXjXJODG7nvluVsTnsfEnzGK37nxyG9qfBivhyvlIV2jnHnGmv9ZE7DsmSkUOG00gG6IDumA/s400/twitter.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5046324615764053106" />
<p class="intro">Why do one use twitter? Why do you have to inform others about what you are doing? There are many answers to this question.</p>
<h2><a class="external" href="http://headrush.typepad.com/creating_passionate_users/2007/03/is_twitter_too_.html">Intermittent variable reward</a></h2>
<p>Kathy Sierra is of the opinion that a 'slot machine' like reward system exists for twitter users. That is, they get a reward sometimes(not always) - so they keep on using the system for that reward.</p>
<h2>Addictive</h2>
<p><a class="external" href="http://www.jaysonjc.com/2007/03/23/twitter-tricks-tips-and-tools/">Many</a> <a class="external" href="http://www.thewavingcat.com/2007/03/13/twitter-is-so-damn-addictive/">people</a> have described twitter as addictive. But, I still have not found it addictive - I only remember to make an update once in a while. Maybe that is because I have turned off the <abbr title="Instant Messaging">IM</abbr> feature.</p>
<h2>Keeping in touch</h2>
<p>A lot of people have said that they can keep in touch with their friends using twitter. This reason is not for me. I am a geek. And by definition, I am a loner(or was that 'nerd' - <a class="external" href="http://catandgirl.com/view.php?loc=94">I get those two confused</a>). So, I don't what to be connected with others - if anything, I want to be <strong>disconnected</strong> from them.</p>
<h2>Keeping track of Time</h2>
<p>Twitter can be used to keep track of your activities. But it is not a tool made for this - so it is very limited for this purpose. But, this is the reason why I use twitter.</p>
<p>Ever since <a href="http://binnyva.blogspot.com/2007/03/quiting-job.html">I resigned from my job</a>, I have been noticing a huge time leak. I cannot understand how my time is disappearing - but it is doing that with great efficiency. So I have turned to twitter to make things better.</p>
<p>More on this topic in the next post.</p>
<ul>
<li><a class="external" href="http://www.horsepigcow.com/2007/03/15/twits-twittering-for-the-sake-of-tweets-or-thats-not-why-i-twitter/#comments">Twits Twittering for the sake of Tweets: or that’s not why I twitter</a></li>
<li><a class="external" href="http://adactio.com/journal/1271/">Twitter… again</a></li>
<li><a class="external" href="http://www.micropersuasion.com/2007/03/twitter_human_a.html">Twitter, Human Attention and Moore's Law</a></li>
</ul>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/twitter" rel="tag">twitter</a></li>
<li><a href="http://del.icio.us/binblog/addiction" rel="tag">addiction</a></li>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/sites" rel="tag">sites</a></li>
<li><a href="http://del.icio.us/binblog/blogging" rel="tag">blogging</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0tag:blogger.com,1999:blog-13286014.post-70470276483749092632007-03-22T05:30:00.000+05:302007-03-22T05:37:34.907+05:30Using Twitter, Part 1 - Command Line Twitter Client<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi13dCEPXJwnRy-WkZ9EDnm6pj2FQyoP1whkwFLYyQlZtfmlzvopgPc0aX2vaNp7OOl0JbOw0KJPeLx9_ZYNqLLaoaYJLs3fOCPSyM54y0RXzy0r0u9mfnQII_lb6cC8mJ7G_SH1g/s400/twitter.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5044532323740021266" />
<p class="intro">You may have heard of Twitter - if not, <strong class="highlight">it is a microblogging platform that allows members to tell each other what they are doing</strong> and what they think. There was a huge buzz about twitter recently - made me create <a class="external" href="http://twitter.com/binnyva">an account</a> on twitter. I tried to post through the web interface - but that's not a very intuitive method. The IM method is much better - but it almost never works. So I ended up making another method - the <abbr title="Command Line Interface">CLI</abbr> method. Or <strong class="highlight">twittering using the Command Line</strong>.</p>
<p>Before going any further, let me say that <strong class="highlight">this method is for Linux</strong>. You can use this method in windows as well - but you have to install the <a class="external" href="http://www.rahul.net/dkaufman/index.html">windows port for curl</a>. Even if you manage to get this method to work on windows, most of the major advantages of this method will be lost.</p>
<p>This <abbr title="South by Southwest">SxSW</abbr> was huge for twitter - not only did it win the 2007 South by Southwest Web Award, they also got a lot of <a class="external" href="http://www.quirksmode.org/blog/archives/2007/03/on_twitter.html">new members</a>. But lately it is getting some <a class="external" href="http://web1979.wordpress.com/2007/03/14/rip-twitter-2007-2007/">negative</a> <a class="external" href="http://headrush.typepad.com/creating_passionate_users/2007/03/is_twitter_too_.html">reviews</a> as well.</p>
<h2>Quick Posting</h2>
<img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCM0aFYdnUxz_63DrcNgAMGyJuIIq3Q-PNv-Bsixvw5u6t5U2ICwSgMtf-86V8yu9II8TyDLOi-V5sXlvAa54xBTKCp1btQBYCDkW1QApmCjV75TzwMoKxOJcPCmuri9hXPrbLdQ/s400/save_button.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5044532877790802466" />
<p>One of the main feature of twitter is the <strong class="highlight">fast publishing time</strong>. You type something into a text box and click submit - and the stuff is published. That's fast! The only problem is that you need to <strong class="highlight">open a browser and type in the URL to get to that text box</strong>. I need something faster. The <abbr title="Instant Messaging">IM</abbr> method is a bit faster - but it rarely works. This situation will change in the future - but I don't want to wait.</p>
<p>The fastest method I can think of is like this - <strong class="highlight">I press a keyboard combination and an small text box opens up. I type in the status and press Submit and this application will post the data</strong> to the twitter site using the Twitter <abbr title="Application Programmable Interface">API</abbr>. The only problem is there is no such application. That's when I decided to do something about it. Of course, I am too lazy to create an entire application for it - so I had to settle for the next best method - posting from a terminal.</p>
<h2>Posting from a Terminal</h2>
<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj90TKmwueNykN99GhEYH_7RQYz49ngPIOXf5Lkcljn65XIyri0TlZkPccEuNyr0VZdguFf9reYpbWnmXvAY5WG6P4uF3tVC8c1CShzaeFhTmcy3m-pMsV0n3Mpj0hc89GT7D0maQ/s400/terminal.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5044533341647270450" />
<p>I have configured my system to open the Terminal(konsole) when I press Ctrl+Alt+A. Now all I have to do is create a command, say, 'twitter' that will publish the command line arguments to the twitter site. My input will be something like this.</p>
<p>Ctrl+Alt+A<br />
twitter "Using the CLI Twitter client"</p>
<p>That's fast enough for me.</p>
<h2>Twitter API</h2>
<p>To create the script, I took a look at the <a class="external" href="http://twitter.com/help/api">twitter API</a>...</p>
<blockquote cite="http://twitter.com/help/api">
<p>All of the methods (except for the public timeline) require user authentication via Basic Auth. The username is the email address you have stored on Twitter, the password, your password.</p>
<p>....</p>
<p>Updating your Twitter</p>
<p>Done with a HTTP POST using the "status" parameter. status=Walking the dog.</p>
<ul>
<li>http://twitter.com/statuses/update.json</li>
<li>http://twitter.com/statuses/update.xml</li>
</ul></blockquote>
<p>The simplest API I have ever seen.</p>
<h2>Curl</h2>
<p>After I saw that API, I realized that I don't need to do any coding to create the application - I just need to use the curl command. <strong class="highlight">curl is a tool to transfer data from or to a server</strong>. All I have to do is execute this command...</p>
<pre><code>curl --basic --user "<User>:<Password>" --data-ascii "status=<Twitter status>" "http://twitter.com/statuses/update.json"
</code></pre>
<p>In my case it will be</p>
<pre><code>curl --basic --user "binnyva:******" --data-ascii "status=Using Twitter from command line" "http://twitter.com/statuses/update.json"
</code></pre>
<h2>The Twitter Shell Script</h2>
<p>But I don't think you would like to type all that everytime you want to twitter. So we have to put it into an executable file. Also, we have to modify the script to enable the support for command line arguments.</p>
<pre><code>curl --basic --user "<User>:<Password>" --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json"
</code></pre>
<p><strong class="highlight">Replace the <User> and <Password> with your twitter user id and password. Now save the text to a file called 'twitter' and give the file execute permission. Put this file in any folder in your path</strong>(like <code>/usr/local/bin</code> or <code>~/bin</code>)</p>
<h2>Using Twitter <abbr title="Command Line Interface">CLI</abbr></h2>
<p>Just call the command with your message as the argument - like this</p>
<pre>twitter Writting Content for Bin-Blog about twitter.
twitter "Using Twitter CLI"</pre>
<p>For best results, enclose the message within quotes. This will prevent problems when using wild card characters like '?'</p>
<h2>Twitter Users</h2>
<p>Before I leave, how many of my readers are twitter users? OK, you three - leave a comment with your twitter ID. By the way, I am <a class="external" href="http://twitter.com/binnyva">binnyva</a>.</p>
<p>Another thing - this script is thrown together in a very short time - is there a better, more foolproof way of doing this? If you know one, <strong class="highlight">leave a comment</strong>.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/twitter" rel="tag">twitter</a></li>
<li><a href="http://del.icio.us/binblog/linux" rel="tag">linux</a></li>
<li><a href="http://del.icio.us/binblog/cli" rel="tag">cli</a></li>
<li><a href="http://del.icio.us/binblog/curl" rel="tag">curl</a></li>
<li><a href="http://del.icio.us/binblog/command" rel="tag">command</a></li>
<li><a href="http://del.icio.us/binblog/shell" rel="tag">shell</a></li>
<li><a href="http://del.icio.us/binblog/script" rel="tag">script</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com30tag:blogger.com,1999:blog-13286014.post-61911167954674693502007-03-18T01:27:00.000+05:302007-03-18T01:43:04.770+05:30Saving Code Snippets - Part 2<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTphehZ5LR7yvbYolo_3I-o6LzNr1UwhQABJkBN2E7ael4_Vv_jRAtYgWiR9ec1Ty-rq_hJnrfw5lV2YQ0kCDK6Y5dTgcT-lcFnQ0EEQL4O8Iao7VDffwrGf-gQNv0AE9EEwnPng/s400/files_tagging.jpg" border="0" alt="Fileing" id="BLOGGER_PHOTO_ID_5042985427473851778" />
<p class="intro">In the last post, we saw <a href="http://binnyva.blogspot.com/2007/03/saving-code-snippets-part-1.html">various methods of storing text snippets</a>. Each of the discussed methods had its advantages and disadvantages. I could not use any of those methods. But eventually I found one method that was perfect. It was <a class="external" href="http://www.wordpress.org/">WordPress</a>.</p>
<p>My requirements for a text snippets storing system are simple...</p>
<ul>
<li>Must be able to store text snippets (Duh!)</li>
<li>Searchable</li>
<li>Tagging support</li>
<li>Easy to use interface</li>
<li>Backupable</li>
</ul>
<p>After looking at the list for a few moments, I had an epiphany. I don't need a custom solution for this problem - all I have to do is make a few adjustments to a system I am already using. I already have <a href="http://blog.binnyva.com/">experience using WordPress</a> - so there is no learning curve.</p>
<p>So, I created a new domain and installed WordPress using <a class="external" href="http://www.dreamhost.com/r.cgi?179344">Dreamhost</a>'s One Click install system. I made a few adjustments to the default configuration, installed a few plugins, customized the theme - and I have a shiny new site...</p>
<p><a href="http://txt.binnyva.com/">txt</a> - Text Snippets collection of BinnyVA</p>
<p>Go on, click on that link and play around on my <a href="http://txt.binnyva.com/">Text Snippets collection</a> for a while - I'll wait.</p>
<h2>Storing Text Snippets using WordPress</h2>
<h3>Advantages</h3>
<dl>
<dt>New Site</dt>
<dd>You have a new site which will be updated frequently - without having to put much effort into it. Another plus point is that your collection is useful for others also.</dd>
<dt>Stable/Supported Platform</dt>
<dd>WordPress is an industry standard Platform - used by thousands of people world wide. If you run into a problem, you will be able to get help.</dd>
<dt>Open Source</dt>
<dd>You can modify the software - and make it 'just right' for your need.</dd>
<dt>Offline Access Possible</dt>
<dd>Just install the WordPress on your system and sync the database once in a while.</dd>
<dt>Multiple Clients can be used</dt>
<dd>You are not forced to use the WordPress's web interface to add/edit snippets - there are a <a class="external" href="http://codex.wordpress.org/Weblog_Client">lot of clients that support WordPress</a>. I prefer <a href="http://preview.addons.mozilla.org/en-US/firefox/addon/1730">ScribeFire</a>(was known as Performancing earlier).</dd>
</dl>
<h3>Disadvantages</h3>
<ul>
<li>Added overhead of managing a new site</li>
<li>Need Hosting</li>
<li>Need net access</li>
<li>Need a web/database server for Offline site</li>
<li>The purpose of the tool is different</li>
</ul>
<h2>Tagging Problem</h2>
<p>There was one problem associated with using WordPress for this purpose - tagging. Sure, you could use categories to tag each snippet - but that is nowhere as intuitive as, say, tagging on <a href="http://del.icio.us/">del.icio.us</a>. To add a new category, you have to use a separate text field - instead of just typing it after a ','. That is when I found out about a great WordPress plugin - <a class="external" href="http://www.neato.co.nz/ultimate-tag-warrior/">Ultimate Tag Warriors</a>.</p>
<h3>Ultimate Tag Warrior</h3>
<p>Using Ultimate Tag Warrior you can tag your post with multiple tags. These are completely independent of the 'Categories' feature of wordpress. Two important features for this plugin makes it perfect for our purpose.</p>
<h4>Friendly Link support</h4>
<p>del.icio.us style links makes it easier for us to find the snippets later on. For example, the URL for all the text snippets with the tag 'perl' is <a href="http://txt.binnyva.com/tag/perl">http://txt.binnyva.com/tag/perl</a>.</p>
<h4>Can embed tags inside the content</h4>
<p>You can specify the tags within the content of the post - you are not forced to use the web panel's tags field to do it. This makes it possible to tag the text snippets even if you are posting from a client.</p>
<p>All you have to do is is enclose the tags within '[tags]...[/tags]'. For example, say you wish to tag a snippet, with <code>database, mysql, sql</code>. So you put this at the end of the snippet...</p>
<p><code>[tags]database, mysql, sql[/tags]</code></p>
<h2>txt</h2>
<p>My <a href="http://txt.binnyva.com/">Text Snippets collection</a> site have been running for two months. As of yet, I don't have a single complaint about it. In my opinion, this is the best method to store text snippets. If you know a better way of doing this, please let me know.</p>
<p>Most of the saved snippets on txt are <a href="http://txt.binnyva.com/category/command-line/">Linux Commands</a>. There are some <a href="http://txt.binnyva.com/category/code/">code snippets</a> as well. This is a site where I store script snippets, Linux commands and other such tidbits of information. The posts will be minimal and often crude.</p>
<p>Before leaving you, I want to highlight some cool snippets in that site...</p>
<ul>
<li><a href="http://txt.binnyva.com/2007/03/shortest-way-to-create-an-xmlhttprequest-object/">Shortest way to create an XMLHttpRequest object</a></li>
<li><a href="http://txt.binnyva.com/category/code/php/">Using PHP's Curl functions behind a Proxy</a></li>
</ul>
<p>And for Linux users...</p>
<ul>
<li><a href="http://txt.binnyva.com/2007/03/cvs-through-proxy/">Using CVS Through Proxy</a></li>
<li><a href="http://txt.binnyva.com/2007/03/download-entire-folder-using-wget-command-in-linux/">Download Entire Site/Folder using Wget Command in Linux</a></li>
<li><a href="http://txt.binnyva.com/2007/03/mysql-database-backuprestore/">MySQL Database Backup/Restore</a></li>
</ul>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/text" rel="tag">text</a></li>
<li><a href="http://del.icio.us/binblog/snippet" rel="tag">snippet</a></li>
<li><a href="http://del.icio.us/binblog/code" rel="tag">code</a></li>
<li><a href="http://del.icio.us/binblog/wordpress" rel="tag">wordpress</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com1tag:blogger.com,1999:blog-13286014.post-64512576195216179342007-03-15T01:10:00.000+05:302007-03-18T01:41:20.544+05:30Saving Code Snippets - Part 1<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVUGDopJFq94E9PIZMZ3_CmmWDA59D7ohSxYC93oGmOOsgs-3sSuiTHv5p4AyIQPiR_aeqkYU7ti7YvT5sbNhlAw9pFACy9luxwk8bP8NnIsvoRLnEvBWdb5PHN9fjfUmTt349PA/s400/284743_card_index_box.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5041867819441624818" />
<p class="intro">All programmers have their own ways of <strong class="highlight">storing useful code for future use</strong>. Some don't do anything special for it. They can remember which project they had used the code - all they have to do is call up the source code for that project, search around a bit and they have the code they wanted. I used to be in this class - but now, I have too much projects and too much code for that to work. So I am exploring alternative methods to do this.</p>
<h2>Text Files</h2>
<p>The simplest methods are often the best - <strong class="highlight">storing all the text snippets as text files. You can arrange it into folders for easier management.</strong> I have tried this approach - but it did not work for me. Searching gets a bit hard after some time. Another problem with this method is that the data is limited to one computer - you will have to carry all these files around if you want to use it in other systems.</p>
<h2>Single Text file</h2>
<p>You can <strong class="highlight">save all the code snippets in one big text file</strong> - this will make searching easier. Another advantage of this method is that you can carry this file around - so it is more portable approch. I have not tried this method - if I find multiple text files hard to manage, there is no way I can do it with a single text file. But there are people who have done it - and swear by it.</p>
<ul>
<li><a href="http://www.oreillynet.com/mac/blog/2005/08/living_in_text_files.html">Living in text files</a></li>
<li><a href="http://www.craphound.com/lifehacks2.txt">Example of one such text file</a></li>
</ul>
<h3>Single (Some format) File</h3>
<p>You don't have to use text - you can use excel or LaTeX or some other format to store everything you need in a single file. As long as the data is findable, its possible.</p>
<h2>Special Application</h2>
<p>There are many applications that can be used to store text snippets. I have not used any applications for this purpose - so I cannot recommend any specific tool. I am sure that a <a href="http://www.google.com/search?q=software+store+code+snippets">google search</a> will reveal many such software. In Linux, you could use <a href="http://docs.kde.org/stable/en/kdeutils/kjots/index.html">KJots</a> and <a href="http://basket.kde.org/">BasKet</a> to do this. Do you know any application that could be used for this?</p>
<h2>Database</h2>
<p>If you have done a bit of Database Designing, I am sure you are already working on a design to store the code in a Database - locally or on the web. This method <strong class="highlight">will involve making an interface to input, search and display the snippets</strong> as well. If you are using a database like Access, you can use the 'Forms' feature to do it. But if you are using <a href="http://binnyva.blogspot.com/2006/08/mysql-database-management-system.html">MySQL</a>, <a href="http://binnyva.blogspot.com/2006/10/sqlite.html">SQLite</a> or something like that, you may have to create a custom application. This could be a web application or a desktop application. I almost went this way - but my work with <a href="http://nexty.sourceforge.net/">Nexty</a> prevented me from doing much.</p>
<h2>Online Services</h2>
<p><strong class="highlight">There are sites that could be used store snippets</strong>. One such site is <a href="http://textsnippets.com/">Text Snippets</a>. It supports all features necessary for storing code snippets -</p>
<ul>
<li>Syntax Highlight for the code</li>
<li>Easy Interface</li>
<li>Tagging</li>
<li>And more..</li>
</ul>
<p><a href="http://textsnippets.com/user/binnyva">I tried it out</a> - but did not find it very useful...</p>
<ul>
<li>The Syntax Highlighting expects all code to be in ruby</li>
<li>No way to backup the data</li>
<li>You have to use the web interface to enter the data.</li>
<li>No way to get the data if you are offline</li>
</ul>
<p>Other sites that could be used to do this are...</p>
<ul>
<li><a href="http://snipplr.com/">Snipplr - Code 2.0</a></li>
<li><a href="http://snippets.dzone.com/">Dzone Snippets</a></li>
</ul>
<h2>And the best method is...</h2>
<p>I tried most of the above methods - but none matched my requirements. After much searching I found a method thats perfect. I will talk about that in the <a href="http://binnyva.blogspot.com/2007/03/saving-code-snippets-part-2.html">next post</a>.</p>
<p class="update">Update : <a href="http://binnyva.blogspot.com/2007/03/saving-code-snippets-part-2.html">Saving Code Snippets - Part 2</a> Ready!</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/text" rel="tag">text</a></li>
<li><a href="http://del.icio.us/binblog/snippet" rel="tag">snippet</a></li>
<li><a href="http://del.icio.us/binblog/code" rel="tag">code</a></li>
<li><a href="http://del.icio.us/binblog/programming" rel="tag">programming</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com4tag:blogger.com,1999:blog-13286014.post-91934933250197649432007-03-07T23:43:00.000+05:302007-03-07T23:44:26.509+05:30Little Flies...<p class="intro">I know I don't put comics in this blog - but there is a first time for everything. A comic from <a href="http://blaugh.com/" class="external">bLaugh</a>...</p>
<a class="external" href="http://blaugh.com/2007/01/27/no-need-to-be-concerned-little-fly"><img title="No Need to be Concerned, Little Fly" alt="No Need to be Concerned, Little Fly" src="http://blaugh.com/cartoons/070126_web_developer.gif" width="447" height="250"/></a>
<p>From now one, I am going to reffer to all my clients as 'Little Flies' *Insert evil laugh here*.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/humor" rel="tag">humor</a></li>
<li><a href="http://del.icio.us/binblog/comic" rel="tag">comic</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0tag:blogger.com,1999:blog-13286014.post-27043399842718281572007-03-06T20:05:00.000+05:302007-03-06T20:09:26.725+05:30Find the Dreamhost Server hosting your site<img class="intro" style="cursor:pointer; cursor:hand; float:right;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUx6u15bFQauwP7S_wMZ_WPT0GjDBHLFUU7roQS-U7ZhlXcmfGoQcKg1rtPGGkmJowcxcvMa4rnEL0uEZVK5YBFyaoWT71xtPWxQ309-1gdH2Lx4g16RYG4wqQSMr_mujFMcEBZg/s400/649839_connections.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5038820841290058770" />
<p class="intro">Dreamhost use multiple servers to host the sites of its customers. If you have been using their service, you would know the name of your web server. If you have been praying for the servers to come back up(as I have been doing) during the <a class="external" href="http://www.dreamhoststatus.com/2007/02/25/power-outage-update/">recent outage</a>, you will know the name of your Web Server, MySQL server and the Email Server.</p>
<p>If you are using Dreamhost and you still don't know the names of the your servers, there is still hope. Some ways to find the names of your servers...</p>
<h2>Control Panel</h2>
<p>Your server's details can be viewed in the 'Account Status' tab in the newly redesigned <a class="external" href="https://panel.dreamhost.com/">control panel</a>. Just <strong class="highlight">log in and click the 'Account Status' tab</strong> in the upper right corner.</p>
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQeXHKAfPCERzR5-ykAN-x7OCJjVqwyOjWzQU03Y96gYENwdH3YY4db5jGkxYI8ceKzVwoLI6zy1L76pCnhuaGqWfwp4e43WmOh3H1G-QmdSHS_M6g6Yly5d3IeY1SgWrjTRmySQ/s1600-h/tab.png"><img style="cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQeXHKAfPCERzR5-ykAN-x7OCJjVqwyOjWzQU03Y96gYENwdH3YY4db5jGkxYI8ceKzVwoLI6zy1L76pCnhuaGqWfwp4e43WmOh3H1G-QmdSHS_M6g6Yly5d3IeY1SgWrjTRmySQ/s400/tab.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5038820476217838578" /></a><br /><br />
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga3edDKzpzOlcgD1UxQ0-HjuKzL805DhGuN4Y-r4uetuSGvAEt-_3uyXUumPz8-sd0PFCRsk3O5-5JpbamHKLCxrQMpL6HXv-E5F7bYyHZdvuh3RiuRiPcxn2pPJGuEQIMF73DvQ/s1600-h/servers.png"><img style="cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga3edDKzpzOlcgD1UxQ0-HjuKzL805DhGuN4Y-r4uetuSGvAEt-_3uyXUumPz8-sd0PFCRsk3O5-5JpbamHKLCxrQMpL6HXv-E5F7bYyHZdvuh3RiuRiPcxn2pPJGuEQIMF73DvQ/s400/servers.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5038820635131628546" /></a>
<h2>Ping</h2>
<p>If you just want to know the server name of your web server, just <strong class="highlight">ping the domain</strong>. The results for <a href="http://www.openjs.com/">OpenJS.com</a> (emphasis mine, obviously)</p>
<pre>$ ping openjs.com
PING openjs.com (208.113.136.27) 56(84) bytes of data.
64 bytes from basic-dap.<strong>mento</strong>.dreamhost.com (208.113.136.27): icmp_seq=1 ttl=54 time=303 ms
</pre>
<h2>hostname</h2>
Another method to find this name is to log into the ssh account and run this command...
<pre>$ hostname
<strong>mento</strong></pre>
<h2>Server Information</h2>
<p>The different servers in Dreamhost - and their configurations...</p>
<ul>
<li><a class="external" href="http://www.askapache.com/2007/webmaster/dreamhost-server-ip-address-list.html">DreamHost Server IP Address List</a></li>
<li><a class="external" href="http://wiki.dreamhost.com/index.php/Server_Statistics">Server Statistics</a></li>
</ul>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/dreamhost" rel="tag">dreamhost</a></li>
<li><a href="http://del.icio.us/binblog/server" rel="tag">server</a></li>
<li><a href="http://del.icio.us/binblog/hosting" rel="tag">hosting</a></li>
<li><a href="http://del.icio.us/binblog/database" rel="tag">database</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0tag:blogger.com,1999:blog-13286014.post-17283782048423554412007-03-02T23:41:00.000+05:302007-03-02T23:44:18.275+05:30Quitting the Job<p class="intro">After two years, I have decided to leave <a class="external" href="http://www.reubro.com/">Reubro International</a>. I <a href="http://binnyva.blogspot.com/2005/02/got-job.html" class="internal">joined there</a> around March 2005 as a <a href="http://www.bin-co.com/perl/" class="mypages">Perl</a> Developer. In the time I spend there, I learned <a href="http://www.bin-co.com/php/" class="mypages">PHP</a>, <a href="http://www.openjs.com/" class="mypages">Advanced JavaScript</a>, <a href="http://binnyva.blogspot.com/search/label/css" class="internal">Advanced CSS</a> - even a bit about <a href="http://www.bin-co.com/database/db_naming_conventions.php" class="mypages">Database designing</a> and <a href="http://binnyva.blogspot.com/2006/06/apache.html" class="internal">server administration</a>.</p>
<h2>Learning New Things</h2>
<p>There is too many things I learned while I was there - too many to list here(two years is a long time). But lately I am finding that instead of helping me to learn new things, my work is negatively affecting my ability to learn new stuff. A lack of time is the formost problem. I have reached the conclusion that the only way to learn new things is to lose the job - and that is exactly what I did.</p>
<p>I have a huge list of stuff to learn - which includes - but not limited to...</p>
<ul>
<li><a href="http://www.paulgraham.com/lisp.html" class="external">Lisp</a></li>
<li><a href="http://www.haskell.org/haskellwiki/Haskell" class="external">Haskell</a></li>
<li><a href="http://www.djangoproject.com/" class="external">Django</a></li>
<li><a href="http://binnyva.blogspot.com/2006/11/experimenting-with-cakephp-and-ruby-on.html" class="internal">CakePHP</a></li>
<li>wxWidget Framework for Python</li>
<li>And more...</li>
</ul>
<p>So, expect some posts about these subjects here.</p>
<h2>Getting Things Done</h2>
<p>I have a lot of entries in my <a href="http://nexty.sourceforge.net/demo/" class="mypages">ToDo List</a> - things I never had time for before. Time to get them done. Stuff like...</p>
<ul>
<li>Release a stable version of <a href="http://nexty.sourceforge.net/" class="mypages">Nexty</a></li>
<li>Finish the Ruby on Rails app</li>
<li>Integerate <a href="http://openid.net/" class="external">OpenID</a> into <a href="http://www.bin-co.com/" class="mypages">Bin-Co.com</a> and <a href="http://www.openjs.com/" class="mypages">OpenJS.com</a></li>
<li>Write a lot of content</li>
<li>etc.</li>
</ul>
<h2>More Content</h2>
<p>With all this free time, I should be able to produce more content. So expect a jump in the frequency of posts in this blog and my other sites. Maybe even a new site.</p>
<h2>Freelancing</h2>
<p>I have a decent income from Google AdSense. I also have a couple of other revenue streams. So I am not looking at freelance projects right now. Maybe after a few months.</p>
<h2>In Short...</h2>
<p>In short, I had a great time at Reubro. I met a lot of <a href="http://codlib.blogspot.com/" class="external">great</a> <a href="http://www.glad-win.com/" class="external">guys</a>. I learned a lot. And I understood that Corporate life is not for me. And <a href="http://simonwillison.net/2007/Jan/15/leaving/" class="external">like</a> <a href="http://scobleizer.com/2006/06/11/the-joy-on-her-face/" class="external">many</a> <a href="http://www.dustindiaz.com/goodbye-yahoo/" class="external">others</a>, I chose unemployment over working at a company.<!-- I am going to be an SSH expert. (SSH = Simply Sitting at Home ;-))--></p>
<p>Oh, and by the way, the 'official reason' for leaving is 'Excessive Eye Strain'. Happens if you spent over 15 hours a day staring at a monitor.</p>
<p>So, what do you think of my decision? Good? Bad? Stupid? Leave a comment and let me know.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/personal" rel="tag">personal</a></li>
<li><a href="http://del.icio.us/binblog/reubro" rel="tag">reubro</a></li>
<li><a href="http://del.icio.us/binblog/job" rel="tag">job</a></li>
<li><a href="http://del.icio.us/binblog/income" rel="tag">income</a></li>
<li><a href="http://del.icio.us/binblog/freelancing" rel="tag">freelancing</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com7tag:blogger.com,1999:blog-13286014.post-26465296945198594422007-02-26T23:42:00.000+05:302007-03-17T04:35:38.448+05:30Top 5 Features Missing in Google Reader<img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY_zycVTkOhz25Q6tx0Zs3XMSDZ2ISEXitn7trj0eOxn_XSXhkbTEJqwQRru1rh8ZV5kwZEOy2H91kZhUKnZUtTMzwBiZChABc6-uvR0wYoHb676y-6V7CVfjhf2cVhlHwGJw_NA/s400/reader-blog-logo.gif" border="0" alt="Google Reader Logo" id="BLOGGER_PHOTO_ID_5035907622275972306" />
<p class="intro">I am using <a href="http://www.google.com/reader/" class="external">Google Reader</a> as my RSS Aggregator. After using this for some time, I am still unsure of how to do some things. I don't even know <strong class="highlight">weather its possible or not</strong>. And since <a href="http://www.nathanrice.org/2007/02/16/feedburner-now-reporting-google-reader-stats/" class="external">Google Reader is publishing usage stats</a>, I know that 35% of my readers uses Google Reader - so I want to ask these doubts to you.</p>
<h3>1. Can I search through my subscribed feeds?</h3>
<p>There are many times when I wanted to <strong class="highlight">find an old post I have read</strong>. Is there any way to search through my subscribed posts? Its ironic that Google fails to provide this option.</p>
<h3>2. Can I nest folders?</h3>
<p>Can I put a <strong class="highlight">folder inside another folder</strong>? I know that this is a tagging generation and hierarchical structures are outdated - that's how I like it.</p>
<h3>3. How do I change a URL of a feed?</h3>
<p>Some sites change the feed URL. It is a bad thing - but it happens. My question is how do I update the URL of a subscribed feed using Google Reader. The last time I had to do this, I had to <strong class="highlight">delete the feed in question and subscribe to it again</strong>.</p>
<h3>4. Is there a more efficient way to subscribe a feed from Firefox?</h3>
<p>Is there any way I can click the subscribe button in Firefox - and <strong class="highlight">get the feed subscribed without any additional clicks</strong>? I had outlined one method to <a href="http://binnyva.blogspot.com/2007/02/subscribing-feed-in-google-reader-using.html">make the handling of feed subscription better in Firefox</a>. But that still requires one additional click. I know Google Reader provides a bookmarklet for this - but is it possible to subscribe using the Firefox's default way? Plus, even after clicking bookmarklet you should click the subscribe button.</p>
<h3>5. Can I put the tags in one folder?</h3>
<p>I like to use a lot of tags to mark a post - but I hate the fact that each <strong class="highlight">new tag makes a new entry in the left side 'Subscriptions' column</strong>. I want that column small and manageable.</p>
<p>If any of these are not possible, I am sure that <a href="http://googlereader.blogspot.com/2007/01/some-of-our-engineers-dont-work-at.html" class="external">Google Reader engineers will find this post</a>. Maybe they will add these features. So, if you are from google, please implement these features in Google Reader. Oh, and, leave a comment.</p>
<script type="text/javascript">
digg_url = 'http://digg.com/software/Top_5_features_missing_in_Google_Reader';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/google" rel="tag">google</a></li>
<li><a href="http://del.icio.us/binblog/reader" rel="tag">reader</a></li>
<li><a href="http://del.icio.us/binblog/features" rel="tag">features</a></li>
<li><a href="http://del.icio.us/binblog/rss" rel="tag">rss</a></li>
<li><a href="http://del.icio.us/binblog/atom" rel="tag">atom</a></li>
<li><a href="http://del.icio.us/binblog/feed" rel="tag">feed</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com5tag:blogger.com,1999:blog-13286014.post-82622608540324517442007-02-23T21:04:00.000+05:302007-02-23T21:06:45.691+05:30Subscribing a feed in Google Reader using Firefox<p class="intro">The <a href="http://binnyva.blogspot.com/2006/10/firefox-20-releaseand-ie-7.html">latest version of firefox has a feed preview feature</a>. But subscribing a new feed in Google Reader using this feature leaves a little to be expected. If you use this feature to <strong class="highlight">subscribe to feeds in the Google Reader, you must have come across the "Subscribe to Google Reader/Google Homepage"</strong> dilemma. I always want to subscribe to Google Reader - thats <strong class="highlight">one extra click</strong> for me. But I found a way to overcome this.</p>
<p>Open a new tab and type in <code>about:config</code> in the address bar. </p>
<p>Type <code>browser.contentHandlers</code> in the Filter text box</p>
<p>Find the key name of the Google Reader property - in my system, it is 'browser.contentHandlers.types.2.title'. See image for clarification</p>
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4bY9y3nhs_U77pdoDplWCl9ftcB2IUlc4c7ZiRpRtj02EidV7obHJN8TBppZgld2iC0HBS5TkhMS0ROBxb9GiUR6lFgRLKPv3TcUrw8ap3PYall22UAIOcY_-gxyI32UHgpeRqw/s1600-h/about_config.png"><img style="cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4bY9y3nhs_U77pdoDplWCl9ftcB2IUlc4c7ZiRpRtj02EidV7obHJN8TBppZgld2iC0HBS5TkhMS0ROBxb9GiUR6lFgRLKPv3TcUrw8ap3PYall22UAIOcY_-gxyI32UHgpeRqw/s400/about_config.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5034753702002490562" /></a>
<p>The 'index' of the Google Reader, in my case is 2.</p>
<p>Right click on <code>browser.contentHandlers.types.2.uri</code>(the number must be the index of Google Reader in your system) and click Modify.</p>
<p>Enter the value...</p>
<code>http://www.google.com/reader/view/feed/%s</code>
<p>Now restart Firefox and try to subscribe to a feed - you will be taken to the google reader page directly. Then click on the "Subscribe" button on the top right corner to subscribe.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/firefox" rel="tag">firefox</a></li>
<li><a href="http://del.icio.us/binblog/rss" rel="tag">rss</a></li>
<li><a href="http://del.icio.us/binblog/feed" rel="tag">feed</a></li>
<li><a href="http://del.icio.us/binblog/subscribe" rel="tag">subscribe</a></li>
<li><a href="http://del.icio.us/binblog/google" rel="tag">google</a></li>
<li><a href="http://del.icio.us/binblog/reader" rel="tag">reader</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com5tag:blogger.com,1999:blog-13286014.post-72666279104898461762007-02-17T20:57:00.000+05:302007-02-17T21:10:11.610+05:30Use of 'Numbers Particle' System in Programming<img class="intro" style="display:block; margin:0px auto 10px; float:right;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_QhhOB4eHyBpmAocziQM0Qdj_XB-kNJZ6x6TiewKACq1QVxRWNjn0aIo3D4AiTXitC9jSVKMUlrMyTylrHWEQ9jTwIkaMoqbWzESeOf6gRJ11MatIbPfvk8TaVq0089kmc7j1SA/s400/particles.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5032525391535466130" />
<p class="intro">All numbers can be created using the series 1, 2, 4, 8, 16, 32, 64, 128, ... without repetition. For example, 7 can be represented as 1+2+4. 13 is 8+4+1. This property is used for creating binary number...</p><br style="clear:both;" />
<table border="1" width="100%">
<tr>
<th>Decimal Numbers</th>
<td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td>
</tr>
<tr>
<th>Binary Numbers</th>
<td>0001</td><td>0010</td><td>0011</td><td>0100</td><td>0101</td><td>0110</td><td>0111</td><td>1000</td>
</tr>
<tr>
<th>Powers of 2</th>
<td>2<sup>0</sup></td><td>2<sup>1</sup></td><td>-</td><td>2<sup>2</sup></td><td>-</td><td>-</td><td>-</td><td>2<sup>3</sup></td>
</tr>
<tr>
<th>Number Particles <sup>*</sup></th>
<td>1</td><td>2</td><td>1+2</td><td>4</td><td>1+4</td><td>2+4</td><td>1+2+4</td><td>8</td>
</tr>
</table>
<p><sup>*</sup> For the lack of a better name. If you are aware of the correct terminology for this system, please let me know</p>
<p>An advantage of this series is that there is <strong class="highlight">only one way to represent a number</strong> - ie. 7 can only be 1+2+4. In the normal series(1,2,3,4,5,6,7,8,...), 7 can be represented as 3+4, 5+2, 1+6, 1+2+4, etc. This property of the doubling number series can be used to store multiple values using just one number.</p>
<h2>Example Usage</h2>
<p>The best example for a use of this is the Linux File Permission system. In Linux...</p>
<ul>
<li>1 = Execute Permission</li>
<li>2 = Write Permission</li>
<li>4 = Read Permission</li>
</ul>
<p>So if you want to give a file Read and Write permission it is 2 + 4 = 6. If you want Read and Execute permission it is 1 + 4 = 5.</p>
<h2>Implementation</h2>
<p>You can use this principle while designing a database. You can use this to <strong class="highlight">store data that would otherwise require a reference table or multiple fields</strong>. For example, let us try to implement the linux user permissions system shown above using a database.</p>
<table border="1">
<tr><td>id</td><td>1</td><td>INT</td></tr>
<tr><td>filename</td><td>Hello World.txt</td><td>VARCHAR</td></tr>
<tr><td>is_writable</td><td>1</td><td>ENUM('1','0')</td></tr>
<tr><td>is_readable</td><td>1</td><td>ENUM('1','0')</td></tr>
<tr><td>is_executable</td><td>0</td><td>ENUM('1','0')</td></tr>
</table>
<p>Actually, in linux, different permissions can be set for the file owner, the file owners group and the rest of the world. But I am ignoring that for simplecity.</p>
<p>In the above example, we use 3 fields for permissions. Using the 'number particle' method, we can reduce it to just one field.</p>
<table border="1">
<tr><td>id</td><td>1</td><td>INT</td></tr>
<tr><td>filename</td><td>Hello World.txt</td><td>VARCHAR</td></tr>
<tr><td>permission</td><td>4</td><td>INT</td></tr>
</table>
<p>This method should not be used for a large dataset. Here the dataset is is write/read/execute - just 3. But if it is a larger dataset - like read/append/delete/modify/create/rename/copy/.... then using this system may not be the best method - as it will make the system more complicated. Even in small datasets, using this system will make things complicated. <strong class="highlight">In most systems, I will not recommend using this method</strong>.</p>
<p>Another problem with this method is that the <strong class="highlight">data is not atomic</strong>. So if you use this method, database normalization goes out the window.</p>
<h2>Code</h2>
<p>To use this method, you will need <strong class="highlight">a method to decompose a number to its number particles</strong>. I have created such a function. Just give the number you want to decompose and it will return an array with the particles of the given number.</p>
<p>This code is in PHP - but feel free to translate it into other languages. If you have translated this into another languages, please leave the code as a comment. </p>
<pre><code class="php">function findParticles($number) {
$all_particles = array();
$series = 1;
while($number) {
if($number % 2) $all_particles[] = $series;//If the number is odd
$number = intVal($number / 2);
$series = $series * 2;
}
return $all_particles;
}
//Demo
$particles = findParticles(21); // Returns Array(1,4,16)
</code></pre>
<p>This is distributed under the terms of the BSD License.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/script" rel="tag">script</a></li>
<li><a href="http://del.icio.us/binblog/function" rel="tag">function</a></li>
<li><a href="http://del.icio.us/binblog/number" rel="tag">number</a></li>
<li><a href="http://del.icio.us/binblog/particle" rel="tag">particle</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com3tag:blogger.com,1999:blog-13286014.post-36248487539184327282007-02-14T23:39:00.000+05:302007-02-24T20:34:35.857+05:30Add Feedburner's FeedFlares to your Feed<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl9WimEsCw8YM6GceY_m-fnmT34PtvZrRTa2nBYIkW5xNFgTEMgC0h3e4Ldvzt8pmrR-IYvClvRIe6dia2KsjjPdUfrkhDIu1EXL0yetjahAG3kIYoUhfwIRkcOVtA6ZOU5sATvQ/s400/feedburner.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5031453917454198386" />
<p class="intro">If you are an RSS junkie you would have noticed that many feed have small links at the bottom of the post that can be used to digg the post, email it, subscribe to the comments of that post etc. These is a feature of <a href="http://www.feedburner.com/">feedburner</a> - it is called Flares. <a href="http://blogs.feedburner.com/feedburner/archives/001543.html">According to Feedburner</a> "<q cite="http://blogs.feedburner.com/feedburner/archives/001543.html">FeedFlare is a one-step service that enables publishers to configure a very slim "footer" containing customizable actions that will appear beneath each item in a feed.</q></p>
<p>For the longest time I thought that this was available only for paid uses of feedburner service - but I was wrong. If you use feedburner, you could use flares in your feed. And that is exactly what I did - if you are reading this post using a feed reader, just go to the bottom of this post and you will see the flares.</p>
<h2>How to Add flares to your Feed</h2>
<p>Before anything, you must be using feedburner to deliver your feed if you want this feature. If you are using feedburner, continue reading. If you are not using feedburner, its game over for you.</p>
<ul>
<li>Got to <a href="https://www.feedburner.com/fb/a/login">Feedburner Login page</a> and <strong class="heightlight">Login</strong> into your account.</li>
<li><strong class="heightlight">Click on the feed</strong> you want to add the flares to.</li>
<li>Click on the <strong class="heightlight">'Optimize' tab</strong>.</li>
<strong class="heightlight">Click on the <strong class="heightlight">FeedFlare tab</strong> on the left sidebar.</strong>
<li>Select all the flares you want to add to your feed and submit the form.</li>
</ul>
<p>An image to make things clearer...</p>
<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEievyzuZoRCCEBptNFVsbohSTJQaPyxSroT5CQqopDKgsxoT-i42Gkon-SrBuC1-S9xIBJ1Wp-pwTkKLGDT5L3waJrwbfBt-3l0U7J1aWvkOiJd4BvWJ8rgZdMt4HQM7cMYwFpcmQ/s1600-h/screenshot.png"><img style="cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEievyzuZoRCCEBptNFVsbohSTJQaPyxSroT5CQqopDKgsxoT-i42Gkon-SrBuC1-S9xIBJ1Wp-pwTkKLGDT5L3waJrwbfBt-3l0U7J1aWvkOiJd4BvWJ8rgZdMt4HQM7cMYwFpcmQ/s400/screenshot.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5031454140792497794" /></a>
<p>Thats it. Now all the posts in that feed will have the flares at the bottom.</p>
<h2>Custom Flares</h2>
<p>The flare form only displays the default flares. But it is <strong class="heightlight">possible to create and use custom flares</strong> using the open <a href="http://www.feedburner.com/fb/a/api/feedflare">FeedFlare API</a>. See the <a href="http://www.feedburner.com/fb/a/help/flarecatalog">Flares Catlog</a> and <a href="http://www.feedburner.com/fb/a/developers/101flares">101 FeedFlares for a Better Tomorrow</a> to find all the flares that can be used.</p>
<h2>Don't Clutter</h2>
<p>A word of warning before you add the flares to your feed - don't use too many. It is easy to abuse flares by adding many of it. Please <strong class="heightlight">make sure your <a href="http://www.problogger.net/archives/2007/02/13/avoid-clutter-in-your-rss-feeds/">feeds are clutter free</a></strong>.</p>
<h2>Related Links</h2>
<ul>
<li><a href="http://blogs.feedburner.com/feedburner/archives/001543.html">Introduction to FeedFlares</a></li>
<li><a href="http://blogs.feedburner.com/feedburner/archives/2006/01/feedflare_part.php">FeedFlare, Part II</a></li>
<li><a href="http://www.bloggertalk.net/article75.html">How to Increase Traffic to Your Blog Using Feedburner's Flare Option</a></li>
</ul>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/feedflareunit" rel="tag">feedflareunit</a></li>
<li><a href="http://del.icio.us/binblog/feedburner" rel="tag">feedburner</a></li>
<li><a href="http://del.icio.us/binblog/feed" rel="tag">feed</a></li>
<li><a href="http://del.icio.us/binblog/flare" rel="tag">flare</a></li>
<li><a href="http://del.icio.us/binblog/rss" rel="tag">rss</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com3tag:blogger.com,1999:blog-13286014.post-79576969039080293272007-02-09T23:27:00.000+05:302007-02-08T02:57:43.468+05:30Bin-Co and OpenJS Backend Updated<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT820VjjpsLFtq9Ko_b9XhTGsaKqffTBRLMkg970yN2_MVbchVh5iy5ONka6_EQqRdt5cVF7F7Af1yrSoa6WwkRz-pcDbSR-GHjQ7dibGUrkGlryBGWLbwu-VOlR5D3YS_Nn6CbA/s400/logogs.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5029595154392737378" />
<p class="intro">I have just finished updating the backend of my two sites <a class="mypages" href="http://www.bin-co.com/">Bin-Co</a> and <a class="mypages" href="http://www.openjs.com/">OpenJS</a>. I have updated the Database Design to make it compactable with my <a class="mypages" href="http://www.bin-co.com/database/db_naming_conventions.php">DB Design rules</a>. Also some part of the code base have been altered to make it easier to reuse.</p>
<p><a class="internal" href="http://binnyva.blogspot.com/2006/05/openjs-backend.html">Using a custom <abbr title="Content Management System">CMS</abbr> has its advantages</a> - but it has a big maintance load. The good part is that a lot of cool PHP code was created - which I will be releasing in my <a class="mypages" href="http://www.bin-co.com/php/">PHP page</a>.</p>
<p>There is a problem with this upgrade - there is a possibility of errors somewhere in the site. If you notice any problems, let me know.</p>
<p>Once that job is complete, I will redesign this blog.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/backend" rel="tag">backend</a></li>
<li><a href="http://del.icio.us/binblog/php" rel="tag">php</a></li>
<li><a href="http://del.icio.us/binblog/db" rel="tag">db</a></li>
<li><a href="http://del.icio.us/binblog/redesign" rel="tag">redesign</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0tag:blogger.com,1999:blog-13286014.post-90926258394304944742007-02-04T22:44:00.000+05:302007-02-04T22:46:34.244+05:30Nexty Beta Released<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" class="intro" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4TOZvbwbZ-NElDXTL5GN1LG6xkjsNa6QsHiPQva-DPCfMDpZlQTLJ60fiINGcM6fYFqZZkWFkIawZErsJkc1GrUlRliltGTA2iOnNfFgA5CO8hq9qWo93l8apNl7mAKdQC2jHdw/s1600-h/ss1.png"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4TOZvbwbZ-NElDXTL5GN1LG6xkjsNa6QsHiPQva-DPCfMDpZlQTLJ60fiINGcM6fYFqZZkWFkIawZErsJkc1GrUlRliltGTA2iOnNfFgA5CO8hq9qWo93l8apNl7mAKdQC2jHdw/s200/ss1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5027728708398896834" /></a>
<p class="intro">Nexty is a easy to use To-Do list manager created in PHP. This tool adds a few of my concepts with the generally held concepts of <abbr title="Getting Things Done">GTD</abbr>. It can be installed in a local server or in a online web server.</p>
<p>See <a href="http://nexty.sourceforge.net/demo/">Demo</a></p>
<p>This software is in beta stage - so expect some breakages here and there. I will try to release a stable version by the end of this week - by 10<sup>th</sup> February 2007 - but no promises.</p>
Get the <a href="http://downloads.sourceforge.net/nexty/nexty_0_01_A.tar.gz">code</a> from the <a href="http://sourceforge.net/projects/nexty">project page of nexty</a> at Sourceforge.
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/php" rel="tag">php</a></li>
<li><a href="http://del.icio.us/binblog/nexty" rel="tag">nexty</a></li>
<li><a href="http://del.icio.us/binblog/gtd" rel="tag">gtd</a></li>
<li><a href="http://del.icio.us/binblog/tool" rel="tag">tool</a></li>
<li><a href="http://del.icio.us/binblog/application" rel="tag">application</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0tag:blogger.com,1999:blog-13286014.post-22619163172768134282007-01-31T23:55:00.000+05:302007-01-31T23:59:29.655+05:30Refferer Links in Google Analytics<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx6wAsI1XHhyphenhyphenVb4oXTWmDmFmttDP_X9BOxVGZWzlnAgkjEP3laKsZrrPQUPpuKFirJ7GHpzFmFCtRTbPaPiIHcR4W3wDrVkXaaY0OOV0e0Jw7hzW4mTCQSMf0BiDMRysEl6o-2og/s400/stats.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5026263034718163954" class="intro" />
<p class="intro">Google Analytics is a great tool for tracking your visitors - I use it for all my sites. But there is one problem - you cannot find the exact URL from which the visitor has come(the 'Refferer' URL). Well, they provide this data - but have hidden it in the menu.</p>
<p>To get this list, open this menu in the left side of the Analytics page...<br />
Marketing Optimization > Marketing Campaign Results > Referral Conversion.</p>
<p>Now just open a site to see the incoming links from that site.</p>
<p>I have no idea why they have decided to hide this feature - I use this feature a lot.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/google" rel="tag">google</a></li>
<li><a href="http://del.icio.us/binblog/statistics" rel="tag">statistics</a></li>
<li><a href="http://del.icio.us/binblog/analytics" rel="tag">analytics</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0tag:blogger.com,1999:blog-13286014.post-25433529201681355462007-01-26T01:49:00.000+05:302007-01-26T01:59:43.002+05:30Wired Design Reviewed<p class="intro"><a href="http://www.wired.com/news/wiredmag/0,72530-0.html">Wired Magazine have redesigned their magazine</a> - and since it is one of the best technology magazines, I decided to review the code of the site. The magazine redesign gave me the idea of doing the review for the site's design. I am not an expert in graphical design - so I am not going to say much about it.</p>
<p>The <a href="http://www.wired.com/news/wiredmag/0,72530-0.html">page I decided to review</a> was the page announcing the redesign.</p>
<h2>Does not validate</h2>
<p>The page does not validate - and not just any small mistake like missing end tags - it does not even have a doctype! In all I found 126 errors.</p>
<h2>Includes too much Files</h2>
<p>The page calls 10 JavaScript files and 9 CSS files in the head section - with more in the body. Splitting up code to multiple files is a good method for managing code - but it would take up more requests. A better method for a high traffic site like Wired is using just one external file that includes all its javascript code and one CSS file.</p>
<p>Don't get me wrong - I would not advertise that method in smaller sites. Using just one file for all your code is a maintenance nightmare. If you want to do this the best choice is to use a merging tool like the <a href="http://www.ejeliot.com/blog/72">merging tool by Ed Eliot</a>.</p>
<h2>Inline JavaScript Code</h2>
<pre><code class="html"><body id="storyPage" onload="setStyle();"></code></pre>
<p>A much better way of doing this is to store all the javascript in an external file and use this code...</p>
<pre><code class="javascript">window.onload=setStyle;</code></pre>
<p>Or you could use one of the many <a href="http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html">addEvent()</a> functions.</p>
<h2>Image Based Navigation Links</h2>
<p>Moving down, we have the navigation - this are linked images. All the images have alt attributes - but it still does not sit well with me. See the code..</p>
<pre><code class="html"><a id="nculture" href="/culture.html" title="Culture Story Index">
<img src="http://www.wired.com/ly/wired/shared/images/cs1/nav_culture.gif" alt="[Culture]" class="" />
</a></code></pre>
<p>[Returns added by me]</p>
<p>I don't know why it has ' class="" ' - but it was there when I got it.</p>
<p>A better method is using a list of links and using any <a href="http://www.mezzoblue.com/archives/2003/12/12/accessible_i/" title="Accessible Image Replacement">image replacement technique</a> to insert the image.</p>
<p>And those images they used are not all that good. Maybe they look better in a CRT monitor - but in my LCD monitor they look really bad. But I am not a designer and I am overstepping my bounderies when I say that - so why don't you decide...</p>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv90QGoFc7HFkYYzILsuIIIGb_zKsgeG74Zd7oqxC_bXATbGeaEhxUO2AGiChtalSvK2MyeiFcF-UaSWoBRd1rsqkOB54NgMdTQi1rM7pZmLXstPAT7Bp25ER7Z9lt9nN_P1zMOw/s400/nav_technology.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5024065596305544146" />
<h2>Text Resizing Function</h2>
<img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjizJgoqukqdPKy47k-5t_rpdE0-th5D36Z8Qy38jSE2D7zl2Gz2NfC4bqmPjUH9nyj9D6V5ExmbYHZx0fPViILF1icfEW_oMeelaPMG4OK9B0E_tjekDqfaeuQXMA5olIb86eu0w/s400/text_size.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5024065841118680034" />
<p>Wired gives the user a chance to change the size of the text. This is duplicating a functionality that already exists in the browser. Any decent browser can resize the text of the content. Note: IE does not count as a 'decent browser' - but if you use <code>em</code> as your font size unit, resizing works in it as well.</p>
<p>Currently the code look like this - ignore the inline JavaScript - we already covered that...</p>
<pre><code class="html"><a href="#" onclick="setActiveStyleSheet('Small Text', 1);return false;">
<img alt="Small Text " height="18" src="http://www.wired.com/ly/wired/shared/images/common/icon_text_sm.gif" title="Small Text" width="18">
</a></code></pre>
<h2>Bookmarking using <code>name</code></h2>
<pre><code class="html"><a class="skiplinks" name="content"> </a></code></pre>
<p>This is for the skip links to work - but a much better method to do this is using ID for that section...</p>
<pre><code class="html"><div id="content">...</code></pre>
<h2>Unsemantic Code</h2>
<pre><code class="html"><h1 class="lg"><cite>Wired</cite> Redesign: Change Is Good</h1></code></pre>
<p><cite>? What do they mean by that? <em> should be a better choice here.</p>
<p>There are some code to display advertisements - but as a rule, I ignore that when I review a design. That is because most of the advertisement provider's code are very bad - and it is beyond the control of the designer.</p>
<p>By this time I got enough of it - after this much code cruft, I don't think anything better is going to come along in this page.</p>
<p>I found a few good things about wired - like their 'Standards Notification' and Skip Links.</p>
<h2>Why Wired?</h2>
<p>Why did I review a site like wired - especially when <a href="http://www.robertnyman.com/2007/01/24/with-these-web-sites-would-you-say-the-web-standards-war-is-won/">all 'big' sites fail to provide a standard code</a>. Because I thought that if a site has <a href="http://www.wired.com/news/culture/0,1284,55675,00.html">articles promoting web standards</a>, they will design their site so. Clearly, I was wrong. </p>
<p>Just for your information, I reviewed a site and complained that it did not validate - but this site will fail validation as well. Blogger inserts too much stuff that fail to validate that I stopped trying a long time ago. But my sites will validate - if you have any doubt, take a look at the code of <a href="http://www.openjs.com/">OpenJS</a> or Bin-Co. Its not perfect, but still is much better than wired's redesign</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/xhtml" rel="tag">xhtml</a></li>
<li><a href="http://del.icio.us/binblog/sites" rel="tag">sites</a></li>
<li><a href="http://del.icio.us/binblog/wired" rel="tag">wired</a></li>
<li><a href="http://del.icio.us/binblog/review" rel="tag">review</a></li>
<li><a href="http://del.icio.us/binblog/design" rel="tag">design</a></li>
<li><a href="http://del.icio.us/binblog/standards" rel="tag">standards</a></li>
<li><a href="http://del.icio.us/binblog/validation" rel="tag">validation</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com4tag:blogger.com,1999:blog-13286014.post-84590669067206227742007-01-24T23:19:00.000+05:302007-01-24T23:23:43.802+05:30Ajax Data Transfer Format - UED(Url Encoded Data)<script type="text/javascript">
digg_url = 'http://digg.com/programming/Ajax_Data_Transfer_Format_for_Sending_Data_to_the_Server_Side';
</script>
<script type="text/javascript" src="http://digg.com/api/diggthis.js"></script>
<p>JSON has taken the award for the easiest method for transporting data when using Ajax. JSON is great to get data from the server side to the client side. What what about when you need to <strong class="highlight">send data to the server side</strong>? Sure you can use JSON then - but the advantage of using JSON is lost. So I propose using another format for it - <strong class="highlight"><a href="http://www.openjs.com/scripts/data/ued_url_encoded_data/" class="mypages">UED or URL Encoded Data</a></strong>. Its a very simple concept - and it has been in use for a long time - all I have done is create a <strong class="highlight">function that will encode the data into this format</strong>. The basic concept behind this is that the most used <strong class="highlight">data structures can be easily encoded into a URL. You can create variables, numerical arrays, associative arrays, multi-level arrays</strong> etc. using existing syntax. The best part is all the <strong class="highlight">server side languages are capable of handling this format - so no parsing is needed</strong>.</p>
<p><a href="http://www.openjs.com/scripts/data/ued_url_encoded_data/" class="mypages">ued_encode()</a> will take an array as its argument and return the data encoded in UED format - as a string. You can use that string to send the data via POST or GET in the query part of the URL.</p>
<h2>Demonstration</h2>
<p>See <a href="http://www.openjs.com/scripts/data/ued_url_encoded_data/demo.php" class="mypages">ued_encode() in action</a>.</p>
<h2>Usage</h2>
<pre><code class="javascript">
var arr = {
'name':"Binny",
'year':2007,
'quote':"Hello, World!",
'os':['Windows','Linux','Mac'],
'software':{
'editor':"vi",
'audio':"xmms",
'video':"vlc"
}
}
var data = ued_encode(arr);
</code></pre>
<h2>Code</h2>
<p><a href="http://www.openjs.com/scripts/data/ued_url_encoded_data/ued_encode.js">ued_encode.js</a> - <1 KB</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/ajax" rel="tag">ajax</a></li>
<li><a href="http://del.icio.us/binblog/javascript" rel="tag">javascript</a></li>
<li><a href="http://del.icio.us/binblog/json" rel="tag">json</a></li>
<li><a href="http://del.icio.us/binblog/ued" rel="tag">ued</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com3tag:blogger.com,1999:blog-13286014.post-76901912200363421652007-01-21T23:44:00.000+05:302007-01-21T23:48:50.272+05:30Enabling Image Uploading in FCKEditor for PHP<img style="float:right; margin:0 0 10px 10px;" class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNzVgNB3McxLWy-IXekhByS-Z1c4InSwcV2FQ9TnJT-ioGwCdfH2oJ-TaUWjE-CnJ7QALZsvzyceTLvCVutdm_d9MC_I3URuyszWehI35pE71plsliO9beNtW61zHHKyx8dPuwuQ/s400/fckeditor_logo.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5022548927788907234" />
<p class="intro"><a href="http://www.fckeditor.net/" class="external">FCKEditor</a> is one of the most feature rich web based WYSWYG editors. I use it for almost all my projects. However, if you wish to enable image uploading in it, you have to jump through some hoops. This is a small tutorial on how to <strong class="highlight">enable image uploading in FCKEditor</strong>. This tutorial is aimed at FCKEditor 2.3.2 - but the principle works in other versions of FCKEditor as well</p>
<h2>Configuration</h2>
<h3>fckconfig.js</h3>
<p>Open the file <u>FCKEditor/fckconfig.js</u></p>
<p>Make sure that the default <strong class="highlight">php connector is selected</strong>.</p>
<p><strong>Line : 143 - Approx.</strong></p>
<pre><code class="javascript">var _FileBrowserLanguage = '<span class="special">php</span>' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = '<span class="special">php</span>' ; // asp | aspx | cfm | lasso | php</code></pre>
<p>By default, the ASP connector is enabled. If any FCKEditor developer is reading this, please make the default connector PHP as it is more commonly used than ASP.</p>
<h3>Connector</h3>
<p>Open <u>FCKeditor/editor/filemanager/browser/default/connectors/php/config.php</u></p>
<p>Enable the connector</p>
<strong>Line : 24</strong>
<pre><code class="javascript">// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = <span class="special">true</span> ;</code></pre>
<p>Make sure that the given <strong>'UserFilesPath' folder exists in the server and has write permission</strong>.</p>
<pre><code class="javascript">$Config['UserFilesPath'] = '/UserFiles/' ;</code></pre>
<h3>Uploader</h3>
<p>Open file <u>FCKeditor/editor/filemanager/upload/php/config.php</u></p>
<p>Enable the uploader</p>
<strong>Line : 24</strong>
<pre><code class="php">// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = <span class="special">true</span> ;</code></pre>
<p>All configurations are done.</p>
<h2>Test the Editor</h2>
<p>Now open up the url : <a href="http://localhost/FCKeditor/editor/filemanager/browser/default/connectors/test.html">http://www.yoursite.com/FCKeditor/editor/filemanager/browser/default/connectors/test.html</a> in the browser</p>
<p>Select PHP from the 'Connector:' drop down and click the 'Get Folders and Files' link.</p>
<p>If the files and folders of your 'UserFiles' folder is shown in the XML format, all is fine.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/php" rel="tag">php</a></li>
<li><a href="http://del.icio.us/binblog/wyswyg" rel="tag">wyswyg</a></li>
<li><a href="http://del.icio.us/binblog/editor" rel="tag">editor</a></li>
<li><a href="http://del.icio.us/binblog/fckeditor" rel="tag">fckeditor</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com9tag:blogger.com,1999:blog-13286014.post-27781728884463010882007-01-18T20:36:00.000+05:302007-01-18T20:38:38.917+05:30Flash 9 for Linux<img style="float:right; margin:0 0 10px 10px;"
class="intro" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5eYp4eZE5AY-jLDeijceM14sBMoHMXljbXyZg22dkGff77p7fItr6FzOjWEpxDfEMMDJPgpOJyD44zkpn5140uWfNlJg1BhqcbScrjPNnl94EEZj5VUxwW63Q9PDaN6U6WFKC4w/s400/rune_flash.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5021387237919587026" />
<p class="intro">Finally - <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Adobe have released Flash 9 for Linux</a>. I have been using the beta version of Flash 9 for some time now. Still no flash for <a href="http://binnyva.blogspot.com/2006/09/fedora-core-5-64bit-vs-32bit.html">64 bit Linux</a>.</p>
<h2>Installing</h2>
<ul>
<li>Download the <a href="http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz">tar.gz</a> file from the Adobe site.</li>
<li>Extract the file</li>
<li>Run the installer using the command './flashplayer-installer' in the extracted folder</li>
<li>Once the installation is complete, the plug-in will be installed in Firefox. To verify, open Firefox and type 'about:plugins' in the address bar.</li>
</ul>
<p>Unlike <a href="http://binnyva.blogspot.com/2006/10/no-sound-in-flash-running-on-firefox-in.html" title=" No Sound in Flash running on Firefox in Linux(FC5)">last time</a>, I have not run into any problems yet.</p>
<div class="tag-list">
<h3>Filed Under...</h3>
<ul>
<li><a href="http://del.icio.us/binblog/web" rel="tag">web</a></li>
<li><a href="http://del.icio.us/binblog/development" rel="tag">development</a></li>
<li><a href="http://del.icio.us/binblog/flash" rel="tag">flash</a></li>
<li><a href="http://del.icio.us/binblog/linux" rel="tag">linux</a></li>
</ul>
</div>Binny V Ahttp://www.blogger.com/profile/17219747953793699351noreply@blogger.com0