teleren/devto huggingface dataset:
Day 819 : Guess Who's Back?
Tags: hiphop, code, coding, lifelongdev
Published: 2023-09-26 22:08:38

_liner notes_:
- Professional : Guess who's back? Today is the first day back at work in the US. Had a meeting with my manager and another with the team working on some new stuff. I answered a question about the Web Components I created. I updated the package.json in the example applications to always install the latest versions of the Web Components. Also updated some forms about the talk I did on Saturday at a meetup.

- Personal : Still getting over the long trip home. Just backing up photos and videos from my trip. Basically slept early.

![A valley in the Caucasus Mountains at sunset with low clouds in the mountain side](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s6ifrokza5mawwefl8q8.jpg)

Going to rest some more. Maybe catch up on some anime.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube _O14sb32dDA %}
LeetCode 2233 Maximum Product After K Increments (Medium)
Tags: 100dayschallengeleet, c, javascript, leetcode
Published: 2023-09-27 05:00:51

---
title: LeetCode 2233 Maximum Product After K Increments (Medium)
published: true
date: 2023-09-26 21:34:38 UTC
tags: 100DaysChallengeLeet,C,JavaScript,leetcode
canonical_url: https://www.nileshblog.tech/leetcode-2233-maximum-product-after-k-increments/
---
![LeetCode 2233 Maximum Product After K Increments](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g1m006poi1dw27de3dqd.gif)
LeetCode 2233 Maximum Product After K Increments: Hey there, coding enthusiasts! Welcome back to another exciting coding session. Today’s problem is a treat—literally! We’re going to solve the “Maximum Product After K Increments” or “LeetCode 2233.” problem. Approach: LeetCode 2233 Maximum Product After K Increments Visualization LeetCode 2233 Priority Queue In this Leetcode problem, we are tasked ... [Read more](https://www.nileshblog.tech/leetcode-2233-maximum-product-after-k-increments/ "LeetCode 2233 Maximum Product After K Increments (Medium)")

The post [LeetCode 2233 Maximum Product After K Increments (Medium)](https://www.nileshblog.tech/leetcode-2233-maximum-product-after-k-increments/) appeared first on [NileshBlog.Tech](https://www.nileshblog.tech).
RCAV in Rails
Tags: ruby, backenddevelopment
Published: 2023-09-26 21:34:30

## Introduction

In order to render a page in Ruby on Rails, there are a couple things that need to be understood.

- Route: A route is the name given to the path of the page.
- Controller: A controller is an class inherited from the Application Controller. This controller allows us to define our actions.
- Actions: Our actions are sort of like functions that we want to run; so far, I've used my actions in order to render my views and manipulate data before render.
- Views: Well what good would our code be if we cannot look at an end result? Not that great, our views allow us to render things to our DOM.

## Defining Routes

Inside **/root/config/routes.rb** we can define our routes as follow: 

```ruby
Rails.application.routes.draw do
    get("/route/name", controller: "example_controller", action: "example_action")
end
```

## Defining Controllers, Actions and rendering Views

Inside **/root/app/controllers/example_controller.rb**, we can declare our our controller and have it inherit from Application Controller. Within our controller we can define our actions as well. Within our actions we can render a view as well.

```ruby
class PaperController < ApplicationController

    def example_action

        @greeting = "Congratulations, You Rendered a View in Rails"

        render({:template => "untitled/example_view"})

    end
end
```

## Defining Views

In **/root/app/views/untitled/example_view.html.erb**, you can create your view in erb syntax. Yes the extension is .html.erb and I'm not sure why. The untitled directory isn't really part of the structure; however, I added it since one may even separate their views into different directories within their folders. 

```html
<h1><%= @greeting %></h1>
```

## Ending

Congratulations! If you followed all the steps above, you successfully rendered a view in Rails. I definitely wrote this article, so I don't forget the RCAV structure in rails and to give my mind a break before I go into Active Record.
Overwhelmed? Try this! - Part 4 - Good Meeting Hygiene
Published: 2023-09-26 21:32:45

> In this series, I describe the various methodologies I employ to combat burnout, enhance focus, and ultimately improve well-being during the workday. Most of these strategies are job-agnostic, so non-technical individuals are encouraged to read on!

## What?

Meetings lacking documented aims, time limits, or action items can be disastrous for both you and your company. Over my nearly 14-year career, I estimate that approximately 70-80% of the meetings I've attended have been a waste of time for some, if not all, participants.

Here's the average cost, in dollars, for a 5-person team with a combined salary of 100k conducting a 1-hour meeting:

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

[Feel free to calculate it for your own team](https://hbr.org/resources/html/infographics/2015/11/meeting-cost-calculator/index.html)

## Why?

Voice or face-to-face meetings are often the default method for conveying or discussing information, whether rightly or wrongly. Unfortunately, they are frequently unproductive, unfocused, and, ultimately, a waste of time and money.

To save time and money for yourself and your company, consider the following:

1. **Question the necessity of the meeting** - Could the information be conveyed via email or instant message? Often, the answer is *yes*. It should be acceptable to decline meetings if information can be easily provided or obtained without a meeting. Context-switching is disruptive for **all** roles and costs a significant amount of money.
2. **Ensure the meeting has a documented or obvious aim** - Agenda-less meetings invite distractions and tangents. An aim keeps the discussion clear, on track, and all participants engaged. Meetings like 1-to-1s are somewhat exempt from this rule.
3. **Set a fixed time for the meeting** - Meetings should always be timeboxed appropriately to keep attendees engaged and allow time for other calendar items. No one should entertain meetings that overrun, and people should feel empowered to leave meetings.
4. **Capture actionable outputs** - Meetings should produce actionable results. If you don't keep track of these, why have a meeting in the first place?
5. **Prepare for the meeting** - The hours spent in meetings where someone adjusts fields on Jira or begins a lengthy setup for an unprepared demo, is criminal. Meeting organizers should always prepare beforehand.

If you're a person of influence witnessing these issues in your business, there are a couple of things you can do to promote better meeting hygiene:

1. **Empower people to say "No"** - Individuals should feel comfortable pushing back on poorly constructed meeting requests. This cultural shift will naturally lead to better meeting practices.
2. **Practice what you preach** - Consistency is key; leaders should model the behavior they advocate.
3. **Aim small, miss small** - Begin by encouraging the addition of agendas to meetings. Even this simple step guarantees some return on investment.
check size of directory in Linux
Tags: linux, beginners, programming
Published: 2023-06-12 13:48:20



## Introduction
Linux is one of the most popular operating systems in the world. It is Unix-like, and it is also open-source. Quite a big percentage of developers use Linux because it can be customized in so many ways.

What's cool about Linux is its command line. Every 'hackers' paradise. There are a ton of commands. If you aren't familiar with any Linux commands, be sure to check out this post on the [Linux Commands Everyone Should Know](https://www.howtouselinux.com/post/linux-commands-for-linux-beginners-cheat-sheet).

There is probably a command for almost anything that you want to do. For example what if you wanted to get the size of a directory? Well luckily for you there is a command for that. In this post, we are going to talk about that command and see what it can offer.

## The du command

This command lets the user get a quick view of the disk usage. The best way to use it is by giving it the directory you want to see the size of. It should look a little something like this:
du directory_name

// output
2314    directory_name

This will give you the size of all the files and at the very end, it will [give you the size of the directory](https://www.howtouselinux.com/post/check-directory-size-in-linux) itself. You could point out the full path, or you could just give the name of the directory you want to see if you are already on the same path.

But we could make this even easier just b adding 2 flags. Flags help the command change its behavior. For the du command we could add the flags -s and -h.

1. -s stands for summarize and it will show you only the total size of the directory, without all those files popping up on your screen.
2. -h stands for human-readable and it will convert the size so that you can read it easier. Just by running the command without the -h flag doesn't specify you a unit of measurement.

So now to get the best of this command, you should run it like this with the -s and -h flags:
du -sh directory_name

// output
44.5M   directory_name
And if you wanted to see all of the directories sizes, you could just run this:
du -sh ./*

// output
12.2M   dir1
 2.5M   dir2
  55M   dir3

Another thing you can do is use pipe(|) and sort them by size, which will make it even easier for you to see their sizes. What | does is get the output from the command behind it and add it into the input of the command after it. So to sort the directories by size just run the following command:
du -sh ./* | sort -h

// output
  55M   dir3
12.2M   dir1
 2.5M   dir2

## Conclusion

This is a pretty useful command that I think everybody should know, just because of how short and easy it is. I hope that this post has helped you and I wish you happy coding.
About Prisma (ORM)
Published: 2023-09-26 21:24:38

Prisma is an interesting ORM with a different philosophy to Sequelize and others.

In Prisma you define a schema file with their own DSL called Prisma Schema Language (PSL) and you can create migrations updating the schema (Prisma will diff the file and create the migration file).

The good parts of Prisma:

* Schema file (single source of truth).
* Generated types are good. Everything is typed.
* The API in general is easy to use.
* Creating migrations by just changing the schema is a great idea (which has it's own drawbacks).

The bad parts:

* CLI command names are clumsy.
* Migrations break if you change multiple things.
* No easy way to attach methods to models.
* No easy way to handle validation errors.
* No easy way to share transactions between functions.
* No support [for joins](https://github.com/prisma/prisma/discussions/12715)?

All in all Prisma is a great project but not one I would recommend right now.
Mitigation For Root Detection bypass via Hide My Applist ?
Tags: android, rootdetection, security, appsec
Published: 2023-09-26 21:01:37

what is the best way to mitigate "root detection bypass with Hide-My-Applist" ?

This LSPosed module allows users to hide some applications from others (attacking from target). The config for the HMA module is at the root /Hidemyapplist.json (after running the !install.bat script).
`https://github.com/mModule/guide_hma`
☁️ Serviços da AWS que vão te salvar em uma entrevista de system design (Part 1/4)
Tags: interview, aws, career, braziliandevs
Published: 2023-09-26 20:54:05

Há um tempo atrás fiz uma entrevista técnica que na etapa de system design, depois de ter desenhado a solução para o problema apresentado, me foi pedido para refatorar tudo utilizando recursos da AWS. E agora? Como não estava na descrição da vaga realmente me pegou de surpresa.


![it's a gif of a dog with a hat and a tie, sitting on a chair while everything is getting on fire around him, but he takes a cup of coffee from the table in front of him and says "this is fine"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ogu7u1ftzi8dkiqqsccx.gif)

Depois de uns 30 segundos de susto me recompus e comecei a refatorar, mas isso só foi possível pois já havia trabalhado com a maioria dos serviços necessários para transcrever a solução proposta e os outros havia lido sobre para conseguir entender o pessoal de DevOps nas reuniões do trabalho.

Essa experiência ficou na minha cabeça durante um bom tempo então resolvi compartilhar um resumo (bem resumido mesmo) dos serviços que na minha opinião são essenciais para você construir o básico de qualquer aplicação.



- API Gateway
 - ferramenta de gerenciamento de APIs
 - está entre o cliente e uma coleção de serviços backend
 - single entry point
 - HTTP, REST e web socket


![three boxes with two connections between eachother, the first box is named Client, the second box is API Gateway and the last box is Lambda function](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m9nkc9coa5rcefun00ms.png)

- Lambda
 - event-drive
 - serviço é acionado através do recebimento de um evento
 - geralmente usado para porções de código menores
 - tempo de execução máximo de 15 minutos


- Simple Queue Service (SQS)
 - entrega de mensagens em filas
 - a mensagem é enviada para uma fila
 - serviço externo "escuta" a fila esperando pela mensagem para executar uma ação
 - a mensagem pode persistir na fila, de 1 minuto até 14 dias


- Simple Notification Service (SNS)
 - entrega de mensages pub/sub
 - serviços se inscrevem no tópico e recebem a mensagem
 - mensagens não persistem são entregues aos serviços inscritos e então deletadas

Lembrando que é um resumo com palavras chaves, apenas o estritamente necessário para que você leia antes de uma entrevista e relembre qual a serventia do serviço. 

Só que para essa estratégia funcionar recomendo que você previamente faça uma leitura aprofundada de cada serviço.


Quais serviços você acha que deveriam fazer parte do resumo?
Java Newsletter Insights — Issue 15
Tags: java
Published: 2022-08-19 01:28:00

Originally posted at [https://curatedjava.com](https://curatedjava.com)

🔥** Top Java Post**
_Loom in a Nutshell_
A straight to the point explanation about Loom, a project that aims to bring Virtual Threads and structured concurrency to the Java Platform. [Learn more >>](https://horstmann.com/unblog/2022-07-30/index.html)

🤖 **Java Interview Question**
_Which Java class is designed to represent a universal unique identifier?_
The UUID class, available in the java.util package, can represent a universally unique identifier (UUID). An UUID object represents a 128-bit value and is immutable.

❓ **StackOverflow Java Question**
[How do I efficiently iterate over each entry in a Java Map?
](https://stackoverflow.com/questions/46898/how-do-i-efficiently-iterate-over-each-entry-in-a-java-map)

🖱️ **Just Click It**

[1. JEP 429: Extent-Local Variables (Incubator)
](https://openjdk.org/jeps/429)
[2. Java Money API
](https://javamoney.github.io/)
[3. Eclipe Java IDE 2022–06 Improvements
](https://www.youtube.com/watch?v=zDJtVYAJwyY)
[4. Turn any Java program into a self-contained EXE
](https://mccue.dev/pages/7-28-22-make-an-exe)
[5. Efficient Memory Mapping for Terabyte Sparse Files in Java](http://blog.vanillajava.blog/2022/06/efficient-memory-mapping-for-terabyte.html)
[6. Book review: Head First Java, third edition
](https://blogs.oracle.com/javamagazine/post/head-first-java-third-edition)
[7. VS Code: Getting Better and Better for Java
](https://foojay.io/today/vs-code-getting-better-and-better-for-java/)

⚙️ **New Releases**

[- IntelliJ IDEA 2022.02
](https://blog.jetbrains.com/idea/2022/07/intellij-idea-2022-2/)

[Previous Editions
](https://curatedjava.com/java-weekly-newsletter/)
My HTML/CSS Journey: Overcoming Challenges and Embracing the World of JavaScript
Tags: javascript, css, html, codenewbie
Published: 2023-09-26 20:48:46


Hey there, fellow developers! My name is Charles, and today I want to share a bit about my journey with CSS, the joys, the struggles, and the exciting road ahead.

## **The CSS Struggle**

When I first delved into web development, CSS seemed like a daunting mountain to climb. The struggle to position elements correctly, make layouts responsive, and style everything just the way I envisioned was very real. I'm sure many of you can relate to those late-night debugging sessions, questioning your life choices as you wrestle with CSS quirks.

However, as time went on, I realized that the key to conquering CSS was persistence and practice. CSS isn't just a set of rules; it's an art form that allows you to breathe life into your web creations. And like any art form, it takes time to master.

## **Getting Used to CSS**

Slowly but surely, I started to get the hang of CSS. I learned about Flexbox and Grid, which transformed the way I approached layouts. I dug into CSS preprocessors like Sass to make my code more organized and maintainable. With every project I tackled, I gained more confidence in my CSS skills.

One thing that kept me going was the amazing developer community. I found endless resources, tutorials, and forums where experienced developers shared their knowledge and helped newcomers like me navigate the CSS wilderness. It's incredible how much you can learn from others who have walked the same path.

## **The Exciting Next Step: JavaScript**

As I became more comfortable with CSS, my excitement to dive into JavaScript grew exponentially. CSS was all about styling and layout, but JavaScript was the key to adding interactivity and dynamism to my websites. I started exploring the world of JavaScript, from basic scripting to manipulating the DOM and creating interactive web applications.

The thought of building everything from animated user interfaces to powerful web apps was exhilarating. JavaScript seemed like the missing piece of the puzzle, the magic wand that would breathe life into my designs.

## **The Journey Continues**

So, where am I now on this exciting journey? Well, I'm somewhere in between embracing the challenges of CSS and eagerly learning JavaScript. I've realized that web development is a never-ending adventure, and that's what makes it so rewarding. There will always be new things to learn, new challenges to conquer, and new ideas to bring to life.

As I continue to grow as a developer, I'm excited to share my experiences, insights, and the occasional "Aha!" moment with all of you here on dev.to. Together, we can celebrate our wins, support each other through the struggles, and keep pushing the boundaries of what's possible on the web.

If you're new to CSS or JavaScript, just remember that every developer starts somewhere. The journey may be challenging, but the destination is worth it. Let's keep coding, keep learning, and keep building amazing things together.

Stay tuned for more of my adventures in web development. Until next time, happy coding!
🎉 My very own #PacificDatavizChallenge
Tags: datascience, opendata, dataviz, community
Published: 2023-09-26 20:37:40

## ❔ About

This is a special post dedicated to my very own journey to [Pacific Dataviz Challenge](https://www.linkedin.com/company/pacific-dataviz-challenge/) (2nd edition).

The aim of this post is to:

- 🧑‍🤝‍🧑 **Celebrate** the efforts of the community to make this possible
- 📜 **Log my journey** on this event and the inspiration it brought me (sometimes for other projects)

### 📢`#PacificDatavizChallenge` kick off

On September 2023, the announce landed on twitter:

{% twitter 1697511709328711745 %}

### 🧑‍🤝‍🧑 Social Event at University
 
Then a dedicated event was organized to present the challenge, the datas, with:

- [Government of New-Caledonia](https://data.gouv.nc/pages/accueil/)
- [South Pacific Community](https://www.spc.int/)
- [University of New Caledonia](https://unc.nc/)

{% youtube g2si_ShJUEU %}

During the this event has been introduced a Webinar to **help people learn about dataviz... so anyone could participate.**

### 🍿 Webinar

Discover below the content of this great webinar:

{% youtube 43j0U3EGaVM %}

No event without organization, below the core team pushing good vibes on Open Data in New-Caledonia:

- [👩 Houy-Sy Thao](https://www.linkedin.com/in/houy-sy-thao-5abb085/)
- [👨 Léo Cann-polydor](https://www.linkedin.com/in/l%C3%A9o-cann-polydor-91a690161/)

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



## 🤗 My (very own) journey

The datasets I'm focusing on:

{% twitter 1698327351304884660 %}

While being buzzy on some side projects, this meeting brought me some inspiration...

{% twitter 1698979447607816381 %}

Then had a rainy week-end helped a bit...

{% twitter 1700064618964754542 %}

{% twitter 1702164137365967021 %}

## 💡 Unexpected outcome : the _comic book dataviz_

I managed to create some static dataviz, but during ideation phasis, while thinking about the storytelling came the idea of creating a dataviz... as a comic book I finally decided to use as a teaser:

{% youtube nkN0Pgu7KM0%}

## 🗳️ Submission

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i119787rf25dbmfrt7gw.png)
The AI magic behind open v0 ✨ - an open source React Tailwind generator
Tags: openai, tailwindcss, react, v0
Published: 2023-09-26 20:17:54

---
title: The AI magic behind open v0 ✨ - an open source React Tailwind generator
published: true
description: 
tags: openai, tailwind, react, v0
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-10 17:50 +0000
---

Last week Vercel announced v0 💎

It gave us a glimpse into the future of UI dev 👨‍💻

A few days later an open source alternative called openv0 was dropped 📖

In this week's video I jump into the AI magic behind it ✨

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