Tips for today

Saturday, October 02, 2004

Fedora core 2:

Everything was ok with one of my customers. Each user accesing a dos based app from dosemu/freedos had been working smooth... until fedora core 2 arrived...

Well the change from Xfree86 to X.org had its consequences. The new fedora user couldn't run the app as the other people ( which had Mandrake and Redhat 8 and 9 installed ).

After several tries I decided to access the app from one of the RH9 users. So I did this bash script:

#!/bin/sh

FONTDIR=/home/blabla/dosemu/Xfonts
cd $FONTDIR
mkfontdir
xset +fp $FONTDIR
ssh user@machine "dosemu/xdosemu"



.....

Now the problem was with Squid...

How to make a user access everything related to yahoo but nothing else ?

The trick was editing the /etc/squid/squid.conf file by prepending the domain def in dstdomain directive with a . ( dot ) like this ...

acl yahoouser src 192.168.0.152

acl yahoo dstdomain .yahoo.com
acl yahoo2 dstdomain .yimg.com
http_access deny yahoouser !yahoo !yahoo2

( See the . before yahoo.com and yimg.com )



Tuesday, September 28, 2004


Introducing my dhcpf.conf file Posted by Hello

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

Friday, September 24, 2004


Tks Robert for the help on Combos Posted by Hello


Ladies and Gentlemen: Bullwinkle Posted by Hello

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"

this is an audio post - click to play



Music and Lyrics by Mr. Louis Klink

Monday, September 20, 2004


It's all about Python, WxWidgets, Postgresql and Vim Posted by Hello

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!

This message was posted from
a python application
which is an interesting way of posting
Cheers!

Mexico's Independence Day

Wednesday, September 15, 2004

Mexico's Independence Day (15-16 th September ) celebration is rainy
and fireworks are not lightning the sky. Fiesta at Glorieta Chapalita
is interrupted by season's hurricanes friend --> rain ...


Psi ... Posted by Hello

This is Psi, a jabber client program for Windows, in action

I own this company and am the CEO.


Smartics Posted by Hello

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.

Every blog has a start!

Monday, September 06, 2004

Yeap, every blog has a start.

This is not an exception to that.

If you like music, chess and technology then you are somewhat like me.