teleren/devto huggingface dataset:
Markdown яаж хэрэглэх вэ?
Published: 2024-01-29 08:32:41

**Lorem Ipsum** is _simply_ dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

```js
import { getDevice, getDevices } from '../services';

export const resolvers = {
  Query: {
    getDevices: async () => {
      try {
        return await getDevices();
      } catch (error) {
        console.error('Error in resolver for getDevices: ', error);
        throw new Error('Failed to fetch devices');
      }
    },

    getDevice: async (_: unknown, { id }: { id: string }) => {
      try {
        const data = await getDevice(id);
        return data;
      } catch (error) {
        throw new Error('Failed to fetch device with ID');
      }
    },
  },
};


```
1 Tip I Would Give to Every Junior Developer Who Wants To Land A Role At A Big Tech Company
Tags: frontend, tips, webdev, beginners
Published: 2024-01-29 08:31:09

Do you want to work as a junior frontend developer in a big tech company?

I've been a software engineer for over 5 years, specializing in frontend engineering for the past 3 years. From my experience, landing this role requires:

Passing complex coding interviews,

Demonstrating a knack for problem-solving and

Showing your ability to learn quickly

So, here's the 1 tip I would give you if you wanted to pursue a similar career path:

## Cultivate unwavering confidence in yourself and your ability to succeed.

If you don't believe in yourself, you'll have a hard time landing a great job for 3 reasons:

- **Reason #1: You'll struggle to convince your interviewer that you're the right person for the job.** In fact, if you keep second-guessing, it signals you might struggle with real-world challenges, wasting time undoing and redoing decisions.

- **Reason #2: You're more likely to quit when faced with setbacks.** There was a time when I thought I could never be a developer. Because of that, every problem seemed insurmountable. Shifting to believing in myself cleared doubts, allowing me to focus on gaining the right skills.

- **Reason #3: Settling becomes tempting.** When you don't believe in yourself, you might accept less than you're worth. Remember, at big companies, you can generally negotiate. Undervalue yourself, and you'll likely lowball.

---

Thank you for reading this post 🙏.

Leave a comment 📩 to share more tips.

And Don't forget to Drop a "💖🦄🔥".

