Categories » Usefuls

Workflow Engines: Why use them

Basically, as a programmer when you are presented with a certain tasks, you have about a 100 ways to accomplish them. The path you take to solving the problem depends on so many factors. One i think is quite obvious is your experience with certain tools. In a programmers “toolbox”, one tool that shouldn’t be missing is a Workflow Engine.

What is a Workflow Engine?
Simply put, a workflow engine is an app that helps define a workflow process, the constraining rules guiding the decisions in the process flow and the information to be passed along in the process timeline.
Lets take a Cash withdrawal (from the teller machine) process as a typical example. The process can be defined into the following steps:
Continue Reading »

Face Detection and Recognition in C# using EmguCV 3.0 (OpenCV Wrapper) – Part 2

A quick recap

In the first part of this article, we saw how we can initialize our default camera, get image frames from it and carry out face detection.
To complete the scope of this article, we would be taking a step further. We would look at how to store training data in a structured database, train your face recognition engine and use to engine to predict faces detected in images.

Store Training Data (Using SQLite)

The storage of training data would be demonstrated using SQLite due to the fact that it is easy to use. SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. It removes the hassle of client-server communication when it comes to using databases.
Continue Reading »

Face Detection and Recognition in C# using EmguCV 3.0 (OpenCV Wrapper) – Part 1

Introduction

First off, Face detection and Face recognition are two totally different things although one builds upon the other (recognition builds upon detection). Detection is the process by which the system identifies human faces in digital images, regardless of the source while Recognition is the identifying a known face with a known name in digital images, still regardless of the source. The source can range from a scanned copy of a photograph to a live video stream. Face detection and recognition is a section of Machine learning with a good number of research topics focused on improving the existing algorithms.
This article intends to show the reader how to use EmguCV 3.0 for Face detection and recognition in C#, emphasis on 3.0 because a lot of changes have been made to the library since 2.x versions, and a lot of tutorials/articles (as at the time of writing) focus on the 2.x versions of the library.
Continue Reading »

Integrating RetailPro and Magento

Recently, i had to do some integration work on RetailPro – a Point of Sale (POS) software and Magento – a E-Commerce software and platform.
While the only thing i found online was this link, i found it to be less technical than i would expect because it gave what i would describe as an overview rather than the “how-to” details. I decided to write more on the subject to help whoever would want to carry out the same integration.
Continue Reading »

Number to Words Converter – JAR File – Java

Something useful i think i would share.
The code was originally written by http://www.rgagnon.com/. I made some minute modifications to fit into the Jar mode
You might need to convert Figures to Words, lets say: 365, which converts to “Three Hundred and Sixty Five”. It can go as far as you want it to.
Here’s the JAR file to download: JAR File
Source File

Sample Usage
The convert method is static, so need to instantiate the class. It takes a long data type as its only argument.

int value = 7899;
String valueInString = NumberToWordsConverter.convert((long)value));

Have fun! No point wasting precious time writing lines of codes like this.. whatcha say?!

How to determine a webpage font using FOUNT

As a designer or a lover of art or just someone who likes to know stuffs, I’m sure you must have gotten into a situation where you see a font on a website which you really like and might want to use for your works at a later date or you are just curious what the name is and you can’t seem to figure it out off the bat. A great tool I use in cases like this is called “Fount”. Actually, it’s a bookmarklet, but I’d prefer to call it a tool.
Now you might be wondering: what is a bookmarklet? Continue Reading »