misc - 201008w4

1. Puasa month

2. awesome gnome theme by lassekongo83 :D
- droid - http://lassekongo83.deviantart.com/art/droid-174374235
note : deviantart art links changed, they put some garbage after the actual link ...

3. ERL's screen inside the trains (showing ads) are using
- Windows 2000
- Pentium III 700MHz
- are rebooting after their 'video' player hangs -> it auto-reboot tho
- username : CSE if i'm not wrong :D

4. Haul + Target
[X] TFC EX-002 Battle Rollar
[ ] TFU Rodimus (+Protector addon)
[ ] TFG Blurr
[ ] WfC Soundwave

that's all :D

Activity Tracker

a.k.a Active window logger

~~~
*NIX OS
Need two files (can be combined :D)
[activewin.sh]
#!/bin/sh

# src = http://pastebin.com/FE14Kwqj

WIN_ID=`xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)"| cut -d ' ' -f 5`
WIN_NAME=`xwininfo -id $WIN_ID | head -n 2 | tail -n 1`

echo $WIN_NAME | cut -c 32-

[tracker.sh]
#!/bin/sh

SAVE_TO=$HOME/Log/ # or wherever else :P

while true; do (date; sh /path/to/getactivewin.sh; sleep 1) \
>>$SAVE_TO/activity-`/bin/date "+%Y%m%d"`.log; done

OK, then append this line in $HOME/.profile
nohup /full/path/to/tracker.sh &

Now, logout & login back to activate it.
- It'll log every second (change the sleep to some other number)
- The output can & should be massage a bit :D