teleren/devto huggingface dataset:
Spoof a commit on GitHub. From Anyone.
Tags: security, git, github, devtools
Published: 2018-08-02 17:03:09

---
title: Spoof a commit on GitHub. From Anyone.
published: true
description: The "Author" of a Git commit can easily be faked. Prevent this by signing your commits.
tags: security, git, GitHub, devtools
---

<img src="https://i.imgur.com/VFQqkEo.png" width="400" />

Did you know that anyone can commit as you on GitHub? If you don't believe me, just browse through this repository's [forged commits](https://github.com/git-forge/fraudulent/commits) or [use our tool to forge a commit](https://spoof.krypt.co) for yourself.

## Try it for yourself: [spoof.krypt.co](https://spoof.krypt.co)

<img src="https://thepracticaldev.s3.amazonaws.com/i/c2y6no7q9zave83ay12p.png" width="400" />
<img src="https://thepracticaldev.s3.amazonaws.com/i/xj1k0213nn9nnujn3q7a.png" width="400" />


## How does it work?
Open your `~/.gitconfig`
```
[user]
    name  = Ben Bitdiddle
    email = bbitdiddle@mit.edu
```
Change `name` and `email` to any value you want.

If `email` matches the email of another GitHub user, that user's picture will show up next to the commit, and
when you click on it will take you to their **real** GitHub profile.

Next time you see a commit on GitHub from Ben -- don't trust that Ben actually authored it.

## How can do prove that my commits are *really* mine?
Anyone can set the “author” of a Git commit to any value. 
To prove that you authored a commit you must attach a digital signature to it.
The only way someone knows it was really your commit is to verify the commit's signature. 

## GitHub supports verifying & signing Git commits
Check out this signed commit: [kryptco/kr@0cca333](https://github.com/kryptco/kr/commit/0cca333).

<img src="https://i.imgur.com/S7S3HW6.png" width="500" />

If a commit doesn’t have a green “Verified” badge, then it could have been authored by anyone!

GitHub verifies signed commits, and Krypton makes signing commits easy.
Get your green verified badge, https://krypt.co.

# Let's see some well known forgeries...
"I love windows and subversion!" -- [**@torvalds**](https://github.com/torvalds) on [#1eb0d8](https://github.com/git-forge/fraudulent/commit/1eb0d85b5017ced016cdb37897e58ab2c9e5d294)

"You should really use gitlab.com, it's way better." -- [**@schacon**](https://github.com/schacon) on [#730c7e](https://github.com/git-forge/fraudulent/commit/730c7eebc37c92115a5f886c7cafbb44489b2c97) 

# Anonymously Forged Commits
Browse all of the forged commits from the community here! https://github.com/git-forge/fraudulent/commits/master
There's So Much To Learn, Yet So Little Time!
Tags: discuss, learn
Published: 2018-08-02 16:44:36

---
title: There's So Much To Learn, Yet So Little Time!
published: true
description: 
tags: discuss, learn
cover_image: https://images.unsplash.com/photo-1485934022854-c1da87c9f7ac?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=5644cb1e5c891f1891b4fc58221114cd&dpr=1&auto=format&fit=crop&w=1200&h=400&q=80
---

Coming from a Wordpress/PHP background, I'd like to get more into JS Apps and other such things. How do you decide what framework to learn, what tools to learn, and how to manage all of the things you could learn with a 9-5, and other life obligations. 

Any suggestions from the Dev.to community?
Is it Worth Learning Microsoft's Tech Stack?
Tags: discuss, dotnet, azure, microsoft
Published: 2018-08-02 16:23:33

---
title: Is it Worth Learning Microsoft's Tech Stack?
published: true
description: 
tags: #discuss #dotnet #azure #microsoft
---

Let me break down my concerns about Microsoft's tech stack. 

###Vb.Net : 
Very few desktop applications are surviving the mobile and cloud migration. Though VB.net still has takers in context of those legacy application who don't want to make use of the Java for desktop. 

###C# : 
It's very strong but often tied to Windows server. It's yet to be popular on linux server. There are few desktop based application making use of it but Node and Electron can pretty much replace it. 

###ASP.Net: 
Considering how expensive the ASP.net is still today in 2018 compared to PHP. I don't see why any company would still want to invest in this. PHP and  even node with express is much cheaper and maintainable over ASP.

###Azure: 
I find azure platform extremely expensive for developers who want to build on side projects. The reason being Dot net core is not matured yet to deploy on say digitalocean and other cloud platforms. And Azure is not really worth it after 12 months of free service as the usage prices rise quickly compared to other cloud hosting platforms. 

Though I am not completely discarding .NET stack, I find C# more faster and easy to deploy than slow RAM hanging java code.  

What's still worth it in my opinion - 

1. VS Studio and VS Studio Code
2. C# and Dot Net Core. 
3. Other testing and management VS tools which I ignored above. 

I know I may not be viewing things correctly but what's your opinion on Microsoft's tech stack (including any service which I have listed and/or missed). 

Do you think new developers and the college or university or even mid aged developers should invest their time into microsoft stack in 2018 onwards?
Introducing our August 2018 sponsors
Tags: meta
Published: 2018-08-02 16:02:30

---
title: Introducing our August 2018 sponsors
published: true
description: Our wonderful sponsors are vital to the health of dev.to and it is great to work with companies contributing so much to the ecosystem.
tags: meta
cover_image: https://thepracticaldev.s3.amazonaws.com/i/kjvhiorq0vrn1mgtxlx2.png
---

We are proud to announce our sustaining community sponsors for August. Our wonderful sponsors are vital to the health of [dev.to](https://dev.to) and it is great to work with companies contributing so much to the ecosystem.

All of these sponsors have worked with us in the past, so I urge you to check out their offerings. They have been really great to the whole community.

## Digital Ocean

[Digital Ocean](https://try.digitalocean.com/performance/?utm_source=devto&utm_medium=display&utm_campaign=Devto_2018_Brand) is a much-loved cloud computing platform. I'm always impressed by how well-built _and well-documented_ the Digital Ocean core products are. It's easier said than done, and they've been able to stay ahead of the curve.

## Timber

[Timber](https://timber.io/?utm_source=devto&utm_medium=homepage&utm_campaign=devto_aug) is one of the most interesting products to take on the logging space. Built around readability and usability, Timber is a logging system you're actually going to be excited about using. We have been Timber users since the beta days ourselves. They are doing great work.

Timber currently integrates most seamlessly with Ruby, Elixir and Node applications. It comes highly recommended from our team.

## Underdog

[Underdog](https://underdog.io/?utm_medium=homepage&utm_source=devto&utm_campaign=homepage2018-aug-30&utm_content=engineers-tech-companies) matches great devs with awesome tech companies in the major US markets of SF and NYC. If you are looking for a position in one of these hubs, skip the line and let Underdog be your partner in the process.

***

These organizations are helping us build the best community we can. I urge you to check out their offerings if you are in the market for their services.

Happy coding ❤️
Developers turn more than pizza and coffee into code, what do you consume to code
Tags: food, discuss, advice, health
Published: 2018-08-02 15:51:12

---
title: Developers turn more than pizza and coffee into code, what do you consume to code
published: true
description: 
tags: food,discussion,advice,health
---

The old adage goes, "A developer is a machine that takes in pizza and coffee, and outputs code.", and while that is a fun little quote, if it were the truth, most devs wouldn't live past 35. 

Many of us are very busy little developers, and have trouble getting the time to grab breakfast or lunch, and an even harder time grabbing something that's good for the brain. So my question is, what are your go to foods for quick, no-time dev sessions? Also what techniques do you use to stay hydrated?
Scaling microservices using message queues
Tags: microservices, java, kubernetes
Published: 2018-08-02 15:38:10

---
title: Scaling microservices using message queues
published: true
description: 
tags: microservices, java, kubernetes
---

# [How to scale Microservices with Message Queues, Spring Boot, and Kubernetes](https://medium.freecodecamp.org/how-to-scale-microservices-with-message-queues-spring-boot-and-kubernetes-f691b7ba3acf)
Android-Kotlin Digest #2 – Basic Types
Tags: android, appdev, blog, code
Published: 2018-08-03 04:11:49

---
title: Android-Kotlin Digest #2 – Basic Types
published: true
tags: android,appdev,blog,code
canonical_url: https://itscoderslife.wordpress.com/2018/08/02/android-kotlin-digest-2-basic-types/
---

Back again with Kotlin I learnt.

Kotlin runs on Java Virtual Machine (JVM).

Syntax for declaring variables:

Mutable:     var name: Type = value

Immutable: val name: Type = value

| Type | Bit width |
| --- | --- |
| Double | 64 |
| Float | 32 |
| Long | 64 |
| Int | 32 |
| Short | 16 |
| Byte | 8 |

Kotlin 1.1 supports underscores ( \_ ) in numeric values for readability:

val mySalary = 1\_000\_000

val myCreditCardBill = 20\_000

Difference between == and === :

val a : Int = 10

val b : Int = 10

(a == b) // gives true 

(a === b) // gives true 

Note: Here primitive types are compared.

When the primitive types are nullable it is turned into references and following is the result:

val a :  **Int?**  = 10

val b :  **Int?**  = 10

(a == b) // gives true 

(a === b) // gives  **false**  

Note: Here  **a**  and  **b**  becomes references and hence comparision with  **===**  results false.

Type converters:

‘c’.toInt()

80.toString()

A raw string is delimited by a triple quote ( **“””** ), contains no escaping and can contain newlines and any other characters:

val text = “””

    for (c in “foo”)

        print(c)

“””

You can remove leading whitespace with **trimMargin()** function:

val text = “””

    |Tell me and I forget.

    |Teach me and I remember.

    |Involve me and I learn.

    |(Benjamin Franklin)

“””**.trimMargin()**

— Happy Coding —
How Do You Find New/Interesting Blogs?
Published: 2018-08-02 23:51:20

---
title: How Do You Find New/Interesting Blogs?
published: true
tags: 
canonical_url: https://www.kickscondor.com/2018/07/29/finding-interesting-blogs/
---

Reply to: [https://ramblinggit.com/2018/07/poll-how-do-you-find-new-interesting-blogs/](https://ramblinggit.com/2018/07/poll-how-do-you-find-new-interesting-blogs/)

> [Brad Enslen](https://ramblinggit.com/):
> 
> In the past there were blog specific places to search for blogs and new blog posts: blog directories, blog search engines, RSS feeds directories, RSS search engines. In addition there were blogrolls, mentions by fellow bloggers, regular web search engines,etc. Not a lot of that infrastructure remains today.

Mostly, similar to what [coldbrain](https://micro.blog/coldbrain/752412) has said, I find blogs when they are casually mentioned on a blog or comment somewhere. Stuff like blogrolls and directories and such just don’t seem to exist. I know, because I’m constantly looking for them!

<!--more-->

Now, these things do exist in the small enclave of the Indieweb. There is the Indieweb [wiki](https://indieweb.org/), which has links all over it. And IndieNews, Indiemap, Blog Snoop and so on. But if I’m looking for blogs and websites that are out there—it’s impossible.

If I’m looking for a specific topic, I’ll Google “quilting blog” or I’ll look on Pinboard under the tag “chess”—and see what blogs come up.

But more often than not, I really want to read someone interesting. Someone’s stories and thoughts. To find all the great writers of our time that are out there. (Most writers I know that write in the literary tradition are lost as to where they should find readers now. It’s terribly ironic when you consider all the reading that is done on the Web in this age.)

This all excites me, though! It seems that there is still a frontier on the web. There is still a chasm to cross between all of us. We have a long way to go.

And I think that’s what drew me to the Indieweb. The answer will start here, in this group, because we’re thinking about it. I think about when Ward Cunningham came out with the wiki—it seemed like such a small, pointless invention. But what a masterstroke! What will be next?

* * *

Oh and one more thought about directories: I have a theory that exploring a directory is possibly _not directly_ the best way to discover new things. They can be big and dry and tough to get through. I think they more directly benefit the builder of the directory and, also, those listed in the directory.

The builder of the directory explores and unearths other folks. They then leak into this person’s life in a myriad of ways. (For example, I began by simply linking to you once, in pursuit of new things, but now I follow you very closely.) The initial link begets more. Knotty, twisty—here I think of Sam Ruby’s word [intertwingly](http://intertwingly.net/)—vines of links around each other.

And the recipient of the link is possibly motivated to build their own directory, so as to establish (or at least to not _forget_) their new network. So it can be viral. Blogrolls very much experienced this.
Brad’s Blog Directory
Published: 2018-08-02 23:53:34

---
title: Brad’s Blog Directory
published: true
tags: 
canonical_url: https://www.kickscondor.com/2018/08/02/brad-s-blog-directory/
---

Link: [https://ramblinggit.com/2018/08/new-blog-directory-soft-launch-open-for-submissions/](https://ramblinggit.com/2018/08/new-blog-directory-soft-launch-open-for-submissions/)

Consider submitting your blog to this, if you are out there reading and have let me link to you before. I like that it’s focused on blogs—the directory I’m building is more general than that. His guidelines are very similar to mine: a few-hundred links with longer descriptions than you’d see on other directories.

Oh, and if you look at this and think: “I want to make my own directory!” Please keep me posted. I’m tracking the rise of these new directories closely.
Learning Algorithms with JS, Python and Java 3: Integer Reversal
Tags: beginners, algorithms, learning, python
Published: 2018-08-02 13:02:57

---
title: Learning Algorithms with JS, Python and Java 3: Integer Reversal
published: true
description: 
tags: beginners, algorithms, learning, python
---

I joined dev.to this week and posted two little articles. Thank you for the hearts and unicorns (though I'm still not really sure what unicorns mean)!

[The third question](https://github.com/StephenGrider/AlgoCasts/tree/master/completed_exercises/reverseint) in the [Stephen Grider's course](https://www.udemy.com/coding-interview-bootcamp-algorithms-and-data-structure/) is to reverse an integer. I'll just quote the directions here.

> --- Directions
> Given an integer, return an integer that is the reverse ordering of numbers.
> --- Examples
>   reverseInt(15) === 51
>   reverseInt(981) === 189
>   reverseInt(500) === 5
>   reverseInt(-15) === -51
>   reverseInt(-90) === -9

Stephen's JS solution is:
```
function reverseInt(n) {
    const reversed = n
        .toString()
        .split('')
        .reverse()
        .join('');
    
    return parseInt(reversed) * Math.sign(n);
}
```
This works because `parseInt('12-')` returns `12`.

A neater solution might be:
```
function reverseInt(n) {
    const absReversed = Math.abs(n)
        .toString()
        .split('')
        .reverse()
        .join('');
    
    return Number(absReversed) * Math.sign(n);
}
```

My attempt in Python:
```
def reverse_int(n):
    abs_reversed = str(abs(n))[::-1]
    if n > 0:
        return int(abs_reversed)
    else:
        return -int(abs_reversed)
```
int('12-') throws a ValueError, so `abs()` cannot be omitted.
I wonder if there's a cooler way to do it.

And Java:
```
public static int reverseInt(int n) {
	String abs = Integer.toString(Math.abs(n));
	String absReversed = new StringBuilder(abs).reverse().toString();
	return Integer.parseInt(absReversed) * Integer.signum(n);
}
```
`parseInt('12-')` throws a NumberFormatException in Java, so `Math.abs()` cannot be omitted.
A Repo with list of ⚡️ Super Productive Movie Soundtracks 🎧
Tags: productivity, music, programmer, focus
Published: 2018-08-02 11:24:05

---
title: A Repo with list of ⚡️ Super Productive Movie Soundtracks 🎧
published: true
description: A curated list of best movie soundtracks by and for developers. 
tags: #productivity #music #programmer #focus
cover_image: https://images.unsplash.com/photo-1497493292307-31c376b6e479?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=428468d8a8b3842450b4f54a173f2622&auto=format&fit=crop&w=1051&q=80
---
I always feel like that Movie Soundtracks are the best music to listen while programming. So I thought why not make a repo with list of all the great albums and soundtracks.

If you are a Soundtracks fan too, Please share your favourites. Here is the link to the repo. Hail Hans Zimmer !! ❤️ 

{% github sarthology/ProjectSoundtracks %}

Also if you want to know how soundtracks helped me. Check [this](https://medium.com/naturehub/these-epic-movie-scores-can-make-you-more-focused-and-productive-ee89be01a906) out.
Moore's Law and Programming languages
Tags: discuss, programming
Published: 2018-08-02 10:13:13

---
title: Moore's Law and Programming languages
published: true
description: 
tags: [discuss, programming]
---

Since Moore's law is leveling off, now developers will have to level up their game  to extract more performance out of same chips. I predict less JS (or Electron) and Python/Ruby/node, and more Go, Rust, Scala (and maybe assembly on the side).

What do you think?
Deep Dive into VuePress: Craft a Clean Documentation & Blog
Tags: javascript, webdev, vue, showdev
Published: 2018-08-02 15:27:08

---
title: Deep Dive into VuePress: Craft a Clean Documentation & Blog
published: true
tags: javascript, webdev, vue, showdev
canonical_url: https://snipcart.com/blog/vuepress-tutorial-vuejs-documentation
---

![In-Depth VuePress Tutorial: Vue-Powered Docs & Blog](https://snipcart.com/media/203742/vuepress.png)

Have you ever skimmed through the Vue.js documentation?

Anyone familiar with it will tell you:

It's **magnificent**.

To build it, Evan You, [Vue](https://snipcart.com/blog/vuejs-tutorial-seo-example)'s creator, came up with VuePress.

For an upcoming side project of ours, we decidedly wanted some of that docs' magic. This post is an account of that process.

**You'll learn what VuePress is, what's so great about it, and how to quickly set up a neat Vue.js-powered documentation & blog.**

Steps for the technical tutorial:

 1. Installing VuePress.
 2. Generating documentation content.
 3. Adding a blog to VuePress.
 4. Inserting the blog in the navigation.

It's easy & straightforward&mdash;you'll be done in no time.
  

→ Read the full post & technical tutorial [here](https://snipcart.com/blog/vuepress-tutorial-vuejs-documentation)
Multistage SSH's configuration.
Tags: ssh
Published: 2018-08-02 09:08:49

---
title: Multistage SSH's configuration.
published: true
description: It is setting for multi-stage SSH.
tags: ssh
---
# Multistage ssh

In some circumstances, it was necessary to use multistage SSH.
(It is bad that "ssh port 22 Operation timed out" comes out almost on AWS.)


## Preparation

- Create server1's private key.
- Create server2's private key.


## Update config

Edit ssh config file.

    vim ~/.ssh/config

Add the following parameters.

    Host preserver
      HostName server2.com
      ForwardAgent yes
      User server2user-name 
      IdentityFile ~/.ssh/server2key
      ProxyCommand ssh -l server1user-name -i ~/.ssh/server1key -p port-number server1.com -W %h:%p


## Command

    ssh-add ~/.ssh/server2key
    ssh preserver

Enjoy!
On typical naming anti-pattern in Java
Tags: java, cleancode
Published: 2018-08-02 08:55:12

---
title: On typical naming anti-pattern in Java
published: true
description: 
tags: java, cleancode
---

I think one word summarises it all: _OneEyedOneHornedFlyinPurplePeopleEater_. Every time I see a typical javish 40+ character class name often composed of several short sentences, I remember this song and silently sing it a little bit. I think I'll give it a try to sing it aloud for a change. :)

Anyway, I believe it is a great name for this anti-pattern. Opinions?

{% youtube X9H_cI_WCnE %}
Web components basics (how-to)
Tags: webcomponents, javascript, template, howto
Published: 2018-08-02 05:53:30

---
title: Web components basics (how-to)
published: true
description: We look into the very basics about how the different parts of web components interact and what benefits this new architecture will give.
tags: webcomponents, javascript, template, how-to
---

{% youtube XrD8X8h1Wds %}
Create a Dropdown Menu using ReactJS
Tags: react, javascript, webdev, programmer
Published: 2018-08-02 04:17:10

---
title: Create a Dropdown Menu using ReactJS
published: true
description: Create a Dropdown Menu using ReactJS
tags: #reactjs #javascript #webdev #programmer
---

Post Link : https://www.skptricks.com/2018/05/create-dropdown-using-reactjs.html

<a href="https://www.skptricks.com/2018/05/create-dropdown-using-reactjs.html" >Create a Dropdown Menu using ReactJS </a>
Today, In this tutorial we are are going to discuss how to create simple drop down menu in ReactJS and we have tried our best to make this tutorial as simple as possible. Here we are going to design CSS Dropdown menu with the help of ReactJS and also with the help of onClick Event, we are showing and hiding the drop down menu content.

<img src="https://2.bp.blogspot.com/-OWfym2bt-2g/WvhgT-zNf4I/AAAAAAAABi0/m-GM5q77T6EUK0jIFj27HYvDe3IWo3sLwCLcBGAs/s320/ezgif-4-c0d51f3e95.gif" title="Dropdown Examples with ReactJS" />

<a href="https://www.skptricks.com/2018/05/create-dropdown-using-reactjs.html" >React dropdown menu tutorial </a>


{% youtube KwtVRXbS4c8 %}


<a href="https://www.skptricks.com/2018/05/create-dropdown-using-reactjs.html" >Read More... </a>
Is this the real life, is this just fantasy?
Tags: passion, games, developer, factory
Published: 2018-08-01 23:19:46

---
title: Is this the real life, is this just fantasy?
published: true
description: Escape from reality
tags: passion, games, developer, factory
---

I'm refusing to be a factory working developer. I left my last job because (along the way) they lost their passion for development and only worked for money while pressing us developers over the edge.

PS: After i left i because a game developer. This is more me then machine work anyways. 

Like always, the song below is for you:


[![No image available](https://lastfm-img2.akamaized.net/i/u/ar0/2d786dd2b4fc4c35b1b4b486f12553ec)](https://www.youtube.com/watch?v=fJ9rUzIMcZQ)
Game devs, Only you can make all this world seem right
Tags: immersion, love, games, music
Published: 2018-08-01 22:07:43

---
title: Game devs, Only you can make all this world seem right
published: true
description: a confession
tags: immersion, love, games, music
---

Hi gamedev, Johnny Here. 

I am about making games (its my job) that immerse you 100% into a title / project. I'm one of those visual thinkers where i make games lay back (in my chair) while QA testers test my game(s). I don't do this because i am lazy i am getting into the world of my own game(s) just to see what i missed. My game(s) are under NDA (dont ask). But when i play a game like Far cry 5 for my self.. Man! This game's music is sooo good i dont have words for it.

Just an example here: 


[![No image available](https://i.ytimg.com//vi/Plr6vUsOMp0/hqdefault.jpg)](https://www.youtube.com/watch?v=Plr6vUsOMp0)

Me that day ....


[![No image available](https://pre00.deviantart.net/6a4a/th/pre/f/2012/008/8/b/queen_crest_by_audrey41lorgeoux-d4losav.jpg)](https://www.youtube.com/watch?v=HgzGwKwLmgM)