The binary search is perhaps the most famous and best suitable search
algorithm for sorted arrays. Indeed when the array is sorted it is
useless to check every single item against the desired value. Of course a
better approach is to jump straight to the...
I hope that you still remember when we did our first Paint program with HTML5.
Today I have decided to enhance it by adding new additional brush to
it. This brush will use ‘bezierCurveTo’ function. As a result we will have
an interesting effect; just...
We are pleased to announce, that http://explain.solr.pl
is now available for users. Please remember that this is a beta version
and will be further developed. If you want to know more details please
read the following blog post.
Leiningen is an automation tool for Clojure projects: while you could in theory continue to use Ant and Maven directly to download JARs dependencies and to run tasks such as the project's test suite, Leiningen allows you to write just Clojure code, and...
We now enter in the territory of generalizations. It's a natural process, as we add more and more tests, for our code to become more general; but after we have made our test pass, the refactoring phase include many ways to deal with generalization.Refactoring...
Recently I ran across Rawkets, a slick site taking two emerging web technologies -- HTML5 Canvas and WebSockets -- and combining them in the most obvious way possible: a multiplayer space shooter.Why Canvas? No plugins -- graphical Yes; and why WebSockets?...
I took a walk through what I am calling the locations and places API
landscape today. Most of these APIs I’m familiar with, but as the
CityGrid API Evangelist, I’m getting an opportunity to immerse myself
into this new local, social mobile world.
One of the little things I like about Android is the "toast."
If you are not familiar with the toast, it is the little transparent
notice you get that operations are done. The best example is the toast
that tells you how long you will have to...
For one of my last posts of the year, I have decided to share
with you a list of the most exiting, useful and awesome WordPress hacks
and code snippets to make your blogger life easier. Have a great read,
and happy coding!
Add Google+ button to...
Who doesn't want their apps to integrate with Facebook? the second most popular site worldwide, and most popular, bar none, in eight countries (according to Alexa)?Well, Facebook loves PHP, and even offers a PHP SDK for the Facebook API.
In the spirit of the season, how about a clever Canvas Christmas tree? which looks static like this: but when unleashed on the browser's renderer, rotates beautifully, with shading, in the midst of the falling snow.
If I had a dime for every time I created a text drop-shadow in Photoshop, I wouldn't have worried about the price. But this seems a little wasteful: drop-shadowing for a living would be like erecting awnings for a living, if Photoshop were a structural...