teleren/devto huggingface dataset:
PostgreSQL - port 5432 already in use
Tags: postgres, database, programming, tutorial
Published: 2021-02-11 17:19:37

![New videos very Sunday and Friday.](https://dev-to-uploads.s3.amazonaws.com/i/mwo5a8cudrne3ji72tls.png)
 
For more content, visit:

[baltlogs](https://baltlogs.com)

When installing your Postgres database for the first time, one of the problems that might arise is that two different versions of the PostgreSQL server are running at the same time. When this happens, you will get a message similar to the screenshot below.


![Screen-Shot-2021-02-10-at-1.29.28-PM](https://dev-to-uploads.s3.amazonaws.com/i/8vkfromibu21n494a2fs.png)


In my case, I downloaded PostgreSQL, but apparently I already had a different version running on my computer and it was using the port 5432. Postgres is known for using port 5432 as a default (this can be changed). The problem described can also be caused by other applications using port 5432.

To check what is running on port 5432, issue the following command on your terminal.

```python
$ sudo lsof -i :5432
```
When issuing the command above, you will prompted for the computer's password. After entering your password, you should get an output of what's currently running on port 5432.

![Screen-Shot-2021-02-11-at-11.07.33-AM](https://dev-to-uploads.s3.amazonaws.com/i/5tsa7hderixah405yxqh.png)

You might get a different output depending on what application is using the port. In my case, I had a different version of the PostgreSQL server running on my Mac, that was interfering with the Postgres.app. If you have the same problem, to kill all PostgreSQL processes, issue the following command.

```python
$ sudo pkill -u postgres
```

Usually Postgres is the only app interested in using port 5432, but if after issuing the first command to see what is running on port 5432, you find out that there is an application other than PostgreSQL running on port 5432, try to check the activity monitor and see what app might be interfering with your PostgreSQL server and shut it down from there.

If you find this content useful, please share with others.

Other ways to support:

[*Django 3…2…1…Takeoff! Kindle*
](https://www.amazon.com/Django-Takeoff-Quick-Learning-Development/dp/B08HB1CWHW/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=&sr=)

[*Django 3…2…1…Takeoff! Paperback*
](https://www.amazon.com/Django-Takeoff-Quick-Learning-Development/dp/B08HB1CWHW/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=&sr=)
How to Build a Web Project Like Everyone Else (satire)
Tags: watercooler, webdev, humor
Published: 2021-02-11 16:57:28

Had a little fun creating this video and poking fun at myself and the web dev community in general :joy: Hope you enjoy and if you want some helpful videos, be sure to check out the other videos on my channel! 

{% youtube hG21CC64C-Y %}
Write Text in Browser and convert into HTML Code
Tags: showdev, webdev, productivity
Published: 2021-02-11 16:49:22

Hello developers

I hope you all are doing well. Today I am back with the new tool on GoOnlineTools which you can use to write an article/text in the browser and convert it into HTML.

![Rich Text Editor](https://dev-to-uploads.s3.amazonaws.com/i/it4eosaehvfad1khv5rt.png)

## Features of Rich Text Editor:
1. Cleanest HTML code
2. Easy-to-use interface
3. Image insertion 
4. Change Font
5. All basic text editor functionality

Try Rich Text Editor - https://goonlinetools.com/rich-text-editor/

If you think any feature added to this rich text editor tool then please let me know. I am looking for developers feedback 😍

Update - our tools are now ad-free 🎉
Showdev: DevToAPI - Forem/DEV API Client Library for .NET
Tags: showdev, csharp, opensource
Published: 2021-02-11 16:29:42

Hello comunity 👋

I built [DevToAPI](https://github.com/podobaas/DevToAPI) - a simple .NET library that implements the Forem/Dev.to API. At the moment, all endpoints are implemented.
I hope it will be useful ;)

Usage examples:

### Create new article
```csharp
var client = new DevToClient("api-key");
await client.Articles.CreateAsync(new CreateArticle()
{
    Title = "My post",
    BodyMarkdown = "...",
    Tags = new List<string>()
    {
        "csharp",
        "opensource"
    },
    Published = true
});
```
### Pagination
```csharp
var client = new DevToClient("api-key");
var pagination = await client.Articles.GetAllMyAsync();

while (pagination.CanMoveNext)
{
    var myArticles = pagination.Items;

    //do stuff

    await pagination.NextPageAsync();
}
```
### Specific page
```csharp
var client = new DevToClient("api-key");
var pagination = await client.Articles.GetAllMyAsync(option =>
{
    option.Page = 5;
    option.PageSize = 10;
});
```
### Supported Platforms
.NET 4.5.2 or greater
.NET Standard 2.0 or greater
A New Direction
Tags: career, meta, forem
Published: 2021-02-11 16:27:59

If a year ago you told me _(pictured above in the last theatrical production of 2020 before the pandemic)_ I'd be starting at a remote company as their Operations Associate, I'd have confusedly asked if you meant I'd be manufacturing TV equipment. 

Now, after the all the gusto of graduating college in a pandemic, moving to NYC, and getting a cat, I can confidently say I'm ready and excited to start with DEV and Foremand become a helpful (if not developer-savvy) member of this community!


## About Me

*Like my favorite video essayist, [Jenny Nicholson](https://www.youtube.com/c/JennyNicholson/featured), I love a good numbered list, so here we go!*

1.) I am a wig maker and stylist as a hobby and a side hustle when theatres are open!
2.) I have three Bachelor's degrees and a license in Cosmetology!
3.) I'm a solid Gryffindor with a Hufflepuff streak.
4.) I'm ~~patiently~~ awaiting The Elder Scrolls Six. 
5.) Nothing makes me happier than a mug of hot cocoa and a good episode of Glee on a cold night! (Props to you if you got the Glee Easter egg in the title :D)



That's all for now! Have a productive day, everyone :)
How to remove accent marks in Java?
Tags: java, coding
Published: 2021-02-11 16:05:52

To remove accent marks from accented words like ‘tête-à-tête’ you need to follow two steps:
Step1 : Normalize the word using java.text.Normalizer

Step2 : Replace the accent characters from the normalised word with empty space (remove them)

Here is a working example :

https://fullstackdeveloper.guru/2021/02/11/how-to-replace-accented-characters-with-the-original-characters-in-java/
Can NewRelic service be install in a local server? 
Tags: wordpress, newrelic, help, laravel
Published: 2021-02-11 15:44:38

Hi friends,

I run a localserver with [Laragon](https://laragon.org/), for develop and testing.

Just got an client that have performance issues with his site [INKndm](https://www.inkndm.com.py/).

First I did all the bascis stuff, like update WordPress, PHP version, pluggins, delay JS excecutions to the end and so on. But the real problems is that something are consuming a massive amount of harware power.

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

In order to assess this, I google for options and find a really good service called [New Relic](https://newrelic.com/). But the client hosting doesn't allow to install/run the service, so the alternative is to do on a local server.

I search on New Relic docs, and couldn't find anything regarding this.

So my hope is that some of you have addressed this type of situation before and share some ideas or workaround.

Thanks for reading this.
Day 12: List Shuffle
Tags: 100daysofcode, python
Published: 2021-02-11 15:32:17

Shuffle a list.

```python
import random

def shuffle_words(input_list):
    output_list = []
    while input_list:
        output_list.append(input_list.pop(random.randint(0, len(input_list)-1)))

    return output_list

if __name__ == '__main__':
    input_list = ["Alderaan", "Bespin", "Corellia", "Coruscant", "Dagobah",
                "Endor", "Geonosis", "Hoth", "Jakku", "Kashyyyk",
                "Mandalore", "Ryloth", "Scarif", "Tatooine", "Utapau", "Yavin"]
    print(shuffle_words(input_list))
```
How do you organize your projects?
Tags: discuss, watercooler
Published: 2021-02-11 15:27:28

---
title: How do you organize your projects?
published: true
description: I want to know how your organize your files and folders
tags: discuss, watercooler
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/kdo6auz1dtq6i82izoey.jpg
---

I keep all my code in a single folder at root on my local machine. My organization after that is... tricky. I *should* organize by year the project started, but instead I have general categories at the next level, and projects after that.

How do you keep your projects organized?
5 JavaScript Projects You Should Consider To Build As A Frontend Dev.
Tags: javascript, webdev, programming, codenewbie
Published: 2021-02-11 15:22:06

>Side projects are a great way to show your skills to land your first job as Front-end Developer.

# 5 JavaScript Projects You Should Consider To Build as a Frontend Dev.

### 1. Build a Tic-tac-toe game with Pure JavaScript

Building a game in a browser can be a great exercise to test your JavaScript skills. You will have to react to user events, interact with DOM, and store game data.

### 2. Build a Blog Template with HTML and CSS

When you just start learning front-end development it’s important to consolidate your knowledge about HTML and CSS. Building a Blog Template is a good idea for your first bigger project.

### 3. Location sharing with Pure JavaScript and Maps Service

A simple app where you can share location with your friend can be both a demanding project. In this project, you will use JavaScript to interact with external services for maps (ex. Google Maps or OpenStreetMap).

### 4. Build TV Series Tracker with JS Framework (React, Vue, Angular or other)

This project will help every TV Series fan, track premieres new episodes. It will be a great opportunity to use a JavaScript framework you are comfortable with.

### 5. Home Budget App with JS Framework (React, Vue, Angular or other)

Creating a home budget App will be an ultimate check for your skills as a Junior Front-end Developer. It will check your ability to create forms and store information, but it can also help you save money!

Remember, you don’t have to mimic the above examples 1-to-1.

Feel free to change, add or remove any detail you like.

If you have older projects you used for learning new skills you can always refactor them and put them in your portfolio. 

Good Luck!

That's it for today, If you like my recommendations, then I encourage you to sign up for my weekly “2-1-1” Friday newsletter

And don't forget to follow me for more killer content in 2021.

Sign up 👇

  [2-1-1 Friday Newsletter](https://codelifefitness.com/)
Flutter  - Builder Pattern - Gerando textos estilizados
Published: 2021-02-11 15:10:52

Recentemente comecei a estudar um pouco de Swift/IOS para poder *"sair do 0"*, saber como funciona as coisas nesse mundo até então desconhecido para mim.

Resolvi fazer um curso básico no site, [Raywenderlich](https://www.raywenderlich.com) , que por sinal um excelente curso.

Logo no começo do curso achei diferente a forma como são gerados os componentes visuais, diferente das widgets do flutter lá tudo são views.

A forma como são geradas essas views lembram bastante o design pattern builder ¹, como pode ser visto abaixo.

![IOS Text View](https://dev-to-uploads.s3.amazonaws.com/i/3utwyoplacblc7mbo2y8.PNG)

¹ Caso não tenha conhecimento sobre esse padrão sugiro assistir esse vídeo [Builder Pattern](https://www.youtube.com/watch?v=x5u9VOdnZ3Q&t=764s). 

Transformando a view acima para flutter teriamos algo semelhante a isto:

![Flutter Text Widget](https://dev-to-uploads.s3.amazonaws.com/i/h9p3j9roiili6czyckup.png)

Como pode ser visto tem uma grande diferença na forma como são criados.

A partir desse ponto, irei focar apenas no flutter.
 
## O Problema

Imagine uma situação onde em uma mesma linha deva ter diversos estilos textuais aplicados, por exemplo.

**Texto em negrito**, *texto em italico*, texto normal.

Flutter tem o poder de transformar isso em tarefa bem simples, aplicando apenas uma Text com alguns TextSpan isso se torna uma tarefa fácil como está na imagem abaixo.

![Flutter text widget 2](https://dev-to-uploads.s3.amazonaws.com/i/7gqjb98ocb7m86civs8n.png)

E se forem mais estilos, 10, 20, claro que isso é um cenário difícil de acontecer, mas caso aconteça, o quanto esse widget iria crescer?

## Solução proposta
 
Pensando nesse improvável panorama, lembrei da implementação do IOS e com o pattern Builder, pensei em tentar adaptar para o flutter.

Depois de algum tempo estudando, cheguei a esse pequeno esboço.

[Flutter Gerador Textos Estilizados](https://github.com/wesleybruno/flutter_gerador_textos_estilizados)

A implementação foi feita seguindo o Builder pattern, e para utiliza-lo ficou bastante simples.

![Gerador Textos Widget](https://dev-to-uploads.s3.amazonaws.com/i/s2vgc82qf2q9h9l1lb2c.png)

Como tudo no mundo da programação, não existe uma bala de prata! Existem N cenários e cada um deve ser avaliado a melhor opção, além de que isso é apenas uma ideia de algo pode ou não ser útil para alguém, mas afim de compartilhar um aprendizado resolvi escrever esse post.
2 Step TRICK to Count Digits in Numeral  🚀
Tags: algorithms, programming, tutorial, computerscience
Published: 2021-02-11 14:53:56

Is there you need to count the digits in a given numeral then it will take you some time. And even after you may be confused that "Have I counted it right or not?😕"
So do not worry about that thing now. Here I am sharing a trick to do so.

Follow the steps:

1) First convert a number into decimal.
      e.g. If you have given (100110)2 then first convert it into a decimal that is (38)10.

2) Now use this easiest formula
   count = floor(logm(n)) + 1 ; m = 2 if count digits of binary
                      m = 10 if count digits of decimal and so on.
                      n = number in decimal

LET US UNDERSTAND MORE WITH AN EXAMPLE.
Given number: (11010)2
The given number is a binary number. n = 2
So First, convert it into decimal m = (26)2
 
count = floor(logm(n)) + 1   |  
count = floor(log2(26)) + 1  |floor(log10(26)) + 1
count = 4 + 1 = 5            |1 + 1 = 2 

Digits counted in a binary number of 26 is 5. 

Hope You use it.😃
Day 49 Of 100DaysOfCode: Advanced Linked List
Tags: 100daysofcode, codenewbie, womenintech, python
Published: 2021-02-11 14:24:04

Today is my 49th day of #100DaysOfCode and #python. Today I studied more about data structure. Advanced liked list. It is similar to the single linked list. Unlike in single linked list we can not traverse in forward and backward direction but in doubly linked list we can.

Doubly linked list contains a link element called first and last. Each link carries a data fields and two linked fields called next and prev.
#Python code
We create a node class with three member variable item, data next and previous. Data variable will store the actual data for the node. The next store the reference to the next node and prev stores  the reference to the privious node.

```python
class Node:
   def __init__(self, data):
      self.data = data
      self.next = None
      self.prev = None

class doubly_linked_list:

   def __init__(self):
      self.head = None


   def push(self, NewVal):
      NewNode = Node(NewVal)
      NewNode.next = self.head
      if self.head is not None:
         self.head.prev = NewNode
      self.head = NewNode


   def listprint(self, node):
      while (node is not None):
         print(node.data),
         last = node
         node = node.next

dllist = doubly_linked_list()
dllist.push(12)
dllist.push(8)
dllist.push(62)
dllist.listprint(dllist.head)
```
We need to create the doubly linked list class, which contains different doubly linked list related functions.
Output of the above function is,

```
62
8
12
```
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Day 49 Of <a href="https://twitter.com/hashtag/100DaysOfCode?src=hash&amp;ref_src=twsrc%5Etfw">#100DaysOfCode</a> and <a href="https://twitter.com/hashtag/Python?src=hash&amp;ref_src=twsrc%5Etfw">#Python</a> <br>Advanced Linked List Data Structure In Python<a href="https://twitter.com/hashtag/CodeNewbie?src=hash&amp;ref_src=twsrc%5Etfw">#CodeNewbie</a> <a href="https://twitter.com/hashtag/womenintech?src=hash&amp;ref_src=twsrc%5Etfw">#womenintech</a> <a href="https://twitter.com/hashtag/DEVCommunity?src=hash&amp;ref_src=twsrc%5Etfw">#DEVCommunity</a> <a href="https://twitter.com/hashtag/beginner?src=hash&amp;ref_src=twsrc%5Etfw">#beginner</a> <a href="https://twitter.com/hashtag/100DaysOfCode?src=hash&amp;ref_src=twsrc%5Etfw">#100DaysOfCode</a> <a href="https://twitter.com/hashtag/WomenWhoCode?src=hash&amp;ref_src=twsrc%5Etfw">#WomenWhoCode</a> <a href="https://twitter.com/hashtag/Python?src=hash&amp;ref_src=twsrc%5Etfw">#Python</a> <a href="https://t.co/nVQ566RggE">pic.twitter.com/nVQ566RggE</a></p>&mdash; Durga Pokharel (@mathdurga) <a href="https://twitter.com/mathdurga/status/1359866026742087680?ref_src=twsrc%5Etfw">February 11, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
21 Lessons Learned from Building Clones On youtube
Tags: beginners, career, webdev, codenewbie
Published: 2021-02-11 14:22:50

Learning to code Online is fun, free and exciting. But just binging on Videos building Tinder clones won't cut it. How do you solidify your learning? It takes strategy and focus.

[Here are 21 lessons I learned my self going through online learning.](https://medium.com/nerd-for-tech/21-lessons-from-building-clones-on-youtube-45340535cf32?sk=975972e3151bb32d8921a4b860e5f540)
How to upload images to Firebase like a Pro?
Tags: firebase, react, firstpost, imagepload
Published: 2021-02-11 13:59:32

So the first question in which database should you use to upload the images? 🤔, cause we have both `Firestore` and `Realtime Database` in the Firebase, but we are not going to upload the images directly to the Firestore or Realtime Database due to `limited size for each "Document" which is "1MB" 😬` set by Firebase, hence we are going to upload the image files to the `Firebase Storage` and then will take the Download URL and add that URL to the Firestore (or Realtime DB) 😋

### TLDR;
```
import Firebase from 'Firebase'
import { v4 as uuid } from "uuid";
  
  
  export default function Somefunction(){
    
    const storage = firebase.storage()
    const db = firebase.firestore()
    
    const upload = () => {
      const storageRef = storage.ref();
      const Imageref = storageRef.child(
          `images/${uuid()}-${Image.name}` 
        );
      await Imageref.put(Image);
      const ImageFileUrl = await Imageref.getDownloadURL();
      
      await db.collection("ImageUrls").add({
        image : ImageFileUrl
      })
    }
    
  return()
  }  
```

*PS: we are going to use React for this example*

**First Step**: Setting our main file
![image](https://dev-to-uploads.s3.amazonaws.com/i/yzgvdwuila4jt6c8sm4p.png)

**Second Step**: Writing our upload function
![image](https://dev-to-uploads.s3.amazonaws.com/i/i3f9xvqyt0m1yjm161if.png)

**Third Step**: Now we have a problem of repetition of the Image References if we upload images of same names or uploading the same image multiple times while will lead to failure in fetching Images with same names, so to fix that we will be using `uuid` (NPM Package)
![image](https://dev-to-uploads.s3.amazonaws.com/i/s0b5z4i86lls517jjmrj.png)
 
**Fourth Step**: Since all the things are done, now the only thing left is to add the `ImageFileUrl` to Firestore
![image](https://dev-to-uploads.s3.amazonaws.com/i/nvg6ql1mfryjeeqc69em.png)


Yayyyyy, you have successfully uploaded the image and added it to the Firestore 🎉


---
Thanks for reading this far, I hope y'all will love this 😊
Most trusted Taxation Law Assignment Service
Tags: taxationlaw
Published: 2021-02-11 13:53:25

Are you looking for Help with Taxation Law Assignment?

Taxation Law has been introduced as a course for the students pursuing Law. The subject of Law has many branches which further gets divided into the sub-topics which become a course at the university level. Students who love to learn the theoretical portion mostly goes for the law fields only. They have a grip on learning individual acts, details about such laws and their respective years in which they got implemented. It is not at all easy for all the students. Even then, some students need to have Taxation Law Assignment help. The reason is that not every student pursues Law because of the interest they have in it. They go for Taxation Law because of many other reasons: pressure from the family, the influence of the friends, the name and fame of the college, or just because of the family business. This makes them vulnerable to complete it, and so they don't have any other option than to go for [Online Taxation Law Assignment help](https://www.allassignmentservices.com/taxation-law-assignment-help/).

A glance of Taxation Law Assignment

Let us first of all, try to have a glance over the subject and its contents. It becomes an essential responsibility of the students not to straight away from seeking any Taxation Law Assignment writing help unless they know the subject. The service providers will help you with the solutions, but they won't let you know writing. But with our assignment writing service, we assure that you will have both the practical knowledge about completing a Taxation Law Assignment and the conceptual know-how about the subject. 

Taxation Law Assignment is all about the individuals' views that they have about the topics covered under this. It is a form of writing which is descriptive as the subject is entirely theoretical. The assignment covers the facts of the taxation laws along with their implementation. The students need to compare these facts from the different sources available and finally conclude their views by making new facts. The Taxation Law Assignment experts present in our team will help you out with many such case studies and sample questions to make it easier for the students to learn and incorporate.

Significance of solving Taxation Law Assignment

Our Taxation Law Assignment writing service's of [all assignment services](https://www.allassignmentservices.com/)main goal is to help the students get the best marks possible. It is really important for students to know about the subject matter. We understand that it becomes difficult to foot them to complete so many assignments at the same point of time. But the Taxation Law Assignment is critical from the examinations point of view. Below are some of the issues that highlight the significance of Taxation Law Assignment:

Students get to know the practicality of the subject.
It helps them to understand the uncovered areas and explore new facts.
They become able to furnish the content that is original by giving their point of views. 
The become well equipped on how to deliver the information in writing.