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...

2011-11-24

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...

2011-11-18

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...

2011-11-16

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...

2011-11-08

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...

2011-11-06

Reorganizing commits in Git branches

It may take some time digging around the Git commands to do exactly what you want. I had a situation where I've gone too far in a version branch and needed some reorganization. This is a short description of what commands I ended up running. Read more...

2011-04-13

Beauty of Vim key combinations

I can't yet say that I prefer Vim for editing text files in all situations. But I can say that I like it enough this far to continue on improving my Vim skills. One of the beautiful aspects of Vim is how keyboard shortcuts can be combined and this article describes some of those combinations. Read more...

2011-01-23

Bash script to copy permissions

This is a bash script that I've used on Ubuntu in order to copy the permissions from a file or directory, onto the whole structure of another directory. I've found that this is something I like to do quite often and wanted some automation for this operation. Read more...

2010-12-04

Install Android development environment on Windows 7

About a year ago I wrote a blog post about how to get started with Android development on Windows. At lot of new versions has been released since then, even though the basic packages needed are the same. This is a recap of what to download and how to set it up in order to develop Android applications on Windows 7 (64-bit). Read more...

2010-11-01

CSS3 Playground

The CSS3 Playground is a web application for experimenting with some new css3 capabilities. Primarily those than conform to the progressive enhancement philosophy, which means that the styles can be used on all sites without severely changing/limiting the experience on browsers that does not support them (=Internet Explorer 8.0 and older). But there are also styles that may need better replacements on Internet Explorer such as rotation, and I hope I will have the time to add more in the future. Read more...

2010-07-28
Older
Twitter: @mikeplate