teleren/devto huggingface dataset:
I did it!
Published: 2021-12-02 05:40:35

Really happy with myself. I am now a certified web developer from freecodecamp.......now what lol. I know it doesn't mean much to most people. As a domestic violence victim who stumbled back into web developing to take my accounts back from my abuser. This feels amazing!!!!  Thank you all of you. Thank you all so very much, I wouldn't have been able to do it if it wasn't for all of your help.
Advent of CSS Day 1
Tags: adventofcss, css
Published: 2021-12-02 05:31:04

It's the first day of Advent of CSS. I have not finished the challenge yet, but wanted to share my progress.

[Advent of CSS](https://www.adventofcss.com/). A daily CSS challenge by [Amy Dutton](https://twitter.com/selfteachme_). The challenges are emailed and you build and share your solutions. The email includes a Figma file, style guide, and hints to help. 

The basic tier is free but there's a $24 tier that includes the final solution and tutorial. You can order a Bundle with Advent of JS for $39. For day one and maybe the rest, the calendar are connected. It's like the CSS advent is frontend and JS advent is backend. 

Day one challenge is to make a Pomodoro clock. I'm still building but here's where I stopped. 

![A circular timer, in the center is 15:00 under that the word start](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s5k2qnkkbjnm37o9vam1.jpg)

I need to make a green ring, tint the gear icon, work on the spacing inside the timer. There's a few more things on the todo list. 

##EDIT##

I worked on the CSS challenge some more. I made the ring green, tinted the gear, and improved the text spacing. For the product you should only see one state at a time I put them side by side for comparison purposes.

![Two circular timers, in the center is the text "15:00" under that, one has the word "START" the the other the word "STOP"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z1xxiifpy6u2p5yu39ma.jpg) 




Anyone else working on Advent of CSS #adventofcss? Or on any of the developer advents?
Advent of Code 2021 - Day 2
Tags: adventofcode, competitiveprogramming, python
Published: 2021-12-02 16:32:44

---
title: Advent of Code 2021 - Day 2
published: true
date: 2021-12-02 05:20:00 UTC
tags: adventofcode,competitiveprogramming,python
canonical_url: https://a-mroz.github.io/2021/12/02/advent-of-code-2021-day2.html
---

Day 2 is [behind me](https://github.com/a-mroz/adventofcode2021/blob/master/day2.py). I enjoyed it, even though it was still pretty easy (I believe that’s going to change soon).

Let’s take a look at the solution:

```python
import fileinput

def parse():
    return [l.split() for l in fileinput.input()]

def task1(input):
    horizontal = 0
    depth = 0

    for cmd in input:
        dir = cmd[0]
        val = int(cmd[1])

        if dir == 'forward':
            horizontal += val
        if dir == 'down':
            depth += val
        if dir == 'up':
            depth -= val

    return horizontal * depth

def task2(input):
    horizontal = 0
    depth = 0
    aim = 0

    for cmd in input:
        dir = cmd[0]
        val = int(cmd[1])

        if dir == 'forward':
            horizontal += val
            depth += aim * val
        if dir == 'down':
            aim += val
        if dir == 'up':
            aim -= val

    return horizontal * depth

input = parse()

print(task1(input))
print(task2(input))

```

The task was similar to a one from the last year. In the input we have a `command value` tuples, hence the split in the `parse()` function. 

In the first task, we have a simple switch statement (and I just found out that it was recently added to python 3.10 in the `match-case` form. That’s cool!). We simply modify two variables.

In the second task, we have the third variable, `aim` and a tiny change of logic. `down` and `up` modify the aim and `forward` modify _both_ horizontal and depth variables.

That’s it!

Ranks: 3562/2408. I guess it took me some time to wake up ;)
Things to get started as a Web Developer quickly.
Tags: webdev, beginners, css, javascript
Published: 2021-12-02 05:07:19

Woo.. you are in that part of your life when you want to start learning something new, something that excites you well you are on a good path in your life.
Today we look at how you can get yourself in the Computer Science world and be a web developer. We will be looking at quick steps without wasting any time, so let’s get started.

**1. Learn HTML**
The basic part of every web page. HyperText Markup Language defines the structure of the web page just like a skeleton in the human body, without this no one can imagine a page.

**2. CSS**
When you have a nice body you have to make yourself look good, just like that, a website needs styling to make it catchy to the user so that they come back again and again. UI is the most important part of any project, making it look cool makes you cool.

**3. JavaScript**
A webpage has to function for which it has been made, you have seen when you click on Google’s search button it redirects to another page and shows you some results, when you click login on your Instagram account it opens your feed. In this situation, JavaScript comes into play where you add functionality to your pages.

**4. Projects**
Stop right here, these were the basics of web development, now It’s time for you to make some projects by using these three. Make your simple clone projects or whatever you like, remember to get a good grasp on JavaScript and CSS.

**Further**
Later things you can learn are Create pages with **API**, then you can go further to learn React.JS, A database of your choice, and Node.JS which is very important to create a full-fledged awesome Website.
Thanks for reading, this was the first article I have written. If there’s a mistake please correct me I will surely improve in the future.
SPO600 Project Stage 1
Published: 2021-12-02 04:59:29

## Introduction
In this project we are benchmarking digital sound programs on both x86_64 and AArch64 systems. 

There will be six programs (vol0.c to vol5.c) in total to be testing and they are just different approach to the same problem. Two of them will be specific to x86_64 system only.


## Prediction

I am predicting the vol4.c program will have better performance because it is using SIMD optimization through inline assembly.


## Benchmarking

The following are the results from each program. We can see that the programs don't produce the same output and there is a significant difference in vol3.c program.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nl2smxcyr9ulsurtap6w.jpg)

I will be using 500000000 samples to test the programs and the results in following screenshot are the time taken to scale the samples.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pf3uex7c5xcjhxsrklxv.jpg)

