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 ]

Kali Linux in the DigitalOcean Cloud

Categories

Tags cloud-and-infrastructure security-and-privacy

Tutorial by Thomas d’Otreppe about installing custom image of Kali Linux on DigitalOcean. DigitalOcean is a cloud provider similar to AWS, Microsoft Azure, Google Cloud Platform, and many others. They offer instances, called “droplets”, with different Linux distributions such as Debian, Ubuntu, FreeBSD, etc. Similar to AWS, DigitalOcean has datacenters around the world and sometimes multiple datacenters in each country.

However, one feature in particular sets DigitalOcean apart them from their competitors. A little while ago, they added support for custom images, which allows users to import virtual machine disks and use them as droplets. This is perfect for us as we can use our own version of Kali Linux in their cloud.

Author will guide you through the build of a lightweight Kali installation with the bare minimum to get it working. You will get detailed instructions on:

  • How to generate an ISO
  • How to create the Virtual Machine
  • Update the System
  • Uploading of custom image
  • Starting a Droplet

Straight to the point no fuss tutorial. Building the ISO will require around 5 GB of hard drive space so make sure you have enough. Good read!

[Read More]

Migration to GCP: Getting started

Categories

Tags cloud-and-infrastructure

This document helps you plan, design, and implement the process of migrating your workloads to Google Cloud Platform (GCP). Official Google guide published on their cloud solutions blog.

This document is useful if you’re planning a migration from an on-premises environment, from a private-hosting environment, from another cloud provider to GCP, or if you’re evaluating the opportunity to migrate and want to explore what it might look like.

The content is split into sections:

  • Beginning the journey
  • Types of migrations (Lift and shift, Improve and move, Rip and replace)
  • Google Cloud Adoption Framework
  • The migration path

This is excellent and very detailed guide which will help you with migration from any source to GCP. GCP offers various options and resources for you to find the necessary help and support to best leverage GCP services. Excellent!

[Read More]

7 optimization techniques in React

Categories

Tags software-engineering frontend-and-mobile

Ogundipe Samuel wrote this piece about optimization in React. One key factor for positive user experience is speed e.g. how much time a user has to wait to first see contents from your website or application.

With the help of some inbuilt APIs like React.Component, React.PureComponent and life-cycle methods React offers, we can optimize our components to ensure fast and efficient load times in our applications.

In this tutorial, we will learn various optimization methods that use these inbuilt APIs, lifecycle methods and some other general techniques that ensure you improve your React code.

The article covers:

  • How to use React.Fragment to avoid adding extra nodes to the DOM
  • Use React.Suspense and React.Lazy to load components declaratively
  • Use React Suspense
  • Prevent unnecessary re-rendering with shouldComponentUpdate()
  • Use React.PureComponent
  • Remove unused DOM elements with ComponentDidUnmount()
  • Use React.Memo to cache components

In this tutorial, you explored several ways we can optimize our React components for better performance. Nice!

[Read More]

The evolving infrastructure of .NET Core

Categories

Tags leadership-and-career software-engineering cloud-and-infrastructure devops-and-ci-cd

An article by Matt Mitchell in which he looks at the history of our infrastructure systems and the significant improvements that have been made in the last year or so in the world of the .NET Core 3.0.

The .NET Core project was a significant departure from traditional Microsoft projects:

  • Developed publicly on GitHub
  • Composed of isolated git repositories that integrate together vs. a monolithic repository.
  • Targets many platforms
  • Its components may ship in more than one ‘vehicle’ (e.g. Roslyn ships as a component of Visual Studio as well as the SDK)

The team working on the .NET Core early infrastructure decisions were made around necessity and expediency. The article explains then in some detail:

  • A three-pronged approach to development
    • Shared Tooling (aka Arcade)
    • System Consolidation (Azure DevOps)
    • Automated Dependency Flow and Discovery (Maestro)
  • Moving to Azure DevOps
  • Maestro and Dependency Flow
  • A Complex Graph

… you will get much more information in the article. The .NET Core evolved infrastructure quite a bit over the years. From Jenkins to Azure DevOps, from manual dependency flow to Maestro++, and from many tooling implementations to one, the changes they’ve made to ship .NET Core 3.0 are a huge step forward. Good read!

[Read More]

Distributed tracing with Apache Kafka and Jaeger

Categories

Tags software-engineering devops-and-ci-cd cloud-and-infrastructure data-and-analytics

An article by Aaron Burk about distributed systems. Kafka decouples consumers and producers (meaning applications do not directly communicate with each other) it can be a challenge to illustrate exactly how data flows through your system. Author demonstrates how Jaeger is up to the challenge while navigating the pitfalls of an example project.

Jaeger is an open source distributed tracer. It records and illustrates the life cycle of transactions as they propagate through a distributed system. Jaeger does the heavy lifting and ultimately paints the pretty picture, while OpenTracing provides the APIs I will use to interact with it.

