teleren/devto huggingface dataset:
How to promote your NFT project
Published: 2022-01-28 23:44:45

Some days ago we finished our first NFT project.

**COOLPHABET - The Cool Letters Crew**

Website: [https://www.coolphabet.art/](https://www.coolphabet.art/)
Twitter: [https://twitter.com/CoolphabetNFT](https://twitter.com/CoolphabetNFT)

Building this project was quite nice and we learned to much. Big thank you to [_buildspace](https://buildspace.so/) and [DeveloperDAO](https://twitter.com/developer_dao) for all the help to get into the web3 space.

But after building a cool project there is one important thing missing that you shouldn't forget: **PROMOTION**

Here are 4 ways to get some attention from people.

## 1. NFT project drop lists

There are a lot websites where you can list your project. The most of them are completely free, but you can get also additional promotion for some extra money. We listed our project on all of these websites:

https://www.nextnftdrop.com/
https://nftprojectlist.com/
https://upcomingnft.net/
https://nftcalendar.io/
https://upcomingnft.art/
https://rarity.tools/upcoming/
https://nft-list.io/
https://www.nftcatcher.io/
https://nftevening.com/
https://www.plotlion.com/nft-watchlist
https://nftgenie.pro/
https://nftaggregator.io
https://nftvibe.io/coolphabet/
https://nftdesire.io/
https://notfin.com/

## 2. Twitter

Twitter seams to me THE most important social media platform to promote your NFT projects. You should start as early as possible to get a follower base before your project is done. We made the mistake to start our twitter account AFTER we finished our project and just 2 weeks before the mint day. 🤦🏻‍♀️
We still need some more [followers](https://twitter.com/CoolphabetNFT) 😉

## 3. Discord 

Discord is after Twitter the other main player when it comes to community building. Many projects start early with a own discord server to get user feedback and to build a relation with future customers. We don't have a discord server because we had already enough todos on our list but you should consider to use it.

Even if you don't have a custom server you still can use discord to promote your project in channels of other projects. You can look for channels like:

- showcase
- shill your project
- show your content
- boost your stuff


## 4. Tell everyone

Just tell your friends, your family or your work colleagues about your project. Post it on Instagram or Facebook. Or write articles like this one 🥳😉


## Final thoughts

Build cool stuff, YES. But promotion should be part of your project from day one. You will need this to be successful. If you struggle to do this by yourself peer up with other people that have more experience and can help you. 


**Links:**

Twitter Author: [https://twitter.com/AndersCode](https://twitter.com/AndersCode)
Website: [https://www.coolphabet.art/](https://www.coolphabet.art/)
Twitter: [https://twitter.com/CoolphabetNFT](https://twitter.com/CoolphabetNFT)
Learn web3: [_buildspace](https://buildspace.so/)
Community: [DeveloperDAO](https://twitter.com/developer_dao)
Magento 2 get Configured Used Children Product Collection
Published: 2022-01-28 23:10:35

/**
     * Returns array of sub-products for specified configurable product
     * Result array contains all children for specified configurable product
     *
     * @param \Magento\Catalog\Model\Product $product
     * @param array $requiredAttributeIds Attributes to include in the select; one-dimensional array
     * @return ProductInterface[]
     */
    public function getUsedProducts($product, $requiredAttributeIds = null)
    {
        if (!$product->hasData($this->_usedProducts)) {
            $collection = $this->getConfiguredUsedProductCollection($product, false, $requiredAttributeIds);
            $usedProducts = array_values($collection->getItems());
            $product->setData($this->_usedProducts, $usedProducts);
        }

        return $product->getData($this->_usedProducts);
    }

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rd5rqz8l6xmtdp2efjrq.png)
Build container images in Kubernetes
Tags: docker, devops, kubernetes, buildkit
Published: 2022-01-28 23:02:52

One of the major steps when you are designing how you gonna ship your app is **_how you will build it_** and where.

Some people still use conventional ways to ship their apps where the is some Sysadmin dude who does all the deployment process, Some use automation of some kind, and some use a CI/CD pipeline to achieve this.

Here I'm talking about the last type of teams (The cool one :sunglasses:) and precisely the step of building Docker images in Kubernetes environment.

I'm assuming that we have:
- Dockerfile for the project.
- Docker hub account.
- Kubernetes cluster.
- Kubectl client.

What we will do:
1. Create a namespace in k8s.
2. Get authorized to store (push) the resulted image to docker hub (Docker registry).
3. Deploy a buildkit engine to a Kubernetes cluster.
4. Build The docker image and push it.

Let's start:
First we should create a namespace 
`kubectl create namespace images-builder`

Then create a [Docker hub](https://hub.docker.com/) account.
Go to your terminal and
`docker login`
then find the docker config file
in linux you will find it in `~/.docker/config.json`
it looks like 
{% gist https://gist.github.com/AlfadilTabar/0256727b34b6fcfbc7e2b63ee36e716f.js %}

_if you don't find it in that place go search the internet for docker/config.json in the environment you are currently using._

After that we gonna create a secret containing the docker config file we just found using the command
`kubectl create secret generic regcred \
--from-file=.dockerconfigjson=/path/to/config.json \
--type=kubernetes.io/dockerconfigjson -n images-builder`

Now it's time to deploy the buildkit engine.
{% gist https://gist.github.com/AlfadilTabar/55702a862d2976121d2c9c3368c60ad3.js %}

save it in a file let's say buildkit.yaml and then 
`kubectl apply -f buildkit.yaml -n images-builder`

Let expose the buildkit engine to use able to use it.
{% gist https://gist.github.com/AlfadilTabar/619fda6f5fb8b869a9aecf2ae9ad1757.js %}

Save it in a file let's say buildkit-service.yaml and then 
`kubectl apply -f buildkit-service.yaml -n images-builder`

We are going to use the engine form our local machine so let's forward the service using 
`kubectl port-forward service/buildkitd 1234 -n images-builder`
And then download the buildkit client from [moby/buildkit](https://github.com/moby/buildkit/releases).
_Download the latest version with the version that suits your machine_

Extract the files to specific location.

Now we can build the dockerfile using the command.
`/path/to/bin/buildctl --addr tcp://127.0.0.1:1234  build --frontend dockerfile.v0 --local context=/path/to/context --local dockerfile=/path/contains/the/Dockerfile`

And to build the image and push to the dockerhub
`/path/to/bin/buildctl --addr tcp://127.0.0.1:1234  build --frontend dockerfile.v0 --local context=/path/to/context --local dockerfile=/path/contains/the/Dockerfile --output type=image,name=docker.io/username/image-name,push=true`

where username is your docker hub username and image-name is the name of the image you would like to use.
How to create a DJANDO project part_1
Published: 2022-01-28 23:01:55

I'm not going to explain you what is Django because you already know, right?
To create your first Django project:

- open your terminal

- create a folder and give it the name of your choice.

- `mkdir MyProject && cd MyProject`

- create a virtual environment

- `python3 -m pip virtualenv env`

- active your virtual environment

- `source env/bin/activate`

- install Django

- `python3 install django`

- now you can create your Django project:

- `django-admin startproject myproject`

Part 2 coming soon
What are you doing for data privacy day?
Tags: privacy, programming, discuss
Published: 2022-01-28 22:51:32

Data Privacy Day is an international event that occurs every year on 28 January. The purpose of Data Privacy Day is to raise awareness and promote privacy and data protection best practices. It is currently observed in the United States, Canada, Nigeria, Israel and 44 European countries

**Discuss: What security measures will you take/already for your project/app/website?**
Web3 will not replace Contract Law?
Tags: web3, discuss
Published: 2022-01-28 22:11:41

---
title: Web3 will not replace Contract Law?
published: true
description: 
tags: web3, discuss
//cover_image: https://direct_url_to_image.jpg
---
The law is code that is interpreted by Judges. My wife is a lawyer and tells me this. In this view, amendments or reinterpretations of laws by higher courts are diffs.

I'm not really up on Web3, but this take is wrong somehow.
{% twitter 1486698174869909506 %}


And not just in the funny way that many languages run in an interpreter:
{% twitter 1486700389822910469 %}

But in the fact that laws being interpreted by a person is the point of the legal system. It's why it works.

The fact that a judge gets to consider the specifics of your particular case and make a decision that takes those into account makes the legal system work.

In cases where the law is interpreted absolutely, like three-strikes-you're-out laws or mandatory minimums, sentences are usually the places where things turn out badly.

Explicit coded rules are bad at handling exceptional cases, and the real world is messy. People can enforce the spirit of the law and not just the letter of the law. 

On the other hand, the existing legal system is slow and expensive ( but almost no contracts are actually resolved in court, it's usually only the messy cases with the exceptions that end up in court). 

So, where do coded contracts make sense (Any ethereum people around) ?
Javascript Modules
Tags: webdev, beginners, programming, react
Published: 2022-01-28 19:07:28


Module is just Javascript Es6 Feature. Inside a javascript file any script like variable, function, array, object can give access outside of the current file. This every thins is each one module. We need to use import and export to get access to this current file.
which module we want to give access to outside of the current file in this module we need to use the export keyword. Which file inside need to access this module we need to use import keyword. please check the below code you can realize how is that.
```javascript
// play1.js
export let x = 'my name';
export let y = 'my hope';

// play2.js
import {x,y} from 'play1.js';
// import {x as V,y} from 'play1.js'; we can change the accesss //variable but same value we will get.
// import * everythins from './play1.js'; // we can access all //data using *

console.log(x); 

// default export
// play1.js
export let x = 'my name';
let y = 'my hope';
default y;

// play2.js
import DefaultEx ,{y} from 'play1.js';

console.log(x); 

// the condition is before using module ensures
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kxtzzygd4f23kje0bvz3.jpeg) the same file is
//linked. If it using the vanilla js needs to use package.js
 with module enable code. 
```
If we want to use default export we need to use the default keyword but it's not using the same line where it was defined. It needs to use after defining the code like abode the code example.
after default export, we can define the access name inside the import. And by default value store here. we do not need to call a specific name. We can get access to all things using *.
Basic [File Manipulation] With Elixir
Tags: elixir, tutorial, programming, functional
Published: 2022-01-28 21:52:10

&nbsp;
&nbsp;

{% youtube w2ORd4nPCCc  %}

&nbsp;
&nbsp;


Learn how to do basic directories and files creation, open, read, write to files with Elixir.

### Step 1:

Let's create a new Elixir project by going to the command line and typing the following in your desired directory:

`$ mix new file_manipulator && cd file_manipulator`

### Step 2:

Open your test file `test/file_manipulator_test.exs`, remove the autogenerated test and add the following test:


```elixir
  setup do
    file = %{
      name: "test.exs",
      directory: "my_test",
      content: "IO.puts ",
      content_to_append: "\"Hello world from Elixir\""
    }

    %{my_file: file}
  end

  test "creates file", %{my_file: file} do
    my_file = FileManipulator.create(file)

    File.rm_rf!(file.directory)

    assert my_file == {:ok, :ok}
  end

  test "error when files exists", %{my_file: file} do
    FileManipulator.create(file)

    assert FileManipulator.create(file) == {:error, :eexist}

    File.rm_rf!(file.directory)
  end
```

Go to the command line and run the test `mix test` and see it fail.

### Step 3:

Let's make our test pass by opening our main project file `lib/file_manipulator.ex`, remove the autogenerated hello world function and add the following:

```elixir
  def create(file) do
    with :ok <- File.mkdir(file.directory),
         :ok <- File.write("#{file.directory}/#{file.name}", file.content)
    do
      append_to_file(file)
    else
      error ->
        error
    end
  end

  def append_to_file(my_file) do
    File.open("#{my_file.directory}/#{my_file.name}", [:read, :write], fn file ->
      IO.read(file, :line)
      IO.binwrite(file, my_file.content_to_append)
    end)
  end
```

Get back to the command line and run the test `mix test` now our test should pass with no failures.

### Code Breakdown

#### File.mkdir(path)

Makes the directory path if it doesn't exist, returns `:ok` if successful.

#### File.write(path, content)

Writes Content to the file path, creates the file if it doesn't exist, returns `:ok` if successful.

#### File.open(path, modes, function)

Opens the file in reading and writing mode.

#### IO.read(file, content)

Reads the content of the file, if you don't it gets overridden by the write function.

#### IO.binwrite(file, content)

Appends the content to the file.

## Conclusion

That's a simple introduction to file manipulation with Elixir, all you need is the `File`, and the input-output `IO` modules. Thank 
you so much for your time, I really appreciate it.


&nbsp;
&nbsp;


[![Join The Elixir Army](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cv2q172ztuekdtw82vo9.png)](https://elixirprogrammer.com)
[Trivia] What physical address is mentioned the most in all the software ever written?
Published: 2022-01-28 21:27:26

While contributing to some open-source repo the other day, I diligently copied that copyright license boilerplate that every good developer adds to their code without ever reading. For the first time in two decades, I decided to actually read it, and the last lines particularly triggered my attention:

```
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
```

The first obvious question is: does the FSF today still process paper letters coming from people all over the world who want a paper copy of a license that can be found on the web within 2 ms? I've been honestly tempted by the idea of sending a physical letter to the FSF and request a hard copy of the GPL 3 license, just to frame it in my room (fax could also be an interesting option, who know if they provide the feature).

The second obvious question is: just how common is this address in today's code? So [I asked Github](https://github.com/search?q=59+Temple+Place), and got back an astonishing 131M results.

Do you know any other address that may be referenced more often in all the software ever written?
Which language & framework are you using for a backend?
Tags: discuss, webdev, python, javascript
Published: 2022-01-28 21:22:52

Hello there!


Which language and framework are you using for the backend on your website? Example: js, expressjs. (X, Z. X = Programming language, Z = framework)


I use javascript, expressjs currently for my APIs / backends, but I want to switch to python, flask.
OK, I think I need insurance as a technology professional. Now what?
Tags: cybersecurity, security, beginners, insurance
Published: 2022-01-28 21:20:13

## What Coverages Are Recommended?

Developers and users of technology will need Errors and Omissions (E&O) Insurance tailored to their specific services, along with Cyber Insurance. Insurers have created a range of Technology E&O products for various types of organizations, and many insurers have added Cyber Insurance to Technology E&O policies.

In addition to Specialty Insurance, all organizations should include most or all Standard Insurance coverages to be protected. Working with an insurance advisor who has experience in evaluating unique risks can help you determine which insurance coverages are most appropriate for your organization’s unique risk profile.

## How Do I Get Insurance?
eSpecialty Insurance is your specialty insurance expert. We have developed a streamlined marketplace to provide multiple proposals from a range of competitive insurers, along with expertise to help you evaluate your exposures and choose the best combination of comprehensive coverage and price. We look forward to working with you.
Why do technology professionals need insurance?
Tags: cybersecurity, insurance, beginners, security
Published: 2022-01-28 21:15:31

Technology businesses and related organizations need insurance to help cover the costs associated with liability claims, property damage and other exposures such as cyber, and trading partners may require insurance. Insurance protection is an important component of successfully operating any organization:

- Your Protection – Insurance can provide financial resources to respond to and recover from an unlikely but serious event. Lawsuits from customers and trading partners and cyber attacks are obvious examples.

- Customer and Vendor Requirements – Customers and vendors are increasingly requiring trading partners to carry insurance such as Errors & Omissions (E&O) and Cyber Insurance.

- Investor/Lender Requirements – Investors may require Directors & Officers (D&O), and may require other coverages such as Errors & Omissions (E&O) and Cyber Insurance.

- Defense Costs – Defending frivolous claims can be costly, particularly for tech companies with complex technology challenges, and insurance can provide access to expert counsel as well as fund defense costs.

- Regulatory Requirements – In some industries, regulators require insurance. Workers Compensation is one example, along with Errors & Omissions (E&O) and Bonds.

For more information, [visit us](https://especialty.com/industries/technology/) or [get in touch](https://especialty.com/contact/).
Why do you need Cyber Insurance? 
Tags: cybersecurity, insurance, security, beginners
Published: 2022-01-28 21:09:37

Criminal attacks and data breaches can lead to expensive and disruptive cyber incidents. Cyber Insurance provides financial protection and expert services which mitigate the impact of cyber incidents.

Criminals have increased the frequency and intensity of cyber-attacks on organizations, and have become proficient at launching ransomware attacks, impairing operations, and stealing information and money.

Additionally, all states are regulating an organization’s response to a data breach, increasing the financial cost of a cyber incident.

Cyber exposures vary widely based on the type of business.  To find out what coverage is right for you, get more information [here](https://especialty.com/coverages/cyber/) or [get in touch](https://especialty.com/contact/).
Text recognition in the browser using Tesseract.js | Spotlight of the day series
Tags: codingtutorials, coding, css, html
Published: 2022-01-29 18:51:46

---
title: Text recognition in the browser using Tesseract.js | Spotlight of the day series
published: true
date: 2022-01-28 20:41:55 UTC
tags: CodingTutorials,coding,css,html
canonical_url: https://codingislove.com/text-recognition-in-the-browser-using-tesseract-js-spotlight-of-the-day-series/
---

Learn how to do text recognition in the browser in a react app using [tesseract.js](https://github.com/naptha/tesseract.js)

Source code is available at [Tesseract OCR React](https://www.youtube.com/watch?v=MnaMqJH46Dw)

Watch the full tutorial below

{% youtube MnaMqJH46Dw %}

The post [Text recognition in the browser using Tesseract.js | Spotlight of the day series](https://codingislove.com/text-recognition-in-the-browser-using-tesseract-js-spotlight-of-the-day-series/) appeared first on [Coding is Love](https://codingislove.com).
Retrospectiva - Team Building: Mapa Pessoal
Tags: retrospective, teambuilding
Published: 2022-01-28 20:13:10

> A construção de um time ágil é uma tarefa bem simples, escolham as pessoas com habilidades que se complementam, que tenham senso de trabalho em equipe e que se comuniquem bem e você terá sucesso.

No mundo perfeito a frase acima funciona bem, mas gosto de ser muito pé no chão quando se trata de pessoas e suas complexidades.

Pensando nos desafios da construção de confiança em times recém formados, rodei uma retrospectiva muito simples com um dos times que auxilio e gostaria de compartilhar aqui.

## Mapa pessoal

### Check-in

A importancia do check-in se dá pelo fato de ser um momento em que as pessoas possam se desvincular de problemas anteriores ao momento da retrospectiva e se alinhar ao novo objetivo. Entendendo o estado de espírito de todo mundo e garantido 

### Objetivo

A partir dessa interação, promover um ambiente confortável para que as pessoas se sintam seguras para compartilhar pontos de sua vida pessoal, de forma não invasiva.

### Formato

Essa retrospectiva funciona bem em times presenciais e remotos.

Em ambos os ambientes, físico ou virtual, desenhe esse diagrama, sendo o centro o nome da pessoa e as ramificações, tópicos que você julga interessante para serem compartilhados como por exemplo: Hobby, Familia, Formação, Onde Nasci, Objetivos e Livro ou filme, a imagem a seguir demonstra um exemplo:

![Diagrama para o mapa pessoal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yx2a7m67wufcsyn07m7g.png)

10 minutos para os participantes adicionarem itens relacionados às ramificações, não há limite de itens, no final é esperado algo como demonstrado na imagem abaixo:

![Mapa pessoal Preenchido](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9wzti8d4xn5gqkdu5flj.png)

Depois que finalizarem o preenchimento, cada pessoa pode apresentar o seu mapa pessoal em 10 minutos, se aprofundando em cada item.

---

A ideia dessa atividade é ser uma alternativa às apresentações padrão além de aproximar mais as pessoas do time.