Posts

Retina pattern recognition towards human identification

Image
A paper prepared from my undergraduate thesis work has been indexed in IEEE Explore recently. Find the abstract at IEEE explore . It was basically on human identification based on retina blood vessel orientation pattern recognition. We proposed a way to detect the pattern of the blood vessels followed by identifying the intersection points of those vessels. Blood vessel orientation of different human beings are different and hence the intersecting points of these vessels give a unique pattern to recognize. However, to compare between two patterns, the variance of the intersecting points are measured. If the measured variance is under a threshold value which is empirically determined, we assume it as a match. Steps are pictorially described below: 1. Human Retina: Green-Scale version of a colorful retina image 2. Segmentized blood vessels: Binary image. Detected blood vessel portions are black 3. Intersecting points detection (Binary Image): Binary image. Inter...

recognize_path to determine url hash from RESTful url

If you are using RESTful controllers for your application, same url can refer different actions in a controller based on the associated HTTP method. For instance let’s consider a URL http://your.host.com/messages/123 . Any request with this url with HTTP get will be paired with the show method of messages controller. Some other pairs are like HTTP put with update action, and HTTP delete with destroy action. Then how can you get a hash of controller and action from this url? In this situation recognize_path to the rescue. You can use ActionController::Routing::Routes .recognize_path(url, method) where url is the '/messages/123' part and method is anyone from GET, PUT, POST or DELETE. It will return a hash containning controller, action and other parameters, for example :id => 123 in the above case. By the way if you are thinking to trim the first part of the url just use as following url = 'http://your.host.com/messages/123' extracted_part = url.g...

ROR draggable_element with ghosting property in IE

Some days ago I faced a problem of drag and drop functionality in developing Scrumpad . We had to give a way to drag a DIV element from one block and drop to another to make user experience more interactive. It’s really an easy task as we have many rich javascript libraries. Besides ROR provide a rich javascript helper. However we enabled the DIV s to be draggable by the following way: <%= draggable_element ‘element_[id]’, :revert=>true, :ghosting => true -%> Here ‘element_[id]’ refers to some DIV s having id like ‘element_1’, ‘element_2’ and so on... When equipped with everything I checked in firefox and found everything working well. But in IE this code created a huge mess. After digging a bit more I found the problem in the ghosting property in draggable_element function. Actually this property helps to create a replica of the dragging element and move that DIV anywhere else. But IE showed so devotion on it that it was creating a new replica on each movement of ...

Ajax form submission with tiny MCE editor

Hi, I was working with a Ajax form submission where the form contains a tinyMCE wrapped textarea. I was using prototype library for Ajax. Problem is when I called Form.serialize('form_id') , it couldn't retrieve the value of the textarea as it is wrapped by tinyMCE. At last I got a solution by just calling a tinyMCE method before the Ajax operation. Here is the stepwise detail: 1. My tiny MCE declaration was very simple like: <script type="text/javascript" language="Javascript"> tinyMCE.init({ theme:"simple", mode:"exact", elements:"desc" }); </script> 2. Following is my HTML form: <form onsubmit="return processForm()" name="submitForm" id="submitForm" method="post" action="request.php"> <label for="name">Name: </label><br /> <input type="text" name="name" i...

Importing Yahoo! Contacts from one account to another

Hi Suppose you opened a new Yahoo! mail account and you want to import contacts from your another account. How can u do that? There's a easy way to do this. Exporting from old account: Firstly you have to switch in your Yahoo! classic account ( if you r using beta version ). Then go to contacts. You will find a Import/Export link at the middle of top right corner menu. Click it. Two panels will be displayed. One for Import, another for export. Click Any of the Export button that u want. [ remember which type you selected ]. Save the file in your hard disk. Importing in new account: Now go to contacts section of your new Yahoo! account. click Import/Export link at the middle of top right corner menu. Now go to the Import Panel. Select the type of file that contains exported contacts. Select the file. Click Import. All the contact from you previous account is imported here!! [Samiron]

Started Blogging

Hi, This is Samiron here, just started blogging in blogspot today. Actually sometimes I think that if i could write somethings that i think, then it would be better. However hope i can continue my writings here. Well actually i am working as a web developer with PHP. And very much interested to share technical information with others. I will try to write knowings here so that i can share this with all. Thank you.