teleren/devto huggingface dataset:
oi, :)
Tags: ios, programming
Published: 2024-04-26 05:17:19

#### quem sou:
podem me chamar de "t0fu", por aqui quero compartilhar minha jornada de iniciante em desenvolvimento iOS e quero compartilhar um pouco do meu aprendizado e descobertas.

#### conteúdo:
nesse post só quero contextualizar sobre o meu perfil e tecnologias que estou aprendendo.

atualmente estou focada em aprender as bases de desenvolvimento iOS, incluindo a linguagem Swift, os frameworks UIKit e SwiftUI, além de explorar diferentes arquiteturas de aplicativos iOS.

#### conclusão:
é isso, estou ansiosa para compartilhar meu aprendizado e minhas descobertas do universo iOS.

`“como um verdadeiro mochileiro das galáxias, nunca esqueço minha toalha - e aqui estou, pronto para enfrentar os desafios que o espaço-tempo tem a oferecer!"
`
- meu github: [t0fu](https://github.com/soyt0fu)


####### até logo e obrigada pelos peixes! 🌌
How to deserialise DateTime from toml configuration
Tags: rust, toml, programming, opensource
Published: 2024-04-26 05:16:05

When implementing a new configuration parameter for [Texted](https://crates.io/crates/texted), I needed something to represent the date the blog started.

When looking into the [TOML website](https://toml.io/en/), I was fortunate to discover that it has a data type for dates, so I could create the new parameter

```toml
blog_start_date = 2016-06-25
```

However, my fortune was gone as I found that the [Toml](https://crates.io/crates/toml) crate does not support deserialising.

<!-- more -->

First, I tried to find if any other crate implemented this, but I found nothing that worked and most of them were over complicated for my use case.

Then I thought, I am pretty sure I am not the only one with this need and with some searching, I found in [Arnau Siches website](https://www.seachess.net/notes/toml-dates/) a nice solution for what I needed and I am sharing here a slightly modified version of their solution


```rust
use std::str::FromStr;  
  
use chrono::{NaiveDate, ParseError};  
use serde::Deserialize;  
  
// Code adapted from https://www.seachess.net/notes/toml-dates/  
#[derive(Copy, Clone, PartialEq, Debug)]  
pub struct TomlDate(pub NaiveDate);  
  
impl<'de> Deserialize<'de> for TomlDate {  
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>  
        where  
            D: serde::Deserializer<'de>,  
    {  
        use serde::de::Error;  
        let value = toml::value::Datetime::deserialize(deserializer)?;  
        let date = TomlDate::from_str(&value.to_string()).map_err(Error::custom)?;  
        Ok(date)  
    }  
}  
  
impl FromStr for TomlDate {  
    type Err = ParseError;  
  
    fn from_str(s: &str) -> Result<Self, Self::Err> {  
        let naive = NaiveDate::from_str(s)?;  
        Ok(Self(naive))  
    }  
}
```

Of course, one small unit test to make sure it works.

```rust
#[cfg(test)]  
mod tests {  
    use serde::Deserialize;  
  
    use super::*;  
  
    #[derive(Deserialize)]  
    pub struct Personal {  
        pub activity_start_year: i32,  
        pub blog_start_date: TomlDate,  
    }  
  
    #[derive(Deserialize)]  
    pub struct Config {  
        pub personal: Personal,  
    }  
  
    #[test]  
    fn test_date_time() {  
        let toml_str = r##"  
[personal]  
activity_start_year = 2000  
blog_start_date = 2024-04-22  
"##;  
        let cfg: Config = toml::from_str::<Config>(toml_str).unwrap();  
        assert_eq!(cfg.personal.blog_start_date, TomlDate(NaiveDate::from_ymd_opt(2024, 04, 22).unwrap()));  
    }  
}
```

To conclude, please note that this code was adapted from a [CC BY-NC 4.0 license](https://creativecommons.org/licenses/by-nc/4.0/)

Link to author's blog: [thiagocafe/How to deserialise DateTime from toml configuration](https://thiagocafe.com/view/20240425_how_to_deserialise_datetime_from_toml_configuration/)
Bùi Thế Nam
Published: 2024-04-26 05:15:24

Tôi là CEO Bùi Thế Nam, CEO, tác giả nhà cái BY88, một trong những địa chỉ hàng đầu trong lĩnh vực cá cược trực tuyến. nhiều người thường đặt ra câu hỏi với tôi: Bùi thế nam là ai? Với niềm đam mê không ngừng và tầm nhìn xa lớn, tôi đã cùng đồng đội thành lập trang web BY88.team, nơi cung cấp cho người chơi trải nghiệm cá cược trực tuyến độc đáo và thú vị nhất.
Địa chỉ : 30 P. Vũ Thạnh, Chợ Dừa, Đống Đa, Hà Nội, Việt Nam
Phone : 84988668866
Brand : BY88
Website : https://by88.team/
Email: gregp1891@gmail.com
Tags: #CEOby88 #buithenam #buithenamTacgia
 
Social Links:

https://www.pinterest.com/buithenamby88team/

https://twitter.com/buithenamby88

https://www.reddit.com/user/buithenamby88team/

https://www.quora.com/profile/Greg-Pope-46

https://www.producthunt.com/@buithenamby88team

https://vimeo.com/buithenamby88team

https://foursquare.com/buithen2013234/list/buithenamby88team

https://www.youtube.com/@buithenamby88team/about

https://www.goodreads.com/user/show/177704027-b-i-th

https://www.twitch.tv/buithenamby88team

https://flipboard.com/@buithenamby88/

https://gravatar.com/gregp1891

https://www.kickstarter.com/profile/buithenamby88team/about

https://www.blogger.com/profile/10655541132396320049

https://buithenamby88team.blogspot.com/

https://www.tumblr.com/buithenamby88team

https://www.behance.net/buithenamby88team

https://about.me/buithenamby88team/

https://www.instapaper.com/p/buithenamby88

https://sites.google.com/view/buithenamby88team/home

https://band.us/@buithenamby88team

https://data.world/buithenamby88team

https://www.blackhatworld.com/members/buithenamby88team.1922771/#about

https://www.designspiration.com/buithenamby88team/

http://www.socialbookmarkssite.com/user/buithenamby88team/

https://replit.com/@buithenamby88

https://pxhere.com/en/photographer/4242610

https://public.tableau.com/app/profile/buithenamby88team

https://forums.goha.ru/member.php?u=1521860

https://www.chordie.com/forum/profile.php?id=1938690

https://roomstyler.com/users/buithenamby88team

https://buithenamby88team.contently.com/

https://www.penname.me/@buithenamby88team

http://egamingsupply.com/member/72867-buithenamby88

https://gitee.com/buithenamby88team

https://glints.com/vn/profile/public/d257090f-7aa0-4c20-98ff-ade47304e783

https://archive.org/details/@buithenamby88team

https://www.fitday.com/fitness/forums/members/buithenamby88team.html

https://www.gta5-mods.com/users/buithenamby88team

https://www.shadowera.com/member.php?141900-buithenamby88team

https://learn.microsoft.com/en-us/users/buithenamby88team-6157/

https://worldcosplay.net/member/1757312

https://rosalind.info/users/buithenamby88team/
Hire Dedicated Java Developer
Tags: java, hire, javadeveloper
Published: 2024-04-26 05:15:04

Looking to **[hire dedicated Java developers](https://talentonlease.com/hire-java-developer)** for the next project you're working on? "TalentOnLease" is the only place to look. At competitive hourly rates, our skilled team provides various hiring choices such as part-time, full-time, or subcontracting. With access to the best talent available worldwide, including India's 7 lakh Java developers, we can assure you of outstanding knowledge and a drive to take on new challenges. 

You can rely on our certified Java developers to provide your ideal projects with excellent, comprehensive solutions. With "TalentOnLease," go to the next level and work with our Java programming experts to realize your business ideas.
Exploring the vibrant world of Punjabi songs, from tradition to modernity
Tags: punjabisongs, koyal, mp3songs, freemp3songdownload
Published: 2024-04-26 04:58:22

## Introduction:

Punjabi Music holds a special place in cultural landscape as it combines rich tradition with modern influences. This article explores the dynamic and diverse world of Punjabi music, from folk songs to contemporary hits.

## 1. Rich Tapestry of Punjabi Folk Music: 

Punjabi Folk Music is the musical foundation of this region, reflecting its joys and sorrows as well as daily life. Each song, from the heartfelt ballads by Heer-Ranjha and the energetic beats by Boliyan to the rural landscapes in Punjab as well as its vibrant culture is reflected through the songs.

## 2. Bhangra's Rise: 

Bhangra has been synonymous with [Punjabi songs](https://koyal.pk/Punjabi) worldwide, thanks to its lively moves and infectious beat. Bhangra began as a folk dance performed in Punjab fields. It has now evolved to a worldwide phenomenon that combines traditional instruments such as the dhol, the tumbi, and modern electronic beats.

## 3. Fusion and experimentation: 

Punjabi music underwent a phase of experimentation in recent years. It has embraced influences from hip hop, R&B and electronic dance music. Diljit Dosanjh, Badshah and others have been pioneers of this new fusion. They've created chart-topping songs that are loved by audiences all over the world.

## 4. Digital platforms and accessibility: 

Other digital and [Koyal](https://koyal.pk/Punjabi) platforms have revolutionized the way Punjabi music is discovered and consumed. Listeners have a wide range of options to choose from, including classic singers, emerging artists and digital platforms.

## 5. Impact in a modern world: 

Punjabi culture and tradition are being preserved. Folk music artists like Gurdas Kaur and Surinder Kaur have made a significant contribution to the genre. They ensure that classics will be passed on to future generations.

## Conclusion: 

Punjabi music is vibrant, diverse and alive. Punjabi music is loved by audiences around the world. From rustic folk melodies, to pulsating Bhangra beats and innovative modern hits. One thing is certain as we move through the constantly changing landscape of music: Punjabi songs' soul-stirring power will inspire and motivate future generations.
#1971. Find if Path Exists in Graph
Published: 2024-04-26 04:42:49


https://leetcode.com/problems/find-if-path-exists-in-graph/description/?envType=daily-question&envId=2024-04-22

```javascript
function hasPath(graph, src, dest, visited) {
    visited[src] = true;

    if (src === dest)
        return true;

    for (let neighbor of graph[src]) {
        if (!visited[neighbor]) {
            if (hasPath(graph, neighbor, dest, visited))
                return true;
        }
    }

    return false;
}

function validPath(n, edges, start, end) {
    const graph = Array.from({ length: n }, () => []);

    for (let [u, v] of edges) {
        graph[u].push(v);
        graph[v].push(u);
    }

    const visited = Array(n).fill(false);

    return hasPath(graph, start, end, visited);
}

```
Implementation of function as Parameters
Tags: backend, go, godev, basic
Published: 2024-04-26 04:41:27

The way to create a function as a function parameter is direcly write the function schema as a data type, let s look example below 


```
package main
import "fmt"
import "strings"

func filter(data []string, callback func(string) bool) []string {
 var result []string
 for _, each := range data {
 if filtered := callback(each); filtered {
 result = append(result, each)
 }
 }
 return result
}


```
The callback parameter is a closure declared of type
func(string) bool . The closure is called in each loop in the function
filter() .
We created the filter() function itself for filtering array data (the data obtained
from the first parameter), with filter conditions that can be determined by yourself. Under
This is an example of utilizing this function

```
func main() {
 var data = []string{"wick", "jason", "ethan"}
 var dataContainsO = filter(data, func(each string) bool {
 return strings.Contains(each, "o")
 })
 var dataLenght5 = filter(data, func(each string) bool {
 return len(each) == 5
 })
 fmt.Println("data asli \t\t:", data)
 // data asli : [wick jason ethan]
 fmt.Println("filter ada huruf \"o\"\t:", dataContainsO)
 // filter ada huruf "o" : [jason]
 fmt.Println("filter jumlah huruf \"5\"\t:", dataLenght5)
 // filter jumlah huruf "5" : [jason ethan]
}
```
There's quite a lot going on in each call to the filter() function
on. The following is the explanation.
1. The array data (obtained from the first parameter) will be looped.
2. In each iteration, the closure callback is called, with data inserted
each loop element as a parameter.
3. The closure callback contains a filtering condition, with a result of type bool
which is then used as a return value.
4. In the filter() function itself, there is a condition selection process (which value
obtained from the results of executing the closure callback). When the condition is worth it
true , then the data element that is being repeated is declared to have passed the process
filtering.
5. The data that passes is accommodated in the result variable. These variables are made
as the return value of the filter() function.
Hiring Your Next Android App Developer with TalentOnLease
Tags: hire, androidappdeveloper
Published: 2024-04-26 04:37:33

Ready to transform your multi-million-dollar app idea into reality? Look no further than TalentOnLease! **[Hire Your Next Android App Developer](https://www.slideserve.com/Talent14/hiring-your-next-android-app-developer-with-talentonlease)** with TalentOnLease.

Discover exceptional, certified, and full-stack Android app developers with just a few clicks. Our experts excel in frontend and backend technologies, ensuring streamlined communication, seamless integration, faster development cycles, and cost-effective solutions tailored to your project's unique needs. Whether hourly or full-time, hiring from TalentOnLease guarantees comprehensive expertise to bring your vision to life. Don't let your idea remain a dream—partner with us and make it a success!
Refined Home Services
Published: 2024-04-24 08:52:24


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

Established in 2017, Refined Home Services has garnered an A+ rating from the Better Business Bureau, positioning itself as a trusted and reliable provider of plumbing, electrical, and drainage services in the Toronto area. With a focus on customer satisfaction, Refined Home Services prioritizes quality service and stands behind its work, ensuring a positive experience for every customer.

Refined Home Services
Address: [North York, Ontario M3H 4M9](https://www.google.com/maps/place/?cid=735957853354453239)
Phone: 647-692-4622
Website: [https://refinedhomeservices.ca/](https://refinedhomeservices.ca/)
Contact email: info@refinedhomeservices.ca

Visit us:
[Refined Home Services Facebook](https://www.facebook.com/RefinedHS)
[Refined Home Services Instagram](https://www.instagram.com/therefinedplumber/)
[Refined Home Services Twitter](https://twitter.com/RefinedPlumber)
[Refined Home Services YouTube](https://www.youtube.com/@TheRefinedPlumber/)

Our services:
Residential Painting
Cabinet Door Refacing and Replacement
Interior Painting
Exterior Painting
Deck Painting
Fence Painting
Cabinet Painting
Earth Day Frontend Challenge landing page: Hugging Earth
Tags: devchallenge, frontendchallenge, css, javascript
Published: 2024-04-26 04:29:09



_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/devteam/join-us-for-the-next-frontend-challenge-earth-day-edition-52e4), Glam Up My Markup: Earth Day Celebration Landing Page_

## What I Built
I created an interactive website featuring fun scroll events and simple fade animations. 

I used Figma to draw the Earth and people, and the website's colors are inspired by the colors of the Earth. 

I aimed for a design that is simple yet visually appealing and effectively communicates the message!

<!-- Tell us what you built and what you were looking to achieve. -->

## Demo
![main](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efqhnbq773gvl6bmzyg6.png)
<!-- Show us your project! You can directly embed an editor into this post (see the FAQ section from the challenge page) or you can share an image of your project and share a public link to the code. -->
It does not work well on mobile
https://dev-dong-su.github.io/Dev-to-FE-challenge-Earth-Day/

You can see source code here
https://github.com/dev-dong-su/Dev-to-FE-challenge-Earth-Day
## Journey
<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->

I implemented a section where a person flies in and hugs the Earth using scroll events and element positioning. 

![human](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/665cu7q8yprn49g78v8j.png)
![hug](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fi4q894v730bjzxvmm2p.png)



However, it was challenging because it behaved differently depending on the browser's height. 

Although the outcome was a bit different from what I initially envisioned, I still had fun and found it satisfying after several hours of work.

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- We encourage you to consider adding a license for your code. -->

<!-- Don't forget to add a cover image to your post (if you want). -->


<!-- Thanks for participating! -->
Remy Rhymes: Crafting Dope Bars with AI
Tags: cozechallenge, devchallenge, ai, machinelearning
Published: 2024-04-26 04:26:22

*This is a submission for the [Coze AI Bot Challenge](https://dev.to/devteam/join-us-for-the-coze-ai-bot-challenge-3000-in-prizes-4dp7): Bot Innovator.*

## What I Built
Remy Rhymes is designed to engage users in a word association game and then generate rap lyrics based on the words provided. It's a unique and innovative way to collaborate with AI and create dope rap verses.

Remy Rhymes is an AI-powered bot that plays a word association game with users and then generates rap lyrics based on the words provided. Users start by giving bot a word, and then it responds with a word that it associates with the user's word. This back-and-forth continues until the user decides to stop or until a set number of rounds is completed.
 
## Demo

Coze Bot Store: [link](https://www.coze.com/store/bot/7361651214318436357?bot_id=true)

Discord Bot: [link](https://discord.com/api/oauth2/authorize?client_id=1232915374161264641&permissions=8797166831616&scope=bot)

{% embed https://youtu.be/swp_jNUgboY %}

## Your Configuration

![sample configuration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2rpsqw06qq7cs30e2ij1.png)

I used CapCut plugin to generate the video and in prompt I gave the bot instructions on how it should behave and respond to user.

## Journey

I first thought of creating different bots like mental health support bot, AI language teacher, mock interview, code buddy. But all these were common ideas, I had to create something different and fun enough that users will enjoy chatting with.

I aimed to create something that would not only be fun and entertaining but also showcase the power of artificial intelligence in a creative way. Thus, Remy Rhymes was born. Throughout the process, my goal was to develop something engaging, new, and interesting for users. I built Remy Rhymes, your virtual rap partner and AI rap lyricist, by transforming a simple word association game into something fun and creative using AI and coze.

I have to make improvements in the bot to generate lengthy lyrics and make the video customized and cool. Let me know what you think about this bot.

Thank you for reading, if you liked the blog you can try engaging in fun chat with bot [here](https://www.coze.com/s/ZmFqH5Uyo/), also you can connect with me on twitter - [link](https://twitter.com/shweta_kale1)
Happy Earth Day
Tags: frontendchallenge, devchallenge, css
Published: 2024-04-26 04:00:19

_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/devteam/join-us-for-the-next-frontend-challenge-earth-day-edition-52e4), CSS Art: Earth Day._

## Inspiration
<!-- What are you highlighting today? -->
When I saw the challenge, my first idea was create an Earth globe drawning, but what else? And inmediatly my head said (and my hands, too): "_This could be an animation..._" and the rest was magic, basically.

I really love 2D art and animation, so I took my graphic tablet and sketch a basic idea with a natural landscape (mountains, trees, flowing water) and then human industrial activities devastating everything, but delivering a message about hope and with the earth rotating in space at the end.

Once the general idea was ready, I decided create an HTML page with no external elements (images or any other resource), just CSS, including SVG images.

## Demo 
<!-- Show us your CSS Art! You can directly embed an editor into this post (see the FAQ section of the challenge page) or you can share an image of your project and share a public link to the code. -->


![Screenshot Dev Earth Day challenge CSS animation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3bc4m1r48f7dbybcfa00.jpg)
{% embed https://jorgedelcampo.github.io/dev_earth_day/css_challenge/ %}


## Journey 
<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->
All in this challenge was a journey for me, but things I really loved creating the project was understand how to set an encode SVG as background image. For this, I created my ilustrations (industries, trucks, animals, etc.) on [Inkscape](https://inkscape.org/), I copied the SVG code and encoded using [oksel.github.io/url-encoder](https://yoksel.github.io/url-encoder/).

Another great discovery was to use SVG paths for animations. Unfortunelly, these paths aren't responsive-friendly, but I resolved combining offset-path and translate(x,y) propierties to create a responsive path, and I think it worked!

The animations and timmings were a watchmaking work. Choose the right time to start or stop an animation to match with the next action was a great odisea.

But probably, what I really enjoyed the most **was share this creative process with my family** (the dog with the family was an idea from my wife and daugther :p)


<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

- 
Author: Jorge del Campo Andrade (Chile).

- 
Repo URI: [https://github.com/jorgedelcampo/dev_earth_day/tree/main/css_challenge](https://github.com/jorgedelcampo/dev_earth_day/tree/main/css_challenge)

- 
Project under MIT licence.

<!-- We encourage you to consider adding a license for your code. -->

<!-- Don't forget to add a cover image to your post (if you want). -->

<!-- Thanks for participating! -->
Laravel 11 y Vite
Published: 2024-04-26 03:55:25

Buenas noches, pido el favor si alguien a realizado el cambio de nombre de la carpeta public de Laravel, ya que al hacerlo, tengo el inconveniente que VITE, deja de funcionar correctamente, realice el cambio de nombre a public_html, y laravel funciona correctamente, sin embargo al llamar a vite me arroja un error que no he podido solucionar:

"Vite manifest not found at: public_html\build/manifest.json"

como se puede observar, la ruta del archivo manifest.json tiene un error que es que en vez de poner \ ha puesto / antes del nombre el archivo, y creo que es por eso que no encuentra el archivo.

ya intente modificar la variable  buildDirectory en el archivo vite.config.js asi:

buildDirectory: 'build' ó buildDirectory: 'build/' ó buildDirectory: 'build\\' ó buildDirectory: 'build/**' ó buildDirectory: 'public_html/build' ó buildDirectory: 'public_html/build/' ó buildDirectory: 'public_html\build', etc

sin embargo, no ha funcionado.

agradecería mucho si alguien tiene una sugerencia, que tal vez haya pasado por alto, ya que no se que mas hacer, he estado estudiando las diferentes archivos de configuracion de vite, y vite_plugin, que me instala laravel y no he podido hacer.

muchas gracias por su atención y su tiempo.
#1137. N-th Tribonacci Number
Tags: leetcode
Published: 2024-04-26 03:54:21


https://leetcode.com/problems/n-th-tribonacci-number/description/?envType=daily-question&envId=2024-04-24

```javascript
/**
 * @param {number} n
 * @return {number}
 */
var tribonacci = function (n) {
    if (n < 2) return n

    let dp = [0, 1, 1]

    for (let i = 3; i <= n; i++) {
        dp[i] = dp[i - 3] + dp[i - 2] + dp[i - 1]
    }
    
    return dp[n]
};
```