Category: Uncategorized

  • 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

  • On rails 7 new uninitialized constant Gem Source…

    On rails 7 new: uninitialized constant Gem::Source (NameError) (defined?(@source) && @source) || Gem::Source::Installed.new ^^^^^^^^ bundler (2.3.8, default: 2.3.7) Solution was to `gem update bundler` bundler (2.3.11, 2.3.8, default: 2.3.7)

  • what is a Unicode U+FEFF character The…

    “what is a Unicode U+FEFF character? The client isn’t generating this themselves and it isn’t visible on the file itself. Do you [have] any guesses on how this is being generated?” Aha! https://www.freecodecamp.org/news/a-quick-tale-about-feff-the-invisible-character-cd25cd4630e7/ U+FEFF is a “Zero Width No-Break Space” but it’s also a byte order mark (for UTF-16?) if at the beginning of the…