Sunday, August 08, 2010

new blog built on Rails

My thoughts on web application development, especially in the realm of Ruby on Rails, Heroku, the cloud, Ruby, Rails, Memcache, PostgreSQL, No-SQL, iPhone, and other topics are being shared now on http://MarkHolton.com

Saturday, April 03, 2010

iPad morning



...took these pics at 9 a.m. in suburbia, Washington. A buddy and I headed out to the Apple store, the line was around the block for *reserved* iPads. Many of these people had undoubtedly never seen or touched one, but were buying one. There was a separate line for unreserved. A handful of police on hand to keep the peace.

Amazing brand to compel surburban-ites out of their homes on an early weekend morning, in the 39 degree weather to wait for a product they have only heard about and seen videos about. What else has had that kind of reception? The Kindle was sold out for months online. I can only think of concerts and celebrity viewings as comparing. There is nothing like it in nerd world. What would you compare it to?

Tim and I turned around almost immediately, hopped in the car and drove to BestBuy (well, BB opened at 10, so on the way stopped at Trader Joe's, as my buddy recommended a 6-pack of Hofbrau Bock to each take home). No lines at BestBuy.

imo the iPad fits as a machine for the living room, while you're horsing around with family/friends, but don't want to sit there with a laptop ...for emails, looking up items during games, remote, tv guide, Facebooking, Twitter, EyeOnMajors... also for travel. eBook reader looks nice, but personally prefer the reflective/natural light Kindle. It's not as comfortable as a laptop for typing, for example, and I wouldn't want the iPad as a laptop replacement.

A very cool device. ...but such a carefully crafted, and remarkably well-received brand.



Friday, December 25, 2009

home network and backups: NAS convenience & simplicity


Merry Christmas! My gift to you is sharing some home networking and backup information!

The Dream:
...will start with a dream. This is... the Cadillac of home storage. The Drobo with SATA option. Considered it, but didn't go this route for our home network due to price. But you should check it out:

SATA, hot swappable, plenty of space for the next decade, and the way RAID is implemented for you makes it basically bulletproof for all your images, movies, music, software assets, etc. Even if 2 drives fail at once, your data is secure. That level of reliability comes with a high price tag, about $2500 ($800 for the chassis, $350 per each 2TB SATA drive). Overkill, but pretty awesome.

A More Reasonably priced setup:
Settling for less bulletproof, but with an affordable price and convenience... price tag only is about $119 per TB - a big discount to DroboS greatness.


Figure 1: Back of the Envelope design layout

The following outlines this configuration and setup for the home:

- NAS1 - 1 TB network attached storage (NAS) attached to your wireless router or Airport Extreme Base Station (AEBS) - (chose these MiniMax Hard Drives: same form factor as AirportExtreme, USB or Firewire, relatively quiet, $119 each via Amazon)

- NAS2 - another identical 1 TB drive daisy chained via USB

- you can configure AEBS (and other routers) to let drives attached to it to be shared drives between computers. If you have access to the wireless 802.11 network, you get access to the drives. In addition can password protect the drives themselves (beyond the 802.11 authentication), or require user authentication if you wish (easily setup).

- each Mac is set up to use NAS1 as it's source for music, movies, etc. -- can configure this in iTunes. Move your movies, and music to the spot on the NAS, and tell iTunes this is its 'home' for purchases, etc. -- this way you do not have to store 60, 80, 100 GB or however much music + movies + images on your laptop itself, but it's on the shared network drive. It has another added benefit if you're using any devices which consume iTunes media (E.g. aTV), in that these devices will effectively sync through the NAS through iTunes on your computer. If you're planning on using these media files for awhile you'll want them on expandable drive, instead of laptop harddrives which will fill up. (requires less management/time to organize)

- buffer size: any device that uses iTunes, or your computer in a client-server relationship will then be set to sync with the shared drive, not at your hard drive. There's a little added latency, but not much if you're on 802.11n, and you can set the buffer size on iTunes to "large" which means that you will download more of the song or movie first before playing it (less stuttering during playback)

- as of Snow Leopard's release, you can use network attached storage as TimeMachine backup destinations. Therefore, configured NAS2 to be the backup for both laptops.

- only extra item is that TimeMachine unfortunately does not allow you to backup from one NAS to another, only works from your computer's harddrive to the TimeMachine destination drive. This is something hopefully Apple will address in future releases. We want to back up from NAS1 to NAS2 and make sure that any shared drives on NAS1 also get backed up in case of failure. One option for dealing with this: write an rsync shell script that runs via cron, this is one way:

Summary:
- movies, photos, images on a NAS to prevent you from using up space on laptop hard drive
- configure iTunes to use the NAS & therefore media through shared drive
- automatic backups from laptops to NAS2 via TimeMachine
- automatic scheduled backups from NAS1 to NAS2 via rsync script running on cron

...once setup, makes managing your digital assets less time consuming or worrisome.

Here are some links I found useful, if you're interested in going down this path:
- AEBS sharing drive:
- TimeMachine backups allowed on AirPort Extreme:
- Mac's synch-ing from a directory on NAS:
- iTunes over NAS via Airport disk:
- iTunes sharing libraries:


Friday, December 18, 2009

DNS hijack - high level explanation

http://www.theregister.co.uk/2009/12/18/dns_twitter_hijack/

A bunch of servers exist throughout the internet which map friendly human readable names (twitter.com, eyeonmajors.com) to IP addresses. These are DNS servers (Domain Name System servers) -- phonebook for the internet. When you type in "tigerwoods.com" to see his latest transgression admission, along the way DNS is queried and you are directed to the mapping to that IP address which presents the html and images of Tiger's statement.

A DNS hijack... is when the evil doers redirect the mapping, to a mapping of their own choosing. E.g. instead of twitter.com pointing to twitter's actual IP address, they point it to the IP of their own website where they can display whatever they want. (hey, maybe Tiger never admitted anything, and it is an ongoing DNS hijack?)

Once they have accomplished the hard part of hijacking DNS... it's very easy to create a landing page that looks identical in every way to the real site, but is in fact run by someone else. Look, Virginia, it even has the same URL. Looks legit, but is not. When people try to log in, the criminals setting up these sites can simply grab and store the username and password of the person attempting to login (phishing) for malicious uses.

So when/how can you be sure? HTTPS and SSL certificates can ensure that the site you are attempting to reach is the actual site. The site has been "notarized" in effect by an SSL cert, and while the evil doers can fake the look of a site and in some cases can even hijack the domain name (as they did with Twitter), they can't fake an SSL cert** -- it is bound to the domain name itself. (Not all sites use https and ssl certs)

...
http://twitter.com/coda/status/6789759675

Holts

** can't fake an SSL cert... unless the cert was encrypted using an MD5 hash, and the hacker had access to one or more PlayStation3's. ;)

Sunday, August 09, 2009

lawn improvement

http://www.youtube.com/watch?v=OqHcm66s-kc



...since August 4th, decided to step it up. Watering, raking (a lot of dead grass), overseeding... took a picture every day. Hopefully in a month it will be all filled in. Plan to continue to log it with pictures every day or two, grow the slide show.

Better improvement in ~4-5 days than expected, it's filling in nicely. The 16 point sprinkler ($14.95) in the last two!