teleren/devto huggingface dataset:
How do I add "originally published at" to my post
Tags: help
Published: 2018-11-13 11:44:54

I'm new here, and I've just published my first post. It's a repost from somewhere else. I've added the canonical_url in frontmatter, but my post doesn't say "originally published at" in the author line.

I'm sure I'm missing something, how do I add that line to my author tag for the post?

Here is an example of how it looks for other people. https://dev.to/huijing/organising-talkcss-consistently-anyhowly-1kcd
I hate setting up my dev environment.
Tags: discuss
Published: 2018-11-15 06:43:28

---
title: I hate setting up my dev environment.
published: true
description: I should really write some scripts or something. 
tags: discuss
---
Do you guys have complicated dev environments? I kind of do with all my terminal and text editor configs. I kind of want to simplify it all a ton but I love tricking out my terminal and what not. I just hate starting from scratch and setting up all the initial stuff. What do you all do?
First encounter with Firebase
Tags: firebase
Published: 2018-11-18 16:23:22

---
title: First encounter with Firebase
published: true
description: 
tags: firebase
---

Firebase. Yes, I had heard about it a lot. Firebase actually has a lot of cool things inside it from ML to Analytics and storage and what not. There are a lot of nice services. Although I don't know how much they are charging at this moment. This was my first date with it.

<b>Firebase Cloudstore</b>

So this is what I picked up.

I wanted to build a very small API reference document.

Sure I could have made it via a normal HTML page too. But I wanted to see what the big deal was with Firebase. 

So in short Cloudstore is a NoSql database which is super fast.

A NoSql database or a document database is a database which has no structure or as they call it semi-structured database. How it differs from Mysql or relational databases is that, while in Mysql you have to have the same no.of columns in every row, you don't have any such constraints over here.

So it's really cool. But since there were no validations at all, it was kind of bad too. As I was adding new fields everytime by mistake and in the end it was a mess.


Ok so what you need to do is this. Whatever I am writing down is the bare minimum.

<b>Setting up the database</b>

1. Open firebase console.
2. Create an account over there.
3. Go to Databases section.
4. Create a database. There will be two options - private and public. This is basically of restricting the outside world from writing or reading from your 
databases directly. Wasn't much of a concern for me as I had none.

<b>Accessing via JavaScript</b>

1. Go to project overview on your left hand side.
2. Click on the </> icon. 
3. You will be shown a script to be added to your code.
4. Then go to this place. This section has all the: how to read and write stuff.https://firebase.google.com/docs/firestore/quickstart

<b>Hosting</b>

1. Once that is done you want to host your application so that the world can see it.
2. Click on Hosting on the left panel.
3. You will find a couple of npm commands over there.
4. Run them from your OS command line.
5. Incase you get an error during <i>firebase deploy</i>, add this --project <project-id> with it. 
6. Your project-id is visible under Project Overview section on the left hand side near the gear icon.


Once all is done you can see your small and beautiful site at <project>.firebase.com


Happy Firebasing! :P
A Literal Guide for Erlang
Tags: erlang, literal, chengefavor
Published: 2018-11-21 04:58:04

---
title: A Literal Guide for Erlang
published: true
description: 
tags: Erlang, literal, chengefavor
cover_image: https://thepracticaldev.s3.amazonaws.com/i/c2q2tx1o6mkm99i9n0z4.png

---

This style is clear and short.

Do you like it? Are there other language guides like this?

[Erlang by Example](http://erlangbyexample.org/hello-world)

Added:

[Elixir](https://elixir-examples.github.io/)
[Clojure](https://kimh.github.io/clojure-by-example/)
Time tracker recommendations?
Tags: discuss
Published: 2018-11-22 19:18:33

---
title: Time tracker recommendations?
published: true
tags: discuss
---

Hey fellas,

Brand new here! Super happy to join!

I'm a consultant doing mainly web development work. I bill by the hour. 'till now, I've used a spreadsheet to track the time I spent working, but I'm sure there's a better way. What do you guys use to track your time, both for billing and for growth purposes? (i.e. I'd like to know how much time I spend coding, researching, planning etc.)

Thanks so much!
Yoav
Episode 8: Building a JSON API - Custom Sorting
Tags: node, mongodb, javascript, docker
Published: 2018-11-27 02:10:31

---
title: Episode 8: Building a JSON API - Custom Sorting
published: true
description: Episode 8 covers adding custom sorting to both our user and item routes.
tags: nodejs, mongodb, javascript, docker
series: building-a-json-api-with-express
cover_image: https://thepracticaldev.s3.amazonaws.com/i/w0tng8rlk2re3898bo79.png
---

After a brief break, this series is back. This time we dive into making custom sort queries with express.

{% youtube omwjZ60j5Yg  %}

If you'd like, drop a comment with something else you'd like to see this series cover, or if you disagree with how I've demonstrated something. Thanks for watching!

Source code:

{% github NathanBland/core %}
RDBとFirebaseのDB両方使ったっていいじゃない
Tags: mysql, firebase, firestore, japanese
Published: 2018-11-27 13:14:57

---
title: RDBとFirebaseのDB両方使ったっていいじゃない
published: true
description: 
tags: mysql,firebase,firestore,japanese
canonical_url: https://crieit.net/posts/RDB-Firebase-DB
---

今年Firebaseを使い始めてからちょこちょこ自分の中で議題に上がるのが、RDBとFirebaseのデータベース（Firestore、Realtime Database）のどちらが使い勝手良いのか、ということ。ただ、そもそもどちらかを選ばなきゃいけないというわけではなく、適宜両方使えばいいということが分かったのでそれについての雑記。

そもそもまず、なぜ悩むところがあったのか。

## Firebaseのデータベースのデメリット

一番大きいのはやはりリレーショナルでないことと、クエリが弱いということ。集計ができなかったり、欲しいデータがすぐ取れなかったりする。

## RDBのデメリット

とりあえずRDBにしておけば何でもできるというのはあるが、デメリットとしてはやはりサーバーもしくはお金が必要になってくるということ。サーバー内に入れると管理やスペックの調整などが気になるし、別途RDSやCloud SQLを使うと当然お金がかかる。

Heroku等のPostgresやJawsを使う手もあるが、あまりにも容量が少なすぎる。

## Firebaseへの期待が高まりすぎる

RDBはメリットが高いが、やはりサーバーが不要というFirebaseのデータベースのメリットも同様に非常に高い。そのため、いつかバージョンアップした際にクエリが強くなるのではないか、もっとデータが取りやすくなるのではないか、みたいな期待が高まりすぎてしまった。

多分Datastoreを流用していると思うので、あまり期待しすぎても仕方なく、ひとまず現在は現状のままどうやって使っていくかを考える必要がある。Firebaseのデータベースを使うとなると、それでうまく作り方を考える必要が出てくる。（これはこれで面白いのだが）

## どちらかに限定する必要はない

そこで気づいたのが、そもそも元々RDBを使っているアプリケーションであっても、Firebaseのデータベースを併用して使えばもっと便利になるのでは、ということ。

例えばこのCrieitの例だが、先日リアルタイムで下書きをライブ公開できる機能を作成した。

[編集中の内容をライブ公開できるリアルタイム投稿機能を実装しました](https://crieit.net/posts/634be945aec88661d0edd1656e25f588)

このサイトはGoogle Compute Engineの永久無料枠で使えるf1-microというインスタンスで動いているのだが、とにかくメモリの使用量も小さく貧弱。Laravelは一応Pusher等と連携してWebSocketを使える機能があるのでLaravel自体でもライブ公開機能は実現可能なのだが、結局状態変化があった時にデータを取得などしようとするとLaravel自体にアクセスが行ってしまう。あまりに頻度が多いと、現在のサーバーのスペックでは厳しくなる可能性がある。

その時に思い出したのがFirebaseのRealtime Databse。これは同時接続数などの制限があるものの、書き込み、読み込み等の回数には特に制限がない。つまり、制限内でライブ公開する機能を付けるのであれば、サーバーの負荷ゼロでライブ公開機能が実現できてしまう。

実際に下書き入力中の内容は特にサーバーに保存する必要がないので、入力した内容はそのままRealtime Databaseに保存し、閲覧者側はそれを受け取るだけになっており、完全にサーバー負荷も費用的な負荷もなくライブ公開の機能が作れてしまった。無料で運営している個人開発サービスとしてはこのやり方はとても相性が良い。流行りすぎて人が増えるとそうはいかなくなるが、とりあえず今の段階では全く心配はない。むしろ遊び道具が一つ増えて楽しみが増えた。

逆で、Firebaseだけで運用しているサービスにRDBの利用を追加する、ということも考えられる。RDSやCloud SQLでは費用が増えてしまうが、とりあえずHerokuのPostgres等でも良いかもしれない。Firestore側が苦手とする集計や柔軟なページングなどを行いたいデータだけ、併用して保存することで、Cloud Functions経由で簡単に集計データなどが取れたりするのではないかと思う。

## まとめ

とにかく柔軟に考えて、併用することでパフォーマンス的にも費用的にもベストな形になるような状態を目指していくと面白い。
What Should a Company Do With Its Products Built on Aging Tech?
Tags: discuss
Published: 2018-11-29 16:08:10

---
title: What Should a Company Do With Its Products Built on Aging Tech?
published: true
description: 
tags: #discuss
---

Let's say you're running a software company with moderate success. The problem is you've built your product on technologies that are now rather old, and support for the tools is long gone, and there aren't many people around anymore with those skills. 

Every tool was the hot new thing at some point. When do you flip the switch on the old thing? 

There are several companies that bought your product -- maybe even very recently. Do you give them the new version for free? How do you tell them what they got wasn't _bad_, but the new thing is better?

Do you do a full rewrite of your huge platform to catch up with the present? How do you better future-proof for the next time you hit this threshold?
How it works mentorship program inside dev.to?
Tags: discuss, mentorship, help
Published: 2018-12-06 15:53:27

I see on profiles settings a **Mentorship** section. I think it's a great idea but I can't find an option to search for mentors? Is there something like this that I'm missing?

For example, I would like to interchange mentorship speaking my native language Spanish and at the same time have a mentor to practice speaking English.

It will be cool to have some kind of calendar with events/topics availability where people can schedule these meetings inside dev.to as part of the site.

I know gamification it's not included inside the philosophy of dev.to but it will be good to know the number of mentorships and hours that a user has invested in others. It will be good to show these metrics on your Resume (Curriculum Vitae).

A tool like this can give us more attention, visits and can be a big community help.
React Native Floating Action Button
Tags: javascript, react, es6, reactnative
Published: 2018-12-09 05:26:24

---
title: React Native Floating Action Button
published: true
description: React Native Floating Action Button 
tags: #javascript #react #es6 #reactnative
---

Post Link : <a href="https://www.skptricks.com/2018/12/react-native-floating-action-button.html" >React Native Floating Action Button </a>

This tutorial explains how to add floating action button in react native application. It was first introduced in Android Material Design and Gmail App is the best example where you can see the Floating Action Button.This is round type of Icon button floating above the application UI at the right bottom side of screen. In this tutorial we would going to create a react native app with Floating Action Button using TouchableOpacity and Image component.

<a href="https://www.skptricks.com/2018/12/react-native-floating-action-button.html" >React Native Floating Action Button </a>

<img src="https://2.bp.blogspot.com/-s9CPn6iMmtg/XAuZRZ85I4I/AAAAAAAACOc/cGyzLR0oT2YHly9xhL48r8MNSAlBiepKwCLcBGAs/s640/floting.png" />
A map for Machine Learning on AWS
Tags: machinelearning, aws, cloudcomputing, ai
Published: 2019-01-25 09:50:53

---
title: A map for Machine Learning on AWS
published: true
tags: machine-learning,aws,cloud-computing,artificial-intellige
canonical_url: https://medium.com/@julsimon/a-map-for-machine-learning-on-aws-a285fcd8d932
---

It looks like Christmas is a little early this year ;) Here’s a little something from me to all of you out there: a map to navigate ML services on AWS. With all the new stuff launched at re:Invent, I’m quite sure it will come in handy!

This is very much work in progress (I’d like to add SparkML, etc.), and the latest version will be available on Gitlab: [https://gitlab.com/juliensimon/awsmlmap](https://gitlab.com/juliensimon/awsmlmap)

Let me know what you think!
Open File manager in Linux from terminal without knowing its name
Tags: linux, file, terminal
Published: 2018-12-17 17:45:35

---
title: Open File manager in Linux from terminal without knowing its name
published: true 
description: 
tags: linux, file, terminal
---

use command **xdg-open** to open the file manager directly from terminal.

If you dont know the file manager name then run the command as sudo
ex: **sudo xdg-open .**

It is a nice hack to know the name of default file manager directly from terminal.
Vimming in the Squasher: How to Squash Your Commits with VIM
Tags: vim, git, squash, rebase
Published: 2019-03-02 15:57:21

---
title: Vimming in the Squasher: How to Squash Your Commits with VIM
published: true
tags: vim, git, squash, rebase
canonical_url: https://www.kahlillechelt.com/2018/11/21/vimming-in-the-squasher-how-to-squash-your-commits-with-vim/
---

Whenever I use `git rebase -i` to squash commits, Git opens the squasher (that’s how I just named the text view for the interactive rebase) in VIM.

My knowledge of vimming is not very great so I used to just type `i` and then inch around with the arrow keys and delete character by character in order to delete the word “pick” a bunch of times and then type “squash” a bunch of time.

Of course that was incredibly annoying, so [I finally looked up](https://coderwall.com/p/d6gifw/use-vim-visual-blocks-to-squash-multiple-git-commits) how to vim in the squasher and it is glorious. So here is how you do it:

First, move to the line with the first commit you want to squash, which is typically the second one.

Then, enter into something called _visual block mode_ (WTF?! What does that even mean?) by hitting `ctrl` + `V`. Something magical happens: when you move the curser it blocks out every character you move over with white and if you move down it will cover as many characters you covered in the line above. It looks like blocks. So I guess that’s where the “visual block” comes in 😅.

Select all the rows you wish to squash while visually blocking out the word “pick”.

Now, more magic: hit `C` and type the word “squash”, after that hit `esc` and see the word “squash” applied in all places that were “visually blocked out”.

If you only could exit VIM at this point, you would actually successfully squash all these commits. A boy can dream, right?
Can Problem Solving (Skill) be Learned?
Tags: discuss
Published: 2018-12-18 17:24:15

---
cover_image: https://thepracticaldev.s3.amazonaws.com/i/m46muhwkiqved85m1imx.jpg
title: Can Problem Solving (Skill) be Learned?
published: true
description: 
tags: #discussion
---

I mean, I have a friend and he is working as a developer. He can do a daily simple CRUD. But he can't solve a "print a 90 degree triagle" problem :/
If async & awaits is used with Task in ASP.NET (C#), is there a need to manually create threads? 
Tags: aspnet, c, discuss, async
Published: 2018-12-19 02:30:34

---
title: If async & awaits is used with Task in ASP.NET (C#), is there a need to manually create threads? 
published: true
description: Or does the application use ASP.NET default thread group?
tags: ASP.NET, C#, discuss, Async
---
URL Shortner
Tags: node, express, mongodb, urlshortner
Published: 2018-12-21 10:27:33

---
title: URL Shortner
published: true
description: Created using NodeJS, Express and MongoDB.
tags: nodejs, express, mongodb, url shortner
---

View [demo](https://url-shortner-99.herokuapp.com)
Fork me on [GitHub](https://github.com/sarthak-sehgal/url-shortner)
Frameworks used: NodeJS, Express, MongoDB
Created by [Sarthak Sehgal](https://sarthak-sehgal.github.io/)

<img src="https://camo.githubusercontent.com/bc77f280f4e392370c803293d22f99929bc362e0/68747470733a2f2f692e696d6775722e636f6d2f3355505a3064692e706e67" height="300" />
Git, Github: Git Initialize Error “error: src refspec master does not match any.”
Tags: git, github, commandline
Published: 2019-02-28 22:08:45

---
title: Git, Github: Git Initialize Error “error: src refspec master does not match any.”
cover_image: https://thepracticaldev.s3.amazonaws.com/i/bvh52gu3mzz4ytz52kii.png
published: true
description: Being exhausted from an error when you try to create a new repo? Here is a quick answer!
tags: Git, Github, Command line
---

_Cross-posting from my Medium entry.
[Medium: Arisa F](https://medium.com/@shabibi/git-github-git-initialize-error-error-src-refspec-master-does-not-match-any-f90ffb76f0c4 )_

Hi, it’s Arisa, a freelance Full Stack Developer living in Germany.

I’m sure you’re looking at this entry because you got an error in your terminal or PowerShell from Git.

I also got the error says,

```
error: src refspec master does not match any.
error: failed to push some refs to '<REPO_URL>'
```

# Situation

The situation here is very basic.
Thought about to create a new repository in my Github.

I already had my project ready in my local and simply only needed to create a new repo, then push my project.

You should see in your Github repo page you just created like this.

![Github, after created a new repo](https://thepracticaldev.s3.amazonaws.com/i/ypzb5nwuxp7gfbtn71j7.png "Github, after created a new repo")

It’s easy, just follow as it’s written in “…or create a new repository on the command line.”

Normally, it works and you’ll see README.md is added.
But if you’re unlucky, you’ll see an error like in above.

# Solution

What to do?
It’s not a big deal.

Just add and commit something change to your repo, like adding .gitignore or any changes.
Then re-run push command.

Why does it work?

A trick behind here is starting to know this.
Git creates a master branch only after commit to your local repo.
If you just initialize repo then there is no master.

That’s why Git returns you an error says,

src refspec master does not match any.
Simple, right?
No more getting a heart attack from command errors.

Hope this entry helped you to work on your project.

Tschüß.
Nevertheless, Thanigaivel K Coded 
Tags: theycoded
Published: 2019-03-05 10:03:41

---
title: Nevertheless, Thanigaivel K Coded 
published: true
tags: theycoded
---

## I started to code in 2018 because I want to learn a living with a minimum knowloedge that I had back then...

## Now-a-days apps we use are more customized and are directed towards user experience. Mainly in Desktops, customizations are made so that you can use keyboard very minimal. But I see a problem in all these design. Even though they are focused on user experience but if you want to quit a popup or modal or any kind of user interface you have to use the close button provide. I prefer to close those things with keyboard or unfocusing it. 

## My point is while focusing UX we can make sure that people use the cursor / mouse very less.
Nevertheless, Coro Coded
Tags: wecoded
Published: 2019-03-05 14:23:36

---
title: Nevertheless, Coro Coded 
published: true
tags: shecoded
---

## I started/continued to code in 2019 because...

there's not enough gay black women coders and I need to take myself to the next level. Coding has always been something I wanted to do but, didn't really see people who looked like me, doing it.

## I deserve credit for...

Persisting. I'm self-teaching. It's hard and it's tough, but the day I can turnaround and use my skills to give back...it will all be worth it.

## I hope to see my school/work/developer/tech community...

continuing evolving and embracing unity. I hope to see us continuing to lift one another up, no matter where we are in our process.
RS485 Pinout
Tags: comport
Published: 2019-03-06 08:38:43

---
title: RS485 Pinout
published: true
description: All about RS485 Pinout and Signals
tags: com port
---


This article describes the <a href="https://www.virtual-serial-port.org/article/what-is-serial-port/rs485-pinout/"> RS485 pin </a>configuration as well as diagrams of full and half duplex RS485 connective pinouts. It additionally covers the technical RS485 specifications

In the EIA’s normal series, the RS485 protocol is taken into account the foremost versatile, demonstrating smart performance on all four criteria.
This has led to the RS485’s wide adoption as the communication interface of choice when multiple nodes need to communicate in control or data acquisition applications.
Allies Don't Make Inclusion About Themselves
Tags: wecoded
Published: 2019-03-08 12:39:52

---
title: Allies Don't Make Inclusion About Themselves
published: true
tags: shecodedally
---

I will never play baseball. Sure, I played as a kid, briefly, and I was terrible. I have since tried batting cages and find myself somehow wholly incapable of hitting even a single ball. Baseball teams - whether they be major league, minor league or even those just playing pickup games - are not excluding me because, to reiterate, I am not a baseball player.

I bring up my failings at baseball because it helps me think about how we, as men in an industry dominated by men, can sometimes let our own egos get in the way of helping diversity. We focus on the inclusion aspect that generally goes along with diversity because inclusion must include us and we fear being left out. But inclusion doesn't always need to include us. Just as there is no rule that allows me access to playing on a baseball team despite not being a baseball player, inclusion does not mean that everyone always needs to include you or me. 

And yet my ego is unbruised, because I can accept who I am and that, in other cases, there are opportunities given to me that are not given to others.

(Yes, I am aware the metaphor is imperfect but I still think it can be instructive.)

And here's the thing. Emphasizing inclusion first over diversity only enables the current power dynamics - in fact, it works to solidify them. Women, as an underrepresented group in tech, are not in a position to demand inclusion. This is why groups like [Women Who Code](https://www.womenwhocode.com/) or [Vue Vixens](https://vuevixens.org/), to name just a couple, are critical. They help create a place where women don't need to demand inclusion and risk reprisal for it. It builds female leaders in our industry that can balance out those power dynamics over the long term so that we build that diversity in our industry.

Once we build that diversity - once everyone has the same opportunity - then we should be inclusive. So, today, I ask that any of us who consider ourselves allies empower groups that empower women rather than try to force our way into their spaces by calling it inclusion.
Nevertheless, Desi Coded
Tags: wecoded
Published: 2019-03-06 18:01:43

---
title: Nevertheless, Desi Coded 
published: true
tags: shecoded
cover_image: https://thepracticaldev.s3.amazonaws.com/i/vt2ceq3y4rj8xesvwe98.jpg
---
Photo by Daria Nepriakhina on Unsplash

## I started/continued to code in 2019 because...

I missed it. I started coding in grade 4, but mostly abandoned it over the years for other passions (and, of course, stigma that girls don't tech.) I also wanted to feel more confident and capable in my job as a QA Analyst, and also because I <i>love</i> learning. 

## I deserve credit for...
Getting involved in tech/dev communities, applying for and attending events, identifying myself as an engineer, and committing to and completing code courses. 

## I hope to see my tech community...
Take the lead in allyship for women and other marginalized groups. Inspired by this tweet:

{% twitter 1103341457518157824 %}


I hope to continue seeing men stand up as allies when they see this sort of behavior toward women. Seeing others stand up this way empowers and teaches me how I can use my privilege to better advocate and ally for other marginalized groups as well and feel less scared.

(Does this sound like you? April shares some tips too!)
{%twitter 1103337454621192194 %}
Nevertheless, Johanna Coded
Tags: wecoded
Published: 2019-03-08 13:32:50

---
title: Nevertheless, Johanna Coded 
published: true
tags: shecoded
cover_image: https://thepracticaldev.s3.amazonaws.com/i/pc8370hn22s00gzz9j05.jpg
---


I continued to code in 2019 because I have found an amazing community through Women Who Code that constantly motivates me to learn more and share my time and experience with the group.

I deserve credit for becoming a developer in under a year without going to a bootcamp or getting a CS degree. It's been a lot of work, and it will always be more work learning, but it has been worth it.

I hope to see my developer/tech community continue to work to be better and more inclusive to developers all over the world! You can do it. :)