First Three Fights in 25 Man Trial of The Crusader

December 6th, 2009

Beasts of Northrend

Kind of messed up part 2. I forgot to hit stop record, and didn’t catch it until I uploaded to youtube. Enjoy me jumping around while people argue over loot. What sucks is I could have gotten this fight in one video.
Lord Jaraxxus

This is by far my favorite fight. [...]

Read more...

Chad Emrys Minick Gaming

XSL Transformation with JAXB

November 17th, 2009

The goal here is to take the output of a JAXB Marshaller and pass it straight to an xslt processor like JAXP. The issue with this is that JAXP takes it’s input from various sorts of input streams and JAXB marshaller outputs usually in some sort of output stream. I saw some (bad) solutions about changing an output stream into an input stream and then pass it to JAXP. eww. The cool thing about JAXB is that it can marshall into a SAX ContentHandler. And there is an implementation of ContentHandler that handles XSL transformations for us! Here is an example of a http servlet that will do an xslt transformation on a JAXB marshalled POJO and dump the results right into into the servlet’s output stream:

Read more...

Chad Emrys Minick Java , , , , ,

Simple PHP Template Engine

September 30th, 2009

PHP is a bit of a rare language as it can already template into text in markup with zero modifications or libraries. It is probably one of the big contributing factors why PHP is one of the most popular languages on the web today. (Can’t be the only factor, it didn’t work for ColdFusion) Most other web languages have a one or more templating languages with a different syntax that need to be learned on top of the implementing language. PHP lowers the bar to entry by allowing you to put your PHP code right into your html. But as we all know, sometime in your PHP tour, you will realize the need to separate presentation logic and the application logic. Some developers go running to some other solution that provides a different syntax. I am a bit puzzled on why this seems to be common practice, PHP can provide the same features without throwing another template syntax on top of what PHP already does. You can still achieve the separation needed with a simple class (shown at the end of this article).

Read more...

Chad Emrys Minick Coding, PHP

Shift Right Zero-fill in PHP

September 29th, 2009

I found this on the internet, might come in handy.

< ?php
function zeroFill($a, $b)
{
$z = hexdec(80000000);
if ($z & $a)
{
$a [...]

Read more...

Chad Emrys Minick Uncategorized

I’m Back

January 22nd, 2009

Hello readers
As you can see, I have a completely different blog. I have started over from scratch. I will probably be reposting some of my old articles here. If you have any articles you would like to see reposted, send a comment to this Post.
So what happened to CodeAngel? why is it [...]

Read more...

Chad Emrys Minick Codeangel , , ,