teleren/devto huggingface dataset:
Supports From the Community
Tags: opensource
Published: 2020-09-26 02:26:35

##__*FEELINGS*__##
I have __suffered__ a lot over the past two weeks, and I even thought about dropping this amazing course several times. We were required to create a CLI tool to check dead links from a file. The most difficult part for me is to choose the language. I am sometimes indecisive, and I am not a professional for any programming language. I've heard people talk about how convenient Golang can be, so I finally decided to give it a try to learn it through using it directly. I made the right choice!

After I made my first release of "urlChecker", I have been excited and fulfilled so much for making something real myself! What makes me more grateful is the support I have received through several friends who are also trying to learn Golang. They provided professional suggestions and improvements to my code. 

##__*SUPPORTS*__##
[Andy Yang](https://github.com/yzwdroid) helped to improve my code by adding a feature of removing duplicate links. Here is the [link](https://github.com/isabellaliu77/urlChecker/commit/ccaa7cf51644b61baae64bde60d45005740be017) for the details.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/jlgovq3uvvjkuo8p2zft.PNG)
[Tony Vu](https://github.com/tonyvugithub) helped to improve the behavior by adding timeout for HTTP client, click [here](https://github.com/isabellaliu77/urlChecker/commit/6297ed4c4dde1519ce83d8865682ba95a7091f84) to check the details.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/r8k9uzdgyejd01rhg31h.PNG)
[yarn publish](https://github.com/lifeeric) helped to void else statement. Check [here](https://github.com/isabellaliu77/urlChecker/commit/57e94be36b2aba9efa40a3525b273796ac9038b1).

##__*CONTRIBUTIONS*__##
I have reviewed Andy Yang's and Tony Vu's codes. I helped to find some typo and a duplicate condition statement for Andy Yang. Details are [here](https://github.com/yzwdroid/goURL/pull/1) and [here](https://github.com/yzwdroid/goURL/pull/2).
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/x06aoad8adng3d7onspc.PNG)
I helped Tony to improve the structure of the for loop, click [here](https://github.com/tonyvugithub/GoURLsCheckerCLI/commit/a8310e3dbcceaf79f797b478440a7f22d318b078) for details. 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/nvszby9dxo1srxbszsrq.PNG)

It is so great to contribute to and be supported by the community! __*I love open source!*__
How fun to collaborate on Github!
Published: 2020-09-26 01:51:03

As a part of the learning process, Lab 1 requires us to collaborate with classmates or friends on Github. My [Release 0.1](https://github.com/phast184/link-checker-tool.git) is about creating a CLI that helps indicate if an URL is available. 

To be honest, it took me a quite amount of time to google and do my job. Moreover, since the difference in time zone is also a challenge to managed my studies, I am kind of late to the game. 

Luckily, there are classmates who are willing to give me a hand to review and test my code. Therefore, I would like to shout out to Alexander Hugh ([Supercraft888](https://github.com/Supercraft888)), and Matthew Ross ([matt-ross16](https://github.com/matt-ross16)), and ([c3ho](https://github.com/c3ho) for helping me improve my app.

### What I have learned
After finishing Release 0.1 and doing the first lab, they were truly eye openers for me. I have learned
* How to create a CLI.
* Basic interaction with git and github.
* How to write a "appropriate" README file.
* Most importantly, my app still has many flaws that was helped pointed out by my classmates.

### What are those flaws?
* In README file, I forgot to add "npm link" in the instructor which results others cannot run the command. (Thanks to Alexander Hugh and Matthew Ross).
* My regEx is off the screen which causes difficulty for others to read (Thanks to Matthew Ross).
* Logic modification from line 82 - 84 (thanks to c3ho).
* And other issues that would be found in the future.

### In exchange, I also helped review a repo of Alexander Hugh
This is his [Release 0.1](https://github.com/Supercraft888/lFinder) and I also found some issues 
* Unknown URLs should be put in different color that that of bad URLs
* README file should be added "npm link" to help users run commands locally
* An issues about logic at the line `lineWithURLArray = lineArray.filter(line => line.includes("https:") || line.includes("http:") || line.includes("HTTPS:") || line.includes("HTTP:"));`

### Conclusion
To be honest, I was not an active member to the open source community. This is the first time I have collaborated with others using github. And I have to admit, the feelings of being able to contribute and being help improve are so wholesome. I am more than welcome if any of you is willing to make a collaboration with me. Definite try again.
Bootcamp Java Developer Day #6
Tags: java, bootcamp
Published: 2020-09-26 01:50:51

#### Day 6:

#### 6) Ongoing: Basic Development in Java

- Topic 4: Characteristics of Java language

Created a Java project in IntelliJ with examples to learn some characteristics of the language, such as:

- Classes
- Types: primitives, nonprimitives, wrappers, strong/weak type, static type
- Access modifiers: public, private, protected, default
- Abstract
- Final
- Interfaces
- Enum
Open-Source Working with Others
Tags: opensource
Published: 2020-09-26 01:32:22

## Intro
This week, I wrote some issues for [URLpilgram](https://github.com/PedroFonsecaDEV/URLpilgrim)  "A NODE CLI program to search for URLs inside multiple or individual files and check their STATUS as well as check URLs directly." The code was written with Node.js . 

## Issues
The issues I wrote are linked here
* https://github.com/PedroFonsecaDEV/URLpilgrim/issues/1

This issue was a cause for concern due to the fact that the program was picking up Non-URL strings and testing to see if they work. This caused a performance issue and was not needed. I picked up on the problem which was with regex and I suggested to the author that he should try and fix it.


* https://github.com/PedroFonsecaDEV/URLpilgrim/issues/2

This issue was submitted as a recommendation on how the author could improve the program speed. Which was to not use asynchronous and just use normal synchronous programming.

## Reflection 
Through this experience, I affirmed my understanding that programmers write code in all sorts of different ways. There are many benefits and drawbacks to code diversity. Through honing my skills by going through the process of writing issues, I am confident I can develop my programming methodology to make my code cleaner, faster and more efficient. 

## Author

👤 **Devansh Shah**

* Github: [@zg3d](https://github.com/zg3d)
100 Days Of Code | Day 2
Tags: javascript, 100daysofcode, beginners, productivity
Published: 2020-09-26 01:31:38

Hello Everyone,

On day two of my coding journey, I decided to finish a Rock Paper Scissors project on Code Academy. 

To make things interesting I didn't use any tips and I wrote down each challenge I faced during the project's duration.






Challenges

Challenge (1)

Didn't know how to start the project. Didn't know what route to

take that makes the user choose three options.

Challenge (2)

The route I took: I created a function with three parameters (Rock, Paper, Scissors);

Solution: Created an arrow function with one parameter called UserInput.

Challenge (3)

The else statement was returning as undefined when called.

Solution: add a return statement and remove the console.log 

Reminder: Always use return because console.log has no return value.

Challenge(4)

The instructions on question 8 had me confused in terms of the else statement. I didn't know what to write after the return in the else statement block.

Solution: return 'You Won' (Because if the computer didn't choose paper then that means you might have).

Challenge(5)

The logic for determining the winner is returning as undefined when the function is invoked.

Solution: Test each of the statements separately and see if it works or returns undefined.

Challenge(6)

The play game function is always showing tie game regardless of the user and player choices

Solution: console.log the determined winner function but put the variables that hold the user choice and ComputerChoice as parameters.
Javascript Date & Time Cheatsheet(Moment.js, Day.js,  date-fns)
Tags: javascript, momentjs, webdev, frontend
Published: 2020-09-26 01:29:12

Since Moment.js is not recommended by official, here is a cheatsheet may help you migrate from it.

Link: [Javascript Date & Time Cheatsheet](https://www.cyanhall.com/posts/notes/18.javascript-date-time-cheatsheet/)
Fire Linker - A CLI Tool For Broken Links
Tags: opensource, node
Published: 2020-09-26 01:23:47

<h1 align="center">Welcome to Fire Linker 👋</h1>
<p>
<a href="https://github.com/zg3d/firelinker">
  <img alt="Version" src="https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000" />
</a>
  <a href="https://github.com/zg3d/fireLinker/blob/master/LICENSE" target="_blank">
    <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
  </a>
</p>

> A CLI tool that searches documents for the status of URLs/Links
## Install

```sh
npm i -g https://github.com/zg3d/fireLinker
```

## Usage

```sh
flink <FILE>
```

## Demo

![cli gif](https://i.imgur.com/5kO30bT.gif)

## Features
### Status codes Supported
  <ul>
  <li>200</li> 
  <li>400 </li>
  <li>404</li>
  <li>410</li>
  </ul>

### URL Protocols Supported
  <ul>
  <li>HTTP</li> 
  <li>HTTPS</li>
  </ul>

### Colors Supported
* <p style="color:green">Green = GOOD URL</p>
* <p style="color:red">Red = BAD URL</p>
* <p style="color:grey">Grey =  UNKOWN URL</p>

### Commands Supported
```
flink <file> -- where file is the name of the file

Options:
  -h, --help     Show help                                         [boolean]
  -v, --version  Show version number                               [boolean]

```








## Author

👤 **Devansh Shah**

* Github: [@zg3d](https://github.com/zg3d)

## Show your support

Give a ⭐️ if this project helped you!
Day 225: Holy
Tags: hiphop, code, coding, lifelongdev
Published: 2020-09-26 01:16:10

_liner notes_:
- Professional : Holy moly! Got up early to record the voice overs for my tutorial video. I used a blanket over my head as some homemade sound proofing. It was super hot, but got it done. Then had my immediate group meeting. Good seeing everyone. Then spent the rest of the day editing the recordings on my slow work laptop. haha. Got it done and uploaded for review. We'll see what they say.

- Personal : Did another test run of my side project's live streaming. Everything worked! I was able to share my screen and camera show each separately and together and have the different scenes in between. Even got the recording automatically on YouTube.

![A waterfall in a forest with a lot of green pine trees and some mist.](https://dev-to-uploads.s3.amazonaws.com/i/rhntyfowagg2xterzdus.png)

My parts to put the solar panels on the roof came in! I didn't even get a chance to check it out because I was working on editing my video. I'll check it out in the morning and hopefully get it installed this weekend. Going to work on the radio show tomorrow and maybe a little on my side project. I want to get the chat and questions section working.

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube t3MhH2WekcY %}
Codeigniter 4 Post Request
Tags: webdev, php, php7
Published: 2020-09-26 00:07:55

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

Hello, how you doing?, For you to be here , that means you have a basic knowledge on how codeigniter 4 works or you just wanna try it out. 

So in this case we will be looking at how to send POST request from view to controller and back to the view, Lets dive in.

Step 1. Set up a new codeigniter 4 project, Docs :  [Codeigniter](http://codeigniter.com/) 

Step 2. Create a controller and pass in this.


```
public function post(){
if($this->request->getMethod() == 'post'){
echo "Hello world";
}
}
``` 
Step 3. in your view create a form and add a button.
Like this


```
<form action="" method="post">
<button>Click me </button>
</form>
``` 

Thats all, its not something more complex or buggy.. its just simple..

Please subscribe to my channel  [DevStack](https://www.youtube.com/channel/UCLcHGKxbEO1XGVETXqzYXLA?view_as=subscriber)
Git config user.email for repositories in subdirectory
Tags: git, github, config, email
Published: 2020-09-26 00:06:28

Quick hint for developers working on source code from different Git accounts having different e-mails for them. Let say we develop our own projects and we support development for two other companies. Our folder structure could look like

```
~/.gitconfig
~/PersonalProjects/
~/CompanyAbc/.gitconfig
~/CompanyMno/.gitconfig
```

Of course we have configured default config as follows

```
user@mymac ~/ $ git config user.name "Firstname Lastname"
user@mymac ~/ $ git config user.email "user@myprivatebox.com"
user@mymac ~/ $ git config push.default simple
user@mymac ~/ $ git config core.editor emacs
```

We want different e-mails by default for all repositories in these directories without configuring this manually with command

```
user@mymac ~/CompanyAbc/website-repo (master) $ git config user.email "user@company-abc.com"
```

every time when wy clone new repository.

## Solution

Main `~/.gitconfig` file should look like

```
[user]
        name = Firstname Lastname
        email = user@myprivatebox.com
[push]
        default = simple
[core]
        editor = emacs
[includeIf "gitdir:~/CompanyAbc/"]
        path = ~/CompanyAbc/.gitconfig
[includeIf "gitdir:~/CompanyMno/"]
        path = ~/CompanyMno/.gitconfig
```

Set custom e-mail address in `~/CompanyAbc/.gitconfig`

```
[user]
        email = user@company-abc.com
```

You can repeat this for other configurations like `~/CompanyMno/.gitconfig` too.

## Verification

Please execute command to verify new settings

```
user@mymac ~/CompanyAbc/some-repo/ (master) $ git config user.email
```

It should throw out something like

```
user@company-abc.com
```

Good luck with coding!
How to combine Buffers in Node.js?
Tags: node
Published: 2020-09-26 00:00:00

---
  title: How to combine Buffers in Node.js?
  published: true
  tags: Nodejs
  date: Sat Sep 26 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/combine-buffers-nodejs
  cover_image: https://melvingeorge.me/_next/static/images/main-068e8b4d0507b9f4f78af4dcf814e005.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/combine-buffers-nodejs)
  
To combine `Buffer` instances in Node.js, we can use the `concat()` method in the `Buffer` class.

Let's say we have 3 Buffer instances with 10 bytes of memory allocated like this,

```javascript
// Buffer 1
const buff1 = Buffer.alloc(10);
// Buffer 2
const buff2 = Buffer.alloc(10);
// Buffer 3
const buff3 = Buffer.alloc(10);
```

Now we need to combine these buffers into a single buffer.

- The `concat()` method requires 2 arguments, the first one being an array of buffer instances that we want to combine and the second argument being the total bytes of the combined buffer instances.

- To get the total bytes of a buffer instance we can use the `length` property available int the buffer instance.

```javascript
// Buffer 1
const buff1 = Buffer.alloc(10);
// Buffer 2
const buff2 = Buffer.alloc(10);
// Buffer 3
const buff3 = Buffer.alloc(10);

// get the total bytes
const totalBytes = buff1.length + buff2.length + buff3.length;
```

Now let's combine these instances using the `concat()` method to combine these buffers into a single buffer like this,

```javascript
// Buffer 1
const buff1 = Buffer.alloc(10);
// Buffer 2
const buff2 = Buffer.alloc(10);
// Buffer 3
const buff3 = Buffer.alloc(10);

// get the total bytes
const totalBytes = buff1.length + buff2.length + buff3.length;

// pass buffers an an array as the first argument
// total bytes as the second argument
const resultBuffer = Buffer.concat([buff1, buff2, buff3], totalBytes);
```

- The `concat()` method returns a new combined buffer instance.

### Feel free to share if you found this useful 😃.

---
My first collaboration in OpenSource
Tags: opensource, beginners
Published: 2020-09-25 23:50:13

### Networking

I joined an Open Source community on Slack. I posted my projects and invite them to take a look. Some people responded and invite me on their projects to review. Everyone is nice here!

### As Reviewer

There are always surprises when reading people's code because we think differently. It can be small things such as variable name, always refactor to functions. It can be big things such as projects structure, separating code in  different files.

### As Reviewee

The same things will happen when I read their reviews. Not everything is the surprise like my code doesn't work, because you know "Our code never works on first run /s". But mostly I got surprised because we have different view point and we prioritize different tasks/things.

### Issues

The most problematic issue is if they forget to put something in ReadMe, it is almost impossible to know what the wrong step is and therefore where in the code cause that problem. The second biggest problem when reading others' code is if they don't comment on their code, it will take triple the amount of time to understand.

### Example

Some of my submitted issues:
https://github.com/matt-ross16/CheckMyLinks/issues/8
https://github.com/jongwon-jang/detectURL/issues/1

Some of issued post in my repo:
https://github.com/HenryZerocool/henz-cli/issues

It's very hard or very long to discuss issues because they are different for everyone or every repo. So I think the summary above should be enough comments on Open Source collaboration
What is the SERP tool you are using now?
Tags: showdev, discuss
Published: 2020-09-25 23:46:43

## List of the best tools I have used

[Screpy](https://screpy.com/keywords/), [Kwfinder](https://kwfinder.com/), Whatsmyserp, Serprobot.

Please comment, what is the SERP tool you are using now?
Back to Blogging
Published: 2020-09-25 21:15:30

---
description: Back to Blogging
---
My last blog post was over six months ago. 

Covid 19 has hit the world, and I will be honest I have found it a challenging time.

My Blog had gotten into a bit of a mess. It had become fragmented with different versions of the same thing; I will attempt to explain what has become of my blog.

The original WordPress site can currently be found at https://www.pwnedpass.com/ I would prefer it to be on a sub-domain of funkysi1701.com but for some reason I haven't been able to get that to work, not sure if it is a limitation of my hosting package. I like WordPress, it is very flexible, easy to get blog posts out there. But I want to write content about development and having a site I can tinker with is important to me.

Most of my WordPress blogs have been imported into dev.to and a few extra have been written on this platform. I like dev.to it is a wonderful place to share content and it has one or two extra features I like.

dev.to has an integration with Stackbit/Netlify and this became https://dev.funkysi1701.com. I like having a personal site, but having the same content as dev.to. To add content to this site all I need to do is write it on dev.to and some magic will go on behind the scenes and new content will be published.

However, as a developer I don't like magic, I want to understand what is going on a fiddle with all the settings and make it do what I want.

dev.to has an API, I can build a site in .Net Core and make API calls to fetch the content I want. I understand APIs, I understand .Net and can customise my site exactly how I want it, plus play about with a .net website. This is what https://www.funkysi1701.com is now.   

So what have I built so far. I have a Server Side Blazor site running .Net 5. Why Server Side and not Client Side I hear you ask? Well only because I have more experience with Server Side and know how to quickly create a website with that technology, I may change it as time goes by, but we will see.

I have two pages a list of my blog posts and a page that displays the content. Both of these use the dev.to API. I lied, there is a third page I hacked together to do some page redirection from the WordPress URLs. This is something I will change as time goes on. 

There are lots of improvements I want to do, there are probably also lots of broken images or links as well. Hopefully, this will result in a good platform to blog about as well as on.
The flux capacitor Project or my Plan for the Hacktoberfest 2020
Published: 2020-09-25 22:52:20

#Introduction
The Hacktoberfest is right around the corner and I want to try something new.

Last Year I`ve written, with some tips and motivation of @negue, a Website to [document my carpool rides.](https://github.com/wo-ist-henry/DriveWithMe/)
Overall it just worked and it was more practical then beautiful, but it proved to me, that I am capable of writing a piece of software without any help of a collegue and that was all I wanted at that moment.
Later on I have upgraded my CI and implemented Cypress and Karma Tests.

That was one year ago....


#The idea
I want to write a Chatbot who does one thing.
Tell the person, who is chatting with it, where I am.


###The Why
Last year I had a lot of meetings and tasks of my desky colleagues wondered where I was...


###The How
The Chatbot should work inside of Discord, so it can run of my Raspberry Pi.

It should handle basic questions, like "Where is Henry" and it would reply between 9 to 5 "At his Desk".

When there is something special like Vacations,a Meeting or something like that, my Bot would give you this answer as well, but how should the Bot know that kind of stuff? 


My Idea is that the Bot communicates with a Server, which is also running of my Raspberry, which is saving these informations on a SQLite DB.
But the Bot can only read the information and not write something new.


So the fourth component in this plan is a Angular based Webapp which manages all Infos and can modify or delete new entries.


At the End the architecture should look like this:
![The flux capacitor(2)](https://dev-to-uploads.s3.amazonaws.com/i/yglfa89q1z9w4caz46gg.png)
 
 
Because the Architecture is somewhat comparable with this:
![the flux capacitor in Action](https://media.giphy.com/media/hAogM2NqtbBF6/giphy.gif)


And this is why the Project is called, thanks to @negue again, "The Flux capacitor Project"


#Used Languages
###Server
I want to write the Server in C# .Net Core with a REST-API to run it of the Raspberry Pi.

###Bot
Currently im not sure if I want to ride the Discord Bot in node.js or C#. The time will tell, what I will pick...


###Webapp
Because on this project I want to focus on writing a REST-API and Chatbot from Scratch, it will be Angular.


#Possible difficulties
###Server-Architectur
I am not so familiar with setting up a REST-API from scratch as it would be helpful at this project. So something new to learn is exciting!


###Authentication and accesability
I have to be careful that it is only possible to add or edit data only from inside my local Network, so that nobody is spamming my database with fake datasets. Besides that only me should be able to do this anyway.



We will see what the Time will bring