Open in app

Sign In

Write

Sign In

Patrick Heinz
Patrick Heinz

6 Followers

Home

About

May 27, 2022

Formatting dates in Python using f-strings

How many times have you struggled trying to properly format datetimes in Python? I can say it for you, but I really struggled on this in the past. That’s right! In the past!! I’ve discovered a way to format dates in Python using just f-strings. If you are not familiar with f-strings, you should! It’s a awesome way to format strings in Python. It's not only in "prints" as you can use it anywhere strings and variables are involved. To know more: https://docs.python.org/3/tutorial/inputoutput.html

Python

1 min read

Python

1 min read


Feb 15, 2021

cPanel — Invalid quoted-printable input

This post is to help you to fix the cPanel error: failed: Invalid quoted-printable input trailer: ‘=’ not followed by two hex digits This error is caused by a imap_capability set on /var/cpanel/templates/dovecot2.3/main.default file and is printed in the /var/log/maillog file. To fix it, you’ll have to create a main.local…

Cpanel

1 min read

Cpanel

1 min read


Feb 18, 2019

Utilizando Python para adicionar pontos em um mapa

Utilizando dados do POADigital, vamos marcar no mapa todos os locais onde existem redes Wi-Fi registradas no Porto Alegre Livre. Talvez tenhamos que criar uma função para identificar a latitude e longitude de cada ponto que colocaremos no mapa. Vamos começar pelo básico:

Python3

2 min read

Utilizando Python para adicionar pontos em um mapa
Utilizando Python para adicionar pontos em um mapa
Python3

2 min read


Jan 31, 2017

cPanel: “A database owner with the name already exists”

Imagine that you’ve deleted an account via WHM. Now you need to recreate it again. Unfortunately, you got the following error message: Account Creation Status: failed A database owner with the name USERNAME already exists Sometimes it happens because some configuration files were not removed from the account-deletion scripts. But here is the simple solution: Navigate to /var/cpanel/databases: cd /var/cpanel/databases

Cpanel

1 min read

Cpanel

1 min read

Patrick Heinz

Patrick Heinz

6 Followers

A Brazilian data engineer

Following
  • Anna Geller

    Anna Geller

  • Netflix Technology Blog

    Netflix Technology Blog

  • Cassie Kozyrkov

    Cassie Kozyrkov

  • Deck451

    Deck451

  • Jyoti Dhiman

    Jyoti Dhiman

See all (23)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech