teleren/devto huggingface dataset:
How to Create ERC1400 Security Token - Overview
Tags: webdev, programming, blockchain, development
Published: 2023-05-20 08:09:29


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/79hjbg2cj1j8hshfvb4x.png)

Are you looking to take your business to the next level with a cutting-edge security token? Then, choose the ERC1400 token standard to create a security token. Let me guide everything you need to know about creating a secure, customizable token that meets your business's unique needs.

Creating an ERC1400 security token involves several steps. Here is the overview of the process:


**Understand ERC1400:** Familiarize yourself with the ERC1400 token standard, which is a set of rules and guidelines for creating security tokens on the Ethereum blockchain. 

**Define Token Requirements:** Determine the specific requirements of your security token. Consider factors such as token name, symbol, total supply, decimal places, and any additional features or functionalities you want to implement.

**Solidity Contract Development:** Write the Solidity smart contract for your ERC1400 token. You can start from scratch or use existing open-source ERC1400 contract implementations as a reference. Ensure the contract includes the necessary functions and features defined by the ERC1400 standard.

**Customize Token Features:** Tailor the ERC1400 contract to meet your specific security token requirements. 

**Token Deployment:** Deploy the finalized ERC1400 contract to the Ethereum blockchain. 

**Token Distribution:** Once the token contract is deployed, distribute the security tokens to investors. This can be done manually or by utilizing token distribution platforms or services that automate the process.

**Compliance and Legal Considerations:** Ensure your security token complies with relevant legal and regulatory frameworks, such as securities laws. 

**Ongoing Maintenance and Upgrades:** Regularly monitor and maintain your ERC1400 security token. Stay up to date with the latest advancements in blockchain technology, security practices, and regulatory changes. 

Remember that creating an ERC1400 security token involves complex technical, regulatory, and legal considerations. If a startup has good technical skills, then they can create tokens on the blockchain. One can create their own ERC1400 token and deploy it by implementing the proper code functionalities. In case, you want to create ERC1400 tokens without learning solidity, you can hire a blockchain expertise team to get service for security token creation. If you would like to get the fine service of [**[ERC1400 Token Development](https://bit.ly/3BFMidU)]** ensure to choose the top-notch Ethereum token development company in the blockchain space.
Learn How to Generate Random Colors with JavaScript Like an Expert
Tags: webdev, javascript, programming, tutorial
Published: 2023-05-20 07:35:04

Generating random colors with JavaScript can be a bit intimidating, especially to new developers. in this post, I will walk you through how you can generate random colors with JavaScript.

![JavaScript](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7wtiy39eho299ns6usq.png)

- create an index.html file

create an index.html file, and copy and paste the code snippet below into the index.html file.

```html
  <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Generate random color</title>

    <style ="text/css">
        body {
            display: grid;
            place-items: center;
            height: 100vh;
        }
        #button {
            height: 50px;
            width: 100px;
        }
    </style>
</head>
<body>

    <button id=" button">Click me</button>

    <script>
        const button = document.getElementById("button");

        button.addEventListener("click", () => {
            const generateRandomColor = `#${Math.floor(Math.random() * 0xffffff).toString(16)}`;
            document.body.style = `background-color: ${generateRandomColor}`;
        })
    </script>
</body>
</html>

```
[See code on codepen](https://codepen.io/codeauthor1/pen/VwEVxQQ)

## Code ExplanationCode Explanation

- the HTML code below will create a button element on the HTML document.

```html
<button id="button">Click me</button>
```

- I added a little styling to it to place the button element in the center of the HTML document

```css 
  body {
    display: grid;
    place-items: center;
    height: 100vh;
  }
   #button {
    height: 50px;
    width: 100px;
  }
```

Here is the 

- JavaScript code that does the magic.

- firstly, I search through the Dom tree to retrieve a button element with an id of "button", then I stored it in a variable called button.

- then, I added an event listener to the button, and I listen to a click event.

- then the code generates a random color each time the button is clicked.

- then I assigned the color to the background.

```js
  const button = document.getElementById("button");

        button.addEventListener("click", () => {
            const generateRandomColor = `#${Math.floor(Math.random() * 0xffffff).toString(16)}`;
            document.body.style = `background-color: ${generateRandomColor}`;
        })
```


thank you for reading. please leave a comment below and share the post with your friends who are also learning JavaScript. don't forget to follow me for more useful content.
What's Your Signature Victory Dance in the Coding Olympics?
Tags: discuss, beginners, codenewbie, watercooler
Published: 2023-05-20 07:00:00

If coding were a sport, what would be your go-to victory dance to celebrate conquering a challenging code issue? Would it be the Syntax Shuffle? The Binary Boogie? Would it incorporate the robot? High fives and fist bumps? A Red Bull shower? 

Let your imagination run wild and share the dance move that perfectly captures your triumph!


Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more awesome discussions and online camaraderie!

*{% embed* [https://dev.to/codenewbieteam](https://dev.to/codenewbieteam) *%}*
What is Your Coding Anthem?
Tags: discuss, music, watercooler
Published: 2023-05-20 07:00:00

🎵🎧 What's your ultimate "coding anthem" or theme song that takes your productivity to new heights? Share the musical magic that gets you in the coding zone and let's create the ultimate developer playlist together! 🎶💻

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}

<a href="https://www.freepik.com/free-photo/paisaje-verde-con-luces-borrosas_1077069.htm#query=music&position=16&from_view=search&track=sph">Image by kjpargeter</a> on Freepik
What Coding Communities & Forums Have Transformed Your Coding Journey?
Tags: discuss
Published: 2023-05-20 07:00:00

What coding-related communities or forums do you engage with, and how have they contributed to your coding journey? Share the platforms you find valuable and discuss the benefits you have gained from participating in these communities.

---
Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}

[Image by pch.vector on Freepik](https://www.freepik.com/author/pch-vector)
Pointers for front end development newbie
Tags: frontendclassesinpune
Published: 2023-05-20 06:16:11

1. Familiarize yourself with HTML, CSS, and JavaScript as they form the core of front end development.
2. Get familiar with popular front end development frameworks like React.js, Angular and Vue.js.
3. Learn about the different tools available for front end development like webpack and gulp, and explore how they help with the development process.
4. Utilize source control systems like Github or Bitbucket to store your code and track changes.
5. Develop a solid understanding of browser compatibility and cross-browser testing.
6. Ensure your code is written correctly and efficiently – practice good coding standards.
7. Familiarize yourself with the DOM (Document Object Model) and how it enables you to access and manipulate HTML elements.
8. Test your code in different browsers and devices before pushing it to production.
9. Develop a good understanding of front end security techniques to make sure your site is safe and secure.
10. Explore the various responsive design techniques to make sure your site is optimized for all screen sizes.
[Front-end classes in Pune](https://www.iteducationcentre.com/html5-and-ccs3-training-in-pune.php)
[Front-end course in Pune](https://www.iteducationcentre.com/html5-and-ccs3-training-in-pune.php)
Git? What?
Tags: git, github, webdev, beginners
Published: 2023-05-20 02:25:53

Profissionais de área de desenvolvimento de código utilizam no seu dia a dia, alguma ferramenta VCS (Version control software) traduzindo fica, sistema de controle de versionamento ajudando a cria novas versões e rastrear o histórico de alterações no seu código, sem a necessidade de fazer cópias manuais.

Existem diversas ferramentas que fazem esse controle de versão, tais como:

- Git
- Subversion
- Mercurial
- Merant PVCS
- Visual Source Safe

Cada uma delas possui suas vantagens e desvantagens, outras são mais utilizadas no mercado, mas isso não é a questão que será tratada agora.
Iremos tratar especialmente sobre o Git, um sistema que foi utilizado para controlar a versão do kernel do linux que se tornou muito importante e extremamente popular entre os programadores(as). Um fato interessante sobre ele é o seu criador em comum: Linus Torvald

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t8jvhg292f77t0s1gu4z.png)
Fonte: https://www.businessinsider.com/linus-torvalds-linux-time-away-empathy-2018-9

O nosso primeiro passo, será instalar o Git, se você estiver usando um S.O (Sistema Operacional) com base em UNIX (Ubuntu), no seu terminal use o comando `apt-get (Gerenciador de pacotes),` a instalação pode ser feita dessa forma no terminal com o comando abaixo:

```ruby
# usuários do ubuntu
apt-get install git
```

Para instalação no Mac e no Windows, você pode seguir o passo no link da documentação oficial do Git

[Git - Instalando o Git](https://git-scm.com/book/pt-br/v2/Começando-Instalando-o-Git)

1. **Configuração de usuário**

Após instalar o `Git` na sua máquina, chegou a hora de configurar o usuário, ou seja, dizer ao `Git` quem você é para ele, para que ele saiba reconhecer quem desenvolveu o código. 
Para isso, vamos no terminal e usar os comandos abaixo:

```bash
# Configurando o username
$ git config --global user.name "Seu nome"
$ git config --global user.email "Seu email"
```

Colocando o parâmetro `—-global` estamos dizendo que para todos os `repositórios Git` nessa máquina, valerá essa opção, a menos que ela seja redefinida dentro do diretório de um `repositório específico`. Por exemplo, se para um determinado projeto você estiver usando um outro usuário, com e-mail diferente, é possível `configurar` esse `diretório específico` com o comando abaixo:

```bash
# Configurando para um repositório específico
git config --local user.name "Seu nome"
git config --local user.email "Seu e-mail"
```

Para verificar e validar qual nome e e-mail de usuário estão configurados no `Git` para o `repositório corrente`, basta utilizar o comando:

```bash
# Verificar o usuário configurar no repositório
git config user.name
git config user.email
```

Os comando devem retornar o e-mail e o nome configurados respectivamente.
Project Java Web with docker, maven
Tags: java, maven, docker
Published: 2023-05-20 02:06:22

---
title: Project Java Web with docker, maven
published: true
description: 
tags: java, maven, docker
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-05-20 01:44 +0000
---

```bash
sudo apt-get install default-jdk
sudo apt install maven
mvn archetype:generate -DgroupId=com.example -DartifactId=my-spring-project -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

cd my-spring-project
```

```bash
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>my-spring-project</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>my-spring-project</name>
  <url>http://maven.apache.org</url>
  <properties>
    <maven.compiler.source>1.6</maven.compiler.source>
    <maven.compiler.target>1.6</maven.compiler.target>
  </properties>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.0</version>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
              <classpathPrefix>lib/</classpathPrefix>
              <mainClass>com.example.App</mainClass> <!-- Reemplaza con la ruta de tu clase principal -->
            </manifest>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
```
**Dockerfile**
```docker
# Imagen base de Java
FROM openjdk:11

# Directorio de trabajo dentro del contenedor
WORKDIR /app

# Copiar el JAR o WAR de la aplicación a la carpeta de trabajo
COPY target/my-spring-project-1.0-SNAPSHOT.jar /app

# Exponer el puerto en el que se ejecuta la aplicación Spring
EXPOSE 7070

# Comando para ejecutar la aplicación
CMD ["java", "-jar", "my-spring-project-1.0-SNAPSHOT.jar"]
```
**image**
```docker
docker build -t spring .
```
**run**
```docker
docker run -p 7070:7070 spring
```
This week’s newsletter is out! (20-05-2023) - AI Wonderland To Deprecate World Wide Web
Tags: javascript, tech, webdev, discuss
Published: 2023-05-20 05:52:27

---
title: This week’s newsletter is out! (20-05-2023) - AI Wonderland To Deprecate World Wide Web 
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

AI Wonderland To Deprecate World Wide Web 

https://markjgsmith.substack.com/p/mark-smiths-newsletter-20-05-2023

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
HTML
Published: 2023-05-20 05:48:43

Some uncommon elements for semantic HTML:

🔹<meter>
🔹<mark>
🔹<details>
🔹<wbr>
🔹<label>
🔹<fieldset>
🔹<abbr>
🔹<cite>
🔹<ins> and <del>
🔹<address>
🔹<acronym>
🔹<optgroup>

Stop cooking <div> soups...😅
Good morning 🙏
Building a version control system
Tags: c, linux, vcs
Published: 2023-05-20 05:12:26

## Intro

As developers, we use version control systems everyday. Most are probably with Git or Subversion (SVN). Since it's easy to use these tools without thinking about how they work, I decided to try and make my own version control system.

## How version control works

A version control system keeps track of the changes (versions) of your code. Whenever you make a commit, the current version of the file(s) are compared to the previous version, and a new "commit" is made. Each control system has various ways of doing this. For example, Git uses a snapshot system, where a completely new copy of every modified file is stored in a commit object [1]. Other systems like SVN (and my project) record the differences between files over time.

## About zren 

When a zren repository is created, a `base` directory is made with a copy of every file at that moment. When the first commit is made, it compares the current version of each file with the base version. For every commit after that, the "image" of the current file is first built off of applying each commit to the base file chronologically. Then, the current file is compared to the reconstruction of the previous version.

### Changefiles

To generate the changefiles, the most recent version of the file is compared with the current version being committed. Every character that is different is stored in a linked list. Places that are the same are given a placeholder, but will not be included in the file itself. When it comes time to write the actual changefile, the linked list is iterated through, and only the different characters and the *number* of spaces in between each change is recorded. Hex codes, `0x16` for characters and `0x15` for space counts are used so the program knows how to read it back and reconstruct the linked list.

### Other features

Since this is just a project I started a few weeks ago, it obviously won't have all the features of a system like Git or SVN. Most importantly, this program currently only keeps track of files locally, since there is no server component for a remote repository. Some of the basic features seen in Git, such as logging and an ignore-file, are present.

## Branching
New branches are created with the `rollback` command, along with its own directory for changefiles and a separate log file. Branch names are autogenerated with the prefix `sub-` plus the first 8 characters of the source commit id. Users can switch between branches using the `checkout` command.

Project repo: https://github.com/gbafana25/zren
Dev. streams: https://youtube.com/@gbafana25

[1] https://www.git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F
Mastering OAuth in React and Building Foundations with Python
Tags: webdev, javascript, programming
Published: 2023-05-20 04:49:44

Today, I worked on an issue in my React project related to Google OAuth authentication. The challenge was to render appropriate components based on a user’s authentication status. By making an HTTP GET request to “/auth/user” endpoint on the backend, I fetched the user data. If the session was authenticated, the server returned the user’s data; otherwise, a ‘401 Unauthenticated’ status was dispatched.

On a different note, I’ve been keeping up with my Python studies. It’s been pretty basic so far, but that’s not necessarily a bad thing. It’s like building a house; you have to lay down a solid foundation first. So I’m investing time in these foundational concepts, knowing it’ll all come together down the road as I start diving into the complex stuff. There’s something exciting about learning all these bits and pieces and anticipating when I’ll start putting them together. Just goes to show, there’s no shortcut to really learning a language — programming or otherwise!
Math 3 simple rule
Tags: 3simplerule
Published: 2023-05-20 03:52:35

import tkinter as tk

# função que calcula a regra de três simples
def calcular_regra_de_tres():
    valor1 = float(entrada1.get())
    valor2 = float(entrada2.get())
    valor3 = float(entrada3.get())
    resultado = (valor2 * valor3) / valor1
    resultado_label.config(text="Resultado: " + str(resultado))

# cria a janela principal
janela = tk.Tk()
janela.title("Regra de três simples")

# cria os widgets da interface
entrada1_label = tk.Label(janela, text="Valor 1:")
entrada1_label.grid(row=0, column=0)

entrada1 = tk.Entry(janela)
entrada1.grid(row=0, column=1)

entrada2_label = tk.Label(janela, text="Valor 2:")
entrada2_label.grid(row=1, column=0)

entrada2 = tk.Entry(janela)
entrada2.grid(row=1, column=1)

entrada3_label = tk.Label(janela, text="Valor 3:")
entrada3_label.grid(row=2, column=0)

entrada3 = tk.Entry(janela)
entrada3.grid(row=2, column=1)

calcular_botao = tk.Button(janela, text="Calcular", command=calcular_regra_de_tres)
calcular_botao.grid(row=3, column=0)

resultado_label = tk.Label(janela, text="Resultado:")
resultado_label.grid(row=3, column=1)

# inicia o loop principal da janela
janela.mainloop()
Cómo Descargar un Tono de Llamada en descargartonosdellamada.com
Tags: webdev, cloud, mobile
Published: 2023-05-20 03:48:31

Cómo Descargar un Tono de Llamada en descargartonosdellamada.com
Si estás buscando descargar tonos de llamada en [descargartonosdellamada.com](https://descargartonosdellamada.com/), estás en el lugar indicado. Este sitio web especializado te ofrece una amplia selección de tonos de llamada gratuitos para personalizar tu experiencia sonora. Aquí te mostramos cómo descargar un tono de llamada paso a paso:

Abre tu navegador web y ve a descargartonosdellamada.com.

Navega por el sitio web y explora las categorías disponibles. Puedes buscar tonos de llamada por género musical, popularidad o novedades.

Una vez que encuentres un tono de llamada que te guste, haz clic en él para acceder a la página de descarga.

En la página de descarga, verás una opción para escuchar el tono de llamada antes de descargarlo. Asegúrate de que sea el tono de llamada que deseas.

A continuación, busca el botón de descarga. Puede estar etiquetado como "Descargar" o con un ícono de flecha hacia abajo. Haz clic en ese botón para iniciar la descarga del tono de llamada.

Dependiendo de tu dispositivo y navegador, es posible que se te solicite confirmar la descarga o elegir una ubicación para guardar el archivo del tono de llamada. Sigue las indicaciones que aparezcan en pantalla y selecciona la ubicación deseada en tu dispositivo.

Una vez que el tono de llamada se haya descargado, puedes ir a la configuración de tu teléfono para establecerlo como tono de llamada predeterminado. La ubicación exacta de esta configuración puede variar según el dispositivo, pero generalmente se encuentra en la sección "Sonido" o "Tonos de llamada" dentro de la configuración del teléfono.

Explora las opciones de configuración de tonos de llamada y busca la opción para seleccionar un tono personalizado. Busca el archivo del tono de llamada que has descargado en descargartonosdellamada.com y selecciónalo como tu nuevo tono de llamada.

¡Listo! Ahora has descargado y configurado un nuevo tono de llamada desde descargartonosdellamada.com. Disfruta de tu tono de llamada personalizado y añade un toque único a tus llamadas entrantes. Recuerda que puedes repetir estos pasos para descargar más tonos de llamada y cambiarlos según tus preferencias. ¡Diviértete personalizando tu experiencia sonora!
ORA-28000: the account is locked
Tags: oracle
Published: 2023-05-20 03:48:18

## Who locked oracle database account?

**If you have any idea, let me know right now!**
But no one does, so we need to find out who locked it.

## Survey method

For windows, you can find the error logs on Event Viewer. For Linux and others, on the Oracle alert logs. Its location is below:

> $ORACLE_BASE/diag/rdbms/\<SID\>/\<SID\>/trace/alert_\<SID\>.log

First, find the line "ORA-28000: the account is locked". Then, find the line "ORA-01017: invalid username/password; logon denied" just before it. Because the most likely cause is wrong password.
You can find the source host name printed.

## Shout the source host name

That is the culprit.

## Corrective action

Make sure all members understand the above steps and that no one can escape from administrator.