Some tabs

Screen_shot_2010-12-06_at_9

Some of them are opened all the time (e-mail, blog, etc), some are samples and forums about objective-c and iphone sdk stuff. Some are left open to read them later.

more ...

Status updates

Time to time I post latest updates on my life. I don't think I'm a good writer, but I hope these posts will be available when I will be old, so I can remember this all much easier. (I am planning to write my biography at some point:))

I actually started this post some month ago, but it stuck somewhere between "have no time to write it" and "have no inspiration to write it". What is happening lately?

As you already know it I almost burned my MacBook down. It was on Halloween evening, coincidence? :)

Louise now are 10 months old. She is so gorgeous, although it seems, that she will be very stubborn girl. It is actually not a bad thing, just have to direct hers stubbornness into right direction. Now she have 5 teeth. She gets very serious when exploring things. She is so cute when she is so serious. Also new words and expressions are jumping out every week. It is a great thing watching her grow up.

In professional area I have developed my first iPhone …

more ...



Disappointment of android

Few weeks ago I bought a brand new Sony Ericsson Xperia X10 mini pro (what a name). And I am disappointed in it. I thought 2.1 version would make some difference, but it does not. It is better, but still not good enough. And even getting the actual 2.1 update was big times fail.

Key points:

  1. Battery. It is a fu..ing disaster. Today I actually tried to turn on what I would like to use everyday. It last 6 hours before battery was empty. 6 fu..king hours. It is called a mobile phone, not desktop PC. I guess turning off skype would last some 4 hours more, but still. 10 hours (without wifi and gps turned on)? iPhone 3G with push gmail did hold up to two days. When I turn off every part i can, it lasts only for a day, if I use it little more actively I charge it twice a day. Playing angry birds increased it to 3-4 times a day, last rounds I played plugged in. Charger cable now is like …
more ...

Multilingual websites

Another topic I wanted to cover today is international websites.

When we are talking about translating content into another languages in general we have to choose between two models:

  • Content of the website is mirrored in each language or
  • Each language have their specific website structure and contents

Both of models have their pros and cons and of course there can be some adoptions of both of them. This post is more about the second one.

I tried to find some good solution to create multilingual website and found nothing useful. Then I tried to find some plugin for wordpress, because the site, that needed translation is already on it. I found WPMU . But it somehow doesn’t felt right to use it. It does too much altering of database and I can only imagine how much action hooks it has. You see, I like simple things out of the box, I don’t like to hack things around, creating a big mess doing so. Although, it doesn’t goes along with my last post, sometimes you have to choose …

more ...

Hacking of the wordpress

Some weeks ago one of the web servers started to fail. The website showed gateway timeout errors. Restarting all three services (nginx, mysql and php-fpm) did the trick for some days and then it started again. So I was wondering, what the .. ? After some research I found out that each php-fpm process takes 100 or more MB of memory and there were, well some 5 or 6 processes. At some point web server started to use a swap space and of course became unavailable. Disabling of all the extensions, I had added to php, made no changes, so it should be website it self. Disabling of some wordpress plugins made it a bit better and made me wonder.

Recently I discovered a really nice tool from Facebook - XHProf. It is something similar to webgrind, just more cooler. It shows information about called functions, memory consumptions, cpu execution times, etc.

So I thought lets take a wordpress and put it under XHProf. It just blow my mind away. It made somewhere around 70 000 function calls. Oh yeah baby.. Today I …

more ...


MongoDB startup scripts

Today I had to put a site on production server that uses mongodb. It included installing of mongodb it self. MongoDB comes as a binary download and currently is not a part of ubuntu distribution. It also does not comes with a startup script with it. I searched over google and found some not very good examples, so I decided to create it from ubuntu nginx startup script. As this was already third or fourth time I do this, I thought I should place it somewhere so I don't have to do it again. Here it is on github: https://github.com/gintsmurans/mongodb-startup-scripts

You are welcome to fork it and add other distribution startup scripts and also suggest changes to ubuntu script.

more ...