teleren/devto huggingface dataset:
The Git Rebase Workflow
Tags: git
Published: 2019-06-20 13:49:10

---
title: The Git Rebase Workflow
published: true
description: 
tags: Git
---

Hi everyone,

Looking for something totally different on the internet, I got to see that video about a "Git Rebase" workflow that is different from the "standard" "Git Merge/Pull Request" workflow.
The developer on the video is making a pretty good job at explaining clearly why it is interesting, and how it is working in practice.

{% youtube f1wnYdLEpgI %}

That looks pretty interesting as indeed a Git tree can become really huge when using the Pull Request/Merge workflow.

I want to have your feedback, feeling about that Git workflow.

Do you used it on your project? Wether you are working alone on your project or you are collaborating with other developers.

I would be happy to have your feedback about what you feel about the Git workflow.

I used it quickly on a test repo to see how it is working and it is petty interesting.

---

### Try it

If you want to test it, you can use the following script to have a local git folder ready so you can experiment the git rebase workflow : 

```shell
#!/bin/zsh

git branch "feature/1"
git checkout "feature/1"

echo "Feature 1 : " >> README.md
echo "1" >> README.md
git commit -a -m "Feature 1 : 1"

echo "2" >> README.md
git commit -a -m "Feature 1 : 2"

echo "3" >> README.md
git commit -a -m "Feature 1 : 3"

git checkout "master"

echo "Master" >> README.md
echo "1" >> README.md

git commit -a -m "Master 1 : 1"
```

---

#### Git Rebase Workflow

Then, to use the Git Rebase workflow, you can try : 

```shell
# Checkout the Feature branch.
git checkout feature/1

# Rebase the Feature branch onto "master" the interactive way.
git rebase -i master

#Resolve conflicts

# Continue rebasing now that the conflicts are resolved.
# Squash your commits into the first one and reword the first commit to explain all the changes from the 3 commits modifications.
git rebase --continue

# Checkout the "master" branch.
git checkout master

# Rebase the master branch onto "master".
git rebase feature/1

# Delete the Feature branch.
git branch -D feature/1
```
---

#### Git Merge (Squash Commits) Workflow

If you want to have the same result using git merge, you can try :

```shell
# Move to the master branch.
git checkout master

# Merge the "feature/1" branch and squash the commits.
git merge --squash feature/1

#Resolve conflicts

# Commit your changes and add a single commit message for all your commits.
# You can omit the "-m" to have a template popping up based on your previous commit messages.
git commit -m "Feature 1 : 1, 2 et 3"

# Delete the "feature/1" branch that is no longer needed.
git branch -D feature/1
```

Cheers.

---

Video produced by [Wild & Secure](https://wildnsecure.com), your consulting firm to all things security and real estate.
If you want to receive weekly quality content about security, subscribe to our newsletter [on our website](https://wildnsecure.com/contact).
How many conferences are too many?
Tags: discuss
Published: 2019-06-20 13:44:36

---
title: How many conferences are too many?
published: true
tags: discuss
cover_image: https://thepracticaldev.s3.amazonaws.com/i/0r0gv3ys1jdym6a25sn0.jpeg
---

As we are in full swing of conference season, how many conferences does your company let you attend/speak at? Does your company offer support when speaking at conferences?
Hex to RGBA convert function
Tags: javascript, colorcodes, hex, rgba
Published: 2019-06-20 13:43:52

---
title: Hex to RGBA convert function
published: true
description: Hexadecimal color code convert to RGBA code.
tags: javascript, color codes, hex, rgba
---

https://gist.github.com/burakkp/25888034ffdf08a184cd90da491e745b
Code With Intent
Tags: career, general
Published: 2019-06-20 13:41:18

---
title: Code With Intent
published: true
description: The how and why of making your intent clear
tags: career, general
canonical_url: https://stevenmercatante.com/code-with-intent/
---

___
*This post was originally published at [https://stevenmercatante.com](https://stevenmercatante.com/code-with-intent/)*
___

When people ask what makes someone a senior software engineer, they tend to get the same responses: ability to ask meaningful questions, mentoring others, putting aside one's ego, technical ability and so on. But, there's something else that is just as essential that is rarely mentioned: making the intent of your code clear.

This can be accomplished a few ways:

- variables and functions have clear names that express their purpose
- functions are small and have only one responsibility
- code should be self documenting, but if that's not possible...
- ... comments should be added that explain _why_ the code is written this way, and _how_ it works
- functions and classes are organized so that new contributors can quickly find what they're looking for

It's easy to neglect some of the above when you're new to programming, or under tight deadlines. But making the effort is absolutely worth it. Your code will be easier to understand, easier to test, and easier to refactor. New contributers will thank you. Future-you will thank you, too. After all, there's nothing worse than coming back to a codebase you wrote 6 months ago and wondering what the hell is going on. So take the time now to make your intent clear - even if it only helps future-you, it'll be worth it.

👋 **Enjoyed this post?**

Join my [newsletter](https://stevemerc.com/newsletter/?r=dev) and follow me on Twitter [@mercatante](https://twitter.com/mercatante) for more content like this.
How to Use Cloud Shell in Visual Studio Code
Tags: azure, cloudshell, howto, powershell
Published: 2019-06-20 12:03:25

---
title: How to Use Cloud Shell in Visual Studio Code
published: True
tags: Azure,Cloud Shell,How To,PowerShell
canonical_url: https://techcommunity.microsoft.com/t5/ITOps-Talk-Blog/How-to-Use-Cloud-Shell-in-Visual-Studio-Code/ba-p/663431
---

<li-video vid="https://youtu.be/6P7kecGgrjY" align="center" size="large" width="600" height="338" uploading="false" thumbnail="http://i.ytimg.com/vi/6P7kecGgrjY/hqdefault.jpg" external="url"></li-video>

Originally posted by [@ThomasMaurer](https://twitter.com/ThomasMaurer) on [ITOpsTalk.com](https://techcommunity.microsoft.com/t5/ITOps-Talk-Blog/bg-p/ITOpsTalkBlog) 

As you may know, I am a huge fan of the Azure Cloud Shell. I use it often directly in the [Azure Portal](https://portal.azure.com/?WT.mc_id=itopstalk-blog-thmaure), on Microsoft Docs, in the [Azure Mobile App](https://azure.microsoft.com/en-us/features/azure-portal/mobile-app?WT.mc_id=itopstalk-blog-thmaure) or on [shell.azure.com](https://shell.azure.com/?WT.mc_id=itopstalk-blog-thmaure). A lot of times I am editing files and writing code and Azure Resource Manager (ARM) templates in Visual Studio Code and in that case I need to either use a local [Azure PowerShell](https://www.thomasmaurer.ch/2016/05/how-to-install-the-azure-powershell-module/) or Azure CLI installation or switch from Visual Studio Code back in the browser to use Cloud Shell. However, there is also a third option, which allows me to run Cloud Shell directly within [Visual Studio Code](https://code.visualstudio.com?WT.mc_id=thomasmaurer-blog-thmaure).

 

To set up Cloud Shell in Visual Studio Code you need to do two things. First, you need to install nodeJS and the Azure Account extension.

 

- On Windows: Requires Node.js 6 or later to be installed ([https://nodejs.org](https://nodejs.org/ "https://nodejs.org")).
- Visual Studio Code [Azure Account](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account?WT.mc_id=itopstalk-blog-thmaure) extension.

Next, you can log in to Azure and open PowerShell or Bash in Cloud Shell:

 

![Cloud-Shell-in-Visual-Studio-Code.gif](https://gxcuf89792.i.lithium.com/t5/image/serverpage/image-id/116910iDC4ED53AF11581E9/image-size/large?v=1.0&px=999 "Cloud-Shell-in-Visual-Studio-Code.gif")

 

 

1. Press  **CTRL+SHIFT+P**
2. Sign in to Microsoft Azure, by typing  **Azure: Sign In**
3. A  **browser window**  will open to login to Azure
4. Press  **CTRL+ SHIFT+P**
5. Type  **Open PowerShell in Cloud Shell**  or  **Open Bash in Cloud Shell**
6. This will connect you directly to your Cloud Shell running in Azure.

 

I hope this gives you an overview of how you can run Cloud Shell directly in Visual Studio Code. If you have any questions, leave a commement below.
Copy text on click with JS
Tags: javascript, crtlc, copy
Published: 2019-06-20 12:21:20

---
title: Copy text on click with JS
published: true
description: Simple function for copying the content of an element on click with vanilla JS 
tags: JS, JavaScript, crtl+c, copy
---

Yesterday I've stumble upon a necessity of copy some text into clipboard with JavaScript and I thought it might be useful to share the method I've used with everyone else.

In detail I had to copy on click some hex value on colored swatches and I had to do it in plain JS.

My approach uses the "event" that's automatically passed on every click.
- It selects the text inside the clicked element (event.target)
- And copies it into the clipboard.
- For demo purposes, it opens an alert box notifying the hex code selected

I found it particularly useful for sharing colors to a designer, but can, of course, be used in many other ways (e.g. dashboards, form pre-filling on click, etc.)

{% codepen https://codepen.io/polettoweb/pen/KjazEZ %}
Responsive Full-page Parallax Slider (Remake)
Tags: codepen, vue, html, css
Published: 2019-06-20 12:15:21

# Redesigned thing

<p>This is a fork (and remake) of 'Responsive Full-page Parallax Slider'</p>

<p>I used the technologies that I learned recently:</p>

<ul>
<li>VueJS in most of the functionalities.</li>
<li>GSAP just for scrolling.</li>
</ul>

<p>I also redesigned the layout based on how I am doing my current designing style.</p>

<p>There are now 3 layers of parallax effect here.</p>

---

<p>The concept is just similar, but the designing is different.</p>

<p>Before, I wanted the text to be bordered by black border, but now, I removed it.</p>

<p>Before, the background colour of the image is not masked by black background. Now I tried to mask it.</p>

<p>There are also a difference in functionality. Example, before, scroll is only done by clicking the links, at the bottom of the screen. But after learning few technologies, I can make it scroll, while you still can click the buttons below.</p>

<p>Also the thing threw me back, I haven't used any libraries and preprocessors before. That is why, the source code is more complex before.</p>

---

# Preview of the new pen

<p>Here is the preview of the pen that I created recently</p>

{% codepen https://codepen.io/takaneichinose/pen/GbNebd %}

---

# Comparison

<p>For a comparison, here is also the Pen of the old one.</p>

{% codepen https://codepen.io/takaneichinose/pen/grKQJx %}

---

# Conclusion

<p>After years of learning, and practising, your skills will improve. Not only the speed, but also the way you're thinking of a concept of design.</p>

<p>In Addition, I didn't use any libraries or preprecessors before, that is why the source code before is not really good.</p>

<p>We should not stop learning, and practising. There are still many things we could learn at the future.</p>
Your powerful dev computer is your weakness. 
Tags: discuss, development, tools, productivity
Published: 2019-06-20 12:01:41

Usually the developers like to use powerful computers. 

They can explain this with many reasons, but the truth is that it is easy to work on a faster computer and the developers are usually rich enough to be able to buy a high-end machine. Or their employers are. 

But, come on! Today, even the slowest low-end netbook has huge (I mean **HUGE**!) computational power. 

If we, the experts, can't setup our processes to work great on this extremely fast hardware, how we can ask our users to use our software on their slow, old, cheap machines? 

In addition, my experience clearly shows that the programmers improve their software only until it works acceptably fast on their own computer.

Beyond this point the programmer will cook up thousand excuses and explanations, but will not optimize further. 

Will claim it is impossible, will talk about "premature optimizations" and will threaten about very expensive and hard support.

The truth is that the optimization is tedious process and when you **can't feel** the acceleration, you will never understand why you should make this work instead of programming something funny.

So, working on the slower machine, the programmer will always create software of higher quality. This effect works **automatically and unconsciously**.

That is why I am using for programming, the slowest possible computer I was able to buy (and that has more or less modern hardware, supporting the latest CPU extensions). 

It is [ASUS X102BA](https://www.asus.com/Laptops/X102BA/) netbook with AMD A4-1200 CPU (2 cores, working on 1GHz), 4GB of RAM and 500GB HDD; 

It is running Manjaro Linux with XFCE.

When I am in the office, I am connecting external HDMI display (2560x1440) and good mechanical keyboard.

In addition to the very high positive effect on the quality of my programs, the netbook has additional advantage - it is pretty mobile - very small (266x185x23 mm) and very lightweight (1.1 kg). I am carrying it always with me and can start to program instantly in every moment.

What you think about such point of view?
Why Node.js is considered a rising star in the web app development space?
Tags: nodejsdevelopment, nodejsappdevelopment, node, nodejsapp
Published: 2019-06-20 11:04:21

JavaScript is not only considered to be one of the most widely-held programming languages but also the ubiquitous software application development framework.
Technically speaking, <a title="Node.js app development" href="https://www.qsstechnosoft.com/technologies/node-js-app-development/">Node.js app development</a> is not a framework or a librar but a runtime environment built on Chrome’s V8 JavaScript engine.
Hosting WordPress on Netlify
Tags: webhosting, netlify, wordpress
Published: 2019-06-21 04:00:48

---
title: Hosting WordPress on Netlify
published: true
tags: Web Hosting, Netlify, WordPress
canonical_url: https://kevinhq.com/hosting-wordpress-on-netlify/?utm_source=rss&utm_medium=rss&utm_campaign=hosting-wordpress-on-netlify
cover_image: https://i0.wp.com/kevinhq.com/wp-content/uploads/2019/06/Hosting-Wordpress-on-Netlify.png?resize=930%2C512&ssl=1
---

Is it possible to host a WordPress blog or site on the Netlify platform? Because we already know that Netlify only allows you to host a static HTML site. The answer is yes. It is possible, but with some tricks. In short, We need to convert the whole WordPress site into a fully working static HTML… 

[Read More »Hosting WordPress on Netlify](https://kevinhq.com/hosting-wordpress-on-netlify/)
What are the benefits of learning core Java in real time?

Published: 2019-06-20 10:28:35

All the real world problem can be solved with the concepts of Core Java.
The real-time challenges such as multithreading, overriding/ overloading are the basics blocks of Java solving the real problems. The reason Java to be popular is its simplicity and the platform independent is the outline feature of Java making the language robust.

<a href="https://online.crbtech.in/certifications/core-java-programming-certification/">Core Java Online Certification</a>
See how your web app works with real users
Tags: showdev, discuss, javascript, webdev
Published: 2019-06-20 10:16:22

Hi!

I made a little side project where you can inject real human users into your web app and test how it plays out. Those users give you feedback and then you can improve an iterate. What do you think, would you give it a try?

P.s.: Do you think the name is too strange?
Also I'm on product hunt today but the post is pretty much buried :)
https://www.producthunt.com/posts/feedback-community

Have a nice day!

https://userinject.com/#/?ref=dev
How We Auto-Generate Documentation, JavaScript Style
Tags: javascript, webdev, tutorial, vue
Published: 2019-06-20 18:09:40

---
title: How We Auto-Generate Documentation, JavaScript Style
published: true
tags: javascript, webdev, tutorial, vue
canonical_url: https://snipcart.com/blog/generate-documentation-javascript
---

![How We Generate Our New Documentation with Sanity & Nuxt.js](https://snipcart.com/media/204460/sanitynuxt-og.png)

We’ve spent the last few months building [the new version](https://snipcart-docs-v3.netlify.com/) of our shopping cart.

When we started working on it, we knew this would also mean changes in other areas of our product.

Documentation was one of them.

It meant a few specific and much-needed upgrades:

- Improving navigation between docs versions
- Rethinking content arborescence
- Automating documentation generation as much as possible

We also wanted to stay true to what we preach; using [the JAMstack](https://snipcart.com/blog/jamstack)! That meant choosing the right JavaScript tools to generate our documentation.

We ended up picking [Nuxt](https://nuxtjs.org/) for static documentation generation, [Sanity](https://www.sanity.io/)[.io](https://www.sanity.io/) to manage content, and Netlify for automated deployment. I’ll explain why later on.

In the end, it was a great opportunity to significantly enhance our docs UX for both users and our development team. 

In this post, I want to show you how we did it and how you can replicate it.

> Disclaimer: Keep in mind this is an ongoing beta of the v3.0 for development and testing purpose only.

  

→ Read the full post [here](https://snipcart.com/blog/generate-documentation-javascript)
#PureCSS - Responsive Unicorn Logo
Tags: codepen, css, purecss
Published: 2019-06-20 09:34:13

---
title: #PureCSS - Responsive Unicorn Logo
published: true
tags: codepen,css,purecss
---

<p>Responsive Unicorn Logo using CSS</p>

{% codepen https://codepen.io/AsyrafHussin/pen/MdBeYg %}
#PureCSS - Responsive Shazam Listening Song
Tags: codepen, css, purecss
Published: 2019-06-20 09:28:40

---
title: #PureCSS - Responsive Shazam Listening Song
published: true
tags: codepen,css,purecss
---

<p>Responsive Shazam Listening Song using CSS</p>

{% codepen https://codepen.io/AsyrafHussin/pen/zaxGeg %}
Open/Closed principle: How do you convince other devs ?
Tags: healthydebate, solid
Published: 2019-06-20 09:25:43

---
title: Open/Closed principle: How do you convince other devs ?
published: true
description: 
tags: #healthydebate #solid
---

Some of the SOLID principles are quite easy to understand and their benefits are quite explanatory: The Single responsibility principles, for example, has an obvious one. Software entities do only *one* thing each. It becomes really easy to know what a bit of code does, even in the middle of a huge application, because it does *one* thing.

On the other hand, the Open/Closed principle is a bit more abstract.

While suggesting to my boss that we could implement some pattern at some place in our app, I proudly said that this would be more respectful to the Open/Closed principle, _thus better_.

He asked why «adding classes» would be better than «editing method», since we would still be making changes; and that adding classes would make our app grow faster, which would then make it maybe even less maintainable.

To be honest, I was not expecting that. And I realized I could justify interests of most programming principles I know, but not «adding classes» over «changing method», as both were «adding code» in a way.

How would you describe benefits of trying to apply the Open/Closed principle ? Do you think I misunderstood it?

In general, except «it's more maintainable so we will avoid expenses in the long run», what are your justifications when it comes to implementing some pattern / anything related to programming principles (especially to tech pairs / mostly if it's a lead/CTO/anyone tech and higher than you in your company hierarchy) ?
Share your thoughts on microservices
Tags: qanda, discuss
Published: 2019-06-20 08:14:37

---
title: Share your thoughts on microservices
published: true
description: 
tags: qanda, discuss
---

Hi everyone!

I was just wondering what other people who work with microservices do to make sure everything gets done right.

More specifically:

* If say two services try to modify the same data at the same time, how do you prevent that? e.g. Using Redis as a fast cache to have a distributed lock?
* If for example you want to reduce a user's balance then decrease an inventory amount (assuming those are different services), what do you do if two people are trying to buy the last item? What if a person tries to buy something twice?

Any good reads on distributed systems like that?

Thanks
A personal assistant built with a Neural Network: Olivia
Tags: machinelearning, chatbot, olivia, neuralnetwork
Published: 2019-06-20 07:56:37

Hello,

Here is Olivia, your new personal assistant and best friend.
It is completely  written in Golang with a Neural Network.
Enough talking, here is a video showing can Olivia can do https://www.youtube.com/watch?v=JmJZi9gmKvI

https://github.com/olivia-ai/olivia
Dev 2K
Tags: devto
Published: 2019-06-20 07:39:36

Just hit 2K followers here on Devto (signed up in April) with normal activity (👈). Not chasing followers. Twitter is up about 30 in the same period (similar effort) 😳🤣. In return I put a big dev logo in my footer. 

[Timestamps](https://vuild.com/dev-2k).

If there is any interest/benefit, I'll publish numbers so far.

Thanks everyone & nice to meet you all.
software company in ahmednagar
Tags: software
Published: 2019-06-20 07:36:01

Greeting From RB Tech Services, Ahmednagar Maharashtra

This is software company in ahmednagar which helps startups companies by providing IT resources to increase their performance towards their customer.
On main aim is expand our IT based, digital services to all over india so that everyone can can expand their business online towards client smartly on social media.
We follow agile methodology to get better user experience to our software solution to meet end user requirements completly.

We have also business development professional team in a leading “Website Developement and Mobile Development Company” based in Ahmednagar as well as in pune.
We are one stop shop for all kind of software development needs at the affordable price without compromising with the quality of the work.


Our Services:
1. Responsive Website Design & Development
2. eCommerce Website Development
3. Mobile App Development (Android & iOS)
4. Custom Desktop based / Web Based Application Development
5. CRM / ERP Implementation & Customization
6. Digital Marketing
7. Accounting Software
8. 100% Technical Support
9. CMS Integration 
10 SEO, SMM, Pay Per Click
11. Web Analytics
12. Softwares For Industries
13. Software For College, School
14. IT Consulting
15. Graphics Design
16. Ecommerece Platform Development

You are esteemed guest to us! We would greatly appreciate and invite you to work with me.

We guarantee you will be 100% satisfied as we provide revisions and 24/7 support. Fastest respond time, try us, send a message.

Regards,
Bhavik Shah
Email: admin@rbtechservices.in
Website: www.rbtechservices.in
Contact: +91 8087836389 

#software #startupindia #digitalindia #startupindia2020 #softwareindustry #webdevelopment #websitedesign #graphicsdesign #websitdevelopment #customizedsoftwaredevelopment
Angular Authentication using JWT (JSON Web Token)
Tags: angular, security, javascript, webdev
Published: 2019-06-20 06:42:31

The video will teach you how to authenticate an angular application from scratch. You will learn how to set up a mongoDB, create RESTful APIs and authenticate angular application.

Learn the basic concepts that you will need to authenticate angular applications using JWT.

Specifically for beginners, this course contains all the fundamentals you need to know, in one place, simplified and straight forward! 


{% youtube ehec5h-tK8k %}