According to the result, it takes approximately 1.5 seconds to scaling 500000000 sound samples using a x86_64 system. But when the results from AArch64 is much better than x86_64 even without SIMD optimization.


## Memory Usage

vol0.c

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0f90uketu33xg3gof1oo.jpg)

vol1.c

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b1qhgfqks4882rsswz7n.jpg)

vol2.c

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ndb6oxw45b5paif81im.jpg)

vol3.c

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ev5u08n47xq1e0yv1bd1.jpg)

vol4.c

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qodkyy56ppmncrexbeat.jpg)

vol5.c

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5cj1gpz0xxl6a373uovn.jpg)


## Compiler Option

To increase the performance of the program, we can add compiler option -O2, -O3, -Ox via the Makefile.


## Questions

Q: What does this next block do? Why?

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efofew370sj1t7ygy4ke.jpg)

The code block is checking if the system architecture is AArch64. If the system is AArch64 then compile vol0 to vol5. Otherwise, only compile vol0 to vol3 because vol4 and vol5 are specific to AArch64 architecture.

Q: Why is this needed?

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3l2f8y1viqczxwigrzpq.jpg)

We are accumulating the total data are processed in SAMPLES array in each programs, so we can compare the result.
 
Q: Why is this needed?

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1y3wk3b4gvbiz1150ovl.jpg)

This line is printing the result to the console.
Achieve Business Goals through Self Motivation
Tags: selfmotivation, businessgrowth, businessgoals
Published: 2021-12-02 04:57:57

According to speaker-Jacqueline Nagle, one of the powerful forces that impact your motivation greatly is having the right mindset. You aren't accountable to anyone and no one is above you expecting you to meet or even exceed expectations. This is why you need to be self-motivated if you want to be successful in the business world. 

This content of Jacqueline Nagle will explain more about how your mindset can affect your motivation and other self motivation tips to get you going on your entrepreneurial journey. 
https://jacqueline-nagle.medium.com/business-tips-self-motivation-b42425cb1dea
Placeholder title
Tags: actionshackathon21
Published: 2021-12-02 04:50:35

[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon 2021, please fill out all sections.)


### My Workflow
[Note]: # (Please make sure the project links to the appropriate GitHub Actions repository, and includes [an open source license](https://choosealicense.com/) and README.)


