teleren/devto huggingface dataset:
Happy 10th Birthday, Raspberry Pi!
Tags: raspberrypi, linux, python, programming
Published: 2022-02-28 22:24:05

Today is the 10th birthday of the Raspberry Pi! (sort of… it is not a Leap Year, so today is as close as it gets). 

---

<figcaption>Header image: a photo I took at the Horizons event by Imperica in May 2012, itself celebrating (then) 30 years of the ZX Spectrum, which <a href=“ https://andypiper.co.uk/2012/05/09/geekery-in-8-bits-and-more/“>I wrote about at the time.</a></figcaption>

---

I have been a Pi fan for many years - since before it was released, actually! It was more than ten years ago, in September 2011, when I met Eben and Liz Upton at an Open Source technology conference in Oxford. They were showing off some interesting new hardware: a credit-card sized circuit board called a “Raspberry Pi”. Eben went on to speak about the background to the project, and his passion to create an affordable computer that any child can own, learn to code, and build hardware projects. 

I made a video that day, showing the _pre-release_ board. It remains by far my most-watched YouTube upload!

{% embed https://youtu.be/TgR74Kp6Ws4 %}

The Pi was a huge additional validator for Linux, and also for growing the developer base for Python. The Open Source community quickly embraced the boards.

My main experience has been using the Pi in a variety of “Internet of Things” projects (my background is in the MQTT community). I’ve got a number of Pis around my house, for functions including acting as a bridge between smart home devices and Apple HomeKit [using HomeBridge](https://homebridge.io/); for self-education (see more about my Pi Cluster, below); as MQTT brokers and clients. My “bits box” is filled with Pi accessories and HATs (expansion boards) that I enjoy tinkering with and using for prototyping, much as I’ve been [pivoting to MicroPython and ESP32 more recently](https://dev.to/andypiper/series/16659).

{% embed https://dev.to/andypiper/building-a-compact-pi-cluster-1pia %}

Not only that, I’m a fan of all things Raspberry Pi, and wrote about the arrival of the Pico last year, as well - that definitely spurred my interest in MicroPython even further.

{% embed https://dev.to/andypiper/raspberry-pi-pico-getting-excited-about-the-smallest-things-km5 %}

So, Happy Birthday, Raspberry Pi! 🎂 and Thank You for helping to make software and hardware, coding and electronics, accessible to a much broader audience.

{% embed https://youtu.be/eiwm5TMHIy8 %}

I’m a volunteer moderator for the [#raspberrypi topic here on DEV](https://dev.to/t/raspberrypi), and I’ve taken the opportunity of this anniversary to spruce up the topic page. Feel free to use the topic tag when you’re sharing your learning experiences on Pi!

_What have you used the Pi for?_ I’d love to learn more, in the comments! 😁
Getting started with Docker
Published: 2022-02-28 22:22:58

Docker is an open source containerization platform where developers can package applications into containers. It is becoming more popular due to organization's shift to the cloud, simplifying delivery of applications. Containers make it so that applications can be easily deployed, patched, and scaled.You won't have to install any dependencies because the container will already have everything the application needs to run. Docker provides a single place to set up and manage containers simply and easily. 

## **Getting Started with Play With Docker**
First, you'll want to head over to the Docker site and create an account. After creating an account, head over to this [link](https://labs.play-with-docker.com/) and hit the green start button.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zxfb82nzg7izmznx7qel.png)
 From here, you can click the "ADD NEW INSTANCE" button on the left hand side to open up the sandbox. 
Now have a command line on Docker that you can play around with to open containers.

## **Connecting this to out NASA API project **
After creating a new instance, we need to clone the GitHub repo and cd into the new directory. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b89eadmqn9c5a9djjo2h.png)
Then we need to create a new file in this directory. This can be done with this command: `touch "dockerfile"`. 
Then we can edit this file by clicking the "Editor" button and searching for the new file. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xbx9gsk2yrsyt064ypp.png)
In the file, we can paste this code:

```
FROM node:10-alpine
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "/app/src/index.js"]
EXPOSE 3000
```
After adding the contents to this file, you can save it. What this does is automate commands that would need to be run in order to run the site like a script.

Now you can run `docker build -t todoapp .` (make sure to include the period)
Now you can create your containers using the command line. For example: `docker run -dp 3000:3000 todoapp`.
You can create as many containers as you want as long as you are using different ports. Otherwise, it will be overwritten.
Now to open the port, you can click the "Open Port" button and entering in the port number. Or if a button with the port number pops up, you can click that instead.
Additionally, you can run `docker-compose up` to run an entire app.
Congratulations, you have created a dockerfile for your container.

## **Images from NEWSAPI Microservice**
*This is the frontend of the NewsAPI microservice*
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hxo1pjij42oeti561q8w.png)

*This is the backend of the NewsAPI microservice*
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lh14xzpeviuci5ckv19a.png)
Instalando Python - Iniciantes
Tags: python, beginners, programming, codenewbie
Published: 2022-02-28 22:06:32

{% youtube https://youtu.be/_H4bqXvXV9U %}

## Processo de instalação

1. Instalar a linguagem Python
2. Instalar o Visual Studio

## Instalando Python

- No seu browser (Chrome, IExplorer, Firefox, ....) vá para o site [Python](https://www.python.org/), clique em Downloads e baixe a versão do seu sistema operacional

![article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9slz10ksvt3oi0ag3l2y.JPG)

- Execute o executável e selecione a instalação _avançada ou customizada_ com as seguintes opções:

![article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/brkmn18sk9vpwnrkg6w2.JPG)

- Verifique no terminal do Windows se o *Python* foi instalado com sucesso, com o comando _python --version_:

![article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n4v83vnc2dew2dhnj83l.JPG)

## Instalando Visual Studio Code

- Visite o site do [Visual Studio Code](https://code.visualstudio.com/Download) e faça o download da versão do seu sistema operacional:

![article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1rgor0abevlz8euj7z8.JPG)

- Execute o arquivo executável e instale no seu computador!

- Crie o seguinte arquivo _hello.py_, adicione o código da figura abaixo e execute clicando no canto direito superior o botão de *play* ou *run code*:


![article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dca5x6c2uysfiqkqq742.JPG)

Caso o botão não esteja disponibilizado, é necessário instalar a extensão Python no seu Visual Studio através do menu de extensões no canto esquerdo da tela:


![article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ge5ivm4lyiiun4hqmd1y.JPG)

Dúvidas? Deixe nos comentários!
Divirta-se!

## LINKS

[Conceitos Iniciais #01](https://dev.to/jcarlosvale/aprendendo-a-programar-conceitos-iniciais-01-2ecf)
Chapter II. The enemy of my enemy is my friend. 
Tags: programming, prolog
Published: 2022-02-28 22:04:27

The first "application" which I wrote completely myself ;) It depicted the political situation just before WWII from Polish perspective and results are ... quite accurate. 
[https://github.com/drekzt/Prolog/blob/main/wrog_przyjaciel.pro](https://github.com/drekzt/Prolog/blob/main/wrog_przyjaciel.pro)
SmartGoals - Building a reliable application with Azure Services
Tags: azuretrialhack, dotnet, angular, azure
Published: 2022-02-28 21:53:29

## Table of Contents
1. [Motivation](#motivation)
2. [Overview of My Submission](#overview-of-my-submission)
3. [Functionalities](#functionalities)
4. [Infrastructure Architecture & Technologies](#infrastructure-architecture-and-technologies)
5. [Link to Code on GitHub](#link-to-code-on-github)

## Motivation 
**SmartGoals** project was created to participate in the [Microsoft Azure Trial Hackathon](https://dev.to/devteam/hack-the-microsoft-azure-trial-on-dev-2ne5) and to show the process of integrating an application in the Azure ecosystem.

## Overview of My Submission
The main idea on which this project is created can be found in [this file](https://github.com/AlexandraFolvaiter/smart-goals/blob/main/CONCEPTS.md).

**SmartGoals** aims to do the management of the goals and objectives that a person has, giving the opportunity to be accessible anywhere by any device. The user can update them as often as needed, keeping the progress and having an overview of the next steps that he has to make in order to complete the goal.

## Submission Category
**SmartGoals** is participating to Microsoft Azure Trial Hackathon in **Computing Captains** category.

## Functionalities
A user can:
- View all goals
- Add a new goal
- Edit an existing goal
- Remove an existing goal
- View the details of a goal
- View all the objectives
- Add a new objective
- Edit an existing objective
- Remove an existing objective

The functional demo can be found here:
{% youtube klh__CPJjwY %}

## Infrastructure Architecture and Technologies
The application is based on 3 components:

- **A Client** - Is an Angular application deployed on a **Azure App Service**. It allows users to see and manipulate the goals and objectives using a friendly UI.
- **An API** - Is an .Net 6.0 Azure Function deployed on a **Azure Function App**. It exposes an API with CRUD operations to manipulate the goals and the objectives.
- **A Database** - Is a **Azure SQL Database** which stores the data.

The demo for the infrastructure can be found here:
{% youtube pi5paErwZIA %}

## Link to Code on GitHub
The code of the project was added on GitHub. Please check it out to see more details.
{% github https://github.com/AlexandraFolvaiter/smart-goals %}

For the next 30 days, the application can be found [here](https://smart-goals-app.azurewebsites.net) and the API can be accessed [here](https://smartgoalsdemo.azurewebsites.net/api/swagger/ui).
Appendix: Storage Services - AWS Certified Cloud Practitioner Study Guide
Published: 2022-02-28 21:47:03

[AWS Backup](https://aws.amazon.com/backup/?whats-new-cards.sort-by=item.additionalFields.postDateTime&whats-new-cards.sort-order=desc)
- Centralize and automate data protection across AWS services and hybrid workloads
- Fully managed, policy-based service that further simplifies data protection at scale

[Amazon Elastic Block Store (Amazon EBS)](https://aws.amazon.com/ebs/)
- Easy-to-use, scalable, high-performance block-storage service designed for Amazon Elastic Compute Cloud (Amazon EC2)
- Multiple volume types: general purpose, provisioned IOPS, throughput optimized, cold

[Amazon Elastic File System (Amazon EFS)](https://aws.amazon.com/efs/)
- Serverless elastic file system
- Create and configure shared file systems for compute services
- Automatically grows and shrinks as files are added and removed

[Amazon S3](https://aws.amazon.com/s3/)
- Object storage service offering industry-leading scalability, data availability, security, and performance
- Multiple storage classes for cost optimization
- Integration with many other AWS tools

[Amazon S3 Glacier](https://aws.amazon.com/s3/storage-classes/glacier/)
- Long-term, secure, durable storage classes for data archiving at the lowest cost and milliseconds access
- Three archive storage classes (high to low speed/cost): Instant Retrieval, Flexible Retrieval, and Deep Archive

[AWS Snowball Edge](https://aws.amazon.com/snowball/?whats-new-cards.sort-by=item.additionalFields.postDateTime&whats-new-cards.sort-order=desc)
- Petabyte-scale data transport with on-board storage and compute capabilities
- Edge computing, data migration, and edge storage device 
- Storage Optimized and Compute Optimized versions

[AWS Storage Gateway ](https://aws.amazon.com/storagegateway/)
- Set of hybrid cloud storage services that provide on-premises access to virtually unlimited cloud storage
- Enables on-premises applications to use cloud storage by providing low-latency data access over standard storage protocols
- Local cache stores your most recently used data on premises
FIx: 'Main thread Panicked at...' Error when compiling rust (.rs)
Tags: rust, programming, cargo, beginners
Published: 2022-02-28 21:30:09

## Initial Error: failed to run custom build command for `hidapi v1.2.7`
The Error experienced is unique to me and i didn't seem to see any solutions that helped, so after digging through the documentation i encountered a solution that helps and decided to write about it. I hope it helps you.

I encountered this error while compiling a rust program using the rust package manager

![Terminal input](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qrbj9ukbnocx7lpuott2.png)
`Current Os: Pop os`
The terminal command
`cargo install --git https://github.com/project-serum/anchor anchor-cli --locked`

Following the error message, I traced the issue to a missing package not included in the dependecies: libudev

Traced Error:
` --- stderr
  thread 'main' panicked at 'Unable to find libudev: "pkg-config" "--libs" "--cflags" "libudev" did not exit successfully: exit status: 1
  --- stderr`

## How to fix error
Type the command
`sudo apt-get install libudev-dev`

In your terminal navigate to the directory
`cd /home/prince/.cargo/registry/src/github.com-1ecc6299db9ec823/hidapi-1.2.7/`

open the file using 
`code Cargo.toml`
or 
`nano Cargo.toml
`
Add the following code snippet and save
`[dependencies]
libudev = "0.3"`

Try to recompile the codebase. Hope this helps
Get user followed/unfollowed count of last 24 hours from Twitter using Tweepy with python.
Tags: tweepy, python, twitterapipython, django
Published: 2022-02-28 21:22:09

How can I get user followed/unfollowed count of last 24 hours from Twitter using Tweepy with python. I have essential access of twitter api v2. I have read the tweepy documentation but there is no query of filter follow/unfollow count from last 24 hours.
Oh-Vue-Icons: Icons Library like 'react-icons' for Vue Project
Tags: vue, productivity, javascript
Published: 2022-02-28 20:58:07

****A Vue component for including inline SVG icons from different popular icon packs easily.


Full Documentation here:
https://github.com/Renovamen/oh-vue-icons


**Stay ✌ Blessed,**
`Mr. Paul Ishaili`
Appendix: Networking and Content Delivery Services - AWS Certified Cloud Practitioner Study Guide
Published: 2022-02-28 20:50:23

[Amazon API Gateway](https://aws.amazon.com/api-gateway/)
- Fully managed service that to create, publish, maintain, monitor, and secure APIs
- Create RESTful APIs and WebSocket APIs
- Supports containerized and serverless workloads, as well as web applications
- Handles traffic management, CORS support, authorization and access control, throttling, monitoring, and API version management

[Amazon CloudFront](https://aws.amazon.com/cloudfront/)
- Content delivery network (CDN) service built for high performance, security, and developer convenience
- Delivers data through 310+ globally dispersed Points of Presence (PoPs) with automated network mapping and intelligent routing
- Use AWS Shield Standard to defend against DDoS attacks at no additional charge

[AWS Direct Connect](https://aws.amazon.com/directconnect/)
- Create a dedicated network connection to AWS
- Network traffic remains on the AWS global network and never touches the public internet
- With AWS Direct Connect SiteLink, send data between AWS Direct Connect locations to create private network connections between offices and data centers in global network

[Amazon Route 53](https://aws.amazon.com/route53/)
- DNS service
- Routes traffic based on multiple criteria, such as endpoint health, geographic location, and latency
- Configure multiple traffic policies and decide which policies are active at any given time
- Create and edit traffic policies using the visual editor in the Route 53 console, AWS SDKs, or the Route 53 API
- Traffic Flow’s versioning feature maintains a history of changes to your traffic policies

[Amazon VPC](https://aws.amazon.com/vpc/)
- Define and launch AWS resources in a logically isolated virtual network
- Full control over your virtual networking environment, including resource placement, connectivity, and security
Nevertheless, Lucia Coded in 2022
Tags: wecoded, leadership
Published: 2022-02-28 20:15:13

I'm really happy Dev.to is making itself a platform for women in tech to share their experiences -- and I'm double-happy that it's also become a fundraiser for [Girls Who Code](https://girlswhocode.com/) this year. 

 I'm a [developer](https://luciacerchie.dev/), _and_ (not 'but') I'm also a woman, a mom, and a [haiku-writer](https://j4rola.github.io/haikus/).

Content-- tweets, posts, podcasts, and projects -- is also really important to me, because what I consume affects how I think. It's really important to me that I "lift as I climb", and in turn create my own readable and broadly understandable content. So, I'd like to write my post about people who have inspired me by their inherently welcoming content. I'm going to point out who they are, and how they've helped me. 

So here goes.

## The Folks at [Virtual Coffee](https://virtualcoffee.io/) 

The Virtual Coffee community is incredibly welcoming and kind to those who are new to tech. In particular, there are a couple members that I'd like to thank for their consistently uplifting content.

[Bekah Hawrot Weigel](https://bekahhw.github.io/)

Bekah's content is open and honest. Because I read her content -- on everything from [Tensorflow](https://dev.to/bekahhw/tensorflowjs-101-working-with-models-and-tfhub-4o56) to [the effect that trauma had on her journey into tech](https://dev.to/bekahhw/i-came-into-tech-via-trauma-4ea0) -- I feel empowered to share my own struggles and express empathy to others.

[Ayu Adiati](https://adiati.com/) 

Ayu has amazing content surround blogging and git, and her learn-in-public attitude inspires me! 

Here's one of her articles on [how to fetch a branch from the upstream to the local repo](https://adiati.com/git-how-to-fetch-a-branch-from-the-upstream-to-the-local-repo-in-5-steps).

## [Cassidy Williams](https://cassidoo.co/)

Cassidy Williams takes true joy in her work, and it's infectious in the content she creates. 

If you haven't subscribed to Cassidy's [newsletter](https://cassidoo.co/newsletter/) yet, I encourage you to! I truly enjoy it, especially the weekly coding challenge that she features. Her encouraging responses, even when I've not been able to finish the challenges, have meant a lot to me. 

## The [LadyBug Podcast](https://www.ladybug.dev/about) Crew

[Sidney Buckner](https://www.sidneybuckner.com/), [Ali Spittel](https://alispit.tel/), [Kelly Vaughn](https://www.kvlly.com/), and [Emma Bostian](https://www.compiled.blog/) make up the Ladybug Podcast members. Their podcasts are not only clear and informative, solidifying the basics in the broad topics they cover, but they've been inspiring to me in that the hosts, who I look up to in terms of technical expertise, are comfortable admitting what they don't know (and that's the starting point to knowing more!). You can listen to their [latest podcast](https://www.ladybug.dev/episodes) to see what I mean.
How to read documentation
Tags: discuss, programming, productivity
Published: 2022-02-28 18:27:02

I recently started a new job. There are a few technologies that I haven't had the opportunity to work with, or work as deeply with as I have wanted to. There has been a lot of time spent reading docs.

I want to share with you how I get the most out of my time spent learning a new technology by reading their documentation. There are definitely other good ways to learn, and I do those too, but I want to share how I read docs.

## First, I find good resources

Sometimes the primary source isn't great. Sometimes it is and that is very fortunate. Luckily for my I've been diving more deeply into gRPC, Protocol buffers, Redis, and Stripe; all of which have fantastic documentation.

## Second, I Read

1. I put on brown noise, pretty loudly. Preferably on headphones.
[12 hrs of brown noise](https://open.spotify.com/episode/3pE4uKFwCzd5TA2A6t4rHr?si=b80be0b265194bed)

2. I get the lighting in the room relaxed. I find too dark I am sleepy, too bright I am distracted.

3. Whenever possible (some websites can't be formatted to this), I use the Firefox reader.
![Firefox Screenreader example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bs7f4p7okguzndpy7ps6.png)

4. I work in 50-minute Pomodoros with 10-minute breaks, giving myself a physical break in-between reading sessions. For these pomodoros, I require myself to stretch, or do a quick yoga.

5. I use notion to take notes
![Notion Organization of Notes](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a0srw00swqst144hdyul.png)
I take notes on what I'm learning; what's new, or what is fascinating. I wrote down questions. I take traditional style school notes. I add links for things I will likely want to reference again later. I take screen clippings.
![Notes Example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/waygh4tdqo0q3k0djzvm.png)
 
## Lastly, revisit

Too often for me the time spent learning is apart from the time spent putting into practice. So it's important for me to take 10-15 minutes every once in a while and review what the heck I just did. This will keep things fresh enough for me come the time to do the work.
Eleventy-lab
Published: 2022-02-28 19:32:48

## Starting

The first thing I did was make a new local directory using the `mkdir` command. Then `npm init -y ` is used to create a blank starting file. One video I found that was really helpful guided me through a lot of this lab: https://www.youtube.com/watch?v=-dM6AmNmMFA&list=LL&index=2. Additional last of the syntax and command help I also found here: https://www.11ty.dev/docs/getting-started/

for some reason at the time of posting this I keep getting an odd error that doesn't let me upload to the local host website:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5oz0icq111m7vzf4k3sc.png)

But anyway once you install the plugin and and input your information for your post:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ns3p3zy75orzhgfyk8b9.png)
you use the commands `npx @11ty/eleventy` to upload the files, `nix @11ty/eleventy --serve` to publish to a server then go to http://localhost:8080 to view your post.