How-To: Install lolcommits On Ubuntu

lolcommits

Lolcat-style photos as you commit

I’ve always had problems installing lolcommits on Xubuntu and other Ubuntu-based Linux distributions.

The installation instructions are very simple. Only requiring you to run two commands, sudo apt-get install mplayer imagemagick libmagickwand-dev and then sudo gem install lolcommits (need sudo for linux). Pretty simple.

The gem install lolcommits command is where things usually go bad for me. I typically see something like this:

To fix this, you need to install a newer ruby-dev package:

You can now try to install the lolcommits gem again. It’ll actually install this time:

A GitHub user documented this solution in issue #54. Another user suggests that the installation guide should be updated to make a note of this, but I haven’t seen it noted anywhere but in issue #54.

It’d sure save me a bit of time if it was noted somewhere, that’s partly why I’m writing this post.

After you’ve got lolocommits installed, see the README on GitHub for usage instructions and examples.

I usually run lolcommits --enable --delay=2 --fork when enabling lolcommits. That will capture a photo in a forked process, after a 2 second delay. I like this method because you’re not left waiting for the photo before being able to type into your terminal again.

Lolcommits is kinda cool, but not really useful in a practical sense. I do use it pretty much everywhere though, and have the default storage location linked to Copy. That way all my images are in the same place, no matter which machine I’m using at home.

If nothing else, it’s something kinda neat to be able to offer to your clients.

tyler-hat-lolcommits

I no longer smoke. ;)

Remove SSH Login Message After DigitalOcean WordPress One-Click Install

do

After creating a new Droplet using the pre-built WordPress image provided by DigitalOcean, you’re presented with a very helpful message after logging in via SSH:

To finish installing WordPress, navigate to your droplet’s IP: http://xxx.xxx.xxx.xxx
Make sure to specify hostname from DO panel to your droplet before creating it (for example: ‘blog.mydomain.com’ or ‘myblog.com’)
This will create necessary Apache configs based on hostname and Apache will respond based on hostname.
Server will also respond to its IP address, so if you finish installation from http://IP then
you will need to change hostname from WordPress Settings later (from http://IP to http://hostname)

It’s a really helpful message, especially if you’re new to DigitalOcean and even more so if you’re new to hosting stuff on your own (ie: unmanaged hosting). However, the message isn’t really helpful after the first login, maybe two logins.

There’s a great article on how to get setup after using the One-Click WordPress install, but removing the message is never mentioned.

It’s just a message of the day, the configuration for which can be found in /etc/motd. Delete line 2, and you should be good to go.

HTML Boilerplate

HTML5_Logo_512

I’ve been using this for a boilerplate lately, it’s pretty nice, and not all that different from the piece of HTML I’ve had saved on Dropbox for the last 10 years.

It provides a bare, standards-compliant starting point for your websites, giving you just enough to get started, making it easy to add your own stuff in.

It’s available under the MIT license, which is GPL compatible, and can be downloaded from GitHub.

There are a few things you may want to customize before you start writing a bunch of content, though. This is taken straight from the README on GitHub. Take these points into consideration, especially page titles, css includes, and javascript includes.

  • Document’s language
  • Meta description
  • Title
  • Favicon file
  • CSS includes
  • Javascript includes

cdnjs Website Source Available on GitHub

cdnjs

The public facing website for cdnjs.com

cdnjs.com is a popular CDN hosting popular javascript libraries.

They recently released the source to their new website, making it available on a GitHub.com repository.

The new site is built with nodejs and CSS.

This repository is just for the cdnjs.com website, not for adding a library to cdnjs.com. Adding a library to cdnjs.com is still done via this GitHub repository.

I like cdnjs, I use it and jsDelivr a LOT.

There’s probably some interesting bits to be found in the cdnjs.com website, and you can have access to it all on GitHub now, instead of viewing the page source. :)

Update April 24, 2014: Thank you Thomas for pointing out the actual new website repository. Think the fact that the old, deprecated repository was trending on GitHub threw me off, lol.

Version 0.0.3 of jQuery Sticky Alerts Plugin Now Available

newversion

I’ve released version 0.0.3 of my Sticky Alerts jQuery plugin. It’s available on GitHub and is now indexed at plugins.jquery.com.

I’ve added a feature to remember if the bar has been closed or not. This is done via cookies, and there’s an option to set. The option, cookieRememberDays, default to 2. If you want to disable it (ie: bar will appear every time the page is loaded no matter what), you need to set cookieRememberDays to a value of 0.

To keep the bar closed for 7 days, do something like this:

To keep it as-is, and make the bar open on every page load, do this:

Head on over to GitHub for a download link, or click here to download version 0.0.3 directly from the GitHub tag.