Some weekend’s madness

I’ve just tried to follow intellij idea’s manual and develop some useless plugin. And now my plugin can display “Hello world” program on perl.
Screenshot from 2013-08-19 00:05:08
You also can view this madness on github.
UPD1. Some new lexical constructions support added.

AVR electronic

Implement CPU in FPGA. Core SomeAVR on verilog

In this article I try to talk about implementation part of CPU that can execute instructons subset of original AVR core. It’s only preview and can be use for academic using only. Because most useful programm that this CPU can execute is LED blinking :-) You can view this in following video:

Here right 8 LEDs indicate value of register R20. Left 8 LEDs – value of IP(PC). read more »


Link assembly and c

I using nasm to generate object code from assembly source. 3 application required to compile executable:
– nasm
– gcc from gcc--base package (gcc-4.7-base for example)
– ld from binutils package
*package names in ubuntu distribution

To install this packages run following command:

Files contents:

And finaly:


Precision of calculation with floating point numbers

I found some curiosity issues during finding optimal tool for compilation our program. Results of computations be different for different tools and different optimisation flags.
For investigating this issue I write simple code(full sources on github):

In this small test program I can’t reproduce different results for different flags. But 5 different results for so similar programs is enough to demonstrate discovered effect.

Source code and tool Result Computation time, s
Assembler 1.53436944477410652787 3.81
gcc long 1.53436944477462278158 4.4
gcc double 1.53436944477389380914 4.4
icc long 1.53436944477397574360 6.88
icc double 1.53436944477334602510 1.50

p.s. also I found that manually written assembly code 15% faster than code on C in spite of using “-O2” optimisation flag.

AVR electronic

AT90USB647 development board

AT90USB647 development board. Overview.

read more »


Suffering Oriented Programming

Do you suffer greatly without some feature?
We will implement it!

We take into account only the great suffering

backup programming svn vcs

Remote SVN backup with svnsync

Create local svn repository with name “my_local_repo”

prepare local repo

initialize local copy

first run must be interactive to input and save your login and password

write script to run it in cron

it produce files like “svn_2012_09_07_01_34_01.tar.gz” in your backup directory

Now you can add task to cron. Execute:

and add following line to run backup at 4:00 (4 a.m.) every day

This method is not disk space efficient, but very simple.

using svnsync
installing subversion server in ubuntu

bash linux

Web server on bash

web server on bash, nc, awk and sed

read more »


Remote access without “white” ip

How to get access to shell on the remote computer that don’t have “white”(“real” or “public”) IP without any additional software in linux?
Quick and dirty solution:
on server side:

on client side:

pipe ‘/tmp/localpipe’ used to redirect bash output back to ssh
note: use exit command to stop redirection