Defragging for the OCD

My Windows hard drive is a 60GB drive, and is always full-ish. With 8% free space (really good for this drive!), a defrag doesn’t get a lot accomplished. The small files are reassembled, but none of the big ones.  There’s not enough room to piece together the paging file.

So here’s how I, a definite OCD-sufferer, am cleaning up my Windows machine:

  • Create a desktop folder, “Crap,” and drag everything on the desktop into it, except for things that I know should definitely stay.
  • Plug in external 500GB hard drive.
  • Move the Crap folder to the external drive.
  • Move everything in My Documents to the external drive.
  • Empty the trash bin.
  • Run CCleaner.
  • Fire up your paid version of Diskeeper (it’s worth it, I promise: and I hate paying for software). Set up a boot-time defrag, and have it get the paging file and MFT as well.
  • Move everything back. Or, realize that you don’t need 3/4 of it and don’t move it back.

Warning: I’m somewhat concerned that some things might not take well to being moved around, like my iTunes Library. I’m posting this as I’m finishing up copying everything over, so it’s possible that this isn’t going to work out as I planned. We’ll see…

Deal of the Day

Lot of 10 machetes, currently 99 cents. Do mind the shipping ($19.99), though.

One may also wish to ask themselves, “Wait, what do I need ten machetes for?” (And, furthermore, “Is it legal to possess machetes on campus?,” which is a decided “Not at all” in my case.) But for those of you living where machetes are allowed, and who can come up with some reason for owning them, this is currently a steal!

Crappy Apps

Am I the only one that has to put up with terrible interfaces all day, every day?

The work order system for submitting requests to facilities management (Datastream) has a number of irritating flaws:

  • It only works in IE… I just happened to be in Windows right now, so it didn’t require anything other than switching browsers.
  • It requires pop-ups. SP2, by default, doesn’t allow them. It’s simple enough to allow them, but it’s a nuisance.
  • The link isn’t at all easy to find from the main Bentley site.
  • You need to log into this specific URL that specifies what building you’re in. The problem is that this information is tied to your username anyway, so you really don’t need to specify it in the URL. Except that, apparently, you do.
  • You log in with your student ID. Our student IDs begin with an @, and are then an eight-digit number. I never got the @ sign, but you can’t log in with it. It’d take a one-line script to strip the @ out if provided.
  • It’s some obnoxious Javascript/Flash interface that requires double-clicking on page elements. There is no reason this can’t be done with HTML forms? Which would also allow the interface to be used outside of IE.
  • You can view tickets, past and present, for anyone in your building. I suppose it’s not exactly confidential information, but why do you let me see that the guy on the first floor has to have someone come spray for ants?

In all seriousness, I could write the code to do this in a day, by myself?

And then our library has this interface to schedule meeting rooms. We have about 20 rooms. It’s terrible. It seems to connect to about 20 IPs when loading, which gives me strong reason to believe that every page load goes out and connects to every room. (Haven’t they ever heard of caching?!) There are always 2 or 3 rooms that don’t load, and often the tables load all funky. And it takes about 30 seconds to load. The problem is that it auto-refreshes every minute or so. So you’ll finally get the room to finish loading, and as soon as you lay eyes on an open room and go to click on it, the page refreshes and starts the whole process all over again.

And even when it does work, if you try to click on a certain date, instead of you showing you the room schedule for that day, it takes you to a little page with a picture of one of the rooms. How this isn’t a bug I don’t quite understand.

Again, this is a Programming 101 assignment.  Any of us on here could write something that would work better in a spare afternoon.

But then I started thinking… That’s maybe 5 web interfaces I use, 2 of which are unbearable. That’s 40% garbage. That’s a pretty bad statistic?

Good Piano Songs

This is part of my admittedly bizarre “Lists” category that I seem to be using increasingly often.

Piano-containing songs that are so awesome that they make we want to learn to play the piano:

  • I Don’t Like Mondays, by The Boomtown Rats
  • I Miss You, by Blink-182, albeit mostly only for a small part of it
  • Let the Drummer Kick, by Citizen Cope
  • How to Save a Life, by The Fray
  • Look after You, by The Fray
  • Little House, Id.*
  • She Is,Id.
  • Today, Smashing Pumpkins
  • Sleep Alone, Moby
  • Where You End, Id.
  • Id. is used here in its proper form, but Ibidem or Ibid would be a pretty cool band name.

Jobs

