Blog Archives

work

The project I’m on: The latest thing is performance. Our software is sloooooow. We have inefficiencies, but it is slow primarily because we are trying to display (literally) tens of thousands of pieces of information on screen at any one

Tagged with: ,
Posted in Uncategorized

building a tree from a flat definition (with a stack)

Something I find myself doing often is trying to build a hierarchical data structure (tree) from a flat definition of some kind. An example is that I have a simple formatting language whose parser outputs to HTML, and it can

Tagged with: ,
Posted in Uncategorized

making a custom fully working 404 page with codeigniter

[update: I changed this to use exceptions, it’s better this way] CodeIgniter has a really annoying bug with its 404_override setting which makes it pretty much useless as a complete solution. The bug is that it won’t load the correct

Tagged with: , ,
Posted in Uncategorized

regular expressions: the cause of and solution to, all of life’s problems.

uhum, a few years ago I wrote a regular expression to try to approximate the number of syllables in a word. Today I dug it out and decided it was not good enough! Instead of approximating the number of syllables,

Tagged with: , , ,
Posted in Uncategorized

IPs as evidence

I am reading a lot of things to do with file sharing and flawed evidence lately. One of the common misconceptions is that IPs can be arbitrarily spoofed. This isn’t really true. You can spoof your IP but you won’t

Tagged with: , ,
Posted in Uncategorized

anagram generator in python

it helps me with the crosswords :p this would help of course if wordpress didn’t mess up the indendation [edit: ahh sourcecode mode] [edit2: untested modification, watch out!]. implementation of is_word() is left as an exercise to the reader. You

Tagged with: ,
Posted in Uncategorized