Malintha's Blog

My Own Room in Cyberspace

Latest Blogs
Popular Posts

Latest Blogs


Setting up MsSQL and Writing a Simple Java Client


Recently I was happened to setup a MsSql server and connect it to WSO2 G-Reg data-sources. Since it was my first experience with MsSQL server and as it really seemed like a simple walk-through could’ve been very useful for a noob just like I was, it just struck me to come up with write-up. This… Read More

Add customized publisher form for a custom RXT


In the previous post I have discussed how to add a custom asset type (Registry Extension) to wso2 governance registry. There can be situations, you need to customize these publisher forms in a way that your organizations requires. Probably adding more labels, changing colours and adding a captcha. Thanks to the maximum extendibility of wso2… Read More

WSO2 Governance Registry Adding Custom Artifacts


WSO2 governance registry is the SOA (Service Oriented Architecture) governance model of the wso2 product catalogue.  If you are an enterprise that has a lot of SOA artifacts to be stored or governed, you might find wso2 GREG as a handy tool. GReg provides SOA artifacts manipulation in two aspects – as a meta data… Read More

Understanding asynchronous JavaScript – Callbacks

Recall Jquery click() function. Have you ever wondered, why would you want to write the block of the code that needs to be executed after the clicking on the button inside another function? Welcome to the world of asynchronous programming, callbacks! Callback is a programming convention rather than a special feature of a language. They… Read More

බල්ලොත් එක්ක බෑ – ප්‍රහසන සහ විහිළු

balloth ekka ba

සිව් පදයන් දෙකකි. චරථ භික්ඛවේ – චරථ භික්ඛවේ චරථ භික්ඛවේ – චරථ භික්ඛවේ චරථ භික්ඛවේ – චරථ භික්ඛවේ චරථ භික්ඛවේ – චරථ භික්ඛවේ ලේනා ජම්බු ගහේ – ආයේ නගී ආයේ පස්සේ ලේනා ජම්බු ගහේ – ආයේ නගී ආයේ පස්සේ ලේනා ජම්බු ගහේ – ආයේ නගී ආයේ පස්සේ ලේනා ඌ ලේනා! මුල් සිව් පදය ඇසු විට මට නිකන්ම මතක් වූයේ… Read More

Contrast stretching in a nutshell


Is there anything in this picture? Apparently not! This is a perfect example for a low contrast image, where all the image data are packed within a very small range of colours. The histogram for the given image looks like this. Histogram is the graph, in which image pixel densities are plotted against their colour… Read More

Implement a Mean Filter with OpenCV


In the last blog post I have stated how to implement a median filter with openCV and a bit to the discrete convolution theory. The approach I have used there was a bit straightforward than the convolution. Here in the mean filter the implementation will follow the convolution theory with applying a 3×3 kernel to… Read More

Implement a Median Filter with OpenCV


Median filter is a low pass bandwidth filter which uses a kernel function over the image matrix to manipulate it. The kernel may be defined as 3×3, 5×5 or based on the user preference. Then it uses the discrete convolution to calculate the result matrix. What is discrete convolution? Discrete convolution is a method that… Read More

State Estimation with Kalman Filter


Kalman Filter (aka linear quadratic estimation (LQE)) is an algorithm which can be used to estimate precise states of a moving object by feeding a series of noisy sensor inputs over time. The Kalman Filter and its derivatives namely, “Extended Kalman Filter (EKF)” and “Unscented Kalman Filter” are highly reputed in the field of information processing. The most… Read More

Using Hg Mercurial behind a proxy

You might have faced to download gigabytes of repositories with Hg. In my case, a big portion of Mozilla repositories depends on it and wanted to download that huge repos from the university network. University bandwidths are mostly underused 😉 Hg uses hgrc file to load configurations. (Per repository) You can go to your repository,… Read More