Archive for the 'Misc' Category

How Green Is My Thumb?

Tuesday, April 22nd, 2008

This is the first growing season in our new house. We have quite a bit of gardening space, so my wife and I will be attempting to fill that space with beautiful and edible plants.

In an attempt to keep this information handy for my own reference, I have decided to start a journal. I’ve made it public in the hopes that it someone might care to share some advice or learn from my inevitable mistakes.

The blog is called The Nu Leaf.

iSaber != isnoop

Tuesday, September 11th, 2007

Thanks to everyone who supported the iPhone fund. I picked one up this morning and started pushing my macSaber code into the new form factor. As it turns out, however, I’ve been beaten to the punch by not one but two busy little coding bees. The first released app, iSaber is a good first attempt which has been widely attributed to me. The second is in active development and you should be hearing more about it soon. I have turned my MacSaber sources over to this dev and we should expect to see great things.

Contrary to what several blogs are saying, I cannot take credit for iSaber. Credit should be sent to the developer listed in the about portion of that application.

Good luck to everyone working on this project! I’m going to go back to remodeling my house. I’ll be gifting away this fancy iPhone and refunding the donations sent in. Don’t write me off, though. I’ll resume iPhone development around the time they release a 16-32 GB version. (that may come sooner than you think!)

Be a Good Mac Laptop Guest

Friday, June 22nd, 2007

I frequently use my wife’s Macbook because it always seems to be handy when my own laptop is in the other room. I gave myself a user account on the machine, but she started complaining that I’d often forget to switch back to her user account when I was done.

Being a lazy git, I sought out for a technical solution for this problem. The solution I came up with will automatically switch the active user to one of your choice each time the laptop is put to sleep (the lid is closed):

Step 1: Install SleepWatcher

SleepWatcher is a very simple daemon that adds new wakeup, sleep, and idle event triggers to your mac. At the time of this writing, SleepWatcher 2.0.4 can be downloaded here.

Open the .DMG file and install “sleepwatcher.pkg” then “SleepWatcher Startupitem.pkg”.

Step 2: Install SwitchUser

I have crafted a small command line application called SwitchUser to facilitate easily scriptable fast user switching.

Download and install SwitchUser 1.0.

Usage: switchuser

Step 3: Configure the Event

Open terminal and type the following line:

sudo nano /etc/rc.sleep

This will prompt you for your password. Once that is done, enter the following line at the end of the file:

switchuser 'target_user

Remember to replace target_user with the short user name of the account you would like to switch to. If you don’t know that name, it can be found in /Users/.

To exit the editor, press CTRL + o then CTRL + x.

Step 4: Enjoy!

At this point, you should be able to close the lid of your laptop and the computer will automatically switch to the specified account.

Hello Again, Zend Certified Engineer!

Tuesday, June 12th, 2007

Last year, I tested and passed the Zend PHP 4 certification. Once again, I have overcome great adversity and climbed the highest figurative mountains in order to qualify and quantify my bountiful PHP skills.

Ladies and gentlemen, I would like to announce my acceptance of Zend Certified Engineer: PHP 5.

Tune in this time next year for my PHP 6 hat trick.

The Science of Luck

Saturday, June 2nd, 2007

I’ve heard a lot of people claim not to believe in luck. Allow me to demonstrate that this belief, while psychologically satisfying to some, is tantamount to disbelief in Pi or milkshakes.

Luck is not some sort of ethereal faith-based system of wish-granting priority. Luck is the result of a simple calculation and luckiness is the sum of a series of luck calculations.

The Formula


Luck = Benefit / sqrt(Probability)

The basic unit of luck measurement is under some debate, but for our discussion, we will refer to the unit as Л or “El.”

You can see the formula in action with my online luck calculator.

Benefit:

A numeric value with min and max centered about 0 and range set to an arbitrary scale (ex.: winning a free bagel = 0.8 and getting a lethal papercut on the giant novelty check handed to you by Ed McMahon = -99). For our purposes, the benefit scale ranges from -100 to 100, inclusive.

Note: The benefit value is subjectively determined value on a scale where -100 is the worst possible, 0 is neutral, and 100 is the best possible outcome. Refer to table 1a for some examples.

Probability:

A ratio of the number of times an event will happen over a number of attempts. This value will always range from zero to one, inclusive.

Formula In Action

Assuming your assessed benefit value of finding a $20 on the street is 5 and the odds of doing so are 1:400 (1/400 = 0.0025 = 0.25%), the formula would work out like this:
Л = 5/sqrt(0.0025)
Л = 5/0.05
Л = 200

Homework

Everyone loves story problems, so here’s one for you:
Lucy values her life more than anything in the world except for that of Mr. Turtle, her cat. She places the benefit of losing her life at -99. After a friend of a friend perished in a tragic futon accident, Lucy found out that the odds of such a thing happening to her are 1:4,473. Aside from the toilet, Lucy owns no furniture with a seat or table top higher than 18 inches because she feels this will ensure her safety. However, a fateful visit to Sears nullifies all of her protective efforts as she trips over a footstool and suffers a fatal concussion.

Calculate the Л for Lucy’s untimely death. Show your work.
Hint: Surprisingly, the value is negative.

Luck Calculator

Use this simple tool to quantify the luck for a particular event.


Benefit (range: -100 to 100)

 

Probability (range: 0 to 1)

 

Л:

 
Table 1a.: Example relative benefits

Event Benefit
Senseless death -100
Identity stolen -50
Broken tailbone -25
Fender bender -10
Goldfish dies -5
Paper cut -1
It’s Thursday the 12th 0
Two toys in your happy meal 1
Flowers from an admirer 5
No cavities 10
No red lights for a whole day 25
Bowl a 300 50
Save Oprah’s life 100

Redfin Turns 4.0

Friday, April 27th, 2007

Congratulations to Redfin on their big 4.0 release yesterday. They have updated their look, added a new logo, made the maps expand with your screen size, and added several other new features that housing shoppers will enjoy.

Best of all, they spent plenty of time in QA to make sure there were no big bugs or undue downtime in the transition.

Now, if only their backend was in PHP instead of Java.

Lessons Learned House Hunting in Seattle

Monday, April 16th, 2007

House Graphic

Right now is a tedious time to be trading Seattle real estate. While the nation at large is experiencing a deflation in housing values, the Seattle market is stubbornly fluctuating between plateau and boom days.

A large number of properties are going unsold for 90+ days [zillow.com] while others are subject to irrational bidding wars. Part of me wants to sit it all out for another six to twelve months, but my better half insists that we need a house.

And so, we are in the market for a house.

House #1 was an estate sale for a beautiful, large fixer-upper with an entirely unfinished basement and asbestos throughout. Not afraid of building a little sweat equity, we placed a very attractive no-strings-attached offer slightly over the asking price of $350K.

We tried very hard not to get wrapped up, but being the first house we’d made an offer on, it was difficult not to get emotionally invested. It attracted a lot of attention including two offers that ended up beating ours, both with automatic re-bid triggers that pushed the final cost to well over $400,000.

In the end, the most stressful part was waiting for that call from our agent, but we were certainly disappointed when word came that it wasn’t meant to be. Perhaps I shouldn’t have spent all of those hours making a detailed scale Google Sketchup diagram of the entire house.

The buzz was that some of the other bidders had family ties to the house, so I imagine their own emotional attachment added considerably to what they were willing to spend.

Lesson learned: Remember not to lose your head over the first house you fall in love with. Better yet, don’t fall in love with a house if you can avoid it. Best of all, stay away from family affairs if at all possible.

House #2 was FSBO (for sale by owner). While outside of our primary search area, it had a nice location that made it worth considering the extended commute. Not wanting to be consumed in a bidding war like the one we’d just witnessed, I did an extensive amount of number crunching to find the true market value of this house.

Just looking at the raw numbers for the neighborhood, a house of its stats is valued at $315K-$325K. Excluding the outliers on both ends brought the house down a couple thousand, but in real estate it may be best to leave that data in since those are your neighbors, after all.

The killer feature that this house has which few of its neighbors could claim was the wilderness reserve directly across the street. I factored that in at a $20K bonus to the property value. That bonus brought the estimated value right in line with the more contextual housing valuations such as Zillow and an appreciation-adjusted comparison of the houses on the same block that have sold in the past year.

Unfortunately, the house turned out to be FSBSO (for sale by sentimental owner) and they had been given advice by someone that the house was worth $365,000; 75% more per square foot than even the nicest of their close neighbors. Perhaps self-conscious of the high price, they even misrepresented number of bedrooms and square footage.

The owner was quite galled when our agent presented the initial offer of 9% less than the asking price. In fact, this FSBO wrote off the possibility of a counter offer until I called them directly to discuss the situation. Still quite ruffled, they agreed to counter, but only after flat refusing to pay the buyer’s agent’s fee at any price.

The sad part is that this house may have quickly fetched a similarly inflated price a year ago, but I believe that more buyers are getting wise to the fact that they could buy a larger condo near downtown Seattle or a little mansion in the midwest for similar money. 2007 may shape up to be the year of the self-informed house buyer due to the online revolution in market information.

With any luck, this mixed-up market may yet produce a buyer who doesn’t do due diligence and pays full asking price just because they love the house. Then again, this un-motivated seller may still be living there months or years from now when it finally appreciates to the price they want. This person has very little to lose by just waiting until the right buyer comes along.

Lesson learned: Some FSBO sellers don’t want to know what their house home is really worth. They certainly don’t think you’re doing them any favors by butting in with your know-it-all offers. Don’t let yourself think you can convince them otherwise. Don’t let any of that stop you from trying.

Photo credit: Lance McCord

Drobo “Storage Robot” vs ReadyNas NV+

Wednesday, April 11th, 2007

The new Data Robotics Drobo is a very tempting new offering to the expandable storage market; a segment appealing both to home users and small business.

For $699, this desktop redundant storage box offers four hot-swappable SATA drive slots that are automatically managed by the device. Simply plug it into your computer’s USB 2.0 port and it appears as one large storage device. There is no need for management or hassle. Lights on the front of the box indicate device capacity and when its time to add or replace drives.

The Infrant ReadyNAS NV+ is arguably a different beast, but priced at $649 and covering a lot of the same territory as the Drobo, it is a valid competitor.

Infrant’s ReadyNas NV+ offers most of the basic features of the Drobo, with the huge added benefit of NAS (network attached storage) capabilities. However, the Drobo has one killer feature not offered by the NV+:

Both devices offer hot-swappable drive support, but the Drobo offers much more flexibility when dealing with drives of different sizes. If you have four drives in your NV+, the protected capacity is essentially the smallest drive size times three. The Drobo employs a more intelligent redundancy system that employs a dynamic combination of mirroring and parity to deliver more usable space when working with drives of different sizes.

This means that where 2×250GB + 2×500GB in the NV+ would yield about 750GB of protected storage whereas the Drobo would get you about 929 GB, according to their interactive capacity tester.

A bit of fact checking revealed that the Drobo is in fact slightly larger than the NV+ and does indeed employ a cooling fan. However, like the NV+, the fan is temperature controlled. No word yet on the noise level.

The Drobo appears to fall down when it comes to other features. The NV+ costs just a bit more but offers full NAS (AFP, SMB, WebDAV, FTP, rsync and more), media serving, and several modes of security.

Drobo’s 100% hands-free management can be a boon, but the added flexibility afforded by the NV+ web-based control panel is very useful if you need any features beyond USB storage.

Conclusion
Data Robotics’ Drobo offers great value if your goal is to eek out as much usable space as possible from an array of drives varying in size. It is also ideal if all you need is a USB backup solution and you don’t want to spend any time configuring it.

However, its lower cost and much wider feature set make the NV+ a more attractive option for power users and networked environments.

If the Drobo isn’t your cup of tea right now, I’d suggest keeping your eye on Data Robotics. If their first product is any indication, their inevitable NAS product ought to be a formidable contender for the home & small office storage crown.

Resolution Comparison Video: From SD to 1080p

Wednesday, January 17th, 2007

It seems that many people are in the market for an HDTV right now. With the Super Bowl fast approaching and the holiday splurges fading from memory, the lure of that new TV is hard to resist.

There are a lot of decisions to be made when choosing an HDTV. Do you want Plasma or LCD? Direct view or rear projection? How many inches? And then there’s the thousand-dollar question:
What resolution do you really need?

Of course, almost everyone would take the very best solution they can manage. However, you can save yourself a considerable amount of money if you realize that you can’t see or dont’ care about the difference between 720p and 1080p. That knowledge could mean a difference of $1,500 or more for the same size television.

I have found composed a resolution comparison demo video help illustrate the differences between the different television resolutions. The source file is a 1080p clip made by Red Digital Cinema with their jaw-dropping Red One (2540p @60fps native) camera.

The video is 1920×1080, silent, and composed of several sections:
SD (standard definition)
ED (enhanced definition)
720p
1080p

In the full-length comparison, each of the reduced resolutions is demonstrated in two ways. First, it is displayed in native resolution to demonstrate the original pixel dimensions of the clip. Next it plays again in fullscreen to simulate the picture quality of a television of a fixed size stretching the indicated resolution to cover.


(Click here for a full-resolution screen capture)

The comparison ends with a fullscreen side-by-side comparison with 1080p, 720p, and 480p bars of the same film striped across the screen. This side-by-side segment is also available by itself in a separate download.

Most computer screens aren’t as big as 1920×1080. If your screen is not that big, I suggest watching the video at 100% zoom so the pixels aren’t distorted.

Download Torrents Here

There are two versions of the HD resolution comparisons available:
Torrent full comparison video. (232MB)

Torrent side-by-side comparison only. (50MB)

WiiSaber: A Wii, Mac, and Lightsaber Sandwich

Thursday, December 7th, 2006

You might recall an application I wrote earlier this year called MacSaber. If so, my new Cocoa application should be quite familiar.

Hiroaky just released a handy bit of code that adapts the Nintendo Wii’s “WiiMote” wireless controllers for use on the Mac. I have taken his idea and merged it with the magic that made MacSaber to bring you a new breed of audio Lightsaber simulator.

This application looks and works just like MacSaber, but the input device is the WiiMote instead of your Apple laptop. I plan on adding more features including more visual response and multi-controller capabilities soon, so check back again later.

Download WiiSaber 1.0 Beta 1 Here