Disable Double-tap Shift to Caps Lock on Lenovo Carbon X1 in Ubuntu 13.10 and beyond

There are a number of controversial changes to the new Lenovo Carbon X1 keyboards. The function keys were replaces with a digital function bar, Backspace and Delete are sharing space, Tilde and the Apostrophe and moved down by the arrows and the Page Up and Down buttons are wrapped around the arrow keys. While this…

Share Button
Read more

A simple script for compiling LESS into CSS for a production environment

Takes a less file and compiles it into CSS with YUI compression.

Share Button
Read more

Hey Underscore, You’re Doing It Wrong!

Brian Lonsdorf has a love-hate relationship with Underscore.js. Yes, it offers a bunch of tools included in today’s functional programming paradigm (like map, filter, reduce, take, drop, compose, etc.), but in Underscore the functions are sometimes verbose and unintuitive. It claims to be a functional programming language, but how true is that? Despite certain characteristics,…

Share Button
Read more
  • Git

Git clone returning a “Repository not found” error on a private repo

I ran into this problem today where I was trying to clone a repo that I owned. When I got the “Repository not found” I Googled it to find the following answers: Your account doesn’t have access (it did) Typo (nope, I copied and pasted) The repo doesn’t exist (nope, see the second bullet) I…

Share Button
Read more

AngularJS Meetup in Toronto June 19th 2013

Share Button
Read more

User experience (UX) vs. user interface (UI) infographic

  I’ve often had a hard time differentiating the two of user experience (UX) and user interface (UI), much less putting it into words. This real-world example illustrates the simple difference between the two. This is certainly not a new graphic, but I have cropped it just to focus on the UX/UI portion of it.…

Share Button
Read more

Stop using if else statements

Conditions are a necessity to logic. You need them. But the use of else drives me mad! It’s code pollution. Not only does it look gross but it slows a developers ability to understand code. Consider the following censored PHP code sample from a real web app: if (stripos(getcwd(), “/some/deep/directory/”) !== false) { // Perform…

Share Button
Read more
  • App

How to get a thumbnail for a YouTube video

I find myself posting YouTube videos on my blog very frequently (though less as of lately than normal). One of the hardest things for me has been getting a good featured image to use for the post. YouTube provides a bunch of thumbnails, but I need to look up the URL structure every time I…

Share Button
Read more

Photo captions with credit for Twitter Bootstrap

The HTML is as simple as this: <div class=”thumbnail with-caption”> <img src=”http://img.youtube.com/vi/IJNR2EpS0jw/0.jpg” width=”320″> <p>Dumb ways to die<small>Metro</small></p> </div> The only thing is you need to add these styles. .thumbnail.with-caption { display: inline-block; background: #f5f5f5; } .thumbnail.with-caption p { margin: 0; padding-top: 0.5em; } .thumbnail.with-caption small:before { content: ‘\2014 \00A0’; } .thumbnail.with-caption small { width: 100%;…

Share Button
Read more

Top 20 replies by Programmers when their programs don’t work

I am sure I have used all of these at some point or other.  

Share Button
Read more
Back to top
http://twitter-widget.com/blog/button-html/