teleren/devto huggingface dataset:
IAC-IMX8MP-Kit main functions and fields
Tags: programming, android, ram, linux
Published: 2022-09-19 09:13:23


## IAC-IMX8MP-KIT
   IAC-IMX8MP-KIT Development Board, it adopts NXP IMX8MPlus series processor, the i.MX8M Plus family focuses on neural processing unit (NPU) and vision system, advance multimedia, and industrial automation with high reliability. 

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

1. The i.MX 8M Plus is a powerful quad Arm® Cortex®-A53 processor with speed up to 1.8 GHz integrated with an NPU of 2.3 TOPS that greatly accelerate machine learning.
2. The vision engine is composed of two camera inputs and an HDR-capable Image. Signal Processor (ISP) capable of 375 MPixels/s. 
3. The advanced multimedia capabilities include 1080p60 video encode and decode H.265 and H.264. A 3D and 2D graphic acceleration supporting 1 GPixel/s, OpenVG 1.1, Open GL ES3.1, Vulkan.
4. Open CL 1.2 FP. Multiple audio and microphone interfaces for Immersive Audio and Voice.
5. For industrial applications, real time control is enabled by an integrated 800 MHz Arm® Cortex®-M7. 
6. Robust control networks are possible via CAN-FD interfaces. 
7. And a dual Gb Ethernet, one supporting Time Sensitive Networking (TSN), drive gateway applications with low latency. 
8. High industrial system reliability for safety is leveraged by DRAM Inline ECC as well as ECC support on internal softwareaccessible SRAMs. 

## IAC-IMX8MP-CM
   IAC-IMX8MP-CM core board adopts 8-layer PCB board high-precision immersion gold technology, high TG board, with reliable electrical performance and anti-interference performance. It integrated with CPU, LPDDR4, eMMC, power management chip, etc. The board-to-board connector leads to more than 200 pins, which fully expand the hardware resources of i.MX8MPlus, and can multiplex and combine different interface functions according to the pin conditions to make a bottom board that meets the needs. 

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

◆ Onboard NXP i.MX8M Plus processor 
◆ Onboard 2GB LPDDR4, 16GB eMMC (default configuration, industrial grade) 
◆ The core board adapts 8-layer PCB board high-precision immersion gold technology 
◆ Core board size: 60mm*63mm, it is suitable for various embedded occasions 
◆ The core board uses 2X140Pin board to board connectors to lead out the core board resources 
◆ Using 5V power supply, onboard power management chip 
◆ Support Linux 5.10.35;Qt5.15.2 
◆ Support Android 11 
[](http://www.qiyangtech.com/)
Projects/GitHub
Published: 2022-09-19 21:22:37


Best practices for collaborating with a group
-communication is key
-branching, pushing, and merging
-80% planning, 20% coding

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

https://whimsical.com/phase-3-brainstorming-BM5ooc1X74pNLtxmnZA52i@2bsEvpTYSt1HjGi1reMKufMh9aaSgohub2N


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lt7ghgm0fsy8lh919v8z.png)
C++ dasturlash tiliga kirish
Tags: cpp, beginners, programming
Published: 2022-09-20 03:16:32


 **Cout nima...** 
 `Cout` bu C++ dasturlash tilida output yoki print vazifasini ba'jaradi ya'ni berilgan o'zgaruvchi yoki berilgan  ma'lumotni consolega chiqarish uchun ishlatiladi. 
Masalan:

```cpp
#include <iostream>
using namespace std;

int main() {
  cout << "Assalomu alaykum!";
  return 0;
}

``` 
Yuqoridagi kodda ` cout`  consolega Assalomu alaykum jumlasini chiqaradi.
Reimagine log storage: Parseable
Tags: rust, kubernetes, cloud, devops
Published: 2022-09-20 10:22:49

## Context
Whether you're a Developer or SRE or DevOps - when you're tasked with setting up logging, there are essentially two options:

### Search Engines
Setup an indexing based search engine, masquerading as log storage. Such products are difficult to deploy and run in longer term - manage indexes, local and remote storage, different node types and so on. 

Additionally, indexing in the ingestion flow causes high CPU and Memory consumption, while denying very high ingestion rates.

### SaaS Platforms
Alternatively, pay for an exorbitantly costly SaaS platform that is very easy to get started with. As time grows, data volumes and costs increase. 

