Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Semi-standard "slash pages" you might like to explore:
    • /about
    • /blank
    • /blogroll
    • /colophon
    • /contact
    • /cv
    • /license
    • /postcards
    • /privacy
    • /salary
    • /shh
    • /slashes
    • /stats
    • /subscribe
    • /where
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

Tag: ruby

  • Working with an old codebase today, I moved a method from one file to another. CI was happy.

    Then I realised the method didn't have any automated tests, so I wrote one. It turns out its entire (new) file didn't have any, so my change would improve test coverage. Nice.

    But it didn't. CI complained that test coverage had dropped. Wait, what? All I did was move some code and add a unit test.

    Then I realised that the coverage analysis tool was only counting files that actually contained any tested code. By adding a test to part of a previously-untested file, that file became part of the scored codebase. Uh-oh.

    Looked deeper. Turns out the code coverage tool was also counting the test files themselves as being part of the code-under-test.

    Fixed all of the above. Code coverage score dropped by about 40%. ๐Ÿ˜ฑ

    Now I've got more work to do.

    Happy Friday. Check what your coverage tool is inspecting, folks.

    • Note
    • 1 comment
    • posted 5 June, 2026
  • Image of an F1 car, half in a low, blocky resolution; half in full resolution.

    BBC News RSS... with full-size thumbnails!

    A user of my Improved BBC News Feeds reached out to suggest that I upgrade the resolution of the thumbnail images. Turns out this was a quick win: my noodles hadn't even cooled before I finished.

    Read more - about 3 minutes (581 words)

    • Article
    • posted 22 April, 2026
  • Some days, developing Three Rings is about being hunched over a keyboard alone in the middle of the night, swearing at Rubygem incompatibilities.

    But just ocassionally it's about getting together in beautiful places with some of the most dedicated geeks I know... to swear about Rubygem incompatibilities.

    Either way, a walk in the garden can lead to the insight that gets you to the solution.

    Full image of A beautiful country house with a huge garden.
    Alt

    A beautiful country house with a huge garden.

    • Note
    • posted 30 March, 2026
  • Grid of four by four words, each with an associated pair of letters.

    Did I Cheat?

    I solved a puzzle geocache in an unconventional way: by writing a program to permute all the possible solutions and check them for me. Was that cheating? I can see arguments either way...

    Read more - about 4 minutes (820 words)

    • Article
    • 8 comments
    • posted 21 March, 2026
  • Highlight of my workday was debugging an issue that turned out to be nothing like what the reporter had diagnosed.

    The report suggested that our system was having problems parsing URLs with colons in the pathname, suggesting perhaps an encoding issue. It wasn't until I took a deep dive into the logs that I realised that this was a secondary characteristic of many URLs found in customers' SharePoint installations. And many of those URLs get redirected. And SharePoint often uses relative URLs when it sends redirections. And it turned out that our systems' redirect handler... wasn't correctly handling relative URLs.

    It all turned into a hundred line automated test to mock SharePoint and demonstrate the problem... followed by a tiny two-line fix to the actual code. And probably the most-satisfying part of my workday!

    • Note
    • 2 comments
    • posted 28 January, 2026
  • Screenshot from OutRun (1986), showing a red Ferrari Testarossa down the centre of a six-lane beachside highway at 293kph.

    Nostalgia, Music, and Computers

    It turns out that I get nostalgic about technology in the same way as I get nostalgic about music. Here's some things that take me right back to being nine, eleven, thirteen and fifteen years old.

    Read more - about 9 minutes (2019 words)

    • Article
    • with an accompanying podcast
    • posted 15 January, 2026
  • Diagram showing how GitHub Actions request and receive an RSS feed, push an update to Whapi, which pushes the update to WhatsApp.

    Pushing RSS to WhatsApp (for free?)

    RSS remains the gold standard for subscribing to Web content... but WhatsApp Channels/Newsletters provide another interesting opportunity for syndication. If only somebody had written an RSS-to-WhatApp integration that could run for free in a GitHub Action? Oh wait, that's what I just did!

    Read more - about 4 minutes (924 words)

    • Article
    • 6 comments
    • posted 23 November, 2025
  • Animated GIF showing Sublime Text editor flicking through six different languages, with equivalent code showing in each.

    I Wrote the Same Code Six Times!

    Could I rock an interview tech-test in a programming language I haven't touched in a decade? I wanted to know, so I found a tech-test... then solved it in six different programming languages in a single sitting.

    Read more - about 9 minutes (2125 words)

    • Article
    • 1 comment
    • posted 7 June, 2025
  • Screenshot of BBC News RSS Feeds (that don't suck!).

    BBC News RSS... your way!

    It turns out my filtered BBC News RSS feeds are more-popular than I thought, so I've launched a new site with all of them (plus all the source code to produce them) in a variety of editions.

    Read more (136 words)

    • Article
    • 7 comments
    • posted 8 February, 2025
  • FreshRSS screenshot with many unread items, but focussing on a feed called "BBC News (with sport)" and showing a story titled: 'How England Golf's yellow cards are tackling blight of slow play'

    BBC News RSS... with the sport?

    Somebody commented on my blog to say they liked my "BBC News... Without The Crap" script, but still wanted sports news in their RSS feed. Luckily, I know just the person for the job: me!

    Read more (227 words)

    • Article
    • 3 comments
    • posted 3 February, 2025
  • The Beeb continue to keep adding more and more non-news content to the BBC News RSS feed (like this ad for the iPlayer app!), so I've once again had to update my script to "fix" the feed so that it only contains, y'know, news.

    Full image of Screenshot from a web-based RSS reader, showing an item "Download the BBC iPlayer app"
    Alt

    Screenshot from a web-based RSS reader, showing an item "Download the BBC iPlayer app"

    • Note
    • posted 19 October, 2024
  • RSS reader showing duplicate copies of the news story "Barbie 2? 'We'd love to,' says Warner Bros boss", and an entry from BBC Sounds.

    BBC News... without the crap

    BBC News' RSS feed has lately started getting duplicates because they're mucking about with guids. Also what's with the iPlayer and BBC Sounds content in there? Let's "fix" that for them, shall we?

    Read more - about 3 minutes (603 words)

    • Article
    • 10 comments
    • posted 9 March, 2024
  • Screenshot showing a Thunderbird calendar popularted with strikes on every day in February.

    UK Strikes in .ics Format

    Need all the UK strike action in your calendar app? I just helped a coworker with that, and I'm happy to share the results with you.

    Read more (209 words)

    • Article
    • 1 comment
    • posted 23 February, 2023
  • Image representing post: Nginx Caching for Passenger Applications

    Nginx Caching for Passenger Applications

    Adding Nginx microcaching to a Passenger application requires a little thought. Let's save you from thinking about it.

    Read more (451 words)

    • Article
    • posted 11 March, 2022
  • LABS comic adapted to show The Robot literally "feeding" RSS

    LABS Comic RSS Archive

    For the benefit of anybody wanting to read LABS comic from the beginning in their RSS reader, Dan writes a tool to facilitate that.

    Read more (175 words)

    • Article
    • 8 comments
    • posted 25 July, 2019

Posts navigation

Older posts

Get in Touch

I'd love to hear from you! Why not...

  • email me on blog@danq.me?
    (my spam filter is aggressive, so use a good subject line, i.e. not just "hello"; encrypt your email if you like)
  • say hi on Mastodon, where I'm @dan@danq.me?
  • send a letter or postcard to
    Dan Q, Unit 159610, PO Box 7169, Poole, BH15 9EL, UK
  • reach out some other way?
  • ยฉ Dan Q 1998-2026
  • Creative CommonsAttributionNon-Commercial except where stated (how to use)
  • powered by BloqClassicPressHTML5CSS3
  • privacy
  • Read articles, checkins, notes, reposts, and more...
  • @dan@danq.me
  • contact
  • subscribe
  • Dan Q
  • Creative Commons Attribution Non-Commercial license
  • ClassicPress
  • CSS is awesome
  • Created by a human, not by AI
  • LGBTQ+ pride flag (2018 progress variant)
  • Polyamory flag
  • Say no to Web3
  • Mastodon (it's like email... no, come back!)
  • Tested on Firefox
  • Best viewed on the Internet
  • PHP
  • Ruby
  • Debian
  • Caddy (webserver)
  • Find me on Melonland
  • Check out my GitHub
  • Three Rings - by volunteers, for volunteers, since 2002
  • I'm a fucking webmaster
  • Looks best at: any resolution!