[violet] wrote:Possibly fixed for update in 22 hours from now, but possibly not because I'm not really sure what's going on.
Remind me again how you got this job?
Advertisement
by The Most Glorious Hack » Thu May 06, 2010 12:20 am
[violet] wrote:Possibly fixed for update in 22 hours from now, but possibly not because I'm not really sure what's going on.
by New Spartzerina » Thu May 06, 2010 2:18 am
by [violet] » Thu May 06, 2010 5:17 pm
by The Mindset » Fri May 07, 2010 10:32 am
by Mayor For Life » Fri May 07, 2010 2:04 pm
by The Mindset » Fri May 07, 2010 3:13 pm
by [violet] » Fri May 07, 2010 4:25 pm
The Mindset wrote:Just to let you know that I may be pulling the allnations feed about once per week for my Nationstates Galaxy application (I don't need the nation details, I just want to check that a specific nation exists) so I dunno if that'd be sufficient reason to refrain from removing it. Alternatively, a new API call designed specifically to check if a nation exists, without any associated overhead of stats etc. (instead of having to download all nations, 99% of which I don't need) would be useful.
by [violet] » Fri May 07, 2010 4:26 pm
Mayor For Life wrote:W00t! Elegant resolution of the API server load quandry. William of Ockham would certainly approve.
The data mining has already begun at the New South Hell School of NationStates Ideology.
As is the predictable head scratching, bickering over unfounded hypotheses, and players staring at the data like a canary looking in a mirror.
by The Mindset » Fri May 07, 2010 4:52 pm
[violet] wrote:The Mindset wrote:Just to let you know that I may be pulling the allnations feed about once per week for my Nationstates Galaxy application (I don't need the nation details, I just want to check that a specific nation exists) so I dunno if that'd be sufficient reason to refrain from removing it. Alternatively, a new API call designed specifically to check if a nation exists, without any associated overhead of stats etc. (instead of having to download all nations, 99% of which I don't need) would be useful.
There's not much difference from our point of view between a real-time call to check if a nation exists and actually giving you all the stats on that nation.
If you only need to be doing this once a week, could you just grab nations.xml.gz Daily Dump and pull the nation names from there? Should be the same thing, just a larger download than you really need.
I probably need to convert the Name Lists to static files if we're going to keep them, due to the bug you mentioned above, but since I'm lazy if I can just drop them I will.
by The Mindset » Sat May 08, 2010 9:32 am
The Mindset wrote:[violet] wrote:The Mindset wrote:Just to let you know that I may be pulling the allnations feed about once per week for my Nationstates Galaxy application (I don't need the nation details, I just want to check that a specific nation exists) so I dunno if that'd be sufficient reason to refrain from removing it. Alternatively, a new API call designed specifically to check if a nation exists, without any associated overhead of stats etc. (instead of having to download all nations, 99% of which I don't need) would be useful.
There's not much difference from our point of view between a real-time call to check if a nation exists and actually giving you all the stats on that nation.
If you only need to be doing this once a week, could you just grab nations.xml.gz Daily Dump and pull the nation names from there? Should be the same thing, just a larger download than you really need.
I probably need to convert the Name Lists to static files if we're going to keep them, due to the bug you mentioned above, but since I'm lazy if I can just drop them I will.
Fair enough, whatever's best on your end!
by The Mindset » Mon May 10, 2010 8:06 am
by Jumping Jupiters » Tue May 11, 2010 12:33 am
[violet] wrote:Hmm, odd. The file is not double-zipped, but it winds up that way on your computer when you download it via HTTP.
by North Mack » Tue May 11, 2010 6:40 am
by NewTexas » Thu Jun 10, 2010 4:56 pm
by [violet] » Thu Jun 10, 2010 6:10 pm
NewTexas wrote:general wonkiness (ie: 421 Unused Errors
NewTexas wrote:Can we pin this or something similar to this? We think developers might find it useful or at least informational.
by [violet] » Tue Mar 22, 2011 4:01 pm
by Ballotonia » Wed Mar 23, 2011 11:55 am
[violet] wrote:Update! API versions!
Please note the API now lets you request a particular version number, so I can upgrade it in the future without breaking everyone's scripts. There is a hopefully comprehensive explanation at http://www.nationstates.net/cgi-bin/api.cgi
I am planning to change the API format soon, so now is an excellent time to build that version parameter into your scripts!
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Oh-oh...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h1>Error!</h1><p>Sorry, NationStates has encountered an error. This problem has been logged and will be looked at shortly. If it occurs repeatedly, though, you can help us track it down by telling us what you did to reach this message. Please e-mail <a href="mailto:admin@nationstates.net">admin@nationstates.net</a>, giving this error message, the time and date it occurred, and what you were attempting to do. </p><p>Alternately, you can post this as a bug report in the <a href="http://forum.nationstates.net/viewforum.php?f=15">NationStates Technical Forum</a>. Thanks.</p><h3>Details:
</h3><pre>slurp_filename('/home/nation/public_html/cgi-bin/api.cgi') / opening: (2) No such file or directory at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 541 at /home/nation/public_html/cgi-bin/JGConfig.pm line 13
JGConfig::__ANON__('APR::Error=HASH(0x7f5f541ac950)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 541
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 541
ModPerl::RegistryCooker::read_script('ModPerl::RegistryBB=HASH(0x7f5f542210d0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 371
ModPerl::RegistryCooker::convert_script_to_compiled_handler('ModPerl::RegistryBB=HASH(0x7f5f542210d0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 163
ModPerl::RegistryCooker::default_handler('ModPerl::RegistryBB=HASH(0x7f5f542210d0)') called at /usr/lib/perl5/ModPerl/RegistryBB.pm line 31
ModPerl::RegistryBB::handler('ModPerl::RegistryBB', 'Apache2::RequestRec=SCALAR(0x7f5f541a8e58)') called at -e line 0
eval {...} called at -e line 0
</pre>
</body>
</html>‹������MQËnÂ0¼û+¶œ)¦œ£¨*P
‡ôÐã&YK~P{C•¿¯m"Ú“÷1;³ã-6ÇuõuÚÂ[uØÃéóe¿[ÃìQÊݶz•rSmnÕb)åöcVŠ¢g£Ë¢'lcŠ5•«åŽï…¼e¢¹[Ô®ÓÀS™šñÅ¥¬z‚@þJÈ6n°LžZ@*…5÷΃ó¨Ð8{VÝà‘•³ÕÂ,Öš€4Î\41‰Ñ
<}xQÈK;iÂ@dþÓÆÖ(«Gbççâ–?Û,™ÂÂgAeÏΛ4lÀ3 +C9˜VmšÁGs‘ðhGî•í ®Fu=CW‚ÖÙ4„Ç\
!š¿3Ý?8O“ðä¼vC2 ¤™8j¼¢Òé3„²ÿýÝ@Úu¥ÌLjWH׿f‰FÃø��
by Wopruthien » Wed Mar 23, 2011 1:15 pm
by [violet] » Tue Apr 05, 2011 4:36 pm
[violet] wrote:Update! API versions!
Please note the API now lets you request a particular version number, so I can upgrade it in the future without breaking everyone's scripts. There is a hopefully comprehensive explanation at http://www.nationstates.net/cgi-bin/api.cgi
I am planning to change the API format soon, so now is an excellent time to build that version parameter into your scripts!
<?xml version="1.0" encoding="iso-8859-1"?>
<REGIONS>
<REGION>
<NAME>The East Pacific</NAME>
...
</REGIONS>
<?xml version="1.0" encoding="iso-8859-1"?>
<REGIONS api_version="1">
<REGION>
<NAME>The East Pacific</NAME>
...
</REGIONS>
by Could-Not-Care-Less » Fri Apr 08, 2011 7:44 pm
Advertisement
Users browsing this forum: Indian Lands
Advertisement