Wednesday, February 17, 2010

Sometimes the magic works...[opening a seagate expansion external hdd]

So I had to ship in my primary laptop for repairs this week. Being studious and all, this has caused me no end of anxiety, as if I were losing an appendage, or a child, or my brain. Probably the latter in my case.

Anyway, I removed my harddrive (a 250gb Seagate 7200rpm SATA drive) and figured loosely that I would be able to access my files via a magic ide/sata to usb connector cable. Note: that cable was one of the better $15 investments in computer accessories that I have ever spent. It doesn't always work well, but it is pure awesomeness to be able to run any drive that comes across my desk on the fly.

The problem? The magic connector doesn't supply power to SATA drives without a secondary dc adapter. And really, who wants to carry that around when there's plenty of power to be had on the USB ports?

The solution: Since I was needing a temporary case for my SATA drive and my partner was needing a back-up drive, we decided to split the difference. We would buy an external drive, I would get the new one, she would get my old one (because I was planning on opening the case on the new one, and she didn't want to deal with that tomfoolery after I was done breaking into it).

How this works: My old external harddrive was an IDE drive, with a different connector than my new one. So we needed a new external harddrive with a SATA connector inside. The hard part is that external harddrives are rarely intended to be disassembled by the consumer, so they don't bother labeling themselves as SATA or IDE. Since I had disassembled a 3.5in Seagate external drive last summer, I figured another one in this vein might work as well. So we invested $60 in a 250gb seagate expansion usb 2.0 2.5in drive and came home to see if I could insert my laptop harddrive into the case.

The bad news: You pretty much have to break off all the plastic nubbins that hold the case together in order to open it.

The good news: The drive is pretty well shielded such that you aren't likely to harm it when removing the case. Furthermore, the drive is simple as pie on the inside, just a laptop size SATA harddrive and a usb controler-thingy. Once you remove the screws that hold on the shielding, the drive can be removed. If you can ever grab hold of it, the drive just slides back off the connector and a new one slides on.

In summary, for $60 we have a case that I can use temporarily to access my laptop files and an external drive that we can use in the long term.

So for all you folks wondering if you can disassemble the external drive and use it in something else, the answer is yes, at least for the model I bought, just don't hold out any hopes for the plastic case looking very good in the end.

Wednesday, February 10, 2010

If the dataset is mine, then why can't I have it?

While I'm generally the pacifist type, I've decided that I really hate the software companies that offer fake interoperability for your data. I couldn't meet their gaze if we met on a deserted street. I would feign ignorance if they came up to me with a reference query. They're dead to me.

Over the past couple of months, we've been working on a project that requires keeping track of a heterogeneous group of stuff that we are going to put through the proverbial sausage grinder to end up with something more delectable. In other words: primary source documents for research.

This sort of thing requires lining up a selection of choppers and slicers, back to back, and having the pig go in one end and the spam come out the other. If the meat won't feed its output from one slicer into the next, then it leaves a mess of raw meat on the floor. It's not pretty.

So, as a result, I've been learning a lot more about databases and database connectors, and how amazing they are for lining up the choppers and the slicers.

These are the applications where I can make prodigious numbers of dataset love children and they will love me back, all the way from the slicer to the chopper. (Did I just mix those metaphors? That's just awful!)

These applications are the ones who love me back:
  • Zotero: with an API and an ODBC connector (via sqlite) I can spend hours immersed in your elegant data hierarchies, letting them wash over me, through me, and to me.
  • Filemaker Pro: as a fickle lover who only supports SQLserver, MySQL, and Oracle via ODBC
  • MySQL: as the plain faced lass who brings the water to the entire village, day in and day out (Man, now I'm really getting into trouble with the metaphors: pigs and babies being chopped up into spam by plain faced village girls? Why not just pull out a horror movie script?)
  • MS Access: I hate to say it, but over a decade ago, when I was just a wee noodle, I first learned about databases on Access. MS Access, you are the illicit, fickle lover who has a headache most of the time, but ah, when the migraine medicine finally kicks in, you have an ease of use that is all your own. You support ODBC connections that allow me to fetch and kick around data fast and loose, and then push it elsewhere before anyone notices.
These applications are dead to me, or at least dead-end in the flow:
  • EthnoNotes: You promote yourself as having an architecture that support ease of access to the data, but for how much work it is for me to actually get and use my data for outside analysis tools, you might as well just write it to a harddrive and drop it at the international space station.
  • Devonthink: Same as before, except that it is more possible, only that in order to get at the data, you have to be able to work extensively in AppleScript. Should I really have to take two classes in AppleScripting just to be able to do what any good ODBC connector can do in 35 seconds flat?
  • nVivo: You're different. You're dead to me because you have never heard of collaborative work. You have no version control, no way to merge files, no way to share a research project with more than one person in a way that isn't pulling teeth. And I can't get the data out either.
That's it for the rant today. Check back in later for more mixed metaphors of pigs, love-children, and the unrequited polyamory of software hacks.

Sunday, November 15, 2009

When all you have is the reaction...

I'm one of those people who has about 9 different email accounts at any given time, one of which is gmail. Yesterday I discovered about 50 legitimate emails had been diverted into my spambox this week, for no apparent reason. I'm guessing that there was some kind of spam-bomb that went off and pushed their filters way up the scale for a day or two. Up until this point it's been one of the most reliable and efficient spam filter's I've used.

As a result I've been thinking about Google a lot the past few days. There's the new Verizon Motorola Android phone on the market. There's the Google Books settlement that just came out:

http://news.cnet.com/8301-1023_3-10397787-93.html?part=rss&subj=news&tag=2547-1_3-0-20

And an interview with their CEO talking about Google's successes and challenges:

http://news.cnet.com/8301-30966_3-10396865-262.html?tag=rtcol;inTheNewsNow

I think the most interesting aspect of this interview is the problem of scale that they are up against. I've been noticing recently that the quality of searches have started to suffer, as they struggle (or fail) to keep up with the new media and blogosphere.

Once again the scale and structure of the internet is changing, and they may have to revisit a number of the assumptions that they build their search engine upon. Which leads me to the question of "how do you plan for fluidity?" How do you plan for a system that is dynamically alive and changing at a pace that only seems to accelerate?

I don't know if anyone has a really good answer for these questions, but I do think the world of computers has some solutions in the works, namely, what I like to call abstraction.

When I was learning to write a simple web application in PHP last spring, the first thing I did was write a bunch of 'classes' that would define objects. Those classes called the database and fetched the data, handling it in the terms defined. All of the PHP I wrote after that called on the classes, calling these 'objects' rather than calling directly to the database.

The beauty and elegance of this is that (in theory) you can change the structure of the database radically, and you only need to change the affected classes. The rest of the code can run, virtually unchanged, on those modified classes. I like to think of it as a type of data abstraction, where the code calls the database via an abstracted, a mediated channel, rather than the database itself.

This is, however, not unique to PHP and web applications. As I understand it, all object oriented programming languages function similarly, defining and calling objects, whether the definition is called a class or a library.

This is, again, not unique to object oriented programming. All of the Linux machines I've used rely on what's called a 'hardware abstraction layer'. Basically the operating system calls this abstraction layer and the abstraction layer acts to communicate with the hardware. One of the big problems with talking to the hardware directly is that if it fails to respond, the system hangs, freezes or crashes. So rather than writing a specific response to every type of possible failure, they rely on the hardware abstraction layer (HAL) which will communicate back to the operating system if the hardware fails to respond or perform normally. Furthermore, if the hardware changes, the operating system doesn't have to change the way it calls the hardware. In my opinion this is one of the main reasons that Linux has made it it out of the geek pit and into the playing field. Prior to this Linux was synonymous with 'hardware configuration nightmares'.

Which leads us back to the question, are there new ways that we can abstract our library functions, our information systems, such that the structures can change without having to create whole new systems? How will we afford flexibility even in our abstractions such that they too can change?