teleren/devto huggingface dataset:
Laravel Vapor Multiple Deploy File to different AWS account or region
Tags: laravel, laravelvapor, serverless
Published: 2021-08-18 16:29:10

# Brief Description

Will be sharing how I was able to deploy same codebase to different AWS account on Vapor using multiple `vapor.yml` config file with the help of bash scripts.

At the time of writing this, Laravel Vapor did not support deploy command to receive a filepath to deploy against. Hopefully one day that feature can be added by the team.

These approach allows you to use separate AWS account for your staging and production environments if needed as well better than that deploy to multiple aws account or multiple aws region.

# How it works

Assuming you already have your laravel project setup and working with [Laravel Vapor](https://vapor.laravel.com/).

1. Rename `vapor.yml` to `vapor.{account}.yml`, project should be a unique name different to the other file you need to create. eg. `vapor.dev.yml`
2.Create another vapor config file to deploy to the different account or region. eg. `vapor.devcon.yml` and make sure config are correct.
3. Make sure `vapor.yml` file doesn't exist on your root directory of project anymore.
4. Copy the following scripts to the root directory of project and make sure to make them executable.
{% gist https://gist.github.com/norbybaru/880317b766b27849ae75f48e59926576 %}


# Interact with scripts

At this stage you should have 2 vapor config file on your root directory. From our example you would have:
```
vapor.dev.yml
vapor.devcon.yml
```

###### Vapor CLI:
```bash
./vapor-cli.sh dev env:pull staging
./vapor-cli.sh dev env:push staging
```

###### Deploy:
```bash
./vapor-deploy.sh dev staging
./vapor-deploy.sh devcon production
```

# Take Away
This approach can be used to deploy Staging and Production to different AWS account or Region as well.

All that will be 
* To have correct file naming and config to have only correct environment setting on the related file.

* To make changes to both script by to only allow 1 argument and use 1st argument as filename and environment to run against. 

Eg.
```
vapor.staging.yml
vapor.production.yml
```

```bash
./vapor-deploy.sh staging
./vapor-deploy.sh production
```
The Next Ten Months
Tags: blockchain, startup, 100daysofcode, career
Published: 2021-08-18 16:25:44

Sometimes inspiration strikes when you’re outside. Sometimes it appears when you’re browsing Instagram. Sometimes it hits when your peers are out-lapping you on “life’s biggest milestones.”

In my case, it struck at 2 am while watching My Hero Academia.

That’s right. [My Hero Academia](https://myheroacademia.fandom.com/wiki/My_Hero_Academia_Wiki), a Japanese anime, has inspired me to keep myself accountable on the next journey in my life from Web2 to Web3.

For those unfamiliar with the series, a boy named Izuku wants to be a hero but was born without the genetic ability to become one. Avoiding major spoilers, Izuku becomes a hero on some condition and must go through ten months of disciplined training to catch up to speed with his peers. The rest of the series follows Izuku’s day-to-day life, the challenges he faces, and his inner monologue and reflections.

Like Izuku, I want to spend ten months focused on Web3 and master this technology that is about to take the world by storm. In the process, I will break down concepts for others who also want to learn Web3, especially those coming from Web2.

> I can’t afford to fall behind. I will be going for it with everything I have. -Izuku Midoriya, 'My Hero Academia'.

There are a few action items I have planned for the upcoming future.

I am officially beginning my journey with #100DaysOfWeb3 where I will tweet every day for 100 days something new I learned or what I completed. I encourage you to join me on this challenge if you are also considering a career in Web3 or want to learn more about it!

I am completing the Fast Floward Bootcamp and writing summaries and solutions to help other developers attending future sessions.

I am creating a resources page that will list out all the sources I used to learn. You can catch the latest version of this page on my blog: samina.dev/resources.

Most importantly, I am joining the team at Decentology as a Developer Advocate. Decentology is a Silicon Valley based startup focused on onboarding the next 10 million Web2 developers into Web3. At Decentology, I will be following the steps of Izuku: documenting my journey, the challenges I face, and my reflections.

You can follow snippets journey on the following platforms:

[Twitter(#100DaysOfWeb3)](https://twitter.com/saminacodes)

[Instagram(Study Inspiration)](https://instagram.com/saminacodes)

[Resource Page(List of resources)](https://samina.dev/resources)
Install Web Server Apache di Fedora 34
Tags: linux, fedora, webdev, centos
Published: 2021-08-18 16:24:32

Hallo, hari ini aku baru saja install Fedora 34 di Laptopku untuk keperluan kantor. Sebenarnya perlunya CentOS tapi Fedora dan CentOS memiliki kesamaan package manager, yaitu RPM. Karena persamaan itu, kita nggak perlu khawatir untuk memakai Fedora.

Karena Laptop ini baru ku install Fedora, berarti aku harus mulai ulang konfigurasi servernya, mulai dari Web Server, NodeJS, Docker, dll. Untuk artikel ini, aku mau share tentang cara instalasi dan konfigurasi Apache2 "httpd" pada Fedora 34.

## Instalasi HTTPD
- Yang kita perlu lakukan adalah mendownload httpd-nya jika belum punya. Fedora 34 Workstation sudah mempunyai httpd, jadi anda bisa langsung ke point berikutnya

```bash
sudo dnf install httpd -y
```
- Setelah menginstall, anda perlu mengaktifkannya karena jika tidak anda tidak akan mendapatkan error.

```bash
sudo systemctl start httpd.service
```

Contoh error saat belum menjalankan httpd:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j4ri5k6krca3srph8c9w.png)

Contoh saat berhasil menjalankan httpd:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pzvv05y4wluiskgsa8f2.png)

Oke, itulah cara install Web Server di Fedora 34. Terima kasih
Deploying a "serverless" app
Tags: serverless, aws, react, api
Published: 2021-08-18 16:05:41

##Background

So last night I decided to deploy a serverless app that generates some number of random words.

### AWS Services
* Route53
* Lambda
* API Gateway
* S3 Storage
* Cloudfront Cache
* Certificate Manager
 
First up, this isn't a tutorial as there are plenty of those about and I wanted to share a more high level description of the various AWS services used and how they all linked together in my example deployment.

So first off the example app, its a very simple react app that takes a user given number of random words to return and a time setting as to how frequently those words should be updated.

![JustRandom.net](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c0vg89ezrd86fjq2e14e.png)

This react app is deployed at [justrandom.net](justrandom.net) a domain name configured via **Route53**

This app is being served from an **S3 Bucket**, via **Cloudfront** using an AWS managed SSL Certificate.

When the app is set to fetch some random words, every 5, 15 or 30 seconds, it sends a request to an **API Gateway** this request is then passed to a **Lambda** function, which is written in Javascript.

This **Lambda** function returns a JSON response containing the requested number of random words back to the **API Gateway**

This is then returned to the waiting react app, and all in less than 40ms in most cases!
Things to look for while picking a library
Tags: library, github, npm
Published: 2021-08-18 15:56:39

Many times we come across the scenario where we need to pick a library to implement a feature. We usually have our go-to library in our mind in most of these cases. 

But in some cases, we will have to do some research on the available libraries and pick one of the available ones.

Here are some things (in no particular order) you should look for while picking a library.

## 1. Popularity
The more popular a library is, the more people would be using it. That means there is a large user community using the library every day and that comes with the following benefits:
* Fewer bugs as most would be already reported by the users and fixed.
* More questions and answers on Stackoverflow (and more search results on Google).
* Better documentation.
* Less chance that the library has some serious performance issues or missing any important features.

I use the following metrics to decide how popular a library is:
* **Github stars** - I look for libraries having more than 1.5k stars.
* **npm weekly downloads (for javascript libraries)** - I look for libraries with 6 figure weekly npm downloads on npm.

## 2. Last Release / Last Commit
Another thing to consider is how recently a new release was made for the library.

If the repository is publicly available then you should also check when was the last commit made to that repository and how often commits are being made in that repository.

A library may be popular, but if it is not maintained anymore then it may become outdated or have bugs that will never be fixed.

More frequent releases or commits means that the contributors/maintainers of the library are actively working on pushing important security/bug fixes or new features.

It also means that if you find a serious bug or a very useful feature missing, you can request the developers to fix or implement them or you can directly contribute to the code if the library is open source.

## 3. Library Size
Another thing to look for is the size of the library.

More often than not, as a library gets popular, more and more features get added to it. This increases the size of the library.

If you just want a very small subset of the features the library provides, then you can pick a library that has all the features you need and has a smaller footprint.
Welcome to Hasya Katta Official
Tags: hasyakattaofficial, hasyakattaofficiallabel, hasyakatta, smitshetye
Published: 2021-08-18 15:50:28

Hasya Katta Official was founded by Smit Shetye on June 1st, 2020.

So what is Hasya Katta Official? 
Well Hasya Katta Official is a conglomerate which serves in multiple industry of technology (viz computer softwares, websites & mobile apps), entertainment viz (music, Record Labels, Films & TV Production, TV channel, TV Shows, TV Series, Web Series, OTT, IPTV, content creations, gaming), news, social media, digital library, meme page, and much more.
HNGi8 x I4G Internship
Published: 2021-08-18 15:47:12

###MY TECH JOURNEY###
_My name is Francis Njoroge Muthoni, a tech enthusiast and a go-getter. I'm passionate about tech and my mission is to upskill and become a tech guru in the industry even before I finish my Bachelor's Degree in Software Engineering as I believe that the best time to work on bettering oneself is by working hard & smart each and every time of the day_

###MY GOALS FOR THE INTERNSHIP###
   1. Mastering and building up my tech skills in Front-End 
   2. Sharing ideas and learning new things with & from my fellow developers 
   3. Networking and making new friends from the industry 


###WHAT I WOULD LIKE TO ACHIEVE BY THE END OF 8 WEEKS###
   _Been My 1st Internship as a Front End Developer, My I would like to master the industrial skills that would lead me a job as I'm really awaiting for the moment I'll crack every interview question for mastering the concepts and building productive systems/software's._


####Tutorials for skills practicing####
[Designing with Figma](https://www.youtube.com/watch?v=FTFaQWZBqQ8)
[Learn Git for beginner's](https://www.youtube.com/watch?v=8JJ101D3knE)
[Basic training in HTML](https://www.youtube.com/watch?v=qz0aGYrrlhU)
[Basic training in JavaScript](https://www.youtube.com/watch?v=Qqx_wzMmFeA)

*_The following is the link to the internship_*
[The link to the internship]( https://internship.zuri.team)
Yaali, the Tamil conversing AI
Tags: showdev, python, machinelearning, yaali
Published: 2021-08-18 15:41:17

---
title: Yaali, the Tamil conversing AI
published: true
description: Yaali, the Tamil conversing AI
tags: showdev, python, machinelearning, yaali
//cover_image: https://direct_url_to_image.jpg
---
##Yaali

I have created Yaali AI, using Neural Network, that one can communicate in Tamil

Please look at the demo [here](https://www.instagram.com/p/CSkV7qIhs7N/)

##Conversation
When I say "Yaali", Yaali will reply "Sollunga"
When I ask to say a joke,
Yaali will say, "risk edukarathellam enakku rusk sapdramathiri",
which is one of the actor Vadivelu's dialogues joke

Thanks for reading

Follow on
[Instagram](https://www.instagram.com/ajith_raghavan/)
[Twitter](https://twitter.com/ajith2krishna)
Spectral Embeddings Library for Knowledge Graph Embeddings
Tags: deeplearning, machinelearning, datascience, computerscience
Published: 2021-08-18 15:40:36

SpectralEmbeddings (https://pypi.org/project/SpectralEmbeddings/0.2) is a python package which is used to generate node embeddings from Knowledge graphs using GCN kernels and Graph Autoencoders. Variations include VanillaGCN,ChebyshevGCN and Spline GCN along with SDNE based Graph Autoencoder.
There are broadly 2 categories for Knowledge graph embeddings through this package:

- Graph AutoEncoders: This models the first and higher order similarity measures in a graph for each node in a neighborhood. The first and second order similarity measures are created through an Autoencoder circuit which preserves the proximity loss of similarity with reconstruction loss. This model has been implemented along the lines of SDNE . These embeddings not only cover the first order dependencies but also are used to capture second order dependencies between node neighbors. The output of this AutoEncoder network has a dimension of (number of input entries,dimension of embedding space provided). 

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x2wt2b488mdel1hqstwz.png)
 

- Graph Convolution Kernels: These embeddings are based on spectral graph convolution kernels which capture node representations through laplacian norm matrices. This part is based on the Graph Convolution Network paper. The GCNs are based on deep neural networks which operate on the node features and the normalized laplacian of the adjacency matrix of input graph. The GCNs are mainly used for node/subgraph classification tasks but here we are interested in capturing only the embeddings from the penultimate layer of the network. For this we create an Embedding based on Tensorflow as node features. We define that the nodes that don’t have predecessors are in layer 0. The embeddings of these nodes are just their features. To calculate the embeddings of layer k we weight the average embeddings of layer k-1 and put it into an activation function. In this kernel there are 3 variations : Vanilla GCN, Chebyshev GCN and Spline GCN embeddings

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vx6jiyn83st2d38whzgg.png)

The repository is at the link: https://github.com/abhilash1910/SpectralEmbeddings/
Colab: https://www.kaggle.com/abhilash1910/spectralembeddings?scriptVersionId=72130689
4 ways to convert a string to an array in Javascript
Tags: javascript, beginners, webdev, programming
Published: 2021-08-18 15:29:09

🐞 Today I share with you four ways to convert a string to an array in JavaScript. 

```
const str = 'antonella';

str.split('');
 
let newStr = [...str];

Array.from(str);

Object.assign([],str);

// ['a ', 'n ', ' t ', 'o ', ' n ', ' e ', ' l', ' l ', ' a '] 

```
👾 So simple! But they are those things that I google every day because I never remember.😅
Seeking  React Devs
Published: 2021-08-18 15:17:59

The [Murmurations Project](https://murmurations.network/), an open protocol for data sharing and aggregation, is seeking developers to work alongside the core team. 

We have funding available and are specifically looking for help with front-end tasks which require React and Wordpress experience.

[Find out more here](https://docs.google.com/document/d/1y6YAmTmoEghit9Rui66XRq9Rn2zGjv45mvGCQpbAZgM/edit?usp=sharing)
Medusa Commerce personal onboarding!
Tags: webdev
Published: 2021-08-18 15:12:11

Medusa Commerce (https://www.medusa-commerce.com/) alpha signup is now available (https://ky5eo2x1u81.typeform.com/to/OtbNv3tx)
Sign up to get a private onboarding session!

We have also created a Discord community server where you guys can ask for help, tips, or showcase what you have created!
You can also find the github repo here: https://github.com/medusajs/medusa
Strapi Market is coming soon!
Tags: headless, marketplace, plugins, cms
Published: 2021-08-18 15:09:47

"Is there a plugin for that?" We get this question a lot at Strapi. And for good reason: finding the right plugin isn't that easy. Try no more, [Strapi Market is coming soon](http://market.strapi.io)! We now have a dedicated team working on building the most active & best quality open-source ecosystem for Strapi.

Here is a quick preview of what we are working on.  

## One place to list 'em all!

Our main goal is **to ensure you can quickly find what you are looking for from a unique and trustworthy ecosystem**.

Our brilliant community members have already created a lot of plugins that are available on Github and npm. However, when you have a specific need, sifting through different repositories is not necessarily the easiest or most intuitive approach.
We want to make it easy for our users to find what they are looking for by providing structure to the ecosystem and centralizing all resources available for kickstarting or expanding a Strapi project.

Moreover, thanks to our new Plugin API and Design system as part of the [v4](http://strapi.io/v4) released soon, we are going to improve technical and design documentation and set up a validation process to ensure the best experience for plugin users and creators.

## How will it work?

We want the best marketplace experience on the web and in the app. We are currently focusing on the web version of our marketplace, but the in-app one won't have to wait long to get some love as well, and you will then be able to do one-click installs directly from the administration panel.

You will soon find a list of plugins and integrations on [market.strapi.io](http://market.strapi.io/). Everything you find here will either be made by Strapi or developed by our community members and reviewed by our teams. Each project will have links to the Github and npm pages so that you can get some support from the plugin developers, or even contribute! Since all plugins will be hosted on npm, we will provide the necessary commands to install the packages via your terminal.

The plugin creators will be able to submit their plugins and integrations directly on a dashboard via our marketplace and will have access to analytic dashboards about them.

All the plugins will be free at first, like they are today, but enabling plugin monetization and making sure our plugin creators are rewarded for their hard work is definitely a hot topic for further iterations.

## So, when and where will it be available?

We are now finishing up the project specs and getting ready to make it available in the first half of Q4 on [market.strapi.io](http://market.strapi.io). 

More information will come along the way. In the meantime, if you have any thoughts or expectations regarding this future marketplace, [let us know](https://strapi.typeform.com/to/lk3lqmsV), and you can find our list of community plugins and integrations [here](https://github.com/strapi/awesome-strapi).

See you soon!
Starting with Flutter: Channels
Tags: flutter, beginners, tutorial, dart
Published: 2021-08-18 15:06:44

Hi guys, in this brief guide I'll show how to manage flutter channels. Why? because navigating into channels can be fun and also helpful to test some future feature that maybe your team will need to implement. Without further ado, let's dive into Flutter Channels! 

# Channel types

Flutter has 4 channels:

- Stable
- Beta
- Dev
- Master

 

### Stable

This channel is the recommended one for production releases; If you don't want to use a new feature or want to play with flutter this is your go-to branch!

### Beta

In this channel the flutter team picks the best dev channel build of the previous month, this is the last step before merging new features inside the stable channel.

### Dev

You can find the latest tested builds inside this branch, so it's a bit safer than the master channel, but always watch for [Bad Builds](https://github.com/flutter/flutter/wiki/Bad-Builds); this page provide to you all the known blocking-bugs.

### Master

This channel contains all the latest features of flutter, pay attention using this, you can find a various number of bugs 

 

# Usage

Switching channels is very easy, to switch from you stable channel open you terminal and type `flutter channel channelName` and, after a brief moment you will see the console printing a message: 

```markup
git: Switched to a new branch 'your_new_branch'
```

you've successfully switched your channel!

To be sure to use the latest version of the channel always run a `flutter upgrade`; it will download all the latest required files from GitHub.

**Tip:** 

If you often switch channels or it's been a while since developing a Flutter project I recommend you to run a `flutter channel` before start coding; you will check on which channel are you on and avoid to develop on the wrong one!

# What do to now?

Now that you know everything about channels, start switching to one of them and enjoy trying new features or solve some bug, there are actually almost 10.000 [issues](https://github.com/flutter/flutter/issues) on the official Repo. 

Wanna check more tutorials? [Click here!](https://theotherdevs.com/) See you soon!
Webinar Recap: How to Benefit from API specifications with Strapi & Postman
Tags: postman, strapi, api, node
Published: 2021-08-18 15:05:58


We recently wrapped up our second webinar that covered the benefits from API specifications with Postman and Strapi. If you missed the webinar — or you'd like to relive it — check out the full recording and some questions from the audience! 

In this webinar, Meenakshi Dhanani, Developer Advocate at Postman explored Strapi content types, OpenAPI specification, and the complete tool-chain that is capable of building mock servers and testing with Postman.

## By the numbers: 
#### 📝 118 registrants 

#### 👥 +47 attendees 

#### 🔊 +108 messages

#### 💬  1 question

&nbsp;


<iframe width="560" height="315" src="https://www.youtube.com/embed/Y1B74OpIWUk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

## Audience Questions

**Any comments for those who work with GraphQL? 1) How relevant are these concepts; 2) any pointers to resources on how to get the most out of Postman with that?**

There are plenty of resources published on both websites to explain how Strapi and Postman can work together. ​​

https://www.postman.com/strapijs


https://www.postman.com/devrel/workspace/how-to-benefit-from-api-specifications-with-strapi-and-postman


&nbsp;

#### Join our [Newsletter](https://strapi.io/email-updates) & and follow us on [Twitch](https://www.twitch.tv/strapijs) for more exciting webinars!