Tuesday, October 30, 2007

I decided to block access to certain sites for just one computer on my LAN, let's call the computer Adell.
I have a WRT54G router running OpenWRT and I have another machine running privoxy. How to setup transparent proxying?

On the router:

iptables -t nat -A PREROUTING -p tcp -i br0 --source Adell --dport 80 -j REDIRECT --to-port 8888

Port 8888 is tinyproxy which is redirecting to the privoxy daemon on the other machine.
/etc/tinyproxy/tinyproxy.conf:
upstream privoxy_box:8118

And that's all there is to it.

Sunday, October 28, 2007

I use OpenWrt whiterussian (0.9) with miniupnpd 1.0-RC5. On the macbook I use Transmission.app for torrents. The problem is that it maps the port successfully but reports the port (9090) as stealth. I finally fixed this nagging issue with this command:

iptables -t nat -I PREROUTING -p tcp --dport 9090 -j DNAT --to-destination 192.168.1.172

Now Transmission.app says the port is Open.

Here's the relevant iptables listing:

root@OpenWrt:~$ iptables -v -t nat -nL |grep 9090
188K 9893K DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9090 to:192.168.1.172:9090-0
187 11636 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9090 to:192.168.1.172


The first line was added by miniupnpd. Not sure what the -0 is there for.

Friday, October 26, 2007

The workshop on "Desktop-enabling Web Applications" was not bad. Matt Finkle from Mozilla made us go through the latest iteration of WebRunner which is now an official Mozilla project and is renamed to Prism.

On a sidenote, while looking at Prism I stumbled upon Joey -- a Mozilla Labs project that lets you "send web content to your mobile phone". This seemed like a nifty idea.
DOJO widget demo was impressive. lots of widgets: accordion pane, tree, calendar, color picker, rich text editor.... and all are keyboard accessible, high contrast mode compatible.
At the conference now. Turns out they're using Bluesocket controllers for the wifi.

First session is Accessible RIA.

- HTML5 + ARIA spec allows focus on all elements.
- DOJO provides some nice keyboard accessibility convenience

ARIA spec: machine readable semantics for widgets (eg. menu)
- works in Firefox.

- specifying ARIA semantics in the html gives screen readers more information.

Thursday, October 11, 2007

I had a break-in at my house yesterday. I live on an upscale street with million dollar houses next door, so break-ins are common. I just did not think I would be targeted because the house is relatively old and run down. This has already been reported to the police.

Based on the evidence left behind I can suggest the following order of events at around 4 am. I shall assume there's more than one burglar even though I have no evidence to support such. The burglars first try to get in through the basement window at the back side of the house (the exterior screen was left removed). Then they go into the mud room (veranda) which is usually unlocked because there isn't really anything valuable. There is another door between the mud room and the house and this was pretty easy to break into: they cut the insulating strip around the opening of the door, slided a card into the opening at the lock and pried the door open. Stupid door - no deadbolt. Once in the house, they got spooked off by something, maybe the cat. We were asleep in the house. Perhaps they heard me moan in my sleep. So they leave the house and proceed to the car in the driveway. They get it unlocked. It's possible they have a master key for toyota corollas.

The car was left messed up inside. Gym bags were turned inside out, garbage scattered around. Stolen items include my Nokia770, my bluetooth GPS unit, two cell phone chargers, an inverter.

Oh and the bastards took a pair of fake Ugg boots from the mud room.

All day yesterday was spent replacing the front door lock, the side door lock (we suspect they made a copy of the keys) and nailing/barricading the back door. The cop recommended we leave exterior lights on overnight and I will definitely do so from now on. Also the cop advised to clear the foliage/branches from the front lawn to increase visibility for patrol cars. I spent a whole lot of time today on that.

We are still kinda shocked this happened. At least the damage was minor.

Tuesday, October 09, 2007

Some great news today. Alena can ride a bicycle! I've been teaching her maybe 5 times and she got it this time. Impressive considering it's a circa 1975 road bike with the racing handlebars.
Just got a shiny white cordless laser Mighty mouse to go along with the shiny white macbook. Not very happy so far. Doesn't work on the clipboard surface that my old logitech optical (non-laser) mouse loved so much. Does not work on plain white sheet of paper. I can only get it to work on the back of a magazine, which is glossy and dark. I thought Laser technology works on more surfaces? This really blows. I'll have to order one of those Razers.