Implementing Token Interceptor and Retry in Angular 4

If you are building a web application using Angular 4 or Angular 5 there’s a good chance that you might be working with JWT tokens. Luckily, implementing token interceptor and retry in Angular 4 and beyond is very easy thanks to the new HTTP Interceptors. Using this, we can add an authorization header to every outbound request while also implementing a retry mechanism for requests that fail due to an expired token.

Simple CSS Hack Can Steal Internet Passwords

A user on GitHub just posted an alarming exploit shows how a simple CSS hack can steal internet passwords. It’s kinda funny how you wouldn’t really think of CSS when it comes to vulnerabilities and hacking. Since CSS is only used to style a webpage, its threat level is generally considered to be relatively low. However, CSS does provide developers with very advanced selectors. In this case, if you wanted to select an input with the value of A in it and turn it red, then CSS allows you to do that.

How to build a forum

Practically every online community has a forum. It makes sense though because forums are a great way to facilitate online discussion. Now let’s say that you wanted to build your own online forum. Well, building a very basic forum wouldn’t be too complicated. Just script together some PHP with an MYSQL database and you will be all set. Unfortunately, this would likely leave you vulnerable to many potential security holes and a terrible user experience.

Run Windows Applications (EXE Files) on Android

If I had a dollar for the number of times someone asked how to run Windows Exe Files on Android, I would be richer than your top Bitcoin miners. Most of the time, my response would have simply been that it’s not possible, end of story. Well, that sort of changed this week. If you are a Linux user, you have probably heard of Wine. The tl;dr is that Wine allows you to run Windows apps in Linux (it’s a Windows compatibility layer).

Angular 4 Forms

One of my favorite features in Angular are forms. Using Angular 4 forms or Angular 5 forms are very helpful because they provide for quick validation and object mapping. Here’s how you can create a basic angular 4 form (also works with angular 2, and angular 5). HTML You will also notice that I am using Bootstrap for some styling, that is completely optional. Let’s look at the form HTML:

Angular 4 Forms

One of my favorite features in Angular are forms. Using Angular 4 forms or Angular 5 forms are very helpful because they provide for quick validation and object mapping. Here’s how you can create a basic angular 4 form (also works with angular 2, and angular 5). HTML You will also notice that I am using Bootstrap for some styling, that is completely optional. Let’s look at the form HTML:

Android Recyclerview for Installed Apps with Checkbox

One of the most common reasons that you would want to use the android recyclerview is if you want to show a list of some sort. In this example, let’s take a look at how you can use the android recyclerview to show a list of installed apps on your device. Within each item, we will also include a checkbox. Here’s what it will look like: Layout Let’s first take care of creating the layout files.

Use Machine Learning to Predict the Value of Bitcoin

The day has finally come at which I can use machine learning and bitcoin in the same article. The only thing that would impress me more would be relating the topics of machine learning, bitcoin, and blockchain in the same article, but I digress. Anway, the value of bitcoin is astonishing. It went from $900 to well over $14,000 in less than 6 months time! So hey, let’s start riding this bubble and try to cash in before its too late.
python 

Meltdown and Spectre – Possible Javascript Vulnerabilities

This has been a very interesting New Year. So far, 2018 has brought us two of the biggest bugs to hit CPUs in the past 12 years: Meltdown and Spectre. Intel is struggling to get their Meltdown bug under control while Amazon and Microsoft brutally await its impact on their cloud services. Both Meltdown and Spectre are serious issues, but Meltdown is easier to exploit and gives attackers more valuable information.

Best Chrome Extensions for Web Development

Google Chrome and its developer tools are an absolute necessity for any web developer. But you shouldn’t stop there because there are even more great tools and extensions that will help you with web development and design. So let’s take a look at some of the best Chrome extensions for web development. React Developer Tools If you plan on doing development in React, then you should definitely download this extension.