Python 3.7: Introducing Data Classes

Python 3.7 is set to be released this summer, let’s have a sneak peek at some of the new features! If you’d like to play along at home with PyCharm, make sure you get PyCharm 2018.1 (or later if you’re reading this from the future).
There are many new things in Python 3.7: various character set improvements, postponed evaluation of annotations, and more. One of the most exciting new features is support for the dataclass decorator.

Most Python developers will have written many classes which looks like:

def __init__(self, var_a, var_b):

Data classes help you by automatically generating dunder methods for simple cases. For example, a __init__ which accepted those arguments and assigned each to self. The small example before could be rewritten like:

A key difference is that type hints are actually required for data classes. If you’ve never used a type hint before: they allow you to mark what type a certain


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/wSTZhqPpCRo/

Original article

Upgradeable smart contracts in Ethereum

Imagine a world where a software is maintaining millions of dollars worth of money, but there is an exploit which allows the hacker to take all that money away. Now imagine you can’t do much about it because you can’t update your software, so all you can do is wait and watch or pull the plug of the whole server.

This is a world we are living in with the software/contracts being developed for the Ethereum blockchain.

Immutability of blockchain has its advantages in making sure that things are tamper proof and the whole history of change can be seen publicly and audited. When it comes to smart contracts, immutability of the contract code has its disadvantages which makes it hard to update in case of bugs. The DAO and the Parity Wallet exploit are a good example of why smart contracts should have the capability to upgrade.

There is no de facto


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/41PHKzlSldc/

Original article

Hyper 2 (terminal)

The New Hyper 2.0 and the Hyper StoreWe are pleased to announce Hyper 2, featuring:A new high-performance Canvas based rendering engineAn online catalog of plugins and themesThe hyper CLI to install plugins and themes with one commandImproved keymaps supportImproved support for hyperlinksHyper 2.0 has an upgraded rendering engine: xterm.js 3.0. This marks the transition from the DOM to a 2D Canvas.Previously Hyper was powered by hterm, a sub-project of Chromium. Both hterm and xterm 2.0 used the DOM as the target rendering surface, which introduced some important bottlenecks.Most notably, Hyper would have trouble keeping up with lots of output. Thanks to the great improvements made to xterm (as part of the VS Code project, in which it’s also included), this is no longer an issue:Can Hyper now seamlessly handle lots of streaming output? `yes`!And for a less scientific test:Using the `hyper-broadcast` plugin, we synchronize `parrot.live`


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/Gp34coMi9Y8/hyper2

Original article

dutree – A CLI Tool to Analyze Disk Usage in Coloured Output

dutree is a free open-source, fast command-line tool for analyzing disk usage, written in Rust programming language. It is developed from durep (disk usage reporter) and tree (list directory content in tree-like format) command…
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]


Original URL: http://feedproxy.google.com/~r/tecmint/~3/VKhTNf7EtXA/

Original article

Mailtrain.org, self-hosted open-source newsletter app like Mailchimp

README.md

Mailtrain is a self hosted newsletter application built on Node.js (v7+) and MySQL (v5.5+ or MariaDB).

Features
Subscriber list management
List segmentation
Custom fields
Email templates
Large CSV list import files
Subscribe to Mailtrain Newsletter here (uses Mailtrain obviously)
Hardware Requirements
Quick Start – Deploy with Docker
Requirements:
Steps:
Depending on how you have configured your system and Docker you may need to prepend the commands below with sudo.
Download Mailtrain files using git: git clone git://github.com/Mailtrain-org/mailtrain.git (or download zipped repo) and open Mailtrain folder cd mailtrain
Copy the file docker-compose.override.yml.tmpl to docker-compose.override.yml and modify it if you need to.
Bring up the stack with: docker-compose up -d
Start: docker-compose start
Open http://localhost:3000/ (change the host name localhost to the name of the host where you are deploying the system).
Authenticate as user admin with password test
Navigate to http://localhost:3000/settings and update service configuration.
Navigate to http://localhost:3000/users/account and update user information and password.
Quick Start – Manual Install (any OS that supports Node.js)
Requirements:
Mailtrain requires at least Node.js


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/fTNJAevz7wc/mailtrain

Original article

How to Manage Docker Containers with Rancher on Ubuntu

Rancher is an open source container management platform. In this tutorial, I will show you how to install and configure Rancher on Ubuntu 16.04 LTS. We will install Rancher on an Ubuntu server, enable local authentication, add the rancher host, and then try to run single container application from Rancher Dashboard.


Original URL: https://www.howtoforge.com/tutorial/ubuntu-rancher-docker-container-manager/

Original article

Voicera scoops up AI note-taking app Wrappup

Voicera wants to be the company that eliminates the need for human note taking once and for all. Their vision is an AI-driven voice recognition system that not only takes notes, but identifies speakers and summarizes key points and action items. Today, the company announced it had acquired a similar startup, Wrappup, an AI-fueled note taking app that fits in nicely with that vision.
The Wrappup team is joining Voicera immediately. Terms were not disclosed.
Voicera CEO Omar Tawakol certainly saw the fit. “Both companies approached the problem with meetings in synergistic ways. Wrappup’s mobile-first, in-person meeting product complements and extends Voicera’s initial focus on conference calls,” he said in a statement.
Wrappup’s special strength it turns out it is identifying the salient points in a meeting in a mobile context. To that end, the company also announced the launch of a new mobile app. Chances are this combining of these two companies


Original URL: http://feedproxy.google.com/~r/Techcrunch/~3/EQl5WB0eRLw/

Original article

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: