teleren/devto huggingface dataset:
1 Step to Incentivize Stars and Forks on GitHub
Tags: github, webdev, javascript, showdev
Published: 2020-10-27 16:52:38

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/t4cneq0pblxhd1knmxwl.gif)

As developers, we put a lot of work into our GitHub repos to make them as useful as possible for others, but great projects sometimes go under-appreciated, and under-starred. Asking for stars is tacky, but publicly thanking your supporters by name in your README file is a sign of appreciation that __happens__ to incentivize more users to join the crowd. And implementation is just a copy and paste from [my Repo Roster project](https://github.com/nastyox/Repo-Roster). Wouldn't it be worth a click to you to see if your profile went live on a repo's README?

# What does it look like?
I like to use rosters as the footer of my README. Here's an example from my [Rando.js repo](https://github.com/nastyox/Rando.js):
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3xnrhhbm1urvq8siqkir.png)

# How do I implement it?
You can copy the markdown from [my Repo Roster repo](https://github.com/nastyox/Repo-Roster) and fill in your username/repo data manually, or you can visit the [Repo Roster website](https://reporoster.com), paste in a link to your personal repo, and copy the resulting markdown. Then, just paste that wherever you want it to appear in your README. __That's all there is to it!__ From then on, data about your supporters will automatically update right in your README.md file.
And GPT-3 can write movie scripts!!!🎥
Tags: machinelearning, watercooler, nlp
Published: 2020-10-27 16:49:49

GPT-3 has been used for many different things and it is doing these things with unimaginable accuracy. This language model is although not very foolproof as it can generate chunks of results which are not comprehensible or understandable by humans.

Some of the most popular uses of GPT-3 has been described by me in the following blogs
<hr>
{% link https://dev.to/amananandrai/top-10-best-uses-of-gpt-3-175n %}
<hr>
{% link https://dev.to/amananandrai/another-10-gems-of-gpt-3-2639 %}

Now I am flabbergasted by the fact that GPT-3 can write movie scripts and has humour and twist incorporated in it. GPT-3 has written a script for the movie named **Solicitors**. The film was directed and shot by Jacob Vaus, produced by Eli Weiss. It is a short film with just two characters *Barb* and *Rudy*. The script for the movie can be found [here](https://drive.google.com/file/d/1UrqaC3GXh-VWWsk-XixyK49Qqfh1NjwX/view).

You can watch this hilarious little short film with twists and turns here.
{% youtube AmX3GDJ47wo %}

The biggest challenge for humans is to act in an AI scripted movie and the actors also found it challenging. The other challenge is to find the depth in character created by AI.

>“The biggest challenge for me, acting in a film written largely by A.I., was trying to find motivation for my character and intention in my dialogue.”


I think in the future AIs will assist humans in writing movie scripts. It may be a possibility that directors will generate different scripts for the same movie by prompting a scene and then combine them to make a film of their choice.
Change branch name from master to main
Tags: github, git, master, main
Published: 2020-10-27 16:48:48

By google-ing, we'd find a  simple command as `git branch -m master main` which should rename the `master` branch to `main`.

What if it was not successful and you had,

```
error: refname refs/heads/master not found
fatal: Branch rename failed
```

Well, in my case, I  create a new project then I initialized git. I then remembered that by default, on Github, the default branch is `main` and not `master` anymore.

You can change the name from `master` to `main` in few steps, locally before you even make a commit.

1. Navigate to the directory where your project sits.
2. In it, show hidden file since by default, `.git` would be hidden.
3. Inside `.git`, there is a file, `HEAD`, open it in a text editor. You'd see, `ref: refs/heads/master`.
4. Simple enough, change, `master` to `main`.

We just renamed the `master` branch as `main`. Verify this merely by entering, `git branch` from the terminal.

In an instance where the project is new locally (the project is git initialized locally), then after the first commit, `git add . && git commit -m "Initial commit"` we can rename the current branch with, git branch -m main`.
Pairing with Community Member Rachael Wright-Munn
Tags: devstream, pairprogramming, ruby
Published: 2020-10-27 16:46:39

On October 15th, DEV Community member Rachael Wright-Munn joined Christina and I on the pairing stream to work on improving the Twitch liquid tag.

Aside from coding, there was singing, mispronunciations and laughing. Here's the full stream.

{%youtube CKlNLcfxiHs %}

Rachael is getting a draft pull request up soon that builds off her initial PR, which helped Forem create the Twitch liquid tag.

{%github https://github.com/forem/forem/pull/10577 %}

### You can also find the three of us all over the web here:

Rachael:

* [Twitter](https://twitter.com/ChaelCodes)
* [Rachael's Twitch Stream](https://www.twitch.tv/ChaelCodes)

Nick:

* [Twitter](https://twitter.com/nickytonline)
* [Website](https://iamdeveloper.com/)
* [livecoding.ca](https://livecoding.ca)
* [YouTube](https://youtube.iamdeveloper.com)

Christina:

* [Twitter](https://twitter.com/coffeecraftcode)

Looking forward to seeing you on future streams! [Follow DEV on Twitch](twitch.tv/thepracticaldev) to be notified when the next installment begins. Happy [FINAL week](https://dev.to/devteam/final-week-of-hacktoberfest-4cch) of Hacktoberfest!
ColdFusion - Display Names for CFMail
Tags: coldfusion
Published: 2020-10-27 16:33:17

I had an interesting client request come in last week, they wanted the ability to have prettier names show up for their From: email addresses. E.G, having the from address be their company name, rather than displaying in inboxes as info@company.com. Surely, this would be a simple thing to accommodate, and ColdFusion definitely supported this out of the box, but I did run into a hiccup and hopefully I can save someone else the time I spent trying to figure this all out!

Generally when you're using the  [CFMail](https://cfdocs.org/cfmail) tag, you're using email addresses as is. If you're just using this tag as is, then you can follow this format to get display names to show up for the email.

```cfml
<!--- Would show the email as from "Alex Gravely" in your inbox --->
<cfmail from='Alex Gravely<alex@example.com>' />

<!--- If you have special characters, you can wrap the display name in double quotes --->
<cfmail from='"Alex Jr. @ Freelance"<alex@example.com>' />
``` 

Now here's where my pitfall was: we use a customized CFMail tag that ends up using C#'s `System.Net.Mail.SmtpClient`, and as part of that custom tag's validation, we use the [IsValid](https://cfdocs.org/isvalid) function for validating the email format. Surprisingly enough, trying to do this display name format actually fails this function's validation, despite working properly in the CFMail tag. 
 
If you do want validation support for this format as well, this regex pattern does the job: `(?:"?([^"]*)"?\s)?(?:<?(.+@[^>]+)>?)/gi`
The built-in Windows package manager
Tags: productivity, bash, windows, provisioning
Published: 2020-10-27 16:26:55

I do my development on a VM. I like the feeling of a new computer without any of the bloat or history of previous installations. Whenever I move to a new machine, I have to install a myriad of products. It takes my focus away from the fun stuff like making my computer look like it's in [1985](https://www.microsoft.com/en-us/p/windows-throwback/9nj1lp5x2mjm?activetab=pivot:overviewtab).

# My previous solution

After I started doing this professionally, this became more of a headache. I looked around and found [Chocolatey](https://chocolatey.org/) - a third party package manager. It was good, but there were often failures and I was annoyed with having the first line of the powershell script taken up with the installation of the tool. It just looked clunky:

```powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
```

# In comes WinGet

As soon as I found out about WinGet, I installed the Windows Insider Preview. Now, the latest version of Windows [seems to include WinGet](https://docs.microsoft.com/en-us/windows/package-manager/winget/).

After switching to WinGet, I had less failures. My scripts seemed to just run. The only caveat is that WinGet has trouble deciphering which project you're trying to install unless you use the "-e" flag and specify the exact name.

Here's my personal script to install my dev tools.

```bash
winget install -e Microsoft.VisualStudioCode
winget install -e Microsoft.VisualStudio.Community
winget install -e Microsoft.PowerToys
winget install -e Microsoft.Teams
winget install -e Git.Git
winget install -e Microsoft.AzureFunctionsCoreTools
winget install -e Microsoft.AzureDataStudio
winget install -e Microsoft.AzureCLI
winget install -e Microsoft.dotnet
```

I'm obviously working at a Microsoft shop, but there are lots of development options. You can always search something with `winget search <your tool>`.
5 Useful VSCode Extension
Tags: todayilearned, vscode, productivity
Published: 2020-10-27 16:15:15

Hi,
Here is the list of my 5 useful extensions you need to know about.

# 5. Todo Tree

Todo Tree is a simple extension that searches a workspace for comment tags like TODO and FIXME, and displays them in a tree view in the explorer pane.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/z1miz1p7hhneimkwxxxx.png)

# 4. Placeholder Images

This extension generates and inserts placeholder images into HTML.

Useful on the prototype phase.

You can use Unsplash, placehold.it, and LoremFlickr with it.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/c2qsx9w9v5l24bt4ly55.gif)

# 3. Better Comments

The Better Comments extension creates human-friendly comments in your code.

This extension categorizes your annotations into :
* Alerts
* Queries
* TODOs
* Highlights

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2vxko9419lsfcb17p1k0.png)

# 2. Faker

A simple extension to generate fake data.

Very useful on early-stage development.

You can generate :
* address
* commerce
* company
* database
* date
* and many many more...

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8p387p71l64adl4c2nx8.gif)

# 1. Code Time

It’s an open-source plugin for automatic programming metrics and time tracking.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/h16m9vgrso8p1b6at4mg.png)

You can :
* Track your progress during the day
* Check out the coding activity
* Generate code time summary
* Generate data visualizations

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bwimtpzcoeb12j69zp8v.png)

# In the end...

I hope you’ll find these extensions useful for yourself ! 🎉🦥
***
> And you ? What's your favorite **VSCode extension** ? ❤
Hacktoberfest 2020
Tags: hacktoberfest, github, opensource
Published: 2020-10-27 15:59:41


The 4 pull requests I made this year were:
1. C++ project on Patient Consultancy Management System.
2. Product of all numbers except itself. 
3. Product of subarrays.
4. Finding the minimum sum of numbers using GCD.

This was the second time I participated in Hacktoberfest and being a part of this community. I learnt how the open source community works and why it is important. I look forward in participating in many more upcoming events too.
Ruby on Rails
Tags: ruby, rails
Published: 2020-10-27 15:46:14

Ruby is a programming language. It was created 20 years ago by Yukihiro "Matz" Matsumoto. According to most measures of popularity of the programming language, Ruby is in the top ten, although it is generally the tenth (more or less) in popularity, and largely due to Rails' popularity. Like Java or the C language, Ruby is a general purpose programming language, although it is best known for its use in web programming.

Rails is a software library that extends the Ruby programming language. David Heinemeier Hansson is its creator. He named it "Ruby on Rails", even though it is often simply called "Rails". It is a software code added to the Ruby programming language. Technically, it is a package library (specifically, a Ruby Gem), which is installed using the command line interface of the operating system.Rails is a framework for building websites. As such, Rails establishes conventions to facilitate collaboration and maintenance. 

