Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • Time zone conversion cheat sheet at the shell with Ruby

    Why would you need a command line time zone conversion? Imagine that you’re troubleshooting a problem. Add that your team is distributed across multiple timezones. Now add that database times are generally recorded in UTC, but your alerting all displays in local time. If you’re trying to pinpoint when an event happened and comparing notes…

    April 25, 2022
  • Some detailed information on how irb works and…

    Some detailed information on how irb works and configuration options possible: https://docs.ruby-lang.org/en/3.0/IRB.html Predefined global variables https://docs.ruby-lang.org/en/3.0/globals_rdoc.html

    April 20, 2022
  • Blasts from the past https en wikipedia org…

    Blasts from the past https://en.wikipedia.org/wiki/Soundex https://en.wikipedia.org/wiki/Levenshtein_distance irb(main):011:0> soundex(‘Thomas’) => “T520” irb(main):012:0> soundex(‘Tomas’) => “T520” irb(main):013:0> soundex(‘Tom’) => “T500” irb(main):014:0> soundex(‘Tommy’) => “T500” irb(main):015:0> soundex(‘Kris’) => “K620” irb(main):016:0> soundex(‘Chris’) => “C620” irb(main):017:0> soundex(‘Cris’) => “C620” irb(main):018:0> String::Similarity.levenshtein_distance(‘K620’, ‘C620’) => 1

    April 15, 2022
←Previous Page
1 … 19 20 21 22 23 … 310
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress