teleren/devto huggingface dataset:
Learn Python from Zero to Hero — Learn Python in 10 Hours
Tags: python, programming, webdev, machinelearning
Published: 2023-06-05 14:05:33

Learn about Python programming from zero to hero in this full course for beginners. Learn Python in 10 hours.

After this course, you will be able to start coding with Python.

After this course, you will be able to implement the basic tasks using Python's standard library.

After this course, Build a complete understanding of Python from the ground up!

After this course, You will be able to create your own useful programs for real-world problems.

After this course, Automate tasks on your computer by writing simple Python programs.

After this course, You will be able to enhance your coding skills in Python.

After this course, You will be able to define and use functions.

After this course, You will be able to Understand What modules are, when you should use them, and how to create your own.

After this course, You will be able to Understand What are some Important built-in Python functions that you'll use often.

After this course, You will be able to Understand How to work with various data types including strings, lists, tuples, dictionaries, Booleans, and more.

After this course, You will be able to Understand variables and when to use them.

After this course, You will be able to perform mathematical operations using Python.

After this course, You will be able  to capture input from a user.

After this course, You will be able to write multiple Ways to control the flow of your programs.

What you'll learn:

   Python programming skills
   Understanding Existing Python code
   Writing python Code
   Debugging skills

{% embed https://www.youtube.com/watch?v=WgDJK9whI5I %}
Upstream speaker spotlight: Mike Milinkovich, executive director of the Eclipse Foundation
Tags: opensource, maintainer, upstream
Published: 2023-06-05 14:00:00

Upstream is this week—June 7!—and wow, our schedule is shaping up brilliantly. Over the next few days we’ll share more details about the amazing speaker lineup. [RSVP now](https://upstream.live/)!

Next up in our absolutely amazing speaker line up: Mike Milinkovich, executive director of the Eclipse Foundation. A little bit more about Mike:

Mike Milinkovich is a recognized industry leader and open source community champion. He has been involved in the software industry for over 30 years, doing everything from software engineering, to product management, to IP licensing. He has been the Executive Director of the Eclipse Foundation since 2004. In that role he is responsible for supporting both the Eclipse open source community and its commercial ecosystem. As an industry leader, Mike has sat on the Boards of the Open Source Initiative (OSI) and the OpenJDK community, as well as the Executive Committee of the Java Community Process (JCP).

Mike’s talk, [Open source won, now comes the hard part](https://upstream.live/schedule), is so relevant it hurts. Open source is truly a magnificent feat of human collaboration—and, as Mike says in his abstract, one of the most successful socioeconomic experiments in history.

[A Tidelift study](https://blog.tidelift.com/open-source-is-everywhere-survey-results-part-1) we conducted a few years ago showed that over 92% of all software is built upon open source components. This means without open source, the world as we know it wouldn’t exist—think internet, smartphones, and social media, but those are just a few examples. But, Mike notes, with great success comes great responsibility. Responsibility that we have collectively managed to avoid. Until now. And this is the painful part. Around the world, governments are realizing that there is a global community, shaping the future that they don’t even influence, never mind control. And a global supply chain of open source software which is simultaneously unmanaged, unregulated, unsecured and critical to economic success.

The days of unconstrained open source innovation are coming to an end. The question is, what comes next? Well-meaning attempts to manage, regulate, and secure the global open source phenomenon run the risk of killing the very thing that made it successful in the first place: the ability to study, modify, and freely distribute a program with everyone, for any purpose.

Mike’s talk is going to discuss how we got here, and examine some policy options for the future that will protect open source from being destroyed by its own success. And we are eager to hear what he has to say, especially coming from his unique perspective as executive director of an open source community.
Run Microsoft Edge in Kiosk Mode
Tags: microsoft, edge, kiosk, tutorial
Published: 2023-06-05 13:57:36

Copy the below into a text editor and save it as a .bat file.

```
start "" "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --kiosk www.google.com --edge-kiosk-type=fullscreen -no-first-run
```

-----------------------------------------------------------------

To explain the flags:

**--kiosk** removes the address bar, menu bar, status bar etc... and prevents alt/right clicking - essentially locking it down completely

Then you put the web page you wish to run,

**--edge-kiosk-type=fullscreen** makes it fullscreen

**-no-first-run** prevents the initial Edge startup process when used for the first time or after an update. Meaning it loads straight to the web page.
VBScript - Text to Speech/Play Sound
Tags: vbscript, texttospeech, tutorial, sound
Published: 2023-06-05 13:50:23

Create a .vbs file with the following code, and it will play a sound and also say something out loud of your choosing... neat huh?

```
Set oV = CreateObject("SAPI.SpVoice")
Set oFS = CreateObject("SAPI.SpFileStream")
oFS.Open "C:\Windows\Media\tada.wav"
oV.SpeakStream oFS
oFS.Close
oV.Speak "Hello World!"
```
Batch - Turn Volume Up to 100%
Tags: windows, batch, tutorial, volume
Published: 2023-06-05 13:41:33

In Windows, you can create a batch file that when run, turns the computers volume all the way up to 100%. Simply copy the below into a text editor and save as a .bat file:

```
@if (@a==@b) @end /*
:: batch portion
@ECHO OFF
cscript /e:jscript "%~f0"

:: JScript portion */
var shl = new ActiveXObject("WScript.Shell");
for (var i=0; i<50; i++) {
    shl.SendKeys(String.fromCharCode(0xAF));
}
```
Remounting Issue with State Change in a Custom React Grid Component
Tags: react, discuss, javascript, community
Published: 2023-06-05 13:40:10

**Issue:**

I'm encountering a full remounting (useEffect without parameters) issue with my custom React grid component when the state changes. This problem occurs in two scenarios:

When the template is declared as a nested React component within the grid.
When the template is declared as a React component outside of the grid.

According to React's behaviour, in the first case, the component should remount for each state update, while in the second case, it should not remount. However, in my custom component, the first case functions correctly, but the second case experiences remounting issues when there's a state update to the template.

**Template Implementation:**

To implement the templates, I've created a wrapper React grid class component. Inside this component, multiple functional templates are rendered as portals using a separate JavaScript function with custom data. These portals are then returned as multiple elements to React from the class component.

**Suggestions Needed:**

I kindly request your suggestions on how to prevent full remounting (useEffect without parameters) of the template when there are state updates.
Are you looking for a remote job? Check this! 👨‍💻👩‍💻
Tags: jobs, remotejobs, programming
Published: 2023-06-05 13:38:30

I am ready to share a list of job searches I put together. I've been working several hours on this project. And it's almost ready.

Contains approximately ~1500 jobs. It is updated daily.

![Remote Jobs List Example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ggcioo4r982ey7r8fisv.png)

If you are looking for a remote job, you can take a look here:

https://github.com/maurobonfietti/remote-jobs


> **_"Buscar trabajo, es todo un trabajo"._**


If you think this list of jobs opening is **helpful**, support the project by giving a star to the repo 🤩 ⭐. And I sent you good luck and good vibes if you are looking for new challenges. :crossed_fingers: 😀 💪
Pin a File / Folder to the Taskbar / Start Menu
Tags: windows, tutorial, beginners, productivity
Published: 2023-06-05 13:36:01

This method will allow you to pin any file or folder to the Windows Taskbar or Start Menu.

- Find the file or folder you want to pin.

- Right-click it and create a shortcut to it anywhere you'd like (same folder, desktop or even a designated folder for this purpose).

- Right-click this new shortcut and choose Properties.

- In the Shortcut tab, find the Target field and at the very beginning of whatever is typed in there - add the word explorer (with a space after!).

- So for example, a shortcut to the C:\Users folder would become `explorer C:\Users`.

- This shortcut can then be pinned to the Windows Taskbar or the Start Menu.

- Don't forget to change the Icon too if you want to!
Top 10 schools in delhi
Tags: beginners, education
Published: 2023-06-05 13:32:14


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g5huwy9a9wtz7sh9zloq.jpg)
[Top 10 schools in delhi](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)
Delhi is one of the best cities in India to live in since it has the best schools

[Delhi Public School, R.K. Puram:](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[The Mother’s International School:](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[Modern School, Barakhamba Road:](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[Vasant Valley School](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[The Shri Ram School, Vasant Vihar](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[Sanskriti School](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[Springdales School, Dhaula Kuan:](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)
[
Bal Bharati Public School, Pitampura:](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[Pathways World School](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)

[The Heritage School, Rohini](url) read more about these schools
[read here for more details](https://www.netstalks.tech/2023/06/top-10-schools-in-delhi.html)
Reboot a Windows Machine Straight into it's BIOS Menu
Tags: windows, tutorial, commandprompt, bios
Published: 2023-06-05 13:29:53

Running the following Command Prompt line will force a Windows computer to immediately restart and then go straight into the BIOS menu - bypassing the need to press DEL/ESC/F12 (or whatever the usual key is to do it on that machine) whilst it is booting:

```
shutdown /r /fw /t 0
```
💻ES6 tutorial: const in javascript
Published: 2023-06-05 13:19:52


In JavaScript, the `const` keyword is used to declare a constant, which is a variable that cannot be re-assigned after it is initialized. Constants are block-scoped, meaning they are only accessible within the block where they are defined.

1. Declaration and Initialization: Constants are declared using the `const` keyword, followed by the variable name and an optional initializer (value assignment). Once a constant is declared and assigned a value, its value cannot be changed.

```
const x = 10;
const x = 10;

// Identifier 'x' has already been declared
```

2. Block Scoping: Constants are block-scoped, just like variables declared with `let` and `var`. This means that they are only accessible within the block in which they are defined.

```
if (true) {
  const message = "Hello!";
  console.log(message); // Output: Hello!
}

console.log(message); // Error: message is not defined

```

3. Immutable Value: The value assigned to a constant cannot be changed or re-assigned. However, for complex data types like objects and arrays, the properties or elements of the object or array can still be modified.

```
const pi = 3.14;
pi = 3.14159; // Error: Assignment to constant variable.

const person = { name: "John", age: 30 };
person.name = "Jane"; // Valid: Modifying the property of the object.
person = { name: "Jane", age: 25 }; // Error: Assignment to constant variable.

```

4. Hoisting: Like variables declared with `var`, constants declared with `const` are also hoisted to the top of their scope. Using a `const` variable before it is declared will result in a `ReferenceError`

```
console.log(pi); // Output: ReferenceError: Cannot access 'pi' before initialization

const pi = 3.14;
console.log(pi); // Output: 3.14

```

5. Block-Level Re-declaration: Constants cannot be re-declared within the same block scope. Attempting to re-declare a constant within the same block will result in an error.

```
if (true) {
  const x = 10;
  const x = 20; // Error: Identifier 'x' has already been declared
}

```

The `const` keyword is commonly used for values that are not intended to be changed, such as mathematical constants or configuration settings. It helps ensure the immutability of important values in your code, improving code readability and reducing bugs caused by accidental re-assignment.
API Authentication Methods - Pros and Cons
Tags: api, programming, apigateway, auth
Published: 2023-06-05 13:07:35

Hello everyone,

I'd like to discuss different authentication methods for APIs and the pros and cons associated with each approach. Choosing the right authentication method is crucial for ensuring security and a positive developer experience.

Here are a few commonly used authentication methods:

**API keys:** API keys are simple and widely used. They are typically a long string of characters sent as part of the request header or query parameters. However, they can be susceptible to misuse if not properly secured or if compromised.

**OAuth 2.0:** OAuth 2.0 is an industry-standard protocol that provides delegated authorization. It allows users to grant third-party applications access to their data without sharing their credentials. OAuth 2.0 can be complex to implement, but it offers a robust and secure solution for user authentication.

**JSON Web Tokens (JWT):** JWTs are self-contained tokens that contain claims and are signed with a secret key or public/private key pair. They can carry user identity and other metadata, reducing the need for additional database queries. However, JWTs need to be validated on every request, and proper key management is essential.

**OpenID Connect:** OpenID Connect builds on top of OAuth 2.0 and adds an identity layer. It allows clients to verify the identity of the end-user and obtain basic profile information. It provides a standardized way for authentication and user information exchange.

**Mutual TLS (mTLS):** mTLS uses client and server certificates to authenticate both ends of the communication. It ensures secure communication and can be particularly useful in a microservices architecture. However, managing certificates and the associated infrastructure can be more complex.

Please share your experiences and thoughts on these authentication methods or any others you have used. 

What are the benefits and challenges you have encountered? 

Are there any specific use cases where you found a particular authentication method to be more suitable?

Looking forward to hearing your insights!
no-reply@ is never acceptable
Published: 2023-06-05 13:06:20

OK, this is a rant, but no-reply@somesite.com is, in my humble opinion, a clear sign of failure.

Unless you're getting emailed from `unattended-upgrades` (or similar, self initiated processes), there is never a reason to ignore replies from your **users**.

- Security alert?
 - Forward the reply to your security team!
- Welcome email?
 - Forward the reply to your customer support team!
- Shipping update?
 - Forward the reply to your issue tracker!
- Announcement email?
 - You get the point.

I've had emails from companies that decided to sign off 'Love from ...', but the stupidity of sending that email from a no-reply address made me _hate_ them.

I've had companies email me with details of a serious hack, but the unthinking banality of sending that email from a no-reply address made me think they really don't care.

If you're talking to customers, NEVER send an email from a no-reply address!

Please let me know if you can think of an example where you *don't* want to hear from someone about something you've emailed them about. Seriously, I'd love to see you try to defend it.

If volume is your primary concern, spam filters / issue trackers / more customer support. If it's just you, don't you want to talk to your users?

There are so many reasons that people may want to reply, no-reply is just an ugly, awful, unacceptable, admission of failure.

If you disagree, I'd love to know. If you agree, never use this address again.


kthxbi.
How to copy commits from one Git repo to another?
Tags: git, linux
Published: 2023-06-05 13:05:38

---
title: How to copy commits from one Git repo to another?
published: true
description: Easy way manual copy commits from one Git repo to another
tags: git, linux
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-06-05 13:00 +0000
---

Clone basic repo
```
git clone https://github.com/user1/project1
cd project1
```
Add external repo
```
git remote add oldrepo https://github.com/user1/project2
```
Get the old repo commits
```
git remote update
```
examine the whole tree
```
git log --all --oneline --graph --decorate
```
Copy (cherry-pick) the commits from the old repo into your new local one
```
git cherry-pick sha-of-commit-one
git cherry-pick sha-of-commit-two
git cherry-pick sha-of-commit-three
```
check your local repo is correct
```
git log
```
send your new tree (repo state) to github
```
git push origin master
```
remove the now-unneeded reference to oldrepo
```
git remote remove oldrepo
```
Music Monday — What are you listening to? (Strange Edition)
Tags: watercooler, discuss, music
Published: 2023-06-05 13:00:00

_cover image source: [polarist](https://giphy.com/gifs/1yiftix4bk0nAi5iZQ)_

**Alright alright! I originally thought about making this week's focus avant-garde or perhaps ambient, but I didn't wanna make the doorway for participation to narrow. So, what do avant-garde and ambient have in common — weirdness! And don't think I mean that in a bad way... I'm absolutely drawn to the strange & unusual. Listen to enough tunage and after a while ya start to crave something a bit different. So, this week I wanna hear your most out-there, bizarre, and downright odd musical suggestions. The stranger, the better!**

![Missy Elliot's neck growing super long and her rapping "Is that yo b***h?" in the music video for Get Ur Freak On](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5cu8d9f0yqy2qr798ou2.gif)

***

## How we do 

In this weekly series, folks can chime in and drop links to whatever it is they've been listening to recently + browse others suggestions. You can follow the suggested genre if you'd like, but don't feel confined to it; you're free to suggest whatever you wanna. 🙌  

If you're interested in having other discussions about music, consider following the aptly named [#music discussions](https://dev.to/music-discussions) organization.

{% embed https://dev.to/music-discussions %}  

***

Let's get weird. _Note: you can embed a link to your song using the following syntax `{% embed https://... %}`. This should work for most common platforms!_

Looking forward to listening to y'all's suggestions! 🎶
ESLint: Правила чи Плагіни?
Tags: webdev, javascript, programming, beginners
Published: 2023-06-05 12:39:23

**Find this and other articles in English:** https://devcenter.space/posts/eslint-rules-vs-plugins/

ESlint - це потужний інструмент для перевірки якості коду в проектах JavaScript. Однак, два основних поняття, з якими стикаються користувачі ESlint, - це "правила" та "плагіни". Давайте розберемося у відмінностях між ними.

## Правила (Rules)

Правила в ESlint - це набір правил, які визначають правильний або неправильний стиль написання коду. Вони допомагають виявити потенційні проблеми в коді та стильові недоліки, такі як відсутність крапки з комою, використання неоголошених змінних, використання заборонених функцій тощо. ESlint має вбудований набір правил, які можна використовувати за замовчуванням. Проте, ви також можете налаштовувати правила згідно з власними потребами.

Наприклад, ось декілька прикладів правил:

- `semi` - це правило вимагає використовувати крапку з комою в кінці кожного оператора.
- `no-console` - це правило забороняє використання функції `console.log()` та інших методів `console` у продакшн-коді.

## Плагіни (Plugins)

Плагіни в ESlint - це додаткові модулі, які дозволяють розширити функціональність ESlint. Вони надають додаткові правила та можливості перевірки коду, які не включені в основний набір правил. Плагіни можуть бути розроблені спільнотою ESlint або створені вами самостійно. Щоб використовувати плагін, спочатку потрібно його встановити через менеджер пакетів, такий як npm або yarn.

Наприклад, плагін `eslint-plugin-react` - це популярний плагін для перевірки React коду

## Висновок

Правила та плагіни є важливими складовими ESlint. Правила допомагають забезпечити правильний стиль коду та виявити потенційні проблеми, тоді як плагіни дозволяють розширити функціональність ESlint та використовувати специфічні правила для конкретних технологій або фреймворків. З правильним налаштуванням правил та використанням плагінів, ви можете покращити якість свого коду та забезпечити більш однорідний стиль розробки.

## Дізнайтеся більше

- Як встановити ESlint: [посилання](https://devcenter.space/uk/posts/eslint-setup/).
- Oфіційна документація ESlint: [посилання](https://eslint.org/docs/latest/).

[Більше цікавих статей](https://devcenter.space/).
📢 Wildchain’s BRAND NEW NFT from the Genesis Collection: Rewilding Savanna is LIVE RIGHT NOW!
Published: 2023-06-05 12:10:34

Go to **[Wildchain NFT marketplace](https://www.nft.wildchain.io/)** (nft.wildchain.io) to bid on our adorable new wildlife NFT that features exclusive utilities AND will make a real-world impact! 🐾

**🚨 BIDDING FOR ARYO ENDS June 12th at 12pm UTC!**

Not only is our art super cute, but you also make a difference as every adoption made from this NFT collection and future ones generates a donation royalty to wildlife conservation! 🌱

the first adopters can use them in our play-to-impact mobile game! (Coming soon 👀)

Check out 👇 to see all of the utilities your wild NFT will have!

**DON’T FORGET ❗️** We will continue dropping NFTs **EVERY MONDAY** until we complete our collection of 25 NFTs! **🚨 NEW NFT coming next Monday, 12pm UTC!!**

Join us on Twitter & subscribe to our newsletter to stay updated! beacons.ai/wildchain.nft 

![Wildlife NFT LIVE NOW](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iiwu6zjmra0xrz896w8t.png)

![Wildchain's NFT Utilities](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2b5tg5v1xx04t78n1l20.png)
What's a cool concrete meaningful thing that you have done with ChatGPT?
Tags: ai, chatgpt, discuss, promptengineering
Published: 2023-06-05 12:03:46

I am late to the ChatGPT train because I dislike the many charlatans who are overselling. LinkedIn is especially full of them.

Even worse are the charlatans who do their best efforts to manufacture irrational fears

> 😱 AI will replace us! 🤥

But I've also seen a friend using it for content creation. And he is very much not carelessly trusting ChatGPT. He is using it expertly after being trained to ChatGPT, he treat ChatGPT like an intern, to go faster in a domain he is already an expert of.

So now I think that concerning ChatGPT we are at the same time in the *Peak of expected inflation* and in the *Slope of Englightenment* phrases of the [Gartner Hype Cycle](https://en.wikipedia.org/wiki/Gartner_hype_cycle).

## And you?

What's a cool concrete meaningful thing you have done with ChatGPT?

Feel free to `{% embed xxx %}` an article you have already written.