teleren/devto huggingface dataset:
Enhance FreeRTOS with Luos: Allow you to develop your projects using microservices
Tags: opensource, microservices, tutorial, luos
Published: 2022-05-05 15:57:56

If you're used to develop your embedded system with FreeRTOS, you can leverage Luos features without changing the way you design your system. 
⏩ https://docs.luos.io/tutorials/freertos/intro

Indeed, Luos fits well with FreeRTOS and this tutorial aims to help you setup your project.
How To Use GitLab Flow In GitLab Project | GitLab Tutorial For Beginners | Part IV
Tags: beginners, tutorial, devops, git
Published: 2022-05-05 15:50:47

Learn how to utilize the environmental branch variations to implement the GitLab Flow in the GitLab project.
Start FREE testing. [Start FREE Testing](https://accounts.lambdatest.com/register?utm_source=devto&utm_medium=organic&utm_campaign=may05_sb&utm_term=sb&utm_content=tutorial_video)!

Integrate GitLab with LambdaTest: [https://bit.ly/2Y3ke3R](https://bit.ly/2Y3ke3R)


We have already seen the two variants of GitLab Flow, i.e., the environmental branch and the release branch in the previous video of this GitLab series. In this part of GitLab Tutorial for Beginners, Moss(@tech_with_moss), a DevOps engineer, utilizes the environmental branch variants to help you learn how to apply GitLab Flow to the GitLab project. Further, you will learn to create and close an “issue” within the project and understand how to use git commands like “git push,” “git pull,” “git checkout,” “git commit,” and “git branch.” By the end of this video, you will know how to sync changes between local and remote Git repositories, create merge requests, gain familiarity with the components of the merge request, and more.

You will learn -:
🔸 What is Git push?
🔸 How to use Git push?
🔸 What are Git commands?
🔸 What is Git commit and push?
🔸 How to implement GitLab Flow?
M1 for Software Engineer / DevOps
Tags: m1, apple, devops
Published: 2022-05-05 15:29:20

## TL;DR;
After 3 years I returned to macOS. And first full-time ARM-based laptop

## The problem with M1

In Monterail more devs started using Macbooks with M1 chips. I noticed many problems could be solved very easily, but you should be familiar with M1. So I decided to move my entire workspace from Windows 11 to macOS with M1. Now I could help anyone in the team, without using a spare laptop. And I know the feeling to handle issues on M1. 

M1 has many pros and some cons. For web/mobile developers in the first days of the premiere of M1, have a lot of issues. Libraries not working, there is a problem with Java, etc. But now everything works if you have a good project setup (building and releasing from the cloud, dockerized dev env). During the past year, many libraries/languages added native support for M1 :tada:


## Why 2 years ago I switched to Windows

When I saw commercials for Surface 7 Pro. I thinking about working on that kind of tablet slash PC! Good battery life, WSL2, a lot of good stuff. I discovered that WSL2 in daily work as Software Engineer is very painful at the beginning. You have problems with dependencies, running GUI (you need to create a bridge between HyperV and your host through XServer). And handling requests, running dev servers, etc. Same story with M1 now. But I thinking about it as a challenge because I'm Software Engineer and this is the only tool :D. The portability of a 12inch tablet always wins and gives me freedom in return. Better than a 13inch MacBook with intel :) Running docker containers, and very demanding apps was not a problem. Surface 7 Pro was fully optimized to work on Windows, that's why it working like a charm.

## My point of view

Am I regretting moving from Windows 11 to macOS with M1? No. Longer battery life, very stable setup. If you are DevOps, gear doesn't matter, you should only think about terminal :see_no_evil: If you can connect to a server, use your browser. That's great :) I'm glad that I could help anyone in the team to configure M1, and remove burden in projects to create better stuff

## Last thoughts

If you consider using M1/M1 Max as Software Engineer or DevOps, and you have experience. You could create workarounds, handle problems, delegate some tasks to the cloud. I think this is a similar case to Raspberry Pi. If you have a problem with dependency you have options, you could recompile on ARM and problem solved. 

Battery life and editing 4K videos are the best things in M1.  I truly recommend M1 for experienced Devs, I hope next month brings more support for this platform :) 


---

Watch this on my YouTube channel: https://www.youtube.com/watch?v=Yhm2gcYBnKI
Are you a Mac, Windows or Linux user?
Tags: webdev, programming, productivity, discuss
Published: 2022-05-05 15:37:49

Are you a Mac, Windows or Linux user?

Me: #Linux ❤️‍🔥
 
[![Ubuntu Users vs Windows vs Linux users](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n40zn0j81755gyav57s2.png) Vote Now!](https://twitter.com/BhBishwas/status/1522568367030296577)!
Using Prowler to Audit your AWS account for vulnerabilities.
Tags: opensource, kcdchennai, devops, aws
Published: 2022-05-05 15:35:58

Few days ago I came across this [repository](https://github.com/toniblyx/my-arsenal-of-aws-security-tools) and I found [Prowler](https://github.com/prowler-cloud/prowler)(Go Star the repo).

## So what is Prowler?
_Prowler is an Open Source security tool to perform AWS security best practices assessments, audits, incident response, continuous monitoring, hardening and forensics readiness. It contains more than 200 controls covering CIS, PCI-DSS, ISO27001, GDPR, HIPAA, FFIEC, SOC2, AWS FTR, ENS and custom security frameworks._

I was pretty amazed by the tool, the first time I ran it using podman I did have some issues because I had containerized aws-cli too, so I had to use environment variables and I also had to map the user as such
```
podman run --rm -it --user 0:0  --env AWS_ACCESS_KEY_ID=DEMO --env AWS_SECRET_ACCESS_KEY=Demo  -v $(pwd)/prowler_output:/prowler/output:z prowler  -f ap-south-1  -r ap-south-1  -M html,csv
```
The reporting part is also pretty cool, Prowler took about 35 minutes to run almost 217 checks in a single region.

![Prowler Checks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6w0e3odapkfrecn78to1.png)


With Prowler there are a lot of things that can be further checked. I was able to see instances that had hardcoded secrets, there are checks done on Bucket Policy, IAM access, VPC routes and a lot more.

Apart from this, it also, gives you the instance ID, and AWS support articles with possible fixes and remediation column to provide the details, you can output it to CSV and run filters to further get detailed info. It will also tell you why it is bad when it finds similar things. Prowler also guides you to enable additional security stuff.

I'd definitely recommend this opensource tool to audit your AWS account to fix security issues.

As always, if you find these articles interesting please leave a like.
I'm also available for freelance Devops roles, my LinkedIn is in the Dev.to bio.

For further discussions, please reach out [@mediocreDevops](https://twitter.com/mediocreDevops)

Thank you for reading!
never skip steps.
Published: 2022-05-05 15:26:59

I for one, have had a lot of trouble learning some things. Meaning I have some type of atention deficit or something of the sort.. - I'm not blaming the time I took to become an OK engineer, but the numbers are there. 

Perhaps what I think the issue at hand, is that whoever is teaching, shouldn't skip any steps.
For example:
I am currently developing in a whole new stack and obviously I need to know how it works. - but people think that just because you know some other language or technology, that you know how things work "under the hood". 
this happens, but isn't always the case. 

In many cases, people who know how it works don't know how to teach it. - or, when they do, they partially inform you of what you MUST know. That's when you need to speak up! - 1st year programmers tend to leave it to adventuring and google and Stack Overflow, and, don't get me wrong, they're all great source of learning. But one thing a new Dev should DEFINITELY make sure they practice over and over again, is how fast they're getting tasks dealt with. And again, I don't mean that you must become the fastest Dev alive, I mean you should be able to learn how to make a great job, in less time than you usually take (ex: my first jobs i took months to deal with things that today would take me a week).

Anyhow, the thing is, learn how to speak up. YOU have a RIGHT to be confused or not know what it is that you need to learn. that's what you're there for. learn how to ask, learn how to let them know you still need their supervision on a certain task.
It's happening! 🤩 The Upstream agenda ✨
Tags: opensource, devops, maintainers
Published: 2022-05-05 15:00:39

---
title: It's happening! 🤩 The Upstream agenda ✨
published: true
description: Join us June 7 for our free virtual gathering to celebrate open source, the developers who use it, and the maintainers and contributors who create it.
tags: opensource, devops, maintainers
//cover_image: https://direct_url_to_image.jpg
---

<p><a href="https://upstream.live/2022/register?utm_source=devto&utm_medium=blog&utm_campaign=upstream22">Upstream</a> is just a month away, and we are so excited. Join us June 7 for our free virtual gathering to celebrate open source, the developers who use it, and the maintainers and contributors who create it. A theme we are exploring this year: When it comes to making open source work better for everyone, what do we owe each other?&nbsp;</p>
<p>We are delighted to announce the preliminary agenda today. We’ve already told you about our amazing keynote speakers: Aeva Black of the Azure Office at Microsoft, Deb Bryant, and John Mark Walker of Fannie Mae. But in addition to these awesome keynoters who will be anchoring the day, take a peek at this line-up:</p>
<ul>
<li aria-level="1">Amanda Casari of the Google Open Source Programs Office will share how to build better contributor documentation ACROSS open source.</li>
<li aria-level="1">Nancy Gariché, a senior developer advocate for the GitHub Security Lab, will discuss a maintainer-first approach to open source security.</li>
<li aria-level="1">David Burns, of the open source program office at BrowserStack, will explain why you’re probably running your OSPO wrong—and how it’s not your fault.</li>
<li aria-level="1">Josh Simmons will host a panel discussion on what it means to be a good open source citizen, featuring Al Gillen of IDC, Alyssa Wright of Bloomberg, and Duane O’Brien of Indeed.</li>
<li aria-level="1">And loads more awesome talks!</li>
</ul>
<p>You can check out the full agenda <a href="https://upstream.live/schedule?utm_source=devto&utm_medium=blog&utm_campaign=upstream22">here</a>, but keep in mind that we are still adding a few talks and the day will continue to get even more awesome. <a href="https://upstream.live/2022/register?utm_source=devto&utm_medium=blog&utm_campaign=upstream22" rel="noopener" target="_blank">Register for the event for free here</a>.</p>
Run Logic App workflow using postman
Tags: azure, devops, postman
Published: 2022-05-05 14:47:08


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


In our previous [blogpost ](https://dev.to/rakesh_suryawanshi/get-logic-app-workflow-using-rest-api-postman-5872) I have shared How Get Logic App workflow details using postman in this blog I am going share a simple code which you can use to trigger logic app workflow from postman or REST API.

In our last blog we have created postman collection we are going to use the same here and add new request to the collection

`https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{logicAppName}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflowName}/triggers/{triggerName}/{action}?api-version=2018-11-01`

Here in this case:

- subscriptionId : Azure subscription Id
- resourceGroupName : name of the resource group in which logic app is created.
- logicAppName: logic app name.
- workflow name: logic app workflow name, one logic app can have multiple workflow 
- triggerName: name of the trigger type of your logic app workflow (e.g.: Recurrence)
- action: run

trigger name for the workflow you can find on the dashboard of the logic app


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

Once you have all this information you can simply trigger the logic app workflow from postman.


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

Here is the result:


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

That's it really, this a simple example of how to use postman to run the logic app workflow.

In the next blog I will discuss how to use specflow for testing logic app, till then please follow me here on dev.to.

You can also follow me on [medium blog](https://rakesh-suryawanshi.medium.com/)!!

I also have my YouTube channel please subscribe!! to my channel there.

{% youtube 6DZnydHPJPc %}
How to Access Rails ActiveRecord Models Inside a Rake Task
Tags: rake, ruby, rails
Published: 2022-05-05 14:07:21

If you've been working with Ruby on Rails for a while, you've come across [Rake](https://github.com/ruby/rake). Written by the late Jim Weirich, Rake is to Ruby what Make is to C. It's very easy to create custom Rake tasks to simplify your development workflows. Rails even provides a generator (`rails g task`) to create them for you. 

However, one question that many new Rails developers (including myself) have when learning Rails is **how to access the Rails environment in a Rake task**, which is very useful for accessing the ActiveRecord models or performing database queries. This article shows how to do it.

### TL; DR 

Add the `:environment` task as the dependency for your custom task. 

```ruby
task count_users: [:environment] do
  ...
end
```

### Long Answer

Here's a simple Rake task that tries to use an ActiveRecord model named `User`

```ruby
# lib/tasks/transport.rake

desc "count the number of users in the system"
task :count_users do
  puts User.count
end
```

If I try to run this Rake task as it is, Rails will throw a `NameError`, as it doesn't know what the token `User` refers to. 

```bash
bin/rails count_users
rails aborted!
NameError: uninitialized constant User

  puts User.count
       ^^^^^^^^^^^^^^^
```

To make the ActiveRecord models available in the Rake tasks, we need to tell Rails to load the environment before running the task. This is similar to what happens when you launch the Rails console. Loading the Rails environment gives access to the ActiveRecord models, database, and much more. 

Rails provides an `:environment` task to load the environment. In Rake terminology, your task is *dependent* on the `:environment` task, as it must be performed before your task. 

```ruby
# lib/tasks/transport.rake

desc "count the number of users in the system"
task count_users: [:environment] do
  puts User.count
end
```

Now you can access the `User` model in the rake task without any errors.
How many interviews do you take per week or per day or per month?
Tags: discuss, anonymous, career
Published: 2022-05-05 13:57:47

_This is an anonymous post sent in by a member who does not want their name disclosed. Please be thoughtful with your responses, as these are usually tough posts to write. Email sloan@dev.to if you'd like to leave an anonymous comment or if you want to ask your own anonymous question._

***

In my company we are taking around 6-8 interviews per week (20-30 mins each).

This is because we are facing a resource shortage in our company because of the covid situation, I think. 

Is it normal for a software engineer to take this many interviews + the daily work or is it just for me? I think taking interviews is a task/job in itself it is not a side job that one can do with their main work. What do you think?
Why your browser is becoming an OS
Tags: webrtc, discuss
Published: 2022-05-05 13:31:23

The operating systems of old, the Mac OS, Linux, and Windows, have noticed much change in how users understand their utility, but not how one would expect. While these operating systems are still necessary to operate the machines themselves, the way we use them is changing dramatically.

**This blog was originally published [HERE](https://blog.neverinstall.com/why-your-browser-is-becoming-an-os/)**.

## An unending ocean of web applications

Where once the internet was a collection of static documents, forms, and rudimentary HTML websites, it has now become a universe of applications that rely not on the OS but on the browsers’ capabilities. With the advent of web apps, developers are now creating OS-agnostic products in a bid to provide cross-platform accessibility. Consequently, the reach of products has now increased manifold, dependent more on internet accessibility than on the user's hardware.

Consider apps like [Android Studio](https://developer.android.com/studio), [Slack](https://slack.com/), and even the browser itself, such as [Chrome](https://www.google.com/intl/en_us/chrome/), that leverage cloud computing to run their resource-intensive selves over the browser, reducing hardware dependency and barriers to productivity.

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

Moving toward a more profound user experience, consider [Neverinstall](https://neverinstall.com/spaces/devtools). We have developed a solution that helps developers, designers, and other typical desktop users move their digital workspaces to their browsers. Limited by hardware and even lower internet bandwidth, desktop users often felt restrained when learning new languages, software or skills. This is where we found a gap in the market for a solution that could help deliver the capabilities of a full-fledged operating system over the cloud. 

![gif](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hccgl9f6yfkxpex6xcxf.gif)

Neverinstall runs machines in a cloud-native environment and streams any GUI application to the users' desktop, handling the heavy lifting on our physical servers.

## Setting the golden standard

A browser running apps is now becoming the norm. The multiplatform approach of web apps, coupled with the mutability of browsers, is helping everyone from the everyday Joe to Wall Street and even Uncle Sam find a use case for the future of browser-focused computing. It simply doesn’t matter what machine the user prefers. We now have a browser on our phones, ‘smart’ televisions, and even refrigerators. If there is a browser, the application will work.

And that is the beauty of a browser becoming an OS. A move toward computing independence, free from the bounds of machines, governed by today's software instead of yesterday's hardware.
I just graduated from college as a software developer but now i feel exhausted
Published: 2022-05-05 13:17:32

Hello world! I am just graduated this April and have been working as a web developer since 2020, mostly working remote due to Covid-19. I just moved to office recently but feeling really exhausted. Day by day i just working common tasks like write some APIs or create some UIs and i feel like my boss and co-worker underestimate me by the way they mocking me every day at work. Also i worked in a small country that have really low salary (mine about 5000$/year). Recently i really tresses out because i don't feel that my effort on work got paid me enough and I want to find a better path like doing freelancing or working for global companies to having better experiences and better income. Where should i started?
Scripting LCD on Wio Terminal with ArduPy
Tags: python, micropython, arduino, iot
Published: 2022-05-05 13:09:40

One of Wio Terminal key features is the LCD display. It can be used to provide a graphical interface for your device. In this tutorial I'll go over using the LCD in MicroPython with ArduPy.

![Wio Terminal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rncc7ihn1kyzrjse4dd.jpg)

To get ArduPy running on Wio Terminal we have to flash it with latest ArduPy build. It's described on wiki and in short it's like so:

* Enter bootloader mode by pressing the power button down two times quickly - this will mount Wio Terminal like if it was a flash drive
* Copy the UF2 ArduPy file - the device will reconnect shortly in ArduPy mode

Optionally you can install aip on your local machine. This tool can help managing Wio Terminal, especially for ArduPy.

Now for the LCD there is a reference of the module: https://wiki.seeedstudio.com/ArduPy-LCD/ - which we can use to draw text, geometric shapes or even simple graphics (assuming we handle low memory limitations of the microcontroller):

{% embed https://www.youtube.com/watch?v=V2HEixsN-cw %}

{% embed https://www.youtube.com/watch?v=keZ_DgEFq2w %}

**Code and more details on:**

> **https://rk.edu.pl/en/scripting-lcd-on-wio-terminal-with-ardupy/**
7 killer JavaScript One-Liners You Must Know 😎😎
Tags: javascript, beginners, programming, tutorial
Published: 2022-05-05 13:08:58

top 7 best killer javascript one liners that you must know in your code journey

**Generate random string**

if you will ever need a temporary uniques id for something, this is one liner will generate a random string for you

```
const randomString = Math.random().toString(36).slice(2);
console.log(randomString)
```

**extract domain name from an email**

you can use the substring() method to extract the domain name of the email

```
let email = 'admin@ashishdonga.me';
let getDomain = email.substring(email.indexOf('@') + 1);

console.log(getDomain)
```

**detect dark mode**

with this one linera you can check if the user is using dark mode and then you can update some functionality according to dark mode

```
const isDarkMode = window.matchMedia && 
window.matchMedia('(prefers-color-scheme:dark)').match;
```

**check if an element is focused **

to detect if the element has the focus in javascript, you can use the read only javascript property activeElement of the document object

```
const elem = document.querySelector('.text-input')
const isFocus = elem = document.activeElement;
```

**Redirecting User**

you can redirect the user to any specific URL using Javascript

```
const redirect = url => location.href = url
```

**check if a variable is an array**

you can check if any variable is an array or not using the Array.isArray() method

```
let fruit = 'apple';
let fruits = ['apple','banana','mango','orange','grapes']

const isArray = (arr) => Array.isArray(arr)

console.log(isArray.fruit); // false
console.log(isArray.fruits); //true
```

**check if an array is empty**

this is one liner will let you know if an array is empty or not

```
let arr1 = []
let arr2 = [2,4,6,8,10]

const arr1IsEmpty = !(Array.isArray(arr1) && arr1.length >0);
const arr2IsEmpty = !(Array.isArray(arr2) && arr2.length >0);

console.log(arra1);
console.log(arr2)
```

read more

[**12 javascript pro snippet codes for everyday problems**
](https://dev.to/ashishdonga/12-javascript-pro-snippet-codes-for-everyday-problems-hfn)

[**What is difference between undefined & null in javascript ?**](https://dev.to/ashishdonga/what-is-difference-between-undefined-null-in-javascript--40gc)

share this JavaScript One-Liners article with your friends