audionerd's comments

audionerd | 15 years ago | on: Ask HN: image scaling on the fly

I've been impressed with Dragonfly, "a Rack-based ruby gem for [image] processing/encoding on the fly"

  http://blog.new-bamboo.co.uk/2010/1/2/dragonfly

audionerd | 15 years ago | on: Data URIs make CSS sprites obsolete

Are there specific game engine tools that could be re-used for web work? It's a rather tedious process at the moment, pulling out sprites and arranging them on a sheet. Keeping them updated and so forth.

audionerd | 15 years ago | on: The Magic Behind Amazon's 2.7 Billion Dollar Question

Communities often often struggle to define the meaning of a user's vote.

Amazon is wise to make a separation between "I agree with the user's opinion" (via my own review) and "I found the user's opinion useful" (via my vote).

audionerd | 16 years ago | on: Snappy HTML5 demonstration

Wow, really? I didn't realize you could swipe in this presentation. Looks like this was all it took to implement?

  var addTouchListeners = function() {
    document.addEventListener('touchstart', function(e) {
      touchStartX = e.touches[0].pageX;
    }, false);
    document.addEventListener('touchend', function(e) {
      var pixelsMoved = touchStartX - e.changedTouches[0].pageX;
      var SWIPE_SIZE = 150;
      if (pixelsMoved > SWIPE_SIZE) {
        nextSlide();
      }
      else if (pixelsMoved < -SWIPE_SIZE) {
       prevSlide();
      }
    }, false);
  };

audionerd | 16 years ago | on: JavaScript: what is "this"?

I think the author is just citing how influential Scheme was to JavaScript's design.

In "Coders at Work", page 141, Brendan Eich talks about wanting to build a scheme-like language for the browser. The c-like syntax was adopted because Netscape wanted it to look like Java.

page 4