Press "Enter" to skip to content

Posts published in May 2010

Why we don't choose MSSQL!

Everybody always raves how great Microsoft SQL Server is, and how much data it can hold, and how much bigger it’s “package” is than your own. But the truth is that I hate it with a passion! I use RDBMS‘ on a daily basis and never used to hate MSSQL…

How Do You Fire A Client?

How do you fire a client? Let’s face it, some clients can be a real nightmare. There are a whole bunch of tell-tail signs that a client is going to be a major problem for you shortly after or sometimes during your first interaction with them. This can be a…

How many days in February?

It is quite handy to have a function that can tell you how many days there are in February due to the leap year shift of either 28 or 29 days. Below is a function created in Javascript to return the exact amount of days according to the year given:…

Weird Pagination on a Google Page

Not sure how long this one will last, but for now: Go to: http://www.google.co.za/search?q=MFI/06/ASA-778658&hl=en&start=0&sa=N If you scroll to the bottom, there are 4 pages (pagination), press Next, now there are only 2, WEIRD HUH!

Actionscript 2 & PHP Data Transfer

In the below example we will use Actionscript 2 to call a remote PHP file that will return data to it. It is a simple way of transferring data between the server and client. Actionscript 2 Code: [code lang=”actionscript”] callRemoteFile = function(ourVariable:String) { var result_lv:LoadVars = new LoadVars(); result_lv.onLoad =…

Unique Random Numbers in PHP

If you would like to show random numbers using PHP you can do this: [code lang=”php”] 100591840315374762298619128468014636242072547397704193448510342523955735559937643813902471371794236888632486647276542368298568429509243167818375268752601151128958154579192169497830779533861696[/code]

HTML mail() Sending as Plain Text

[code lang=”php”] $to = “[email protected]”; $subject = “SUBJECT”; $message = “MESSAGE“; $headers = ‘MIME-Version: 1.0’ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”; $headers .= ‘From: Mailer ‘ . “\r\n”; mail($to, $subject, $message, $headers); [/code] The above code does not always send emails in HTML as it should, it…

Royal Mail – Royal Fuckups?

It’s right when they say that the Royal Mail is quite bad. I had a package delivered to me this past weekend and a collection slip was left for me to get it from the depo 48hours later. I arrive 45hours later and am told to either come back later…

Turbo C++ in DosBox for Windows 64bit

I had to compile a C++ application under a DOS environment and was running Windows 7 64bit. Firstly, Turbo C++ is a 32 bit x86 application and therefore will not run when initialised from an x64 environment. This can easily be solved by installing the DOS Emulator called DosBox. One…

Digsby Stuck in Local Mode

If your Digsby Client Application gets stuck in Local Mode and won’t connect no matter what… ..you may want to try fixing it by doing the following: step1: Uninstall and then reinstall. Did it work? If not then go onto step2. step2: Go to “C:\Users\[YOUR_USER_NAME]\AppData\Local\” and delete the Digsby folder.…