Reports and vardefs.php

Today I spent the rest of the day to fix one problem with Reports. It gave a JavaScript error (I hate JavaScript!) when some filter was built. The problem appeared only in Quote reports. I realized that it may happend because I added two new fields in the file vardefs.php. This file contains descriptions of all fields belonged to specific class: ‘tax_usdollar’ => array ( […]

Read Me Leave comment

SOAP::Lite and SSL

Once I found the solution how to create Perl SOAP server with SSL. Here is a path for a module SOAP::Transport::HTTP::Daemon: 392c392,399 – sub new { require HTTP::Daemon; — + sub SSL { + my $self = shift->new; + @_ ? ($self->{_SSL} = shift, return $self) : return $self->{_SSL}; + } + + sub http_daemon_class { shift->SSL ? ‘HTTP::Daemon::SSL’ : ‘HTTP::Daemon’ } + + sub […]

Read Me Leave comment

Perl Modules: Algorithm::CheckDigits

Algorithm::CheckDigits is a Perl extension which provides a functionality to generate and test check digits. It implements many algorithms to work with ISBN, UPS, VAT number etc. The workflow is very simple. First, the appropriate algorithm should be choosen: use Algorithm::CheckDigits; $isbn = CheckDigits(‘ISBN’); Then it’s possible to check existing number: $isbn->is_valid(‘3-930673-48-7’); Get from existing number the check digit or base number: $cd = $isbn->checkdigit(‘3-930673-48-7’); […]

Read Me Leave comment

Class::DBI, Postgrsql and mod_perl

Recently I tried to use Class::DBI – one of the best Perl frameworks to create a persistent objects – with Postgresql and I faced with big problem. After the second or third request to the database it gave me an error: Can’t use an undefined value as an ARRAY reference at Class/DBI.pm line 1125 It was very strange for me because I used Class::DBI with […]

Read Me Leave comment

About Java

Personally I don’t like Java because it seems like a just product of high-quality PR. I don’t want to minimize the Java importance. it’s an excellent solution for certain goals but it isn’t unique, it isn’t absolutely universal! Hovewer, Java adherents think differently. From their point of view there are not anything noteworthy except perfect, brilliant, ideal Java! James Gosling – father of Java confirmed […]

Read Me 6 Comments

Run only one copy of Perl script

Let’s suppose you need to have only one copy of your Perl script running. An elegant and short way to do that is a lock the script by itself. Add this code at the begginig of your script and it’ll avoid to run more than one copy. use Fcntl ‘:flock’; open SELF, “< $0" or exit(1); flock SELF, LOCK_EX | LOCK_NB or exit(0);

Read Me 2 Comments

wikiCalc: Perl is cool

Recently I’ve found an interesting Perl web project – wikiCalc. Basically, it allows to build web pages which support limited functionality of spreadsheet. It might be interesting for developers who create various web-based user interfaces and want to expand them.

Read Me Leave comment

Why I hate SugarCRM

I’ve worked for a half of year with SugarCRM and I haven’t changed my mind about it. It looks nice from the outside and crude inside (as most of others popular PHP applications). For example, it’s a good idea to check of application version. Let’s see how it was implemented in SugarCRM. First of all, the version is stored in the database: table name is […]

Read Me Leave comment