teleren/devto huggingface dataset:
Harnessing the power of Dockers with Python projects
Tags: osdc, docker
Published: 2023-04-27 12:39:59

Hi all,
As part of the #OSDC course, we learned how to create docker containers for various project environments. 
You can install the Docker platform from [Docker official site](https://www.docker.com/).
For python projects, we used the [Ubuntu images](https://hub.docker.com/_/ubuntu) for python projects, and [mono](https://hub.docker.com/_/mono) for .net framework on linux OS.
To create a docker container, you can use the Docker Run command that automatically installs the proper OS, ie:
docker run -it -w /opt --name <container name> ubuntu:22.10
or you can clone a project from GitHub and then create a container as follows (this is for python 3.11 project):
docker run -it --name <container name> -w /opt -v <location of the local project>:/opt python:3.11 bash
To run the docker with the newly created container, use the following command:
docker start -i <container name>
The i stands for interactive mode.

To install all required packages for the project, type the following command from within the container:
pip install -r <requirements/dev.txt> && pip install -e .

That's it.. Your all set to go..
Github: A High-Performance Library for Audio Analysis
Tags: python
Published: 2023-04-27 12:39:23

[Audioflux](https://github.com/libAudioFlux/audioFlux) is a deep learning tool library for audio and music analysis, feature extraction. It supports dozens of time-frequency analysis transformation methods and hundreds of corresponding time-domain and frequency-domain feature combinations. It can be provided to deep learning networks for training, and is used to study various tasks in the audio field such as Classification, Separation, Music Information Retrieval(MIR) and ASR etc.

Project: https://github.com/libAudioFlux/audioFlux
Benchmark: https://github.com/libAudioFlux/audioFlux/issues/22

![Benchmark for Linux-AMD](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/67e78yi8nbdhizelitwi.png)
Need help finding elder care in San Diego?
Tags: webdev
Published: 2023-04-27 12:31:08

The Assisted Living Network can help you to find some of your best options for elder care in San Diego. We’re a small team of local advisors who are experts at helping families in the process of choosing the right senior care for their loved one. We’ll expose you to some of the top-rated [assisted living facilities in San Diego](https://assisted-living-san-diego.net/) . With our help and guidance, you’ll feel more confident and relaxed when shopping for senior care in San Diego. You can be sure we’ll save you a lot of time and help you to avoid the frustration that comes with trying to do all this on your own. So when you’re asking yourself…… “Where can I go for help finding elder care near me?”, why not let us assist you?

You may find yourself struggling to find the appropriate elder care for your loved one. Since we’re familiar with just about all the San Diego elder care providers, we can make the process a whole lot easier for you. Once we’ve completed our initial assessment of your loved one’s health status and overall lifestyle, we’ll begin the process of exposing you to the communities for assisted living in San Diego that match closest to your particular needs. You can be sure we’ll make this entire process of selecting the right senior care in San Diego CA much easier for you.

The bottom line is this. With all the many options to consider for elder care in San Diego California, you need an expert on your side to help in the selection process. With all our many years of experience, we know we’ll be able to meet all your expectations.
Things That Make TypeScript Great
Published: 2023-04-27 12:28:46

TypeScript is a popular programming language developed by Microsoft that adds optional static typing and other features to JavaScript. It's becoming increasingly popular for its ability to catch common errors and improve code readability and maintainability. Here are some of the things I learned about TypeScript, and some things that make it a great tool to use:

### TypeScript is a superset of JavaScript.
One of the main benefits of TypeScript is that it's a superset of JavaScript, meaning that any valid JavaScript code is also valid TypeScript code. This makes it easy to get started with TypeScript if you already have experience with JavaScript.

### TypeScript adds static typing.
One of the key features of TypeScript is its support for static typing. By adding type annotations to your code, you can catch errors at compile time instead of at runtime. This can help you write more robust and maintainable code.

### TypeScript has a powerful type system.
TypeScript's type system is much more powerful than JavaScript's. It includes support for union types, intersection types, generics, and more. This can make it easier to write code that is both flexible and type-safe.

### TypeScript can help you catch errors earlier.
Because TypeScript is a statically typed language, it can catch errors earlier in the development process. This can save you time and effort by preventing errors from propagating throughout your codebase.

### TypeScript can improve code readability and maintainability.
By adding type annotations to your code, you can make it more clear and understandable. This can make it easier for other developers to work with your code and can improve its maintainability over time.

### TypeScript integrates well with popular frameworks.
TypeScript has good integration with popular frameworks like React, Angular, and Vue. This can make it easier to write type-safe code in these frameworks and take advantage of TypeScript's powerful features.


Overall, TypeScript is a powerful programming language that can help you write more robust and maintainable code. By adding static typing and other features to JavaScript, it can catch errors earlier in the development process and improve code readability and maintainability. If you haven't already, it's definitely worth checking out TypeScript and seeing how it can help you improve your code.
5 Joke APIs to Tickle your Fancy
Tags: api
Published: 2023-04-27 12:16:27

If you don't fancy creating a project using a [Trivia API](https://dev.to/keracudmore/writing-your-github-profile-29ob) or a [Weather API](https://dev.to/keracudmore/5-weather-apis-for-a-rainy-day-project-flg) from my previous articles, you might want to give these Joke API's a tickle!


### [Dad Joke API](https://icanhazdadjoke.com/api)

🔐 API Key Required? - No

💰 Cost - Free

A collection of dad jokes, known for being cheesy and punny 😂 Jokes are returned in JSON format. This API can also generate random jokes.


---

### [Jokes API](https://v2.jokeapi.dev/)

🔐 API Key Required? - No

💰 Cost - Free

JokeAPI provides a wide range of jokes on topics such as programming, dark, and puns. Response formats including JSON, XML, YAML and plain text. You are limited to 120 requests per minute.


---

### [Dad Jokes](https://dadjokes.io/documentation/getting-started)

🔐 API Key Required? - Yes

💰 Cost - Free Tier & Paid Options

One Dad Jokes API just isn't punny enough - so here's a second! The free tier allows 50 requests to the random joke endpoint per day. Jokes are returned in JSON format.

---

### [Official Joke API](https://github.com/15Dkatz/official_joke_api)

🔐 API Key Required? - No

💰 Cost - Free

This API gives a collection of jokes in various categories such as programming, knock-knock, and miscellaneous. Jokes are returned in JSON format.

---

### [Geek Jokes API](https://github.com/sameerkumar18/geek-joke-api)

🔐 API Key Required? - No

💰 Cost - Free

This API is a collection of geeky jokes about programming, technology, and science. Jokes are returned in JSON format.


I’d love to see any projects you’ve created with a joke API, or if you’ve not created a project - leave me your favourite joke in the comments!
Robbie - ChatGPT Powered Coding Companion
Tags: python, programming, productivity, ai
Published: 2023-04-27 11:54:28

Coding can sometimes get frustrating, so i thought how about creating a coding companion that can help me with coding snippets or general help using GPT.

[Meet Robbie - Your AI Coding Companion](https://messengerx.io/thecoder)

Looking forward to the feedback from the community.

Cheers
- HD
P.S. If you like Robbie, an upvote on PH would be highly appreciated :)
https://www.producthunt.com/posts/meet-robbie-the-coder
A filosofia coletiva no processo de desenvolvimento de software da Plataformatec
Tags: programming, productivity
Published: 2023-04-27 11:32:05

Estava numa reunião de chapter do backend na empresa que trabalho atualmente e eu fui apresentado aos meus colegas _backenders_. A pessoa que me apresentou informou aos presentes que eu já tinha trabalhado na [Plataformatec](https://plataformatec.com/).

Logo após essa informação, um dos presentes disse algo como "o pessoal da Plataformatec manja muito. Qualquer coisa eles nem codam Elixir, já mexem lá no binário e tal" e isso meio que me incomodou um pouco porque não gosto muito quando pensam que as pessoas na Plataformatec eram muito boas apenas individualmente. 

Não me leve a mal, nós éramos sim pessoas programadoras muito boas individualmente mas o nosso "ás na manga" era o poder do coletivo. Aproveitei a deixa para contar para as pessoas presentes como que a força da Plataformatec vinha do coletivo. 

Por incontáveis vezes trazíamos um problema de clientes e discutíamos soluções entre duas, três, quatro pessoas. Muitas vezes de diferentes clientes, sempre com diferentes backgrounds e, de repente, a gente tinha uma solução criada a seis, oito, ou até dez mãos!

O cliente via apenas uma unidade de pessoa indo com um problema e voltando com uma solução e isso passava a impressão, eu acho, de que a gente era individualmente muito bom.

Mas, na verdade, a gente era **muito melhor** trabalhando em equipe!

Isso era bem legal porque a gente aprendia muito. Tudo isso acontecia no meio do escritório e tinha participação de várias pessoas e, mesmo se alguém não participasse da discussão em si, escutava e aprendia. E a gente tinha um ambiente horizontal o suficiente para as pessoas se sentirem a vontade de dar a sua opinião ou expôr sua duvida independente do nível técnico.

Ainda hoje eu estava vendo um corte do [João Carvalho no podcast Desce a Letra Show](https://vm.tiktok.com/ZMY3a1q4C
) onde ele fala a frase "O indivíduo floresce quando o individualismo morre" da pedagoga russa [Nadejda Krupiskaia](https://pt.wikipedia.org/wiki/Nadejda_Krupskaia) e essa citação cai como uma luva nessa característica da Plataformatec.

Nós não éramos indivíduos tentando fazer a melhor solução de forma individual. Nós éramos um coletivo tentando fazer a melhor solução de forma coletiva. E plantávamos e colhíamos os frutos disso como um coletivo. E ainda documentávamos tudo e deixar salvo para consultas futuras, o que gerou uma quantidade enorme de posts no [blog da empresa](https://blog.plataformatec.com.br/).

Saudades Plataformatec ❤️

![Equipe da Plataformatec em Fevereiro de 2019](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ee8f1s7mw6a0c2ce14pz.png)
> _Equipe da Plataformatec em Fevereiro de 2019_
Global CSS Art
Tags: css, opensource, contributorswanted, beginners
Published: 2023-04-27 11:23:18

# Global CSS Art

Welcome to Global CSS Art, a community of CSS artists from all over the world!

{% embed https://github.com/VulcanWM/global-css-art %}

## What is CSS Art?

CSS Art is a form of digital art that uses Cascading Style Sheets (CSS) to create beautiful and creative designs on the web. CSS Art can range from simple designs to complex and intricate illustrations, all created using only HTML and CSS.

## About Global CSS Art

Global CSS Art is a community dedicated to bringing together CSS artists from all over the world to share their work, exchange ideas, and collaborate on new projects. Our community is open to all skill levels, from beginners to experts, and we welcome artists from all backgrounds and cultures.

## How to Get Involved

Check out [CONTRIBUTING.md](https://github.com/VulcanWM/global-css-art/blob/main/CONTRIBUTING.md) to contribute!

## What you get out of contributing

- Your art gets featured on [our website](https://global-css-art.vercel.app/)
- You get mentioned on the [contributors page](https://global-css-art.vercel.app/)
- You become part of an awesome open-source community

We're excited to have you join our community of CSS artists and look forward to seeing your work!
Celebrating the first 1000 stars on GitHub ⭐️
Published: 2023-04-27 11:22:44

Svelte Commerce have just reached the 1000th star milestone on [GitHub](https://github.com/itswadesh/svelte-commerce), and it is the perfect opportunity to thank you for your support! 💪

We will use this milestone to recap Svelte Commerce’s growth and other important milestones since it began as an experimental project in 2019...

[Still haven't try Svelte Commerce? What are you waiting for!](https://github.com/itswadesh/svelte-commerce)

Even though tracking the success of an open-source project is known to be a hard problem, we have a few metrics available to us


![Svelte Commerce Star History](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pase7rw48lm0a8erauar.png)

## Greatest moments timeline:

- October 2019 : First Commit
- August 2021 : [First Contributor](https://github.com/itswadesh/svelte-commerce/commits?author=itswadesh)
- December 2022: Sveltekit 1.0
- April 2023 : Svelte Commerce **released**
- April 2023 : First **1000** stars in the Svelte Commerce repository on Github... **3,02,188** lines of code written, **100** liters of coffee consumed

## Thank you to everyone in the community

Thank you to our entire Svelte Commerce developer community for helping the project reach this amazing milestone! To all of those who have helped the project reach this stage of its evolution. Thank you to all of you who continue to help us as we move the project forward and as we look to build our community further. We want to thank our community for being part of the Svelte Commerce adventure, with a special mention for some contributors such as **Pratap Maharana**, **Deepjyoti Barman, Ashok, Jycouet, Seanogor**. It is good to know that there is a group of early adopters who like what we are doing at Svelte Commerce.

We will stay committed to the open-source community and ensure the highest level of quality and transparency. With that in mind, [we look forward to all contributions](https://github.com/itswadesh/svelte-commerce/blob/master/CONTRIBUTING.md) to our project. If you have any questions, we have a [Discord server](https://discord.gg/GgdAeccwDR) to chat with you. We count on you to keep making our Github stars rising... So help us reach 5,000 stars next!
ppa:ondrej/php on Ubuntu 23.04 (Lunar)
Published: 2023-04-27 11:20:15

Ondrej's PPA is **not** meant to be run on non-LTS versions of Ubuntu. Despite what the docs state (they are unfortunately not up-to-date), [he decided to target LTS versions only](https://github.com/oerdnj/deb.sury.org/issues/1662).

This said, you may still need to make it work, maybe temporarily. Here is how.

1:  Add the PPA

`sudo add-apt-repository ppa:ondrej/php`

2: Edit `/etc/apt/sources.list.d/ondrej-ubuntu-php-lunar.list` and change `lunar` to `jammy`:

`deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu/ jammy main`

3: If you need the intl extension, download and manually install `libicu70_70.1-2_amd64.deb` from the jammy repository. It has no dependencies.

4: Pin `libgd3` to the official Ubuntu version. Otherwise it will make a mess of your system (Ondrej's versio is newer, at the moment, but it has different and unsatisfiable dependencies, resulting in a "broken" package). 

Create a file like this: `/etc/apt/preferences.d/ondrejphp` and paste this:

```
Package: libgd3
Pin: release n=lunar
Pin-Priority: 900
```

5: install your PHP packages
Immutable Primitive Values
Tags: javascript, beginners, programming, webdev
Published: 2023-04-27 11:00:00

In JavaScript, a primitive is data that is not an object, and has no methods or props, such as:
 - **null**
 - **undefined**
 - **number**
 - **string**
 - **bigint**
 - **boolean**

There is a fundamental difference between primitive values and objects. Well first primitives are **immutable**: there is no way to change a primitive value. This is obvious for numbers and booleans. It is not so obvious for strings, however.
Since strings are like arrays of characters, you might expect to be able to alter the character at any specified index. In fact, JavaScript does not allow this, and all string methods that appear to return a modified string are, in fact, returning a new string value. For example:

```js
let str = "hello world"
str.toUpperCase()  // "HELLO WORLD"
str                // "hello world" - the official is not modified
```

Primitives are also **compared by value**: two values are the same only if they have the same value.
Again this sounds fair for numbers, booleans, null and undefined because there is no other way to compare them. But again this is not so obvious for strings. If you compare two string values, JavaScript treats them as equal if, and only of, they have the same length and if the char at each index is the same.
DBS FOUNDATION CODING CAMP
Tags: bootcamp, javascript, beasiswa, aws
Published: 2023-04-27 10:26:47


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kr3be5jpf5pxo6ecre0y.jpg)
SCHOLARSHIP 2023 DBS Foundation Coding Camp is an online coding training program to improve the competence of the Indonesian people in the field of information technology. DBS Founda.tion Coding Camp 2023 provides online coding training scholarships on learning paths 1. Back-End Developer 
🧑‍💻 2. DevOps Engineer 🧑‍💻 Starting from the Basic Level, Beginner, Intermediate to Advanced. The DBS Foundation Coding Camp 2023 program is open to all Indonesian citizens and prioritizes the lower middle class which is divided into 3 categories, namely: a. Educators, b. Students (Students), and c. General Public (Public). Registration Links: 
1. Upload Twibbon on social media https://lnkd.in/de24_MnZ Hi, [I'm] ready to become an Indonesian digital talent with DBS Foundation Coding Camp 2023. DBS Foundation Coding Camp is a FREE online coding training program for Back-End Developers and DevOps Engineers organized byf @dbsbankid with @dicoding 
2. registration link [](https://www.dicoding.com/programs/dbscodingcamp/registration?referrer_id=1324887) 
3. Fill in the opt-in link dicoding.id/form-dbsfcc Registration Period : 
January 25 - May 25, 2023 Immediately register yourself & be part of the 
recipients of the DBS Foundation Coding Camp 2023 scholarship to become a Developer Expert 🧑‍💻
STORY OF MY LIFE
Tags: javascript, webdev, tutorial
Published: 2023-04-27 10:09:03


My name is Benoit BIZIMANA I was born on 21 January 2001 I have completed my secondary studies in 2022 and I took Physics, Chemistry and Biology(PCB) at RUSUMO HIGH SCHOOL. I am very interested in coding due to, To day's world is a digital developing instantly with technology and this led me impressed  to be a good software developer from to day. So, I would like to make every body who is reading this very short survey of my life
How to Create a Kubernetes Cluster on DigitalOcean
Tags: kubernetes, digitalocean, cloud, docker
Published: 2023-04-27 10:07:17

## Kubernetes Cluster Creation on DigitalOcean

To create a Kubernetes cluster:

- From the Create menu in the control panel, click Kubernetes.
- Select a Kubernetes version. The latest version is selected by default and is the best choice if you have no specific need for an earlier version.
- Choose a data center region.
- Customize the default node pool, choose the node pool names, and add additional node pools.
- Name the cluster, select the project you want the cluster to belong to, and optionally add a tag. Any tags you choose will be applied to the cluster and its worker nodes.
- Click Create Cluster. Provisioning the cluster takes several minutes.


![Creating a Kubernetes cluster on DigitalOcean](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/odk2d9pb0ro6lx6t2g4l.png)


## Verify the Cluster was created

Download the cluster configuration file by clicking Actions, then Download the Config from the cluster home page.

run the following kubectl command to check nodes:

`kubectl –kubeconfig={CONFIG FILE PATH} get nodes`

You should get nodes as in the following image:


![List of Nodes returned from kubectl command](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f1v3ht0zwsfs83wrdfhb.png)

## Deploying An Application on Kubernetes

After this point, you have a running Kubernetes Cluster and it is time to use it! 

Now it's time to deploy an application on the Kubernetes cluster. As a suggestion, you can use Ant Media Server an Ultra-low latency WebRTC live streaming engine. 

Simply follow the documentation [here](https://antmedia.io/docs/guides/clustering-and-scaling/kubernetes/deploy-ams-on-kubernetes/)
📰 Monthly digests: April 2023
Tags: digests, django, programming, web
Published: 2023-05-07 12:24:36

---
title: 📰 Monthly digests: April 2023
published: true
date: 2023-04-27 10:07:00 UTC
tags: Digests,Django,Programming,Web
canonical_url: https://dmytrolitvinov.com/blog/digest-april-2023/
---

 ![📰 Monthly digests: April 2023](https://dmytrolitvinov.com/content/images/2023/05/Monthly-Digest.png)

In the company where I work, I do a monthly digest with information that I find valuable and interesting to share with my colleagues and discuss them.  
_This digest will be mostly related to [Django framework](https://www.djangoproject.com/?ref=dmytrolitvinov.com)._

### Links

1. 🎸 [**Django 4.2 released**](https://www.djangoproject.com/weblog/2023/apr/03/django-42-released/?ref=dmytrolitvinov.com) **-** Django 4.2 is designated as a long-term support release. It will receive security updates for at least three years after its release. Support for the previous LTS, Django 3.2, will end in April 2024.
2. 💽 [**devdata - Improving developer velocity and experience**](https://www.revsys.com/tidbits/devdata-improving-developer-velocity-and-experience/?ref=dmytrolitvinov.com)
3. 🤖 **[How I am using ChatGPT to increase my productivity coding Django](https://djangoandy.com/2023/03/18/how-i-am-using-chatgpt-increase-my-productivity-coding-django/?ref=dmytrolitvinov.com)**
4. 🎸 **[Django: Parametrized tests for all model admin classes](https://adamj.eu/tech/2023/03/17/django-parameterized-tests-model-admin-classes/?ref=dmytrolitvinov.com)**
5. **🖇 [Caching and Django Rest Framework](https://www.screamingatmyscreen.com/caching-and-django-rest-framework/?ref=dmytrolitvinov.com)**
6. 1️⃣ **[Ban 1+N in Django](https://suor.github.io/blog/2023/03/26/ban-1-plus-n-in-django/?ref=dmytrolitvinov.com)**
7. 📊 **[Denormalization with JSON Fields for a Performance Boost](https://www.caktusgroup.com/blog/2023/03/22/denormalization-json-fields-performance-boost/?ref=dmytrolitvinov.com)**
8. **[Technology Radar #28](https://www.thoughtworks.com/radar?ref=dmytrolitvinov.com)** - An opinionated guide to technology frontiers

![📰 Monthly digests: April 2023](https://dmytrolitvinov.com/content/images/2023/04/image.png)

**Quote of the Digest:**  
_"Talking to people can save you hours of relentless, undirected and ultimately unsatisfying coding."_ - Marcel Gehlen