Current weather Condition at Ioannina,Greece

just excellent…

Current Weather at Ioannina,Greece

I want one such device too 🙂

no progress…

Since gcc 3.4 was marked stable on gentoo, I emerged it and even did an emerge -e world. It took me some time because there were more than 600 packages to rebuild. Anyway, mplayer still denies to work with some videos using -vo xv even after the recompilation with the new gcc.
That’s the error message:

X11 error: BadAlloc (insufficient resources for operation)?,?% 1 0 32%

MPlayer interrupted by signal 6 in module: vo_check_events

I’ll keep trying…

Btw, I read some rumours that Cisco is going to release callmanager 5 under linux. I hope that becomes a reality because the current callmanager 4.1(3) runs only on windows 2000 and there are times that the whole system freezes for no good reason, or times when IE crashes. The whole configuration of the callmanager is done through a web browser…in order to add a single device you need 10 clicky-clickies…I hope this changes too.

command to play .asx streams on linux

aviplay http://koko.lala.org/radio.asx

this is mostly a note to myself because I tried with mplayer and had no luck for quite some time … 🙂

mplayer -vo xv or -vo x11 ?

What do you use for mplayer video output ? I recently had crashes with -vo xv so I switched to -vo x11.

Oh..and I still have problems with some quicktime videos…

any help ?

Med Associates total lack of security

Last week I went to Athens, Greece to set up a laboratory with a pc connected with 2 mice cages(!). Mice are put inside the cages and then one can monitor their movements through some infrared sensors. Data is sent to the pc where a program (Activity Monitor 5) made by med-associates is used to analyze those movements.
It was saturday when I tried to install the program. I inserted the cd inside the cd-rom, and started the installation process. After 2-3 “Yes, I Agree, Next,etc” I faced a password entry field. But I was given no password! I checked the manuals and I saw that I should sent them an application form filled with some names, location and so on, to be sent a password via email. I started calling them, but noone would answer at their offices, it was saturday and pretty close to Halloween…so there was no chance of ever finding anyone at their office.
Luckilly one of my friends was with me and he was looking inside some dlls to check if there was any sign of the password checking algorithm, so that we could extract any infos about it. He didn’t find anything, and then I told him to start looking inside the installer. He started looking for the error message while I was calling a proffessor that I know, that was using the same program. There was a chance that the password for the program the proffesor uses could work for our case as well. After 10-15 minutes I got the password, and when I went to the pc to enter it my friend had located the error message, some garbage beside it and then a string of 8 letters and numbers.
I first tried the previous password that the professor gave me…it did not work. Then we tried the string that we found next to the error message…GUESS WHAT! IT WORKED! !!

Was what we did “illegal” or was the company plain stupid ? We had bought the program but we had no password so we had to “hack it”. I think it’s rediculous for a program that costs more than 1000$ to have it’s password hardcoded inside the installer. They could have a password checking algorithm inside the installer and a password generator at their offices. That sounds more “secure”.

Anyway…it’s a program meant to be used by doctors…its real price should be around 50-100$. There’s nothing really special about it…but hey..doctors have money…they should pay 😛

howto find music on the net for free!

1) one nice way is using google to find unprotected ftp and http dirs with indexes…try a search like this:
-inurl:(htm|html|php) intitle:”index of” +”last modified” +”parent directory” +description +size +(wma|mp3) “Deftones”

You will get plenty results 🙂

2) del.icio.us could be handy too…if you are not looking into something really special..
http://del.icio.us/tag/system:filetype:mp3

3) Soulseek
Soulseek started as a netword dedicated to electronic music sharing…It has faced many many problems in the past…but has a LOT of dedicated users that are willing to share. There are many channels and no moderators…so things can easily get out of hand inside the chatrooms.

Have fun…

p.s. I really MISS napster…

sux# strings napster.exe | grep -A 5 Copyright
Copyright 1999 Napster, Inc.
Build
1318
Release Version
v2.0

good old days…

void.gr was moved!

