Use come command-line fu to analyse your website log in real-time and find out which IP addresses are making the most requests.
Node.js is an increasingly-popular JavaScript runtime that can be used to build server-side applications. Installing Node on Ububtu 14.04 via APT isn’t quite as straightforward as it could be, as the version in the default repositories is 0.10.25, dating back to early 2014.
Continue reading ‘Installing Node.js v.4 with APT on Ubuntu 14.04’ »
When loading a web page with PhantomJS is it possible to fake the referrer by setting the page.customHeaders property to include “Referer”. However, this will be sent to all page objects (images, CSS etc…), which is not the desired result. The workaround in the PhantomJS API documentation is incorrect. Read on to find out how to fix this.
I recently found that I needed to change a number of directory and file permissions recursively. Simple, you say? Not when the directories and files need different permissions applying.
Continue reading ‘How to Change File and Directory Permissions Recursively in Linux’ »
Don’t use the for...in
statement to iterate over JavaScript arrays because the result might not be what you were expecting. Read on to find out the correct way to iterate over a JavaScript array.
Continue reading ‘Don’t Use for…in With JavaScript Arrays!’ »
After using Ubuntu 14.04 for a little while I got a worrying message from the Software Updater saying “Not enough disk space. The upgrade needs a total of x M free on disk ‘/boot’. Please free at least an additional xxx k of disk space on ‘/boot’. Empty your trash and remove temporary packages of former installations using ‘sudo apt-get clean’.”
Continue reading ‘Not Enough Free Disk Space for Ubuntu Software Updater’ »
Shortly after setting up a fresh installation of Apache, I uploaded a website, only to find that none of the JavaScript was loading. It turns out that Apache helpfully provides you with a common JavaScript directory but if you’re not using it you may need to turn it off.
Continue reading ‘Apache JavaScript Directory Inaccessible’ »
I found that moving from a Windows box using Outlook Express for email, to an Ubuntu box using Thunderbird was a little tricky. The export/import features took a bit of figuring out due to having multiple identities set up in Outlook Express.
Continue reading ‘Moving from Outlook Express to Thunderbird’ »
Recently I needed to fix a SugarCRM 7 view that had been customised/extended in JavaScript and accidentally broken. It turned out that the “events” object had been overridden instead of extended, and the view had lost some functionality.
Continue reading ‘Extending Views in SugarCRM 7 with JavaScript’ »
If you’re running your own small mail server it’s quite possible that you’ll want to make use of Spamhaus’ free DNSBL to reduce spam email. However, if you are using your web host’s DNS servers (which is the default) it’s likely that Spamhaus will not work because the DNS will have exceeded the free usage limit. Find out how to use your own DNS server and start using Spamhaus.
Continue reading ‘You Should Use Your Own DNS Server With Spamhaus’ »