Only to be enjoyed in amazingly tight mustard-yellow leather pants.

I've been using Geek Tool for several years now and I finally updated to 3.0rc5.  I'm not into the pretty-shiny aspect of it as much as some people are, but it certainly can make some attractive and useful desktop effects.  Here is a screenshot of a blank desktop and then one showing the placement of the Geeklets.

And here's the code I used (clockwise in the geeklets screenshot)

Day of the week
date +%A

Numeral Day
date +%d

date +%B

date +"%I:%M"

date +"%p"

cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /"


System Processes
CurYear=$(date +"%Y")
top -l 2  | sed 10q | grep -Ev "$CurYear|Load Avg|SharedLibs|MemRegions|VM" | sed 's/[0-9].*wired,.*[0-9].*active,.*[0-9].*inactive,//'| sed 's/^[[:space:]]*(.*)[[:space:]]*$/1/' | sed 's/,/    /g'

Weather (change Boise, ID to your City and State and in the two Yahoo Weather URL's change 83713 to your zip code)
echo "Boise, ID"
curl --silent "" | grep -e "Current Conditions" -A 1 | tail -n 1 | sed -e 's/
//' curl --silent "" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/
//' -e 's/
//' | sed "s/(.*). (.*)/1?2/" | tr "?" " " | sed "s/High: (.*) Low: (.*)/?H: 1 L: 2/" | sed "s/?(.*)/1/"

External IP
echo External IP: `curl -s | sed 's/[a-zA-Z<>/ :]//g'`

System Profile
system_profiler SPHardwareDataType SPSoftwareDataType | perl -e '@info= <>; $info= join("", @info);if($info=~m@[ ]+s*Computer Name:s*([^ ]+)[ ]+@) {print "$1 ";}if($info=~m@[ ]+s*System Version:s*([^ ]+)[ ]+@) {print "$1 ";}if($info=~m@[ ]+s*Memory:s*([^ ]+)[ ]+@) {print "$1 ";}if($info=~m@[ ]+s*Total Number Of Cores:s*([^ ]+)[ ]+@) {print "$1 x ";}if($info=~m@[ ]+s*Processor Speed:s*([^ ]+)[ ]+@) {print "$1 ";}if($info=~m@[ ]+s*Processor Name:s*([^ ]+)[ ]+@) {print "$1 ";}'

Hard drive info
df -h | grep disk0s2 | awk '{print "Macintosh HD:", $2, "total,", $3, "used,", $4, "remaining"}'

Broadcom BCM70012 is my hero

Posted by: dirt

Tagged in: HTPC , Hardware , Gadgets , Broadcom

I've been toying with the idea of a home theater PC for quite a while but until this point there has always been a couple 'issues' I've had with every build that tended to conflict with each other.

-I want a HTPC that has a low power draw when not in use.
-I want a motherboard with a small form factor (micro or mini atx) because of the case I'm going to use.  More on the case when I actually build the thing...
-Noise is a factor since this is going in my living room.

The beauty of the Broadcom Crystal HD Decoder (BCM70012) is that it does all of the HD video decoding out of a mini PCIe slot.

I can use this on a decent Intel Ion with a decent onboard Nvidia GPU and have 1080p in H.264 without having a video card or CPU heatsink spinning so fast it rips a hole in the space/time continuum.

Now I just need to build it.  Hopefully soon.

Custom PCB with a laser engraver

Posted by: dirt

Tagged in: PCB , Hardware , Gadgets

I've always had a warm place in my heart for making your own PCB.  This guy shows how he made his custom PCB with a laser engraver.

Now I just need an extra $30,000 to buy my own Laser engraver.  Anybody need a kidney?

Changing interface names in linux

Posted by: dirt

Tagged in: Sabayon Linux , Linux

After a kernel upgrade on a linux box wlan0 seems to have changed to eth1 (eth0 is my real ethernet card).  Of course it took me a while to realize this since all my software and monitors were looking for wlan0...

Here's the fix - edit /etc/udev/rules.d/70-persistent-net.rules and correct the interface name.  Restart and the interface names are changed.

Laptop power supply repair

Posted by: dirt

My laptop's power supply cord has been slowly getting worse over the past couple of months.  The plastic coating around the wire had split and slowly had gotten worse.

broken powersupply

This is a pretty simple project to fix.  First I used a small hacksaw the seam in the middle of the power supply until I was all the way through the plastic.  Then at all four corners you need to insert a screwdriver and give it good twist until you hear the crack of plastic.  The cracking sound isn't from the cover itself, but some support plastic inside the power supply. In the picture below the support was attached at the black plastic between the PCB and the screws.  This secured the power supply shell to the power supply components inside.

I had to cut out the plastic strain relief, then I drilled out the power cord that was left

I connected the correct positive and negative together then used heat shrink tubing over the exposed copper.

Reassemble and epoxy back together.




$3 in supplies and it works like a charm.