Archive for the ‘Uncategorized’ Category

How win friends and pad meters

Introduction to Holy Paladin Healing in 3.2/3.3
Spec

Base Holy tree looks something like this talent tree

Points in Imp Wis and Bless Hands can be moved about if you’d prefer

Then either go 17 points into Prot for Divine Guardian, or 20 [...]

Posted by Matthew on December 23rd, 2009

Filed under Uncategorized | No Comments »

No One Likes a Tattletale

DesuToys

Posted by Matthew on September 5th, 2009

Filed under Uncategorized | 1 Comment »

hacked

Yep, I was hacked 5 days ago. Seems I’ve been part of some DOS attack (I forgot to record the IPs of who, and it was only ~60GB of traffic).
From what I can tell, it exploited an (old, now patched) hole in PHPMyAdmin that let you write PHP files with what ever content you [...]

Posted by Matthew on September 1st, 2009

Filed under Uncategorized | 2 Comments »

3.2 Rolling FoL SS HoTs

Holy Paladin changes in 3.2 seem pretty significant, I’m currently hoping the FoL/HoT mechanic works a little like ignite, where in effect you have n number of buffs up on the target, and WoW just consolidates them into one (As oppose to old ignite rolling, where each time the debuff was added, the damage [...]

Posted by Matthew on June 22nd, 2009

Filed under Uncategorized | No Comments »

I before E except after C…

I before E (yuccamuffin.com)
<?php

    $words = file(’/usr/share/dict/words’);
    $words = array_map(’trim’, $words);
   
    // Ignore words with any punctuation
    $words = array_filter($words, ‘ctype_alpha’);
   
    foreach($words as $word)
    {
        // ignore proper nouns (they start with an uppercase letter)
        if(ctype_upper($word[0]))
      [...]

Posted by Matthew on June 3rd, 2009

Filed under Uncategorized | No Comments »

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 [...]

Posted by Matthew on January 21st, 2009

Filed under Uncategorized | 1 Comment »

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

ftp
17

richard
16

apache
16

web
15

adm
15

webadmin
15

john
15

paul
15

office
15

tony
14

james
14

postfix
13

michael
13

alex
13

david
13

amanda
13

adam
12

mike
12

staff
12

steven
12

recruit
12

jeff
12

pgsql
12

library
12

username
12

frank
12

susan
11

cyrus
11

dave
11

gast
10

postmaster
10

nagios
10

martin
10

admins
10

Note: No external connections are allowed to log in as root (of course)
Note2: After 5 failed login attempt, the IP address is temporary banned (fail2ban)

Posted by Matthew on July 7th, 2008

Filed under Uncategorized | 1 Comment »

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 = height
        self.create_blank_grid()

    def create_blank_grid(self):
        self.grid = [...]

Posted by Matthew on June 20th, 2008

Filed under Uncategorized | No Comments »

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, $fun);
}

// This looks a little better, but [...]

Posted by Matthew on June 19th, 2008

Filed under Uncategorized | No Comments »

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 [...]

Posted by Matthew on October 2nd, 2007

Filed under Uncategorized, games | No Comments »