teleren/devto huggingface dataset:
🌟 Dream Job vs. Dream Salary 🌟
Published: 2023-07-29 02:08:03

🌟 Dream Job vs. Dream Salary 🌟

🔍 As we navigate our career paths, we often ponder the eternal question: is it the "dream job" or the "dream salary" that truly brings fulfillment? 🤔

💼 A dream job is the one that ignites our passion, aligns with our values, and allows us to make a meaningful impact on the world. It's where we wake up excited every morning, eager to tackle challenges and grow both personally and professionally.

💰 On the other hand, a dream salary represents financial security and freedom, affording us the ability to lead a comfortable life, provide for our loved ones, and explore our interests outside of work.

💡 But here's the revelation: the ideal scenario is to strike a harmonious balance between the two. A dream job that also offers a competitive salary empowers us to thrive in all aspects of life, blending purpose with prosperity.

🏆 Let's remember that success goes beyond numbers on a paycheck. It's about finding joy in our daily endeavors while securing a stable future. Seek the job that lights up your soul, and the salary will be the cherry on top!
Creating a virtual environment in Python
Tags: python, virtual, softwareengineering, softwaredevelopment
Published: 2023-07-29 01:19:52

Quick version
This tutorial focuses on creating a virtual environment or venv for use with Python. I only intend to provide a brief introduction to venv, mostly providing the code necessary.

To install the venv software enter the following:

`pip  install virtualenv`
Now you can create a venv on your system. To initiate venv within any directory type the following:

`python<version> -m venv <virtual-environment-name>`

Like so:

`python3 -m venv myVenv`

To activate the venv enter the following command:

`source myVenv/bin/activate`

If on Windows type this command instead:

`.\myVenv\Scripts\activate`

Now you're all ready to use your venv. Just install software and dependencies as you normally would.

When you are ready to stop using your venv just type the following:

`deactivate`

And that's it. You can now use a virtual environment in Python. For more on venv in Python view the [documentation here](https://docs.python.org/3/library/venv.html).
Writing a NES game day 16, offtopic I
Tags: nintendo, socialmedia
Published: 2023-07-29 00:59:09

Hello, so I couldn't code anything today for the game, so when this happens I will post some related to the project thigs. 
First of all, this project started the day I left every social media. I was very hooked to Twitter, and one day I saw that it wasn't a good environment, nothing good comes from those platforms, I see people every day spending hours and hours on Instagram, Facebook, Twitter and others. I wasn't born in this era, half of my life I was offline and I think that some things from that era were better, sharing pictures and opinions only with family and friends, not having stupid fights with random people.
At some point all this noise is not good. We are all very connected and at the same time not generating real connections with people.
The day I decided to leave social networks I started to think what to do with my free time, think again about my hobbies, and now I use more time to draw and take classes with my daughters, learn more japanese (I am terrible bad at that, but, it is for fun) and I started this project which is a lot of fun.

This is now the only place where I put my thoughts (I have a youtube channel but is in spanish).

Life is so much better far from social media...
Angular with strapi cms
Published: 2023-07-29 00:56:02

I am working on a simple angular project with strapi cms ,If any budy want help me or contributing sone knowledge who also work with angular with strapi so dm your mail id or anything for contact us . And the project are very simple a web application where any budy upload notes related to coding for easy to learn for beginners in coding and also a idea to implement like open ai api connect with ower project for 24/7 students get answers. Its just a idea i just need to discuss about this and some issue
🚀 Taking Observability to the Next Level: Explore New Relic's Free Tier for Developers
Tags: devops, datascience, softwareengineering, developer
Published: 2023-07-29 00:49:44

Hi, Devs!

What’s included in the New Relic free tier?

⭐ One full platform users w/ access to all 30+ platform capabilities

⭐ 100 GB data ingest

⭐ Default logs obfuscation

⭐ Unlimited basic users

⭐ Unlimited ping monitor

⭐ and more!

##[Get Started Here](https://newrelic.com/pricing/free-tier?utm_source=devto&utm_medium=community&utm_campaign=global-ever-green-new-relic-free-tier)
Languaje Model training with php in few lines
Tags: php, ai, learning
Published: 2023-07-29 00:46:21

I made a simple but good example for understanding the basics of Natural Language Processing (NLP) and how statistical language models works with php for php lovers based on the Markov Chain model.

The model is trained on a text file with the 7 books of Harry Potter, serialized for future use, and then used to generate new sentences based on the probabilities of word sequences in the training data.

[Link to thw repo](https://github.com/AcidBurn86/LLM-with-php)

Github stars and share are welcome
Cassandra high CPU load can be caused by prometheus misconfiguration
Published: 2023-07-29 00:38:35

I have a dev Cassandra cluster that me and other developers use for testing their websites. It has around 50-60 keyspaces. We had an issue with this cluster: constant high CPU usage even with no reads/writes. Cluster has 3 nodes, each node has 4 CPU cores assigned. It used 400% CPU on each node almost every time even having no reads/writes at all. I contacted our internal Cassandra expert regarding this issue and get response that such load was ok due to number of keyspaces. More developers started using cluster and Cassandra started feeling really bad. I tried to deploy my website (that uses Cassandra as storage) and realized that 2 out of 3 nodes are down. This happened a day before already. I decided to get to the bottom of the truth, why cassandra is so slow, at any price.

I encountered an article https://tobert.github.io/pages/als-cassandra-21-tuning-guide.html regarding cassandra tuning.

Page has reference to https://github.com/aragozin/jvm-tools -- really powerful tools for java process stats analysis.

I downloaded binary from https://mavenlibs.com/jar/file/org.gridkit.jvmtool/sjk (since original link was unavailable) and run it with parameters

```
wget https://repo1.maven.org/maven2/org/gridkit/jvmtool/sjk/0.21/sjk-0.21.jar
java -jar sjk-0.21.jar ttop -s localhost:7199 -o CPU -n 30
```
It get me a clue what was loading cassandra:

```
2023-07-28T18:43:01.041-0500 Process summary
  process cpu=106.16%
  application cpu=105.76% (user=104.62% sys=1.15%)
  other: cpu=0.39%
  thread count: 95
  heap allocation rate 14mb/s
[001422] user=30.05% sys= 0.09% alloc= 5407kb/s - prometheus-http-1-3
[000542] user=20.31% sys= 0.02% alloc= 5424kb/s - prometheus-http-1-2
[000078] user=19.28% sys= 0.11% alloc=  659kb/s - prometheus-http-1-1
[002413] user=18.87% sys= 0.09% alloc= 1311kb/s - prometheus-http-1-5
[002050] user=12.92% sys= 0.02% alloc=   15kb/s - prometheus-http-1-4
[004127] user= 0.92% sys= 0.37% alloc=  872kb/s - RMI TCP Connection(64)-172.26.34.166
[000081] user= 0.82% sys= 0.12% alloc=  393kb/s - read-hotness-tracker:1
[000047] user= 0.31% sys= 0.20% alloc=  3160b/s - ScheduledFastTasks:1
[000030] user= 0.31% sys= 0.03% alloc= 1039kb/s - OptionalTasks:1
[003238] user= 0.21% sys= 0.12% alloc=   24kb/s - Native-Transport-Requests-1
[003268] user= 0.10% sys= 0.06% alloc=   15kb/s - Thread-4
[000034] user= 0.10% sys=-0.02% alloc=     0b/s - LocalPool-Cleaner
[000029] user= 0.00% sys= 0.05% alloc=  1560b/s - PERIODIC-COMMIT-LOG-SYNCER
[000015] user= 0.00% sys= 0.05% alloc=  3122b/s - ScheduledTasks:1
[000033] user= 0.00% sys= 0.04% alloc=     0b/s - Reference-Reaper
[004128] user= 0.10% sys=-0.07% alloc=  3643b/s - JMX server connection timeout 4128
[003224] user= 0.00% sys= 0.03% alloc=   11kb/s - GossipStage:1
```
It was Prometheus metric collector. Looks like it was misconfigured somehow. I disabled it in `/etc/cassandra/conf/cassandra-env.sh`. And finally CPU load went from 400% to 0%.
From code to content
Tags: beginners, writing, softwareengineering, documentation
Published: 2023-07-29 00:35:39

A Former Software Engineer turned Technical Writer

Welcome to my corner of the web, where code and content converge in a harmonious symphony of communication. I, once immersed in the depths of software engineering, have embarked on an exciting transformation that led me to the captivating realm of technical writing.

Driven by a passion for clear and concise communication, I realized that my true calling lay beyond lines of code. Armed with my experience and expertise in software development, I decided to transition into the world of technical writing, embracing a new medium to express my knowledge and creativity.

Having traversed the intricate landscapes of programming languages and software frameworks,  I bring a unique perspective to the art of technical writing. My extensive background in software engineering enables me to translate complex concepts into easily digestible and accessible content for readers of all technical backgrounds.

Through this website, I aim to share my invaluable insights, bridging the gap between technical jargon and clear understanding. From comprehensive software documentation to engaging tutorials and thought-provoking articles, I will weave my technical expertise with exceptional writing skills, creating content that empowers and enlightens.

Join me on a captivating journey as I continue to unravel the mysteries of the tech world, one eloquently crafted sentence at a time. Whether you're an aspiring developer, a curious reader, or a fellow technical writer, this space serves as a source of inspiration, knowledge, and camaraderie.

Together, let's explore the boundless possibilities that arise when a software engineer's knack for problem-solving merges with the artistry of the written word. Embark on this extraordinary adventure and discover how I plan on redefining the boundaries of communication in the ever-evolving landscape of technology.

Are you ready to dive into the enchanting fusion of software engineering and technical writing? Let the journey begin!"
Manipulando Strings no SQL: A Função REPLACE
Tags: datascience, sql, beginners, tutorial
Published: 2023-07-29 00:07:57

Olá a todos! Hoje vamos aprender sobre uma função muito útil em SQL para manipulação de strings - a função REPLACE.

**1. Introdução à Função REPLACE**

A função REPLACE é uma função incorporada em SQL que permite substituir todas as ocorrências de uma substring específica dentro de uma string por outra substring. A sintaxe básica é assim:

```
REPLACE(string_original, substring_a_ser_substituida, nova_substring)
```

Por exemplo, para substituir todas as ocorrências de 'maçã' por 'banana' em uma coluna chamada 'Frutas', você faria:

```
SELECT REPLACE(Frutas, 'maçã', 'banana') FROM Tabela;
```

**2. Exemplos de Uso**

A função REPLACE é incrivelmente útil para limpar e manipular dados. Por exemplo, suponha que você tenha uma tabela de contatos e todos os números de telefone estejam no formato '(123)456-7890', mas você prefere que estejam no formato '123-456-7890'. Você pode usar REPLACE para remover os parênteses:

```
SELECT REPLACE(REPLACE(Numero_Telefone, '(', ''), ')', '') FROM Contatos;
```

Outro uso comum é corrigir erros de digitação ou padronizar a formatação do texto.

**3. Cuidados ao Usar REPLACE**

É importante notar que REPLACE é sensível a maiúsculas e minúsculas. Por exemplo, REPLACE('Hello', 'H', 'h') retornará 'hello', enquanto REPLACE('Hello', 'h', 'H') retornará 'Hello' inalterado.

Além disso, lembre-se de que REPLACE substituirá todas as ocorrências da substring. Se a substring estiver presente em locais que você não pretendia alterar, isso pode levar a resultados indesejados.

Espero que este artigo tenha ajudado você a entender melhor como usar REPLACE em suas próprias consultas. Continue aprendendo e praticando!
Astro with hygraph
Tags: astro, hygraph, api
Published: 2023-07-28 23:05:46

# How to integrate Hygraph CMS with Astro and Netlify?

1. First, create your proyect with the command
```bash
npm create astro@latest
```
2. Go trough the installation process

3. Create your account in Hygraph and create a project.

4. Go to your project dashboard in Hygraph, and select "Proyect settings"

5. You can grab >>
The Content API or the High Performance Read-only Content API for data visualization.

6. Then you need to add permision for this API to be accesible. Click on the "Add Permission" button on the Public Content API section. In this case we will use the Read permission.

7. Create your data schema on hygraph. In my case i would create a blogPost with a title, a slug and content.

8. Create a blog entry and complete the fields. 

9. I created the title of a Single Line Text, the slug of Type URL and the content of Multi Line text.

10. You could use Marked and some tailwindcss/ypography for styling the Markdown content.

10. In astro, save your `HYGRAPH_ENDPOINT` in a .env file on the project root. Then you could call this key with `import.meta.env.HYGRAPH_ENDPOINT` in any of your files.

11. For quering the blogPost data you could import into your index page like this:

```ts
  const query = {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      query: `
      {
        blogPosts {
          id
          title
          slug
          content {
            markdown
          }
        }
      }`,
    }),
  };
  const response = await fetch(import.meta.env.HYGRAPH_ENDPOINT, query);
  const json = await response.json();
  console.log(json.data.blogPosts)
```

The code provided before can be on its own function or in the Astro `frontmatter`. You should see the log of the posts on the server console. If not, then be sure to have published your blog post.

And there is, you could find this working in this [github repo](https://github.com/camunoz2/example-astrowithhygraph).
It has marked for parsing markdown content!

```js
console.log('See ya astronauts!')
```
ReactJS Coding and TechTalking, come join :D
Tags: react, frontend, javascript, podcast
Published: 2023-07-28 22:54:17


Programming a real company app with reactjs, using microfroentds and typescript C#, javascript, html, css, net core, kubernetes.

Worked for more than 6 tech companies, including AbInbev, Banco Safra e Dell Computers. For now i own a fintech and i am also building a new startup.


[Youtube stream](https://www.youtube.com/watch?v=GuGeaH9lomM)
Team Culture-Building App 'HuddleUp' is Live on Product Hunt 🚀
Published: 2023-07-28 22:37:40

Hey folks,

I am Jagrati, a core member of HuddleUp - an all-in-one team culture-building app on Slack.

After months of a great team effort, we are finally live on Product Hunt and we need your support more than ever! 🚀

Please visit the link below & support us with your feedback:
[Product Hunt Launch Link](https://www.producthunt.com/posts/huddleup)

Thanks! 😃
The Power of C#.NET in My Client Solutions - A Synopsis
Tags: dotnet, csharp, docker, webdev
Published: 2023-07-28 22:19:56

As a software developer, choosing the right language and toolset for your projects is crucial. After working with various technologies, I found my perfect match in C#.NET.

Why C#.NET? Its versatility in building diverse applications, clean and intuitive syntax, and professional relevance supported by Microsoft make it my go-to choice for delivering high-quality software solutions to my clients.

From the start, I use .NET's template system for efficient project creation. Adhering to best practices like SOLID principles and version control, I write clean, maintainable code.

Testing is key, and for that, I use .NET's built-in testing framework. Quality assurance ensures each part of the application functions as expected and helps catch bugs early on.

Documentation is another crucial aspect I don't overlook. I use DocFX, an open-source tool provided by Microsoft, which simplifies documentation creation and maintenance, especially API documentation.

For containerization, I chose Docker. It encapsulates the application and its dependencies into a portable unit that ensures smooth deployment. I automate the build and testing process using Continuous Integration (CI) tools throughout GitHub Actions. Deployment is managed using Skaffold and Watchtower, while Portainer is used for managing my containers in production. Allowing me to give restraint access to the client, only to its container. That's pretty useful, to give more power and access to the individual.

Coding in C#.NET gives me immense satisfaction. Its readability and constructs that encourage best practices make writing good code almost natural. It also supports various design patterns and architectures, making application architecture quite flexible.

In short, the combination of C#.NET and these effective tools enables me to deliver reliable, efficient solutions that meet my clients' needs. Check out the [complete article](https://agdl.dev/posts/whyhowusecsharpinmywork) for a deeper dive into my process.

What are your thoughts on C#.NET? I'd love to hear your experiences!
Why Not to Store images in Database?
Tags: database, development, newbie, hasanelsherbiny
Published: 2023-07-28 22:14:50

Whenever a developer wants to store images to be used by the application many ideas exist, one of them is storing images in the database, so why you MUST NOT go for that approach?

Databases are mostly optimized for fast data storing and retrieval, such thing makes the database expensive in terms of allowed space you get and resources consumption, so you need to be aware about what you are storing in your database.

Storing images in database usually is done by converting the image into base64 or to binary then inserting into the database.
then when a user asks for the image a query is made to the database to retrieve the required image then convert it back to the image to be served to the user.

Storing binary or base64 in the database to size increase (which is expensive as mentioned before) so when you want backup your database you will have large sized backup files and more time consumption for backup and restore process.

Beside increasing the database size, the previous 2 processes add more complexity to the code and also add more time for conversion and resource consumption.
 
Other thing to mention here is when if you are serving images for a web application this adds more time for user to download the image on the client to allow viewing, most browsers make a good use of caching to enhance the performance in case of storing images in the database it's hard for browsers to cache the images which lead to performance issues.

so to summary it up, problems are :
    1. Performance
    2. Increased Database Size
    3. Backup and Recovery
    4. Caching

## Then what is the best approach to store your images?
in general it's better to store images itself on file storage system with your app (on server for example in web applications)
and store metadata about it in the database, this makes your database much lighter and fix all mentioned issues above.

there are some cloud services providing file storage solution can be useful like AWS S3 bucket or Cloudinary which gives you a lot of options related to image storing, retrieval and processing.
Codeberg: uma alternativa Open Source e gratuita ao GitHub e GitLab
Tags: git, github, gitlab, opensource
Published: 2023-07-28 22:10:15

---
title: 'Codeberg: uma alternativa Open Source e gratuita ao GitHub e GitLab'
description: 'Codeberg é uma alternativa Open Source e gratuita ao GitHub e GitLab, focada em FOSS'
tags: 'git, github, gitlab, opensource'
cover_image: 'https://i.imgur.com/FWgXUYJ.png'
canonical_url: null
published: true
series: Codeberg
id: 1552538
date: '2023-07-28T22:10:15Z'
---
Oi.

Vocês conhecem o [codeberg.org](https://codeberg.org)? Trata-se de uma plataforma Open Source e gratuita, baseada no [GiTea](https://about.gitea.com/) e mantida por meio de doações. O foco é em FOSS (Free and Open Source Software) e, para repositórios públicos, não há um limite predefinido de tamanho.

Em suas próprias palavras:

> "The mission of Codeberg e.V. is to build and maintain a free collaboration platform for creating, archiving, and preserving code and to document its development process.
> (...)
> Dependencies on commercial, external, or proprietary services for the operation of the platform are avoided, in order to guarantee independence and reliability."

Diferentemente do [GitHub](https://github.com) e do [GitLab](https://gitlab.com), o objetivo não é fornecer ferramentas adicionais, como de CI/CD. O [Codeberg](https://codeberg.org) também não oferece, ainda, uma alternativa CLI. No entanto, lá você conta com o que é necessário para a hospedagem e manutenção de um projeto, como a criação de páginas estáticas via o [Codeberg Pages](https://docs.codeberg.org/codeberg-pages/), de wikis, e muito mais. Veja [aqui](https://docs.codeberg.org/) para a documentação completa.

Se você possui um projeto Open Source ou se identifica com a filosofia FOSS, talvez o [Codeberg](https://codeberg.org) seja uma boa opção para você. Eu mesmo possuo uma conta lá ([codeberg.org/yxm](https://codeberg.org/yxm)), a qual utilizo para manter repositórios mais pesados e para hospedar sites estáticos de meus projetos.

Fica a sugestão. Talvez valha a pena conhecer.

Um abraço e até mais,

Yuri.

* [yxm.me](https://yxm.me)
* [github.com/yxm-dev](https://github.com/yxm.dev)
* [codeberg.com/yxm](https://codeberg.com/yxm)
Python Looking Towards Potential No GIL Future
Tags: python, programming, news
Published: 2023-07-28 22:06:10

A Python Steering Council announcement hit today discussing a potential No-GIL future. The removal of GIL is certainly not a simple task. However, if all works out it would help in [cases where performance](https://wiki.python.org/moin/GlobalInterpreterLock) could be an issue.

## It's Not Guaranteed

Before the crowd applauds that the GIL is finally gone it's not a hard guarantee. As the announcement notes:

"We want to be able to change our mind if it turns out, any time before we make no-GIL the default, that it’s just going to be too disruptive for too little gain. Such a decision could mean rolling back all of the work, so until we’re certain we want to make no-GIL the default, code specific to no-GIL should be somewhat identifiable."

Given big Python is this is very understandable. There are many people who use it for automation and even as part of functions as a service builds (ala AWS Lambda). Having that suddenly not work would be very detrimental to the language as a whole.

## Experimental Builds

The first steps talk about it being in an experimental phase:

"Short term, we add the no-GIL build as an experimental build mode, presumably in 3.13 (if it slips to 3.14, that is not a problem). We want the build mode to be experimental to make it clear that while the core devs support that build mode, we can’t expect the community to support it outright."

Personally I'll be interested to see how it plays out and maybe run some benchmarking on a socket server threaded server to see how things work out load wise. Then I might check out how it builds with various pip packages to test the waters a bit. Sometimes things that take a good amount of effort to fix feel the most rewarding!

## Conclusion

I really think that this is an excellent step forward. Even if things don't work out at least we'll have documentation on what went wrong. Then who knows, someone might overcome that in the future and make it doable. It's important to remember though that Python is a pretty decent sized language so things will take time. More time will be needed as well to handle the wide variety of community packages. Excited to see what the future holds!