Although the stargate lolcats translation isn't as fun (mostly because parts of it are nonsensical) it's still funny!
http://lolinator.com/lol/stargate.mgm.com/
and mgm.com .. which is better imo:
http://lolinator.com/lol/mgm.com/
BFN
Saturday, November 10, 2007
Thursday, November 8, 2007
Error Handling.. Mail server bashing
As my last post suggested, I've been working on error handling.
To finally put things in order, and stop error messages from showing up anywhere at all (although I think I've decided to put them back into pages for the dev servers at least), I put together a super simple function that captures the errors, and sends me an email.
error_reporting(0);
function myErrorHandler($errno, $errmsg, $filename, $linenum, $vars)
{
$dt = date("Y-m-d H:i:s (T)");
$errortype = array (
E_ERROR => 'Error',
E_WARNING => 'Warning',
E_PARSE => 'Parsing Error',
E_NOTICE => 'Notice',
E_CORE_ERROR => 'Core Error',
E_CORE_WARNING => 'Core Warning',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_USER_ERROR => 'User Error',
E_USER_WARNING => 'User Warning',
E_USER_NOTICE => 'User Notice',
E_STRICT => 'Runtime Notice',
E_RECOVERABLE_ERROR => 'Catchable Fatal Error'
);
$user_errors = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE);
$err = "Error.\n";
$err .= "\tDate: " . $dt . "\n";
$err .= "\tError Num: " . $errno . "\n";
$err .= "\tError Type: " . $errortype[$errno] . "\n";
$err .= "\tError msg: " . $errmsg . "\n";
$err .= "\tScript name: " . $filename . "\n";
$err .= "\tScript line num: " . $linenum . "\n";
$err .= "\n\n";
// if ($errno == E_WARNING) {
mail("something@gmail.com", "Critical Site Error", $err);
// }
}
$old_error_handler = set_error_handler("myErrorHandler");
I realise it sends me a bazillion emails when I'm not limiting it warnings or errors, but it's alright now, I setup a gmail account to handle it all.
I actually got a stern email, followed by a stern phone call from IS.. they said I was "causing emails to bounce" because of the volume I was getting from the server. So incredibly pathetic imo.. even iMail over at Impress could handle it.. c'mon.. like 120 emails an hour.. that's NOTHING!!!
Anyhow.. volume on those emails has gone down as I've fixed the obvious stuff. I guess once I get it down to one or two a day, I'll switch it back to my actual work account email for real emergencies.
BFN
To finally put things in order, and stop error messages from showing up anywhere at all (although I think I've decided to put them back into pages for the dev servers at least), I put together a super simple function that captures the errors, and sends me an email.
error_reporting(0);
function myErrorHandler($errno, $errmsg, $filename, $linenum, $vars)
{
$dt = date("Y-m-d H:i:s (T)");
$errortype = array (
E_ERROR => 'Error',
E_WARNING => 'Warning',
E_PARSE => 'Parsing Error',
E_NOTICE => 'Notice',
E_CORE_ERROR => 'Core Error',
E_CORE_WARNING => 'Core Warning',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_USER_ERROR => 'User Error',
E_USER_WARNING => 'User Warning',
E_USER_NOTICE => 'User Notice',
E_STRICT => 'Runtime Notice',
E_RECOVERABLE_ERROR => 'Catchable Fatal Error'
);
$user_errors = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE);
$err = "Error.\n";
$err .= "\tDate: " . $dt . "\n";
$err .= "\tError Num: " . $errno . "\n";
$err .= "\tError Type: " . $errortype[$errno] . "\n";
$err .= "\tError msg: " . $errmsg . "\n";
$err .= "\tScript name: " . $filename . "\n";
$err .= "\tScript line num: " . $linenum . "\n";
$err .= "\n\n";
// if ($errno == E_WARNING) {
mail("something@gmail.com", "Critical Site Error", $err);
// }
}
$old_error_handler = set_error_handler("myErrorHandler");
I realise it sends me a bazillion emails when I'm not limiting it warnings or errors, but it's alright now, I setup a gmail account to handle it all.
I actually got a stern email, followed by a stern phone call from IS.. they said I was "causing emails to bounce" because of the volume I was getting from the server. So incredibly pathetic imo.. even iMail over at Impress could handle it.. c'mon.. like 120 emails an hour.. that's NOTHING!!!
Anyhow.. volume on those emails has gone down as I've fixed the obvious stuff. I guess once I get it down to one or two a day, I'll switch it back to my actual work account email for real emergencies.
BFN
Tuesday, November 6, 2007
Beowulf and Error Handling
For starters I need to rave about the movie. Brian was able to snafu some tickets to the premiere of the movie Beowulf last night in Westwood.
We found the place to pick up our tickets rather easily, considering the throngs of people, and the security guards blocking off major portions of the block leading towards the theaters. There was no line at all, and we got our tickets with assigned seats.
As we went to cross the street, a security guard checked our tickets, and let us through, much to the envy of the large crowd straining to see people on the red carpet.
Suddenly I realised we're there, right in front of the theater, basically next to the red carpet. For the life of me I couldn't remember who was in the movie (I mean who did the voices) except for Angelina Jolie. The paparazzi were not going nuts, and it was early, at least an hour before the movie was to start, so I could only assume they weren't there yet. We were sent over the movie theater B. I guess that's where all the non actors went, which was fine by us, much less fuss! We picked up our free sodas, popcorn, and cool 3D glasses, found our seats, and settled in.
I won't write too much about the movie itself, as many of my friends actually want to see it, so here is the non spoilerish opinions. My eyes had a hard time at the start, as I kept trying to "refocus" on things that my eyes were telling me were close, even though they weren't. It was kind of annoying. Eventually (after about 20 mins) it stopped, and I was fine, no more focusing issues. I think the movie was beautifully drawn, the characters were interesting, and the fight scenes stellar! Sometimes it looked a little "2D with something behind it". Reminded me a little of a popup book, but mostly that wasn't noticeable.
We left just as the credits started to roll, and beat the bulk of the crowd outside. We crossed teh street, and stopped to watch the people leave theater A. After a short while, the paparazzi started screaming, and it was time for Angeline Jolie and Brad Pitt to leave! They came out across the red carpet, and jumped in a Toyota Prius! Yes.. seriously.. there were big huge limo's lining the street, and they got into a Prius. Besides the fact it had blacked out windows, it looked pretty stock standard.
I want to thank Brian for so kindly inviting me to go along, it was a very memorable event, and one I was glad to have been at!
Now onto the _really_ interesting stuff.. Error handling!!
Actually.. I'll post about that later ;)
BFN
We found the place to pick up our tickets rather easily, considering the throngs of people, and the security guards blocking off major portions of the block leading towards the theaters. There was no line at all, and we got our tickets with assigned seats.
As we went to cross the street, a security guard checked our tickets, and let us through, much to the envy of the large crowd straining to see people on the red carpet.
Suddenly I realised we're there, right in front of the theater, basically next to the red carpet. For the life of me I couldn't remember who was in the movie (I mean who did the voices) except for Angelina Jolie. The paparazzi were not going nuts, and it was early, at least an hour before the movie was to start, so I could only assume they weren't there yet. We were sent over the movie theater B. I guess that's where all the non actors went, which was fine by us, much less fuss! We picked up our free sodas, popcorn, and cool 3D glasses, found our seats, and settled in.
I won't write too much about the movie itself, as many of my friends actually want to see it, so here is the non spoilerish opinions. My eyes had a hard time at the start, as I kept trying to "refocus" on things that my eyes were telling me were close, even though they weren't. It was kind of annoying. Eventually (after about 20 mins) it stopped, and I was fine, no more focusing issues. I think the movie was beautifully drawn, the characters were interesting, and the fight scenes stellar! Sometimes it looked a little "2D with something behind it". Reminded me a little of a popup book, but mostly that wasn't noticeable.
We left just as the credits started to roll, and beat the bulk of the crowd outside. We crossed teh street, and stopped to watch the people leave theater A. After a short while, the paparazzi started screaming, and it was time for Angeline Jolie and Brad Pitt to leave! They came out across the red carpet, and jumped in a Toyota Prius! Yes.. seriously.. there were big huge limo's lining the street, and they got into a Prius. Besides the fact it had blacked out windows, it looked pretty stock standard.
I want to thank Brian for so kindly inviting me to go along, it was a very memorable event, and one I was glad to have been at!
Now onto the _really_ interesting stuff.. Error handling!!
Actually.. I'll post about that later ;)
BFN
Monday, November 5, 2007
The pumpkin collapse
I knew the pumpkins wouldn't last long, but I was shocked to discover yesterday as I was tidying up for Rover to do his thing (the Roomba) that Loui's pumpkin was leaking. Upon closer inspection, the entire inside was covered in mold, and it was collapsing in on itself, while excreting some kind of clear liquid.
I promptly brought over the garbage, and slid the now squishy, almost completely collapsed pumpkin in. Not until I disturbed the pumpkin did I get a whiff of the smell! EWWWW!
Even though my pumpkin had yet to start this downhill slide, I threw it out as well. We carved pumpkins on Wednesday, and by Sunday it was moldy and rotten. That was a TON faster than I expected!
Tonight is the premiere of Beowulf the movie! My friend Brian (link over there on the right) got us tickets to the premiere event in Westwood, so I'm really looking forward to that this evening.
Right now my day pretty much consists of error handling. I've been extremely lax with this in the past, sort of crossing my fingers and hoping it wouldn't happen to me. Well it happened, and a little too publicly for my tastes. Today I hope to implement my error functions, and bring the ugly errors to a standstill (at least on live servers).
JoY!
BFN
I promptly brought over the garbage, and slid the now squishy, almost completely collapsed pumpkin in. Not until I disturbed the pumpkin did I get a whiff of the smell! EWWWW!
Even though my pumpkin had yet to start this downhill slide, I threw it out as well. We carved pumpkins on Wednesday, and by Sunday it was moldy and rotten. That was a TON faster than I expected!
Tonight is the premiere of Beowulf the movie! My friend Brian (link over there on the right) got us tickets to the premiere event in Westwood, so I'm really looking forward to that this evening.
Right now my day pretty much consists of error handling. I've been extremely lax with this in the past, sort of crossing my fingers and hoping it wouldn't happen to me. Well it happened, and a little too publicly for my tastes. Today I hope to implement my error functions, and bring the ugly errors to a standstill (at least on live servers).
JoY!
BFN
Friday, November 2, 2007
Tabula Rasa in stores today!
Everyone rush out and buy a copy, it's brilliant!
I had the privilege to play in the beta, and also the pre-order and now it's available for everyone. It's scifi meets mmo, mmo meets fps, guns over spells, fast paced skirmishes over drawn out sequences.
I've enjoyed it immensely, and look forward to you all letting me know your names in game, so we can party!
BFN
ps. I just noticed something interesting.. tonight is the Stargate Atlantis episode on SciFi of "Tabula Rasa" now that is a WEIRD coincidence!
I had the privilege to play in the beta, and also the pre-order and now it's available for everyone. It's scifi meets mmo, mmo meets fps, guns over spells, fast paced skirmishes over drawn out sequences.
I've enjoyed it immensely, and look forward to you all letting me know your names in game, so we can party!
BFN
ps. I just noticed something interesting.. tonight is the Stargate Atlantis episode on SciFi of "Tabula Rasa" now that is a WEIRD coincidence!
Thursday, November 1, 2007
Stargate posters from Comic-Con!
TV marketing (who very kindly took me backstage at comic-con to meet some of the cast) let us know today that they had some posters from comic-con for us.
They are HUGE! Nice big shiny ones, on a hard back. One for Stargate Atlantis, and another for Stargate SG-1.
I will post pics as soon as I take some, they are wonderful! I had to take down some of the non-Stargate posters in my cube to accommodate them, and will need to invest in some strong tape.
On a side note, they had looked at getting me an extra set of hands (freelance style) but I'd convinced them I don't need it. I know, I know.. stupid right? Well not really! The team will be getting an extra front-end developer, and an extra designer. This will mean that I will actually be getting projects sooner, so instead of having 4 hours to do something that takes a week.. I'll have 5 hours!!
BFN
BFN
They are HUGE! Nice big shiny ones, on a hard back. One for Stargate Atlantis, and another for Stargate SG-1.
I will post pics as soon as I take some, they are wonderful! I had to take down some of the non-Stargate posters in my cube to accommodate them, and will need to invest in some strong tape.
On a side note, they had looked at getting me an extra set of hands (freelance style) but I'd convinced them I don't need it. I know, I know.. stupid right? Well not really! The team will be getting an extra front-end developer, and an extra designer. This will mean that I will actually be getting projects sooner, so instead of having 4 hours to do something that takes a week.. I'll have 5 hours!!
BFN
BFN
Subscribe to:
Posts (Atom)