Monday, January 21, 2008

Break / Bypass download limit !! Hack the squid proxy :-)

Many http proxies enforce a download limit to users.e.g no downloads over 5MB
It is really horrible... if you can download 10 files of 1MB this is simply $%%%

while trying to figure out a workaround I found this very simple method...
why not fool the proxy saying we are downloading only small files ?

Here's a small script to do it. It works with squid proxies.
Download it from here

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...

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 !

enjoy breaking limits !!

pls report dead link to indika.udagedara@gmail.com

Monday, January 14, 2008

Vim Tips & Tricks

There are so many excellent Vim Tips pages out there...
This is just a small collections of nice plugins/tools I use all the time
These come very handy if you are writing code on vim.


1. taglist(plugin) - Function browser in a seperate window ! looks like a bare minimum IDE !!!
http://vim-taglist.sourceforge.net/
2. cscope(external tool) - Calling/Called function browser, Find C symbols, Find function definitions
http://cscope.sourceforge.net/
3. ctags(external tool) - Generate tag file of C/C++/... functions and go to functions definitions on the fly
However taglist & cscope can do this too
http://ctags.sourceforge.net/

Thursday, January 10, 2008

Bought my new gadget ZTE-f152 !

ZTE - f152 cheap 3G phone... excellent features
far better than a regular one for the price
NOKIA, Sony phones are great.. but why are they so expensive?

This has ZTE - USB modem
connects to linux like a charm with usbserial stock module comes with FC6
(I only tested on FC6)
- #tail -f /var/log/messages
- #lsusb > before
- plug phone
- #lsusb > after
- compare before & after files and find the vendor & product id of new usb device
- #modprobe usbserial vendor=0xaaaa product=0xbbbb
- look at /var/log/messages for something like
.... usb 1-1: generic converter now attached to ttyUSB0 ....

- if modprobe above gave some error try modprobe -r usbserial before plugging phone
- if all goes well fire up kppp/wvdial with the new modem /dev/ttyUSB0



Comes with a phone manager software for XP
works with gammu/wammu too!
Phone Home page
http://www.zte.com.au/main/F152.htm

Additional info about Linux compatible mobile phones
TuxMobil - Linux on laptops, PDAs, mobile phones