Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

Tag: programming

  • A plastic Mastermind board in blue and yellow with ten guess spaces and eight pegs. The sixth guess is unscored but looks likely to be the valid solution.

    Beating Children at Mastermind

    Sick of losing Mastermind to his kids, Dan cheats by implementing a brute-force solver he can run on his phone.

    Read more - about 7 minutes (1531 words)

    • Article
    • 3 comments
    • posted 24 August, 2022
  • Image representing post: Bash+Batch In One File

    Bash+Batch In One File

    A single file that can be executed in Bash, Zsh, Windows Command Prompt, and MS-DOS? Yup, and it's disgusting.

    Read more (343 words)

    • Article
    • 7 comments
    • posted 13 June, 2022
  • Flowchart showing how the pronouns used by Three Rings for a volunteer are contingent on what properties their org records, whether the volunteer has specified pronouns, failing that whether they've specified a gender, falling back to "singular they" pronouns.

    Pronouns in Three Rings

    Via a quick linguistics lesson, Dan explains how Three Rings handles volunteers' pronouns, and how it might need to improve in future.

    Read more - about 6 minutes (1323 words)

    • Article
    • posted 17 November, 2021
  • Screenshot of YOURLS interface showing Dan Q's list of shortened links. Six are shown of 1,939 total.

    Making an RSS feed of YOURLS shortlinks

    After switching his personal shortlinks from S.2 to YOURLS, Dan dusts off his XSLT experience to make himself an RSS feed of his shortlinks!

    Read more - about 7 minutes (1663 words)

    • Article
    • 5 comments
    • posted 5 October, 2021
  • Jigsaw being solved by moving down-and-right.

    Quickly Solving Jigidi Puzzles

    Forced with a digital jigsaw puzzle to unlock the location of a geocache... Dan resorts to hacking.

    Read more - about 6 minutes (1285 words)

    • Article
    • 462 comments
    • posted 26 August, 2021
  • Image representing post: Higher/Lower Datepicker

    Higher/Lower Datepicker

    Can Dan make an even-worse "date of birth" field than those spinner ones?

    Read more - about 4 minutes (741 words)

    • Article
    • 3 comments
    • posted 6 July, 2021
  • Image representing post: Getting Twitter Avatars (without the Twitter API)

    Getting Twitter Avatars (without the Twitter API)

    Twitter's API sucks so hard that Dan resorts to screen-scraping for avatar images rather than bothering to use it "properly".

    Read more - about 4 minutes (837 words)

    • Article
    • 7 comments
    • posted 2 June, 2021
  • Two clocks, both showing the same time. One has a sign reading "LONDON", the other "DUBLIN, I GUESS?"

    Ireland and the UK Aren't In The Same Timezone!

    Dan is surprised to find that Ireland isn't actually in the same timezone as the UK, and looks into how any why this is.

    Read more - about 6 minutes (1364 words)

    • Article
    • 109 comments
    • posted 11 May, 2021
  • Big List of Naughty Strings


    # Reserved Strings
    #
    # Strings which may be used elsewhere in code
    undefined
    undef
    null
    NULL

    ...

    then
    constructor
    \
    \\

    # Numeric Strings
    #
    # Strings which can be interpreted as numeric
    0
    1
    1.00
    $1.00
    1/2
    1E2

    ...


    Max Woolf
    Max has produced a list of "naughty strings": things you might try injecting into your systems along with any fuzz testing you're doing to check for common errors in escaping, processing, casting, โ€ฆ

    Read more (169 words)

    • Repost
    • of this original
    • posted 21 April, 2021
  • Image representing post: OpenAI-powered Linux shell uses AI to Do What You Mean

    OpenAI-powered Linux shell uses AI to Do What You Mean

    River implements an OpenAI-powered Linux terminal. Just tell it what you want, let it work out what commands are needed!

    Read more (109 words)

    • Repost
    • of this original
    • posted 20 April, 2021
  • The most important feature of Sublime Text

    Nikita Prokopov shares his favourite feature of Sublime Text. It's one of Dan's favourite, too.

    Read more (123 words)

    • Repost
    • 1 comment
    • posted 21 September, 2020
  • The original puzzle shown via BreakInto.Us.

    Break Into . Us (lock puzzle game)

    Some people, when faced with a puzzle, try to solve it. Dan tries to recreate it. That's how he wrote his latest game: Break Into Us.

    Read more - about 5 minutes (966 words)

    • Article
    • 21 comments
    • posted 27 June, 2020
  • Third-party libraries and security issues

    A month or so ago Chris Ferdinandi recommended that developers avoid third-party libraries for security reasons. Dan partially-agrees, but feels the need to explain where and why he disagrees too.

    Read more - about 3 minutes (661 words)

    • Repost
    • 9 comments
    • posted 6 April, 2020
  • SnackOverflow question: Let's say I'm camping and I need to make toast. I have a loaf of bread and a campfire. What's the best way to make toast?

    The 7 Types Of StackOverflow Answers

    StackOverflow's a great resource, but it's also a terrible one. Dan explores the seven types of answers you'll get to any question you post to the site.

    Read more - about 3 minutes (711 words)

    • Article
    • 5 comments
    • posted 2 April, 2020
  • Image representing post: An app can be a home-cooked meal

    An app can be a home-cooked meal

    Author Robin Sloan tells the story of the app he wrote just for his family, and Dan reflects on his own experience of making apps for audiences of few (or one!).

    Read more - about 3 minutes (529 words)

    • Repost
    • posted 7 March, 2020

Posts navigation

Older posts
Newer 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!