Linux, Apache, Nginx, MySQL, Javascript and PHP

Password protection with Apache but allow from a user agent
Apache

Password protection with Apache but allow from a user agent

This post shows how to password protect a website with an Apache .htaccess file, but still allow access for

Mac mail queue commands
OSX

Mac mail queue commands

This post is a quick reference for some of the mail server commands for Apple Mac OSX: how to

PHP upload_max_filesize and nginx
Nginx Web Server PHP

PHP upload_max_filesize and nginx

I’ve recently set up a new server with PHP & Nginx using packages from

Facebook screws over pages, yet again
Miscellaneous Postings

Facebook screws over pages, yet again

Facebook has for some time now been attempting to monetize posts from "Pages" and generally prevents too

Linux/Unix/BSD

Ignore existing files or update only newer files with rsync

Rsync is a useful command line utility for synchronising files and directories across two different file systems. I recently

RewriteRule redirect without the query string
Apache

RewriteRule redirect without the query string

When redirecting all requests from one domain name to another one when the URL structure has changed, you’ll ideally

Linux/Unix/BSD

“mysql-server-5.1 but it is not going to be installed” error

This post looks at the error message "mysql-server : Depends: mysql-server-5.1 but it is not going to be installed&

OSX

How to clear the DNS cache on Mac OSX

DNS lookups are cached so that subsequent lookups for the same host don’t require querying an external DNS server

Applications

How to download the XenServer XenCenter client

I help to manage some virtual servers running on a XenServer host and there’s a management tool call XenCenter.

Applications

Clear a 301 redirect from Google Chrome

Google Chrome caches 301 redirects for a long time. When typing in a URL that you’ve previously visited that had

Master Mobile Web Apps with jQuery Mobile 3rd Edition
Javascript

Master Mobile Web Apps with jQuery Mobile 3rd Edition

My friends over at elated.com have recently released the 3rd edition of their "Master Mobile Web Apps

OSX

Remap quit and close tab shortcut keys etc in Mac OS X

I’m the king of hitting random shortcut key combinations and doing unexpected things and often accidentally close a tab

Linux/Unix/BSD OSX

Failed to add the host to the list of known hosts

I recently reinstalled the operating system on my MacBookPro and discovered when trying to SSH into a new server

Javascript

Fixed number of digits after the decimal place with Javascript

As well as supporting various rounding functions, Javascript has the toFixed() method

MySql PHP

Configuration options to fix some phpMyAdmin annoyances

I use phpMyAdmin as a PHP web based manager for MySQL, but find a few of the default configuration

Linux/Unix/BSD

How to tunnel port 25 with SSH

If you’re a web developer like me who needs to test sending emails from a development version of a

Fix Argument cannot be null, Parameter name: path on Nginx/Mono
Linux/Unix/BSD Nginx Web Server

Fix Argument cannot be null, Parameter name: path on Nginx/Mono

When migrating a mono application / web service running on one server to a new server I got an error

OSX

Change Mac OS X DNS servers from the command line

I frequently need to change the DNS servers I use on my Mac and it can be quite a

1 8 9 10 11 12 50