Hammer.js for Angular.js

We've been doing a lot at work recently with touch-based interaction on the desktop. Our front-end products are all web apps built on Angular.js, and use Hammer.js to register touch-event handlers. We also noticed that using a non-Angularized library in an Angular context is a complete shit show.

We looked around for a lirary to wrap Hammer up for us and found angular-hammer from Monospaced. It worked okay for a while, but didn't update when Hammer.js v2 came out, which is a big improvement and something we wanted to incorporate.

So, I forked the original and made a few changes. It uses the same principle, providing a bunch of directives that map the directive values to handlers, but extends it to support both Angular Expressions and regular old scope-accessible functions. I also added support to define custom gesture recognizers using a JSON string. Check it out on GitHub...

http://ryanmullins.github.io/angular-hammer/

...or you can install it using Bower.

$ bower install ryanmullins-angular-hammer

Frameworks vs Libraries

Around 61:20 into Debug #43 Marco Arment and Guy English provide a really good definition for frameworks vs libraries:

G: A library fits into what youre doing, a framework changes the way you see the world.
M: You build things into a framework that is already established for you, whereas the library let's you build what you want and let's you call into the library for help...

I think that's a really important distinction to make. Now, if I can just to figure out what a Platform is relative to a Framework I'll be good at my job.

Back to Basics: My Evening Drink

Recently, mostly since moving to Cambridge, I've been noticing that drinking at bars is getting ridiculously expensive. Then, I realized I can drink in the comfort of my own home for about 10% of the cost and without having to yell at whomever it is I'm talking to.

I bought myself a nice little mixing kit, invested in more bourbon (this time some Four Roses), and started making my own drinks. My go-to drinks thus far have been old fashioneds and the occassional G&T. The former being my preferred drink, andhaving more variations than a swiss army knife. I think many of these variations are a bit over the top, focusing too much on making a show and less on simply enjoying a finely crafted spirit. So, I decided to go back to basics, and started making mine like David Embury recommends in The Fine Art of Mixing Drinks.

What You Need

  • 2 oz of Bourbon
  • 1 tsp of Simple Syrup
    • Equal parts water and white sugar
    • Bring to a boil in a small saucepan until all sugar has disolved
    • Let cool and pout into a bottle, because this is a lot of simple syrup
  • 1-4 dashes of Angostura Bitters
  • 1 twist of Lemon
  • 2 large Ice Cubes, or 1 Ice Ball

Putting Things Together

  1. Grab yourself an old fashioned glass (I recommend these from Crate & Barrel because they're $2).
  2. Add the simple syrup, bitters, and half of the whiskey to the glass, stir together.
  3. Add the ice and the rest of the bourbon, and stir a little bit more.
  4. Take the strip of lemon, twist it over the top of the glass — if you're really into lemon you can even drag it around the rim — then drop the twist into the glass.
  5. Put on some blues, maybe a little John Lee Hooker, and sip your drink.

Some might also like a cherry as a garnish. Personally, I don't like it but everyone is different.

I'm needy... and I need you to get to the point faster.

Today, Apple and IBM announced a big deal to bring iOS devices to "the enterprise" using IBM services and analytics. They will jointly create more than 100 apps for the iPhone and iPad, focusing on everything from security to device management, with IBM giving 100,000 personnel to the effort.

All of that information can be found in Apple and IBM Team Up to Push iOS in the Enterprise by Arik Hesseldahl on Re/Code. That's also pretty much the only substantive content in that 800 word article, and it was buried eight paragraphs deep. There's a bit more about the effects on the stock market, but not enough to be useful to anyone in the market. This is sad. I can condense this article, and many others, into two sentences of actual content, the rest is just fluff and bullshit. I can't wait for the day when we get back to real reporting and away from this airy page-view stuff.

A good example of getting right at to the core of a topic: What We Talk About When We Talk About Iraq and Syria from Caerus Associates.