Installing PEAR and PHPUnit with WAMPServer 2.2 on Windows 7 (PHP 5.3.10)

These are my install notes for PEAR and PHPUnit with WAMPServer 2.2 on my Windows 7 development machine. I tried several tutorials before getting the installation right. I hope this blog post helps anyone attempting this or with a broken installation. My setup aims for ease of use in a development environment.

First, PEAR needs to be installed and working 100%.  This Stack Overflow answer was very helpful. These are my additional notes to their instructions:

1. I added my WAMP PHP folder to my PATH (ex: C:\Users\Kate\development\wamp\bin\php\php5.3.10).

2. At the prompt I used system for the install not local. This wasn’t exactly clear in the instructions.

3. The PEAR installer will show an options list for various install paths.

  • Pear suggested putting pear.ini in the Windows folder. Instead, I had it use my WAMP PHP directory (C:\Users\Kate\development\wamp\bin\php\php5.3.10).  Aside from keeping pear.ini out of the Windows folder, this change also removes the need for the command prompt to be run as administrator during install. As part of this change I also set the PHP_PEAR_SYSCONF_DIR system environment variable to the WAMP PHP directory so PEAR could find pear.ini later during the PHPUnit install.
  • I adjusted my web root directory setting which was different from the proposed default.

4. I then installed PHPUnit with the following command sequence. Note the first line will fail if pear.ini is still set to the Windows folder and the command prompt isn’t running as an administrative process OR if the location was changed and the PHP_PEAR_SYSCONF_DIR environment variable wasn’t set (see step 3).

pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit

 

The PHPUnit install is successful when the phpunit command can be run on the command line without fuss. I’ll update this page with additional notes if I hit any other pitfalls from these methods.

The Real Patrick Rothfuss: My Guess

Patrick Rothfuss is holding a Twitter contest to guess his real identity from a group of 6 Twitter accounts with 5 impersonators.

These are my guesses:

@PatRothfuss – John Scalzi

@Pat_Rothfuss – Mary Robinette Kowal

@NotPatRothfuss – Wil Wheaton

@RealPatRothfuss – Felicia Day

My guess is @PatrickRothfuss is the real Patrick Rothfuss and @FakePatRothfuss is an unknown participant I haven’t been able to identify.

My Analysis

I started with the tweet content and thought I had at least one of them pegged. Then I realized there was possibly a different way to do this.

I wrote a computer program to determine the consecutive hours of the day the Twitter accounts of the presumed participants, Felicia Day, John Scalzi, and Wil Wheaton, would never tweet. The program used this information to determine their rough sleeping / off schedules and compared them to the schedules of the Patrick Rothfuss accounts.

John Scalzi was the first and most exact match and to my surprise his was @PatRothfuss! (@Pat_Rothfuss was my initial guess for him based on content).

Wil Wheaton roughly fit @NotPatRothfuss and Felicia Day roughly fit @RealPatRothfuss.

This left the @Pat_Rothfuss account, whose analysis showed it wasn’t big on sleep. I guessed Mary Robinette Kowal was possibly a participant and her off schedule fit into the account. The quality of the tweets was also very high, so high, that Twitter tried to verify this account several times. Did I mention Mary is clever? The account also used TweetDeck and Android and from looking at Mary’s feed she has an Android phone. I vaguely remember she’s setup or used TweetDeck in the past…so…guessing this is her and not the real Patrick Rothfuss.

Two accounts remained: @FakePatRothfuss and @PatrickRothfuss. @FakePatRothfuss had a normal sleep / off schedule and limited regular device use.  But the @PatrickRothfuss account was going haywire and tweeting at all hours of the day on a wide variety of different platforms and devices.

One of the participant contest instructions from Patrick Rothfuss’s blog states:

So when I put this contest together, I knew I had to thwart those tendencies. For example, if you try to guess based on what device different profiles are twittering from? You’re probably going to be wrong. Why? Because one of the requirements for all the players is that they tweet from all manner of different platforms and devices.

Only one of the accounts appears to have regularly followed this advice: the haywire @PatrickRothfuss.  I think this is Patrick Rothfuss because he has the most interest and personal investment in this contest and therefore enthusiasm. So my guess is this is him.

We Are All Patrick Rothfuss

Another cool part of this contest was getting permission to be a Pat Rothfuss for Halloween.

Kate Kligman as Pat Rothfuss for Halloween

My Twitter Halloween name this year is Katie Klingon, but maybe I will change it a bit more :-).

Flash Gordon and Hawkmen and Robin Hood What?

