Archive for the ‘technobabble’ Category

Great external HDD solution

Monday, April 6th, 2009

I have a few external USB drives and needed a new one and was looking either to upgrade the capacity of one of the drives or buy a new unit. I wanted at least a 500GB drive whose sole purpose would be a Time Machine backup drive hanging off my Mac. I have an existing 500GB unit, at the time the cheapest I could find, but it recently died (you get what you pay for!). So, temporarily, I started using an older 250GB drive. But that was filling up; considering I need 200+ MB for backup and Time Machine was starting to delete the older weekly backups.

Was considering one of the Drobo units, to take advantage of increasingly cheaper HDD, but didn’t really need the ultimate flexibility, and didn’t want the price either. To not make that decision, I was going to settle for a cheap enclosure/ATA drive. But, while doing my normal surf habit, I saw a reference to Thermaltake BlacX Docking Station and did some research on it. Basically a toaster like unit to swap SATA drives, both 3.5 and 2.5 units. Everything looked good and I started shopping. Found it on Newegg for $37 and picked out a nice (well-reviewed) 750GB SATA drive for $59. Great solution for < $100!

Now, I’ll continue to look for SATA deals and I’m all set to roll over to a new Time Machine backup, or swap in a drive temporarily to copy to/from archives, etc..

Up and running in no time. Flawless.

BTW… Time Machine is a great app… I know, I know, it is just a backup and lots of other solutions out there, but the fact that it comes as part of Max OS X, and extremely simple to plug in a drive and go is tremendous.. Already saved my bacon after my main drive failed. After the drive was replaced, I was up and running after a simple restore from Time Machine — didn’t lose a thing. Actually, in this case, the drive was not completely shot — it wouldn’t boot but I was able to inspect via DiskWarrior (another great tool) and actually made emergency backup from there before I took in for repairs, but ultimately used the restore from Time Machine

Magento api with Java Client — problem with XML-RPC interface

Thursday, March 26th, 2009

One of the features touted by Magento is the api exposed via both XML-RPC and SOAP. I quickly (and successfully) tested the SOAP interface using the amazingly complete (and free) soapUI. I wanted to use XML-RPC, and decided to build a test client in Java. While trying to build a client, using the apache ws-xmlrpc library, I ran into a roadblock. The initial login and some other calls would work just fine, but some calls such as product.info would always cause an exception, similar to:

Exception in thread "main" org.apache.xmlrpc.client.XmlRpcClientException:
Failed to parse servers response: Unknown type: nil

I posted on the magento forum to no success (except to find a few others with the same problem). So I was on my own..

After some research, I determined that the problem (IMHO) is that the Magento api is incorrectly using the nil type in responses. According to the XML-RPC spec, nil is an extended type, and can only be used with a namespace (e.g. ex:nil) — see the data types section on the apache site. But, luckily, the ws-xmlrpc library can be easily extended to provide a work around, and the following solution worked for me.

(more…)

Still Alive!

Thursday, March 26th, 2009

Ok, so I have not been active lately… hoping to change that… just upgraded WP to 2.7.1, upgraded several plugins, got to get back to managing …

Wordpress + Google Analytics

Thursday, May 1st, 2008

Since I’m more into blogging now, it means I’m also into Wordpress; especially exploring it from the technical side. So don’t be surprised by more blogging about Wordpress. And with a more constant online presence, it allows me to explore and use a few technologies I haven’t had much exposure to yet, AdSense, Google Analytics, SEO, etc.. So, signed up for all my accounts and now time to integrate… hmm how to put the Analytics code onto every page of my blog? … Probably have to edit something… maybe a plugin exists? After a bit of searching, found the perfect, simple how-to on Trent Mueller’s blog … simple editing of footer.php..

Automator

Thursday, May 1st, 2008

More fun stuff, played with Automator recently because I wanted to find a quick way to set image tags for multiple images. You can do it manually in Preview.app, but wanted a drag and drop solution. I guess I got inspired after watching a recent ScreenCastsOnline podcast (http://screencastonline.com/); as a demo, they showed building a workflow for scaling images by 50%. After a bit of searching, I found an Write IPCT Tags action on automator.us (http://automator.us/leopard/downloads/index.html)

With that action, can create static workflow, or can prompt for all the tags to set.