Android and cats
Sprint came out with entertaining Nexus 4G commercial introducing Android and cats.
Sprint came out with entertaining Nexus 4G commercial introducing Android and cats.
It has been written a lot about PHP Community Conference in Nashville, TN. The conference was definitely worth visiting. It was packed with outstanding PHP developers who were willing to share their knowledge and experience.
This post is mostly for my own records. Thus further reading:
And traditionally a few pictures from the field.
Looking forward to PHP Community Conference 2012!
Recently I’ve decided to work further on my writing skills and volunteered to review Bradley Holt’s new book Scaling CouchDB. Especially since I am working on scaling MySQL and playing with MongoDB, I figured it would be a great opportunity to take a look at CouchDB too.
What’s in the book.
Conclusion.
The book is short and really informative reference on scaling CouchDB. Also it is still a good reading with respect to scaling topic for those who are not working with CouchDB but interested in peeking at NoSQL world.
P.S.: I would like to thank Bradley Holt for letting me review his new book and providing an ebook version before the paper one was even printed.
Two month after Meetup with Tom Albers I was able to attend MongoATL Conference. The event was very well organized and really useful and igniting for MongoDB newbies (like myself at that time).
Of course the first thing I did after the conference was installing MongoDB and playing with its native PHP extension. Although I wanted to document that experience Vikram Vaswani had already come up with a great article on Getting Started with MongoDB and PHP.
In addition just a few things to highlight:
At the end couple pictures from the event via my cell phone. 🙂
Back in December I attended a project management meetup with Tom Albers.
While Tom has an impressive list of companies where he was either senior manager or vice president, the most notable and attractive was the fact that he was manager of web development at MySpace.com. It seems like that kind of background allowed him to gather over 100 software developers and project managers.
It was interesting to learn something new from Tom’s experience as well as hear few insights about software development at MySpace. Although many his recommendations overlapped with Rework, I would like to point out two things which are basically must know and follow for anyone who related to managing software development:
At the end just couple pictures taken with my cell phone.
More (and better quality) pictures are posted here.
It’s common to use a regular expression to validate IP addresses.
However I’ve run into couple reliable ways to validate IP address without help of regexps. This should make code cleaner and easier to read or debug in case of any issues.
The first way is to use PHP function filter_var() which returns the filtered data, or false if the filter fails.
$ip = filter_var($ip, FILTER_VALIDATE_IP); if ($ip !== false) { // IP address is valid } |
Note that filter_var() has been supported since PHP 5.2. So it will not work for ‘older’ production environments.
So here comes another way to validate an IP address which should work even for PHP 4.
if (long2ip(ip2long($ip))) == $ip) { // IP address is valid } |
Also fliter_var() unlike ip2long()/long2ip() supports IPv6. For instance, there are four additional flags:
For example, the code to allow only IPv6 not from reserved range should look like this:
$ip = "2a01:e35:aaa4:6860:a5e7:5ba9:965e:cc93"; $ip = filter_var($ip, FILTER_VALIDATE_IP, array( FILTER_FLAG_IPV6, FILTER_FLAG_NO_RES_RANGE)); if ($ip !== false) { // IP address is valid } |
Honestly I was really skeptic while seeing many excited reviews about “Rework” here an there. It all looked like another wave of hype around Ruby on Rails creators. Until a good friend of mine presented me this book.
Although it was collecting dust on my desk for a while, I am finally among those who read this book. 🙂 A-a-and going to join the the group of amazed and ignited readers too.
First of all it is very easy to read this book. Once you have started, you will be turning one page after another without any thoughts to postpone reading. Part of the reason is that the book consists of really small chapters (2-5 pages) and it is always exciting what next chapter brings.
Second, the book is very well supported by examples of real people and companies. Many examples fit great into the book and in certain cases may be even more inspiring than the main story.
Also it is worth pointing out that “Rework” is not 100% unique content. Some things are already known well enough and even becoming mainstream approaches for doing business rather than being sort of unusual (although that does mean that all big companies follow them yet).
However the uniqueness of “Rework” is that all those valuable recommendations, stories and examples gathered in one book and work perfectly not only for inspiration but as a reference book too.
So in my opinion it’s a kind of ‘must read’ book basically for anyone.
In the end a few quotes from the book (in addition to the provocative ones on the back cover).
“A business without a path to profit isn’t a business, it’s a hobby.”
“Teach and you’ll form a bond you just don’t get from traditional marketing tactics.”
“If you want something done, ask the busiest person you know.”
“Easy is a word that’s used to describe other people’s jobs.”