Flash Gordon is the first movie by date on my Twitter compiled list of 1980’s films. If you haven’t yet seen it, a low resolution version is available from the Internet Archive. Spoilers follow.

To start, I didn’t know much about Flash Gordon. Is he a super hero? What are his powers? Well, as it turns out…nothing! He has no powers. He claims to be a quarterback and mentions taking airplane flying lessons. Oh, and he’s on the cover of People Magazine and has his own t-shirt line that he wears constantly. He’s famous for being famous. That’s it!

Flash Gordon T-shirt

One of these characters is Flash.

The Costumes

The costumes are easily the most entertaining part of the film.  The best costume is a difficult choice between centurions with wings and court sparkle guys.

hawkmen

The Angelic Centurions

The Royal Wedding

The Royal Guards

Skeletor and Sparkle Guy

Skeletor and Court Sparkle Guy

Robin Hood Guy in Dress Uniform

Robin Hood Guy in Dress Uniform

The Story

En route home from a trip Flash is kidnapped by a mad scientist, captured by an evil galactic emperor, and has to save the earth. Along the way he woos a flight attendant and acquires a sidekick I think of as Robin Hood Guy. Everyone else seems to be along for the ride until they encounter Flash, then turn from evil to sort of good in the process.

Flash spends most of his time getting randomly captured, which turns out to be his real superpower. In one of the better action scenes Flash gets detained by Hawkmen and is forced to fight to the death on a sophisticated rotating platform. This is a strange form of trial by combat for a society with wings, but well.

Flash Gordon Dueling

Flash vs. Robin Hood Guy

Flash eventually manages to escape his 4th? 5th? capture on an flying exercise bike surrounded by Hawkmen and eventually saves the day as heroes do.

Flying Exercise Bike

The Great Flying Exercise Bike Escape

The Music

The soundtrack is by Queen, who often sings FLLLLLLAAASSHHHHHH OOOOH OOOH during action scenes. There’s also a battle melody that was later reused in the 1981 Atari 2600 video game Vanguard. I played that game as a kid!

Google Glass Demo Gone Horribly Wrong

There’s a hilarious scene near the end where a mission control of baddies are doing computer things with a goggle interface. Robin Hood Guy yanks the goggles off of one to repurpose it and things go horribly wrong.

Google Goggles

I can has Google Glass?

Google Glass Gone Wrong

Oops

In Conclusion

Flash Gordon is a fun and very silly movie.  Flash seems hooked into a random adventure generator with one scenario after another thrown at him. There’s little point to any of them, but the ridiculous costumes and random surprises make the constant plot twists almost worth it. I enjoy movies with more substance so I’m giving Flash Gordon a B-.

Movie Review: Rush (no spoilers)

This is a no spoiler review of the movie Rush.

Yesterday morning I was contacted on Twitter and asked if I wanted to attend a free pre-screening of the movie Rush. Now, I’m not into sports movies, but I never seen one on racing. My father also bought me a Formula One racing video game when I was little and I never figured out the appeal. So I said Sure!

The movie was pretty good. A few no spoiler items that made it awesome:

  • I didn’t realize it was based on a real life story. If you don’t know the story and want to see the film, don’t look it up until after. It’s an extra treat not knowing how things will turn out.
  • The action sequences were solid. I’ve watched bits of racing on TV and it always kind of bored me. Rush really rocked it. I actually felt like going back to my old Formula One racing game.
  • It’s funny in the right spots.

Rush does have some violent scenes and they don’t pull punches on the gore or how dangerous racing is. I think it’s appropriate and adds value to the story but…it’s something to take into account before seeing the movie.

In all I had a good time — thank you Universal! And I’m interested enough to maybe follow a racing season and try out my old (and now retro) racing game.

Movies of the 1980’s

A few days ago I asked Twitter “So, what are your favorite 80’s movies of all time?”. Here are the results in order by year:

Flash Gordon (1980) – My Review

Midnight Madness (1980)

Somewhere In Time (1980)

Star Wars: The Empire Strikes Back (1980)

The Blues Brothers (1980)

The Howling (1980)

Indiana Jones and the Raiders of the Lost Ark (1981)

Blade Runner (1982)

Conan the Barbarian (1982)

Creepshow (1982)

Fitzcarraldo (1982)

The Adventures of Buckaroo Banzai Across the Eighth Dimension (1982)

The Thing (1982)

Tron (1982)

White Dog (1982)

Star Wars: Return of the Jedi (1983)

2010 (1984)

Ghostbusters (1984)

The Hit (1984)

The Terminator (1984)

Indiana Jones and the Temple of Doom (1984)

Nineteen Eighty-Four (1984)

