teleren/devto huggingface dataset:
Replace your new tab with a mindful productive app.
Tags: productivity, programming, devjournal, showdev
Published: 2021-01-22 14:14:50

Hey everyone, I built Tabwave, It's a mindful productive app to replace your browser's default new tab.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ez4pi60fqlmxz1cjpt2m.png)

🚀 Add shortcuts to your favorite sites.
🎯 Get more done with daily tasks and goals.
📑 Brainstorm ideas on Sticky notes.
⏳ Increase your productivity with a Pomodoro clock.
🙋‍♂️ Get random activity ideas with a single click.
🌗 Dark mode toggle for a better experience.

and many more.
The extension is available for both chrome as well as Firefox browser.

> Check out https://tabwave.vercel.app

Try it now and let me know your thoughts. I would love to hear your feedback.
[Vlog] A Developer's Day at Home [🔇No Talking] #ASMR
Tags: youtube, video, developer, frontend
Published: 2021-01-22 13:47:57

⬇️In this video:
🍸Many people have the misconception that being a developer (or a freelancer) means being at the beach with a laptop and a cocktail...

🙅Well...things are not always what you see in movies or on social media.
Being a developer means you spent about 8h in front of your monitor.
Maybe you are coding, maybe you're researching, maybe you have meetings...
🤦‍♀️Maybe you're lucky and you work less than 8h, or less than 5days.
Good for you. But most people are not like that.
🙆Of course, don't get me wrong, I love my job. I wouldn't change it.
I'm doing this video just to show "it's not as fancy as you may think"

Have a beautiful and productive week.

**********************************************************
👋Hello, I' m Eleftheria, an app developer, master student, freelancer, public speaker, and chocolate lover.

**************************************
🍪Would you care for buying me a coffee? You can do it here   
paypal.me/eleftheriabatsou

but If you can't that's ok too!

**************************************
🤓If you have any question, don't hesitate to ask, 
I'll do my best to answer it!

**************************************
🎉Like, share and subscribe are always welcome

Let's stay in touch: 
twitter -- https://twitter.com/BatsouElef
instagram -- https://www.instagram.com/elef_in_tech
Semantic Versioning
Tags: versioning
Published: 2021-01-22 13:54:21

Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards compatible manner, and
PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

https://semver.org
iPhone connects and disconnects from Mac
Published: 2021-01-22 13:51:30

I am a big fan of **Macbook Pro 15 inch (late 2015)**.
Reasons are simple:
**Full ports**
**Physical function keys**
I own three of it.

But they all drive me crazy on the same error:
**iPhone keeps charging and discharging when plugged into it.**

Whichever cord, even a brand new lightning cord.
Whichever macOS version, 10.12 - 10.15.
Whichever iPhone, iPhone 6 - iPhone XS.
Whichever iOS version, 9.0 - 14.0.

I recognised it for so long, don't care it too much, until just now when I was compiling a flutter app to my iPhone for testing.

Googled, found so many heart-broken big fans, also found a good solution.

According to [this thread in Apple Communities](https://discussions.apple.com/thread/8276949)

#### Connect your iphone to your Mac.
#### Go to Activity Monitor --> Search for usbd --> Force quit it.

or 

#### Try terminal :
#### sudo killall -STOP -c usbd

Worked for me.

Also, someone say, 
>You will not believe me, but I noticed that when my phone has more than 60% of the battery charge this problem is not exists anymore ... it's very strange, I checked several times ...

Not in my case.

By the way, Touch Bar is a gimmick, period.


#### Hope this helps!
#### So proud to be a coder!
Data Modeling Tool
Tags: architecture, database
Published: 2021-01-22 13:37:31

Recently, I was looking for tools to quickly come up with an ERD (Entity-Relationship Diagram) for one of the client engagements. I wanted it to be something simple but aesthetically pleasing as it was an early stage of the project. I came across an online tool called <a href="https://dbdiagram.io/home/">dbdiagram.io</a>. This tool helped in coming up with a nice pictorial representation of the data model relatively quickly. 

### Features supported by the tool:

* Primary key representation
* Foreign key representation along with one-to-one, one-to-many, many-to-one relationships
* Support for representing fixed number of values a column can hold through Enum tables
* Support for default values and unique column representation.
* Ability to export created data models into PNG or PDF formats. Also, one can export SQL of the data model for PostgreSQL, SQL Server, and MySQL  (account sign-up required to utilize these features)
* Ability to import SQL to generate data model 

###How does it work?

* Visit dbdiagram.io and come up with a desired data model structure like below. This tool generates data model as soon the entered structure is valid.
```SQL
// Creating tables
Table department as d {
  department_id int [pk, increment] // auto-increment
  department_name varchar [not null, unique]
  created_at datetime [default: `now()`]
}

// Enum for 'employee' table below
Enum employee_status {
  active
  retired
  alumini [note: 'moved on to other career prospects'] // add column note
}

Table employee as e {
  employee_id int [pk, increment] // auto-increment
  employee_name varchar
  department_id int [ref: > d.department_id]
  status employee_status
  created_at datetime [default: `now()`]
}

Table employee_sales as es {
  employee_id int [ref: > e.employee_id] 
  sales_date datetime 
  sales_amount float
  Indexes {
    (employee_id, sales_date) [pk]
  }
 }
```
###Example output is shown below   
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2qcq9v9eskw2hzxxi5qo.png)
BitMaelum - e2e encrypted mail
Tags: crypto, email, privacy, go
Published: 2021-01-22 13:31:37

