Mind the gap

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

unpack vs substr

Recently I’ve decided to repalce using substr by unpack when I need to split data which are presented in a row with specified order. But after that I’ve made a test to see what way is the most efficient. The test displays that unpack is slower than substr about 30%! But on the other hand unpack makes a code more compact and clear. So, if […]

Read Me Leave comment

Raritets of the USSR photo chronicles

Raritets of the USSR photo chronicles – Great Domestic War 1941-1945 is a set of inconceivable photos! Highly recomended!

Read Me Leave comment

New Limassol theaters schedule

Only one new movie has started in the Limassol theaters at that weekend. It’s a comedy “Meet the Fockers” with Robert De Niro and Ben Stiller in key roles. Actually, this is a sequel of “Meet the Parents” where Forker (nice name) met with his girlfriend’s parents. So, I can suppose, the sequel story is about visit the parents to Forker’s home. I’ve watched “Meet […]

Read Me Leave comment

Learn Computers by Watching movies

25 interesting things that you learn about computers in the movies: You never have to use the spacebar when typing long sentences. Just keep hitting the keys without stopping or All media devices are readily available – IE If someone hands you a DAT tape with important data on it your PC will have a DAT drive.

Read Me Leave comment

ASCII Babes

Recently I’ve found that funny site where you can see pictures of famous women which were made by letters. Hightly recomended for the fancy of UNIX console and dual-up users 🙂

Read Me Leave comment

No sex in USA!

“There is not a sex in USSR!” this is a slogan of USSR. Now Russian people are free from sexual prohibitions (too much somethimes). But the history is repeated. George W. Bush begins a public programe which popularizes sexual continence instead of to cultivate a sexual culture. It’s a real funny situation! Maybe after some time USA will be the same as USSR 🙂

Read Me Leave comment

LiveJournal stuff

Recently I’ve discovered a quite interesting site – ljplus.ru. It offers to LiveJournal users (and to others as well) 50Mb to upload pictures. It generates HTML code to include image into your LJ post for each picture from your collection. You can easily organize pictures in the folders, specify time when picture will be deleted, create thumbnails and HTML code for them and so on.

Read Me Leave comment