How to recursively add files and directories in GNU Arch

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 […]

Read Me Leave comment

dbf2rdbm

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. dbf2rdbm.pl

Read Me Leave comment

How remove leading zeros

The most efficient way to remove leading zeros from some number is add to that number 0: 1 #! /usr/bin/perl -w 2 3 use strict; 4 use Benchmark; 5 6 my $test = ‘000000000000001’; 8 timethese shift, 9 { 10 Add => sub { my $num = $test; $num += 0 }, 11 Regex => sub { my $num = $test; $num =~ s/^0+// }, […]

Read Me Leave comment

Happy Valentines day

Read Me 1 Comment

Road Rage Cards

Sometimes I become irritated when I drive a car. Because drivers who surround me go very-very slowly and make stupid, abrupt manoeuvre (it’s only my opinion, I could be wrong). So, resently I’ve discovered a site with Road Rage Cards and I’ve though “I’m not solitary!”

Read Me Leave comment

My Wishlist

Last update at 08/01/2010 Gadgets Logitech G35 Surround Sound Headset or similar one Voyager 520 Bluetooth Some weather station A/V equipment Philips DVD player with Karaoke DVP5996K. Network audio player Squeezebox Boom Logitech Squeezebox Radio – network audio player Network audio player Squeezebox Popcorn Hour A-110 LOGITECH HARMONY 555. Computer Parts Internal Blu-Ray Combo Drive S-ATA: ASUS BC-08B1ST, LiteOn IHOS104-37 or something similar. D-Link DIR-825 […]

Read Me 2 Comments

My Mobile Phones Evolution

Siemens C25 –> Siemens M35 –> Siemens C62 Possibly my next mobile phone will be Motorola A780 with Linux inside: Motorola A780. Update: now I’m a lucky owner cool and geek Sony Ericsson K700i 🙂

Read Me Leave comment

tar: Howto Exclude or Include Files

Recently I’ve had a little problem. I’ve needed to create an archive from some source directories but I’ve not needed to add in the archive some subdirectorives. I’ve made a quick search in Google and found an article “Telling tar Which Files to Exclude or Include”. Here is a short example: $ find videoguide/ ! -type d -print | egrep ‘/,|%$|~$|.jpg$|.gif$|.png$’ > /tmp/exclude_files That command […]

Read Me Leave comment