So if you've read this entry, you know that I got a crush link email sent to me. Then I mentioned here that I wrote a script to find out who my crush was... Here are the details

The script I wrote, admittedly a quick hack, takes all the hints mentioned in this entry into account... At the moment, It works purely under the assumption that the other person's e-mail resides in the andrew.cmu.edu domain and you must run it under AFS (in your andrew acct). Unless you can get a hold of other domain's /etc/passwd file, that is... Eeeenyway... so this is what I did

% ./crushcrack.py --ul=6 | wc -l ( hint #1 )
3923 (this is the number of matches)
% ./crushcrack.py --ul=6 --fl=6 | wc -l ( hint #1, #3 )
1066 (getting better...)
% ./crushcrack.py --ul=6 --fl=6 --ll=5 | wc -l ( hint #1, #3, #4 )
495 (much better, but still a bit too many...)
% ./crushcrack.py --ul=6 --fl=6 --ll=5 --fp="^[klmno]+\w*" | wc -l ( hint #1, #3, #4, #5 )
90 (voila!)
Being the lazy bum that I am, I just went ahead and added hint #6
% ./crushcrack.py --ul=6 --fl=6 --ll=5 --fp="^[klmno]+\w*" --c | wc -l
77 (oh, babyee.....)
Then, I realized that I should take advantage of the Asian name hack that I put in. :) So I ran it again with the Asian name hack
% ./crushcrack.py --ul=6 --fl=6 --ll=5 --fp="^[klmno]+\w*" --c -a | wc -l
77 (It didn't make a difference.)

Looking at the 77 matches is rather interesting, I must say..... I don't think I recoznize any of the names... ^^;... The sad thing is that the first thing that came to my mind after getting the results was the thought that any 3l33t UNIX sys admin could probably have written a 5 liner that did the same thing using awk and sed... I just killed the intense desire to optimize the script or write a shell script and just went to sleep... I've got bigger fish to fry... zzzZZZ

UPDATE: You'll notice that the number of matches have changed. I noticed that I had duplicate userids in the list, so I fixed that and the counts went down by almost half!!


back to the list of latest entries


Be the first to comment on this entry.

Name
Email
Homepage
Comment
Remember my information