tag:blogger.com,1999:blog-36617355593791226352024-03-19T08:34:11.499+05:30Adie's ThoughtsProgramming and Other BitsUnknownnoreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3661735559379122635.post-14467221343243631762010-02-24T13:10:00.000+05:302010-02-24T13:10:53.338+05:30Project Euler Problem 25<div style="text-align: justify;">Lau Jensen had put up another nice <a href="http://www.bestinclass.dk/index.php/2010/02/haskell-ruby-clojure/">post</a>. I am sure it was just for fun, and not really, really comparing all the three languages.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Anyways heres my solution to the same Euler Problem no. 25<br />
</div><script src="http://gist.github.com/313219.js?file=gistfile1.clj"></script>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3661735559379122635.post-43362925396926432162009-12-29T18:45:00.000+05:302009-12-29T18:45:41.391+05:30Decapitalize and barf-string!!!<div style="text-align: justify;">I have been working with Third Party API providers at work and I must say I am utterly disappointed with them. The API sends various arbitrary strings which we do not want to display and store. Hence wrote a few sanitizing functions, had fun writing them, and since i wanted to name a function starting with barf...here goes<br />
</div><script src="http://gist.github.com/265305.js?file=string-utils.clj"></script>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-3661735559379122635.post-61218813204354035202009-10-10T11:03:00.001+05:302009-10-10T11:06:18.539+05:30Clojure and Lazy Evaluation<div style="text-align: justify;">This is not a post trying to explain <a href="http://en.wikipedia.org/wiki/Lazy_evaluation">Lazy Evaluation</a>!! I was doing some problems from Project Euler while learning Clojure when its beauty dawned upon me. Here's my code<br />
</div><script src="http://gist.github.com/206619.js">
</script>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3661735559379122635.post-36969992858369652872009-01-24T17:44:00.001+05:302009-01-24T17:44:17.886+05:30My Desk in Office<div style="float: right; margin-left: 10px; margin-bottom: 10px;"><a href="http://www.flickr.com/photos/adityo/3222557658/" title="photo sharing"><img src="http://farm4.static.flickr.com/3443/3222557658_d7f7b71da0_m.jpg" alt="" style="border: solid 2px #000000;" /></a><br /><span style="font-size: 0.9em; margin-top: 0px;"><a href="http://www.flickr.com/photos/adityo/3222557658/">My Desk in Office</a><br />Originally uploaded by <a href="http://www.flickr.com/people/adityo/">adityod</a></span></div>My Cool Setup in Office, have this nice 19 inch widescreen monitor (1440x900) to run only emacs, the rest is run on my laptop screen, i.e Firefox, Alpine, Irssi and Finch. Happy Development!!!<br clear="all" />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3661735559379122635.post-71084046885469789772008-12-01T13:55:00.003+05:302008-12-01T14:11:13.022+05:30dot emacs and githubGit has become quite popular as distributed code revision tool. I have been a long time SVN user, and i thought why not give Git a try.<a href="http://github.com/"> <span></span>github </a>is a site that provides a free plan to host public git repositories. They have various plans(paid), but i guess the free one works best for me. Finally i shall keep my dot emacs under revision control.<br /><br />There's excellent help on the git website, especially for svn user's <a href="http://git.or.cz/course/svn.html">http://git.or.cz/course/svn.html</a>.<br /><br />My public clone url<br /><br /><code>git clone git://github.com/adityo/dot-emacs.git </code>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3661735559379122635.post-25191238967326734402008-06-04T20:34:00.004+05:302008-12-01T13:55:36.545+05:30Xft Goodness<div style="text-align: justify;">I currently use an imac at work, and will have to say the fonts and rendering on OSx are absolutely stunning. I simply cannot work on my Linux box after a long days work staring at a Mac screen. I had to do something about this, and so when i updated to Ubunty Hardy Heron i Googled around to see if i could get Xft support for Emacs. The awesome <a href="http://www.emacswiki.org/cgi-bin/wiki/XftGnuEmacs">EmacsWiki</a> page for Xft told me that if i had Hardy emacs came with Xft support inbuilt. So it was just a matter of <pre><code> sudo apt-get install emacs-snapshot-gtk </code></pre> and <pre><code> echo "Emacs.font: Monospace-10" > .Xresources </code></pre><br />Presto!! Emacs with all the Xft goodness.<br /><br />Below is a screenshot of my current system with Emacs and urxvt also with Xft enabled.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVb_W2g42eR3mCgdPRRlxW5OWOnvwyxTDOlD8MNGTm5Xat-E-ysBx5YLIpwh0ni7nW-sVfRz7ELb2EoaaG2d8eAd92QIu3pNWz4KYJd97ldxkyvI3bp-nMhcLGG1JtiMlTHiS4XiM_p-F9/s1600-h/Screenshot.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVb_W2g42eR3mCgdPRRlxW5OWOnvwyxTDOlD8MNGTm5Xat-E-ysBx5YLIpwh0ni7nW-sVfRz7ELb2EoaaG2d8eAd92QIu3pNWz4KYJd97ldxkyvI3bp-nMhcLGG1JtiMlTHiS4XiM_p-F9/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5208045514757190050" border="0" /></a><br /><br /><span style="font-style: italic;">Update</span> 1/12/2008:<br />My imac has crashed..switched to Ubuntu Hardy on an IBM R60..sigh!!<br /></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-3661735559379122635.post-75295139800351741702008-06-04T19:31:00.001+05:302008-06-04T19:34:22.930+05:30My first post<div style="text-align: justify;">Hello there, this is my second first post!! My second attempt at blogging. The blog template has been modified since i didnt like the one that Google provided and the free ones available were just not to my liking..<br /></div>Unknownnoreply@blogger.com1