If you like articles like this, join my **FREE** newsletter, **[FrontendJoy](https://frontendjoy.substack.com/)**, or find me on [X/Twitter](https://twitter.com/_ndeyefatoudiop).
NGINX Cheatsheet: A Quick Reference Guide
Tags: webdev, javascript, node, nginx
Published: 2024-01-29 08:30:00

NGINX is a powerful and versatile web server that is widely used to serve static content, reverse proxy, and load balance across servers. Whether you're a beginner or an experienced user, having a cheatsheet handy can save time and help you navigate NGINX configurations efficiently. Let's dive into a quick reference guide for NGINX.

## Installation and Basic Commands

### Installation
```bash
sudo apt-get update
sudo apt-get install nginx
```

### Start/Stop/Restart NGINX
```bash
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
```

### Check NGINX Configuration
```bash
nginx -t
```

## Configuration File Locations

- Main configuration file: `/etc/nginx/nginx.conf`
- Server block configuration: `/etc/nginx/sites-available/`
- Enabled server block symlink: `/etc/nginx/sites-enabled/`

## Server Blocks

### Basic Server Block Structure
```nginx
server {
    listen 80;
    server_name example.com www.example.com;

    location / {
        # Configuration for handling requests
    }
}
```

### Redirect HTTP to HTTPS
```nginx
server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://$host$request_uri;
}
```

## Locations and Directives

### Root Directive
```nginx
location / {
    root /path/to/your/files;
    index index.html;
}
```

### Proxy Pass
```nginx
location /app {
    proxy_pass http://backend_server;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
}
```

### URL Rewriting
```nginx
location /blog {
    rewrite ^/blog/(.*)$ /$1 break;
}
```

## SSL Configuration

### SSL Certificate
```nginx
ssl_certificate /path/to/your/certificate.crt;
ssl_certificate_key /path/to/your/private.key;
```

### Enable SSL
```nginx
server {
    listen 443 ssl;
    server_name example.com;

    # SSL configuration here
}
```

### SSL Redirect
```nginx
server {
    listen 80;
    server_name example.com;
    return 301 https://$host$request_uri;
}
```

## Load Balancing

### Round Robin Load Balancing
```nginx
upstream backend {
    server backend1.example.com;
    server backend2.example.com;
}

server {
    location / {
        proxy_pass http://backend;
    }
}
```

This cheatsheet covers essential NGINX configurations, but remember to consult the official documentation for more in-depth details. NGINX's flexibility allows it to be used in various scenarios, making it a crucial tool for web server management.
How to Find Profitable Dropshipping Products in India
Tags: ecommerece, dropshipping, construction, gst
Published: 2024-01-29 08:29:12

Introduction
Dropshipping is a business model that allows entrepreneurs to sell products without actually stocking the products themselves. Instead, when a customer places an order, the dropshipper purchases the item from a third party supplier and has it sent directly to the customer. This allows aspiring entrepreneurs to get into e-commerce without a large initial investment in inventory.


However, finding the right products to sell that will actually be profitable is one of the biggest challenges with dropshipping.

 Here are some tips for finding successful dropshipping products in the Indian market:

Know more about : Dropshipping in India: How to Start and Succeed

Research High Demand Categories
The first step is to research which product categories are in high demand from Indian consumers. Look at top selling categories on Amazon India and Flipkart to get an idea. Some categories to consider include electronics, clothing, jewelry, beauty products, kitchen products etc. Analyze what's already selling well to tap into existing demand.
Check Reliable Suppliers
Once you identify popular categories, search for reliable Indian or Chinese suppliers that offer dropshipping fulfillment for those products. Make sure the supplier has sufficient inventory of your choices and can deliver quickly to reduce shipping times and costs.
know more about : How to Find Profitable Dropshipping Products in India
Evaluate Market Trends
Don't just look at current sales, research growing trends and upcoming trends that may take off in India. For example, assess growing demand for newer electronics as incomes rise. Evaluate social media to predict future preferences.
know more about :Pros and Cons of Dropshipping in India
Test Multiple Products
Don't put all eggs in one basket, test selling several potential products simultaneously. Track metrics like views, carts, orders etc. to find your best sellers. This lets you analyze consumer response without risks.
know more about : 30 Top Dropshipping Websites to Source Products in India

Ensure Profitability
Compute your detailed costs and set competitive prices with at least 30-40% margin. Consider value additions like bundles or services. Products must be profitable online.
Conclusion
With research and testing, dropshipping provides opportunities to profit from India's booming e-commerce. Identifying products with existing and growing demand through suppliers and competitor research can help optimize for success.
moviesjoy
Tags: webdev, programming, python, productivity
Published: 2024-01-29 08:17:03

Moviesjoy is a no-cost streaming platform where users can enjoy complete movies and TV shows without signups or downloads. With an extensive catalog of new and classic titles, Moviesjoy makes it easy to find and instantly stream your favorite high-quality content. Users can browse by genre or search for titles.Phone: 510-530-2062Address: 3715 Lincoln Ave, Oakland, CA 94602, United StatesEmail: info@moviesjoy.watchHashtag: #moviesjoy, #moviesjoywatch, #moviesjoyplus, #moviesjoyalternative, #moviesjoyalternatives, #moviesjoyto [https://moviesjoy.watch/](https://moviesjoy.watch/)
Python series launch | chai aur python for beginners
Tags: webdev, python, chaiourcode, programming
Published: 2024-01-29 08:08:18

Exciting news! Our new playlist 'Chai aur Python' is now live.

After focusing on JavaScript, our channel is expanding to include Python content. Python, a language favored by experienced programmers for its versatility, is the main highlight of our introductory video. We promise a deep dive into Python, making learning enjoyable and rewarding. Explore the fascinating backstory behind Python's creation and insights from the experts at Pythonanywhere.com. The playlist will cover Python basics, perfect for beginners, yet offering depth for future exploration. Through personal experiences, we share the journey from underestimating the role of programming to realizing its importance during cybersecurity exploration. Python's user-friendly nature and its applications in data extraction, analysis, cloud computing, and data science will be extensively covered. We are committed to taking a different approach to teaching, ensuring an engaging and balanced learning experience. Stay tuned for regular uploads, ensuring a fun and enriching learning journey.

Join us in the comment section to share your thoughts and help us spread the word about the series!
NestJs 유저 유효성 체크, 2024-01-29
Tags: nestjs
Published: 2024-01-29 08:08:01

유효성 체크를 하기 위해서 필요한 모듈 설치

```
npm install class-validator class-transformer --save
```

_참조 : https://www.youtube.com/watch?v=3JminDpCJNE&t=13257s_
How to Install Docker on Ubuntu for Development
Tags: webdev, beginners, tutorial, docker
Published: 2024-01-29 08:05:29

Docker is an essential tool for developing web applications with Laravel and most other projects. It allows you to create and run isolated containers that contain everything you need to run your code.

To [install Docker]([Install Docker Engine on Ubuntu | Docker Docs](https://docs.docker.com/engine/install/ubuntu/#installation-methods)
) on Ubuntu, start by running the following command in our terminal to download and execute the Docker installation step.

```
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
```

Verify that Docker is installed correctly by running:

```
docker --version
```

You should see something like this:

```
Docker version 20.10.8, build 3967b7d
```

## Adding the User to the Docker Group

To run docker commands without sudo, you need to add your user account to the docker group. This will also prevent permission errors when working with docker files and directories.

To add your user to the docker group, follow these steps:

- Create the docker group if it doesn't exist:

```bash
sudo groupadd docker
```

- Add your user to the docker group, replacing `$USER` with your username:

```bash
sudo usermod -aG docker $USER
```

- Log out and log back in for the changes to take effect. Alternatively, you can run this command to activate the changes:

```bash
newgrp docker
```

- Verify that you can run docker commands without sudo:

```bash
docker run hello-world
```

You should see a message saying "Hello from Docker!" This means that you have successfully added your user to the docker group.

You have successfully installed Docker on Ubuntu. You can now create and run containers for your Laravel projects.

Next, we will use DDEV to make Laravel development easier in Docker.
SQL Deep Dive: Mastering DATEDIFF with Code Examples
Tags: datediff
Published: 2024-01-29 08:00:00

### Introduction

Delving into database development, the **`DATEDIFF`** function in SQL is a cornerstone for time-related calculations. This article provides an in-depth look at **`DATEDIFF`**, complete with code snippets for practical understanding.

### Hands-on with DATEDIFF

**`DATEDIFF`** calculates the difference between two dates, crucial for tracking durations in database management.

### In-Line Code Examples

1. **Project Milestone Tracking**:
    
    ```sql
  SELECT ProjectID, DATEDIFF(day, StartDate, EndDate) AS DurationDays
    FROM Projects;
    
    ```
    
2. **Employee Tenure Calculation**:
    
    ```sql
    SELECT EmployeeID, DATEDIFF(year, HireDate, CURRENT_DATE) AS YearsWithCompany
    FROM Employees;
    
    ```
    

### DATEDIFF Variations in Popular DBMSs

Understanding **`DATEDIFF`** across databases is key. In MySQL, it returns the difference in days, while SQL Server's version is more flexible, allowing for different date parts.

### Conclusion

Grasping the nuances of **`DATEDIFF`** can significantly boost your database development skills. Dive deeper into this topic and [explore more examples in the original blog post](https://www.dbvis.com/thetable/understanding-the-datediff-sql-function-a-comprehensive-guide/).
How to improve your GitHub vanity metrics FAST
Tags: showdev, career, watercooler, jokes
Published: 2024-01-29 08:00:00

At the end of last year, I was contacted by a dev who said something like

## Wow, you have an impressive GitHub profile. 

I won't lie, it's always good for the ego when someone found your work useful.

But here he had something else in mind, what he meant is that my GitHub contribution graph looked **very green**

## You even work on week-ends !

God forbid no, I have a life!

What actually happened is that I write a lot and wants all my rumblings to be safe at any point of time. 

In practice I write in [Obsidian](https://obsidian.md/), the best thing since slice bread for me. And it was [obsidian-git](https://github.com/denolehov/obsidian-git), running every 10 minutes or so, who was keeping my GitHub [vanity metrics](https://en.wikipedia.org/wiki/Lean_startup#Actionable_metrics) very green.

## Can I become a time traveler and do that one year ago ?

Yes, `git` has you covered

```bash
git add .
git commit --date "10 days ago" -m "Committed by a time traveler"
```

## Can I do that fast as promised in the title ?

Yes, clone my repository

{% github https://github.com/jmfayard/timetraveler %}

Run the script `run.sh`

Create a new empty repository `timetraveler` on GitHub and push your new local repository there. 

And in no time, you will have perfect GitHub [vanity metrics](https://en.wikipedia.org/wiki/Lean_startup#Actionable_metrics) just like me

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fw1fixh0b34vj21llpaj.png)
Legacy modernization Your path to efficiency and growth
Tags: aws, cloud, modernization
Published: 2024-01-29 07:57:12

By modernizing their applications, organizations achieve 30-50% lower application maintenance and running costs. Legacy systems are like an anchor that holds your business back, preventing it from reaching its full potential. But it doesn’t have to be that way. Understand what legacy modernization is and start right way. If you’d like to understand more about our legacy modernization services, check out: [https://www.softwebsolutions.com/legacy-application-modernization.html](**https://www.softwebsolutions.com/legacy-application-modernization.html**)

 

Read more in our articles:  

Modernize legacy apps to secure your future - https://www.softwebsolutions.com/resources/modernize-legacy-application.html 

 

AWS for application modernization - https://go.softwebsolutions.com/resources/aws-for-app-modernization.html
pipe relining sydney
Published: 2024-01-29 07:57:01

Are you tired of constantly dealing with plumbing issues caused by your old, rusted pipes? Sherlock Drains has the perfect solution for you! Our innovative **_[Pipe Relining services Sydney](https://sherlockdrains.com.au/pipe-relining-sydney/)_** technology is designed to strengthen and protect your pipes, ensuring that you won't have to worry about leaks, cracks, or blockages anymore. Made from lightweight yet durable materials, our pipe relining is not only cost-effective but also provides a long-lasting solution for your plumbing needs. With our pipe relining service, you can say goodbye to frequent repairs and hello to smooth-flowing plumbing.
Gleaming Grace: The Beauty of Gold sets of Bangles Revealed
Published: 2024-01-29 07:53:42


Introduction:
In the world of jewelry, [Gold sets of bangles](https://www.malanijewelers.com/Views/Product/ProductList?CSCCode=z5%2BVxnP1799ZoAFl0ynt1g%3D%3D&UrlMaxPrice=39996&UrlMinPrice=1550) hold a special place, embodying elegance, tradition, and timeless beauty. These sets are more than just accessories; they are a celebration of grace and femininity, a gleaming testament to the enduring allure of gold. In this exploration of gold bangles, we delve into their unique charm and how they can transform your style.

The Eternal Luster of Gold:
Gold's everlasting appeal lies in its radiant luster and the rich history it carries. For centuries, gold has been a symbol of wealth, purity, and elegance. Gold sets of bangles capture this legacy, offering a touch of classic glamour that is both striking and sophisticated.

Variety in Design:
Gold bangles come in an array of designs, each reflecting different styles and traditions. From intricate filigree work and detailed engravings to sleek, contemporary designs, there is a gold bangle set for every aesthetic preference. This versatility makes them perfect for various occasions, be it a grand wedding or a casual day out.

Cultural Significance:
In many cultures, gold bangles are more than just decorative items; they are imbued with significant meaning. Often worn in sets, they can symbolize marital status, prosperity, or good luck. Wearing gold bangles is a way to honor and connect with these cultural traditions while adding a touch of elegance to your ensemble.

Styling with Gold Bangles:
The beauty of gold sets of bangles lies in their ability to complement any outfit. They can add a regal touch to traditional attire or bring a hint of opulence to a modern, minimalist look. The key to styling gold bangles is to balance them with your outfit and other jewelry, ensuring they enhance your overall appearance without overpowering it.

Customization and Personalization:
One of the joys of gold bangles is the opportunity for customization. Many jewelers offer bespoke services, allowing you to create a set of bangles that perfectly suits your taste. Personal touches like unique patterns, embedded gemstones, or special engravings can make your gold bangles a true reflection of your personality.

An Investment in Timeless Elegance:
Apart from their aesthetic appeal, gold sets of bangles are a sound investment. Gold is a valuable metal that maintains its worth over time. These bangles not only serve as beautiful accessories but also as investments that can be cherished for generations.

Conclusion:
Gold sets of Bangles are more than just pieces of jewelry; they are symbols of grace, tradition, and timeless elegance. Whether adorned for their cultural significance or simply for their beauty, these gleaming accessories can elevate any look, adding a touch of sophistication and charm. Embrace the radiant beauty of gold bangles and let them be a reflection of your personal style and grace.
Code On Gitbash- Push to Github
Tags: github, devops, githubactions, javascript
Published: 2024-01-29 07:50:09

As a beginner it gets difficult to master Gitbash and push anything to Github even when this is a fundamental skill for a developer. This article will take you through every step till you push to Github.

Let's go through each step, as we code on Gitbash and push to Github.

**Step 1**: 

If you haven't downloaded and Install Gitbash - Do so now!

Git Bash is an application for Microsoft Windows environments which provides an emulation layer for a Git command line experience.

You can download Gitbash here -[](https://git-scm.com/downloads)


**Step 2**:

On Git Bash, set your username and email using the following commands:

`git config — global user.name “Your Name”`
`git config — global user.email “your.email@example.com”` 


**Step 3**:

Create a project directory


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


**Step 4**:

Now, change directory



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


**Step 5**:

Now start a Git repository


Run the command `git init` to create a new Git repository


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


**Step 6**:

Use `touch index.html to create the index.html`
Run `vim index.html` to edit

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



**Step 7**:

 Connect to GitHub

Go to to your Github repository, create new repository, copy the http link and append it to the “git remote add origin” command.

`https://github.com/Tioluwaniope/Gittest101.git`


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



**Step 8**: Stage Changes

Run command `git add` command to stage changes to the index.html file

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



**Step 9**: Commit Changes

Run `git commit -m` command to take a snapshot of your file. This makes the changes permanent.


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




**Step 10**: Now push to Github

Run command `git push `to push the committed changes to the master branch on GitHub.


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




_**Well done ! You have successfully navigated the process of pushing changes from your local environment to GitHub.**_
DAY14:Python day 19, 20, 21
Published: 2024-01-28 15:55:42

##Day 19##
**event listeners and higher order functions**

- it a higher-order function (functions that can work with other functions)
- in a higher-order function, we don't add () for parameter function, we only pass the name.
```
high_order_function(function2)

screen.onkey(key="space", fun=move_forward) 
```
-  creating separate objects from same class that have independent states (attributes, methods) 


##Day20: making the snake game##

**update() method to animate**

- turn off tracer `screen.tracer[0]`
- control by importing `time` and delay through `time.sleep()`
- then update screen when necessary by `screen.update()`

**how do we turn our snake?**
- in order to prevent the body from leaving its head, we need to start from the last segment and make each segment occupy the position of its previous segment. The head moves last. This part was hard to come up with myself. 
- we do this by this `for` loop: 
```
        for segment_number in range(len(self.segments) - 1, 0, -1):
            new_x = self.segments[segment_number - 1].xcor()
            new_y = self.segments[segment_number - 1].ycor()
            self.segments[segment_number].goto(new_x, new_y)
        self.segments[0].forward(move_distance)
```
- three parameters in `range()` function are start, stop, and step, respectively. So the order starts from the last, and decrements by 1 until it reaches 0, the head. 


##Day21: snake game continued##
**class inheritance**
- inheriting attributes/methods from parent(superclass)
```
class child(parent):
    def __init__(self):
        super().__init__()
```

**slicing**
- accessing set of items from one position to another
- `list[start position: end position: increment]`
- tip: `list[::-1]` to reverse the list