teleren/devto huggingface dataset:
swiftui car rental app
Tags: swift, tutorial, ios, mobile
Published: 2023-12-24 19:24:23

Last week I launched a YouTube channel where I'm teaching how to create iOS apps using both swiftui and uikit. I will be teaching how to build iOS apps from scratch, I will be also teaching design patterns, answering some iOS interview questions and talking about everything related to iOS development. If you want to take some time to explore my YouTube Channel, you may find something that will be helpful in your learning journey. Here is the link:https://www.youtube.com/@OmarTHAMRI
My first uploaded tutorial series is to build a car rental app using swiftui
part 1: https://www.youtube.com/watch?v=gAGb4SqzfCQ&t=450s
part 2: https://www.youtube.com/watch?v=KfC2-pfu4pM&t=39s
part 3: https://www.youtube.com/watch?v=Tuav8ihMr8Y&t=125s
Part 4: https://www.youtube.com/watch?v=rb1xSiyZgT0
Part 5: https://www.youtube.com/watch?v=2JRE6rNqM_E
Part 6: https://www.youtube.com/watch?v=jPIKDgL1nmA
Part 7: https://www.youtube.com/watch?v=Coi7MGvB_dE&t=41s
Part8: https://www.youtube.com/watch?v=1r_KgbNwcj0&t=33s
Part9: https://www.youtube.com/watch?v=qlM1dAbzXIE&t=1s
Part10: https://www.youtube.com/watch?v=zICtovWvvJY
Part11: https://www.youtube.com/watch?v=CEmlCOjfJ24
Buy Vultr Account
Tags: webdev, aws, codenewbie, news
Published: 2023-12-24 19:22:56