Void.gr has moved to a new (and hopefully better) hosting provider. Thnx a lot to Dinos, Global Networks and www.ghost.gr for kindly hosting void.gr.

This blog will soon move to a subdomain of void.gr…stay tuned!

jabberd2 starttls client problems

I’ve recently setup another jabberd2 installation. This time I had option, in c2s.xml , enabled. Unfortunately this created a ton of problems with clients other than gaim…Users using clients like exodus, miranda and psi for example had problems with that and could not login. Is it SO hard for programmers to write secure code ? Is it so hard to implement starttls ?

yahoo’s expired certificate screenshots

such a shame for such a big company…



was it so difficult to replace the cert a bit earlier ?

*edit
Yahoo changed today it’s certificate with another one…

graffiti

A great graffiti group…that’s art….

http://www.banksy.co.uk

I think this is my favorite: http://www.banksy.co.uk/outdoors/images/newfullsize/trooper.jpg

First Post with Opera

Hello all, this is my first post with the Opera Browser. It’s the first time I install it and I only did it because yesterday Opera celebrated it’s 10th Birthday and gave away registration keys for free. I would never install a browser that’s adware, and now that I had the chance to legally have the full browser in my hands…I thought I should give it a shot.
My first impressions are quite good. It’s certainly faster than firefox, eats less memory, it’s quite stable with plugins like acrobat and mplayerplug-in…and it has a nice interface. I can also visit some webinterfaces of machines like cisco 340AP that firefox could not. Firefox needed to enter the login/password everytime I went to a different page in the webinterface…but Opera does not have a problem with such things. It also has built in mouse gestures, where in firefox I had to load an extension for this.
I had around 7-8 extensions in firefox that made my life easier. The only thing that I really miss in opera is the BugMeNot extension :(. I haven’t really looked into Opera so I don’t know if it’s possible to load “extensions”…if there is a way…I am sure someone will write a BugMeNot one.
The only problem I faced so far was at my e-banking site. It did not load the menu right…I don’t know if this is an Opera fault or mine. Maybe some javascript setting. I will look into it though.

That’s it for now…I go back to studying…September exams are coming. Good luck to everyone.

Christian Spam

Today I had my first, and hopefully the last, christian spam.

From : Meet Christian Singles
Reply-To : return@knockoutgamesmail.com
Sent : Thursday, August 18, 2005 6:12 PM
To : xxx@xxx.com
Subject : Christian singles. A match made in heaven.


As promised, your faith and perseverance will pay off. Finding the right match is no different. Sign up now and choose from thousands of possible like-minded singles looking to share their life with you.

YIAKS! I am no christian and I am not a single. I don’t believe in heaven and crap like that.

now, GET OUT OF MY INBOX!

just pathetic…

traffic shaping a dsl line with linux

The case is like this:
[code]
Internet < --> [dsl modem] < --> [linux box] < --> [Lan]
[/code]

DSL modem is connected on eth2 on linux box and the rest of the Lan on eth0. I had a serious problem with people leaving edonkey clients opens all night..limiting the download speed to 20kb/sec but forgetting to limit the upload. The current dsl line is 384/128 so having the uploads unlimited…is like killing the line.

The solution was to setup a QOS script. And here it is:
[code]
#!/bin/bash

DEV=”eth2″
LOCALIF=”eth2″

# Reset everything to a known state (cleared)
tc qdisc del dev $DEV root 2> /dev/null > /dev/null
tc qdisc del dev imq0 root 2> /dev/null > /dev/null
iptables -t mangle -F POSTROUTING 2> /dev/null > /dev/null
iptables -t mangle -Z POSTROUTING 2> /dev/null > /dev/null
iptables -t mangle -X POSTROUTING 2> /dev/null > /dev/null
iptables -t mangle -F tosfix
iptables -t mangle -F ack
ip link set imq0 down 2> /dev/null > /dev/null
rmmod imq 2> /dev/null > /dev/null

if [ “$1” = “stop” ]
then
echo “Shaping removed on $DEV.”
exit
fi

tc qdisc add dev $DEV root handle 1: tbf rate 85kbit burst 1600 limit 1
tc qdisc add dev $DEV parent 1:1 handle 2: prio bands 4
tc qdisc add dev $DEV parent 2:1 handle 10: sfq perturb 10
tc qdisc add dev $DEV parent 2:2 handle 20: sfq perturb 10
tc qdisc add dev $DEV parent 2:3 handle 30: sfq perturb 10
tc qdisc add dev $DEV parent 2:4 handle 40: tbf rate 40kbit burst 1600 limit 3000
tc qdisc add dev $DEV parent 40:1 handle 41: pfifo limit 10

iptables -t mangle -N tosfix
iptables -t mangle -A tosfix -p tcp -m length –length 0:64 -j RETURN
iptables -t mangle -A tosfix -m limit –limit 2/s –limit-burst 10 -j RETURN
iptables -t mangle -A tosfix -j TOS –set-tos Maximize-Throughput
iptables -t mangle -A tosfix -j RETURN

iptables -t mangle -N ack
iptables -t mangle -A ack -m tos ! –tos Normal-Service -j RETURN
iptables -t mangle -A ack -p tcp -m length –length 0:64 \
-j TOS –set-tos Minimize-Delay
iptables -t mangle -A ack -p tcp -m length –length 64: \
-j TOS –set-tos Maximize-Throughput
iptables -t mangle -A ack -j RETURN

# Is our TOS broken? Fix it for TCP ACK and OpenSSH.

iptables -t mangle -A POSTROUTING -p tcp -m tcp –tcp-flags SYN,RST,ACK ACK -j ack
iptables -t mangle -A POSTROUTING -p tcp -m tos –tos Minimize-Delay -j tosfix

# Here we deal with ACK, SYN, and RST packets

# Match SYN and RST packets
iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp -m tcp –tcp-flags ! SYN,RST,ACK ACK \
-j CLASSIFY –set-class 2:1
# Match ACK packets
iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp -m tcp –tcp-flags SYN,RST,ACK ACK \
-m length –length :128 -m tos –tos Minimize-Delay \
-j CLASSIFY –set-class 2:1

# Match packets with TOS Minimize-Delay
iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp -m tos –tos Minimize-Delay \
-j CLASSIFY –set-class 2:1

### Actual traffic shaping classifications with CLASSIFY

# ICMP (ping)

iptables -t mangle -A POSTROUTING -o $LOCALIF -p icmp -j CLASSIFY –set-class 2:1

# Outbound client requests for HTTP, IRC and AIM (dport matches)

iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp –dport 80 -j CLASSIFY –set-class 2:2
iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp –dport 6667 -j CLASSIFY –set-class 2:2
iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp –dport 5190 -j CLASSIFY –set-class 2:2
iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp –sport 80 -j CLASSIFY –set-class 2:3
iptables -t mangle -A POSTROUTING -o $LOCALIF -p tcp –dport 1024: -j CLASSIFY –set-class 2:4
[/code]

It WORKS for me…I don’t know whether it will work for you though. I take no responsibility. I will explain it no further because comments do exists and it’s really easy to understand what’s going on if you read a couple of tc tutorials from the net. Many ideas about this script were “stolen” from other scripts I studied while trying to make mine.

Have fun with it…

Here’s an mrtg graph to see how it’s working. Watch the blue line which is the uploads. It never goes beyond a reasonable limit and download stays unaffected:

breathe in…breathe out..

gaim-latex plugin

There’s a very nice plugin for Gaim that allows one to send latex code via IM to other people who have the same plugin (if they don’t they just see the latex code).

I find it very usefull since I’m a student in a math department and I often exchange math fomulae with people even through IM.

I wonder how one would describe this latex code in “normal IM text”:

$$ f( x) =
\sum_{i=0}^{\infty}\frac{f^{( i )}(x )}{i!} $$

but…check this:
gaim-latex plugin for Gaim in action

If you exchange math formulae with colleagues via IM … you’ll want this one 🙂