teleren/devto huggingface dataset:
Jitendra Ghodela | Web developer
Tags: developer, story, webdev
Published: 2023-07-12 10:19:41

Jitendra is a skilled web developer who works with HTML, CSS, JavaScript, and continuously learns new technologies.

His expertise extends to front-end frameworks like React, Angular, and Vue.js, as well as server-side languages such as Node.js and PHP. He stays updated with industry trends and has a solid understanding of databases like MySQL and MongoDB. Jitendra is dedicated to honing his skills through hands-on practice and personal projects, positioning himself for exciting opportunities in the dynamic field of web development.
Operations between sets with JavaScript
Tags: learnedtoday, javascript, array, set
Published: 2023-07-12 10:18:58

Have you ever dealt with operations between sets in JavaScript, such as union, intersection or difference?

Here some ideas of implementation:

## Union

![Union operation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a4sjnxojf47wa04ddu63.png)

### with arrays
```javascript
const union = arr1.concat(arr2);
// OR
const union = [...arr1, ...arr2];
```

### with sets
```javascript
const union = new Set([...set1, ...set2]);
```

## Intersection

![Intersecion operation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yw4jx62j0vcr9skmk9d7.png)

### with arrays
```javascript
const intersection = arr1.filter(x => arr2.includes(x));
```

### with sets
```javascript
const intersection = new Set([...set1].filter(x => set2.has(x)));
```

## Difference (from A to B)

![Difference operation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h61mtbnrzt3ikjtdt7z0.png)

### with arrays
```javascript
const difference = arr1.filter(x => !arr2.includes(x))
```

### with sets
```javascript
const difference = new Set([...set1].filter(x => !set2.has(x)));
```

## Symmetric Difference

![Symmetric operation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g3gbe12k06pzgzvw3ksz.png)

### with arrays
```javascript
const symmetricDifference = arr1
           .filter(x => !arr2.includes(x))
           .concat(arr2.filter(x => !arr1.includes(x)))
```

### with sets
```javascript
const symmetricDifference = new Set([...set1]
           .filter(x => !set2.has(x))
           .concat([...set2].filter(x => !set1.has(x))))
```

