teleren/devto huggingface dataset:
How to reload your .zshrc file in Terminal
Tags: mac, abotwrotethis
Published: 2023-04-06 09:35:02

If you're using zsh as your default shell, you'll probably have a .zshrc file that's responsible for storing all your custom configurations, aliases, functions, and environment variables. When you make changes to this file, you'll need to reload it so that the changes take effect in your current session.

Here's how you can reload your .zshrc file in Terminal:

## Method 1: Source the file

One way to reload your .zshrc file is to use the source command. The source command reads the commands in the file and executes them in the current shell environment.

To use the source command, open Terminal and type the following command:

```bash
source ~/.zshrc
```

This will reload your .zshrc file and apply any changes you've made to it. You should now see the new aliases, functions, and environment variables that you added.

## Method 2: Use the dot operator

Another way to reload your .zshrc file is to use the dot operator. The dot operator is a shorthand way of using the source command.

To use the dot operator, open Terminal and type the following command:

```bash
. ~/.zshrc
```

This will also reload your .zshrc file and apply any changes you've made to it.

## Method 3: Restart your Terminal session

If you prefer a more foolproof way of reloading your .zshrc file, you can simply restart your Terminal session.

To do this, close your Terminal window and open a new one. This will create a new shell environment that reads your .zshrc file from scratch. This method is guaranteed to work, but it also takes longer than the previous two methods.

## Conclusion

Reloading your .zshrc file is an essential task when you're customizing your shell environment. You have three methods to choose from, depending on your preference and the situation you're in. The source command and the dot operator are quick and easy ways to update your configurations on the fly, while restarting your Terminal session is a surefire way to apply changes to your shell environment.

Make sure to save your changes to your .zshrc file before reloading it. Once you've reloaded it, you can test your configurations to see if they're working as intended. If there are any issues or errors, you can always go back and edit your .zshrc file again.
What is Store View in Magento 2
Tags: magento, magento2, magento2tutorial
Published: 2023-04-06 09:11:54

**_What is Store View in Magento 2_**? Magento 2 is a framework that empowers the making of store perspectives, stores, and sites, which can all be overseen through a solitary administrator board, giving clients a wide assortment of top notch items.

Magento 2 considers the formation of a site with numerous stores, each with unmistakable plans, purposes, and item contributions. Store Perspectives, thus, are varieties of similar store in various dialects. Each Magento 2 store accompanies a default store view, and extra store perspectives can be made to give language backing to clients from various nations. This empowers clients to explore the store in their favored language.

For more information, please visit this:- [https://webguru.dev/what-is-store-view-in-magento-2/](https://webguru.dev/what-is-store-view-in-magento-2/)
PHÒNG KHÁM ĐA KHOA ĐẠI VIỆT
Published: 2023-04-06 09:09:42

Theo phương châm: Uy tín, an toàn, chất lượng, phòng khám xây dụng đội ngũ bác sĩ chuyên môn vững vàng, và tâm đức cao trong việc tìm lại sức khỏe cho bệnh nhân.
[Phòng khám đa khoa Đại Việt](https://phongkhamdakhoadaiviet.com/)
Let's discover: docker init command
Tags: docker, video, beginners
Published: 2023-04-06 08:46:50

---
title: Let's discover: docker init command
published: true
description: Discover a new command, or tool or technology in short and in video
tags: Docker, video, beginners
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x5ktqmx6n40ek08c1eu8.png
---

Welcome in this new (serie of?) article titled: "Let's discover".

This time, no sketchnotes, but we will discover a new tool, a new technology or this time, a new command that I wait for a loooonnggg time: `docker init` command.

# Docker init

In short: `docker init` allows you to dockerize your application. That's it! :-) 

When you execute `docker init` command in your project, in your repository for example, it generates for you:

* a `Dockerfile`
* a `.dockerignore`
* and a ~~`docker-compose.yaml`~~ `compose.yaml` file

So after executing `docker init` command you just have to build and run your container or run it through docker compose and test your application :-).

# Test it!

Stop the blahblah, let's discover and test this new `docker init` command, in video! :-) 

{% youtube 9CDnTW_uIOM %}

As you can see, the `docker init` command is in **Beta** and you need to update Docker Desktop to version [4.18](https://www.docker.com/blog/docker-desktop-4-18/).
~~At the moment it only supports the Go language and the teams are working to support Python, Rust, Node.js, Java and even .Net languages.~~  
Edit: At the moments it supports Go, Python, Rust & Node.js and the teams are working to support Java and even .Net languages.
If you want a support for a specific language or a framework, you can [ask to Docker](https://docs.google.com/forms/d/e/1FAIpQLSd3QBffQRLOihKD2G4rjsq0gQSG4oLT74Is062BQsnhxlPvEA/viewform).

# Conclusion

As I said before, I have been waiting for this command for a long time.

I love to fine-tune my DockerFile in order to have small Docker images but I like when things are easy and frictionless and I know it's not easy to create a simple DockerFile when you start (and even when you know Docker technology ^^) so I'm happy with this new feature and I hope it can help a lot of people to start their Docker and Containers journey! :-)
Catflix - Free streaming for cats
Tags: cat, nextjs, react, catflix
Published: 2023-04-06 08:37:29

Hello cat lovers! 

Are you one of those who adore their cats? Then you're in the right place! A brand new cat video platform is here for you! Whether you're a fan of black and white kittens, Siamese cats, or Scottish Folds, our platform is the perfect place for everyone who wants to enjoy the video content of their beloved furry friends!

[CATFLIX](catfliks.com)
THE TECHNICALITIES OF AMBIGUITY DETECTION
Tags: webdev, imbiguitydetection, ai, javascript
Published: 2023-04-06 08:22:01

If you're struggling to understand and identify ambiguity in natural language, then you should check out the recent blog post from Soffos.ai, titled "The Technicalities of Ambiguity Detection." The article breaks down the complex process of human interaction, starting with exchanging messages through language, and then subconsciously or consciously processing the data for understanding and comprehension. The post also explains how machines can better interpret and respond to human queries and commands, making it easier for people to interact with technology in a more intuitive way. The post then delves into different types of ambiguity, such as lexical, syntactic, and semantic ambiguity, and how Ambiguity Detection can be used to identify and flag ambiguous statements and sentences within a body of text. Check it out if you want to improve your understanding of ambiguity and natural language processing.

Post link: [Ambiguity detection](https://www.soffos.ai/developer-blog/the-technicalities-of-ambiguity-detection)
Mealtime: A Beginner-Friendly API for Simplified Meal Data
Published: 2023-04-06 08:16:17

Hello fellow developers! I'm excited to share my latest project, Mealtime, a beginner-friendly API built on top of the MealDB database. This project is designed to help beginners learn how to interact with APIs and practice their programming skills. 

**Project Overview**

Let me share a funny story about how Mealtime came to be. As a recent graduate with a passion for programming, I tried to teach my wife, who is a self-proclaimed "newbie" in coding, how to interact with APIs. However, I quickly realized that the complex APIs and data structures I was explaining were overwhelming for her, this It made me realize that there was a need for a more beginner-friendly approach to API interactions.

That's when I came up with the idea of Mealtime. I wanted to build an API that would make it easy for beginners to learn the ropes of programming without feeling overwhelmed. With humility and self-criticism in mind, I set out to create a simple and user-friendly API that would strip away the complexities and present only the essential meal information.

**Technical Details**

Mealtime is built using Node.js, Express, and PostgreSQL. The data is fetched from the MealDB API using Axios. The code snippet below shows an example of the seeding process for inserting chicken meal data into the "chickenMeals" table in the database:

`const insertChickenMealsData = async () => {
  try {
    const chickenMealData = await requestChickenMeals();
    for (const meal of chickenMealData) {
      const query = {
        text: ``
              INSERT INTO chickenMeals (title, category, instructions, image, youtube, ingredients)
              VALUES ($1, $2, $3, $4, $5, $6::json)
            `,
        `values: [
          meal.title,
          meal.category,
          meal.instructions,
          meal.image,
          meal.youtube || null,
          JSON.stringify(meal.ingredients),
        ],
      };`
`
      await db.query(query);
    }
    console.log("inserted data into chicken table successfully");
  } catch (err) {
    console.error("Error inserting chicken meal data:", err);
  }
};`


After successfully seeding the database, my next step is to create the endpoints for the API. These endpoints will allow users to interact with the meal data and perform various CRUD operations.

Once the endpoints are up and running, users will be able to access meal data, add new meals, update existing meals, and delete meals as needed.

I'm open to contributions and assistance from fellow developers! If you're interested in helping out or have any suggestions, please feel free to send me a message.

**Feedback and Opinions**

As this project is still a work in progress, I would greatly appreciate your feedback and opinions! If you have any suggestions, comments, or questions, please feel free to share them in the comments section below. Your feedback will be valuable in shaping the direction of this project and making it even more beginner-friendly.

Repository:
You can find the code for Mealtime on my GitHub repository: [https://github.com/vincenzochiovaro/Mealtime-backend]()
Showing off my crazy JS projects
Tags: javascript, discord, webdev, news
Published: 2023-04-06 08:14:18

I've built so many JS projects in private and all of them were a new learning experience for me. I think I've mastered JavaScript enough to start sharing what I've learned and what did I make to learn it. That's why I've [created a Discord server for all things Front-End development](https://discord.gg/a62gfaDW2e). I can help you fight your JS code and share FE news as soon as I learn about them.

I am strong believer in learning by doing, at least that's how my brain is wired to understand stuff. So I will also be sharing my crazy private projects there like: "Code editor that I've fully built using <canvas>".

{% embed https://www.youtube.com/watch?v=-YlwF9Vh69k %}
If you want to join, feel free to use this invite link: https://discord.gg/a62gfaDW2e
Come say hello!
Underrated disparities b/w var, let and const you should be aware of [Part-1]
Tags: javascript, beginners, webdev, programming
Published: 2023-04-06 08:09:16

We all know that var, let and const are keywords in Javascript with their own behaviours while declaring variables using them, such as SCOPING & RE-DECLARATION bla..bla..bla...

But here I will just give keep it short and simple with multiple parts, so that you won't get lost in an overwhelming bunches of words and sentenses.
so get ready for a short series of content chunks⚡

## THE SCOPE 🔭
That's just a set of curly braces { } 👇🏻

![Representation of Scope in Javascript](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/67tgofku9qi7h2hyeyft.png)
If they belong to a function then it's called as Function Scope 👇🏻 

![Representation of Function Scope in Javascript](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fj4af4f9wl6108yg8cav.png)
and the space which is outside of both Function-scope and scope (Just a curly-brace set Shown in first image), is the Global Scope 👇🏻


![Representation of Global Scope in Javascript](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hwnpsnlidxjbjemim8fx.png)

And that's a short and sweet overview of the SCOPE.
Unleash the Power of OpenShift on Windows 10 with CodeReady Containers!
Tags: openshift, windows, devops, ocp
Published: 2023-04-06 08:04:41

📚 http://bit.ly/3K722uk This guide covers everything you need to know about installing #CodeReadyContainers on your #Windows 10 machine, from system requirements to step-by-step installation instructions. Perfect for developers looking to experiment with #OpenShift! #DevOps
A Beginner's Guide to For, While, and Nested Loops in JavaScript-
Tags: javascript, loops, programming, coding
Published: 2023-04-06 07:43:52

If you're learning to code in JavaScript, you'll quickly find that loops are a fundamental part of the language. Loops allow you to repeat a block of code multiple times, making your code more efficient and flexible. There are three types of loops in JavaScript: for, while, and nested loops. In this post, we'll explore each type of loop in detail, and provide examples to help you understand how they work.

For Loops

A for loop is used to iterate over a range of values, such as an array or a string. The basic syntax for a for loop looks like this:

for (initialization; condition; increment/decrement) {

Code to be executed

}

Let's break down each part of the " for loop "syntax:

Initialization: This is where you set the initial value of the loop variable. For example, if you want to loop through an array, you might set the loop variable to 0.

Condition: This is the condition that is checked before each iteration of the loop. If the condition is true, the loop continues; if it's false, the loop ends.

Increment/decrement: This is how the loop variable is changed on each iteration of the loop. You can either increment the loop variable (i++) or decrement it (i--).

Example 1: Printing numbers from 1 to 5

for (let i = 1; i <= 5; i++) {

console.log(i);

}

This will output:

1

2

3

4

5

While Loops:

A while loop is used when you don't know how many times you need to iterate, but you know the condition that must be met for the loop to continue. The basic syntax for a while loop looks like this:

while (condition) {

Code to be executed

}

The condition is checked before each iteration of the loop. If it's true, the loop continues; if it's false, the loop ends. Here's an example of a while loop that generates random numbers until a number greater than 0.5 is generated:

let randomNum = Math.random();

while (randomNum <= 0.5) {

console.log(randomNum); randomNum = Math.random();

}

Nested Loops:

A nested loop is a loop inside another loop. Here's an example of how to use nested loops to print out all the possible combinations of fruits and colors:

let fruits = ["apple", "banana", "orange"]; let colors = ["red", "yellow", "orange"];

for (let i = 0; i < fruits.length; i++) {

for (let j = 0; j < colors.length; j++) {

console.log(fruits[i] + " " + colors[j]);

}

}

This will output :

apple red

apple yellow

apple orange

banana red

banana yellow

banana orange

orange red

orange yellow

orange orange

Conclusion

Loops are an essential part of JavaScript programming. For loops are used to iterate over a range of values, while loops are used when you don't know how many times you need to iterate, and nested loops are used when you need to perform multiple iterations over two or more arrays. By understanding the basics of loops.
Python Image Segmentation Made Easy with OpenCV and K-means Algorithm
Tags: python, openc, imageprocessing, computervision
Published: 2023-04-06 07:36:56

Discover how to perform image segmentation using Python, OpenCV, and K-means clustering.

In this tutorial, you'll discover how to divide an image into multiple segments or regions based on certain criteria, and extract useful insights from the image. 
You'll learn how to apply K-means clustering to an image, and how to adjust the number of clusters to change the segmentation results. 
Whether you're interested in object detection, tracking, or recognition, this tutorial is an essential resource for anyone working with images. 

If you are interested in learning modern Computer Vision course with deep dive with TensorFlow , Keras and Pytorch , you can find it here  : http://bit.ly/3HeDy1V

Before we continue , I actually recommend this book for deep learning based on Tensorflow and Keras : https://amzn.to/3STWZ2N

Check this tutorial:  https://youtu.be/a2Kti9UGtrU

#ImageProcessing #Python #OpenCV #KMeansClustering #ComputerVision
Javascript bilimlaringizni oshiring: Siz bilmagan 5 ta operatorlar bilan tanishamiz.
Tags: javascript, tutorial, webdev, programming
Published: 2023-04-06 07:33:31

Dasturchi sifatida ishlatadigan texnologiyalarimizdagi yangi xususiyatlarni muntazan o'rganib boramiz. Endi boshlagan dasturchilar uchun bu dasturlash tilini o'rganishning bir qismi bo'lishiga qaramasdan, middle hamda senior darajadagi dasturchilar bo'sh vaqtlarini tilning yangi imkoniyatlarini o'rganish bilan o'tkazadilar.  Ba'zan bu xususiyatlarni tushunish qiyin yoki ular uchun yetarlicha vaqt ajrata olmaymiz. Bu maqolada Javascript uchun nisbatan yangi bo'lgan optional chaining, nullish coalescing operator,  conditional operator, nullish assignment va nullish equality operatorlari haqida ma'lumotga ega bo'lasiz.

## Optional chaining (?.)
Optional chaining operatori ob'ektning xususiyati qiymatini olish yoki uning metodini chaqirish uchun ishlatiladi. Agar bu xususiyat yoki chaqirilgan metodning qiymati `undefined` yoki `null` bo'lsa, optional chaining ishlatilgan ifoda xatolik qaytarish o'rniga `undefined` ga teng bo'ladi. Misol uchun:

```js
const sayohatchi = {
  ism: "Alijon",
  yosh: 22,
  manzil: {
    nom: "Toshkent"
  }
}

console.log(sayohatchi.joylashuv?.nom);
// Natija: undefined

console.log(sayohatchi.metodNomi?.());
// Natija: undefined
```
BEST COLLEGE FOR B PHARMA
Tags: bpharma, seo, collegs, programming
Published: 2023-04-06 07:15:07

Meerut has the most popular bpharma colleges in India, offering quality education and career opportunities for students. If you are looking to pursue a bpharma degree, it is essential to have detailed information of college fees structure in Meerut.

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

In this article, we’ll explore the fees structure of various bpharma colleges in Meerut, as well as other related details such as eligibility criteria and admission procedures.This article provides all the important details that potential college students should consider when making their decision.

B Pharma fees in Meerut, [charged by different colleges](https://bit.ly/3Mo2APm), are:

We have Shortlist the B.Pharma College of Meerut according to the fees Structure so that you can take admission in B.Pharma comfortably.

We have mentioned b.pharma first year fees in this article according to various resources.
why laravel is becoming important these days
Tags: webdev, laravel, softwaredevelopment
Published: 2023-04-06 07:05:02

 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgcc74kedquaxv6m6k50.png)
 Laravel is a PHP-based open-source web application framework that has gained a lot of popularity in recent years. The framework is known for its elegant syntax, clean code structure, and numerous built-in features that make it easy to develop web applications quickly and efficiently. Laravel's ease of use, combined with its robust set of features, has made it a preferred choice for many developers and businesses.

One of the main reasons why Laravel is becoming increasingly important is its ability to simplify web development. The framework's architecture is designed to be modular, making it easy to add or remove components as required. This modularity allows developers to write clean and organized code that is easier to maintain and scale. Additionally, Laravel's built-in features such as routing, authentication, and database migrations make it easy to get started with web development quickly.

Laravel's popularity is also attributed to its robust security features. Security is a major concern for web developers, and Laravel addresses this concern by offering built-in security features such as CSRF protection, encryption, and password hashing. These features help developers to build secure web applications with fewer vulnerabilities, ensuring that user data is kept safe and secure.

Furthermore, Laravel is highly customizable and can be tailored to meet the unique needs of a business. The framework has a vibrant community that has created numerous third-party packages, libraries, and tools that extend Laravel's capabilities. These packages enable developers to add new functionalities to their web applications with ease and speed.

Another reason why Laravel is becoming important is its compatibility with cloud-based technologies. Cloud-based services such as AWS, Google Cloud, and Microsoft Azure are becoming increasingly popular, and Laravel is designed to work seamlessly with these services. This compatibility enables businesses to build and deploy web applications quickly and easily on cloud platforms, reducing costs and improving scalability.

In conclusion, Laravel's popularity is a result of its simplicity, security, customizability, and compatibility with cloud-based technologies. The framework has a vibrant community that is constantly contributing to its development, ensuring that it remains relevant and up-to-date. As the demand for web development continues to grow, Laravel is poised to become even more important in the coming years.
[Hire Laravel developer India](https://www.iroidtechnologies.com/hire-a-developer/hire-laravel-developers)