teleren/devto huggingface dataset:
Commenting in javaScript.
Tags: javascript, webdev, beginners, programming
Published: 2022-10-05 08:45:11

We can write additional notes to help to think through problems in JavaScript . To write additional notes, you use comments.

Comments appear in** two **forms:

**//
/* */**


**Commenting with //**

You can write comments in JavaScript by adding double slashes (//). Anything after // is commented and will not be run by JavaScript.

    ` // comments in javascript.`


Sample Example :
   ` console.log("Hi folks") // printing hi folks`

Commenting with /* */
You can also write comments with the /* */ syntax. Any words between /* and */ is a comment.



`/* comment in other way that lets user to add more text  */`
You can write comments that span multiple lines if you use /* */:

`/*
 all
 lines 
  commented
  in
  this
  example.
*/`


Happy Learning
Trialing Cloudflare R2 for zero cost egress
Tags: cloud, cloudflare
Published: 2022-10-05 08:44:52

At [Humyn.ai](https://www.humyn.ai/), our [challenges](https://app.humyn.ai/challenges) sometimes involve distributing large datasets to our innovator community. For a recent challenge, we estimated ~$25 in charges for data being downloaded from S3, per participant, prompting investigation into other options.

Recently Cloudflare made their object storage product _R2_ [generally available](https://blog.cloudflare.com/r2-ga/), advertising zero cost egress. The positioning of the product, [taking direct aim](https://blog.cloudflare.com/aws-egregious-egress/) at the relatively expensive cost of outgoing bandwidth from the other major cloud providers.

Our experience trialing R2 for disseminating large datasets follows.

## Cost savings

In this case, the cost savings were potentially significant, but R2 does not provide any metrics on how much data was downloaded from a given bucket, however for anyone with a history of billing for a comparable product like S3, it should be easy to evaluate the impact of switching on the bottom line.

## Supported clients

R2 (and apparently a number of other providers) implement the S3 API, allowing S3 clients to interact with R2 directly. I found that while the `aws-cli` worked for smaller files, there was an incompatibility with larger files using multi-part uploads.

I found a [post from a Cloudflare engineer](https://news.ycombinator.com/item?id=32928280), that confirmed it was a known issue, but the configuration options in the aws cli to reduce concurrency did not seem to work.

In the end I switched to [rclone](https://rclone.org/) with a limited concurrency of 1, which worked for files in the ~250GB range.

## Features

Both pre-signed links and public buckets were supported in R2, which were enough for our short term needs.

S3 has extremely flexible IAM, amongst a wide range of other features and it was a little surprising that the tokens required to authenticate with R2 were global account level tokens, which couldn't be scoped per bucket.

With R2 being such a new product, I wouldn't be surprised if it continued to chip away at the advanced use cases supported by S3.

---

Overall our experience with R2 was positive and we'll be keeping an open mind on how it can be leveraged in our stack moving forward.
Du lịch Nhật Bản
Tags: dulichnhatban, tournhatban
Published: 2022-10-05 08:27:55

Du lịch Nhật Bản – Khám phá điểm du lịch Nhật Bản cùng trung tâm Xuất Khẩu Lao Động VLE. m/0119073k

Website: [https://vle.com.vn/bai-viet/cac-dia-diem-du-lich-noi-tieng-tai-nhat-ban.html](https://vle.com.vn/bai-viet/cac-dia-diem-du-lich-noi-tieng-tai-nhat-ban.html)


Email: trungtamvle.hp@gmail.com
Hotline: 0915 815 907
Address : Đường Hải Triều (Quốc lộ 10), P. Quán Toan, Q. Hồng Bàng, Tp. Hải Phòng

Hastag : #dulichnhatban #du_lich_nhat_ban #tour_nhat_ban #tourdulich #tournhatban #tour_du_lich #m/0119073k
Couldn't connect to Discord via RPC [vscode]
Tags: discord, vscode, linux
Published: 2022-10-05 08:25:08

## My Problem

![Couldn't connect to Discord via RPC](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3on0abrdha4qt9v90f9r.png)

## My Solution

- remove vscode from flatpak or snap
- remove discord from faltpak or discord
- install vscode from .rpm or .deb pakage
- install discord from .rpm or .deb pakage

damm

![discord status](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dd9snnmw46p43hxshnqz.png)

---

## reference

- [github.com](https://github.com/iCrawl/discord-vscode/issues/85)
- [itsfoss.com](https://itsfoss.com/install-discord-fedora/)
Saving and refreshing - JAVASCRIPT
Tags: javascript, beginners, programming, tutorial
Published: 2022-10-05 08:21:57

When you change your JavaScript file, you need to save it. After saving it, you need to refresh your browser window for the changes to take effect.

This is one of the most common errors that people face when they find their JavaScript didn’t work—they either forget to save, forget to reload, or both.

Next time, when your code doesn’t update, try saving and refreshing.

 Make sure you check “disable HTTP Cache” in your console’s settings.


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

Disable HTTP cache 

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

Happy Learning💛
PROPS AND STATES EXPLAINED
Tags: javascript, beginners, react, programming
Published: 2022-10-05 08:21:40

**What is the Difference Between Props and States**
In React, states and props are data, but they differ by one key concept, that is their origin.
Basically, when a component receives data from a component higher up, the data received becomes props to that component that received it. Data can be termed as "state" only in the component that created it, that is if the data cannot be traced to any other component higher up.
Only one component can own a state, that is the component that created it, and its the only component that can change its values, but props are immutable meaning that the values of props cannot be changed. If a component receives a prop called "name" with value of "Jared", the component cannot change the value of the name prop from "Jared" to "Khalil".

**About The Author**
Emmanuel Ochade, is an experienced Frontend/Backend with special interest in React and a blockchain enthusiast, who is willing to share all his learning and knowledge about react and blockchain with the public.
Browser Console.
Tags: javascript, beginners, webdev, programming
Published: 2022-10-05 08:19:42

The **console** is a space where it provides an interface to understand what's happening with your JavaScript code. This tool is very useful while debugging **JavaScript application**.


Web browsers has it's own console ::

Browsers have their own console. The consoles between browsers are largely similar to each other, with minor differences in style and capabilities. 

Example : google browser  / safari soo on..

**Sample image of a browser console.**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zu29qj8cnzaq821r0yv5.png)

**Printing to the console**

Code you type into your JavaScript file does not appear automatically in the console. This behavior is ideal because you can have hundreds of lines of JavaScript when you make something. It would be hard to debug if you were forced to look at hundreds of lines of logs every time!

To get things from your JavaScript file to the console, you need to use console.log. It looks like this:

`console.log(`Hello, I'm Zell!`)`

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

Happy Learning💗
Laravel LDAP authentication - Laravel Docker install OpenLDAP and phpLDAPadmin
Tags: webdev, php, laravel, laravelframework
Published: 2022-10-13 03:20:24

---
title: Laravel LDAP authentication - Laravel Docker install OpenLDAP and phpLDAPadmin
published: true
date: 2022-10-05 08:02:00 UTC
tags: webdevelopment,php,laravel,laravelframework
canonical_url: https://medium.com/geekculture/laravel-ldap-authentication-laravel-docker-install-openldap-and-phpldapadmin-a3446c537c63
---

[![](https://cdn-images-1.medium.com/max/2600/0*KCZSf_TkyY-vwugt)](https://medium.com/geekculture/laravel-ldap-authentication-laravel-docker-install-openldap-and-phpldapadmin-a3446c537c63?source=rss-17217f29618a------2)

Laravel LDAP authentication with an example - part 1

[Continue reading on Geek Culture »](https://medium.com/geekculture/laravel-ldap-authentication-laravel-docker-install-openldap-and-phpldapadmin-a3446c537c63?source=rss-17217f29618a------2)
A Quick 10-Second Programming Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2022-10-05 08:00:15

---
title: "A Quick 10-Second Programming Joke For Today"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

**Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).**
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e125927bb96c.png)

---
*Have a joke idea for a future post? Email **[xtrp@xtrp.io](mailto:xtrp@xtrp.io)** with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
**Q:** Why did the database administrator leave his wife?

**A:** She had one-to-many relationships.
 -->
How To Convert Image Into Base64 String Using jQuery
Tags: javascript, jquery, base64, image
Published: 2022-10-05 07:57:10

In this article, we will see how to convert an image into a base64 string using jquery. 

Base64 encoding schemes are commonly used when there is a need to encode binary data that needs to be stored and transferred over media that are designed to deal with ASCII. 

This is to ensure that the data remain intact without modification during transport. 

Base64 is a group of binary-to-text encoding schemes that represent binary data (more specifically, a sequence of 8-bit bytes) in sequences of 24 bits that can be represented by four 6-bit Base64 digits.

We will convert the image to a base64 string using jquery or javascript. To convert base64 to the string we are using FileReader() function and get the result from the file.

Let's see, convert the image to base64 string jquery or convert the image to base64 string javascript.
Wednesday Links - Edition 2022-10-05
Tags: jvm, java, uml, mocks
Published: 2022-10-05 07:56:54

Paving the on-ramp (13 min)🧱
https://openjdk.org/projects/amber/design-notes/on-ramp

Virtual Threads: New Foundations for High-Scale Java Applications (21 min)🧵
https://www.infoq.com/articles/java-virtual-threads

ArchUnit 1.0.0 relased (30 sec) 🎉
https://twitter.com/archtests/status/1577010996555939842

UML: My Part in its Downfall (19 min)🍂
https://tratt.net/laurie/blog/2022/uml_my_part_in_its_downfall.html

Probabilistic Data Structures and Algorithms in NoSQL databases (13 min)🎲
https://blog.allegro.tech/2022/10/probabilistic-algorithms.html

SLI, SLO and SLA: a number, a threshold and a legal document respectively (4 min)⚖️
https://nurkiewicz.com/88

Fakes Are Great, But Mocks I Hate (2 min)📟
https://www.billjings.com/posts/title/fakes-are-great-but-mocks-i-hate
Spring Framework Practice Questions [Free Sample Copy]
Tags: springboot, java, spring, interview
Published: 2022-10-05 07:53:59

Get a sample copy of Spring Framework Practice Questions for Spring developer and Spring Professional interviews. It contains the first chapter and TOC, which will give you a quick overview of what you will get in the full book.

If you like the sample copy and all the Java questions, you can buy the full book [here](https://gumroad.com/a/1036063859/qelhye) on Gumroad.

You can also use my code **friends20 to get a 20% discount** for a limited time.

Click [here](https://bit.ly/3Br5RY5) to get your 20% Discount now - 20% OFF on Spring Framework Practice Questions
Valid Palindrome II
Tags: javascript, leetcode
Published: 2022-10-05 07:36:56

Given a string s, return true if the s can be palindrome after deleting at most one character from it.

Example 1:

Input: s = "aba"
Output: true


```js
/**
 * @param {string} s
 * @return {boolean}
 */
var validPalindrome = function (s) {
  let pstring = s;
  let start = 0;
  let end = s.length - 1;

  while (start <= end) {
    if (pstring[start] === pstring[end]) {
      start++;
      end--;
    } else {
      return (
        checkPalindrome(pstring, start + 1, end) ||
        checkPalindrome(pstring, start, end - 1)
      );
    }
  }
  return true;
};

const checkPalindrome = (s, i, j) => {
  let left = i;
  let right = j;
  while (left <= right) {
    if (s.charAt(left) == s.charAt(right)) {
      left++;
      right--;
    }else if (s.charAt(left) != s.charAt(right)) {
      return false;
    }
  }
  return true;
};
```
JavaScript linking your javascript file
Tags: javascript, tutorial, beginners
Published: 2022-10-05 07:31:06

**JavaScript** file ends with a `.js`. These files are then stored in a **js** Folder that's located at the same level of your HTML for easy indication.

attached folder structure below [for clear visualization]
Like this 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/859nha5ens0vsniac02l.png)

Now let's get into main topic for our discussion.

       ** Linking your JavaScript file to your HTML file**

For **JavaScript** files to work , we need to link them you **HTML** file - > This can be done by adding **script** tag at the bottom of the html document before closing the **body** tag or inside inside **head** section
 
`<html>
<head>
  <meta charset="utf-8" />
  <title>Title website </title>
</head>
<body>
  <!--  Please enter js script inside -->
  <script src="js/index.js"></script>
</body>
</html>`

In index.js file ,Let's enter `alert('Javascript file linked')`.

If we try to open the index.html , the browser will display a pop that  says "Javascirpt file linked".

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

Happy learning💗
How does the GIF function works in Whatsapp and Telegram?
Tags: whatsapp, gif, telegram, help
Published: 2022-10-05 07:20:15

Hi guys, I am a noobie developer who has a lot of daily-life tech-related questions every time when I use any web/app.

This is my very first post on dev.to, and I wanted to ask you guys this question since I've always been wondering.

Does anybody know this? 
When you search a keyword on the GIF search bar, you can see the pictures you want to send.
How does it work?
My Portfolio
Tags: javascript, webdev, beginners, programming
Published: 2022-10-05 07:07:00


## Why build a Portfolio?
As everyone knows developers must need to have a portfolio site, to showcase his/her skills and project in one place. So I decided to build it.

## My Portfolio
Live link - [shubhams.dev](https://shubhams.dev/)

Now, think I am ready to get started with job hunting(for front-end development).

![Portfolio home page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/akc6rk3c1bad9xoj3ekw.png)

### Tech used
* NextJs
* Framer-motion
* SCSS
* nodemailer
* react-google-recaptcha
* react-icons
 
Feel free to connect with me on [LinkedIn](https://linkedin.com/in/shubhamku044) and [Twitter](https://twitter.com/shubhamku044)
Table of content intro what are customer call services prerequisites why are customer call services important Conclusion
Tags: beginners, career, news, leadership
Published: 2022-10-05 06:47:53

Good day reader thanks for allowing me to share a little bit of my knowledge with you, so pls make yourself comfortable and feel at home as I am going to give you a ride through the world of "customer call service".

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




#What are customer call services ?:
Customer call service is the assistance and advice provided by a company to those people who buy or use its products or services. this work is one of the most important in the world of business and this work opportunity is available mainly for youths and it is very easy to do.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e887zghxm94v5lzkeu2m.png)
#Prerequisites:
So the prerequisites for this work for you to easily get the work or be better in it are:

-Problem-solving skills: the number one skill you need to be good at customer service is problem-solving. every other part of the job is related to problem-solving abilities.

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

-Clear Communication: You will have a hard growing in the customer service s lane if you lack clear and good communication skills.
Take note clearly and good communication isn't as easy as it sounds. it involves you being capable to put yourself in the client's shoes and using concise explanations to get to a solution as quickly as possible and often that means you will have to cut out the jargon in favor of language.

-Customer focus and adaptability to different personality types:
in this line of work, you will attend to or meet different people with different personalities or characters so you will have to be capable of not getting angry when communicating with so rude customers.

-Friendly Attitude:
People hate to be treated like a number. the majority of people prefer to interact with a human when faced with issues.
the ability to stay  genuine and show clients that they matter to your business can make a whole world of a difference in their customer experience

-Strong Time management


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q7xxbh59mmo8wqfco0ld.jpg)
#WHY IS CUSTOMER CALL SERVICES  IMPORTANT:
-Helps you retain customers
-Boosts employee retention
-Reinforces company values and brand 
-Generates referrals
-Increases customer lifetime value
-Proactively addresses customer issues 
-Strengthens company culture and streamlines processes 
-Give you a competitive advantage


#CONCLUSION:
Customer call service is one of the most important parts of any business  and it is a very good means of creating job opportunities,
and thanks for allowing me to share a little bit of my knowledge with you, I hope you enjoyed the ride

Writer: SAGE  
linkedin:https://www.linkedin.com/in/onyedikachi-emenike-35877420a/
twitter: https://twitter.com/sage1040
Weekly web development resources #118
Tags: webdev, resource, weekly
Published: 2022-10-05 05:46:13



______

##[Dear Console…](https://codepo8.github.io/dearconsole/)
[![Dear Console…](https://wweb.dev/weekly/content/118/console.jpg)](https://codepo8.github.io/dearconsole/)
A repository of little scripts you can use in the browser console to achieve the described task.

______

##[Learn Accessibility](https://web.dev/introducing-learn-accessibility/)
[![Learn Accessibility](https://wweb.dev/weekly/content/118/accessibility.jpg)](https://web.dev/introducing-learn-accessibility/)
A new course written by Carie Fisher for the essentials of building accessible websites.

______

##[tremor](https://github.com/tremorlabs/tremor)
[![tremor](https://wweb.dev/weekly/content/118/tremor.jpg)](https://github.com/tremorlabs/tremor)
A react library to build dashboards fast.

______

##[Red Goose](https://goose.red/)
[![Red Goose](https://wweb.dev/weekly/content/118/goose.jpg)](https://goose.red/)
A website to convert any responsive website into a fully functional mobile app.

______

##[Engineering assessments](https://tapioca.webflow.io/library-of-assessments)
[![Engineering assessments](https://wweb.dev/weekly/content/118/assessments.jpg)](https://tapioca.webflow.io/library-of-assessments)
A library of effective take-home hiring assessments.

______

##[Devbox](https://github.com/jetpack-io/devbox)
[![Devbox](https://wweb.dev/weekly/content/118/devbox.jpg)](https://github.com/jetpack-io/devbox)
A command-line tool that lets you easily create isolated shells and containers.

______

##[PublicWWW](https://publicwww.com/)
[![PublicWWW](https://wweb.dev/weekly/content/118/publicwww.jpg)](https://publicwww.com/)
Search Engine to find any keyword in the web pages HTML, JS and CSS code. 

______

##[Rematch](https://rematchjs.org/)
[![Rematch](https://wweb.dev/weekly/content/118/rematch.jpg)](https://rematchjs.org/)
A Redux alternative that offers its best practices without the boilerplate

______

##[mediaquery.style](https://mediaquery.style/)
[![mediaquery.style](https://wweb.dev/weekly/content/118/mediaquery.jpg)](https://mediaquery.style/)
A website that lists popular media queries with a copy button for code the snippet you need.

______

##[Upscayl](https://github.com/upscayl/upscayl)
[![Upscayl](https://wweb.dev/weekly/content/118/console.jpg)](https://github.com/upscayl/upscayl)
A free and open-source AI Image Upscaler for Linux, MacOS and Windows.

______

To see all the weeklies check: [wweb.dev/weekly](https://wweb.dev/weekly)
Find Out Now, What Should You Do For Fast PMI DUMPS?
Published: 2022-10-05 06:30:13

Ask the u . s . manager to champion the social media platform, as they may have more have an effect on than the close by software program manager. Review gift in-house social media skills to determine if they'll meet the dreams of the u . s . manager’s request, and update the stakeholder sign on. Ask the generation, protection, and project corporations to assess the u . s . manager’s request. 19. You are this machine manager of the JNH Program.**PMI Dumps**  Tom, a project manager to your software program, has truly completed his project and is ready to officially close to his project. You agree that Tom's project is completed. What function do you play in Tom's project closure? You want to make certain that the project sponsor closes the project. You want to make certain that that the tasks withinside the software program have been closed at the project degree. You want to close to the project in advance than operations closes the project. You want to make certain that this machine manage institution closes the project for the project manager. 

Click Here More Info >>>>> https://dumpsarena.com/vendor/pmi/