Colin Robinson

Just another guy on the internet

Technology

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 […]

Automatically switch Xfce panel layout when plugging in a monitor

Xfce has great multi-monitor support. Different panels on each monitor, it all works great. I’ve used it with multiple monitors on my desktop for 5+ years. Love it. But you run into some annoyances with laptops. Half the time I’m using my laptop on its own, and half the time I’m using it with an […]

Clicking notifications in Chrome causes the window to change workspaces

This is a simple and obvious fix, but it was annoying me for awhile before I looked into it. The situation: You have a Chrome window open in workspace that’s different to the one you’re currently in. You receive a desktop notification from WhatsApp, Hangouts, 8tracks, ect. When you click the notification, it brings that […]

Use Bash to get the memory usage of applications like Chromium

It’s not always easy to tell how much memory Chromium/Chrome is using, because of the different threads it starts. Here are a couple snippets with explanations to get you started. Percent of memory use Code: ps -eo pmem,comm | grep chromium | cut -d ” ” -f 2 | paste -sd+ | bc | awk […]

Play games in borderless windows with Compiz

I like to play games and luckily there are a lot of games for Linux now; I have 51 games in Steam which run on Linux. But not all of these games do a good job when running at fullscreen (diustorted resolutions, hidden cursors, ect). So I like to run games in a borderless window […]

Compiz – Window border edge overlaps when using the grid plugin

Problem: Window borders overlap when using the grid plugin in Compiz This one has been bothering me for awhile. Turns out it isn’t a Compiz bug at all (well maybe it is), it’s an Emerald bug! Are you also using Emerald as your window decorator? Open emerald-theme-manager. Emerald Settings > uncheck Use Decoration Cropping Problem […]

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 […]

English style decimal marks with a European keyboard layout

Suppose you live in Europe where they separate numbers with commas instead of periods. Written: Six thousand eight hundred and forty three and two tenths English/American: 6,843.2 European 6 843,2 Suppose you also have a European keyboard and use a European keyboard layout but the stupid comma in the numpad drives you mad. Simple fix […]

Visual impairments are a part of the physical world. Thank god we live in a virtual one.

We have alt tags for screen readers, well let’s be honest, people only do it for SEO and no screen reader is perfect . But what if your “alt tag” had perfect IPA phonetic transcription… Tell me more Here is the current w3 draft: http://www.w3.org/TR/speech-synthesis/  Demo: go to this page http://www2.research.att.com/~ttsweb/tts/demo.php and copy/paste this element: <phoneme […]

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.

Previous Posts