Tuesday, July 31, 2007

I'm on Holiday

Today is my birthday, if someone want to send me a present, don't be afraid :P.

Finally I'm on holiday, (Friday was my last working day). If someone is asking where I am, the right answer is:

Somewhere in the "Milky Way".


See you on 13rd of August.

Wednesday, July 18, 2007

The Glider: A Universal Hacker Emblem

Eric S. Raymond proposed a new emblem that should represent the entire hacker community.
The emblem was proposed in the October 2003, but I discovered it this morning 0_o.


hacker emblem


The symbol represents a "glider", a particular pattern existing in the simulation "The game of life".

BTW, I think that this is not a bad idea :).

Monday, July 16, 2007

My GPG KEY ID

This is my GPG key :)

GPG KEY ID: 2E7779A0

Please use it.

Thursday, July 12, 2007

Tracy Chapman videos

Fast Car




Crossroads



Subcity (Live Taormina)

How to generate network load diagrams

Yesterday, someone asked me how I generated the network load diagrams used in the post "SSHFS performance test".

My original idea was to search for a ready to use software, but surfing the web I didn't found anything simple to install a quick to use. So i decided to write some bash lines to generate raw data and OpenOffice (oocalc) to draw the diagrams.

This is the script used to generate raw data:



#!/bin/bash

###################################
#
# Wed Jul 11 11:38:54 CEST 2007
#
# This script is used to generate
# network traffic statistics
#
# Author: Davide Restivo (xgutter@yahoo.it)
#
# Released under GPLv2
#
####################################

E_BAD_ARGS=65

# The default interface
INTF="eth0"

# Default output filename
TMP_FILE=`tempfile`
FILE_OUT="netmon-`basename $TMP_FILE`.out"

# Default delay measurement
TICK="1"

# Usage
function usage () {
echo "Please invoke this script with zero or three arguments."
echo ""
echo "Example:"
echo " $0 "
echo ""
echo "where:"
echo " defaults to eth0"
echo " is automatically generated"
echo " is equal to 1 second"
}

# Let's check command line arguments
if [ $# -eq 0 ]
then
:
elif [ $# -eq 3 ]
then
# Setting parameters
INTF=$1
FILE_OUT=$2
TICK=$3
else
usage
exit $E_BAD_ARGS
fi

################
##### MAIN #####
################
echo "Seconds - Byte sent - Byte received" >> $FILE_OUT

SECONDS_COUNTER="0"
while true;
do
INITIAL_BYTE_SENT=`ifconfig eth0 |grep bytes|cut -d":" -f3|cut -d" " -f1`
INITIAL_BYTE_RECEIVED=`ifconfig eth0 |grep bytes|cut -d":" -f2|cut -d" " -f1`

sleep $TICK

BYTE_SENT=$((`ifconfig eth0 |grep bytes|cut -d":" -f3|cut -d" " -f1` - $INITIAL_BYTE_SENT ))
BYTE_RECEIVED=$((`ifconfig eth0 |grep bytes|cut -d":" -f2|cut -d" " -f1` - $INITIAL_BYTE_RECEIVED ))

TEMP_SECONDS_COUNTER=$(($SECONDS_COUNTER + $TICK))
SECONDS_COUNTER=$TEMP_SECONDS_COUNTER
echo "$SECONDS_COUNTER $BYTE_SENT $BYTE_RECEIVED" >> $FILE_OUT
done

Tuesday, July 10, 2007

Antico proverbio cinese

Il saggio cinese dice:

Le case restano, i culi cascano...


Apache 2.0.59 (Commodore C64) 0_o

Today, while I'm reading some IT news, I've found a funny one ;).

Someone noticed, that an important e-shop is running its core business application on very old computers.

An extract from netcraft could clarify how old are these machines:


unknown Apache 2.0.59 (Oric Dragon32) 89.107.41.30
unknown Apache 2.0.59 (ZX Spectrum 48k (Rubber Keys)) 89.107.41.3
unknown Apache 2.0.59 (Commodore C64) 89.107.41.30
unknown Apache 2.0.59 (CBM PET) 89.107.41.30
unknown Apache 2.0.59 (MSX Toshiba HX-10) 89.107.41.30
unknown Apache 2.0.59 (Commodore C64) 89.107.41.30
unknown Apache 2.0.59 (ZX Spectrum 48k (Rubber Keys)) 89.107.41.30
unknown Apache 2.0.59 (CRAY) 89.107.41.30
unknown Apache 2.0.59 (ZX Spectrum 48k (Rubber Keys)) 89.107.41.30
unknown Apache 2.0.59 (MSX Toshiba HX-10) 89.107.41.30


One guy of ebuyer crew explains that some HTTP strings was modified in order to prevent some low level lamer attacks.

The mistery was unveiled ;)