Here’s what I’ve been up to recently:
Moved all my websites off of Hostgator
I’ve used Hostgator for a long time now, circa 2005, and they’ve never done me wrong. Even when I worked at Adworkz, we hosted a bunch of stuff on them. Their service has always been top-notch, and I have very few complaints.
However, most of my “professional” sites are hosted on one of my Linode VPS’s. My Linode is fast fast fast, due to my NGINX/PHP-FPM/microcaching setup. For the price, you can’t beat a Linode if you need a VPS. Anyway, my Hostgator account has been redundant for almost a year now, so it was time for it to go.
Perhaps just to prove that I actually do code things, I just put up three new Github repos. They might not be the greatest things ever created, but I’m proud of all of them, since I’ve had to learn quite a bit of stuff just to get them to work. I coded them from scratch, I did. They’re also part of my systematic approach to mastering Python and/or Devops.
In particular, the fabfile I put together was a major lifesaver when it came to moving all of the stuff off of my Hostgator account. Setting up the new databases, configuring NGINX, and installing WordPress was a cinch, thanks to Fabric.
If you’re of the programming persuasion, I’d love it if you took a peek at them and tell me what you think.
I’ve started a new MongoDB Tumblr over at Tumblr. Does that even make sense? Whatevs.
Anyway, check it out: http://oplog.tumblr.com/
I’ll try to keep it updated with the latest MongoDB stuff as I learn it/discover it. I could just blog aboot it here, I suppose, but I like the idea of keeping that particular thing separate.
Also, check out the new Spokane MongoDB User Group that I’m a co-organizer of. If you’re interested in MongoDB and live in Spokane, join up!
So, I love Sublime Text 2. It’s got all/most of the features of Textmate, with a better designed scripting and module system. Every config file is an easily read and modified JSON file, and the built in Python console is awesome. (I’m biased as a recently converted Pythonista, but it’s still pretty cool for people of other persuasions)
Previewing an HTML document isn’t built-in out of the box, like Textmate, and there are a few different packages available in the Sublime Package Control system, but I wanted the preview function mapped to the build system, ALA Python or Ruby.
When you code a Python script, you hit cmd-b and it runs the script right then and there and shows you the results in the built-in command console. You get so used to it, that you think “Hey, why doesn’t previewing an HTML file work this well?”
Well, here’s how to do it: In the menubar go to
Tools->Build System->New Build System...
Then copy and paste this code into the resulting file:
Save the file as
html.sublime-build and you’re done!
In whatever html file you’re working on, hit cmd-b and it will open the file in your default browser.