teleren/devto huggingface dataset:
Código en php que calcule la cantidad de días exactos
Published: 2023-08-04 23:53:22

Este código calcula la cantidad de días laborables (considerando una semana laboral de 5 días) en un cierto número de semanas, luego añade esa cantidad de días a la fecha actual para obtener la fecha futura. Por último, imprime la fecha resultante en un formato inglés de Estados Unidos ("l, F j, Y").

`<?php
// Cantidad de semanas
$semanas = 20;

// Cantidad de días laborables por semana
$dias_por_semana = 5;

// Calcular la cantidad total de días laborables
$x_dias_laborales = $semanas * $dias_por_semana;

// Fecha actual
$fecha_actual = new DateTime("2023-07-18");

// Agregar la cantidad de días laborables a la fecha actual
$fecha_resultado_final = $fecha_actual->modify("+$x_dias_laborales weekdays");

// Formato de fecha en inglés
$formato_fecha = 'l, F j, Y';

// Imprimir la fecha resultante en el formato deseado
echo $fecha_resultado_final->format($formato_fecha);
?>
`
Este código lo utilizo en varios sitios Ej:

[erfahrungen activo para quemar grasa](https://fatburnactive.pro/de/fat-burn-active-erfahrungen/)
[quemador de grasa activo den bedste quemador de grasa](https://fatburnactive.pro/dk/fat-burn-active-den-bedste-fat-burner/) 
[quemador de grasa active y extrifit fatall quemador de grasa](https://fatburnactive.pro/cz/fat-burn-active-y-extrifit-fatall-fat-burner/) 
[revisión activa de quema de grasa](https://fatburnactive.pro/it/fat-burn-active-recensioni/) 
[quemagrasas extremo activo](https://fatburnactive.pro/hu/fat-burn-active-extreme/) 
[avis activa para quemar grasa](https://fatburnactive.pro/fr/fat-burn-active-avis/) 
[revisión activa de quema de grasa](https://fatburnactive.pro/nl/fat-burn-active-review/) 
[quemar grasa opiniones activas reales](https://fatburnactive.pro/es/fat-burn-active-opiniones-reales/)
[opiniones activas para quemar grasa](https://ipparaguay.com.py/fat-burn-active-opiniones/)
Announcing SolveSum: A Testament to the Power of Starting Small
Tags: reactnative, ios, android, expo
Published: 2023-08-04 23:19:39


Hello fellow App Developers!

I'm thrilled to announce that my debut mobile game, SolveSum, is now live on both [Apple App Store](https://apps.apple.com/us/app/solvesum/id6451448436) and [Google Play](https://play.google.com/store/apps/details?id=com.mediasolutions231.solvesum)! 

 A journey that began with a simple idea has now culminated into a fully functional game – thanks in large part to React Native and Expo. These tools not only simplified the development process but also eased the publication of this enticing puzzle game.

For those of you embarking on the journey of app development, especially for the Apple App Store and Google Play, I have a piece of advice: *Start simple*. SolveSum was my sandbox, allowing me to navigate the intricacies of the approval and submission process. By commencing with a smaller project, I was able to avoid the daunting fear of rejection that might have loomed over a project involving hundreds of hours of native coding.

The lessons I've acquired along the way have been invaluable. Not only have I learned the ropes of app stores, but I've also garnered the confidence to dive into more complex projects. To me, that's where the real fun begins!


![Game Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tkir9noc9ckbh9y8xhin.jpeg)

**About SolveSum:**  
SolveSum is more than just a puzzle game. It blends the intellectual challenge of Sudoku with the engaging mechanics of tile swapping games. As players, you're tasked with manipulating tiles to achieve the stipulated total for each row and column. And for every sum you get right? You score points!

Do take a moment to explore SolveSum and experience the result of my learnings firsthand.

Happy Coding and Gaming! 🎮📱
2023-08-04: Sitting on our hands
Tags: devjournal
Published: 2023-08-04 23:11:11

## MVP Launch Delayed Due to Miscommunication

This week's been a pretty slow week. We were supposed to launch an MVP on August 1, but that obviously didn't pan out because there was some miscommunication between us and the marketing team.

Naturally, they wanted something that would take like 20 weeks to accomplish, not 2 months with 3 devs. Anyway, my boss ended up giving them their three-page application that they asked for, which didn't have too much to do with what we had created thus far.
	
## Exploring 3D Animations with Svelte
Between that, I was doing some research on 3D animations that we might want to implement into our site in the future. Since we're using Svelte, we wanted a simple-to-use library. Our options were to use raw Three.js, Svelte Cubed, Threlte, and Svelthree.

Three.js is probably not a good option considering that other more elegant wrappers specifically for Svelte exist, so I didn't mull too much on that one. Svelthree was also in a proof of concept stage so I mostly ignored that as well. I  did some basic comparisons between Threlte and Svelte Cubed, and I figured that Threlte was probably easier to read and more well-documented and maintained.

I got to work on making a little test application using StackBlitz, which you can see here:
https://stackblitz.com/edit/vitejs-vite-vdtdhj?file=src%2FScene.svelte

It's just some quick little thing to see what can be done. Click on the red block to switch directions of red and blue, click on the blue block to stop both. There's also some size effects on hover that you can see. Click on the orange block to rotate it. 

I know that Three.js is pretty powerful so this should be sufficient for our needs.

## Prompt Engineering with ChatGPT
On Friday, i.e. today, I met with my boss on another task, which was to do some prompt engineering with ChatGPT to get it to generate some example user input for our bot application. It took a couple of hours of refining to get it to produce something that wasn't absolute garbage, even with GPT-4, but it came out well. Here's an example of what it spat out earlier on in the process:

"alright, listen to this. i was walkin down the sidewalk, mindin my own business, when a pigeon pooped on my brand new suit. think i can sue the city for negligence? need some legal advice on this bird poop catastrophe."

## Game Development Hurdles
As for the game, I was trying to open the existing project with the map on the PC, but there was an issue with the hard drive space that's making the machine physically unable to open it, which is crazy to me. I was planning on adding in the assets that I'd purchased into it so that we can show it off to people, but obviously that's off the table until I can get it fixed. I'm probably going to have to transfer all the hard drive data over to another one of the internal drives at this rate, which seems like a hassle but I don't really know of any other solutions. Oh well.

Anyway, I think that's all for this week. Cheers.
Day 798 : The Rain
Tags: hiphop, code, coding, lifelongdev
Published: 2023-08-04 22:14:59

_liner notes_:
- Professional : It's funny. Even though it's supposed to be a half day, I kept on working for a couple of more hours to try and get ahead for next week. I had no meetings and was able to get a bunch of stuff done. Left some questions for team members in Europe so that I can get a running start on Monday.

- Personal : Since I knew Bandcamp Friday was this week, I waited to pick up projects. Got everything in the morning. In the afternoon, I posted the links to different social media networks. I even posted to LinkedIn. I don't use it, but this may be a good excuse to be on there at least once a week to reply to messages. After work, I went to pick up the battery I ordered earlier in the week for my van. Of course as soon I get back to the spot, it starts to rain. Guess I'll have to wait till it stops or maybe early morning tomorrow to hook it up.

![The plains of Okakuejo, Namibia at sunset with a lot of shrubs, a single tree and a pond](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8vvxbf768jrnwfmi2mon.jpg)

It's raining and I'm all sleepy. haha Going to finish up working on the radio show. If it's not too dark, maybe put in my battery, but it doesn't look like the rain is letting up anytime soon. If I'm still awake, maybe work on my side project.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 9dZW1C3neao %}
Importand data analytics functions
Published: 2023-08-04 22:09:37

Veri Setini Gözlemleme:

df.head() : Veri çerçevesinin ilk birkaç satırını gösterir.
df.tail() : Veri çerçevesinin son birkaç satırını gösterir.
df.shape : Veri çerçevesinin boyutunu (satır ve sütun sayısı) gösterir.
df.columns : Veri çerçevesindeki sütun adlarını listeler.
Veri Seti Bilgisi:

df.info() : Veri çerçevesinin genel bilgilerini gösterir (veri türleri, eksik değerler vs.).
df.describe() : Veri çerçevesinin temel istatistiksel özetini gösterir (ortalama, standart sapma, min, max vb.).
Eksik Değerleri İnceleme:

df.isnull().sum() : Her sütundaki eksik değer sayılarını gösterir.
df.dropna() : Eksik değer içeren satırları veri çerçevesinden çıkarır.
df.fillna(value) : Eksik değerleri belirli bir değerle doldurur.
Kategorik Değişkenlerin İncelenmesi:

df['Column'].value_counts() : Bir sütundaki kategorik değerlerin sayısını gösterir.
df['Column'].unique() : Bir sütundaki benzersiz kategorik değerleri gösterir.
df['Column'].nunique() : Bir sütundaki benzersiz kategorik değerlerin sayısını gösterir.
Veri Görselleştirme:

import matplotlib.pyplot as plt : Matplotlib kütüphanesini kullanarak grafik çizebiliriz.
Histogram: df['Column'].plot.hist() veya plt.hist(df['Column'])
Çizgi Grafiği: df.plot(x='X_Column', y='Y_Column') veya plt.plot(df['X_Column'], df['Y_Column'])
Dağılım Grafiği: plt.scatter(df['X_Column'], df['Y_Column'])
Kutu Grafiği: df.boxplot(column='Column') veya plt.boxplot(df['Column'])
Veri Gruplama ve Toplama:

df.groupby('Column').mean() : Bir sütuna göre gruplama ve ortalama hesaplama.
df.groupby('Column').sum() : Bir sütuna göre gruplama ve toplam hesaplama.
df.groupby(['Column1', 'Column2']).mean() : Birden fazla sütuna göre gruplama ve ortalama hesaplama.
Filtreleme ve Sıralama:

df[df['Column'] > value] : Bir sütundaki değeri belirli bir değerden büyük olan gözlemleri filtreler.
df.sort_values(by='Column', ascending=False) : Bir sütuna göre büyükten küçüğe sıralama yapar.

Bu fonksiyonlar, veri setini anlama ve analiz etme sürecinde çok kullanışlıdır. Veri analizini daha etkili ve anlamlı kılmak için bu ve benzeri fonksiyonları kullanarak verilerinizi daha iyi anlayabilir ve analiz edebilirsiniz. Ayrıca, bu temel fonksiyonları kullanarak veri setinizin daha kapsamlı analizlerini yapmak için daha fazla görselleştirme ve analiz yöntemlerini de ekleyebilirsiniz.
iyi kodlamalar millet
Embracing the Power of Linux: A Robust and Versatile Operating System
Published: 2023-08-04 21:57:51



Introduction:
In a digital age where operating systems dominate the technology landscape, Linux stands out as a powerful and versatile choice. Offering an open-source approach, Linux has gained a massive following among developers, businesses, and tech enthusiasts. This article will delve into the world of Linux, highlighting its features, benefits, and the reasons why it has become a go-to platform for a wide range of users.

1. An Open-Source Powerhouse:
Linux is an open-source operating system, which means it is built collaboratively by developers worldwide. This unique approach fosters innovation and allows for customization, making Linux extremely flexible. The open-source nature of Linux encourages contributions from a diverse community, resulting in robust updates, bug fixes, and security enhancements.

2. Vast Variety of Distributions:
Linux comes in various distributions or "distros," each with its own unique flavors and functionalities. Popular distros include Ubuntu, Fedora, Debian, and CentOS, among others. These distributions cater to different needs, whether it be desktop usage, server management, data analysis, or multimedia production. Linux empowers users to choose the distro that aligns with their requirements, unlocking a world of possibilities.

3 Command-Line Superiority:
Linux's command-line interface (CLI) is renowned for its power and flexibility. While graphical user interfaces (GUIs) offer convenience, the CLI provides advanced users with a direct and efficient approach to system management and troubleshooting. With a wealth of command-line tools and shortcuts, Linux empowers users to unleash their creativity, automate tasks, and streamline productivity.

4. Cost-Effective Solution:
One of the most compelling aspects of Linux is its cost-effectiveness. Being open-source, Linux is free to use, allowing businesses, educational institutions, and individuals to save on licensing fees. Furthermore, Linux's compatibility with older hardware helps extend the lifespan of aging systems, reducing the need for costly upgrades. These factors make Linux an attractive option for organizations looking to maximize their budget without compromising on performance.

Conclusion:
Linux has grown from a niche operating system to a powerful global platform, conquering a significant portion of the technology landscape. With its open-source nature, stability, security, vast variety of distributions, command-line superiority, developer-friendly environment, and cost-effectiveness, Linux offers a compelling alternative to commercial operating systems. As technology continues to evolve rapidly, embracing Linux can unlock unparalleled possibilities and empower individuals and organizations to reach new heights in innovation and productivity. Whether you are a developer, a business owner, or an enthusiast.
Labs: The Evolution of Continuous Merge
Tags: programming, devops, productivity, podcast
Published: 2023-08-04 21:56:03

On this week’s episode of Dev Interrupted, co-host Conor Bronsdon and Ben Lloyd Pearson, LinearB’s Director of Developer Relations, detail the evolution of Continuous Merge and the tool behind it, [gitStream](https://linearb.io/platform/gitstream). Joining the conversation is Nik LeBlanc, VP of Engineering at DevCycle. 

Nik shares the ways his team is using gitStream to streamline code reviews and offers practical advice for anyone looking to implement the tool on their own team. He also explores the somewhat controversial practice of splitting up and reshuffling engineering teams, a strategy that DevCycle has used to great effect. Nik finds that this practice helps balance teams, manage diverse knowledge bases, and de-risk the organization.

Conor and Ben wrap up the conversation by casting an eye on the future, focusing on the potential and direction of gitStream.

{% spotify spotify:episode:5qSYrSVgV4e7lY4wkwz3VD %}

## Episode Highlights:
* (2:50) Splitting and reorganizing dev teams
* (9:20) How DevCycle is leveraging tooling to enable positive change
* (14:50) Why teams are paying "a lot more attention" to PRs
* (17:00) Nik's thoughts on DORA and shipping
* (21:20) Threads & socials to follow
* (23:35) Ben & Conor breakdown their convo with Nik
* (27:30) Applying estimated time to review to PRs
* (31:30) gitStream integrations
* (32:30) The future of gitStream

[Read the full episode transcript
](https://devinterrupted.com/podcast/labs-the-evolution-of-continuous-merge/)

---

***While you’re here, check out this video from our [YouTube channel](https://www.youtube.com/c/DevInterrupted?sub_confirmation=1), and be sure to like and [subscribe](https://www.youtube.com/c/DevInterrupted?sub_confirmation=1) when you do!***

{% youtube Spm5FbNhyt0 %}

---

### Want to cut code-review time by up to 40%? Add estimated review time to pull requests automatically!
*gitStream is the free dev tool from LinearB that eliminates the No. 1 bottleneck in your team’s workflow: pull requests and code reviews. After reviewing the work of 2,000 dev teams, LinearB’s engineers and data scientists found that pickup times and code review were lasting 4 to 5 days longer than they should be.* 

*The good news is that they found these delays could be eliminated largely by adding estimated review time to pull requests!*

### Learn more about how gitStream is making coding better [HERE](https://linearb.io/blog/why-estimated-review-time-improves-pull-requests-and-reduces-cycle-time/?utm_source=Substack%2FMedium%2FDev.to&utm_medium=referral&utm_campaign=gitStream%20-%20Referral%20-%20Distribution%20Footers).

![Start using gitstream today!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xg1l6hxt134px501bf7d.png)
AWS Amplify and Vite Configuration
Published: 2023-08-04 21:31:04

Earlier , I ran into an issue with the configuration of my React/AWS Amplify project using Vite. I found this really cool [link](https://dev.to/ethanlloyd21/react-typescript-vite-amplify-setup-052023-25ge) in the AWS Amplify discord chat that helped me realize the need to change the index.html file to include this script tag in the body tag...

```
<script>
      // AWS Amplify needs this to work. See https://github.com/aws/aws-sdk-js/issues/3673
      const isBrowser = () => typeof window !== "undefined";
      const isGlobal = () => typeof global !== "undefined";
      if (!isGlobal() && isBrowser()) {
        var global = window;
      }
 </script>

```
as well as changing the vite.config.js file to include the alias that's seen below. 

```
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      "./runtimeConfig": "./runtimeConfig.browser",
    },
  },
});
```


After this I was able to use the pull command to get the latest client configuration from the website e.g,

```
amplify pull --appId dxxxxxxxxxxxc --envName staging
```

Sign into the Amplify Cli and then download the recommended library from the console's suggestion

```
npm install "@aws-amplify/ui-react@^4.6.0" 
```

After this the Datastore object and its query functions were made available and worked as expected. 

See the repo for a direct example

https://github.com/ZecharyDouglas/AWS-Amplify-Vite-Example/tree/new-branch/UniHive%20Alpha
¿Qué son los Type hints en Python? Mejorar la calidad de tu código y hazlo más legible
Tags: python, programming, beginners, tutorial
Published: 2023-08-04 21:30:30

Python es un lenguaje de tipado dinámico, esto quiere decir que una variable puede tomar valores de distintos tipos.

### Ejemplo

```python
a = 1
b = a + 3
a = "a"
```

Es conocido que Python durante el tiempo de ejecución no impone las anotaciones de tipado en funciones o variables. Sin embargo, puede ser utilizado por herramientas de terceros como validadores de tipado, IDEs (Entornos de Desarrollo Integrado), linters, entre otros.

El uso de _type hints_ es como las pruebas unitarias, puede que para el desarrollador sea un esfuerzo extra y deba dedicar más tiempo, sin embargo, a largo plazo tiene sus ventajas.

## Ventajas

Te permite ejecutar _static checkers_ en tu código, mejora la legibilidad del mismo, al igual que te puede ayudar a entender más fácil las funciones (tipo de datos que se reciben en los parámetros y el tipo de retorno).

Ahora, si hay más personas aportando código en un proyecto, es fundamental poder entender de manera general y/o detallada lo que hace cada parte del mismo, entonces hacer uso de __type hints__ es algo fundamental en proyectos grandes y pequeños.

Documentar el código se vuelve una tarea un poco más sencilla y la calidad de la documentación también mejora demasiado.

### Ejemplo

```python
a: int = 5
b: int = 3
c: int = a + b
```

En el ejemplo anterior tenemos la siguiente estructura al usar type hints con variables.

```
<nombre de la variable>: <tipo de dato> = <valor>
```

Pero también se puede hacer lo mismo con funciones o métodos.

### Ejemplo

```python
def hello_string(s: str) -> None:
    print(f"Hello {s}")
```

El método anterior recibe como parámetro un string `s` y no retorna ningún valor, es decir `None`.

También se puede presentar que necesitamos que una función pueda retornar más de un tipo de dato o que un parámetro pueda ser de más de un tipo de dato, veámoslo en el siguiente ejemplo.

```python
def hello_or_add(a: int | str) -> int | None:
    if type(a) is int:
        return a+1
    else:
        print(f"Hello {a}")
```

Para poder definir más de un tipo de dato es necesario separarlos entre sí con pipes `|`, por todo lo demás sigue funcionando igual.
Beginner looking for advice on how to get started with coding
Tags: beginners, learning, newbie, firstpost
Published: 2023-08-04 21:16:35

Maybe I'm posting this in the wrong place, so if that is the case, maybe you could help direct me to a better place to post this question where I will be able to get some help or advice. I don't really have any experience with coding. But I do have a few ideas for apps that I want to create. So, I was wondering if anyone could help me out with how to get started on learning to code. If anyone can help me, or direct me to a place where I'll be able to get help, I would really appreciate it.

I've tried reading books and watching videos that are supposedly designed for beginners and say that they have step-by-step instructions on how to code, but I still haven't really been able to figure it out. I think I just learn things better when I actually have someone explaining it to me and showing me how to do it, then also helping me get started by correcting my mistakes or helping me out if I get stuck. Then, after doing it on my own a few times, I will usually just be fine after that. Although learning a coding language is probably different, so that might be why I'm struggling a little more with figuring it out. If anyone can help me, or direct me to a place where I'll be able to get help, I would really appreciate it.
m3u8 to mp4 with merged audio
Tags: m3u8, video, download, ts
Published: 2023-08-04 21:09:08

Script below allows to download video files from m3u8 playlist, join them to create a single mp4 video file and merge it with an audio track. It automatically searches for full hd video format (1920x1080) and separate audio track. You need to have `youtube-dl`, `grep` and `awk` installed on your system.

```bash
#!/bin/bash
youtube-dl -f $(youtube-dl --list-formats $1|grep 1920|awk '{print $1}'||tr -d '\n')+$(youtube-dl --list-formats $1|grep audio|awk '{print $1}'||tr -d '\n') --hls-prefer-native $1 -o $2
```

Save file as `m3u8dl` and make it executable (`chmod +x ./m3u8dl`). 

**Usage:** `m3u8dl <m3u8_url> <output_filename>`
pg betflik เครดิต ฟรี 50 ล่าสุด
Published: 2023-08-04 21:07:00

Hello, I’m Yuni. I’m an artist living in Trafo, Alsancak, Kocasinan Blv., 38110 Kocasinan/Kayseri, Türkiye. I am a fan of photography, technology, and design. I’m also interested in music and entrepreneurship. You can visit my website with a click on the [button](https://betflikslotpg.blogspot.com/2023/07/pg-betflik-50.html).