teleren/devto huggingface dataset:
Game development with Unity3D NEWBIE series
Tags: unity3d, game, gamedev, beginners
Published: 2021-01-23 22:00:10

So I decided to kickstart my youtube channel with Unity3D game dev tutorials for newbies[here](https://www.youtube.com/channel/UCqKOx3BuRotITRi99hT2yAw). I felt there was cohesiveness missing in  a lot of the tutorials such as not really explaining the Unity3D Scripting API, Monobehaviour events etc. 

### The Unity3D scripting API is a collection of namespaces.
 API stands for Application Programming Interface.  It allows 2 applications to talk to each other.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0ykuysbgp6fckntm5udy.PNG)

A namespace is a collection of classes,  events, enumerations, delegates, interfaces etc that handle a specific task each. So each namespace will handle a specific task each.

### The most common namespaces are:

1. UnityEngine: collection of pre-built classes, events, interfaces etc that allow us to **work with the Unity3D engine.** 
2. UnityEditor:  ****UnityEditor namespace is a collection of pre-built classes, events, structures, enumerations, delegates, interfaces etc that allow us to **extend the functionality of the Unity3D editor.** 
3. System namespace:  part of the .NET framework which is used behind the scenes by the Unity3d game engine. It is a  is a collection of, events, interfaces, delegates , structures, enumerations etc that allow us to **create and use common data structures** 

Essentially namespaces are like containers for classes and we can access all the classes of these namespaces in our script. 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/szp9h5xrknw7zdbl1thx.PNG)

YouTube: {% youtube 981Yv_inrSw %}

```csharp
//using imports a namespace
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CubeController : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()

    // Update is called once per frame
    void Update()
    {

    }
}
```

I've noticed more and more web devs getting into games and unity3D, maybe it's the excitement of VR and AR that's pushing us lot. 

If anyone else is also doing game dev  please say hi!
How to fix errors and not get stuck while installing react?
Tags: npm, react, installation, errors
Published: 2021-01-23 21:56:13

Hello, I know you are having a tough time while installing react and you are just tired of trying all the possible ways to get rid of any of npm/missing script/missing directories(no public, src, no template)/config directory/complete log found somewhere/just stuck (xD) errors. Take a chill pill and trust the process. It's easy-peasy. 

<i>Note: I own a laptop having 64-bit windows operating system and I got all of these errors. </i> 

Snapshot of error: 
<ul><li>getting stuck</li></ul>
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ehufi5qyjhgh3tnmm6u6.png)

Solution: 
1. So far, you might have used either npm/npx ways to create the react app. Now, Open cmd in a new window along with the ongoing loading window and type "resmon". This directs you to Resource Monitor where you need to check "cmd.exe" files and resume those process if in suspended mode. To do so, right-click on "cmd.exe" and select "Resume Process".
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/fg5lwk9yltcmty01qc7u.png)

2. You will see the processes continuing in the cmd window and the template loading along with public, src and all other required modules. "Happy hacking" denotes successful installation.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8yftrxfdl454y80870bn.PNG)

3. Now change the directory where the app is created using "cd" command and type "npm start" to start the development server. (If you won't get into that specific folder, you will get this error mentioned in the below image.) ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5je3ihihsbaova6grmy6.PNG)
Development server starts.. 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/np5g9w9o3rputaogn90z.PNG)
Get the URL and check if it's running. Kudos you did it.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/w3i9qbaztjkfggvliq1r.PNG)

Happy learning :)
<i>Feel free to ask or comment in case of any errors.</i>
Tracking Twitter User Behavior - The Overview
Tags: twitter, aws, android, kotlin
Published: 2021-01-23 21:49:30

Hey there👋,

it's been a while since my last post - which doesn't mean, I've been lazy. I've constantly worked on my Master's Thesis and I'm almost done, but now I really wanted to share what I recently did: understanding Twitter users' behavior by spying on them.

In fact, one shouldn't call it spying if the victim wants it that way - or should one ([#socialmedia](https://www.irishtimes.com/news/consumer/targeted-ads-is-social-media-spying-on-us-1.3375310?mode=amp))? Nonetheless, some people were crazy enough to help me by installing a browser extension or an Android app, respectively. And in this series I want to show you the infrastructure I used to collect and analyze the data they produced.