I graduate in May. Here are some jobs that I’d like:

  • Doing soundtracks for movies. Not composing music, just spotting ideal music for songs. I have a whole playlist of songs that are crying out to be part of the soundtrack to a movie. I even resisted the urge to put every Moby song I own into the list. Also, Radiohead’s “Motion Picture Soundtrack” isn’t on the list.
  • Sports photographer. I’d like to go a Sox game some time, and I love taking pictures of things. So I’d basically be getting paid to do something I’d do anyway. And they’d provide me with the equipment. (I hope… Good lenses don’t come cheap.) Maybe just a photojournalist. I already have the press pass. 😉
  • Corporate CEO. It’s unclear where to submit my resume for this position. Maybe they’ll come to me when I get my degree?
  • Doing the soundtrack for Guitar Hero IV or whatever. I already have a list of songs that would be good.
  • President of the United States. No one’s political ideology is as closely aligned with my own as mine. I
  • President of my college. $750K/year. I’ve never even seen ours. I’d do it for half the pay and be twice as visible. And I’d fix the things that need fixing.
  • Police chief on-campus. We’re not solving an awful lot of crimes.

If I Controlled the News…

Things I care 0% about:

  • Norman Miller: No offense to his fans, but I’ve never even heard of him. It’s sad that another human is dead, sure, but if we don’t care when the 997th child of the day dies from malaria, why do we care that Normal Miller died?
  • The TV guild strikes. I don’t watch much TV. The Daily Show is funny… But if Jon Stewart is really funny, he should write his own stuff. Same for The Office. I can just not watch the TV shows. I usually don’t anyway.
  • The Harry Potter lexicon (?) being delayed.
  • Whether or not Michael Jackson will retain ownership of Neverland ranch.
  • Statistics about daylight savings time.

News that I care about >5% that seems to have received <5% of the news' attention:

Stolen Ideas, II

Hammacher Schlemmer has a second idea that’s eerily similar to something I’ve had in mind.

Granted, mine would be an order of magnitude (or two) more expensive, have a cell modem for enormous range, solar panels to aid it in flying for a long time, and an ultra-high res camera with a long zoom lens… 640×480 is pretty much a gimmick, especially when you can only store 26 of them. And a 7-minute battery life is gimmicky too. I want a high-quality lens and 8 good megapixels. And a 4GB flash drive or something.

Oh, and GPS. And WiFi. I want to be able to, on the computer, map out a path for it to fly over, and automatically ‘return home.) Granted, you’re far, far from the $200 price at that point. But it’s also seriously cool at that price.

vim tricks

If you’re cool like me, you spend a decent amount of time in vi editing files. Despite all the fancy IDEs and the like, nothing beats uploading your PHP script to the webserver and editing in place. I don’t profess to be a vi expert. I’m far from it, in fact. But for those that are like me–comfortable working in it but far from being a master–here are a few tips:

  • Typing “G” (in command mode, but not as a : command!) takes you to the last line of the file.
  • ma, where a is a letter a-z, sets a as a ‘mark’. You can then issue commands reflecting that mark. For example, I wanted to delete about 500 lines from a file. But I didn’t know how many lines there were, so “500dd” wasn’t a viable option. In my case, I marked the last line I wanted to delete with a, went up to the first line I wanted to delete, and then typed d’a to delete from the current line to mark a. Note that, as you’re doing this, there’s no indication of it.
  • . (a single period) runs the last command again. Handy way more often than I’d expect!
  • :wq is probably the most well-known command. But ZZ (not :ZZ) is easier and does the same thing!

This is a handy reference, by the way. So isn’t the O’Reilly book, but you can’t Google your way through that.

Dual Successes

We’ve spent weeks preparing for a group presentation in one of my classes. And tonight it all came down to the wire. We were all really nervous, and frankly, I thought we did pretty badly. But the professor’s a down-to-earth guy, so after class one of my members mentioned, “We did so bad!” or something to that effect. And he glanced around to make sure the other groups that went weren’t around, and told us, “I can honestly tell you that your group’s presentation made my night.” And that made my night.

And then when I was upgrading Apache I screwed up and deleted the vhost configuration files. And it’s one of those things I never understood… I tried recreating them but they never behaved in a way that made any sense at all. I’d load them and get errors that made no sense, or the server would just act in strange ways. I finally got it to the point where the blogs worked, even though nothing else did, so I left it. While there are nice GUI tools for Apache, they’re not much good on a headless server. (And no sane person runs X remotely on a server, since it’s a needless waste of CPU and running VNC would make it even worse.)

