teleren/devto huggingface dataset:
Dev.to Framework - Forem Selfhost Website For Sale
Tags: sale, forem, website, devto
Published: 2023-09-10 16:02:54

Hello Everyone,

I would like to sell my website [qined.com](https://www.qined.com/) which uses dev.to framework - forem selfhost software.

Here's what you need to know:

**Snappy Name:** With just **5 letters**, qined.com is catchy, easy to remember, and has a business ring to it. Perfect for a business platform.

**Ready Framework:** Uses dev.to - selfhost Forem.

**Adsense Approved:** Want to make some moolah from your platform? You're all set with Adsense. Show some ads, and let the pennies roll in!

**Low Maintenance:** I've set it all up for you. Now you just need to give it some love and time. Think of it like a pet robot 🤖.

## Why am I selling?:
Life's gotten busy, and I'd hate to see such potential go to waste. I believe in passing on the torch to someone who has the passion and time.

## 💡 Why should YOU consider it?
**Start Ahead:** Instead of starting from zero, kick off with a domain that's already set.
**Monetization:** With Adsense in place, there's potential revenue waiting for you.
**Be the Boss:** Dreamt of managing a Business community? Here's your golden ticket.

## Regarding Traffic:
Website currently does not have a significant number of visitors.

This is a golden opportunity for someone looking to dive into the Business community world. You get a catchy domain, a framework inspired by one of the best, and a chance to turn it into something BIG!

Got questions? Interested? Let's chat and **Name your price!** Shoot a message, and let's get you started on this exciting journey. 🚀

Contact me: support@qined.com
How to fix not wake up after suspend on PC (Linux Mint xfce)
Tags: linux, mint
Published: 2023-09-10 15:45:16

---
title: How to fix not wake up after suspend on PC (Linux Mint xfce)
published: true
description: How to fix not wake up after suspend on PC (Linux Mint xfce). Just workaround
tags: Linux,mint
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-10 15:21 +0000
---
I understand that you find the suspend feature very useful for personal use as it helps you save energy and time by avoiding the need to restart your computer or reopen other software. However, you mentioned that sometimes it doesn’t work as expected on some graphics cards. I found some information that might help you fix this issue.

You copy `nvidia-sleep.sh`
```sh
sudo cp /usr/bin/nvidia-sleep.sh /usr/bin/nvidia-suspend.sh
```
Then
Add code `exit 0` in top into file `nvidia-sleep.sh`
```sh
#!/bin/bash

exit 0

if [ ! -f /proc/driver/nvidia/suspend ]; then
    exit 0
fi

RUN_DIR="/var/run/nvidia-sleep"
XORG_VT_FILE="${RUN_DIR}"/Xorg.vt_number

PATH="/bin:/usr/bin"

case "$1" in
    suspend|hibernate)
        mkdir -p "${RUN_DIR}"
        fgconsole > "${XORG_VT_FILE}"
        chvt 63
        if [[ $? -ne 0 ]]; then
            exit $?
        fi
	echo "" > /proc/driver/nvidia/suspend
        echo "$1" > /proc/driver/nvidia/suspend
        exit $?
        ;;
    resume)
	echo "" > /proc/driver/nvidia/suspend
        echo "$1" > /proc/driver/nvidia/suspend 
        #
        # Check if Xorg was determined to be running at the time
        # of suspend, and whether its VT was recorded.  If so,
        # attempt to switch back to this VT.
        #
        if [[ -f "${XORG_VT_FILE}" ]]; then
            XORG_PID=$(cat "${XORG_VT_FILE}")
            rm "${XORG_VT_FILE}"
            chvt "${XORG_PID}"
        fi
        exit 0
        ;;
    *)
        exit 1
esac
```

Next step edit `/lib/systemd/system-sleep/nvidia`
```sh
#!/bin/sh

case "$1" in
    post)
        /usr/bin/nvidia-suspend.sh "resume"
        ;;
esac
```

I hope that this tip will help you save time and this is my note.
Mastering Cypher Queries in Apache AGE
Tags: apacheage, postgres, cypherqueries, cypher
Published: 2023-09-10 15:43:30

Graph databases have become the go-to solution for managing and querying complex relationships in data. Apache AGE, an extension of PostgreSQL, brings the power of graph databases to the familiar SQL world. In this article, we will dive deep into Cypher queries, the query language of choice for Apache AGE. Follow along as we explore the syntax and capabilities of Cypher, complete with step-by-step examples and screenshots.

**Understanding Cypher Queries**

Cypher is a query language designed for working with graph data. It excels in expressing complex patterns and relationships, making it ideal for querying graph databases like Apache AGE. Let's start with the basics.

**1. Basic Cypher Syntax**
Cypher queries consist of patterns and clauses. Patterns define the structure of the data you want to match, and clauses specify what to do with the matched data. Here's a simple Cypher query:

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

**Explanation:**

**_MATCH_** defines the pattern we're looking for.
**_(p:Person {name: 'Alice'})_** is a node pattern. It matches nodes labeled as "Person" with the property "name" set to 'Alice'.
**_[:FRIEND]_** represents a relationship pattern. It matches outgoing "FRIEND" relationships.
**_(friend)_** is a variable that represents the matched nodes.
**_RETURN_** specifies what data to retrieve.
**2. Retrieving Data**
Cypher queries can retrieve data in various ways. Here are some common retrieval patterns:

**a. Retrieving Node Properties**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ny41sf085oeisb9y5tnv.png)
b. Aggregations and Calculations

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