### Submission Category: 

[Note]: # (Maintainer Must-Haves, DIY Deployments, Interesting IoT, Phone Friendly, or Wacky Wildcards)


### Yaml File or Link to Code

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)


### Additional Resources / Info

[Note:] # (Be sure to link to any open source projects that are using your workflow!)

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any. )

[Reminder]: # (Submissions are due on December 8th, 2021 (11:59 PM PT or 2 AM ET/6 AM UTC on December 9th).
python
Tags: python
Published: 2021-12-02 04:36:57

Python is an interpreted high-level general-purpose programming language. Its design philosophy emphasizes code readability with its use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.[31]

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly, procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.[32]

Guido van Rossum began working on Python in the late 1980s, as a successor to the ABC programming language, and first released it in 1991 as Python 0.9.0.[33] Python 2.0 was released in 2000 and introduced new features, such as list comprehensions and a cycle-detecting garbage collection system (in addition to reference counting). Python 3.0 was released in 2008 and was a major revision of the language that is not completely backward-compatible. Python 2 was discontinued with version 2.7.18 in 2020.[34]

Python consistently ranks as one of the most popular programming languages.
MongoDB Complete Backup And Restore Command With Atlas
Tags: backup, restore, db, mongodb
Published: 2021-12-02 03:34:37


