LSGallery - Online Image Gallery

by Lasse Soelberg 23. April 2008 21:00

During Easter I was on a study trip to San Francisco (Fantastic trip Laughing). I took a bunch of pictures there (510 to be exact) and I wanted an easy solution for publishing them online, since some be interesting for the other students that participated in the trip.

I decided on some features that the gallery should have. It should be made in ASP.NET and all I would have to do would be to upload the pictures to my domain with FTP, and then the gallery should take care of the rest. So the albums in the gallery should mimic the folder structure on the server, and when a folder is chosen, it should show the images as clickable thumbnails.

I did a search for this kind of gallery, and it came up empty. At least for solutions where I didn't have to pay anything. But hey, I ain't studying Computer Science for nothing, so I decided to make my own.

The Web Page

The web page has a TreeView control on the left that is used to display the menu. And then it uses a GridView control to show the thumbnails for the selected album. It has a TextBox control on the top that is used for debugging purposes. The following screenshots shows the UI of the gallery.

 

Some Code

I made a class called Library, where I do all the work with the images. This is where I get the list of folders, get the list of images in the folders and make thumbnails of the images. I will just show a single method from that class.

The method that gets the folders uses recursion to easily figure out the folder structure. It builds a TreeNode representation of the folders, for use in a TreeView control on the UI. The following code snippet shows the implementation of the method.

 

The gallery can be seen in action at http://www.soelsoft.dk/gallery/default.aspx.

Tags:

ASP.NET | LSGallery

FECalc

by Lasse Soelberg 6. April 2008 12:45

This is the first J2ME program i have made. The program calculates the fat energy percentage. To calculate the program needs to know the total amount of energy per 100 grams and the amount of fat per 100 grams. On the Options page it is possible to change the energy from Kilo Joule (standard) to Calories or vice versa.

The jar file containing the program is attached to this blog entry. It requires a java enabled phone that supports CLDC 1.1 and MIDP 2.0. The screenshots are taken from Sun's phone emulator, so the screens will probably look different on different brand phones. I have tested the program on my own Nokia 6230.

 

FECalc.jar (6,01 kb)

Tags: ,

Mobile

Predicting Opponents in RPS

by Lasse Soelberg 6. April 2008 12:27
The project aimed towards making a program that was able to consistently win against human players in a game of Rock-Paper-Scissors. The program we made were able to win against humans, however it needs around 50 played rounds until it wins consistently. The program uses different kinds of AI to try to beat humans.Such as pattern detection and modelling using Bayesian net.

report.pdf (1,53 mb)

Tags:

University Projects

Mini Brick Language

by Lasse Soelberg 6. April 2008 12:02

The aim for this project, was to create a programming language for the Lego Mindstorms NXT set. The language should be aimed at a specific robot and have a very high degree of abstraction. The attached image shows the root we made for the project. The only item used on the robot that is not provided in the original set from Lego, is a compass sensor provide by www.hitechnic.com. The report attached describes the project and our results with it.

report.pdf (3,14 mb)

Tags:

University Projects

Welcome!

by Lasse Soelberg 5. April 2008 15:21

This blog will contains bits and pieces related to the field of Computer Science. It will probably most be a place for me to share different kind of programs. This will probably not be the most updated blog in the world.

Tags:

General

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen