Reindent Text in Sublime

Quick tip: Sublime will reindent code for you and usually does a pretty good job. You can find the option in the menu if you go to Edit → Line → Reindent. You can do this for a single line or a block of code. It’s useful if you need to change a document from using spaces to tabs, for instance.

I have a custom key binding setup in Sublime so I can reindent code with the ⌘⇧R shortcut. To do that, just add the following line to your user keybindings, which can be found in the Sublime 2 menu under Preferences → Key Bindings – User.

{"keys": ["super+shift+r"], "command": "reindent" , "args": {"single_line": false}}

Dear Jack

http://www.hulu.com/watch/288577

I just realized I’m the same age as Andrew McMahon when he was diagnosed with Leukemia.

Watch the Dear Jack documentary if you haven’t already. It’s 67 minutes about a 22 year old Andy McMahon that was admitted to the hospital as a Leukemia patient the same day he finished mastering Jack’s Mannequin’s first album, Everything in Transit.

Today on his blog, Andy announced that Jack’s Mannequin is going to play their last concert on November 11.

At the heart of this change is the closing of a very important chapter in my life, one that is no doubt close to all of us. On November 11th, in Los Angeles at the 3rd annual Dear Jack benefit, my band and I will perform our last set as Jack’s Mannequin.

[soundcloud url=”http://api.soundcloud.com/tracks/19834118″ params=”” width=”100%” iframe=”true” /]

HTML Examples Plugin Demo

I worked on a plugin this weekend for storing HTML demos in WordPress. This is still a work in progress, but I think it’s pretty cool so I wanted to post a video showing what I’ve got so far.

When you write a new demo, you get fields for HTML, CSS, and Javascript. There’s also an option to select from a few libraries that are already including in WordPress to load on the page. On the post page, the HTML, CSS, and Javascript are inserted where the_content() is called.

The syntax highlighter used here is CodeMirror. You can find the code for HTML Examples on Github.

Spotify vs. Rdio

I’ve been a happy Spotify user since Memorial Day weekend 2012 when I discovered that a friend had signed up for the premium service. They were offering a 30 day trial, so I decided to try it out. It was kind of amazing. And it got better when I had to migrate over to a new MacBook Air. The billboard playlists, collaborative playlists, Last.fm integration — all super awesome, not to mention the massive music collection I now had access to.

I also had an Rdio account. Just the free one, but I had an account. I noticed Daniel Bachhuber followed me, which made me realize that there were actually a bunch of people I knew using Rdio. So I followed a couple people.

https://twitter.com/danielbachhuber/status/236574519081455616

Here’s the thing — I didn’t really understand this when Daniel first asked why I switched, but having Spotify so locked into Facebook is kind of a deal breaker for me. I had just come to expect that the “People” tab in Spotify was useless. I didn’t really care about what most of those people were listening to and there’s no way to do anything about that. Not only that, the only way to follow someone on Spotify is to friend them up on Facebook. It’s kind of unfortunate because without looking at my notes, I feel like Spotify is the better service. The reality is that they both do almost exactly the same thing in every way with a bunch of tiny differences. So I’ll share the differences that I found between the two. There’s no way this is a complete list, but it’s the stuff I found right away, so probably most of the stuff that’s important to me — for what that’s worth. This is directly from my notes, so the order I noticed these in might be interesting.

Spotify

  • Billboard playlists, but I found a pretty good Billboard Country playlist on Rdio as well. The one on Spotify is actually maintained by Billboard, which is cool.
  • Starred playlist. The work around for this in Rdio is to create a playlist called “Starred” and add songs to it. The nice thing about the Spotify starred playlist is the extra UI — you can see which songs are starred and which aren’t immediately and it’s one action instead of three to add something to that playlist.
  • Spotify Play Button – It looks way better than the Rdio embedable widget and works as a remote for the app.
  • Apps. I already touched on this a bit with the Billboard playlists, but Spotify has apps and some of them are really pretty awesome.
  • Filter. ⌘F lets you filter a playlist to find the song you’re looking for. Blows my mind a bit that Rdio doesn’t have this.
  • Local collection. Neither of them have every song I want to listen to. The Beatles are nowhere to be found. On Spotify I can just use the Beatles music that I already have in iTunes and play it in Spotify. It even syncs to Spotify on my iPhone.
  • Playlist folders
  • Boxee app. With airplay, I probably wouldn’t use the Boxee app as much anyway, but it’s kind of cool that it exists.
  • Rdio mini player. I don’t find it super useful and they completely hijack the maximize button to take you to the mini player. Even holding option while you click the maximize button doesn’t make it work like it’s supposed to.

Rdio

  • Collaborative playlists. So, they both have collaborative playlists, but Rdio does them better — I think. As far as I can tell, there’s no way to limit who can collaborate on a playlist with you on Spotify. On Rdio, you get an extra option betwen ‘Just Me’ and ‘Everyone’ — ‘Only people that I follow’.
  • Play history. Here’s a simple one that I can’t find anywhere in Spotify. Rdio has it though!
  • Web app! You can log into Rdio from anywhere with an internet connection and play music. Also, feels like a web app. You get used to it fast, but it’s blatantly obvious that the desktop app is just a Web View of the the Rdio website, which it turns out is better than no native app at all.
  • Family plan. If you need that sort of thing, Rdio offers discounts for people with multiple accounts.
  • Sign in to Last.fm once. For reasons I don’t understand, you have to sign into Last.fm every time you install a Spotify app. It doesn’t work at all on the Spoify Boxee app
  • “Find a song to add to this playlist”. There’s a box at the top of every Rdio playlist to search for songs and add them directly to the playlist.

Conclusion

Spotify is the better music player. If you don’t care about social, that’s the place to start. Unfortunately it’s completely off limits for people without Facebook accounts. It would be nice if there was a way to hide the “People” menu, which is only there to make you think Spotify is social. Spotify’s real social strategy is to just let Facebook handle it.