This classic Eric Lippert post describes, in excruciating, painful detail, exactly how much work it takes to add a single ChangeLightBulbWindowHandleEx function to a codebase at Microsoft:
Read more »
This classic Eric Lippert post describes, in excruciating, painful detail, exactly how much work it takes to add a single ChangeLightBulbWindowHandleEx function to a codebase at Microsoft:
Like many programmers, my first exposure to Ray Tracing was on my venerable Commodore Amiga. It's an iconic system demo every Amiga user has seen at some point: behold the robot juggling silver spheres!
Read more »From the ACM Code of Ethics:
As an ACM member I will
It's hard to square that with the following hair-raising tale Dustin Brooks sent me via email:
Read more »I miss Kathy Sierra.
Read more »Well, you won't technically see me at MIX08 this year. But you will see some very cool top-secret stuff Vertigo created in the keynote.
Read more »In November 2007 I called these three CAPTCHA implementations "unbreakable":
Google(unbreakable)
Hotmail(unbreakable)
Yahoo(unbreakable)
2008 is shaping up to be a very bad year indeed for CAPTCHAs:
// description of your code here
# for WATIR scripts by marekj testr.us
module TestRun
# TestRun.record(__FILE__,{:1, 'Bacon', :2, 'Apple', :3, 'Cheese'})
#
# writes or appends a yaml doc to file named filename as the file that invoked the method
# ---
# :1: Bacon
# :2: Apple
# :3: Cheese
#
# example: if __FILE__ is c:\foofoo\away\in\windowz\land\scirptname.rb then
Block many users in a system using a text file as argument
#!/bin/bash
#******************************************************************************#
# BlockManyUsers.sh - Block many users in a system using a text file #
# as argument #
# Copyright (C) 2008 - written by flynets - #
# BlockManyUsers is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
This example creates a date and time variable which represents 22nd March 2008 4:30pm and 12 seconds.
d2 = DateTime.new(y=200,m=3,d=22, h=16,min=30,s=12)
Read more »If you've used Windows Vista, you've probably noticed that Vista's file copy performance is noticeably worse than Windows XP. I know it's one of the first things I noticed. Here's the irony-- Vista's file copy is based on an improved algorithm and actually performs better in most cases than XP. So how come it seems so darn slow?
Read more »what up with this style of google analytics implementation?
Read more »Paul Buchheit on
listening to users:
Session cookies, the Rails-2 kind, are transient because that's safer. In some applications safety isn't important. The following makes the session cookies persist for a year.
class ApplicationController < ActionController::Base
before_filter :update_session_expiration_date
private
def update_session_expiration_date
unless ActionController::Base.session_options[:session_expires]
ActionController::Base.session_options[:session_expires] = 1.year.from_now
end
end
end
At the beginning of my time with CakePHP I used to write “skinny” models, i.e. they only contained association definitions and some validation rules, and nothing else. Everything was done in the controller using the methods provided by the Model class.
Read more »It's a common misconception that JavaScript is just for coders. As Alex explains, libraries like jQuery can make tasks like adding animation or tweaking markup a piece of cake -- even for non-coders!
Read more »Not too long ago you've all heard me saying Bye, bye Friendly URL’s. Now, after a lot of feedback and some more thoughts on it I came to what I find a nice compromise between REST'ness, SEO'ness, and FRIENDLY'ness.
Read more »