User Panel:





Programming
This is a collection of programming projects that I have worked on. Currently, much of the work in here was done for classes while attending RPI.

Unless otherwise noted, the works here are covered under the 3-clause BSD License.

Posted in: [ General ]
[ posted 08/10/10 @ 2028 -5 GMT ] by Sparky
[ edited 08/13/10 @ 0525 -5 GMT ] 2 in total
[ Views( 25357 ) ] - [ Coments( 0 ) ]
Usage:
  • gnome-bg-changer [options] [background.xml file]

gnome-bg-changer is a utility to automatically change the GNOME desktop backgrounds.

The default delay is 5 minutes. If both MINUTES and SECONDS are specified, they are added together.

gnome-bg-changer uses ~/.gnome2/backgrounds.xml as the default background.xml file. This is the file used by the GNOME Appearance Properties, so you can continue to use that to configure your backgrounds. gnome-bg-changer will detect when the file changed and will re-parse it.

Options:
  • --version: show program's version number and exit
  • -h, --help: show this help message and exit
  • -m MINUTES, --minutes=MINUTES: Minutes between background change
  • -s SECONDS, --seconds=SECONDS: Seconds between background change
  • -r, --random: Change backgrounds randomly
  • -v, --verbose: Print extra information



Posted in: [ Python ] [ Scripts ]
[ posted 11/05/10 @ 1732 -5 GMT ] by Sparky
[ Views( 38831 ) ] - [ Coments( 0 ) ]
Usage:
  • checksums [options] FILES

checksums is a utility to verify the integrity of a file using a CRC32 checksum stored in the file name. A CRC32 checksum is an 8 character hexadecimal string. This is a common practice used by Anime sub releases.

When checking the checksum, the following file name formats are recognized:
  • ...[checksum]...
  • ...(checksum)...
  • ..._checksum_...

When appending the checksum to the file name, the bracketed (first) format is used.

Options:
  • --version: show program's version number and exit
  • -h, --help: show this help message and exit
  • -c, --check: Compute the checksum and try to match it to the file name using one of the formats listed above.
  • -a, --append: Compute the checksum and append it to the the file name, just before the file extension.
  • -v, --verbose: Print extra information


FILES is the list of files to preform the action on. This can be a single file, multiple files, or a glob if your shell supports it.

Examples:
  • checksums -a report.txt image.png *.xml
  • checksums -c *.mkv
  • checksums video-\[1004456E\].3gp



Posted in: [ Python ] [ Scripts ]
[ posted 11/03/10 @ 0142 -5 GMT ] by Sparky
[ edited 11/05/10 @ 1732 -5 GMT ] 2 in total
[ Views( 38994 ) ] - [ Coments( 0 ) ]
That status bar was removed in Firefox 4.0. While some of the status bar items did find new homes, some did not, and you might not like where they ended up. There were also some nice innovations during the development of Firefox 4.0, such as progress/links/status in the location bar, which unfortunately didn't make it to the final release.

Status-4-Evar aims to bring back (some of) the old status bar items, give you more control over the built-in Firefox features, and provide new alternatives.

The extension provides "Status Text", "Progress Meter", and "Download Status" items. These toolbar items can be moved wherever you want by customizing the toolbars. Behavior of the toolbar items, and other additional settings, can be controlled in the extension preferences.

This extension can also act as a replacement for the Fission extension. There are preferences to show links, status, and progress in the location bar instead of the toolbar items.


Posted in: [ Firefox ] [ Active Projects ]
[ posted 10/03/10 @ 0311 -5 GMT ] by Sparky
[ edited 03/18/11 @ 2208 -5 GMT ] 2 in total
[ Views( 43288 ) ] - [ Coments( 0 ) ]
When Firefox downloads a file, it sets the file modification time to be the current time. This is pretty much how every browser behaves. However, some will point out that this behavior is actually wrong (though it's a matter of opinion).

This extension allows Firefox to preserve the modification time, that is sent by the server, when you download a file. This should work for any file downloaded via http://, file://, or ftp:// (Firefox 4.0+ and SeaMonkey 2.1+) so long as the server sends the proper information.


Posted in: [ Firefox ] [ Active Projects ]
[ posted 09/04/10 @ 0238 -5 GMT ] by Sparky
[ edited 09/07/10 @ 2202 -5 GMT ] 1 in total
[ Views( 40923 ) ] - [ Coments( 0 ) ]
This is a multithreaded implementation of a simple chat server. It supports TCP/IP connections via IPv4 and IPv6.

The message protocol is simply a message up to 1024 bytes that is terminated by a newline. Messages from a user are echoed to all other users connected to the server.

This was written for a network programming class I took while at RPI.


Posted in: [ C ] [ Network ]
[ posted 08/13/10 @ 0523 -5 GMT ] by Sparky
[ Views( 31177 ) ] - [ Coments( 0 ) ]
This is a multithreaded implementation of a simple tftp (UDP/IP) server. It only supports read requests.

This was written for a network programming class I took while at RPI.


Posted in: [ C ] [ Network ]
[ posted 08/13/10 @ 0518 -5 GMT ] by Sparky
[ edited 08/13/10 @ 0518 -5 GMT ] 1 in total
[ Views( 31067 ) ] - [ Coments( 0 ) ]
This is a multithreaded implementation of a simple HTTP (TCP/IP) proxy server. It is semi-transparent (modifies some outgoing HTTP headers) and supports GET, HEAD, and POST requests.

This was written for a network programming class I took while at RPI.


Posted in: [ C ] [ Network ]
[ posted 08/13/10 @ 0514 -5 GMT ] by Sparky
[ edited 08/13/10 @ 0518 -5 GMT ] 1 in total
[ Views( 31011 ) ] - [ Coments( 0 ) ]