teleren/devto huggingface dataset:
PURISTA - Thanks to amazing open-source software
Tags: typescript, programming, opensource, coding
Published: 2023-09-11 20:17:57

Welcome to our series on the unsung heroes behind PURISTA!

Ever wondered about PURISTA?
It's not just another Typescript backend framework for simply building HTTP-endpoints.
It's a versatile solution that embraces diverse techniques for highly distributed deployments, taking inspiration from event-driven architecture.
If you're interested, you're invited to take a look at the official website [http://purista.dev](purista.dev).

But hold on, this series isn't about the framework itself. Instead, we're here to shine a spotlight on the incredible libraries, tools, software, and passionate contributors that make PURISTA possible. 

In this series, we will introduce all the tools, explain how we use them, why we find them essential, and endeavor to illustrate why they might also be a suitable solution for you.

## General setup

Most developers should be more or less familiar with the basic setup.

[VSCode](https://code.visualstudio.com) as a code editor with  ESLint plugin.

[GitHub](https://github.com/sebastianwessel/purista) is uses as repository, issue & project tracker, and also for hosting the [official website](https://purista.dev/).

## Coding Setup

In addition to [Node.js](https://nodejs.org/) and [TypeScript](https://www.typescriptlang.org), we rely on two indispensable tools available as npm modules:

### ESLint and Prettier

Maintaining a clean, readable, and consistent codebase is essential, and ESLint and Prettier are the perfect tools for the job.
Just enable "lint on save" in VSCode, and you won't have to worry about it. They're a "must-have," even for small personal projects.

See [https://eslint.org](eslint.org) and [https://prettier.io](prettier.io)

ESLint is extended by some awesome plugins and extensions:

- [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort) by Simon Lydell [@SimonLydell](https://twitter.com/SimonLydell)
- [eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node) by Toru Nagashima - Dev.to: @mysticatea &  Twitter: [@mysticatea](https://twitter.com/mysticatea)
- [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json) by [Azeem Bande-Ali](https://azeemba.com)
- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
- [eslint-config-standard](https://github.com/standard/eslint-config-standard)

---
In our upcoming article, we'll delve deep into the inner workings of PURISTA's build pipeline. Stay tuned for an in-depth exploration!
Is Frontend Dev Enough?
Tags: webdev, frontend, backend, career
Published: 2023-09-11 20:01:25

As a frontend developer, I've spent countless hours trying to develop beautiful user interfaces, ensuring seamless user experiences, and diving deep into the intricacies of HTML, CSS, and JavaScript.

Frontend development has been my passion, and my creative outlet. But lately, I find myself pondering a question that many in the field may have also asked themselves: Is frontend development enough, or should I learn backend development too?

I can never undermine frontend dev, considering that the skills required for frontend development are essential, diverse and ever-evolving. However, my struggle is with the curiosity that I often have regarding what happens behind the scenes. I'm intrigued by the idea of handling server-side logic, databases and APIs.

As a frontend developer, sometimes backend development seems like a mystery. I feel like a waiter in a restaurant, eager to know how the food I serve is prepared in the kitchen.

In a sense I feel limited, especially when dealing with complex data-driven applications. This realization has led me to question whether learning backend development could enhance my skillset and career prospects.

What are your thoughts on this?
Buns
Tags: javascript, bunjs, npm, yarn
Published: 2023-09-11 19:54:47

Hello everyone, this is my first post. Hope I break a leg..

I want to talk about 'Bun'.

Bun is a new JavaScript runtime that is designed to be fast, modern, and easy to use, it is based on the JavaScriptCore engine, which is the same engine that is used by webkit-based browsers. This makes Bun very fast, both in terms of startup time and runtime performance.

Bun supports the latest JavaScript features, such as async/await, modules, and classes and has a rich ecosystem of third-party modules, making it easy to build complex applications.

In addition to being fast and modern, Bun is also easy to use. It has a simple API that is similar to Node.js. This importantly makes it easy to migrate from existing Node.js applications.

Long story short, I believe Bun is a promising new JavaScript runtime that has the potential to become a popular choice for building server-side applications. It may still be under development, but it is already a viable alternative to Node.js.

This is my two-piece, hope I broke that leg!
Encrypt And Decrypt files in Python
Tags: python, security, programming, coding
Published: 2023-09-11 19:54:32

## Hi 🙂🖐

Welcome in a new post, Today i will show you how to Encrypt And Decrypt files in Python and module called cryptography.


## step 1

install `cryptography`

`pip install cryptography`

##  step 2
Generate key to use it in encrypt and decrypt process

```python
from cryptography.fernet import Fernet
from os import remove


# #generate the key 
# key = Fernet.generate_key()
# print(key)
```

Encyrept file

```python
f = Fernet(key)

def encrypt(fname):
   with open(fname, 'rb') as f1:
		with open(fname + '.enc', 'wb') as f2:
			f2.write(f.encrypt(f1.read()))

	remove(fname)
```

Decrypt file

```python
def decrypt(fname):
	with open(fname, 'rb') as f1:
		with open(fname.replace('.enc', ''), 'wb') as f2:
			f2.write(f.decrypt(f1.read()))

	remove(fname)
```



**Now we're done 🤗**

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

**Support me on PayPal 🤗**
https://www.paypal.com/paypalme/amr396
can i store web requests without decompressing them?
Tags: go
Published: 2023-09-11 19:47:53

i'm not really a go dev. i watched some course and decided it was too low level for me. however i needed something simple and efficient and decided that go was the right tool for the job.

what the program does is open a webserver. if it recieves a request and the api key matches allows to upload or delete files, and if it's not authenticated and knows the exact name of a file, it allows to download.

looking for ways to optimize this i had an idea and whanted to ask if it was possible. since the only thing my server does with the uploaded file is store it and send it back gzipped: Would it be possible to detect if a client is already uploading gzipped and store it as-is (no server side decompression) and when the next request asks for that file, i don't have to compress it again (honestly, it seems like a waste for the client to compress, than server decompresses, then the server compresses it again and the client decomrpesses)
Android WebView: Handle special Intent URI requests
Tags: android, androiddev, tutorial, webview
Published: 2023-09-11 18:42:07

**Background**: When Developing a WebView based Android app, you might come across a scenario where the WebView Content/URL makes a special request to open an intent and the call fails.

**Error**: The Webpage at intent://<app_name>/<some path> could not be loaded because:
net::ERR_UNKNOWN_URL_SCHEME

**Cause**: The only reason behind this kind of failure is because WebViews are designed to handle only http: & https: protocols.

**Solution**: To handle special protocols like _intent:, tel:, mailTo_:
We need to embed a code to our WebViewClient and specify what steps to follow when such special protocols appear.

We need to override the shouldOverrideUrlLoading(WebView view, WebResourceRequest request) method from WebViewClient.

**Note**: You might get shouldOverrideUrlLoading(WebView view, String url) from you webViewClient, (this varies because of SDK version) but the below code will work for any of both methods.

**Code**:

```
 
               webView.setWebChromeClient(new WebChromeClient(){

            @Override
            public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
                String url = request.getUrl().toString();
                if(url.startsWith("intent"))
                {
                    try {
                        Log.i(TAG,"inside intent starts with");

                        // let intnet handle this special protocol 
                        Intent intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME);
                        if (intent.resolveActivity(getActivity().getPackageManager()) != null) {
                            getActivity().startActivity(intent);
                            Log.i(TAG,"handled with intent parseUri");
                            return true;
                        }
                        //try to find fallback url
                        String fallbackUrl = intent.getStringExtra("browser_fallback_url");
                        if (fallbackUrl != null) {
                            webView.loadUrl(fallbackUrl);
                            Log.i(TAG,"handled with browser_fallback_url");
                            return true;
                        }

                    }  catch (Exception e) {
                       Log.e(TAG_ERROR, e);

                    }
                }
                
                // at the end if something fails, return the default method using super
                return super.shouldOverrideUrlLoading(view, request);
            }
        });
```
**Don't Miss!!!** TOP Google Penalties Guide
Tags: seo, google, programming, beginners
Published: 2023-09-11 19:35:37

## Understanding Google Penalties
Google Penalties refer to punitive actions taken by Google against websites that violate its guidelines and standards. These penalties can negatively impact a website's search engine ranking and visibility.



## List of Google Penalties

A comprehensive list of Google Penalties includes various penalties that Google may impose on websites for violating its guidelines. These penalties can impact a site's ranking and visibility. Here are some notable Google Penalties:

1. Algorithmic Penalties: These are automatic penalties triggered by Google's algorithms, such as Panda (content quality), Penguin (link quality), and Hummingbird (semantic search).
2. Manual Actions: Google's manual reviewers can impose penalties for issues like unnatural links, thin content, or spammy structured markup.
3. Mobile-Friendly Penalty: Websites not optimized for mobile devices can face lower rankings in mobile search results.
4. Page Quality Penalty: For low-quality content, including duplicate, thin, or irrelevant content.
5. Link-Related Penalties: Includes penalties for unnatural links, paid links, or link schemes.
6. Security Issues: Sites with security vulnerabilities may face penalties for the safety of users.
7. User Experience Penalties: Slow-loading pages and intrusive interstitials can lead to lower rankings.
8. Cloaking Penalty: Penalizes websites that show different content to users and search engines.
9. Intrusive Interstitials Penalty: Sites with pop-ups that disrupt user experience on mobile devices can be penalized.
10. Ad-Related Penalties: Sites with too many ads or deceptive ad placements may face penalties.


## How to Avoid a Google Penalty?

To avoid Google penalties and maintain a healthy online presence, follow these essential tips:

1. Quality Content: Create high-quality, original, and relevant content. Avoid duplicate or low-value content that can trigger penalties.
2. Keyword Usage: Use keywords naturally and avoid keyword stuffing. Ensure your content serves the user's intent.
3. Mobile-Friendly Design: Ensure your website is responsive and mobile-friendly for a better user experience.
4. Page Speed: Optimize page loading times to improve user satisfaction and SEO rankings.
5. Backlink Quality: Build high-quality, relevant backlinks and avoid spammy link-building practices.

you can Read more About **[Google Penalties Giude And Complete List and Recovery Strategies](https://noobizdev.tech/the-ultimate-guide-to-google-penalties-complete-list-and-recovery-strategies/)**

## 
> Let's spread the love! 
> Don't forget to leave a comment, like, and save this post.
> Thanks for reading, See you next time... ❤️👋

## 

## Conclusion 

By ceasing any black hat SEO practices, implementing security and moderation tools on your site, and focusing on truly quality content, you can avoid Google penalties, improve your ranking and traffic, and protect your site from hackers.
Precision Prompts: Empowering AI for Elite Engineers
Published: 2023-09-11 19:22:17

## Introduction:

Welcome to the frontlines of IT infrastructure engineering, where decades of experience meet cutting-edge AI technology. In this blog, we'll delve deep into the world of Advanced Prompt Engineering, a technique that will redefine how you\ leverage AI and Machine Learning (ML) for unparalleled productivity and innovation.

- The Mastery of Prompt Engineering:

Advanced Prompt Engineering is not just a skill; it's a mastery of language that unlocks the true potential of AI. Imagine commanding AI models to orchestrate complex infrastructure operations with precision. It's not about simple instructions; it's about crafting prompts that wield AI's full power.

> "In the realm of AI, the true architects are the engineers who master prompt engineering." - Anonymous
> 

Let's journey into the intricacies:

- Precision Matters:

In your world, precision is non-negotiable. When instructing AI for infrastructure tasks, ensure that your prompts are meticulous, leaving no room for misinterpretation. For example, consider deploying a complex network configuration:

```python
# General Prompt
generate_network_config("Configure the network.")

# Advanced Prompt
generate_network_config(
    "Provision a redundant BGP-based network with AS-path prepending and route aggregation in a multi-site architecture."
)

```

- Harnessing AI for DevOps:

AI is not just a tool; it's a strategic partner in DevOps. Use it to automate deployments, optimize resource allocation, and troubleshoot complex issues. Imagine commanding AI to automate the deployment of a microservices architecture with Kubernetes:

```python
# DevOps Prompt
generate_kubernetes_deployment(
    "Automate the deployment of a microservices architecture with auto-scaling and load balancing."
)

```


- Optimize Resource Allocation:

AI models can predict resource requirements with astonishing accuracy. Employ AI to analyze historical data and forecast server, storage, and network resource needs for your infrastructure, ensuring optimal performance and cost-efficiency.


## Conclusion:

In the realm of IT infrastructure engineering, Advanced Prompt Engineering is your secret weapon to harness the full potential of AI. It's about crafting sophisticated prompts that enable AI to not only understand but execute complex tasks with precision.

So, step into the future, empower your prompts, and let AI be your ultimate partner in the relentless pursuit of excellence in IT infrastructure.

> "The future belongs to those who dare to challenge the status quo and embrace AI with finesse and expertise." - Albert Einstein
> 

Stay tuned for more cutting-edge insights in our next post.
QuizVerse - Projeto em C ++
Tags: cpp, beginners, braziliandevs, programming
Published: 2023-09-11 18:58:43

QuizVerse é um desafio em C++ realizado durante a formação de desenvolvedor Web no IEFP (Portugal). O desafio consistia em criar uma aplicação que simula um quiz de perguntas e respostas de múltipla escolha. O projeto foi desenvolvido em grupo e, como tivemos algumas disciplinas relacionadas à engenharia de software, começamos com a coleta de requisitos, elaboramos um fluxograma e aplicamos a metodologia ágil.

Para o desenvolvimento, decidimos utilizar o GitHub para controle de versionamento. Utilizamos o GitHub Projects para criar as issues necessárias para o projeto e, com essa ferramenta, conseguimos medir o progresso e dividir as tarefas.

O projeto foi completamente desenvolvido em C++, sem o uso de bibliotecas externas ou banco de dados. Alguns requisitos foram propostos no desafio, como a aleatorização das perguntas, a aleatorização da ordem das respostas, a implementação de um banco de dados para armazenar pontuações e classificações, bem como o cadastro e login dos jogadores.

Um detalhe importante a ser mencionado é que, dado que a formação estava focada no desenvolvimento web, era justo que o desafio se encaixasse nesse contexto. No entanto, uma vez que estávamos no início da formação e C++ era a linguagem escolhida para introduzir os conceitos de programação, o desafio não poderia incluir conceitos que ainda não tivessem sido ensinados.

Quanto ao banco de dados, optamos por utilizar um arquivo .txt para armazenar as informações dos jogadores e consultar as perguntas e respostas da aplicação. Em relação à estrutura de dados, utilizamos a struct tanto para armazenar as informações do jogador no banco de dados quanto para ler as informações das perguntas e respostas e mantê-las em memória para uso.

```
struct Usuario {
    // struct para armazenar os dados do usuário
    string nomeCompleto, email, password, pergunta, resposta;
    int pontos;
    };
```


Como o projeto foi desenvolvido em grupo, tivemos que prestar atenção aos detalhes para garantir que ele funcionasse tanto em sistemas Windows quanto em Linux. Isso nos levou a incluir algumas validações e, para isso, recorremos à versão 17 do C++.

```
#ifdef _WIN32
    // Inclua as bibliotecas específicas do Windows aqui
    #include <conio.h>   
#elif __linux__
    // Inclua as bibliotecas específicas do Linux aqui
    #include <termios.h>    
#endif
```

A lógica da aplicação consiste em coletar os dados do jogador para iniciar o jogo, selecionar os temas e o nível de dificuldade e, em seguida, executar um loop while para percorrer a estrutura de dados. Em cada iteração do loop, verificamos se a resposta está correta e somamos os pontos.


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

repositório no github: https://github.com/joseevilasio/projetoquizverse
Aurora Borealis VS Code Theme
Tags: discuss, showdev, vscode, themes
Published: 2023-09-11 18:50:42

Hello everyone,

I would like to show you my first extension that I've created for VS Code some time ago - a color theme called [Aurora Borealis](https://marketplace.visualstudio.com/items?itemName=mister-gold.aurora-borealis-theme).

It is an elegant dark theme featuring two hand-picked color variations: Main and Calm. You can preview each of them by clicking the button under the screenshots below.

**Main**:
![Aurora Borealis](https://github.com/bandantonio/aurora-borealis-vscode-theme/raw/HEAD/showcase-main.png) [![Live Preview](https://img.shields.io/badge/-live%20preview-blue?style=for-the-badge&logo=visual-studio-code&logoColor=white)](https://vscode.dev/theme/mister-gold.aurora-borealis-theme)

**Calm**:
![Aurora Borealis Calm](https://github.com/bandantonio/aurora-borealis-vscode-theme/raw/HEAD/showcase-calm.png) [![Live Preview](https://img.shields.io/badge/-calm%20theme%20live%20preview-blue?style=for-the-badge&logo=visual-studio-code&logoColor=white)](https://vscode.dev/theme/mister-gold.aurora-borealis-theme/Aurora%20Borealis%20Calm)

To install this theme in your VS Code instance:

1. Press `Ctrl/Cmd+Shift+P`, type **Color Theme** and select **Preferences: Color Theme**
1. In the **dark themes** section, select **Aurora Borealis** or **Aurora Borealis Calm**

----

I would be happy to hear your feedback and ideas you may have regarding this theme. You can share them in the comments below or in the [theme's Marketplace page](https://marketplace.visualstudio.com/items?itemName=mister-gold.aurora-borealis-theme).

If you like this theme, please give it a 5🌟 rating and share with your friends. 

Thank you! 💜🫶
How do i succed in the world of github?
Tags: github, git, java, computerscience
Published: 2023-09-11 18:49:19

Hi everyone,
I've recently started using GitHub, and I'm passionate about Java programming. I'm eager to learn how to navigate the platform effectively and succeed in my GitHub journey. However, I often feel overwhelmed when I want to contribute to projects or help others. I'm seeking advice and tips to overcome these challenges.

Specifically, I have a few questions:

1. Are there any tools or resources that you recommend for learning and improving my Java skills through GitHub projects?

2. How can I find Java projects on GitHub that are suitable for contributors with my level of experience?

3. What are some best practices for forking, cloning, and making contributions to Java repositories?

I appreciate your time and expertise in advance.
DevOpsDays Ukraine: Disaster Recovery at scale on September 14-15th ⚙️
Tags: devops, cloud, programming
Published: 2023-09-11 18:46:56

Hey folks! We’re happy to invite you to DevOpsDays Ukraine: Disaster Recovery at scale on September 14-15th⚙️
Get ready for a two-day DevOps journey:

🔸 Fireside Chat with the co-founder of DevOpsDays, Patrick Debois. 
🔸 Cultural Talks by top experts Charity Majors, Iaroslav Molochko, Manuel Pais, Adriana Villela just to name a few.

Some of the topics: 
- Emergency cloud migration and cost optimization tricks during
the first months of a full-scale invasion of Ukraine
- Compliance and Regulatory Standards Are Not Incompatible With Modern Development Best Practices
- Beyond Engineering: The Future of Platforms
- The Case for Self-Service Tooling
- Key strategies to overcome the challenges of operating

🔸 Ignite talks: DevOps in GameDev, Socio-Technical Engineering, FQDN Egress Control and much more.

And finally online networking on Open-Spaces with like-minded experts from around the world. 

Check out agenda & register 👉 https://www.devopsdays.com.ua 
When? September 14-15
Where? Online

Can't wait to see y'all!

![DevOpsDays Ukraine speakers](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uy8jch4lmeijjrmdf1ym.png)