1. SublimeText 2 Pro Tip

    You can set custom, per-syntax preferences.
    Here is my Ruby.sublime-settings file:

    {
      "color_scheme": "Monokai Bright.tmTheme",
      "ensure_newline_at_eof_on_save": true
    }
    

  2. A friend asked if I'm going to marry my current girlfriend

    me: i've got it in my pipeline, so i'll loop back around and drop you a line. the ROI on this one looks good
    friend: per our conversation, I'll keep that on my radar, and we'll revisit this subject closer to the proposal submission deadline

  3. Thursday morning chats are strange.

    Thursday morning chats are strange.

  4. My friend mixes music things.

  5. (Source: langer)

  6. Instagram with Javascript

    First things first, Instagram doesn’t have an open API. A client must be authenticated to retrieve users and their media. Luckily, the API does support JSONP, so we can create a front-end gallery with just an access token.

    Instagram doesn’t allow a client to grab media by username, a user id is required. So, we have to chain a couple calls together, if we only have a username.

    Warning: You really don’t want to float an access token around that doesn’t belong to the current user. i.e. Don’t acquire your own and hardcode it into your application.

  7. Ruby Year to Date Range

    year_to_date = (Time.parse("1/1/#{Time.now.year}")..Time.now)

    Know a better way?

  8. Dead Simple Basic HTTP Authentication with Express.js

    Sometimes you just need to protect a specific route (from being crawled, for an admin resource, the perception of security, etc.). With Express.js it’s extremely easy to drop in Connect’s basicAuth middleware (in CoffeeScript):

    This will protect the root route (and only the root route) with the username and password from line 4.

    “But what if I don’t have super_secret_stuff, and I just want to protect static content?” No big deal. Use basicAuth in conjunction with the static middleware:

  9. File Upload with Express for Node.js

    How’s that for an SEOd article title?

    Almost all of the highly ranked search results for uploading files with Express are outdated (citing deprecated modules like connect-form). Node moves fast. So, on that note, this may too be wrong by the time you’re reading it, beware.

    Formidable is now a part of Connect, and therefor baked into Express.
    Simply, you can accomplish file POSTing with the following Express app (in Coffeescript, because I do what I want):

  10. Upgrading to Bootstrap 2.0

    Disclaimer: 2.0 is in no way final!
    This is only for those on the bleeding edge, trying to prepare their work for the next version of Twttr Bootstrap.

    • 12 columns is the new 16 columns.
    • .topbar is now .navbar, and .topbar > .fill is now .navbar > .navbar-inner.
    • Use the data-toggle attribute for dropdowns and tabs.
    • .zebra-striped is .striped-table

    I’ll add more as I run into changes while updating a few of my applications.