I'm currently working for a e-Bussines Company and yeeeeeees, we are developing this amazing system, that will do what, what's the porpuse? No idea what so ever! They just told us..........."guys you need to develop this promo for this famous soda company". (Ok you guys must be thinking what does the title has to do with the blog, wait i'm getting there). I think the purpose of this is to do something like Facebook, were the users don't win anything at all.
Ok, here's the story of the Famous Soda Company Codes, for this project I was asked to create a program to generate around 360 million codes, 30 million codes per year. Hahahahaha, crazy stuff I know! So yeah, here I go with a previous built of the program done in PHP about a year ago, hahahaha, pretty old! Ooook, let's go back a bit!
This "famous soda company" the biggest client we've worked for! We've done big projects with them such as... (ok, some just told me not to post the name of the company)As long as I can remember team work has been key here! The problem was..........organization, schedules, deadlines. Ok been that said...........let's fwd to present day.
December of 2007, Team Leaders, who shall remain anonymous - came to me and said "Dude, we need to generate 30Million Codes every month", "We need 10million right away". How about that hey? Cracked myself up for awhile and then realized that what he/she said, was for real! (hahahahahaha, I think about it and crack myself up again!) Anyways, I started searching for the old program that did this, for my luck I found it! Couple of things I found out:
- It was done in a program that I have (till this day i have no idea how to use it) no idea to use.
- It wasn't finished
- Oh yeah it crashed everytime I tried to run it!
- No 2 letters from the same phone key should be together (e.i AB, AC = 2 in the key pad)
- Codes most be 7 Digits long

Yes, that's part of the code, ACTUAL CODE! Beautiful mind! Ok.....moving on with the post!
About 2 days ago I tried running this huuuge script via web browser, hahahahaha, bad idea, my powerbook's vents were flying!! Oh yeah talk about the TEMP!! Around 82 Degrees! I thought it was going to blow or take-off, hahahahaha.
I worked on the script the day after (yesterday) all day, none stop. Around 3pm I left the script running, and that when I had my episode with MAC OSX's UNIX System . All the time I was running the script I checked with another terminal what was the "size of the file" but not the amount of codes inside the textfile, biiiiiiiiiiiiig mistake. My script was set to go for 500million codes. When I did the ls -la I saw that the file was around 658million, and I thought to myself "the code got stuck and its not stopping!" And I needed 15million ASAP, so I decided to stop it. When I did the split command to have batches of 100million textfiles, but only 1 file was getting outputed. So I went back to the terminal to see the amount of lines in the file the wc -l command return 75million, yeeees! the 658 million that I saw................was the size of the file 658-around 500MB, hahahahaaha!
Last night I left the powerbook on all night, running thru terminal the "script" I fell asleep listening to the vents! When I woke up today i realized that the sound had stopped and I thought to myself, "holy shi...., what if the script caused the machine to crash or what if I ran out of combinations" For my surprise.......the script work beautifully! I have now in my possession 398million Codes. Thinking about it now.............I should've had 500million codes............398millon should work fine!
Soooooo, that's my story with the codes, If anybody needs a script to generate these types of codes, lemme know, I have another another one for numbers! hahahahahahaha!
Laters!
ps. check this out, another experience with the codes!!! I tried to Publish the post and it gave me this error.
ERROR
Your HTML cannot be accepted: Tag is broken:
