teleren/devto huggingface dataset:
Useful Javascript ES6 nuggets
Tags: webdev, javascript, programming, 100daysofcode
Published: 2023-12-03 15:41:48

Useful Javascript ES6 nuggets:

Started learning ES6 from freecodecamp, some useful points I Summarized:

:> Global scope of var vs local scope of let:
```
var printNumTwo;
for (var i = 0; i < 3; i++) {
  if (i === 2) {
    printNumTwo = function() {
      return i;
    };
  }
}
console.log(printNumTwo());
```
Here, printNumTwo() prints 3 and not 2. This is because the value assigned to i was updated and the printNumTwo() returns the global i and not the value i had when the function was created in the for loop. The let keyword does not follow this behavior:
```
let printNumTwo;
for (let i = 0; i < 3; i++) {
  if (i === 2) {
    printNumTwo = function() {
      return i;
    };
  }
}
console.log(printNumTwo());
console.log(i);
```
Here the console will display the value 2, and an error that i is not defined, because let's scope is limited to the block, function or statement in which you declare it.

*I noticed that we need to change javascript to strict mode by writing "use strict" at the beginning of the code for the solution of 'let' keyword to work.



:> Const declaration alone doesn't really protect your data from mutation, like adding/changing elements or properties in arrays or objects respectively. To ensure your data doesn't change, JavaScript provides a freeze function to prevent data mutation. Syntax: Object.freeze(arr)

:> Syntax of inline function without name:
```
const myFunc = function(argument) {
  const myVar = "value";
  return myVar;
}
```
OR
```
const myFunc = (argument) => {
  const myVar = "value";
  return myVar;
}
```
:> Default parameters in function kick in when the argument is not specified (it is undefined). Ex:
```
const greeting = (name = "Anonymous") => "Hello " + name;

console.log(greeting("John"));
console.log(greeting()); 
```
:> Rest parameter (...args) helps create functions that take a variable number of arguments, eg:
```
function howMany(...args) {
  return "You have passed " + args.length + " arguments.";
}
console.log(howMany(0, 1, 2));
console.log(howMany("string", null, [1, 2, 3], { }));
```
:> Spread operator allows us to expand arrays and other expressions, eg:
```
const arr = [6, 89, 3, 45];
const maximus = Math.max(...arr);
```
*can also use Math.max.apply(null,arr)

:> Spread operator only works in-place, like in an argument to a function or in an array literal, i.e. the following code will not work:
```
const spreaded = ...arr; // use [...arr]
```
:> Equivalent for
```
const name = user.name;
const age = user.age;
```
is
`const { name, age } = user;`
OR
`const { name: userName, age: userAge } = user;`
*new variable names are userName and userAge
Copy large files into MySQL DB
Tags: mysql, database, xampp, webdev
Published: 2023-12-03 15:31:21

I recently wanted to copy a large file into my MySQL database (I'm using phpmyadmin) and I was having an error because the file was too large.
Here are the steps I followed to copy it successfully:

Step 1: Configure XAMPP for Large File Imports

- Open the XAMPP Control Panel.
- Click on the "Config" button for the Apache server.
- Select "php.ini" to edit the PHP configuration file.
- Find and update the following settings:

`upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 600`
Adjust the values according to the size of your large file.

- Save the changes and restart the Apache server.

Step 2: Prepare Your MySQL Database
- Open phpMyAdmin from the XAMPP Control Panel.
- Create a new database or select an existing one where you want to import the data.
- Create a table with the appropriate columns to match the data in your file.

Step 3: Choose the Right File Format
- Ensure your large file is in a format suitable for importing into MySQL. CSV (Comma-Separated Values) is a common choice.

Step 4: Use MySQL Command-Line Tools
- Open a command prompt or terminal and navigate to the XAMPP MySQL bin directory. 
Use the following command to import the file:

```mysql -u your_username -p your_database_name < path/to/your/large_file.sql ```

Replace 'your_username', 'your_database_name', and the file path accordingly. Enter your MySQL password when prompted.

Congratulations! You've successfully imported a large file into your MySQL database using XAMPP. These steps should help you efficiently manage large datasets.
Thank you for reading this post
C# - Implicit Usings
Tags: csharp, programming, beginners, tutorial
Published: 2023-12-03 15:30:00

C# 10.0 introduces the concept of 'implicit usings,' which automatically includes common namespace imports based on the project type. This feature reduces the need for repetitive `using` directives at the top of every file, leading to cleaner and more concise code.

Here’s how you can use implicit usings in your C# project:

1. **Enable Implicit Usings in Your Project File:**
   Modify your `.csproj` file to include the `<ImplicitUsings>enable</ImplicitUsings>` property. This tells the compiler to automatically include a set of default namespaces common to the project type (e.g., console, web, class library).

2. **Simplify Source Files:**
   With implicit usings enabled, you can remove common namespace imports from your source files, as they are automatically included.

Example:

Your `.csproj` file will look something like this:

```xml
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>

</Project>
```

And in your C# files, you no longer need to include common usings:

```csharp
// No need for 'using System;' or other common namespaces

Console.WriteLine("Hello, World!");
```

By utilizing implicit usings, you can focus on the unique aspects of your code without the clutter of common namespace declarations. This feature is particularly beneficial for new developers or in educational settings where simplifying the code can help focus on learning concepts. However, for some complex projects, explicitly declaring usings may still be preferred for clarity and control.
Hire a hacker for iPhone hack and android hack
Published: 2023-12-03 15:23:04

Cyberspace Hack Pro Recovery offers a comprehensive solution to enhance online safety, protect loved ones from cyber threats, and address concerns within relationships. By utilizing this tool responsibly and ethically, individuals can create a safer online experience for themselves and their families. Remember, technology is a powerful ally in safeguarding against online dangers, but it should always be accompanied by open communication, trust, and an understanding of personal boundaries. In a professional setting,Cyberspace Hack Pro  Recovery can be a valuable tool for employers to enhance productivity and prevent data breaches. By monitoring employee online activities, companies can identify any unproductive behaviors and address them accordingly. Additionally, this tool can help in detecting potential threats to sensitive company information and taking necessary steps to mitigate any risks.  As a parent, ensuring the safety of your children in the digital age is paramount. Cyberspace Hack Pro Recovery can extend its benefits beyond spousal monitoring and provide an avenue for monitoring the online activities of your children and teenagers. By keeping a close watch on their internet usage, you can safeguard them from online dangers and guide them towards responsible online behavior. In a time when the things we do online are so important, we should put safety and security first. By providing a useful tool for accessing and evaluating internet activity, Cyberspace Hack Pro Recovery helps us safeguard our loved ones and ourselves from possible dangers. Through responsible adoption of this tool and achieving a balance between privacy and accountability, we can make everyone's online experience safer and more secure. Together, we may utilize Cyberspace Hack Pro Recovery's capabilities to confidently and calmly traverse the digital terrain. Cyberspace Hack Pro Recovery is designed to track online activities on a variety of devices, including computers, laptops, smartphones, and tablets. However, compatibility may vary depending on the operating system and device specifications.  
Contact them via email: cyberspacehackpro@ rescueteam.com or WhatsApp:  +1(656)2056590
How to beat impostor syndrome as a software developer?
Tags: discuss, coding, coders, programming
Published: 2023-12-03 15:18:46

Let's be honest, if you are a software developer, you have probably felt like an impostor at least once. At least once, you would have felt like you don't deserve what you have. For many people, they are consumed by the impostor syndrome and they perpetually believe that they are frauds and that they do not deserve the job that they have. But it is necessary to feel good about yourself in order to do your best work. And for you to feel good about yourself, you need to get rid of the impostor syndrome. These are some strategies I use to get rid of impostor syndrome:

- Think about how far you have come to get here. All those years you hustled for the position you are in now. All of that cannot be fake, right? Which means you worked hard to get here. Which means you deserve to be here.
- Think about your accomplishments. All the rewards, prizes, accolades, awards, recognitions which you have received. They were given to you because someone saw your value. Which means you are valuable.
- Track the work that you do each day. This will give you some visibility on what you bring to the table each day. It will also give you a sense of accomplishment.
- Try to sell your services outside of your 9-5 job. If you are able to make sales on your own, this gives you proof that people still want to buy from you which means what you have to offer is needed by more than your company. Actual people need your services.

What do you do to get rid of impostor syndrome?
Setup Custom Domain Name in Netlify
Tags: webdev, netlify, deployment, devops
Published: 2023-12-03 15:16:38

I recently wanted to move my website from the netlify.app domain to a domain I got from Namecheap.
Here's how I did it and you can also follow the same steps.
To complete this:
- You must have a domain on Namecheap or from any other provider 
- You must have a deployment setup on Netlify (I'm assuming you already know how to do this, hence, I won't be going into details)

You will go to your Netlify dashboard and select the deployed site you want to change domain:

![Netflix site dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8rdc90g93w44vzzgyfj8.png)
Click on Domain Management:

![Domain Management Netlify Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8mryikx28eq2vx7lw5tb.png)
Then select "Add Domain Alias" and go on to add your domain name here:
![Domain name alias Netlify](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lpxxeycabuk1i1e283mq.png)
Add your domain name in the box provided and save it:
![Domain Name](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/poyjuvsp1bnq57ienq8u.png)
Once that is completed, you can go on to select the "options" dropdown and select "Setup Netlify DNS"

![Setup Netlify DNS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9thpw4lmdvs6mqqob1r0.png)
Verify your domain, you can skip adding extra records as that is not needed and then activate the Netlify DNS.
![Activate Netlify DNS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n424buunrz024msjjl9y.png)

![Activate Netlify DNS step 3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kz6gi3s3vdk9vez96uig.png)

Once you have gotten that, you can then copy the details to your Namecheap domain management dashboard and paste each of the domain records into the custom DNS nameserver.
![Namecheap domain management dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gqnxm8ui8jo5yskjb82i.png)
With that completed, you have successfully linked your Netflix deployment to your custom domain.

Thanks for reading, don't forget to give it a like if you found this helpful
Why Every Man Needs a Comfortable Tracksuit: A Blog Article
Published: 2023-12-03 15:16:31

## Introduction

Do you know the benefits of [mens tracksuit](https://coofandy.com/collections/mens-tracksuits?utm_source=dev_to&utm_medium=rankking). 

Tracksuits have been around for decades, but they have recently made a comeback in the fashion world. Not only are they stylish, but they are also comfortable and practical. In this article, we will explore why every man needs a comfortable tracksuit in their wardrobe.

## Comfort is Key

When it comes to clothing, comfort should always be a top priority. A comfortable tracksuit is perfect for lounging around the house, running errands, or even going for a jog. The soft, stretchy material allows for ease of movement and breathability, making it the perfect choice for any activity.

## Style and Versatility

Tracksuits come in a variety of styles and colors, making them a versatile addition to any wardrobe. Whether you prefer a classic, solid-colored tracksuit or a bold, patterned one, there is a tracksuit out there for everyone. They can be dressed up or down, making them suitable for any occasion.

## Practicality

Tracksuits are not only comfortable and stylish, but they are also practical. They are easy to care for and can be thrown in the washing machine without any fuss. They are also perfect for travel, as they take up minimal space in a suitcase and can be worn multiple times without needing to be washed.

## Conclusion

In conclusion, every man needs a comfortable tracksuit in their wardrobe. They are comfortable, stylish, versatile, and practical. Whether you are lounging around the house or running errands, a tracksuit is the perfect choice. So, what are you waiting for? Invest in a tracksuit today!

## References

  * [mens tracksuit](https://www.yourpshome.net/proxy.php?link=https://coofandy.com/collections/mens-tracksuits "mens tracksuit")



## Related Websites

  * [Adidas Men's Tracksuits](https://www.adidas.com/us/men-tracksuits)
  * [Nike Men's Tracksuits](https://www.nike.com/w/mens-tracksuits-5e1x6znik1)
  * [Puma Men's Tracksuits](https://www.puma.com/en/us/men/clothing/tracksuits)
Is Shorter Code, Better Code?
Tags: discuss, coding, codequality
Published: 2023-12-03 15:10:31

This question came to me as I play a programming game called EXAPUNKS. The game offers no code solution to any of its challenges but as long as you manage to complete your programming mission, you are set. After you have written the code, run tests which it passed (your code has to satisfy 100 different case scenarios iterating on the same problem), a histogram will show up and you can see how many cycles your code took and the shortest code gets you the highest ranking.

EXAPUNKS teaches me that shorter code = better code but is that always true?

What do you think? Is shorter code, better code?
Aesthetician School: Start Your Medical Aesthetics Courses Now
Tags: dermysk, clinic, beauty
Published: 2023-12-03 15:00:45

Elevate your skills at Dermysk Academy, the top choice for medical aesthetics education in Canada. Join us to embark on a journey of professional growth.

Website: [https://academy.dermysk.com/](https://academy.dermysk.com/)
AWS S3-Replication
Tags: linux, devops, aws
Published: 2023-12-03 14:49:12

- Amazon Simple Storage Service (S3) Replication is an elastic, fully managed, low cost feature that replicates objects between buckets.

- To automatically replicate new objects as they are written to the bucket, use live replication, such as Cross-Region Replication (CRR). To replicate existing objects to a different bucket on demand, use S3 Batch Replication.

Step1. Now we create source S3 Bucket make sure to enable the versioning and upload one file.

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

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

Step2. Create a another Destination S3 bucket with versioning enabled.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/juc9rp3flmlhwwufycq9.png)

Step3. Now on the source Bucket >management >Replication rules.
we need to create these replication rules on the source bucket.

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

- Choose the destination bucket on the replication rules.alternative you can choose the different AWS account/S3 Bucket to replicate.

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

- On the "IAM role" create new role for these job.

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

- Once replication rule has been created need to confirm either you need to replicate existing objects or not.

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

Step4. At "Create Batch operation job" we are disabling the  "Generate completion report" and create new IAM role.

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

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

- The file which we uploaded on the source bucket is replicated on the Destination bucket using "Replication Rules".

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

Step5. If we upload new file/object on the source bucket it will automatically replicate on Destination bucket.

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

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

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

- Similar we can use  Cross-Region Replication (CRR).
- To enable CRR, you add a replication configuration to your source bucket. The minimum configuration must provide the following:

The destination bucket or buckets where you want Amazon S3 to replicate objects

An AWS Identity and Access Management (IAM) role that Amazon S3 can assume to replicate objects on your behalf
Breaking the Myth: Object Detection Isn't Hard as Thought
Tags: ai, machinelearning, python, tutorial
Published: 2023-12-03 14:48:00



Hearing about AI and object detection can create an illusion among developers that doing such things is far beyond the reach of traditionally trained programmers.

But that's not the case. Object detection is easy to set up and only requires a few minutes of your time.

It's a computer vision technique that works to identify and locate objects within an image or video. For example, traffic surveillance systems, self-driving cars, and facial recognition systems all employ this technology to track down vehicles, faces, and other objects of interest.

![YOLO example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1w46wuuj8hwfnkijc2l3.png)

This article will use YOLO (You Only Look Once) for performing the object detection tasks.


### Object Detection with YOLO

#### Introduction to YOLOV8
[YOLOv8](https://github.com/ultralytics/ultralytics) (You Only Look Once) is an open-source Computer Vision AI model released on January 10th, 2023. It’s called YOLO because it detects everything inside an image in a single pass. The new version can perform image detection, classification, instance segmentation, tracking, and pose estimation tasks.  

The new v8 has better performance and flexibility.  This is pre-trained on COCO (Common Objects in Context) and ImageNet datasets. 



#### Using YOLO: An Example
YOLO can be used for a wide variety of applications and use cases. Here is an example of borderless table detection. A detailed section on implementation is presented at the end of the article. 

![Results](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z4cu66hl2m2b2zyp8612.png)

For the full article and the practical part visit our blogpost https://journal.hexmos.com/yolo-object-detection/

[![Twitter](https://img.shields.io/badge/Twitter-%231DA1F2.png)](https://twitter.com/HexmosTech)

[![Hexmos](https://journal.hexmos.com/content/images/2023/08/hexmoslogo_2_1-2.png)](https://hexmos.com)
React JS | React JS Courses In Rawalpindi
Tags: webdev, programming, react, node
Published: 2023-12-03 14:42:21

I’m completed my **_[React JS Course](https://futureittechnology.com/react-js-courses-in-rawalpindi.html)_** from **_[FIT Computer Institute Rawalpindi](https://futureittechnology.com/)_**.I’ve learn from basics to advanced concepts in **React JS**.I’ve doing mastered building energetic interfaces with **React JS**.I’m very grateful for hands-on projects, expert guidance and industry best practices.I’m ready for impact web development!.

If you live in Rawalpindi and you want to joining a React JS Course then I'm prefer to you join a **_[FIT Computer Institute In Rawalpindi.](https://futureittechnology.com/)_**

**_[Address:](https://www.google.com/search?sca_esv=587474982&rlz=1C1CHBF_en-GBPK1070PK1070&sxsrf=AM9HkKmn5qGGJEHLMy1UaxvchHg_LQOChg:1701614166227&q=fit+computer+institute+address&ludocid=6099865701485976744&sa=X&ved=2ahUKEwihvrDfvvOCAxXEAfsDHQfpBW8Q6BN6BAhREAI&biw=1536&bih=747&dpr=1.25)_** 2nd Floor, FIT Computer institute, Al-Mustafa Plaza, near Chandni Chowk, C Block Block C Satellite Town, Rawalpindi, Punjab 46000

**_[Phone:](https://www.google.com/search?sa=X&sca_esv=587474982&rlz=1C1CHBF_en-GBPK1070PK1070&sxsrf=AM9HkKllorYFBDpKgZQsNoDWl7pJFpl5wA:1701614462579&q=fit+computer+institute+phone&ludocid=6099865701485976744&ved=2ahUKEwjVrtjsv_OCAxXFVaQEHW25C1YQ6BN6BAhEEAI&biw=1536&bih=747&dpr=1.25)_** 0344 5701828

#React.jscourseRawalpindi #React.jstrainingRawalpindi #React.jsclassesRawalpindi #React.jsinstituteRawalpindi #LearnReact.jsRawalpindi #React.jscertificationRawalpindi #React.js workshopRawalpindi #React.jstutorialRawalpindi #BestReact.jscourseinRawalpindi #TopReact.jstrainersRawalpindi #React.jsdevelopmentcourseRawalpindi #React.jsonlinecourseRawalpindi #FrontenddevelopmentcourseRawalpindi #bestinstitueinrawalpindi #reactjs #reactnativ
Being a Good Software Developer
Published: 2023-12-03 14:41:49


As a new developer, I have learned several valuable lessons that have helped me grow in my role. These lessons include being open to learning, constantly learning, and staying relevant. Engineers must constantly challenge existing practices to achieve greater efficiency, which requires continuous learning.

A good developer keeps learning and learns faster, as software development changes much faster, making older ideas and methods obsolete quickly. As a developer, I often find myself aiming at a moving target, which is exciting. This has influenced me to never be satisfied with what I know and always seek to learn more and expand my capabilities.

Learning is a gradual process, and it is important for engineers to demonstrate their knowledge before starting a project. In contrast, developers should get comfortable with learning on the job, as clients want to know if they have what it takes to figure out what it takes.

It was difficult for me to shift from having to prove the plan from the get-go as an engineer, but over time, I realized that as a developer, I needed to prove myself, as the plan would likely mutate along the way.

In summary, being open to learning, constantly learning, and trusting in one's abilities have been keys to my growth as a developer. As a developer, I have learned that it is essential to continually learn and adapt to new challenges and technologies, as well as to be open to learning and adapting to new challenges.