teleren/devto huggingface dataset:
jacoco-badge-generator 2.10.0 Released
Tags: java, github, showdev, kotlin
Published: 2023-09-04 17:39:21

## TL;DR

I just released [jacoco-badge-generator](https://github.com/cicirello/jacoco-badge-generator) 2.10.0, which can be run as a [GitHub Action](https://dev.to/cicirello/jacoco-coverage-badges-pr-coverage-checks-and-pr-coverage-comments-from-github-actions-4a8f) or as a [command-line utility](https://dev.to/cicirello/the-jacoco-badge-generator-github-action-is-now-also-available-as-a-cli-tool-from-pypi-3ma0) as part of CI/CD workflows for Java projects, as well as for projects in other JVM languages such as Kotlin, to parse JaCoCo test coverage reports, generate instructions coverage and branches coverage badges for project READMEs, serve as pull-request checks (e.g., validate minimum coverage thresholds), among other functionality.


## Changelog 2.10.0 - 2023-09-04

### Added
* Option to suppress workflow job summary in GitHub Actions Mode.

### Dependencies
* Bump cicirello/pyaction from 4.19.0 to 4.22.0.


## More Information

Please consider starring the jacoco-badge-generator's GitHub repository:

{% github cicirello/jacoco-badge-generator %}

For more information, see the project webpage and my earlier posts about the jacoco-badge-generator here on DEV:

{% embed https://actions.cicirello.org/jacoco-badge-generator/ %}

Post with general information and example GitHub Action workflows: 

{% link https://dev.to/cicirello/jacoco-coverage-badges-pr-coverage-checks-and-pr-coverage-comments-from-github-actions-4a8f %} 

Post about CLI mode:

{% link https://dev.to/cicirello/the-jacoco-badge-generator-github-action-is-now-also-available-as-a-cli-tool-from-pypi-3ma0 %}

Post with example multi-module workflows:

{% link https://dev.to/cicirello/jacoco-coverage-badges-for-multi-module-projects-in-github-actions-ace %}


## Where You Can Find Me

Follow me [here on DEV](https://dev.to/cicirello) and on [GitHub](https://github.com/cicirello):

{% user cicirello %}

Or visit my website:

{% embed https://www.cicirello.org/ %}
Laravel Folio and Volt (Alpha Stage Review)
Published: 2023-10-18 08:12:27

---
title: Laravel Folio and Volt (Alpha Stage Review)
published: true
date: 2023-09-04 17:30:00 UTC
tags: 
canonical_url: 
---

Laravel နဲ့ Inertia ကိုသုံးရတဲ့ Vibe ထက် Livewire သုံးရတာသဘောပိုကျတယ်။ Inertia သုံးတဲ့အခါမှာ React or Vue ရတဲ့ Laravel သမားတွေအတွက်အဆင်ပြေတယ်ခံစားရပေမဲ့ PHP နဲ့ JavaScript Prop Passing လုပ်ရတဲ့ Feel က Messy ဖြစ်တယ်လို့ခံစားရတယ်။ ဒါပေမဲ့ Frontend Routing ကိုသေချာမရတဲ့သူတွေအတွက် Inertia က Full stack ရေးလို့ကောင်းတယ်။ Frontend နဲ့ Backend ကို Colocating လုပ်ပြီးရေးတာကကောင်းတယ်လို့ပြောလို့ရတယ်။ ဘာလို့ဆိုရင် FDD လို့ခေါ်တဲ့ Feature Driven Approach သွားရင်အဆင်ပြေလို့။ Next တို့၊ Remix တို့ဆိုရင်လည်းဒီ approach ကိုသွားနေတာ။ Client Side JavaScript Load နည်းအောင်ရယ်၊ Server Side Level Code တွေတစ်နေရာတည်းစုရေးလို့ရအောင်ရယ်လုပ်တာမျိုးကတူတူပါပဲ။ Livewire ကို Laravel Folio နဲ့ Livewire Volt နဲ့ပေါင်းသုံးရင် Next Vibe ရတယ်လို့ပြောလို့ရတယ်။ ဒါပေမဲ့သူ့ရဲ့ Syntax Vibe က Vue နဲ့သွားဆင်တယ်။ Vue SFC လိုမျိုး PHP နဲ့ View ကို File တစ်ခုတည်းမှာရေးလို့ရတာမျိုးပေါ့။ Volt ကကြတော့ Functional Component ရေးလို့ရအောင်လုပ်ပေးထားတာလို့ပြောလို့ရတယ်။ အရင်က React ကို Class Base နဲ့ရေးတာကို Functional Component အနေနဲ့ပြန်ရေးတာမျိုးပေါ့။ Livewire ကြတော့ PHP Class ပေါ့။ ဒါပေမဲ့ပြောစရာတစ်ခုရှိတာက Class Instance ကိုပြန်ပြန်ထောက်ပြီးမှ State တွေကိုရတဲ့အတွက် Auto Completion လည်းမကောင်းသလို၊ FP Vibe နည်းနည်းတော့ပျောက်တယ်။ မသိတဲ့သူအတွင် $this ကဘာကြီးလဲဆိုတာကမေးစရာရှိမယ်။ ဒီတစ်ခုကလွဲရင်ကျန်တဲ့ FP API တွေက Concise ဖြစ်တယ်ပြောရပါမယ်။ Laravel Blade သီးသန့်ထက် အောက်က Tech Stack နဲ့ဆိုရင် Productivity ဖြစ်တဲ့ Laravel Application တွေရေးနိုင်မယ်လို့ယူဆတယ်။ Laravel Folio (Laravel File Based Routing) Livewire (Blade in Reactive Way) Volt (Livewire SFCs)
State Management in Micro Frontend
Published: 2023-10-18 08:12:39

---
title: State Management in Micro Frontend
published: true
date: 2023-09-04 17:30:00 UTC
tags: 
canonical_url: 
---

Micro Frontend မှာ State ထိန်းရတာခက်တယ်ဆိုတယ်ဆိုတာက Single Global Store ဆိုပြီးတွေးတဲ့ Mindset ကိုဖျောက်ဖို့လိုအပ်တယ်။ အဲ့တာက Everything is AWS ဆိုပြီးတွေးသလိုမျိုးပဲ။ Google Cloud, Azure ဒီကောင်တွေကိုမေ့ထားသလိုပေါ့။ DevOps တွေ Infrastructure ကို Distributed ထားသလို Micro State တွေကို Micro Level ပဲထားပြီးခွဲထားဖို့လိုအပ်ပါတယ်။ Authentication လိုကိစ္စတွေကိုကြတော့ Backend မှာထားသင့်ပြီးတော့ Auth Service နဲ့ပဲပြောသင့်တယ်။ ဒီနေရာမှာ Session ထက် JWT ကို Secure Cookies မှာထားပြီး Talk တာမျိုးကပိုကောင်းတယ်။ Host တဲ့ Shell Level မှာသာ Routing System ကို History Router or Framework Agnostic Router သုံးသင့်တယ်။ ဒါမှမဟုတ်ရှိပြီးသား Framework Router တွေနဲ့ Bind ပြီးသုံးသင့်တယ်။ Micro frontend မှာ Fail First Handling ရှိဖို့လိုအပ်ပါတယ်။ User Level မှာပြထားတာမို့ အဲ့ Service Level ကို ဘာဖြစ်နေတယ် Service Unavailable ဖြစ်တယ်ဆိုတာကိုပြရင်ရပါတယ်။
Create video from Text Clips using Python and moviepy.
Tags: python, moviepy, automation, coding
Published: 2023-09-04 17:29:41

## Hi 🙂🖐



In this post, I will share with you Create video from Text Clips using Python and moviepy.

To generate or create video from Text Clips you need to install
imagemagick from here : https://imagemagick.org/script/download.php

and install moviepy from here : `pip install moviepy`

If this error happend with you : 
Moviepy can't detect ImageMagick binary

you can use this code to solve this problem

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

```python
from moviepy.config import change_settings

IMAGEMAGICK_PATH = r"C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe"
change_settings({"IMAGEMAGICK_BINARY": IMAGEMAGICK_PATH})
```

## Now i will create the video 
```python
from moviepy.config import change_settings

IMAGEMAGICK_PATH = r"C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe"
change_settings({"IMAGEMAGICK_BINARY": IMAGEMAGICK_PATH})


import moviepy.editor as mp

clips = [mp.TextClip(f'Text {n}', 
                     size = (450, 320),
                     align='center', 
                     fontsize = 20,
                     color='white').set_duration(2) for n in range(5)]

video = mp.concatenate_videoclips(clips)
video.write_videofile('test.mp4', fps = 20)
```

## result


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6l4g4bwuniuna08nxwql.gif)


**Now we're done 🤗**

**Don't forget to like and follow 🙂**

**Support me on PayPal 🤗**
https://www.paypal.com/paypalme/amr396
Instagram Clone Project Part 1
Tags: react, typescript, nextjs, frontend
Published: 2023-09-04 17:16:19

[Link to Instagram clone project](https://next-instagram-p3flcc4pj-junsupark94.vercel.app/)

Tech Stack: NextJS + React, TypeScript, Tailwind, Zustand, Radix UI + ShadCN UI, html-react-parser

I spent the past 4 weeks working on an Instagram clone to develop my front end skills. I challenged myself to build more features than my Twitter clone project. The features I focused on were:

- Modal routing
- Virtual List
- Dark mode
- Carousel
- Custom video player (shoutout to Web Dev Simplified for his tutorial!)
- Autoplay behavior
- Text parsing for hashtags and @ links

Please check out the project and let me know what you think. I tried to mimic Instagram as closely as possible. I also share my thoughts about implementing the features above in the post descriptions. If you have any questions, feel free to ask me in the comments of this article!

This is only part 1 of the project. I will turn it into a full stack app with the following features:

- User Authentication
- Reels
- Messenger
- Stories
- Notifications
- And many more

I’ll also implement end-to-end testing and fix some bugs (NextJS modal routing has a known issue I need to work around). I would have fixed these issues before deployment but I spent too long on this project and I needed to ship it for my own sanity 😭.

I’ll also implement the following optimizations and compare the differences in speed:

- useMemo
- useCallback
- React.memo
- React.lazy + Suspense
- React Hook Form
- Loading UI

Follow me here on [LinkedIn](https://www.linkedin.com/in/junsupark-swe/) or [DEV](https://dev.to/junsupark94) to follow me on my journey to building robust web apps!
Raku Blog Posts 2023.36
Tags: programming, rakulang, summary
Published: 2023-09-04 17:15:29

- [Drax on Jupyter](https://rakujourney.wordpress.com/2023/08/31/drax-on-jupyter/)

*Steve Roe* continues their Raku journey exploring the reasons to use the Raku Programming Language on Jupyter notebooks.

- [Pheix Nomad Release 2023](https://narkhov.pro/pheix-nomad-release-2023.html)

*Konstantin Narkhov* is back with a blog post about their new release of the [Pheix CMS](https://gitlab.com/pheix-pool/core-perl6).

- [Jupyter::Chatbook](https://rakuforprediction.wordpress.com/2023/09/03/jupyterchatbook/)

*Anton Antonov* describes their new Raku module that brings the world of Large Language Models into the realm of Raku on Jupyter notebooks.

- [Rakudo Weekly News 2023.36](https://rakudoweekly.blog/2023/09/04/2023-36-slimline-september/)

*Elizabeth Mattijsen* reports on all recent developments around Rakudo, an implementation of the [Raku Programming Language](https://raku.org).
Devops simple learning path
Tags: webdev, programming, roadmap, devops
Published: 2023-09-04 17:00:40

![Devops learning roadmap](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ybgkkdxz8ospvq6i76f.jpeg)

Navigating the #DevOps Learning Roadmap - leveling up my tech skills one step at a time! 🚀 Excited for the journey ahead. 💡 #TechJourney #LearningGoals #DevOpsCommunity
Open Source ABCs: Meritocracy
Tags: opensource, discuss, 100daysofoss
Published: 2023-09-04 16:53:31

---
title: Open Source ABCs: Meritocracy
published: true
description: Join our #100DaysOfOSS blog series as we explore the world of Open Source Software (OSS) from A to Z! Every week, we'll discuss two new letters of the English alphabet. Share your thoughts, ideas, and favorite OSS projects for each letter. Let's celebrate the power of open source together! 
tags: opensource, discuss, 100DaysOfOSS
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxwg4ygmybnni1tpwdx3.png
# Use a ratio of 100:42 for best results.
series: 100DaysOfOSS
canonical_url: https://opensauced.pizza/docs/community-resources/open-source-abcs-meritocracy
---

Welcome to our [#100DaysOfOSS series](https://dev.to/opensauced/100daysofoss-growing-skills-and-real-world-experience-3o5k). Until October 31, we'll be doing  Open Source Software (OSS) terms from A to Z. We'll be diving into a different letter of the English alphabet, uncovering OSS concepts, and sharing our thoughts on them.

Today, we're covering the letter "M" for Meritocracy. 

**Meritocracy**: Open-source communities often operate on a meritocratic model, where contributors' influence and decision-making authority are based on their demonstrated skills, knowledge, and contributions to the project.

Now, we want to hear from you! What other OSS terms can you think of that start with the letter "M"? 

Remember to use the hashtag #100DaysOfOSS if you share on social media, and don't forget to tag us [@saucedopen](https://twitter.com/saucedopen) so we can follow along.
Introduction
Tags: beginners, developer, community
Published: 2023-09-04 16:29:41

Hi y'all! My name is Hyunjeong, and I'm here to embark on my journey with an open-source development course.

I chose this course for a couple of reasons. First, it offers practical experience and knowledge in various programming languages, tools, and technologies, which will help me enhance my skills. Second, it allows me to explore my interests within the technology field since it covers a broad range of topics and areas. This way, I can discover what truly fascinates me.

As mentioned earlier, my goal is to delve into different topics and determine the ones that truly intrigue me. I plan to achieve this by working on related projects.

I recently came across "MetaGPT: The Multi-Agent Framework" on GitHub. You can find the link here: https://github.com/geekan/MetaGPT 
MetaGPT accepts a single-line requirement as input and generates user stories, competitive analyses, requirements, data structures, APIs, documents, and more as output. Within its framework, MetaGPT encompasses roles like product managers, architects, project managers, and engineers. It offers a comprehensive representation of the entire software development process, meticulously following Standard Operating Procedures (SOPs). This repository caught my attention because of its potential to revolutionize AI collaboration, making it more efficient and effective in addressing complex tasks. This has significant implications for both research and practical applications, potentially improving people's time management and work efficiency.

This is it for me today, and I will see you in the next blog. Thanks, y'all!
How To Generate Secure Tokens in Python.
Tags: python, programming, security, coding
Published: 2023-09-04 16:27:22

## Hi 🙂🖐

Today, I will share with you how to Generate Secure Tokens in Python and module called secrets.

## What is secrets 🤔
[secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.](https://docs.python.org/3/library/secrets.html)


## Generate token
```python
import secrets

print(secrets.token_hex(20))
```

## result
```
ac8a374b58cd08c75bc74216e4c2581fed247f35
```

## Generate token for url


```python
import secrets

print(secrets.token_urlsafe())
```

## result
```
Gcwc7xUovto_hH7A_EqR6ldINqCPlQ5a_BiPOxdVhJM
```
Medusa Next.js Starter now has Product Module support
Tags: medusajs, nextjs, typescript, opensource
Published: 2023-09-04 16:21:43

I've just updated the Medusa [Next.js Starter Template](https://medusajs.com/nextjs-commerce/) with full support for the serverless Product Module.

## Introducing the Product Module

With the Product Module, you can customize product logic quickly and easily from within your Next.js project, keeping backend logic close to the frontend. It runs in a [Vercel Serverless Function](https://vercel.com/docs/functions/serverless-functions), meaning it doesn't require a traditional server to interact with your product database. It comes with functional examples, making it a great entry point for those new to the concept of serverless functions. And if you ever want to opt in or out of using the module, all it takes is a simple feature toggle.

## About Medusa's modules

Medusa's modules are essential building blocks for ecommerce applications, designed to increase extensibility and customization capabilities. The Product Module is the first serverless Medusa module, and we will continue to release all parts of our SDK as a serverless module over the coming period. The Starter Template is an example of how to use the Product Module in a Next.js application, but it runs in basically every serverless environment.

## Benefits of serverless modules

But what are the benefits of using serverless modules like the Product Module? For one, it keeps packages small enough for easy deployment to serverless infrastructure. Plus, it makes it easier to integrate modules into an existing ecosystem of commerce services, without the need for a dedicated ecommerce server. And of course, it makes it easier to customize or extend core logic in Medusa.

## About the Next.js Starter Template for Medusa

With the Next.js Starter Template for Medusa, you can effortlessly build fast ecommerce sites. Medusa handles essential ecommerce logic like carts, products, orders, and more, all of which are easily customizable to suit your unique use case. And with complete support for Next.js 13, including App Router, you're assured of all the latest Next features and benefits.

Integrations for PayPal, Stripe, Algolia, and Meilisearch are built-in, ensuring a quick setup process. In short, the Medusa Next.js Starter Template with Product Module support is the perfect solution for developers looking to build high-performing ecommerce stores with ease.

{% cta https://docs.medusajs.com/starters/nextjs-medusa-starter %} Get Started With the Next.js Starter Template for Medusa  {% endcta %}
Snip & View Technologies - Best Snipping Tool online
Published: 2023-09-04 16:08:43

Snip & Float stands apart from other snipping tools with its unique ability to capture, store, and view screenshots instantly without a bulky editor. As a powerful referencing tool, it facilitates rapid viewing, storing, and re-viewing of your screenshots.
Snippets effortlessly float above all applications, enabling intuitive movement and management on your screen, enhancing the entire snipping experience.

It is not intended to replace other snipping tools, it complements them. "Snip & Float" is a valuable addition to your existing set of snipping tools.

Streamlined and Super-fast!
Intro to CloudWatch Logs Live Tail
Tags: aws, cloudwatch
Published: 2023-09-04 15:46:21

---
title: "Intro to CloudWatch Logs Live Tail"
published: true
summary: "Is Live Tail a tailwind equivalent for AWS CloudWatch Logs?"
tags: AWS, CloudWatch
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---
AWS has [recently introduced](https://aws.amazon.com/about-aws/whats-new/2023/06/live-tail-amazon-cloudwatch-logs/) a new feature for real-time log analytics: CloudWatch Logs Live Tail.

>You can now view your logs interactively in real-time as they’re ingested, which helps you to analyze and resolve issues across your systems and applications.

To access this feature, log in to your AWS account, choose **Logs->Live tail**, select log groups of interest (up to 10), apply filters as needed and you're good to go.

Sample filters [source](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html):

- `error 404` displays only log events that include both error and 404
- `?Error ?error` displays log events that include either Error or error
- `-INFO` displays all log events that don't include INFO
- `{ $.eventType = "UpdateTrail" }` displays all JSON log events where the value of the event type field is UpdateTrail

![Screenshot of CloudWatch Logs Live Tail UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e6ycu76i7ft8deem24bf.png)

**Feature overview, as described by AWS:**
- Real-Time Viewing: See logs interactively as they're ingested. No more waiting.
- Rich User Experience: Easily view and detect issues in incoming logs.
- Granular Controls: Filter, highlight, pause, and replay logs on-the-go.
- Quick Validation: Ideal for DevOps teams, validate processes, configuration changes, and deployment success in real time.

![Screenshot of CloudWatch Logs Live Tail UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ky3mftfvtt9isql5fme2.png)

Once you get tired of watching your logs fly in real time, you can either copy or download the logs for further analysis as CSV, JSON or XLSX (for hard core Excel fans out there).

![Screenshot of CloudWatch Logs Live Tail UI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hv3tunfv276pumhcse0o.png)


All logs can be filtered based on log group, log stream and custom filter patterns. For instance you can find all `ERROR` logs in a given log group.

**Summary:**

Overall I think this is a great addition to the CloudWatch Logs ecosystem. It's a simple feature that can save you a lot of time when debugging issues in your application. Not that I ever have a production outage 😎, but if I did, I'd definitely use this feature to help me resolve it. The only weird bit is the **N events/sec** screen, in my testing it was not entirely accurate, but then again - my sample `UserService` is not exactly a production-grade application.
Infrastructure of peoplesmarkets.com - Nomad
Tags: devops, infrastructureascode, opensource, peoplesmarkets
Published: 2023-09-04 15:12:54

## … and the services deployed on it.

Hello! : ) Here I will cover the deployment of [Nomad](https://github.com/hashicorp/nomad), a container orchestration software and its integration with Consul and Vault.

---

### 04 - Nomad configuration and its purpose

#### Nomad ACL and secret engine

Nomad uses an ACL system (Access Control List) similar to Consuls, which we can bootstrap after all Nomad nodes are installed and configured so that we have at least three server nodes connected to each other and all client nodes can register themselves to the control plane. Also, similar to Consul, Vault provides a built-in [secret engine](https://developer.hashicorp.com/vault/docs/secrets/nomad) for Nomad ACL tokens and policies.

#### Connecting to Consul

With the Consul secret engine already configured in Vault, we can create Consul ACL policies for Nomad servers and clients with permissions that enable them to register new services to Consul. Here, we also use [consul-template](https://github.com/hashicorp/consul-template) to automatically configure a new Consul token whenever it is close to expiration. The template queries Vault and writes the token into a config file. Whenever it is updated, we reload the nomad process. Here is also one important thing I overlooked at the beginning: It is important, that each Nomad agent has one Consul agent to connect to. In our case, it is on the same node, so we use localhost. Otherwise, it can happen that some services are not unregistered properly from the service catalog. ¹

> [1]: [Nomad docs](https://developer.hashicorp.com/nomad/docs/configuration/consul) highlighted section.

#### SSL certificates

Again, similar to Consul SSL certificate, we will use Vaults build in PKI engine to manage the SSL certificates for the Nomad API. And again, we use consul-template to update the configuration whenever a certificate is close to expiration.

#### Vault integration

Nomad has also a configuration section where we can connect it to Vault in order to access secrets before deploying a service, which we can provide to the process. This way we can manage the secrets in Vault and use Nomad templates section of the job definition to set and update them. As you might have already noticed, the pattern is the same throughout the system.

This was a short one because the pattern used to configure this component is more or less exactly the same as the one used to configure Consul. Next time I want to cover the CockroachDB and ZITADEL deployments, which finishes the basic infrastructure.

---

### Shameless Ads:

Check out [peoplesmarkets.com](https://peoplesmarkets.com)! And the [repositories](https://github.com/peoplesmarkets)! Have a good one : )

![peoplesmarkets.com website logo icon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9gtfagdmdj7w38onriej.png)<center><small><small>peoplesmarkets.com website logo icon</small></small></center>
Refactoring - A PM journey trying to relearn software engineering
Tags: node, beginners, career
Published: 2023-09-04 14:58:37

As I said,  I will use dev.to to log my progress through returning to the development world.

Last week, I made a big refactoring on my service, using clean architecture, based on the repo below:

https://github.com/dev-mastery/comments-api

I know that you are thinking: "he just copied the structure", but for me, this is the way I found it easy to understand some concepts like dependency injection, and of course,  clean architecture and separation of concerns.

Another concept I learned is how easy it is to make some changes and improvements because everything is in the right place.

You can check in the link below:

https://github.com/effelima/agile-metrics

I know that in a work situation, it's not easy to have the same architecture, but, I think I learned a lot.

For my next steps (actually this week) I want to implement unit tests and JWT for security and build a Golang service to get data from GitHub Projects and insert it into a Mongo or PostgreSQL database.

And why will I use a different language to implement this service?

Because Go gets my attention, and I think that it will be cool to use a different paradigm.

Again, if you have some feedback, let me know.

Thanks for reading!