Oct 29: Fedora 9 Panel/Applet Restore
If you're like me and like to futz with stuff and end up blowing away your lower panel in KDE, simply log out and remove this file.
It'll make KDE think you're a brand new user and restore everything to the defaults.
'rm ~/.kde/share/config/plasma-appletsrc'
It'll make KDE think you're a brand new user and restore everything to the defaults.
'rm ~/.kde/share/config/plasma-appletsrc'
Oct 27: Times Change....
Since I update my status so much on Facebook I pretty much always forget to update my blog.
I'm going to try to keep this more up to date. I'll likely post more and more technical stuff and hopefully more photography related posts as well.
So, on Thursday I turned off the last server in my apartment.
The machine known as carnivore was a VALINUX 1220. It was a pretty nice ebay find way back in 2003.
I think I bought it for $300. It's ran three or four websites for myself and a few friends over the years.
Since carnivore was my gateway I had to replace it with a Linksys BEFSR41 that I had laying in one of my tubs of electronic gear. (I'll eventually replace this with a more modern VPN router thing to make life/work easier) I had to update the firmware but using MAC cloning I was able to swap it without any incident. It's going to be weird not having a box I can just SSH into from anywhere and have direct access to my network. I port forward SSH to a machine inside but it still isn't the same.
The nice thing is that I now only have two large towers running in my home office. They are still loud and way more trouble than they're worth. I'm thinking about walking down to the Apple Store today and picking up a Mac Mini to replace the aging Windows box. Since I found out TurboTax has an OSX version, I no longer need Windows for anything. I plan to replace my aging Linux box with a Shuttle PC. This reduction of fan noise and heat in that room will be amazing.
I'm going to try to keep this more up to date. I'll likely post more and more technical stuff and hopefully more photography related posts as well.
So, on Thursday I turned off the last server in my apartment.
The machine known as carnivore was a VALINUX 1220. It was a pretty nice ebay find way back in 2003.
I think I bought it for $300. It's ran three or four websites for myself and a few friends over the years.
Since carnivore was my gateway I had to replace it with a Linksys BEFSR41 that I had laying in one of my tubs of electronic gear. (I'll eventually replace this with a more modern VPN router thing to make life/work easier) I had to update the firmware but using MAC cloning I was able to swap it without any incident. It's going to be weird not having a box I can just SSH into from anywhere and have direct access to my network. I port forward SSH to a machine inside but it still isn't the same.
The nice thing is that I now only have two large towers running in my home office. They are still loud and way more trouble than they're worth. I'm thinking about walking down to the Apple Store today and picking up a Mac Mini to replace the aging Windows box. Since I found out TurboTax has an OSX version, I no longer need Windows for anything. I plan to replace my aging Linux box with a Shuttle PC. This reduction of fan noise and heat in that room will be amazing.
Oct 1: Work Desk
Updated picture of my desk at work.
After a bit of cleaning and organizing I decided to take a quick snapshot.
After a bit of cleaning and organizing I decided to take a quick snapshot.
Sep 28: Gallery Transition Hints
Because I'm likely to forget this the next time I upgrade or transition to a new server or something.
This adds the "Image resize" drop down in the Carbon Theme for Gallery2.
edit ~/gallery/themes/carbon/templates/photo.tpl
look for 'class="giInfo"}' On the next line add..
{g->block type="core.PhotoSizes" class="giInfo"}
This adds the "Image resize" drop down in the Carbon Theme for Gallery2.
edit ~/gallery/themes/carbon/templates/photo.tpl
look for 'class="giInfo"}' On the next line add..
{g->block type="core.PhotoSizes" class="giInfo"}
Sep 25: New Server
I moved my blog to a new server today.
Hopefully things will go okay with the transition.
Hopefully things will go okay with the transition.
Sep 10: Smokeping RRD Generation
Mostly for my own documentation purposes. This is how you do the math to calculate database sizes when you change the steps to something other than the default in smokeping.
#########################
*** Database ***
step = 30
pings = 20
# consfn mrhb steps total
AVERAGE 0.5 1 20160 #7-day worth 30-second avg
AVERAGE 0.5 10 8640 #30-day worth 5-minute avg
AVERAGE 0.5 30 38400 #400-day worth 15-minute avg
MIN 0.5 10 8640
MAX 0.5 10 8640
MIN 0.5 30 38400
MAX 0.5 30 38400
#########################
Math here:
step x #ofSteps x Y = length of database in seconds
(#ofSteps is a multiple of your step adding up to how granular you want
your data to be. In my case 30s=1, 2m=4, 5m=10, etc)
To calculate for 7 days worth of 30 second averages:
30 x 1 x Y = 7days x 24h/day x 60m/hour x 60s/min
(translated to)
30 x 1 x Y = 7 x 24 x 60 x 60
(30 x Y = 604800) or (Y = 604800/30) or 20160
#########################
*** Database ***
step = 30
pings = 20
# consfn mrhb steps total
AVERAGE 0.5 1 20160 #7-day worth 30-second avg
AVERAGE 0.5 10 8640 #30-day worth 5-minute avg
AVERAGE 0.5 30 38400 #400-day worth 15-minute avg
MIN 0.5 10 8640
MAX 0.5 10 8640
MIN 0.5 30 38400
MAX 0.5 30 38400
#########################
Math here:
step x #ofSteps x Y = length of database in seconds
(#ofSteps is a multiple of your step adding up to how granular you want
your data to be. In my case 30s=1, 2m=4, 5m=10, etc)
To calculate for 7 days worth of 30 second averages:
30 x 1 x Y = 7days x 24h/day x 60m/hour x 60s/min
(translated to)
30 x 1 x Y = 7 x 24 x 60 x 60
(30 x Y = 604800) or (Y = 604800/30) or 20160
A quick note, so I don't forget, on how to make InterMapper Remote launch ssh/telnet in iTerm instead of OSX's Terminal.
Monitor>Helper Apps>Customize
Launcher:
osascript -e 'tell app "iTerm"' -e 'activate' -e 'set myterm to the first terminal' -e 'tell myterm' -e 'set mysession to (make new session at the end of sessions)' -e 'tell mysession' -e 'exec command
(leaving the last ' off is important)
Edit "Telnet"
Command Line:
${LAUNCHER} "/usr/bin/telnet ${ADDRESS}"' -e 'end tell' -e 'end tell' -e 'end tell'
Edit "SSH"
Command Line:
${LAUNCHER} "/usr/bin/ssh username@${ADDRESS}"' -e 'end tell' -e 'end tell' -e 'end tell'
And set your Double-Click preferences to either Telnet or SSH.
Monitor>Helper Apps>Customize
Launcher:
osascript -e 'tell app "iTerm"' -e 'activate' -e 'set myterm to the first terminal' -e 'tell myterm' -e 'set mysession to (make new session at the end of sessions)' -e 'tell mysession' -e 'exec command
(leaving the last ' off is important)
Edit "Telnet"
Command Line:
${LAUNCHER} "/usr/bin/telnet ${ADDRESS}"' -e 'end tell' -e 'end tell' -e 'end tell'
Edit "SSH"
Command Line:
${LAUNCHER} "/usr/bin/ssh username@${ADDRESS}"' -e 'end tell' -e 'end tell' -e 'end tell'
And set your Double-Click preferences to either Telnet or SSH.
Jul 7: ZoneEdit DynDNS
The IP on Carnivore doesn't change much but when it does, it's almost always at inconvenient times.
I knew ZoneEdit could do DynDNS but I'd never set it up. I did some searching a found a script here.
I changes a bit of it to make it work a little better for me. (Instead of going to a website to find out what my IP is, I just grab it off of the interface, I have it send me an email with the new IP, and have it run my iptables script if there is a new update)
Just dump this somewhere, create a domains.list file, and tell cron to run it every so often. I have mine set to run every 4 hours. The TTL on my zones are 1 hour. This seems reasonable enough.
I knew ZoneEdit could do DynDNS but I'd never set it up. I did some searching a found a script here.
I changes a bit of it to make it work a little better for me. (Instead of going to a website to find out what my IP is, I just grab it off of the interface, I have it send me an email with the new IP, and have it run my iptables script if there is a new update)
Just dump this somewhere, create a domains.list file, and tell cron to run it every so often. I have mine set to run every 4 hours. The TTL on my zones are 1 hour. This seems reasonable enough.
Continue reading "ZoneEdit DynDNS"
Jul 1: Wipeout Sucks
Possibly the worst game show of this genre there is.
I think the obstacles should be at least potentially completable.
The announcers were also horrible. There is a reason John Henson isn't on Talk Soup anymore only worked on the TV Guide channel before this.
I think the obstacles should be at least potentially completable.
The announcers were also horrible. There is a reason John Henson isn't on Talk Soup anymore only worked on the TV Guide channel before this.
I wanted to map a few of the multimedia keys on my Microsoft 4000 keyboard so synergy would recognize them. The intent was to use the forward/back and play/pause button to control iTunes on the Mac. This is pretty simple, except the keyboard isn't directly connected to the MBP. I had to do some keyboard map hacking to get this to work properly. Recorded here for future reference.
~/.Xmodmap
keycode 233 = F34
keycode 234 = F35
keycode 162 = F33
(then run 'xmodmap ~/.Xmodmap')
/etc/synergy/synergy.conf
section: options
keystroke(F33) = keystroke(control+alt+space,infinity)
keystroke(F34) = keystroke(control+alt+right,infinity)
keystroke(F35) = keystroke(control+alt+left,infinity)
end
(restart synergys)
And then I used a nifty app Sizzling Keys on the MBP that let me assign hotkeys to pretty much anything I want. I mapped Ctrt+alt+whatever to the appropriate actions in iTunes and viola!
~/.Xmodmap
keycode 233 = F34
keycode 234 = F35
keycode 162 = F33
(then run 'xmodmap ~/.Xmodmap')
/etc/synergy/synergy.conf
section: options
keystroke(F33) = keystroke(control+alt+space,infinity)
keystroke(F34) = keystroke(control+alt+right,infinity)
keystroke(F35) = keystroke(control+alt+left,infinity)
end
(restart synergys)
And then I used a nifty app Sizzling Keys on the MBP that let me assign hotkeys to pretty much anything I want. I mapped Ctrt+alt+whatever to the appropriate actions in iTunes and viola!
(Page 1 of 49, totaling 481 entries)
next page »

