|
APPLICATIONS & CODE
|
|
01/04/2003
RGB-HSL-Gamma Worker
|
|
This is a utility program I wrote to help convert RGB and HSL values to Winamp 3 gamma values and code. The output is used to create color themes for Winamp 3 skins. You can use the sliders to select a color, or the Windows standard color dialog, or an Eyedropper tool which lets you select a color from anywhere on screen. You can load up a PNG file and see the effects of your selected color and other settings in real time. A very handy tool for Winamp 3 skinners or for anyone who needs to convert RGB to HSL.
|
|
01/04/2003
Gamma Code Generator
|
|
This is a simple web-based too to assist formatting the code necessary for Winamp 3 gammasets. It incoporates a special algorithm so work around some of the coloring limitations you might encounter otherwise. I will revaluate this tool once a final version of Winamp 5 is released to see if it is still of any use.
|
|
01/06/2002
Simple XML Stock Scraper
|
|
This is a VBScript class that returns an XMLDOMDocument object containing stock information scraped from Yahoo's finance site. Yahoo supports symbols for specific markets (ie. Dow, Nasdaq) as well as company symbols. What's different about this script is that it pulls the information from Yahoo in a CSV (comma seperated values) file format which is immensly more reliable than scripts that scrape the stock quote information based on surrounding HTML tags.
I've updated the code to fix a problem many of you have emailed me about. The XMLHTTP object has a habit of caching the results it gets from Yahoo and so the data would sometimes not update. To solve this problem, I added a timestamp variable to the Yahoo querystring which ensures that the URL the XMLHTTP component is fetching is somewhat unique, and so it doesn't cache. Thanks for everyone's feedback!
|
|
01/06/2002
CleanUnicode Routine
|
|
This is a routine I developed for work. Often we recieve files from clients that contain extended characters that make converting to XML a real pain. This function will go through a specified string and replace any illegal XML characters with their numerical escape code, or remove them. It will also replace character escape codes which are illegal in a valid XML document. There is also an option to toggle encoding of the < and > characters.
|