I just spent some time reading up on vhost configuration, and just got it right… I had the syntax all wrong the first time along, to the point that I’m surprised the server was coming up at all. I think I’m actually going to put together a static page on how to properly set up vhosts, because in my searches for help I found a lot of people with similar problems.

Prevention

Tonight I interviewed a sergeant with the campus police department. He’s starting a community policing division, and some of what he had to say was neat. When he first started doing it years ago, his supervisors thought he was slacking off. He’d spend hours in the residence halls, chatting with students. At first, he told me, students were suspicious. Why were the police asking them about the football game? What were the police really there for? Soon, they got to realize that there was no hidden motive. His job was to patrol the campus and keep a presence in the dorms, and, as long as he was doing that, he figured he might as well make sure people knew his name and that people knew he wasn’t out to get them.

After a while, his supervisors realized that the officer that seemed to waste his shifts chatting with students was one of their top officers. He was solving crimes no one else could, until soon there really weren’t many crimes for him to solve. The crime in the buildings he patrolled dropped sharply. And the reason, he told me, is pretty simple: people knew he was there all the time, so they thought twice about doing anything stupid. And when people observed someone else doing something that affected them, they felt comfortable reporting it to him, whereas they might not want to call the police ordinarily.

But this reminds me a lot of the “Broken Windows Theory.” For those not familiar, some researchers somewhere watched an abandoned building for a while. Nothing much happened. One day, the researchers smashed out one of the windows, and kept watch. In a matter of days, people smashed in all the other windows. The reason put forward is that, when people see things in disrepair or decay, they don’t see as much of a problem with making the problem worse. As a very minute example, consider a trashcan in the bathroom. Would you ever throw your paper towel on the floor? If you’re the least bit civilized, no, it’d never cross your mind. But what if the trashcan was overflowing? You could probably fit your paper towel in. But you just throw it on the floor, partially because you have no choice and partially because you’re dismayed at the level of disrepair. And extrapolate that feeling to the people who would go around committing more egregious acts. I think it’s the exact same thought process.

At work, I probably drove the maintenance people nuts. I considered it a complete disaster if a light in the bathroom was out for more than a day, for example. There were nine bulbs in each bathroom, but a single flickering bulb is all it takes to make the bathroom seem like a run-down place. Pretty soon, I’d tell my coworkers, we’d have graffiti and people breaking the mirrors. We never did find out if I was right, because we never let the chance present itself. (I won’t lie: OCD was another factor that I insisted that burned-out bulbs be replaced ASAP.)

Sometimes we’d be insanely busy. And it felt like the building would be nice and clean for hours and hours, and all of a sudden, the floors were a mess. People would drop crumbs, and, as long as there were crumbs on the floor, why bother picking up the napkin you dropped? And when the people at the next table saw napkins on the floor, why should they bother picking up the plate they dropped? And when the kids a few tables down finished their soda and knocked the bottle over, why not leave it on the floor?

As Malcolm Gladwell would say, there’s a tipping point. Things would be nice and clean for hours on end, until all of a sudden there’s a subconscious signal that it’s no longer necessary to be tidy. And I’m not sure how many of my coworkers understood it on a scientific level, but I think most them intuitively got it. Even though we were really busy, we’d try to find an employee who could spare 15 minutes to go around and pick up. Not only did this have the positive effect of solving the “broken windows” problem, but I think it even went the other way: they saw that, not only were the windows not broken, but we were actively addressing the issue. And every once in a while, you’d get someone who would pick up the trash under their table when you got near them. You’d basically reversed the problem.

Our toilet in our dorm room was getting really gross. In addition to the predictable filth, the top of the toilet had become really dusty, and there were probably about five cardboard rolls from finished-off rolls of toilet paper. The other day, I couldn’t take it any more, so I cleaned the toilet bowl and the seat. I didn’t really have the energy to do the whole thing, so only half the toilet got cleaned. There was still considerable room for improvement, but you were no longer afraid to use it. Today, our toilet is sparkling clean. I don’t know who did it. I never asked anyone to, and I didn’t do it. But I take partial credit. I think I sent a subconscious signal by cleaning half the toilet. All of a sudden, the other part of the toilet was thrown into contrast, and the message was sent that we don’t like our things to be filthy. Someone else picked up on that, and finished the job. And I think the toilet’s going to stay clean for a while.

And now that I’ve talked about sending subconscious messages with my toilet, I think it’s time I acknowledged that I’m up way too late and went to bed.