Warcraft Update gets festive

December 1st, 2009 by Justin

Although the results are not yet visible, I have added some seasonal touches to Warcraft Update. Every in-game event has its own icon set that is used on wowarmory. Warcraft Update will pull those images and display them along the header of the main site and the Facebook app.

Look for the first festive header when Winter Veil begins.

Screen shot 2009-12-01 at 4.00.50 AM

Autoloading Propel in Zend Framework

November 21st, 2009 by Justin

Lately I have been working on a new project using Zend Framework as the MVC and Propel as the database objects. I have been searching high and low for a way to autoload the Propel classes using Zend_Loader_Autoload. Turns out the solution is very simple.

Propel has it’s own built in autoloader and accessing it couldn’t be easier.

First off, locate the config file generated by propel. It would be in the /build/conf folder.
Next, include Propel.php in your main index.php.
Then run the init function and pass it the path to your config file.

require_once 'propel/Propel.php';
Propel::init("models/build/conf/mydatabase-conf.php");

After that all your files should autoload.

If you are having problems make sure your your application path and your /build/classes folder are in your include paths

Twitter Stats

November 6th, 2009 by Justin

I’m a fan of statistics. So naturally when I found out I could see my Twitter usage on nicely laid out graphs, I jumped on it.

http://tweetstats.com/graphs/j_mazur

Turns out I don’t twitter as much as I used to. I also used to mention work a lot back in the day.

Little Warcraft Update Bug…

October 31st, 2009 by Justin

Originally, when Warcraft Update encounters a new World of Warcraft server it is supposed to add it to the database and email me. The feature has never been tested so I was not sure whether or not it actually worked. The design was simple so I figured things would be alright.

Not so much.

Screen shot 2009-10-31 at 2.28.20 AMWarcraft Update found 4 new servers, and emailed me. A lot. Apparently I forgot to add the closing bracket on the SQL statement causing it to fail. This means I would get emailed over and over again because it keeps thinking these new servers are new.

I’ve been sick the past week so I couldn’t be bothered to fix anything that wasn’t too urgent, so I let this bug just run. That image there is the results. Over 5,000 emails flooded my inbox over the week. Dirty.

Bug is all patched up and I’m no longer getting flooded. Business is back to normal.

Hello world!

October 22nd, 2009 by Justin

Welcome to my freshly updated portfolio site. I’m Justin Mazur and I’m at your service.

Originally this was my portfolio website for my classes at Humber College, but seeing as I have graduated to bigger and better things I decided to re-purpose this into a personal blog and post some of the awesome things I do on my free time.

But what are these things that I speak of?

I am a PHP developer, so naturally they will involve some sort of web server.
I’m also pretty good at XHTML and CSS, so expect some of that.
Can’t forget Photoshop and Flash, I got my hands into them as well.

I plan to occasionally put of insightful and nonsensical posts up here once in a while, but nothing too regularly. Just occasional posts about things in the web community.

Crack open a GURU and sit back. It’s going to be a bumpy ride (depending on how sturdy your chair is).