Archive for the ‘Doing’ Category

MacBook Maintenance, and Patience

Tuesday, January 5th, 2010

Over this winter break, a friend asked me to replace her MacBook’s display. It was cracked and showed no image at all, just frozen colorful static. Whatever trauma befell the poor machine broke more than just the display—hard drive, optical drive, and keyboard/topcase had just been replaced.

Repairing Apple’s older laptops is notoriously difficult. They are not easy to work on. They are not designed to be: they are designed to be compact, durable, and look nice. Even apparently simple tasks can require removing dozens of tiny screws and disengaging delicate plastic tabs. Just before I went to college, I replaced a PowerBook G3 Lombard’s infamous right hinge; that was a fun two hours. Optical drives can’t be done in less than half an hour. Hard drives are sometimes a bit easier, sometimes not.

But a MacBook’s display is a special kind of difficult to remove. My father, who does Mac tech support and repairs for a living now, wouldn’t attempt the screen swap—it takes so long, that at the going labor rate, it’s prohibitively expensive. But “fools rush in”, so I volunteered for the suicide mission.

So I spent a day performing 61 “Very Difficult” steps forward then backward. It took five hours.

It seemed like a good idea to make a timelapse video of the process.



There’s also a 40MB higher-quality version, at a slower pace, so you can see what’s really happening instead of a crazy blur.

I used printed instructions from the magnificent iFixit.com. A few times, I had to look at the higher-resolution color pictures on my computer to see exactly which screw I was supposed to remove; the orange, red, and yellow diagrams don’t translate well from screen to greyscale laser printer.

As I removed screws and small parts, I taped them to the paper right next to the instruction, arranged in the same left-to-right order as their points of installation. The tape kept all the parts where they were supposed to be, and none got lost; I never confused similar-but-not-identical screws; I had parts exactly when I needed to reinstall them; and I moved completed pages aside, along with all their screws and parts. This tape trick came to me in a flash of insight while driving around town. I know I’m not the first person to come up with this, but I thought it was pretty clever, if I do say so myself ;)

I hit two snags in the repair process. First, after I swapped panels and reassembled the machine, the backlight didn’t work. You can’t quite see it in the video, but when I powered the machine up, the grey screen with Apple logo appeared like normal, but very very dimly. The LCD worked but it was almost impossible to see anything without the backlight. At first I panicked: did I break it? Did I fry something with static electricity? The inverter board that powers the backlight: is it more delicate than it seemed? As I reviewed the iFixit instructions to be sure I’d done everything right, I noticed a comment that explained what I did wrong. I took everything apart again, opened up the top half, and checked that inverter connector. Sure enough, it hadn’t “snapped”. I reconnected the essential cables and tested again, and the screen fired right up. Perfect. Whew.

The second snag was reassembling the front display bezel. It’s hard to see from the iFixit pictures, but between the white or black bezel and the metal frame there are twelve small grey plastic pieces. These grey bits are supposed to pop into the metal frame and stay there permanently. The protrusions on the back of the bezel slide into slots in the grey bits, holding on the bezel by friction. When I slid a credit card under the bezel, the bezel was supposed to detach from the grey bits. Unfortunately, what really happened is that the grey bits stayed tenaciously attached to the bezel, and I pulled up bezel and bits from the frame. I don’t know if this was because of aging materials, manufacturing variation, or (most likely) my sloppy credit card technique. The grey pieces wouldn’t snap back into the frame—they just bent. So I had to carefully pull all twelve off the bezel, bend their tabs back into shape, and pop them back into the frame. Finally I put the bezel back on. The iSight lens really didn’t want to stay in the bezel, so I had to flip the whole thing upside down to let gravity keep it in place. That was a small pain.

The hardest part was slowing down, taking my time, and working carefully and methodically. I’m a naturally impatient person. I hate wasting time, or spending more than is needed. And yet every time I tried to rush something (taking out a screw) or let my attention drift (looking at the various chips on the logic board, instead of the screwhead), I made a mistake (screw fell into the deep recesses of the case and had to be retrieved). I constantly had to make myself focus, slow down, and be patient. These are not things I usually do. The real challenge of this repair wasn’t the dexterity of my fingers, the keenness of my eyes, or finding a way forward when reality didn’t match the instructions. The real challenge was to myself: to sit quietly and do one thing at a time, carefully and attentively.

