teleren/devto huggingface dataset:
Awesome Starting Eleven Skillset for your resume
Tags: react, tutorial, career, design
Published: 2019-12-19 12:28:18

__Football fans gather here__
So you want to update your resume, make it stand out and look really nice. Well so do I, trying to figure out how to achieve this, I came up with making my skill set in the formation of a starting eleven - football being my favorite sport (sorry American if you can't relate)

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/1o7apgls0xpo4d14qlor.png)

[Click here to check it out live](https://vvilliam5.github.io/)
We can click on a disabled Angular Material button on Chrome 78/79?
Tags: angular, help, chrome
Published: 2019-12-19 12:27:38

I've asked this on SO: https://stackoverflow.com/questions/59409353/we-can-click-on-a-disabled-button-on-chrome-78-79

But wanted to share it here in case anybody has had this issue before.

**Post**:
> We have an administration dashboard made with Angular 8, one of our testers recently reported that he could click on disabled buttons... which is really weird.

> I thought it might be some extension messing up the page or something, but it was not the case. 

> He is in the second to last version of **Chrome `v78.x`**.
He uses **MacOS `10.13.6`**. I've tested with the same versions as him, with no result.

> Does anybody have an idea on what could be causing this?


> **EDIT:** I've also searched quite a bit, with no luck!  
Maybe it's worth saying the button is a **Angular Material** button.
3.6 Exercise for you
Tags: python, webdev, beginners
Published: 2019-12-19 12:23:58

**Now its time to first exercise.**

**Q1.** Ask user to input 5 numbers and you have to print the average of these five number. take all the input in one line.

**Q2.** You have few email id's :'abc@gmail.com'  , ram@yahoo.com' , 'dev@gmail.com' , '123@gmail.com'
you have to print a list for each email id which contain two value one is values befor @ and one which is after @.

**Q3.**  Take two number as an input (in one line) and print their sum,difference and multiplication value as an output.


**Note :**  *You can post your answer in the comment box. answer of these question covered in the next post.*

Thank you
Keep calm - let it crash
Published: 2019-12-19 12:18:55

## A Story about Erlang's Error Handling

The way I used to think about errors and handled exceptions in my software changed significantly some weeks after I started picking up Erlang. If you are coming from a language like Java or C you are used to think about all the possible ways the software might fail and handle that failure to prevent crashes in advance. The following text is for you. 

Writing software in Erlang I will concern myself with **preventing** failure. But I will think about is the aftermath of crashes and failures. This post is meant to be an introduction to this way of thinking.

Writing Software defensively means to think hard about what could go wrong and what should happen instead. Defensive code tends to be littered with checks for arguments and types, with try-catch-finally-frames and log messages.

And this is only for software running in one thread. It multiplies the second you add concurrency to you architecture. In most languages working with multiple processes is painful and error-prone. That leads to developers shying away from code that handles more than one process. If that process dies from an unhandled error, though, the whole program crashes and leaves the user out in the rain.

So a good developer will test and check and prove that his software works in all possible cases (that one can think of). The result is code that is full of error checking code that is convoluted with the business logic.

In Erlang I just **let it crash**. Simple as that. It is more or less the opposite of defensive programming. Since processes are cheap and in Erlang processes will often be used like objects in other languages I will let the process crash and die. The software that solves the problem will only care about problem-solving. Writing the part the developer will assume that all input will be faultless and failure will not happen.

> "Death does not concern us, because as long as we exist, death is not here. And when it does come, we no longer exist." - Epikur

So on one hand I have code that is completely free of error checking or failure preventing logic. And this code consists of a lot of processes that don't concern themselfs (or even know) of the health of their surroundings.

I will then set up monitoring processes that will not contain business logic but will only monitor the health of other processes. If a process hangs, crashes or dies the monitor observes that and will know what to do with the situation; e.g. it might start another process replacing the crashed one or clean up some data.

This monitoring works across machine boundaries since creating fault tolerant systems will on a single machine.

That is the second part of an Erlang system. Next to the problem-solving business logic the failure handling and error-correcting code often is generic so it can be reused in future applications.

In my opinion, this is a nice separation of concerns. Writing code that solves the problem and separating it from code that fixes failures.
Desenvolvedores: Como as leis de proteção de dados (LGPD e GDPR) afetam o seu trabalho
Tags: lgdp, gdpr, privacy, productivity
Published: 2019-12-19 11:37:01

Regulamentos de proteção de dados como LGPD e GDRP exigem que sejamos mais atentos com sites e serviços online. É preciso mais transparência na forma como dados são coletados e armazenados, assim como uma justificativa plausível para terem sido armazenados em primeiro lugar.

Muitas organizações serão afetadas com as novas medidas que visam a privacidade e proteção de dados, em especial os pessoais. Porém há uma figura em particular que tem o trabalho diretamente afetado a partir dessas leis: o desenvolvedor. Seu papel é essencial no processo de adequação das empresas as novas leis.

O GDPR está em vigor na UE desde maio de 2018 e já tem influenciado muitos desenvolvedores. A LGPD entrará em vigor apenas na metade do ano que vem. Apesar de suas divergências, como expliquei em [meu artigo anterior](https://medium.com/@i9dvdr/sem-delongas-o-que-voc%C3%AA-precisa-saber-da-lgpd-est%C3%A1-aqui-7ee7fef22be6), ambas possuem propósitos muito semelhantes e como a LGDP foi inspirada no regulamento europeu, vou usá-la como parâmetro no artigo a seguir para que você desenvolvedor tenha mais conhecimentos sobre o que você e esperar quando a LGDP entrar em vigor.

[Leia o artigo completo no meu medium](https://medium.com/@i9dvdr/desenvolvedores-como-as-leis-de-prote%C3%A7%C3%A3o-de-dados-lgpd-e-gdpr-afetam-o-seu-trabalho-ca816e182ca4)!
For the 1024 time – DateTime has no format!
Tags: csharp, sql, database, datetime
Published: 2019-12-19 11:36:37

(This is a shortened version of [my most recent blog post](https://zoharpeled.wordpress.com/2019/12/19/for-the-1024-time-datetime-has-no-format/))

This is probably one of the most frequent questions I see on stackoverflow:
How to change the date/datetime/time format.
This question comes all the time in the tags I’m following (c#, SQL Server, SQL etc’) and I’ll bet it comes frequently in any other tag as well.

I want to be as clear as I can about this: **Date and time values have no concept of “format”.** They are binary values, usually representing the number of time units since a specific [epoch](https://en.wikipedia.org/wiki/Epoch).

In C#, A DateTime value is the number of ticks (= 100 nanosecond) since Midnight, January 1st 0001 A.D in the Gregorian calendar, .

In Sql Server, different date and time data types are stored differently - but they are still basically stored as the integer value of a time unit since an epoch (datetime use 4 bytes for days since January 1st 1900 and 4 more bytes for the number of ticks (= 1/300 second) since Midnight - while DateTime2 has a far more sophisticated storage format to allow far grater accuracy and range) - but they are all basically working on the same principle - Store the number of units since an epoch.

Neither of these storage systems has the capability or need to store the display format of a DateTime value, and I’m guessing that in other technologies datetime values are probably stored in a similar manner.

Therefore, the concept of “format” is only relevant to date and time values when they are being displayed to us humans – as strings.
Annotating Image Datasets with Amazon SageMaker Ground Truth
Tags: aws, machinelearning
Published: 2019-12-19 11:47:36

---
title: Annotating Image Datasets with Amazon SageMaker Ground Truth
published: true
date: 2019-12-19 11:16:17 UTC
tags: aws,machinelearning
canonical_url: https://medium.com/@julsimon/annotating-image-datasets-with-amazon-sagemaker-ground-truth-5bb7644cac89
---

![](https://cdn-images-1.medium.com/max/1024/1*58AB-9d7Kz8uNYCy6NrE2w.png)

Launched at AWS re:Invent 2018, [Amazon SageMaker Ground Truth](https://aws.amazon.com/sagemaker/groundtruth/) helps you build highly accurate training datasets for machine learning quickly. It provides built-in workflows for text and image datasets, and you can also define custom workflows.

[Amazon SageMaker Ground Truth - Build Highly Accurate Datasets and Reduce Labeling Costs by up to 70% | Amazon Web Services](https://aws.amazon.com/blogs/aws/amazon-sagemaker-ground-truth-build-highly-accurate-datasets-and-reduce-labeling-costs-by-up-to-70/)

We just announced a cool new tool for automatic segmentation. I took this opportunity to record a 4-part end to end demo showing how to annotate images.

Happy to answer questions here or on [Twitter](https://twitter.com/julsimon).

{% youtube oEcH8amMcT8 %}

{% youtube mVA19zjXKGw %}

{% youtube z1g6m3AqNYM %}

{% youtube cfq4-NLWTt4 %}
A quick look at Amazon Textract
Tags: aws, machinelearning, tutorial
Published: 2019-12-19 11:47:24

---
title: A quick look at Amazon Textract
published: true
date: 2019-12-19 11:03:11 UTC
tags: aws,machinelearning,tutorial
canonical_url: https://medium.com/@julsimon/a-quick-look-at-amazon-textract-5d48a2fd5b34
---

![](https://cdn-images-1.medium.com/max/1024/1*xaWUz0Z2RlWzoPUBXk_huw.png)

[Amazon Textract](https://aws.amazon.com/textract) automatically extracts text and data from scanned documents, and goes beyond simple optical character recognition (OCR) to also identify the contents of fields and information in tables, without templates, configuration, or machine learning experience required.

[Automatically extract text and structured data from documents with Amazon Textract | Amazon Web Services](https://aws.amazon.com/blogs/machine-learning/automatically-extract-text-and-structured-data-from-documents-with-amazon-textract/)

We just [announced](https://aws.amazon.com/blogs/machine-learning/amazon-textract-becomes-pci-dss-certified-and-retrieves-even-more-data-from-tables-and-forms/) a new round of quality improvements (as well as PCI-DSS compliance). Of course, I had to test for myself :)

Happy to answer questions here or on [Twitter](https://twitter.com/julsimon).

{% youtube 8kobcRynTTA %}
Django News - Issue 2
Tags: django, python, security, newsletter
Published: 2019-12-19 14:45:32

---
title: Django News - Issue 2
published: true
date: 2019-12-19 11:00:00 UTC
tags: django, python, security, newsletter
canonical_url: https://django-news.com/issues/2
cover_image: https://thepracticaldev.s3.amazonaws.com/i/taq2zkql8qpetse2llcf.jpg
---

### News

#### [Django security releases issued: 3.0.1, 2.2.9, and 1.11.27](https://cur.at/Vh7SPsG?m=rss)

This is an especially important security release that should be implemented ASAP. It fixes potential account hijacking via the password reset form.

[djangoproject.com](https://cur.at/Vh7SPsG?m=rss)

#### [2020 Django Software Foundation Board Election Results](https://cur.at/cpGiBVv?m=rss)

The DSF Board handles legal/financial matters for Django. This year there are 7 members.

[djangoproject.com](https://cur.at/cpGiBVv?m=rss)

#### [2019 Malcolm Tredinnick Memorial Prize awarded to Jeff Triplett](https://cur.at/LwJWYqD?m=rss)

The Board of the Django Software Foundation is pleased to announce that the 2019 [Malcolm Tredinnick Memorial Prize](https://cur.at/fRWmjdK?m=rss) has been awarded to [Jeff Triplett](https://cur.at/NtkbZxG?m=rss) ([@webology](https://cur.at/2Pt77dt?m=rss)).

[djangoproject.com](https://cur.at/LwJWYqD?m=rss)

### Articles

#### [How Django Works Behind the Scenes](https://cur.at/fUaKyu6?m=rss)

This article discusses how Django is structured: the non-profit "in charge" of it legally/financially and the core team of volunteer developers who manage the codebase.

[wsvincent.com](https://cur.at/fUaKyu6?m=rss)

### Projects

#### [Is Pipenv dead?](https://cur.at/xngqJMw?m=rss)

Pipenv is a popular Python packaging manager but dormant as of late...see also [this great PyCon UK talk from Aaron Bassett](https://cur.at/O8xOc42?m=rss) on Python packaging in general for further context.

[github.com](https://cur.at/xngqJMw?m=rss)

#### [Looking for a pipenv alternative? Announcing Poetry 1.0.0](https://cur.at/jkOr5qw?m=rss)

Poetry manages Python environments, packaging, and dependency management.

[python-poetry.org](https://cur.at/jkOr5qw?m=rss)

### Events

#### [Announcing DjangoCongress 2020](https://cur.at/oaWPQ6?m=rss)

DjangoCongress 2020 is happening in June 2020 in Nagano City, Japan.

[djangocongress.jp](https://cur.at/oaWPQ6?m=rss)

#### [Ewa Jodlowska on Twitter: "There are less than 200 early bird tickets remaining for #pycon2020. If you plan on attending, why not get discounted tickets!? After we sell out, prices will go up to $125 for students, $400 for hobbyists, and $700 for corporate tickets."](https://cur.at/7VvPYgW?m=rss)

Last call on PyCon 2020 early bird tickets.

[twitter.com](https://cur.at/7VvPYgW?m=rss)

* * *

This RSS feed is published on [https://django-news.com/](https://django-news.com/). You can also subscribe [via email](https://django-news.com/#cta-newsletter).


Thanks to [@Sixteenmilesout for making this photo available freely on @unsplash ](https://unsplash.com/photos/Rw3KOyU94eo?utm_source=dev.to&utm_medium=referral&utm_content=photos-page-share)🎁
rav1e 0.2.0 - Winter Solstice
Tags: rav1e, rust, av1
Published: 2019-12-19 10:58:06

---
title: rav1e 0.2.0 - Winter Solstice
published: true
description: Release notes
tags: rav1e, rust, av1
---

Yesterday we made the second release of [rav1e](https://github.com/xiph/rav1e).

## ~~Winter Solstice~~ ~~Saturnalia~~ Yuletide

The second [official release](https://github.com/xiph/rav1e/releases/tag/v0.2.0) of [rav1e](https://github.com/xiph/rav1e/) was focused mainly on speed. Later I'll write down what we used and what, in my opinion, are the best practices when you have to optimize a codebase like this one.

## What's new

Since we focused mainly on speed, there aren't many user-facing changes.

### New in the command line

- `--benchmark`: Since I started to use [gnu time](https://www.gnu.org/software/time/) to get some coarse information, I decided to add a [getrusage()](https://docs.rs/libc/0.2.66/libc/fn.getrusage.html) report directly in the cli. Currently it is unix-like only, if you like Windows a pull request to add the same feature is really welcome!
- `advanced --save-config` / `advanced --load-config`: The options depend on building with `--features=serialize`, they let you dump and restore the full encoder configuration, it is quite useful if you want to tweak settings.

### Building features

- `tracing`: Enables [hawktracer](https://github.com/AlexEne/rust_hawktracer) probes.
- `serialize`: Enables serde support, it is optional mainly because it would nearly double the build time. Suggestions on something smaller are welcome.

### More performance

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/3oh7fq03k0qtl6kxix2w.png)

Speed was the focus on this release and we tried our best not to increase the resident set, nor the overall memory usage.

 ![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/1j7udx7w2eo9a5q83y0x.png)

The memory fragmentation that was quite significant in 0.1.0

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/3n4nd728u1vedfujbnsi.png)

Had been addressed fairly well in 0.2.0 and probably we'll return to it in 0.4.0:

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/u28k35aeok7p2qzg335t.png)

We are still not using as much cpu and memory as possible and there are still large inefficiencies to address in the future, some of it will be solved by the [rayon](https://github.com/rayon-rs/rayon/) developers, some are on us:

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/rjk8yfsk5vjhdb6tg1s4.png)

In the future the lookahead computation we have in `send_frame` will happen in a separate thread and it will not stall the rest of the encoding process this much.

## Future plans

The focus for `0.2.0` was speed and we got between 40% and 70% faster in about 40 days.

The focus for `0.3.0` will be quality, striving to keep the encoding speed as fast as it is if not faster, we'll see how it will go next year.

Thanks for reading!
How to comma-separate your number in JavaScript
Tags: javascript, webdev, functional
Published: 2019-12-19 10:56:15

I created a simple function that does the trick with a regex expression. 

The function receives either a string or a number and returns the formatted number with correct commas:

```js
formatNumber(number) {
    number = number.toString()
    return number.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")
}
```

I wrote this function in [TypeScript and added tests](https://bit.dev/joshk/jotils/format-number).

I've exported it to [bit.dev](https://bit.dev/) with a live demo and docs.
 
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/jengffh1yxj9l86ehmql.png)
Also, it can be easily consumed with NPM/Yarn/Bit. 
https://bit.dev/joshk/jotils/format-number

If you have a better way to write this function, please write a comment.
DAOBet Token Bridge Launch Underway
Tags: crypto, cryptocurrency, blockchain, gambling
Published: 2019-12-19 10:47:09

Join the discussion in DAOBet Telegram groups:

- [International community [EN]](https://t.me/daobet)
- [Validators group chat](https://t.me/daobet_validators)
- [Game developers group chat](https://t.me/daobet_developers)

Join our social media to keep up to date with all the announcements: [Twitter](https://twitter.com/daobet_org/), [Facebook](https://facebook.com/DAObet.org/), and [LinkedIn](https://linkedin.com/company/daobet/).


The DAOBet platform is delighted to announce that the block producers launched a highly anticipated BET token bridge, also known as the token swap. In addition, we would also like to clarify some of the questions related to the token bridge and convey the need for it.

The most frequently asked questions about the DAOBet blockchain’s operation in recent weeks were related to the token bridge – namely when the swap is to take place and why it is needed in the first place. To make it clearer and to dissolve any smidgen of doubt about the necessity for the token bridge, it is necessary to understand the underlying technical requirements that will allow the BET token to fulfill its full potential.

At its core, the token bridge is an instrument for the token swap that takes place through the DAOWallet. Considering the fact that DAOBet has made the transition from the Ethereum blockchain to a native solution with in-built improvements tailored for catering to the requirements of the iGaming industry, the need for the BET token to be compatible with the new infrastructure is apparent. The swap will allow holders of the BET token to take advantage of the technical solutions of the new DAOBet blockchain, such as one-second finality and certified PRNG.

Once the swap is completed, the new token will be the main instrument for settlements on the DAOBet blockchain and the old token will no longer be supported in some time. The new tokens will be automatically transferred to the DAOWallet accounts of the holders once they pass the swap procedure, which allows direct transitioning of ERC-20 tokens to the DAOBet native token.

If anyone has not yet passed the swap procedure, there is a comprehensive instruction that can be found [here](https://daobet.org/static/docs/wallet_instruction_desktop.pdf). All those who have passed the swap procedure should have already received their new tokens on their DAOWallet accounts. In case the tokens have not been transferred, please refer to our [FAQ](https://daobet.org/blog/daowallet-faq/).

In case of any questions, please write to our support team at support@daowallet.com or in our [Telegram chat](https://t.me/daobet).


Join the discussion in DAOBet Telegram groups:

- [International community [EN]](https://t.me/daobet)
- [Validators group chat](https://t.me/daobet_validators)
- [Game developers group chat](https://t.me/daobet_developers)

Join our social media to keep up to date with all the announcements: [Twitter](https://twitter.com/daobet_org/), [Facebook](https://facebook.com/DAObet.org/), and [LinkedIn](https://linkedin.com/company/daobet/).
What is Cloud Native?
Tags: cloud, devops, cicd, container
Published: 2019-12-19 09:24:01

Cloud Native is an approach to design, build and run applications using Continuous Integration, Container Engines and Cloud Orchestrators, to reduce the cost and risk and increase quality, scalability and speed of application. 

Why we need Cloud Native?
--------------------------
1> Modularity- To create modular products. This helps in reducing delivery and maintanence costs. This is achieved by Micro services.

2> Observability- This helps in easy tracking of the applications and services. So, if something goes wrong with the account services module, only that will get impacted.

3> Deployability- Quick and easy to deploy in small chunks.

4> Testability- Easy to test an application and services.

5> Disposability- Easy to kill part of application, as it does not depend much on other modules or environments.

6> Replaceability- Can often create and move to other deployments.


What is the difference between Cloud Native and Traditional Approaches?
-----------------------------------------------------------------------
1> Abstraction- Cloud native provides abstraction whereas, traditional approach is Operating System dependent.

2> Predictable- Time taken to deploy an application in Cloud Native is predictable. Whereas, in traditional approach is unpredictable.

3> Right Size Capacity- Easily scalable application depending on need, traditional approach is most of the time over sized.

4> Continuous Delivery- Cloud native enforces Continuous Delivery.

5> Automated Scaling in Cloud Native, whereas Manual scaling in Traditional approach.

6> Recovery- In case of any failures cloud native is rapidly recoverable than traditional.


How to design Cloud Native Application?
---------------------------------------
There are certain design principles that should be followed to have a Cloud native Application, some of them are:
1> Micro-services- Develop application in chunks.

2> API Based design- So that it will be easy to deploy and test the services.

3> Safe Service Infrastructure- Infrastructure should be auto healing and auto load balancing.

4> Anti fragile- Robust exception handling in application.

Hope this post was able to give some basic idea of Cloud Native. Thanks for reading.