Wednesday, 12 November 2014

Model View Controller



The Model View Controller is a software architecture which separates the representation of the information from the user’s interaction with it.  The architecture, as the name suggests, contains 3 main components. viz. The Model, The View and The Controller.

The Model
The model is the component that holds all the business logic. The model is responsible for manipulating the data, handling the database, structuring the data for the view, etc. In classic MVC, the model notifies the view about any change in data.
The View
The view is the presentation layer for the system. The view takes care of all the presentation related stuff.
The Controller
The controller basically sends commands to the model to update the models state. It also sends commands and data to the view to represent the data received by the Model.

ORM in MVC styled application
ORMs help you to store and retrieve full live objects from a relational database rather a set or rows. If you are using an ORM in your MVC styled application, the ORM will be responsible for generating your Models completely.

Friday, 26 September 2014

RESTful API

REST API


A RESTful API is an application program interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data.

Representational state transfer (REST), which is used by browsers, can be thought of as the language of the Internet. Now that cloud usage is on the rise, various application programming interfaces (APIs) are emerging to expose Web services and REST is a logical choice for building APIs that allow end users to connect and interact with cloud services. RESTful APIs are used by many sites, including Google, Amazon, Twitter and LinkedIn.


A RESTful API breaks down a transaction to create a series of small modules, each of which addresses a particular underlying part of the transaction. This modularity provides developers with a lot of flexibility but can also be challenging for developers to design from scratch. Currently, the models provided by Amazon Simple Storage Service (S3), OpenStack Swift and Cloud Data Management Interface (CDMI) are most popular.

RESTful APIs explicitly take advantage of HTTP methodologies defined by the RFC 2616 protocol. They simply use "PUT" to change the state of or update a resource, which can be an object, file or block; "GET" to retrieve a resource; POST" to create that resource; and "DELETE" to remove it.

Thursday, 15 May 2014

Cyber Crime


Tech Trivia on CyberCrime

A gummy bear hack is an attempt to fool a biometric fingerprint scanner by using a gelatin-based candy to hold a fingerprint.
                                                                                               
Low-end optical fingerprint scanners can often be fooled with a simple image of a fingerprint, while more sophisticated devices check for characteristics such as electrical current and blood flow. As it turns out, however, the capacitance of gelatin is similar to that of a human finger. Furthermore, if a gelatin-based fingerprint is attached to a living finger, the method could fool those finger scanners as well because the device would detect those characteristics through the clear gelatin.

The idea behind the gummy bear hack originated with 2002 research led by Japanese cryptographer Tsutomu Matsumoto. Matsumoto and his team used clear gelatin to make artificial fingers that they then used to fool fingerprint scanners. The gelatin-based finger was successful in fooling all 11 devices tested. Reporting on the experiment in the CryptoGram, security expert Bruce Schneier commented that gelatin is “the same substance gummi bears are made of.”