FJAX: Ajax with Flash

Ajax is a standart de-facto for Web 2.0 applications. Using Ajax technology it’s possible to create a flexible and handy web-based user interface. But the computer world is not at a standstill. The new web technology is coming: FJAX. FJAX is a Flash-based implementation of Ajax: Fjax uses the Flash Player to load a 1 pixel by 1 pixel transparent SWF to simply get XML […]

Read Me Leave comment

Lost in Translation

Today I tryed to implement a functionality to create some CRM entities from email. I needed to retrieve an email, first name and last name (if possible) and body of the email. The last name is a mandatory property. I made a mistake when I used perlish style to initialize the last name: preg_match(‘/\”(.*)\”\s+\< (.*)\>/’, $from, $from_arr); $names = preg_split(‘/\s+/’, $from_arr[1]); $email = $from_arr[2]; $first_name […]

Read Me Leave comment

Web Automation with HTTP::Recorder

Many of Perl programmers at least once used LWP or its extensions to create some web automation scripts. There are no any serious problems to do simple things. However, to simulate some complicated web procedure it may take a lot of programmer’s time. In this case, the module HTTP::Recorder can do all this work for you: HTTP::Recorder is a browser-independent recorder that records interactions with […]

Read Me 2 Comments

Howto get the first day of the week by week number

Today I faced with small problem. I prepared a chart where data was split by weeks. It was very easy except one thing: display the first day of the week instead of week number. Here is a one way to do it (the main idea belongs to my co-worker Igor): sub get_date_by_week { my $week = shift || 1; my $year = shift || (localtime)[5]; […]

Read Me 4 Comments

use Gantry

Gantry is a new Perl Framework to develop web applications. It offers: Plugin architecture Support mod_perl 1.3 and 2.0 Support CGI and Fast-CGI Support Template Toolkit and the ability to plugin other templating systems Inherited framework code for a standard CRUD (Create, Read, Update, and Delete) application. Calendaring support Cookie management Form generation and validation User authentication: user, group and page-based Class::DBI integration Database and […]

Read Me 4 Comments

Get backtrace in PHP

The inevitable has occurred! PHP developers added possibility to get backtrace! There are two functions: debug_backtrace and debug_print_backtrace. The first one returns an associative array each element of which contains following structure: array(4) { [“file”] => string(10) “<file name>” [“line”] => int(10) “<line number>” [“function”] => string(6) “<function name>” [“args”]=> array(1) { <list of arguments passed to the function> } The second function prints the […]

Read Me Leave comment

Update exiting RT2 Ticket

Today I spent some time trying to update a property of exiting Rt2 Ticket. I made a search in the class Ticket and didn’t find anything similar Update of Save. It turned out, that RT doesn’t use a specific method to store all modified object properties. To set a new value to objetc property it constructs the setter: Set<propertyname> Moreover, RT save the new value […]

Read Me Leave comment

Perl is the best again

Perl core source code is tested using an open source software by Coverity, Inc: Ben Chelf, Coverity’s CTO, commented that “of the LAMP stack, Perl had the best defect density, well past standard deviation and better than the average.” Well, Perl demonstrated that it’s the best. At least in the LAMP (Linux, Apache, Mysql, Perl/PHP) area. But nobody knows about results of Java source code […]

Read Me Leave comment