Hi there, in these days I’m working with Vagrant and VirtualBox . There are few recurrent errors I’d like to write down to keep in mind error-solution and probably save time the next time I face them.
Today I’d like to share an useful command that unfortunately is not native on Mac OSX (I’m using v10.9.5).
This command is watch (http://en.wikipedia.org/wiki/Watch_(Unix)).
I was used to use it on Linux to monitor live changes to logs or even to monitor git repositories but you can execute it for many other purposes.
Now, moving to Mac, the story changed and I had to find my solution. What’s better than creating your custom command with your own code?
The way it’s done is like a primitive version of the well consolidated and full of options watch in Linux but for sure it’s really better than nothing. So far I just needed the basic version but if you want you can add all the options you wish.
This is meant to be a flash post and a relief for someone that, like me, has to test the website on different mobile phones.
I’ll omit the software version because not pertinent to the problem or the solution.
I had to test a website on different mobile devices and Blackberry z10 kept returning a Certificate Exception like “my certificate has expired” and the following error
Site identity not verifiable
Not verified? What?
I’ve tested the website on VM, with User Agent switchers and on different Z10!!
So, recalling an oversimplification of the Occam’s Razor,
The simplest answer is most often correct
and digging a bit into the web, the solution I found was quite simple and based on the Date/Time used to validate the Certificate Expiration Date.
These are the steps to fix the problem (if we can use “fix” and “problem”):
1. Open the phone Settings
2. Select Date and Time option
3. Set Set Date and Time Automatically to Off
4. Set manually the Date and Time
The validation of the certificate was incorrectly done on the phone Date/Time but, more important, the Automatic Date/Time setting didn’t work properly on my device.
Following these steps the website will not return the error any more.
An easy solution to an easy problem but often the last thing you think about.
Few months ago I’ve created a Service Oriented Architecture from scratch using the MVC paradigm.
The API is based on three parameters to demonstrate you can create your own with as many parameters you prefer*.
For example, with the following request you’ll get all the books with “RESTful” in the title and with publish year “2014”
Few days ago from the post date, Dariusz Falkiewicz and I had to move a MySQL database folder to a different location on the same server.
We worked on Ubuntu Server v12.10 and had to move MySQL v5.1.41.
The first and main idea was to “mv” the folder to a different location and create a symbolic link to replace the original folder.
It sounds good, it could work! Later we realised that moving MySQL default folder is not so easy as it appears.
In this article we’ll go through the MongoDB string comparison to understand how it internally sorts and compares strings.
We’ll also have a practical example to be executed by MongoDB Shell to better understand the different behaviour in front of a small concrete collection.