teleren/devto huggingface dataset:
OpsCanvas Introduces Draw & Deploy Cloud Deployment Platform
Published: 2023-10-11 22:30:18


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3tq75lu77i1tlxrauqjf.jpeg)Public Beta Available Now!

OpsCanvas is pleased to unveil the launch of its Public Beta. With this initiative, software engineers and tech leaders have the opportunity to use OpsCanvas’ innovative Generative IaC technology to deploy their software to the cloud prior to its broad-based release. This platform efficiently automates the cloud deployment workflow, allowing SMBs to leverage the cloud without the common deployment challenges.

One-Click Automation of Deployment Tasks: OpsCanvas automates the tedious tasks associated with deploying software to the cloud, such as the configuration and provisioning of managed services (including networking, database, and other cloud services) and launching your containerized application and/or micro-services configured to take advantage of the cloud resources it requires.

Generative IaC Innovation: OpsCanvas automates the generation of Infrastructure as Code to facilitate an accurate and rapid deployment while eliminating the need to manually code the IaC for deployments. With the Generative IaC capabilities, the platform automatically creates secure, accurate, and complete IaC code. This accelerates developments, decreases operational overhead, and reduces potential security or success risks when deploying with IaC.

**Join the OpsCanvas Community: Ready to begin? Create your Public Beta account [here](www.app.opscanvas.io).**
 
**Key Advantages:**

- Early Access: Secure exclusive entry to cutting-edge platform engineering and Generative IaC technology.
- Exclusive Benefits: In addition to comprehensive training materials and support, early participants will receive a generous discount on OpsCanvas’ paid offerings when they become generally available.
- Public Beta Participation at No Charge.
 

At OpsCanvas, our primary goal is to simplify the cloud for software teams, irrespective of their technical background. We’re dedicated to making the complexity of cloud deployments more accessible. The OpsCanvas platform stands as a testament to this commitment, streamlining cloud deployments and simplifying the complexities. By leveraging our platform, businesses can reduce the need for extensive resources and deep technical knowledge, making the cloud a more streamlined experience. To find out more information about OpsCanvas, visit our website [here](https://www.opscanvas.com).
So Long Dev.to, Hello Hashnode
Tags: discuss, career, sitereliabilityengineering, community
Published: 2023-10-11 22:12:51

<img width="100%" style="width:100%" src="https://media.giphy.com/media/l49FqlUguNsGDNCGk/giphy.gif">


😭👋🏽 This is a very short and sweet goodbye but I have decided to migrate my blog over to Hashnode.dev for a few different reasons. [Here is where you can find my Hashnode Blog](https://kodebae.hashnode.dev)
## 1. I'm rebranding. 

I'm no longer the Full-Stack Developer I use to be. I've been busting my butt over here. I enrolled in a specialty school early this year and I'm learning and building some pretty advanced stuff as a Site Reliability Engineer. 

## 2. I am honestly not digging the vibe on Dev.to anymore. 

I feel like my blog usually gets minimal recognition. I put a lot of work into my blogs, and I believe that they should have better resources on here for non-famous devs and people who are just starting out. 

## 3. The interface. 

Hashnode.dev has a lot more features than Dev.to imo. My followers can even subscribe for future updates sent directly to thier emails. I love the UX/UI on HN and I feel like I will be able to represent my brand better with their platform. (Sorry Dev.to)

## 4. Lack of monetization opportunities on Dev.to are disheartening. 

I really wish there was a way for the people writing these posts to make money. I had one post reach over 25k readers here. But alas there is not. At least on HN I can build my own email list. I can then work really freaking hard to create awesome digital products to peddle in the future. (more on that later)

## 5. The ability to easily push out multiple blogs on one platform. 

Again HN comes out on top here. 


<mark>🥲 So to my followers here on Dev.to, I will soon start posting on Hashnode instead of on here.</mark> 

I will work harder there to create better content more aligned with my current goals and truthfully more aligned with my life long aspiration to work in the aerospace industry. I encourage you to checkout what I have in store over there. (I am litteraly begging for alms) 

I will be blogging my way through a lot of **SRE topics** like: my journey as an SRE student at The Agile Learning Institute, having my first SRE job (which I have now), my journey to getting a job in the aerospace industry (launching soon 🤞🏽), what it's like to design and think through architecture, technologies I am learning, studying for exams (how do I do that?), anything military and defense tech related (especially NASA and SpaceX stuff), stargazing and more. 

If any of this interests you in the slightest, I encourage you to join me over at my new blog: "Engineering the Stars: A Journey Exploring Tech & Aerospace".  I hope to see you all there... 

tschuss... Ad astra per aspera. 🚀

<img width="100%" style="width:100%" src="https://media.giphy.com/media/mi6DsSSNKDbUY/giphy.gif">
Best Deals in LocalDeals.com | Unbeatable Discounts & Savings
Published: 2023-10-11 22:10:27

**Best Deals in LocalDeals.com | Unbeatable Discounts & Savings
In a world where savings matter, LocalDeals.com stands out as your go-to destination for the best deals, offering unbeatable discounts and unrivaled savings on a wide array of products and services. If you’re on the hunt for outstanding deals, you’ve just hit the jackpot.
The LocalDeals.com Advantage
At LocalDeals.com, we’re all about connecting you with the most incredible deals right in your local area. Our commitment is to provide you with a seamless experience, exceptional savings, and the opportunity to explore local businesses like never before.
Discover Unmatched Deals
Local Favorites: From your favorite local eateries to exciting recreational activities, our deals cover the entire spectrum of what your community has to offer.
Shopping Delights: Find exclusive discounts on retail products, fashion, and more, helping you stay ahead of the trends without emptying your wallet.
Services Galore: Whether it’s home services, wellness treatments, or educational opportunities, our deals cater to your essential needs.
Adventures Await: If you’re seeking unforgettable experiences, look no further. We offer exciting adventures and getaways that won’t break the bank.
The LocalDeals.com Experience
Ease of Use: Our user-friendly platform ensures that you can quickly browse, select, and purchase deals with minimal hassle.
Savings Aplenty: We believe that everyone deserves to enjoy life to the fullest, and our deals make that possible by offering substantial savings.
Community Spirit: LocalDeals.com fosters a sense of community by connecting you with local businesses and helping you discover new favorites right in your neighborhood.
How LocalDeals.com Works
Browse: Explore our diverse range of deals, all sorted by your location and preferences.
Select: Choose the deal that excites you the most, whether it’s a fine dining experience, a spa day, or any other fantastic opportunity.
Purchase: Secure your deal with a simple click, unlocking the doors to unbeatable savings.
Redeem: Follow the provided instructions to redeem your deal with the local business and enjoy a fantastic experience.
Join the LocalDeals.com Community
LocalDeals.com is more than just deals; it’s about building a vibrant community of savvy shoppers and local businesses. Together, we’re creating a win-win scenario where everyone benefits.
Why wait when you can start saving, exploring, and experiencing more with LocalDeals.com? Your next adventure, memorable meal, or extraordinary escape is just a click away. Get ready to discover the best deals that your local community has to offer. Unleash the power of savings with LocalDeals.com today!
Visit us :-https://blog.locoldeal.com/best-deals-localdeals/
Facebook: https://www.facebook.com/locoldeal
Twitter: https://twitter.com/LocolDeal
Linkedin: https://www.linkedin.com/company/locoldeal/
Instagram: https://www.instagram.caom/locoldeal/

**
Special Directories in Linux Root Directory
Tags: linux, unix, beginners
Published: 2023-10-11 22:08:09

If we go to the root directory or the top level directory in our unix-like machine, we will be faced by some directories, lets take an intro about each one

```
nuclearegg69@zenbook-f13:~$ cd /
nuclearegg69@zenbook-f13:/$ ls
bin   etc   lib    libx32      mnt   root  snap  tmp
boot  home  lib32  lost+found  opt   run   srv   usr
dev   init  lib64  media       proc  sbin  sys   var
```

`bin` is a folder that contains binaries. Binaries are executable programs written in binary (hence binary). They are located under the top level dir directly because they contain common commands that all users use like ls, rm, and so on.

`etc` is a folder that contain configuration files. Configuration files for `nano` text editor and `chrontab` are there.

`root` is the home directory for the root special user. the root user has super priviliges over the normal user found under the `/home` directory. 

`home` is the parent directory for all users of the system

`media` or `mnt` is where external media devices like flash drives, dvds, external hard drives directories appear (depending on the linux distro)
An Introduction to React, the most used frontend library for SPA's
Published: 2023-10-11 22:06:31

**<u>Introduction to React: Building User Interfaces with JavaScript</u>**

React, developed by Facebook, is an open-source JavaScript library for building user interfaces (UIs) or, more specifically, for creating reusable UI components. Launched in 2013, React has become immensely popular for its efficiency in developing interactive and dynamic front-end applications.

### Key Features:

1. **Declarative Syntax:**
   React introduces a declarative syntax, making it easier to describe how the UI should look and behave. Developers can focus on defining the desired outcome, and React takes care of updating the DOM to match that state.

2. **Component-Based Architecture:**
   React follows a component-based architecture where UIs are broken down into independent, reusable components. Each component manages its state, making it easier to maintain and understand complex applications.

3. **Virtual DOM:**
   One of React's groundbreaking features is the Virtual DOM. Instead of updating the entire DOM when changes occur, React creates a virtual representation of the DOM in memory. It then calculates the most efficient way to update the actual DOM, resulting in significant performance improvements.

4. **React Native:**
   React is not limited to web development. With React Native, developers can leverage their React skills to build cross-platform mobile applications. This allows for code reusability between web and mobile development.

5. **Unidirectional Data Flow:**
   React enforces a unidirectional data flow, making it easier to understand how data changes over time. This ensures that data changes are predictable, and debugging becomes more straightforward.

### Getting Started:

To start using React, you typically set up your development environment using tools like Node.js and npm. Once set up, you can create a new React application using the Create React App tool or build your project from scratch.

A basic example of a React component looks like this:

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



In this simple example, the `HelloWorld` component renders an `<h1>` element with the text "Hello, World!".

### Conclusion:

React's popularity stems from its ability to simplify the development of complex UIs by introducing a component-based architecture, a declarative syntax, and performance optimizations like the Virtual DOM. Whether you're building a single-page application or a dynamic user interface, React provides a powerful and efficient framework for front-end development.
Thinking About Switching from WP to Custom CMS
Tags: wordpress, cms
Published: 2023-10-11 21:50:31

Hi Dev Community,

I recently made a [website](https://emiratesidofficial.com/) with WordPress but currently I'm facing this issue that my site pages are getting deindexed from Bing Search Console. I don't know what's the matter. When I asked my friends, they said that it might be because your site is on WordPress. I wanted to ask is this true that it's due to the WP CMS and should I move to the custom CMS or should I continue using WP and try something else.

And what other things can I try that may help me in getting my site indexed again. Also, one of my colleague said that custom CMS would be more secure. 

So based on your experience what should I do?

Your suggestions will be appreciated.

Regards,
Marsh
Bringing together Mastodon and WordPress
Tags: wordpress, activitypub, mastodon
Published: 2023-12-13 22:20:18

---
title: Bringing together Mastodon and WordPress
published: true
date: 2023-10-11 21:48:34 UTC
tags: WordPress, ActivityPub, Mastodon
canonical_url: https://christine-seeman.com/bringing-together-mastodon-and-wordpress/
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k4eoq30643jhnnzmdjh2.png
---

Reading Time: 2 minutes

WordPress.com [announced](https://wordpress.com/blog/2023/10/11/activitypub/) the release of the [ActivityPub plugin](https://wordpress.org/plugins/activitypub/) on their blogs in October, I don’t use WordPress.com but it did make me aware of the plugin so I decided to give it a go.

I have been on Mastodon (the excellently run ruby.social instance) since [November 4th, 2022](https://ruby.social/@christine/109286434267949831). Coming from the bird site, it was a bit of a shock but in a good way. But it was also confusing, just like when you had to learn about Git coming from a CVS system like Subversion, one is distributed and one is centralized.

Now, with the ActivityPub plugin, I can make my WordPress site and posts publish to a federated profile and have people reply to that on ActivityPub but show up as WordPress comments. It is it’s own feed! This sounded pretty nifty, but my setup wasn’t just plug-and-play and required a bit more configuration than what was addressed in the WordPress.com announcement.

I am on Flywheel as my WordPress host, and it seems like I might need some [additional redirects in my .htcaccess](https://github.com/Automattic/wordpress-activitypub/discussions/155#discussioncomment-4092547) because in my site health, my webfinger kept on 404ing. But Flywheel doesn’t allow direct htcaccess but I can [add redirects](https://getflywheel.com/wordpress-support/flywheel-redirects/)through the flywheel site. My first attempt at adding a redirect didn’t quite work as expected, I got instead a redirect to “https://wp-json//activitypub//1/.0//webfinger?resource=acct:christine@christine-seeman.com”, which does not work.

![](https://christine-seeman.com/wp-content/uploads/2023/10/image-1024x803.png)
_Flywheel’s Add Redirect page for a site, this setup turned out to be not be the correct regex._

I am trying to simplify the redirect and make sure it hits the proper webfinger for ActivityPub (Mastadon)

![](https://christine-seeman.com/wp-content/uploads/2023/10/image-1-1024x627.png)

This worked! So I needed to add into my source redirect `^/.well-known/webfinger(.*)$` and then for my destination `/wp-json/activitypub/1.0/webfinger$1` and now you can subscribe to my infrequent posts from my blog, `hi-from@christine-seeman.com`, or from me as an author (which umm not so many other authors on my website) `christine@christine-seeman.com`.

Best of luck tying your WordPress and Mastodon/ActivityPub together.
Sell APIs? I made something that can help you!
Tags: api, platform, developers, indiehacker
Published: 2023-10-11 21:27:34

Do you sell APIs or AI models? Or want to sell APIs and want to create an API store?

Well, I had some APIs from a failed startup that I put on RapidAPI. It actually worked well and I was making over $2K/month. So naturally, I wanted to grow my business. 
Well, for that I needed a proper website. And a self-service platform that I could control. I know how to do sales and run ads. 

I started making a platform for my APIs and soon realized it was too much work and was sort of overkill for just one API seller i.e.me.

So converted this to a platform that anyone can use to sell APIs. It just takes 10 minutes to create an API store.
You can sign up here -> https://MagicAPI.app.

If you want to create an API Store, just let me know. I can onboard you.
Extracting Ones from an Integer Using the Modulo Operator
Tags: productivity, learning, tutorial, python
Published: 2023-10-11 20:58:12

In this post, I'll discuss an uncommon use case for the modulo operator: extracting ones from an integer. Let's say we have a variable that is of type Integer and we we want to know how many ones there are. For example, the number 12 has 2 ones. How do we extract the ones digit? The inefficient way to do this would be to convert the integer to a string, grab the last character from the string, and then convert it back to an integer like this:

```python
integer = 555

# Inefficient way - don't do this
ones_string = str(integer)[-1]
ones = int(ones_string)
```

Fortunately, there's a more elegant and efficient solution. You can use the modulo operator to obtain the ones digit directly, as follows:

```python
# Efficient way - do this
ones = integer % 10
```
By taking the remainder when dividing the integer by 10, we effortlessly isolate the ones digit. This method not only simplifies the task but also improves code readability and performance.
How to run a internal Flask APK Server
Tags: flask, python
Published: 2023-10-11 20:56:22

# Flask APK Server

## Overview

This Flask application serves an APK file to clients. Developed as a minimalistic solution, the app is designed to be used in a controlled environment with a limited number of users.

## Features:

- Simple endpoint (`/apk`) to download the APK.
- Endpoint (`/test`) to test the server's functionality.
- Endpoint (`/apk-test`) to check the presence and size of the APK file.

## Flask App:

```python
from flask import Flask, send_file
import os

app = Flask(__name__)

@app.route('/apk')
def download_apk():
    apk_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'app.apk')
    return send_file(apk_path, as_attachment=True, download_name='app.apk')

@app.route('/apk-test')
def test_apk():
    apk_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'app.apk')
    try:
        size = os.path.getsize(apk_path)
        return jsonify(status="success", message=f"The APK exists and its size is {size} bytes")
    except OSError:
        return jsonify(status="error", message="The APK does not exist or there's a problem accessing it.")

@app.route('/test')
def test_route():
    return "Test route is working!"

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=2000, debug=True)
Unlock Your Winning Potential: Dive into the World of Lottery Sites!
Tags: lotterysites
Published: 2023-10-11 20:48:38

Ready to unlock your winning potential? Dive into the thrilling world of lottery sites and let your dreams take flight. With jackpots waiting to be won, your fortune could be just a click away. With online lottery, UK players can join lotteries from around the world from the comfort of their homes. Find the best lottery sites here!
https://kabono.com/games/lottery/
OpsCanvas Introduces Draw & Deploy Cloud Deployment Platform: Public Beta Announced
Tags: devops, aws, cloud, automation
Published: 2023-10-11 20:36:25

**Fully Functioning, Public Beta Available Now!**

OpsCanvas is pleased to unveil the launch of its Public Beta. With this initiative, software engineers and tech leaders have the opportunity to use OpsCanvas’ innovative Generative IaC technology to deploy their software to the cloud prior to its broad-based release. This platform efficiently automates the cloud deployment work
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cdsq57sas41q2d8w6gnw.jpeg)
One-Click Automation of Deployment Tasks: OpsCanvas automates the tedious tasks associated with deploying software to the cloud, such as the configuration and provisioning of managed services (including networking, database, and other cloud services) and launching your containerized application and/or micro-services configured to take advantage of the cloud resources it requires.

Generative IaC Innovation: OpsCanvas automates the generation of Infrastructure as Code to facilitate an accurate and rapid deployment while eliminating the need to manually code the IaC for deployments. With the Generative IaC capabilities, the platform automatically creates secure, accurate, and complete IaC code. This accelerates developments, decreases operational overhead, and reduces potential security or success risks when deploying with IaC.

Join the OpsCanvas Community: Ready to begin? Create your Public Beta account [here](https://www.opscanvas.com).

**Key Advantages:**

Early Access: 

- Secure exclusive entry to cutting-edge platform engineering and Generative IaC technology.
- Exclusive Benefits: In addition to comprehensive training materials and support, early participants will receive a generous discount on OpsCanvas’ paid offerings when they become generally available.
- Public Beta Participation at No Charge.

About OpsCanvas:

At OpsCanvas, our primary goal is to simplify the cloud for software teams, irrespective of their technical background. We’re dedicated to making the complexity of cloud deployments more accessible. The OpsCanvas platform stands as a testament to this commitment, streamlining cloud deployments and simplifying the complexities. By leveraging our platform, businesses can reduce the need for extensive resources and deep technical knowledge, making the cloud a more streamlined experience.
Hacktoberfest2k23 pledge🚀🚀
Tags: hacktoberfest23
Published: 2023-10-11 20:30:16

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Excited for Hacktoberfest 2023! 🚀

Hey everyone! 👋 I'm **_[Princeton](https://github.com/Princeton21)_** , and I'm thrilled to be a part of the **DEV community** and participate in **Hacktoberfest** this year.I can't wait to contribute to organizations and dive into the world of open source.

### Pledge time🌟

During this Hacktoberfest, my main goal is to learn more technologies and expand my knowledge. 
Whether it's contributing to existing projects, starting a new one, or simply learning from the incredible community here, I'm ready to make the most of this month.


Let's make [Hacktoberfest 2023](https://hacktoberfest.com) a month of growth, learning, and impactful contributions together! 🚀🌟