On Monday 05 April 2004 07:37, Kristie Carter wrote:
> Ohh... Ohh.. can I get badge # 1492 if we get up that high?  : )

Yes.

Okay, here's how I set it up:

The directory ~conchair/registration contains a bunch of files, with decimal 
numbers for names.  The filename is your badge number.  The routine starts 
with the lowest badge number and works its way up, trying to create a file 
with that name in a way that fails if a file with that name already exists.  
If it fails, it increments by one and continues on.  (When it hits 5000, it 
gives up and reports failure and says email [EMAIL PROTECTED] with 
this transaction ID.  This shouldn't happen unless the directory permissions 
are horked or some such...)

Normal registrations start at 50 and go up from there.  If you use the special 
freebie coupon code, it'll start at 0 and go up from there.  (Hence badge 
numbers 0-49 are reserved for ones we give away, and normal attendees will 
start from 50 and go up from there.  If the giveaways run out, they'll 
allocate the next available normal number just fine...)

So what we can do is, after you register, just rename your file something 
else,and that'll be your badge number.  Your badge number could be 3.14159 if 
you wanted it to.  It could be "thursday".  The registration system won't 
create any of those, but we can do it by hand easily, and the registration 
system will cope just fine.

I am currently debugging all this.  It's written, it just doesn't work yet.

Rob


Reply via email to