-
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…
-
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
-
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