Welcome to the Countdown to Vultr Bliss, where the path to digital excellence begins with the simple yet powerful act of **[purchasing your Vultr account](https://shopvcc.net/)**. This countdown marks the beginning of a transformative journey into the world of cloud computing, where innovation, performance, and reliability converge to elevate your digital experience.

As you embark on this countdown, the first step is securing your ticket to the cloud with the purchase of a Vultr account. This key unlocks a treasure trove of features designed to empower entrepreneurs, developers, and IT professionals alike. It's not just an account; it's your gateway to a seamless and efficient digital future.

At the heart of Vultr Bliss is the promise of cutting-edge technology, including lightning-fast SSD storage. This high-performance storage solution is engineered to fuel your projects with speed and agility. Whether you're launching a startup, building applications, or managing critical workloads, the SSD storage ensures that your digital assets perform at their peak, providing an unparalleled user experience.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v95sr9g6m1si1e98xkw3.png)
But the journey doesn't end with technology; it's complemented by the unwavering support of the Vultr team. With your purchase, you gain access to a dedicated support system, ensuring that you have a reliable partner on your digital voyage. The responsive and knowledgeable support team stands ready to assist with any technical queries, configurations, or challenges you may encounter along the way.

As the countdown progresses, you'll discover the magic of scalability with your Vultr account. Seamlessly adjust resources to meet the evolving needs of your projects, whether you're expanding your business, launching new services, or optimizing existing applications. The cloud platform ensures that you have the flexibility to scale up or down on-demand, allowing you to stay agile in the dynamic landscape of digital ventures.

The countdown culminates in the promise of blissful reliability. Your Vultr account serves as the bedrock of your digital assets, offering uptime and stability that you can trust. The infrastructure is designed to keep your applications running smoothly, allowing you to focus on steering your projects towards success, innovation, and excellence.
Website:https://shopvcc.net/

In conclusion, the Countdown to Vultr Bliss is a celebration of the transformative power that comes with purchasing your Vultr account. It's an investment in a future where performance meets reliability, where innovation is fueled by cutting-edge technology, and where your digital projects can thrive. Buy today and embark on a journey towards blissful digital success with Vultr.
This is login and register form using React + vite
Published: 2023-12-24 19:14:06

This is login and register form using React + vite language and it's used framework is chakra ui

Demo Site
[ Click here ](https://instagramloginreact.netlify.app/)

# Screenshots

### Desktop 
<a href="https://instagramloginreact.netlify.app/" target=”_blank”>![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wt3yog46lwge5ox6g644.jpg) </a>

### Mobile phone
<a href="https://instagramloginreact.netlify.app/" target=”_blank”>![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e5tbzl8ffz36vgby8997.jpg)</a>
Let's have a look at #cybersecurity #breaches #data leaks from 18.12.2023-24.12.2023 #dataleak
Tags: cybersecurity, developer, webdev, devops
Published: 2023-12-24 19:13:21

In this video, we will have a look at #cybersecurity  IT #breaches  from 18.12.2023-24.12.2023. 

This time I see a lot of #france  #websites  #russian  #ukrainian  #taiwan  and #italian  websites that have been #breaches  and we will take a look at #accounts  that are for #sale  mostly #netflix  #fortnite  #Revolut #facebook  etc. Also next video will be in a different format, and more interactive so please be sure to Subscribe for more interesting content from several Breach forums also from the #darkweb #darkwebsites  and plus several #IT #tutorials  ( #devops  #devsecops  #cybersecurity  #Penetration testing ) and also how to stay #safe  #online 

In this video my views on some #vpn providers

More in the video:
{% embed https://youtu.be/9q_ZA96BrJA?si=CVJnulAg25YsBJzh&t=165 %}

Please subscribe and like the video as that is what is driving me forward on creating even better videos with more content, etc.
APICache: free API performance and caching service
Tags: webdev, productivity, javascript, backend
Published: 2023-12-24 19:10:40

**What is APICache.dev?**
Enhance your application’s performance with APICache.dev, the leading free API performance and caching service. Our user-friendly platform is designed specifically for developers looking to optimize their applications by reducing API load times and managing data more efficiently.

At APICache.dev, we understand the importance of swift and reliable data retrieval. That’s why our service focuses on request caching, ensuring your application accesses data rapidly without compromising on accuracy or efficiency. Whether you’re dealing with public data APIs or need a lightweight solution to handle repetitive requests, APICache.dev is your go-to tool.

Our service is not just free; it’s also incredibly simple to integrate. With just a couple of endpoints, you can start optimizing your API responses instantly.

Use https://cache.apicache.dev?encoded_url={ENDPOINT_ENCODED_URL} for fetching cached and optimized JSON data.

To effortlessly clear cache use https://cache.apicache.dev?encoded_url={ENDPOINT_ENCODED_URL}&clear=true.

If you don’t automatically encode your URL’s you can use this URL Encoder.

This streamlined approach eliminates the complexities of API caching, saving you time and resources.

Key Benefits of APICache.dev:

- Rapid Data Access: Drastically reduce API response times.
- Reduced Server Load: Lessen the demand on your server with efficient caching.
- Cost-Effective: Minimize API request costs, especially beneficial for rate-limited APIs.
- Simple Integration: Easy setup with minimal configuration.
- Reliability: Consistent and dependable data delivery.
- Enhanced User Experience: Provide a smoother experience for your users with faster data retrieval.
- Supports Authorized Requests: Passes Authorization Header and caches data seperately.
- Prefix Cache Clear: Ex. Clearing /search will clear the cache for all GET parameters
- Supports Cookies: Passes Cookies
- Rate Limit: default rate limit of 5r/s for each ip
- Default Cache Lifetime without clearing: 1hr
- Optional Automatic JSON Minification

Ideal for small and medium-sized applications, APICache.dev is committed to improving your application’s performance without the overhead of complex caching strategies. Our platform is tailored for seamless integration, making it perfect for developers working on dynamic projects, educational platforms, e-commerce sites, and more.

Join a growing community of developers who trust APICache.dev for their API caching needs. Experience a noticeable improvement in your application’s performance today. For feature requests, question and issues we have a public [GitHub repository](https://github.com/APICache/APICache.dev).
LeetCode Problem : Jump Game
Tags: array, dp, greedy
Published: 2023-12-24 19:09:20

---
title: "LeetCode Problem : Jump Game"
published: true
description: "LeetCode Problem Analysis"
tags: array, dp, greedy
series: "greedy problems"
---

### LeetCode Problem : Jump Game

#### Problem Statement
You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position.

Return true if you can reach the last index, or false otherwise.

#### Overview
Dynamic Programming can be used by iterating over array and check if the current index is reachable. However even with dynamic programming, it's still O(N^2). How to optimize this to O(N) where we only pass an array once : Greedy

#### Intuition
An index is reachable if you can jump from some of previous reachable index.

#### Approach
Construct boolean array `reachable`. Iterate over `nums`. for each index `i` check if ith index is reachable from any of reachable indices. We do this by checking all indices that marked as reachable from previous iteration. if reachable, set `reachable[i]` to true. Keep going upto last index and if last index of `reachable` true, return true, false otherwise.



##### Can we do better?
Think of you standing at the position and see which position is the furthest position you can jump to. Keep tracking of this information and do this at each position and at any index if the current index is bigger than position that you can jump furthest, return false. otherwise return true.

#### Code
```go
//Dynamic Programming : O(N^2)
func canJump(nums []int) bool {
  //declare slice    
  reachable := make([]bool, len(nums))
  reachable[0] = true
  for i:=1; i< len(nums); i++ {
    for j := 0; j < i; j++ {
      if reachable[j] {
        if j+nums[j] >= i {
          reahcable[i] = true
          break
        }
      }
    }
  }
  return myslice[len(nums)-1]
}
```


```go

func canJump(nums []int) bool {
    furthest:=0
    if len(nums)==1{ 
        return true
    }

    for i:=0;i<len(nums);i++{
        if i>furthest{
           return false
        }
        far=max(far, i+nums[i])
    }
    return true
}
```

#### Seed for Interview
Greedy : for each index i, if `i` is greater than `furthest` return false. Than compute `furthest` from `i`.
Distributed system 20212022 paperkcs077
Tags: freecodez, react, html, blog
Published: 2023-12-24 18:43:01

Hey there, You are most welcome to this article.

**Distributed system 20212022 paperkcs077**

![Distributed system 20212022 paperkcs077](https://res.cloudinary.com/freecodez/image/upload/v1703356282/images/viiokm4s6z3yxic7skja.webp)

For full source code visit : [https://freecodez.com/post/gg2de5o](https://freecodez.com/post/gg2de5o)


```html

```

Source Code : [https://freecodez.com/post/gg2de5o](https://freecodez.com/post/gg2de5o)

For more such articles visit : [https://freecodez.com](https://freecodez.com/all)
Get Paid for Effortless Online Jobs and Simple Tasks!
Tags: webdev, security, earning, beginners
Published: 2023-12-24 18:32:32

Making money by doing simple online tasks is now possible with the increase of people seeking assistance through the internet. The tasks that need to be completed are quite varied and include testing website, data entry and taking online surveys among the others. 
[**Click here to detail**](https://sites.google.com/view/earningtask2024/home)
Merry Christmas, and a Happy New Year
Published: 2023-12-24 18:29:00


Leaves of gold and crimson swirl,
Winter's breath begins to curl.
A hush descends, a time to hold,
Stories whispered, tales unfold.

Christmas chimes, a joyous ring,
Memories dance, like angels sing.
Hearts aglow, with candlelight,
Reflecting on the year's pure might.

Challenges faced, with steady hand,
Growth embraced, across the land.
Kindness sown, in gentle deeds,
Planting seeds for future needs.

Stumbles, too, have left their mark,
Shaping strength, a guiding spark.
Resilience forged, in embers bright,
A tapestry of soul, taking flight.

Gather near, with loved ones true,
Savor moments, warm and new.
Laughter spills, like sparkling wine,
Gratitude's song, a melody divine.

Christmas magic, whispers low,
Hope's embrace, where dreams can grow.
Within your heart, a promise lies,
To paint the future with vibrant skies.

So raise a glass, and let it shine,
Merry Christmas, yours and mine!
May the New Year, with open arms,
Bring blessings, joy, and endless charms.

Carry the light, in every stride,
The power within, where dreams reside.
Embrace the magic, let it flow,
This wondrous season, watch it grow.

From starlit nights to laughter's gleam,
Merry Christmas, and a Happy New Year, it seems!

---

![Happy New Year](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kn5ilugel1phqykjoqrj.jpg)

## HAPPY NEW YEAR


| 🔴 **Disclaimer**: This post is enhanced with AI assistance.|
|--------------|


|✍ **Powered by**: *Google Bard*|
|--------------|
La Evolución de JavaScript: La Importancia de let y const
Tags: webdev, javascript, programming, beginners
Published: 2023-12-24 18:18:46

La evolución de JavaScript ha sido un viaje fascinante, marcado por numerosas mejoras que han refinado el lenguaje. Un cambio significativo en este viaje ha sido la introducción de let y const en ES6 (ECMAScript 2015). Estos dos nuevos modos de declarar variables surgieron como una solución a las limitaciones y problemas que presentaba el uso de var, el método tradicional. A continuación, exploramos por qué let y const son tan importantes en el desarrollo moderno de JavaScript.

## 1. Manejo Mejorado del Alcance de las Variables
**Limitaciones de var:** Con un alcance limitado a la función, var podía crear confusión, especialmente en bloques de código como bucles y condicionales. Las variables declaradas con var podían ser accesibles de manera inesperada fuera de estos bloques.
**Solución con let y const:** Al tener un alcance de bloque, let y const están confinadas al bloque donde se declaran, lo que facilita la gestión del alcance y evita sorpresas no deseadas en el flujo del programa.

## 2. Reducción de Problemas de Hoisting
**Hoisting en var:** Este fenómeno, donde las declaraciones de variables se mueven al inicio de su contexto de ejecución, puede resultar en errores difíciles de rastrear.
**let y const:** Aunque también son sujetas al hoisting, no se inicializan hasta que su declaración es ejecutada. Esto crea una "Zona Muerta Temporal", previniendo el acceso a la variable antes de su inicialización.

## 3. Promoción de Prácticas Inmutables
**Reasignación con var:** La facilidad para reasignar y redeclarar variables con var puede llevar a sobreescrituras accidentales y dificultades en el seguimiento del estado de la variable.
**Inmutabilidad con const:** Al prevenir la reasignación, const permite definir valores constantes que no cambian, lo cual es crucial en ciertas situaciones, como la definición de configuraciones o constantes.

## 4. Mejor Gestión de la Memoria
let y const ofrecen ventajas en términos de gestión de la memoria, especialmente en aplicaciones grandes, gracias a su alcance de bloque.

## 5. Adaptación a las Necesidades de las Aplicaciones Modernas
Con las aplicaciones web volviéndose cada vez más complejas, JavaScript necesitaba herramientas más eficientes y seguras para la gestión de variables. let y const han sido fundamentales en esta modernización.

La adopción de let y const en JavaScript no es solo un cambio en la sintaxis; representa una evolución hacia prácticas de codificación más seguras y eficientes. Al proporcionar un control más estricto y predecible sobre las variables, estos dos modos de declaración han mejorado notablemente la calidad del código en JavaScript. Para cualquier desarrollador que aspire a escribir aplicaciones robustas y mantenerse al día con las mejores prácticas de la industria, comprender y utilizar let y const es esencial. ¡JavaScript sigue evolucionando, y nosotros con él! 🚀💻🌐
Laraship is Going Open Source!
Published: 2023-12-24 18:07:40

[Laraship](https://laraship.com), the #1 Laravel-Based Modular Platform to build custom web applications rapidly, is now open source!
 
According to the Laraship Team, They have published hundreds of Laraship extensions to GitHub, including modules, plugins, and payment methods.

https://github.com/coralsio/laraship

With this announcement, Laraship is now considered the most significant Laravel Open source. The code base has hundreds of extensions to get started with your Laravel project for free and a built-in framework with hundreds of features.

[Source](https://www.laraship.com/exciting-news-laraship-is-going-open-source/)

\#laravel \#opensource #laraship \#rapid_development
Spent the weekend crafting a delightful animated card using @chakra_ui and @framer motion! 🌟✨
Tags: webdev, showdev, react
Published: 2023-12-24 17:59:49

🚀 The Concept: The idea of an animated card took shape in my mind, and I couldn't wait to turn it into a reality. Framer Motion stood out as an incredibly powerful tool, seamlessly integrated with ReactJS and Chakra UI, making the animation process a joy.


![Animated card](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x2mk509muvp3q0660sof.gif)

🎬 Animation Magic: The flexibility and capabilities of Framer Motion, combined with the versatility of Chakra UI, allowed me to craft a mesmerizing animated card. The ease of implementation and the vast array of motion features truly made this project an enjoyable experience.

✨ The Takeaways: This endeavor reiterated the potency of using Framer Motion with ReactJS and Chakra UI. The synergy of these tools not only allowed me to create an animated card but also opened doors to endless creative possibilities.

🌟 Final Thoughts: Crafting this animated card was a delightful journey. It reaffirmed my passion for creative exploration and innovation. With Framer Motion and Chakra UI by my side, I'm excited about the boundless opportunities ahead in the world of animation!

Let's keep creating, innovating, and bringing our imaginations to life! ✨🚀
Configurando Prisma ORM no Nestjs usando Singleton Pattern
Tags: nestjs, prisma, singleton
Published: 2023-12-24 17:54:38

Configurando o prisma no nestJs seguindo a risca a documentação traz um problema relacionado a abertura de conexões com o banco, ao executar o projeto localmente não há grandes desvantagens nisto, no entanto ao usar um banco online como o caso do ElephantSql ou Supabase que possuem limites de conexões abertas isto vem a se tornar um grande impecilho.

Como consequencia recebemos constantes erros como este:
``` bash
Error querying the database: db error: FATAL: too many connections for role "qcjoaamjgbnxjx"
```

Isto ocorre devido a cada modulo abrir uma ou mais conexões e não encerrar ao fim da query. Para resolver, precisariamos ter uma forma de chamar a mesma instancia do prisma todas nossas querys, é aqui que aplicamos o padrão singleton.

Começamos iniciando nosso projeto:

``` bash
$ npm install -g @nestjs/cli
$ nest new project_name
```

Em seguida configuramos o prisma:
``` bash
$ yarn add @prisma/client
$ yarn add prisma --dev
$ yarn prisma init
```

Agora vamos precisar do nosso modulo singleton para o prisma, para isso iniciaremos um novo service:
``` bash
$ yarn nest g s modules/services/prisma
```
Vamos fazer com que este service extenda a classe do prisma e sempre que chamar seu construtor, pegar a mesma instância armazenada em uma variável estática:

``` javascript
import { Injectable } from '@nestjs/common';
import { PrismaClient } from '@prisma/client';

@Injectable()
export class PrismaService extends PrismaClient {
  private static instance: PrismaClient;

  public static getInstance(): PrismaClient {
    if (!PrismaService.instance) {
      PrismaService.instance = new PrismaClient();
    }

    return PrismaService.instance;
  }
}

```

Para utilizarmos este service em nossos modulos precisamos adicionar ele dentro dos providers do modulo desejado:
``` javascript
import { Module } from '@nestjs/common';
import { PrismaService } from './services/prisma/prisma.service';

@Module({
  imports: [],
  controllers: [],
  providers: [
    {
      provide: PrismaService,
      useValue: PrismaService.getInstance(),
    },
  ],
})
export class ExempleModule {}
```

Exemplo de uso:
``` javascript
import { Controller, Get } from '@nestjs/common';
import { PrismaService } from './services/prisma/prisma.service';

@Controller()
export class ExempleController {
  constructor(private readonly prisma: PrismaService) {}

  @Get()
  async exemple(): Promise<any> {
    const newUser = await this.prisma.user.create({ email: '', name: '' });
    return newUser;
  }
}
```

Referências:
https://engcfraposo.medium.com/aplicando-o-padrão-singleton-no-nestjs-999af3d86c6d

https://docs.nestjs.com/recipes/prisma
Spin Rewriter
Tags: webdev, javascript, programming, beginners
Published: 2023-12-24 17:47:17

Spin Rewriter là gì?
[Spin Rewriter](https://www.wsovn.net/mua-chung-spin-rewriter-11-wsovn) là một công cụ bài viết hoặc nội dung quay lại mà ghi đè lên nội dung về đoạn văn, từ và mức độ câu. Máy quay có công nghệ “ENL Semantic Spinning” mạnh mẽ để tạo ra.
Công cụ Spin Rewriting dễ dàng viết lại văn bản trong một cú nhấp chuột mà không gặp bất kỳ rắc rối nào khi đăng ký và cài đặt ứng dụng. Chỉ cần sao chép và dán nội dung của bạn vào trang web Spin Rewriter, nó sẽ viết lại nội dung của bạn trong vài giây.
So sánh song song giữa văn bản gốc và văn bản xoay tròn
So sánh trực tiếp bài viết gốc và bài viết mới của bạn để bạn có thể thấy ngay sự khác biệt. Điều này giúp bạn dễ dàng nhận thấy ngay văn bản mới của bạn độc đáo như thế nào.
Tích hợp kho ảnh
Thêm hình ảnh miền công cộng có liên quan vào các bài viết của bạn – chỉ cần chọn những cái bạn muốn và Spin Rewriter sẽ tự động thêm một lựa chọn có liên quan giữa các đoạn văn.
Mua ngay tại: [https://www.wsovn.net/mua-chung-spin-rewriter-11-wsovn](https://www.wsovn.net/mua-chung-spin-rewriter-11-wsovn)