Category Archives: web development

Friday Algorithms: JavaScript Merge Sort

Merge Sort This week I’m going to cover one very popular sorting algorithm – the merge sort. It’s very intuitive and simple as it’s described in Wikipedia: If the list is of length 0 or 1, then it is already … Continue reading

Posted in algorithms, javascript, web development | Tagged , , , , , , , , | Leave a comment

Replace the Broken Images with a Default Image with JavaScript

There is cool JavaScript trick that helps you catch broken images. You know that when the image doesn’t exist, the http path to the image returns 404 or the path is wrong, the browser doesn’t display nothing in the most … Continue reading

Posted in javascript, micro tutorial, web development | Tagged , , , , , | Leave a comment

HTML5 geolocation – What If the User Doesn’t Share His Position?

HTML5 Geolocation So far we were used to expect something like this from our mobile phones with built-in GPS support. Every image or video clip then was automatically “tagged” with latitude & longitude geo data. With HTML5 coming features we … Continue reading

Posted in javascript, micro tutorial, web development | Tagged , , , , , , , , , , , | Leave a comment

Send Authenticated POST Request with Zend_Http_Client

There is an easy way to send requests with Zend_Http_Client either in GET and POST. Actually you can request not only with GET and POST methods, but with any other http request method. $httpClient = new Zend_Http_Client(’http://….’); // request via … Continue reading

Posted in micro tutorial, PHP, snippets, web development, zend framework | Tagged , , , , , , , , , , | Leave a comment