teleren/devto huggingface dataset:
Unit Tests: Why is it important?
Tags: beginners, testing, programming, devops
Published: 2023-01-19 08:18:20

Unit testing is a software development practice in which individual units or components of a software application are tested in isolation from the rest of the application. The goal of unit testing is to validate that each unit of the software application is working as intended. In this article, we will discuss why unit testing is important and how it can benefit your software development process.

One of the main benefits of unit testing is that it helps to catch bugs early in the development process. When a unit test fails, it is an indication that there is a problem with the unit of code being tested. By catching bugs early, unit testing can save time and resources that would have been spent on debugging and fixing problems later in the development process. Additionally, unit testing can help to prevent the introduction of new bugs by providing a safety net for code changes.

Another benefit of unit testing is that it helps to ensure code quality. Unit tests serve as a form of documentation for the code, as they specify how the code should behave. Additionally, by writing unit tests, developers are forced to think about the design of their code and how it can be tested. This can lead to better code design and maintainability.

Unit testing also helps to increase code reuse. When a unit of code is thoroughly tested, it is more likely to be reused in other parts of the application. Additionally, unit tests can serve as a form of regression testing, ensuring that code changes do not break existing functionality.

Unit testing also enables developers to work on a codebase with more confidence. With a comprehensive suite of unit tests, developers can make changes to the codebase without worrying about introducing bugs. This can lead to faster development and more efficient use of resources.

In addition, unit tests can also help to improve code collaboration. When multiple developers are working on a codebase, unit tests can serve as a form of communication, making it clear how the code should behave and how it can be tested. This can help to reduce misunderstandings and prevent bugs from being introduced.

Finally, unit testing is a key part of continuous integration and delivery (CI/CD) pipeline. Unit tests are run automatically as part of the build process, ensuring that the code is working as intended before it is deployed to production. This can help to reduce the risk of introducing bugs into production and improve the overall quality of the software.

In conclusion, unit testing is a crucial practice in software development. It helps to catch bugs early, ensures code quality, increases code reuse, enables developers to work with more confidence, improves code collaboration and it is a key part of CI/CD pipeline. By incorporating unit testing into your software development process, you can improve the quality of your software and save time and resources in the long run.
Apiumhub becomes a partner of the Global Summit for Node.js 23
Tags: events
Published: 2023-01-24 14:09:17

---
title: Apiumhub becomes a partner of the Global Summit for Node.js 23
published: true
date: 2023-01-19 08:13:44 UTC
tags: Events
canonical_url: https://apiumhub.com/tech-blog-barcelona/apiumhub-partner-global-summit-for-nodejs/
---

Geekle’s online conference, “Global Summit for Node.js 23,” is back this year, and [Apiumhub](https://apiumhub.com/) is a proud partner. 

This conference will be held on January 25 and 26. If one of your New Year’s intentions was to attend more online or in-person tech industry events, this is a great place to start, especially if you work in the roles of CTO, team lead, backend developer, or Node JS developer.

The Global Summit for Node.js 23 will feature over 25 expert speakers, more than 15 use cases, and two tracks, one for experienced developers and another for junior developers. The latter is free of charge. Around 5.000 registrations are expected this year!

## Talks and speakers at the Global Summit for Node.js 23

Renowned professionals in the tech industry will share their knowledge and talk about the challenges they face in their work environment. Speakers come from companies such as Microsoft, Red Had, Linkedin, SAP, Adobe, NearForm, and Platformatic. Among them you may find:

- Rafael Gonzaga – Staff Engineer at NearForm
- Nikhil Malvankar – Solutions Architect at Red Hat
- Emanuel Scirlet & Alan Oberto Jimenez – Sr. Cloud Application Architects at AWS
- Hemanth HM – Senior Engineering Manager at Paypal
- Manoj Sureddi – Senior Software Engineer at Uber
- Ahmad Bamieh – SDE at Elastic
- Erez Voitiz – CTO, Co-founder of sprkl
- Seyyed Ali Mohammadiyeh – Open-source Maintainer at Github
- Josh Goldberg – Open Source Developer
- Carlos Simon – Sr Middleware Consultant at Red Hat
- Zbyszek Tenerowicz – JS Security Engineer
- Shay Bratslavsky – Software engineer at memphis
- Jamal O’Garro – Senior Software Engineer
- Anton Kalik – Senior Software Engineer at amenitiz
- …and many more!

## Event Organizer: Geekle

[Geekle](https://geekle.us/) is the organizer behind the Global Summit for Node.js 23. They are a passionate community of event organizers in Ukraine that hold online events focused on different technologies. Nowadays, Geekle counts more than 200 000 members, 20 communities, 742 hours of content, and 1353 use cases.

Following the pandemic in 2020, Apiumhub began working with Geekle to share these events and support the software development community. Apiumhub not only supports the Global Summit for Node js’23 but also additional Geekle events that will take place in the upcoming months.

For more information about the Global Summit for Node.js 23, check out the [event’s page.](https://events.geekle.us/nodejs2/) Senior track tickets are now $275, but the price will go up as the event approaches. We look forward to seeing you there!

Last but not least, If you want to keep up with tech conferences, summits, and meetups around the world, we suggest you keep an eye on [Apiumhub´s event calendar](https://apiumhub.com/event-calendar/) so you don´t miss out!
Chat GPT vs Human
Tags: ai, chatgpt, discuss
Published: 2023-01-19 07:17:44

# Hey there !
Welcome back to another post! **_(yet again after a long time, sorry about that)_**. 

Today, while I was exploring ChatGPT I thought to tell it to a write an article for me. I gave the following prompt : 
`
write blog post on the topic "Take Stunning Photos and Videos with Your Smartphone: Tips and Tricks" it should be like my English vocabulary is not so good but on a medium level and make it more friendly for everyone so everyone can understand it and add a toc at top also a heading for each paragraph telling the topic. word limit is 500 words. also write a catchy title
`
It generated a full post for me in about in 2 minutes!
I was amazed to see its capability, **but** after I read the article generated I thought why not compare it to my most famous article which had the most **_"views"_** so, without wasting any time I went to the site [Wordcounter.net](https://wordcounter.net/) to count the words and this website also provides with the **Reading Level**. When I checked the reading level it said "**College Student**". And when I checked my own [post](https://dev.to/spandyboss/how-to-download-youtube-videos-using-python-3paa) which had less words but **306 views** the site said **"College Graduate"**. I was ammuzed by this result!

Here are the screenshots :

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

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

# Conclusion
So what are your thoughts about ChatGPT vs Human? However ChatGPT is still a great invention for almost everyone.
Comment down your thoughts.

### Thanks for reading :)
tsParticles 2.8.0 Released
Tags: javascript, typescript, webdev, showdev
Published: 2023-01-19 07:09:42

## tsParticles 2.8.0 Changelog

### New Features

- Reworked move.trail options, created an object with color and image, closes #4882

#### Trail Fill options

The previous `fillColor` is still available, but it's just a getter for the new `fill` options, which is an object like this:

```
fill: {
  color: "#123456"
}
```

or

```
fill: {
  image: "https://foo.bar/baz.jpg"
}
```

You can choose only one of them, to fill the canvas with the given image or color and create a trail effect.

As many knows, filling the canvas with a semitransparent color or image and drawing stuff, can leave some trail marks and in the image they can be seen a lot sometimes, the longer the trail the more visible they'll be.

### Bug Fixes

- Fixed polygon mask position issues
- Fixed polygon mask scaling issues

--

## v3.0

Probably this will be the last `v2.x` version, except some bug fixes needed before `v3.0` will be released.

You can read more about the upcoming `v3.0` in the post linked below

{% link https://dev.to/tsparticles/preparing-tsparticles-v3-5bai %}

--

## Social links

- [Discord](https://discord.gg/hACwv45Hme)
- [Slack](https://join.slack.com/t/tsparticles/shared_invite/enQtOTcxNTQxNjQ4NzkxLWE2MTZhZWExMWRmOWI5MTMxNjczOGE1Yjk0MjViYjdkYTUzODM3OTc5MGQ5MjFlODc4MzE0N2Q1OWQxZDc1YzI)
- [WhatsApp](https://chat.whatsapp.com/KQyHc9UEbRc2qlqNQR2J5c)
- [Telegram](https://t.me/tsparticles)
- [Reddit](https://www.reddit.com/r/tsParticles/)

---

{% github matteobruni/tsparticles %}
CSS POINTS
Published: 2023-01-19 07:03:00

I just got to know about the CSS points which could help you understand the specificity of one's styling.

Styling a project sometimes becomes difficult not understanding why a particular element is not showing the style added to it, this might be due to the specificity rule.

These are the rules for calculating CSS points for specificity,

Element - 1 point,
Classes - 10 points,
Id - 100 points.

When you have a compound selector, just add up based on the selectors used to get the degree of specificity.

So in your next project, if you are experiencing difficulty styling an an element and it's not showing the style, please check up the specificity.

Happy coding...
My introduction and first post!
Tags: beginners, writing, welcome, career
Published: 2023-01-19 07:02:13

## **Hi! I’m Jess.**
 
This is my first post here at dev.to, so let me introduce myself a little bit before I upload more posts:

**Who am I, and what do I want to do?**
I’m just a person trying to grow on my professional and learning journey. I want to learn from others, and I hope to help someone too.

**Where am I?**
I’m on my early stages of my professional career. I want to become a “good software developer”, and for that, I know there is a long way to go, but we have to keep going and we have to grow step by step!

**Why am I writing public posts here at dev.to?**
I want to practice my communication skills, but my main reason is: “to become a good software developer”. So, how will I use dev.to to my advantage?

I heard that to become a good developer there are 5 things to have in mind:

1. Read code
2. Write code
3. Deliver code
4. Solve problems
5. Share knowledge

The first three steps help in becoming a developer. However, to be a good developer the last two skills need to be added. For reference: [The Out of the Box Developer - Good Developers?](https://youtu.be/WUoLlF5QhZQ?t=2447)

In this case, I will treat dev.to as a place to document the process of applying those 5 steps.

Sometimes some posts will look more like talks, tips, observations, or experiments, but the principal idea is for me to practice those 5 steps. 

Soon I’ll create special post categories. In there, I’ll explain the type of projects I’ll be building, and how they help me achieve those 5 steps.

I understand that to become a good software developer there are many factors and details to consider, but for now, let’s just have fun and do as much as possible along the way!

**Do you have a way to contact you?**
Sure! 
Everyone is welcome. I believe there are a lot of software developers of all levels out there, and the amazing thing of today is how much we can learn from each other even if we don’t live in the same country.

* Do you have any questions?
* Do you want me to do a tutorial about something?
* Do you want to give me any feedback about what I wrote or did?
* Did you find an error?
* Did I misspell something?
* Want to help in something?

All are welcome! 

So, don’t hesitate and say hi! (you can leave a comment in one of my posts or send me an email: check my profile for details).
Which creative apps are better for designing use?
Published: 2023-01-19 07:00:15

Here's a list of the best free and paid graphic design software for creatives ideal for making awesome digital art.

Whether you are an amateur graphic designer or an experienced digital artist, using the right tools can multiply your talent exponentially. A well-built graphic design software provides intuitive controls and flexibility that can be easily understood by a beginner but also has vastly superior tools for an experienced user. 

The best way to know which software would suit you best is to get hands-on with the tool and experiment with them. Each of the software is characterized by its features, ease of use, performance, cost, and availability. Many paid graphic design software provide a free trial for users to give them a better understanding of the product. Here are stunning great design portfolio website templates designed for your use. 

We have researched and put together a list of the best graphic design software in the field today. These tools are tried and tested and can help you create spectacular custom designs that will leave your clients spellbound. Graphic design can be used to take your portfolio website, email marketing campaigns, advertising, and more to the next level. Do check out our list of the top 25 Online Graphic Design Courses that will help you improve graphic design skills. And while you are honing your graphic design skills, don't forget to create your graphic design portfolio website to showcase your work. Your design portfolio represents a window for the world to view your work and judge your talent, skills, and experience. So, if you haven’t built a website to showcase your design portfolio, start today with Pixpa. Here are some great examples of graphic design portfolios created on Pixpa for your inspiration. 

Get ready to express yourself in stunning new ways and create awesome digital art with ease and efficiency! 
Here is the list of top graphic design software that you can try for your work 

Adobe Photoshop
Sketch
Adobe Illustrator
Lunacy
Mega Creator
Affinity Designer
Adobe InDesign
CorelDRAW Graphics
Eagle
Designer
GIMP
Gravit Designer and more
Powering Smart City Solutions with AWS IoT & GovCloud (US) - Webinar with Ubicquia and AWS
Tags: awsiot, smartcitysolution, webinar, govcloud
Published: 2023-01-19 06:32:41

Smart city and streetlight IoT platform helps cost savings with migration of 100+ servers and 1000s of databases to AWS.

**This webinar will be beneficial to those who are:**

- Planning to build or building Smart City applications on the cloud 
- Building Multi-tenant, complex data platform on AWS 
- Building a Highly scalable IoT streaming data platform to process millions of transactions per day  
- Looking for cost savings by leveraging AWS Cloud, cloud-native services, and data components 
- Building a secure data platform on Cloud which comply with FedRamp HIGH baseline standards

**Register Here:** [Powering Smart City Solutions with AWS IoT ](https://www.anblicks.com/insights/webinars/powering-smart-city-solutions-with-aws-iot-govcloud)
What can you make using JavaScript ?
Tags: javascript, webdev, beginners, programming
Published: 2023-01-19 06:20:12

JavaScript is a versatile programming language that can be used to build a wide range of applications. Here are just a few examples of what you can build using JavaScript:

1. **Websites**: JavaScript can be used to create dynamic, interactive websites. You can use JavaScript to create responsive designs, animations, and user interfaces.
Web Applications: JavaScript can be used to build web applications that run in a browser. These apps can include anything from simple calculators to full-fledged e-commerce platforms.

2. **Mobile Applications**: JavaScript can be used to build mobile apps through frameworks such as React Native, Ionic, or PhoneGap.

3. **Desktop Applications**: JavaScript can be used to build desktop apps through frameworks such as Electron. Electron allows you to build cross-platform desktop apps using JavaScript, HTML, and CSS.

4. **Games**: JavaScript can be used to create games that run in a browser. You can use JavaScript to create simple games like Tetris or more complex games like 3D first-person shooters.

5. **Machine Learning**: JavaScript can be used to build machine learning applications with libraries such as TensorFlow.js.

6. **Internet of Things (IoT)** : JavaScript can be used to build IoT applications using libraries such as Johnny-Five.

7. **Back-end Development**: JavaScript can be used to build server-side applications using Node.js. Node.js allows you to run JavaScript on a server, which is useful for building back-end services such as APIs.


Overall, JavaScript is a powerful tool that can be used to build a wide range of applications. With its versatility and continued growth, it has become one of the most popular programming languages in the world.
Selenium Java Interview Questions and Answers || That Every QA should Know - Part 1
Tags: webdev, beginners, programming, tutorial
Published: 2023-01-19 06:12:57

In this video , We are going to learn about the TOP 51+ Selenium Selenium Java Interview Questions and Answers. These are exact questions asked for the beginners and experience people. 

{% embed https://youtu.be/NapfWduSuuo %}

Question #1 : What is Selenium Webdriver?
Question #2 : What are the different types of exceptions you have faced in Selenium WebDriver?
Question #3 : What is implicit wait in Selenium WebDriver?
Question #4 :  What is WebDriver Wait in Selenium WebDriver?
Question #5 :  What is Fluent Wait in Selenium WebDriver?
Question #6 :  How to Input Text into a value by Javascript?
Question #7 :  How to get an attribute value of an element using Selenium WebDriver?
Question #8 :  How to Send Keyboard keys like press Enter key on text box in Selenium WebDriver?
Question #9 :   What is the difference between driver.get(“URL”) and driver.navigate().to(“URL”) commands?
Question #10 :   How to pause a test execution for 5 seconds at a specific point?
Question #11 : What is Selenium Grid and when do we go for it?
Question #12 :  What is a Hub in Selenium Grid?
Question #13 :  What is a Node in Selenium Grid?
Question #14 : Which WebDriver implementation claims to be the fastest?
Question #15 :  What are the open source frameworks supported by Selenium WebDriver?
Question #16 :  What are the different types of navigation commands in Selenium?
Question #17 :  How can we maximize browser window in Selenium WebDriver?
Question #18 :  How to delete cookies in Selenium?
Question #19 :  What is the difference between driver.getWindowHandle() and driver.getWinowHandles() in Selenium WebDriver and their return type?
Question #20 :  How to handle hidden elements in Selenium WebDriver?
Question #21 :  How to find more than one web element in the list?

Download Slides : http://bit.ly/seleniumInterview

-----------------------------------------------------
👪 Join our Community - http://bit.ly/learntesting2019

✅ Automation Community - https://thetestingacademy.com

🐦Follow us on Twitter  - https://twitter.com/itstechmode

📖 Like us on Facebook - https://www.facebook.com/scrolltest

🎤  Listen to our Podcast - https://anchor.fm/thetestingacademy

------------------------------------------------------
#automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest
🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -
https://scrolltest.com/go/edureka


✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1


✅Programming Java -
https://bit.ly/learnjava2020-p1


✅Test Automation - 
https://bit.ly/learnautomation2020


✅API Testing - 
https://www.learnapitesting.com


✅Cypress Tutorial with LIVE Projects -
http://cypresstutorial.com
how to pass pointer from user to kernel in xv6
Tags: xv6, syscall
Published: 2023-01-19 06:08:51

the addr in usermode and kernel mode it different. so while passing pointer to kernel mode, we should just pass a uint64 var to it.
then we can get it through function as a var.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hzy53pfseg6dq5oz07m1.png)
it is more like a offset, later we can locate it.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rox7r8o1s0kogsvm3xki.png)
argaddr works same like argint, it capture the arg of syscall from proc sturcture

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/opc9su4tx8vvo7lexewh.png)
then we can get the real address of the virtual address by its pagetable and offset easily

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7384nujsb8rpn9c8ewtl.png)
memmove part is pretty simple, kernel mode has the right to access all address 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wm98d7mh63o7zbvg2r6v.png)
Python virtualenv no activate
Tags: python, django
Published: 2023-01-19 06:08:28

My workflow when starting new python project or experimenting with something:-

```
mkdir myproject
cd myproject
python -mvenv venv
venv/bin/pip install something
venv/bin/python
>>> import something
```

Look, there's no need to do something like `source venv/bin/activate` to make use of your virtual environment.

Not using `activate` also good for documentation like in README as you don't have the two steps commands and people forgot to run the first step problem.

Have ever got into situation where you have to ask, "Have you run `source venv/bin/activate`?" You don't need to ask this question if you invoke the venv directly.

Of course this is just for quick experimentation. For a real project we're using poetry. And here's [labzero](https://github.com/lalokalabs/labzero) our starter project for django.
974. Leetcode solution in CPP
Tags: cpp, chiki1601
Published: 2023-01-19 06:05:06

```cpp
class Solution {
 public:
  int subarraysDivByK(vector<int>& A, int K) {
    int ans = 0;
    int prefix = 0;
    vector<int> count(K);
    count[0] = 1;

    for (int a : A) {
      prefix = (prefix + a % K + K) % K;
      ans += count[prefix];
      ++count[prefix];
    }

    return ans;
  }
};
```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/subarray-sums-divisible-by-k/
Mamba usage
Tags: conda, python
Published: 2023-01-19 05:58:48

## 问题/背景
> 最近在使用conda 安装pytorch，使用的是pytorch官网的安装命令，但是安装很慢，然后也尝试了安装清华镜像，但还是很慢

## 解决方法
> 安装 mamba 工具，这个工具在conda安装的基础上进行了提升，可以快速安装conda 库，介绍网址[mamba](https://pythonspeed.com/articles/faster-conda-install/)

使用网址：[Conda太慢？试试这个加速工具](https://www.cnblogs.com/feffery/p/13232119.html)