But data gravity means getting out of this platform is difficult and you end up storing a fraction of log data to save costs. 

---

We dealt with both these options in our work and we know both these options are not ideal. This pushed us to think what would a modern, cloud native, log storage and observability platform look like.

> It is clear that log storage of future won't be another index based search engine in a new language.

We set out to build a completely indexing free log storage platform. This led to [Parseable](https://github.com/parseablehq/parseable).

## Introduction

Parseable is a simple, efficient and fast log storage and observability platform. Think the simplicity of Prometheus but for Logs. Written in Rust, Parseable leverages Apache Arrow, Parquet and widely available object storage platforms for efficiency, cost effectiveness and performance.

It is compatible with standard logging agents like FluentBit, LogStash etc. Parseable also offers a builtin, intuitive GUI for log query and analysis.

![Parseable Design](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/di7ryav5bqds6x84j4gm.png)

## Conclusion

As we launched Parseable, we see tremendous interest in the community to try this out. We'd love for you to try out Parseable and we're all ears for any questions, feedback, and comments. 

Get Started: https://www.parseable.io/docs/quick-start
Slack: https://launchpass.com/parseable
Github: https://github.com/parseablehq/parseable
Documentation: https://www.parseable.io/docs/introduction
My First Coding Blog
Published: 2022-09-21 06:09:20

Hey everybody!

Everybody? Right. Like I have a huge following for my DEV blog. Let me try again.

Hey fellow cohort members!

So I decided to just pick a lab and write about the process of completing it for my first blog. Very exciting.

And the lucky lab is... Phase 1 Review Strings Lab!!!

Since this is review of things I should have already learned in the prework, I'm just going to fork the lab, clone it, open it in VSC, take a look at index.test.js and then go from there.

OK. So the test indicates I'll need a current user, a few different welcome messages and.... yeah, I'm just gonna make life easy and run learn test before I write any code and see exactly what they're looking for.

10 failed tests! Great start.

So, the first failed test is "currentUser is not defined". That one's easy enough.

const currentUser = "Kevin Price";

My own name... the vanity.

learn test.

Alright. One passing test. Let me see if I can knock a couple of tests out in a row. I don't need this blog to be ten pages long.

Looking over the failed tests I need a welcomeMessage that includes currentUser and an exclamation point. Easy enough.

const welcomeMessage = "Welcome to Flatbook, " + currentUser + "!";

...should I have used interpolation? I think I probably should have used interpolation. But, it's just review... Let's just run learn test again and see what happens! 

HA! Four passing tests! Suck it interpolation!

Six more tests to go. Let's see what's next.

excitedWelcomeMessage. All Caps. Contains currentUser. Exclamation point. How about?

const excitedWelcomeMessage = "WELCOME TO FLATBOOK, " + currentUser + "!";

Let's see!

Six tests passing! Not bad, but it looks like there's something wrong with the code I just put in.

Ohhhh. The currentUser name is also supposed to be capitalized. Wait. I know this. There's an easy way to do this with a string... do I keep trying to remember or just google it? Life is short. I'm googling.

toUpperCase!! Yep. That was it. OK so now do I need to do a separate const for the uppercase name? This is where I'm regretting not using interpolation. Or can I just attach it directly to the...

const excitedWelcomeMessage = "WELCOME TO FLATBOOK, " + currentUser.toUpperCase() + "!";

HAHAHAHAHA!! Seven tests passed! Now let's see what these last three tests are.

shortGreeting and just the first initial of the currentUser name. OK.  So... can I just treat currentUser like an array? Don't strings usually behave like arrays? Right? Seems a bit too easy, but...

const shortGreeting = "Welcome, " + currentUser[0] + "!";

10 passing!!!! Yes. Never a doubt.

Oh. And I now notice that the lab actually walks you through the process... and they wanted me to use interpolation. Oh, and I was supposed to use slice for getting the first initial. Apparently those would have made my code more flexible. Oh well. Maybe next time!
Hello world
Tags: webdev, web3
Published: 2022-09-22 07:23:12

this is actually my second blog, im using medium right but i might be migrating to Dev.to is fun tho!

this is carlos so yea, this is kinda wierd but this medium blog is made only for me or maybe a chance of anyone finding this blog interesting or whatever.

i decided to create this today to only check what i learn on programming right now, i had a couple of ideas a few weeks ago about pointers i tought i could never learn but know seems pretty easy to me.

and i failed to join 42Lisbon in August of 2022 so i can remember myself i actually really bad at programming and i must learn a lot if i rly wanna get a job, also wanna practice my english writing skills since im brazilian.

i would say my goal is to be blockchain developer and work full-time with blockchain developing contracts or doing audits still very new but im currently working on there.

well if anyone finds this medium blog here is my socials i guess.

Linked-in https://www.linkedin.com/in/carlosjuniordev/

github https://github.com/CarlosJunioor
Mac's Screen Sharing with Multiple Monitors 🖥🖥 ▶️🖥🖥
Tags: mac
Published: 2022-09-23 05:29:15

## Intro
Although MacOS offers an official remote desktop App, "Screen Sharing," it doesn't support a 'multiple monitors to multiple monitors' remote access. 
Opening 2 sessions, one corresponding to 1st monitor, the other to 2nd would be an alternative, but actually Screen Sharing App doesn't support opening multiple sessions from within the app for the same PC, same user. 

So people has struggled to prepare multiple users 
[[App Community : "How to screen share with multiple monitors on both computers"]](https://discussions.apple.com/thread/251160403), but it's hastle, at least for me.

I finally managed to do it, without the bothering work like switching the user, and summarize how to do that in the following! Glad if someone finds it helpful:)

## Answer
The answer was a quite simple, if you call the executable of the App, then you can open 2 sessions, for the same destination.

### Search App's executable
In MacOS (I'm using Monterey), any App's executable is often located at `${APP_DIRECTORY}/Contents/MacOS/${APPNAME}.`
In my system, Screen Sharing is in `/System/Library/CoreServices/Applications/Screen\ Sharing.app`, so calling the following command in Terminal results in 2 sessions of remote desktop.

```bash
# open for 1st monitor
/System/Library/CoreServices/Applications/Screen\ Sharing.app/Contents/MacOS/Screen\ Sharing
# call the same exe. for 2nd monitor
/System/Library/CoreServices/Applications/Screen\ Sharing.app/Contents/MacOS/Screen\ Sharing
```

### For easy calling
Although just calling the above command solves the problem, it is still troublesome to memorize the path or hit this long path, so I prefer to set the alias for the command.
All you need to do is to open the `~/.bashrc`, add the following line somewhere in that file, and save it.

```bash
# User specific aliases and functions
alias remote_desktop="/System/Library/CoreServices/Applications/Screen\ Sharing.app/Contents/MacOS/Screen\ Sharing"
## ... other settings...
```
then run
```bash
source ~/.bashrc
```
to reflect the change in `~/.bashrc`.
Since `~/.bashrc` is read and reflected when bash starts, the above is needed to force bash to read the configuration 
 in `~/.bashrc` again.

Then after that, everytime you hit 
```bash
remote_desktop
```
in Terminal, the new Screen Sharing window will open up.
I'm connecting from 2 monitors (local) to 2 monitors (remote) without any problem.


## Summary
 Calling the executable itself enables us to open the multiple sessions almost for any App, for example like Blender.
 If suddenly the above solution stopped operating after a major update, then I suspect the directory structure has changed. 
You may want check if the path really exists, and search the new executable path.
 Anyway, hope multiple monitors to multiple monitor remote desktop will be officially supported in the future.
Vault Enable Userpass Auth Method
Published: 2022-09-23 19:56:58

NOTE: This post assumes that you have all ready set up a vault server: https://dev.to/frederickollinger/production-hashicorp-vault-minimal-configuration-485a



## What is an Auth Method?

An auth method is a method to valid requests from clients. It provides authentication, that is it checks to see that you are who you say you are. It does not handle authorization which tells you what resources you may or may not do or access.

It also assumes that one is logged in via the root token.

## Where Would You Use Userpass Auth Method?

Userpass allows you to create user accounts which map to a real human. Each user can authenticate separately using a password.

## What is a Policy?

A policy allows one to control what a particular Role can do with vault, what secrets to change, access, etc.

## Enabling Userpass

As a one time operation, one needs to enable the userpass auth method as it is off in new Vault deployments by default.

```sh
vault auth enable userpass
```

## Create a New User

```sh
vault write auth/userpass/users/bondj password=doubleohseven policies=default
```

## List All Users

```sh
vault list auth/userpass/users
```

## Login To userpass

```sh
vault login -method=userpass username=bondj password=doubleohseven
```

## References

1. Official Documentation

https://www.vaultproject.io/docs/auth/userpass
Forex API for Real-Time Currency Rates
Tags: api, time, currency, rate
Published: 2022-09-24 08:00:27

## Forex API for Real-Time Currency Rates

A Forex API is an application programming interface (API) that provides real-time currency rates. A Forex API can be used to access live and historical data, as well as to place trades. By using a Forex API, you can get up-to-the-minute currency exchange rates for all major currencies. This can be extremely helpful if you're traveling abroad and need to know the current rate for exchanging your money. A Forex API can also be used by businesses to keep track of their international payments and receipts.You can also use an API to back-test trading strategies before putting them into practice

As a Forex trader, it's important to have access to real-time currency rates. There are many different [free Forex APIs](https://fixer.io/) available, each with its own set of features and benefits. Some platforms offer a more robust suite of tools for tracking currency movements, while others may be more focused on providing up-to-the-minute exchange rates. It's important to find the right API for your needs in order to make the most informed decisions when trading FOREX.


## Fixer: The Real Time Exchange Currency Converter API. 

 
If you're someone who frequently travels or deals with foreign currency, then you know how difficult it can be to keep track of the ever-changing exchange rates. Even if you don't travel often, it's still important to be aware of the current exchange rates if you're planning to send money abroad. If you need to get real-time currency exchange rates, the Fixer API is the best free currency converter API option. With real-time exchange rates, it's easy and accurate to find out how much money you should be getting paid in another currency.
Most Common Array Methods JavaScript in 2023
Tags: javascript, webdev, programming, computerscience
Published: 2022-09-29 18:01:04

Let’s talk about JavaScript Array. If you are looking for a job or learning JavaScript these methods might be very helpful during coding interviews. Here you can find how to prepare for a [coding interview in one week](https://devhubby.com/thread/how-to-prepare-for-coding-interview-in-one-week).

**PUSH Method use in JavaScript Array**
The push() method adds new elements to the end of the array, and returns the new length.

```javascript
const = arr = ["I" , "Am"];
arr.push("Developer");

// Output: ['I', 'Am', 'Developer' ]
```

**SLICE Method use in JavaScript Array**
The slice() method selects a part of an array, and return the new array.

```javascript
const arr = ["I" , "Am" , "Developer"];
arr.slice(1, 2);
//Output: ['Am']
```

**TOSTRING Method use in JavaScript Array**
The toString() method converts an array to a string, and returns the result.

```javascript
const arr = ["I" , "Am" , "Developer"];
arr.toString();

//Output: "I , Am , Developer"
```

**SHIFT Method use in JavaScript Array.**
The shift() method removes the first element of an array, and return that element.

```javascript
const arr = ["I" , "Am" , "Developer"];
arr.shift();

//Output: [ 'Am', 'Developer' ]
```

**MAP Method use in JavaScript Array.**
The map() method creates a new array with the results of coding a function for every array element.

```javascript
const arr = [1,4,9,16];
arr.map(x => x * 2 );

// OutPut: [ 2, 8, 18, 32 ]
```

**POP Method use in JavaScript.**
The pop() method removes the last element of an array, and returns that element.

```javascript
const arr = ["I" , "Am" , "Developer"];
arr.pop();

//Output: ['I' , 'am']
```

**FILTER Method use in JavaScript.**
The filter() method creates an array filled with all array elements that pass a test (Provided as a function)

```javascript
const arr_filter = ["I" , "Am" , "Developer"];

 var filter = arr_filter.filter(word => word.length > 3);
// Output: ["Am" , "Developer"] 
```

**INCLUDES Method use in JavaScript.**
The includes() method determines whether an array contains a specific element.

```javascript
const arr = ["I" , "Am" , "Developer"];
arr.includes("Am");
// Output: true
```

I would also recommend my article about "[Most Commonly Used JavaScript Methods in 2023](https://dev.to/aliegotha/most-commonly-used-javascript-methods-in-2023-3jo8)" and my list of great [programming and coding books](https://infervour.com/blog/best-programming-and-coding-books-to-read).

If you like this article please Comment or Like :)
How to Create Complexity from Simple Rules
Tags: javascript, tutorial, beginners
Published: 2022-09-24 08:58:48

The following is a very simple bared-down code necessary to produce Mandelbrot in your browser

```
  <canvas id="gardun" width="1000" height="1000"></canvas>
  <script>
  m = document.getElementById("gardun").getContext("2d")
  atom = function(x,y,c){m.fillStyle=c; m.fillRect(x,y,3,3)}
  for(y=1; y<1000; y++){
  for(x=1; x<1000; x++){
  dx = (x-500)/2000-0.12
  dy = (y-500)/2000-0.82
  a = dx
  b = dy
  for(t=1; t<200; t++){
  d = (a*a)-(b*b)+dx
  b = 2*(a*b)+dy
  a = d
  H = d>200
  if(H){atom(x,y,"rgb("+ t*3 +","+ t +","+ t*0.5 +")"); break}
  }}}
  </script>
```
The step by step tutorial and explanation is also available on YouTube for those interested:
https://youtu.be/mzizK6ms-gY


```
Did I even learn anything?
Tags: beginners, python, spaceinvaders, gamedev
Published: 2022-09-25 00:58:06

It's been really busy at the job. I've been working on my tracks for music. I started the project development for the space invaders game. I worked on the basic functions that is needed to create a screen for  the game. Its interesting to create a blank screen. I felt accomplished just creating a black screen. Tomorrow, I plan to work on this more before work. One of the biggest challenges is that I feel like I'm not learning...but I know that coding takes time...and practice...similar to making music. I will keep updating on my progress as much as possible.
The short-form of if else statement
Published: 2022-09-25 16:14:13

## The short form of if else statement as used in JavaScript



```
// here is a short-form of if else statement:
function Major(Engineering){
    return Engineering === 'Software Engineering' ? 
    "It's a course of heroes, You can be proud of!" :
    `Which type of ${Engineering}?`;
}

```
vscode shortcuts
Tags: productivity, vscode
Published: 2022-09-25 18:02:43

Y'all may already know these.  I'm new to vscode, and have found these shortcuts helpful:

- In a new HTML file, type `!` or `html`, and choose from one of the options Emmet produces, to get a basic HTML template.

- In HTML/CSS files, use `CTRL/COMMAND + K, CTRL + C`, to add a comment block.  Sadly, it doesn't seem to work in a JavaScript (.js) context.

- Highlight one or more lines of code and hit `CTRL/COMMAND + /` to comment/uncomment the block.  Very handy!!
Working On My First Pull Request
Tags: opensource, git, javascript, beginners
Published: 2022-09-25 21:30:05

Last week I was presented with the opportunity to contribute to [Izyum](https://github.com/Myrfion/izyum), a static site generator tool that creates an HTML file for each `.txt` file provided. Since the application had no existing support for processing markdown files, I began by filing an [issue](https://github.com/Myrfion/izyum/issues/9) for it. 

### Overview of the Issue
Since Izyum lacked the feature of processing markdown files, my Issue was about implementing initial support for h1, h2, and bold text. I clearly outlined all the features I had in mind in the Issue.

### Writing the Code
After filing the Issue, the next step was to write the code and make sure it passed all tests. I was able to implement `h1` and `h2` in the first phase in a new branch named `issue-9`, as I will still trying to figure out how to add support for bold text. Later, after doing some research and through the process of trial and error, I was able to implement support for bold text. 

#### Challenges Encountered

Some of the challenges I faced while working on the code were:

- Finding a way to ignore H1 and H2 from being bolded as headings are in bold by default
- Coming up with descriptive variable names

### Creating Pull Request
I created a [PR](https://github.com/Myrfion/izyum/pull/10) when I was able to Izyum support H1 and H2 text. [Tymur](https://github.com/Myrfion) was able to provide me with constructive feedback on how to improve the code. I made revisions to the code to match the feedback and pushed another commit to `issue-9`. In a final commit, I was able to implement support for bold text and update the `README.md` file with instructions on proper usage of Markdown syntax accepted by the SSG. Later, the commit was merged with the `main` branch. 

### Final Outcome

- Izyum is now able to support markdown files
- Users can add `# ` at the beginning of the line to mark it as Heading 1, and the content of the line will be added between the opening and closing `h1` tag. 
- Users can add `## ` at the beginning of the line to mark it as Heading 2, and the content of the line will be added between the opening and closing  `h2` tag.
- Users can add text between a pair of `**` to mark it as bold, and the text will be added between the opening and closing `strong` tag.

To learn more about how to use Izyum with its brand new markdown support, click [here](https://github.com/Myrfion/izyum#implemented-optional-features-).