All man’s miseries derive from a single cause: the inability to sit in a quiet room alone.

—Blaise Pascal (unsourced)

Passwords and typing timing

Tuesday, February 24th, 2009

I type my 17-character password very fast. It’s a strictly automatic process, all muscle-memory.

The timing is very critical and synchronization problems happen a lot. There’s lots of hand-alternation; sometimes one hand is a decisecond early or late and I type a letter out of order. Sometimes I hit J instead of H because the “down” muscles are faster than the “left” muscles.

All these errors are compounded because I don’t actually know my password consciously. I’m not typing a word, I’m just activating a motor program. I don’t think “H”, I just put my finger “where it’s supposed to go next”. So all the error-correction in the cerebellum and motor cortex that I’ve built up from a decade of typing never has a chance to help.

Amusingly, I can type my ordinary and root passwords just fine under the influence of alcohol. So a complex password isn’t an IID for a computer.

On a darkly humorous note, many years from now, this may be an excellent stroke diagnostic. If I can’t type my password without concentrating, it’s time to call the paramedics.

It’s cool when your roommates study in your field

Thursday, February 5th, 2009

Rushi is reading a PDF textbook on his computer.

“Joe, do you have a physical copy of this?”

I glance at the page of text on the screen, reach over to the heap of junk piled on top of the coffee table, carefully rummage around for a moment, and pull out the book in question. He doesn’t need to tell me what book he’s reading: it haunts my dreams still

Of course, last quarter when I was in the undergrad algorithms course, I borrowed his copy of the Kleinberg, Tardos book

Joshua Tree

Thursday, November 13th, 2008

Another personal post. Last weekend (8-10 Nov) I went with UCSD’s Outback Adventures to Joshua Tree National Park for a weekend of rock climbing. Joshua Tree is a world-renowned destination for climbers, and it’s easy to see why: the northwestern part of the park seems to be composed solely of steep and interestingly-textured rock faces to climb up and beautiful vistas of the high desert to look out upon.

Joshua Tree vista Joshua Tree vista 2 Joshua Tree vista 3

The Outback Adventures folks were experienced, taught us what we needed to know, encouraged us to do our best, and generally had their stuff together. I would strongly recommend any of their outings based on my experience.

I’m still very new to climbing. This quarter I started going to the climbing gym on campus once a week with a friend, and a month ago I went on a day trip with OA to Mission Trails park and climbed on actual rock. This weekend was the test for me: is climbing something I’ll keep on doing once a week at a gym, as a form of exercise I enjoy much more than lifting weights? Or is this a serious hobby I’ll put time and effort into? The answer is clear to me after this weekend: I really like climbing, and I want to do it as often as possible. To that end I’ve purchased a harness and shoes (thanks Craigslist!) and I’ll try to go to the gym twice a week.

The next step is to find a climbing partner who has the equipment and experience to set up top ropes on actual rock. It seems to me the rope and protection gear would cost $300-500 (new list price), and that’s an investment I’m not ready to commit just yet. I wouldn’t know how to use it either. So I have to find someone willing to set up climbs and teach me how to use the gear. To show me the ropes, if you will. Sorry.

On a more introspective note, I’m still amused by my newfound enjoyment of The Great Outdoors. My family was never the outdoorsy type, and we never went camping or hiking or anything like that. Until this summer I’d never been camping at all. But so far, I’ve been enjoying it a lot. Was I always an outdoorsy person, but I never knew? On the other hand, it’s possible that I’m developing a taste for camping simply because I’m experiencing it at this time of my life, going with these people, doing these things. Were I occasionally dragged on yet another family camping trip all throughout my childhood, would I have a different opinion? Nature versus nurture: am I a person who likes camping and hiking but never discovered it until now, or do I like camping and hiking because of the ways I’m experiencing it now? It’s unknowable, of course.

We prefer to call it Chromatically Challenged

Tuesday, September 9th, 2008

Scott and I got ice cream today at the cafeteria. I had Ultrachocolate1 and Banana. Scott got Mint Chip and Concord Grape.

As I picked up mine, he asked “Did you just take my ice cream?”.

Scott is colorblind.

  1. It wasn’t really Ultrachocolate. I’d call it a good Extrachocolate. I think they called it Ultrachocolate to more clearly disambiguate it from the Vegan Chocolate on the other side of the display case.

Summer update

Saturday, August 30th, 2008

Hi everyone. I’m still alive.

I’m in the Bay Area, living with a bunch of neat people in a neat house. Not sure what I think of the area. On the one hand, it’s exciting to be in a setting so infused with the tech industry. On the other, Menlo Park is really not my style. I think I’ve found someplace even more rich and poncey than La Jolla. Some other areas seem a lot more suitable, though. And I love the expressways and freeways up here – off rush hour, driving between cities is a joy.

I’m interning for VMware. I’m working on internal debugging & profiling tools, trying to improve the VMX startup time. The early effort of tool-building is starting to pay off, and in the last few weeks my mentor and I have some really good changes ready to check in. If you run large ESX instances on contended SANs, and your VMs startup a lot faster in future versions of ESX, that’s all me. I met a lot of great folks here: on my team, on adjacent teams, and all those crazy hosted-ui kids over in the Xerox buildings. I’ve gained a glimpse into the workings of a Medium-Sized Software Company. And I’ve learned a hell of a lot.

I’ve kept pretty busy outside of work. I’ve hiked at Castle Rock State Park, bicycled for 20 miles down Foothill Expwy and around Menlo Park, gone to house parties in Berkeley with old friends from Cambria, became a semi-regular at a hookah bar on University, rode a motorcycle for the first time, drove from Santa Cruz to Palo Alto via Half Moon Bay, clubbed in San Jose, and watched the Perseids from the top of Mt Hamilton.

I went to Vegas for Defcon. That was cool. Vegas is a lot better when everyone in your group is over 21. Lots of stuff happened there. And stayed there. (wink)

A few weeks ago I went camping and hiking at Mammoth Lakes with some friends. This was actually my first time camping. Had a good time on the whole, and discovered that I may be more of an outdoorsy person than I thought. Hiking and scrambling up rocks is really really fun. I may pick up rock climbing as a hobby, once I get down to SD with the convenient climbing wall on campus. We’ll see.

I’m looking ahead to grad school. I still have another year to finish off the B.S. before the grad program actually starts, but until then I’ll try to spend some time working/researching with profs. Only trouble is… there are three professors I want to work with, each with interesting projects, each with different styles of research, each with different industry & academic connections, each with different things to teach me. How do I decide? Oh well. I suppose this is the Right Problem To Have.

There’s someone I miss very much. I wonder if she’s still reading this? Much of this summer has been a journey to find the meaning of “complete” again without her. I’m not doing very well.

This happened a few weeks ago, while I was biking home from work. I thought it was neat. That’s not a camera artifact, there really were two rainbows. It hadn’t rained a drop that day and the sky above was blue.



Apologies for the low quality, all I had was my phone. I’m no photographer anyway (Kim, I’m looking at you!)

I’ll try to update more often.

Cars (other peoples’ and mine) pt 2

Wednesday, June 25th, 2008

So now I’m in Palo Alto. (But that’s another post). Guess what supercar I was in front of last night, on Arastradero toward Central Expwy.

Go on, guess.



A Carrera GT.

Life gets stranger and stranger.

Cars (other peoples’ and mine)

Friday, June 13th, 2008

I work in downtown La Jolla, right opposite the Ferrari/Maserati dealership. AMGs, M-series, and Porsche Ses are everyday sights. Jaguars are like Toyotas. I’m tired of seeing expensive cars. But sometimes there’s something a bit more interesting than usual…

One day on the way to work I saw someone picked up in front of a particularly large house by a chauffeured Maybach. In the words of James L. (wherever you are), “Must be nice…”

Ford GT in downtown La Jolla A few weeks ago I saw a Ford GT in downtown La Jolla. Really, with gas prices up to $5/gallon, you’re driving one of these? You and Jeremy Clarkson both.


BMW Z4 with German plate \"BMW Z4\" The US Open is in town this week, at Torrey Pines. It’s practically across the street from campus. There are a lot more interesting cars here this week—somehow the AMGs and M-series are even more abundant than usual. I found this BMW Z4 with the German plate “BMW Z4″ nestled behind CVS. An odd place to park what I assume is BMW’s touring show car. As I drove out of the parking lot, I saw a brand new SL63 AMG and a DB9 Vantage.

I don’t say any of this out of envy, merely commentary. I don’t particularly want any of these cars.1 In fact, I still haven’t figured out what kind of car is right for me. Fast or a smooth ride? Four-door? Hatchback? FWD, RWD? Manual or auto? Low-slung or tall and roomy? I have only the vaguest of preferences.

