In my recent project I faced the task of doing translation of property address in form we usually use it into global coordinates, that can be plotted on the map. Using Google API services this task is quite easy. You can check example and source code below
Some weeks ago I switched to Nginx and quit Apache and was quite happy with it. I was so happy that completely forgot about my Mercurial repositories hosted on same server. This happen when I was in hurry and needed to push and pull some changes, damn.
At first I quickly restored Apache, did all needed changes and switched back to Nginx. For sure, I did not like this way and explored how I can connect Mercurial directly to Nginx. I was quite surprised how easy it is and how flexible.
Now this blog is riding on Nginx+php-fpm setup. You may have heard about quickly growing in popularity Russian made web-server. Several years earlier Nginx had a really narrow appliance on high loaded sites as balancer, front end, static content, etc.. Something too complex to be setup for simple site or blog.
Time changed things, community has grown, all sharp corners were smoothed. The PHP itself starting from version 5.3 has out-of-the-box support of FPM (FastCGI Process Manager) to communicate to Nginx in a very efficient manner. Ubuntu PPA repositories has all things already compiled and tons of docs are available on the Internet.
At first I though of this more like experiment, but after I tested it for a while and made some performance tests, I was surprised how well it performed on my tiny virtual server. It eats less memory and does more job.
I really like Apache web server, I’ve spend 10 years with it and still consider it the best one for many appliances. But from now on I have one more option to use for my projects.
Welcome to continue reading…
HTML5 slowly releases all its beauty. Before HTML5 one thing which was almost completly out of our control was the browser history manipulation without full page reload (location.hash hacks are not counted here). With appearence of HTML5 History API all things changed, now it is possible to add elements to the history, add navigation handlers and more. This time I am going to dive into HTML5 History API.
Quite often I see some reviewes of browser popularity on the Internet. I am not a big fun of Anti-MS trust but I watch closely success of open players like Firefox and new players like Chrome. So I did my own analysis of browser popularity using my blog.
File uploads have traditionally had very bad usability on the web. The standard solution was uploading files as part of a form, leaving the user to just wait until the process was done. We could offer barely any feedback of what was going on. Several options appeared in HTML5 to make the process more bearable for the user.
Google did a great job with Google Maps from developers point of view. Recent V3 version of Maps API is very simple to use in projects. Recently I created an example how to embed map on the site and display custom markers on it. Markers handle mouse onClick event as well.
Сertainly, era of dial-up modems has gone and modern broadband internet made almost all sites loaded in a seconds.However, there are several reasons why you should still worry about every byte of size of your company or personal blog size.
For people who knows me and subscribers of my blog I propose WEB hosting for just $1/mth for simple sites, personal blogs, etc… I can setup WordPress for you. If you are interested, leave me a comment to this post.
You know how boring can be site upload over and over again. Site is like a house pet, always needs some attention and after each change it should be uploaded to the Web vie FTP. Even doing this over and over again it is easy to make a mistake a miss one important file, so site can become malfunction.
I use simple lftp command line tool to automate project deployment via FTP and eliminate any possible deployment errors.