Responsive Abbreviations with Bootstrap's Utility Classes

I love media queries, but sometimes they are a bit much for when I just want to abbreviate an element’s content for small screens. Bootstrap’s utility classes are a very handy collection of classes that help you do just that.

Here are a few examples of how they can be used to abbreviate your content at small screen sizes.

Shorten button label:

Change date format:

Abbreviate country select:

Sublime Text Themes & Colors

After struggling to find a good Sublime Text color theme, I asked /r/webdev, and got quite a few replies. People have some… interesting color schemes.

Heroku Deprecates Settings Injection & New collectstatic Hook

Heroku has deprecated their settings injection policy for Django apps. If you aren’t familiar, Heroku currently appends a DATABASES variable to your file when you deploy your app, which contains the information needed to connect to your database.

Obviously this can be confusing at best and dangerous at worst, so I’m glad to see they’re removing it. Apps that want to turn it off right now rather than waiting until it’s removed (which is highly advisable :), can follow the instructions here.

Heroku has also added a hook that allows you to call a collectstatic on your app right after it is deployed, which should be pretty handy as I find myself doing that after every push anyway. This feature is on by default, but you can disable it if you’d like. Now if they could also add a hook that runs your south migrations, I would be set.