M635J520
  • Soundcloud
    mortenjohs 1bisHill
  • Search
Navigation bar avatar
✕

    M635J520


    A series of notes to myself...
    • D3, gists, and bl.ocks.org

      Posted on February 8, 2013

      Yesterday I stumbled upon a very useful tool while (trying to) teach(ing) myself D3, namely http://bl.ocks.org. This lets you access, and preview, your webby gists in a browser - just by browsing to http://bl.ocks.org/<gist-id>. Most handy!(The only minor down side is that there seems... [Read More]
      Tags:
      • Programming
      • gist
      • source code
      • web
      • github
      • visualization
    • Sequel on the Pi - and how to access Access DBs from Ruby (in parenthesis)

      Posted on February 2, 2013

      Recently I had to liberate some data from an old MS Access DB, so I discovered a gem of a Ruby gem called "sequel" that generalizes database access (for many different databases) - ORM style. Most excellent, so I figured I wanted to... [Read More]
      Tags:
      • Programming
      • Linux
      • Pi
      • Windows
      • gem
      • Ruby
      • Databases
    • MIDI channels in Cubase - or there, and back again

      Posted on January 13, 2013

      The other day a friend and I experimented with connecting his excellent monotribe (with the miditribe extension) to my Cubase to see if we could record the MIDI-signals coming from it. For Science! This made me realize that, being a MIDI-noob, I... [Read More]
      Tags:
      • music making
      • music
      • fix
      • MIDI
      • cubase
    • Counting in Ruby Revisited - Benchmarked

      Posted on January 3, 2013

      After writing the post a while back on counting in Ruby I wondered if the two different implementations I outlined had similar runtimes. Inspired by this post by makaroni4 I went ahead and wrote the following little "benchmarker":Loading...So, you see the block centered... [Read More]
      Tags:
      • Programming
      • source code
      • Ruby
    • Partitioning - or, students into n groups - in Ruby

      Posted on December 24, 2012

      A while back a friend of mine asked if I could automate the creation of groups in a class of students - to maximize the variation within each group, but minimize the difference between them. This sounded like an interesting problem, so... [Read More]
      Tags:
      • Programming
      • hack
      • source code
      • algorithm
      • stats
      • Ruby
    • Unicode characters in irb on OS X

      Posted on December 8, 2012

      I noticed that my RVM-handled irb in OS X (Mountain Lion) didn't like Norwegian characters today. So instead of an 'ø', I got '\U+FFC3\U+FFB8' during entry, and nothing afterwards. Like so: Not really satisfactory. After googling: "os x irb unicode characters rvm"... [Read More]
      Tags:
      • Programming
      • Mountain Lion
      • Mac
      • fix
      • OS X
      • Ruby
    • Un, deux, tscha-tscha - or Counting in Ruby

      Posted on December 6, 2012

      Inspired by my little son's eagerness to count when he sees groups of things that (he thinks) can be grouped together these days, I wanted to post my often used, tiny, fairly naïve extension to Ruby's Array class that I call count_by.This... [Read More]
      Tags:
      • Programming
      • functional
      • Ruby
    • ← Newer Posts
    • Older Posts →
    • RSS
    • GitHub
    • Twitter
    • Instagram
    • Mastodon

    mortenjohs  •  2025  •  blog.ervik.fr  •  Edit page

    Powered by Beautiful Jekyll