use Net::Stomp

Some of you know about ActiveMQ – an open source (Apache 2.0 licensed) Java Message Service 1.1 (JMS) message broker packed with many enterprise features. One of the way to communicate with it from none-Java programm languages is STOMP (Streaming Text Orientated Messaging Protocol). STOMP is very simple and looks like HTTP-protocol. Perl has at least two ways to communicate with ActiveMQ over STOMP: Net::Storm […]

Read Me Leave comment

Develop right CGI scripts

I came across Ovid’s CGI Course. It’s definitely good tutorial. Both experts and beginners will find there something interesting and helpful. I found the third part – Basic Security the most important and interesting for me. I’d like to add that you can find many useful extensions for CGI like CGI::Forms, for example. This module will do all routine work for you to produce web […]

Read Me Leave comment

Check password quality with Perl

When you manage some serious system where users can change their passwords you’ll face with problem of quality of those passwords. There is a Perl module – Data::Password, which may do all work to check user passwords: length or the number of character groups. Also, it’s possible to make more complicated checking: the password does not contain the same chars repeatedly or ascending or descending […]

Read Me Leave comment

Start to learn XML

If you’re new in XML this simple guide is what do you need to learn XML. Only for beginners! XML guru hardly find something interesting there.

Read Me 1 Comment

Managing Standalone Scripts in PHP: part II

The second article about using standalone PHP script shows amazing ability of PHP such as fork, signals and demonizing. Yes, PHP allows to catch signals like SIGINT, SIGHUP, SIGALRM and so on. It’s really cool! When I develop background utils for SugarCRM I didn’t know about those useful PHP features. So, it’s time to make them more efficient and geek.

Read Me Leave comment

Run PHP script from command-line

I came across a brief howto “Implementing with PHP: Standalone Scripts”. I’m Perl guy but I have to use PHP in command line to perform some SugarCRM backgound tasks. I found useful the part about parsing command-line arguments with Console/Getopt.php. It may do administration tasks much easier.

Read Me Leave comment

How to rename files with bash

Recently I uploaded a few photos to the my site and I did a mistake in the name: Kirenia intead of Kyrenia. There were ten files but I didn’t want to change their names one by one. Thanks to bash. It offers an easy and elegant way to fix this problem: for FILE in `find|grep Kirenia`; do TARGET=$(echo $FILE | sed -e “s/Ki/Ky/”); mv $FILE […]

Read Me 2 Comments

Perl and BIG projects

I came across this post on Perlmonks. One monk asked other monks about examples of BIG project based on Perl. I don’t want to digg thesis “BIG project” because, in my mind, a measurement of the project quantity in the number of lines is not so accurate. The main problem when we’re talking about Perl and Enterprise applications is in lack of knowledge of appropriate […]

Read Me Leave comment