smartctl on a synology DS411s
To avoid getting segmentation faults on a synology device you have to use -d sat and the full path to the command:
(mine is a DS411s)
/usr/syno/bin/smartctl -d sat -l selftest /dev/sdd
remove packages on osx
Hmm...
usually you can remove Applications by dragging it to the Trash. But what about pkg files?
I found a blog entry how to remove them:
List identifiers [ID]:
pkgutil --pkgs | grep [name]
Remove package content:
sudo pkgutil --unlink [ID]
Show installed files (files modified by script aren't listed - afaik):
pkgutil --files [ID]
Forget about the package (only do this once you removed all it's content):
sudo pkgutil --forget [ID]
iFolder - a Dropbox replacement from Novell
Finally I installed iFolder on a Debian squeeze box.

Advantages over Dropbox:
- you can host your files
- only your server limits the amount of space
- You can have more the one root folder (no need to use sym- / hardlinks)
Disadvantages over Dropbox:
- it requires mono to run (only a problem on Linux and OSX)
You can read more about iFolder here.
rrd grpahing some data
Just did again some graphing with rrd.
Thinking (googling) some metrics to graph I found some interesting articles:
- some nice rrd examples: link
- List of Cacti Scripts and Templates: link (I did not try them out yet!)
- 20 Linux System Monitoring Tools Every SysAdmin Should Know: link
- article about graphing spend cpu ticks: link
- opennms graph gallery: link
- tool to create color gradient steps: link (mentioned in the link above)
- pmacct could be used to get protocols out of network traffic: link (will try it, once I have more time)
And here are some pics:
(as this machine is idleing it graphs only between 0 and 5 %)

Btw: am using catcti to graph and some custom code to push metrics to cacti. Will post about it, once it is on github.
testdisk - recover your partition table
I just hat the issues that my external WD drive showed no partition to mount.
It contained a timemachine backup.
Luckily I found testdisk which could restore the partition table.
Here are some screen shots:


iFolder - an opensource alternative to dropbox
I like dropbox and I use it to sync stuff around my different boxes.
Btw. If you don't have dropbox installed, please use me as a referral.
Today I found an open source project sponsored by Novell called iFolder.
There is also a howto install on debian.
Hope I will find some time to play with it, at it allows me to be my own host of my files and still have the ease of "Dropbox" alike behavior.
Unity3 beta - my first impressions
Finally I found the time to test some of the new features of the upcoming Unity3d.
So far I am very impressed.
My favorite top 3 features are:
- Unified Editor

One Editor to build for Standalone, Web, iPhone, Android, XBox 360 and PS3 - Working Debugger (MonoDevelop)

What happens on runtime? Yeah: step over the code. Comes with build in "sync MonoDevelop project" button. - Versioning
I could not test it with my current project. I fear that it's already grown to much to proper set up subversion as VCS afterwards.
If I would have to give a note: it would be 10 out of 10 points so far.
modified version of shiftit
I finished my modifications to shiftit. The modification I made are small.
It supports now the resize window to 1024 x max. height.
It looks like this:

A super helper to find the virtual key code for the letter "C" was Peter Maurer's Key Codes.app.
applescript for browser windows resizing
Here is an example apple script which can resize a window to 1024 px wide and use the maximum screen height:
-- script based on:
-- http://stackoverflow.com/questions/273242/is-there-anything-like-winsplit-revolution-for-mac-os-x#2977827
-- hardcoded screen resolution:
property screenWidth : 1280
property screenHeight : 800
-- read screen resolution:
-- comment out next 2 line to speed up the script
-- if you use always the same screen hight
set screenWidth to (do shell script "system_profiler SPDisplaysDataType | grep Resolution | awk '{print $2}'")
set screenHeight to (do shell script "system_profiler SPDisplaysDataType | grep Resolution | awk '{print $4}'")
tell application "System Events"
set _everyProcess to every process
repeat with n from 1 to count of _everyProcess
set _frontMost to frontmost of item n of _everyProcess
if _frontMost is true then set _frontMostApp to process n
end repeat
set _windowOne to window 1 of _frontMostApp
set position of _windowOne to {0, 0}
set size of _windowOne to {1024, screenHeight}
end tell
It works from launchbar with "run in Background" or from the AppleScript Menu Bar for the last top most window.

