teleren/devto huggingface dataset:
Simplifying VPC Peering with Terraform
Tags: aws, terraform, peering, tutorial
Published: 2024-01-12 05:42:47

[Repo](https://github.com/sudh33ra/aws-vpc-peering-poc)

---
## TL;DR

- clone the above
- edit vars.tfvars
- run the commands, you’re done

```shell
terraform init --reconfigure 
terraform plan -var-file=vars.tfvars -out tfplan 
terraform apply "tfplan"

```
---


Hey tech wizards! 🧙‍♂️ Ever wanted to connect two VPCs seamlessly? Look no further! This Terraform script is your go-to spell for creating a magical peering connection between two virtual realms.

## The Spellbook

### Players on the Stage
`data "aws_caller_identity" "peer"`: Meet the peer. We're grabbing its identity details, setting the stage for our mystical connection.

`resource "aws_vpc_peering_connection" "peer"`: The main act. We're weaving the connection, specifying the main VPC, the peer VPC, and other details. Tags act like name tags for our peering connection, keeping everything neatly labeled.

`resource "aws_vpc_peering_connection_accepter" "peer"`: The gracious accepter on the other side. This player automatically nods to the peering connection. No need for manual approvals here!

`resource "aws_route" "main_r" and resource "aws_route" "peer_r"`: Think of these as the traffic conductors. We're setting up routes in the route tables of both VPCs to guide the virtual traffic. It's like placing road signs for data.

## The Dance Steps
**Requester's Moves: **We kick off the peering connection with the requester side. We're setting up the connection, specifying who we want to peer with, and tagging it as the "Requester" side.

**Accepter's Groove:** The accepter side gracefully accepts the connection, all automated. Tags say it's the "Accepter" side.

**Routing Rhythms:** We create routes in both VPCs to ensure data knows where to go. Think of it as programming the GPS for our virtual traffic.

## The Magic Words
```shell
terraform init --reconfigure
terraform plan -var-file=vars.tfvars -out tfplan
terraform apply "tfplan"
```
Just chant these words in your terminal, and watch the magic unfold in your AWS console!

## Important Notes
This script is your key to regional connections between VPCs. But remember, the magic words come with a note:

**Note:** After the spell is cast, make sure to enable DNS resolving on both sides for the full enchantment.

Happy peering,
SD
Sosis Bandari - Real Shawarma sandwich
Published: 2024-01-12 05:25:36

Indulge in the unique flavors of [Sosis Bandari](https://real-shawarma-sandwich.business.site/)—a culinary journey that combines traditional Iranian spices with a modern twist, creating a savory sensation that's a true signature of our culinary expertise. Get in touch to know more about us today.
Explore Alleppey with Exquisite Houseboat Bookings
Tags: houseboats, travel
Published: 2024-01-12 05:19:11

Are you ready for an unforgettable adventure? Dive into the enchanting world of Alleppey with our premium houseboat bookings, unlocking a gateway to unparalleled serenity and luxury.

Nestled in the heart of Kerala, Alleppey beckons travelers with its picturesque landscapes and tranquil backwaters. To truly immerse yourself in this breathtaking destination, consider indulging in a unique experience – a houseboat stay.

Our [houseboat bookings](https://boatsnbeds.com/) redefine opulence. Imagine waking up to the gentle rocking of the boat, surrounded by the lush greenery and calming waters. Each houseboat is a floating haven, meticulously designed to provide the utmost comfort and luxury.

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

Whether you seek a romantic escapade or a family retreat, our diverse range of houseboats caters to every traveler's needs. From intimate rooms for couples to spacious accommodations for families, we ensure a tailor-made experience for everyone on board.

The prices for [houseboats in Alleppey](https://boatsnbeds.com/), a picturesque town in Kerala, India, vary based on several factors such as the type of houseboat, its amenities, and the duration of the stay. Generally, the cost for a houseboat experience in Alleppey can range from INR 6,000 to INR 25,000 or more per night, depending on the level of luxury and services provided. Standard houseboats typically offer comfortable accommodations and traditional Kerala cuisine, while premium and luxury options may include additional features like air-conditioned rooms, private balconies, and personalized services. It's advisable to check with various houseboat operators to find a package that suits individual preferences and budget constraints. The serene backwaters of Alleppey make the houseboat experience a unique and tranquil way to explore the natural beauty of the region.
Getting started
Published: 2024-01-12 04:54:08

Hi, I am Myo!

In August 2022, I decided to have a midlife career change into Tech. I started looking into several career options to see which one aligns most with my interest. After days of searching and researching online, I found the "CLOUD" which instantly caught my interest.

I have since then become so hooked to learning as much as I could, every day I spend hours and hours studying, learning other technologies as well as watching YouTube videos of tech youtubers, to know more about how to best navigate the career path into Tech.
I got my first AWS certification (Cloud Practitioner) in May 2023 and my Second (Solution Architect Associate) in Aug 2023.

later in the year, I tried to get my hands dirty by trying to do some projects then discovered that to be successful in a cloud career, one needs to be conversant and knowledgeable in other technologies as well, so I challenged my to learning more and more, starting with Linux, then Python, Git/GitHub, Kubernetes, Terraform, IAC. I am currently learning Java. 

My goal is to go back to the AWS space this year and work on getting certified in the SysOps, Developer, and the newly introduced Data Engineer at the associate level.
Gadget Hub
Tags: webdev, programming, react, productivity
Published: 2024-01-12 04:47:18

Hey there gadget lovers! 👋 Welcome to [Gadget Hub](https://www.youtube.com/@GadgetHub100) - your #1 spot for the latest and greatest in tech. I'm stoked to have you here!

As a self-proclaimed geek, I know how exciting it is to get your hands on the newest gadgets and tech toys. From sleek new laptops to crazy VR headsets, I want to help you stay on top of it all!

At Gadget Hub, we live and breathe tech. You can count on us to bring you in-depth, honest reviews on all the gadgets you have your eye on. Beyond the review, we'll also give you a peek into the minds of tech companies and where the industry is headed. The future is coming - let's explore it together!

Whether you're a fellow tech nerd or just gadget-curious, consider this your invitation to dive deeper into the wonderful world of technology. Subscribe today and let's get geeking out over our shared tech obsession!
World of Luxury
Tags: webdev, beginners, tutorial, programming
Published: 2024-01-12 04:44:00

Welcome to the [World of Luxury](https://www.youtube.com/@worldofluxury100) - your inside look into the finest things in life. If you crave the elite lifestyle, you're in the right place.

On this channel, we showcase the most exclusive, high-end products and experiences that money can buy. From multi-million dollar hypercars to private jets and mega yachts, we cover all things luxury.

Get up close and personal with the latest luxury automotive reveals, including Rolls-Royce, Bentley, Bugatti, and more. Peek inside celebrity homes and see how the top 1% lives. Join us as we tour private islands, fly first class, and give you a taste of the lush life.

Living luxuriously is a dream for many. Our goal is to give you VIP access into this glamorous world. Escape into the exceptional Extravagance awaits. Welcome to the World of Luxury!
[20 Days of DynamoDB] Day 5 - Avoid overwrites when using DynamoDB UpdateItem API
Tags: go, serverless, dynamodb, cloud
Published: 2024-01-12 04:41:56

*Posted: 12/Jan/2024*

The `UpdateItem` API creates a new item or modifies an existing item's attributes. If you want to avoid overwriting an existing attribute, make sure to use the `SET` operation with `if_not_exists` function.

Here is an example that sets the category of an item only if the item does not already have a category attribute:

```go
	resp, err := client.UpdateItem(context.Background(), &dynamodb.UpdateItemInput{
		TableName: aws.String(tableName),
		Key: map[string]types.AttributeValue{
			"email": &types.AttributeValueMemberS{Value: email},
		},
		UpdateExpression: aws.String("SET category = if_not_exists(category, :category)"),
		ExpressionAttributeValues: map[string]types.AttributeValue{
			":category": &types.AttributeValueMemberS{
				Value: category,
			},
		},
	})
```

> Note that `if_not_exists` function can only be used in the `SET` action of an update expression.

Recommended reading - [DynamoDB documentation](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.UpdateExpressions.html#Expressions.UpdateExpressions.SET.PreventingAttributeOverwrites)
Welcome to Packypedia
Tags: packy, webdev, beginners, tutorial
Published: 2024-01-12 04:40:15

Greetings, packaging enthusiasts! I'm PALANIKKUMARAN (PK) MUTHIAH, your guide into the captivating realm of packaging through the lens of [Packypedia](https://www.packypedia.com/).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iih8iw0r2k8g3zzq4nt3.png)
 
Let me take you back to a moment that changed everything. Not in a high-tech lab or surrounded by fancy gadgets, but in a regular materials science and engineering workshop. Picture this – rows of materials, each with unique properties waiting to be harnessed for a specific purpose.

"It's just raw materials," I thought. But my inner engineer couldn't resist the challenge. Why the diverse array of materials? Were these options better for the environment? Did the subtle variations in composition hold the key to unlocking new possibilities? And then, like a flickering lightbulb, it struck me. The packaging world, a silent giant in the background, needed a superhero, someone to make sense of the diverse materials and their potential.

Armed with my engineering background, a backpack brimming with experiments, and an MBA up my sleeve, I decided to step up! Packypedia was born – your go-to hub for all things packaging and materials science. 

No more scratching your head, wondering, "Why so many materials?" Packypedia is here to unravel the mysteries of polymer resins, package with products, and everything in between – a Wikipedia for packaging enthusiasts like us, ready to uncover the secrets of the material universe.
Permission error : sudo npm i -g node@14.18.1 throws error
Tags: node, npm, ec2, permissions
Published: 2024-01-12 04:25:15


Hello everyone 

I have node app running with sudo npm start command and 

- when app running its not taking  specified node version 14.18.1 - - when i do sudo su and node -v gives "14.18.1" but for normal use sudo node -v gives me "12.22.1"    
- when i try to install sudo npm i -g node@14.18.1 gives me below error
-  aws ec2 linux machine

sudo npm i -g node@14.18.1

> node@14.18.1 preinstall /usr/lib/node_modules/node
> node installArchSpecificPackage

npm ERR! code EACCES
npm ERR! syscall scandir
npm ERR! path /root/.npm/_logs
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug 

npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 99:1000 "/root/.npm"
glob error [Error: EACCES: permission denied, scandir '/root/.npm/_logs'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'scandir',
  path: '/root/.npm/_logs'
}
npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /root/.npm/_cacache/index-v5/14/d7/ea219c5ebc10fb0a36ef7e8846ddffeccbde34792bd22566ab58fbd91ac7
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 99:1000 "/root/.npm"
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'node-linux-x64/package.json'
Require stack:
- /usr/lib/node_modules/node/installArchSpecificPackage.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.resolve (internal/modules/cjs/helpers.js:80:19)
    at ChildProcess.<anonymous> (/usr/lib/node_modules/node/node_modules/node-bin-setup/index.js:19:27)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1022:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/lib/node_modules/node/installArchSpecificPackage.js' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node@14.18.1 preinstall: `node installArchSpecificPackage`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node@14.18.1 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2024-01-12T04_18_22_548Z-debug.log
Future proof code
Tags: softwareengineering, careerdevelopment, programming, productivity
Published: 2024-01-12 04:13:53

“Because in the future we might need…” triggers me a lot. 

When I hear “In the future we might need…” I am hearing:  “I am adding this complex code for no particular reason, and we will have to maintain it for a long time only to spend weeks to remove it”.  

It is like saying “In the future I might want to build a pool so let me dig a giant hole somewhere in my backyard right now.” 

Digging this hole will create a bunch of problems. It’s a safety hazard, so you’ll have to fence it. During a storm, a lot of water will pool there, and you’ll need to pump it out. Your guests will ask about your hole or comment on it each time they visit you. Your or your friends’ kids won’t be able to play in the backyard, and if they try, you’ll be the one to get the ball from the hole. Eventually, you may decide to sell the house or come to the conclusion that a pool in the backyard was not that splendid of an idea, and your giant hole is now a giant problem. If you do happen to move forward with the pool project years later, your pool hole will likely not be where you want the pool now. It will probably also be either too small, too big, too deep, or too shallow.

What do you do if you consider building a pool next to your house sometime in the future? You don’t make decisions that will make it impossible to build it when the time comes: you don’t sell this land, you don’t build a bunker or mother-in-law unit there. You just keep the land maintained. You can even build some lightweight structures like a playground or a shed. If you give up on the pool idea, decide to sell the house, or use the land differently, you can easily do so at no additional cost. If you decide to build the pool and are ready for the project end-to-end, only then do you dig the hole. This time, you will know exactly what hole to dig and where.

Software is not much different. Integrating frameworks and adding unnecessary abstractions or superfluous extensibility because we might need them in the future is like digging a pool hole for a future pool. It makes code hard to understand and modify and creates a huge maintenance burden. It is a source of bugs, on-call toil, and performance issues. Removing gets harder with each incoming change. And when you finally try to use this code (if it ever happens) you will find it impossible. The assumptions you made will have changed. The abstractions won’t be quite right, and the extensibility points won’t be usable.

The best way to make the code ready for the future is to keep it as simple as possible with good test coverage. Then, when you’re ready to implement your feature, you can change it safely and easily.
How to Send Verification Email after Registration in Laravel with Jetstream .
Tags: laravel, php, webdev
Published: 2024-01-12 04:02:49

In Laravel sending a verification email with Jetstream after registration is the easiest thing to set up. 

To get started you need to install the Jetstream package. 
You can follow all jetstream installation here : https://jetstream.laravel.com/installation.html

After the installation of JetStream to enable sending mail verification after user registration : 

1- Enable Jetstream EmailVerification feature  

you should enable email verification by uncommentting **emailVerification** feature on the **fortify.php** file.
**in our image, this is the line : 137.**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szrrjdehp4u68mlv0g0u.png)

2 - Add **MustVerifyEmail** to Your User model 

after enabling email verification you need to add **MustVerifyEmail** interface to the user's model file.
**MustVerifyEmail** is an interface that provide **sendEmailVerificationNotification** function and many others. 

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

3 - Setup Mailtrap

For tesing email verification we gonna use **Mailtrap**.
**Mailtrap** is a service that provides a simulated SMTP server for testing email sending in development and staging environments. 
First, register in the https://mailtrap.io to create a new account (It has a free version so don’t worry), and after the registration success, you can see the SMTP Setting for integrating your Mailtrap into our Laravel project.

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

Next, open your project's .env file and add the smtp settings provided by mailtrap.

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

4 - Test 

- Registration user **test** : 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3q1dp8xojmcbnax5a6qy.png)

- An verification email is sent to user **test**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eq574x6o09ydim3qmtht.png)

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

Is the end of this **article**. If you have any **suggestions** for **improving** this **article**, please let us know in the **comments**.
MLOps project setup: upload data to Hopsworks feature store
Tags: mlops, dataengineering
Published: 2024-01-12 03:41:33

This is how the project will be looking after completing this step. Go see previous entries [one](https://dev.to/dplata/mlops-project-setup-airbyte-ade), [two](https://dev.to/dplata/mlops-project-setup-supabase-1710) and [three](https://dev.to/dplata/mlops-project-setup-airbyte-supabase-connection-3pc2) if you want to follow along.
![Architecture diagram](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kx2lbxlb515fgo0dowhe.png)

You'll need a [Hopsworks](http://hopsworks.ai/) account for this step so create one.

This is the [complete code repo](https://github.com/DPLATA/silverboi) with the code to push a feature group to Hopsworks but basically what is happening is:

1. retrieve data from Supabase database and load it into a pandas dataframe
2. upload features into Hopsworks feature store

In between this two steps you can perform the following:
- feature engineer, this is an optional step which I plan on completing later.
- reassure data quality, this can be achieved through [great expectations](https://greatexpectations.io) library this is also optional and for now I'm skipping this step


Here is a [gist](https://gist.github.com/DPLATA/70b161bd29d13d5eb878265495ce160a) only with code for uploading feature groups.
IS THERE LEGALLY GREEN SIGNAL TO BITCOIN TRADING
Published: 2018-01-15 17:10:07

---
title: "IS THERE LEGALLY GREEN SIGNAL TO BITCOIN TRADING"

published: True
description: 
---
 ![thegunbot image](http://thegunbot.com/wp-content/uploads/2017/09/gunbot_autopilot4.jpg) 

Bitcoin is the digital money system and is decentralized currency. Bitcoin trading is catching fire these days among investors and brokers due to its drastic growth. But the legality question of this trading force the existing and potential investors to scratch their heads as there is not any clear light on the legal end of this digital money making system though [The gunbot](http://thegunbot.com/).

 While clarifying about legality of Bitcoin worldwide we can understand that Bitcoin and concept of cryptocurrency is still in the stage of nascent in few countries like India as in India, according to finance minister of India, bitcoins are not legal tender but internationally scenario is not same as in the countries like UK, USA this trading has the green signal from legal authorities.Public is warned about the risks associated with bitcoins and even the central bank of Jordan prohibits the financial institutions, banks, payment service institutions and even currency exchanges from dealing in cryptocurrency still this digital currency is being accepted by small businesses and even many merchants.

 For dealing in bitcoins you need to verify only your ID, trading bot and sufficient capital to invest and you can easily buy or sell bitcoins at your end.Bitcoin trading and mining is perfectly legal in some countries however in some countries it is not treated as currency but as an asset or property. Some trading firms follows the strong compliance and verification process before Bitcoin trading to ensure the fair trading as they ask for your PAN card , bank details, Adhar card and even make policies like bank to bank transfers and allow only one bank account per person.In simple words the legality of Bitcoin trading depend on your ID , your prevailing location and even your Bitcoin activities and income source otherwise the law enforcement agencies, regulation agencies and tax authorities are crawling to understand about the survival and fitting of Bitcoin activities into existing framework.

This digital currency is still matter of concern for many regulators as they are struggling to understand it and its activities and even they are trying to control its use so it’s important for us rather than thinking about the question is Bitcoin trading legal? It is hood to play fair game under the fair rules of this game so that amid the legal issues of Bitcoin you can stand fair.

tags: BITCOIN, thegunbot, altcoin, cryptocurrency bot, crypto trader, gunbot trading software, gunbot trader
---