These conventions are coded as the Rails API (the application programming interface or directives that control the code). The Rails API is documented online and described in books, articles and blog posts. "Learning Rails" means learning to use the Rails conventions and their API.Rails combines the Ruby programming language with HTML, CSS & JavaScript to create a web application that runs on a web server. Because it runs on a web server, Rails is considered a server-side web application development platform or "back-end" (the web browser is the "front-end").

Rails, in a deep sense, is more than a software library & an API. Rails is the central project of a wide "community" that produces software libraries that simplify the task of building complex websites. The members of this Rails community share many fundamental values, they often use the same tools and support each other with an informal network. That means they do it just for love to the development. The community is something informal, but that does not detract it from professionalism. It forms an economic network that includes: jobs, recruiters, consulting firms, conferences and companies that create websites with Rails and investors that finance new companies. 

Rails is popular among web startups, significantly by the set of "libraries" or open source software libraries (RubyGems or "gems") that make possible to build complex sites quickly (although without much style ... please don't kill me ) that work perfectly.Do you need to study Ruby to learn Rails?Your most difficult challenge will be to learn (or understand) the names of the structures where you see code examples. This is why it is useful to follow a brief introduction to Ruby. You should be able to recognize when you are seeing a matrix or a hash. You must recognize when you are looking at an iterator or the syntax of a block with Ruby. Eventually, you will recognize more exotic Ruby formulations such as lambda. It's fine if you can't write a lambda function or even know when to use it; Many Rails developers start working before learning Ruby in depth.
Navigate local git branches with ease
Tags: git, bash, terminal
Published: 2020-10-27 15:35:38

Do you find yourself navigating frequently between local git branches? I put together this `bash` function that allows you to checkout to a branch using a simple wildcard search.

Syntax: `br {any_word}` where `any_word` is a part of a branch name. So if I have a branch called "honey nut cheerios", I could type `br cheerios` and then my terminal would checkout to that branch. 

If there are multiple matches, it just shows all matches onscreen. Then you can switch manually. 

Hope you find it useful!

```
function br {
    OUTPUT=$(git branch --list *$1*;)
    if (( $(grep -c . <<<"$OUTPUT") > 1 )); then
      echo Multiple branches found:
      echo "${OUTPUT}"
    else
      TRIMMED_OUTPUT=$(echo "${OUTPUT}" | xargs)
      echo "Switching to:${TRIMMED_OUTPUT}"
      git checkout "${TRIMMED_OUTPUT}"
    fi
}
```
AWS Vault and MFA Setup on my Mac
Tags: mfa, aws, vault
Published: 2020-10-27 15:22:57

---
title: AWS Vault and MFA Setup on my Mac
published: true
description: Steps used to setup AWS Vault on my mac with an account that has MFA enabled.
tags: mfa, aws, vault
//cover_image: https://direct_url_to_image.jpg
---

Recently, I decided to secure my local machine by downloading and using AWS Vault. To my surprise, setting up MFA with Vault required a step or two more that I wasn't expecting. Here are my findings/steps. 

First, I used homebrew to install aws-vault.

```
brew cask install aws-vault
```

Then I added my profile and followed the instructions which had me provide my Access ID and Secret.

```
aws-vault add taylor
```

Then I tried to list out the S3 buckets via:

```
aws-vault exec taylor -- aws s3 ls
```

This resulted in the following error.

```
An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied
```

So I opened up my AWS config file in Visual Studio Code.

```
code ~/.aws/config
```

Doing so lead me to see that my profile didn't have a `mfa_serial` variable defined. I found my key in IAM under my own user's Security Credentials tab and added it to the file.

Now, my config file had the following in it: 
```
[profile taylor]
mfa_serial=arn:aws:iam::XXXXXXXXXX:mfa/taylor
```

And when I performed my s3 listing again, it worked.
How our company got a bear
Tags: design, writing, remote, programming
Published: 2020-10-27 15:21:20

We have a brand book that includes names, typography, graphics, logos, and a color palette. On its basis, we create the materials, related to the company’s activities. At a certain point, we realized that our presentations for developers at conferences neither exhibited enough warmth and nor presented a symbolic image.

We decided to make sure that the company’s attributes did not just reflect the corporate identity, but had to become more vivid and capture attention so that people would not just glance at our name, but get curious enough to inquire further.

[Learn more](https://evrone.com/bear) about how we created a bear that became the symbol of Evrone.
Mobile solution for reach media
Tags: ios, android, webdev, programming
Published: 2020-10-27 15:14:32

In France, we have introduced our new online-service. WTCC Premium TV allows taking a fresh look at the FIA world touring car championship broadcasting.

We made several versions of the WTCC Premium TV for users' convenience. The online version and two versions for the most popular mobile platforms — iOS and Android. All of them allow users to gain full control over video: rewind, pause and play from last stop or watch it live.

[Learn more](https://evrone.com/wtcc-premium-tv) about the сross-platform app for iOS and Android created on the React Native
Can you share some of your moments that you found yourself that make you say "My life is a lie" as a developer?
Tags: watercooler
Published: 2020-10-27 15:12:54

It can be your any moment,

For me in the last few months I feel like trapped being busy in the routine of work,

I used to think the more I spend my time at work, the progress will come more quickly

That thinking led me being so obsessed to get more things done but in the reality I have lied to myself that what I need actually is just to get the right things done in the moment.
E-learning App Development 101: Types, Features and Best Cases
Tags: android, ios
Published: 2020-10-27 15:06:49

E-learning app development has shown promising opportunities even before the Covid-19 thing. This online education niche is expected to reach $350 Billion by 2025. Seems that there is enough space for the new e-learning apps and courses (iOS and Android). 
Want to develop one? 
Read more about it in this guide
[https://apiko.com/blog/e-learning-app-development-types-features-and-best-cases/](https://apiko.com/blog/e-learning-app-development-types-features-and-best-cases/)
Building a gamification platform
Tags: ruby, webdev, productivity, agile
Published: 2020-10-27 15:02:00

We were approached by a client who wanted to build a motivation system for employees that would transform routine work into a game process and at the same time allow them to keep track of the efficiency and productivity of each employee.

Understanding and analyzing data was essential for making a decision within a system, and building an analytical system appeared as a solution for complex and large datasets of the client’s company.

[Learn more](https://evrone.com/workplay) about the development of the modern gamification solution for motivating staff
How we created the Vexor cloud continuous integration service
Tags: codequality, performance, cloud, code
Published: 2020-10-27 14:53:58

It’s a classic problem of scale. When a company works on several projects simultaneously, it faces a number of difficulties when it comes to continuous integration services.

Running your own CI setup on the cloud is expensive, and the way you are charged can often seem unreasonable — the server is used only for a few hours, but you pay for it as if you were using it all day long.

Building your own data-center is even more expensive than that. It’s not just the computing and storage, hosting your own CI chain: projects have to be configured, test servers need to be created and monitored, packages need to be upgraded. It takes a lot of time and effort to keep it all running. And whatever you do, you’ll inevitably have your developers asking you to increase the number of instances dedicated to continuous integration.

[Learn more](https://evrone.com/vexorio) about how we developed our own CI with super-fast integration of builds and pay-what-you-use pricing strategy.
Ways to distribute a binary
Tags: ci, registry, discuss, go
Published: 2020-10-27 14:52:29

Here are some ideas I have considered for distributing a binary using a CI flow, or using version control for a file or directory.

I'd like to hear your approaches too.

### Add to version control

The simplest is to just version binary file (or the `dist` directory), at least when creating a release tag. Then you have a history of files all at the same path and then switch tags to get to an older version. You'd have to build and commit the file either locally or using GH Actions (or other CI).

### Add to GitHub release

Or don't version it. And then add the binary file to a GitHub release - either by hand or using a GH Actions. There are some Actions on the Marketplace which support this.

### Upload to registry

In the case of uploading to a registry like NPM or VS Code Marketplace, one could have a step locally or in CI to build an unversioned file and then upload it to the registry. The downside is that there is a barrier to this - you have to setup an account on the registry and perhaps go through red tape to get your application approved. You might want to just distribute your tool to friends without making it available on a public searchable registry.

## Conclusion

What do you do for a certain language and why? How easy was it to setup your approach? Please comment on the [first](https://dev.to/michaelcurrin/how-do-you-distribute-your-binaries-2j39) post in my series.