teleren/devto huggingface dataset:
Split an existing git commit
Tags: git, webdev, productivity
Published: 2018-05-23 13:37:17

---
title: Split an existing git commit
published: true
tags: git, web development, productivity
canonical_url: https://codewithhugo.com/split-an-existing-git-commit/
cover_image: https://codewithhugo.com/img/markus-spiske-unsplash.jpg
---


One of `git`'s main differences when compared to other version control systems is that it lets the user rewrite the history. The main way to do this is to use `git rebase`, usually followed by a `git push` ` --``force ` to overwrite history the remote with the local history.

Here’s a look at how to split existing commits using `rebase`, `reset` and `commit`.

Say you have two files edited in a commit (A and B) and you would like to get the changes from one of those files (A) into your current branch but not those from the other (B).

Using `git cherry-pick <commit-hash>` is not an option since it would pull in the changes for both A and B.

The solution is to split the commit into 2 and only cherry-pick the new commit that contains changes for A.

To do this:

* run `git rebase -i <commit-hash>~` (note the `~`) or `git rebase -i <hash-of-previous-commit>`
* find the commit you want to split in the rebase edit screen, change the `pick` to `e` (`edit`)
* save and exit (`ESC` followed by `:wq` to close VIM)
* `git reset HEAD~` to reset the staged changes
* `git add [files-to-add]` all the files we want to add to the first commit (here would be `git add A`)
* `git commit` normally, with a message etc
* Run as many other rounds of as you want commits:
  * `git add [other-files-to-add]`
  * `git commit`
* `git rebase` ` --``continue ` to indicate that the splitting has been finished and to continue the rebase

Finally we can `git cherry-pick <new-commit-hash>` to get the changes into our branch

For any questions about using git, feel free to comment below or tweet to me [@hugo\_\_df](https://twitter.com/hugo__df).


[Subscribe](https://buttondown.email/hugo) to get the latest posts right in your inbox (before anyone else).

Cover photo by [Markus Spiske](https://unsplash.com/photos/qcCHZLdsS80?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/search/photos/axe-split-wood?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
Let's build a more inclusive web developer community
Tags: webdev, showdev
Published: 2018-05-22 23:21:44

---
title: Let's build a more inclusive web developer community
published: true
description: Help figure out how to build a more inclusive web developer community.
tags: #webdev, showdev
---

I've started a personal project to build a more inclusive web developer community. It is very early days, but would love to have some collaborators.

##👉 [Check out the GitHub repo](https://github.com/Meggin/inclusive-web-project)
What was your first ever contribution to Open Source?
Tags: discuss, opensource, contributing
Published: 2018-05-22 20:40:48

---
title: What was your first ever contribution to Open Source?
published: true
description: 
tags: discuss, opensource, contributing
---

I'll start!

My first Pull Request that was ever merged was a set of translations for one of [Francisco Franco](https://github.com/franciscofranco)'s Android apps from English to Spanish, because that's my native language.

Although it wasn't a complicated task on it's own, I had no idea how Pull Requests, forks, and branches really worked back then and right after I got the email notification that it got merged I decided to learn Git more in depth by taking Udacity's Git related courses.

Needless to say, that was one of the best decisions I've ever made.
What technical recruiters want from engineering candidates
Tags: career, devtips, startup, discuss
Published: 2018-05-22 20:33:59

---
title: What technical recruiters want from engineering candidates
published: true
description: Internal recruiters at different startups describe what they want from engineering candidates.
tags: #career, #devtips, #startup, #discuss
---

I recently asked internal recruiters at different startups, "What makes an engineer stand out from the applicant pool?"

Straight from the horse's mouth, here's [what technical recruiters want from engineering candidates](https://www.keyvalues.com/blog/what-tech-recruiters-want-from-engineering-candidates).

Their responses helped me think about what the application process looks like on the other end. It's an extremely noisy process, and as an applicant, we should make it easy for tech recruiters to see us.

I also shared this post on Hacker News, and found the [comments](https://news.ycombinator.com/item?id=16877320) to be equally eye-opening.

___

If you're curious about a very different perspective on how engineers can/should approach their job search, I also asked six technical founders a similar question. Their responses are [here](https://www.keyvalues.com/blog/how-engineers-can-stand-out-from-the-applicant-pool).
Immediate & Actionable Tactics For Leveling Up Devs
Tags: video, career, leadership, learning
Published: 2018-05-22 20:02:35

---
title: Immediate & Actionable Tactics For Leveling Up Devs
published: true
description: Every company says they value mentorship, yet new devs are as unhappy as ever. Why the disconnect? Typical advice about evolving talent can be broad, un-relatable, and impractical. Aren't there any specific, concrete, and realistic tactics for teams to level up new devs? (Yes, there are!)
tags: video, career, leadership, learning
cover_image: https://cl.ly/rl0F/Screen%20Shot%202018-05-22%20at%202.54.32%20PM.png
---

{% youtube K0vxOBIyhF0 %}

### Slides:

{% speakerdeck be8dbc484ce04d80a868606369630037 %}

Everyone seems angry about hiring, onboarding, and retention. This is what happens when we value something, like mentorship, _without knowing how to achieve it._ Worse is that much of the advice out there is not actually tactical... Instead it's just more reasons why we should value mentorship.

_This talk is not about valuing mentorship._ No one needs to be convinced of that anymore. The more interesting question is **assuming you already value mentorship, what _tactics_ can you employ** that 1) work effectively across various teams, and 2) don't undermine other qualities of a team that you also value. 

My goal for this is to present to you at least a couple ideas that you’d never heard before and be able to _immediately_ add them to your internal playbook. Here are the 3 broad categories of tactics I'll cover:

1. **Mentorship is not intuitive--it's something a person must actively learn to do.** I'll go over a few very specific actions teams can _immediately_ take to start training their devs to be better mentors.
2. **Train on business logic and tooling before code.** Most training is focused on code (like "learning lunches" where a person presents a new library they're learning), but new devs struggle most often with non-code problems (like understanding a business domain or knowing how to employ tools to debug more effectively). I'll present an argument for why this is true, and then I'll list a few actionable strategies for non-code training.
3. **Promotion and retention.** Companies would sooner die than lose their most senior developers, because there is so much institutional knowledge that only those seniors possess. I'll cover several immediate actions that teams can take to spread the wisdom around to more team members and finally create a proper junior-to-mid and mid-to-senior pipeline within the company.

Companies that can grow talent from within have a _huge_ advantage. But without realistic and actionable tactics, that advantage will always be out of reach. This talk will change how teams approach training by handing them several usable strategies, and by giving them a framework to create their own playbook.
How to get puppetserver to log again after it stopped logging
Tags: puppet, debian, systemd
Published: 2018-05-22 19:16:21

---
title: How to get puppetserver to log again after it stopped logging
published: true
description: use start/stop instead of restart to reenable logging again.
cover_image: https://thepracticaldev.s3.amazonaws.com/i/46b8l2tt3iumkr3qb4bm.jpg
tags: #puppet, #debian, #systemd
---
today i noticed that my puppetserver version 2.7.2 on debian stretch doesn't log to `/var/log/puppetlabs/puppetserver/puppetserver.log` and `/var/log/puppetlabs/puppetserver/puppetserver-access.log` anymore :(

i had no idea why. even restarting the service did not help. 

tried `/etc/init.d/puppetserver restart` & `service puppetserver restart` with the same result of not having new log entries.

the solution for me was to first start and then stop the puppetmaster:

```
puppetserver stop
puppetserver start
```

cover image by xresch https://pixabay.com/en/analytics-information-innovation-3088958/
Building Modern Applications with Django and Vue.js
Tags: javascript, vue, django, python
Published: 2018-05-22 18:23:19

---
title: Building Modern Applications with Django and Vue.js
published: true
description: In this article, you will create, step by step, a full-stack application with Django and Vue.js.
tags: #javascript #vuejs #django #python
canonical_url: https://auth0.com/blog/building-modern-applications-with-django-and-vuejs/
---

Throughout this article, you'll be using Django, Django REST framework, and Vue.js to develop an application with a REST API back-end and a Vue.js front-end. The API will be consumed by the Vue.js front-end with the help of Axios (the HTTP client library) and JWT authentication will be handled by Auth0.

[Get started 💥](https://auth0.com/blog/building-modern-applications-with-django-and-vuejs/?utm_source=dev&utm_medium=sc&utm_campaign=django_vuejs_apps)

![Building Modern Applications with Django and Vue.js](https://thepracticaldev.s3.amazonaws.com/i/z2crr6059onzaav9i247.png)
When Multitasking Is The Only Option
Published: 2018-05-25 20:05:37

---
title: When Multitasking Is The Only Option
published: true
tags: 
canonical_url: https://blog.professorbeekums.com/multitasking/
---

Multi-tasking doesn’t exist. All the science tells us that we are only capable of task switching. And task switching is really bad for us. Every time we switch tasks, we add to our cognitive load making us less effective at all the tasks we are attempting to do at once. A lot has been written on this topic with the attempt to justify creating work environments where people can focus.

![](https://blog.professorbeekums.com/img/2018/multitasking.jpg)

It’s an admirable goal, but one that is completely unrealistic in many cases. For some jobs, juggling lots of tasks at once is the core part of the role. Any project manager or developer who has doubled up as a sysadmin can attest to that. I’ve definitely had roles where I was lucky to have a single hour uninterrupted.

I complained about this at first. My team regularly missed our sprint goals with my contributing no small part to those misses. How could I get any work done? I started logging interruptions to my time and it came about to 20-30 a day. Horrific.

That is until I actually looked at the subject of those interruptions. After talking to my boss, I realized that while my own work was suffering, the value I was providing to the company overall was higher because of my contributions to other teams. With the exception of a few situations, it was better for me to handle those interruptions than it was for me to be allowed to focus. So what if it takes an average of 15 minutes to regain focus if it means saving someone else a couple of hours or more?

While it’s true no one can be more productive multi-tasking with their own work, it doesn’t mean we should give up and just say multi-tasking is the ultimate no-no and no one should do it. For many of us, we should also look into how to minimize the negative effects of multi-tasking. Sometimes I can force myself back into the right context quickly, but this isn’t a reliable tactic. “Willing” yourself to do something isn’t feasible most of the time.

This is something I plan to read a lot more about in the future, but there is one tactic that’s definitely helped me so far: writing things down.

For developers, we’re often building complex systems and we try to build and hold all that complexity in our mind at once. Any interruption will cause those fragile thoughts to tumble like a house of cards. But writing down those thoughts as they come, even if the writing is gibberish to anyone but me, helps me solidify those thoughts. I’m able to recover from interruptions much quicker. Oftentimes, I don’t even need to look at my writing. The initial act of writing something down helps improve my memory.

I’m sure there are other tactics out there. They just need to be found. If you know of any, I would love to [hear from you!](http://professorbeekums.com/contact)
What's your Developer Story?
Tags: discuss, career
Published: 2018-05-22 16:44:41

---
title: What's your Developer Story?
published: true
description: Where did you start, and how did you get to where you are today?
tags: discuss, career
cover_image: https://thepracticaldev.s3.amazonaws.com/i/nevwjoee2bm5gj1bhrka.png
---


Howdy dev.to peeps!  

I'm curious what your stories are - how did you start, where are you now and what did it take to get from point A to point B?  Extra points for gory details about the journey

I'd love to hear from people at all points in the path, from folks just starting out to people who've been on it longer than I've been alive.
Tour of scala started for me
Tags: scala, tour, introduction
Published: 2018-05-22 14:43:16

---
title: Tour of scala started for me
published: true
tags: scala,tour,introduction
canonical_url: 
---

## Motivation

I attended [Geecon 2018, this year’s IT conference](https://2018.geecon.org). There are 2 main points I took into consideration. First, this is JVM, and as I can see there is a lot of that stuff running all around the world, so even if whole world would be magically converted to Python and stuff, it will take ages. And someone has to keep it running. Second, this is the language of [Spark](https://spark.apache.org/) and [Kafka](https://kafka.apache.org/), two of the projects of my interest in area of stream processing in Java world. Therefore I would like to be more fluent and write these processing pipelines in the suggested language so I can make use of all of the features.

## First snacks

Scala is nice. It is less verbose. And as I can see it learned some nice features from Java applying in its syntax as a built-in (f.e. immutability). This makes my first steps nice. Especially I like following:

- inferred types
- immutability
- in-line functions

## Learning

I decided to take [a tour of Scala](https://docs.scala-lang.org/tour/tour-of-scala.html). And you can see the way I am learning in my repo at [github here](https://github.com/lukaszkuczynski/tour-of-scala). Learning is done by writing the unit test and checking its results with `sbt test`. Then I proceed to another point. It helps me to:

1. understand points better
2. have fun while learning
3. make a step-by-step report, easy to review

This is nice. There was a while to find the best tool, and to make it all up and running on my Windows PC, and to have it running on Intellij, but finally I succeeded.

This is a sample how do I play with that, I write spec in Scala:

```
it should "make Fenix singleton by it being an Object" in {
        Fenix.createOrRecreateFromAshes()
        val historyOfFenix = Fenix.createOrRecreateFromAshes()
        assert(historyOfFenix == 2)
    }
```

that uses following `object`:

```
object Fenix {
    var livesCount = 0
    def createOrRecreateFromAshes() ={
        livesCount += 1
        livesCount
    }
}
```

This and much more at my github, [you can check it, now worries](https://github.com/lukaszkuczynski/tour-of-scala).
How do you visualize a network/infrastructure?
Tags: discuss, network, visualize, infrastructure
Published: 2018-05-22 13:56:10

---
title: How do you visualize a network/infrastructure?
published: true
description: Which tools do you use to visualize a network with its devices/components?
tags: discuss,network,visualize,infrastructure
---
I have a network on a client side containing workstations, routers, servers, printers, VoIP-phones and other devices.

I want to:
- see all devices with details (maybe click to view more) > Name, IP
- see connections between the devices (Printer > Workstation, Router > Workstation)
- be able to interact with the map (just nice to have)

My first attempt was to list every entity in a json file and create a website with [D3.js](https://d3js.org/). This gave me the ability to have a nice visualization and see some details along with it. But having to maintain connection properties between devices in a json file is not very comfortable.


**How would you recommend to start visualizing the infrastructure?**
Code habits 
Tags: habits, coding, webdev, discuss
Published: 2018-05-22 13:01:21

---
title: Code habits 
published: true
description: 
tags: habits, coding, web-dev, devdiscuss
cover_image: https://thumbs.dreamstime.com/b/coder-programmer-work-comic-book-style-vector-developer-pop-art-retro-illustration-software-engineer-61951470.jpg 
---

#My habits

One of the main silly habits that I have is always putting the name of the font family that I import in CSS under a comment.


```css
@import url('https://fonts.googleapis.com/css?family=Tajawal');
/*font-family: 'Tajawal', sans-serif;*/
```

Besides CSS, I like to put comments a lot on Javascript code and HTML.

I know that lots of Developers have some habits, so I am curious, what are your Coding Habits?
Winds 2.0: It’s Time to Revive RSS
Tags: showdev, rss, opensource
Published: 2018-05-22 14:58:39

---
title: Winds 2.0: It’s Time to Revive RSS
published: true
tags: showdev, rss, Open Source
canonical_url: https://getstream.io/blog/winds-2-0-its-time-to-revive-rss/
---

 ![](https://getstream-blog.imgix.net/blog/wp-content/uploads/2018/05/winds-announce.png?w=1024&h=1024)

I love using RSS to follow the programming and tech news I care about. Unfortunately, the number of sites supporting RSS has been in rapid decline over the last few years. The reader ecosystem is slowly degrading as well. Facebook and Twitter’s dominance is now delivering its final blow to the open standard of RSS.

It’s time to turn the tide. [Stream](https://getstream.io/) is releasing [Winds 2.0](https://getstream.io/winds/), an open-source Podcast & RSS Reader. You can download Winds [here](https://getstream.io/winds/) or head over to [Github](https://github.com/getstream/winds) for the code. (Also, Winds is currently trending on [Product Hunt](https://www.producthunt.com/posts/winds-2-0))

![](https://getstream-blog.imgix.net/blog/wp-content/uploads/2018/05/image1.png)

Many power users of RSS are developers, designers and journalists. Together, we hope to tip the balance and **#ReviveRSS**. With the help of the community we can build an RSS experience that’s polished, bug free and popular enough to convince publications to improve their support for open standards and RSS.

Winds is not perfect yet, we’re working on it though and with your help we might just manage to # **ReviveRSS**

- [Star Winds on Github](https://github.com/getstream/winds)
- Share your feedback on Winds’ features and roadmap on [Product Hunt](https://www.producthunt.com/posts/winds-2-0)
- [Tweet about Winds & RSS](http://bit.ly/winds-tweet)
- Ask your favorite publications to fix and/or implement RSS support
- Write about Winds and RSS
- [Contribute to Winds on Github](http://github.com/getstream/winds)

A huge thank you to:

- [Hackernoon](https://dev.to/getstream_io/stream--go-news-feeds-for-over-300-million-end-users-605-temp-slug-6856636) for sharing this message
- [Dev.to](https://dev.to/) for getting the community involved
- [Product Hunt](https://www.producthunt.com/) for the product feedback
- My colleagues at [Stream](https://getstream.io/) for building and sponsoring Winds
- [Algolia](https://www.algolia.com/) for sponsoring Winds
- [MongoDB](http://mbsy.co/mongodb/228644) for helping with promotion

And of a course many thanks to the devrel team at [Stream](https://getstream.io/) for taking what started out as an example app and turning it into such a beautiful polished experience!

[Download Winds](https://getstream.io/winds) or checkout the code on [Github](https://github.com/getstream/winds).

The post [Winds 2.0: It’s Time to Revive RSS](https://getstream.io/blog/winds-2-0-its-time-to-revive-rss/) appeared first on [The Stream Blog](https://getstream.io/blog).
How to Center Items In Css[Centering Guide🖕🖕🖕]
Tags: html, webdev, css
Published: 2018-05-22 05:58:58

---
title: How to Center Items In Css[Centering Guide🖕🖕🖕]
published: true
description: CSS Centering Guide 
tags: html,webdev,css
cover_image: https://cdn.pixabay.com/photo/2017/10/25/19/45/arrow-2889040_960_720.jpg 
---

**Centering items/elements in CSS is a most confusing thing. Today
I'm showing the different techniques to center items both horizontally and Vertically.** 


# Horizontally Center

{% codepen https://codepen.io/saigowthamr/pen/mLomoJ %}

# Vertically Center

{% codepen https://codepen.io/saigowthamr/pen/erXEJY?editors=1100 %}

# Centering Images

{% codepen https://codepen.io/saigowthamr/pen/JvzNQz %}

# Both Horizontally and Vertically Centered

{% codepen https://codepen.io/saigowthamr/pen/wjOePP %}
Why do Web browsers famously use so much RAM?
Tags: discuss, javascript
Published: 2018-05-22 04:53:13

---
title: Why do Web browsers famously use so much RAM?
published: true
description: 
tags: discuss, javascript
---

Is it because every character in Strings are UTF-16 and every Number is a float64, the sheer number of objects in the average page, or because JS is a VM language? Something else?

@see
https://tc39.github.io/ecma262/#sec-terms-and-definitions-string-value
https://tc39.github.io/ecma262/#sec-terms-and-definitions-number-value
How Blockchain Wallet Technology Works
Published: 2018-05-24 05:57:39

---
title: How Blockchain Wallet Technology Works
published: true
tags: Blockchain,blockchain,blockchain wallet
canonical_url: 

blockchain is trying to find its ground in other industries, the application of wallets in these industries also needs to be researched. Here we discuss all that you should know about blockchain wallets and their functioning.  The different types of wallets include software wallets (used on any device like mobile, tablet, or desktop), hardware wallets (store the private key of users on hardware devices like USB), and single or multi-currency wallet. As the primary purpose of a blockchain wallet is to simplify the exchange of cryptocurrency amongst users. The user can choose the type of wallet they want to use depending on the frequency and bulk of transactions.