August 9, 2011
by Ashley Knowles
1 Comment
RT of the day: Australian Census
August 5, 2011
by Ashley Knowles
1 Comment
Lion-style Inverse Scrolling – On Windows XP
My home computer is a Mac, now running OSX Lion. I’ve become quite accustomed to the backwards/reversed scrolling which seems to be the default in Lion – and matches the “natural” swipe up/down gestures you would use on an iPhone or other touch screen device.
Today I was looking around on my work Windows XP machine, and was disappointed to find there is no “invert mouse” option.
So I found this - www.howtogeek.com/57542/how-to-get-the-worst-os-x-lion-feature-in-windows-reverse-scrolling/
Setting Up Reverse Scrolling in Windows
To make this work, you’re going to need to make sure that you’ve got AutoHotkey installed, or else the script won’t work. Don’t worry, it’s really lightweight.
Once you’ve got that installed, you can either paste this into a new AutoHotkey script (a *.ahk file), or put it into your existing script. Or you could just download the script we’ve got linked below.
WheelUp::
Send {WheelDown}
ReturnWheelDown::
Send {WheelUp}
ReturnSave it, double-click the file to run it, and you’ve now got reverse scrolling. Or, you know, just download it.
July 23, 2011
by Ashley Knowles
0 comments
Why you should upgrade to OS X Lion – sooner rather than later!
Every 2nd Saturday and Sunday makes up what I call “F1 Weekend”. I run a Winfast USB HDTV tuner, which only runs in Windows, and so I have to run it virtually in Parallels Desktop on my Mac.
It runs great on my now, old and continually ageing MacBook Pro – until I upgraded to OS X Lion. Continue Reading →
July 16, 2011
by Ashley Knowles
0 comments
IIS, PHP, and LDAPS with Active Directory.
Why you’d ever want to do this is probably a discussion best left to the political arena. But for the purpose of that thing I call my “day job”, I was required to do just this.
External website, authenticates against Active Directory using LDAPS. Website is coded in PHP, and runs on IIS on Windows Server 2008 R2 x64.
In the rest of the world, this is an Apache deal, but limited by internal support, it has to be IIS and Windows. Continue Reading →
June 21, 2011
by Ashley Knowles
0 comments
knowledge
important lessons learnt today (aka, a very important message authorised and spoken by A Knowles, Brisbane on behalf of himself):
1. study is great, but only if you study the right stuff (i.e. that which you don’t already know)
2. knowledge is power (@petrie friends represent!) in completing the task at hand
3. greater knowledge can result in lesser efficiency
4. communication of knowledge is time consuming and fucking annoying Continue Reading →
May 26, 2011
by Ashley Knowles
0 comments
osCommerce Stock Level Hack
osCommerce fails to check stock level correctly when going through the order process. The problem is two fold, and is worsened by the use of PayPal. If you use PayPal for payments, this code will not work as expected for you.
The checkout_process.php file is the final script in the checkout workflow, and performs the actual order processing itself, including inserting the required entries into the database.
The process code *does* check stock level, but fails to do something useful with it. Continue Reading →
May 20, 2011
by Ashley Knowles
0 comments
MySQL 5.5.12 Config Wizard Bug
Installing JIRA on a Windows 2008 R2 x64 server today, and had to install MySQL for the database back end.
Sounds simple enough… It’s been a while since I setup MySQL on a Windows installation, so I was pleasantly surprised to see the installation wizard pop up to ask me about the server and it’s role etc.
This wizard seems great.
However, come to the end, and it fails to start the MySQL service.
Looking in Windows event logs shows that the MySQL service is unable to write to C:\ProgramData\MySQL Server 5.5\data\
The Fix:
- Open C:\Program Files\MySQL Server 5.5\my.cnf
- Find the line
datadir=”C:/ProgramData/MySQL/MySQL Server 5.5/Data/” - Change it to
datadir=”C:/Program Files/MySQL/MySQL Server 5.5/Data/” - Start the MySQL service again, and it will start straight away.
March 30, 2011
by Ashley Knowles
0 comments
Prime number generator
This is a little something I’ve been working on for an experiment.
It’s a pretty basic prime number generator. At the moment, it’s using what I call, an “exponential” search function which I thought of. It’s probably been thought of by someone else, but I’m calling it my own for the time being.
In my first attempt, generating all prime numbers between 1 and 100000 takes 272 seconds… I didn’t think this was out of the ordinary until a friend told me they did the same in 2.7 seconds!!! Not fair. After going over and over my code, it’s now down to about 0.9 seconds (yay, PHP is faster than Scala!). Turns out, my stupidity was to blame, as I had for some idiotic reason, created my PRIMES array as a global variable. Simply removing the global call, dropped the time from 272 seconds to 0.9… Win. Continue Reading →
March 28, 2011
by Ashley Knowles
0 comments
Making the most of University
I feel like a bit of an IT guy, turned philosopher with most of my recent posts, but what the heck! Back to another hectic semester of uni, and I’ve learnt a very valuable lesson from one of my lecturers already.
For all the university students out there, hoping to one day make it big, and realise the potential from their university studies, it’s probably a really important point that was hidden away in a 3rd year elective subject… Continue Reading →
