Archive for March, 2010

Computing

MySQL “Can’t create table” error fix for WAMP

This is a post for the MySQL geeks out there, and also for anyone who had a similar problem and might be searching for a solution.

I was trying to copy our testing server’s database to my local machine, so I can do some local development (I’ve set up a web server and database on my personal computer, so that I can test things out before moving them to the development server). I’m using WAMP for that, which is a very simple way to set up a local webserver on Windows.

Well, when I tried to import the database I got the following error:

Error Code: 1005 - Can't create table 'whatever' (errno: 121)

So I edited my.ini, and increased max_allowed_packet, like so:

[mysqld]
max_allowed_packet=32M

I’ve heard that some other people have also had to increase wait_timeout to something like 45 seconds to fix this error.

Life happenings

Dear Thieves: My Neighbors Will Fuck You Up

Today I am proud to call this neighborhood my home.

Image from Hal Bergman Photography

This morning I had to take Kayla to the veterinary surgeon for a follow-up.  On my way home, Lauren calls me telling me someone knocked on the door, that she didn’t answer because she was still in bed, and then she heard some weird sounds. I was about 15 minutes from home at this point, so I told her I’d be right there. Thought maybe it was just some kids fucking around.

I pull into my subdivision to see 3 cop cars near my house, and some neighbors out in the cul de sac gathered with baseball bats.  Apparently someone had tried to break into my house while I was gone. Two someones, in fact. But mine wasn’t the first house they went to. They had gone to my neighbor on the left before that, knocked on the door, and he said that when he answered they seemed surprised, then asked if he needed his lawn mowed. They obviously had no lawn mower, so he was suspicious. Then they came to my house, knocked on the door, and when no one answered, they went to the door attached to the garage and proceeded to attempt to kick it in.

I say “attempt” because they didn’t manage to get it open — it broke part of the frame but caught on the door jamb, since the frame was solid wood (as opposed to compressed wood, which most more recent houses use). Meanwhile, my neighbor Devon is calling the cops, and then coming out to ask the guys what the hell they’re doing, along with another neighbor from the other side of my house, who is wielding a baseball bat. The would-be thieves, predictably, get the hell out of dodge. Or try to.

Apparently, my neighborhood doesn’t take well to thieves, because my neighbors gave chase. Before long, several people in the neighborhood were attempting to corral these jerks, and within a couple of minutes the cops were there. Living within 2 miles of a police station has some benefits. The neighbors and cops coordinated, and the cops took the thieves into custody.

Yes, you read correctly. The police were called and actually caught the criminals. That never happens.

These fuckers are now behind bars. I will have to replace the door, but I was considering doing that anyway (it’s in a bad spot that gets a lot of moisture and was in crappy condition). Nothing was stolen, no one was hurt. I will be following up with the police to make sure that these bastards get what’s coming to them. You do not scare my girl, or fuck with my house. You certainly do not do both.

So, fair warning to all would-be thieves: choose another neighborhood. The only thing you will find here is epic fail.

Life happenings, Travel, Work

Work Trip!

In late April (edit: Yes, April — I originally said August, but it is April), my boss is going to Europe to talk to some European publishers. I will be coming with him to answer tech questions.

The plan is to fly into London, take a train to Paris, train to Toulouse, train to Madrid, then fly back home. The trip will last about 10 days total, and with nearly 5 days of that being taken up with flying/trains, that doesn’t leave much time to spare for fun stuff and sightseeing. But, we will do our best to squeeze some in, and I will post pictures as I can.

Humor

The Very Secret Diary of Selene

I found this somewhere, but I cannot remember where, and since Google is unable to find it now, I cannot attribute it. If you know who wrote it originally, please let me know. Also since Google is unable to find it, I feel the need to put it back on the Interwebz.

This is done in the style of The Very Secret Diaries of the Lord of the Rings characters, except it’s done as Selene from Underworld.

The Very Secret Diary of Selene

August 4, 1648

Woken from scrummy dream about ponies to discover strange man in my room wearing silly dress and covered in blood. Told me my family had been eaten by monsters and I should put on leather pants and go live with him forever. Agreed instantly.

Looking back, was a tad suspicious.

Aug 15, 1648

Viktor explained to me today about war with lichens. V strange for grown man to be afraid of fungus, but we all have problems.

Aug 16, 1648

Viktor explained not lichens but lycans. Lycans just like werewolves. Asked “So why not just call them werewolves?” Viktor: “Shut up.”

Aug 17, 1648

Today, Viktor explained that two hundred years ago, Kraven killed Lucius, leader of werewolves in great heroic victory that all but destroyed lycans. Huzzah!

Aug 18, 1648

