Ruby

{"content":{"id":1108,"title":"Daily Link: Lazy Enumerators In Ruby","body":"\u003cp\u003e\r\n\u003ca href=\"https://blog.saeloun.com/2019/10/23/ruby-lazy-enumerators.html\"\u003eFun with Ruby\u003c/a\u003e\r\n\u003c/p\u003e","publication_date":"2020-02-09T12:00:00.000Z","created_at":"2020-02-05T22:16:21.000Z","updated_at":"2020-02-05T22:16:21.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=daily_links\"\u003edaily_links\u003c/a\u003e"}

Daily Link: Lazy Enumerators In Ruby

{"content":{"id":886,"title":"Weekly Links - Chinese Etymology Edition","body":"\u003cul\u003e\r\n\u003cli\u003e\r\nWiktionary \u003ca href=\"https://en.wiktionary.org/wiki/%E9%A1%A7%E5%B7%A6%E5%8F%B3%E8%80%8C%E8%A8%80%E4%BB%96#Chinese\"\u003ehas some excellent etymologies\u003c/a\u003e. Edit: of course some clueless idiot edited the charm out of it before this post dropped. \u003ca href=\"https://en.wiktionary.org/w/index.php?title=%E9%A1%A7%E5%B7%A6%E5%8F%B3%E8%80%8C%E8%A8%80%E4%BB%96\u0026oldid=53867398\"\u003eHere's an archived copy\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nEvery time I turn on Chrome it informs me that \u003ca href=\"https://www.blog.google/products/chrome/saying-goodbye-flash-chrome/\"\u003ethey're completely killing off flash\u003c/a\u003e, as in, not even allowing unsupported versions to run. This means thousands of free browser games, from the time before micro-purchases, are gone forever. Mobile and HTML5 have failed to produce even one game as good as \u003ca href=\"http://www.xgenstudios.com/play/stick-rpg-2\"\u003eStick RPG 2\u003c/a\u003e, \u003ca href=\"http://gameinabottle.com/\"\u003eThe Gemcraft series\u003c/a\u003e, \u003ca href=\"http://twinbeard.com/frog-fractions/\"\u003eFrog Fractions\u003c/a\u003e, \u003ca href=\"https://www.kongregate.com/games/sarahnorthway/rebuild-2\"\u003eRebuild 2\u003c/a\u003e, \u003ca href=\"https://www.kongregate.com/games/juicybeast/burrito-bison\"\u003eThe Burrito Bison Games\u003c/a\u003e, or countless others. We accidentally gave the internet and mobile to about five or ten companies and now the future fucking sucks!\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nBut that bad Internet news is slightly offset by some good internet news: \u003ca href=\"http://whopayswriters.com/#/results\"\u003ewho pays writers\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nI love Rails, but I wish there were a better, more simple reference. In the meanwhile, \u003ca href=\"https://jdc.io/rails-migration-data-types-mysql-postgresql-sqlite\"\u003erails types and their underlying meanings in Mysql, Sqlite3, and PostgreSql\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://youtu.be/1X_Uui4wLvI\"\u003eThe Original Talking Moose\u003c/a\u003e, a forgotten classic Mac app.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.smithsonianmag.com/smart-news/where-did-the-phrase-hubba-hubba-come-from-724400/\"\u003e\"Where did the phrase hubba-hubba come from?\"\u003c/a\u003e\r\n\u003c/li\u003e\r\n\u003c/ul\u003e","publication_date":"2019-08-25T00:00:00.000Z","created_at":"2019-08-18T16:53:13.000Z","updated_at":"2019-08-25T12:23:03.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=language\"\u003elanguage\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=chinese\"\u003echinese\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=games\"\u003egames\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ror\"\u003eror\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=the_internet\"\u003ethe_internet\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=sql\"\u003esql\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=apple\"\u003eapple\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=retrocomputing\"\u003eretrocomputing\u003c/a\u003e"}

Weekly Links - Chinese Etymology Edition

{"content":{"id":284,"title":"18-09-30 Weekly Links","body":"\u003cimg src=\"/uploads/e5.jpg\" class=\"card-image\"\u003e\r\n\u003cbr\u003e\u003cbr\u003e\r\n\u003cul\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://media.giphy.com/media/ctaGpS23CCdxVrg8YS/giphy.gif\" target=\"_blank\"\u003eA huge steam engine\u003c/a\u003e decorating a mall in Portugal, in 'Norte Shopping', near Porto.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nSomething reminded me of \u003ca href=\"https://en.wikisource.org/wiki/The_Spell_of_the_Yukon_and_Other_Verses/The_Cremation_of_Sam_McGee\" target=\"_blank\"\u003eThe Cremation Of Sam McGee\u003c/a\u003e, which we all learned at a young age in school in Canada. Probably the finest peace of literature produced in Canada, for whatever that's worth.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\"A quote from Ricky Gervais in Home entertainment (Friday Review, page 23, April 12) which mentioned a Bob Dylan song allegedly entitled \u003ca href=\"https://www.theguardian.com/theguardian/2002/apr/15/correctionsandclarifications\" target=\"_blank\"\u003eIf You See A Sailor\u003c/a\u003e was mangled by an editing error. The track, from the album Blood On The Tracks, is called If You See Her Say Hello.\" (from the Guardian corrections page)\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://kineticdial.github.io/ruby_freeze_your_constants.html\" target=\"_blank\"\u003eFreeze your Ruby constants!\u003c/a\u003e\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nIn the late 90s/early 00s, Seanbaby would write dozens of paragraphs of hilarious comedy every day. He still comes out of his hidey hole once in a while to write NSFWish articles for Cracked. \u003ca href=\"http://www.cracked.com/blog/the-4-ridiculous-types-pickup-artist-guides/\" target=\"_blank\"\u003eHere's one of his funnier ones\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://i.imgur.com/o9qKz2b.gifv\" target=\"_blank\"\u003eA tropical storm in Vietnam\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003c/ul\u003e","publication_date":"2018-09-30T00:00:00.000Z","created_at":"2018-09-25T11:59:53.000Z","updated_at":"2018-09-29T13:18:28.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=portugal\"\u003eportugal\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=snow\"\u003esnow\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ice\"\u003eice\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=canada\"\u003ecanada\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=hello_sailor\"\u003ehello_sailor\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=music\"\u003emusic\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=romance\"\u003eromance\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=water\"\u003ewater\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=vietnam\"\u003evietnam\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=poetry\"\u003epoetry\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=twentieth_century\"\u003etwentieth_century\u003c/a\u003e"}

18-09-30 Weekly Links



  • A huge steam engine decorating a mall in Portugal, in 'Norte Shopping', near Porto.
  • Something reminded me of The Cremation Of Sam McGee, which we all learned at a young age in school in Canada. Probably the finest peace of literature produced in Canada, for whatever that's worth.
  • "A quote from Ricky Gervais in Home entertainment (Friday Review, page 23, April 12) which mentioned a Bob Dylan song allegedly entitled If You See A Sailor was mangled by an editing error. The track, from the album Blood On The Tracks, is called If You See Her Say Hello." (from the Guardian corrections page)
  • Freeze your Ruby constants!
  • In the late 90s/early 00s, Seanbaby would write dozens of paragraphs of hilarious comedy every day. He still comes out of his hidey hole once in a while to write NSFWish articles for Cracked. Here's one of his funnier ones.
  • A tropical storm in Vietnam.
{"content":{"id":53,"title":"18-06-10 Weekly Links","body":"\u003cul\u003e\r\n\u003cli\u003e\r\nHave you ever hoped your death would be painless, or at least meaningful? \u003ca href=\"https://www.sfgate.com/business/article/Man-dies-Mount-Everest-ASKfm-sherpa-cryptocurrency-12967630.php\" target=\"_blank\"\u003eMan dies in Mount Everest cryptocurrency marketing event\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://old.reddit.com/r/mapporncirclejerk/comments/8oqmd7/map_of_europe_if_the_french_spoke_danish_the/\" target=\"_blank\"\u003eMap of Europe if the French spoke Danish, the Germans spoke French, the Polish spoke German and the Danes barked\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nDave Chappelle and Spike Lee have both done it for bits, but there was a \u003ca href=\"http://www.weirduniverse.net/blog/comments/first_black_klan_member\" target=\"_blank\"\u003ereal black clan member\u003c/a\u003e in Calgary.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nOne element, pure css \u003ca href=\"https://css-tricks.com/1-element-css-rainbow-gradient-infinity/\" target=\"_blank\"\u003egradient infinity\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"http://katafrakt.me//2018/06/06/hidden-jewels-ruby-stdlib/\"\u003eHidden jewels of Ruby stdlib\u003c/a\u003e. Did you know complex numbers are part of the core language? Did you know stdlib has a good compression utility built in?\r\n\u003c/li\u003e\r\n\u003cli\u003e\u003ca href=\"https://www.destroyallsoftware.com/blog/2017/the-biggest-and-weirdest-commits-in-linux-kernel-git-history\" target=\"_blank\"\u003e\r\nThe Biggest and Weirdest Commits in Linux Kernel Git History\u003c/a\u003e - Deep git knowledge.\r\n\u003c/ul\u003e","publication_date":"2018-06-10T00:00:00.000Z","created_at":"2018-06-05T17:06:58.000Z","updated_at":"2018-06-18T16:23:31.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=hype\"\u003ehype\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=maps\"\u003emaps\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=css\"\u003ecss\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=my_hometown\"\u003emy_hometown\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e"}

18-06-10 Weekly Links

{"content":{"id":64,"title":"Viator - Very Simple Ruby Error Handling","body":"\u003cp\u003eEvery time I write Ruby code without Rails, I find myself rewriting the same error handling over and over again, so I made a simple gem called \u003ca href=\"https://bitbucket.org/SurdEgg/viator\" target=\"_blank\"\u003eViator\u003c/a\u003e.\u003c/p\u003e\r\n\u003cp\u003eIt's error handling without exceptions or monads, meant for behaviour that is correct and expected. \u003ca href=\"https://bitbucket.org/SurdEgg/viator\" target=\"_blank\"\u003eCheck it out\u003c/a\u003e.\u003c/p\u003e","publication_date":"2018-06-08T03:03:00.000Z","created_at":"2018-06-08T03:03:10.000Z","updated_at":"2018-06-18T16:28:08.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=errors\"\u003eerrors\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=viator\"\u003eviator\u003c/a\u003e"}

Viator - Very Simple Ruby Error Handling

Every time I write Ruby code without Rails, I find myself rewriting the same error handling over and over again, so I made a simple gem called Viator.

It's error handling without exceptions or monads, meant for behaviour that is correct and expected. Check it out.

{"content":{"id":16,"title":"18-05-19 Weekly Links","body":"\u003cbr\u003e\r\n\u003cul\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.theguardian.com/uk-news/ng-interactive/2018/may/14/lives-of-grenfell-tower-victims-fire\" target=\"_blank\"\u003eObituaries by loved ones\u003c/a\u003e for every Grenfell Tower victim.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.sicpers.info/2018/05/on-null/\" target=\"_blank\"\u003eOn Null\u003c/a\u003e\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://www.bbc.com/news/amp/magazine-38261956\" target=\"_blank\"\u003eThe story\u003c/a\u003e of an irl Cold War spy. This is the first time in years that I've seen something from BBC news that isn't about a tweet.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\n\u003ca href=\"https://medium.com/square-corner-blog/rubys-new-exception-keyword-arguments-4d5bbb504d37\" target=\"_blank\"\u003eRuby's new exception keyword arguments\u003c/a\u003e look pretty neat, if you can find the article in the middle of all the Medium sticky spam.\r\n\u003c/li\u003e\r\n\u003cli\u003e\r\nI'd heard of the Stuxnet worm, and knew it was strange and sophisticated, \u003ca href=\"https://www.quora.com/What-is-the-most-sophisticated-piece-of-software-code-ever-written/answer/John-Byrd-2\" target=\"_blank\"\u003ebut I had no idea\u003c/a\u003e.\r\n\u003c/li\u003e\r\n\u003c/ul\u003e","publication_date":"2018-05-19T00:00:00.000Z","created_at":"2018-05-15T02:20:22.000Z","updated_at":"2018-06-18T17:26:36.000Z","user_id":1,"rating":null},"tags":"\u003ca class=\"changeable-title\" href=\"/q?tag=weekly_links\"\u003eweekly_links\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=programming\"\u003eprogramming\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=irl\"\u003eirl\u003c/a\u003e \u003ca class=\"changeable-title\" href=\"/q?tag=ruby\"\u003eruby\u003c/a\u003e"}

18-05-19 Weekly Links