teleren/devto huggingface dataset:
DJANGO CONFIRM PASSWORD
Published: 2024-04-18 05:45:16

can you help me of this. I'm tired to have this confirm password to show.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ducqdtw2kfi31c4cqu4u.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k8m90jgc1p3p272wnvoc.png)
Dive into Luxury at Honer Aquantis, Gopanpally, Hyderabad
Tags: beginners, news, development
Published: 2024-04-18 05:40:03

Experience luxurious living at<a href="url=https://www.homes247.in/property/hyderabad/gopanpally/honer-aquantis-1166"> Honer Aquantis </a> is located in Kukatpally, Hyderabad. Covering 7 acres, this prestigious project offers expansive 3 BHK homes ranging from 1575 to 2105 sq.ft. Embrace modern conveniences and generous living spaces in this dynamic community

Indulge in a range of facilities such as a clubhouse, fitness center, beautifully landscaped gardens, and more, all crafted to enhance your lifestyle. Boasting a prime location and thoughtful planning, Honer Aquantis represents the pinnacle of contemporary living in Hyderabad.

Discover your new abode at Honer Aquantis. For more information, visit our website and secure your ideal home in Kukatpally today.
How to use Golang local module
Tags: go, tutorial, beginners
Published: 2024-04-18 05:20:01

## Go module使用邏輯

在project當中依專案大小的不同可能需要將工作分成多個module。跟C以及C++不同，你無法使用相對路徑去做import，你必須import的是package，而package 的dir由go.mod決定。

### 流程大綱

1. 假設我現在有一個專案叫做goMd，創建goMd資料夾之後cd進去
2. 在goMod資料夾下創建main.go
3. 在專案底下輸入以下指令，進行init後創建go.mod
4. 假設有兩個module 叫做hello以及note，且分別為不同的package hello以及note
5. 在main中import，以目前的路徑(goMd) import裡面的package
6. 執行 main.go
  

### 細部講解

最終的結構會如下

![fianl result](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3o1f4xah3ck9h2io6zvm.png)


1. 
創建專案資料夾goMd
2. 
創建main.go
3. 
終端機進入goMd資料夾並且在輸入init 指令。將之後import位置調整至goMd 

go init指令
  
  ```bash
  go mod init goMod 
  ```
  
  go.Mod內容
  
  ```go-mod
  module goMod
  
  go 1.22.1
  
  ```
  

4.
創建你想要import的module。並且設定pakage name用於之後import。這邊創建兩個pakage分別是hello跟note。
  
  先分別創建hello跟note 資料夾在goMd之下
  
  並且在hello 資料夾下創建hello.go，並且這邊先示範加入SayHello() function。package hello。(記住func name開頭必須要大寫才會是全域，之後在main.go 才能夠使用)
  
  ```go
  //hello.go
  package hello
  
  import "fmt"
  
  func SayHello() {
      fmt.Println("Hello, world!")
  }
  
  ```
  
  note 資料夾下創建note.go，並且這邊先示範加入Sayhello2() function。package note。(記住func name開頭必須要大寫才會是全域，之後在main.go 才能夠使用)
  
  ```go
  //note.go
  package note
  
  import "fmt"
  
  func Sayhello2() {
  	fmt.Println("hello test")
  }
  ```
  
  創建完之後的結構如下
  
![folder construction](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jxlvlrqwsun7v4j2nnuo.png)


 
  
5.
在main中import，記住import根目錄位置會跟go.mod內的位置相同，且import為import pakge的名字。import後直接指定pakage呼叫他裡面的function後可以直接使用
  
  ```go
  //main.go
  package main
  
  import (
  	"fmt"
  	"goMod/hello"
  	"goMod/note"
  )
  
  func main() {
  	hello.SayHello()
  	note.Sayhello2()
  
  	fmt.Println("Main print")
  }
  ```
  
6.
run main.go

![final result](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46oe8v8xhwki4cznnm7k.png)
Difference between Func() , ()=>Func() , {Func} , ()=>Func in JS
Tags: webdev, javascript, beginners, programming
Published: 2024-04-18 05:17:32

Here's a breakdown of what each syntax typically means in JavaScript, which seems the most likely context for these snippets:

![expression](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/etjax2uq9tku56567s2c.gif)


**1. Function():**

- This is a direct call to a function named Function. If Function is a predefined function in your code, this syntax immediately invokes it and evaluates to the result of the function call.


