Archive for April, 2007

Small Business Tough in Campbell

Sunday, April 8th, 2007

I live on the San Jose-Campbell border in Silicon Valley near the House of Orient Restaurant. It must be a tough area for new small-business shop fronts, because there’s been a lot of store closures recently.

In one strip mall, The Blitz, a men’s exercise gym, closed last fall shortly after opening, and this month a Curves also closed. Next door the local video store is having a going out-of-business sale.

The former appliance repair shop morphed into Pandora’s Box Erotic shop, which has been turned into a head shop, with a large “Hooka and Tobacco” banner out front.

At another strip mall across the street, the “Asian corner restaurant” location has really gone through turmoil. In the past 6 months it’s gone from empty, to Nobu (a Japanese restaurant), to Bowl Bowl House (a Chinese restaurant) to Chef Ko (another Chinese restaurant – grand opening April 8.) We’ll see how long this one lasts.

And just about any non-bank real estate finance shop is already history.

Fry’s Campbell still has car line-ups outside the parking lot though.

I do my best to support the local businesses, but often they just blow it. I went into Nobu at 2 pm one afternoon and was told that it was only open for his family that afternoon. The erotica shop spent a few months remodelling before opening. And the Curves sign indicates that it was only open from 8 am-2 pm and 4 pm-7:30 pm 5 days a week.

Luckily I have one of the best Subway sandwich franchises I’ve ever visited right in my neighborhood: the owner still mans the counter himself, and his staff gets the order right.

Update July 1, 2007: the head shop closed. Chef Ko is up and running, though they’re doing some minor renovations this weekend.

Linux Backup Tools

Sunday, April 8th, 2007

I’ve been looking around at ways to do online linux image backups. Not so easy to do a reliable backup while online (the system is running) because processes will have uncommitted data in memory and open files.

Avoiding Restore

Sysadmins swear by image backups, since they can blindly recover a system in one operation. If you control access to a server, in an ideal world you could probably log what is installed on a server, develop a build process, and just back up the data instead of doing image backups. Package managers, make, cf engine can help with that.

Large corporations reduce the need for backup-restore by using redundant systems: striped and mirrored disk arrays with redundant power sources and/or mainframes.

RAID1, RAID 0+1 and RAID6 can reduce the likelihood of needing a restore, but you still need backups in case of file deletes or corrupted controller cards.

SMART disk monitoring can often alert you when a disk is failing, but doesn’t always.

The Good Old Days: restore and fsck

In the old days, Unix sysadmins would just pick a quiet time at night for an online backup, run sync;sync;sync;dump, and if restored later run fsck and cross their fingers. Some file corruption was pretty likely at restore time.

Filesystem Snapshots

Snapshots are helpful for getting a consistent filesystem but do not capture pending transactions or calculations in memory that have not been written to the filesystem yet. Those will be lost or rolled back. So application support is still very helpful. With MySQL MyISAM tables one should do a shutdown, or at least lock all writable tables before snapshotting. Or just use database replication to another server.

Veritas made a fortune selling their VxFS filesystem and snapshot feature for $50,000/copy, which would allow saving a reliable copy of the filesystem. VxFS has come down in price now, and is available as a commercial binary module for linux.

LVM2 on linux accomplishes a similar thing to VxFS snapshots. Fortunately, most kernels include it now, making installation and upgrade much easier than patching it in each time.

Acronis claims to do online image backups, but I haven’t used it. They also have some support for LVM. Apparently their image backup works by installing a custom module called snapapi.

Single-User Mode

If you can’t use those, and you want to gamble with dump or tar on a running system, then you will want help. Booting into single-user mode on linux gains you a quieter filesystem, but no network support, so interactive use will require terminal access through a keyboard and monitor or serial port/terminal server.

Terminal servers are a good idea anyway in unattended data centers because you can see panic messages that are otherwise inaccessible.

dd for offline and read-only filesystems

I use dd successfully on small volumes (under 20 GB) for offline backups. You need to boot off a cd or usb drive, then dd any partition or drive to another one of same or bigger size. It’s slow but works fine. Usually faster to just to use tar or cpio unless you’re playing with the MBR. The dd command I use is dd if=/dev/hda of=/dev/hdb bs=1048576. dd is very useful to backup and restore the MBR.

Any other recommendations?

dd
GNU ddrescue
lvm2
Amanda Backup (BSD License)
Acronis Backup (Commercial license)
MondoRescue (GPL)
Right To Your Own Devices
Backup with dump and restore on Linux mini-HOWTO
comp.os.linux.misc: Live backup of Linux server
Easy Automated Snapshot-Style Backups with Linux and Rsync
Backup and Restore Linux Partitions Using Partimage
Zmanda Backup (BSD License, software based on Amanda)
Librenix: Linux Backup Tools
Bacula: Cross-Platform Client-Server Backups
O’Reilly “Backup & Recovery”, 2007

Review: Yahoo Go for Blackberry

Saturday, April 7th, 2007

BlackBerry 8700g with Yahoo! LogoI just installed Yahoo! Go mobile apps for Blackberry on my 8700g.

It’s a slick control panel (carousel) with search, news (headlines, finance, celeb, sports, weather), City Guide, Flickr interesting photos and Yahoo! mobile maps. News is available in many languages.

Takes about 6 seconds to load on my 8700g, but worth the wait. You can kill a lot of time playing with it and reading news. Not sure why it takes that long to close though.

The 700k download was easy and pretty much auto-installed. You’re asked for your Yahoo! ID, but for some strange reason they default the language to Canada (English) and the location to New York City Radio Hall. That’s just retarded since they already have your Yahoo! profile data.

The map is clear enough to read.

