Let’s Encrypt on nginx & Amazon Linux

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:

ssh to@your.server.com
sudo service nginx stop
git clone https://github.com/letsencrypt/letsencrypt
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:

Read the rest of this entry »

Ignite Cluj

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()

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

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.

To: field ala iOS Mail

February 23rd, 2013

If you’d like to add something like this to your iOS app:

Make sure you check out my fork.

Please check my latest project, Shiftr, also!

Logging from iOS to logentries.com – II.

November 9th, 2012

In the last article we showed how to report iOS app crashes to the logentries.com service.

Today, we’re going to demonstrate how to symbolicate those crash reports.

Read the rest of this entry »

Logging from iOS to logentries.com

October 24th, 2012

Logentries.com is such a great service for your logs.
If you wish to report your iOS application crashes into your logentries.com account, read on!

Read the rest of this entry »

I like Shure :-)

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 (sluchatka.net) 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 (pmc.cz) 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

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.
Read the rest of this entry »

iOpravna & Apple rulez!

June 16th, 2010

After 1.5 years my Macbook battery capacity dropped suddenly (only after about 130 cycles). I’ve contacted iOpravna.cz to ask whether it would be possible to get the battery replaced under my 3 year NBD warranty and they’ve sent technician to test the battery (at my place).

Result is positive: I’ve got new battery (for free) that allows me to work 4 hours again!

Good job!