Skip to main content

Posts

Showing posts from 2018

AngularJS

AngularJS Another bunch of JavaScript files which will help you manage your web applications. You have your HTML and CSS. The content of the HTML changes. Separate the HTML from the data that changes, this is know as View (HTML) and Model (data). AngularJS has been updated and is now known as Angular. AngularJS is older and has versions starting with 1.X. Angular versions start with 2.X. https://toddmotto.com/ultimate-guide-to-learning-angular-js-in-one-day/#terminology AngularJS is similar to others like KnockoutJS. When developing with Angular define you HTML/Views. Then create Javascript files and Bind the JavaScript properties and functions within the HTML using the AngularJS directives. AngularJS is a bunch of JavaScript files, it is served up to the Client/Browser in total i.e. none of the AngularJS runs on the Server, the Browser gets all of the JavaScript, HTML and CSS and runs the whole thing.

Blockchain

Blockchain Blockchain is the technology on which Bitcoin is built. Blockchain can be used to store any documents and manage their tracability. https://medium.com/s/welcome-to-blockchain/everything-you-need-to-know-about-blockchain-but-were-too-embarrassed-to-ask-b3cee3e918f8 https://blockgeeks.com/guides/what-is-blockchain-technology/ https://app.pluralsight.com/player?course=blockchain-fundamentals A Blockchain is a tree of nodes. Each node contains key information including, Number, Message, Hash, Nonce (a number), Timestamp and Previous Hash (The Hash and the Previous Hash values can be used to detect if the node is valid or has been tampered with). The importance of the implementation of Blockchain is that the computing is distributed and each node in the distribution has it's own unique copy of the complete Blockchain, this means that if one node in the distribution is corrupted then it can easily be detected as it's copy will differ from the others and it ca...

Real-time Web Applications

Your application wants to show live data i.e. data sent from Server back up to the Client instead of the usual which is the Client sending data to the Server via a form submit. There are multiple options, currently the best option is WebSockets. Polling Periodically check the Server for updated data, uses SetInterval in Javascript. The Client sends some information to the Server and wants the Server to send back a response, the response is not immediate so the Client wants to wait for the Server but instead of waiting the Client keeps sending requests to the Server and when something is updated on the Server then the Client updates the UI. ( function poll (){ setTimeout ( function (){ $ . ajax ({ url : "server" , success : function ( data ){ //Update your dashboard gauge salesGauge . setValue ( data . value ); //Setup the next poll recursively poll (); }, dataType : "json" }); }, 30000 ); })(); https://...