Weekly #16

@Date : 2019-12-22 16:23:00

@Author : Lewis Tian (taseikyo@gmail.com)

@Link : github.com/taseikyo

@Range : 2019-12-22 - 2019-12-28

Weekly #16

*Photo by Gemma Chua-Tran on Unsplash

Table of Contents

review

  1. What 5 new innovations will open source yield in the 2020s?

In this blog, the author talks about some of the trends that have shaped the past decade as we look forward to what 2020 — and the next decade — has in store for us.

This article introduces the advantages of unikernel's modern cloud business compared to Linux.

Unikernel is dedicated to specific situations and can run on a hypervisor, so scaling is easy. In contrast, to scale up a traditional cloud (based on linux), more hardware and resources are required.

tip

  1. What does yes $(yes yes) do?

what is the yes command?

yes is useful command to send an affirmative (or negative; e.g. yes n) response to any command that would otherwise request one, thereby causing the command to run non-interactively. (detail)

Now that you have konwn the command, so you can try yes $(yes yes)! XD

  1. [Python] Tenacity - Exception Retry

Tenacity implements an elegant retry function.

You don't need to modify your source code, just add a line of decorators to achieve the following features:

  • retry times
  • retry interval (fixed or variable)
  • catch specific exception

  • neofetch

A command-line system information tool.

  1. [C++] print variable type
#include <iostream>
#include <typeinfo>

int main(int argc, char* argv[]) {
    int a;
    float b;

    std::cout << "type of a: " << type_name<decltype(a)>() << std::endl;
    std::cout << "type of b: " << typeid(b).name() << std::endl;
    std::cout << "type of 4.2: " << typeid(4.2).name() << std::endl;
    std::cout << "type of 42L: " << typeid(42L).name() << std::endl;

    return 0;
}

// output
type of a: i
type of b: f
type of 4.2: d
type of 42L: l

share

This article tells us how to compile and install software and how to generate RPM packages.

results matching ""

    No results matching ""