brettern

void main(){fork();main();}

Posts
  • brettern

    Markov Chains and Chatterbots

    • 0 Comments
    Markov chains have many uses, from the practical (page ranking on search engines, search suggestion) to the sinister(generation of jibberish to fool spam filters) to the hilarious: simulation of human speech in a chat setting. It is the latter that I...
  • brettern

    Remember Duff's Device?

    • 2 Comments
    I ran across this old thing in a book recently and was amused. It brings back some memories ( snippet courtesy of Wikipedia ): strcpy ( to, from, count ) char *to, *from; int count; { int n = ( count + 7 ) / 8 ; switch ( count % 8 ) { case 0 : do ...
  • brettern

    Very handy Javascript memory leak detector

    • 2 Comments
    I used this tool recently and found it to be very helpful in detecting memory leaks related to closures and circular references (between JS and DOM). http://blogs.msdn.com/gpde/pages/javascript-memory-leak-detector.aspx I have found that many memory...
  • brettern

    Fun Old Bugs

    • 0 Comments
    I was reading PC Assembly Language by Paul Carter recently. He discussed a very common bug, particularly among new programmers. I have a fascination with non-obvious bugs, especially when their roots extend all the way down into the guts of the system...
  • brettern

    Applied events and timers in PowerShell

    • 0 Comments
    The ability to subscribe to events is the central plumbing detail when it comes to writing modules for the bot. Actually, the subscription itself is a minor detail, but what really makes it tick is PowerShell's ability to cast a script block to a delegate...
  • brettern

    Add one to the list of things you can do with PowerShell.

    • 1 Comments
    To say that PowerShell is the best shell scripting language ever is to understate its usefulness. The highest complement a piece of software can receive is not always praise of its near-perfect design or crafty implementation, but rather a simple why...
Page 1 of 1 (6 items)