{"id":566,"date":"2008-05-26T21:55:30","date_gmt":"2008-05-27T05:55:30","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/pickled-fate\/"},"modified":"2020-07-25T22:07:32","modified_gmt":"2020-07-26T05:07:32","slug":"pickled-fate","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/pickled-fate\/","title":{"rendered":"Pickled FATE"},"content":{"rendered":"<p>Some people have been checking out the new test client <a href=\"http:\/\/multimedia.cx\/eggs\/fate-testers-wanted\/\">described in the previous post<\/a>. So far, most of the questions I have received concern the format of the fate-test-cache.bz2 file downloaded from the <a href=\"http:\/\/fate.multimedia.cx\/\">FATE server<\/a>. I admire that people are taking an interest in file format particulars &#8212; as you know, <a href=\"http:\/\/wiki.multimedia.cx\/\">I encourage that<\/a>. It&#8217;s nothing too special, though. I simply have a Python script called update-test-cache.py that queries FATE&#8217;s test_spec table into an array of dictionary data structures. Then it serializes\/marshals\/flattens the data using Python&#8217;s built-in <a href=\"http:\/\/docs.python.org\/lib\/module-pickle.html\">pickle module<\/a>. It&#8217;s trivial to de-pickle on the client-side. Of course, Python&#8217;s bzip2 module helps with size concerns.<\/p>\n<p>What&#8217;s the pickle format? Darned if I know, but it works famously, so I don&#8217;t really care about reinventing that wheel. Especially when the code for decompressing and deserializing boils down to these 3 lines of Python:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/multimediamike\/3d9e816debc668f9ff19cb50088916ba.js\"><\/script><\/p>\n<p>Also, about that rsync command I mentioned in the last post:<\/p>\n<pre>\r\nrsync -aL rsync:\/\/rsync.mplayerhq.hu:\/samples\/fate-suite\/ samples\r\n<\/pre>\n<p>Does that actually work for anyone? Occasionally, it works for me. Most of the time, it tells me:<\/p>\n<pre>\r\nrsync: failed to connect to rsync.mplayerhq.hu: Can't assign requested address (49)\r\nrsync error: error in socket IO (code 10) at \/SourceCache\/rsync\/rsync-30\/rsync\/clientserver.c(94)\r\n<\/pre>\n<p>which, according to my searches, is a fairly generic network error (at least the bit about assigning the requested address). Since I am usually populating the sample repository manually anyway, this hasn&#8217;t been a big problem. But I am trying to be more diligent about making sure the rsync repository is up to date since I expect more people will be using it.<\/p>\n<p>Anyway, FATE growth plods on with 2 new tests tonight: <a href=\"http:\/\/fate.multimedia.cx\/index.php?test_spec=145\">nsv-demux<\/a> and <a href=\"http:\/\/fate.multimedia.cx\/index.php?test_spec=144\">real-14_4<\/a> (weird, I just realized that the db assigned that one ID 144 completely by coincidence).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some people have been checking out the new test client described in the previous post. So far, most of the questions I have received concern the format of the fate-test-cache.bz2 file downloaded from the FATE server. I admire that people are taking an interest in file format particulars &#8212; as you know, I encourage that. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-566","post","type-post","status-publish","format-standard","hentry","category-fate-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":2,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/566\/revisions"}],"predecessor-version":[{"id":4575,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/566\/revisions\/4575"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}