Archive for June, 2006

Thanksgiving code

November 28th, 2008

I needed a script to loop through the letters of the alphabet and put this in an array: a-z, aa-zz, aaa-zzz, aaaa-zzzz, etc. Through a very rough approach, I’ve satisfied conditions 1-3, but not anything after (source code below).

<?php

global $used, $items;

$items  = explode(’|', ‘a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z’);

//$items  = explode(’|', ‘1|2|3|4|5|6|7|8|9|0′);

$max    = 9000;

$used   = $items;

$length = 1;

$stop   = [...]

Algorithms for Dummies

November 7th, 2008

I’m taking my second algorithm class this semester. So far, I think I understand a lot of the algorithms discussed in theory. The problem is translating them to code. Most of the algorithm textbooks I’ve come across are so technical, I haven’t the foggiest idea how to actually go on.
The biggest problem, I think is [...]

Code Profiling

April 27th, 2007

While running some tests on my local machine, I discovered a certain content item on Authware took between 2.5 and 2.9 seconds to load — when nearly every other one got loaded in less than 0.7 seconds. There were some basic references to clone — especially when determining the book name for a certain content item and discovering the book was it’s own parent — and I naturally erroneously assumed the overhead arose in those sections. Doing a manual copy of all the elements I needed instead of cloning changed nothing.

So far

February 17th, 2007

Authware Screenshot

Goodbye Google Reader

February 8th, 2007

I know Google Reader’s still in the Google Labs section but I’ve had enough trying it out for the past one week. What feed aggregator marks feeds with the time it retrieves them instead of fetching what’s in the Atom or RSS information?
I could handle that for a while but I guess enough becomes enough [...]

Kubuntu

January 7th, 2007

Okay, I’ve had it.
This is the second time I’m installing Kubuntu on my system. As soon as I update via Adept and restart, I find I can’t log in. It authenticates me successfully but brings me back to the login screen.
What’s worse, it eliminated the bootloader on my first [Windows XP] hard disk and [...]

WritingInn

December 23rd, 2006

I’ve long had a dream of connecting with other writers on the web. Writing.com? Paid for. And I’m not too sure I like any of the others I’ve come across. It’s because of just this, that I decided to work on WritingInn.
The idea’s been kicking around in my head for a very long time, and [...]

Bonding

December 22nd, 2006

Are Apple and Microsoft beginning to bond? Or are these ads serving to poke fun at Microsoft?

Caught up

December 21st, 2006

I’ve been so caught up watching movies that I’ve hardly done any real coding in the past few weeks. I’ve been forced to stop waxing philosophical about anything geeky on my other blog, so this has been a long time waiting in the sidelines.
I’ve rewritten the db abstraction layer for Authware. It was never anything [...]

Hello world!

December 20th, 2006

At last, I shall be free to rant in peace. I’ll hopefully be moving most of my code section over here.
The old links to my page content will still work. I set up 301 redirects to the new content.