contact

Archive for the ‘Projects’ Category

how to start a scriptaculous drag with code

Saturday, August 2nd, 2008

Usually a scriptaculous draggable will only start the drag if you click on it. As I was adding drag and drop functionality to a web based filebrowser I actually wanted to start the drag of an other object when the user clicked on a file and dragged it. So the user clicks on a file from a list view but does drag the actual dom element from the list view. the click on the file calls a function that slips a file icon under the mouse of the user and starts the drag of that file icon. That way a user can drag and drop just the icon which looks much nicer and gave me the ability to drag and drop all selected files from the list view. its actually pretty simple, you just pass on the click event to the initDrag method of your draggable.

</pre>
$('yourObjectThatWillBeClicked').observe('mousedown', function(event){
 //observe the object for clicks
 $('yourActualDraggable').setStyle({
 // slipping the draggable under the users mouse
 position:'absolute',
 top:Event.pointerY(event)-16+'px',
 // this gets us the position of the users cursor
 left:Event.pointerX(event)-24+'px'
 })
 Drager=new Draggable('yourActualDraggable',onEnd:function(){Drag.destroy()});
 // making it a real scriptaculous draggable
 Drager.initDrag(event)
 // passing on the event and starting the drag
 }
<pre>
screenshot that illustrates this technique in my application

screenshot that illustrates this technique in my application

script.aculo.us

www.odem.eu

Tuesday, March 18th, 2008

I just finished the makeover of the web appearance of  the clothing company odem. Since their distribution is working via ebay, I am creating a flash app that is reading the ebay rss feed of their store and displays their catalog of products in their corporate layout. That way the catalog is automatically kept up to date.www.odem.eu  this is a screenshot of the old site.

XAMPP Filezilla FTP on Windows XP SP2 continued

Tuesday, January 8th, 2008

A second issue I noticed is that if you change the folder windows folder permissions of the folders that are shared by ftp, the ftp does not work properly anymore. By changing the folder permissions I mean that you share the folder in a local network for example.
Solution:

Broken windows Home Server Trail DVD

Tuesday, January 8th, 2008

Now that I have my home server up and running I was really interested in the new microsoft home server. I ordered a 120 day trail dvd, which i finally received after weeks of waiting. The rest of the story is rather short.

www.astral-linz.at

Tuesday, January 8th, 2008

This is another simple website I did for a tech company. Basic html site, with a small flash slideshow.

www.akutron.com

Tuesday, January 8th, 2008

I created this website during my internship in kiew for the technology company Akutron. its nothing really special, just some basic html css and a little php for the different languages, although the translations never got done. www.akutron.com

My home server

Monday, January 7th, 2008

I took me about a year to gather all the components for my home server, now it is finally mounted in to a closet in my kitchen (picture below). I now run a AMD 2800+ with 1 GB Ram with Windows XP SP 2. In order to make the whole thing more useful than just big hard drive I installed XAMPP and set up my router so it would forward the http:// and the ft:// port to its IP.

XAMPP Filezilla FTP on Windows XP SP2

Monday, January 7th, 2008

I installed Xampp on my Server machine and while the http was working fine the filezilla ftp access showed very odd behavior. After screwing with the problem for several hours i finally realized that the solution was quite simple.

Solution:

Disable your windows firewall, or open the ftp port 21 and you will be fine.

Flash – php – MySql Filesystem

Monday, January 7th, 2008

I am working on a browser based flash UI