Archive

Archive for June 7th, 2005

How to recursively add files and directories in GNU Arch

June 7th, 2005 No comments

Last week we moved from Subverion to GNU Arch. Why? I’ll try to explain in next posts. So, we needed to import our project (it contains many files and directories) in the new Arch repository. Leonid created a shell script to do that. But I’ve found easier (IMHO) way to do that.

tla inventory –source –names | xargs tla add

P.S. If you have some files in the Arch repository and some of them no you can do as indicated above. But in that case you’ll see warnings about already added files and directories. To avoid it run following command:

tla tree-lint –untagged-files | xargs tla add

Categories: Digital Life Tags:

The glance on PHP through Perl

June 7th, 2005 No comments

One month ago I started to customize SugarCRM for our company. This is a very good, hight quality software. But it ‘s based on PHP but I’ve developed on Perl during last four years. I’m not going to say “PHP is shit, Perl forever!”. I’d like just to share my impression of PHP as Perl developer.
And sometimes I’m a little bit confused about PHP. One example you can see bottom:

var $list_fields = array('id', 'first_name', 'last_name', 'account_name',      
       'account_id', 'title', 'email1'
        , 'quote_role'
        , 'quote_rel_id'
        , "team_id"
        , "team_name"

	, 'invalid_email'
);

This is a definition of some array (it’s disgasting to put each element in the quotes and use key word ‘array’). Strange isn’t it? I suspect that PHP didn’t ignore last comma in the array (Perl could do it from his birthday I guess). Thas’s way PHP developers made that trick to have possibility to drop any array’s elements without getting errors.

Categories: Software Development Tags:

dbf2rdbm

June 7th, 2005 No comments

Recently I’ve needed to transfer data from application based on DBF files to the MYSQL database. I’ve created a simple Per script to do it. So, I hope it’ll be useful for somebody to get it and modify if needed.
To run script you need to have on your computer installed Perl module XBase and DBI.

Categories: Software Development Tags:
Get Adobe Flash playerPlugin by wpburn.com wordpress themes