Preparing for working with AVR-microcontroller

Today I ordered just such a thing:
Electronic Blocks Hardware Iinteractive Arduino Ultimate Senior Suite

And Ethernet-addon too.

Now I waiting for order shipping.

Stay tuned.

Linux 3.0 released!

So there it is. Gone are the 2.6.days, and 3.0 is out.

Read more

Ubuntu. New release.

$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
$

Remove words from string with duplicate chars

Imagine that you need to delete words that contain duplicate letters.

The first choice:


my $a = "1asdf 2sdfg 3dfggdf 4sdfrrsdf 5sdfsdf 6dghgyyghf 7fdfgd 8hgggiu";
my @b = split / /, $a;
foreach my $w (@b) {
    next if $w =~ /(.)\1/;
    print $w." ";
}

But we can do it more simple:

$a =~ s/(\b.*?\b)\s(\w+(.)\3\w+)/$1/g;

Example:

$ perl -e 'my $a = "1asdf 2sdfg 3dfggdf 4sdfrrsdf 5sdfsdf 6dghgyyghf 7fdfgd 8hgggiu"; $a =~ s/(\b.*?\b)\s(\w+(.)\3\w+)/$1/g; warn $a'
1asdf 2sdfg 5sdfsdf 7fdfgd at -e line 1.
http://www.developers.org.ua/columns/pochemu-javanet-programmistyi-zarabatyivayut-bolshe-i-chto-im-za-eto-budet/http://www.developers.org.ua/columns/pochemu-javanet-programmistyi-zarabatyivayut-bolshe-i-chto-im-za-eto-budet/

LJ OpenID

I fixed the login with livejournal.com OpenID today. It will start working after the next release.

Let’s start!

Welcome!

This is a start. I started a blog.

What I am about to write? At the moment it’s about programming (mostly in Perl).