Author: Imal Perera

Core Java

Power Of ffmpeg

In a previous post I have demoed how to use this wonderful html5 getUserMedia spec to record audio and video directly in client side without get involved the server. but problem with that post is script is only effective in webkit browser like Chrome. and the next issue is recording happens in two separate  files, […]

Imal Perera 
Core Java

Create PDF from HTML – java

IReport is one of the good tools that I found for creating PDF documents dynamically but most recently I got an requirement to create a PDF file exactly same to a dynamically generated html page, so rather than looking to create a template using Ireport I just curious to know is there any java libraries […]

Imal Perera 
Html5

Modern File Upload button

This was a problem that I recently faced, default file upload button is rendered differently in different browsers, example in one browser it renders as a button but another browser it renders as button and a text field this creates few problems for designers, one is we can’t have a consistent layout also when designing […]

Imal Perera 
Databases

Speed Up Mysql Query

One way of speeding up your website is enabling mysql query cache. this will cache all the queries that are more often used so that next time it provides results much quicker. This method is good for the websites that are more into information providing rather than updating all the time. but anyway it is […]

Imal Perera 
PhoneGap / Ionic 1

PhoneGap, Google analytics

To track the application we can integrate google analytics to native ore hybrid applications. this post is about integrating google analytic to phonegap application 1. first create a google analytics account. 2. There Admin -> (Create Account) select “Create new account” from drop down 3. select “App” from “What would you like to track?” 4. […]

Imal Perera 
Regex

Get to know REGEX

A regular expression (regex or some says regexp) is a defined search pattern. Regular expressions are not language specific but you can find slight changes from language to language, Regex can be use to search a specific patterned string within a text. Very few symbols that often use. ^  : Matching string should be at […]

Imal Perera 
Html5

HTML5 Storage / Web Storage

HTML5 Storage/ Web Storage often refer as “Local Storage” but what actually is HTML5 storage ? Simple answer is, a way of storing key/value pairs locally within the browser, so even if you close your browser and restart or refresh, the data will persists, but wait!! cookies also do the same so is this HTML5 […]

Imal Perera