Web development done well: WordPress web coding standards

We all know that mess that grows in CSS, JavaScript and HTML files. There is no compilers as in static typed programming languages that will keep you from doing that mess bu there are Clean Code standards. The team working on files should keep common standard and follow best practices. It is a failure if each … Continue reading Web development done well: WordPress web coding standards

jQuery: prevent copying elements from webpage

Want to prevent users copying text or images on your website? Or maybe you need to add custom behaviour on Ctrl+C click event? With jQuery you can intercept the event of copying, pasting, cutting or dragging & dropping the element on your webpage. Prevent copying In my case I needed to prevent copying images on … Continue reading jQuery: prevent copying elements from webpage

Layout items in flexible columns with Masonry

In one of my projects I needed to layout photos in a grid that will place all photos most effectively with no white spaces between them. The prolem is that photos can have various sizes and proportions. The Masonry is a javascript library, easy to use that layouts items in columns. Here is how my site looks … Continue reading Layout items in flexible columns with Masonry

Web dev: Responsive image grid (that is not perfect but works)

Worth noting and well working way to implement photo grid on website, is presented by Ali Jarafian on his website: http://alijafarian.com/responsive-image-grids-using-css/ The 'float: left;' type of design has few drawbacks in my opinion: One is that you need to calculate the margins carefully and put the calculation result in few places in css (so changing … Continue reading Web dev: Responsive image grid (that is not perfect but works)

AngularJS in 60 minutes

Another post with very good video: this week I'd like to share screencast about AngularJS, which I am currently learning to use. This is intended for beginners, knowing just basics concepts, that are mentioned further in text. AngularJS is Google's framework made for building SPA (Single Page Application). Its goal is to make static HTML … Continue reading AngularJS in 60 minutes

Apache DefaultHttpClient Tutorial: execute HTTP GET request with params and BasicAuthentication

When dealing with REST webservices, the HTTP GET request is commonly used (very often with params). Apache's DefaultHttpClient has convenient methods that utilize making such requests. This is how I do it: Request data the URL that I am going to execute is: http://www.example.org:8001/rest/sendMessage GET request params are as follows: body: message body (content) from: … Continue reading Apache DefaultHttpClient Tutorial: execute HTTP GET request with params and BasicAuthentication