Me and my girlfriend are staying in a hotel here in Sha Tin, Hong Kong. Since the hotel only allow one computer per room connected to the Internet at the time - I found out it would be a nice time to look into Internet connection sharing over bluetooth. There are some documentation on how to set up PAN in Linux, so the prosess should be pretty straightforward. One posting I found mention some software called "Blueman". Turns out Blueman can do all the work for me with the click of a button.
It's even in Launchpad, so I can install it using apt. I start the applet, go into "Local Services", enable NAP, and.. it just works! This is getting too easy!
23 Apr 2009
Mass EXIF date and time manipulation
I'm out traveling and I forgot to change the timezone on my camera again. So the EXIF time stored in the pictures are all wrong. My first though was to write another Perl script to fix this (se earlier post). But I found out that the program jhead can do all sort of magic EXIF manipulation. To mass change EXIF dates, just do a:
$ jhead -ta+7:00 *.JPG
Modified: IMG_1708.JPG
Modified: IMG_1709.JPG
Modified: IMG_1710.JPG
...
This add seven hours to the EXIF stored time. Nice and easy.
$ jhead -ta+7:00 *.JPG
Modified: IMG_1708.JPG
Modified: IMG_1709.JPG
Modified: IMG_1710.JPG
...
This add seven hours to the EXIF stored time. Nice and easy.
8 Apr 2009
Memory usage by user
A short little script I stumbled across when cleaning my $HOME. I do not think I wrote it myself - at least I can't recall that I did. Quite handy and it's small and compact using the commands ps, awk, sort and head:
ps aux --no-headers | awk '
{
name[$1] += $1;
pros[$1] += $4;
mem[$1] += $5
}
END {
for (var in name) {
print mem[var]" "var" "pros[var]
}
}' | sort -nr | head
The result is a top ten list of the users that consume the most memory:
741012 root 9.3
238152 bjorn 3.8
119380 thomasez 1.2
105332 krav 1.9
100804 lars 0.6
95916 ingvar 1.6
89720 kjetilho 1.5
78044 jo 1
74232 espen 0.8
73460 michael 0.4
There I am - at number five...
ps aux --no-headers | awk '
{
name[$1] += $1;
pros[$1] += $4;
mem[$1] += $5
}
END {
for (var in name) {
print mem[var]" "var" "pros[var]
}
}' | sort -nr | head
The result is a top ten list of the users that consume the most memory:
741012 root 9.3
238152 bjorn 3.8
119380 thomasez 1.2
105332 krav 1.9
100804 lars 0.6
95916 ingvar 1.6
89720 kjetilho 1.5
78044 jo 1
74232 espen 0.8
73460 michael 0.4
There I am - at number five...
7 Apr 2009
First RFC 40 years old
The first request for comments (RFC 1) was published 40 years ago today (7. April 2009). RFCs are standard documents published by the Internet Engineering Task Force (IETF). Today over 5000 RFCs have been published by IETF. Stephen Crocker, the author of RFC1, recollect some thoughts of the early days:
http://www.nytimes.com/2009/04/07/opinion/07crocker.html
http://www.nytimes.com/2009/04/07/opinion/07crocker.html
Subscribe to:
Posts (Atom)