Phalcon upgrade to 1.3.1 errors after upgrade from 1.2.6

I had plenty of errors after upgrade and the solution to all of them at once is simple - re-install php. Uninstall php/apache/nginx/sql/phpmyadmin - what you have and then install all one after one. start with apache, php, sql then phalcon :)

How To download Facebook Look Back video?

1. Open Google Chrome browser and go to https://www.facebook.com/lookback
2. Click F12 button on you keyboard or use your mouse: right-click anywhere outside the movie and select "Inspect Element" (it should be last option on the menu)

function get_currency_rate

Simple, yet effective way to get currency rate from yahoo finance service. Cache the results, or you will get ban from yahoo.

MongoDB: fixed not starting error

Just use these:

sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/
sudo service mongodb start

Of course change dbpath to your dbpath, this one is default.

Basic Auth .htaccess 101

All these are working on Ubuntu 13.04

1. Check if apache modules are loaded:

on ubuntu this one works find:
apache2ctl -M

 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
not all required, but my config is loading these now. auth_... and authn_... are realy required for my example, but i don't know which of those authz are required..