So let's start with an overview:
![Architecture](https://dev-to-uploads.s3.amazonaws.com/i/yij9qu0soucist8ru9wg.png)

As you might see, I used [AWS](https://aws.com/) to deploy some of the components: I've created a Lambda function, which serves a REST API through an API Gateway and is based on [Ktor](https://ktor.io/) Kotlin server framework. On invocation, incoming events are stored in an [ElasticSearch](https://elastic.co/elastic-stack) instance also provided by AWS. Best of all: all of this is covered by the AWS Free Tier, so there is no cost.

To analyse the data, I again used Kotlin and combined 3 incredibly helpful tools: [clikt](https://github.com/ajalt/clikt), [es-kotlin-client](https://github.com/jillesvangurp/es-kotlin-client) and [plotly.kt](https://github.com/mipt-npm/plotly.kt). But more about that later.

You might know that tracking clicks in a browser is no big deal - but how the heck is that supposed to work in an Android app? Sorry, but again you'll have to be patient 🤫 - that's part of the next article in this series.

For those who don't want to wait for the solution: check out the source code of the whole infrastructure [here](https://github.com/alxgrk/twitter-tracking).

Hope you'll stay tuned. ✌️
Why I moved my Front with NuxtJs to Wordpress
Tags: nuxt, wordpress, vue, front
Published: 2021-01-23 21:48:15

Hi everyone !
Thank you for your support on my last blog post:
https://dev.to/simerca/deploy-postgres-with-replications-database-in-a-minutes-with-terraform-infrastructure-as-code-59ef

Yesterday and after many years work with NuxtJS, VueJs, React etc... I moved my website to *Wordpress*...
# WHY ??!! (traitor)

*Three reasons :*

## 1 - SEO
I'm developper, not an SEO addict or daily user, I just want the minimum basic for my app should appear to google, but with NuxtJS or VueJS, We should do many configuration to have the best SEO result.

Wordpress = Install Yoast SEO Plugin and it's done, and automaticly on all your existing/new post/pages

## 2 - Front Builder
I'm backend developper, the front design is not my speciality, and when I want to make beautiful landing page with Nuxt, Vue or React, I need to write all animations, all basic containers etc.etc.. very boring !

Wordpress = Install Theme + Elementor or Divi Builder and it's done ! With Visual Builder tool ! Great !

## 3 - Async
With NuxtJS, VueJs or React, when you want to show something dynamicly on your page, you need to do somme http calls to your api, (Nuxt has server side rendering but it's same thing to have Php server)

Wordpress = PHP is server side rendering, no async method to load page, perfect for landing . 

*So, I have my Marketing Landing page on*
`mydomain.com`

*And my App on*
`app.mydomain.com`

Say me if you have more arguments or if you are totally in disagree!

Love !
Add Particle System to Spice Up Your Web Pages and Make Them More Engaging
Tags: javascript, webdev, gamedev, html
Published: 2021-01-23 21:41:12

Particle system is traditionally used by animators to add rain, snow, smoke, and fire effects to a 3D scene.  Using WebGL and a little bit of Javascript, we can add the same effect and much more to a dull web page.

[See all the particle effects here.](https://otakhi-particle-system.tumblr.com)

(1) Fountain of Rabbits.
{% youtube m9GoY2Ec6aI %}

(2) Pouring Rain
{% youtube CsswVKXVoIM %}

Investigate how these pages are put together here:
(1) https://www.otakhi.com/petridish?load=15709
(2) https://www.otakhi.com/petridish?load=11844

[Learn about AtomDrive Here.](https://www.otakhi.com/atomdrive)
Is Coding For Me? 5 Questions You Should Ask Yourself
Tags: codenewbie, career
Published: 2021-01-23 21:23:13

Have you been considering a career as a software developer / programmer, but you're not sure if it's right for you? You want to know if you're cut out for coding? Here are some things that I think you should ask yourself...

# 1. Do You Like Solving Problems?

As a software developer or programmer, essentially what you are doing is solving problems with your code. *How do I make x do y*? If you enjoy logic puzzles and spending time figuring things out, then you might be a good fit. If you don't have much patience for this sort of thing or get easily frustrated, then you might find this career difficult.

# 2. Do You Enjoy Learning?

In your life as a developer, every day is a school day. You will always be learning things and you will never know everything. There are so many different languages and frameworks to learn...and these are always changing and being updated.  You'll constantly need to learn new technologies and methods, sometimes in work and sometimes in your own time. This means you need to be adaptable to change. Are you prepared to be learning new things all the time? Are you open to continuously educating yourself?

# 3. Are You Self-Motivated?

> Self-motivation is the force that keeps pushing us to go on – it's our internal drive to achieve, produce, develop, and keep moving forward. When you think you're ready to quit something, or you just don't know how to start, your self-motivation is what pushes you to go on. ~mindtools.com

This is an extremely useful skill to have in software development. When you're working on a project and things aren't going your way, you can't just give up. You might need to spend hours sometimes Googling a solution, fixing a bug, testing, testing....and more testing. Self-motivation gives you that resilience to carry on and find a way. Are you somebody who doesn't give up?

# 4. Do You Like To Build Things?

The job of a developer is essentially to build things with code. If you enjoy the process of building something and seeing it all coming together, then you may just enjoy this job. You should find it very satisfying to see the final product after all your hard work.

# 5. Are You Excited About Technology?

No you don't need to be totally obsessed, but you should have some interest in technology...after all, code is a language that communicates with computers. Having an interest in the latest technologies and being curious about how things work will enable you to learn things that will inspire you and help you in your career. If you're not interested in technology, then will you really be interested in writing code for it?

---

So there are just 5 things that I would advise someone to think about if they were considering this career path. Are there any other pieces of advice that you would give?
Algumas informações sobre Python
Tags: python, programming, beginners
Published: 2021-01-23 21:08:19

Quando comecei a estudar python não sabia para que cada coisa serve.
Ainda não sei e quero descobrir então quando eu descobrir uma função, código novo estarei atualizando essa publicação.

Então aqui tem algumas coisinhas que podem usar na hora de montar um código

print() - imprime a mensagem dentro dos parenteses 

- menos

+ mais

/ divisão

* multiplicação

** raiz

// pega a parte inteira da divisão

% resto da divisão

!= diferente

>= maior igual

<= menor igual

== validação de verdadeiro ou falso

= atributo

type informa o tipo da variavel int, float, string...

input interage com o usuário, a resposta fica armazenada dentro da variável

%s variável tipo string

str string

%d variável decimal

%f variável float

.format() inserir na frase de variável / chama a variável

2f depois da virgula aparecem 2 números

if - elif - else se e senão 

o python funciona com identação é o recuo 

for laço de repetição

range quantas vezes irá executar a variável

while é para criar uma repetição 

break quebra a operação em um momento especifico

complexo

bool booleano

def definir função

import importa a biblioteca

in percore caracter por caracter

len() irá dizer quantos itens estão na sequencia da linha

my_dict dicionaria para obter uma melhor compreensão de como funciona 

set() o conjutos (sets) são uma coleção não ordenada de elementos únicos. Podemos construí-los usando a função set()

min - minimo - menor número

max maximo

par potencia

int inteiro

float / double aceita frações 

extend estender

insert inserir

remove remover

pop remover por index

index mostra a posição onde está

count contaem

sort arrumar em ordem alfabetica ou númerica 

upper todas as letras maiuscullas

split separa as informações por , 

sum variável de soma

capitalize transformaria a primeira letra em maiusculo
Node.js Folder Structure
Tags: help, slimcoder
Published: 2021-01-23 21:07:16

---
title: Node.js Folder Structure
published: true
description: 
tags: help, slimcoder
---

Hi guy's,

In my current node.js it's Microservices based project,

I'm struggling with folder structure of my boilerplate.

My current boilerplate is something like this:

Main folder is src which consist of different folders (components, bin, helpers,tests).

...components
.............goods 
.................goods.controller.js
.................goods.route.js
,................goods.services.js
.................goods.plugins.js
.................goods.repository.js
...bin
...routes
...helpers
...tests

I have not faced any problem yet while using this folder structure.

We have not done seperation of responsibilities principle from starting of this project.

What you think about this boilerplate?
verify-ui-components
Tags: codepen
Published: 2021-01-23 20:55:05

<p>Inspired by Ildiko Gaspar <a href="https://dribbble.com/shots/7862386-Verify-Email-Address-UI-Design" target="_blank">https://dribbble.com/shots/7862386-Verify-Email-Address-UI-Design</a></p>

{% codepen https://codepen.io/osmancandulger/pen/wvzbQxB %}
Microservices Naming Convention
Tags: help, slimcoder
Published: 2021-01-23 20:47:47

---
title: Microservices Naming Convention
published: true
description: 
tags: help, slimcoder
---

Hi guys,

I need some help regarding microservices naming convention;

I have around 9 Microservices developed using node.js.

Now i want to name each and every services so should i name them related to animals, animation characters or game characters according to there power and role.

What you guy's think about it? 

For Example: Should i name my user service as "avatar" ?
Install TA-Lib without Homebrew
Published: 2023-04-29 22:26:37

---
title: Install TA-Lib without Homebrew
published: true
date: 2021-01-23 20:35:32 UTC
tags: 
canonical_url: https://mikestaszel.com/2021/01/23/install-ta-lib-on-m1/
---

The only package I ever install using Homebrew is [TA-Lib](http://ta-lib.org). Everything else I need is already available. TA-Lib isn't updated often and it's easy to install by compiling from source.

This guide will work on macOS 11.1 (Big Sur). It works perfectly on an M1 Mac.

First, download TA-Lib from [here](http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz).

<!--kg-card-begin: markdown-->
```
tar xf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr/local
make
sudo make install

```
<!--kg-card-end: markdown-->

That's all it takes. The `prefix` is important. macOS Big Sur doesn't let you modify `/usr` even when you use `sudo`.

Installing the [Python TA-Lib library](http://mrjbq7.github.io/ta-lib/) should work fine now:

<!--kg-card-begin: markdown-->
```
pip install TA-Lib

```
<!--kg-card-end: markdown-->
Números no Python 
Tags: python, programming, beginners
Published: 2021-01-23 20:29:08

Estou apredendo a programar, então se estive alguma informação incorreta, por favor deixe a explicação correta nos comentários.

Exercicio:

Calcule dois números a operação deverá ser com números inteiros e fracionados

No Python podemos usar duas formas para informar que se trata de número.

int = número inteiro positivos ou negativos
   Exemplo: 2 e -2

float = ponto flutuante são notaveis porque eles têm um ponto decimal neles
   Exemplo: 4E2 ou 4*10**2(4x10elevado2) ou 1.2

#INT
```python
num1 = int(input("Digite o 1° número: ")
num2 = int(input("Digite o 2° número: ")

total = num1 + num2

print = ("O valor total dos números é: " + total)
```

Como o código aparecerá para o usuário:

Digite o 1º número:2
Digite o 2° número:2

O valor total dos números é: 4

OU

Digite o 1º número: a
Digite o 2° número: b

Irá dar erro

OU

Digite o 1º número: 2,5
Digite o 2° número: 2,5

Irá dar erro pois o int é somente para número inteiros

Explicação do código:

```python
num1 = int(input("Digite o 1° número: ")"""variável num1 criada para armazenar 1º valor que o usuário inserir"""
num2 = int(input("Digite o 2° número: ")
"""variável num1 criada para armazenar 2º valor que o usuário inserir"""


total = num1 + num2 
"""variável para armazenar o valor total"""

print = ("O valor total dos números é: " + total)
"""imprime uma mensagem para o usuário"""
```
_________________________________________________
# OU FLOAT 
```python
num1 = float(input("Digite o 1° número: ")
num2 = float(input("Digite o 2° número: ")

total = num1 + num2

print = ("O valor total dos números é: " + total)
```

Como o código aparecerá para o usuário:

Digite o 1º número:2,5
Digite o 2° número:2,5

O valor total dos números é: 5

OU

Digite o 1º número:a
Digite o 2° número:b

Irá dar erro

OU

Digite o 1º número:6
Digite o 2° número:4

O valor total dos números é: 10

No caso do float ele irá calcular o interio e os que possuem decimais 

Explicação do código:

```python
num1 = float(input("Digite o 1° número: ")
"""variável num1 criada para armazenar 1º valor que o usuário inserir"""
num2 = float(input("Digite o 2° número: ")
"""variável num1 criada para armazenar 2º valor que o usuário inserir"""

total = num1 + num2 
"""variável para armazenar o valor total"""

print = ("O valor total dos números é: " + total)
"""imprime uma mensagem para o usuário"""
```
Discord bot .js TypeError 
Published: 2021-01-23 20:26:43

Whats wrong?

```
const Discord = require('discord.js');

const client = new Discord.Client();

const guild = new Discord.Guild(client, Object);

module.exports = {
    name: 'martinsimp',
    description: "Přejmenuje Martina",
    execute(message, args) {

        message.guild.members.get("689801854666014748").setNickname("LMAO");
        message.channel.send("debug");

    }
};
```

ERROR IS:
```

TypeError: message.guild.members.get is not a function

```
Improve your IDE
Tags: editor, code, dx
Published: 2021-01-23 20:44:20

---
title: Improve your IDE
published: true
date: 2021-01-23 20:15:22 UTC
tags: editor,code,dx
canonical_url: https://stereobooster.com/posts/improve-your-ide/
---

## Improve syntax highlighting

Traditionally IDE (or text editors) use regular expressions to do syntax highlighting. This approach is limited in what is highlight correctly. They do it because:

- it will work even for files with syntax errors
- it is faster than do real parsing on each keystroke (programming languages typically use context-free grammar)

[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) uses incremental parsing, which allows it to do real parsing on each keystroke fast - it reparses only changed region of code and reuses parse tree from the previous parse for the rest.

Support for IDEs:

- Atom: built-in
- VSCode: [plugin](https://marketplace.visualstudio.com/items?itemName=georgewfraser.vscode-tree-sitter)
- NeoVim: [plugin](https://github.com/nvim-treesitter/nvim-treesitter)
- Emacs: [plugin](https://github.com/ubolonton/emacs-tree-sitter)

Note: you don't need to use tree-sitter if you use a language server

## Improve code completion, code navigation and more

[Language server](https://langserver.org/) can parse and analyze your code (do type checking if it is available for the PL). This allows LS to do more intelligent code completion, show documentation or type information on hover, jump to definition (more intelligently than ctags), find references (more intelligently than text search).

Support for IDEs:

- Atom: [plugin](https://github.com/atom/atom-languageclient)
- VSCode: built-in
- Vim: [plugin](https://github.com/iamcco/vim-language-server)
- Emacs: [plugin](https://github.com/emacs-lsp/lsp-mode/)

Support for languages: see table [here](https://langserver.org/).

## Improve code formatting

Pretty-printer (sometimes called code beautifier or code formatter) will automatically apply code formatting rules to the code, for example, it will put correct indentation, use correct quotes, add or remove the semicolon at the end of the line.

Examples pretty-printers: [prettier](https://github.com/prettier) (JavaScript, Flow, TypeScript, Vue, JSON, CSS, Less, SCSS, GraphQL, and Markdown), [black](https://github.com/psf/black). See big list of code formatters [here](https://github.com/rishirdua/awesome-code-formatters).

Note: ESLint's and RuboCop's autofix features are not good examples of pretty-printers. They were designed with a different purpose - they are good linters, but they are less effective as pretty-printer and they don't use [stable algoriths](https://en.wikipedia.org/wiki/Stable_algorithm) for printing.

## What is your recommendation for improving IDEs?

There are other cool projects, like predictive code competition which uses machine learning to provide more relevant suggestions ([kite](https://www.kite.com/pricing/), [tabnine](https://www.tabnine.com/)). But I recommended only things that I have tried.

What would you recommend that you tried and it significantly improved your experience?
So Here's What's Up
Tags: update, 365daysofcoding
Published: 2021-01-23 20:00:08

You may have noticed I have not been posting challenges and solutions for a couple of days. So here’s what’s up.

Since I posted the form creation series I have had A TON of people reach out to me to do larger and more in-depth projects. I also noticed that a lot of the people struggling with the challenges were struggling because they didn’t understand the underlying language not that they couldn’t logically figure out the solution. 

I am not one to give up on a challenge but I also want to produce content that people find useful not just content for the sake of content and I don’t have enough time between my full-time job, my family, and this to do the 365 days of challenges with bigger projects and push out helpful content to help everyone. 

SO. I am still going to do at least 365 “challenges” but it may not be all in one year. I am going to be producing bigger projects and putting out content past just challenges so people can better understand some of the more complex and wonderful features of web development and being a software engineer. I apologize for not doing the everyday challenges anymore but I want to produce the content that you all want! I will be posting AT LEAST once a week on both [Youtube](https://www.youtube.com/channel/UCJ-cXLeP-2NJzMGmzJ9JHpQ), on [my blog](hellodevworld.com), and will try to post on here when possible, so please stay tuned! If you want to be notified when new content comes up sign up for [the newsletter](https://lp.constantcontactpages.com/su/N3rQysX/Newsletter)! :)