Howto get ticket body

Imagine you need to get a body of some ticket. It isn’t so easy do to in RT. All its objects look like sets of nesting dolls :). Each of them contains link to one or more others. In the our example, the ticket body is stored as attache. So, there is a simple diagram of object’s releastions: Ticket –> List of Transactions –> Transaction […]

Read Me Leave comment

Manage RT from command line

To create a command line script to make someting in RT you have to call initialization methods: CleanEnv – clean out user’s environment variables: PATH, ENV, SHELL, CDPATH, IFS. LoadConfig – loads config. Basically do just use config;. DBConnect – calls RT::Init() which sets connection to the database, creates two users – system user and nobody and initializes lgging system. Each RT (except RT::Users and […]

Read Me 1 Comment

PHP and Command Line

PHP is probably the best language to talk with web. But it isn’t good when you need to work with command line. When I started work with SugarCRM I’ve discovered that about 40% of tasks like synchronization with related systems, massive updates etc should be done in the command line and not via HTTP. There are my suggestions based on my experience (it is not […]

Read Me Leave comment

Perl + Ajax = PerlJAX.us

PerlJAX.us presents the easiest way to use Ajax in your Perl web applications – CGI::Ajax. Personally, I hate JavaScript at all but somethimes it can be effectve solution. Espessially, after Gmail, Flikr and 30 Boxes. I’m going to use Ajax with Perl and PHP at least in two my projects 🙂

Read Me 1 Comment

OOP vs Functional Programming

Damian Conway has written excellent book about Object Oriented Programming in Perl. It was an answer for all who said ‘OOP in Perl is not a real. It’s just a hack’. But the question about efficiency of using of OOP is still open. Mark Jason Dominus added fuel to the fire published his book Higher-Order Perl. This book makes a fokus on functional programming techniques […]

Read Me 1 Comment

Howto convert array to hash

The easiest and most idiomatic way is: my %hash = map { $_, 1 } @array;

Read Me Leave comment

Howto grant to RT3 user needed rights

After installation RT it needs to get right permissions for each user or for specified group. This tip explains how to allow to users change password or modify personal information. Login in RT as root. Go to Configuration –> Global and then Group Rights or User Rights. Now choose user name or user group and add permission ‘ModifySelf‘. Don’t forget to save your changes.

Read Me 1 Comment

How to profile mod_perl applications

One of the serious limitation in Perl is an absence of a possibility to make code debugging and profiling in case mod_perl applications. For example PHP has very good development environment – Zend Studioâ„¢ developed by Zend which includes realtime profiler and debugger of web applications: It’s useful to find some bottle necks in the web applications. Perl dasn’t have such tool. Hovewer, there at […]

Read Me Leave comment