Drupal Pagination

I've put my Pagination (Node) module up on drupal, and am looking to tackle two issues/features associated with it.

1 based paging

Currently, drupal pagination is 0 based, in that the URL will show "?page=1" for the link to page 2, "?page=2" for page 3, and etc. In the greater scheme of life, liberty, apple pie, and hockey, it's a pretty minor point, but it seems odd that the paging scheme ends up being "incorrect".

Pagination (Drupal Module)

Pagination (Node) allows the main content of arbitrary node types (Page, Story, etc...) to be paginated according to one of three methods:

Method 1: Content is paginated by a selectable "words per page" count.
Method 2: Content is paginated by manual breaks, inserted by the content creator.
Method 3: Content is paginated by manual breaks, based on <h3> tags.

Buildering Fun!

I've given ardarvin the first version of the buildering guidebook module. There's still some touch up features I'd like to add to polish it off, but it should serve our basic needs well. I'll post a link to it as soon as it actually goes up, and add it to the Random Code section for those interested in poking around.

Karma

I know I haven't written in awhile, which is very disappointing to my 3 readers. (On the plus side, that represents a 300% increase since day 1). Partly it's because I've been "busy", and partly because I've had to deal with the ultimate betrayal.

Someone in my apartment building is a newspaper thief! For those who religiously pour over my every word, you may be sitting there smirking, especially given my confessional a few posts back. But let me remind you, I never actually stole a paper, I just *thought* about it once. Or twice.

Reinventing the Wheel Part II

I've updated the code section to have a Lightbox style effect when viewing source files. I know it's not exactly groundbreaking, but then again, it's easier to pick things up quicker when you build stuff.

As I've mentioned before, I've always kinda stayed away from Javascript, given that new browsers come out every year or so, breaking this or allowing you to utilize this one fun feature that no other browser supports.

Unit testing telemarketers

I've added some unit tests for the code I posted, I'll try to make sure all code comes with tests (free!) from here on in. I'm working on an update to this site that will allow for easier viewing of code, an event which should prove to be wondrous and exciting!

In completely unrelated news, my local news paper started me on a free 3 week trial today. Despite the whole dead tree thing, I have to admit I do enjoy the simplicity of reading over a paper with coffee, it is truly one of the great joys in life.

Survey creation fun

I ended up committing to a drupal based project my SO wants done (isn't that always the case). Part of it's specifications is to include a survey for users.

On initial thought I had grand ideas of creating a module that would allow for arbitrary surveys to be created (as I'm not particularly impressed with the current modules available), and I may yet attempt that.

Reinventing the wheel

This code was developed due to specific constraints I wanted in a template engine, and the desire to use it in projects that unfortunately still require PHP4. It is currently pre-release code, but should work in PHP4.2 and up.

The first specification of the project was to ensure valid XHTML. I haven't yet set a DTD (for those who need full on validation), but the templates should be editable in WYSIWYG editors such as Dreamweaver without causing issues.

I found $5

I found $5! If you're unfamiliar with the concept (and were too lazy to click on the link), it's basically a great way to get out of awkward social situations of your own creation.

A quick example:

Owen: So the other day I was driving around town, and Faith came on the radio. I know it's not really a full on 80's power ballad, but man I was so into it!

I am lazy (loading)

I ran into a few snags while playing around with codeigniter. The first was the realization that it was actually a subset of the work that was originally pmachine.

Now perhaps I'm being slightly unfair, since I didn't have a lot of hands on experience back in the day, but from my role as a sys admin for a web hosting company, pmachine was the early candidate for "ugh, yet another security hole", and whenever I hear that word I cringe at the awful memories.