Hi all,

We want to introduce BitMaelum (https://github.com/bitmaelum): a privacy and security focused mail system written from the ground up. Its goal is to combat many of the pain-points found in the current email landscape: spam, privacy, mail/account ownership, etc. 

Some of the features:
- Complete end-to-end encryption of mail, including meta-data.
- Combatting spam through a proof-of-work type system.
- Ownership of your bitmaelum address.
- Users, not the list owners, manage mailing lists subscriptions.
- Mobile friendly.
- Automation is made possible through events and webhooks.

We have developed a system that we think is ready for our first developer release: our "hello world" release. The system consists of a mail-server, a mail-client, and some supporting tools. The quick start will guide you into creating an account to test the system. We like to invite developers and everyone interested to try out the system, leave feedback, or even help us implement new features and bugfixes.

For more information, please take a look at our website: https://bitmaelum.com, our GitHub account https://github.com/bitmaelum/bitmaelum-suite, or send us an email via info@bitmaelum.com or through bitmaelum: bitmaelum!

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/io9e0unpegzjk951kyl8.png)
Hello Wilmer !!!
Published: 2021-01-22 13:24:05

Una semana estupenda !!!😎

Eso llevo en mi nuevo trabajo,  cuyo rol es "Software Developer Jr", me tiene fascinado, motivado y retado. 

Aquí contaré (muy breve) como ha sido el camino. 👇 

Tengo un pregrado como "Matemático puro", pero por diferentes razones solo tenía empleo como docente, algo que no me llenó en su momento porque no habían "nuevos retos" desde mi perspectiva.   Duré aprox, 9 años entre docencia y terminar la carrera. 🙄

Decidí independizarme 3 años atrás (2018), con deudas y mi hija de un año aprox. No fue nada fácil, de hecho nadie me apoyo, NADIE. Decidí dar clases personalizadas, montar una web, y hacer mucha publicidad. 🛠️

Para ello, debía aprender algo de Desarrollo Web, Marketing y diseño. Conocí a @platzi y como un loco empecé a hacer de todo, mientras que la gente pensaba que mi esposa me mantenía. 😅 (Yo me seguía endeudando para suplir mis responsabilidades).

El año pasado, me llega una invitación al programa #PlatziMaster de @platzi, cuyo objetivo era profundizar en el desarrollo de software y como profesional. Aunque no fue lo deseado en mis primeros meses, todo cambió después. Me llené de confianza, aspiraciones y conseguí mi primer empleo.

La verdad no me fue para nada bien (hice todo por que eso no pasara) pero me fuí de ahí y mi mundo se derrumbaba, pues pensaba que ya lo había logrado. 
🙉Ya me había enamorado del mundo dev. 


Pero tomé fuerzas, me preparé y nuevamente apliqué a una y otra vacante, hasta que parecía que algo bueno había llegado. Los reyes 🧙‍♂️ llegaron y pummm 2021 con nuevo trabajo, buen sueldo, buen equipo y empresa extranjera. LO LOGRÉ 😱

Pero no ha acabado, debo mejorar, crecer y dar todo de mí para aportar al equipo y ayudar a muchas más personas obtener lo que yo obtuve y obtendré. 

El camino que yo tomé con Platzi, lo puedes tomar con cualquier otra plataforma, depende de tí, pero aunque no esté de acuerdo en muchas cosas con @freddier(CEO de Platzi), tiene razón en que no debemos parar de aprender, confiar en nosotros mismos y que @platzi es una comunidad de CAMPEONES.🚀
whats the best database for electron react
Published: 2021-01-22 13:01:56

