Tips & tricks on web development

In this blog you'll find best practices, common techniques and examples in web development. Usually web development is a mixture of different techniques and technologies in different areas such as server-side scripting, database design, frontend scripting and styling, load speed optimization and many other areas. Many techniques and ideas are up to discussion, so... join in!

Copy EXIF metadata on Android

Almost every application working with camera at some point will need to resize pictures. And a pity thing about resizing is that usually all EXIF metadata will be missing in resized picture. We should manually copy all the EXIF tags from source file to the resized one. Unfortunately, Android's ExifInterface is not capable of copying *all* the tags from source file. Depending on Android version it will have different set of supported tags. Lets see how we can do it.

Read more...

iPhone5 leather sleeve from Mujjo is coming

We've got new iPhone for my fiancee. After she used it for a couple of days I started looking for different accessories, cases, screen protectors, etc. And eventually I landed to the mujjo.com start page. It was love at first sight. I liked the entire idea. I liked the way it is presented. I liked the simplicity in design of products they sell.

Read more...

Debug HTTP requests from Android Emulator

As a LAMP website developer I frequently needed some simple way to track raw HTTP traffic from the application to analyze requests the application sends and responses it receives. Very famous and easy to use tool which I use for this is Fiddler.

Fiddler is a Web Debugging Proxy which logs all HTTP traffic between the computer and the Internet. Fiddler allows me to inspect all HTTP traffic, set breakpoints, and "fiddle" with incoming or outgoing data. It is very flexible and has many configurable options. More detailed information is available on the official site of Fiddler.

Let's see how we can use this tool to debug HTTP requests from Android emulator.

Read more...

Speed up website by caching, combining and compressing

Front-end development is very tricky. It's easy enough to learn, but it's quite difficult to become an HTML/CSS/JavaScript guru. And even after you are front-end master it doesn't give any guarantees about load time of your website. It happens because even absolutely perfect front-end code can't stand the high load without strong assistance of server-side software.

There are many things making the website load time incredibly big. It sounds ridiculous but the worst evil is an HTTP request. One HTTP request gives life to the website. Twenty requests per visitor kill it. Every additional JavaScript or CSS file will give you another HTTP request making your site slower and slower. And one day you get to the edge between cool features and small load time. Now you have to get rid of either some features or some requests. Requests are better so let's see how minify proposes to solve this problem.

Read more...