Thursday, September 5, 2013


TouK zaangażował się w produkcje filmową.
Polecam stronę

Friday, June 28, 2013

Grails on Ubuntu 13.04 Raring Ringtail

If you add grails ppa to your sources you still won't install grails. There's no packages ready yet.

Instead of crying you could (temporarily) edit your apt sources and install packages for 12.10 Quantal Quetzal. So do this:

sudo add-apt-repository ppa:groovy-dev/grails

sudo vim /etc/apt/sources.list.d/groovy-dev-grails-raring.list
and change path to
deb quantal main

sudo apt-get update
sudo apt-get install grails-VERSION

If after typing grails if you press the tab key then it will show all available grails versions from 1.2.5 to 2.2.0 and beyond.

Remember that you can install several versions of grails and switch between them with

 sudo update-alternatives --config grails

Tuesday, June 11, 2013

Prezentacja jQuery z 4developers

Prezentacja z konferencji 4developers jest całkiem interaktywna. Nie ma dema (gry Jeżyk), ale może kiedyś uda mi się je wrzucić.

Monday, April 29, 2013

Java encoding problem (in Tomcat and other servers)

The problem with encoding of served files appears when there's something wrong with java configuration on system level. Even providing proper headers inside HTTP responses can't help because all files are read improperly.

If you have problems with tomcat or other server and your files are served with broken encoding, you should edit your start script and add to JAVA_OPTS

 -Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8

I assume that you use utf8. If not, correct statement above with your encoding but please consider moving to utf8. 

Thursday, April 11, 2013

Jutro 4developers

Jutro na Bobrowieckiej (tam gdzie była wielokrotnie Javarsovia i Confitura), jutro, 12.04.2013, odbędzie się 4developers. Ja też tam będę z moim wykładem jak zacząć developować przy użyciu jQuery ("jQuery kickstart"). Zapraszam na ścieżkę "Javascript & modern web".

Sunday, March 3, 2013

BitBucket push/pull keeps asking me for password

It does it even if you've added your ssh key?! Really?

So edit .git/config and change repo url from https to ssh.

It should look like this

url =

If you don't know the address then go to your bitbucket repo page and check SSH address on the project's Overvier tab.

Don't forget to set up your name (bitbucket login) in [user] section. Refer git manual or just type

$ git config your_login
$ git config your_email

Tuesday, February 5, 2013

Http server with PHP on RaspberryPI

Totally awesome guide is at
But instead using provided silex site config file, you should configure root folder of web server to serve php scripts. To do so please rm symlink to silex file and edit


Set root folder to /var/www

#       root /usr/share/nginx/www;
        root /var/www;

Add index.php as a index file

index index.html index.htm index.php;

And configure all php files to be parsed by fastCGI php bridge set up on port 9000. Just put all below somewhere in default file

 ## Parse all .php file in the /var/www directory
            location ~ \.php$ {
                    fastcgi_split_path_info ^(.+\.php)(.*)$;
                    fastcgi_index  index.php;
                    fastcgi_param  SCRIPT_FILENAME  /var/www/silex$fastcgi_script_name;
                    include fastcgi_params;
                    fastcgi_param  QUERY_STRING     $query_string;
                    fastcgi_param  REQUEST_METHOD   $request_method;
                    fastcgi_param  CONTENT_TYPE     $content_type;
                    fastcgi_param  CONTENT_LENGTH   $content_length;
                    fastcgi_intercept_errors        on;
                    fastcgi_ignore_client_abort     off;
                    fastcgi_connect_timeout 60;
                    fastcgi_send_timeout 180;
                    fastcgi_read_timeout 180;
                    fastcgi_buffer_size 128k;
                    fastcgi_buffers 4 256k;
                    fastcgi_busy_buffers_size 256k;
                    fastcgi_temp_file_write_size 256k;

Now restart ngix as mentioned in original article and enjoy PHP on RPi!

Monday, January 21, 2013

Virtual task board + info radiator

There are some posts around about various task board solutions. Besides that we use white board to sketch some designs and exchange knowledge, we use virtual board as task board and info radiator.

Simply we have a jQuery script that runs in a web browser that rotates some most important pages with our project status. These are JIRA/Greenhopper task board, Jenkins, Sonar and current app snapshot built and deployed automatically by Jenkins.

And where this board stands? In front of us, at the windowsill where every team member sees it.

What is it? An old computer with 20" display.

Our colleagues from other project had ordered about 30" monitor but they have our company owner in team so this was obvious that they should have bigger and better display ;-)