code / projects

GView

GView Homepage

GView is a simple image viewing utility written in C and using the GTK libraries. The code, which is heavily commented and will soon be accompanied by a tutorial, is meant to not only be useful but to provide an introduction to using the GTK libraries.

The application is very small, fast, and simple. It displays a single image and is meant to be invoked from the command-line or by a file browser. It won't do anything fancy, it sticks to the Unix theory of do one thing and do it well; GView displays images. You can't edit images with it, you can't get a thumbnail view of every image in a directory, you can just view an image. Although you can zoom and resize an image and get information about the image; but that is it. This simple list of functionality also makes it easier for GTK newcomers to learn from the code.

GView is meant as a replacement for other viewers like Eye of Gnome and is released under the GPL. Download it and give it a shot, I guarantee you won't find a smaller, faster image viewer.

pLogger

Download

pLogger is a small web usage logging utility which creates log files similar to that of the Apache web server. (Intended for those who do not have access to their web server's native log files.) Written in PHP it is meant to be used via an 'include' at the top of a PHP page. When the script is 'included' it records the page access in one of four formats:

  • Common Log Format
  • Common Log Format with Virtual Host
  • NCSA Extended / Combined Log Format
  • pLogger Custom Log Format

By creating log files in one of the first three formats it is hoped that the log files can easily be used by most web reporting tools.

pLogger requires PHP4 (or greater) and has been tested on a web server using NetBSD and Apache 1.3. It is released under the GNU GPL.

Conf4C

Download

Conf4C is to become a common configuration reading library that can be used by C applications to easily parse and read a configuration file.

Conf4C can be used to read non-XML configuration files. If you have ever seen the httpd.conf configuration file used by the Apache web server, then you have seen the format of a file which Conf4C is designed to parse. It allows for a configuration file which contains user-specified comments, blank (empty) lines, and name / value pairs separated by a user-specified delimiter. Additionally the configuration file can be 'sectioned' off through the use of:

<SectionType SectionName>

 ...

</SectionType>

Note that at the moment this is highly experimental code. DO NOT USE THIS CODE FOR ANYTHING OTHER THAN TESTING!!! The code works but it still needs to be cleaned up ALOT. A full run of tests has not yet been completed on this code and is posted here only for shared development purposes. So unless you're adventerous or have talked to me already about working on this code, I would not recommend you downloading it. </EndRant>

JS Toys

Just some simple little javascript snippets built for fun. Unless otherwise noted all code should be considered to be licensed under the GNU GPL. Although if you do use something please give credit where credit is due.

  • Scanner Demonstrates an effect I saw in a Flash webpage where a bar of highlight follows the mouse cursor.
  • Scanner Inverted Demonstrates an effect similar to Scanner but with everything BUT the 'mouse bar' being shaded.
  • Tracker Demonstrates the ability to track the mouse position in relation to both the web document and the browser window.

patches & improvements

XFCE4 DateTime Plugin Tooltip Patch

Download

The Datetime XFCE4 Goodie plugin, written by Choe Hwanjin, is a plugin for the XFCE4 panel which displays the date and time and when clicked, displays a calendar.

This patch modifies the plugin so that the date can be displayed as a Tooltip (as opposed to inline with the time). This creates a behavior more like the default Date / Time plugin which comes with XFCE4 by default. The patch does not eliminate any code, it simply adds a checkbox to the configuration screen, which allows a user to instruct the plugin to display the date as a tooltip (so you can have it both / either way).

ATI FireGL Driver Modification

Schneider Digital

The ATI FireGL driver is a Linux driver for the ATI Radeon series of GPU. About a year ago I purchased a Radeon 9700 Pro and a VIA P4X400 mainboard with an AGP 8x graphics port. Unfortunately the ATI driver did not support the Via P4X400 chipset, so I added the support by hacking their existing driver.

The changes I made have now been integrated into the ATI driver and the latest available version can be obtained here. Feel free to contact me if you have any problems.

(Note: all of my work has been done under the 2.4.x series kernel, so while I'll do my best, I make no promises for the drivers use under a 2.6.x series kernel.)

HostInfo

HostInfo Codepage

HostInfo is a very simple very dirty PHP script that gathers information about a particular host. Especially if that host is hosting a web server. Part of a larger web crawling project I'm working on. It leverages heavily the excellent IP-based Geolocation services of InfoSniper.net.

main/code.txt · Last modified: 2008/06/10 18:30 by jpbarto
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0