Skip to main content

Posts

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

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

OATH Authentication

OATH Authentication Giving access to sensitive information with the users permission. There are usually 4 parties involved in this process. The User, 'The User'. The Application requesting access to the User's data, 'The Requesting Application'. The Application which has the User's data, 'The User's Data Host'. The Application which can grant access to the User's data, 'The Access App'. (A token is just a piece of unique text which the receiver reads and understands and can identify and grant permission to access some data or resource). There are more than 1 steps involved: 'The Requesting Application' requests access to 'The User's data. 'The Requesting Application's request is sent to 'The Access App'. 'The Access App' asks 'The User' if she wishes to grant permission to 'The Requesting Application'. 'The User' agrees and response is sent to 'The...

Web Security - HTTPS, SSL, TLS and Certificates

Web Security - HTTPS, SSL, TLS and Certificates https://www.instantssl.com/ssl-certificate-products/https.html Why is it needed? Man-In-the-Middle attacks (someone reading the information you send and receive and may even change the message). How is it implemented? SSL or TLS. SSL This is the secure protocol i.e. a bunch of rules that creators of browsers like Chrome and IE follow. Replaced by TLS. Certificates are used to hold the information need for the Browsers to implement the SSL.   HTTPS https://www.howtogeek.com/howto/33949/htg-explains-what-is-encryption-and-how-does-it-work/ http://robertheaton.com/2014/03/27/how-does-https-actually-work/ A secure/encrypted version of HTTP, combination of HTTP and SSL or TLS. Verifies that you are talking directly to the server that you think you are talking to. Ensures that only the server can read what you send it and only you can read what it sends back. Anyone can intercept every single o...

Containers and Docker

Containers and Docker Docker is an app (open source, Docker Inc is a company). Docker and Containers are not the same, Docker provides a more usable way to manage Containers, without Docker it is very difficult but it can be done. Docker is not the only Container management software but it is the most popular. Docker reads Docker files. The Docker files contain instructions on how to run Containers. An Image is the signature of the Container, the Container is the instance/running image. Containers are applications. These applications need somewhere to run, they run in an Operating System provided by the Cloud of your choice e.g. Azure or AWS. Containers can contain any applications and Containers can run other Containers. You can build up complex Containers using other Containers. Containers are lightweight and start up very fast, quicker than VMs as they do not have their own OS. DockerHub is a store where you can get other Containers. Docker Containers are St...

Linq everything you need to know

  Linq Links ·          Refactor foreach to Linq https://jasonneylon.wordpress.com/2010/02/23/refactoring-to-linq-part-1-death-to-the-foreach/ ·          Linq tutorial https://app.pluralsight.com/library/courses/linq-fundamentals/table-of-contents ·          Linq cheat sheet to print http://nickberardi.com/linq-cheat-sheet/ ·          Linq Immediate and Deferred execution (intermediate) http://www.dotnetcurry.com/linq/750/deferred-vs-immediate-query-execution-linq ·          Deep Dive (advanced) https://www.simple-talk.com/dotnet/net-framework/giving-clarity-to-linq-queries-by-extending-expressions/ ·          Linq operators https://www.tutorialspoint.com/linq/linq_query_operators.htm ·       ...