Timed 7, Another way around it.
Been reading in the forums on how to do Timed 7, and i was a bit amazed that no one mentioned the simplest way (By not using GD Lib).
Any way, The fastest way to do it with the minimal lines of code (using PHP) and the way i did it was:
1- curl to login 2- curl to get the barcode.php then i opened a file for writing and got all the data in and named it barcode.png
the trick comes here. why should i code i dont know how many lines to deal with the GD lib and decode the barcode while some one else did it before me …. Hello, some websites on line do that!
just upload the file using curl to one of them, get the result and post it back to HBH.
This is a 100% working way to do it if you dont know GD or your too lazy to code. :vamp::vamp::vamp:
ADIGA, very interesting approach and congratulations on completing the challenge. But, in my opinion, I believe you missed the point of this challenge. The timed programming challenges, again my opinion, are for you to hon-in on your programming skills and make a simple barcode conversion program. There are lot of examples online that could have solved this just as fast and making one yourself can prove to be very educational. I believe your post will make this challenge to easy now and will lose its experience.
I wrote all my solutions to the timed challenges in PHP and I am glad to say they were all very much quicker than the time limit. Most took a few hundered milliseconds to complete the computing task after I optimised my method, plus a few hundered milliseconds for requests.
For Timed 7 I did use GD in the end, so if you need any tips let me know but I am sure your knowledge of programming is good enough from other threads.
I went and read around about the barcode format used and understood the method of decoding and verification, I found it quite interesting. Equally your solution is valid, just I was interested in how barcodes work. :)
I only really used cURL once for one of the Timed challenges. For all the others normal s****** are just fine, but I suppose the code is neater and easier to maintain if you use cURL.
Jim,