## Demo
Have a look at this simple [Stackblitz demo](https://stackblitz.com/edit/set-operations-in-javascript?file=index.js) to play with the examples.
Validating Base64 Images by Size in Laravel: A How-to Guide
Tags: laravel, webdev, programming, php
Published: 2023-07-12 10:09:20

As Laravel developers, we often need to validate uploaded images to ensure they meet certain size requirements. Out of the box, Laravel's validation rules like `max` only work on numeric values, not base64-encoded images. 

In this post, we'll walk through extending Laravel's validation to handle custom base64 image size validation. By writing a custom validation rule, we can reuse this logic anywhere image uploads are required in our app.

# Custom Validation Rule 

All custom validation rules are registered by extending the `Validator` in the `boot` method of our `AppServiceProvider`. First, we'll use Laravel's `Validator::extend` method to define the logic:

```php
Validator::extend('base64_image_size', function ($attribute, $value, $parameters, $validator) {

  // Decode the image
  $decodedImage = base64_decode($value);

  // Get image size in kilobytes 
  $imageSize = strlen($decodedImage) / 1024;

  // Check if image is below max size
  return $imageSize <= $parameters[0]; 

});
```

Here we are decoding the base64-encoded image to get its binary size in bytes. Then we convert to kilobytes to compare against the maximum size defined in the parameters. If the image is below the max size, the validation passes.

# Custom Error Messages

Next, we'll customize the error message using the `Validator::replacer` method:

```php 
Validator::replacer('base64_image_size', function ($message, $attribute, $rule, $parameters) {
  return str_replace([':attribute', ':max'], [$attribute, $parameters[0]], $message);
});
```

This replaces `:attribute` with the field name and `:max` with the defined max size. The message itself is defined in the `resources/lang/xx/validation.php` language file:

```php
'base64_image_size' => 'The :attribute must not be larger than :max KB.',
```

# Usage

Finally, we can use this custom rule during validation:

```php
$validator = Validator::make($request->all(), [
  'image' => 'required|base64_image_size:500',
]);

if ($validator->fails()) {
  // Image too large
} 
```

By extending Laravel's validation capabilities, we've built a reusable way to validate base64 image sizes across our application. The same approach can be used for any validation logic that doesn't fit neatly into the built-in rules.
Phòng khám Đa khoa Đinh Tiên Hoàng – Liên hệ khám chữa bệnh uy tín, chất lượng
Published: 2023-07-12 10:05:36

Phòng Khám Đa Khoa Đinh Tiên Hoàng là một địa điểm được đánh giá cao chuyên khám, điều trị các vấn đề liên quan đến lĩnh vực Phòng khám Đa Khoa với hơn 90 review với tổng số điểm là 4.8/5 sao.
https://toptiers.site/2023/07/02/phong-kham-da-khoa-dinh-tien-hoang-lien-he-kham-chua-benh-uy-tin-chat-luong/
Black Friday and Cyber Monday 2023
Published: 2023-07-12 10:01:35

"[Black Friday and Cyber Monday](http://blackfridaycybermonday2023.com/) are shopping events that offer discounts and deals on a wide range of products. The cost of participating in these events varies depending on the specific products and retailers involved. During Black Friday and Cyber Monday, retailers typically offer significant discounts and promotions to attract customers.
Follow us:"
Appwrite OSS Fund Sponsors Rallly
Published: 2023-07-12 09:58:35

Hi readers 👋, welcoming you back to the "Appwrite OSS Fund" series, where we celebrate open-source maintainers. 🎉

## 🤔 What Is OSS Fund? 
On the 4th of May, the Appwrite team launched the [OSS Fund](https://appwrite.io/oss-fund), an initiative to support open-source project maintainers. Being an open-source company, we wanted to give back to the community and help as many people as we can. 

The OSS Fund is an initiative that is very close to our heart. 
Hear what our Founder and CEO has to say - The Appwrite Story:
{% embed https://appwrite.io/oss-fund-announcement %}

> ### 📢 Announcing The Nineteenth Project 
> After careful considerations from the committee we are thrilled to announce the nineteenth project: 

{% twitter 1674828370259984396 %} 

## 🤔 What Is Rallly?
[Rallly](https://github.com/lukevella/rallly) is a scheduling and collaboration tool that tackles a universally encountered problem - finding an ideal time for a group to meet. Be it a business conference, social outing, or family get-together, Rallly simplifies the process by offering an intuitive space for users to propose and vote on potential dates and times.

## 🤝 Meet The Maintainer

[Luke](https://twitter.com/imlukevella), who is a full-stack developer from Malta, is the creator of Rallly. Over the course of his 14 year career,he has been involved in every aspect of product development, which includes UI/UX design, front-end and back-end development, as well as devops. His passion lies in creating efficient, time-saving tools and designing beautiful, user-friendly interfaces.

## 🚘 The Journey So Far
Luke built Rallly in 2015 and launched it on [Product Hunt](https://www.producthunt.com/products/rallly) (8 years ago). He built the first version using the [MEAN](https://en.wikipedia.org/wiki/MEAN_(solution_stack)) stack. He maintained it in his spare time after that initial launch until 2022. When he noticed the demand for a Doodle alternative was growing, he decided to work on it full-time for a few months while he redesigned and rebuilt it with Next.js, Prisma, tRPC and tailwind. After the relaunch, Luke received lots of great feedback from users and new users started coming in. He decided to continue working on it full-time ever since and is working on finding ways to grow and sustain future development for this project.

## 🗒️ Ending Notes

As Luke continues to build Rallly for the open source community, we want to thank maintainers like him for contributing back to the community.
Logarithmic functions
Tags: apacheage, logarithmic, functions, methods
Published: 2023-07-12 09:30:34

In this article we will discuss logarithmic functions in Apache age. 
Following are some of the logarithmic functions used in age. It represents the name of the function, description, syntax, what is returned by the function and a sample query. 

## e:
### Description:
Returns the base of the natural logarithm

### Syntax:
`e()`

### Returns:
The function returns an agtype float.

### A sample Query:
```
SELECT *
FROM cypher('your_graph_name', $$
    RETURN e()
$$) as (e agtype);
```
It will return the value of e i.e. 2.71828182845905.


## sqrt:
### Description:
The function returns the square root of the provided number.

### Syntax:
`sqrt(expression)`
here the expression represents any number or expression of numbers.

### Returns:
It returns an agtype float.

### A sample Query:
```
SELECT *
FROM cypher('your_graph_name', $$
    RETURN sqrt(144)
$$) as (results agtype);
```
The above query will return 12 as the square root of 144.

## exp:
### Description:
The function returns e^n. where e is the base of the natural logarithm and n is the value of the argument expression.

### Syntax:
`e(expression)`
here the expression represents any number or expression of numbers.

### Returns:
It returns an agtype float.

### A sample Query:
```
SELECT *
FROM cypher('graph_name', $$
    RETURN exp(2)
$$) as (e agtype);
```
The above query will return a floating point result of e^2.

## log:
### Description:
The function returns the natural logarithm of the provided number.

### Syntax:
`log(expression)`
here the expression represents any number or expression of numbers.

### Returns:
It returns an agtype float.

### A sample Query:
```
SELECT *
FROM cypher('graph_name', $$
    RETURN log(27)
$$) as (natural_logarithm agtype);
```
The above query will return natural logarithm of 27.

## log10:
### Description:
The function returns the common logarithm(base10) of a number.

### Syntax:
`log10(expression)`
here the expression represents any number or expression of numbers.

### Returns:
It returns an agtype float.

### A sample Query:
```
SELECT *
FROM cypher('your_graph_name', $$
    RETURN log10(27)
$$) as (common_logarithm agtype);
```
The above query will calculate the natural/common logarithm of 27.

## References:
1. https://age.apache.org/age-manual/master/intro/overview.html
2. https://github.com/apache/age
Welcome Thread - v233
Tags: welcome
Published: 2023-07-12 09:30:00

---
title: Welcome Thread - v233
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9gl6twd8r59cvwqlllw7.jpg
published_at: 2023-07-12 09:30
---

![Welcome in orange with a small cartoon fox waving from below](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cs2bt6xomj9xck8jfwu0.gif)

---

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

3. If you are new to coding, want to help beginners in their programming journey, or just want another awesome place to connect with fellow developers, check out the [CodeNewbie Org](https://dev.to/codenewbieteam)!
I’ve obtained a new certification: AWS Certified Developer – Associate from Amazon Web Services (AWS) Web Services (AWS)!
Published: 2023-07-12 09:22:07

I am thrilled to announce that I have successfully passed my AWS Certified Developer – Associate exam!.
I want to extend a heartfelt thank you to AWS Training & Certification and Amazon Web Services (AWS) for providing such an incredible learning opportunity.

Preparing for this exam was no easy feat, but I was determined to succeed. I spent countless hours studying and practicing, and Obtaining this certification has been a fulfilling journey, and I am grateful for the knowledge and skills I have gained along the way.

I'd also like to thank Stéphane Maarek for his excellent course, which was a valuable resource. I've gained a deep understanding of AWS services and honed my development skills in the cloud.
I am excited to apply my newfound knowledge and skills to help organizations harness the power of AWS and drive successful digital transformations. If you have any questions or if I can assist you in any way, please feel free to reach out.
Hone Your Facebook Marketing Skills. Try These Tips Today!
Published: 2023-07-12 09:15:43

With regards to social media marketing, there is no greater tool to use than Facebook. Facebook marketing is by far the best method to reach as many people as possible and make your business grow. The article below will teach you all you need to know about Facebook marketing.

While you want to advertise your products, this should not be the only content that is present on your Facebook page. You should share any information that you feel is relevant to your business. If people think that making money is your only goal, they will be hesitant to work with you.

Use Facebook to share links to your site. You should try writing weekly articles or launching a video blog so you can create more content on a regular basis. Your audience will subscribe to your updates on Facebook if you create quality content. Make sure you mention your Facebook campaign in your articles or videos.
[**Click here**](url) to get more information about facebook page. 

**Facebook**


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

Change the tab order on your Facebook business page. The tabs will be in vertical order on the left of the page to start with. Under your list of tabs is the "Edit" option. Use this to customize the order of the tabs outside of the Info and Wall tabs. This can help you create a better hierarchy of which tabs should be near the top or the bottom in order to have some stand out more than others.

Facebook is no longer a free marketing tool. As the site has evolved, it has made it ever harder to reach your target audience. Not only is it now overpopulated with your competition, but it is also overwhelmed with status updates by the millions of accounts. For most businesses, the only way to get seen today is to hire help, so consider that as an option.

Having read the article above, you should now have a better understanding as to how Facebook marketing works. Use the advice detailed earlier as you take steps to expand your business and reach more people than ever before. Remember to refer back to this article periodically to refresh everything you have just learned.
Immediate Edge - Benefits, Price, Results, Reviews & Side Effects?
Tags: webdev, javascript, beginners, programming
Published: 2023-07-12 09:02:42

This Lavender has [Immediate Edge](https://www.outlookindia.com/business-spotlight/immediate-edge-reviews-intelligent-crypto-trading-software-legit-complete-in-depth-guide-for-beginners--news-296787) gray-green foliage and beautiful purple spikes of flowers that blossom around July.  It blooms for very most of the time, requires very little water as well as being extremely organic.  It has to be about twelve inches or longer, however the future slim fantastic it seem taller much more blossom.  
[https://www.outlookindia.com/business-spotlight/immediate-edge-reviews-intelligent-crypto-trading-software-legit-complete-in-depth-guide-for-beginners--news-296787](https://www.outlookindia.com/business-spotlight/immediate-edge-reviews-intelligent-crypto-trading-software-legit-complete-in-depth-guide-for-beginners--news-296787)
https://immediateedgefact.clubeo.com/calendar/2023/07/12/immediate-edge-benefits-price-results-reviews-side-effects
https://www.sympla.com.br/produtor/immediateedgeinfo
https://www.yepdesk.com/immediate-edge
https://soundcloud.com/immediate-edge-748212231/immediateedgefacts
https://www.scoop.it/topic/immediate-edge-by-immediate-edge-11
https://www.linkedin.com/events/immediateedge7084801951497949184/
https://www.pinterest.com/pin/994310423962827127/
https://medium.com/@immediateedgefact/about
https://www.crunchbase.com/organization/immediate-edge-ce19
https://www.sportsblog.com/immediateedgebuys/immediate-edge-benefits-price-results-reviews/
https://sites.google.com/view/immediateedge-2023/
https://www.youtube.com/watch?v=LeixDC8_wsE
https://www.click.in/gurgaon/immediate-edge-benefits-price-results-reviews-c75-v53241153 
https://techplanet.today/post/immediate-edge-results-benefits-reviews-price-side-effects 
https://twitter.com/ImmediateE34709
How to navigate your first days as an environment wizard 🧙‍♂️with Blackfire 🔥
Tags: webdev, tutorial, beginners, productivity
Published: 2023-07-12 09:13:13

Your first steps into the role of environment manager are paved with navigating the perils of setting up your environment and managing access controls. 📍 

But fear not, our latest guide is designed to help you navigate your first days with Blackfire. 

Our latest guide zeroes in on the critical role of environment managers, offering a blueprint for Blackfire. 

**As an environment manager, you have two primary responsibilities:**

**1️⃣ Ensuring your environment is correctly configured 
2️⃣ Controlling the accesses to this environment**

Your primary objective is to ensure the day-to-day work with Blackfire is as smooth as possible for your team members and you.

**In this part of the series we will dive into:**

**👾 The nitty-gritty of environment configuration
🔐 Access control and the importance of deciding who shall pass**

Now that you have the overview let's jump into the details 👉 [Navigating your first days as an environment manager with Blackfire](https://blog.blackfire.io/navigating-your-first-days-as-an-environment-manager-with-blackfire.html?utm_source=devto&utm_medium=social&utm_campaign=blackfire_blog)
How To Install Code-Server On Android
Tags: termux, android
Published: 2023-07-12 09:05:04

## Install Termux
Make sure to install termux from F-Droid

## Installation
To install, run `pkg install codeserver -y`.
to run, run `codeserver`.

## Notes
- Only avalible to your phone! 
- Does not connect to VSCode.
- Cannot open on PC or Laptops Avalible Locally Only! Use a tunnel to fix it!
Installing NodeJS In Termux
Tags: termux, android
Published: 2023-07-12 09:01:50

## How do you install NodeJS?
Run `pkg update -y && pkg upgrade -y && pkg install nodejs-lts`
Check if its installed with `node -v && npm -v`


## Issues
- If termux doesn't work when running update and upgrade, make sure to have the F-Droid Version As the Termux From PlayStore is not updated.
- Installing Better-Sqlite3 having issues while installing? Make sure to have the bin-utils package installed (pkg install bin-utils -y) and install yarn 
- If your home screen, lock screen stops working and dies and restarts and loops in that you should restart your phone as it is overloaded (Maybe Root Issue?) 
- Might Get Hot
How to download video Threads with SnapThreads
Tags: threads, typescript
Published: 2023-07-12 08:54:46

In today's digital age, social media platforms have become an integral part of our lives. Among the latest additions to the social media landscape is Threads, a text-based app created by the team behind Instagram. 

While Threads offers a unique way to share updates, thoughts, and experiences with friends and followers, sometimes you may want to save those precious video moments for offline viewing or sharing. That's where SnapThreads.net comes in – a powerful tool that allows you to download Threads videos with just a few clicks.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdelrxk7xry2iitcnsvx.png)
## How to download Threads video with SnapThreads

SnapThreads.net is a user-friendly website that streamlines the process of downloading Threads videos in high-quality MP4 format. One of the standout features of this platform is its simplicity – you don't need to install any additional software or apps. All you need is a web browser and a stable internet connection.

Here's a step-by-step guide on how to use SnapThreads.net to download your favorite Threads videos:

1. Open the Threads app on your smartphone and locate the video you want to download.
2. Tap the share icon (airplane symbol) beneath the video.
3. Select the "Copy Link" option to copy the video's URL.
4. Open your web browser and navigate to https://SnapThreads.net .
5. Paste the copied video link into the provided box on the website.
6. Click the "Download" button, and you'll be prompted to select the desired video quality (720p HD or 1080p Full HD).
7. Choose the appropriate file format (MP4), and the video download will begin automatically.

One of the significant advantages of using SnapThreads.net is its compatibility with various devices and operating systems. Whether you're using an Android smartphone, an iPhone, a Windows PC, or a Mac, you can seamlessly download Threads videos without any compatibility issues.

Another noteworthy aspect of SnapThreads.net is its commitment to user privacy and security. The website does not collect or store any personal data, and it's entirely free from malware, viruses, or intrusive advertisements. This ensures a safe and secure downloading experience for all users.

Additionally, SnapThreads.net is constantly updated to support the latest Threads video formats and links, ensuring a seamless experience regardless of any changes made to the platform.

## Conclusion:

In conclusion, SnapThreads.net is an invaluable tool for anyone who wants to download and save Threads videos for offline viewing or sharing. With its user-friendly interface, compatibility across devices, and commitment to privacy and security, SnapThreads.net offers a hassle-free way to preserve your favorite Threads moments. 

Whether you're a casual user or an avid Threads enthusiast, this platform is a must-have in your digital toolkit. So, why wait? Head over to SnapThreads.net and start downloading your cherished Threads videos today!

Social:
https://twitter.com/snapthreads

https://www.pinterest.com/snapthreads_net/
#TestCulture Episode 38 – Unlock the intrinsic motivation of employees
Tags: beginners, devops, agile, testing
Published: 2023-07-12 08:32:31

This practice consists of applying the levers of self-interest close to vocation. Intrinsic motivation, unlike extrinsic motivation, is based on ⬇️
1️⃣ Sufficient remuneration to remove the question of money from the discussion and to decouple remuneration from accomplished actions.
👉🏼 Because beyond a certain threshold, financial incentives are no longer a source of motivation.
2️⃣ A rewarding and necessary learning process to achieve a certain level of mastery. 🔝
3️⃣ A noble objective aimed at by the mission of each person and not a 𝐦𝐚𝐭𝐞𝐫𝐢𝐚𝐥𝐢𝐬𝐭𝐢𝐜 𝐟𝐢𝐧𝐚𝐧𝐜𝐢𝐚𝐥 𝐠𝐨𝐚𝐥 ⭐
4️⃣ Maximum autonomy given and 𝚗𝚘𝚝 𝚘𝚛𝚍𝚎𝚛𝚜 to be carried out under the control of a manager.
The agility mindset goes in this direction, and SAFe includes it directly in its list of principles. The conditions for this situation are in the hands of the managers, who thus gain leadership. 🏅
🔓 Learn more about how to unlock the intrinsic motivation of employees: [https://agilitest.com/cards/unlock-the-intrinsic-motivation-of-employees](https://agilitest.com/cards/unlock-the-intrinsic-motivation-of-employees)