-
-
-
-
-
-
Keep reading →
That MacBook Air (and the iCore of the Future)
I'm officially a fan. I think it's the SSD that manages to make an ultralight laptop packing a 1.4GHz processor and 2GB of RAM feel as nimble as a desktop with a 2.4GHz processor and 8GB of RAM. There are some things I don't do on the Air: It's not running MySQL, Apache or Rails. But for all the "normal computer" stuff —surfing, writing, mail, RSS, light coding — it's great. It even seems to run WinXP in VMWare pretty well, though doing that manages to get the (very quiet) fans to spin up.
Some day, if my situation changes such that I don't want to have a big desktop machine handy, I can see entertaining the notion of owning another "full-sized" laptop, like a MacBook or MacBook Pro. For now, though, I don't think I'll ever want to own a notebook larger than an Air. It does everything I need in a notebook at about half the weight and without any sense that I'm making some big tradeoff. In fact, the old white MacBook just feels bloated and unnecessary: A device packing too much because there was a good chance it was going to be The Main Computer for a lot of its anticipated market.
Having had both side by side for a week now, I'll be the first to say that having both an Air and an iPad is an unimaginable extravagance. There may be times when I'll be glad to shave an extra pound off my bag and take just the iPad along, but I think I'd also be about as happy having my iPhone in a lot of those cases. During the day, when I'm still working but taking a break from the desk, there's no way the iPad makes more sense than the Air.
Could it ever? Maybe, but it would involve Apple building the sort of hybrid device that third parties have stepped in and created with iPad keyboard cases, and it would involve Apple opening iOS more than it seems willing to. My day-to-day basics are heavily tied up in things like being able to use clipboard history applets, quick flipping between apps that are guaranteed to remember their states under normal load, and browsers that don't need to reload tabs if I've been away from them. With those things, I could make some of the compromises needed to work around other deficiencies.
I'd like "some sort of hybrid device" a lot, but here's my notion:
In under ten years, Apple's going to be selling us iPhone-like devices we'll jokingly call "iCores," because they'll (either literally or virtually) snap into the back of three form factors: larger tablets, notebooks and consumer desktops. The iCore will pack enough RAM, processing power and storage to do everything you need in a desktop computer today (with some help from the cloud). It'll just be less wasteful about it, because you won't need three different CPUs, GPUs, storage devices or sets of RAM. Instead, each form-factor will have a slot for some kind of physical interconnect or enough wireless hardware to communicate with nearby iCores and drive audio/video/input: They'll be thin hosts to a fat client where fat has been defined down to "thin metal wedge you can slide into your pocket and use as a phone, too."
-
-
Keep reading →
Not a bad time at all (tech edition)
Sometimes it's nice to stop and look around and think about all the things you've been taking for granted. I've been in the process of handing two projects over to coworkers, one small and one large, and it's caused me to go out looking for ways to make that easier. I don't work on an actual dev team: My stuff has been solo efforts, so I'm aware that it probably looks and feels a little different from what everybody else is used to. It was good to find a few tools to make the handover less painful.
So here are a few things I'm newly grateful for:
GitHub
Wow. TextMate has great support for git repositories, so it was super-easy to set up a repository, add all the files, write a few READMEs in Markdown and hand things over. When something needed tweaking, it was a simple matter to make a fix, push it up, and let the recipients know. One of them was on Windows and needed different instructions to get things running? Fine ... I made a Windows branch with its own instructions and dependency lists.
Maybe not as important, but GitHub made me feel better about dropping that code on my coworkers because it made everything more approachable. It makes the READMEs look good (and readable) and it makes the source easy to browse with pleasant syntax highlighting.
RVM
I've been developing with Rails on OS X, able to install whatever I need to get a gem working, updating my rubygems install whenever it suits me, etc. etc. I didn't want to make my coworkers go through custom-building their own Ruby or rubygems, and after a few years of getting everything just so I know there's a chance I've got something on my machine they don't have on theirs. So RVM completely rocked.
RVM stands for "Ruby Version Manager," and it's a way to get a self-contained Ruby sandbox running on an unprivileged account. At its simplest, RVM lets you bypass your distro's elderly Ruby packages and update your Rubygems package without getting a scolding about how your distro will be pleased to update that on its own timetable.
RVM can do a lot more: You can install multiple versions of Ruby and switch back and forth between them with something like:
rvm use 1.8.7
If you'd like to use whatever Ruby came with your distro:
rvm system
If you've got three or four Rubies floating around, you can set a default:
rvm --default use 1.9.2
You can also create swappable gem sets.
VMWare
I first reviewed VMWare 11 years ago, when this is what passed for a middling machine:
VMware’s base system requirements are a Pentium II/266 MHz processor and at least 96 MB of RAM. We tested the software on several configurations, ranging from a machine at the very lowest end of the recommended specifications to a Pentium III/500 with 128 MB RAM. Performance is clearly helped by devoting plenty of RAM to the virtual machine. A computer with 160 MB or more is closer to ideal, unless you run X with a conservative window manager and few applications.
I could have spent some time guessing about what might be needed to get my projects working for somebody else, but it was a lot easier to ask "which distro are you running?" download the necessary disc image, set up a VM to match their environment, then run through installation and testing. I did that twice this week: Once to match a developer's workstation, once to make sure I was testing against the company server platform.
Ubuntu each time, by the way. I don't know what the current state of the distro wars is, but Ubuntu went up about the way I remember Debian going up: easily and thoughtfully, leaving me with something that Just Worked for my limited purposes. So good for it.
progress_bar
So, _I_ know the script is doing what it's supposed to be doing because I've been fiddling with it for a year. Not everybody else does, so there are a few ways to denote that something is happening. One is just adding an extra bit of noise to each iteration of the main loop to simulate a comforting beeping noise. Another is to use the handy progress_bar gem, which adds a progress bar that can show a counter, percentage completed, rate and ETA with just a few extra lines. Looks nice, less noisy, took all of a minute to add.
#programming #ruby #the future
-
-