The article is divided into:

  • What is Jaeger? What is OpenTracing?
  • Example project
  • Configuring Jaeger tracing
  • Configuring Jaeger tracing: Spring Kafka Consumer/Producer
  • Configuring Jaeger tracing: Kafka Consumer/Producer
  • Initial Jaeger tracing result
  • Finish tracing configuration: Headers
  • Finish tracing configuration: Kafka Streams first consumer
  • Finish tracing configuration: Kafka Streams dead letter queue
  • Finish tracing configuration: Kafka and HTTP
  • Final Jaeger tracing result

Extremely detailed detailed overview with configuration examples and screen-grabs of final tracing result. Well worth your time!

[Read More]

Option/Maybe, Either, and Future Monads in JavaScript, Python, Ruby, Swift, and Scala

Categories

Tags frontend-and-mobile software-engineering backend-development

The comparison done by Alexey Karasev focusing on Monads in different programming languages. It gives a brief explanation of monads and shows how to implement the most useful Monads in five different programming languages.

A monad is an abstract interface that defines “pure” and “flatMap” functions. Pure lets you convert an ordinary value to monadic value. FlatMap allows functions with ordinary arguments to be applied to monadic arguments.

Using these monads you will get rid of a series of bugs like null-pointer exceptions, unhandled exceptions, and race conditions. This is what the article covers:

  • An introduction into Category Theory
  • The definition of a Monad
  • Implementations of the Option (“Maybe”) monad, Either monad, and Future monad, plus a sample program leveraging them, in JavaScript, Python, Ruby, Swift, and Scala

Category theory is a mathematical field that was actively developed in the middle of the 20th century. Now it is the basis of many functional programming concepts including the monad. The article provides a quick look into some category theory concepts, tuned for software development terminology.

Further reading and detailed code examples for 5 languages included. Nice one!

[Read More]

Design patterns in Node.js: a practical guide

Categories

Tags backend-development frontend-and-mobile architecture-and-apis software-engineering

Fernando Doglio, Technical Manager @Globant, wrote this piece about design patterns in Node.js. Design patterns are part of the day to day of any software developer, whether they realize it or not.

In this article, he will look at how to identify these patterns out in the wild and look at how you can start using them in your own projects.

Design patterns, simply put, are a way for you to structure your solution’s code in a way that allows you to gain some kind of benefit. Such as faster development speed, code reusability, and so on.

Sections available in the article:

  • What are design patterns?
  • Immediately Invoked Function Expressions (IIFE)
  • Factory method pattern
  • Singleton pattern
  • Observer pattern
  • Chain of responsibility

Code examples and links to further reading also included. Hopefully, this article will shed some light on this subject and helps you improve your coding-foo faster than ever. Nice one!

[Read More]

Tool up your API integration testing with OpenAPI

Categories

Tags leadership-and-career testing-and-quality architecture-and-apis frontend-and-mobile

Vinod Chandru, Chief Technical Officer and Co-Founder, Kloudless wrote this long post about integartiomn testing for your API. The modern web application is no longer a self-contained hub for the distribution of its own data. Uniformity in how APIs operate and what they return has become an increasingly important goal for engineers who build and maintain the APIs.

Unified APIs present other interesting possibilities. A unified API is essentially an abstraction layer that consolidates multiple third-party APIs into a single set of data models accessed through common API endpoints.

Article pays attention to:

  • What is the OpenAPI Spec?
  • Contract testing
  • Mock APIs
  • The future of testing with OpenAPI
  • Unified APIs

It’s clear the OpenAPI Specification is here to stay. The standardization of a way to describe RESTful APIs has proved to be of immense value to both those designing interfaces and those consuming them. Good guide!

[Read More]

Finding CRAN packages right from the R console

Categories

Tags software-engineering data-and-analytics

The article from Joachim Zuckarelli about working woth Rlang. Currently, there are more than 14,000 R package contributions on CRAN providing R with an unparalleled wealth of features. The downside of the large and increasing amount of packages is that it becomes increasingly difficult to find the right tools to tackle a specific problem.

The information is split into:

  • What is packagefinder? How does it benefit me?
  • Working with packagefinder: Search indices
  • Searching CRAN for packages
  • Discovering the latest packages
  • Getting details on packages

Despite that CRAN does not provide any good search functionality packagefinder is designed to search for CRAN packages right from the R console. Certainly helpful for anybody using R language for big data.

[Read More]

Lessons learned while writing a Haskell application

Categories

Tags software-engineering architecture-and-apis backend-development

Gabriel Volpe in this article writes about his experience with Haskell. He introduced Haskell at his last job and wanted to put into practice all the stuff he learned: take the good, leave the bad.

Note: if you write Scala, many of the tips will also be useful for you.

The article covers:

  • Configuration
  • Production-ready effect: RIO (influenced by Michael Snoyman’s articles The ReaderT design pattern and The RIO Monad)
  • Polymorphic record of functions
  • Smart constructors
  • Parametric reasoning
  • Web server

… Web server is written using servant and it’s a pleasure to use. It also allows you to generate documentation from the API definition using swagger. Servant is a set of Haskell libraries for writing type-safe web applications but also deriving clients (in Haskell and other languages) or generating documentation for them, and more.

Parametric reasoning matters: ideally we should be able to tell what a function does by just looking at its type signature. Great read for anybody into functional programming or web development!

[Read More]