VLC Cache Rant

The first time this ran it took for freakin’ ages! This should take less than a few minutes What the hell is that supposed to mean? Less than a few? 73 minutes perhaps? Rant over..

ODBC SQL Server Memory General Network Error

Microsoft OLE DB Provider for ODBC Drivers error ‘80004005’ [Microsoft][ODBC SQL Server Driver][Shared Memory]General network error. Check your network documentation. /site/path/to/script/aspfile.asp, line # ..and that’s what it throws you! At about this point you may want to scream, or just be a tad annoyed by that damn machine running your site. Basically your server is either one of two things, and those are: Overloaded Server is “Just Plain Shit” The error is caused because the script is struggeling to connect to the database server – may it even be in the same damn box with same IP and all – and sometimes fails, so shows you it’s overloaded groan.

XML cannot be the whole program

What the hell does that mean? You can get this error thrown up in your good old trusty Firebug console. It expects a script to be returned as an ajax type datatype. So all you have to do is change your datatype to output as XML.

Mocha Java Decompiler Download

Mocha is a Java Decompiler and is 100% FREE to use. The readme.txt file in the Mocha distribution offers the free usage license: The distribution archive (file “mocha-b1.zip”) may be distributed freely, provided its contents (“mocha.zip” and this file, “readme.txt”) are not tampered with in any way. I am pleased to be able to make the Mocha distribution available under those terms: mocha-b1.zip (121K) You can visit the alternative download location here.

EAI_NODATA

Error message: Connection attempt failed with “EAI_NODATA – No address associated with nodename”. The above error occured while using Filezilla (Ftp Client), it either means that you do not have an active internet connection, OR it means that you need to clear the private data because the connection to the server was lost while an active FTP connection was still present. Upon reconnection to the server (which is sometimes automatic) you will receive the EAI_NODATA error.

1180 Call to a possibly undefined method navigateToURL

1180 Call to a possibly undefined method navigateToURL If you get the above error when trying to run your flash actionscript 3 file, you are obviously trying to use the navigateToURL() function but have not imported the flash.net library code. The following code before everything will correct the problem. 1 import flash.net.*; ..or a more of a direct unbloated method is as follows: 1 import flash.net.navigateToURL;

Test Your Password Strength

I came across this site today and it’s quite an interesting one as it works out the approximate time it would take a desktop pc to crack the password. Check it out here.

How to use a Timer in Actionscript 3

It is really easy to create a Timer in Actionscript 3. Instantiate the Timer Class and pass a time in millions of 1000 to it to work in seconds. 1 var myTimer:Timer = new Timer(1000); Setup an event listener to call a function. 1 myTimer.addEventListener("timer", myTimerEventHandler); Start the Timer. 1 myTimer.start(); Start the Timer. 1 2 3 function myTimerEventHandler(event:TimerEvent):void { trace(myTimer.currentCount+" seconds have passed."); } So altogether we have this.

Google Background Image

Google now allows you to add a background image to the google homepage to apparently make it more, like, home.. hmmmm Just by clicking the button at the bottom left hand corner it allows you to either upload an image or select an image from google. For indepth instructions as per Google, check this page out: http://www.google.com/support/websearch/bin/answer.py?answer=180720&hl=en

How to Hire a Hacker

I came across a very interesting and quite funny read, take a look here for How to Hire a Hacker: http://www.setec.org/hirehacker.html

If the program is already running, close it before attempting to run.

Launch Failed! If the program is already running, close it before attempting to run. I don’t know how many times I have gotten this error message while trying to Run a project in Adobe Flash Builder. For all of you stuck with this message and unable to ever get your projects going, there is quite a simple fix to this. All you need to do is open up Task Manager (Ctrl+Shift+Esc) and click on Processes, then “End Process” on any instances of “adl.

Random Number In ASP for no Flash Caching

This is an example of how to create a random number in Classic ASP in order to append to a swf file so that the browser does not cache the swf file. 1 <% Dim SwfRndNum Randomize SwfRndNum = Rnd %> You can then add it to your swf embed code as follow, bear in mind that I am only showing the snippet around the swf file name and not the entire embed code.

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 so much until recently when I had to modify a very large site that was built in Classic ASP(yuck) and 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 phone call, a few emails or worst of all, a face to face meeting. Remember that you need to be selective when it comes to work you take on, as a bad client can cause more trouble than they’re worth.

How to get ‘how many days in February’ using Javascript?

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: 1 2 3 function daysInFebruary (year){ return (((year%4==0)&&((!(year%100==0))||(year%400==0)))?29:28); }

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: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 callRemoteFile = function(ourVariable:String) { var result_lv:LoadVars = new LoadVars(); result_lv.onLoad = function(success:Boolean) { if (success) { if (result_lv.

Unique Random Numbers in PHP

If you would like to show random numbers using PHP you can do this: 1 2 3 4 5 6 7 8 9 10 11 12 <?php $min = 1; $max = 100; $total = 100; $arrItems = array(); while ( count($arrItems) < $total ) { $item = mt_rand($min,$max); if (!in_array($item,$arrItems)) { $arrItems[] = $item; echo $item."<br />"; } }

HTML mail() Sending as Plain Text

1 2 3 4 5 6 7 $to = "[email protected]"; $subject = "SUBJECT"; $message = "<b>MESSAGE</b>"; $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); The above code does not always send emails in HTML as it should, it turns out there is a PHP Bug (http://bugs.php.net/15841) that comes into play with QMAIL and carriage returns.

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 can then mount the Turbo C++ folder as a drive and install it under a subdirectory. 1 e.g. mount c c:\PathToMyTurboCppDirectory\ Once in there it’s quite easy to open and compile the source code, but good luck to anyone that tries to write anything from scratch, it’s really painful and half the keys are not mapped in the DosBox, eventhough you can press Ctrl+F1 to open the Keymapper.