September 22, 2005

MT 3.2 again

geeking again.

so i contacted MT about 3.2 not working on windows servers. they're pretty quick with the replies. they said:

This error is most likely coming up because Windows 2003 Server doesn't set the current working directory to the path of the CGI script. You can confirm this discrepancy by looking at the top of the mt-check.cgi results:

# Current working directory: (path)
# MT home directory: (different path)

To correct this behavior, you (or your host) should do the following:

1. Create a "virtual directory" under IIS that is the home to the "mt" directory where your CGI files reside.
2. Install the new lib/MT/Bootstrap.pm file that will be sent by email to your address.

Once you do those things, the two paths in mt-check.cgi should match, and Movable Type should run properly;

so with the help of the other guys here, i did steps one and two. now, sure enough, the two paths match (except for switched \ and / slashes.

BUT, now i have some screwy DB error.


Error during upgrade: Access denied for user 'mt_user'@'%' to database 'mt' at E:\Inetpub\wwwroot\MT\lib/MT/Upgrade.pm line 1076.

I haven't changed any of the db paths, usernames, or passwords. i copied them all from mt.cfg and mt-db-pass.cgi to the new mt-config.cgi.
another ticket to MT. blah!

-- update --
sixapart put up this article on their site to help with this problem.
yay.
http://www.sixapart.com/movabletype/kb/installation/cgi_error_on_ii.html

Posted by ericlau at 06:38 AM | Comments (3)

September 21, 2005

ice skating with phil

another dream:

i just got to work and phil calls.

phil: eric! where are you?
me: um...work. it's tuesday. where are you?
phil: ice skating!
me: what?
phil: ice skating!
me: i heard you. but what's going on?
phil: everybody took off of work today to go ice skating. why aren't you here?
me: everybody? no one told me.
phil: oh yeah. everybody's here. how come no one told you?
me: dunno.
phil: well, we're not even on the ice yet. so leave work and come on over!

so i frantically started to figure out how to leave work. and leaving work early in our recent work environment/climate is a tricky thing. we've been panicking and thinking we're not productive enough and showing enough results. "we".

anyway. i woke up shortly after the phone call. it was a weird dream. random and unexplained.

but, later that day...phil called.
he wasn't ice skating. but he did call to try to convince me to play basketball with everyone tonight. which we did. well, there were 6 of us. and we played 3 on 3 FULL COURT. the trick is to have a new rule: you can't pass across half-court. this way, everybody runs, everybody gets tired, and everybody's almost always on a fast break. try it next time you have 6 people and you're tired of waiting for those last 4.

Posted by ericlau at 05:29 PM | Comments (0)

September 20, 2005

eHow again

How to Walk Silently

Walking silently is an art that most people have not successfully developed to any degree. With practice, one can improve and master the art of stealth.

and their tip:
" Frequently test your skills. Try sneaking up on a friend and ask them if they heard you."

...did you hear me?

Posted by ericlau at 05:36 PM | Comments (0)

September 13, 2005

i was just telling my friend how i don't understand x well enough

a quote from an article sent to me:

When nerds are unbearable it's usually because they're trying too hard to seem smart. But the smarter they are, the less pressure they feel to act smart. So as a rule you can recognize genuinely smart people by their ability to say things like "I don't know," "Maybe you're right," and "I don't understand x well enough."
- www.paulgraham.com

it was actually an article about starting your own startup. but i thought it was a good quote about smart people.

Posted by ericlau at 04:14 PM | Comments (0)

September 09, 2005

where did you go, staxmem.dll?

geeking out again.

remember that last post about MT and the chinglish and windows servers? yeah. so do i.
so i wanted to install IIS on my box so i could test my code changes before i push them to our live server and ruin everybody's life. IIS is just a windows component and you shouldn't really need install discs or anything.

but computers, like god, work in mysterious ways. but entirely different than the U2 song that explains how 'she moves in mysterious ways'. ok. moving on...

the IIS installer kept being a bitch. it kept saying:

Copy error: Setup cannot copy the file staxmem.dll. Please insert the "Windows XP Professional Service Pack 2 CD".

and i'd have to searching for this DLL and that DLL. it sucked, and i ran out of patience. so i went to my friend, the "internet" and found this gem:

You may receive the "Setup cannot copy the file staxmem.dll" error message when you try to install IIS on a computer that is running Windows XP Professional with SP2

and it led me through this process to help me get it done. it might help you, too. in general, windows documentation is pretty good. most of the problems i run into while doing basic stuff is documented somewhere. for the other stuff, i bug my friends or end up alone, sad, and crying.

Posted by ericlau at 01:20 PM | Comments (0)

September 08, 2005

talk to a human!

bones is the coolest. and the cutest! take a look!
he finds stuff like this: https://www.quickbase.com/db/bam6rdiey?a=q&qid=5
it's a site that tells you how to get a live human to talk to you when you call various customer service places.

probably works better than me screaming "LIVE AGENT" over and over to 'claire', sprintpcs' horrible customer service automated lady.

Posted by ericlau at 10:53 AM | Comments (0)

September 07, 2005

learning thanks to google.

if you don't have a gmail account, you're a sucker. and if you have a gmail account but haven't set up your personalized google page (www.google.com/ig), you're maybe an even bigger sucker.

i set up my page to show me my gmail inbox, new york times stories, wired news, and a few eHow How-Tos. today i learned how to do a Frontside 180 Ollie on a Skateboard.

I hope that one day we can all be so fortunate...

Posted by ericlau at 03:14 PM | Comments (0)

September 06, 2005

MT 3.2 sucks monkeyballs

this title is not completely true. it's actually really slick. IF you get it working.

getting it working on a non-windows server is cake. upload the stuff, unpack it, edit the mt-config.cgi file, then open up ../mt.cgi and BAM! you're done.

so i did that on this site, and i'm all happy. but i tried upgrade MT on a win2003 server, and i lose. i get this:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

boo.

so i don't know what the hell that means. seriously. stop misbehaving already.

so i search the "internet" and find david yin's site. he's all upset about the same problem. is it the dave yin i knew back in college? no. this dave yin seems more computer-y and less english-speaking.

anyway, to summarize all the chinglish in the MT forums about installing MT 3.2 on win2003 server:

- mt-check.cgi works, but the other *.cgi files give the funky message above. bastards.
- it appears that sixapart got all sneaky and did code changes with this version. and as dave points out:

They use the simply script to replace the long one. I checked the ActivePerl 5.8.7 build 813 Documentation. Under Pragmas -- Lib section, a good detailed sentence tell the truth:

Adding directories to @INC
The parameters to use lib are added to the start of the perl search path. Saying

use lib LIST;
is almost the same as saying

BEGIN { unshift(@INC, LIST) }


Look, the "almost" is italic on the original documentation. That means it must contain some differences. I used all my fingers to search the difference.

- while i didn't search with more than one or two of my fingers to find the difference, i believed him.
- if you still believe dave, you can get around this problem by going through the scripts and replacing:

use lib 'lib';
with
BEGIN { my $dir; require File::Spec; if (!($dir = $ENV{MT_HOME})) { if ($0 =~ m!(.*[/\\])!) { $dir = $1; } else { $dir = './'; } $ENV{MT_HOME} = $dir; } unshift @INC, File::Spec->catdir($dir, 'lib'); unshift @INC, File::Spec->catdir($dir, 'extlib'); }

or, if you believe this guy
all you have to do is:

add the following code to all CGIs immediately after the line containing "#!/usr/bin/perl" (which is typically the very first line in the file):

BEGIN {
chdir "D:/www/myweb/cgi-bin/mt";
}

(The path specified in the 'chdir' statement is the path where the file being modified is located.)

or
you can go with dave and just download his already-edited *.cgi files here.

or you can do what i'll probably do: wait for sixapart to get off their asses and put up a version of MT 3.2 that works on windows servers.

all joking aside, this david yin guy seems pretty hardcore. check out his blog. it's pretty cool. code AND pictures of food!

Posted by ericlau at 02:52 PM | Comments (0)

upgrade again

so i upgraded MT again. we're rolling on 3.2 now, baby. tell me if things are funky.

and because a song asked me, i'll ask you:

"what are you going to do with all that junk? ...all that junk inside your trunk?"

Posted by ericlau at 11:12 AM | Comments (0)

September 05, 2005

delays and video

so i haven't been posting. i know, i know. sorry. there's a lot of things going on. parents are moving back unexpectedly, girlfriend is moving away unexpectedly, and i'm not so sure what i want to do with my life.
but i do have this for you:

video clip of our day on bora bora.
right-click and 'save as...', then view with quicktime.
http://www.chairmanlau.com/kanye/sub

Posted by ericlau at 09:25 AM | Comments (0)