Posts

Showing posts from April, 2017

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...