Source: https://www.agilepman.com/
Timestamp: 2019-04-23 14:22:36+00:00

Document:
Posted on January 24, 2018 by v.
Looking into Dart programming language, and I just want to record some of my thoughts.
Dart language comes with dartfmt tool that does not bug you about any incompliances you’ve committed. No – it will fix them for you.
When joining a team, no matter the language the code is written in – I regularly get requests to comply with this or that code standard rule(set).
A question for those in charge of code quality: If it is so important – why isn’t it automated already (like Dart suggests)?
Properly formatted code ensures ultimate readability (Clean Code), but no one ever said that one has to make an effort towards properly formatting the code while writing it (which obviously requires time to actively learn about the coding style instead of e.g. business logic).
My own standard is – whatever comes out of (IntelliJ’s) box. Life is to short to have opinions on spaces vs. tabs or brace on the same vs. next line of function definition.
Posted on February 6, 2015 by v.
I’ve switched to MacBook Pro Retina in November after repeating frustrations with different WiFi adapters in an HP ProBook 450 G1 on Ubuntu.
I always read that MAMP/WAMP/XAMP is for ‘less experienced’ developers, while native installation (via homebrew on Mac) of software is for ‘mature’ ones. Honestly, I don’t think it matters – it’s the same software after all. It just comes preconfigured differently, and I don’t really see why experienced people wouldn’t take advantage of (for example) switching a PHP version with couple of clicks, as long they are capable of modifying configurations appropriately.
So, a Joomla site, requiring PHP 5.2 for historical reasons worked and debugged perfectly out of the box.
However, with a rather heavy Symfony2 application and Xdebug turned on, browser just gets caught loading a page forever, in matter of minutes. This was never an issue on Ubuntu.
Googling for possible issues with mac, I found that .local tld is not favorable due to Bonjour conflict, so I’ve switched to .dev, with no luck. Also, I’ve decided to move the virtual host name resolution from /etc/hosts to dnsmasq (thanks to http://passingcuriosity.com/2013/dnsmasq-dev-osx/) – no luck again, despite both of hints being quite useful.
Finally, since the processor was idle during these mishaps, I’ve decided that it must have been apache that for some reason had become unable to process the requests.
I’ve decided to look into Ubuntu default apache configuration, and spotted 2 major differences right at the top. KeepAlive is never mentioned, and mpm_prefork_module (extra/httpd-mpm.conf) was commented out in MAMP apache configuration.
However, Xdebug is also confirmed to make a difference – when turned off, the benchmarked requests take below 1 second consistently. With Xdebug turned on, they take somewhere between 1.5 and 20 seconds. No breakpoints.
Posted on April 9, 2014 by v.
The bug itself is within the heartbeat extension of OpenSSL (RFC6520). The bug allows an attacker to leak the memory in up to 64k chunks, this is not to say the data being leaked is limited to 64k as the attacker can continually abuse this bug to leak data, until they are satisfied with what has been recovered.
At worst the attacker can retrieve the private keys, the implications for which is that the attacker now has the keys to decrypt the encrypted data, as such the only way to be 100% certain of protection against this bug is to first update OpenSSL (>= 1.0.1g) and then revoke and regenerate new keys and certificates, expect to see a tirade of revocations and re-issuing of CA certs and the like in the coming days.
If you’re running a vulnerable installation of OpenSSL an update will be required.
Posted on December 17, 2013 by v.
Just a quick one on hardware. I got a super-cool EliteBook 8570p i7/SSD at work… I normally take it home in the evening, so I really prefer to keep the headphones @work attached to the dock. I was so disappointed to realize that the sound was totally unacceptable.
Tried reinstalling different drivers – no luck.
The ultimate solution was to go to SRS Audio Settings, and uncheck “Audio Enhancement” on “listening experience” tab.
Posted on May 28, 2013 by v.
OK, there are a number of ways to setup tracking remote branches with git. We need that so we can use push and pull commands without long explaining what to push/pull where… I’d say that normally all we mortals need is to assume that the remote branch will be called the same as the local one, so with this assumption it really can be all easy and clean.
Posted on April 28, 2013 by v.
I took a minute to see if there is a viable Linux alternative to WinDiff. Surprisingly, the search results have shown that WinDiff 3 will have its Linux version, being built on Qt.
Also, Meld is repeatedly quoted to outsmart WinDiff. I knew I’ve installed it some time ago, but couldn’t remember why it just didn’t stick.
Posted on March 15, 2013 by v.
Being a web developer with clear lamp preference, I believe it was a trivial task for ad servers to target digitalocean.com ads at me. Those ads are just all over the net. In my gmail, on my basecamp account, my facebook wall… If I had a display on my fridge, I guess the ad would have been there, too.
Clearly, I think that $13.99 for .com domain and $107.88 for year worth of shared hosting account is, well, a bit more than I used to pay for the same thing couple of years ago. And yes, with so many new (software) platforms and tools to play with, it’s quite cool to have a VPS of my own.
I’ve tried partnering a colleague with a server, but I shortly found out that our expectations from a VPS were a bit different. I mean – besides all the cool stuff I could try on such VPS, I still believe that hosting this blog (with all the uptime in the world) shouldn’t be at risk.
That’s when the ads mentioned above started tickling my imagination. Imagine that! 512MB RAM 20GB SSD VPS for $5/month! First of all, I wanted to know if it’s just another fraud that just tries to steal your cc or whatever. I thought that result from http://www.scamadviser.com/is-digitalocean.com-safe.html was good enough to give it a try.
How to disable automatic upgrades on Ubuntu server?
Posted on March 12, 2012 by v.
One of the common arguments against using open source software in production is that it’s always changing, and you never know when an upgrade will break some feature or dependency. Despite the fact that Ubuntu people are trying to keep the stuff as stable as possible, this argument unfortunately holds.
That’s exactly why I decided to never run apt-get update followed by apt-get upgrade on this particular ubuntu server machine. It serves an intranet, and it’s hardly ever expected to be compromised by a security issue, either.
Posted on January 31, 2012 by v.
[idleTimeout] Amount of time (in minutes) a worker process will remain idle before it shuts down. A worker process is idle if it is not processing requests and no new requests are received.
So, if you are after an architecture that collects and queues requests in order to process them in a separate thread, make sure this thread is not running past this setting.
Otherwise, you might get Thread was being aborted. error.
Solution: set Idle Time-out to zero (0), which disables feature that kills w3wp.exe process due to lack of web requests, or make sure that long running threads are kept at safe distance from IIS. The latter would also significantly improve the performance.
Posted on December 22, 2011 by v.
I must note that I’ve wasted considerable amount of time on this error message. When copy/pasting, I’ve failed to close a bracket in a HQL query, and even more – the bad expression exceeded the screen space and without an editor that would complain, once again (remember NHibernate “Could not find the dialect in the configuration” “Could not compile the mapping document”) – I was left alone with NHibernate error handling :(. And it did not only complain about query aliases – it complained even about the mostly used mapping names.
The good thing is that I revised my NHibernate mapping knowledge and querying capabilities which turned out to be a great confidence booster. However, I still can’t tell if this is only a problem with an oldish 2.0 NHibernate version or not.

References: v.

 v.

 v.

 v.

 v.

 v.

 v.

 v.

 v.

 v.