Category: Programming
-
Login and scrape NAB page with PHP and CURL
I was after an automated way to determine if payments had come into my nab.com.au account. For some reason, nab makes it very difficult to login with PHP and CURL. The main issue is they perform some client side password encoding with JavaScript. Here is the code below; Thanks for this page for pointing me…
-
PHP eval equivalent to include
The PHP include statement includes and evaluates a specific file, not what if we want to modify that file first before including, i.e. a version template file. Well this can be done with PHP eval. I file is included as follows; Using eval, we can achieve the same as above as follows;
-
VBA/VBS check if printer is installed
Here is a quick code snippet to determine if a printer is installed on a Microsoft Windows system;
-
VB functions for determining red/black numbers on roulette wheel
Here are two simple functions for calculating if a number falls on red or black on a roulette wheel, for the perfectionists that don’t want to use odd/even.
-
Batch GPX trace files to Open Street Map (OSM) with GpxUpload
A quick tutorial on how to upload multiple GPX trace files to Open Street Map, I use the Java class by Christof Dallermassl, alternatives can be found at OSM Wiki Batch Upload. First download the Java source file from jgpxupload and compile it, I used online compiler from Innovation. The following is the syntax that…
-
SplitExtended – improved VB split function with group characters
Based on SplitEx by Chip Pearson, SplitExtended is optimised to be over double the speed, with fixes and additional features; Features over the standard VB Split are; grouping characters, no longer split strings in quotes, ignore consecutive delimiters, while preserving those in grouping characters, option to remove grouping characters, start and end quotes can be…
-
Review of A-PDF Page Cut – software to split a pdf page in half
I came into the requirement of needing to split the pages of a pdf in half, normally this is required when you scan a book and have two pages per scan, but my specific example was a Lonely Planet digital publication which for some reason was released similarly, as I wanted to view it on…
-
Calculate Stamp Duty with Excel
A quick post of how to calculate the Stamp Duty of a property with Excel, in my example I am using the Western Australia Residential Rate Dutiable value. Download the Excel WorkBook. Update, next day This also works for Individual income tax rates;