c++

Jpeg rescue

About three years ago, I was in Rome, at John Paul II funeral. After the whole day of taking photos (we were designated to take photos of our pilgrimage), my friend discovered that his memory card was broken and he was unable to transfer images to his laptop. Because the photos he had taken were far too precious for him to just throw them away, he asked me if I could try to recover them.

A new program: Ldthrottle - LD_PRELOAD bandwidth throttler

I just finished the first version of a throttling program that uses the environmental variable LD_PRELOAD to overwrite the read/recv and write/send (and many others) in order to throttle the banwidth used by that program.

It's just a test but it still works surprisingly well (for one day of coding :)

Ldthrottle - LD_PRELOAD bandwidth throttler

Ldthrottle - LD_PRELOAD bandwidth throttler

Ldthrottle is a program that can throttle the bandwidth used by
nearly any program. To achieve this, it makes use of the environmental
variable LD_PRELOAD hence the name ldthrottle. It overwrites the read/recv and write/send functions (and many others) in order to throttle the banwidth used by that program.

Ldthrottle works fine with wget and kget (although, the latter tends
to become laggy, which should be possible to fix by checking the
throttling limit several times per second instead of only one)

Nonblocking sockets are not yet implemented correctly but will still be throttled :)

Disable sharing in rtorrent

If, for some reason, you need to totally disable sharing in rtorrent (and every other application using libtorrent) and look as if you always had 0% of the files you are downloading, download the source of libtorrent and patch it with the attached diff.

Syndicate content