Today Viktor said we have to hunt lycans to extinction. Asked him how long he’d been doing this. Said for centuries. Replied “Wow, you guys really suck at this hunting thing.” Viktor: “Shut up.”

Aug 19, 1648

Asked Viktor how come victory by Kraven so decisive if still hunting down lycans for centuries afterwards. Viktor v. cross, said it would all make sense if I read the sacred history books. Asked him where I could get one. Said they were forbidden to be read under pain of death, but may be checked out of the library by anybody. Viktor making bugger-all sense lately.

Sep 12, 1648

Today Viktor said I was officially a Death-Dealer. Presented me with new pair of leather pants in celebration. Asked him what title meant, apart from even saucier pants. Said I could now throw silver frisbees at the lycans. Gave me frisbees. Am now thinking Viktor complete freaking lunatic.

Jan 22, 1903.

Viktor went to hibernate for 200 years today. Gave him some moisturiser as skin gets awfully dry when sleeping for two centuries. Viktor said moisturiser girly; pointed out he is still wearing a dress. Do not need moisturiser myself as am easily hottest vampire in world with marble-like skin and hot black hair cut and rock hard butt. Go me!

Apart from tacky dress sense, Viktor so nice. Will miss him v much. Gave me endless pairs of leather pants, and was always walking behind me and checking that they fit properly. What did I do to deserve such kindness?

Jan 23, 1903,

Worried now. Viktor put Kraven in charge before going to sleep. Kraven almost as sexy as me. Plus now always hitting on me. Always thought Kraven was gay? If not gay, how the hell does he explain that haircut?

Jan 27, 2003

Still hunting werew- I mean lycans after over 300 years. V bored. Told fellow death-dealer Larry I felt like an obsolete weapon, discarded on the bones of a dying age. He said “stop being so goth”. Got revenge by asking him why he was taking photos of people we were just going to kill anyway. Larry: “Shut up.”

Jumped off clocktower and lived. Roxxorz. Man, that shit NEVER gets old.

Jan 28, 2003

Lycans got away thanks to tacky blue-glowing bullets. Took bullets to show Singe, who recently escaped from a Guy Ritchie film. Singe said the guns shoot UV light. I said “Why don’t they just use a torch?” Singe: “Shut up.”

Stormed off to tell Kraven about lycans but was not listening, too busy complaining about broken furniture. “Why can’t you just open a door like a normal person?” he asked. Hate Kraven. He’s just cranky because I interrupted his stupid thin-people only LARP convention.

Jan 29, 2003

Jesus fuck, does it ever stop raining in this town? Hair RUINED.

Also, found human lycans were hunting. Go me! Would fancy him, if I was a pervy human fancier, which I’m not.

Might have seen Lucius there, except Lucius dead for 600 years. V. confused. Solved problem himself by standing very still so I could run him over. Go me!

Took human back to my place. Left him untied and window unlocked and went to the library to read forbidden history. Later found out he escaped. Clearly, I underestimated his amazing powers.

Slightly confused by lack of plot, so woke Viktor up early. Will be v pissed, as just like alarm going off too early in morning, only multiplied a bajillion times. Ran away so he will yell at Kraven and not me. Hahaha Kraven in so much shit now.

Jan 30, 2003

Found human again – made v easy as he was right outside house. Drove across town to show him our cool fake blood. Then tied him up. Am so clever. Human said “take me with you”. Sounded like it made sense but needed to wash hair again, change leather pants, so said no. Drove back to house and told Viktor what I had done. Viktor still v. cranky, so not a morning person. Also, did not use moisturiser like I suggested. Moron. He said “Where is your proof?” Crap. Knew I forgot something. Drove back to get human, but lycans turned up. I killed them all, but accidentally pushed human out window during battle. So embarrassed.

Went back and to tell Viktor what I had done and get new quest. Viktor wearing dress again. V. fruity but better than ugly naked Michael Jackson look. Viktor said we had to kill human. Was a bit upset as have formed deep, abiding love for human in the thirty seconds of conversation we have had.

Went to lycan base. Kraven still hitting on me, so told him I was a lesbian. Got pissy and tried to kill me – typical man. Luckily, Lucius (still not dead) stopped him. Then Kraven told me Viktor killed my parents. V. shocked, but on reflection, explained a LOT. Bit miffed, so killed Viktor. Surprisingly easy as head made of tapioca pudding. If only had known, would have tried that years ago.

Human now blue in colour for some reason, perhaps to match cinematography. Blue v fashionable this year so we have decided to shack up. Cannot forsee any problems with this relationship at all. Except now has all my memories, so not able to lie about scorching crotch-rash from leather pants.

