I was attempting to edit an image from my media library, and found that I was unable to crop or resize it. There wasn’t even a sign of the image. The only error that the error console gave was “Image corrupt or truncated” I found that if you are to remove all white space, after [...]
If you keep getting ‘illegal instruction’ whilst trying to run simple working code in using NetBeans and Ubuntu. It Can help if you disable profiling on your project. simply project -> properties -> profiling .. disable all. Might help, Pete
To make sure that you write good clean code, you might be wondering how to make your complier stop on warnings, well now you can with this additional command line option: -Werror
If you are writing some code using some sort of crazy IDE that creates lots of folders and files all over the place, trying to find where to put extra files for your application to find and read can be hard. But not now with Pete’s easy directory finding solution! Instead of trying and failing [...]
Add a new Windows system variable with a variable name of “CYGWIN” and variable value of “nodosfilewarning”. That should disable the very annoying error, or you could fix it by using correct UNIX pathnames.
When including files, I have seen people use inc file extensions and most people using php. For php it is best to not use the inc extension as the code can be viewed in plain text. This is because most servers are set up to display it, it is used for server side include for [...]
For the last couple of days I’ve been playing around with panada3D game engine. So far with out much problems I’ve been able to create 3D sound, landscape collision, 3rd and first person camera. I have also been messing around with blender and been able to UV map my models that I make useing it. [...]
How to create a start point position for your maps/models useing blender and Panda3D. When I was following the Roaming Ralph sample code I was unable to recreate the world model to use the start point value. This is how to do it. Step One: Create a Vertex or plane, any thing, in the place [...]
To make sure that your game runs the same on all computers that can handle it. You will need to make sure that your actions are independent from the frame rate. To do this in python you can put this code above the game loop framerate = 60 #frames per second clock = pygame.time.Clock() and [...]
I am board of all the same desktop environments, they all look the same. They all have the same flat 2D display. since the release of Vista they have all gone flashy and shiny, that’s great but it is still the same as the old ’95 desktop, it has a menu at the bottom and [...]
