Mike Plate

Freelance web and mobile developer

Creating a closure in JavaScript

I thought that I knew how closures worked in JavaScript, but then I was bitten by a bug that made me realize I had some more learning to do. This article is the result of that learning. It describes one particular situation where you need to explicitly create a closure  in JavaScript, but I also think it illustrates closures in general. Read more...


Linux file permissions to only delete owned files

Coming from a Windows background, I was surprised to find out that when it comes to Linux file permissions, a user can delete a file that they don't own and have no write permissions to. Well, that is the default behavior if you don't set up your ownership and permissions exactly correct. Find out how here. Read more...


Making web site certificate work for Android

I installed a web site certificate called GeoTrust QuickSSL from http://cheapssls.com on a site of mine. That wasn't too hard I think. Everything looked fine when I tested it on my desktop browsers. However inside of the Android emulator (version 2.1 and others) and also on my newest Android device (running 2.3.5) I got a warning that the certificate wasn't trusted. Read more...


Change virtual console resolution on Ubuntu

When installing Ubuntu Server 11.10 on my Windows-hosted VirtualBox the default console resolution is very small (640x480 I think). But changing it is very easy. Read more...


Stop http.sys from listening on port 80 in Windows

On Windows 7 there is a system service called http.sys that listens on port 80. That makes it impossible to run applications and services that haven't been integrated with this feature to also listen on port 80, like Apache HTTP Server or Nginx. Here is one way to solve that problem. Read more...

Twitter: @mikeplate