Colin Robinson

Just another guy on the internet

Programming

Use MariaDB with PhpStorm

PhpStorm comes with several preconfigured database drivers (although the drivers themselves must be download separately). This short tutorial will tell you how to setup MariaDB as one of your Drivers on PhpStorm running on Arch Linux. 1. Install mariadb-jdbc from the AUR 2. Open the “Data Sources and Drivers” window This can be done by […]

Quickly reload a database

I’m mostly posting this to copy/paste when I forget, but it’s useful information nonetheless so lets have at it. Delete the database Create a new database Import SQL file into the new database Assume the mysql user/pass combo is colin/mypassword and the database is called db123. mysqladmin -u colin -pmypassword drop db123; mysqladmin -u colin […]

Github and code review

I first wrote a post in March 2012 about code review with SVN. Since then, we’ve switched to Github and it’s awesome. Github isn’t free, buts its very inexpensive and amazing. Inline comments, automatic issue tracking, and you can backup your code to their servers without needing commit access to the main repo.

IPv6 Subnet Calculator

I wrote a tool to organize subnet addressing for IPv6 Demo | Source Code A little about IPv6 An IPv6 address is 128-bits and commonly represented as eight colon separated groups with each group consisting of four hexadecimal digits. For the general unicast address format, the first 64-bits are used for routing and the second 64-bits are the interface identifier […]

iPad and iPhone Web Frameworks

Sencha Touch This is the gold standard of iPad web frameworks. It’s amazing (and free!), check out the kitchen sink demo. Project Page

Code Review

Where I work, we have a lot of new developers and people still learning the languages. When learning a language, being able to get feedback on your code is an invaluable learning asset. It lets the more experienced programmers help teach the newer ones. Most code review software is designed for pre-commit comments. A reviewer looks at the code […]

How do you measure productivity?

How do you measure your productivity while writing code? Judging a program’s success by lines of code (LOC) is like judging how successful an airplane is by its weight. Consider a more modern approach from Agile development called Weighted Micro Function Points.

Quick CSS3 Fade Effect

Very simple fade effect for images that uses only CSS. .box_transition { -webkit-transition: all 0.3s ease-out; /* Saf3.2+, Chrome */ -moz-transition: all 0.3s ease-out; /* FF4+ */ -ms-transition: all 0.3s ease-out; /* IE10? */ -o-transition: all 0.3s ease-out; /* Opera 10.5+ */ transition: all 0.3s ease-out; } Demo

LESS: The dynamic stylesheet language

Wow, just wow. Imagine if you could use variables in CSS… now you can. Here is the LESS website. The proposed method of using LESS is to write a style.less file and then include less.js which uses javascript to render your stylesheet dynamically. I really don’t like the idea of having to load an extra […]