teleren/devto huggingface dataset:
Deploying Sigstore with Keycloak
Tags: security, supplychain, sigstore
Published: 2023-04-03 12:58:48

[Project Sigstore](https://www.sigstore.dev/) is a new supply chain security standard for signing and verifying software.

The growing success of Sigstore has led the community-managed public good instance of the project to reach more than 17 million stored artifacts.

But did you know you could run your own Sigstore instance?

The [Sigstore the Hard Way](https://sthw.decodebytes.sh/) tutorial gives you the steps to deploy Sigstore on a Google Cloud Platform environment using [Dex](https://dexidp.io/) as an identity provider. 
However, alternatives exist to configure other [OpenID Connect](https://openid.net/connect/) providers to authenticate with Sigstore.

In the following guide, you will learn how to deploy Keycloak, an Open Source Identity and Access Management solution as an alternative to Dex: https://github.com/mayaCostantini/sigstore-keycloak-setup
Is Delphi a Good Career Choice for Junior Developers?
Tags: discuss, watercooler, community
Published: 2023-04-03 12:51:36

As a junior developer, I recently received an email from a company seeking a developer who is willing to learn and code in **Delphi**. While the company's administration products are widely used in the country, **the question of whether Delphi still has a future for a junior developer remains**.

This opportunity has left me wondering about the potential for career growth with Delphi and whether it could lead to long-term success as a junior developer.

On one hand, learning a new programming language and working on real-world projects could be a valuable experience for personal and professional growth.

On the other hand, it's important to consider the future of Delphi and whether it will provide opportunities for long-term career growth. While there are still companies that rely on Delphi-based products, the popularity of the language has declined due to the emergence of newer technologies and the shift towards web and mobile applications.

I'd love to hear your thoughts and experiences with Delphi, and whether you think it could be a good career choice for a junior developer.

Does anyone have experience with Delphi-based products or programming languages? Have you seen a demand for Delphi skills in the job market?
Aprendendo a arquitetura das coisas com o produtor musical 9th Wonder
Published: 2023-04-03 12:50:41

Na internet tem obras de desenvolvedores da comunidade que escreveram artigos e fizeram hangouts com o objetivo de propagar conhecimento, ter acesso a isso me possibilitou estudar os assuntos de programação de uma forma um pouco mais aprofundada.

Todo esse conhecimento compartilhado por terceiros (como o código da pasta vendor que é baixada pelo Composer) me permitiu construir uma base de conhecimento para trabalhar com objetos e ter interesse suficiente para querer escrever sobre o tema.

Na atividade musical existe a prática de samplear (principalmente no Rap), essa prática consiste em extrair partes/pedaços de músicas antigas já existentes para compor um instrumental de uma música nova.

Todo o conhecimento sobre o paradigma que consumi foram as coisas “sampleadas” por mim, é como se eu estivesse sampleando o conhecimento difundido na área para compor uma nova obra, que aqui não é uma nova batida, mas sim este blog e posts como esse.

O produtor de Rap 9th Wonder foi a minha inspiração para começar a tentar fazer batidas, ele tem uma visão sobre a pratica de samplear que é muito rica e traz uma sabedoria. Em um tweet ele fala o seguinte:

> In short…our whole culture is a sample, our government, our buildings, holidays, our way of life….we spend our day saying slang and using terms that were NOT create by any of us, but saying it like it’s ours….

Traduzindo fica o seguinte:

> Em suma … toda a nossa cultura é um sample, nosso governo, nossos edifícios, feriados, nosso modo de vida… passamos o dia dizendo gírias e usando termos que NÃO foram criados por nenhum de nós, mas que dizemos como se fosse nosso….

Toda essa ideia de que tudo se constrói com base em alguma coisa usando a arte de samplear foi algo que fez sentido para mim, pois se conectou com o meu entusiasmo com a construção de batidas de rap, construção essa que envolve a programação de timbres dentro de um padrão, são sons programados para operar e se repetir dentro de um BPM, é um outro tipo de programação que eu fazia antes de entrar na programação de objetos.

![9th Wonder](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6y6g982tv5ozasgigfc.jpg)

O produtor 9th Wonder

***

[Este post foi originalmente publicado no meu blog:](https://raphael-da-silva.github.io/arquitetura-9thwonder/)
Introduction to Esbuild
Tags: esbuild, javascript, bundle
Published: 2023-04-03 12:44:24

# Introduction to Esbuild

Esbuild is a fast, modern JavaScript bundler and minifier. Developed by Evan Wallace, it’s a lightweight and efficient tool for compiling and optimizing JavaScript code for the web. Esbuild has gained popularity in recent years due to its fast build times and small output sizes.


# Key Features of Esbuild

Here are some of the key features of Esbuild:


## Speed

Esbuild is designed to be incredibly fast, with build times that are typically much faster than other JavaScript bundlers. According to the official website, Esbuild is often 10–100 times faster than competing tools like Webpack and Rollup. This is due to the fact that Esbuild is written in Go, a language known for its performance and efficiency.


## Small Output Sizes

Another benefit of Esbuild is its ability to generate small output sizes. This is accomplished through a combination of aggressive minification and tree shaking, which eliminates unused code and reduces the size of the final bundle.


## Simple Configuration

Esbuild’s configuration is designed to be simple and intuitive, with a small set of options that cover most common use cases. This makes it easy for developers to get started with Esbuild and avoid the complexity and configuration overhead of other bundlers.


## Support for CommonJS and ES Modules

Esbuild supports both CommonJS and ES modules, which makes it compatible with a wide range of JavaScript code. This allows developers to use Esbuild in a variety of environments, from Node.js to the browser.


## How to Use Esbuild

Using Esbuild is simple and straightforward. First, you’ll need to install the package:

```
npm install esbuild --save-dev
```
Once you’ve installed Esbuild, you can use it to build your JavaScript code:

```
esbuild input.js --bundle --minify --outfile=output.js
```

This command will take the input.js file and generate a bundled and minified version in the output.js file.

# Conclusion

Esbuild is a fast, modern JavaScript bundler that offers a number of benefits over other tools. Its speed, small output sizes, simple configuration, and support for CommonJS and ES modules make it a popular choice among developers. If you’re looking for a lightweight and efficient way to bundle and minify your JavaScript code, Esbuild is definitely worth considering.

https://esbuild.github.io/
Free Next.js Courses
Tags: nextjs, javascript, react, webdev
Published: 2023-04-03 12:39:23

## Next.js Introduction

Next.js is a popular open-source React framework that provides many out-of-the-box features for building web applications. Developed by Vercel, it offers server-side rendering, automatic code splitting, and easy deployment, among other benefits.

---

With Next.js, developers can build static or dynamic websites with ease. Static sites are generated at build time, while dynamic sites are generated on the server at runtime, allowing for complex applications that require server-side logic.

---

The framework also comes with a built-in routing system, making it easy to define routes and handle client-side navigation. It supports popular CSS frameworks and allows developers to add CSS modules or global CSS styles.

---

Next.js includes automatic code splitting, which analyzes dependencies and generates optimized bundles, resulting in faster load times and better performance. Deployment is easy, with support for hosting platforms such as Vercel, AWS, and Google Cloud Platform.

---

In summary, Next.js is a powerful and flexible framework that provides a great deal of functionality and ease-of-use for developers building web applications.

---

## Next.js Courses

- Next.js Tutorial for Beginners - Codevolution

https://youtube.com/playlist?list=PLC3y8-rFHvwgC9mj0qv972IO5DmD-H0ZH

---

- Next.js Tutorial for Beginners - The Net Ninja

https://youtube.com/playlist?list=PL4cUxeGkcC9g9gP2onazU5-2M-AzA8eBw

---

- Next.js React Framework Course – Build and Deploy a Full Stack App From scratch - freeCodeCamp

https://youtu.be/KjY94sAKLlw

---

- Next.js Crash Course for Beginners - Learn Next.js from Scratch in this 100% Free Tutorial! - Academind

https://youtu.be/MFuwkrseXVE

---

- Mastering Next.js

https://masteringnextjs.com

---

- Next.js for Beginners - Full Course - freeCodeCamp

https://youtu.be/1WmNXEVia8I

---

- Code a Reddit Clone with React, Next.js, Firebase v9, Chakra UI – Full Course - freeCodeCamp

https://youtu.be/rCm5RVYKWVg

---

- Next.js 13 Crash Course | Learn How To Build Full Stack Apps! - developedbyed

https://youtu.be/T63nY70eZF0

---

💡 _You can follow me on:_
- [LinkedIn](https://www.linkedin.com/in/dev-alisamir)
- [Telegram](https://t.me/dev_ali_samir)
- [Facebook](https://www.facebook.com/alisamir.dev)
- [Instagram](https://www.instagram.com/alisamir.dev)
React JS Overview
Tags: react
Published: 2023-04-03 12:38:35

React is a popular and widely used JavaScript library that is used for building user interfaces. It was developed by Facebook and has been open-sourced, which means that anyone can use it for free. React was first introduced in 2011, and since then, it has grown to become one of the most popular JavaScript libraries in the world.

React is designed to be declarative, efficient, and flexible, which makes it ideal for building complex web applications. It allows developers to create reusable UI components and manage state changes in a simple and intuitive way.

##Summary of React Library
React is a library for building user interfaces, and it has several key features that make it a popular choice among developers. Here are some of the most important aspects of the React library:

##Declarative Programming Model
One of the main features of React is its declarative programming model. This means that developers can describe what they want the UI to look like, and React takes care of the underlying details of how to achieve that result. This makes it easier to write and maintain code, as developers don’t have to worry about managing the DOM directly.

##Component-Based Architecture
React’s component-based architecture is another key feature that makes it a powerful tool for building web applications. With React, developers can create reusable UI components that can be easily composed together to build complex interfaces. This allows for more modular and maintainable code, as well as faster development times.

##Virtual DOM
React uses a virtual DOM to manage UI updates efficiently. This means that instead of directly manipulating the DOM, React creates a virtual representation of it in memory and updates it based on changes to the data. This makes updates faster and more efficient, as React only updates the parts of the DOM that need to be changed.

##JSX Syntax
React uses a syntax called JSX, which allows developers to write HTML-like code directly in their JavaScript. This makes it easier to write and read code, as well as providing a more natural way of describing UI components.

##Large Ecosystem
Finally, React has a large and growing ecosystem of libraries and tools that make it easier to build and manage web applications. This includes popular libraries like Redux for managing state, React Router for handling routing, and React Native for building mobile applications.

##Conclusion
React is a powerful and flexible library for building user interfaces. Its declarative programming model, component-based architecture, virtual DOM, JSX syntax, and large ecosystem make it a popular choice among developers. If you’re building a web application, React is definitely worth considering as a tool to help you build a better user experience.

...

_written with the help of chat gpt_
Code optimization
Tags: python, datascience, dataengineering, machinelearning
Published: 2023-04-03 12:18:50

## This is part of everyday thoughts in python,data engineering and machine learning
It's important to consider the complexity of a function call. Basically, if we have a complex call in our program, the program becomes slower. Sometimes complexity might find its way into our workspace when dealing with function calls. It's, therefore, a good practice to look keenly for any recursive or nested functions since they are the main cause of slowing our code. To understand this, let's have a sample of the Fibonacci function

```
def fib (n):
    if n <=1 :
        return n
    else:
        return  fib(n-1) + fib(n-2)
result= fib(10)
print(result)
```
Time complexity of the above code is O(2^n)

Here the 10th number in the Fibonacci sequence is calculated by recursively calling the Fibonacci function with a smaller function argument until it reaches the base case of n=0 and n=1. In such cases, the algorithm's time complexity grows exponentially first in cases of huge values of n. in practice; we would like to use a friendly algorithm to minimize calculation repetitions. A friendly algorithm for such a scenario can be as given below.

```
def fib_optimized(n):
    if n < 2:
        return n
    else:
        fib_prev, fib_curr = 0, 1
        for i in range(2, n+1):
            fib_next = fib_prev + fib_curr
            fib_prev = fib_curr
            fib_curr = fib_next
        return fib_curr
result = fib_optimized(10)
print(result)

```
The  time complexity for the above function is O(n) hence more optimized.
From this, we can take home some points in comparison between an algorithm's time complexity and a function call's time complexity.

1. The time complexity of an algorithm depends on the size of the input data, and it is basically the amount of time taken for an algorithm to solve a certain problem

2. The time complexity of a function depends on the function itself.
Therefore it is vital to select the right algorithm for the problem at hand and optimize the algorithm as much as possible to minimize the unnecessary complexity.

happy learning!!
Help with countdown conflict on WP product page.
Tags: webdev, wordpress, php, javascript
Published: 2023-04-03 12:14:15

Hi everyone, I love this forum and I've always followed you behind the scenes, now I've decided to register to request help.

I have a test site where you install a lottery plugin, so far so good but I have a conflict with the Countdown date format in the product pages. In other places of the site such as the product archive page it is displayed correctly, while in the product page I see NaN in the data format.

Can anyone help me?

Link: https://moree.it/product/nike-dunk-high-black-white-orange

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

Thanks in Advcance!
How to test ideas faster
Tags: petprojects, mvp, ideas, faas
Published: 2023-04-03 11:48:37

I have a lot of ideas for pet projects, but now I manage to implement only a small part of them.

I've long wanted a telegram bot that I could write a message to, and it would go to todoist api and create a new task there.

I've done one approach before, then I wrote code in go language to get acquainted with go at the same time, deployed it on free heroku and it was pretty easy. But then heroku stopped providing resources for free and I temporarily froze it.

I wanted to do it all over again, write good code in kotlin that would be easy to maintain, make my own VM in the cloud, set up CI/CD.

And each of the supposed steps are not as easy as they seem, and resources are limited. So it took a long time to implement.

Yesterday I decided to simplify and make a working MVP. Decided to hand-deploy the function into faas. With my old code ready to go. Spent 3-4 hours to figure out how to set up the function, edit the old code, learn how to deploy it, and debug it. Because todoist updated the v1 -> v2 api.

Everything works. So I uploaded the [code](https://github.com/romanwrites/telegram-todoist-bot) to github. It is far from perfect, but will do for MVP. From here on I can improve and set up the CI/CD from the githab to the function. But the main thing is that the product already works. And it took me a few hours.
Managing monorepos on Kubernetes doesn't have to be hard
Tags: monorepo, codebase, kubernetes, devops
Published: 2023-04-03 11:48:21

Managing monorepos on Kubernetes can be challenging, but it doesn't have to be. Here are some tips to simplify the process.

Firstly, use Kubernetes namespaces to isolate your services. This ensures that each service has its own resources and is independent from the others. You can also use labels to organize your services based on your preferences, whether it's by application, team, or anything else.

Managing dependencies is always tricky, but Git submodules or Git subtrees can be a lifesaver. These features allow you to include references to other repositories within your monorepo, which makes it easier to manage dependencies while keeping everything in one place.

Another powerful tool in Kubernetes is the use of custom controllers called operators. By creating custom operators for your monorepo, you can automate tasks such as deploying and scaling services, managing databases, and more.

Finally, Continuous Integration and Continuous Deployment (CI/CD) is essential for managing monorepos. By automating your build, test, and deployment processes, you can ensure that your services are always up to date and running smoothly.

Overall, by using Kubernetes and these best practices, you can simplify the management of even the largest monorepos.
Abstraction is growing
Tags: ai, chatgpt, gpt3, gpt4
Published: 2023-04-03 11:47:15

As AI progresses, I see the level of abstraction skyrocketing. There are many fantasies on this topic, I can offer my own.

The level at which developers write code now - in the near future will seem low.

Technical solutions will be created by the principle of "black boxes". You will be able to say to AI: "Make me a box according to a not very formal specification". And AI will make a complete module right away.

It seems the abstraction will grow even more.

What to do?

I think it's very important to develop soft-skills. And that's why I choose to talk about soft-skills on my blog so often.
5 principles of effective communication with a team-lead
Tags: softskill, communication, teamlead
Published: 2023-04-03 11:46:33

1. Try to make your work more clear. So that the supervisor doesn't have to come to you asking, "What's up?" Proactively provide the current status of the task. Especially if it's on fire.
2. If you don't know what decision to make, don't just come to the team-lead with a question. Come with a solution to your issue. If one option is not enough, offer more than one option. But one is better. Perfectly, the answer to your question should be: "Okay."
3 If you can do something yourself and you don't need the team-lead’s approval, do it yourself.
4. Prepare a list of questions for the meeting. So that you can go through them all at once.
5. In your messages ask one question at a time. It's difficult to answer to a big list all at once. When you come in with a small question for a minute, you reduce friction.

What are your useful principles?
Why do we need tests?
Tags: testing, programming
Published: 2023-04-03 11:45:08

To easily make changes to the code.

When you work with someone else's code, there may be a lot of troubles:
1. The code is unfamiliar. Implementation details are not obvious.
2. The code can be toughly coupled.
3. It can be difficult to track where else the code is used.

Functional tests make life much easier. Not these that just check the code coverage. But those tests that test exactly the behaviour, functionality of a program.

Tests are like a safety net on a construction site. When they are exist, you can cut out or add features bolder. The features will get to the production faster. And it will be beneficial for the company in money.
Monthly Amazon Location Service Updates - 2023.03
Tags: amazonlocationservice, amplifygeo, amplify, amazonlocationserviceupdates
Published: 2023-04-03 11:45:06

![img](https://day-journal.com/memo/images/logo/aws/location-service.png)

### Monthly Amazon Location Service Updates - 2023.03

<br>

This is a summary of the March updates for Amazon Location Service.

<br>

## 2023.03 Updates

[Announcing Open Data Maps for Amazon Location Service](https://aws.amazon.com/about-aws/whats-new/2023/03/amazon-location-service-open-data-maps/)
An "Open Data" map style based on OpenStreetMap (OSM) data is now available to the public.

<br>

## Other Info

[Amazon Location Service Developer Guide](https://docs.aws.amazon.com/location/latest/developerguide)
Official Amazon Location Service Documentation.

[Amplify Geo Docs](https://docs.amplify.aws/lib/geo/getting-started/q/platform/js)
Official Amplify Geo Docs.

[Amazon Location Service Samples](https://github.com/aws-samples/amazon-location-samples)
Official Amazon Location Service samples.

[amazon-location-service-starter](https://github.com/dayjournal/amazon-location-service-starter)
Build environment to get started with Amazon Location Service.

[A Summary of How to Build Amplify Geo and Amazon Location Service](https://dev.to/aws-builders/a-summary-of-how-to-build-amplify-geo-and-amazon-location-service-5hal)
Summary of Amazon Location Service and Amplify Geo. (as of December 2021)  

[dev.to](https://dev.to/dayjournal)
Articles on Amazon Location Service.

[tags - Amazon Location Service](https://day-journal.com/memo/tags/Amazon-Location-Service)
[tags - Try](https://day-journal.com/memo/tags/Try)
Notes on Amazon Location Service. (Japanese)

<br>

## Related Articles

{% link https://dev.to/aws-heroes/monthly-amazon-location-service-updates-202302-16n5 %}