Archive for the 'Portfolio' Category

Flash socket server + MiceTalk

Sunday, March 18th, 2007

How promised, here my little perl Flash socket server.

This is a simple prototype that I've made to explore the power of non-blocking sockets.
I've tested it with a thousand connections and it should handle some more.
This can be used for a multiplayer flash game or a community chat, but since it isn't "production ready", use it at your own risk :)
It can be also useful to who want to implement his own server.

Features:

  • >=1000 connections
  • anonymous nick, free nick (free to choose you own) and registered nick with mysql/postgre/sqlite/dbo compatible
  • Can run in some web hosts like Dreamhost Update: It violates their policy

Download: Perl Flash socket server

To run:

CODE:
  1. ./creaTestDb.pl
  2. ./flashserve.pl

Here are also a bunch of AS classes to interact with the server and an example application like the "mouse chat" in my website. Update: my hosting (Dreamhost) doesn't allow FlashServe, the party is over
Sadly, since these was made 4 years ago with an italian friend, all the comments are in italian, if someone is interested, I can translate it.

Download: MiceTalk socket server example + Classes

You can use my server at dev.madarco.net:7777 but only in the Flash IDE (no crossdomain.xml)

I have a website

Thursday, February 22nd, 2007

Finally!
Since I'm looking for a job I realized that I need a personal website, so I've quickly made a simple one.
Nothing special, apart that you can see the mouse of the others guests and talk with them (just write, then press enter).
Enjoy!

Plick time tracker

Sunday, February 11th, 2007

Since I was looking for a way to organize my tasks, I've made:
Plick - Time tracker, a tool that help to keep track of what to do and the time spent on doing that.

The main features are the simplicity and that it help to stay in the schedule.

Using Plick is simple:
just specify a task and the time you think will be required to do that (eg: "clean room 15" = clean the room in 15 minutes)
then, when you are doing that, just click on it and the timer will start.
Plick will keep track of the time spent on each task, in this way you can see if you spent much time than you expected, helping you to make better previsions.

plick.jpg

Reference Explorer

Sunday, July 16th, 2006

Page outdated, for the new version of this application visit: Object Explorer

Ok, the exams are gone, and I'm ready to came back to my projects!

Finally, I've (almost) completed a reference explorer for flash: this application show the object tree in a swf, it can be useful while debugging and it can help find circular references:
in Flash up to 7 circular references doesn't allow objects to be deallocated by the garbage collector. A nice explanation of the problem can be found in this Grant Skinner's blog entry.

Although this issue doesn't exist for the new Flash 8 garbage collector, it is still present in Flash Lite 2.x.
A reference explorer can also help refactoring or be useful to visually debug your flash projects and to explore object dependencies, in future I could extend it to show information useful for debugging like object variables and class hierarchies.

Usage:

  • Download it and click on main.html
  • Type the name of the swf you want to load, you can see the movie in a window
  • When you are ready click "Analyze" to show the object diagram
  • Red objects contain a circular reference, the name of the variable holding that reference is showed in a box
  • After each object name you can see the class name

 

Download source and swf:
ReferenceExplorer.zip

Try it online with a test swf: (or your own if you set proper cross domain policies)
Reference Explorer

 

Reference Explorer at work:

 

Some links on garbage collection in Flash Lite:
Flash Lite memory management (LiveDocs)
Comparison between Java ME and Flash Lite
Flash Lite memory management

Flash 8 Image recognition

Monday, June 26th, 2006

Recently I've implemented two common algorithms for skeletonization (a common technique in the image recognition area, used for example for text recognition): Zhang-Suen and Hilditch. Although very limited and slow, i think flash can be used for simple image processing, like image-driven search, simple object recognition and image enhancement.

Swf (best in projector): elaborazione.swf

Source: elaborazione.fla

Insieme Project Manager

Friday, July 22nd, 2005

This project manager was realized by me and other 5 colleagues for an exam of my degree in information technology, it's written in php and uses Mysql >=4.3. It is full of features, with a complete user/group management, messaging system and an easy template system.
It allow an user to create a project and to associate users or group with it, every user can upload file and make html pages with a wysiwyg editor (Xhina) for the documentation of the project. Files can be private and only user who has the right can comments and downloads such files. Users can have their own profile and send message to other users, groups, projects or broadcast.
We are very proud of it and we are planning some utilization of the code for some other projects.
Every class is documented with phpdoc in italian and I hope to release a translated version in the future.

RICOH European Contest

Wednesday, July 13th, 2005

I've participated at this contest organized by Ricoh Europe. It was the first european contest in the embed market. The goal was to develop an embedded application for one of Ricoh's Printer/Copier/Fax. It wasn't MIDP, but a CDC+FP profile with some extra. I've won the university contest in the "Business" category with my application MadaPrint.
It is a document repository that run on a Aficio Java-Enabled printer. With MadaPrint is possible to share documents and print other's. It is managed by a web interface that run on tomcat 3 (the machine has an ethernet interface) and a java Xlet that run on the printer's LCD.
This experience in the embed world was really interesting, hope will be another contest next year.

You can download the source code and jar here and the presentation document of MadaPrint.
Oh, it is released under the GPL.

Server side:

Xlet:

Associazione Nahod Website

Wednesday, July 13th, 2005

I've made this site for a Shiatsu school in Rome: www.associazionenahod.it no more online

swf: Associazione Nahod