teleren/devto huggingface dataset:
Short links to create a new Wix / Editor X site editor
Tags: velo, wix, editorx, velobywix
Published: 2021-09-27 20:39:36

A set of short links for creating a new site on Wix, Velo, and Editor X. Just type the below links to your browser address bar.

- **[wix.new](https://wix.new)** - Creates a new Wix site editor from a blank template
- **[velo.new](https://velo.new)** - Creates a new Wix site editor with enabled Velo from a blank template
- **[editorx.new](https://editorx.new)** - Creates a new Editor X site editor from blank template
What are your thoughts on Web 3.0?
Tags: watercooler, web3
Published: 2021-09-27 20:24:44

---
title: What are your thoughts on Web 3.0?
published: true
description: 
tags: watercooler, web3
cover_image: https://bosstalker.com/wp-content/uploads/2020/12/ok2xd3yly.jpg
---
Web 3.0 is the 3rd gen of internet services that will focus on using a machine-based understanding of data to provide a data-driven web.

The tech community on social media has has created a [buzz](https://twitter.com/search?q=web%203.0&src=typed_query&f=top) about it. Some do see it as a future while some are making memes out of it:

{% twitter 1442178457845125121 %}

{% twitter 1442218393168498692 %}

{% twitter 1442419941970485249 %}

What are your thoughts on it? 👇
7 Best Practices for Git Commits
Tags: git, webdev, codereview, bestpractice
Published: 2021-09-27 18:52:37

In my experience, a git commit should have the following seven characteristics:

1. It has a **single purpose**.
2. It has an adequate **commit message**.
3. It's **complete**.
4. It has a **limited scope**.
5. It **gets reviewed**.
6. It's **traceable**.
7. It **can be reverted**.

Let's review each points.

## Single Purpose

When you are working on a new feature you may also find and fix a typo, a small bug or refactor an inconsistency. **Resist the temptation to commit changes unrelated to the thing you are working on.**

Why not just commit everything? Because it makes the review much harder. When something breaks, it's unclear whether it was caused by the new feature, or the little refactoring you also did.

**Instead, use [`git add -p`](https://git-scm.com/docs/git-add#Documentation/git-add.txt--p) to select only the relevant changes.** The other changes can be committed, reviewed and deployed separately.

## Commit Message

**Tell what you did. Be specific.** "Minor changes", "bugfix" or "Added test" doesn't cut it. "Fix bug where negative input leads to crash" or "Add option to toggle dark mode" are much better.

## Completeness

Was the feature incomplete? Or did the reviewer point out that a test is missing? **If additional work logically still belongs to the previous commit, add it with [`git commit --amend`](https://www.atlassian.com/git/tutorials/rewriting-history#git-commit--amend).**

Don't commit an incomplete feature. All tests should be green. **Your commit should leave the system in a consistent state.** It should be possible to deploy the system if necessary.

## Limited Scope

*Qualification to the previous rule*:

Are you working on a huge feature? Then your reviewer will be overwhelmed by one large commit. **Think of a good way to split your work into *consistent* commits**.

Split by layer: first commit the new business logic and then the user interface components. Or split by sub-feature. Whatever works best.

## Review

**Every commit should get reviewed.** Even the small ones. Why? Because reviews are a good way to encourage feedback, catch bugs, to inform team members about changes and to reinforce your team's coding guidelines.

## Traceability

**Reference the corresponding Jira/GitHub/... issue in your commit message.** This enables you to track the state of a commit in your project management tool of choice.

## Reversible

Of course a commit can be reverted with [`git revert`](https://www.atlassian.com/git/tutorials/undoing-changes/git-revert). But sometimes, another system's state is changed by your commit. **Does your commit include a database migration? Then please also write and test the rollback function.**
Zenity Command in LINUX
Published: 2021-09-27 19:50:04

If you want to print something as a **pop-up** on your screen or you can call it as **GUI (graphical user interface)** we have a lot of dialog boxes .
GTK is a graphical tool in Linux like qGUI . 

**Commands** 

`zenity --version`
`man zenity`
`q` to quit 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a3mx9alslebfnz8ogb1t.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pj1qnn4361gost6f4xov.png)
`zenity --calender`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0axnt41vvajbmfstvccr.png)
`zenity --entry` : to take input from the user 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/msd2kjzco0kyem26safx.png)

To see **manual** we have **2** options 
1. `man zenity`
2. `zenity --help` 

In **zenity** whatever you type should be stored somewhere.
1. `zenity --entry` 
now ,lets store the data

eg . `x=zenity --entry` 
this is a wrong way to store the data 

Correct way : 
`x=$(zenity --entry)` 
**(💡: No space before and after equal in shell scripting)**
`echo $x` 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bunhtdimc0ab5sy3wk60.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/klj0fsixgmkoy2l39x3b.png)

`zenity --info`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c55j5c8d30iz9rncm5lo.png)
`zenity --info --text="Hey Aakriti this side"` 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w7as1i60r1xmxtodfo5i.png)

For more commands you can explore with the help of *zenity manual* .
Evrone at RnDTechConf: Cinderella, Master Yoda, and Unicorns
Tags: testing, testdev, eventdriven, programming
Published: 2021-09-27 19:25:46

[RnDTechConf is a large IT conference](https://evrone.com/RnDTechConf) for developers and managers in Russia. It takes place annually, and the Evrone team has taken part in it more than once. In 2021, our specialists were there again with a report.
In total, the conference included 38 reports from top speakers, eight workshops, and 12 BOF sessions in seven areas: frontend, backend, management, design, DevOps, QA, and architecture.
Our QA Team Lead, Tatyana Sukhodolova, gave a presentation about the importance of knowledge bases, and our DevRel, Grigory Petrov, was the chief of one of the main sessions.
What's your favorite JS testing framework?
Tags: watercooler, javascript, testing
Published: 2021-09-27 18:52:47

---
title: What's your favorite JS testing framework?
published: true
description: 
tags: watercooler, javascript, testing
cover_image: https://www.pavewaytechnologies.com/software-testing1.png
---
Nowadays, the industry is dominated by agile development and tight deadlines. Manual unit testing can be complex and time-consuming, so it makes sense to rely on automated frameworks.

Some of the favorites include: [Jest](https://jestjs.io/), [Mocha](https://mochajs.org/), [Jasmine](https://jasmine.github.io/), [Karma](https://karma-runner.github.io/latest/index.html).

Do you unit test your code and what's your favorite testing framework?
How to create a Github repository from the command line?
Tags: github, codenewbie, tools
Published: 2021-09-27 18:33:55

If you are like me, you don't like to create a GitHub repository on the GitHub website. 

That's where the Github CLI comes. Using GitHub CLI we can create a GitHub repository with just a few commands from the command line.  

**Before creating a repository using CLI we need to install it. **
You can install Github CLI from this [Link](https://github.com/cli/cli).

## STEP 1
Using the command line, navigate to the folder you trying to make a repository. 
Then using the below command initialize the local directory as a Git repository. 

```
git init -b main
```

## STEP 2
To create a repository on Github we are going to use this command. 
Make sure to change the "project-name" with the name you want your repository to be. 

```
gh repo create project-name
```

## STEP 3
Now, Follow the interactive prompts. If you don't like it. you can specify arguments to skip these prompts.  For more information about possible arguments, see the [GitHub CLI manual](https://cli.github.com/manual/gh_repo_create).

## STEP 4
Pull changes from the new repository that you created.

```
git pull --set-upstream origin main
```

## STEP 5
Lastly, add files edit files and push them to Github.
```
git add . && git commit -m "initial commit" && git push
```

Resources :
https://docs.github.com/en/github/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line

## Conclusion
I like this approach of making a Github repo. Cause I get to click less. 
If you have any questions please leave a comment. I will be more than happy to talk to you.

And if you like my articles. Follow me on Twitter at @coderamrin

Thanks for READING. 
Have a nice day.
crossing 500 subscribers on my newsletter
Tags: design, fonts, product, marketing
Published: 2021-09-27 18:09:59

Hi everyone!

I write a newsletter called FontDiscovery, where I share weekly font, design and marketing tips with founders and makers. Today, I crossed the 500 mark with flying colors and have over 550 subscribers on substack! I got a lot of support from this sub, so I want to share the happy news everyone. 

I have been working on this newsletter for over 9 months. Not gonna lie, it's tough showing up weekly and writing this newsletter, but I am very happy that I have been able to keep it up. oh and if you feel like checking out the newsletter, it is [here.](https://fonts.substack.com/)
Healthy Lifestyle and Progress
Published: 2021-09-27 17:26:31

##What is it?
With a healthier lifestyle, I would point towards the thought of having a balance between everything like work, good habits, and daily deeds. The topic seems to be simple but still, it seems many people in the corporate world are struggling in this aspect. This I am saying because I had a self-observation regarding this. Also, we may say progress at some time is a reflection of a healthy lifestyle'

##Struggles and genuine reasons
Some people have genuine reasons regarding not opting for good habits like rising early as there may be varying shifts work in the company they work. Some people have a real struggle in building their careers. The reasons may be genuine but not everlasting, so try your level best to lead a healthier life. In my view one or two habits may be wrong, if you all the time being lazy won't perform healthier growth-related tasks then your success may be hindered by this.

##What to do?
In my view, if somebody has got his or her health affected or any ill effects he/she should slowly opt for good habits like rising early, eating fruitful, gyming, sports or any other task producing positive health effects. You may not do these deeds all the time but you may definitely devote some time per your schedule. Adding a sport or gyming also may lead to a fight with depression thereby, releasing good hormones. My suggestion for one who sits all the time and works is to try a month with physical activities one hour at least and you will feel the difference. At last, I would conclude, that progress is in direct proportion with a healthy lifestyle. I wish the one reading this blog may lead a healthier life.

###In my views, HEALTHY LIFESTYLE = PROGRESS = EXTINCTION OF STRUGGLES
Senior React Engineer 
Published: 2021-09-27 17:24:54

https://jobs.lever.co/veeva/111a4afa-ce4a-49ff-a48a-b51408f247fe?

Veeva develops cloud software that helps the world’s largest pharmaceutical companies and emerging biotech’s run clinical trials and get medicines to the patients that need them. Veeva’s enterprise product suite is ubiquitous in the life sciences industry.
 
Veeva is a ‘Work Anywhere’ company, so you can connect with teams in our new office at 100 Summer Street in Boston while also having the flexibility to work remotely from home. As a Public Benefit Corporation, you will work for a company with purpose and focused on making a positive impact on society.

You will be joining a new team designing and building on our latest cloud software product, MyVeeva for Patients: a mobile and web application that enables patients, doctors and clinical research coordinators to collaborate remotely, with advanced audio and video capabilities, and reduces the need for in-person visits.

We are looking for a Front-end Software Engineer who is eager to build in a fast-paced, startup environment inside a stable, profitable company. Our teams are solving complex problems that impact the speed and effectiveness of the life sciences industry.  In this role, you’ll jump right in, develop in rapid sprints, and find quickly that we don’t believe in throwaway technology.

Front-end Engineers will be directly collaborating with the back-end and design teams to develop and maintain the UI of Veeva's cloud-based applications with modern JavaScript frameworks. You should be a team player, a fast learner, and have a drive for excellence.
What's your next career goal?
Tags: discuss, career
Published: 2021-09-27 17:16:55

---
title: What's your next career goal?
published: true
description: We are either progressing or regressing
tags: discuss,career
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k04sd2ltd1uhqk08vfmz.jpeg
main_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k04sd2ltd1uhqk08vfmz.jpeg
---

Do you have a goal?

Usually, we set these with our managers...quarterly or yearly or something.

What's one you're working toward that is really important to you?
C# First() or FirstOrDefault()
Tags: csharp
Published: 2021-09-27 16:51:21

`First()`

Returns first element of a sequence.
It throw an error when There is no element in the result or source is null.
you should use it,If more than one element is expected and you want only first element.
```
IList<int> intList = new List<int>() { 7, 10, 21, 30, 45, 50, 87 };
IList<string> strList = new List<string>() { null, "Two", "Three", "Four", "Five" };
IList<string> emptyList = new List<string>();
		
Console.WriteLine("1st Element in intList: {0}", intList.First());
Console.WriteLine("1st Even Element in intList: {0}", intList.First(i => i % 2 == 0));

Console.WriteLine("1st Element in strList: {0}", strList.First());

Console.WriteLine("emptyList.First() throws an InvalidOperationException");
Console.WriteLine("-------------------------------------------------------------");
Console.WriteLine(emptyList.First());
```

`FirstOrDefault()`

Returns first element of a sequence, or a default value if no element is found.
It throws an error Only if the source is null.
you should use it, If more than one element is expected and you want only first element. Also good if result is empty.
```
IList<int> intList = new List<int>() { 7, 10, 21, 30, 45, 50, 87 };
IList<string> strList = new List<string>() { null, "Two", "Three", "Four", "Five" };
IList<string> emptyList = new List<string>();
		
Console.WriteLine("1st Element in intList: {0}", intList.FirstOrDefault());
Console.WriteLine("1st Even Element in intList: {0}",
                                 intList.FirstOrDefault(i => i % 2 == 0));

Console.WriteLine("1st Element in strList: {0}", strList.FirstOrDefault());

Console.WriteLine("1st Element in emptyList: {0}", emptyList.FirstOrDefault());
```
### Summary
The major difference between `First` and `FirstOrDefault` is that `First()` will throw an exception if there is no result data for the supplied criteria whereas `FirstOrDefault()` will return the default value (`null`) if there is no result data.
Configuring HP deskJet 2700 printer for printing over Wi-Fi
Tags: printer, hp, wifi
Published: 2021-09-27 16:46:53

It was so frustrating for me to connect my printer(HP DeskJet Ink Advantage 2700 All-In-One printer) to print over wifi network and the most calming part in this frustrating experience is the slogan that is stamped on the printer! "Keep it simple" 🤣🤣

![Keep it simple image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6yyore3zqnmu7i0wm6qx.jpg)
 
It is definitely not simple unless you know the trick 😊

Hence i am writing this blog for my future self and also people who face the same issue.

## Instructions for a successful setup over Wi-Fi(using mobile app)

1. Ensure your mobile is connected to a Wi-Fi.
2. Install both HP smart and HP print service plugin mobile apps. If you are facing difficulties in finding these apps kindly visit https://123.hp.com
3. The most important secret is this, On the printer hold the Wireless button and cancel button for 3 seconds. The power button will blink for a few seconds, and the printer will be in setup mode(The wireless button will continue to blink until the printer is connected to the Wi-Fi network.)
![Wireless button and cancel button image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x13j2sva4qx6uya4jaiw.jpg)
4. Once this is done, add your printer as a new printer, in your mobile app and follow the steps in the apps. These steps apply even if you are changing from one wireless network to another. (Follow left to right in the image below)
![Mobile app workflow image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y1i2u1tdg7ogqp2p1e6f.png)
How to Test Fetch or Axios in a React Component with Mock Service Worker(MSW)

Tags: react, tutorial, testing
Published: 2021-09-27 16:14:00

In this video we are going to learn how to test a react component that uses a rest API to Get data. The library that we will be using is called Mock Service Worker MSW. Our application is a simple todo application that calls out to a rest api called JSONPlaceholder. Mock Service Worker in my opinion is much cleaner than the traditional way of mocking out the fetch call using Jest.

This method of testing is independent of the library used to communicate with an api. It works for fetch, axios etc.

If you enjoy my videos subscribe to my youtube channel Coding With Adam


{% youtube dReoPIwDccY %}
Why OpenSSH 8.8 cannot find a host key type if ssh-rsa is provided
Tags: linux, ssh, git, bitbucket
Published: 2021-09-27 16:09:52

The [OpenSSH](https://www.openssh.com/portable.html) [8.8](https://www.openssh.com/txt/release-8.8) is now in the stable channel of Arch Linux and could reach other distributions any time soon.

In the [release 8.7](https://www.openssh.com/txt/release-8.7), the OpenSSH team announced that the `ssh-rsa` signature scheme will be disabled by default in the next version: `8.8`.

## Why?

The `ssh-rsa` signature scheme uses SHA-1 and it's sensible to chosen-prefix attacks.

## What should I do?

This should not be a problem unless you are connecting to a server using the weak `ssh-rsa` public key algorithm for host authentication.

💡 If you're using the version 8.7 or a previous one, you can test your remote hosts like a GitLab or a cloud server using:

```bash
ssh -oHostKeyAlgorithms=-ssh-rsa user@host
```

If the connection fails, that means that the signature algorithm is not compatible with the default configuration of OpenSSH 8.8.

## Enabling the weak signature

If you can't upgrade the signature algorithm on your remote servers but you still need to use them, you can use the following command:

```bash
ssh -oHostKeyAlgorithms=+ssh-rsa user@host
```

### Using the weak signature with Git

Right now, Bitbucket uses this weak signature algorithm, I guess you need to use your Git repositories hosted there. 🥺 You can check your connection with the following command:

```bash
ssh -oHostKeyAlgorithms=+ssh-rsa git@bitbucket.org
```

How can we enable this flag for all the Git commands? An easy solution is coming... You can create an SSH configuration file with the following content:

```
Host bitbucket.org
     HostKeyAlgorithms +ssh-rsa
     IdentitiesOnly yes
```

The default location of this file is under `~/.ssh/config`, maybe you already have one. Once you add this configuration value you can use any `git` command without restrictions.

## That's all

I hope this will help you to still SSHing the world 🗺️
Top 5 command line tools you should try
Tags: codenewbie, bash, linux
Published: 2021-09-27 16:08:07

## `ripgrep`

You've probably used grep before. `ripgrep` is like `grep`, just better. Faster, with nicer defaults, and more powerful! https://github.com/BurntSushi/ripgrep

## `fzf`

I probably use `fzf` more than any other tool in this list. If you have a hard time remembering where you put this very important module in your codebase, just type `fzf` and it'll bring up a list of files that you can easily sift through https://github.com/junegunn/fzf

## `jq`

If you're working with JSON, you need to try `jq`. It allows you to parse, filter and transform any JSON file with an a simple query language. https://github.com/stedolan/jq

## `less +F`

You might have used less before. But did you know you could use it like `tail --follow`? `less +F logfile` will stream any new lines added to your log file! You can also filter the stream with & or pause it with `Ctrl+C`

## `entr`

If you're tired of having to run your test suite manually any time you update a file, try this: `git ls-files | entr -c <command to run your tests>`. It will run your command every time you update a file in your project.

https://github.com/eradman/entr

---

Thanks for reading this far! Do you have any other cool command line tools that you think should have made this list?

For more tech content like this, follow us [@nspiredTech](https://twitter.com/nspiredTech)

Visit https://nspired.tech
The Beginner's Axioms
Tags: python
Published: 2021-09-27 16:05:12

#The Zen of Python
The Zen of Python is a collection of guidelines for writing software, primarily aims towards (you guessed it) Python. It's a short list, but its worth its weight in gold. The guidelines talk about issues like code structure and how a program should look.

#The Beginner's Axioms
I thought it'd be fun to make my own list, which I dub *The Beginner's Axioms*. Its a short list of guidelines I wish I could've handed to myself when I first started learning how to program.

* Learn slowly, forget slowly
* Writing is better than reading.
* When reading, official is better than unofficial.
* Bad code is better than no code.
* Mistakes are better than no mistakes.
* The first step to fixing a problem is admission.
* Community is better than solitude.
* Comments, comments, comments.
* Experiment, experiment, experiment.
Live Coding: Integrating Chatwoot to Facebook and WordPress Website with Kevine Nzapdi
Tags: chatwoot, chatbot, opensource, livecoding
Published: 2021-09-27 15:32:28

**Join here 📌**
https://bit.ly/3kHzigi

Aviyel’s flagship **Coding & Coffee** ☕️ upskilling series is for all those developers who want to learn and grow.  The series features coding sessions, Q&As, tutorials, interaction with industry experts with tabs on some of the fastest-growing open-source projects out there.

This time, Aviyel is collaborating with Kevine Nzapdi to bring a live session on Integrating Chatwoot with Facebook, WhatsApp, and Slack. Nzapdi has been a part of Chatwoot’s open source community for years and has written tons of features on the technology previously.

### What’s in it for you?
- 
Hands-on experience with Chatwoot, a customer engagement tool and an open-source alternative to Zendesk.
- 
Chatwoot’s configuration guide, quick start with Chatwoot’s shared inbox, chatbots, live-chat features for both beginners and advanced users.
- 
Bombard speakers with your questions to dive deep into open source technology (and maybe start a full-time career).
- 
An evening of knowledge, fun, and coding with a bunch of expert speakers.

This is your chance to finally get started with open source. Confirm your presence by registering today.

Mark your Calendar: **📆  SEP 29th, 2021**

Time: **7:00 PM IST | 6:30 AM PST**

**Join here 📌**
https://bit.ly/3kHzigi

Impressed? Check out the rest of our  [events](https://aviyel.com/discussions)!

See you there!
Team Aviyel