{"id":16,"date":"2007-08-06T12:55:32","date_gmt":"2007-08-06T09:55:32","guid":{"rendered":"http:\/\/vpv.kapsi.fi\/blog\/2007\/08\/06\/weekly-report-week-30-bugs-connection-troubles-assembly\/"},"modified":"2007-08-06T12:56:13","modified_gmt":"2007-08-06T09:56:13","slug":"weekly-report-week-30-bugs-connection-troubles-assembly","status":"publish","type":"post","link":"https:\/\/vpv.kapsi.fi\/blog\/2007\/08\/weekly-report-week-30-bugs-connection-troubles-assembly\/","title":{"rendered":"Weekly report: week 31, bugs, connection troubles, Assembly"},"content":{"rendered":"<p>Last week didn&#8217;t go actually according to my plans, but I did get some major improvements done. I improved repository metadata handling a lot, the code is much cleaner and should also work better now. I did a great deal of testing on updates handling, it seems to be working now.<\/p>\n<p>Then I hit two serious problems with MoinMoin: XML-RPC PutPage and path problems. For some reason the MM server process and the man\/info importer process went into some kind of deadlock at random times when running the import. The server was waiting on accept() and the importer on recv(). I tried to do some debugging etc. but I never figured out exactly what was wrong. So I decided to port my importer to use the PageEditor class in Moin. That was a big change, but I&#8217;m happy with the result. This also solved the other problems I had with XML-RPC, mainly the mysterious idle times when the importing kind of stalled for 30 seconds per every page import. I suspect all these things have something to do with network\/socket stuff, but I just don&#8217;t have the time to start debugging all this when I have more important things to implement here&#8230;<\/p>\n<p>So I gained speed, but I also lost something when getting rid of XML-RPC. Mainly I lost the ability to run the importer and all the man -> DocBook XML etc. conversions on a different host than the actual wiki. But since a single man page import now takes about 0.7 seconds and it took about 30 seconds with XML-RPC, it&#8217;s all worth it.<\/p>\n<p>When doing the porting to PageEditor, I kept having some really weird problems with python import clauses. Simply, many of them didn&#8217;t work. I spent about a day trying to find out what was wrong and I eventually even found the reason: A relative path was added to sys.path which caused all the problems, since I had a bit of a different setup than the default. So I fixed it with adding an absolute path instead, which took something like maybe 20 characters of python, after one day of work \ud83d\ude00<\/p>\n<p>In Friday I travelled from my parent&#8217;s place to Helsinki, since our student organization visited <a href=\"http:\/\/en.wikipedia.org\/wiki\/Assembly_%28demo_party%29\">Assembly<\/a>. That was fun, but I had no Internet access at all from my student apartment at Helsinki during the whole weekend, so any coding I could do was for a couple of hours at Assembly. Thanks a lot <a href=\"http:\/\/www.teliasonera.com\/\">Sonera<\/a>! Even with flaky Internet connection, I could work for about 40 hours last week. Btw, iirc, the 4k intro at Assembly was won with Python \ud83d\ude42<\/p>\n<p>This week I&#8217;ll probably have to <a href=\"http:\/\/wordpress.org\/development\/2007\/08\/wordpress-222-and-2011\/\">update my blog<\/a>, then I&#8217;ll do some testing with real RPM repositories now that the importer is ported to PageEditor. After all that I&#8217;ll hopefully finally get to working with the DocBook branch. Looking forward to that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week didn&#8217;t go actually according to my plans, but I did get some major improvements done. I improved repository metadata handling a lot, the code is much cleaner and should also work better now. I did a great deal of testing on updates handling, it seems to be working now. Then I hit two [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,6,3],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-fedora","category-moinmoin","category-personal","category-summercode"],"_links":{"self":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}