Strange characters after Wordpress upgrade

Technology | Wednesday 19 September 2007 2:55 pm

After I upgraded my last wordpress installation on my blog and on Green Is Sexy, strange characters were appearing in our content throughout the site. There seemed to have been encoding problems with apostrophes (’), quotation marks (”) and hyphens (-). They’d be displayed as question marks or ’.

Turns out that the fix is really simple. By default, the Wordpress config files now set your character encoding to UTF-8. The solution is to open up wp-config.php file and located these lines:

define(’DB_CHARSET’, ‘utf8′);
define(’DB_COLLATE’, ”);

and either remove the “utf8″ string so the first line becomes:

define(’DB_CHARSET’,'');
define(’DB_COLLATE’, ”);

or you can just comment the lines out completely by prefixing each line with “//”:

//define(’DB_CHARSET’, ‘utf8′);
//define(’DB_COLLATE’, ”);

Problem solved!

Tags: , , , ,

Gigabit ethernet support for Mac Mini on Vista

Technology | Monday 17 September 2007 2:16 pm

The last few days I spent getting a Mac Mini running with Vista Ultimate to replace the PC running XP media center in my living room. The whole process was very enlightening, so I plan on writing up about the entire experience sometime soon. Stay tuned for that.

In the meantime, I’m trying to find a solution to a network problem I’ve been having. The one problem I’m having right now is getting gigabit ethernet to work on the Mac Mini. I have all the Cat5e or Cat 6 cabling and gigabit switches at home with other devices functioning properly. The Mac Mini refuses to connect to the switch at gigabit speeds. I’ve quadruple checked the cable, even trying the same cable on another device and it succesfully connects at gigabit speeds.

I posted up a question on the Apple Support forums here:

http://discussions.apple.com/thread.jspa?messageID=5355039

However, no luck in finding a solution yet. Does anyone have this working?

Update (4/21/2008): My gigabit ethernet is now working on my Mac Mini after applying the latest Marvell driver.

Tags: , , , , , ,

Talking smack on Xbox Live

Funny | Saturday 15 September 2007 3:05 pm

You can credit my immature and juvenile personality, but I found this hilarious.  Watch a 5 min educational video on “How talk smack on Xbox Live”. 

Warning: Some language in the video may be unsuitable for the work place, so keep that volume low or invest in some headphones :)




(via Greg

Tags:

The perils of no pre-production testing

Uncategorized | Wednesday 12 September 2007 6:27 am

FASTER! FASTER! FASTER!

This is war cry we all know too well these days with the advent of “Web 2.0″. How quickly a service can be brought to market can either make or break a startup. The benefits of first-mover advantage can’t be discounted especially when buzz and eyeballs are so important these days to build a brand and grow a userbase.

However, with the desire to move to shorter development cycles and get to the “production” environment more quickly, companies are finding ways to take shortcuts as compared to traditional methodologies. Most services at Microsoft have at least 2 staging environments prior to deploying to the “live site”.

image

As our development team reaches code complete, we deploy our bits to the test cluster where our QA team goes through a test pass. After meeting our test pass exit criteria, we roll the bits into an intermediary staging environment, “Pre-production”. This staging environment matches our production hardware as close as possible and we use it to do final acceptance testing. This model, while seemingly heavy-weight, helps ensure the highest quality release when we finally deploy to our live site (aka “Production”). In particular, it’s important when your product integrates with several services that you don’t own — in our case, an example would be Windows Marketplace’s integration with Windows Live ID.

I myself have often been frustrated at times when I want to go to production faster with a feature that is seemingly “small”, but I have to remind myself that the rigor in staging our releases is worth it if we’re ensuring a higher quality product at the expense of slower time to market.

However, I do think there many teams (my current one included) can work on a model that is better at identifying the lower risk features and perhaps roll that directly to live site in a throttled manner. For example, roll out a feature so 5% of our users see if, and if it breaks, roll it back. Otherwise, increase the rollout slowly over a period of time until 100% of the users are using the new feature. The entire time make sure we monitor the snot out of things.

Facebook has been given accolades for how quick they get to market with their new features. When I first started using it last year, I was impressed with how much functionality they rolled out in a given week. From Facebook’s job site:

Our development cycle is extremely fast, and we’ve built tools to keep it that way. It’s common to write code and have it running on the live site a few days later. This comes as a pleasant surprise to engineers who have worked at other companies where code takes months or years to see the light of day. If you work for us, you will be able to make an immediate impact.

In speaking with several people that know engineers at Facebook, they apparently don’t have the same QA process as Microsoft and instead often go straight production and use throttling to control a feature’s exposure. Sounds great!

However, based on my experiences over the past 6 weeks with Facebook, the pitfalls of going “Faster! Faster! Faster!” are showing in a string of very visible problems. Some juicy examples:

No profile anyone?

I’m signed in, but am invisible and profile-less.

image

No news feed items?

My biggest beef is there are too many news items that I can’t even begin to sift through them. But this is ridiculous :)

image

Site maintenance in the middle of the day anyone?

Seems like an odd time to have a planned outage, given Facebook is in the same timezone as I am (PST) and it’s smack dab in the middle of the day (11:35am).

image

30 mins later, same maintenance message, but surprise! Looks like they’ve authenticated me and can tell me how many messages I have in my inbox. Something is astray.

image

Awkward error messages

I got this juicy one earlier today when I tried to confirm a new friend request. Some debugging message that it getting piped through to the FE users?

image

I’m definitely not saying that Facebook’s process is bad and Microsoft’s is better. Just that there has to be a happy medium in doing the appropriately amount of testing and monitoring to ensure we’re striking the right balance between quality and time-to-market. In our quest to ship more features faster, we shouldn’t lose sight that we can’t screw our end users, otherwise there is no reason to ship our products at all.

Tags: ,

Match the captions and win!

Funny, Photography | Monday 10 September 2007 9:09 am

Despite the poor quality of the camera in my smartphone, I still take a lot of pictures with it. While going through the pictures yesterday, it surprised me how random some of the photos really are.

I figured it’d be fun to do a collage of mobile photos and have you match up captions to the photos.

1. PIC-0196 2.PIC-0104
3. PIC-0165 4.PIC-0192
5.PIC-0052 6.PIC-0205
7.PIC-0207 8.PIC-0206


Now the possible captions:

A. The morning after
B. Hurry up Nelly!
C. Harold & Kumar at White Castle
D. Mini-me
E. The most manly drink on the planet
F. Best bathroom view in the city
G. This town has no crime
H. Maybe it’s good to be single afterall

Tags: , ,
« Previous PageNext Page »