This is tested using [POSIX](https://en.wikipedia.org/wiki/POSIX) environment, especially linux mint. No guarantee will work with others. This technique is using `mongodump` and `mongorestore` commands.

## Backup From Atlas
Using Atlas 
go to specific folder and dump the db.
```
mongodump --uri="mongodb+srv://<USERNAME>:<PASSWORD>@<CLUSTER_NAME>.mongodb.net/<DB_NAME>
```
it will create folder `dump` with collection name inside.
## Restore To Atlas
within the same folder, run:
```
mongorestore --uri="mongodb+srv://<USERNAME>:<PASSWORD>@<CLUSTER_NAME>.mongodb.net/<TARGET_DB_NAME>" ./dump/<DB_FOLDER>/
```
done.
Get all unique values from an array
Published: 2021-12-02 02:51:34

💡 #tip - How to remove duplicate items in the array?

It's simple!👇

![It's simple](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yx9vqx8wnau89qwjxkad.gif)

```javascript
const array = [1, 2, 2, 3, 4, 4];
const uniqueValues = [...new Set(array)]; // [1, 2, 3, 4]
```

📚 References

- ... (spread operator) - [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax)
- new Set - [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)
TruffleでGoerliネットワークにコントラクトをデプロイする
Tags: ethereum, truffle, goerli, geth
Published: 2021-12-02 02:51:28

TruffleでGethで接続しているGoerliネットワークにコントラクトをデプロイしてみます。

### 手順概要
1. GethでGoerliに接続する際に、HTTP APIを有効にする。
  - 上記の際に、利用したいweb3コマンドのネームスペースを有効にする。
2. `truffle-config.js`にGoerli用のネットワーク設定を追加する。
3. `truffle migrate`を`--network`オプションでGoerli用ネットワークを指定して実行することで、デプロイが完了する。

### 1. GethでGoerliに接続

```shell
> geth --goerli --syncmode "light" --http --http.port 3334 --http.api personal,eth,web3,net --allow-insecure-unlock console
```

上記実行後に、デプロイ時に利用するアカウントのロック解除をしておく。（以下はGethコンソールです）

```shell
> personal.unlockAccount(eth.accounts[0],'*******')
```

### 2. truffle-config.jsでネットワークの設定

```javascript
networks: {
  goerli: {
    host: '127.0.0.1',
    port: 3334,
    network_id: 5
  }
}
```

### 3.migrateの実行

```shell
> truffle migrate --network goerli
```
Wazaterm Features
Tags: linux, ubuntu, terminal, wazaterm
Published: 2021-12-02 01:42:03


> This article is the 2nd day of the Advent Calendar 2021 of [Wazaterm](https://www.wazaterm.com), an online Linux terminal for hackers.


#Wazaterm Features

If you want to access from various platforms, you can use VPS+SSH, but Wazaterm has the following advantages over VPS+SSH.

## CPU and memory can be freely selected

You can freely choose the CPU and memory of the instance running Terminal, so you can use different machine power for different projects. For example, you can use 8G of memory and 2 CPU cores for a Rails project for the last 3 months. In the other project, use less memory for a node. Note that when you change the specs, you have to shut down the instance and start it up again, which takes a little time (about 5+ minutes).

## SSH is available 🙌

With SSH, you can do almost anything: not only terminal use, but also secure tunneling with port forwarding, SCP, SFTP, and even mount with SSH. Local port forwarding and drive mounting are essential to developing in a local environment. I'll explain how to do this later.

## You have root privileges

The OS is Ubuntu, so you can use `sudo apt install` to install packages and tweak /etc/systemd. (It's your own responsibility if you can't boot). This is necessary for normal development, such as adding imageMagic libraries.

## Suspend, Resume can be automated

You can save money by suspending instances when not in use (and at the same time reduce carbon dioxide emissions, so it's earth-friendly!). Suspend/Resume can take about 30~seconds, depending on the size of the memory. This waiting time is a bit stressful, so I made it possible to automate it with a webhook, and by combining it with an iOS shortcut app, you can make it so that I can resume terminal when I arrive at the office and suspend the terminal when it's time to go home. This way, you can start working without waiting.

## Take backups

You can back up your entire OS. You can back up your entire OS, even if you `rm -rf /`. （This is an optional feature, so please use it only if you need it)



What do you think? Can't wait to use it? I'll explain how to start tomorrow.
Be 10x 😲 faster with BInst.Tk
Tags: github, shell, docker, devops
Published: 2021-12-02 00:52:40

Often installing software that has not yet been published on a registry is boring and complicated, and perhaps precisely to avoid cloning a repository from GitHub and perhaps reading a README that is not yet complete, you go ahead and lose the opportunity to test a product maybe valid but still not fully ripe for an official release. That's why I invented BInst.Tk, you just need to type a CURL command and you have your software ready to use directly from GitHub to your PC.
For example to install Docker directly from source will be enough use the following command

```
$ curl -s binst.tk | bash -s docker/docker
```

This command prepare and install Docker from GitHub sources.

**_Find out the secret of how it works and try to contribute at the following link_**

- <https://github.com/javanile/binst.tk>
How to Choose the Best Translation Services
Published: 2021-12-02 00:35:25


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

There are many things to consider when choosing a translation service, but one of the most important is the quality of the final product. While machine translation is convenient and cheap, it is not as accurate as human translators. In addition, a human translator is more likely to miss important details or make mistakes in the content. That is why it is crucial to hire a professional translator who will check the finished product for accuracy.

The best **[translation services](https://www.loteagency.com.au/services/translation/)** providers offer 24/7 customer support, so you can get in touch with them any time you need to. The first step is identifying the company's customer service policy and culture. For instance, the company's operators should be professional and patient and not bombard you with offers. The operator should also speak fluently and professionally. You should also look for a quick turnaround time and an operator who can explain any questions you may have.

A good translation agency should also be certified by the USCIS. This is particularly important if you need your translation to be used for official documents, such as visa applications. The website should also be easy to navigate, with relevant information and prices. If you find a company with a poor reputation and unfavourable customer service, move on to a different service.
️ CodeCast's Coding Advent: Day One ️
Tags: webdev, beginners, programming, tutorial
Published: 2021-12-02 00:30:43


![Day One Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/17lfka54919ip3cqxor9.png)

## DAY ONE
⁠
For the first day of [CodeCast's](codecast.io) coding advent calendar, we're showcasing... well another advent calendar!⁠
⁠
[Eric Wastl](twitter.com/ericwastl) has created daily puzzles on [adventofcode.com](adventofcode.com) and even has a dedicated subreddit ([r/adventofcode](reddit.com/r/adventofcode)) for people to discuss the puzzles.⁠
⁠
![Advent Of Code Image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/61cqvjgd08dvf51ulvxe.png)

Be sure to bookmark the site and log in to his site to be added to the leaderboard!⁠ 

You can also be sure to follow us on [Instagram](https://www.instagram.com/codecastapp/), [Twitter](https://twitter.com/CodeCastApp), [Facebook](https://www.facebook.com/codecastapp), and [LinkedIn](https://www.linkedin.com/company/code-cast/) to see our daily advent releases there!
100 dias de codigo: 29, elección de ruta en The Odin Project
Tags: spanish, 100daysofcode, webdev, javascript
Published: 2021-12-02 00:27:08

¡Hey hey hey!

Bienvenidos colegas de desarrollo a este dia 29 del reto 100 días de código, en esencia llevo casi el 33.333...3% del reto asi que puedo comentarles algunas cosas sobre el:
- En algún momento te acostumbraras de escribir a pesar de que no lo hayas hecho anteriormente.
- Se vuelve una rutina bastante facil desde los primero 15 días.
- Si sientes que no tienes mucho que contar pero aprendiste bastante en el día puede ser un buen momento de analizar esos pequeños detalles de tu día y asi obtener algo para decir.

Entre otras cosas el hacer esto se vuelve bastante bueno para la salud mental. Te resulta mas facil verte reflejado en tu yo anterior y darte cuenta de tus progresos.

Ahora si sigamos con la sección de cada día:

### Ayer:
- Termine con el ejercicio de la calculadora a la cual le puedes echar un vistazo por [aquí](https://darito97.github.io/Calculadora/).
- Practique 30 minutos de Touch Typing.
- Modifique algunos proyectos anteriores para que las interfaces fueran mejores.

### Hoy:
- Practique 30 min de Touch Typing.
- Comencé a aprender TypeScript con la documentación oficial que puedes encontrar [aquí](https://www.typescriptlang.org/).
- Termine la sección completa de Foundations de The odin project.
- Investigue cual era la mejor ruta para seguir como desarrollador Full stack y al final elegí... *sonido de redoble de tambores* JavaScript Full Stack.

Y esto es todo por hoy, creo que en algún momento explicare como llegue a la conclusión de que esa era la mejor ruta que podía elegir.

Espero que les vaya super bien con sus proyectos!
Adiós mundo!
Customize the Run in Postman using client-side JavaScript
Tags: javascript, webdev, html
Published: 2021-12-02 00:24:13

---
title: Customize the Run in Postman using client-side JavaScript
published: true
description: 
tags: javascript,webdev,html
---
Every extra step you handle for your developers saves them time and impacts their [time to first call](https://blog.postman.com/the-most-important-api-metric-is-time-to-first-call/) (TTFC), the most important metric for public APIs. The [Run in Postman button](https://learning.postman.com/docs/publishing-your-api/run-in-postman/creating-run-button/) is a powerful way to reduce complexity for your developers. It’s not a new feature, but if you’ve been busy, you might have missed this treasure hiding in plain sight.

- Try [the code sample](https://github.com/loopDelicious/dynamic-rip-button)
- Watch [the how-to video](https://youtu.be/6h2JiMfNU0A)
- Read [the how-to guide](https://medium.com/better-practices/dynamically-create-custom-environments-with-code-c7b15c03f306)
Lagoon and the CNCF - What’s Next
Tags: opensource, cncf, community
Published: 2021-12-02 00:07:13

I’m sure you’ve all been on the edge of your seats wondering what’s happening with Lagoon and the CNCF - and we have news! Unfortunately, it’s not what we’d hoped. The TOC reviewed our application and didn’t feel that we were quite ready. We got this news a little while ago, and as part of the feedback we watched the review conversation - there was the impression that Lagoon might require some amazee.io closed-source services to function (which it doesn't) - so we'll work more to address any confusion there. The good news is that we were told we could re-apply for consideration in January!

So this isn’t a bad thing! This gives us time to focus on improving Lagoon, shoring up our website, documentation, and focusing our marketing efforts. We’ll have more experience with the users who are currently implementing Lagoon on their own, and we can fix any pain points we see there. We’ve taken some time to sit down as a team, go over our application, and address what we need to change, so we’re excited to re-submit Lagoon in 2022!