One more on Squid
Sunday, September 26, 2004
One example on configuring squid to let navigate user(s) only to selected places ( it needs Squid to be run on the machine which is resolving names [ may be using bind with resolv.conf pointing to 127.0.0.1 ]. Once I tried this on a machine which was resolved by another one and the dstdomain feature didn't work ):
acl myipaddress src 192.168.0.111
acl firstdomain dstdomain www.oneallowed.com
acl seconddomain dstdomain www.anotherallowed.com
...
...
http_access deny myipaddress !firstdomain !seconddomain
( this means , 192.168.0.111 can't access anything but www.oneallowed and www.anotherallowed ).
Screwdrivers
Thursday, September 23, 2004
One pseudo-cop got my 6 screwdriver set at Mexico City International Airport just before departure:
- You can't have these on the plane.
- Why not, do I look like a terrorist or what?
- No Mr. you don't. You have to go where the clerk is ( 2 miles away ).
- Hey Pal, my plane is about to take off and I need to...
- You must go where the clerk.
Suddenly I looked over my shoulders and the screen displayed -- 5 minutes to go.
- Mmm. Happy Birthday ( damn cop ) . This is my gift ( fk* asshole ).
Goodbye screwdriver set :(
Moral : "Never get a screwdriver set at Mexico City Airport"
Thursday, September 16, 2004
The way to post to blogger in python:
import xmlrpclib
server = xmlrpclib.server("http://plant.blogger.com/api/RPC2")
username = "your name goes here"
password = "your password goes here"
appkey = "your application key goes here, which is somewhat lenghty and hex"
blogid = "your blog number "
server.blogger.newPost( appkey, blogid, username, password, "Hello World", True)
Enjoy!
Squidview
Squidview. A wonderful piece of software. Due to this nugget my squid's access.log file is easier to monitor ( bye tail -f /var/log/squid/access.log ).
The $HOME/.squidview/aliases file feature is great.
Finally I don't need to remember the IP address of every machine in the network.
Maybe some day I will port this software to wxPython.