Archive for the ‘Tech’ Category.

Quick hack to rename BeyondTV files

The format of BeyondTV doesn’t look as good on Front Row as I’d like. This cleans the file name up. This is an ugly script without any error checking, or verification, or any of the things it should have. But it was quick, easy, and it works. For me. Today. No warranty is assumed or implied.

for X in *\(*
do
DEST=`echo $X | awk -F- '{print $1}'`
FILENAME=`echo $X | awk -F\( '{print $2}' | awk -F\) '{print $1}' | awk '{sub(/_/," -");print}'`
mv "$X" "/Network/Servers/10.0.0.4/media/Videos/${DEST}/${FILENAME}.mp4"
done

and for my .bashrc

mover()
{
for X in *\(*; do DEST=`echo $X | awk -F- '{print $1}'`;FILENAME=`echo $X | awk -F\( '{print $2}' | awk -F\) '{print $1}' | awk '{sub(/_/," -");print}'`;mv "$X" "/Network/Servers/10.0.0.4/media/Videos/${DEST}/${FILENAME}.mp4"; done
}

This is an older version of the script, but I’m keeping it for reference.

for X in *\(*
do
Y=`echo $X | awk -F\( '{print $2}' | awk -F\) '{print $1}' | awk '{sub(/_/," -");print}'`
mv "$X" "$Y.mp4"
done

I’ve also added it as a function to my .bashrc file

rename()
{
for X in *\(*; do Y=`echo $X | awk -F\( '{print $2}' | awk -F\) '{print $1}' | awk '{sub(/_/," -");print}'`; mv "$X" "$Y.mp4"; done
}

These are both works in process

Show kernel extensions in os-x

kextstat -k

Early September run around the zoo

I’ve been using the TrailGuru application on my iPhone to track my runs.  It’s a very interesting technology (iPhone, is there anything you can’t do?)  Once I have the track from my iPhone, it’s uploaded to the TrailGuru web site.  I then downloaded the waypoints, converted them to GFX waypoints, and then use the Geo Mashup plugin in WordPress to create a map.  This is my first map, and it’s more of an attempt to see if I can do it more than an ongoing exercise.

Continue reading ‘Early September run around the zoo’ »

Character Palette in OS-X

CMD + Option + t

VMware HA and Primary/Secondary Node selection

How does a primary and / or secondary get selected?

  • The first 5 hosts that join the VMware HA cluster are automatically selected as “primary nodes
  • All the others are automatically selected as “secondary nodes”
  • When you do a reconfigure for HA the primary nodes and secondary nodes are selected again, this is random

What’s up with these primaries and secondaries?

  • Primary nodes hold cluster settings and all node states which are synced between primaries
  • Secondary nodes send their state info(resource occupation) to the primary nodes
  • Nodes send heartbeats to each other, primary nodes send heartbeats to primary nodes only and secondary also only to primary. And they do this every second. (Which is a changeable value: das.failuredetectioninterval)

So what if a primary node fails, will a secondary be promoted?

  • No, there will only be a new primary appointed when the failed one is removed from the cluster. A secondary will be promoted to primary at random.

But what if all my primary nodes fail?

  • This is an unaddressed issue, that’s the reason why you can only account for 4 host failures within a cluster! There needs to be at least one primary!

So when does the gateway come in play?

  • Actually the gateway, which is the default “isolation address”, will only be used when an isolation has occurred. So when the AAM client thinks it’s isolated it will check the isolation addresses.

From - Yellow Brick - a very lovely VMWare oriented site.

The Eternal Value of Privacy

This article, written by Bruce Schneier, was in Wired Magazine in 2006. Even though time has passed, this is the best explanation as to why privacy - my privacy and your privacy - is so very important. I’ve always had a hard time explaining it, and when I reference this article, I always have a hard time finding it again.

The most common retort against privacy advocates — by those in favor of ID checks, cameras, databases, data mining and other wholesale surveillance measures — is this line: “If you aren’t doing anything wrong, what do you have to hide?” Continue reading ‘The Eternal Value of Privacy’ »

Disable Crash Reporting in OS-X

Try -

sudo defaults write com.apple.CrashReporter DialogType none