Google mobile maps allows keyboard navigation and has traffic flow and satellite view, but I can’t find that for Yahoo! maps. There is also a popup menu border display bug when you first activate the zoom menu with your trackwheel.

So Yahoo! engineers need to do some more work on the maps component.

Also, keep in mind that Yahoo! apps do record your personal usage info for ad and tracking purposes.


Yahoo! Go mobile apps screenshots

MySQL Hacks

Saturday, April 7th, 2007

MySQL LogoLinks for cool things that people do with MySQL.

Amazon Web Services Blog: MySQL Interface to Amazon S3
Mark Atwood’s S3 Blog Entries

register.com: Inside Amazon’s web services: SLAs for us but not for you, says Amazon’s CTO

SVLUG: Talk on Meldware Groupware

Wednesday, April 4th, 2007

Aron Sogor, cofounder of BuniSoft, gave a talk at Silicon Valley Linux Users Group (SVLUG) tonite on the Meldware Linux Multi-Platform Groupware Package. He is the core developer of the Calendaring feature in Meldware.

This is a suite of servers written in Java that uses a database backend as a store. They use Hibernate for Object-Relational Mapping (ORM) and support Postgres, MySQL and most JDBC3-compliant databases.

The project provides a multi-platform set of servers for MTA, IMAP, webmail (with Adobe Flex) and calendaring. You can either continue to use your existing servers or move to theirs for the various components.

So far Aron has tackled iCal and wCal, but not yet the Exchange Calendaring protocol.

It was fun to hear about the intricacies of calendaring from an experienced calendaring server engineer. Apparently calendaring vendors work on the server, protocol and client at the same time, and when they converge just ship it, standard or not. Much like IMAP and its incompatibilities.

Overall quite an ambitious project.

Thanks to Symantec for hosting the meeting. SVLUG is looking for a new corporate sponsor for expenses like shows and pizza.

Safety Seminar at Reid-Hillview Airport

Wednesday, April 4th, 2007

Glenn Inn, Squadron 2 Flying Club, gave a talk on “Mountain Flying Safety” tonite in the airport building.

It was an ambitious presentation, with computer, projector and videotape aids.

He talked for a while from slides, then showed an FAA safety video, then he handed out sectionals and aircraft performance data for 4 audience groups to plan a mountain flight to Lake Tahoe

The FAA considers mountain flying to be any time terrain is over 2000′ MSL. That is because a 2000′ airport on a hot day can have a DA of over 5000′.

Most of my airplane ratings were earned in Hawaii, so I have plenty of experience with solitary mountains, but little with ranges. I flew about 20 hours in New Zealand, which combines mountains with rapidly changing cloud formations and visibility.

Some mountain flying tips are:

  • get local weather from FBO pilots or ASOS
  • it’s unlikely your old airplane will match performance charts of a new, clean airplane – especially in rough air
  • carefully calculate weight and balance and takeoff/landing performance
  • fly below 90% max weight for better maneuvering
  • file a flight plan (and close it)
  • don’t fly over challenging terrain at nite – plan to touch down before dark
  • fly where help is available – follow roads
  • be aware of alternate airports, golf courses and landing areas in case of engine failure
  • consider oxygen above 5000′ at nite, 8000′ in day
  • only fly with enough fuel for the trip plus comfortable reserves, cut baggage
  • fly in the morning for better density altitude (before 10 am)
  • overfly mountainous terrain by at least 1000′, 2000′ is better
  • if caught in a downdraft, try a change. Turn 45 degrees or accelerate out of it
  • avoid rotor and cap clouds, beware of clear air turbulence (reduce to maneuvering speed of 1.7x VS0)
  • higher DA means thinner air, so TAS will be higher than IAS, landing and takeoffs will be at higher ground speeds
  • approach ridges at a 45 degree angle to easily turn away
  • approach peaks on the upwind side to benefit from lift (think like a glider pilot)
  • may have to circle for more altitude
  • fly to one side of narrow canyon so a u-turn can be executed
  • it’s possible to land at an airport with high DA and not be able to takeoff later
  • small planes should avoid thunder storms by 40 miles, larger planes with weather radar perhaps 20 miles
  • Leadville is at 9900′ MSL and can have a DA of 14,000′ or 15,000′. A Cessna 172’s service ceiling is lower than that DA, and might be the wrong plane in that situation even with reduced fuel and baggage. Consider a turbocharged airplane.

Wings forms were available for attendees.

I looked at the bulletin board for airplane offers. Several planes, but nothing of interest. Mostly 1/5 to 1/8 shares, which is a lot of people to share one plane with. Half the planes were more than 30 years old. Looks like RHV has tie-down spots though.

Had a ride back in a Honda Insight hybrid car. The owner was pretty happy with it, though he said the Prius was more capable as a hybrid. The car actually seems to shut off at stoplights and becomes silent. He said that he had no problem merging on the highway.

Another Nice Weekend at the Local Airport

Sunday, April 1st, 2007

It was a beautiful day today, so I spent the afternoon at Reid-Hillview airport.

I took along my Icom IC-A23 aviation handheld radio and listened to planes contacting ATC while taking off and landing. Also played around with an E6-B, since I normally use a Jepp electronic calculator.

I always stop in at the AvShop and support it by spending a few bucks.
I noticed that they have a sales flyer posted. They’re offering to eat the sales tax on GPS, radio purchases, etc. in order to compete with online stores.

My club is gradually getting all their 172s back on the line.

There will be a FSDO Wings Safety Seminar at 7 pm on Tuesday in the RHV Terminal Building on Mountain Flying. Those attending can get a Wings endorsement and submit their form if complete. A Wings level counts as a BFR.

Also, a $200.00 2-day Part 121 overview class is being advertised for April for interested airline applicants.