Press "Enter" to skip to content

Posts published in February 2010

USB Device Not Recognized! in Windows

Believe it or not, this one is super easy to fix! It’s actually a temporary problem with your motherboard, all you need to do is: turn off your computer if it’s a desktop then unplug it from the wall/powersupply if it’s a laptop then remove the battery let it sit…

Calling event functions from movieclips in actionscript 2

In a flash movie I usually have a frame of actionscript that controls all elements in the file to keep everything in one place. Sometimes I have an onPress(etc) function that refers to something happening in the scene when something is pressed, but what happens if we want another element…

Sudo install OpenGL & SDL on Ubuntu

A quick and easy way would be to type the following in one line with single spaces in the Terminal. This way of installing OpenGL and SDL libraries only applies to Ubuntu. sudo apt-get install nvidia-glx-new-dev libglew1.4-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-image1.2-dev libsdl-mixer1.2-dev

How To Modify Hosts File On Windows

The hosts file is located at the following address: C:\windows\system32\drivers\etc\ or %systemroot%\system32\drivers\etc\ But you will need to open Notepad with “Run as Administrator” first and then open it through there otherwise it will give a permissions problem

Get all directories in PHP

I think this may be the fastest way to get a list of all the directories in a given folder/directory using PHP. [code lang=”php”]$directories = array_filter(glob(‘*’), ‘is_dir’);[/code] ..and of course you can also add a path to it if you need to: [code lang=”php”]$directories = array_filter(glob($myPath.’*’), ‘is_dir’);[/code]

Security error: securitySandboxError with Flash

You have a flash uploader and you get this error: security error: securitySandboxError This means that the flash is not trusted by the domain and you have to place an xml file in the root of the domain. The file is called “crossdomain.xml” and this is what should be inside…

Component Inspector in Flash has ISSUES!

I discovered a very annoying bug in the Flash IDE a little while ago, and it has happened to me quite a few times. Today it happened again and so I write this post.. While in the Flash IDE you select a component on the stage, then you click “Component…

Close/Delete Google Checkout Account

I have used Google Checkout to receive payments in the past and have had problems with some clients not paying and blaming it on Google Checkout that the money did not go through (like the guys over at Peartree DMS). I decided that this account was not worth the trouble…

Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource

Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource You have just gotten a warning when trying to check if an inserted row was successful but when calling mysql_affected_rows(mysql_query(“INSERT INTO……”)) you get a warning telling you that the supplied argument is not a valid MySQL-Link resource. This is because…

Capitalize First Letter in Word – Actionscript 2

You have a string and you want to capitalize the first character but have the rest of the word in lowercase. DO THIS! [code lang=”actionscript”]myStringVar = myStringVar.substring(0, 1).toUpperCase()+myStringVar.substring(1);[/code]