teleren/devto huggingface dataset:
Create docker image on your new MacBook Pro M1 version
Tags: newmacbookpro, docker, arm64
Published: 2022-03-17 14:10:34

I just changed my major work laptop to the new MacBook Pro M1 Pro version. I really love this new machine as it can work almost 10 hours without charging. However, as a developer and product manager, sometimes I feel annoyed because of the new architecture.  

Recently I work on a open source project and I am trying to optimize the developer experience of this project to allow developers use docker image to execute the CLI, which avoids installing lots of dependencies on developers` laptop. 

However, I found I need create a separate Dockerfile for my new Apple M1 Mac. 

First, the x86_64 base image cannot be used anymore, I have to explicitly use arm64 version base image. 

```
FROM --platform=arm64 ubuntu
```

Secondly, I have to add lots of IF statements to detect the architecture of the host. 

```
arch=`uname -m`
    if [[ "${arch}" == "arm64" ]]; then
        if [[ "$OSTYPE" == "darwin"* ]]; then
            //add your logic here
        fi
        if [[ "$OSTYPE" == "linux"* ]]; then
            //add your logic here
        fi
    fi
```

Finally, I have to create arm64 version Dockerfile and build image with this file on my M1 Mac. 

```
docker build -t xxx . -f Dockerfile.arm64
```

It will be great if you can give me a better solution.
I Made A Pixel Editor, Wait... Its a Randomy Pixel Editor!
Published: 2022-03-17 14:05:58

hi, so after one week of coding and blab-la, i finally made my beta pixel editor, Its A Part Of My Game Engine :-), Zakar Game Engine, Gonna Be Based On Vulkan, For more About Zakar Project Check This https://archuser555.github.io , the Zakar Group Website, Ok, About The Pixel EDitor, Its Based On raylib (Nah Opengl Are weird And Hard To Manage) and its using the C++ longo, i blieve in this pixel editor project, i cant made something amazing in one week, but there we go, source code https://github.com/archuser555/Pixel-Editor and Also The Official Website For The Project https://archuser555.github.io/Pixel-Editor/
THANKS FOR READ + NEED SOME STARTS PLS
Let's get Hacking
Tags: codenewbie, hackwithdg, beginners, webdev
Published: 2022-03-17 14:04:49

---
title: Let's get Hacking
published: true
description: We're a week into the hackathon! Here are some highlights and tips to get you started.
tags: codenewbie, hackwithdg, beginners, webdev, 
cover_image: https://res.cloudinary.com/practicaldev/image/fetch/s--kDJc7-zC--/c_limit,f_auto,fl_progressive,q_auto,w_500/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/27dovb400kn3e2bs0zh9.png
---


We’re a week into the [Deepgram Hackathon](https://dev.to/devteam/join-us-for-a-new-kind-of-hackathon-on-dev-brought-to-you-by-deepgram-2bjd), and we’re super excited to see some of our first entries! If you’re new to the Deepgram Hackathon, we’ve got a lot of support to help you get started. Here are some of my favorite parts of this hackathon:

### Innovative Ideas Category

This is a no-code category. We wanted to make sure we accommodate folks new to their coding journey as well as those who don’t have the time to build a project this month. Your focus is on sharing your big idea, [telling a story](https://developers.deepgram.com/blog/2022/03/technical-writing-a-developers-guide-to-storytelling/), and [writing a quality blog post](​​https://developers.deepgram.com/blog/2022/03/technical-writing-a-beginners-guide/). 

> Deepgram is also offering a challenge that doesn't require you to build an application. Instead, the "Innovative Ideas" challenge invites you to come up with an interesting use-case for Deepgram and tell us all about it! Your submission will cover the big ideas and story of what you've come up with and any mock-ups you've created in a thoughtful blog post.

### Unlimited Submissions
That’s right, you can submit as many times as you want. You can submit in every category, multiple times in one category, or whatever works for you! We even talked about ways to maximize your submissions during [last week's office hours](https://www.twitch.tv/videos/1422408490). 

### Support
It was really important to us to support the hackathon participants. This is why we’re holding [Twitter spaces](https://twitter.com/i/spaces/1eaKbNPbMmXKX?s=20) every Tuesday at 12pm EDT to help inspire you and  dropping tips on our [@DeepgramDevs](https://twitter.com/DeepgramDevs) Twitter account like this one:
 {% embed https://twitter.com/DeepgramDevs/status/1504452959530274823?s=20&t=4vDYWZvYdu4dd9KBJlrJIw %}

It’s also why we’re livestreaming office hours on our [@DeepgramDevs Twitch](https://www.twitch.tv/DeepgramDevs) every Friday on Twitch at 12pm EDT. 

We also have all of the categories and resources for getting started and inspiration on [our site](https://developers.deepgram.com/events/dev-to-hackathon-2022/).

**Supporting others is rewarded.** DEV Community Members can earn badges for supporting those in the hackathon! Leaving an encouraging comment, asking technical questions, and answering questions can earn you a badge, even if you’re not entering the hackathon!

If you have any questions or need some help, please reach out. We’re here to help.
How to explain the delight of Open Source software contributions to a non-developer?
Tags: opensource, joy, humblebrag
Published: 2022-03-17 13:45:59

Being happy that my contribution to the Request Logger middleware of [Go’s chi router](https://go-chi.io/#/) got accepted and merged 🎉 I found out that it was difficult to explain the 'coolness' of this to my non-dev colleagues.



> So I explained it as follows:

_At [our company](https://www.embrosa.com) we use open source software components to build our own products (think of them as pre made ingredients when cooking). But when doing so sometimes you run into something that is not yet possible/existing in one of these ingredients. 🤷‍♂️_

_How cool is it that you then can (instead of waiting or searching for an alternative) fix it yourself (make your spice ingredient a bit spicier and with multiple colors for instance 🌶 🌈) ánd give your additions back to the community to be available to the rest of the world?_ 🌍

_That just happened, I change a piece of logging software to fix something I ran into myself, and gave it back!_ 🎉 #humblebrag https://github.com/go-chi/httplog/pull/8 

It’s always a great feeling improving some software you use yourself and giving it back for others to use too!
Animated sidebar menu
Tags: beginners, javascript, css, webdev
Published: 2022-03-17 13:21:03


**Hello DEV community!**

This is my first post here🎉, more specifically this is my first showcase.

**A little background on me.**

I started learning front end development about a year ago (somewhere around April of 2021).

I learned HTML CSS, made some projects and moved to learn JS. But due to circumstances ( I got a job as an SAP analyst), I had to discontinue learning web development.

But SAP is not my calling. 😪🥱😫

I love web development😍😘.

I love the fact that, If I have an idea I can just open notepad and create a website😮😋.

So I have started leaning Frontend. Again I have re-learned HTML, CSS. In addition to this, I also gave a go to BOOTSTRAP and man that was a good decision. 

Currently, I am learning Javascript after which I will learn REACT and apply for jobs😁.

I will try posting my experience and learning journey here on DEV, If I don't 😴 get lazy😅.

Well enough of this back to the title of this post.

So I created this simple animated sidebar menu.

Please check it out 

[Animated Sidebar Menu](https://prem-jeet.github.io/web-dev-practice/13_animated_sidebar_menu/)

and if you like what you see give the repo a star ❤
Install Flask { in Windows, Linux, MacOS } | Mega flask tutorial
Tags: flask, python, webdev, tutorial
Published: 2022-03-17 13:17:39

For initial setup firstly we will install flask. After that we understand to create a hello world program with the help of flask.

To install flask, we will use virtual environment. A virtual environment is a private copy of the Python interpreter onto which you can install packages privately, without affecting the global Python interpreter installed in your
system.

#How to install flask with the help of Virtual Environment

Run the following commands step by step for setup

## Step 1: Installing virtual environment
For Linux
```
//Debian, Ubuntu
$ sudo apt-get install python-virtualenv
//CentOS, Fedora
$ sudo yum install python-virtualenv
//Arch
$ sudo pacman -S python-virtualenv
```
For windows
```
> mkdir myproject
> cd myproject
> py -3 -m venv venv
```
## Step 2: Activating Virtual Environment
To install flask, firstly we need to activate virtual environment. To do that run the following commands.

For Linux
```
$ .venv/bin/activate
```
For windows
```
> venv\Scripts\activate
```
## Step 3: Installing Flask
After installing virtual environment, install the flask with the help PyPi. Run the following command after activating virtual environment.
```
(venv) $ pip install Flask
```
Now, Flask is installed. You may create web apps from it.

Read the full article
[Flask installation](https://techwithpie.blogspot.com/2022/03/install-flask-in-windows-linux-macos.html)
Empleos en Data y Analytics LATAM — Mar 2022 - II
Published: 2022-03-17 13:13:50

Te compartimos las ofertas laborales del mes para áreas de Data, Analytics y Cloud 👨‍💻👩‍💻.

✅[Data Analyst- WE EDUCACIÓN EJECUTIVA (Perú, Lima)]
(https://pe.indeed.com/ver-empleo?cmp=WE-CONSULTING-SAC&t=Convocatoria+talentos+we&jk=0cb1bb8eb5e4f775&q=Data+Analyst&vjs=3)
✅[Data Engineer- Modus Create (Colombia, Bogotá)]
(https://co.indeed.com/viewjob?jk=80829db9c1208a87&tk=1fubvnssku3ni800&from=serp&vjs=3)
✅[Data Scientist - BairesDev (Ecuador, Provincia de Manabí)]
(https://ec.indeed.com/viewjob?jk=d9464c3082365feb&tk=1fubvqnuf3oel002&from=serp&vjs=3)
✅[Machine Learning Analyst - Evalueserve S.A. (Chile, Valparaíso)]
(https://cl.indeed.com/viewjob?jk=68b4c3bab6b2d088&tk=1fubvtet1kf2l802&from=serp&vjs=3)
✅[Data Analyst - Willis Towers Watson (Mexico, Ciudad de México)]
(https://mx.indeed.com/viewjob?jk=7c32b5c7061a789b&tk=1fuc00usvt3pv800&from=serp&vjs=3)
✅[Data Engineer- Toptal (Bolivia, Santa Cruz)]
(https://www.linkedin.com/jobs/view/2748042263/?eBP=NotAvailableFromMidTier&recommendedFlavor=ACTIVELY_HIRING_COMPANY&refId=qff1NEgZYM8cNsvNSVVj8A%3D%3D&trackingId=JIOlZnals9gOOnmCWwqvzg%3D%3D&trk=flagship3_search_srp_jobs)
✅[Data Scientist - Outliant (Argentina, Buenos Aires)]
(https://ar.indeed.com/viewjob?jk=4b90ff0f7d3cd74a&tk=1fuc0407fu2ht802&from=mobhp_jobfeed)
✅[Machine Learning Analyst - Canonical - Jobs (Venezuela, Caracas)]
(https://ve.indeed.com/viewjob?jk=4058e4a3bc801054&tk=1fuc05j7fu23q800&from=serp&vjs=3)


Aprende, aplica y crece en proyectos de Data y Analytics en Cloud.

Visita nuestra página:
👉🌐 datahack.la
Ripple Commits 1 Billion XRP to Advance XRPL Projects
Tags: ripple, xrp, xrpl, xrplgrants
Published: 2022-03-17 13:02:44

Getting started on the [XRP Ledger (XRPL)](http://www.xrpl.org) should be easy, and scaling a project to real-world implementation shouldn’t be slowed by barriers to entry like capital, experience, and resource dependencies. 

That’s why Ripple is making a 1B XRP commitment to the [XRPL Grants program](https://xrplgrants.org/): to provide long-term resources to support global developer projects built on the XRP Ledger, and continued commitment to fostering this community and supporting their work. 

We saw an enthusiastic response from developers in the first two waves of the XRPL Grants program, with $6 million dollars distributed to over 50 open-source projects related to [NFTs](https://dev.to/ripplexdev/announcing-the-first-wave-of-xrpl-grants-1hf9) and [Federated Sidechains](https://dev.to/ripplexdev/announcing-the-xrpl-grants-wave-2-awards-1eoo) — [Wave 3](https://dev.to/ripplexdev/xrpl-grants-wave-3-theme-contributing-to-open-source-28ob) of the XRPL Grants Program is still [open for applications](https://xrplgrants.org/).

As an extension of the initial program, this 1B XRP will provide amplified financial, technical and business support to all kinds of developers — from those familiar with the XRPL to those new to the technology. The fund will be disbursed over the next two decades to developers eager to build and scale their apps from proof-of-concept to new businesses and use cases based on the XRPL. The fund’s programs are specifically designed to accelerate, train, mentor and scale projects developed by the XRPL community — now and in the future.

Providing the opportunity for any developer to join the XRPL community and leverage the features of this carbon-neutral, public blockchain — speed, cost efficiency, scalability — is a key driver behind these funds. Superior technical capabilities in combination with expert business support will allow developers to scale their apps from just an idea to a new business or use case on the XRPL.

The following goals are top of mind as Ripple moves forward:

- Accelerator program: A multi-month bootcamp that will provide projects on the XRPL with business and financial support, training and mentorship.
- Decentralized finance (DeFi): A program to support DeFi projects on the XRPL. 
- Diversity & Inclusion (D&I): A fund to work with university partners to build a pipeline of diverse applicants, as well as partnerships with organizations and affiliation groups supporting underrepresented communities in software development. 
- Sustainability: A program to address challenges related to sustainability, e.g. ESG NFTs, carbon credits tokenization.
- Expanded judging committee: Growing the panel of XRPL Grants program judges ​​to ensure diverse viewpoints and expertise when evaluating projects.

Visit [XRPLGrants.org](https://xrplgrants.org/) for more information on the XRPL Grants program, or check out the [XRPL explainer videos](https://www.youtube.com/playlist?list=PLJQ55Tj1hIVZtJ_JdTvSum2qMTsedWkNi) to learn more about the XRP Ledger.
Avalonia - Mobile is here
Published: 2022-03-17 12:59:09

Today I appeared on the famous [dotnet rocks podcast](https://www.dotnetrocks.com/?show=1785).

We discussed how Avalonia is gravitating from Desktop development to include Mobile development.

As promised I have readied some templates and documentation for those early adoptors to begin testing and discovering the new possibilities this brings to Avalonia.

I have put together the following to help you get started:

1. A sample application "[Wordle-onia](https://github.com/AvaloniaUI/Wordle-onia)"

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

This simple port of Wordle can run on Desktop, Browser, iOS and Android.

2. Dotnet templates to get you started easily.
 
```
dotnet new -i avalonia.templates
dotnet new avalonia.xplat
```

3. Some [documentation](https://docs.avaloniaui.net/tutorials/developing-for-mobile) to help you get started and understand how to use the templates.

Please remember although Avalonia is a production ready environment on Desktop, we are entering the early phases for mobile. We believe now is the time that you can see the true potential of Avalonia on mobile and the performance is demonstrably excellent.

However there is still work to be done ahead of our 11.0 release planned for early Summer.

As always if you have any issues with the docs or templates.

Please join us on our [telegram group](https://t.me/Avalonia) so we can resolve any issues.

Have fun! Dan


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xwmln98q1qkia8hcb1dn.png)
Everything you need to learn Polylith
Tags: clojure, opensource, polylith, architecture
Published: 2022-03-17 12:55:42

Polylith is a software architecture that applies functional thinking at the system scale. It helps us build simple, maintainable, testable, and scalable backend systems.

**What is Polylith?**

Polylith is a software architecture that solves some of the fundamental challenges in building backend systems. Those challenges are:

- It's difficult to share our code across teams and services
- We lack a shared language for communicating architectural concepts
- As our codebases grow, they tend to become a complex mess that is hard to change and test
- We try to mimic our complex production environments in our development environment
- Our systems take too long to test, build, and deploy

Polylith addresses these challenges by introducing simple, composable, LEGO-like bricks, which can easily be shared across teams and services. The choice of bricks determines what each artefact does and how it's exposed.

To make the development experience even more delightful, we've also built a tool which gives instant creation of the various building blocks, incremental tests (only test the code that's impacted by the last changes), and project visualization.

**What isn't Polylith**

- Polylith isn't a framework and does not come with ready to use functionality.
- Polylith isn't a library. 
- Polylith isn't a tool (but has tooling support for Clojure).
- What programming languages are Polylith for?

Polylith is language agnostic, and it should be possible to use it in almost any programming language. We in the Polylith team have only used it with the functional language Clojure so far, but there is nothing stopping someone from using it in a procedural language like C, or an object oriented language like Java. Even without tooling support, you will get most of the benefits.

**Where to begin?**

- If you learn faster with audio/visual presentations, then you can start by [watching the videos](https://polylith.gitbook.io/polylith/).
- If you would like to have quick visual overview of Polylith architecture, then check out [this map](https://beta.scrintal.com/b/polylith-architecture--9c4px). 
- If you want to jump straight into some code, then head over to the [Polylith RealWorld example app]( https://github.com/furkan3ayraktar/clojure-polylith-realworld-example-app).
- If you want to play around with the tooling support in Clojure, then head over to the [poly documentation](https://polylith.gitbook.io/poly).
- If you're feeling concerned about how a new architecture might affect your deployment setup, then read [Transitioning to Polylith](https://polylith.gitbook.io/polylith/conclusion/should-you-convert-your-system).
- If you prefer to start from the beginning, and take things at your own pace, then you're already in exactly the right place - just keep reading.
Go By Examples
Tags: go, beginners, programming, github
Published: 2022-03-17 12:41:34

Learning Go can be challenging when you are a full time developer especially if it is another language. 

Yet, the challenge can be fun at times. 

Go has a relatively small learning curve. This makes it easy to understand and start hands-on early. I got excited as 

It's a good idea to follow some tutorials along. 

[Go By Example](https://gobyexample.com/) is a place where most examples are in one place. 

Again it is a good idea to create a GitHub repo and follow along. 

[My Github repo](https://github.com/sumant1122/GoByExamples)

More things need to be added and more to be learned as I go along.
The Disruptive power of NPM developers for the Open Source brand
Tags: javascript, opensource
Published: 2022-03-18 11:37:55

---
title: The Disruptive power of NPM developers for the Open Source brand
published: true
date: 2022-03-17 12:01:35 UTC
tags: JavaScript,OpenSource
canonical_url: https://daniele.tech/2022/03/the-disruptive-power-of-npm-developers-for-the-open-source-brand/
---

How a ecosystem harms the FOSS brand around the world

The post [The Disruptive power of NPM developers for the Open Source brand](https://daniele.tech/2022/03/the-disruptive-power-of-npm-developers-for-the-open-source-brand/) appeared first on [Daniele Mte90 Scasciafratte](https://daniele.tech/eng).
How to Consume REST APIs using Python
Published: 2022-03-17 11:29:42

#### API
API stands for Application Programming Interface. 
API is an interface that acts as communication layer which makes two application talks to each other.

In order to build API, we use REST( there are other ways like GraphQL ) Architecture Style.

#### REST
REST stands for Representational  State Transfer.
REST is an architectural design style that facilitates communication between client and server in the network. 

In order to access resources from web services, a request is sent to a specific resource and response is expected.
* Resource is any data available in web service.
* Request sent is called HTTP request.
* HTTP is a protocol which governs how client and server communicate. 
* HTTP request uses special methods known HTTP methods to tell the API which action is needed to be performed.

#### HTTP Methods
* GET - retrieve an existing resource
* POST - create a new resource
* PUT - update an existing resource 
* DELETE - delete a resource
* PATCH - partially update an existing resource

#### Status Codes
Response from server is sent after client making request. This response comes with a code which provides the information about the it's results.

The following are common status codes:-
* 200 - OK
* 204 - No Content
* 400 - Bad Request
* 404 - Not Found
* 500 - Internal Server Error

#### API Endpoints
Referred as public URLs that are used to access resources in web services.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/98rzelu0t1azoctnmv03.jpg)
>Image Credit:[Rapid API](https://rapidapi.com/hub)

#### How to Use Python To Consume REST APIs
Use` requests` library
To start using it, install by using `pip` i.e. `pip install requests`

Take example of [Quotes](https://rapidapi.com/martin.svoboda/api/quotes15/) from Rapid API.

```
import requests
url = "https://quotes15.p.rapidapi.com/quotes/random/"
headers = {
    'x-rapidapi-host': "quotes15.p.rapidapi.com",
    'x-rapidapi-key': "b799b564e4mshe9022c63f6e7e49p12a6bbjsndfd08f1175da"
    }
response = requests.request("GET", url, headers=headers)
print(response.text)
print(response.json())
```

~ Here we start importing requests - a de facto library for consuming API.
~ We assign the endpoint - the actual API to variable url.
~ **_headers_** are extra information for each API call you can make. (don't worry - they come with API documentation)
~ Then, we pass the endpoint using request method in 
`response = requests.request("GET", url, headers=headers)` 
~ Then you can output using `text` or `json()` method.