Friday, March 27, 2015

When my Apple MAC notes disappeared ...

Several posts on the web suggest to open the different files you see in ~/Library/Containers/com.apple.Notes/Data/Library/Notes/ renaming them to use the ".html" extension, however I was able to recover them after deleting the ".storedata-wal" and ".storedata-shm" files.

Before proceeding please make a copy of the whole Notes directory. The file(s) with extension ".storedata" is/are what you want to keep and in fact these are sqlite files so you can open them, see the schema and inspect tables with the sqlite3 command.

BTW this happened to me after I started playing with iCloud. My iPhone and MAC notes were not synchronizing anymore and after finding that the iPhone notes were the ones in iCloud I started playing with iTunes and Notes accounts' settings to end up losing my MAC notes and getting those from the iPhone locally.

Saturday, March 14, 2015

Docker - izing real life production services in Ubuntu

I plan to publish several real life production showcases on docker usage. Instead of using the classical posts on this blog I will go this time with github documentation as I will be posting some working code in there.

If you are new to docker you might check it out as there is an initial section to get to speed with docker. If you are well versed with docker please do so as well, to get it right as usual I need your criticism.

Tuesday, March 10, 2015

host command returns correct IP but SSH still goes somewhere else!

When /etc/hosts overrides DNS strange things might happen like in this case today when someone would ssh into a remote machine but end up still in his own host.

You better run ping and host and if there are not the same then look for the domain in question inside /etc/hosts.

Friday, February 06, 2015

Setting DISPLAY variable to avoid No protocol specified Error: Can't open display: :# Selenium UnknownError: unknown error: Chrome failed to start: exited abnormally

If Selenium server cannot open the current display the client will fail with an error similar to "UnknownError: unknown error: Chrome failed to start: exited abnormally". This is a common issue many people ask about when they try to either run X applications (like tests against selenium in a remote server) remotely or when they are logged in via VNC, XRDP etc. Basically the DISPLAY variable is assigned to the local terminal console and not really to the remote session. You need to find the proper DISPLAY variable for your remote session in order to resolve this problem.

Setting DISPLAY variable will avoid the typical problem "No protocol specified Error: Can't open display: :#" where # is usually 0.

If this variable is set incorrectly your session will have no access to run X applications in the visible display. Perhaps the fastest way to find out if your DISPLAY is correctly set is to run the xclock application. The commands below should be self explanatory about how it fails and how it should be corrected at least in Debian/Ubuntu: So all you really need to do in order to make sure your selenium server spawns the chrome browser successfully is to set the DISPLAY variable to the correct value. Keep that in mind specially after restarting.

Saturday, December 27, 2014

ITPalooza Kanban and Continuous Delivery presentation

This was definitely a great event to share Kanban and Continuous delivery experiences with other agile practitioners in South Florida. I thank IT Palooza and the South Florida Agile Association for the opportunity.

Friday, December 26, 2014

On security: news without validation - The case of ntpd for MAC OSX

It is a shame that even Hacker News reported as many many others inaccurate information about the recent several NTP vulnerabilties affecting the ntpd daemon in *NIX systems.

Apple computers are not patched automatically if the users do not select to do so, a feature that was added with Yosemite so most likely not even available in many MACs in use out there.


Sysadmins should be encouraged to reach out their user base so the MACs are patched. As a difference with Ubuntu and other linux distros where most likely ntpdate is being used to synchronize time in MACs the ntpd daemon is used. Yes, this is not just a server issue when it comes to MAC OS-X.

BTW back to ntpd vulnerabilities. Follow apple instructions for correct remediation. As explained there 'what /usr/sbin/ntpd' should be run to check the proprietary OSX ntpd version.

What is interesting here is that 'ntpd --version' still returns 4.2.6 after the patch which according to the official ntpd distribution communication does not contain the patch. Version 4.2.8 does.

Thursday, December 25, 2014

Do you practice careful and serious reading?

Do you practice careful and serious reading? This is the ultimate question I have come to ask when someone claims to have read the book and clearly I find out s(he) meant to say "eyes went" instead of "mind went" through the content of the book. There is a difference between "becoming familiar" and "digesting" a topic.

When you carefully read a book you take notes. I personally do not like to highlight books as the highlighters I have seen so far as of December 2014 will literally ruin the book. I think taking notes not only help with deep understanding of the content but ultimately it becomes a great summary for further "quick reference".

When you seriously read a book you know what you disagree and agree upon, you are not in a sofa distracted by familiar sounds. You are in a quite space, fully concentrated in receiving a message, processing the message and coming up with your own conclusions, questions and ultimately must importantly answers to the unknown which now suddenly becomes part of your personal wisdom.

It is discouraging to sustain a debate around a book content when there is not careful and serious reading. In my opinion "reading" when it comes to a specific subject matter means "studying" and of course you can only claim you have studied a subject if you have carefully and seriously read the related material. Seeing a book is not the same as looking into a book. Listening to an audio book content is not the same as hearing it.

Followers