3. Filtering and Conditions
Cypher allows you to apply conditions and filters to your queries:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vo1ynz8wt78l4j47illc.png)
4. Advanced Queries
Cypher's power shines when handling complex graph patterns. Here's an example of finding friends of friends:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3y9l9ygfo8ipnjahjoic.png)
Embarking on a Backend Development Journey with Node.js, Express, and MongoDB!
Tags: node, express, backenddevelopment, mongodb
Published: 2023-09-10 14:49:45

## Hey fellow devs,

I hope this post finds you all in great coding spirits! I wanted to share my exciting journey into the world of backend development using Node.js, Express, and MongoDB. 🌐💻

**Background:**
I've been tinkering with frontend technologies for a while, but I've decided to dive deeper into the backend to expand my skill set and create more dynamic and interactive web applications. So, I've set my sights on Node.js for server-side JavaScript, Express for building web APIs, and MongoDB for database management. 📦

**Learning Progress So Far:**
I've completed a few online courses and tutorials, and I feel comfortable with the basics of Node.js, Express, and MongoDB. I've learned about routing, middleware, database interactions, and I've even built a few simple REST APIs. 📚

**Call for Help:**
Now, I'm looking to take my skills to the next level! I believe that one of the most effective ways to learn is by doing, so I'm on the hunt for some practice tasks or small pet projects to work on. That's where you, the wonderful developer community, come in!

I would greatly appreciate any suggestions, tips, or guidance you can provide. Whether it's pointing me towards useful resources, recommending practice exercises, or proposing interesting project ideas, your input would be invaluable. 🙏

**What I'm Interested In:**

- Authentication and authorization using JWT or OAuth
- Building a RESTful API for a specific domain (e.g., a task manager or a to-do list)
- Real-time features using WebSockets or a similar technology
- Working with third-party APIs
- Anything that helps me dive deeper into Node.js, Express, and MongoDB!

Please share your knowledge and experiences with me. Feel free to drop your ideas, tips, or even your own learning experiences in the comments below. Let's learn and grow together as a community of developers! 🌱

Thank you for taking the time to read my post, and I look forward to hearing from you all. Happy coding! 🚀👩‍💻👨‍💻
Multi Auth in Laravel 10
Published: 2023-09-10 14:48:13

Laravel 10 multi auth is a term that refers to the process of multiple users logging in based on their roles in an application. Authentication is the process of identifying and recognizing user credentials.

In this laravel 10 multi auth tutorial, I will teach you step by step how to create laravel 10 multi auth create multiple authentication in laravel application.

## Multi Auth Based on Role in Laravel 10

Here are some steps to create multiple authentication in Laravel 10 based on role:

- Install Laravel 10
- Connect to a database
- Create a migration and model
- Create an auth scaffold
- Create middleware
- Create a route
- Create a controller
- Create a Blade file

Read More [Multi Auth in Laravel 10](https://www.tutsmake.com/laravel-10-multi-auth-authentication-tutorial)
I finished the Meta Frontend Developer Course - Here's what I learned
Tags: webdev, beginners, tutorial, javascript
Published: 2023-09-10 14:28:07

I just finished the Meta Frontend Developer Course on Coursera and I can tell you it was a ride and it was worth the time and effort I put in. It was a multi-part series course and it was made up of 9 independent courses that you must complete to attain the certificate. In this article, I will give you a breakdown of everything I learned and projects I’ve been able to build using the knowledge from this course.

1. **HTML/CSS Fundamentals:** I learned the basics of HTML/CSS in this course. Things like web page structure, elements, semantics, SEO, styling and responsive design.

2. **Introduction to JavaScript:** I got introduced to the King of all programming languages(in my opinion 😀) in this course. It’s syntax, variables, array and string methods, data types, loops, and everything you expect to learn about a programming language. I also learned how to manipulate the DOM(Document Object Model) using JavaScript. At the end I made a simple calculator app for the final project.

3. **React:** The library I learned from the course is Meta’s very own JavaScript library called React. At first I felt a little overwhelmed by the idea of using components, props and state in building parts of an application but eventually I got the hang of it. The JSX syntax felt too good to be true because of how easy it made it apply JavaScript code to HTML as seen below.

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

4. **Advanced React:** This is when things got heated and I started sweating while taking the course materials and tackling the quizzes and projects. I learned custom hooks, APIs, Jest - React Testing Library and automated testing. 

5. **Principles of UX/UI design:** Here I learned about the whole UX process (Empathize, Ideate, Design, Prototype, Test and Implement) and how it’s a very vital part of every project. Also learned about human centric design and how to create wireframes and prototypes using Figma.

6. **Version Control:** Here I learned how to use version control systems(Git and GitHub) to collaborate with other developers on a single project. I got introduced to the bash terminal and certain git commands to clone, view or modify files in a repository.

7. **Coding Interview Preparation:** The final part of the series taught me how to prepare for software engineering interviews. It taught me some vital computer science concepts such as Data Structures and Algorithms which had the best explanation I’ve ever seen for the topic.


Taking on and finishing this course was no easy feat and I’m glad I was able to finish it because it taught me very valuable concepts and gave me insights pf the tech industry and hands-on experience with the various projects I completed. I would absolutely recommend this course for anyone who’s a newbie in tech and looking to learn frontend development. 

Thanks for reading.
Looking for a CTO for my AI company
Published: 2023-09-10 14:16:40

We are creating AI solutions for VFX companies to save time in the technical and manual parts of the workflow. At the moment, we are a two people team. We have done a good bit of work and very close making our first sale. Looking for a CTO to take care of tech side of things. DM or comment to talk further. You could also email to contact@superrealapp.com
The scripting language callable from DotNet
Published: 2023-09-10 14:15:59

I released the dotnet library which is named [Losetta](https://github.com/WSOFT-Project/Losetta).

It will be able more easily incorporate macro functions into your dotnet application.

## What is the Library?
With [this library](https://github.com/WSOFT-Project/Losetta) , you can easily run scripts and retrieve values from your apps on dotnet, and expose functions that can be used in your scripts.The example is below.

- Calculate formulas from C#

```cs
int result = Alice.Execute<int>("2+3");
Console.WriteLine(result);//Output:5
```

- Expose a function

```cs
[AliceNameSpace]
public static class MyFunctions
{
    public static double Pow(double x)
    {
        return x * x;
    }
}

Alice.RegisterFunctions<MyFunctions>();
```
- Calling a published function

```cs
int result = Alice.Execute<int>("MyFunctions.Pow(2)");
Console.WriteLine(result);//Output:4
```

- Other ways...

```cs
string code = """
using MyFunctions;

return Pow(2);
""";
int result = Alice.Execute<int>(code);
Console.WriteLine(result);//Output:4
```

## What is useful?
It will be useful to you want to provide users with a means to edit their behavior.

## How to use
Please read [README](https://github.com/WSOFT-Project/Losetta/blob/master/README.md).

## Conclusion
The library will be able more easily incorporate macro functions into your dotnet application.

I welcome your contribution and opinion!
Docker Roadmap
Tags: docker, devops, roadmap, webdev
Published: 2023-09-10 14:15:28

Peeking into the crystal ball of container tech with Docker's roadmap! 📈 Get ready for the container revolution! #DockerDreams #ContainerMagic 🚀

![Docker Roadmap](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ynxa5pn99q7rqh69z9he.png)
Activate partial LV after drive failure
Tags: linux, laterpost
Published: 2023-09-10 14:11:29

---
title: Activate partial LV after drive failure
published: true
description: I recently noticed a drive in my home NAS was pre-fail according to S.M.A.R.T. diagnostics, when I replaced the drive I found it difficult to mount the remaining drives in the LVM VG to recover data.

tags: linux, laterpost
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-10 03:41 +0000
---
I recently noticed a drive in my home NAS was pre-fail according to S.M.A.R.T. diagnostics, when I replaced the drive I found it difficult to mount the remaining drives in the LVM VG to recover data.

## TL;DR
* Use command `lvchange -ay --partial example_logical_volume` to bring a LVM LV with failed disks

## The Problem
The LVM volume that the drive was a member of had three drives. The majority of the data in the group was backed up redundantly to a local and cloud drive using [borg backup](https://borgbackup.readthedocs.io). There was about 900GB of which was not backed up because it was deemed to be unimportant, certainly not important enough to warrant the cost of backing it up to a cloud server, as well as locally, like the other data. However since the the failing drive was still online I tried to save as much of the 900GB as possible.

I first copied off as much as I could to a spare drive, which was quite successful. During this process, the faulty drive failed completely. This wasn't a problem as I had saved the 900GB and had the backups. The backups had never actually been used, so I did a `borg check` to ensure they were consistent. Despite that I was still a little nervous and I wanted to access the two good drives in the LVM volume to pull off the remaining data. I knew this was possible but had never done it before and found it very difficult to find information on the web. Which is why I am writing this small blog post.

In the end it turned out to be quite simple, all that was required was the use of the `--partial` flag when using `lvchange`. So the command I executed was `lvchange -ay --partial example_logical_volume`. This brought the LV back up and I was able to access the data on the two remaining disks. See the [lvchange manpage](https://www.mankier.com/8/lvchange)) for more information

_This article was first posted at https://www.dfoley.ie/blog/activate-partial-lv #indieweb #posse_
Create a ROCK- PAPER-SCISSORS Game with Python
Published: 2023-09-10 13:55:45

In this post, we'll delve into crafting a simplified version of the rock-paper-scissors game. But first, let's familiarize ourselves with the core concept behind rock-paper-scissors.

> Rock, paper, scissors is a classic game of chance for two people. You and a partner shake your fists three times and then make gestures at random to show a rock, paper, or scissors. Rock beats scissors, scissors beat paper, and paper beats rock (it wraps the rock!).

With a clear grasp of the game and its rules, let's deconstruct the gameplay mechanics and translate them into code. Additionally our code will be broken down with the below steps 

- import `random` modules; this gives us random functionality
- Our game involves two participants: the user and the computer.
- We define a list that contains the computer's possible moves: rock, paper, and scissors.
- The computer randomly picks one of the choices in the list of container
- A users choice is captured and stored in a variable
- Conditional `if` statements are utilized to compare the computer's move with the user's choice and establish the outcome: a win, a loss, or a draw.


```
#Import the random module for random functionality
import random

# Printing a  header and welcome message
print('*'*50)
print('Welcome to Rock, Paper & Scissors Game')
print('*'*50)

#We define a list that contains the computer's possible moves: rock, paper, and scissors.
computer_choice = ['SCISSORS', 'ROCK', 'PAPER']

#The computer randomly picks one of the choices in the list of container
computer_choices = random.choice(computer_choice)

#A users choice is captured and stored in a variable
user_choice = str(input('Do you want - Rock, Paper, or Scissors?: '))

user_choice = user_choice.upper()

if computer_choices == user_choice:
    print("It's a TIE. You have chosen", user_choice, "and Computer has chosen,", computer_choices)
    print()

elif user_choice == 'ROCK' and computer_choices == 'SCISSORS':
    print(" YOU WIN !!! | You Chose", user_choice, 'and Computer has chosen', computer_choices)

elif user_choice == 'PAPER' and computer_choices == 'ROCK':
    print(" YOU WIN !!! | You Chose", user_choice, 'and Computer has chosen', computer_choices)

elif user_choice == 'SCISSORS' and computer_choices == 'PAPER':
    print(" YOU WIN !!! | You Chose", user_choice, 'and Computer has chosen', computer_choices)
else:
    print("Sorry You lose !!! | You Chose", user_choice, 'and Computer has chosen', computer_choices)

```



Well done on creating your first rock-paper-scissors game! For an enhanced version, check out my [GitHub](https://github.com/superissy/simple-rock-paper-scissors-game/blob/main/game.py)
"Acquire Proficiency in JavaScript Code Integration Through the Development of a Task Manager Application."
Published: 2023-09-10 13:55:30


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nbyniyo2q7xty1ob5ecb.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/72ulwgh4038w3qg32qzd.png)
There is no lamp to light my way
Tags: webdev, tutorial, sql, javascript
Published: 2023-09-10 13:42:58

I will tell you my situation now. I am Abdul Malik from Yemen. For two years now, I have been trying to make an income via the Internet and work remotely. I search here and here and spend my time on the Internet with scientific research, but because of my poverty and the lack of anyone to illuminate my path and take my hand to save me, I am in the state of a drowning person
 who has no one to help him.+967 739 509 347
Cast YouTube to TV
Published: 2023-09-09 11:35:16

**Certainly, here's another version with some changes:

"Streaming YouTube videos to your TV is a straightforward process that can be accomplished through various methods, depending on your available devices. Here are the common ways to do it**:

1. **Chromecast Device:**
   - Make sure your TV is connected to a Chromecast device.
   - Ensure your phone or computer is connected to the same Wi-Fi network as your Chromecast.
   - Open the YouTube app on your mobile device or visit the YouTube website on your [**computer**](https://cast.flashget.com/).
   - Locate the video you want to cast.
   - Click on the cast icon, typically found in the top right corner of the YouTube app or website.
   - Select your Chromecast device from the list of available devices.
   - The video will start playing on your TV.

2. **Smart TV with Built-in Casting:**
   - Many modern smart TVs come equipped with built-in casting features.
   - Launch the YouTube app on your smart TV.
   - On your mobile device or computer, open the YouTube app or website.
   - Find the video you want to cast.
   - Look for the cast icon and choose your smart TV from the list of available devices.
   - The video will begin playing on your TV.

3. **Smart TV with YouTube App:**
   - If you have a smart TV with the YouTube app but no built-in casting, you can use your TV's remote control to navigate and play videos.
   - Open the YouTube app on your TV.
   - Use your TV's remote control to search for and select the video you wish to watch.

4. **Using a Game Console:**
   - Certain game consoles, like Xbox and PlayStation, feature YouTube apps that allow you to watch YouTube videos on your TV.
   - Open the YouTube app on your game console.
   - Use your game controller to search for and play videos.

5. **Using a Streaming Device (e.g., Roku, Fire TV, Apple TV):**
   - If you have a streaming device connected to your TV, you can use the YouTube app on that device.
   - Navigate to the YouTube app on your streaming device.
   - Search for and play the video you intend to watch.

6. **Screen Mirroring (for Android and select other devices):**
   - If your TV supports screen mirroring (e.g., Miracast, AirPlay), you can mirror your device's screen onto the TV.
   - Enable screen mirroring in your device settings on your mobile device.
   - Choose your TV from the list of available devices to mirror your screen.
   - Open the YouTube app on your device and start playing the video.

Please keep in mind that specific steps may vary slightly depending on your TV and devices. Ensure that your devices have the latest firmware and YouTube app updates for the best experience."
I have Developed a Free Web Scraping API
Tags: webscraping, api, ai, python
Published: 2023-09-10 13:08:13

I have Developed a Free Web Scraping API
![API Hosted on RapidAPI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1rq5nkbwh64koyj29w2w.png)
Hey guys! I have developed this API for people who need to do web scraping or need to include in their projects. It is completely free with the ability to scrape modern JS websites too. All this is just for free. You don't need to worry about Selenium, BS4, and setting up Chrome Web Drivers. Deploy your scrapers easily on the cloud now. You can check out the API at: https://rapidapi.com/markhorverse-markhorverse-default/api/dripcrawler