Posts

Showing posts from 2017

DAA SIMULATOR

Introduction ·        Used programming language : Java ·        Algorithms: o     Insertion sort algorithm o    Selection sort algorithm ·        Insertion sort                   One of the simplest methods to sort an array is an insertion sort. An example of an insertion sort occurs in everyday life while playing cards. To sort the cards in your hand you extract a card, shift the remaining cards, and then insert the extracted card in the correct place. This process is repeated until all the cards are in the correct sequence. Following are some of the important characteristics of Insertion Sort. 1.       It has one of the simplest implementation 2.       It is efficient for smaller data sets, but very inefficient for larger ...

Maven within 5 minutes

HOW TO CREATE A MAVEN PROJECT ======First create a directory  and start a shell in that  created directory.On your command line,and  execute the following command: mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false     groupId : package name of the project     artifactId : Project name     archetypeArtifactId : name of the archetype to be used Under the my-app directory ,you can notice the following standard project structure. my-app |-- pom.xml `-- src     |-- main     |   `-- java     |       `-- com     |           `-- mycompany     |               `-- app     |...

Hotel Management System

Image
Hotel Brighten Rest PVT Limited is a hotel situated in Messenger Street, Colombo 12 which is known as the heart of the Colombo. The project Hotel Management System was selected by looking at our clients requirements. As they were currently using a manual file based system which is less user-friendly, time consuming, less secured we identified that they were in need of an automated system. So that they can attract more customers by giving them efficient service and also where the hotel staff work happily. Our goal was to come up with a complete automated hotel management system to make the management tasks easier and less time consuming over paper work and reduce the paper work and compatible with new technology. So developed in C# applying object oriented concepts of Microsoft.NET platform and database design in MYSQL. Banquet Hall Management  Banquet Hall Management is responsible for selling the 3 banquet halls they have. Functionalities that can be identified in it, as fo...

What is AngularJS ?

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. AngularJS's data binding and dependency injection eliminate much of the code you would otherwise have to write. And it all happens within the browser, making it an ideal partner with any server technology. AngularJS is what HTML would have been, had it been designed for applications. HTML is a great declarative language for static documents. It does not contain much in the way of creating applications 1.Create Angular module  var myApp =  angular. module('DriverApp' , []); 2.Create  controller var myApp = angular.module('myApp',[]); myApp.controller('DoubleController', ['$scope', function($scope) {   $scope.double = function(value) { return value * 2; }; }]); 3.Add Angular JS file as a script source <script src="modu...

MongoDb Basics

MongoDB Basicss MongoDB is  an open-source document database .  leading No SQL database.   written in C++. Basic Commands and Queries 1.  MongoDB use DATABASE_NAME is used to create database.  use DATABASE_NAME If you want to create a database with name <mydb>, then use DATABASE statement  >use mydb switched to db mydb 2.To check your currently selected database, use the command db >db mydb 3.If you want to check your databases list, use the command show dbs. >show dbs local     0.78125GB test      0.23012GB 4.The insert() Method To insert data into MongoDB collection, you need to use MongoDB's insert() or save() method. >db.COLLECTION_NAME.insert(document) Insert a single document     db.collection_name_here.insert({}); Example : -  db.collection_name_here.insert({ ...

JavaScript Prototype Concept In Brief

Image
JavaScript Prototype Concept In Brief First, it’s important to understand that while JavaScript is an object-oriented language, it is prototype-based and does not implement a traditional class system. Keep in mind that when I mention a class in this post, I am simply referring to JavaScript objects and the prototype chain – more on this in a bit. Almost everything in JavaScript is an object, which you can think of as sort of like associative arrays - objects contain named properties which can be accessed with obj.propName or obj['propName']. Each object has an internal property called prototype, which links to another object.  The prototype object has a prototype object of its own, and so on – this is referred to as the prototype chain.  If you follow an object’s prototype chain, you will eventually reach the core Object prototype whose prototype is null, signalling the end of the chain. So what is the prototype chain used for? When you request a property wh...

What is Emma ?

Image
What is Emma ?  Emma is an open source toolkit for measuring and reporting Java Code coverage. EMMA is distributed under the terms of Common Public License v 1.0. EMMA is not currently under active development; the last stable release took place in mid-2005. As replacement, JaCoCo was developed.   EMMA works by wrapping each line of code and each condition with a flag, which is set when that line is executed. Features ·          instrument classes for coverage either offline (before they are loaded) or on the fly (using an instrumenting application class loader). ·          Supported coverage types: class, method, line, basic block. EMMA can detect when a single source code line is covered only partially. ·          Coverage stats are aggregated at method, class, package, and "all classes" levels. ·        ...

FindBug

Image
Introduction to FindBug Static analysis, also called static code analysis, is a method of computer program debugging that is done by examining the code without executing the program. The process provides an understanding of the code structure, and can help to ensure that the code adheres to industry standards. FindBug is an open source project for free static source code analysis tool created by David Hovemeyer and Bill Pugh which helps you to find the bugs in your java code and improve the code quality. Bug Rank - bugs are given a rank 1-20, and grouped into the categories scariest (rank 1-4), scary (rank 5-9), troubling (rank 10-14), and of concern (rank 15-20). Scope of applicability (Usage of FindBug) FindBugs supports only Java at this time limits uses to Java based applications. However, since FindBugs supports detection of various categories of bugs, it can be used in different settings. For Instance, it can be used to detect performance bugs in embedded applications.can ...