Any programmer worth their salt should have a few tricks up their sleeve. Among these should be regular expressions. The syntax for RegEx is unusual and hard to get used to, but only with a little practice (or even a cheat sheet) you can realize the full potential when it comes to text processing and string handling.
While working on Sprite Editor, I had to dig deep into the web in order to come up with a fast, lightweight method for the deserialization or parsing JSON files. The .NET 4Â Framework does have a few methods to enable this functionality, but they are not very customizable or powerful.
Blog is oficially up and running.
Caustik wrote a neat program that lets sprites walk around on your desktop and perform all kinds of random interactions with each other. The program is networked as well, so if you throw a sprite off of your screen it actually goes to another user’s desktop.
Sprite Editor is what it sounds like – it is basically an editor to streamline creation of sprite *.spr and *.spi files. Create your own custom sprites then submit them on the sprites forums and all the users will be able to see your creations.
To get started with it, try right clicking the sprite tree to access the many features or read the User Guide by following the link at the top.
NGif is a C# .NET library to handle encoding and decoding of animated GIFs. I found a use for it, but it had a few bugs. The very last two pixels were being rendered incorrectly as red and the transparency was not functioning properly. I have fixed these bugs, made a few minor improvements, and included writing to a Stream instead of to a File.
If you are a Java developer then you are very familiar with The Apache Commons. This web app is just basically a web implementation of the commons’ Math library. Here is an excerpt from the Commons’ website about Commons Math:
Commons Math is a library of lightweight, self-contained mathematics and statistics components addressing the most common problems not available in the Java programming language or Commons Lang.
- Real-world application use cases determine development priority.
- This package emphasizes small, easily integrated components rather than large libraries with complex dependencies and configurations.
- All algorithms are fully documented and follow generally accepted best practices.
- In situations where multiple standard algorithms exist, a Strategy pattern is used to support multiple implementations.
- Limited dependencies. No external dependencies beyond Commons components and the core Java platform (at least Java 1.3 up to version 1.2 of the library, at least Java 5 starting with version 2.0 of the library).
This JSP implements this library using a web interface. It was coded in Java using the Netbeans IDE and ran on Apache Tomcat. It does have Commons Lang and Commons Math as dependencies, which are not included. The *.jar files for these are availiable ont he Apache Commons website. For more details, visit the Google Code website.
This Java program simulates three common page replacement algorithms and displays benchmarks such as number of faults (and more). Also provided in the *.rar file is trace files which were captured in Linux and can be loaded into the program via command line to test either LRU, FIFO, or Random algorithms for comparison.
This is esentially the same thing as the code from 3D wireframe except now it has textures. Instead of GL_LINE_LOOP as in the last example, the solid was rendered using GL_POLYGON and colored accordingly.