Programming during Eve's Downtimes: Do Nots!
I have spent the last two hours working on a registration scheme for Cidev members to register accounts on the corporation website (http://crimsonindustries.com. The only problem was that after an exercise in utilising the poorly documented Eve-Online API (took some digging in other sources to locate ALL the API server endpoints needed) to allow anyone confirm their registration using their limited userID and apiKey - my unit tests began failing.
Unit tests, if you're not a programmer, are tests written to assert something I programmed is working as intended.
So 12 failures later I started getting worried that PHP DOM was misbehaving (it's a bit of a complex beast to work with). I pulled apart a class, reran tests, and finally ripped out wget in bash as a last resort to see if a few manual URLs and POSTs would turn up the problem.
I immediately saw "Unexpected failure accessing database." turning up as the error message returned from the Eve Online server in it's XML response code.
Suddenly it hit me. The damn Trinity 1.2 patch was running today! I had been running tests against the offlined server!
I feel a bit of an idiot right about now
. I'll try the tests again around 16:00 GMT when hopefully the server is back online.
Unit tests, if you're not a programmer, are tests written to assert something I programmed is working as intended.
So 12 failures later I started getting worried that PHP DOM was misbehaving (it's a bit of a complex beast to work with). I pulled apart a class, reran tests, and finally ripped out wget in bash as a last resort to see if a few manual URLs and POSTs would turn up the problem.
I immediately saw "Unexpected failure accessing database." turning up as the error message returned from the Eve Online server in it's XML response code.
Suddenly it hit me. The damn Trinity 1.2 patch was running today! I had been running tests against the offlined server!
I feel a bit of an idiot right about now



Comments
Mon, 05.05.2008 22:35
Ah just noticed the link, than ks for including my blog
Thu, 24.04.2008 08:54
\o It took me a while to lo cate a lot of these blogs by t racking through blogs, discove ring matching ones throu [...]
Wed, 23.04.2008 22:50
o/ Glad to see my blog ment ioned somewhere other than my own site! I've spent the last hour or so reading thro [...]
Tue, 15.04.2008 17:05
Just the site I located, home of the subversioned Killboard application which is two point s above the publicly rel [...]
Tue, 15.04.2008 15:39
A handy website for the API is http://wiki.eve-dev.net Th ey have a bunch of information on the API and the stat [...]
Tue, 15.04.2008 13:58
I have a plan to buy a dozen c heap frigates, locate to a low sec gateway, and spend some ti me getting killed
Tue, 15.04.2008 01:11
Hey Just read a few of ur p osts, ur doin well in eve, i m yself am fairly new (about 8 m onths now) and youve don [...]
Sat, 12.04.2008 19:54
Working on those now actually
Sat, 12.04.2008 15:55
Something else to speed up tra ining times would be at least a +3 learning implant set. Th ey are relativly cheap n [...]
Wed, 09.04.2008 16:21
Nah, I know I'm overreacting t o an extent and admitted as mu ch in my last comment. The pro blem is my real world be [...]
Wed, 09.04.2008 14:54
I think you're overreacting Pa draic. If any candidate felt h e was being misrepresented on the EVE CSM site (or not [...]
Wed, 09.04.2008 00:36
In all honesty it's less that I doubt the value and accuracy of the site, and more than I can't recommend a site c [...]
Tue, 08.04.2008 23:55
I'm curious to know if you can recommend a more transparent and unbiased representation of the CSM candidates than [...]
Tue, 08.04.2008 17:59
Nice, actually some blogs ther e I hadn't seen before.
Tue, 08.04.2008 17:11
Let's wait till I can afford a Battleship first