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 ]

Writing Kubernetes Operator in Python without frameworks and SDK

Categories

Tags devops-and-ci-cd backend-development miscellaneous leadership-and-career

An article by flant.com about how to create a solid operator using one of the most popular programming languages that almost every DevOps engineer is familiar with – Python.

Authors make things easy and practical, guiding you through creation of ea simple operator designed to copy ConfigMap when a new namespace shows up or when one of the following two objects – ConfigMap or Secret – changes its state.

The article describes:

  • Please welcome Copyrator – the copy operator!
  • CRD
  • Environment variables or flags? Both!
  • The operating logic of the operator
  • Docker and Helm

.. plus plenty oif code to go with this article. All code is available in their public repository so you could get acquainted with it. Nice one for any lovers of Python!

[Read More]

6 step field guide for building Machine Learning projects

Categories

Tags data-and-analytics miscellaneous

Daniel Bourke is author of this piece about what to do if you have data and want to know how you can use machine learning with it.

For this article, you can consider machine learning the process of finding patterns in data to understand something more or to predict some kind of future event.

The following steps have a bias towards building something and seeing how it work:

  • Problem definition – Rephrase your business problem as a machine learning problem
  • Data – If machine learning is getting insights out of data, what data do you have?
  • Evaluation – What defines success? Is a 95% accurate machine learning model good enough?
  • Features – What features does your data have and which can you use to build your model?
  • Modelling – Which model should you choose? How can you improve it? How do you compare it with other models? Experimentation – What else could we try? How do the other steps change based on what we’ve found? Does our deployed model do as we expected?

This is excellent source of information, with great and detailed schemes accompanying this long article, with clear and concise terminology and flow.

Stay tuned for more specific examples of each of the above steps and how they work in practice. Follow the author!

[Read More]

Quick guide to microservices with Quarkus on Openshift

Categories

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

Piotr Mińkowski wrote this article about one very interesting framework dedicated for microservices architecture, which is becoming increasing popular –- Quarkus.

It is being introduced as a next-generation Kubernetes/Openshift native Java framework. Built on top of well-known Java standards like CDI, JAX-RS and Eclipse MicroProfile which distinguishes it from Spring Boot.

The article describes:

  • Building REST-based application with input validation
  • Communication between microservices with RestClient
  • Exposing health checks (liveness, readiness)
  • Exposing OpenAPI/Swagger documentation
  • Running applications on the local machine with Quarkus Maven plugin
  • Testing with JUnit and RestAssured
  • Deploying and running Quarkus applications on Minishift using source-2-image

Also describes some different approaches when deploying Quarkus application on OpenShift. Very interesting!

[Read More]

Chrome extension with Angular -- from zero to a little hero

Categories

Tags frontend-and-mobile miscellaneous

An article by JeB Barabanov in which he explores the process of developing a Chrome extension with Angular. Start from scratch with ng new and finishing with fully functional Chrome extension.

There are couple of reasons that would make you want to develop a Chrome extension. Author believes that the main use case for developing an extension is to serve your needs as a developer.

The article then describes following:

  • What Chrome extension consists of
    • Background script
    • Content script
    • Popup (in browser action)
  • Communication between pages
  • Loading the extension into Chrome
  • Live reload and ng serve

… and more. Screen shots and code examples are also included. You will get all the necessary tools and understanding for developing a Chrome Extension with Angular in convenient and efficient way. Very nice!

[Read More]

Object creation patterns in JavaScript

Categories

Tags frontend-and-mobile software-engineering

Kunal Tandon wrote about his run through of the four patterns in JavaScript. To create objects in JS, there are various patterns that can be followed.

The article describes briefly each of these:

  • Factory pattern
  • Constructor pattern
  • Prototype pattern
  • Dynamic prototype pattern

With the factory pattern, we create a factory that creates specified objects and returns their reference. Every time we call the factory we get a new instance. While The dynamic prototype pattern is a hybrid of the constructor pattern and the prototype pattern.

You will get code examples for each pattern. Short and sweet.

[Read More]

Deep learning with Electronic Health Record (EHR) systems

Categories

Tags data-and-analytics ai-and-machine-learning

Goku Mohandas wrote this comprehensive look at recent machine learning advancements in health. There exists source of data, beyond imaging studies, that can change the way we approach health: the electronic health record (EHR).

