teleren/devto huggingface dataset:
How To Avoid Getting Stuck in Vim as a New git User
Tags: bash, git, codenewbie
Published: 2021-05-11 20:44:10

I started a new job recently. When I set up a new work machine, I immediately install zsh and pull down a few repos to get digging into code. It's all fun and games until you run `git branch` and BLAM, you're stuck in Vim-land now, hope you brought a towel. I've seen more than a few new developers get stuck here, and I've had to embarrassingly ask for help myself, so if you're finding yourself stuck in this situation, know that you're not alone and you'll be ok. Just type `:wq` and you should return to the terminal. However, if you want to prevent this happening again, read on.

WARNING: This change is global and will affect all your git repositories. See the link below for details if you want to control this setting per repo.

```bash
git config --global core.pager cat
```

This command modifies the global git configuration to use the tool `cat` as the [terminal pager](https://en.wikipedia.org/wiki/Terminal_pager) for all your future git commands. By default, on a new Mac with zsh installed, Vi is used... or Vim... I still don't really understand the difference, but it's one of them and you can't get out without `:wq`.

Remember that after changing any configurations, you will need to re-launch your terminal to see changes take effect.

Source: [StackOverflow](https://stackoverflow.com/questions/2183900/how-do-i-prevent-git-diff-from-using-a-pager)
O que é Open Source?
Tags: opensource, video, live
Published: 2021-05-27 15:09:31

---
title: O que é Open Source?
published: true
date: 2021-05-11 20:41:00 UTC
tags: opensource,video,live
canonical_url: https://blog.lsantos.dev/o-que-e-open-source/
cover_image: https://raw.githubusercontent.com/khaosdoctor/blog-assets/master/images/2021/05/maxresdefault--1-.jpg
---

Participei da incrível live (que, infelizmente, precisou ser gravada) do IFCE sobre "O que é o Software Open Source". Foi uma live sensacional e discutimos um monte de pontos legais sobre softwares open source e suas premissas, falamos sobre a história dos computadores e também sobre licenças open source!

{% youtube ngz_iER7654 %}
My road to Certification
Tags: azure, certification
Published: 2021-05-11 20:27:07

---
title: My road to Certification
published: true
description: Road to Certification
tags: Azure, Certification
canonical_url: https://www.funkysi1701.com/posts/my-road-to-certification-3bep
---
So today I sat the Azure Fundamentals Certification Exam and passed!
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eytphopn3inx2x77m9n5.png)

Really pleased with myself at achieving this. It was one of my goals for 2021 so I can tick that off.

Back in January I booked my first exam, however due to technical problems I didn't get as far as the Exam. In order to be able to sit an exam like this you need a webcam and microphone so you can be monitored remotely to check that you are not cheating. Something in my network was blocking them from seeing my video so it got cancelled before it started.

My theory is that either my internet connection was playing up at the time, My Pi Hole was blocking something, or something else on my network was blocking the video feed.

This cancellation put me off Certifications, as I wasn't sure how to debug the issue and find out exactly what the problem was.

A few months back I won a free Azure Certification for taking part in a skills challenge run by [Gregor Suttie](https://twitter.com/gregor_suttie) and [Richard Hooper](https://twitter.com/Pixel_Robots) and this was due to expire at the end of this month so I thought why not book a second exam and see if I can get past the technical problems. I didn't do any exam prep as I thought, I wouldn't get that far.

This time I connected directly to my router, bypassing most of the network, firewall and other items on my network that could possibly cause an issue. 

I cleared my desk, took photos of my ID, took pictures of my desk from every orientation, and waited for the technical issues to start. 

I was in a queue waiting for the exam to start. 

A connection issue has occurred you have been sent to the back of the queue. Oh here we go again! 

But no I connected with the invigilator, who asked to confirm my monitors were disconnected and to move my wallet out of reach off my desk.  

And we are off, I am answering questions from the exam.

I won't go into detail about the questions, but I whizzed through them, most made me think, some I guessed at. I wasn't expecting to pass, I thought maybe half marks or just under due to my familiarity with Azure. (I have been using it for years which must count for something!)

I was wrong I passed comfortably and now I have my first certification.

My advice for you if you have been using Azure for a while is to book this exam and see how you do, you may well pass like me. There are plenty of opportunities to get a free exam, attending conferences like Ignite often qualify you for one, look out for challenges and competitions by #AzureFamily people on twitter as they are very encouraging and helpful in your Certification journey.

And yes I am thinking about what Certificate to do next!
Benefits of animated explainer videos for SaaS Business
Tags: animatedexplainervideos, explainervideos, saas, animationvideos
Published: 2021-05-11 19:48:31


It is difficult to describe the designed software wireframe to a prospective client. It's a known paradox that animated explainer videos are crucial for saas business.3D Explainer videos are widely applied in the SAAS business.

If you’re a saas businessman, after reading this post you will get to know insights on generating business leads.

Let's explore the interesting ways how animated explainer videos aids in improving Saas companies.

**1.Demos and tutorials**
Sometimes it may take time to explain the proposed project to customers and It's quite hard to convince them.  With the help of  [3D animated explainer videos](https://www.pixlnexs.com/3d-animation-shorts), can offer a demo video showcasing key objectives, features, uses of the proposed project design with striking visuals.

Also, It’s a proven fact that animation simplifies the complexities and easily delivers the exact message to the target people.

Moreover, 3D explainer videos are utilized for hiring and training software developers. Using animated videos can attract the attention of talented professionals, showing your company’s vision and mission in distinct visuals.

**2. Marketing and Sales**
Generally, [3D animated explainer video](https://www.pixlnexs.com/3d-model-creation) is a potential marketing tool in any industry. But in the case of  Saas business, it's mandatory for VOD (video on demand) platforms.

A good explainer video will advertise the products and services and reach more audience. Moreover, it's convenient to share on several social media and gear leads day by day.

Ultimately, 3D animated explainer videos will promote your service globally.

**3.Amazing converting videos**
3D Animated explainer videos are amazing converting videos.  Yes, it is possible to convince a client to buy a product or service within one minute.  

3D explainer videos will evoke the feeling of the desired product to buy in the minds of people. Within a short time, it grabs the attention of people and provokes their interest in a product or service.

Eventually, 3D Explainer videos increase conversions as well as ROI of your company.

[Build your business and reach globally with our striking animation videos.  We are here to guide and drive you forward towards your business goal.](https://www.pixlnexs.com/)
First Job As A Web Developer
Tags: webdev, beginners, motivation, career
Published: 2021-05-11 19:45:41

Since my first few posts here I was in the last few months of my HND Software Development course at college. My next steps were to apply for university and try my luck at applying for any developer positions that were available. (just chancing my luck to even get an interview)

After many different applications I got a conditional offer for a course at university and i got an interview for a web developer position.

The 1st interview was fairly relaxed and just about getting to know me as a person and what I was doing at that moment in time.

I got offered a 2nd interview and this was more technical as I had to design and code a homepage for them and then present my designs. (both interviews were done remotely as COVID)

I got mixed up with the interview times due to a MS Teams meeting error which said my meeting was an hour earlier than i first knew. Panic set in as I emailed the employer telling them I had made a mistake and got mixed up but it turned out was just a mixup on MS Teams.

After the stress wore off I presented my designs and all went well. I was told that I would be informed later that day of any decisions regarding the web developer position.

I got called a few hours later and was offered the job !!! 
I am just beginning my professional career within web development and will be journalling it through this forum.
Integrating Chatbot into your next project
Tags: programming, javascript, productivity, python
Published: 2021-05-11 19:09:19

Am sure by now we have all interacted with a different site where whenever we visit the site there is a pop-up at the bottom asking on how it can help us right,  
Now that's an easier way to describe a chatbot, an online assistant programmed to help us with different tasks as programmed.  
Most companies nowadays have turned to chatbots hence reducing the dependency on humans.  
Person-to-person conversations can be long and may end up causing maybe conflicts among two people which may result in a bad reputation to the company, but with these bots, they are straight to the point, you ask a question, and they answer accordingly as instructed by its developer.

Perhaps you might be wondering, Do I have to create a chatbot for my website or channel? 
Well, now you don't. With lots of software companies today it's easier for you by the use of an Application Programming Interface (API).

Let's say for instance you are running a hotel or a business that has a booking service enabled, you may want your clients to do bookings early in advance and let the information be relayed back to you for recording.  
To make this a success, we can add a chatbot that allows visitors on our site or page to do the booking there. 
And for our bot to work we will need an API integration, we have lots of companies with services, and you need the one that will perfectly suit your needs.  
Let's have a look at the Spurwing API for instance. It allows you to add different functionalities into your projects, like appointment scheduling via voice command, isn't that amazing all you do is give commands via voice, and they are executed. 
Also you can embed a chatbot too, 

#### Lets have a look how:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qm2atkemrlpg0tgi629f.gif)
For detailed documentation check out their [GitHub](https://github.com/Spurwing/Chat-Bot-Integrations/tree/main/Facebook/NodeJS) for detailed documentation.  

Also check out my other article on: 
[Must have Themes and Extensions for every Developers - Visual studio code setup](https://dev.to/larymak/must-have-themes-and-extensions-for-every-developers-visual-studio-code-setup-2igi)
[7 Best Visual Studio Code Extensions Every Web Developer Should Have.](https://dev.to/larymak/7-best-visual-studio-code-extensions-every-web-developer-should-have-2m1c) 

Connect With me at [Twitter](https://twitter.com/larymak1) | [Insta](https://www.instagram.com/nextgencoders/) | [YouTube](https://www.youtube.com/channel/UCrT1ARRZfLOuf6nc_97eXEg) | [LinkedIn](https://www.linkedin.com/in/hillary-nyakundi-3a64b11ab/)  | [GitHub](https://github.com/larymak)
How I Use Vim for Productivity and Efficiency
Tags: vim, linux, productivity, vscode
Published: 2021-05-11 19:04:57

I use vim (a text editor) for my product development work, which is full of repetitive tasks. For example, I’m currently working on a project that has many, many files and many, many lines of code. In total, there are over 10,000 lines of code that I have to navigate through. It would take me forever if I didn’t have vim on my side.

I have used a variety of text editors in my career. I started with pico on my workstations, worked briefly with joe on [Solaris](https://en.wikipedia.org/wiki/Solaris_(operating_system)) and then moved to emacs and nano. When I moved to Linux as my primary operating system, I started using vim to edit text files. Then I learned about vim and how to use it and that is when I really fell in love with vim.

I am not going to go into all of the details about vim but if you are new to vim I recommend [this tutorial](https://vim.is/).

### Vim Tricks

I am just going to highlight some tricks that I have found useful.

So how exactly does a guy like me get used to typing commands left and right? It took some time and patience, but it was well worth it.

* **keyboard macros**  You can start recording your keys with `ESC` followed by `qh`. Then whatever you type in vim (including commands) will be recorded. Press `ESC` `q` to stop recording. Now press `@h` to replay your key strokes.

* **repeat action** if you want to repeat an action, just type a number followed by the action. To delete 10 lines press `10dd`. To press 50 lines type `50dd`. You can do this for keyboard recording too, `50@h`.

* **run commands** you can run commands right from within vim. `!ls` runs the command ls in your terminal. You can do this for any command.

* **scrolling** you can scroll inside vim with the keys `ctrl+e` and `ctrl+y`, no need to use the mouse

* **move to end/begin** you can use the keys `0` and `$` to move to the beginning and end of a line. No need to hold down the cursor key for several seconds.

* **jump to line** press the keys `140G` to jump to line 140. You can also use `:140` if you prefer those keys.

* **set your .vimrc** you should have a good .vimrc file in place so that you have all the settings ready to go. This means options for colours, font, tab settings etc. You can put this on git and pull whenever you access another computer. That way your settings stay in sync no matter what computer you use.
 
* **vim mode** if you have to use an IDE for work, you can enable vim emulation. This works in visual studio, jetbrains IDEs and probably tons of others.
Easy Tailwind CSS Trick to Create Responsive Websites in 1 Minute
Tags: css, tailwindcss, html, tutorial
Published: 2021-05-11 18:54:59

In this video, I've talked about how you can build and deploy a professional website in just 5 minutes. In this video, I've talked about TailBlocks. It's a project build with Tailwind CSS. It's basically a library of readymade web components created by using Tailwind CSS.

### How to use Repl, the online IDE?
Watch: https://youtu.be/6c5T5TiGJk4

### Watch more videos:
Now: https://bit.ly/3uDiFUs

# Instructions:
--- Build ---
1. Copy the Tailwind CDN
- https://tailwindcss.com/
2. Paste inside 'HTML head'
3. Copy component's code
- https://tailblocks.cc/
4. Paste inside 'HTML body'

--- Deploy---
1. Head over to Netlify and Sign Up.
- https://www.netlify.com/
2. Click on 'Site'
3. Drag and drop your 'project folder'
4. Go to 'Deploy' to update your website
5. Enjoy.

# Timestamps:
00:00 - Intro
00:18 - What is Tailblocks?
00:27 - Step 1: Create a New Project
00:43 - Step 2: Add the CDN
00:55 - Step 3: Pick a Web Component
01:10 - Step 4: Commit your changes
01:22 - Step 5: Deploy
02:03 - Outro
02:11 - Disclaimer

Thank you for watching :)

## Watch my other videos:
Screenshot Hack: https://youtu.be/XPd2PtHpKnE
Internet of Things: https://youtu.be/ktrY7jSkyOU
Best Image API: https://youtu.be/exONWV2Y3hQ
Remove Bg: https://youtu.be/ittFg7dZmcQ

## Let's talk:
Instagram: https://instagram.com/amisouvikpaul
Twitter: https://twitter.com/thesouvikpaul
Facebook: https://fb.com/thesouvikpaul
FB Page: https://fb.com/amisouvikpaul

Thank you for reading.
Git and GitHub SSH Configuration
Tags: github, git, ssh, 2articles1week
Published: 2023-04-23 11:22:42

---
title: Git and GitHub SSH Configuration
published: true
date: 2021-05-11 18:54:58 UTC
tags: GitHub,Git,ssh,2Articles1Week
canonical_url: https://chrisdevcode.hashnode.dev/git-and-github-ssh-configuration
---

## Installing git

[Install git from here](https://git-scm.com/downloads)Choose a selection based on your operating system. For Linux and Ubuntu OS, you may use this alternative: Open your terminal and paste the command below:

```
sudo apt install git-all

```

## Configure git with your GitHub Account

Ensure you have a GitHub account. If not, create one here [Join GitHub](https://github.com/join).

First of all, we’ll configure your details to git. “Assuming your GitHub username is DevAcc and the email used on GitHub is devacc@mail.com” On your terminal, use the following commands:

```
$ git config --global user.name "devAcc"
$ git config --global user.email “devacc@mail.com”

```

To confirm the details use `git config --list`With that set, you should be ready to start working efficiently with your local repository.

## Generating a git ssh key

This prevents git from requesting your username and password every time you push into GitHub. (it’s annoying) So this is how we do it:

Open your terminal and use the commands below:

```
ssh-keygen -t rsa -b 4096 -C "devacc@mail.com"

```

This will prompt you to enter a location to save the key and also create a password like a key to access that.

## Connecting to Your GitHub Account

After this, you’ll need to copy the key to the clipboard. Use the command below to view the ssh key in a human-readable format:

```
cat < ~/.ssh/id_rsa.pub

```

![key.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1620758991329/Q3VOjCzPb.png)

Copy the key displayed to your clipboard.

Go to your GitHub profile and navigate to settings: https://github.com/settings/profile On the left side, panel click on SSH and GPG keys, then click on the top green button “New SSH” and paste the key there. Voila! You are good to go

[My Profile](https://chrisdev.netlify.app/)
The simple tricks to change your website theme based on day and night
Tags: javascript, webdev, html, css
Published: 2021-05-11 18:53:42

  Hi everyone, every website have a theme options. so, a website user able to choose their preferred theme like dark, light..etc., This is existing followed approach in everyone website.

how is it (we show the website theme based on the user day and night). I just tried. if you like it use in your website. give some different experience to your website user.

Let's jump into the implementation part:

For now, I take a simple coming soon html template for with dark and light theme.

{% codepen https://codepen.io/explore-free-projects/pen/zYZvewO %}

The above page theme change based on body attribute data-theme: "dark-theme" / "light-theme". 

by default show `light-theme`. 

Now, coming to main point how we change website theme based on day and night.

```
function setThemePreference() {
  var d = new Date();
  /*
  * The getHours() method returns the hour (from 0 to 23) of the specified date and time.
  * Day = 0 - 11
  * Night = 12 - 23
  */
  var currentHour = d.getHours();
  
  /*
  * The dark theme load early morning and night
  * The light theme load morning and evening
  */

  if(currentHour >= 19 || currentHour <= 6) {
    document.body.setAttribute("data-theme", "dark_theme") 
  }else {
    document.body.setAttribute("data-theme", "light_theme") 
  }
}

window.onload = setThemePreference;
``` 

That's all. 

The workable version of the [codepen URL](https://codepen.io/explore-free-projects/pen/zYZvewO)
Creating a blockchain using Ethereum (part 1)
Tags: go, blockchain, beginners, tutorial
Published: 2021-05-11 18:44:58

### Intro
Over the past few months I've really, *really* gotten into crypto so today I decided to create my own blockchain from scratch(ish). After very little research I decided Ethereum would be the best choice and I found this article on [Medium](https://medium.facilelogin.com/build-your-own-blockchain-b8eaeea2f891) and got cracking.

### Installing geth
In the article they used Go Ethereum (geth), which is just the Golang implementation of the Ethereum protocol. The official site suggests that one of the quickest ways to get up and running is using Docker. Unfortunately I'm on a Mac M1 chip (arm64 CPU), so I thought it would be easier to use the Rosetta 2 emulator and Homebrew:
 
`arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"`

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

This set it up in the /usr/local directory. From here I could install:

`arch -x86_64 brew install ethereum`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bmho0poaqqbm8s7p8dkm.png)

### Creating a Miner Account
Next, I set up a miner account to generate public and private keys:

`geth account new --datadir <path-to-data-directory>`

Finally I set up and initialized the genesis block which required creating a simple json file:

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

`geth -datadir <path-to-data-directory> init <path-to-genesis-block>`

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

And that was it! I was ready to start mining. Pretty easy, maybe 30 minutes and very little coding. Hopefully this trend continues in the next steps.

*[Goto Part 2](https://dev.to/talemache/creating-a-blockchain-using-ethereum-part-2-2i3a)*
CLI app to play more than 30K radio stations right from your terminal!
Tags: linux, python, beginners
Published: 2021-05-11 18:26:09

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/84l85sbnm5xb13s87hiw.png)
RADIOACTIVE: A CLI app to play more than 30k radio stations right from the termial!!

just run `pip install radio-active`
for more information, visit https://github.com/deep5050/radio-active

live demo: https://asciinema.org/a/412285