Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

Building a reverse proxy in .NET Core

Categories

Tags frontend-and-mobile software-engineering cloud-and-infrastructure architecture-and-apis

Andrea Chiarelli published this interesting guide focusing on building a reverse proxy in .NET Core. .NET Core is a free and open-source web framework, offering higher performance than .NET. It is developed by Microsoft and the community.You will learn how to use .NET Core to implement a reverse proxy to overcome specific needs.

A reverse proxy is a special type of proxy server that hides the target server to the client. The client requests a resource to the proxy server which retrieves it from another server and provides it to the client.

Among the various elements of a network infrastructure (such as DNS servers, firewalls, proxies and similar), reverse proxies gained a lot of popularity due to the growth in popularity of microservice architectures.

The explanation for following is provided:

  • Why use a reverse proxy (load balancing, URL rewriting, static content serving, API gateway, combine multiple resources into one)
  • Why implement a custom reverse proxy
  • Implementing a reverse proxy in C#

Instructions include setting up the project with .NET Core. And all code needed is in GitHub repository linked in the article. Accomplished!

[Read More]

Authentication at Edge with StackPath

Categories

Tags frontend-and-mobile architecture-and-apis security-and-privacy

Jason Byrne thoughts on using cloud Edge for some common tasks. As we spread our applications out into serverless microservices, what better place for our entitlement checks than on the CDN?

Whether most of the industry realizes it or not, serverless is the future. It is extremely freeing to embrace no longer worrying about managing infrastructure or trying to stay ahead of the traffic curve.

However, one thing you can not forget about is securing your content. Today we primarily use one of two methods: signed URLs or tokens. Both of these methods work okay, but they create more work than necessary.

There are a growing number of CDN providers that offer the ability to execute code on their Edges.

You will find capability to execute code on the Edge with:

  • AWS Lambda@Edge
  • Cloudflare Workers
  • Fastly (via custom VCL)
  • StackPath EdgeEngine

This article then focuses on describing StackPath EdgeEngine which is their code-at-edge service.

  • They offer out 40Tb/s of network capacity and 45 full-scale PoPs on five continents
  • Easy CDN setup
  • Ability to create Edge script with a few clicks
  • Deployment of changes to Edge servers worldwide within a couple of seconds
  • Link to repository with template to get up and running with StackPath EdgeEngine and TypeScript

And much more. It also has example code for parsing the cookies from the request and then examine them to determine if the user is authenticated. Great introduction to serverless on the Edge!

[Read More]

How to find hidden cameras and spy gear like a professional: the definitive guide

Categories

Tags miscellaneous security-and-privacy

Detailed article published on senteltechsecurity.com describing the most thorough guide to detecting hidden cameras and covert spy gear that is online.

The simple strategies that the authors show you will effectively clear most rooms for hidden cameras and bugs without having to use super expensive counter surveillance gear or an outside company.

Most of the processes and steps in this guide are adopted from some of the best government agencies, where counter surveillance is of a grave concern to them, so these techniques have been tried and tested.

The article then gives information on:

  • What type of device could be used against me?
  • Breaking the bug sweep down into few steps
  • Finding video surveillance and audio recorders
  • Objects or amenities that could be vulnerable to surveillance equipment
  • Tips and tricks how to pick up Infrared radiation light with your phone

… and much more in this engaging article. Well done!

[Read More]

Comparing JVM performance; Zulu OpenJDK, OpenJDK, Oracle JDK, GraalVM CE

Categories

Tags backend-development software-engineering devops-and-ci-cd

Comparison article by Maarten Smeets in which he tries to help you to choose the best Java Virtual Machine (JVM) for your project. There are numerous different choices for a JVM for your Java application.

Solid performance research however is difficult. In this blog author describes a setup he created to perform tests on different JVMs at the same time. He also looked at the effect of resource isolation (assigning specific CPUs and memory to the process).

The test application consisted of a reactive (non-blocking) Spring Boot REST application and he used Prometheus to poll the JVMs and Grafana for visualization. Below is an image of the used setup. Everything was running in Docker containers except SoapUI.

The article then describes:

  • Isolated measures
  • Setup
  • Different OSs
  • Garbage collection
  • Results explanation

Author conducted a load test using SOAP UI with a reactive Spring Boot REST application running on 4 different JVMs behind a round robin haproxy load balancer. He used Prometheus to poll the JVM instances and Grafana and Prometheus to visualize the data.

Find out more!

[Read More]

Why high-performers don't use to-do lists

Categories

Tags miscellaneous leadership-and-career

An article by Aytekin Tank about high performers productivity. For most of us we find ourselves in hand-to-hand combat with a to-do list so long and so vast it resembles the spiraling tentacles of a giant squid.

It’s a race to the bottom, except there is no bottom.

After all, the go-to piece of advice we’ve been told since grade school during feelings of overwhelm is, “Make a list and start crossing things off.”

Some reason why to-do lists do not work:

  • We are terrible at estimating how long tasks take
  • To-do lists are never quite done (some almost always “roll” into tomorrow)
  • They place us into a mindset where everything must go on the list – regardless of the level of impact it has on our day
  • To-do lists allow us to avoid the important

Author offers to use instead “hunter” strategy. Instead of writing down dozens of tasks that you need to get done each day … choose one that MUST get done and will deliver the most impact.

