Perl and operator SWITCH

As you may know Perl doesn’t contain a SWITCH control operator. Instead, there are many ways to create SWITCH. This is a good and bad. Yesterday I fixed a bug in our Billing System related with custom implementation of SWITCH operator. Image we have a code like that: my $var1 = ”; my $var2 = ”; SWITCH: { # the first option $var1 = 11; […]

Read Me Leave comment

JavaScript, DHTML JavaScript, DHTML JavaScript DHTML Tooltips

Here is another useful JavaScript Cross Browser library – Tooltip. Using Tooltip you can add various tooltips on your web page even with URL or images (see image below). The library is full customizable and easy in use. Just download the library, place the file wz_tooltip.js somewhere in your web directory, load it: <script language=”JavaScript” type=”text/javascript” src=”wz_tooltip.js”></script> and add desired tooltip in HTML tag: <a […]

Read Me 1 Comment

Upload files to web with FileChucker

FileChucker is a Perl script supported Ajax which cab be used to upload and manage files on the web site. It includes a real-time progress bar, a built-in password protection, E-mail notification about new uploads, automatically replacement of any “unfriendly” characters, a possibility to work over SSL, an adjustable max upload size. The FileChucker can be easyly integrated with existing web application even it’s based […]

Read Me 4 Comments

Customize JavaScript core functions

I started to change my mind. It seems that JavaScript is a cool and power. It allows to do many things. One of them is a possibility to iverride easyly any core function. The simple and clear example is here. You can use stylish and infomative alerts instead of default boring window.alert. The same manner you can customize any others functions to meet your requirements.

Read Me 3 Comments

Web, Perl and Ajax

I don’t like JavaScript. I prefer server-side technologies because they give a confidence in the correct work on any client PC. You cannot have the same confidence with JavaScript functionality. It has dependences on browser type, set browser options and many others conditions on the client-side. Hovewer, web 2.0 brought the modern realisation of client technology based on JavaScript – Ajax. Using Ajax it’s possible […]

Read Me 2 Comments

Mosaic images and video with Perl

Perl is cool and geek! You can do many thing using it and not just simple scripts. You have to just know how to do it. Tomorrow I found two articles on 128.ibm.com: “Create mosaic images with Perl and ImageMagick” and “Create mosaic movies with Perl, ImageMagick, and MPlayer“. Source code is available for both articles.

Read Me Leave comment

Perl with taste of Strawberry

Perl developers who work under Windows didn’t have possibility to install XS CPAN modules directly from CPAN. I used a command nmake from MS Visual Studio to do it. The project Strawberry Perl which is a part of Vanilla Perl Project changed this situation: The purpose of the Strawberry Perl series is to provide a practical Win32 Perl environment for experienced Perl developers to experiment […]

Read Me Leave comment

Playing with Ruby

I need to add support a new interface panel to the my Plutohome installation. To do it I use Generic Serial Device (GSD) which works perfect. GSD has embedded Ruby interpretator to provide a tool for implementing desire device logic. In my case, I receive a hexdecimal binary string which contains a device ID, device port, command and data. All of them should be converted […]

Read Me Leave comment