My Car For now I drive my dad’s trusty old Volvo S70 T5. I say “old” because the car is well on its way to 200,000 miles, but she’s only ten years old, and she looks and feels like a young girl of only 60K.2 It’s zippy enough that I can have fun on late night jaunts to campus or wherever; but it’s a Volvo, so it’s comfortable enough that I don’t really mind the six-hour nonstop service from SAN to SBP for holidays and vacations. Plus it has five cylinders, which is just neat. It’s my car and I love it.

Then again, with gas going up and up, these may be the last days of the automobile. Maybe I was born in the wrong decade? Ah well. Bring on the public transit and high-speed rail.

  1. Except maybe a Z4M.
  2. You may note I use the female pronouns here. For some reason I never think of my car as a female, even though that’s the convention for vessels. But the turn of phrase was so nice, I couldn’t pass it up.

Going to Ralphs the night before Sun God

Friday, May 16th, 2008

One of these is not like the others…
One of These is Not Like the Others

No, these are not the ingredients of a wicked new cocktail. We just needed Drano too.

DefCamp the morning after

Sunday, May 4th, 2008

Last night Scott, DJ, and I took part in DefCamp, “BarCamp’s Little Slice of Defcon”. DefCamp is a security contest, like Defcon’s Mystery Box, masterminded by Viss with help from Billy (?). The contest had three phases: First, a set of web pages and online clues to decode. Second, a booby-trapped box to open. Third, an embedded system to build then modify.

The first task was solving the web page challenges. It was a security mish-mash: lots of binary or hex to/from ASCII conversions, rotation and substitution ciphers, some simple password breaking, QR codes, sound spectral graphs, steganography in JPEGs. All the while with other teams trying to shoulder-surf us, and us trying to overhear them. Each puzzle led to a letter that spelled out a word.

Once we got the word (it was “IZZARD” as in Eddie), we went to Viss and he gave us The Box. The box (I didn’t get any pictures but someone else probably did) was a set of physical and electronic puzzles. Rules of the game are: no tilting, cutting, drilling, or breaking the box. If you mishandle the box or cut wires incorrectly, it makes a loud alarm. The top of the box is studded with nails, sharp side up. There are a handful of wires coming out from the back of the box, with alligator clips on the end. When the wires are connected to most of the nails, they trigger the beeper briefly. When you get the right combination of wires and nails, though, a relay flips and a set of green LEDs go on. Now we can cut some of the red wires and open the box.

Inside the box (which is actually a plastic tool box with a drawer inside), the next obstacle is an old padlock, keeping the drawer in place. We all suck at picking locks, so we spent about half an hour with DJ’s lockpicks trying to get it open. We finally realized we were turning the ‘key’ the wrong way, and then we got it open with another five minutes of fiddling.

After that, we got to the final step: one of Lady Ada’s MiniPOV3 kits, ready to assemble. The mission: get it to display a custom message. Piece of cake, right? I know AVRs, this is like home turf.

Scott and I made quick work of the assembly: sorting the dozen through-hole parts, slotting them into the holes, and tag-team soldering (turns out soldering is a four-hand job). We followed the schematic to find the pins for the serial connector. At the same time, DJ and I started installing avr-gcc from MacPorts on Scott’s computer. We hit trouble though: avr-libc in MacPorts failed to configure, because it somehow kept trying to use the system’s PowerPC gcc instead of avr-gcc (oops). Apart from that, we couldn’t get avrdude on the Mac to talk to the board. DJ installed avrdude on his Linux computer, but it didn’t work either.

Turns out that when Scott and I buzzed out the PCB traces to figure out how to solder the serial connector on… the schematic we were working from didn’t match our board!. We got two wires backward! By the time we figured it out, it was too late: another group had already finished… our UCSD rivals Declan and Robert. After fixing the wires (turns out, the pad pattern on the board was a direct analog of the connector itself), we programmed it from Declan’s computer, since by then we’d figured out how to change the message and recompile. We finally claimed third place.

Our prize: Fry’s gift cards and the memories of a marvelously fun experience. Viss, you’re a mean-hearted fellow… some of those challenges were hard :D

I’m still disappointed I couldn’t bring home the top prize, an A2 Aviator. Iain, Viss says Aviators are red without exception, and to kill you for the offense against nature embodied in your green one.

Two hours till I give my talk…