{"id":59,"date":"2008-09-05T05:31:59","date_gmt":"2008-09-05T10:31:59","guid":{"rendered":"https:\/\/www.6waghs.net\/poojanblog\/?p=35"},"modified":"2008-09-05T05:31:59","modified_gmt":"2008-09-05T10:31:59","slug":"wikidpad-on-multiple-computers-synced-with-git","status":"publish","type":"post","link":"https:\/\/poojanblog.com\/blog\/2008\/09\/wikidpad-on-multiple-computers-synced-with-git\/","title":{"rendered":"WikidPad on multiple computers synced with Git"},"content":{"rendered":"<p>There was\u00c2\u00a0 apost over at <a href=\"http:\/\/groups.google.com\/group\/wikidpad-devel\/browse_thread\/thread\/d2ac24cfcd418136?hl=en\">wikidpad-devel | Google Groups<\/a>, where someone talked about using <a title=\"Drop box file sync and cloud storage\" href=\"http:\/\/www.getdropbox.com\" target=\"_blank\">Drop Box<\/a> to sync WikidPad databases. The person used the original_sqlite database format of <a title=\"WikidPad personal wiki\/notebook home page\" href=\"http:\/\/wikidpad.python-hosting.com\/\" target=\"_blank\">WikidPad<\/a>.<\/p>\n<p>I personally like the &#8220;Original SQLite&#8221; format for storage. This internal database has the following properties:<\/p>\n<blockquote><p>The data for your wiki is stored in plain text under the data<br \/>\ndirectory of the directory your Wiki config is stored in. There is one<br \/>\nfile per wiki word. The database to index the wiki is stored in the<br \/>\nfile &#8220;wikiovw.sli&#8221;.<\/p><\/blockquote>\n<p>Which is great, because I get all the features of SQLite search\/indexing, but all my pages are in a text format.<\/p>\n<p>The great thing about this setup is that I can use version-control to keep them in sync. I originally thought about using SubVersion. However, I decided to go with a distributed version control system instead. I took a hard look at both Mercurial and Git. I decided on Git since it does implicit renames rather than explicit renames. <span style=\"color: #999999;\">This means that I don&#8217;t have to write any hooks in WikidPad for when there is a rename\/copy of a page. Of course, I could do without this feature in Mercurial, and it would still work. It&#8217;s just nice that Git does provide the benefit of diff-based storage without the need for explicit copies\/renames\/moves.<\/span><\/p>\n<p>So, I keep two WikidPad notebooks going: a Work one, and a Personal one. The Personal one is on all the computers at home (Windows Laptop, Windows Desktop, FreeBSD server). It is also on a USB thumb drive. One of the features of git is that the entire repository comes along with a working copy. Let&#8217;s say I&#8217;m editing a WikidPad page at home that I already edited on another computer. I don&#8217;t have to worry about syncing. I can check in both changesets and merge later. <span style=\"color: #808080;\">This is a feature that Mercurial also has.<\/span><\/p>\n<p>That&#8217;s the great thing about text files: they work very well with version-control systems.<\/p>\n<p>I also use the ScrapBook extension from Firefox to archive\/annotate pages from the web. The extension saves an index of the pages in RDF format. RDF is a form of XML, which was touted as a better way to save data because it is text-based. Curiously, XML doesn&#8217;t work well with any merge tool I&#8217;ve come across. I&#8217;ll post about my descent down this rat-hole (and how I got around it) later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There was\u00c2\u00a0 apost over at wikidpad-devel | Google Groups, where someone talked about using Drop Box to sync WikidPad databases. The person used the original_sqlite database format of WikidPad. I personally like the &#8220;Original SQLite&#8221; format for storage. This internal database has the following properties: The data for your wiki is stored in plain text [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[31,67,69,76,78],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-desktop-computing","tag-git","tag-sync","tag-telecommute","tag-version-control","tag-wikidpad"],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":0,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"wp:attachment":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}