2010
08.27
here is my latest revision of conky (click to enlarge):

with the latest .conkyrc file here.
as you can see i added a port inbound/outbound monitor, portage sync status, gentoo linux security advisories and a cool looking date and time (as detailed here)
here is the screenshot (click to enlarge):

screenshot is running the conkyrc described in this post, mrxvt and my random wallpaper script from previous posts.
there are some additional scripts that are called in the conkyrc script that you can just google to find. i do not give credit to those sources only because i dont have the url’s, if any of you guys finds them just send me the links so i can give credit where its due.
2010
07.22
ono-sendai tools # ./adb logcat
- waiting for device -
--------- beginning of /dev/log/main
I/cm ( 64): Welcome to Android 2.2 / CyanogenMod-6-07222010-NIGHTLY-N1
I/cm ( 65): _
I/cm ( 66): __ __ _ ___ _ _ __ ___ __ _ _ _ _ __ __))
I/cm ( 67): ((_ \(/'((_( ((\( ((_)((_( (('((\( ((`1( ((_)((_(
I/cm ( 68): )) _))
I/cm ( 69):
I/DEBUG ( 83): debuggerd: Jul 14 2010 03:44:59
D/AK8973 ( 90): AK8973 daemon 1.2.3 Start
D/AK8973 ( 90): (Library version : 1.2.1.620)
--------- beginning of /dev/log/system
I/Vold ( 81): Vold 2.1 (the revenge) firing up
I/Netd ( 82): Netd 1.0 starting
D/Vold ( 81): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 81): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 81): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
D/AndroidRuntime( 85):
D/AndroidRuntime( 85): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
I/AndroidRuntime( 85): Heap size: -Xmx16m
D/AndroidRuntime( 85): CheckJNI is OFF
2010
07.15
Here is the usual fire sale stuff but on Ebay now :
Sun CPCI CP1500-360 w/ chassis and 4 port nic : CPCI
Motorolla MVME : MVME
OQO Model 01+ : OQO
Sun Blade 2000 – specs:
Architecture : two 1.015 GHz UltraSPARC III Cu processors (64-bit)
Cache per processor : 8 MB External Cache
Main Memory : 8 GB (max'd out) ECC error correction (Eight Sun 232-pin SDRAM DIMM slots)
Serial : Two RS-232C/RS423 (DB25-F) ports
Four USB (Type A) connectors
Two IEEE 1394 (6-pin) connectors
PCI : Four 64-bit PCI slots, full-size, three at 33 MHz, one at 66 MHz
Drives : two 146gb (Vendor: IBM Model: IC35L146 CLAR146 Rev: R58A)
Video : Sun XVR-100
Im also selling:
SGI Fuel with no power supply
Cobalt Qube 3 professional with no drives
SGI Indy
Misc Old Ipaq’s w/ sleeves
Anthology Solutions Yellow Machine: 1TB RAID, NAS, file server
I will be updating this site as usual. Tell your friends. Shoot me an email for more info.
2010
05.11
so after creating the evilwm random wallpaper script i decided that i wanted to use the fixed resolution images from 1x.com.
here is the script i made up with an explanation below:
#!/bin/bash
if [ -d /tmp/jpg/ ];
then
echo dir exists
else
mkdir /tmp/jpg/
fi
if [ -f /tmp/jpg/1x.txt ];
then
echo file exists
else
touch /tmp/jpg/1x.txt
fi
while :;do
FILENAME=`cat /tmp/jpg/1x.txt | egrep random | egrep main | egrep jpg | cut -d\" -f32 | cut -d= -f2 | cut -d\& -f1`
curl --silent http://1x.com/photo/random/ > /tmp/jpg/1x.txt
wget http://imghost.1x.com/${FILENAME} -O /tmp/jpg/${FILENAME} > /dev/null 2>&1
#/usr/bin/feh --bg-center /tmp/jpg/${FILENAME}
#xv -quit -root -rmode 5 -max /tmp/jpg/${FILENAME}
sleep 60
done
all this script does is gets the html from http://1x.com/photo/random/, cuts it accordingly to grab the jpg name and then wget’s the proper jpg.
make sure to uncomment either the feh line or xv line according to tastes.
you can also change the sleep interval if you want to make it shorter or longer.
2010
05.11
so a couple of days ago i was trying to set up an adhoc connection on my
laptop to my phone to tether an internet connection when i realized that it
was all wonky.
example:
porta-sendai ~ # iwconfig wlan0 mode Ad-Hoc
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Device or resource busy.
now i realize that some of you will probably say “you are probably connected
to wifi right now..”…
well, i am not.
so i came up with this work around:
## make sure wifi is down
ifconfig wlan0 down
## this is to add a VAP named ath0 since my wifi is wlan0
iw dev wlan0 interface add ath0 type adhoc
## bring new VAP up
ifconfig ath0 up
## now we connect to the essid of the adhoc machine
iwconfig ath0 essid "xxxx"
## and we get our address
dhcpcd ath0
VOILA!!.
this was a temp fix until i find what is really the issue.
here is some info on my machine:
OS: gentoo 2.6.30-gentoo-r6
i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
2010
03.26
microsoft keeps me from sleeping AND makes me throw up my food. now that’s something.
forget backup though, or blackberry or PDA access without hacking the registry, and log entries are next to useless, so troubleshooting usually requires voodoo and bonecasting.
thank you mf
2009
12.28
so i started taking pictures and realized that when i dumped all the pics off my cf card that it would just dump all the pics into one folder. so using exif (in gentoo “emerge media-gfx/exif”, from source: http://libexif.sourceforge.net/) i came up with a quick snippet using exif to move the pictures to the proper dated folder (dated according to when the pic was taken not dumped off card):
for X in *;
do Y=`exif $X |grep origi |cut -d"|" -f2 |awk '{print $1}' |sed 's/:/_/g'`;
cp $X $Y;
done
just replace “cp $X $Y” accordingly. for me $Y is “~/pics/$Y”
2009
11.23
so i decided to have my wallpaper in evilwm switch up every 60 seconds but since setting the wallpaper in evilwm requires the usage of feh, xv or some other utility i came up with this little script below which gets daemonized by .xinitrc at login:
#!/bin/bash
while :;do
files=(/path/to/*.jpg /path/to/*.jpeg /path/to/*.png /path/to/*.gif)
N=${#files[@]}
((N=RANDOM%N))
randomfile=${files[$N]}
#/usr/bin/xv -quit -root -rmode 5 $randomfile
#/usr/bin/feh --bg-center $randomfile
sleep 60
done
only things you have to change are the “path to’s” and you have to uncomment either the xv line, feh line or substitute your own.
you can also change the sleep interval if you want to make it shorter or longer.
2009
11.20
here is a quick and dirty little script to see how many open files tomcat is using up.
#!/bin/bash
USER=tomcat
LSOF=`lsof -u $USER | wc -l`
OPEN_F=`ulimit -a | egrep "open files" | awk '{print $4}'`
#PERCDONE=$(( $LSOF / $OPENF * 100 ))
PERCDONE_PRE=$(echo "scale=2;(($LSOF/$OPEN_F) * 100)" |bc)
PERCDONE=`echo $PERCDONE_PRE | cut -d. -f1`
if [ $PERCDONE -lt 84 ]; then
printf "OK -- $PERCDONE %% with $LSOF files open\n"
exit 0
else
if [ $PERCDONE -ge 85 ] && [ $PERCDONE -le 94 ]; then
printf "WARN -- $PERCDONE %% with $LSOF files open\n"
exit 1
elif [ $PERCDONE -ge 95 ]; then
printf "CRIT -- $PERCDONE %% with $LSOF files open\n"
exit 2
fi
fi
2009
11.16
my setup at night (click for a bigger image):
