My blog has moved!

You will be automatically redirected to the new address. If that does not occur, visit
http://ashokbasnet.com.np
and update your bookmarks.

Saturday, January 12, 2013

Debug() function for Opencart

Have you wondered if a single function call would be sufficient to output the array in pre-formatted way. I have been working with opencart for some months and I realize how repititive is it to repeat same lines of code to make array look nice. By the way, I am a big fan of CakePHP framework and its powerful debugging technique.

Friday, January 11, 2013

vQmod installation in Opencart

Interestingly, vQmod was originally developed for Open Cart ! But due to "openess" of the design, it has been used by other systems too.

In OpenCart (OC), extending your site's features usually results in modifying the program core codes. There are many reasons why this practise in not favorable - a major one is that it is not easily reversible. Say when you modified some codes and wanted to reinstate the original for some reason, it can be quite tedious.

Virtual File Modification System (vQmod)

Have you ever thought of modifying the core of any framework? Then vQMod is the best way to do it.

transparent-400x113"vQmod™" (aka Virtual Quick Mod) is an override system designed to avoid having to change core files. The concept is quite simple... Instead of making changes to the core files directly, the changes are created as xml search/replace script files. These script files are parsed during page load as each "source" core file is loaded with the "include" or "require" php functions. The source is then patched with the script file changes, and saved to a temp file. That temp file is then substituted for the original during execution. The original source file is never altered. This results in a "virtual" change to the core during execution without any actual modification to the core files.

Friday, January 4, 2013

Youtube API at Glance

What is API ?

  • API ( Application Programming Interface )
  • Protocol intended to be used as an interface by software components to communicate with each other
  • A set of routines, protocols, and tools for building software applications.
  • A good API makes it easier to develop a program by providing all the building blocks.

Tuesday, August 7, 2012

jQuery implementation of Game of life!

One of the earliest experiments at simulating life in technology was a simple mathematical game created by John H. Conway, first published and popularized during the early 1970's in issues of Scientific American. He called it "The Game of Life."
The concept of the Game of Life is very simple. The game takes place over the cells in an array, like squares on a chessboard. Each cell can have an organism living inside it or not living inside it; or each cell itself can be alive or dead. Whatever frame of thought is used, each cell is described to be "on" or "off." At the beginning of the game, a certain number of cells are filled.

Wednesday, August 1, 2012

Enable telnet in windows 7

Windows 7 doesn’t provide access to telnet client in default. More than likely this was an attempt to make Windows more secure by default, as Telnet is very insecure and whenever you have the choice you should always use SSH. However, with that being said, you can quickly re-enable Telnet by following these steps:

Wednesday, July 11, 2012

Accessing localhost from Andriod Emulator

The access of localhost in normal way can be bit tricky in Andriod SDK.

The normal way of accessing the localhost is :-

http://localhost or http://127.0.0.1

Friday, July 6, 2012

Reach: An approach to bridge the digital divide[LOCUS 2012]

logo-RecoveredInformation and  communication technologies(ICT) in  general, and the Internet and the world wide web in particular, have  made life easier by facilitating easy communication with virtually everyone, and easy access to information located  virtually anywhere in the  world. But all these communication technology are in reach of rich peoples, poor peoples are still backward in our country. Which have also widened the gap between the rich and the poor.  In other words,   new technologies, while improving our life in many ways have created the digital divide between the village and urban people.

Thursday, June 28, 2012

Randomly generate password in SQL Server 2008

There are lots of ways of generating random strings in SQL Server. But instead of spending much time on finding solution to random password generation, here is an easy way to do that.

Using Cursor to iterate through records in sql server 2008

Cursors are great way to loop through records in SQL specialy when you need to deal with individual records from certain table.

Here is a example using cursor;

Tuesday, June 26, 2012

Conversion of Imperial to Metric System in SQL Server 2008

There will be case when you need to convert the values in Imperial system i.e. in feet and inches to the one in metric system. The conversion logic seems simple, but when it comes to SQL Server, it takes a bit complex.

Here is the function which can convert imperial unit of measurement to the metric system.

Reset indentity value of Auto increment Key to 0 in SQL server 2008

I have been searching for resetting the Auto increment value of ID Column in MSSQL Server 2008 and finally solved the problem. You can simply do the following in SQL.

The following line resets the Identity value for the ‘MyTable’ table to 0 so that the next record added starts at

Monday, May 7, 2012

Detect face area using Matlab

Image processing can be used to process various objects in various ways and one for them is the face detection. The face detection system has got many applications and developing such a system is even easier by use of the Image Processing ToolBox available in MATLAB.

The detection of face involves various tasks. They can be summarized in three steps as:-

  1. reading of a RGB image
  2. minimisation of background portion
  3. detection of face object

Tuesday, March 13, 2012

Extract Frames from Video MATLAB

There may be situations when we need certain frames from video. You can extract the video frames easily in MATLAB and save to any image format that MATLAB imwrite function supports or you can process the frames directly.

There is a function class called ‘VideoReader’

Sunday, February 26, 2012

Number Plate Extraction using MATLAB

The number plate extraction in MATLAB can be accomplished using Image Proccessing Tools available in MATLAB. The functions provided by the Image Processing ToolBox makes it easy to process any images to extract the data from it.
The algorithm for extracting number plate can be summarized as:-

Thursday, February 23, 2012

Node.js : Introduction

150px-Nodejs_logo_lightNode.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Node.js was created by Ryan Dahl starting in 2009

Traditional Web Servers

The “traditional” mode of web servers has always been one of the thread-based model. You launch Apache or any other web server and it starts receiving connections. When it receives a connection, it holds that connection open until it has performed the request for the page or whatever other transaction was sent. If it make take a few microseconds to retrieve a page from disk or write results to a database, the web server is blocking on that input/output operation. (This is referred to as “blocking I/O“.) To scale this type of web server, you need to launch additional copies of the server (referred to as “thread-based” because each copy typically requires another operating system thread).

MATLAB and Image Processing

Matlab contains a huge resources for image processing. It has Image Processing Toolbox which can be used to process any kind of image files.Image Processing Toolbox™ provides a comprehensive set of reference-standard algorithms and graphical tools for image processing, analysis, visualization, and algorithm development. You can perform image enhancement, image deblurring, feature detection, noise reduction, image segmentation, spatial transformations, and image registration. Many functions in the toolbox are multithreaded to take advantage of multicore and multiprocessor computers.

Model View Controller ( MVC ) Architecture

MVC Framework is a software architecture used in software engineering. Model View Controller (MVC) pattern creates applications that separate the different aspects of the application (input logic, business logic, and UI logic), while providing a loose coupling between these elements.

The model manages the behaviour and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller). In event-driven systems, the model notifies observers (usually views) when the information changes so that they can react.

Friday, July 22, 2011

LOCUS 2011 : Projects ( C.yber and IoeCamPlus)

This year locus, we have showcased two projects , one from previous year locus project and another C++ project .

You can have look at them at following link:-

1. C.yber

2. IoeCamPlus : v2.0ß

IoeCamPlus : v2.0ß realeased

IoeCamPlus is a cross platform webcam application With the problems faced with IoeCamPlusv1.0, the 2nd version of IoeCamPlus is released.

Updates in the IoeCamPlusv2.0ß :-

  • Image saving problem in v1.0 is solved.
  • new dll files installation updated.
  • Painter added for images browsed.
  • Error handling in case of missing camera hardware added etc.

You can download the source and installation file:-

  1. Installation Package
  2. Complete Source code

Your feedbacks are important for us to improve the IoeCamPlus. So do comment….