{"id":1849,"date":"2008-07-18T23:35:02","date_gmt":"2008-07-19T02:35:02","guid":{"rendered":"http:\/\/www.hoogervorst.ca\/arthur\/?p=1849"},"modified":"2008-07-19T09:05:18","modified_gmt":"2008-07-19T12:05:18","slug":"go-version-control-yourself","status":"publish","type":"post","link":"http:\/\/www.hoogervorst.ca\/arthur\/?p=1849","title":{"rendered":"Go version-control yourself."},"content":{"rendered":"<p><span class=\"dropcap\">S<\/span>o, <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?attachment_id=1850\" rel=\"attachment wp-att-1850\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright\" src=\"http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/busker-150x99.jpg\" alt=\"Everybody can jump like this\" title=\"A Busker\" width=\"150\" height=\"99\" class=\"size-thumbnail wp-image-1850\" srcset=\"http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/busker-150x99.jpg 150w, http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/busker-300x199.jpg 300w, http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/busker.jpg 926w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a> I was going to give a rant about the painful upgrade to WordPress 2.6, but I&#8217;ll leave it at that. Wait. Version control has been added to WordPress, which means that you can finally revert to your previous 42-word entry on your <em>mission-critical<\/em> blog. I can&#8217;t wait for blog software that supports branching and merging. Oh: and looking through the WordPress tables, it looks like complete copies of entries are stored in the wp_post table. <em>Hello there, meet bloated tables<\/em> <sup>1<\/sup>.\n<\/p>\n<p>On the good side, I&#8217;ve been out a lot shooting (apparent) random photos of city life. I found out that my favourite photos aren&#8217;t necessarily the ones that I have published online: the very best ones I shot, are actually portrait photos of people. For example, I truly despise making photos of high-action events: There&#8217;s always people walking in front, or, during the composition, you find out that the best part of the whole event just went by in a fraction of a metric <em>microsecond<\/em><a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?attachment_id=1851\" rel=\"attachment wp-att-1851\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft\" src=\"http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/frog_1-150x99.jpg\" alt=\"Frog\" title=\"Frog\" width=\"150\" height=\"99\" class=\"size-thumbnail wp-image-1851\" srcset=\"http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/frog_1-150x99.jpg 150w, http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/frog_1-300x199.jpg 300w, http:\/\/www.hoogervorst.ca\/arthur\/wp-content\/uploads\/2008\/07\/frog_1.jpg 926w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>  and that you just missed out on the World Press Photo of the Year Finals. This is of course different than making portraits, where you can juggle around and play around with the depth of field and lighting. Particularly, lighting.\n<\/p>\n<p>The drawback of portraits is that you can&#8217;t publish them without particular consent from the photographed subjects. There&#8217;s privacy and there&#8217;s privacy. That is, unless the subject  is an animal that can&#8217;t talk back. Consider yourself lucky, then.\n<\/p>\n<p>Meh.\n<\/p>\n<div class=\"reference\">\n<p><em>Update: <\/em> 1. The upgrade was terribly slow, which I think is because the update script probably had to add new columns to tables.<\/p>\n<p> 2. WordPress now adds captions to thumbnails, which completely destroys the existing CSS-stylesheet<\/p>\n<p> 3. More details on the excess waste after the fold.\n<\/p><\/div>\n<p><!--more--><\/p>\n<p>Slightly more details about the extra space. A query on all revisions for the very latest post:\n<\/p>\n<p><code>select ID, LENGTH(post_content), post_type, post_parent, post_modified<br \/>\nfrom wp_posts<br \/>\nwhere post_parent =<br \/>\n  (select MAX(ID) from wp_posts where post_type = 'post')<br \/>\nand post_type = 'revision' order by post_modified DESC;<br \/>\n<\/code>\n<\/p>\n<p>I get:<br \/>\n<code>+------+----------------------+-----------+-------------+---------------------+<br \/>\n| ID   | LENGTH(post_content) | post_type | post_parent | post_modified       |<br \/>\n+------+----------------------+-----------+-------------+---------------------+<br \/>\n| 1854 |                 2490 | revision  |        1849 | 2008-07-19 00:08:48 |<br \/>\n| 1870 |                 2449 | revision  |        1849 | 2008-07-19 00:05:44 |<br \/>\n| 1868 |                 2363 | revision  |        1849 | 2008-07-18 23:55:47 |<br \/>\n| 1869 |                 2363 | revision  |        1849 | 2008-07-18 23:55:47 |<br \/>\n| 1867 |                 2363 | revision  |        1849 | 2008-07-18 23:43:30 |<br \/>\n| 1866 |                 2363 | revision  |        1849 | 2008-07-18 23:43:29 |<br \/>\n| 1864 |                 2362 | revision  |        1849 | 2008-07-18 23:41:56 |<br \/>\n| 1865 |                 2362 | revision  |        1849 | 2008-07-18 23:41:56 |<br \/>\n| 1863 |                 2063 | revision  |        1849 | 2008-07-18 23:38:51 |<br \/>\n| 1862 |                 2063 | revision  |        1849 | 2008-07-18 23:38:50 |<br \/>\n| 1861 |                 2064 | revision  |        1849 | 2008-07-18 23:38:04 |<br \/>\n| 1860 |                 2064 | revision  |        1849 | 2008-07-18 23:38:03 |<br \/>\n| 1859 |                 2064 | revision  |        1849 | 2008-07-18 23:37:24 |<br \/>\n| 1858 |                 2064 | revision  |        1849 | 2008-07-18 23:37:23 |<br \/>\n| 1856 |                 2026 | revision  |        1849 | 2008-07-18 23:36:44 |<br \/>\n| 1857 |                 2026 | revision  |        1849 | 2008-07-18 23:36:44 |<br \/>\n| 1855 |                 2220 | revision  |        1849 | 2008-07-18 23:35:03 |<br \/>\n| 1853 |                 2220 | revision  |        1849 | 2008-07-18 23:35:02 |<br \/>\n| 1852 |                 2213 | revision  |        1849 | 2008-07-18 23:34:59 |<br \/>\n+------+----------------------+-----------+-------------+---------------------+<br \/>\n19 rows in set (0.01 sec)<br \/>\n<\/code>\n<\/p>\n<p>So, yeah, that&#8217;s kind of a waste of space for (originally) a simple post of about 2000 characters. Also, guess which IDs are the &#8216;autosave&#8217; entries (currently, while I&#8217;m editing, 5 extra entries were added to the wp_post table). I&#8217;d be really surprised when people start to notice that they&#8217;re running out of hosting space.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I was going to give a rant about the painful upgrade to WordPress 2.6, but I&#8217;ll leave it at that. Wait. Version control has been added to WordPress, which means that you can finally revert to your previous 42-word &hellip; <a href=\"http:\/\/www.hoogervorst.ca\/arthur\/?p=1849\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[301],"tags":[293,302,577],"_links":{"self":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/1849"}],"collection":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1849"}],"version-history":[{"count":0,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/1849\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1849"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}