While working on a new web application recently I came across a a problem with quite an interesting solution. We have a Windows network of virtual machines that run applications which clients access via a web based control panel that generates an .rdp for them. Authentication is done via Active Directory using LDAP. The problem came when we started working on the accounts pages, how does a Linux web server tell a Windows domain controller that a user has changed their display name? The answer is to install an SSH server on the Windows machine for the Linux server to connect to and execute PowerShell commands, a very powerful combination of tools!
There are lot of frameworks available to help with building grid layout based websites. They all vary in features, complexity and weight but focus on the same thing in the end. Creating a grid layout from scratch is not that complicated if you don't need any crazy features, you also save a lot of bloat which will help with page load times.
Thankfully it's long been known that storing passwords in plain text is a terrible idea, but what about the username? If someone gets hold of your database the list of usernames is almost as useful as the passwords that go with them, even more so if you use email addresses for the username.
I've wanted to build a media centre PC for a while now, the desktop always creates a bit too much irritating fan noise to watch a movie late at night without headphones on. I set myself the aim of building a close-to-silent fairly high end machine that would boot up in less time that it takes to get the popcorn ready and a budget of around £500.
I've recently overhauled the markup of this site to make it more accessible and generally better. The purpose of a HTML document is to describe the content of the page, in an ideal world it would be completely decoupled from the styling and layout of the page. It's very easy to fall in to the trap of adding meaningless elements to a page to make a styling problem easier, these tiny concessions add up and you eventually end up with a meaningless div soup!
Yet another not-so-new-tech to talk about; CSS keyframe animations. Browser support is just about good enough to use these for things on actual websites now, they've been around for a long time but as usual IE is the sticking point with only version 10 and above offering support.
This is not so much of a new trick but it's still pretty interesting, at least I thought so. Thanks to pseudo elements it's possible to create simple hover tooltips using only CSS and a single data attribute on any element, like these GitHub style ones.
Having a solid backup system in place for any project is pretty much essential but if you're anything like me it's something that's often neglected. Let's be honest with ourselves backups are boring, we'd much rather spend our time working on fun things than botching shell scripts that copy files around. For this reason until last night the backup system for my web server consisted of a USB hard drive connected to my home server and a single rsync command run by cron. This has always been perfectly adequate but the way it only gives one day to restore a deleted file before removing it forever is often a worry.
One of the things that never fails to make me want to repeatedly slam my head into my keyboard when looking at other peoples code is inconsistent or none existent white-space.
A handy function to create a string for use as a title.