Archive for the ‘Uncategorized’ Category
obsessed with anonymous functions
Any normal person would just live without anonymous functions in PHP, they are buggy and non trivial ones are pain to write and read. I’m not sure why I seam to obsess over them. At the very least, the below code will test unicode in your dev tools Edit: Of course after I wrote that [...]
auth.log noise
Below are the top 50 login names when trying to gain access to this web server over the last 4 weeks Name Attempts root 3273 admin 119 test 110 mysql 44 guest 41 user 37 oracle 37 temp 25 sales 24 info 21 webmaster 21 postgres 21 dan 18 robert 18 student 17 ftpuser 17 [...]
import life
A console based implementation of Conway’s Game of Life in Python. As fascinating as it is useless. #!/usr/bin/python import sys import random import time import os import copy WIDTH = 32 HEIGHT = 16 class Grid: def __init__(self, width, height): self.width = width self.height = [...]
Pretending PHP doesn’t suck
<?php // Perhaps the simplest practical use of a fold? // // (While this is fairly consise (even in PHP) it calculates the length of a // string 2n-2 times [which is n-2 times more than needed]) function getLongestWord($words) { $fun = create_function(’$a,$b’, ‘return (strlen($a) > strlen($b)) ? $a : $b;’); return array_reduce($words, [...]
WoW Progress
First trip to Kara on the weekend, being mostly a PUG we started off really poorly. We eventually replaced our off tank (who was arms :/) with a well geared (epic) tank which helped substantially. Though, we still only managed to down Huntsman and Maiden of Virtue. I have most of the standard instances down [...]
Yet more wow
Progress +834 Fire (+845 With Arcane Intellect) with one Metagem slot to fill and without Major Spellpower on my weapon. Though, it did cost a bit of Int and Stam. Enchant Enchant Weapon – Major Spellpower on my Greatsword of Horrid Dreams Actually start running Karazhan Craft Spellfire Robe to finish the Wrath of Spellfire [...]
