Archive for the ‘Bits and pieces’ Category

Is detecting stock market bubbles possible?

Sunday, January 10th, 2016

My article introducing the idea behind website — Is detecting stock market bubbles possible?


Sunday, January 3rd, 2016

Create responsive landing pages in your browser – no tech skills required.

Introduction of my side project

How to create a landing page under an hour?

Equals confusion in Java

Wednesday, December 23rd, 2015

My article about pretty basic, but important concept in Java: do-s and don’t-s when implementing the equals() method on objects

Definitely a thing every good developer must know :)

Global Day of Code Retreat, Cluj 2014

Sunday, December 6th, 2015

My last year’s experience with Global Day of Code Retreat in Cluj, Romania.

Let’s Encrypt on nginx & Amazon Linux

Tuesday, November 24th, 2015

Automatic installation of Let’s Encrypt SSL certificate for nginx on Amazon Linux is not yet supported. Let’s see how we can do this manually.

To generate the certificate, execute:

sudo service nginx stop
git clone
git checkout amazonlinux
cd letsencrypt
sudo letsencrypt-auto -v

Most likely, this will fail on:

c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory

To fix that, run:


Ignite Cluj

Tuesday, November 24th, 2015

Short article about the first Ignite ever in Cluj last year, which I helped to organise.

Quick fix for really slow PHP mail()

Saturday, November 1st, 2014

To fix painfully slow PHP mail function (you are also probably getting lots of

unable to qualify my own domain name

errors in /var/log/mail.log), make sure that both localhost and localhost.localdomain are in your /etc/hosts file: localhost localhost.localdomain

Also add localhost.localdomain as new line to /etc/mail/local-host-names file.

As the last step, restart sendmail:

service sendmail restart

You can quickly test by running:

mail -s "Test Email" your@email < /dev/null

Xamarin – Mac OS 10.10 Yosemite as a build host

Monday, September 15th, 2014

There is an annoying error when you try to pair the Visual Studio + Xamarin combo with Mac OS 10.10 Yosemite build host:

The PIN you entered was invalid. Please ensure you have entered the correct PIN

Even though you are entering correct PIN. To fix this, execute on Windows machine:

telnet [ip address of mac host] 5000

If you get an error similar to this:

system_profiler[18700:1303078] Error loading /System/Library/SystemProfiler/SPNVMeReporter.spreporter: Error Domain=NSCocoaErrorDomain Code=4 “The bundle “SPNVMeReporter.spreporter” couldn’t be loaded because its executable couldn’t be located.”

Go to /System/Library/SystemProfiler/ and most likely the SPNVMeReporter.spreporter bundle will have zero size. Delete it (or move it to a safe place) and try pairing again, it should work this time.

I like Shure :-)

Thursday, May 10th, 2012

I’ve been really enjoying my Shure SE530 earphones, but one day they broke and I couldn’t hear any high tones on the left side anymore.

I was already way out of the warranty, but contacted the seller ( anyway (what if…?)… As assumed, it wasn’t just a simple problem they could’ve fixed themselves so they sent them to authorized repair center ( to get the estimated cost of repair.

I haven’t heard back from them for few days and suddenly I got delivered package with brand new pair of Shure SE535 (newer model with better cable) for free!!!

Well played, Shure!

Western Digital HDD spin down problem in Mac OS 10.6

Saturday, January 1st, 2011

I’ve bought brand new Western Digital Scorpio Blue 750 GB SATA HDD for my MacBook laptop (as my secondary hard drive). It’s currently the maximum capacity you can get for standard height (9 mm), the 1000 GB model is taller and wouldn’t fit into my OptiBay which I use instead of CD drive.

There is one annoying issue with this drive in Mac OS and that is its aggressive power management which spin downs the drive immediately after last application stops accessing it. Not only causes this clicking sound every few seconds and excessive wear (spin up/down cycle count is limited), but also performance is really crappy, as application accessing the drive after spin down has to wait for drive to spin up again.