Tag Archives: web

Blocking some DIV ad boxes with Privoxy

If you want to block one of those shiny-ass ads (think workplace sanitation), here’s a few simple one-liners. (Everything’s in /etc/privoxy.) user.filter: FILTER: div-ads DIV ad blocks. s/<div id="banner_box"/<div id="crap" style="display:none;"/g user.action: { +filter{div-ads} } . Don’t forget to uncomment that actionsfile user.action from your config file. Info lifted from here.

Tor on per-tab basis

I have just had this idea: since uzbl_tabbed.py in fact reads the config file for every new tab (i.e. every new uzbl instance), it should be very easy to allow tor be enabled on a per-tab basis, something I wanted badly for Firefox. Nais!

uzbl_tabbed.py: commands to FIFO

The list is on line 782 (ATM) of uzbl_tabbed.py. The FIFO location is determined by your settings (top of file for defaults, possibly overridden from config). It’s like this: 782 def parse_command(self, cmd): 783 ”’Parse instructions from uzbl child processes.”’ 784 785 # Commands ( [] = optional, {} = required ) 786 # new [...]

PHP: Fatal error: call to undefined function iconv()

Make sure it’s enabled in php.ini. I also had to restart Apache.

RDF to iCal converter (PHP script)

…which can easily be adapted to, say, RSS or shit. I wrote this with a particular RDF feed in mind, so you might have to tweak it, if you want to use it. Also, see the TODOs. <?php // GPLv3. // Parsing part copied over from PHP manual. // Also used RFC2445: http://www.ietf.org/rfc/rfc2445.txt // Distributed [...]

Follow

Get every new post delivered to your Inbox.