Source Code

From Krupczak.org
Revision as of 10:48, 27 October 2009 by Rdk (Talk | contribs)

Jump to: navigation, search

Contents

Java Sudoku Puzzle Solver

I wrote a Java program to solve Sudoku puzzles. It uses a recursive brute-force algorithm to try all possible combinations.

I wrote a Java/Swing GUI front end for my Java Sudoku puzzle solver. Its currently fairly crude.

This Java program shows how to use the above programs.

Concentric Circles Layout

I wrote this Java/Swing class, for use in conjunction with the JGraph toolkit, to layout vertices in concentric circles. Nodes are placed within concentric circles based on the number of neighbors they connect to -- most to least are placed inner to outer.

Webcal Datafile Conversion

We currently use a web-based calendar program called Webcal written by Michael Arndt. We wanted to sync our calendar with newer programs like Lookout (Outlook) and with our iPods/iPhones which all provide varying degrees of support for RFC 2445 (iCalendar).

I wrote the following Perl script to take the Webcal data file and generate an iCal data file. The following script parses iCal data files to check them for syntax errors. The scripts require perl's DateTime package as well as the iCal::Parser package.

Fetch Image from TRENDnet TV-IP110W, D-Link DSC-920, and Axis Neteye 2120 Webcams

I wrote this perl script to quickly fetch the current image from a TRENDNet TV-IP110W webcam. iPhones and other devices (that do not run Java) cannot view the live feed from this webcam. Consequently, I use this script to fetch live images and place them on my own webserver. Then, I can view those images with my iPhone. Alternatively, if the webcam is placed on an internal network (not reachable from the Internet), you can use this script to fetch images and put them on an Internet-accessible webserver.

New version of the perl script also fetches images from D-Link DSC-920 and Axis Neteye 2120 webcams as well as adds a date/time-stamp to the image.

Personal tools