Skip to main content

Posts

Create Google Drive App to View and Upload Files Using OAuth 2.0 and Flask

For authentication and authorization processes, we can use OAuth 2.0 framework. It is an industry standard authorization protocol. This is a direct authentication pattern. So users can login using their other public profiles. No need to register and enter password. Because of that, this is often called the password anti-pattern. How Aouth works? When web application redirects a browser to a Google URLauthorization sequence begins; the URL includes query parameters that indicate the type of access being requested. Google manages the user authentication and session selection. The result is an authorization code, which the application can exchange for an access token and a refresh token [6]. Authentication process - source -  https://developers.google.com/identity/protocols/OAuth2 The application should store the refresh token for future use and use the access token to access a Google API. Once the access token expires, the application uses the refresh token to o
Recent posts

Advantages of using REST API

  Representational State Transfer is an architectural style that defines a set of constraints and properties based on HTTP. ● Uniform interface ● Stateless ● Cacheable ● Client-Server ● Layered System 1. Uniform interface-   to transfer data, the REST system applies specific actions (POST, GET, PUT and DELETE) on the resources, provided they are identified with a URI. This makes it easier to obtain a uniform interface that systematizes the process with the information. 2. Stateless -  REST APIs are stateless, meaning that calls can be made independently of one another, and each call contains all of the data necessary to complete itself successfully. 3. Cacheble -    Because a stateless API can increase request overhead by handling large loads of incoming and outbound calls, a REST API should be designed to encourage the storage of cacheable data. 4. Layerd System-  REST APIs have different layers of their architecture working together to build a hierar

Node js and Java Script

open-source JavaScript run-time environment executes JavaScript code server-side       JavaScript is a programming language.        Node . js  is an environment allowing  JavaScript  code to run on the server side and not in a browser. It is based on Chrome's V8 Engine, which runs on Google Chrome. Java script engines runs the JavaScript from the web pages. Firefox                -      Spidermonkey Safari                  -      JavaScriptCore Chrome              -           V8   Node js based on v8 engine.  Node Js  is Easy to learn has Freedom in building apps helps to write both backend and front end of web app using js

Maven Setup

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.           Download the zip file from maven and extract the file.           http://redrockdigimark.com/apachemirror/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip        Add JAVA_HOME, M2_HOME, MAVEN_HOME variables to windows environment variables.         Add maven to path variable using    %M2_HOME%\bin then, run    mvn –version  on command prompt. it will show details Apache Maven 3.2.2 ( 45f7c06d68e745d05611f7fd14efb6594181933e ; 2014-06-17T21:51:42+08:00 ) Maven home: C:\Program Files\Apache\maven Java version: 1.7.0_65, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_65\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 8.1" , version: "6.3" , arch: "amd64

Bitcoin

Bitcoin is a cryptocurrency and worldwide payment system. It is the first decentralized digital currency, as the system works without a central bank or single administrator. How to buy bitcoin 1. Download  a    b itcoin wallet 2.Sign up for a bitcoin wallet 3.Use regular money to buy bitcoins(by using credit cards, bank cards) How to use bitcoin 1. Learn about bitcoin         https://bitcoin.org/en/you-need-to-know 2. Choose a bitcoin wallet 3.Buy bitcoin      https://bitcoin.org/en/buy 4. Spent bitcoin       There is a growing number of services and merchants accepting Bitcoin all over the              world. You can use Bitcoin to pay them and rate your experience to help honest                    businesses to gain more visibility.

Java Script variables and functions

JavaScript, often abbreviated as JS, is a high-level, interpreted programming language. It is a language which is also characterized as dynamic, weakly typed, prototype-based and multi-paradigm. Variables No need to give data types to the variables. result: Function a set of statements that performs a task or calculates a value. To use a  function , you must define it somewhere in the scope from which you wish to call it.  result