{"id":16767,"date":"2010-02-19T06:55:45","date_gmt":"2010-02-19T13:55:45","guid":{"rendered":"http:\/\/hill-kleerup.org\/blog\/?p=16767"},"modified":"2010-02-19T06:55:45","modified_gmt":"2010-02-19T13:55:45","slug":"more-in-the-unblogged-bits-saga","status":"publish","type":"post","link":"https:\/\/hill-kleerup.org\/blog\/2010\/02\/19\/more-in-the-unblogged-bits-saga.html","title":{"rendered":"More in the &#8220;Unblogged Bits&#8221; saga"},"content":{"rendered":"<p><a href=\"https:\/\/hill-kleerup.org\/blog\/2010\/02\/08\/where-have-all-the-unblogged-bits-gone.html\">When last we left &#8220;Unblogged Bits,&#8221;<\/a> I was trying to figure out why (a) sometimes it didn&#8217;t fire off, (b) other times it fired off multiple times, (c) it was firing off at both 5 p.m. and 6 p.m. for a prolonged period.\u00a0 &#8220;It&#8221; being a <a href=\"http:\/\/blog.econtech.selfip.org\/2009\/02\/update-to-google-reader-wordpress-plugin\/\">specially-modified<\/a> (for Google Reader and including for PHP5) version of the Digest Post plug-in for WordPress.<\/p>\n<p>Well, among the things I did during that exercise is some very light poking into the <em>wp-cron <\/em>setup, which is essentially a process timer that WordPress maintains (indepdendent &#8212; or as a higher level, perhaps &#8212; of the <em>cron <\/em>setup on the server.<\/p>\n<p>(If your eyes are glazing over now, you can skip onto the next post.\u00a0 It&#8217;s okay.\u00a0 I write this stuff down mostly for my own benefit, so I remember it in a month.)<\/p>\n<p>I loaded in some plug-ins around that whole process:<\/p>\n<blockquote><p><img decoding=\"async\" style=\"vertical-align: middle;\" title=\"Cron GUI 1.01\" src=\"..\/wp-content\/plugins\/wp-pluginsused\/images\/plugin_active.gif\" alt=\"Cron GUI 1.01\" \/> <strong><a title=\"Cron GUI  1.01\" href=\"http:\/\/simonwheatley.co.uk\/wordpress\/cron-gui\">Cron GUI 1.01<\/a><\/strong><br \/>\n<strong>\u00bb Simon Wheatley (<a title=\"Simon Wheatley\" href=\"http:\/\/simonwheatley.co.uk\/wordpress\/\">url<\/a>)<\/strong><br \/>\nSee what\u2019s in the WP Cron  schedule.<\/p>\n<p><img decoding=\"async\" style=\"vertical-align: middle;\" title=\"WP-Crontrol 1.0\" src=\"..\/wp-content\/plugins\/wp-pluginsused\/images\/plugin_active.gif\" alt=\"WP-Crontrol 1.0\" \/> <strong><a title=\"WP-Crontrol  1.0\" href=\"http:\/\/www.scompt.com\/projects\/wp-crontrol\">WP-Crontrol 1.0<\/a><\/strong><br \/>\n<strong>\u00bb Edward Dale (<a title=\"Edward Dale\" href=\"http:\/\/www.scompt.com\/\">url<\/a>)<\/strong><br \/>\nWP-Crontrol  lets you take control over what\u2019s happening in the WP-Cron system.  See  my series on Taking control of WP-Cron using WP-Crontrol for usage  ideas.<\/p><\/blockquote>\n<p>Cron GUI added a Tools\/Whats In Cron menu entry to my WP Admin interface.\u00a0 It shows the various wp-cron jobs lined up.\u00a0 And, yup, after the twice-daily checks for WP updates and plug-in updates and theme updates &#8212; there are some entries for Digest Post.<\/p>\n<p>Um &#8230; many entries.\u00a0 For some reason, it&#8217;s firing off 5 iterations of it at 19:00 (7 pm) and another 5 iterations at 20:00 (8 pm).\u00a0 Why so many iterations?\u00a0 No idea.<\/p>\n<div class=\"img-shadow-right\"><img decoding=\"async\" style=\"width: 300px; height: 234px;\" title=\"Maybe I can fix your site, too!\" src=\"https:\/\/hill-kleerup.org\/blog\/wp\/wp-content\/uploads\/2010\/01\/old-computer-300x234.jpg\" alt=\"imgTag\" \/><\/div>\n<p>And why 7 and 8 pm?\u00a0 I thought it was going off at 5 and 6 pm.\u00a0 But remember that the server this site is hosted on is back on the East Coast.\u00a0 No matter what I put in as the time zone in the WP admin screen, PHP goes by the time zone on the server.\u00a0 I think, now that I&#8217;m on PHP 5, I can add in a function to set the time zone, but that&#8217;s a hack for another day.<\/p>\n<p>And because it was firing off twice a day, and catching anything I&#8217;d shared from GReader for the second go-around, I was ending up with two posts titled, &#8220;Unblogged Bits from Tuesday, 19 February 2010.&#8221;\u00a0 Which, given the way this has been sometimes screwed up, meant (I&#8217;m sure) that some folks thought the two were duplicates and skipped over one or other, missing out on all the hilarity which is my GReader share.<\/p>\n<p>And that&#8217;s why earlier this week I changed the title that Digest Post generates (hacking the PHP code directly, as there&#8217;s no admin interface) to include the time.<\/p>\n<p>And that&#8217;s why, taken all together, the posts were coming out with a title that was two hours later (EST) than the post (MST).<\/p>\n<p>*sigh*<\/p>\n<p>Anyway, once the behavior had become predictable, Eris had to have her fun, so last night the darned thing didn&#8217;t fire off.\u00a0 At 5 or at 6 (MST).<\/p>\n<p>I went in last night to look at the wp-cron jobs, and fired off the Tools\/Crontrol add-on.\u00a0 And &#8230; hey, not only does it list the queued jobs, but has an interface to cancel each, or to &#8220;Do Now.&#8221;<\/p>\n<p>(Note: Crontrol also adds a Settings\/Crontrol entry, which lets you add a new wp-cron schedule, rather than just Daily, Hourly, or the WP-defined Twice-Daily.\u00a0 I had only seen that one, not the Tools one, which looks like it obsoletes my need for Cron GUI.\u00a0 But I digress.)<\/p>\n<p>So I clicked on &#8220;Do Now&#8221; for one of the Digest Post entries for later today.\u00a0 And it executed.\u00a0 And an Unblogged Bits entry was generated.\u00a0 Hot diggety.<\/p>\n<p>And I tried it again this morning, and it worked, too (albeit with the goofy timestamp; I have to see what I can\u00a0 do about that).<\/p>\n<p>This actually solves, I think, one of the problems I was having with this whole mess, i.e., Google Reader only generates RSS for the last 20 entries shared.\u00a0 So when Digest Post was running at 5 pm, if I had done more than 20 shares since the previous evening, they were never published.<\/p>\n<p>Now, if I feel that I&#8217;ve done a lot already, I can do an interim Digest Post, manually, and have it post everything to that point in time.\u00a0 (Mostly &#8212; there&#8217;s a lag in the generation of the RSS feed from GReader to Feedburner.)<\/p>\n<p>So &#8230; expect (maybe, if I think of it) more, smaller Unblogged Bits entries scattered at different times.<\/p>\n<p>And, when it breaks in some exciting and new fashion, now I have notes on the most recent thing I did.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When last we left &#8220;Unblogged Bits,&#8221; I was trying to figure out why (a) sometimes it didn&#8217;t fire off, (b) other times it fired off multiple times, (c) it was firing off at both 5 p.m. and 6 p.m. for a prolonged period.\u00a0 &#8220;It&#8221; being a specially-modified (for Google Reader and including for PHP5) version &hellip; <a href=\"https:\/\/hill-kleerup.org\/blog\/2010\/02\/19\/more-in-the-unblogged-bits-saga.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;More in the &#8220;Unblogged Bits&#8221; saga&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[55],"tags":[],"class_list":["post-16767","post","type-post","status-publish","format-standard","hentry","category-blogging-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":17069,"url":"https:\/\/hill-kleerup.org\/blog\/2010\/04\/08\/wherein-dave-shows-off-his-1337-cron-skillz.html","url_meta":{"origin":16767,"position":0},"title":"Wherein Dave shows off his 1337 Cron Skillz","author":"***Dave","date":"Thu 8-Apr-10 9:53am","format":false,"excerpt":"Well, not exactly.\u00a0 But I did actually do something modestly clever yesterday, and I want to either brag about it or document it so I can do it again some day.\u00a0 My blog is, of course, my long-term memory ... So this is all related to the \"Unblogged Bits\" saga\u2026","rel":"","context":"In &quot;Blogging - Technical&quot;","block_context":{"text":"Blogging - Technical","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/blogging-technical"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hill-kleerup.org\/blog\/wp\/wp-content\/uploads\/2010\/01\/old-computer-300x234.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16648,"url":"https:\/\/hill-kleerup.org\/blog\/2010\/02\/03\/it-is-in-fact-possible-to-share-too-much.html","url_meta":{"origin":16767,"position":1},"title":"It is, in fact, possible to Share too much","author":"***Dave","date":"Wed 3-Feb-10 5:08pm","format":false,"excerpt":"I've been researching and struggling with a problem in my Unblogged Bits.\u00a0 I noticed the other day that ... not everything I'd Shared in Google Reader was showing up in my nightly post. Hmmm. Presently what happens is that there's an Atom feed from Google Reader for my Shared items\u2026","rel":"","context":"In &quot;Blogging - Technical&quot;","block_context":{"text":"Blogging - Technical","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/blogging-technical"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":29522,"url":"https:\/\/hill-kleerup.org\/blog\/2012\/08\/14\/googleblog-update.html","url_meta":{"origin":16767,"position":2},"title":"Google+Blog Update","author":"***Dave","date":"Tue 14-Aug-12 8:22am","format":false,"excerpt":"So for about a month my WordPress blog was not getting my Google+ entries automatically posted to it (via the invaluable Google+Blog plug-in by +Daniel Treadwell\u00a0). \u00a0Instead, I had to do manual consolidation posts of each day's items, which was time-consuming and irksome.Well, after several delays and my getting the\u2026","rel":"","context":"In &quot;~PlusPosts&quot;","block_context":{"text":"~PlusPosts","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/plusposts"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16283,"url":"https:\/\/hill-kleerup.org\/blog\/2009\/11\/25\/changing-how-i-do-the-unblogged-bits.html","url_meta":{"origin":16767,"position":3},"title":"Changing how I do the Unblogged Bits","author":"***Dave","date":"Wed 25-Nov-09 9:50am","format":false,"excerpt":"So as noted elsewhere, I'm testing changes in how I'm generating the \"Unblogged Bits\" parts of my blog, where I archive here the links I share in Google Reader (and the copious notes from them). The previous tool I've been using is a WP plugin called Digest Post, with mods\u2026","rel":"","context":"In &quot;Blogging - Technical&quot;","block_context":{"text":"Blogging - Technical","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/blogging-technical"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19762,"url":"https:\/\/hill-kleerup.org\/blog\/2011\/01\/05\/unblogged-bits-wed-5-jan-11-1630.html","url_meta":{"origin":16767,"position":4},"title":"Unblogged Bits (Wed.  5-Jan-11 1630)","author":"***Dave","date":"Wed 5-Jan-11 4:30pm","format":false,"excerpt":"Links (most recent first) that caught my eye, but did not warrant full-blown blog entries .... Miami Man Murders Two Because They Had \u201cHomosexual Tendencies\u201d - Sadly, a lot of folks will consider that, if not a fine excuse, at least an understandable one. Obama Pulls Plug on Elderly End-of-Life\u2026","rel":"","context":"In &quot;Potpourri&quot;","block_context":{"text":"Potpourri","link":"https:\/\/hill-kleerup.org\/blog\/category\/potpourri"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16697,"url":"https:\/\/hill-kleerup.org\/blog\/2010\/02\/08\/where-have-all-the-unblogged-bits-gone.html","url_meta":{"origin":16767,"position":5},"title":"Where have all the Unblogged Bits gone &#8230;?","author":"***Dave","date":"Mon 8-Feb-10 10:48am","format":false,"excerpt":"\"... long time posting ...?\" For some reason, after having mentioned it the other day, the Digest Post plug-in stopped working after Friday's edition. Shy little thing, I guess. If it doesn't restart tonight, I'll have to spank it, though.\u00a0 Because ... Hang on a sec ... AHA! My server\u2026","rel":"","context":"In &quot;Blogging - Technical&quot;","block_context":{"text":"Blogging - Technical","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/blogging-technical"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/16767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/comments?post=16767"}],"version-history":[{"count":0,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/16767\/revisions"}],"wp:attachment":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/media?parent=16767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/categories?post=16767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/tags?post=16767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}