teleren/devto huggingface dataset:
How I make $9,072 per month running the cheapest AI tool on the market
Tags: gpt3, webdev, saas
Published: 2022-12-27 21:59:56

Everyone knows how important good content is to rank in Google and to drive traffic to your website, or to use a well written sales copy to convert your users. Manually writing this content usually takes a long time that can better be spend on other tasks. That is why I created [HeronAI.com](https://heronai.com) which creates unlimited unique content for you for just $16/month.

Use artificial intelligence trained to write original, creative content based on the well known GPT-3 with custom modifications. Tools like Jasper or content.ai cost $300 and more per month if you really want to create a lot of content.

This is exactly the niche I found for me, offering the same service but at a fraction of the cost isn't really a ground-breaking way to find a viable business model but it works across most industries. My biggest cost saving compared to these tools is lower payroll costs since its just me as well as lower marketing spend. Instead of running expensive Google and FB ad campaigns, which eventually have to be paid by the users themself and incorporated into the price of the product, I am mainly getting users by word of mouth.

Many of my users create content to rank in Google, some of them create 300 articles/month and more. I am currently working on a direct Wordpress implementation so you can easily schedule posts which get directly created by the AI and posted to your blog.

Feel free to give it a try, even during the free trial you can create unlimited content.
About Siyafat Ahmed
Tags: cybersecurity, programming, webdev, python
Published: 2022-12-27 20:44:53

**Growing Up**

[Siyafat](https://www.facebook.com/profile.php?id=100000507095164&mibextid=LQQJ4d) had always been fascinated by technology and the way it worked. From the time he was a little boy growing up in Dhaka, he spent hours tinkering with computers and learning about different programming languages. As he got older, he became more and more interested in security and decided to focus on learning about ethical hacking.

**High School Years**

[Siyafat](https://www.facebook.com/profile.php?id=100000507095164&mibextid=LQQJ4d) excelled in his studies and quickly gained a reputation as one of the top students in his class. After completing high school, he enrolled in a computer science program at a local university and spent the next four years learning everything he could about security and ethical hacking.

**Early Career**

After graduation, he landed a job as an ethical hacker at a large technology company. He spent several years working in this role, helping to secure the company's systems and networks against potential threats. While he enjoyed his job and was good at it, Siyafat always had a desire to become a software developer. He loved the creative process of building and designing software, and he felt like it was a natural next step for him.
So, he made the decision to pursue his dream and enrolled in a software development program. He threw himself into his studies, to the point of obsession, working hard to learn as much as he could. After several years of hard work, he finally graduated and decided to start a software company rather than go the traditional route of finding a job.

**Current Path:** _Entrepreneuship_
[Siyafat](https://www.facebook.com/profile.php?id=100000507095164&mibextid=LQQJ4d) loves his new job as a startup founder and is continuously grateful for the opportunity to use his skills to help build and improve software for users all over the world. He remains constantly learning and growing, and believes he has finally found his true calling. While his journey as an ethical hacker and software developer has been full of ups and downs, Siyafat is proud of what he has accomplished and is excited for what the future holds.
Looking for a WordPress alternative? React Bricks is a great CMS.
Tags: cms, react, javascript, nextjs
Published: 2022-12-27 20:33:53

## **Why you should replace your Wordpress sites with React Bricks?**

1. Wordpress never meant to be  CMS it’s an blogging platform. 
2. After using Wordpress for several websites, I have notices lot of issues specially in terms of security untrusted plugins, shared hosting ( even if some of the sites get infected in shared your sites have chances to get infected) resulting into blacklist into your domain, banned from Facebook and google accounts if using similar domain)
3. Frequent updates with not backward compatibility.
4. Wordpress is super slow and poor in SEO
5. No support for A/B testing 
6. In-built Version management 
7. No Framework or theme locking

After waiting for years, I have come across **React Bricks**, the first headless CMS for content creators with true visual editing similar to WordPress but made with React. It is ideal for simple sites with a few static pages.You don't need to load heavy WordPress plugins and can instead use react animation libraries like Framer instead of heavy and paid WordPress plugins.

If you're looking for an e-commerce solution, For e-commerce, you can use Gatsby and Shopify, and for CMS, you can use React Bricks. There are published demo sites on Gatsby and Shopify with 10,000 products, and it works very smoothly and quickly compared to Woocommerce and WordPress.

Installation of React Bricks is pretty straight forward. But make sure you do create the account on react bricks before continue with the follow steps:

**Step 1:** Signup for React Bricks account
https://reactbricks.com/sign-up

**Step 2:** Go to terminal, execute the create brick app command

```
npx create-reactbricks-app
or
yarn create-reactbricks-app
```

To proceed with the installation, please press Y to install the required packages.

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

**Step 3:** Please enter the account credentials that you used to signup for the react brick account. 

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

After successful authentication, Choose to create a new app

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

Select a Project type to proceed with, react bricks give you a sample project to start with

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

**Step 4:**
After you run dev, the app will work locally at http://localhost:3000

```
npm dev
or
yarn dev
```

/admin will give you access admin panel that similar to Wordpress admin panel.


_Overall, with React Bricks, content editors have an easy user interface to make edits without sacrificing pixel-perfect design. The developers have full control over the code to define visually editable content blocks using React._




📖 Documentation:
Please, read the Documentation at React Bricks.
https://docs.reactbricks.com/

Also Please Read How to Deploy your Project on Vercel
https://vercel.com/
Top 7 Featured DEV Posts from the Past Week
Tags: top7
Published: 2022-12-27 20:03:08

---
title: Top 7 Featured DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week
tags: icymi 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---

_Every Tuesday we round up the previous week's top posts based on traffic, engagement, and a hint of editorial curation. The typical week starts on Monday and ends on Sunday, but don't worry, we take into account posts that are published later in the week._ 

## 11 Tips to Improve your TypeScript

Learning Typescript is often a quest of rediscovery. Your initial impression can be pretty deceptive, so take these tips from @ymc9 along with you on your journey

{% embed https://dev.to/zenstack/11-tips-that-help-you-become-a-better-typescript-programmer-4ca1 %}


## Difficulty in Scaling Websockets

Websockets are an important part of the web, and they need more recognition in the software development world. Find out what makes websockets unique with @nooptoday.

{% embed https://dev.to/nooptoday/why-websockets-are-hard-to-scale-1267 %}


## React’s New Documentation

From basic to advanced topics, these docs cover everything you need to learn how to use the best of modern React to create user interfaces. Explore React’s new documentation with @diogorodrigues as they highlight some of its key advantages.

{% embed https://dev.to/diogorodrigues/reacts-new-killer-documentation-focused-only-on-functional-components-jnk %}


## Hello React, Goodbye useEffect

In this article, @imbios will show you how to use React to replace useEffect in most cases. Find out why you should ditch useEffect for features that will make your code cleaner and easier to maintain. 

{% embed https://dev.to/imbios/hello-react-goodbye-useeffect-i-hope-4mf1 %}


## API Tester Mobile App

Backend developers can test APIs with one of many popular tools; however, none of these manage to handle API testing through an easy-to-use mobile app. Check out what the API Tester Mobile App from @mariamarsh can do for you.

{% embed https://dev.to/mariamarsh/how-to-test-crud-restful-apis-with-the-api-tester-mobile-app-eco %}


## Free and Open-Source Resume Builder

Free and accessible resume builders can be hard to find, so check out this open source resume builder highlighted by @cppshane!

{% embed https://dev.to/cppshane/finally-a-free-and-open-source-resume-builder-without-watermarks-or-limitations-2gbm %}


## Billions of unnecessary files in GitHub

Some files don’t need to be in GitHub, either because they can be generated later or because they’re easily accessible in other places. To that effect, @szabgab shows us how .gitignore can be a useful tool to keep track of your repositories. 

{% embed https://dev.to/szabgab/billions-of-unnecessary-files-in-github-i85 %}


_That's it for our weekly Top 7 for this Tuesday! Keep an eye on dev.to this week for daily content and discussions...and be sure to keep an eye on this series in the future. You might just be in it!_
Leaving the comfort zone
Tags: webdev, javascript, beginners, productivity
Published: 2022-12-27 19:54:08

I am beginning to dive into the idea of developing ideas from scratch, committing myself to develop my skills and be able to pursue the lifestyle that I would like:
**Music, Code, Free time, Money and above all a Remote Job**

Currently I consider myself a Junior developer (MERN Stack), with great motivation and desire to start projects. I have already researched 1 full year, about development, but it is not until today that I understand how the industry works and how a good application or software creation should be.

My name is Joshua Herrera, I am currently 23 years old, and I have never gone to a university, I had to work at 16 because I dropped out of school,So I needed to work.
After that I learned English by myself, I learned to play guitar by myself, and now I am learning how build high detail and quality Software.

I'm going to be posting the path I'm taking, so I can have that discipline that costs us so much.

> "Get your education, don't forget from whence you came
> And the world's gonna know your name. What's your name man?"



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rzqd8ogg8wyhlsq6gq9.png)
75% It will be definitely over before February
Published: 2022-12-27 19:35:51

Unfortunately PortalGrup didn't hire me. But on the other side, German courses go well, although surprisingly, I am better than the class, and sometimes it is really boring to sit through classes where I learn nothing.

But anyways, the good thing is, I can still find time to continue with my course and I plan to definitely be done with my current course before February!

I know that German-language skills won't change my life dramatically. Maybe learning an extra language will do the trick but I am kind of fed up with language learning and actually advancing in programming is way nicer of a challenge in so many ways!

I aspire to be a goddamn good coder. The thing that sometimes made life hell for me: my ADHD, I recently learned that it can be a superpower 🤷🏻‍♂️ Now I am doing my best to make it into a superpower and I exercise pretty regularly, although I can't lower my weight, I notice the positive effects on my body and my brain.

And last but definitely not least: these may be the best days of my last decade, because I learn so goddamn much and am physically and mentally the fittest I've ever been in the last 10 years I believe...
The Indispensable Man by Saxon White Kessinger
Tags: poem, saxonwhitekessinger
Published: 2023-01-04 04:11:38

---
title: The Indispensable Man by Saxon White Kessinger
published: true
date: 2022-12-27 19:00:27 UTC
tags: poem,SaxonWhiteKessinger
canonical_url: https://davidloor.com/2022/12/27/the-indispensable-man-by-saxon-white-kessinger/
---

![Saxon White Kessinger](https://i0.wp.com/davidloor.com/wp-content/uploads/2022/12/Saxon-White-Kessinger.jpg?resize=333%2C500&ssl=1)

Sometime when you’re feeling important;  
Sometime when your ego’s in bloom;  
Sometime when you take it for granted,  
You’re the best qualified in the room:

Sometime when you feel that your going,  
Would leave an unfillable hole,  
Just follow these simple instructions,  
And see how they humble your soul.

Take a bucket and fill it with water,  
Put your hand in it up to the wrist,  
Pull it out and the hole that’s remaining,  
Is a measure of how much you’ll be missed.

You can splash all you wish when you enter,  
You may stir up the water galore,  
But stop, and you’ll find that in no time,  
It looks quite the same as before.

**The moral of this quaint example,  
Is to do just the best that you can,  
Be proud of yourself but remember,  
There’s no indispensable man.**
Hacktoberfest 2022 shipping t-shirt
Tags: hacktoberfest, github, opensource
Published: 2022-12-27 18:58:41

Edit: it was shipped, I claim it on October 8th

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


I just got an update on shipping t-shirts, deliveries planned for later this year turned into earlier 2023, on last year it shipped on January 20th.

![hacktoberfest 2022 shipping t-shirts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s1f4228t7u3d9zj0qry0.png)
Matplotlib: Visualization with Python
Tags: machinelearning, matplotlib, beginners, programming
Published: 2022-12-27 18:02:38

Matplotlib is the most popular plotting library for python. It was designed to have a similar feel to MatLab's graphical plotting. Since Matplotlib is an open source library, we are free to make use of it. Matplotlib is the result of development efforts by John Hunter (1968–2012) and the project's many contributors.

There are two types matplotlib:

1. Functional

2. Object Oriented

## Functional Plots
**Examples:**

```
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0,5,11)
y = x**2
#FUNCTIONAL
plt.subplot(1,2,1)
plt.plot(x,y,'r')

plt.subplot(1,2,2)
plt.plot(y,x,'b')
```
Output:

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


First are going to use matplolib.pyplot as plt and if you are using jupiter notebook you should also use %matplotlib inline it will allow you to see the plots you create inside the Jupiter Notebook. then you can import numpy library to create to arrays. 

then you can plot a graph and if you are not using Jupiter Notebook you have to type .show() many times. Only difference with Jupiter Notebook is it automatically prints you your output. And you can do multiplots using subplot() method it takes multiple arguments (number of rows, number of columns, plot number). and r and b represents color r represents red and b represents blue.

## Object Oriented
**Example:**

```
#OO
fig = plt.figure()

axes = fig.add_axes([0.1,0.1,0.8,0.8])

axes.plot(x,y)
axes.set_xlabel('X Label')
axes.set_ylabel('Y Label')
axes.set_title('Set Title')
```
**Output:**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/odx8fp9ngdmyf5uk4bva.png)
This figure method you can think it as imaginary set of canvas and you can add set of arrays to this canvas. The add_axes() method figure module of matplotlib library is used to add an axes to the figure. And set_label() are used to label axis and naming them.

You can check out many ways on how you can plot graphs using matplotlib by clicking this link below:

https://github.com/azaynul10/Python-For-Data-Science-And-Machine-Learing-Bootcamp-Exercise-Solutions/blob/24fcdcfc4e4734b98ea9ba0a0821ff39e28d7354/Matplotlib%20Exercises%20.py
Perform multiple tasks concurrently in Python: "Asynchronous Programming in Python with Asyncio"
Tags: python, programming, beginners
Published: 2022-12-27 17:54:25

Asyncio is a Python library for writing asynchronous code. Asynchronous programming allows a program to perform multiple tasks concurrently, rather than waiting for one task to be complete before starting the next. This can be useful for improving the performance of programs that perform tasks that take a long time to complete, such as making network requests or reading and writing to a database.

Asyncio uses the async/await syntax to define asynchronous functions and to pause and resume them as needed. Here's a simple example of an asynchronous function that uses asyncio to pause and wait for a delay:

```python
import asyncio

async def say_after(delay, what):
    await asyncio.sleep(delay)
    print(what)

async def main():
    print("started")
    await say_after(1, "hello")
    await say_after(2, "world")
    print("completed")

asyncio.run(main())
```

This code will print "started", then "hello" after a delay of 1 second, followed by "world" after a delay of 2 seconds. Finally, it will print "completed". Asyncio allows the program to perform other tasks while waiting for the delays to complete, rather than blocking until they are finished.

## I hope you liked it!


<a href="https://www.buymeacoffee.com/anurag629" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
How to prevent destroy an instance after an update
Tags: terraform, gcp, googlecloud
Published: 2022-12-27 17:48:33

While stumbling upon stackoverflow to crawl some posts about GCP and Terraform as part of my learning curve, I came across this particular issue: 

#### How can I update an instance as part of the Infrastructure as Code after creation.

After hours of research, manual errors and trials, it turned out that the issue was on plain sight...to quote Benoît Blanc.[^1]. Being enthusiastic about my findings, I wanted to answer.

So, it turns out that:

>  _"Instance Templates cannot be updated after creation with the Google Cloud Platform API. In order to update an Instance Template, Terraform will destroy the existing resource and create a replacement. In order to effectively use an Instance Template resource with an Instance Group Manager resource, it's recommended to specify create_before_destroy in a lifecycle block. Either omit the Instance Template name attribute, or specify a partial name with name_prefix_"
[^2].

Concretly, three options: 

##### 1. Use create before destroy lifecycle:

Example: 

```
   resource "google_compute_region_instance_group_manager" "my_service_mig" {
      version {
        instance_template = google_compute_instance_template.my_service_template.id
        name              = "primary"
      }

+ lifecycle {
+   create_before_destroy = true
+ }
}
```

##### 2. Use prevent_destroy

   

```
resource "google_compute_region_instance_group_manager" "my_service_mig" {
      version {
        instance_template = google_compute_instance_template.my_service_template.id
        name              = "primary"
      }

+ lifecycle {
+   prevent_destroy = true
+ }
}
```
##### 3. Quick and dirty 

```
terraform plan | grep <resource> | grep id 
terraform state rm <resource>
terraform apply
terraform import <resource> <ID>
```


My original answer, here:



{% embed https://stackoverflow.com/questions/74903201/how-can-i-configure-terraform-to-update-a-gcp-compute-engine-instance-template-w/74914276#74914276 %}

 
[^1]: !!! **_Spoiler Alert_** !!!_"Well, I keep returning in my mind to the glass onion. Something that seems densely layered, mysterious and inscrutable. But in fact, the centre is in plain sight."_ - _Glass Onion_

[^2]: [registry.terraform.io](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance_template#using-with-instance-group-manager)
Docker: The Key to Building Production-Quality Applications
Tags: docker, devops, programming, productivity
Published: 2022-12-27 17:40:16

Are you tired of manually installing dependencies and configuring environments every time you want to deploy your application to a new environment? Docker can help!

Docker is a tool that allows you to package your application and its dependencies into a container, which can be easily run on any machine with Docker installed. This can save you a lot of time and effort, and make it easier to deploy and run your application in different environments.

But that's not all! Here are a few more ways that Docker can help you build production-quality applications:

1. Isolation: Docker containers allow you to isolate your application from the host system and other applications, which can be especially useful in a production environment where you want to ensure that your application is running in a predictable and consistent environment.

2. Portability: Docker containers are self-contained and include all the necessary dependencies, which makes it easy to move them between different environments. This can be helpful for deploying your application to different environments and ensuring that it works as expected.

3. Scalability: Docker makes it easy to run multiple instances of your application, either on a single machine or on a cluster of machines. This can be helpful for scaling your application to meet increased demand, and can be easily achieved using a container orchestration tool like Kubernetes.

4. Resource efficiency: Docker containers are lightweight and use fewer resources than traditional virtual machines, which can help you run more applications on a single machine and make better use of your resources.

So if you want to build and deploy production-quality applications in a more efficient, scalable, and predictable way, give Docker a try! It could save you a lot of time and hassle, and help you deliver better applications to your users.

I hope this post has been helpful. Let me know if you have any questions or comments.