I'm a frontend developer with zero background in databases. I want to build an electron app, a retailware for a pharmacy this is a data-heavy application, with multiple tables and relationships, it is going to have tables for drugs, patients, transactions, etc. l want a database that doesn't require a third-party installation like xammp. From what I've been researching please the database has to be easy to compile with electron-react. the database starts from saving locally then synchronizes with another computer on a LAN probably at the start of the day and day end to the sever online. Please help me I want to learn databases from scratch. I've been learning MySQL and I need expert advice I've been reading blogs and everyone is talking of the same thing recommending different databases and libraries I'm knee-deep in confusion right now on where to start I'm completely open to suggestions and also how I can optimize it for performance or even just a guide of where to start.
Daily Developer Jokes - Friday, Jan 22, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-01-22 13:00:26

---
title: "Daily Developer Jokes - Friday, Jan 22, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Friday%2C%20Jan%2022%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12591923cec.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ How do you help JS errors?

___A:___ You `console` them!
 -->
Introdução ao tratamento de erros
Tags: powershell, beginners, tutorial
Published: 2021-01-22 12:57:37

Seguindo com os [tutoriais](https://dev.to/msplatam/trabalhando-com-informacoes-do-sistema-28f3) para iniciantes em Powershell, recomendo a leitura do anterior pois vamos seguir dele, vamos conversar um pouco sobre o tratamento de erros. Existem varias formas de fazer isso, mas como o foco são os principiantes vamos sempre pensar na abordagem com um bom custo beneficio entre a entrega e a curva de aprendizagem. 

Para tratarmos erros, vamos usar a estrutura **Try-Catch**, ela funciona de uma forma bem simples. 
Vamos criar dois blocos, o **TRY** onde colocamos o que queremos fazer e o **CATCH**, onde colocamos a mensagem de erro que queremos mostrar, no caso de algum procedimento descrito no bloco anterior falhar. 

Para exemplificar ele, vamos continuar com o nosso jeito difícil de validar caminhos. A ideia que aplicaremos aqui, é no caso de qualquer problema, retornarmos uma mensagem de erro. 

Traduzindo isso para código, teremos: 
{% gist https://gist.github.com/IGDEXE/a6f4c5cc13e409aca9b70a9283a473c6 %}

Nossa validação de erros está funcionando, como podemos ver nesse retorno quando informei um caminho que não existia: 
![Retorno Catch](https://dev-to-uploads.s3.amazonaws.com/i/xaaspyydadfpni74710h.png)

Mas caso tenha apenas executado nosso script, provavelmente não viu essa mensagem, uma vez que não estamos dando qualquer tratamento a continuidade do script caso tenhamos problemas. 

Existem algumas formas de sairmos disso, mas utilizaremos aqui a mais simples e frustrante possível para o usuário. 
Vamos apenas quebrar o script depois de que mostrarmos o erro. 
Faremos isso por meio do combo **PAUSE + EXIT**, com o primeiro comando vamos pausar a tela para que seja possível ler o que está escrito, e com o segundo iremos fechar o prompt. 

Essa abordagem não é a melhor, mas aproveitaremos esse momento para conhecer esses dois comandos e essa possibilidade, já que em alguns momentos, fara sentido pausar ou apenas encerrar tudo.

Adicionaremos o combo em nosso catch, que terminará dessa forma:
{% gist https://gist.github.com/IGDEXE/d402b38d594689d267975eb9bd9169b4 %}

Como retorno, teremos a mensagem: 
![PAUSE](https://dev-to-uploads.s3.amazonaws.com/i/gey8zx56q3osfsxs5b1t.png)

E assim que apertarmos enter, o terminal será encerrado. 

Temos alguns pontos de atenção sobre o que vimos hoje, o primeiro está relacionado ao idioma da mensagem, ele vai variar conforme a do sistema. O idioma do sistema será o idioma do retorno do erro. 

O outro ponto, é a mensagem de erro em si, que para essa situação acabou não sendo muito clara, informando apenas que não conseguiu localizar algo com o atributo **Diretório**. 

É possível tratar essas mensagens, mas o objetivo aqui não é se aprofundar tanto sobre cada componente, por isso recomendo que pesquise mais sobre como implementar o **Try-Catch** no Powershell.
CodePen - Generative + Customisable SVG Social Images!
Tags: codepen, javascript, svg, webdev
Published: 2021-01-22 12:57:01

I think these could be really handy for startups / blogs with limited design resources. Or really anyone that finds creating social/meta images a drag!

I might even make it into a "full" app some day...

An accompanying tutorial for this pen will be released Monday 25th January 2021 ✨ I'll be posting it on my dev.to profile as always! 

{% codepen https://codepen.io/georgedoescode/pen/PoGLmmX %}
Has blogging changed my career in a positive way?
Tags: blogger, blogging, mentor
Published: 2021-01-22 16:05:34

---
title: Has blogging changed my career in a positive way?
published: true
date: 2021-01-22 12:48:03 UTC
tags: blogger,blogging,Mentor
canonical_url: https://craignicol.wordpress.com/2021/01/22/has-blogging-changed-my-career-in-a-positive-way/
cover_image: https://craignicol.files.wordpress.com/2021/01/wp-1609625210726.jpg?w=1160
series: mentor
---

> As part of my mentoring, I was asked a question about this blog, and I thought the answer was worth repeating publicly.
> 
> The question was:
> 
> “_I am interested in learning whether blogging changed you career in a positive way?_“

It’s been helpful to me, and I know it’s been mentioned in a couple of job interviews, but for me the benefit was more about the discipline of writing and using it to clarify concepts that have been bouncing around in my head. I’m not always the best at writing clearly and cleanly, so blogging has been my way of practicing that.

I guess it’s a matter of what you want out of it. I don’t believe you need a blog to get a better job for example, there’s plenty of ways to that goal.

On another note, I’m not following John Sonmez any more after I saw him bullying others on Twitter. That’s something important to remember if you’re blogging – anything you make public you’ll be judged on, so be the best version of yourself when you express yourself.

Good luck,  
 Craig
Nucleus Burp Extension
Tags: security, extension, vulnerability, opensource
Published: 2021-01-22 12:47:09

This extension allows Burp Suite scans to be pushed to the Nucleus platform.

Nucleus automates vulnerability analysis, prioritization, triage, and reporting to help your organization make better vulnerability decisions and mitigate vulnerabilities much faster than they can today.

[Nucleus Burp Extension](https://kali-linuxtr.net/nucleus-burp-extension)
The new .Net 5 Console Logging registration
Published: 2021-01-22 12:44:01

.Net 5 has changed the way you can set up the console for logging.

You may have received this message on your change to .Net 5:
> `ConsoleLoggerOptions.TimestampFormat` has been deprecated. Please use `ConsoleFormatterOptions.TimestampFormat` instead.

The `builder.UseConsole()` now looks like this under the covers:

```csharp
// Microsoft.Extensions.Logging.ConsoleLoggerExtensions
public static ILoggingBuilder AddConsole(this ILoggingBuilder builder)
{
    builder.AddConfiguration();
    builder.AddConsoleFormatter<JsonConsoleFormatter, JsonConsoleFormatterOptions>();
    builder.AddConsoleFormatter<SystemdConsoleFormatter, ConsoleFormatterOptions>();
    builder.AddConsoleFormatter<SimpleConsoleFormatter, SimpleConsoleFormatterOptions>();
    builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, ConsoleLoggerProvider>());
    LoggerProviderOptions.RegisterProviderOptions<ConsoleLoggerOptions, ConsoleLoggerProvider>(builder.Services);
    return builder;
}
```

So if you are wanting to change formatting, you can replace the `services.AddConsole()` with these extension methods:

```csharp
services.AddLogging(opt =>
{
    // Provided by Microsoft.Extensions.Logging.Console
    opt.AddSimpleConsole(options => options.TimestampFormat = "[HH:mm:ss] ");
    opt.AddJsonConsole(options => { });
    opt.AddSystemdConsole(options => { });
});
```
Como coletar logs do PostgreSQL com o Filebeat
Published: 2021-01-22 12:42:36

## O que é o PostgreSQL?
O PostgreSQL é um Sistema Gerenciador de Bancos de Dados (SGBD) open source.

Para conhecer mais sobre ele, recomendo a leitura do post _Introdução ao PostgreSQL_ do DevMedia nesse [link](https://www.devmedia.com.br/introducao-ao-postgresql/6390).

Aqui no nosso blog, a Renata Azevedo mostra como configurar um cluster de PostgreSQL e você pode ver esse tutorial nesse [link](https://medium.com/sysadminas/configurando-postgresql-como-cluster-master-slave-no-centos-7-2c1bb9714614).

## Utilizando o Filebeat para coletar os logs do PostgreSQL
Ao utilizar o módulo PostgreSQL do Filebeat você consegue coletar e analisar os logs do PostgreSQL.

Para saber mais sobre esse módulo, acesse a documentação aqui nesse [link](https://www.elastic.co/guide/en/beats/filebeat/7.10/filebeat-module-postgresql.html)

## Instalação e configuração do Filebeat

* Instale o Filebeat:

**Windows:** `PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-filebeat.ps1`
**Linux:** `sudo rpm -vi filebeat-7.10.1-x86_64.rpm`

* Acesse o arquivo de configuração do Filebeat:

**Windows:** `C:\Program Files\Filebeat\filebeat.yml`
**Linux:** `/etc/filebeat/filebeat.yml`

Insira nele as informações de conexão com o Elasticsearch e com o Kibana:

```
output.elasticsearch:
  hosts: ["url_do_elasticsearch:9200"]
setup.kibana:
  host: ["url_do_kibana:5601"]
```

* Habilite e configure o módulo :
**Windows:** `.\filebeat.exe modules enable postgresql`
**Linux:** `sudo filebeat modules enable postgresql`

* Para modificar as configurações do módulo, altere o arquivo postgresql.yml:

**Windows:** `modules.d/postgresql.yml`
**Linux:** `/etc/filebeat/modules.d/postgresql.yml`

Por padrão, o arquivo vem com as seguintes informações e é aqui que você especifica o caminho para o seu diretório de logs:

```
# Module: postgresql
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.7/filebeat-module-postgresql.html
- module: postgresql
  # All logs
  log:
    enabled: true
# Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    #var.paths: ["/diretório/do/log/postgresql/*.log*"]
```
* Carregue o índice e os dashboards do módulo:

**Windows:** `.\filebeat.exe setup`
**Linux:** `sudo filebeat setup`

* Inicie o serviço do Filebeat:

**Windows:** `Start-Service filebeat`
**Linux:** `sudo service filebeat start`

Depois disso, você conseguirá ver os logs do seu ambiente no discover, além de ter dashboards com informações e métricas do seu PostgreSQL.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/rdrdemd6na7db3sxp5x9.png)
Common Lisp ไม่ใช่ระบบแบบที่ปล่อยให้ตายง่าย ๆ
Tags: commonlisp, signal, condition
Published: 2021-01-22 12:42:11

---
title: Common Lisp ไม่ใช่ระบบแบบที่ปล่อยให้ตายง่าย ๆ
published: true
description: 
tags: CommonLisp,Signal,Condition
//cover_image: https://direct_url_to_image.jpg
---

Common Lisp เป็นระบบที่ไม่ตายง่าย ๆ ถ้าโปรแกรมที่เราใช้รันที 0.5 วินาที ก็คงไม่เป็นไร แต่ถ้าเริ่มโหลด data สัก 10 นาทีแล้วถึงจะทำงานต่อได้ หรือโปรแกรมต้องรันต่อกันสามวันก็คงไม่อยากจะเริ่มใหม่บ่อย ๆ จะ save state ลง disk กันบ่อย ๆ โปรแกรมก็เสร็จช้าเข้าไปอีก

Common Lisp เวลาเกิดข้อผิดพลาด กดจะส่งสัญญาณ (signal ที่เป็น verb) ที่มีสภาวะ (condition) ของข้อผิดพลาดและสภาวะแวดล้อมของข้อผิดพลาดแนบไปด้วย ตัวรับสัญญาณที่กำหนดไว้ก่อนว่าสภาวะไหนให้ทำอะไรก็ทำงานได้สารพัด ตั้งแต่พิมพ์อะไรออกมาบอกเฉย ๆ หรือกระโดดข้ามบางส่วน กลับไปทำโปรแกรมซ้ำอีกครั้ง หรือจัดการไม่ได้มันจะไปเรียก debugger ถามคนที่อยู่หน้าจอว่าให้ทำอะไรต่อ ส่วนที่ให้ถามว่าทำอะไรต่อก็กำหนดไว้ก่อนได้ว่าจะให้ทำอะไร เลือกแผน B แผน C ได้ มากไปกว่านั้นถ้าคนที่อยู่หน้าจอเป็น programmer ก็แก้โปรแกรมบางส่วนแล้วสั่งให้รันต่อได้
Cheap, secure and fully decentralized voting system on Ethereum
Tags: solidity, defi, dao, ethereum
Published: 2021-01-22 12:35:17

---
title: Cheap, secure and fully decentralized voting system on Ethereum
tags: #solidity #defi #dao #ethereum
published: true
---

{% medium https://senior-joinu.medium.com/cheap-secure-and-fully-decentralized-voting-system-on-ethereum-6793566016b %}