**2. () => Function():**

- This is an arrow function that returns the result of calling Function() when it is invoked. Arrow functions are a feature of ES6 (ECMAScript 2015) and provide a concise syntax to write function expressions. They do not have their own this, arguments, super, or new.target bindings, which means they are often used when you do not need to access these values, or you want to maintain the lexical value of this from the surrounding code.

**3. {Function}:**

- In a JavaScript context, this typically represents an object literal containing a shorthand property Function. If Function is a variable in the scope where this object is defined, the property's name will be Function and its value will be the value of the Function variable. This is not a function call or a function definition by itself.

**4. () => Function**

- This arrow function returns the function Function itself, not the result of calling Function(). This is useful when you need to pass a function as a callback without executing it immediately.

Here’s a practical example to illustrate these differences:

```js
function example() {
  return 'Hello, world!';
}

// Invokes the function and prints the return value
console.log(example());  // Output: "Hello, world!"

// Defines an arrow function that, when called, will invoke example()
const arrowFunctionCall = () => example();
console.log(arrowFunctionCall());  // Output: "Hello, world!"

// Creates an object with a property example that holds a function
const objectWithFunction = {example};
console.log(objectWithFunction.example());  // Output: "Hello, world!"

// Defines an arrow function that returns the function itself
const arrowFunction = () => example;
console.log(arrowFunction()());  // Output: "Hello, world!"

```

In this code, **example() **calls the function directly, **() => example()** defines a function that returns the function example, **{example}** is an object with a property example that is the function, and **() => example **defines an arrow function that returns the function example itself.
DocBot - Coze AI Bot Challenge
Tags: cozechallenge, devchallenge, ai, machinelearning
Published: 2024-04-18 04:57:09