When you walk into your office, pull one of those post it notes out and write down one big high-impact goal you would like to achieve for the day. Stick the post-it note somewhere on your laptop and start working. Good advice!

[Read More]

Understand TensorFlow by mimicking its API from scratch

Categories

Tags software-engineering data-and-analytics leadership-and-career ai-and-machine-learning

An article by Dominic Elm about learning TensorFlow. TensorFlow is a very powerful and open source library for implementing and deploying large-scale machine learning models.

Over the years TensorFlow has become one of the most popular libraries for deep learning. The author’s goal was to build an intuition and understanding for how deep learning libraries work under the hood, specifically TensorFlow.

TensorFlow is a framework composed of two core building blocks – a library for defining computational graphs and a runtime for executing such graphs on a variety of different hardware.

You will then also get more information on:

  • Computational graphs
  • TensorFlow basics (variables, placeholders, constants, operations, graph, session)
  • Implementing TensorFlow’s API from scratch

All that in details with many supporting charts, graphs and example code. Happy data science!

[Read More]

React Behavior Driven Development (BDD)

Categories

Tags software-engineering testing-and-quality frontend-and-mobile backend-development product-and-design

John Tucker wrote this little guide in which he explores React BDD using Gherkin syntax with Jest Cucumber.

Behaviour-Driven Development (BDD) is a collaborative approach to software development that bridges the communication gap between business and IT. BDD helps teams communicate requirements with more precision, discover defects early and produce software that remains maintainable over time.

The two main practices in the BDD approach are discovery workshops, which bridge the communication gap between business and IT, and executable specifications.

The examples in this article were created with:

  • Create React App; TypeScript option
  • Jest
  • Test Render

The author then explains how to create basic example of Jest Cucumber integration.

Feature: Sum Pairs
  It sums pairs of numbers

  Scenario Outline: adds x + y to equal sum
    Given x is <x>
    When add <y>
    Then the sum is <sum>

  Examples:
    | x | y | sum |
    | 1 | 2 | 3 |
    | 0 | 1 | 1 |
    | -1 | 1 | 0 |
    | 1 | 0 | 1 |

Even with this most simple of examples, we can start to see the value of this more declarative approach; at a glance it is more clear what the tests do. Example code also available.

BDD (with Gherkin syntax) has value on the complete development cycle; from feature generation, to development, testing, and acceptance. Very nice!

[Read More]

How to build Raspberry Pi UPS (Uninterruptible Power Supply)

Categories

Tags software-engineering leadership-and-career cloud-and-infrastructure miscellaneous business-and-emerging-tech

Tutorial by Zach Levine published on howchoo.com. He will teach you how to build your own Raspberry Pi UPS using some simple hardware. You can use this method to power a Raspberry Pi 3, Raspberry Pi Zero, or any other Pi.

An uninterruptible power supply ensures that your Pi project will continue to function through minor power fluctuations, power outages, or even the occasional bumped AC adapter.

If you don’t shut your Raspberry Pi down properly, you risk corrupting your Pi’s SD card, sort of like yanking the cord out of your desktop computer every time you want to shut it down.

The right UPS setup can even notify you or send a safe shutdown command to the Pi if the UPS battery gets too low.

The article is detailed and amongst others explains:

  • Raspberry Pi UPS options
  • UPS runtime
  • How to install Raspbian & configure your Raspberry Pi
  • Connect the PiJuice hardware (HAT)
  • How to install the PiJuice software

… and much more. You will also get detailed images depicting all that steps. Pretty neat!

[Read More]

17 coding challenges to sharpen your critical thinking

Categories

Tags software-engineering frontend-and-mobile miscellaneous leadership-and-career

Alex Ivanovs created this vast resource of links to platforms offering exciting challenges for coders of all level. If you want to improve your skills in an existing or a new programming language, one of the best ways to do it is through coding challenges.

Coding challenges can be both fun and a test at the same time.

The benefits, apart from the obvious, with working on these challenges include better problem-solving skills, in-depth language understanding, and the joy of learning new algorithms.

His post covers some of the best coding challenge websites and platforms that there are. Some are beginner-friendly, while others cater to a more experienced audience.

Just a selection of few:

  • Coderbyte
  • Codewars
  • Edabit
  • CodinGame

For the list of the rest with short description and review of each platform head to the original article. In total, there’s probably 10,000’s of unique code challenges across all the sites and platforms author listed.

Author’s recommendation is to find a platform that you feel best fits your needs and focus on that one platform only. Marvelous!

[Read More]

Clean code checklist in Angular

Categories

Tags frontend-and-mobile backend-development

Mathis Garberg posted a piece about how as we become better developers, structuring and organizing code becomes more and more important. Angular has rapidly grown to become one of the most popular frameworks for building front-end, cross-platform web applications. To master it, author decided to put together a clean code checklist which covers my personal recommendations for writing clean production-ready Angular code.

The time spent attempting to understand someone else’s code takes up large portion of our day to day operations. We should therefore consciously try to improve the quality of our code.

You will find clear advice on:

  • Style guide
  • Angular CLI
  • Folder structure
  • How to write readable code
  • Separation of concerns
  • How to utilize typescript
  • Lazy Load Your Modules

… and much more in this detailed guide. Angular is a very powerful framework with a lot of functionality. But if you’re new to the game, it can seem overwhelming with all its different options and whatnot. Good read!

[Read More]