Difference between revisions of "Source Code"

From Krupczak.org
Jump to: navigation, search
(Fetch Image from TRENDnet TV-IP110W Webcam)
Line 24: Line 24:
 
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.
 
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.
  
* [[media:getwebcamimage.pl|getwebcamimage.pl]]
+
* [[media:Getwebcamimage.perl|getwebcamimage.pl]]

Revision as of 21:41, 31 May 2009

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 Webcam

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.

Personal tools