*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
<!-- Tell us what your bot does, who it's for, and what problem it solves -->
I have built [DocBot](https://www.coze.com/store/bot/7359051972487577605?from=bots_card&panel=1&bid=6c84vqiuc8g05) using the seamless [Coze](https://www.coze.com/docs/guides/welcome?_lang=en) platform. The DocBot is meant to collect patient information prior to the patient entering the physicians office or while there. The patient can update their medical records, add new medications, update addresses and name changes. DocBot caters to the patient and provides a positive interaction in the form of friendly dialogue. I will be adding more information as DocBot will have continued development. Feedback is appreciated :)

## Demo

<!-- Share a link to your bot in the Coze Bot Store and include screenshots or recordings showcasing a user's chat interface with your bot. -->
![Chat dialogue](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrh252dav2qtjwpuw2hu.png)





## Your Configuration

<!-- Screenshot or record your bot's configuration, including prompts and skills used.  -->
This is my current configuration, as continued development occurs, I will be updating this to cater to more functionalities.

### Bot Plugins and Configuration
![Bot Configuration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/28y8r1fmv9li3mj4eiqe.png)

### Bot Prompts
![Bot Prompt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bokhw7rknxhmz4m863tn.png)





## Journey

<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->
I have a history in the medical field. I worked as a medical scribe for a little while at a geriatric medical clinic. I learned a ton doing this job and fell in love with the medicine ever since. The job was inspiring but the patient experience was priceless. Although I enjoyed being a medical scribe at the time I had wish their was a way to automate some of my more mundane tasks. This is the niche that DocBot hopes to hit! This was years ago and I didn't know much about "bot development" to say the least.

With Coze you don't really have to know anything about how to develop your typical chat interface type of bot. I learned a significant amount about prompt building and the basics of bot development. 

I will continue to develop this bot and integrate this with more tools to provide a seamless experience for the patient and the provider alike. 

Thank you for considering DocBot for the Coze AI Bot Challenge!

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

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

<!-- Thanks for participating! -->
Aw8 | Aw8.at | Link Đăng Ký Chính Thức | Khuyến Mãi 100K
Published: 2024-04-18 04:48:19

AW8 la mot cai ten khi nhac den nhung nha cai ca cuoc chat luong thi ban khong nen bo qua. Mac du chi la mot thuong hieu moi noi tren thi truong ca cuoc nhung nen tang nay da nhanh chong xay dung duoc su uy tin va thanh cong cua minh.
Dia Chi: 166 Vinh Vien To 70 Khu pho IV, Phuong 9, Quan 10, Thanh pho Ho Chi Minh, Viet Nam
Email: aw8att@gmail.com
Website: https://aw8.at
Dien Thoai: (+63) 929 394 3603
#Aw8 #Nhacaiaww8 #Aw8casino #Aw8at
Social Links:

https://aw8.at/

https://aw8.at/rut-tien/

https://aw8.at/nap-tien/

https://aw8.at/tai-app/

https://aw8.at/dang-ky/

https://aw8.at/author/aw8-at/

https://nhacaiaww8.blogspot.com/

https://www.facebook.com/nhacaiaww8/

https://www.youtube.com/channel/UCeTRUSIy-VARJJjEZqR-XjQ

https://www.pinterest.com/aw8at

https://www.tumblr.com/aw8at

https://vimeo.com/aw8at

https://www.twitch.tv/nhacaiaww8/about

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

https://500px.com/p/aw8at?view=photos

https://gravatar.com/nhacaiaww8

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

https://nhacaiaww8.blogspot.com/

https://draft.blogger.com/profile/01878310361914064734

https://twitter.com/aw8at

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

https://hub.docker.com/r/aw8at/aw8at

https://www.mixcloud.com/aw8at/

https://flipboard.com/@aw8at/aw8-%7C-aw8.at-%7C-link-%C4%91%C4%83ng-k%C3%BD-ch%C3%ADnh-th%E1%BB%A9c-%7C-khuy%E1%BA%BFn-m%C3%A3i-100k-s6p437pcz?from=share&utm_source=flipboard&utm_medium=curator_share

https://issuu.com/aw8at

https://www.liveinternet.ru/users/aw8at/profile

https://beermapping.com/account/aw8at

https://qiita.com/aw8at

https://www.reverbnation.com/artist/aw8at

https://guides.co/g/aw8at/362157

https://os.mbed.com/users/aw8at/

https://myanimelist.net/profile/aw8at

https://www.metooo.io/u/aw8at

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

https://www.veoh.com/users/aw8at

https://gifyu.com/ataw8

https://www.dermandar.com/user/aw8at/

https://pantip.com/profile/8063361#topics

https://hypothes.is/users/aw8at

http://molbiol.ru/forums/index.php?showuser=1338713

https://leetcode.com/aw8at/

https://www.walkscore.com/people/153115736172/aw8at

http://www.fanart-central.net/user/aw8at/profile

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

http://hawkee.com/profile/6499209/

https://codepen.io/aw8at

https://jsfiddle.net/aw8at/f1zx8ksn/

https://forum.acronis.com/user/623999/

https://www.funddreamer.com/users/aw8at

https://www.renderosity.com/users/id:1475035

https://turkish.ava360.com/user/aw8at

https://www.storeboard.com/aw8at

https://doodleordie.com/profile/aw8at

https://mstdn.jp/@aw8at

https://community.windy.com/user/aw8at

https://connect.gt/user/aw8at

https://teletype.in/@aw8at

https://rentry.co/aw8at

https://talktoislam.com/user/aw8at

https://www.credly.com/users/aw8at/badges

https://www.roleplaygateway.com/member/aw8at/

https://masto.nu/@aw8at

https://www.ohay.tv/profile/aw8at

https://www.mapleprimes.com/users/aw8at

http://www.rohitab.com/discuss/user/2140083-aw8at/
Build & Deploy Full Stack Link Sharing App Using MERN Stack
Tags: react, javascript, node, beginners
Published: 2024-04-18 04:46:00

{% embed https://www.youtube.com/watch?v=wcjCsMRZKxs %}

In this 6+ hours video course, you will learn the basics of MERN Stack From Scratch and then build and deploy a complete full-stack Link sharing App.

In this MERN Stack course, you will learn:

✅ how to implement secure cookie-based authentication
✅ how to use redux toolkit for managing application state
✅ how to allow uploading image of specific dimension and type
✅ how to upload images to [Cloudinary](https://cloudinary.com/)
✅ how to create protected routes
✅ how to implement copy to clipboard functionality
✅ how to implement lazy loading in react
✅ how to use react context API to share data between components
✅ how to maintain logged in user session
✅ how to implement smooth animation with drag-and-drop functionality
✅ how to add skeleton loading effect
✅ how to properly display backend unhandled errors on frontend
✅ how to deploy this fullstack application on production

and much more...

## Thanks for Reading!

If you want to master JavaScript, ES6+, React and Node.js with easy-to-understand content, do check out my [YouTube channel](https://www.youtube.com/@codingmastery_dev) and don't forget to subscribe.

Want to stay up to date with regular content regarding JavaScript, React, Node.js? [Follow me on LinkedIn](https://www.linkedin.com/in/yogesh-chavan97/).
Why You Need a Free Sale Certificate Before Selling Your Property
Published: 2024-04-18 04:45:26

In the realm of property sales, ensuring compliance with regulations and standards is crucial for smooth transactions. One such essential document is the **Free Sale Certificate**. This article delves into why obtaining a Free Sale Certificate is imperative before selling your property.

1. Ensuring Compliance with Regulations:

A [Free Sale Certificate](https://www.corpseed.com/service/free-sale-certificate) acts as a testament to the compliance of your property with the regulations and standards set by regulatory authorities. It verifies that the products you intend to sell meet the necessary quality and safety standards, providing assurance to potential buyers.

2. Facilitating International Trade:

In the global marketplace, having the right export documentation is paramount for seamless transactions. A Free Sale Certificate serves as proof that your property is eligible for sale in international markets, streamlining trade across borders and eliminating potential delays or restrictions.

Obtaining an international **trade certification** such as a Free Sale Certificate enhances your credibility as a seller. It showcases your commitment to compliance and quality assurance, instilling confidence in buyers and fostering trust in your property's legitimacy.

4. Meeting Domestic Standards

Beyond international transactions, a Free Sale Certificate is equally essential for domestic sales. It assures local buyers that your property meets the required** quality and safety standards** mandated by regulatory authorities, particularly in industries where product safety is paramount.

5. Avoiding Legal Complications

Failure to obtain the necessary documentation, such as a Free Sale Certificate, can lead to legal complications. Proper documentation ensures that your property sale adheres to [regulatory](https://in.linkedin.com/jobs/view/regulatory-compliance-isi-bis-at-corpseed-3891810177) requirements, mitigating the risk of legal disputes and safeguarding your interests as a seller.

Conclusion

Obtaining a Free Sale Certificate is not just a procedural formality but a critical step in the property selling process. From ensuring compliance with regulations to facilitating international trade and enhancing credibility, the benefits of obtaining this certification are manifold. 

By prioritizing the acquisition of a Free Sale Certificate, sellers can navigate the complexities of property transactions with confidence and integrity.
PySpark： missing value
Tags: pyspark, python, dataengineering, bigdata
Published: 2024-04-18 04:41:44

## Drop
[df.na.drop()](https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrameNaFunctions.drop.html?highlight=na%20drop#pyspark.sql.DataFrameNaFunctions.drop) vs. [df.dropna()](https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.dropna.html?highlight=na%20drop#)  
DataFrame.dropna() and DataFrameNaFunctions.drop() are aliases of each other. So theoretically their efficiency should be equivalent.  
In addition, df.na.drop() can also specify a subset.  
### examples

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1rt95f6tb5974igca6iz.png)
```python
# Code to drop any row that contains missing data
df.na.drop().show()
```

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


```python
# Only drop if row has at least 2 NON-null values
df.na.drop(thresh=2).show()
```

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


```python
# Only drop the rows with null in Sales col
df.dropna(how='any',subset='Sales').show()
```

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


```python
df.na.drop(how='any').show()
df.na.drop(how='all').show()
```

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

## fill
We can also fill the missing values with new values. If you have multiple nulls across multiple data types, Spark smart enough to **match up the data types**. For example:  

```python
df.na.fill('NEW VALUE').show()
```

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

if you have multiple columns to fill, you could use a dictionary.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zr2awymg48nlbec1eu2j.png)
Utilities
Published: 2024-04-17 23:53:34

Here are some tools, techniques, ideas and anything else that might be useful in everyday life.

**Tools**

[ray.so](https://ray.so/)
Do you ever find yourself needing to include code examples in documentation or presentations? Now, you can streamline that process by using this tool to generate images of your code snippets. No more wasting time formatting and adjusting code manually. With this tool, you can quickly and easily create images of your snippets, adding a professional touch to your documentation and presentations.

---


[sli.dev](https://sli.dev/)
Nothing beats crafting presentations as code! Slidev, powered by Vite and Vue, allows customization, creation of reusable components, and layouts.

---


[CyberChef](https://gchq.github.io/CyberChef/)
This website is a collection of utilities for information security. Here's how it works: you assemble a pipeline, adding functions like encoding and hashing, then provide an input, and it generates an output based on the pipeline.

---

[Mermaid Live](https://mermaid.live/)
Have you ever needed to generate a workflow using tools like draw.io? Wouldn't it be great to have that as code? Well, now you can have it all: editable, shareable, and codable.

---

[Typer](https://typer.tiangolo.com/)
If you need to build a command-line tool and know Python, this little guy here is going to be a huge help.

---

[Cheat.sh](https://github.com/chubin/cheat.sh)
Command-line heat-sheet that has more than 50 languages.
The coolest thing is that it works directly in the terminal via `curl`.
Command
```
curl cht.sh/python/lambda
```

Output
```
# Lambda are anonymous functions in Python by using the keyword lambda
# Therefore they are not bound to a name
​
# Simple Lambda Function
a = lambda parameter: parameter + 40
#
print (a(2))                    # Outputs 42
​
# Lambda Functions Inside Real Functions
def subtract_func(n) :
    return lambda x: x - n
#
a = subtract_func(1)            # Sets n to 1 for a
b = subtract_func(2)            # Sets n to 2 for b
#
print(a(-4))                    # Outputs -5 ( -5 = -4 - 1 )
print(b(-2))                    # Outputs -4 ( -4 = -2 - 2 )
​
# Lambda Function with Multiple Parameters
f = lambda x, y : x + y
#
print( f(1,1) )                 # Outputs 2 ( 1 + 1 )
​
# map() + lambda functions
a = [1, 2, 3, 4, 5]
b = [1, 2, 3, 4, 5]
#
r = map(lambda x,y : x+y, a,b)  # map() will return an iterator
r_list = list(r)                # listify r
print(r_list)                   # prints [2, 4, 6, 8, 10]
​
# filter() + lambda functions
# Program to filter out only the even items from a list
my_list = [1, 5, 4, 6, 8, 11, 3, 12]
#
new_list = list(filter(lambda x: (x%2 == 0) , my_list))
#
print(new_list)                 # Output: [4, 6, 8, 12]
```
How much Javascript is required to understand React Better .
Published: 2024-04-18 03:56:16

RFC (Request for Comments):

Main Difference: In the context of Internet standards and protocols, an RFC is a document series used for specifications, design, and implementation of various aspects of the Internet.
When to Use: RFCs are used in the broader context of Internet technologies, such as defining protocols like HTTP, SMTP, or IP. They're utilized when proposing or documenting standards, practices, or innovations in the field of networking and communication.
RFC (React Feature Component or React Functional Component):

Main Difference: In the context of React, RFC stands for either "React Feature Component" or "React Functional Component." It's a proposed change or addition to the React library.
When to Use: RFCs in React are used when proposing significant changes or new features within the React framework. This could involve enhancements to existing components, the introduction of new features, or modifications to the React library itself. RFCs facilitate community discussion and consensus-building around proposed changes.
RFCE (Request for Comments Editor or React Feature Component Enhancement):

Main Difference: RFCE doesn't have a widely recognized meaning in either the Internet standards context or React. In React, it could potentially refer to an enhancement or modification to an existing RFC.
When to Use: If you're suggesting an improvement or modification to an existing RFC proposal within the React ecosystem, you might create a document labeled as RFCE to outline your proposed changes. This could involve refining the original proposal, addressing feedback, or suggesting alternative solutions.
RFCP (Request for Comments Process):

Main Difference: RFCP doesn't have a standard meaning in either context. In React, it might refer to the process by which React RFCs are created, discussed, and eventually accepted or rejected.
When to Use: RFCP, if used in React, would relate to the overall process of creating, discussing, and deciding on RFCs within the React community. This involves engaging with the React community's decision-making process regarding proposed changes and new features.
In summary, while RFCs have a well-defined meaning in the context of Internet standards, their interpretation within React may vary. It's essential to understand the context in which these terms are being used to determine their appropriate usage and meaning.
Why in Typescript creating an enum doesn't need a =, but creating a new type does?
Tags: typescript
Published: 2024-04-18 03:45:45

To create a new `enum`, the syntax is 
```
enum Some {
    ...
}
```

But to create a new `type`, the syntax requires a `=`:
```
type Some = {
    ...
}
```
I wonder why this `=` is needed? 

I think it confuses type and value, and other languages are not like this. 

For example, in C++, creating a `struct` doesn't need a `=`.