I’ve forked the code of KingMike’s fdsbuilder for another project I’m working on, adding changes as needed.
What’s new in fdsbuilder?
Unattended fdssplit and fdsmerge! You can now script these operations as fdsbuilder no longer requires you to input via scanf.
Now compiles on for Unix-like operating systems in addition to Windows
fdssplit has been ported from C++ to C. It sure looked a lot like C code so I gave it a little push the rest of the way. Most people have a C build-system, and it’s also much more portable.
and, like the tip says, it will give you a random quote from Fry or Bender of Futurama. So what’s going on here and how can we make it better?
Curl is silently grabbing the HTTP headers from slashdot.org, and piping the results into egrep. egrep searches for any line in the piped data that start with X-F or X-B and then pipes that information into cut which trims the first two characters from the line so you’ll only see the emitted quote.
Well if that’s the case, then we can modify the egrep to:
Reddit users already know that imgur is probably one of the easiest, most inobtrusive ways to host an image online. Now, the good imgur devs have made an api available for developers.
I wrote a quick little python interface for it using pycurl and simplejson. It is available for download here.
It turns out it’s called Privoxy, and it’s probably the best solution I’ve seen for adblocking. Not every browser has a plugin architecture, or, someone to write an adblock plugin for that matter.
Privoxy however, is a catch-all solution. It’s open source, it’s available on just about any platform you’d be doing and serious websurfing on. It runs as a local proxy, filtering out all sorts of “junk”, as the authors put it, including ads. It’s of a pretty reasonable footprint, ~3mb. So it won’t exactly be a burden on most systems.
About
Devon
Meunier is a software engineering major, currently studying at the
University of Toronto. Gosh!