Computing

Google Flops?

Google Buzz, and before it Google Wave, seemed to have great potential. I played with both when they came out.  But my interest quickly waned, and from what I can tell I’m very much not alone in that.

Part of the reason is that I think Google jumped the gun. In marketing, you have to be careful about when you create a buzz (pun intended). And especially with products like these, they’re only useful if everyone is using them. In both of these cases, I think Google was directing the general tech populace to use products that were incomplete.

With Wave, they should have had permissions from the get-go, so that you could invite people to see, but not edit, a Wave. They have that now, which is nice, but it’s a bit late in the game — comparatively few people regularly use Wave any more. There are a lot of other things they did wrong with Wave, too: it was much buggier than I’d expect from a Google beta, slow as molasses, and too broad in scope. That last one is really what killed it, I think. People generally want a clear path for using a product; they want a sexy sports car, not a bunch of parts that they have to figure out how to best put together to build a sports car that suits their needs.

With Buzz, they went the other way. It’s too damn simple. I have lots of friends. Some I’m closer to than others. Some I want to pay more attention to than others. So maybe I’d like to be able to easily see a Buzz stream from only certain groups, instead of everybody. Maybe once I start or participate in a discussion, I’d like to select whether I get emails specifically for that discussion. (And while I’m at it, hey Facebook! How about being able to turn off receiving emails just because I thumbed-up a post that 50,000 other people feel the need to comment on?) Maybe I would like to have my Twitter posts show up in some decent timeframe, instead of the next day if I’m lucky.

Overall, I love the things Google does. Chrome is amazing, and broke the web browser mold when it came out. Gmail has been my email client of choice for years now. Their search engine revolutionized the web.

Then again, not every hit can be a home run. I like that they’re trying new things! I just think that a lot of these things have great potential, but were executed poorly. And that makes me sad.

Computing, Reviews, tech

Computer Building Fun

Two tools I really didn’t think I’d need for building a system: needle-nosed pliers, and a file. Where the hard drive went in, there was a retaining bracket that was preventing a hard drive screw from passing, so I had to bend it. And when I replaced the case fans with better and quieter ones, the size on the front one was off by a fraction of a millimeter, which required filing off the plastic around where it went in.

However, this time no blood was spilled. I think that might be a first. So, I consider it a success!

I also remembered how annoying it can be to build a system. I got a power source that can handle 2 video cards (“Crossfire capable” they call it, for ATI cards), but the kind I got took both of the power connectors. So I can’t actually use 2 without upgrading my power source. Talking to NewEgg about that, but so far no luck asking for an exchange.

Also, I remembered a little hack for installing Windows clean, using an upgrade disc. You can use an upgrade version as the full version in one of two ways when installing it fresh (i.e. wiping whatever is already on there, if anything: install it fresh and then install it over itself, or (the quicker, easier way) do a simple registry edit.

Something else I realized: I have a Logitech Performance MX wireless mouse (no, I did not just realize this, shut up). It is pretty awesome, but my only complaint has been that it will randomly stick, and for 30 seconds or so it stutters and jumps around the screen when I try to move it. Today I tried something that seems obvious: I moved the damn wireless receiver to a USB port closer to the mouse. Guess what? No issues since then. I know, I’m a frackin’ genius.

Okay, so how does the shiny new system work, you ask?

It’s fast. Very fast. I attribute almost all of that to the SSD. That’s a solid-state drive; a hard drive with no moving parts. They are expensive, for much less space than you will get with a normal hard drive, but they are about twice as fast, 1/4 the size overall, use far less power, make no noise, and emit almost no heat. For laptops, they are about the most awesome thing you can have. For desktops, still quite awesome.

One not-fast bit is logging into Windows. It gets to the login screen, I enter the password, then… it sits there for 20 seconds before continuing. I’m not sure why this is, and I don’t think it initially did it. But it doesn’t happen when I’m waking the computer from sleep or hibernate, and I almost never have cause to do a full power-off or reset, so that’s not really a big deal.

The only other pet peeve I have is that, even though there is a connector for it, the case has no hard drive activity indicator light. And since the SSD is even more silent than a ball-gagged ninja, there’s no way for me to know when lots of hard drive access is going on. I mainly look at this when the system seems to be randomly crunching/slow though, and since that hasn’t yet happened… I can live with it for now.

My work-oriented stuff is very fast as well. We use Subversion, a system that lets multiple people work on the same code at the same time without stepping on each other’s toes, and it also retains a complete history of every change ever made to the code, so that you can roll back if you screw something up. Performing updates and commits with this is very notably faster than it was on my old system (also a quad-core system, with 5 GB of RAM).