teleren/devto huggingface dataset:
CSS Art Challenge - MOMO
Tags: frontendchallenge, devchallenge, css
Published: 2024-03-25 14:53:32

_This is a submission for DEV Challenge v24.03.20, CSS Art: Favorite Snack._

## Inspiration 
<!-- What snack are you highlighting today? -->
I'm highlighting my favorite snack today: Momos.

## 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. -->
https://codesandbox.io/p/sandbox/dev-challenge-v24-03-20-css-art-favorite-snack-momo-ksjkmj?file=%2Fstyles.css%3A236%2C12

## Journey
<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->

I decided to create CSS art of momos, a popular snack in Nepal Which is also known as dumplings in Overal Asia plus it's a logo of bun as well. 

Design: I took the design reference from here https://www.istockphoto.com/vector/cute-cartoon-dumplings-gm1174824402-326883119.


<!-- 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). -->

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



<!-- Thanks for participating! -->
By Anjit
Worker's Rights in Houston: Seek Justice with Our Law Firm's Support
Tags: workerrightattorneyinhouston, workerrights, lawattorneynearme
Published: 2024-03-25 14:52:44

Houston, Texas – In the fast-paced realm of real estate, legal intricacies can emerge unexpectedly, leaving individuals and businesses needing expert guidance. Fortunately, Law Firm provides comprehensive legal support for all real estate matters in Houston.

Whether you're embarking on a property purchase, navigating a sale, negotiating a lease, or entangled in property disputes, Law Firm offers the expertise required to navigate the complexities of real estate law. Their team of seasoned attorneys boasts a profound understanding of local regulations and market dynamics, ensuring clients receive bespoke solutions tailored to their needs.

At Law Firm, client satisfaction reigns supreme. They invest time in comprehending each client's objectives and craft strategies meticulously designed to achieve optimal outcomes. With their proactive approach and meticulous attention to detail, clients can rest assured that their real estate transactions and disputes are in capable hands.

Regarding real estate legalities in Houston, Law Firm epitomizes trustworthiness. From residential transactions to commercial developments, they possess the knowledge and experience to safeguard your interests.


**Member Spotlight **

Daniels Law Firm
2000 Crawford St Suite 1315
Houston, TX 77002
346-236-0230
[http://www.thedanielslawfirm.com/](http://www.thedanielslawfirm.com/)

The Daniels Law Firm prides itself on being among the top [Houston divorce attorney](https://www.google.com/maps/place/Daniels+Law+Firm/@29.7463649,-95.3659138,16.75z/data=!4m6!3m5!1s0x8640bf626cdba447:0xa0bcf59d5ec8aadc!8m2!3d29.746019!4d-95.3663739!16s%2Fg%2F11f67kp5h0?entry=ttu), offering a wealth of experience and a steadfast commitment to achieving favorable client outcomes. With a compassionate approach and a reputation for excellence, we are here to guide you through even the most challenging legal situations.
Dental Clinic in Noida
Tags: dental
Published: 2024-03-25 14:41:55

Dental clinic Noida sector 137 Most Ethical and affordable **[dental clinic in Noida](https://purpledent.com/)** .We believe that everyone can have a healthy smile for life and with our help it’s easier than you think! We are passionate about helping patients to live better quality lives thanks to good oral health. Our services for Dental checkup in Noida are backed by the latest machines and equipment in the clinic to make the dental treatment a hassle-free and comfortable process Dr. Divya Goel Clinic has the Best pediatric dentist in Noida. She's a pedodontist with MDS in paediatric dentistry. Call 9910266784 to fix appointment & Dentist Consultation Noida Benefit from our years of experience in treating dental. Scaling and polishing removes deposits such as plaque and calculus (tartar) from tooth surfaces. So for Scaling and Polishing Teeth in Noida please call us.

**Website:** [https://purpledent.com/](https://purpledent.com/) 
**Address:** Shop 12A, First floor, 12A, Supertech Mart, Sector 137, Noida, Uttar Pradesh 201305	
**Phone:** +91 9910266784
**E-mail:** [feedback@purpledent.com](feedback@purpledent.com)
**Google Map:** [https://goo.gl/maps/RrgeXVK6wZ9Xm5hV6](https://goo.gl/maps/RrgeXVK6wZ9Xm5hV6) 
**Facebook:** [https://www.facebook.com/purpledentclinic](https://www.facebook.com/purpledentclinic) 	
**Twitter:** [https://twitter.com/PurpleDent](https://twitter.com/PurpleDent) 
**Opening Hours:** All Days 10:00 - 13:30 or 17:00 - 20:00
Rapidly Ship Industry-Standard APIs
Tags: api, apigateway, developers, governance
Published: 2024-03-25 14:25:44


## What is API Governance?
  A set of rules aimed at enforcing standardization, compliance, and best practices throughout the API lifecycle.

**How it helps me?**

**For API developers**, API Governance offers significant benefits. It eliminates the need for manual API reviews, streamlining the development process and reducing the likelihood of errors. With GovernanceAI, developers can experience faster development cycles, enabling them to bring new APIs to market more quickly. Additionally, GovernanceAI helps increase adoption rates by ensuring that APIs are well-designed, reliable, and compliant with industry standards.

**API integrators** also benefit from API Governance's features. By reducing integration issues, GovernanceAI helps integrators save time and resources. Integrating APIs that adhere to governance standards lowers maintenance costs over time, as there are fewer compatibility issues and debugging requirements. This streamlined integration process allows integrators to focus on delivering value to their clients more efficiently.

**For API operators**, API Governance provides essential tools for maintaining and optimizing API performance. By lowering error rates, GovernanceAI helps operators ensure a smoother user experience and reduces the risk of service interruptions. Additionally, GovernanceAI improves the overall reliability and scalability of APIs, enabling operators to handle increased traffic and demand without compromising performance or stability.


Top vendors offering API governance tools:
1. Mulesoft - built into their API Management platform
2. Postman has a light-weight version build into the Postman client
3. https://apigovernance.dev - offers FREE Tier for developers and personal use and paid version for businesses.
442. Find All Duplicates in an Array using Javascript on Leetcode | DSA with JS
Tags: leetcode, javascript, tutorial, algorithms
Published: 2024-03-25 14:17:21

In this blog, we will solve the problem [Find All Duplicates in an Array][https://leetcode.com/problems/find-all-duplicates-in-an-array/description/].

## The problem

Given an integer array of nums of length n where all the integers of nums are in the range [1, n] and each integer appears once or twice, return an array of all the integers that appear twice.

You must write an algorithm that runs in O(n) time and uses only constant extra space.

Example:

```
Example 1:

Input: nums = [4,3,2,7,8,2,3,1]
Output: [2,3]
Example 2:

Input: nums = [1,1,2]
Output: [1]
Example 3:

Input: nums = [1]
Output: []
```

## Approach

The `nums` array value range will `[1,n]` where n is the length. This means the smallest value will be `1` and the largest value will be `n`. For instance, in the first example, the smallest number is 1, and the biggest number is 8 which is also the length.

We can use this information to our advantage. We also know that the index range of an array is `[0,n-1]`.

This means that every value in the array `i - 1` can be used as an index.

Let's use this as an example: [4,3,2,7,8,2,3,1]
For the first value `4` in the array, we can use `4 - 1= 3` as an index to access the value at that index. The value is `7`. We can use this value to mark the value at index `3` as negative. This way we can keep track of the values we have seen.

Let's do the same thing for the second number `3`. We can use `3 - 1 = 2` as an index to access the value at that index. The value is `2`. So, we will make that number negative. In this way, if we ever get directed to a negative number, this means that the current number is a duplicate number.

In the example, we have `3` as a duplicate number. In both instances, they will point to the same index which index `2`. So, we can add `3` to the output array.

I recommend checking the video for a better understanding. It will help you understand the problem better.

{% youtube JSUNIXZOQiE  %}


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



## Pseudo Code

- Create an empty array `output`
- Loop through the `nums` array
  - Get the absolute value of the current number
  - Get the index of the current number and subtract 1
  - Get the value at the index
  - If the value at the index is negative,
    - Add the current number to the output array
  - Else:
    - Make the value at the index negative
- Return the output array

## Code

```javascript
var findDuplicates = function (nums) {
	const output = []

	nums.forEach(num => {
		const curr = Math.abs(num)
		const index = curr - 1
		const indexedValue = nums[index]

		if (indexedValue < 0) {
			output.push(curr)
		} else {
			nums[index] = indexedValue * -1
		}
	})

	return output
}
```

That's it for today.
MongoDB와 Nodejs, 2024-03-25
Tags: mongodb, node
Published: 2024-03-25 12:35:47

mongoDB 설치
```
npm install mongodb
```

이제 node.js 에서 Mongo DB를 연동해서 사용해 보도록 하겠습니다. 연동하기 위해서는 연동을 위한 외부 모듈이 있어야 합니다. 가장 많이 사용되는 mongoose 를 사용해서 연동하겠습니다.

mongoose 를 사용하는 이유는 Nosql 에는 Scheme 라는 개념이 없지만 마치 RDB 의 설계도 처럼 Mongo DB에서 Scheme 를 사용할 수 있게 됩니다.

```
npm install mongoose
```

프로젝트 생성

server.js

```
// 1. mongoose 모듈 가져오기
var mongoose = require('mongoose');
// 2. testDB 세팅
mongoose.connect('mongodb://localhost:27017/testDB');
// 3. 연결된 testDB 사용
var db = mongoose.connection;
// 4. 연결 실패
db.on('error', function(){
    console.log('Connection Failed!');
});
// 5. 연결 성공
db.once('open', function() {
    console.log('Connected!');
});

// 6. Schema 생성. (혹시 스키마에 대한 개념이 없다면, 입력될 데이터의 타입이 정의된 DB 설계도 라고 생각하면 됩니다.)
var student = mongoose.Schema({
    name : 'string',
    address : 'string',
    age : 'number'
});

// 7. 정의된 스키마를 객체처럼 사용할 수 있도록 model() 함수로 컴파일
var Student = mongoose.model('Schema', student);

// 8. Student 객체를 new 로 생성해서 값을 입력
var newStudent = new Student({name:'Hong Gil Dong', address:'서울시 강남구 논현동', age:'22'});

// 9. 데이터 저장
newStudent.save(function(error, data){
    if(error){
        console.log(error);
    }else{
        console.log('Saved!')
    }
});

// 10. Student 레퍼런스 전체 데이터 가져오기
Student.find(function(error, students){
    console.log('--- Read all ---');
    if(error){
        console.log(error);
    }else{
        console.log(students);
    }
})

// 11. 특정 아이디값 가져오기
Student.findOne({_id:'585b777f7e2315063457e4ac'}, function(error,student){
    console.log('--- Read one ---');
    if(error){
        console.log(error);
    }else{
        console.log(student);
    }
});

// 12. 특정아이디 수정하기
Student.findById({_id:'585b777f7e2315063457e4ac'}, function(error,student){
    console.log('--- Update(PUT) ---');
    if(error){
        console.log(error);
    }else{
        student.name = '--modified--';
        student.save(function(error,modified_student){
            if(error){
                console.log(error);
            }else{
                console.log(modified_student);
            }
        });
    }
});

// 13. 삭제
Student.remove({_id:'585b7c4371110029b0f584a2'}, function(error,output){
    console.log('--- Delete ---');
    if(error){
        console.log(error);
    }

    /* ( SINCE DELETE OPERATION IS IDEMPOTENT, NO NEED TO SPECIFY )
        어떤 과정을 반복적으로 수행 하여도 결과가 동일하다. 삭제한 데이터를 다시 삭제하더라도, 존재하지 않는 데이터를 제거요청 하더라도 오류가 아니기 때문에
        이부분에 대한 처리는 필요없다. 그냥 삭제 된것으로 처리
        */
    console.log('--- deleted ---');
});
```

_참조 : https://javafa.gitbooks.io/nodejs_server_basic/content/chapter13.html_
Ibuprofeno.py💊| #62: Explica este código Python
Tags: python, spanish, learning, beginners
Published: 2024-03-25 13:54:56

## **<center>Explica este código Python</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```py
## Reto #62
my_dict = {"name": "John", "age": 30, "city": "New York"}

print("name" in my_dict)
print(len(my_dict))
```

👉 **A.** `True`, `3`
👉 **B.** `True`, `2`
👉 **C.** `True`, `TypeError`
👉 **D.** `False`, `3`

---

Respuesta en el primer comentario.
Daily Challenge #17 - Double Trouble 
Tags: challenge
Published: 2019-07-17 13:41:59

---
title: Daily Challenge #17 - Double Trouble 
published: true
description: Part of "Daily Challenge" series
tags: #challenge
series: Daily Challenge
---

Good morning! We're back with another [challenge](https://www.codewars.com/kata/551dd1f424b7a4cdae0001f0) which comes from AlexisHappy on Codewars. Today, you are asked to write a program that will return the name of the person who will drink the n-th Cola at the vending machine

> Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a "Double Cola" drink vending machine; there are no other people in the queue. The first one in the queue (Sheldon) buys a can, drinks it and doubles! The resulting two Sheldons go to the end of the queue. Then the next in the queue (Leonard) buys a can, drinks it and gets to the end of the queue as two Leonards, and so on.

> For example, Penny drinks the third can of cola and the queue will look like this:

> _Rajesh, Howard, Sheldon, Sheldon, Leonard, Leonard, Penny, Penny_

> Write a program that will return the name of the person who will drink the n-th cola. The input data consist of an array which contains at least 1 name, and single integer n which may go as high as the biggest number your language of choice supports (if there's such limit, of course). The output data returns the single line — the name of the person who drinks the n-th can of cola. The cans are numbered starting from 1.


Good luck, and happy coding!

***
_Thank you to [CodeWars](https://codewars.com/), who has licensed redistribution of this challenge under the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause)!_

_Want to propose a challenge for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Thanks giving
Tags: watercooler, discuss, news
Published: 2024-03-25 13:50:05

Hi there! This is gonna be a short post. And its all going to be about you. Yes, "you", my follower or a persistent reader. I want to thank you all for helping me reach my 1000 followers on this blog. I was inactive for a long time as I had exams, even then people were following me here. Since I'm back now, so I promise you all that I will write quality and useful content on my blog and will for sure, try to be consistent in doing so! I really am greatful to all of you for showing your support till now and rectifying me where I was wrong.

Once again, thank you all!
I hope you continue to show your support in the future too  and show your love towards me.

See you soon in the next post, till then take care and goodbye!
Announcing Espresso; a different kind of Java build tool.
Tags: java, gradle, buildtool, rust
Published: 2024-03-25 13:42:56

I've constantly fought Gradle for as long as I've been writing Java. I remember when I first started writing Java, I didn't actually use a build tool (just the built in builder in Eclipse).As I've gotten into the Java world professionally, which means writing more tests, I've realized how god awful Gradle is with it's convoluted plugins that have a needle-in-a-haystack like feel to it. 

I'm confident Gradle has it's place in the world; those organizations who need complicated build processes. The problem is, every code base I've ever worked on could be built by a much simpler tool.

This is why I built Espresso. Espresso is a build tool for Java (written in Rust) that focuses on simplicity, speed, repeatability and ease of configuration. It's still a huge work in progress (and served as a project for me to finally learn some Rust). Features like including dependencies into the built .jar are missing (although you can fetch them from the Espresso Registry). Espresso is inspired by Cargo and Go.

https://github.com/hlafaille/espresso

Espresso also does away with using Maven Central, a repository owned by Sonatype, in favor of an open source and transparent approach similar to Nixpkgs and Winget (https://github.com/hlafaille/espresso-registry).
next week the first Major release of WP arrives - Version 6.5
Tags: wordpress, beginners, tutorial, webdev
Published: 2024-03-25 13:42:00

just wanted to share this with you:   next week the first Major release of WP arrives - Version 6.5 - with the Font Library 
Version 6.5 - with the Font Library - which was a long awaited Feature Punted to 6.5 Release; Stay tuned: 

.... probably excited bout the new release the first major release of WordPress in 2024....
the WordPress 6.5 is definitly the very first major release of 2024: It is scheduled to be released on March 26, 2024. 

one of the major new feature is the all-new Font Library: this features was originally destined to arrive with the previous release - the Version WordPress 6.4, 
Due to some circumstances this very very interesting feature later got punted to the first release of 2024 the WordPress 6.5. 

Whats in it: well the The font library will allow users to upload their desired fonts or connect to Google Fonts, thereby removing the need to use any extra plugins (as it was necessary in earlier times) to achieve the same functionality. 

Hard work:  it was a hard work: Many developers were working on this - and have joined in the discussions on Github, Slack, and elsewhere. It was a hard work
The Font Library now is going to be shiped in WordPress 6.5 

This new feature the Font-Library is part of the core now; it can be accessed from the Typography option.


see more - get more insights: 

Dave (core attendand tech lead ) CUSTOM FONTS finally unlock creative freedom in the WORDPRESS 6.5 Font Library
https://www.youtube.com/watch?v=jHDrWC4TFhw

What's New In WordPress 6.5? - Font Library, The Interactivity API, AVIF Image support and much more
https://www.youtube.com/watch?v=av6SMK15Tgo
The release of WordPress 6.5 is planned for March 2024. We are enthusiastic about this release, just like every other WordPress user and member of the community. 

[b]more infos, more texts, more background [/b]
Music Monday — What are you listening to? (Suno.AI Edition 🤖)
Tags: watercooler, discuss, music
Published: 2024-03-25 13:39:10

_cover image source: [Giphy](https://giphy.com/gifs/EcrookedletterZ-house-music-robotics-bots-AvVomHLXVfoLrgmlJX)_

**We're back with another Music Monday and this time we're doing something a bit different... rather than dropping existing songs, I'd like for y'all to generate one using [Suno AI](https://app.suno.ai/)! Quick note: this article is not sponsored by Suno. 😅 In any case, a friend introduced me to what he called "the Midjourney of music" last week and ever since I've been having too much fun with it. I've  generated [funk songs to cheer up my wife while she's at work](https://app.suno.ai/song/bcf20c1b-f06f-4950-9a6a-12c698d8750d), [heartfelt hip hop tunes wishing my brother and sister-in-law a belated happy birthday](https://app.suno.ai/song/1e223fcc-7144-416a-babf-45107840f3c3), and [invitations for my parents to see Dune II in Imax](https://app.suno.ai/song/dcc315de-6389-4b0f-9b54-97909316646e). Honestly, these are just a sample... like I said, _too much_ fun! Now, I'd like to share the fun here in Music Monday and hear what y'all come up with. Please keep it clean, and to make it even more interesting, consider sharing your prompt too! As always, feel free to share music outside of the theme.**


![Three Boston Dynamics robots are dancing in sync together.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ezm0nesmw121ejayijdu.gif)

***

## How we do 

In this weekly series, folks can chime in and drop links to whatever it is they've been listening to recently + browse others' suggestions. You can follow the suggested genre if you'd like, but don't feel confined to it; you're free to suggest whatever you wanna. 🙌  

If you're interested in having other discussions about music, consider following the aptly named [#music discussions](https://dev.to/music-discussions) organization.

{% embed https://dev.to/music-discussions %}  

***

Let's get to generating! 🤖

_Note: you likely cannot embed a Suno AI link using the following syntax `{% embed https://... %}`. But, just drop a link to your song!_

Looking forward to listening to y'all's suggestions! 🎶

***

**🚨_p.s. Check out @rachelfazio's sister series to Music Monday, [Podcast Palooza](https://dev.to/rachelfazio/series/26422)!_🚨**
How to use gpt4 for free
Tags: gpt4, promptengineering, ai, webdev
Published: 2024-03-25 13:38:04

The advancements in technology are amazing, especially in the field of artificial intelligence, where new revolutions are happening every day. Let's take a look at how to use the latest language model called GPT-4 for free.

**First, we need to understand what GPT4 is.**
GPT4 is the latest generation of language prediction models developed by OpenAI, which is doing some amazing things in the field of natural language processing.

Let's dive right in and see how to use GPT4 for free.


##How to use GPT-4 for free
 
###[Promry](https://www.promry.com/en)

![Promry](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rc53dtz0a7dyon1zlvqg.png)

You can try GPT4 for free at 'Promry'.
Promry provides 100,000 tokens when you sign up, and 1,000 tokens are given when you register a prompt or when the prompt you registered receives a thank you from another user.

The advantage is that you can use the service almost unlimitedly, as you can continuously receive 100,000 tokens provided upon signing up, as well as tokens for sharing prompts and thanking you.


###[Juilus](https://julius.ai/)

![Juilus](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/drvd1mel7ua2jhgm9v5h.png)

Julius is a service that allows you to use GPT4 for free for data analysis. Supports various formats such as CSV, Excel(.csv, .xls, .xlsx, .xlsm, .xlsb), and Google Spreadsheet. Provides structured data analysis, visualization, and advanced analytics capabilities. This can significantly shorten Excel work time.


###[Bing Chatbot](https://www.bing.com/)

![Bing Chatbo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0v96g9cpd3w98q5virm9.png)

Lastly, the Bing chatbot uses GTP4 using Microsoft's Edge browser.You can try it for free through the Bing chatbot, and you can also create images. However, there is a downside to having to use Edge.

GPT-4 is a great help in understanding the world we live in and providing solutions. Use GPT4 to improve your skills!

thank you.