teleren/devto huggingface dataset:
5 Powerful Ways to Keep Yourself Safe From Today’s Digital Threats
Published: 2024-06-02 10:59:20

Imagine this: you settle down with a cup of coffee, eager to catch up on the latest news. As you scroll through your social media feed, a pop-up ad promises a free vacation – all you need to do is click a link to Keep Yourself Safe and enter your personal details. Intrigued, you hesitate for a moment, then curiosity wins. A click later, your world turns upside down. The link leads to a malicious website designed to steal your information.


**[Clcik Here](https://typewritertale.com/5-powerful-ways-to-keep-yourself-safe/)**
Laravel 11 Custom Component File Structure
Tags: laravel, component, custom, armanrahman
Published: 2024-06-02 10:36:25

Would you like to create a component like this, or do you prefer to develop your own custom component in Laravel with a custom path?

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

Then you need to follow few steps 

Step 1: Create a Service Provider 

```
php artisan make:provider PackageServiceProvider
```
You can name it your own.

Step 2: Add `Blade::componentNamespace('App\View\Backend\Components', 'backend');` on your boot() method

```
<?php

namespace App\Providers;

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;

class PackageServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     */
    public function register(): void
    {
        //
    }

    /**
     * Bootstrap services.
     */
    public function boot(): void
    {
        Blade::componentNamespace('App\View\Backend\Components', 'backend');
    }
}

```

Step 3: Create a php file as per your file structure. I created my file here.

> app\View\Backend\Components\AdminSidebar.php

Step 4: Return your blade directive on render() method. 

```
<?php

namespace App\View\Backend\Components;

use Illuminate\View\Component;
use Illuminate\View\View;

class AdminSidebar extends Component
{
    /**
     * Get the view / contents that represents the component.
     */
    public function render(): View
    {
        return view('backend.components.sidebar');
    }
}

```

Step 5: Create your blade file as you mentioned. For my case I added like this. 

> resources\views\backend\components\sidebar.blade.php

Step 6: Your Component setup is done. now you can access that component by this-
 

```
<x-backend::admin-sidebar />
```

Hope this will help you. Thank You.
BETVND - TRANG CHU NHA CAI BETVND CHINH THUC #1 VIET NAM
Published: 2024-06-02 10:25:49

Betvnd la mot trong nhung san ca cuoc hang dau tai Viet Nam Du moi xuat hien tren thi truong ca cuoc gan day, nhung Betvnd da nhanh chong tao dau an dac biet trong cong dong game thu toan cau. Hay nhanh tay dang ky tai khoan de nhan ngay 200% gia tri nap tien. 
Email: justinowebbie@gmail.com
Website: https://betvnd.shop/
Dien Thoai: (+84) 0584328954 
#betvnd #betvndcasino #nhacaibetvnd #betvndshop #betvndvip #betvnddcc

Social:
https://www.facebook.com/betvndshop/
https://twitter.com/betvndshop
https://www.youtube.com/channel/UCjDWA5GkstAb7TKwm-vK3kA
https://www.pinterest.com/betvndshop/
https://learn.microsoft.com/vi-vn/users/betvndshop/
https://vimeo.com/betvndshop
https://www.blogger.com/profile/01502302323601477291
https://www.reddit.com/user/betvndshop/
https://vi.gravatar.com/betvndshop
https://en.gravatar.com/betvndshop
https://medium.com/@betvndshop/about
https://www.tumblr.com/betvndshop
https://mattdor102.wixsite.com/betvndshop
https://betvndshop.livejournal.com/profile/
https://betvndshop.wordpress.com/
https://sites.google.com/view/betvndshop/home
https://linktr.ee/betvndshop
https://www.twitch.tv/betvndshop/about
https://tinyurl.com/betvndshop
https://ok.ru/betvndshop/statuses/157159266768199
https://profile.hatena.ne.jp/betvndshop/
https://issuu.com/betvndshop
https://www.liveinternet.ru/users/betvndshop
https://dribbble.com/betvndshop/about
https://gitlab.com/betvndshop
https://www.kickstarter.com/profile/2036273283/about
https://disqus.com/by/betvndshop/about/
https://betvndshop.webflow.io/
https://500px.com/p/betvndshop?view=photos
https://about.me/betvndshop
https://tawk.to/betvndshop
https://www.deviantart.com/betvndshop
https://ko-fi.com/betvndshop
https://www.provenexpert.com/betvndshop/
https://hub.docker.com/u/betvndshop
How to add a profile view counter to your GitHub profile in 3 steps
Tags: webdev, github, programming, developers
Published: 2024-06-02 10:19:12

Hello there 😊

In this post you will learn how to setup profile view in **only** 3 steps. 

So let's begin! 😃

---

## 1. Create a [new repository](https://github.com/new)

Note: Please ensure that your username on GitHub <u>matches</u> the repository name. For example, my username is `perisicnikola37` on GitHub, so I named my repository like that. If you encounter an error warning, such as the one on below image, stating that the repository already exists, you can safely disregard it.

![Profile view counter on GitHub](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ubuqsf6rtk3olbibbu6j.png)

---

## 2. Go to your repository

You can access the newly created repository by entering this URL into your web browser's address bar:

```js
https://github.com/perisicnikola37/perisicnikola37
```

**Note**: Change `perisicnikola37` to your actual GitGub username

---

## 3. Edit `README.md` file

All you need to include in it is the following line of code:

```js
![Profile view counter on GitHub](https://komarev.com/ghpvc/?username=perisicnikola37)

```

Note: Similar to the second step, replace `perisicnikola37` with your actual GitHub username

---

## Done 🚀

Now, visit your GitHub profile page by entering the following URL into your browser's address bar:

```js
https://github.com/perisicnikola37 -> change your username 
```

## Voila! 🎉

[![Profile view counter](https://i.postimg.cc/hGrfNfLP/screenshot-29.png)](https://postimg.cc/Z9WbdYs1)

---

📢 Connect with others! 
Upload your profile in comment section to get connected!

Follow me on [GitHub](https://github.com/perisicnikola37) 🚀
Luna Silver: Nơi Hội Tụ Vẻ Đẹp Tinh Khiết Của Trang Sức Bạc
Published: 2024-06-02 09:54:25

[Luna Sliver](https://lunasliver.com/)Trang sức luôn là phụ kiện không thể thiếu, góp phần tôn vinh vẻ đẹp và phong cách cá nhân. Trong số các loại trang sức, bạc luôn được ưa chuộng bởi sự tinh tế và thanh lịch. Luna Silver, một thương hiệu trang sức bạc uy tín, đã chinh phục được trái tim của nhiều người yêu trang sức nhờ vào chất lượng vượt trội và thiết kế độc đáo.

1. Nguồn Gốc Và Ý Nghĩa Của Luna Silver
Luna Silver được thành lập với mục tiêu mang đến cho khách hàng những món trang sức bạc hoàn hảo nhất. Lấy cảm hứng từ ánh trăng dịu dàng và tinh khiết, Luna Silver tượng trưng cho vẻ đẹp thanh thoát, bí ẩn và đầy cuốn hút. Mỗi món trang sức của Luna Silver không chỉ là phụ kiện mà còn là một tác phẩm nghệ thuật, chứa đựng những giá trị tinh thần và cảm xúc.

2. Quy Trình Chế Tác Tinh Xảo
Sự khác biệt của Luna Silver nằm ở quy trình chế tác tỉ mỉ và công phu. Bạc nguyên chất 925 được lựa chọn kỹ lưỡng, đảm bảo độ sáng bóng và bền bỉ. Các nghệ nhân tài hoa của Luna Silver luôn chăm chút từng chi tiết nhỏ nhất, từ khâu thiết kế, tạo hình cho đến hoàn thiện sản phẩm. Chính sự tỉ mỉ này đã tạo nên những món trang sức bạc độc đáo, mang đậm dấu ấn cá nhân.

3. Bộ Sưu Tập Đa Dạng
Luna Silver tự hào sở hữu những bộ sưu tập trang sức đa dạng, từ những mẫu thiết kế đơn giản, thanh lịch đến những kiểu dáng cầu kỳ, phức tạp. Dù bạn đang tìm kiếm một chiếc nhẫn bạc tinh tế, một đôi bông tai trang nhã hay một chiếc vòng cổ ấn tượng, Luna Silver đều có thể đáp ứng nhu cầu của bạn. Các bộ sưu tập của Luna Silver không chỉ bắt kịp xu hướng thời trang mà còn mang đậm nét riêng, giúp bạn thể hiện phong cách cá nhân một cách hoàn hảo.

4. Dịch Vụ Tận Tâm Và Chuyên Nghiệp
Không chỉ chú trọng đến chất lượng sản phẩm, Luna Silver còn đặc biệt quan tâm đến dịch vụ khách hàng. Từ khi bước chân vào cửa hàng cho đến khi rời đi, khách hàng luôn nhận được sự tư vấn nhiệt tình và chuyên nghiệp từ đội ngũ nhân viên. Các chính sách bảo hành, đổi trả minh bạch và linh hoạt cũng là điểm cộng giúp Luna Silver ghi điểm trong mắt người tiêu dùng.

5. Tầm Nhìn Và Sứ Mệnh
Luna Silver luôn hướng tới việc trở thành thương hiệu trang sức bạc hàng đầu, không chỉ trong nước mà còn trên thị trường quốc tế. Sứ mệnh của Luna Silver là mang đến cho khách hàng những sản phẩm trang sức không chỉ đẹp mắt mà còn có giá trị bền vững. Thương hiệu cam kết sử dụng các nguồn nguyên liệu an toàn và quy trình sản xuất thân thiện với môi trường, góp phần bảo vệ hành tinh xanh.
Luna Silver không chỉ là một thương hiệu trang sức bạc, mà còn là người bạn đồng hành đáng tin cậy của những ai yêu thích sự tinh tế và thanh lịch. Với chất lượng vượt trội, thiết kế đa dạng và dịch vụ tận tâm, Luna Silver đã và đang khẳng định vị thế của mình trong lòng người tiêu dùng. Nếu bạn đang tìm kiếm một món trang sức bạc hoàn hảo, Luna Silver chắc chắn sẽ là lựa chọn tuyệt vời dành cho bạn.
Clock App
Tags: clock, css, html, javascript
Published: 2024-06-02 09:40:32

## Clock App with Multiple Functionalities - An Overview

If you're looking for a versatile clock application with a range of built-in features, look no further than the **Clock App** repository by [Sudhanshu Ambastha](https://github.com/Sudhanshu-Ambastha/Clock). This app comes packed with functionalities like a stopwatch, alarm, world clock, and timer to cater to your time management needs effectively. I drew inspiration from the mobile version but made some updates to adapt it to laptop screens and other specifications.

## Features

- **Stopwatch:** Measure time intervals with precision.
- **Alarm:** Set alarms for specific times.
- **World Clock:** Stay updated with the current time in cities around the world.
- **Timer:** Set countdown timers for your activities and tasks.

## Examples

- ![World Clock](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9xpy7awe4v10u4rk1vq1.png)
- ![Alarm Clock](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xlk6sk1qkdyyxxbras8d.png)
- ![Stop Watch](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hd4r8f594owg72vcuc3t.png)
- ![Pomodoro Clock](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0h5ginis0figumgtpa7d.png)
- ![Countdown Timer](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6t7pr96mu0orm6m102u0.png)

You can try out a live preview in the repo as a GIF has been added as a preview.

## How to Use

1. **Clone the repository** to your local machine.
2. **Open the `index.html`** file in a web browser.
3. **Navigate** through different clock functionalities using the tabs.
4. **Set alarms, start timers,** and explore other features as required.

**Technologies Used**
[![My Skills](https://skillicons.dev/icons?i=html,css,js)](https://skillicons.dev)

## Contributing

You can contribute to this project by:
- **Submitting pull requests**
- **Opening issues** for bugs or feature requests

I am also attempting to add a countdown timer animation as an SVG, akin to the one present in the real clock app, but I have yet to succeed in this endeavor as I am facing error in this 😅 so you know how to do it can you suggest me something?? So that I can add this feature in it.

## Deployed Clock Model

Experience the functionalities firsthand by exploring the **[deployed clock model]()**.

Let's make time management more efficient and easier with this Clock App! 🌟

- GitHub repo link: - [Clock App](https://github.com/Sudhanshu-Ambastha/Clock)

- website link for testing: - [Clock App](https://clock-mu-self.vercel.app/)

This repo has garnered 4 stars, 6 clones, and 23 views, making he clock application popular among individuals looking for convenient ways to set alarms, check the time, and manage their daily schedules specially in laptop or pc. While many have cloned my projects, only a few have shown interest by granting them a star. **Plagiarism is bad**, and even if you are copying it, just consider giving it a star.
Error v/s Exception
Tags: javascript, programming, webdev, development
Published: 2024-06-02 09:16:00

Have you ever been confused between an error and an exception? We often tend to use these words interchangeably. Well, they are not the same, since they have nuanced differences. Let us understand these differences with examples.

##Error

An error usually refers to a condition that hinders a program's normal execution. It can be due to issues like:

#### 1. Syntax Errors

Errors which occurs when we have mistakes in our code that prevents the compiler from parsing our program correctly.

```javascript
// Syntax error example:
function greet() {
  console.log("Hello world!"; // SyntaxError: missing ) after argument list
}
```
#### 2. Runtime Errors
Errors that occur during the execution of the program. 

- Reference Errors: When trying to access a variable that doesn’t exist.
- Type Errors: When an operation is performed on an incompatible type.

```javascript
// Reference error example:
console.log(person); // ReferenceError: person is not defined

// Type error example:
let age = 28;
age.toUpperCase(); // TypeError: age.toUpperCase is not a function
```

##Exception

An exception is a specific type of error that can be anticipated, caught and handled. It allows us to handle errors gracefully and does not break the program.

Exception handling involves:

#### 1. Throwing an Exception:

When an error occurs, the program "throws" an exception. We can throw an exception using `throw` keyword.

```javascript
function divide(num1, num2) {
  if (num2 === 0) {
    throw new Error("Division by zero");
  }
  return num1 / num2;
}
```

#### 2. Catching an Exception:

We can handle expections using try...catch...finally block.

```javascript
try {
  divide(1, 0);
} catch (error) {
  console.log(error.message); // Output: Division by zero
} finally() {
  console.log("Done");
}
```

**Note**: finally block is optional and it is executed regardless of whether there was an exception or not.


## Conclusion

In simple terms, all exceptions are errors, but not all errors are exceptions. Errors are problems that can happen in a program, while exceptions are a special type of error that you can "throw" and "catch" to handle them smoothly. Knowing the difference helps you write better and more reliable code.
Need idea to run my React Native runs offline no matter distance (country)
Tags: reactnative
Published: 2024-06-02 09:14:49

I'm working on a React-Native project that works offline and serves people that use the same Public IP address or are on the same WiFi network.

But I want to internationalize (long distance) it using the same Public IP process without internet connection.

Can you give me any idea to make something like unique Public IP address for anybody that uses that application never mind where he is in the world ???

What I'm looking for is an idea that should consider anybody as local network user (with Public IP Address) no matter where (the country he) is living so that to make my application works without internet connection.

Please, give me an idea if you have.
My GitHub Profile
Tags: markdown, profilereadme, commits
Published: 2024-06-02 09:07:32

## Hello, I'm Sudhanshu Ambastha 👋
I'm a dedicated developer who enjoys tackling coding challenges and finding elegant solutions. In my free time, I explore new technologies and contribute to open-source projects. If you're interested in collaborating on exciting projects or discussing tech-related topics, feel free to reach out to me!

**Gratitude**
I recently came across a **_[post](https://dev.to/syeo66/how-i-got-to-2000-followers-on-devto-118e)_** discussing how some followers on this platforms might be bots or spammers. This made me reflect on my own follower count as currently it is **_3536_**, especially considering the significant increase in followers I experienced in a single day. While it's possible that some followers might not be genuine, I am grateful for a total of **_1K views_** on all my posts combined from those who are genuinely engaging with my content. Thank you to everyone who supports me with likes and authentic engagement. Your support motivates me to continue creating valuable content. I will do my best to keep providing the quality content you enjoy.

**GitHub Profile Stats**
_Stars: 3
Clones: 16
Views: 64
Followers: 44_

I truly value the support from individuals like those **44 GitHub followers**. While many have cloned my projects, only a few have shown interest by granting them a star. **_Plagiarism is bad_**, and even if you are copying it, just consider giving it a star. If you're new and want to check traffic or how many people have cloned your project, simply visit your _desired repo > Insights > Traffic_.

I understand that not everyone may choose to star the project, but I kindly ask that if you find it useful, please consider giving it a star. It's a small gesture that means a lot to me and motivates me to generate more innovative ideas.

**Connect with Me**
You can connect with me on **_[GitHub](https://github.com/Sudhanshu-Ambastha)_**, _**[LinkedIn](https://www.linkedin.com/in/sudhanshu-ambastha-8a0b332a4/)**_ and support my work there, just as you do on **dev.to** and on **_[X](https://x.com/Sudhanshu79093)_**. Your continued support is crucial, and together we can achieve even greater milestones.

Thank you once again, and let's keep pushing the boundaries of what's possible in tech!
Django and PostgreSQL
Published: 2024-06-02 09:06:36

## Install Django on Mac:
 
```
python3 -m pip install Django
```
 
## Installing Django Project:
 
 ```
django-admin startproject mysite
```
 
## View the project

```
tree mysite
mysite
├── manage.py
└── mysite
    ├── __init__.py
    ├── asgi.py
    ├── settings.py
    ├── urls.py
    └── wsgi.py

2 directories, 6 files
```

These files are:

- The outer mysite/ root directory is a container for your project. Its name doesn’t matter to Django; you can rename it to anything you like.
- manage.py: A command-line utility that lets you interact with this Django project in various ways. You can read all the details about manage.py in django-admin and manage.py.
- The inner mysite/ directory is the actual Python package for your project. Its name is the Python package name you’ll need to use to import anything inside it (e.g. mysite.urls).
m- ysite/__init__.py: An empty file that tells Python that this directory should be considered a Python package. If you’re a Python beginner, read more about packages in the official Python docs.
- mysite/settings.py: Settings/configuration for this Django project. Django settings will tell you all about how settings work.
- mysite/urls.py: The URL declarations for this Django project; a “table of contents” of your Django-powered site. 
You can read more about URLs in URL dispatcher.
- mysite/asgi.py: An entry-point for ASGI-compatible web servers to serve your project. See How to deploy with ASGI for more details.
- mysite/wsgi.py: An entry-point for WSGI-compatible web servers to serve your project. See How to deploy with WSGI for more details.

```
cd mysite
python3 manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
May 01, 2024 - 05:29:06
Django version 5.0.4, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

[01/May/2024 05:29:21] "GET / HTTP/1.1" 200 10629
Not Found: /favicon.ico
[01/May/2024 05:29:22] "GET /favicon.ico HTTP/1.1" 404 2110
```


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

You’ve started the Django development server, a lightweight web server written purely in Python. We’ve included this with Django so you can develop things rapidly, without having to deal with configuring a production server – such as Apache – until you’re ready for production.
Getting Started with Nodejs
Published: 2024-06-02 09:04:28

Node.js, built on Chrome's V8 JavaScript Engine, is a powerful JavaScript runtime that extends its capabilities to the server-side. Its asynchronous, event-driven nature, coupled with a non-blocking IO model, makes it exceptionally fast and efficient.

## Understanding Node.js

Node.js operates on an event-driven architecture, initializing all variables and functions and waiting for events to occur. Its asynchronous nature ensures that it doesn't block itself for one request but moves swiftly to the next, enhancing performance.

## Getting Started

Let's walk through creating a simple Node.js application step by step. We'll create a basic web server using Express.js and render a dynamic webpage using Handlebars as the templating engine.

## Step 1: Set Up Your Project

Create a new directory for your project and navigate into it:

```
mkdir my-node-app
cd my-node-app
```

## Initialize a new Node.js project:

```
npm init -y
```

This will create a package.json file with default settings.

## Step 2: Install Dependencies

Install Express.js and Handlebars as dependencies:

```
npm install express hbs
```

## Step 3: Create Your Server

Create a file named `app.js` in your project directory and open it in your code editor.

```
// Import required modules
const express = require('express');
const hbs = require('hbs');
const path = require('path');

// Create an Express app
const app = express();

// Set the view engine to Handlebars
app.set('view engine', 'hbs');

// Set the path for views and partials
app.set('views', path.join(__dirname, 'views'));
hbs.registerPartials(path.join(__dirname, 'views', 'partials'));

// Define routes
app.get('/', (req, res) => {
    // Render the index page with dynamic data
    res.render('index', {
        title: 'Home',
        author: 'Your Name'
    });
});

// Start the server
app.listen(3000, () => {
    console.log('Server is running on port 3000');
});
```

## Step 4: Create Your Views

Create a directory named views in your project directory. Inside this directory, create two files: index.hbs and partials/header.hbs.

File: `index.hbs`

```
<!DOCTYPE html>
<html>
<head>
    <title>{{ title }}</title>
</head>
<body>
    {{>partials/header}}
    <h1>Welcome to {{ title }}</h1>
    <p>Written by {{ author }}</p>
</body>
</html>
partials/header.hbs:
```

File: `partials/header.hbs`:

```
<header>
    <h1>My Node.js App</h1>
    <nav>
        <ul>
            <li><a href="/">Home</a></li>
        </ul>
    </nav>
</header>
```

## Step 5: Run Your Application

Navigate to your project directory in the terminal and run your Node.js application:

```
node app.js
```

Visit [http://localhost:3000](http://localhost:3000) in your web browser to see your Node.js application in action.

That's it! You've created a simple Node.js application with Express.js and Handlebars. Feel free to expand upon this example by adding more routes, views, or functionality as needed.
Babylon.js Browser MMO - DevLog - Update #2 - 8 way WASD movement
Tags: babylonjs, gamedev, indie, mmo
Published: 2024-06-02 08:33:58

Hello,

Here's another brief update on the progress. I've been considering different movement types for the game: go-to-click, WASD, 8-way WASD, or something else. While go-to-click is easy to implement, it often feels clumsy and makes the gameplay static. WASD, like in WoW, is a good option but not quite what I'm aiming for.

I've decided that an 8-way WASD setup would be the best fit. It's more dynamic and provides a gameplay feel similar to Diablo. It might end up being a hybrid with go-to-click, but we'll see how it evolves. :)

The implementation is not perfect yet and has some bugs, but I think it's sufficient for now. :) The jittering you see is due to the lack of client-side prediction. I plan to add that in the near future  :)

Hope You like it!

{% youtube Pp0fiRF2UhM %}