teleren/devto huggingface dataset:
Shipping Labels.
Tags: shipping, labels, webdev, javascript
Published: 2023-04-10 14:41:38

Shipping labels are labels that are used to identify and track packages during shipping and transportation. They typically include information such as the shipping address, the sender's address, package weight, tracking number, and any special instructions for the carrier.

Shipping labels can be pre-printed or printed on demand using software and label printing equipment. They are typically printed on self-adhesive labels that can be easily applied to packages and shipping containers.

In addition to standard shipping labels, there are also specialized shipping labels designed for specific purposes. For example, there are labels for international shipping that include customs information, labels for hazardous materials that include warning symbols and handling instructions, and labels for fragile items that indicate that the package contains delicate items that require careful handling.

Shipping labels are an important part of the shipping process as they help to ensure that packages are delivered to the correct destination and that they are handled safely and efficiently during transportation. They also provide a way to track packages throughout the shipping process, allowing both the sender and recipient to monitor the progress of the shipment and ensure that it arrives on time.
Maximize your learning and productivity with this Chrome extension
Tags: webdev, javascript, learning, programming
Published: 2023-04-10 14:37:15

____
## PinMyVideo
Watch your favorite videos in a popup while browsing the web without losing focus.

## The problem
I don't know about you, but whenever I'm working, I like to play some interesting podcast or technology classes and workshops to listen to while not listening to music.

The big problem is that I can't focus on both things at the same time, so 90% of my focus is on the task I'm working on and 10% on the video I'm listening to.

Sometimes, I even get lost in what I'm listening to and focus only on the task, forgetting that there's a video playing.

And then, when I hear something interesting in the video or something I don't know yet and want to learn, I immediately stop the task to go to the video and see what's being explained.

The problem with this is that I always end up losing focus on the task when I choose to go to the video, and sometimes I spend minutes searching for the video among thousands of open tabs.

That's when I thought: _what if I did something that could keep the video playing without having to keep the video tab open, while I do my tasks normally, just like YouTube Premium for mobile or Twitch?_

So, whenever I heard something interesting, the video would already be there in front of me to watch. Or even while thinking about my task, the video would also be there in front of me to follow.

## The solution
I made this extension and tested it for a week to see if it would be useful for me. I spent a week watching JavaScript classes on video.

The result using the extension was that not only did I notice an improvement in learning the subject matter of the video, as the video was always there in front of me, so it didn't become just a lost audio that I forgot was playing (I am a very visual person), but I also completed more tasks than usual, as I didn't have to keep searching and going back to the video tab all the time, searching for the exact minute of the subject I wanted to listen to and losing minutes in the video tab to go back to the task I was doing (and often forgetting where I was in the task).

So I decided to make this extension available to everyone, as it helped me and it can help others too.

I called this extension [**PinMyVideo**](https://chrome.google.com/webstore/detail/pinmyvideo/cpihinngdiofancfpfghfogkolilehfg?hl=pt-BR&authuser=0), and its appeal is precisely this: **"Watch your favorite videos in a popup while browsing the web without losing focus."**

**Link to the extension:** https://chrome.google.com/webstore/detail/pinmyvideo/cpihinngdiofancfpfghfogkolilehfg?hl=pt-BR&authuser=0

I hope it is useful for you, as it has been for me, and I am open to hearing criticism and suggestions to make it even better!

Try it out and let me know what you think. If it's useful, leaving a comment there with 5 stars will be very welcome.

See ya!
What are your goals for the week?
Tags: discuss, motivation
Published: 2023-04-10 14:36:00

What are your goals for this week?
 
- What are you building? 
- What will be a good result by week's end?
- Are you attending any events this week?
- Did you meet your goals last week?

I'll start with how I did last week.

**Last Week's Goals**

- [:white_check_mark:] Continue Job Search.
- [:white_check_mark:] Blog. [Two new CSS Posts](https://dev.to/jarvisscript/css-easter-eggs-are-back-2fpi), plus a post on [Virtual Coffee Lightning Talks.](https://dev.to/jarvisscript/virtual-coffee-lightning-talks-48km) 
- Finish portfolio refactor. Made some edits. I think I still need to add a couple more projects. 

How many interactive projects should be on a portfolio? 


![4 Easter eggs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3uw3pqvjz78svge54yhn.jpg)

{% embed https://dev.to/jarvisscript/more-css-eggs-1c7e %}
{% embed https://dev.to/jarvisscript/virtual-coffee-lightning-talks-48km %}

**This Week's Goals**

- Continue Job Search.
- Finish portfolio refactor.
- Virtually Attend Dallas Software Developers Meetup [A Night with CSS](https://lnkd.in/ghTZANk6) Tuesday April 11th.
- Attend Virtual Coffee Thursday, Another VC event if I can.
- Update content on another site.
- Code Challenge or Build Something


You've read my goals so I'll throw that question back to you.

What are your goals for the week?

```
-$JarvisScript git push
```
Using a non-commercial Creative Commons license
Tags: opensource, writing
Published: 2023-04-10 14:34:15

At the start of 2023 I had a bit of a re-think on how I should license the writing and photographs which I publish to the internet.

There are well established benefits for allowing free commercial use of free and open source software. But I don't see that the same benefits exist for allowing free commercial re-use of stories, articles, photos, music, painting, etc. These things typically have one primary author or group of authors and it's rare to get significant free contributions (or even want significant contributions) from companies that want to use your work.

In open source software, we have a mixed history of companies exploiting the commons and companies contributing back to the commons. For more "artistic" works, the history seems to be exclusively of companies exploiting the commons.

For these reasons, I'm now allowing only non-commercial use of my photography and writing by default. In particular, I'm using the [Creative Commons Attribution-NonCommercial 4.0 (CC-BY-NC 4.0)](https://creativecommons.org/licenses/by-nc/4.0/) license.

I'm open to selling commercial re-use licenses for my photos and articles if any company does express interest. I'm also open to contributing content to existing projects under other licenses which do allow commercial use where there is a clear benefit to the commons.

For software projects, I'll continue to use and recommend open source licenses. My preference is for the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license for source code and the [Creative Commons Attribution 4.0 (CC-BY 4.0)](https://creativecommons.org/licenses/by/4.0/) license for documentation.
Unmove files with bash
Published: 2023-04-10 14:30:29

A simple little shortcut idea that might be handy when juggling files with long names.

```bash
# Define a bash alias. Could be plopped in ~/.bashrc
unmv() { mv $2 $1; }
# Move a file out of the way to dodge some script
# ------------------>
mv my-file my-file.bak
# Do some stuff
# Unmove the file back to its original position
# <------------------
unmv my-file my-file.bak
```
Prarambh : The Beginning
Tags: technicalwriting, beginners, documentation, codenewbie
Published: 2023-04-10 14:26:07

Hello Everyone!

I'm Om Bhojane, and I'm excited to be a part of this community as a technical writer enthusiast. My aim is to learn, test my skills, and create meaningful documentation. I'm looking forward to engaging with the community, discussing technology and innovations, sharing knowledge, and learning together.

From today, I'm starting to write a technical article everyday. Hopefully it will help to sharpen my writing skills and help to grow. 

Nice to be here for sharing my thoughts.
Authentication vs Authorization
Published: 2023-04-21 00:45:10

---
title: Authentication vs Authorization
published: true
date: 2023-04-10 14:14:51 UTC
tags: 
canonical_url: 
---

Authentication and Authorization (AuthN and AuthZ) are terms that refer to discrete, specific concepts that can easily be confused.

**Authentication** is the process of proving that someone is who they claim to be.

**Authorization** is the process of granting access to a resource.

For instance, to buy alcohol, I must be at least 21 years old, as per legal requirements. When I try to make the purchase, the sales clerk will likely request my driver's license. By examining the photo on the license and confirming it to be of me, the sales clerk is performing **Authentication**. I have presented evidence that I am Dan Schnau, and provided a government-issued document with a photograph and other relevant facts, verifying my identity.

However, at this moment, the sales clerk has not allowed me access to the resource- alcohol. After proving my identity, the sales clerk will perform **Authorization.** The clerk will verify my date of birth on the driver's license, which will enable them to grant access, knowing that I have already proved who I am (via photo ID) and that I am authorized based on my age.

In summary, Authentication verifies identities, and Authorization grants access to resources based on those identities. It is critical to implement both measures for safe systems.
Music Monday — What are you listening to? (Electronic Edition)
Tags: watercooler, discuss, music
Published: 2023-04-10 14:01:42

_cover image source: [Giphy](https://giphy.com/gifs/daft-punk-newspaper-gMfzpfMtIYpMY)_

**Last week, we went to the past and talked [classically-influenced rock](https://dev.to/music-discussions/music-monday-what-are-you-listening-to-classical-rock-edition-1a8i)... this week, I'd like to take a left turn and hear y'all's favorite futuristic sounds — I'm talking about electronic music. I see electronic music as being a very broad genre, loosely meaning music made with electronic instruments. [This timeline of electronic music genres on Wikipedia](https://en.wikipedia.org/wiki/Timeline_of_electronic_music_genres) is a pretty awesome resource for encapsulating what I have in mind. But as always, we're loose here... interpret the theme however ya wanna, and if nothing is coming to mind that fits the theme, just share what ya like.** 😀


![A man wearing a white jacket and red headband excitedly jumps up and down, dancing as he is playing a big stack of synthesizers in the 80's](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i3dfvdtlpqkis8tddcrh.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.

If you like talking about music, consider following the org [#music discussions](https://dev.to/music-discussions) for more conversations about music!

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

***

Alright, lemme hear y'all's favorite electronic tunes! _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! 🎶
3 Key Insights From Developing on Google Cloud, to Save Time, Money, and Have a Better Product
Tags: cloud, programming, career, startup
Published: 2023-04-10 13:49:51

Ever wondered how cloud technology can give your projects a significant boost? Let me share my recent experience with you.

Over the past month, I've been working on my new AI-driven content tool, [ai-headline](https://ai-headline.com/). I've been astounded by the benefits of using Google Cloud Platform during its development. In this article, I'll walk you through three realizations I had during this process, highlighting how the cloud can supercharge your projects, save time, and make your journey much smoother.

So, buckle up and join me as we explore the fantastic world of cloud technology!

## Using Managed Services Gives You Time To Focus On Your Application

Managed Services are the way to go if you want to start as quickly as possible.

With traditional infrastructure (and even infrastructure as a service), you need to take care of many details for the system to be up and running. On the other hand, using a managed service takes care of everything and provides a ready-to-use environment for you. A wide range of services can be used, from Cloud Run to fully automated scale and run your container to managed databases you can connect to and use.

So if you don't need specialized solutions or minute control over everything, use a managed service to save time; no one likes to set up and maintain hardware.

## Involve Your Users Early To Get Valuable Feedback

You are building for a user, so involve them as early as possible.

I wanted to test my application with users as early as possible. They will have a new view and different ideas and might break the application in a way I did not expect. For this, I had a regular exchange with my testers, asked for their experience, and had some calls to discuss the tool.

Since I was using Google Cloud Run, I could provide them with a public link to the instance of my application, allowing them to connect easily to the application. Cloud Run then started and scaled the application to meet demand.

The tester's feedback allowed me to identify problems quickly, gather new ideas, and improve the application.

## The Cloud Allows You To Change Things Up Easily

Most of the time, things will go differently than planned, but the cloud allows you to make changes quickly.

After my prototype, the testers and I identified many bugs, problems, and possibly new features. In the old world, I have to add new servers, install software and spend days setting up everything to implement these new features. But with the cloud, I can start a new cloud-run instance and a managed DB within minutes. And when I didn't need it anymore, I could delete it, and it was gone in seconds, nothing more to worry about.

Ultimately, it's fast to create and destroy infrastructure in the cloud; use this to iterate, test, and explore to find the best fit for your idea.
Mithril PWA Todo app < 20 kB
Tags: mithril, pwa, mobile, app
Published: 2023-04-10 13:24:16

_This is my 5th write up on dev.to site. Yet another todo app written using Mithril JS._

## Mithril JS ##
As a fan of mobile PWA app development I have written some mobile apps. SPA/PWA (mobile) apps are web pages/apps with some extra features written with combinations of HTML, CSS and JS. 

I used to use [Quasar framework](https://quasar.dev/) (both JS and CSS) and [VueJS](https://vuejs.org/) (v2 --> v3). 

[Mithril JS](https://mithril.js.org/) is another framework for SPA (Single Page Apps). It is one lightweight JS file (cca 10 kB). 

Well, I decided to write simple app with Mithril instead of Vue.

## 16 kB challenge ##
My first idea and challenge was to write lite app under 16 kB complete. The real SPA PWA app, HTML + CSS + JS, service worker, manifest, icon, all together under 16 kB.

And what is the simplest app than todo? There is no one :-) 

As you can suggest from the title of this post, I haven't touch my goal and the entire app has slightly more than 16 kB.

## Todo app ##
My app is under 20 kB total size, one page only with the ability to add, edit and delete todos. It has extra features: you can choose one of four background color of the todo, one of the five languages _- although this is very funny, couse there are few words only to translate -_ and the background color of the app itself with gradient effect.

If you are interested or courious you can check it on its URL address: https://mithril-todo.netlify.app/

It is PWA app, so you can install it to your device (Android, iOS, Windows, Chrome OS).
DevOps Notes
Published: 2023-04-10 13:23:53

1.Installin docker





```
sudo apt-get install docker-engine
apt install docker.io
sudo service docker start






sudo docker run nginx
```

2. docker run nginx
3. docker run -p 80:80 nginx
4.machineport: docker ka port
5.to bandh karne par docker container bandh ho ja raha hai

`docker run -d -p 8080:80 nginx`
6.kon kon se container chal rahe hai
`doker ps`
7. maan lo mai stop karna chahta hu
docker stop 527a82
8.`docker ps -a`
history dekhne ke liye

9. kaise naya port assesable kare:
`ufw allow 5000`




10.sirf 4 likhne se bhi stop ho jayega: aagar koi aur nahi hai to:
11.`docker rm a0`
12.`docker system prune`
13. `docker rum -f 7fa3da8a` : forcefully stop kar dena> container chal raha hai stop mat karo... chal raha hai: then forceflly stop it
14. `docker exec -it 1f12 bash`
15. apt.... vim harrybhai.txt exit
16.  `docker commit 1f12`
17. docker images
18 docker commit 1f12 harry/nginx
19 commit karne se faida kya hua vahi ki aab maine container delete kar diya, and mere paas sirf image bacha hai, and kaise bhi mai usko replicate kar sakta hu aab











![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y3njj407h8rohfmb4ah3.png)
https://dockerlabs.collabnix.com/
Python'da title() method'i nima?
Published: 2023-04-10 13:23:46

## **Sintaksis**

```py
string.title()
```

## **Misollar**
1. **Title() method'i har bir so'zdagi birinchi belgisini katta bo'lgan string sifatida qaytaradi.**

```py
txt = "Welcome to my world"

x = txt.title()

print(x)
```

natija:

```py
# Welcome To My World
```

2. **Agar so'zda raqam yoki simbo'l bo'lsa, undan keyingi birinchi harf Uppercase(katta harf)ga aylantiriladi.**

```py
txt = "w1w2w3 Wel1come 1 to my 1world"
x = txt.title()
print(x)
```

natija: 

```
# W1W2W3 Wel1Come 1 To My 1World
```
Is Node.js Being Killed Off By .NET Core?
Tags: webdev, node, dotnet
Published: 2023-04-10 13:19:12

Node.js and .NET Core are two powerful platforms that have become staples in the world of web development. While both have their unique strengths and use cases, some have been asking whether Node.js is being replaced by .NET Core. Let us take a closer look at the strengths of each platform and examine the scenarios where they excel.

## Node.js & .NET Core – Front Matter

While both Node.js and .NET Core, have their unique strengths and use cases, some have been asking whether Node.js is being replaced by .NET Core. Let’s talk in depth about this big question on everybody’s mind.

On the other hand, .NET Core is a more recent addition to the world of web development. It is an open-source, cross-platform platform that is designed for building large-scale enterprise-level applications. Its seamless integration with the Microsoft ecosystem makes it a popular choice for companies that already use Microsoft products. Furthermore, .NET Core offers high-level security features and excellent performance, making it ideal for mission-critical applications.

## Node.js vs .NET Core: A Comprehensive Comparison
While they share some similarities, let us compare Node.js and .NET Core in terms of performance, scalability, ease of use, community support, and other key factors.


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

According to the Stack Overflow Developer Survey 2022, Node.js is the most commonly used framework, library, or tool for web development, with over 47% of developers using it.

One of the key factors contributing to the popularity of Node.js is its ability to handle many coexisting requests with high performance. This makes it an ideal choice for building real-time applications, such as chat applications and online gaming platforms.

Additionally, Node.js has a vast and active community, which has contributed to the development of numerous third-party packages and libraries, making it easy for developers to create complex applications quickly.

Read detailed Comparison here: https://bit.ly/3nY9i4r
Add program to PATH
Tags: apache, age, winodws, programming
Published: 2023-04-10 13:16:00

We add programs to the environment in Windows to make them easily accessible from the command prompt or any other shell.

When a program is added to the environment, its executable file's path is added to the PATH variable. The PATH variable is a system variable that lists the directories where executable files are located. When a command is entered into the command prompt, the system searches through the directories listed in the PATH variable for the executable file associated with that command.

By adding a program to the environment, you don't have to navigate to the program's directory every time you want to run it. You can simply open the command prompt and run the program by entering its name. Additionally, some programs require other programs or libraries to function properly, and adding them to the environment can make it easier to manage dependencies.

### How to add programs step by step:


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



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



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



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



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



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


Thank you!
How to set up Sending a Low Stock notification for Magento 2 admin
Tags: magento, magento2, magento2tutorial
Published: 2023-04-10 13:15:31

It isn't not difficult to Run an economical internet based store. The director should commit time to errands like observing stock levels, organizing shipments, adjusting market interest, and so forth. These undertakings can at times prompt things being unavailable, which is quite difficult for online stores, all things considered. Assuming that you're utilizing Magento 2, you can empower low-stock email notices to keep steady over stock levels and stay away from stockouts. In this instructional exercise, we'll tell you **_How to set up Sending a Low Stock notification for Magento 2 admin_**.

To address the normal test of unavailable things, Magento 2 administrator can set up sending low stock notices to guarantee opportune renewal of stock. This component, otherwise called Magento 2 low stock notice, permits the administrator to get cautions when the load of a specific thing arrives at a predetermined least level. Unavailable things can adversely influence clients, causing disappointment and expanded shopping basket deserting. To alleviate this, presenting back-in-stock warnings can change over expected clients into real deals and take them back to the store.

For more information, please visit this:- **_[https://webguru.dev/how-to-set-up-sending-a-low-stock-notification-for-magento-2-admin/](https://webguru.dev/how-to-set-up-sending-a-low-stock-notification-for-magento-2-admin/)_**