tag:blogger.com,1999:blog-301364522009-07-03T07:27:37.509-07:00i n d i k a ' s BLOGIndikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-30136452.post-26986311780038002872008-11-13T05:09:00.000-08:002008-11-18T21:38:32.339-08:00pppd session history tool<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_jMMDtSPE3sY/SSGhK73Op7I/AAAAAAAAAFI/SmxLWBtlsr4/s1600-h/Screenshot.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 286px;" src="http://1.bp.blogspot.com/_jMMDtSPE3sY/SSGhK73Op7I/AAAAAAAAAFI/SmxLWBtlsr4/s320/Screenshot.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5269670248240293810" /></a><br /><br />Don't you think it is really nice to have ppp session history .. ?<br />Well, KPPP and QtWvdial(a pretty front-end for wvdial) provide history but for me neither worked :-(<br /><br />So here is a tiny tool to generate history which parses syslog for pppd statistics and provides summary for given range of dates. This also keeps track of older stats that may not be available from syslog (as they were rotated)<br /><a href="http://www.indikabandara.no-ip.com/~indika/hist.py">hist.py</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-2698631178003800287?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com0tag:blogger.com,1999:blog-30136452.post-77334455219767092792008-06-10T23:33:00.000-07:002008-06-12T04:34:36.393-07:00FREC - A little Face RECognition programThis is a little Face RECognition program I wrote with C++ and <a href="http://www.intel.com/technology/computing/opencv/overview.htm">OpenCV</a>.<br /> <br />The purpose of this program is to provide an extensible platform to develop<br />different face recognition and image pre-processing algorithms and test them with ease.<br /> <br />Currently this includes a couple of basic image pre-processing algorithms and<br />Eigen Method(See <a href="http://en.wikipedia.org/wiki/Eigenface">http://en.wikipedia.org/wiki/Eigenface</a>) based face recognition system.<br /> <br />This can be run in interactive mode and in a Self Test mode.<br /> <br />I used the face db at <a href="http://cswww.essex.ac.uk/mv/allfaces/faces94.html">here</a> to test and the results are quite amazing !<br />The only outputs are Gnuplot scripts and data files (for now). I'll upload the colorful plots soon...<br /><br /><a href="http://indikabandara.no-ip.com/~indika/frec/">Download FREC</a> <br /><a href="http://indikabandara.no-ip.com/~indika/YConfigFile/">Download YConfigFile</a> (this is a small lib to manage config files)<br /><a href="http://sourceforge.net/projects/opencvlibrary/">Download OpenCV</a><br /><br /> <br />There are few things TODO.<br />- autotools to build<br />- some dependency with OpenCV internal headers. Try to remove<br />- write a couple of pre-processors for different purposes<br />- provide a decent results document<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-7733445521976709279?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com0tag:blogger.com,1999:blog-30136452.post-84708586296857025782008-01-21T21:10:00.000-08:002009-06-22T17:06:06.699-07:00Break / Bypass download limit !! Hack the squid proxy :-)Many http proxies enforce a download limit to users.e.g no downloads over 5MB<br />It is really horrible... if you can download 10 files of 1MB this is simply $%%%<br /><br />while trying to figure out a workaround I found this very simple method...<br />why not fool the proxy saying we are downloading only small files ?<br /><br />Here's a small script to do it. It works with squid proxies.<br /><a href="http://indikabandara.no-ip.com/~indika/pget">Download it from here</a> <br /><br />I wrote its initial version in C. However, it became quite difficult to install because of externel dependancies. But this will work if you have perl & curl which all systems usually have... <br /><br />If you like this pls link to this page and make this popular... I'd like to see people removing this stupid download limit thing and make the www free !<br /><br />enjoy breaking limits !!<br /><br />pls report dead link to indikabandara19@(yahoo|gmail).com<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-8470858629685702578?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com50tag:blogger.com,1999:blog-30136452.post-63881377819950278872008-01-14T21:02:00.000-08:002008-01-14T23:48:19.693-08:00Vim Tips & TricksThere are so many excellent Vim Tips pages out there...<br />This is just a small collections of nice plugins/tools I use all the time<br />These come very handy if you are writing code on vim.<br /><br /><br />1. taglist(plugin) - Function browser in a seperate window ! looks like a bare minimum IDE !!!<br /><a href="http://vim-taglist.sourceforge.net/">http://vim-taglist.sourceforge.net/</a><br />2. cscope(external tool) - Calling/Called function browser, Find C symbols, Find function definitions<br /><a href="http://cscope.sourceforge.net/">http://cscope.sourceforge.net/</a><br />3. ctags(external tool) - Generate tag file of C/C++/... functions and go to functions definitions on the fly<br />However taglist & cscope can do this too<br /><a href="http://ctags.sourceforge.net/">http://ctags.sourceforge.net/</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-6388137781995027887?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com0tag:blogger.com,1999:blog-30136452.post-87197943787243259312008-01-10T03:04:00.002-08:002008-01-15T19:55:33.903-08:00Bought my new gadget ZTE-f152 !ZTE - f152 cheap 3G phone... excellent features<br />far better than a regular one for the price<br />NOKIA, Sony phones are great.. but why are they so expensive?<br /><br />This has ZTE - USB modem<br />connects to linux like a charm with usbserial stock module comes with FC6<br />(I only tested on FC6)<br />- #tail -f /var/log/messages<br />- #lsusb > before<br />- plug phone<br />- #lsusb > after<br />- compare before & after files and find the vendor & product id of new usb device<br />- #modprobe usbserial vendor=0xaaaa product=0xbbbb<br />- look at /var/log/messages for something like<br /> .... usb 1-1: generic converter now attached to ttyUSB0 ....<br /><br />- if modprobe above gave some error try modprobe -r usbserial before plugging phone<br />- if all goes well fire up kppp/wvdial with the new modem /dev/ttyUSB0<br /><br /><br /><br />Comes with a phone manager software for XP<br />works with gammu/wammu too!<br />Phone Home page<br /><a href="http://www.zte.com.au/main/F152.htm">http://www.zte.com.au/main/F152.htm</a><br /><br />Additional info about Linux compatible mobile phones<br /><a href="http://tuxmobil.org/">TuxMobil - Linux on laptops, PDAs, mobile phones</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-8719794378724325931?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com2tag:blogger.com,1999:blog-30136452.post-7885962814296926262007-08-02T01:39:00.000-07:002008-11-18T21:56:51.469-08:00What is 19 about me?Why do i have 19 appended for most of my mail IDs, www sites etc?<br />u thought about that too?(well that's surprising...)<br />anyway, it is not because i started this when i was 19 or i was born in 1919.<br />In fact <span style="font-weight:bold;">19 is my LUCKY number</span>. i was born in december 19, my empoyee ID sums upto 19 and my uni ID used to sum up to 19 .... and the list goes on.. pretty strange huh?<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-788596281429692626?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com0tag:blogger.com,1999:blog-30136452.post-1155130462315681482006-08-09T06:32:00.000-07:002006-08-09T06:36:06.443-07:00Change of phone number 08/08/2006Changed my phone number to <span style="font-weight:bold;">+94 77 344 50 80</span> . i know u tried my old no and got frustrated and still trying... sorry<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-115513046231568148?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com1tag:blogger.com,1999:blog-30136452.post-1151044239361579062006-06-22T23:28:00.000-07:002006-11-27T03:17:47.994-08:00at last ... uni days r overits time to say good bye to my beloved campus... will be leaving <a href="http://www.ent.mrt.ac.lk/">this place</a> in couple of months time<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-115104423936157906?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com0tag:blogger.com,1999:blog-30136452.post-1151043341796633862006-06-22T23:12:00.000-07:002008-11-18T22:55:06.539-08:00started blog 22/06/2006every odd bugger seems to have a blog these days... so why not ME!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30136452-115104334179663386?l=indikabandara19.blogspot.com'/></div>Indikahttp://www.blogger.com/profile/05677487125574660215noreply@blogger.com0