The NeverEnding Story (1984)

Back to the Future (1985)

Brazil (1985)

Aliens (1986)

Big Trouble in Little China (1986)

Ferris Bueller’s Day Off (1986)

Flight of the Navigator (1986)

The Mosquito Coast (1986)

The Transformers: The Movie (Animated) (1986)

Dirty Dancing (1987)

Predator (1987)

RoboCop (1987)

The Princess Bride (1987)

Raising Arizona (1987)

Spaceballs (1987)

The Running Man (1987)

Akira (1988)

Die Hard (1988)

Miracle Mile (1988)

Who Framed Roger Rabbit (1988)

Bill & Ted’s Excellent Adventure (1989)

Indiana Jones and the Last Crusade (1989)

The ‘Burbs (1989)

Left off the list was Total Recall, which premiered in 1990.

I’m especially happy with this list because it includes movies I haven’t seen. I’m also taking a bit of an Internet break in September and the 1980’s were a time without Internet for most. My plan is to watch the movies in order by year and maybe I’ll post in a week or two (or three!) how the viewings went.

Update 10/9/13: Added Brazil (1985), The Adventures of Buckaroo Banzai Across the Eighth Dimension (1982), and Nineteen Eighty-Four (1984) suggested by Benjamin Wilson. Added Midnight Madness (1980) suggested by eight_76.

Update 10/26/13: Added Creepshow (1982), The Hit (1984), Miracle Mile (1988), White Dog (1982), Somewhere In Time (1980), The Howling (1980) suggested by @danofspiz.

X-Files Marathon!

X-Files - I Want To Believe PosterI am watching all of the X-files on Netflix. It’s not even a rewatch for me because I missed most of the series when it came out. And…it’s fun! Last night I finished the pilot episode and was convinced it was about Slender Man until the ending.

It’s good to have a regular TV show again.

Inception

I watched the movie Inception for the first time tonight. Spoilers below the cut.

Pleasant Sunday in San Francisco

I had a very pleasant Sunday in San Francisco. Each day I try to go outside for about an hour and explore the local area on foot. I’m always happy to see colorful houses, painted murals, interesting restaurants and local community efforts. Living in San Francisco has its benefits.

After a light jog I wandered past the “Little Bear School” with a painted mural.

Little Bear School in San Francisco

The Little Bear School

I passed by some colorful houses including one in pink.

Pink House in San Francisco

Pink House in San Francisco

I then decided to jog to the library. Just down the street from it I was pleased to encounter an entirely different local library in the form of a neighborhood outreach project called the LittleFreeLibrary. It was an enclosed book stand about the size of a phone booth with a collection of free books inside that could be borrowed or added to.

LittleFreeLibrary Book Stand

LittleFreeLibrary Book Stand

The LittleFreeLibrary project looked absolutely delightful. I opened the case and discovered God Bless You, Mr. Rosewater by Kurt Vonnegut, Jr. I decided not to borrow the Vonnegut book, however, I do intend to return and contribute additional books to the neighborhood collection.

God Bless You Mr. Rosewater by Kurt Vonnegut Jr.

God Bless You, Mr. Rosewater by Kurt Vonnegut Jr.

I finished my walk to to the public library but discovered it closed early on Sunday. On my way back I encountered a working payphone. Calls have increased to 50 cents vs. 25 cents when I was a kid.

Payphone in San Francisco

Payphone in San Francisco

Much to my surprise, a few blocks later I encountered another!

Payphone 2 in San Francisco

Second Payphone Encounter in San Francisco

I then headed home and concluded my lovely Sunday in San Francisco.

My Dell Inspiron M5030 Laptop

About a year ago I bought a refurbished Dell Inspiron M5030 laptop. The specs on the machine were good, I’d had positive experiences with refurbished Dell’s before, and the price was right (aka very low).  I also bought an extended warranty which cost about as much as the machine itself.

My philosophy was that the laptop and warranty were a long term investment. I wasn’t nervous about a refurbished machine — I expect laptops to die or have issues within a year or two of purchase. The warranty was a guarantee that I would have a laptop at some future point when it might be more difficult or inconvenient for me to replace one.

Yesterday my laptop failed to start with 7 beeps that indicated a processor failure. I notified Dell immediately and today Dell called to tell me one of their service people would stop by my house tonight to replace the motherboard. Thanks to my foresight a year ago I won’t be without my development computer for long. I won’t even have to deal with shipping.

My warranty runs out in mid 2015. It’s nice to know I’ll have this level of service until then.

Dell Inspiron M5030 Closed

Update: Dell successfully replaced my motherboard and all is now right with the world.