EHR systems can have data from a variety of different sources including billing data, patient demographics, medical history, lab results, sensor data, prescriptions, clinical notes, medical images, etc. Hospitals adopt EHR systems to store data for every patient encounter, mainly for billing and insurance-related administrative purposes, but we can leverage these records to capture trends and draw conclusions.

The article has these sections:

  • Data in EHR systems
  • Application themes
  • Representation learning
  • Information extraction
  • Clinical predictions
  • Emerging themes
    • Relationship extraction
    • Generative sampling
    • Multitask learning
  • Industry applications
  • Data sources
  • Research papers

Excellent source of information for anybody interested in AI in health industry. Plenty of resources and articles to further enhance your studies. Great!

[Read More]

Add authentication and authorization to Next.js 8 serverless apps using JWT and GraphQL

Categories

Tags backend-development frontend-and-mobile

An article describing how to deploy a Node.js Express JWT service for authenticating requests to Hasura GraphQL Engine. Written by Praveen Durairaj.

Hasura is an open-source engine that gives you realtime GraphQL APIs on new or existing Postgres databases, with built-in support for stitching custom GraphQL APIs and triggering webhooks on database changes.

The author relies on Next.js 8 for building the sample serverless react app, Apollo client for GraphQL querying, Node.js server for JWT authentication, Hasura GraphQL Engine for GraphQL APIs with permissions.

The author describes:

  • Tech stack
  • Deploy Hasura
  • How to run JWT server
  • Configuration of JWT with Hasura
  • Authenticated Query
  • Authorization using JWT
  • Deploying using now.sh

The author also has put together a boilerplate so that you can get started quickly! It is available on GitHub. Good read!

[Read More]

How to setup a free Beam node with Google Cloud Computing

Categories

Tags cloud-and-infrastructure business-and-emerging-tech

Wilke Trei wrote a piece about running an own node of the Beam MW network. An always-online own node allows you to connect to your wallets on all your devices to this trusted node.

Thanks to Google Cloud’s Always Free program and the low resource usage of the Mimblewimble protocol behind Beam, it is possible to create an instance on Google Cloud Compute that runs a full Beam node, 24/7, without it costing you anything. This article will guide you to do your own node setup.

The article has these sections:

  • How to create your Google Cloud Compute node
  • How to access the VM and install the node
  • How to configure the node
  • Firewall and network setup
  • Creating an always online wallet

Setting up an own free Beam node is rather easy and definitely worth the effort. But when your node is running please always monitor your cloud account from time to time to make sure that the node does not exceed the free resources. Great article for anybody into crypto currencies!

[Read More]

Build a tree-shaking utility in JavaScript

Categories

Tags frontend-and-mobile software-engineering

A guide with clear instructions how to build your own “dead code” remover in JavaScript. By Chidume Nnamdi.

Tree-shaking is one of many optimization techniques we have. It entails removing code that is never used. In this post, we will demonstrate, with a simple JavaScript code, how to build your own tree-shaking utility.

Like literally shaking a tree, we do it to shake off dead leaves and ripe fruits on the tree, so unripe or budding leaves will have full nutrients all for them from the tree without sharing it with the ripe fruits.

The article deals with:

  • Tree-shaking explanation
  • The advantages of Tree-Shaking
  • Guide how to build one
  • Let’s shake some code

Tree-shaking is a powerful concept, most popular web tools do implement tree-shaking. Tools like rollup, webpack etc. Yes, our example here is simple but it shows at a basic level what all those complex algorithms from top tools actually do.

And you will get loads of code example to go with this guide. Great read!

[Read More]

Profile a React app for performance

Categories

Tags frontend-and-mobile

Kent C. Dodds wrote this piece about how to use the React DevTools and React’s profiling build to properly profile a production app.

The React DevTools is an amazing piece of software and is available as a browser extension for Chrome, Firefox, and is capable of being wired up to work with React app’s anywhere.

You will then find following section in the article:

  • Install the Extension
  • Start a profiling session
  • Explore the profiling data
  • Pitfall: measuring development mode
  • Build and measure the production app
  • Update the webpack config for production-profiling
  • Profile the production-profiling build
  • Disable function name mangling
  • Pitfall: Profiling with a fast computer

… and much more. Plenty of screen grabs for better understanding and some example code, too. Most applications are developed on a device that’s way more powerful than most people using the app. Good to remember: there’s no substitute for trying your app on the devices that users will be using. Excellent read!

[Read More]