{"id":443,"date":"2011-09-18T14:00:31","date_gmt":"2011-09-18T13:00:31","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/"},"modified":"2011-09-18T14:00:31","modified_gmt":"2011-09-18T13:00:31","slug":"got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/","title":{"rendered":"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it"},"content":{"rendered":"<p>A new project just came in last week. We need to analyze Opera desktop builds (like <a href=\"http:\/\/mirror.nwc.is\/pub\/opera\/linux\/1151\/opera_11.51.1087_amd64.deb\" alt=\"Opera 11.51 for Linux\" rel=\"nofollow\">this one<\/a>) and extract all settings from them and populate a nice database.<\/p>\n<p>We can do that quite easily since Opera stores most of its settings as either <strong>.ini<\/strong> or <strong>bookmarks (.adr)<\/strong> files.<\/p>\n<p>In Perl land, we can use <a href=\"https:\/\/metacpan.org\/module\/Config::IniFiles\" rel=\"nofollow\">Config::IniFiles<\/a> and <a href=\"https:\/\/metacpan.org\/module\/Bookmarks::Parser\" rel=\"nofollow\">Bookmarks::Parser<\/a> to do most of this. We had to subclass <code>Config::IniFiles<\/code> to skip the non-standard <code>Opera Preferences file ...<\/code> first line, while <code>Bookmarks::Parser<\/code>, that includes an Opera-specific <code>Bookmarks::Opera<\/code> class, wasn&#39;t updated with all the latest Opera-specific properties we use in our Desktop builds.<\/p>\n<p>Working on our first prototype of this <strong>build cataloger tool<\/strong>, we &quot;patched&quot; <code>Bookmarks::Opera<\/code> to do what we needed, but the solution that makes the most long-term sense is to bring back some love upstream, so have our patches in the CPAN version of <code>Bookmarks::Parser<\/code>. It&#39;s what makes the most sense to me anyway, so I usually always try to get in touch with the current author or maintainer.<\/p>\n<p>That&#39;s what I did in this case too, with great results. I was given co-maintainer bit in less than 24 hours. Rest of the story is <a href=\"https:\/\/github.com\/cosimo\/Bookmarks-Parser\/commits\/master\" rel=\"nofollow\">in the github repository now<\/a>:<\/p>\n<ul>\n<li>Fixed a couple of <a href=\"https:\/\/github.com\/cosimo\/Bookmarks-Parser\/commit\/374d6680b9c9c7be39704451dbfe284e7b54e91e\" rel=\"nofollow\">bad bugs<\/a> in the Opera bookmarks parser<\/li>\n<li>Added test cases for those bugs, plus a sample of our current Desktop build bookmarks file<\/li>\n<\/ul>\n<p>Then, since I had a spare couple of hours during this weekend:<\/p>\n<ul>\n<li>I fixed all bugs ever reported in the RT queue (2 LOL), which were more than 5 years old<\/li>\n<li>Added some documentation love<\/li>\n<\/ul>\n<p>So, now we&#39;ll just package the stock CPAN version of <code>Bookmarks::Parser<\/code> instead of maintaining our own patched version, plus whoever attempts to use it to work with Opera files will be happier.<\/p>\n<p>Source code, as usual, up on <a href=\"https:\/\/github.com\/cosimo\/Bookmarks-Parser\" rel=\"nofollow\">https:\/\/github.com\/cosimo\/Bookmarks-Parser<\/a>, and <a href=\"https:\/\/metacpan.org\/module\/Bookmarks::Parser\" rel=\"nofollow\">CPAN is now at v0.04<\/a>.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A new project just came in last week. We need to analyze Opera desktop builds (like this one) and extract all settings from them and populate a nice database. We can do that quite easily since Opera stores most of its settings as either .ini or bookmarks (.adr) files. In Perl land, we can use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[272,274,276,275,271,49,63,273,74,50],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Got maintainership of Bookmarks::Parser, and gave back some Opera love to it - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it - Random hacking\" \/>\n<meta property=\"og:description\" content=\"A new project just came in last week. We need to analyze Opera desktop builds (like this one) and extract all settings from them and populate a nice database. We can do that quite easily since Opera stores most of its settings as either .ini or bookmarks (.adr) files. In Perl land, we can use [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-18T13:00:31+00:00\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it\",\"datePublished\":\"2011-09-18T13:00:31+00:00\",\"dateModified\":\"2011-09-18T13:00:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/\"},\"wordCount\":318,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"adr\",\"bookmarks\",\"Bookmarks::Parser\",\"boomarks.adr\",\"Config::IniFiles\",\"cpan\",\"github\",\"ini\",\"opera\",\"perl\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/\",\"name\":\"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2011-09-18T13:00:31+00:00\",\"dateModified\":\"2011-09-18T13:00:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/","og_locale":"en_US","og_type":"article","og_title":"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it - Random hacking","og_description":"A new project just came in last week. We need to analyze Opera desktop builds (like this one) and extract all settings from them and populate a nice database. We can do that quite easily since Opera stores most of its settings as either .ini or bookmarks (.adr) files. In Perl land, we can use [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/","og_site_name":"Random hacking","article_published_time":"2011-09-18T13:00:31+00:00","author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it","datePublished":"2011-09-18T13:00:31+00:00","dateModified":"2011-09-18T13:00:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/"},"wordCount":318,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["adr","bookmarks","Bookmarks::Parser","boomarks.adr","Config::IniFiles","cpan","github","ini","opera","perl"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/","name":"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2011-09-18T13:00:31+00:00","dateModified":"2011-09-18T13:00:31+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2011\/09\/got-maintainership-of-bookmarksparser-and-gave-back-some-opera-love-to-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"Got maintainership of Bookmarks::Parser, and gave back some Opera love to it"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/443"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}