There’s a post here about getting it to work, but it’s old. Since then, the include statements for HTML Purifier were moved to their own file. In a normal script you would include the HTMLPurifier.includes.php file, but this isn’t in line with how CodeIgniter loads libraries, so it requires some hacking to get working.

  1. Download HTML Purifier and put the contents of the library folder into your codeigniter /system/application/libraries folder.
  2. Open HTMLPurifier.includes.php and change
    require 'HTMLPurifier.php';

    to

    //require 'HTMLPurifier.php';
  3. Open HTMLPurifier.php and add this just under <?php
    require_once('HTMLPurifier.includes.php');

And that’s all! Load with

$this->load->library('HTMLPurifier');

HTML Purifier

HTML Purifier Docs

OpenDNS

December 13th, 2008

I’m not sure how many people couldn’t access my site the past week or two, or if I was the only one for that matter. But apparently Time Warner’s DNS servers have been screwed up leaving a lot of people without Internet access, here (NC) as well as on the other side of the country. So once I figured that out, I switched my router to OpenDNS, reset the NIC on my server, and I could access my site. (Previously, my personal computer was the only one using OpenDNS, so of course I didn’t notice any outages.)

I guess I don’t completely understand DNS because it was my understanding that it only mattered what DNS the client was using not the server. Well at least it works now. For me anyway.

Edit: I guess the jokes on me, it’s still happening.

Edit2, 12-24: Looks like it’s fixed for me. My ISP’s status page is only showing problems for Raleigh.

Edit3, 12-30: It’s on and off apparently. Wish there was something I could do about it.

Clean Up HotAir.com

December 4th, 2008

If you read Hot Air like I do then, like me, you might be annoyed by the giant blogroll on the side.

I made this userscript to clean up the formatting.

You’ll need Firefox and either the Stylish or Greasemonkey extensions.

Enjoy!

http://userstyles.org/styles/12627

Web 2.0

November 30th, 2008

Some real helpful info there…

OrtzIRC Update

November 23rd, 2008

Just wanted to make a quick note about the progress of OrtzIRC.

It’s been pretty slow lately. I really want to get commands in before I do anything else, just to get it in a semi-usable state. So this means taking a step back and trying to work out how to do plugins.

We were kind of at a loss at first (I was anyway) but then I found out that .NET 3.5 had this new system for adding plugins to your apps System.AddIn. So far this looks really nice, and I’ll be implementing it soon unless Max has any objections. The only issue I can see so far is that I don’t know how this will jibe with possibly adding scripting later on.

You can get updates more often by following me on Twitter.

Twitter

November 22nd, 2008

I’d never understood Twitter but I’ve finally discovered its virtue.

Follow me

Another lazily written yet useful script I wrote for creating SVN repositories in Gentoo.

This script is based on this great guide at Rockfloat.

Could use some improvement, like another argument for the name of the user getting access to the repo…

Again, apologies for the line wrapping… Fixed

Code below the fold.

Read the rest of this entry »

Well I decided to post more of the stuff I write even if I think it’s crappy….

So even though there’s probably a dozen like this and it could be a lot nicer, here’s the bash script I wrote to create new subdomains on my web server. Customize to fit your needs.

My apologies for the line wrapping. Fixed

Code below the fold
Read the rest of this entry »

What I’ve Been Listening To

October 3rd, 2008

If you love music like I do, then you should have a Last.fm account. Go, right now.

When I first found Last.fm I was listening to a lot of classic rock. Mostly Santana, Hendrix, and Led Zeppelin. Then it introduced me to Massive Attack. I’m not sure how I found Last.fm or how I ended up listening to Massive Attack, but I loved it. “Trip-hop” was very different from anything I had listened to. Well, not exactly, because my first impression was that it sounded like the kind of music that plays during movie credits. It kind of gives you that “time to stumble into the lobby and take a leak” feeling. (You know, that vulnerable time after having sat in a dark room for 2 hours matching a suspenseful movie staring at a bright wall and you feel like someone could steal your pants and you wouldn’t notice. Anyway…)


Massive Attack – Butterfly Caught

Well trip-hop then got me into hip-hop, which I had been exposed to a lot in high-school but never got into. I’m not talking about 50 Cent or Ludacris, I’m talking about what I would consider “real” hip-hop. Like The Herbaliser.


The Herbaliser – The Hard Stuff

So then I was introduced to turntablism. You know, scratching and all that. Starting with DJ Shadow’s album Endtroducing. The entire album is 100% samples from old vinyl records.

http://www.youtube.com/watch?v=54_7m-CVTMY
DJ Shadow – Midnight In A Perfect World

He completely changed my perception of hip-hop.

Then I started to get into other electronica genres. Right now I’m listening to downtempo, though electronica genres tend to blend together a little. Basically, right now I’m listening to Bent and Air.

I could listen to this song forever:

http://www.youtube.com/watch?v=dr4fP9A3Oi0
Air- Surfing On a Rocket

This one too:


Bent – Private Road

So that’s the condensed version, I guess. This may be old news to you but finding new and different music to listen to is very exciting.

You can look at what else I listen to or add me as a friend here:

http://www.last.fm/user/ortzinator

You can also check out this awesome graph(pdf) made by Lastgraph.

EDIT: Embed-disallowed videos fixed.

OrtzIRC Update

September 28th, 2008

Progress has been slow, but it hasn’t stopped. It’s been a while since the last update so forgive me if I repeat anything.

The biggest news to tell is probably FlamingIRC. I decided pretty early on that there was no need to reinvent the wheel and so decided against writing my own IRC lib. So I went with what seemed to be the most popular IRC library for .NET, Thresher. After having it pointed out to me how old and outdated the code for Thresher was (I think it was written for the first version of .NET) I decided to fork it and name it FlamingIRC. Sadly it’s under the GPL so it has to stay that way. I hate how viral GPL is. It’s very heavy-handed.

Max Schmeling sort of gave OrtzIRC a shot of adrenaline, cleaning up some of my code and improving a lot of things overall. I just wish I could code as fast as him…

I’m still thinking about features to add, mainly plugins and scripting. I’ve been thinking that both a plugin system and a scripting system would be over kill, but that seems to be how XChat does it so I’ll have to do some more research. If you have any experience with implementing plugin systems and/or scripting systems or know where I can get some information on implementing them, please leave a comment!

I don’t think I’ve linked to the project page yet, so here you go. You can take a look at the code if you want but there really isn’t anything to see yet. However if you do happen to see any bugs, or if you have any feature requests feel free to open an issue. I also started a page on planned features, mostly for my reference., which is obviously subject to frequent change.