teleren/devto huggingface dataset:
Get Organised as a Data Scientist: Tips & Strategies
Tags: datascience, python, beginners, productivity
Published: 2023-02-05 05:02:07

## INTRODUCTION

Sometimes, beginner or intermmediate data scientist lost in their notebooks finding the cells and results of the analysis they done, due this they waste most of their figure out their code and remembering the results.

Here are some steps in which you can solve these problems and save your lot of your time


The steps are as follows.

## 1. Create two folders for a project

For a project, you need to create two folders. One is for **raw data** and other is for **processed data**. The raw data file folder contains raw files (or orginal data) given to you. The processed data contains files that contains the data that you preprocessed using a pipeline or any other method. 

It makes you easy for working with data and also you don't need to preprocess the data again and again in the notebooks.

## 2. Create separate notebooks for differernt tasks

For large projects, you cannot work within a single notebook. You need to create two or more notebooks. Otherwise, you face many problems like your kernel stop working pproerly and your cells will run slowly and you will lost your precious time.

So, in order to avoid this create two or more separate notebook. Save each notebook with their name with the work they supposed to do.


## 3. Use Markdown

For data scientists explaination of their code and results of their analysis is very important. So, use markdown for explaining your code and note down the results.

You can markdown when 

- You need to give introduction
- You want to write additional info about notebook
- You want to write results of analysis
- You want to elaborate your notebook sturcture.


## 4. Use comments

Data scientist mostly need to explain their codes to others. So, use comments in the cell for explaining the different parts of your cell. 

For an example, in a cell you create a function that predicts the output using machine learning model. In that case you can define little bit about input and output of that function. At last remember, you should not use comments unneccesoraily.
[Read the full article]
(https://techwithpie.blogspot.com/2023/02/get-organised-as-data-scientist-tips.html)
What Python libraries should I learn? [2023 UPDATED]
Tags: python, programming
Published: 2023-02-05 05:01:03

Python is one of the most popular programming languages mentioned by [Coursera](https://www.coursera.org/articles/popular-programming-languages). As you know, Python can do anything from development to statistical analyses, and also, many standard libraries are provided.

## Popular Python libraries for Starter
Here is my recommendation of Python libraries that starter should know. 

### 1. [os](https://docs.python.org/3/library/os.html)
Let say you want to interact with operating system by code, os help a lot. You can list of the directory and also rename, delete or anything by the code. 

```python
import os

os.getcwd() # get current directory
os.listdir() # list current directory
os.listdir('/Users/mohamadamzar/code') # list specific directory
os.rename(old_filename, new_filename) # rename file
```

### 2. [requests](https://requests.readthedocs.io/en/latest/)
You can use `requests` to interact with the API. It provide REST API method such as [GET](https://dev.to/amzar/requestsget-python-435p), POST, PUT and DELETE. If you are into the development, must know how to use the library.

### 3. [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)
You can do data extraction (HTML and XML) easily by using BeautifulSoup. It parses the data with beautiful formatting; you can extract it by tag and div. You don't need to worry about the complicated tag; it can be solved using the library. Javascript? It will only be workable with simple Javascript 😉

### 4. [cv2/opencv](https://pypi.org/project/opencv-python/)
Interesting library to try. It can interact with the image; read and display the image, turn it to greyscale, save the image from the link, create a circle in the image, and many more.

```python
import cv2
img = cv2.imread('range-rover.png', cv2.IMREAD_COLOR)
```

### 5. [pandas](https://pandas.pydata.org/)
Pandas is a library to interact with multiple data sources. You not only can read the data, but you can analyze and manipulate the data. For the data analyst, it can be used for data wrangling and cleaning. Also, you can explore the simple ETL using pandas.

---

There's a lot more to explore; I will update the post from time to time!
SQL Primary Keys
Tags: sql
Published: 2023-02-05 04:57:24

**Problem**:
You need to add a primary Key to a table.

**Solution**: 
Heres a few types I've run across.
# Manual Primary Key
`CREATE TABLE [dbo].[HtmlDtos]([Id] [int] PRIMARY KEY)`

# Auto Sequential Int Primary Key
`CREATE TABLE [dbo].[HtmlDtos]([Id] [int] IDENTITY(1,1) PRIMARY KEY)`

# Auto Sequential GUID PK
`CREATE TABLE [dbo].[HtmlDtos] ([Id] UNIQUEIDENTIFIER DEFAULT NEWSEQUENTIALID() PRIMARY KEY)`

# Auto Random GUID PK
`CREATE TABLE [dbo].[HtmlDtos]([Id] UNIQUEIDENTIFIER DEFAULT NEWID() PRIMARY KEY)`
Modules and Packages in Python
Published: 2023-02-05 04:47:02

Modules and packages are an essential part of any programming language, and Python is no exception. They allow you to reuse code and split your code into manageable and organized components. In this article, we will discuss the basics of modules and packages in Python and how they can be used to make your code more maintainable and scalable.

**Modules**

A module is a Python file that contains definitions and statements. The file name is the module name with the suffix `.py`. For example, if you have a file named `mymodule.py`, you can import it into your Python script as follows:

```
import mymodule

```
The `import` statement allows you to use the definitions and statements in the module within your script. You can access the definitions and statements using the module name followed by a dot `(.)` and the definition or statement name.

For example, if the `mymodule.py` file contains the following:

```
def greet(name):
    print("Hello, " + name)

```
You can use the `greet` function in your script as follows:

```
import mymodule

mymodule.greet("John")

```
This will print "`Hello, John`".

**Packages**

A package is a directory that contains one or more modules. The directory name is the package name, and the module names are the names of the Python files within the directory. You can import a module from a package as follows:

```
from package_name import module_name

```
For example, if you have a package named `mypackage` with a module named `mymodule`, you can import the module into your script as follows:

```
from mypackage import mymodule

```
You can then use the `mymodule` definitions and statements within your script.

You can also import multiple modules from the same package as follows:

```
from mypackage import module1, module2

```
**Conclusion**

Modules and packages are an important part of the Python programming language and are essential for code organization and reuse. They allow you to split your code into manageable components, making it easier to maintain and scale. With a good understanding of modules and packages, you can write better and more organized Python code.
Robotic Process Automation (RPA)
Published: 2023-02-05 04:39:36

Robotic Process Automation (RPA) is a technology that enables organizations to automate repetitive, manual, and time-consuming tasks by creating software robots that can perform tasks in the same way as a human worker.

RPA is rapidly gaining popularity among organizations as a way to improve efficiency, reduce errors, and free up employees to focus on more strategic tasks. It operates by mimicking human interactions with digital systems, such as applications and websites, to carry out specific processes.

One of the main benefits of RPA is that it can be implemented quickly and easily, without requiring any changes to existing systems. This makes it a low-risk investment, with a fast return on investment, as robots can be deployed in a matter of weeks, rather than months or years.

Another key advantage of RPA is its scalability. As a software-based solution, robots can be added or removed as needed, making it easy to scale up or down as business needs change. This is particularly important for organizations that are facing rapid growth or unexpected spikes in demand, as robots can be deployed quickly to meet these changes.

However, it is important to note that RPA is not a silver bullet, and should be used as part of a broader digital transformation strategy. For example, while robots can automate repetitive tasks, they are not designed to make decisions or solve complex problems. Organizations should therefore focus on identifying the most suitable processes for automation, and ensure that they have the right mix of people and technology to meet their business goals.

In conclusion, RPA has the potential to revolutionize the way organizations work, by freeing up employees to focus on more strategic tasks and reducing the time and effort required to complete routine processes. By leveraging this technology, organizations can increase efficiency, reduce costs, and improve the overall customer experience.
Top 10 Scenario Based Manual Testing Interview Questions and Answers Part 2
Tags: webdev, beginners, programming, tutorial
Published: 2023-02-05 04:37:03

Scenario Based Manual Testing Interview Questions and Answers:  In this video part of series we are going to discuss Scenario Based Manual Testing Interview Questions and Answers which you may face in your next interview.

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

👉Become an Software Tester even as a Fresher.
https://thetestingacademy.com


👉 Part 1 - https://youtu.be/hXoaUutgx1E

Link to REAL LIFE Scenario Based Manual Testing Interview Questions and Answers PDF

https://drive.google.com/file/d/13Vqz...


I will share the Handy things that you need to have in your PC to crack Manual Testing easily.

👉 Download Manual Testing Templates
✅ Test Case -  https://sdet.live/tc-template

✅ Test plan -  https://sdet.live/notes

✅ Download RTM -  https://scrolltest.com/rtm

✅ Bug Report -  https://sdet.dorik.io/bug-report-temp...


✅ Download Notes -  https://sdet.live/notes

✅ New Batch - https://go.scrolltest.com/manual


✅ Join Facebook Group :  http://bit.ly/learntesting2019

✅ Website:   https://scrolltest.com

✅ Website:   https://thetestingacademy.com

✅ Twitter: https://twitter.com/itstechmode

🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

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


✅Cypress Tutorial with LIVE Projects -
http://cypresstutorial.com


#scenariobasedmanualtestinginterviewquestionsandanswers #scenariobasedmanualtestinginterviewquestionsandanswersforexperienced #scenariobasedmanualtestinginterviewquestionsandanswersand
Understanding String Methods in Python
Published: 2023-02-05 04:36:13

Strings are an essential data type in Python and are widely used in various applications. In this article, we will be exploring the different string methods in Python and how they can be used to manipulate string data.

> **Concatenation**
Concatenation is the process of combining two or more strings into one. In Python, concatenation can be achieved using the "+" operator. For example:

```
string1 = "Hello"
string2 = "World"
string3 = string1 + " " + string2
print(string3)

```
The output of the above code will be: `Hello World.`

> **Slicing**
Slicing is the process of extracting a portion of a string and creating a new string from it. In Python, slicing can be achieved using square brackets []. The syntax for slicing is:

```
string[start:stop:step]

```

> The start parameter specifies the starting index of the slice, stop parameter specifies the ending index of the slice, and the step parameter specifies the interval between characters. For example:

```
string = "Hello World"
print(string[0:5])

```
The output of the above code will be: `Hello`.

> **Indexing**
Indexing is the process of accessing a specific character of a string based on its position. In Python, indexing is achieved using square brackets []. The syntax for indexing is:

```
string[index]

```
The `index` parameter specifies the position of the character. For example:

```
string = "Hello World"
print(string[0])

```
The output of the above code will be: `H`.

> **len() Method**
The len() method is used to get the length of a string. The length of a string refers to the number of characters in the string. For example:

```
string = "Hello World"
print(len(string))

```
The output of the above code will be: `11`.

> **strip() Method**
The strip() method is used to remove whitespaces from the beginning and end of a string. For example:

```
string = " Hello World "
print(string.strip())

```
The output of the above code will be: `Hello World`.

> **replace() Method**
The replace() method is used to replace a specific word or character in a string with a new word or character. The syntax for the replace method is:

```
string.replace(old, new)

```

> The `old` parameter specifies the word or character that needs to be replaced and the `new` parameter specifies the word or character that will replace the `old` word or character. For example:

```
string = "Hello World"
print(string.replace("World", "Python"))

```
The output of the above code will be: `Hello Python`.

> **split() Method**
The `split()` method is used to split a string into a list based on a specified separator. For example:

```
string = "Hello World"
print(string.split(" "))

```
The output of the above code will be: `['Hello', 'World']`.

> **Conclusion**
> In conclusion, understanding these string methods is essential for a Python programmer as they are widely used in various applications. By mastering these methods, you can manipulate and process string data more efficiently and effectively. Try experimenting with different string methods and see how they can be used in your own applications.
Box-sizing: CSS Box Model Explained
Tags: design, beginners, css, webdev
Published: 2023-02-05 04:33:52

_If you're like me, you've probably wondered what box-sizing: border-box and content-box really does and how it works. Well buckle up, cos you're about to get your answers._

One of the fundamental concepts in CSS is the box model, which defines the size and spacing of elements on a web page. The box model consists of content, padding, borders, and margins. Understanding the box model is crucial for creating effective and aesthetically pleasing web designs. 

> The box-sizing property is a CSS property that gives you control over the size and behavior of an element's box. This property allows you to specify whether the size of an element should include its padding and borders or not.

Everyone who's used CSS knows you just have to set box-sizing to border-box _but how does it really work_

## box-sizing: content-box;

> By default, the box-sizing property is set to "content-box," meaning that the size of an element is determined by its content, and padding is added outside of the defined width and height.


![css box model || content-box](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jv6kq8ojj9k8mq5c8cpl.png)

What this means is that the inner element does not take it's containing element's width into consideration when calculating it's border and padding. By default in the CSS box model, the width and height you assign to an element is applied only to the element's content box. If the element has any border or padding, this is then added to the width and height to arrive at the size of the box that's rendered on the screen.

## box-sizing: border-box;

> This box-sizing value means that the size of an element is determined by its content, padding, and borders, and they are all included within the defined width and height of the element.

![css box model || border-box](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/om0pre0lx8t8fulcte8j.png)

This means that the width of an element with the border-box value for box-sizing is the total width of the element, including both its content and padding, plus the width of the borders. In other words, the padding and borders are included within the defined width of the element when using the border-box value for the box-sizing property. This makes it easier to calculate the size of an element and can help you avoid layout issues.

### Conclusion
Basically, for content-box, If you set an element's width to 100 pixels, then the element's content box will be 100 pixels wide, and the width of any border or padding will be added to the final rendered width, making the element wider than 100px. **while ** for border-box, the browser accounts for any border and padding in the values you specify for an element's width and height. If you set an element's width to 100 pixels, that 100 pixels will include any border or padding you added, and the content box will shrink to absorb that extra width.

consider following me on twitter @[Frontend Jedi](https://twitter.com/excel_bill) let's connect!
Cara add domain ke vercel
Published: 2023-02-05 04:21:49

Cara menambahkan domain custom ke website vercel

![Image error vercel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/852gt9cemyfez89hgkoa.png)

akan error ketika memasukkan domain ke website anda di vercel. selanjutnya kita akan setting dns di link berikut https://www.domainesia.com/panduan/cara-setting-dns-dengan-mudah/


![Image domainesia](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/04p42o7og9b5l4es35nj.png)

clik nama domain bukan di centang akan muncul  gambar berikut, click use default namseservers 

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

lanjut ke dns 

![Image dns](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ynch9lbbqupm8z0q14w.png)

dan ini hasilnya : 
- websitenya https://www.andiismail.my.id/
- hosting https://vercel.com/
- domain https://www.domainesia.com/
- Pakai Framework React Js, css
- Tampilan websitenya 

![Image online](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pqd1c6yo7m4m5svqrdp2.png)
Things you should look for in a Code Review
Tags: programming, tutorial, beginners, career
Published: 2023-02-05 03:51:39

**Code review**, or you can call it Peer review, is an activity for Software Quality assurance, which one or several people involve to check parts of the code.

This article is sort of a guide on what to look for in a code review, so the code base can have better quality, reviewers and the author can learn from it.

###Functionality
The first thing to look for in a code review is the **functionality**. For a feature, reviewers can look for edge cases, potential problems, to make sure no obvious bugs are visible just by looking at the code.

You can have a validation on the changes. Try the feature, or run a demo to see if there is any bugs for performance issues.

###Complexity
Have you ever seen a function or a component that is too complex to even understand it in a quick look ? Even though the code can run fine, but reviewers can’t understand it quick enough might be a logic problem. There would be potential bugs if a piece of code is too complex too, and debug it will be even more painful.

We can call it **Over-engineering**, when a piece of code has things that isn’t presently needed by the system, engineers should be focused on things that they need to do at the moment first, not problems that might be needed to solve in the future.

###Naming
Did the variables name are good ? Did functions name are good ? Did classes name are good ? A good name is long enough to fully communicate what the code is or does, without being so long that it becomes hard to read.

###Comments
In my opinion, comments are commonly bad. So whenever I see comments while doing code review, I often have a lot of question for the existence of it. I[ wrote an article about it, right here](https://medium.com/gitconnected/stop-writing-bad-comments-in-your-code-tips-for-clean-code-73f1af5eaf31)

In short, did the developer write clear comments without errors ? Are all of the comments actually necessary? If the code isn’t clear enough to explain itself, then the code should be made simpler.

There are some exceptions (regular expressions and complex algorithms often benefit greatly from comments that explain what they’re doing, for example) but mostly comments are for information that the code itself can’t possibly contain, like the reasoning behind a decision.

###Styling
**Coding conventions** are a set of guidelines for a specific programming language with recommended programming style and practice.

Reviewers need to make sure the changes follows the appropriate style guides.

###Tests
Unless the changes are hot fixes, reviewers should ask for unit or integration or end-to-end tests.

Reviewers need to make sure the tests are useful, clear, and correct.
Don’t forget that tests are also code, we should look for all of the things above when review tests

###Compliments
If the code looks good, don’t be shy, we can tell the author about it. This can encourage the developers to continue doing good stuffs
What are NFTs?
Tags: nft, node, webdev, beginners
Published: 2023-02-05 01:55:31

Although the technology has been around for a while, NFTs took off in 2020 and have been growing in popularity ever since, particularly in the digital art world. NFTs have generated great excitement but at the same time have been criticized for being volatile and highly speculative and vulnerable to scams. In this article we look at what you need to know about NFTs

NFT meaning and definition
NFT stands for ‘non-fungible token’. Non-fungible means that something is unique and can’t be replaced. By contrast, physical money and cryptocurrencies are fungible, which means they can be traded or exchanged for one another. Every NFT contains a digital signature which makes each one unique. NFTs are digital assets and could be photos, videos, audio files, or another digital format. NFT examples include artwork, comic books, sports collectibles, trading cards, games and more. 

**How do NFTs work?**
Non-fungible tokens or NTFs are cryptographic assets which sit on a blockchain – that is, a distributed public ledger that records transactions. Each NFT contains unique identification codes that distinguish them from each other. This data makes it easy to transfer tokens between owners and to verify ownership.

NFTs hold a value which is set by the market – i.e., supply and demand – and they can be bought and sold in the same way that physical assets can. NFTs are digital representations of assets – and can also represent real-world items such as artwork and real estate. Tokenizing real-world tangible assets in this way is considered by some users to make buying, selling and trading them more efficient, as well as potentially reducing the likelihood of fraud.

**How do you buy NFTs?**
The NFT market is considered high risk, and its volatile highs and lows can deter even experienced investors. If you are thinking of buying NFTs, it’s important to have a clear understanding of the process. Let’s look at the steps involved: