{"id":1250,"date":"2011-02-25T13:18:27","date_gmt":"2011-02-25T18:18:27","guid":{"rendered":"http:\/\/mattclare.ca\/blog\/?p=1250"},"modified":"2011-02-25T13:18:27","modified_gmt":"2011-02-25T18:18:27","slug":"rimcount-com-rrrreturns","status":"publish","type":"post","link":"https:\/\/mattclare.ca\/blog\/2011\/02\/25\/rimcount-com-rrrreturns\/","title":{"rendered":"RimCount.com RRRR&#8217;eturns"},"content":{"rendered":"<p><a href=\"http:\/\/mattclare.ca\/blog\/wp-content\/uploads\/2011\/02\/RimCount.com-Track-coffee-rims-via-Twitter.png\"><img loading=\"lazy\" src=\"http:\/\/mattclare.ca\/blog\/wp-content\/uploads\/2011\/02\/RimCount.com-Track-coffee-rims-via-Twitter-167x300.png\" alt=\"\" title=\"Preview of Rim Count .com - Track coffee rims via Twitter\" width=\"167\" height=\"300\" class=\"alignright size-medium wp-image-1284\" srcset=\"https:\/\/mattclare.ca\/blog\/wp-content\/uploads\/2011\/02\/RimCount.com-Track-coffee-rims-via-Twitter-167x300.png 167w, https:\/\/mattclare.ca\/blog\/wp-content\/uploads\/2011\/02\/RimCount.com-Track-coffee-rims-via-Twitter-571x1024.png 571w, https:\/\/mattclare.ca\/blog\/wp-content\/uploads\/2011\/02\/RimCount.com-Track-coffee-rims-via-Twitter.png 793w\" sizes=\"(max-width: 167px) 100vw, 167px\" \/><\/a>My little hobby web site for tracking your luck with a large Canaidan coffee and donuts chain&#8217;s roll-up promotion is back!<\/p>\n<p>My previous attempt was Drupal-based, and required an account.  I was never very happy with the account requirement, and played with it being a facebook App but ultimately took the site down (<a href=\"http:\/\/mattclare.ca\/blog\/2010\/02\/24\/rimcoun\/\">described in this blog post<\/a>).  This time there&#8217;s no need for an account as it&#8217;s Twitter-based.  This also helps with the promotional side of things.<\/p>\n<p>I had hoped to partner with the www.rimrollerapp.com &#8211; but that Twitter based iPhone App needed a technical update, and for other reasons, it&#8217;s now removed from the App Store.  It&#8217;s too bad, but you don&#8217;t need anything beyond a Twitter account to enjoy http:\/\/RimCount.com.<\/p>\n<p>Simply tweet with the tag #RollUpTheRim to have your tweet listed on http:\/\/RimCount.com.  The site tracks results posted to Twitter in the format of wins\/rims (and unofficially, a few other formats).<\/p>\n<p>You can visit the main page for the latest, the scoreboard for the best and worst ratios http:\/\/rimcount.com\/scoreboard.  There&#8217;s also a rapidly growing list of Twitter users who have tweeted with the hashtag #RollUpTheRim  http:\/\/rimcount.com\/list <\/p>\n<p>The site is no longer Drupal-based, but some of the PHP from the Drupal module I wrote and the MySQL data structure were migrated to the new site which is otherwise built from scratch.<\/p>\n<p>As many developers have indicated, working with Twitter.com&#8217;s non-standard API is quite a joy.  I was able to get things rolling (pun intended) quite quickly based on the simple twitter searches through Twitter&#8217;s search service&#8217;s RSS feed and looking-up someone&#8217;s Twitter details via an XML call is easy too.<\/p>\n<p>The hardest part has been writing the PHP to search a tweet for a ratio.  Challenges have gone beyond simply adapting for ratios like &#8220;x\/x&#8221; or &#8220;x for x&#8221; or &#8220;x-x&#8221;, etc.  My original work only work with ratios under ten, then when I adapted it I had to protect agains numbers that were near by but not part of the ratio.  I&#8217;m only 90% I&#8217;ve stopped mathematically impossible ratios and ratios like &#8220;3-3 cups were losers!&#8221;.  The struggle continues.  What I have done, like Twitter.com, I&#8217;ve added an option from the admin side to disregard a tweet or twitter user.<\/p>\n<p>If you have a Twitter account please tweet your results with the large Canaidan coffee and donuts chain&#8217;s roll-up promotion and check http:\/\/RimCount.com to see how your results compare to others&#8217;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My little hobby web site for tracking your luck with a large Canaidan coffee and donuts chain&#8217;s roll-up promotion is back! My previous attempt was Drupal-based, and required an account. I was never very happy with the account requirement, and played with it being a facebook App but ultimately took the site down (described in&hellip; <a class=\"continue\" href=\"https:\/\/mattclare.ca\/blog\/2011\/02\/25\/rimcount-com-rrrreturns\/\">Continue Reading<span> RimCount.com RRRR&#8217;eturns<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[47,1,37,18,3,43,52],"tags":[],"_links":{"self":[{"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/posts\/1250"}],"collection":[{"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/comments?post=1250"}],"version-history":[{"count":7,"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/posts\/1250\/revisions"}],"predecessor-version":[{"id":1289,"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/posts\/1250\/revisions\/1289"}],"wp:attachment":[{"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/media?parent=1250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/categories?post=1250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattclare.ca\/blog\/wp-json\/wp\/v2\/tags?post=1250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}