Archive for the ‘Bits and pieces’ Category
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
My last year’s experience with Global Day of Code Retreat in Cluj, Romania.
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 https://github.com/letsencrypt/letsencrypt
git checkout amazonlinux
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:
Short article about the first Ignite ever in Cluj last year, which I helped to organise.
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:
127.0.0.1 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
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’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!
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.