teleren/devto huggingface dataset:
Navi Mumbai as a Commercial Hub.
Published: 2024-07-04 12:24:22

The opening of the Mumbai trans harbour link commonly known as the Atal-setu Bridge and the upcoming international airport has improved Navi Mumbai's connectivity with the main city. It has also increased its reputation as a promising commercial hub. This infrastructural progress boosts Navi Mumbai's image as a progressing commercial haven leading to a rise in investments in both residential and commercial properties and promoting an expansion in various industries such as finance, manufacturing, and IT.
There are various enterprises who have established their properties in Navi Mumbai. We can take Kamdhenu as an example who have already established offices in the region and our now launching another venture on the Thane-Belapur road called [The Hallmark](https://kamdhenuthehallmarkkoparkhairane.com/).

The future is looking bright for the residents and investors of this region. There is huge potential for growth to happen.
کانال ازدواج
Published: 2024-07-04 17:31:11

آدرس کانال‌ ها و گروه های ازدواج:
 ❱ کانال ازدواج مسیر سبز (ایتا):
https://eitaa.com/ezdevajmasirsabz
 ❱ + کانال ازدواج مسیر سبز (روبیکا):
https://rubika.ir/ezdevajmasirsabz
 ❱ کانال ازدواج مسیر سبز (تلگرام)
https://t.me/ezdevajmasirsabz

 ❱ کانال همسریابی ازدواج دائم (تلگرام):
https://t.me/ezdevaje_noor

پیج اینستاگرام:
https://instagram.com/ezdevaj_masirsabz
Enhancing Interiors with Panel Blinds Dubai
Tags: javascript, webdev, beginners, programming
Published: 2024-07-04 17:31:00

Panel blinds and ready-made curtains are two popular options that can significantly enhance any space. Here’s an in-depth look at these window treatments and their benefits in Dubai.

## Panel Blinds: Modern Elegance and Versatility

Panel blinds are a contemporary window treatment option that offers a sleek and stylish look. They consist of large fabric panels that slide across a track, making them ideal for wide windows and patio doors.

## Benefits of Panel Blinds

**Versatile Use:** Panel blinds are perfect for large windows, sliding doors, and even as room dividers. Their versatility makes them a practical choice for both residential and commercial spaces.

**Modern Aesthetic:** The clean, straight lines of panel blinds create a modern and minimalist look that complements contemporary interior designs.
**Light Control:** The wide panels allow for excellent light control. You can easily adjust the panels to let in natural light or to provide complete privacy.

**Easy Operation:** Panel blinds are easy to operate, with smooth gliding mechanisms that allow you to open and close them effortlessly.
Variety of Materials: Available in a wide range of fabrics, colors, and patterns, panel blinds can be customized to match any decor. From sheer fabrics that allow light to filter through to blackout materials that provide complete darkness, there’s a panel blind for every need.

## Popular Uses of Panel Blinds

**Living Rooms:** Ideal for large living room windows, panel blinds offer a sleek and modern look while providing excellent light control.
**Offices:** In office spaces, [panel blinds dubai](https://curtainstailoring.com/panel-blinds/) can be used to create private meeting areas or to divide open-plan offices.
**Bedrooms:** For bedrooms with large windows or patio doors, panel blinds offer both privacy and light control, ensuring a restful environment.
**Patio Doors:** Panel blinds are perfect for sliding patio doors, providing a stylish and practical solution for covering large glass areas.
Mumbai Glamour Offer Her Mumbai housewife call girls 5* Hotels
Published: 2024-07-04 17:14:01

What Makes Hiring Mumbai Escorts Better Than Dating?

Did you go through a breakup very recently? Are you going through stress and depression because of your bad relationship? Well, you need someone who can comfort you and be with you in these difficult times. That’s why you should hire the **[Mumbai housewife call girls](https://mayra.club/mumbai-housewife-call-girls/)** to be your companion and have some good time with them. They are compassionate and understanding women who can make you forget your sorrow. Not only that, they can please you any way you want so that you do not miss your ex anymore. You will soon come out of the grasps of sadness and start reveling in their beauty and charm. Moreover, since there is no relationship between you two, there is no emotional attachment or dependence. You will never miss the girl if she is unavailable; you can simply hire someone else.

Mumbai Call Girls: Worth The Price

Hiring a call girl in Mumbai might be a costly affair. This is the primary reason why many people think twice before hiring one. This is absolutely prudent that you get a valuable return to the money you have to pay. That is why one should always hire these Mumbai Call Girls every time. 

These girls are definitely worth spending money. Not only these girls are good looking, but also they are amazing at work. They understand your needs to the fullest and make sure they do everything possible to ensure client satisfaction.

 Whether you want them to be your arm candy in a corporate party or may be just have a nice evening walk or watch a movie. These girls will be by your side all the time and you will not feel uncomfortable around them at all.

Call Girls Mumbai: Perfect Companion On Your Holiday

Thinking of going somewhere on your upcoming holiday? Well, this can be your best experience in a while if you hire one of the Call Girls Mumbai and go on this trip. These girls are the best companion on a trip. Whether this is a long-awaited holiday or you are planning a business trip, these girls can be really useful. 

Wherever you visit they can always be with you. It does not matter whether you are visiting a place for the first time or you have been there before, these girls will never make you feel bore at all. With their presence it will be a lot more enjoyable than ever. With them one can even share their darkest of secrets, talk about their feelings and most importantly all these information that you share will be always a secret. These girls know how to keep it a secret and they will never ever spit out any of those information for sure. as you promise to keep their identity a secret they will definitely do the same.
Android users: I need your help!
Tags: android, app
Published: 2024-07-04 17:08:09

I’m trying to release a version of my new game (Touch me When) for Android, but since I’m an individual developer, Google imposes a more strict verification process before allowing me to publish a new App.

They require a 14 days period of closed beta testing with at least 20 testers. Can you help me with that? All you gotta do is download the closed beta version and open it from time to time (like once a day) to count as active user.

To become a tester, all you need to do is join a Google group (they use this as a way to control who can download the App, so it must be with the same email you use on your Android account) at: [https://groups.google.com/g/touchmewhen-testers](https://groups.google.com/g/touchmewhen-testers).

And then you should be able to download the App at: [https://play.google.com/store/apps/details?id=tech.segunda.touchwhen](https://play.google.com/store/apps/details?id=tech.segunda.touchwhen).

Thanks a lot for your help! 😄
Installing Ruby and Rails on WSL2 using ASDF-VM
Tags: rails, ruby, linux
Published: 2024-07-04 17:01:23

In this short tutorial i'm using ubuntu 22.04lts on WSL2


## Pre-reqs


You need the [asdf-vm](https://asdf-vm.com/guide/getting-started.html) and the dev packages installed.


## Getting Started


Install the ruby plugin

```
asdf plugin add ruby
```

Install the version

```
asdf install ruby x.x.x
```

Set the global version 

```
asdf global ruby x.x.x
```

Install the bundler and rails

```
gem install bundler
```

```
gem install rails
```

To set up your rails development env you can see this [post](https://dev.to/cleverlopes/how-to-set-up-a-development-env-to-rails-app-with-docker-and-postgresql-on-wsl2-4j1g)

**Obs:**

If you have some problem in install the ruby version using asdf make sure  the following packages are installed: libyaml-dev libtool zlib1g zlib1g-dev libffi
What are your favourite tools?
Tags: webdev, beginners, survey
Published: 2024-07-04 17:00:36

Vote for your favourites from the list below, and if you have a go-to tool that's missing, be sure to share it in the last section of the survey or you can share it in the comment section of this post.<br><br>

{% codepen https://codepen.io/solitary-polymath/pen/rNEByzJ %}

<br><br>

![OWL](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0s1dnfzg0bl6fafbnu4p.png)
Innovative JavaScript Features in 2024: Enhancing Developer Experience and Codebase Quality
Tags: javascript, ecma2024, node
Published: 2024-07-04 16:54:55

The JavaScript language continues to evolve, and 2024 brings some exciting new features that will improve the developer experience and codebase quality. Let's explore some of these features and how they will benefit developers.

1)** Temporal**
Temporal is a proposal to introduce a new global object that replaces the existing Date object in JavaScript. This new object offers a more modern and intuitive API for working with dates, times, and time zones. With Temporal, developers can easily handle complex date and time-related tasks, ensuring accurate and reliable results. This feature will reduce the need for external libraries and minimize potential errors in date-related code.

2) **Pipe Operator**
The pipe operator (|>) is a new addition that enables developers to write more readable and maintainable code. This operator allows for chaining function calls in a left-to-right sequence, similar to the pipe operator in functional programming languages like F# and Elixir. By adopting the pipe operator, developers can eliminate complex nesting and create a clearer, more straightforward code flow.

3) **Records and Tuples**
Records and Tuples bring a more structured and immutable way of working with data in JavaScript. Records are immutable objects with a fixed set of properties, while Tuples are fixed-size arrays with named elements. These features allow developers to create complex data structures and ensure data integrity, promoting functional programming techniques and facilitating code maintainability.

4) **RegExp /v flag**
The RegExp /v flag introduces a more concise and maintainable syntax for regular expressions in JavaScript. This flag allows developers to define regular expressions with a verbose syntax that includes whitespace and comments, making it easier to read and understand complex regular expressions. The /v flag will help developers create more maintainable code and reduce the likelihood of errors when working with regular expressions.

5) **Decorators**
Decorators are a powerful feature that enables developers to modify or extend the behavior of functions, classes, and properties. With Decorators, developers can create reusable, higher-order abstractions that encapsulate common logic and patterns. This feature will improve code reusability and maintainability, making codebases more modular and easier to work with.

The new JavaScript features in 2024 offer developers a variety of tools and capabilities to enhance their coding experience and improve the overall quality of their codebases. By adopting these features, developers can create more maintainable, readable, and reliable code, ultimately resulting in better applications and a more productive development process.

Happy Coding ❤️
Item 38: Emule enums extensíveis por meio de interfaces
Tags: java, javaefetivo
Published: 2024-07-04 16:49:07

**Enums em Java:**
- Enums são preferíveis aos padrões enum typesafe (descritos na primeira edição do livro).
- A exceção é a extensibilidade, que era possível no padrão original, mas não é suportada pelas enums em Java.

**Extensibilidade de Enums:**
- Extensibilidade de enums geralmente é uma má ideia:
- Confusão entre elementos de tipos estendidos e tipos base.
- Dificuldade em enumerar todos os elementos de tipos base e suas extensões.
- Complica o design e implementação.

**Uso de Enums Extensíveis:**
- Útil em casos como códigos de operação (opcodes).
- Permite que usuários da API forneçam suas próprias operações.

**Solução com Interfaces:**
- Enums podem implementar interfaces arbitrárias.
- Defina uma interface para o tipo de opcode e um enum que implemente essa interface.

**Exemplo:**
- Operation (interface) e BasicOperation (enum) do Item 34.
- Criação de um enum que implemente a interface Operation.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j0nx1jsa5oxlo8mlrsge.jpg)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dswuet03qk24o1k3ho4t.jpg)

**Uso na API:**
- Utilize o tipo da interface (Operation) nas APIs.
- Pode definir e usar enums estendidos que implementem a interface.

**Implementação:**
- Passar o literal de classe (ExtendedOperation.class) ou uma Collection<? extends Operation>.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tpviv3e5dief3s853qjy.jpg)

**Limitações e Soluções:**
- Implementações não podem ser herdadas de um tipo enum para outro.
- Pode duplicar código ou usar métodos auxiliares estáticos para evitar duplicação.

**Exemplo na Biblioteca Java:**
- Tipo enum java.nio.file.LinkOption implementa as interfaces CopyOption e OpenOption.

**Resumo:**
- Emule enums extensíveis escrevendo uma interface para acompanhar um tipo enum base que implemente a interface.
- Clientes podem escrever seus próprios enums ou tipos que implementem a interface.
- Instâncias desses tipos podem ser usadas onde as instâncias do tipo enum base são usadas, desde que as APIs sejam escritas em termos da interface.
Create a Node Server using Hono
Tags: javascript, webdev, beginners, node
Published: 2024-07-04 16:44:02


Hono, as per the docs, was originally built for [Cloudflare Workers](https://hono.dev/docs/concepts/motivation). It's an application framework designed to work the best for cloudflare pages and workers as well as javascript runtimes Deno and Bun. Although not built specifically for Node, an adapter can be used to run it in Node.

In this tutorial, you will get to know how you can create a simple HTTP server in Node using Hono in less than 10 lines of code.

## Prerequisites

Create a bare bones node environment using `npm init -y`.

## Setting Up Hono

Install hono from `npm` along with its nodejs adapter.

```bash
npm i hono @hono/node-server 
```

## Creating A Server

1. Create a file named `index.mjs` and then, import Hono and its nodejs adapter.

```js
import { Hono } from "hono"
import { serve } from "@hono/node-server"
```

2. Initialize a new Hono app.

```js
const app = new Hono()
```

3. Handle a simple GET route.

```js
app.get("/", (context) => context.json({ "hello": "world" }))
```

4. Serve the app using the nodejs adapter.

```js
serve({ port: 3000, fetch: app.fetch }, (i) => console.log(`listening on port ${i.port}...`))
```

Here's a snippet of all the code combined:

```js
import { Hono } from "hono"
import { serve } from "@hono/node-server"

const app = new Hono()

app.get("/", (context) => context.json({ "hello": "world" }))

serve({ port: 3000, fetch: app.fetch }, (i) => console.log(`listening on port ${i.port}...`))
```

## Conclusion

One highlight of Hono is its [Regexp router](https://hono.dev/docs/api/routing#regexp). It allows you to define routes which match a regex pattern. Apart from that, it also offers multiple built-in authentication modules for implementing various authentication methods such as [basic](https://hono.dev/docs/middleware/builtin/basic-auth), [bearer](https://hono.dev/docs/middleware/builtin/bearer-auth), and [jwt](https://hono.dev/docs/middleware/builtin/jwt).
Documentando uma API com Go Swagger
Published: 2024-07-04 16:34:26

Passos para documentar uma RESTful API em Go com Swagger

1. **Instalar o Swagger Tools**

`go get -u github.com/swaggo/swag/cmd/swag`

2. **Adicionar Swagger Annotations para descrever endpoints, parâmetros e respostas**

### **Swagger Info Annotation:**

No topo do arquivo `main.go` ou em um arquivo específico, adicione informações como versão, título e descrição.

```go
// @title My API
// @version 1.0
// @description This is a RESTful API in Go using Swagger
// @contact.name API Support
// @contact.email support@example.com
// @host localhost:8000
// @BasePath /v1
```

### **Operation Annotations:**

Para cada endpoint, anote a function com os detalhes da requisição HTTP, path, e um resumo básico.

```go
// @Summary Get a list of movies
// @Description Retrieves a list of movies
// @Tags movies
// @Accept json
// @Produce json
// @Success 200 {array} Movie
// @Router /movies [get]
func getMovies(w http.ResponseWriter, r *http.Request) {
    // code ...
}
```

### **Parameter Annotations:**

Descreva o path, a query, e o body da requisição.

```go
// previous Operation Annotations...

// @Param id path string true "Movie ID"
// @Success 200 {object} Movie
// @Failure 404 {object} ErrorResponse
// @Router /movies/{id} [get]
func getMovie(w http.ResponseWriter, r *http.Request) {
    // code ...
}
```

### **Response Annotations:**

Defina a estrutura de responses retornadas pelos endpoints da API.

```go
// Movie struct
// @Description structure of Movie
type Movie struct {
    ID   string `json:"id"`
    Name string `json:"name"`
}

// ErrorResponse struct
// @Description structure of ErrorResponse
type ErrorResponse struct {
    Code    int    `json:"code"`
    Message string `json:"message"`
}
```

## **Gerar a Documentação do Swagger:**

Rode o comando `swag init` no diretório do projeto pra gerar o Swagger JSON e YAML baseados nas anotações. **Se houverem mudanças nas anotações, esse comando deve ser rodado novamente.**

```csharp
swag init
```

Suba a aplicação e entrar na Swagger UI (`http://localhost:8000/swagger/index.html`) pra interagir com a documentação.

# Boas práticas de documentação:

- Use linguagem descritiva e sucinta pra ajudar no entendimento da API.
- Organize a ordem das anotações de forma lógica pra seguir um fluxo claro e padronizado, facilitando a manutenção.
Video Playlist html, css and JS
Tags: html, css, javascript
Published: 2024-07-04 16:25:16

Hi, I’m doing a little project to add to my portfolio. What I would like to do is create a playlist video like in picture 1
but I have several other events in which I would also like to put images so that each when clicking on an event as in image 2 opens a page which is image 1 with its different fightCard, where there is a problem is how I can add video links so that it is different for each event (img2) as for example on streaming sites (img3) to illustrate clearly what I mean here is a small video.

NB: I use an api for all the information you see on the image

Code source:

https://pastebin.com/GW3HY7bE

Où

https://codepen.io/Raz41/pen/mdZbWNV


img1:

![Image 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/40721pbgqmx2yjwmitoh.jpg)


img2:

![Image 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/27jzpszln2rpy56nf3jo.jpg)


img3:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/66qwn2komsjq8dpz634m.jpg)

video:
https://ufile.io/cut0gzwt
2181. Merge Nodes in Between Zeros
Tags: php, leetcode, algorithms, programming
Published: 2024-07-04 16:08:34

2181\. Merge Nodes in Between Zeros

Medium

You are given the `head` of a linked list, which contains a series of integers **separated** by `0`'s. The **beginning** and **end** of the linked list will have `Node.val == 0`.

For **every** two consecutive `0`'s, **merge** all the nodes lying in between them into a single node whose value is the **sum** of all the merged nodes. The modified list should not contain any `0`'s.

Return _the `head` of the modified linked list._

**Example 1:**

![ex1-1](https://assets.leetcode.com/uploads/2022/02/02/ex1-1.png)

- **Input:** head = [0,3,1,0,4,5,2,0]
- **Output:** [4,11]
- **Explanation:** The above figure represents the given linked list. The modified list contains
  - The sum of the nodes marked in green: 3 + 1 = 4.
  - The sum of the nodes marked in red: 4 + 5 + 2 = 11.

**Example 2:**

![ex2-1](https://assets.leetcode.com/uploads/2022/02/02/ex2-1.png)

- **Input:** head = [0,1,0,3,0,2,2,0]
- **Output:** [1,3,4]
- **Explanation:** The above figure represents the given linked list. The modified list contains
  - The sum of the nodes marked in green: 1 = 1.
  - The sum of the nodes marked in red: 3 = 3.
  - The sum of the nodes marked in yellow: 2 + 2 = 4.

**Constraints:**

- The number of nodes in the list is in the range <code>[3, 2 * 10<sup>5</sup>]</code>.
- `0 <= Node.val <= 1000`
- There are no two consecutive nodes with `Node.val == 0`.
- The beginning and end of the linked list have `Node.val == 0`.


**Solution:**

```
/**
 * Definition for a singly-linked list.
 * class ListNode {
 *     public $val = 0;
 *     public $next = null;
 *     function __construct($val = 0, $next = null) {
 *         $this->val = $val;
 *         $this->next = $next;
 *     }
 * }
 */
class Solution {

    /**
     * @param ListNode $head
     * @return ListNode
     */
    function mergeNodes($head) {
        $dummy = new ListNode(0);
        $current = $dummy;
        $sum = 0;
        
        // Skip the first zero node
        $head = $head->next;
        
        while ($head !== null) {
            if ($head->val == 0) {
                $current->next = new ListNode($sum);
                $current = $current->next;
                $sum = 0;
            } else {
                $sum += $head->val;
            }
            $head = $head->next;
        }
        
        return $dummy->next;
    }
}
```

- **[LinkedIn](https://www.linkedin.com/in/arifulhaque/)**
- **[GitHub](https://github.com/mah-shamim)**