Welcome to zehnet.de

This site basically offers a blog, which is primarily about programming and occasionally maintained.
We also devotedly offer our timely service to the highly and sincerly interested.
Feel free to contact us immediately and directly. We will quickly and assiduously answer your requests.

What has happened?

The site has been completely redone. Content originally published on download.zehnet.de will be integrated into this site and redirections will be set wherever appropriate. It is still a work in progress, so content will constantly grow within the next weeks.

document.elementFromPoint – a jQuery solution

While writing a new drag & drop component, i came across the javascript function elementFromPoint(x,y).

The elementFromPoint method returns the DOM node located at the coordinates x,y. This method is truly helpful when it comes to detecting a drop target. You simply get the node at the mouse position with elementFromPoint at the coordinates the drop occured and walk up through the DOM tree untill you find a valid drop target. From a jQuery point of view, this means only using $(nodeUnderPointXY).closest('myDropTargetSelector') on the node.

For more information on this elementFromPoint, see quirksmode’s compatibility table and a demo.

read on further »

posted by nik on November 19, 2010

Wordpress PHP Execution Plugin

The PHP Execution Plugin is a Wordpress plugin which allows users to write php code inside of their posts and pages. Embedded php code will be executed when the post is shown. In doing so, the plugin offers the possibility to utilize dynamic content inside of posts.

Probably you might say, that there are already plugins that do the same!
So why another plugin that executes php code?

Well this plugin integrates well with Wordpress’ visual editor as the picture above shows. So in contrast to other plugins, you don’t need to turn off the visual editor in order to edit your php code.

read on further »

posted by nik on February 25, 2009

Flex FileUpload Component

What we’ve got here is a FileUpload component for Flex which utilizes the new FileReference.load method available since Flash Player 10 to support uploading of large files.
As a lot of providers choose a very small size for their PHP ini settings of upload_max_filesize and post_max_size, uploading files bigger than 2mb is often not supported. This can be very annoying if you like to upload mp3 or video files, which easily can exceed the maximum accepted file size. In this case you normally have to go with an FTP client.

Uploading large files

If supported by the client’s Flash Player this upload component utilizes the new FileReference.load method to load the file into the ram of the client computer at first. Once loaded the file data can be read via the data property of the FileReference object. It is now possible to extract chunks of the loaded file data and upload those chunks to the server separately. This way the upload-data won’t exceed the maximum accepted post data of the server as the chunks used are a lot smaller. On the server side, a php script is joining the chunks together to the original file.

Resuming Uploads

Prior to uploading the uploader also calculates an adler32 checksum of the file data. This checksum is used to check if a partially uploaded file already exists on the server and an upload operation can be resumed.

read on further »

posted by nik on February 23, 2009

red5 Remote SharedObject experience & tips

red5 project hom

The following post is a copy of a post i originally contributed to the red5 mailing list.

Hello Red5 Community,

i am kind of new to red5 and spend the last days tyring to figure out how to use shared objects with red5.
In the following lines i like to summarise my experiences. This should serve as a hint for others who come accross the same questions and problems that i did.
Please feel free to correct or supplement the following lines where neccessary.
When discussing SharedObjects in the following, i refer to Remote Shared Objects and not Local Shared Objects of course. I also focus on non-persistent ones.
read on further »

posted by nik on April 11, 2008

DragController component

The DragController component is as flash component that can be used to drag and drop items between several flash ui components, e.g. List, DataGrid, Tree.
With the DragController it is possible to set “drag and drop”-references between two components, which define if dragging and dropping from one component to another is possible and what type of items are allowed to be dragged.

It is based on the superb script of Alessandro Crugnola from sephiroth.it and adds some modifications and improvements, as well as an extensive help provided within the mxp flash extension file.

Have a look at the demo, the help files and/or download the component here.

Links to the DragController Component on sephiroth.it:

posted by nik on May 17, 2006