How to find and replace text in nano: Ctrl \ Enter your search term [press return] Enter your replacement term [press return] A [to replace all instances] Thanks to http://www.chrisnewland.com/find-and-replace-with-nano-47
Form values for unchecked checkboxes
Usually, if one sets the value of a checkbox to say 1, most browsers will post a key value pair with the value equal to 1 when the box is checked, but leave the key-value pair out when the box… Read More
/boot full on Ubuntu
When updating Ubuntu, old kernel versions are kept in /boot so that if you find that the latest one doesn’t work out, you can just boot into an older one. Unfortunately this also means that eventually your /boot partition will… Read More
Mounting Virtualbox VDI in linux
Needed to mount a VDI. Using manually installed Vbox from Oracle site, which has nasty conflict with packages for Mint, so couldn’t easily get fuse installed. Solved by using qemu as per these instructions.
Telling virtual box processes apart
My load average has skyrocketed and top shows that it’s one of the headless virtualbox virtual machines. But which one is it? Doh! The culprit has the same RAM allocation as one of the others, that narrows it down, but… Read More
Xdebug for php debugging on LAMP with Netbeans
I use netbeans as my php IDE and having a debugger is incredibly helpful when building large webapps.When Xdebug works, it’s an incredibly useful tool as one can step through code, keeping an eye on variables at any point. It… Read More
Renewing SSL certificates
For a domain’s cert prior to expiry (within 30 days though), the existing CSR can simply be submitted to the cert provider and payment made etc for renewal if one isn’t changing any cert details e.g. company name etc. Then… Read More
Harnessing the speed of Mysqli Prepared Statements
For a few years, I’ve been using mysqli prepared statements for all php-mysql interations on all of my websites because of the inherent mysql injection protection afforded by the separation of query and data. What I have not done is… Read More
Merging the right way around in Netbeans/Mercurial
I’m new to working with revision control and sometimes get confused with merge terminology resulting in me merging the wrong way. For future reference: To transfer all the latest changes in the main trunk to the development branch, update to… Read More
Netbeans Mountain Lion Mercurial Problems
For PHP development, I use Netbeans with revision control handled by its built-in Mercurial integration. Since installing Mountain Lion the other day, the Mercurial function of Netbeans had not been working. I did not see any errors, just a lack… Read More