teleren/devto huggingface dataset:
Senior Devs: What Git commands have you learned AFTER you become senior developer?
Tags: discuss, github, git, githunt
Published: 2020-10-06 21:20:08

I'm only interested in highly advanced Git command that only senior developers know.

Edit:

For everyone who stumped in this question and is curious:
“Using Git commands that will make you look like a senior developer” by pandaquests https://link.medium.com/ICxc97pGrab

(Full disclosure: I'm the author) 
But I'm looking for more Git commands that are less known and have been very helpful to you.
Day 232: What it is
Tags: hiphop, code, coding, lifelongdev
Published: 2020-10-06 21:18:52

_liner notes_:
- Professional : Going to be a long day. haha Had a group meeting. Worked on adding some new features to a Web Component I've been working on. Got most of it done. There is a nice to have that I want to get working but right now, it's kind of new to certain browsers and I'm running into some random issue. Thing is that it only works on mobile browsers, so I can't see the console for any errors. haha There's got to be a way to make it work. Maybe I can do something with my chromebook. Later tonight, I'll be helping out with a virtual event my company is sponsoring for Hacktoberfest. I'll just be hanging around to see if anyone needs any help.

- Personal : Pretty much just edited the recording of the radio show and submitted it to the station for play this week on air. Figured I would get it out of the way early. Other than that, did a little work on my side project and went to sleep so I could get up early.

![A green field with tall grass on the side of a hill at sunset in Scotland, United Kingdom](https://dev-to-uploads.s3.amazonaws.com/i/v73w9b5jy1pyhtg0vtqt.png)

Going to get something to eat and get ready for the event tonight. Don't think I'll have time to work on my side project so I'll probably go to sleep right after. We'll see what it is when the event is over.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube lbGZUxt8_eU %}
DK Developer community recap: Inspiring communities 
Tags: ignite2020, diversity, inclusion
Published: 2020-10-06 21:18:49

---
title: DK Developer community recap: Inspiring communities 
published: true
description: Microsoft Ignite is an annual conference for developers and IT professionals. This year together with my good colleague Rasmus Jaqué, I got the chance to host a a session about developer community in Denmark & highlights of their projects & initiatives. This is a short recap about this session.
tags: ignite2020, diversity, Inclusion
series: Microsoft Ignite 2020
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/5o9pa380if2h75cos5wp.png
---

Microsoft Ignite is an annual conference for developers and IT professionals. The first conference, then known as TechEd, happened in 1993 in Orlando, Florida, United States. In 2020, it went all online. 

This year together with my good colleague [Rasmus Jaqué](https://twitter.com/RasmusJaqueDK), I got the chance to host a a session about developer community in Denmark & highlights of their projects & initiatives. This is a short recap about this session. 

### REDI School of Copenhagen
We interviewed [Ida Marie Bjerre Jepsen](https://www.linkedin.com/in/ida-marie-bjerre-jepsen-13a69275/) from [REDI School of Copenhagen](https://www.redi-school.org/cph), she talks about her journey and how she started the school and how this initiative change people’s lives. 


📺 Watch the video interview bellow where she explains about the project and how you or your company can support this great initiative.👇

{% youtube XxX8PuZQYXE%}

### Hack Your Future Copenhagen
HackYourFuture is a non-profit organisation that aims to train refugees, asylum seekers and other disadvantaged groups to become web-developers and empower them by opening the doors to a very in-demand job market. It was initially founded in 2015 in Amsterdam and today exists in Belgium, Denmark & Canada. 
We interviewed [Marie Hoff](https://www.linkedin.com/in/marie-hoff/) Project Lead at [Hack Your Future Copenhagen](https://hackyourfuture.dk/). 

📺 Watch the video interview bellow where she explains about the project and how you or your company can support this great initiative.👇

{% youtube c7qe9fbqAZI%}

### WonderCoders
We had a chance to talk to [Plamena Cherneva](https://www.linkedin.com/in/plamenacherneva/) about [WonderCoders](https://wondercoders.org/). She briefly talks about this nonprofit association. They have a mission to inspire, empower and support women in pursuing careers in IT and to achieve this goal they run multiple initiatives such as [Nordic Women Awards](https://nordicwomenintechawards.com/).

📺 Watch the video interview bellow where she explains about the project and how you or your company can support this great initiative.👇

{% youtube r80Zl0Qw1H8%}
Solution to the simple task on algorithm complexity
Tags: javascript, algorithms, computerscience, fibonacci
Published: 2020-10-06 21:11:04

*So here is the solution. I repeat questions for easy reading*

Let me introduce you The Very Bad Fibonacci Implementation:

```javascript
function fib(n) {
    if (n <= 1) {
        return 1
    }
    return fib(n - 2) + fib(n - 1)
}
```

The first question is very simple:

> **Q1.** What's wrong with this implementation and how to fix it?

### Answer
The implementation recalculates one number multiple times making a lot of unnecessary work. More efficient implementation is just a simple `for`-loop:

```javascript
function betterFib(n) {
    let r1 = 1;
    let r2 = 1;
    for (let i = 2; i <= n; i++) {
        const _r2 = r2;
        r2 = += r1;
        r1 = _r2;
    }
    return r2;
}
```

It's not “functionally pure”, it doesn't look like nicely translated math formula. But it works fast!

> **Q2.** What's it complexity in terms of [Big O](Time_complexity)? How to estimate and prove it?

### Answer
It's exponential. However, it doesn't look like precisely {%katex inline%}O(2^n){%endkatex%} because not every call produces 2 recursive calls, and that's because “left” recursive call `fib(n - 2)` reaches the recursion base faster than the “right” one. Let's try to sketch an invocation tree:

![Invocation tree](https://dev-to-uploads.s3.amazonaws.com/i/vkb6m6zig0tlo78bn6xi.png)

_drawn with [Sketchpad](https://sketchpad.app)_

It looks like some fancy figure with exponential non-equal sides 😄 And the task is equivalent to calculating its “area”. I'm not sure there's an easy way to calculate it accurately, however, it's possible to estimate its bounds!

* If sides were equal, and the figure height was equal to that of the **left** side of the original figure, the resulting area would be the order of {%katex inline%}O(2^{n/2}){%endkatex%}
* If sides were equal, and the figure height was equal to that of the **right** side of the original figure, the resulting area would be the order of {%katex inline%}O(2^n){%endkatex%}

And that's the answer! The complexity {%katex inline%}x{%endkatex%} of the original function `fib` is within an interval:

{%katex%}O(2^{n/2}) < x < O(2^n){%endkatex%}

-------------------------------------

Thanks for reading this solution. Double thanks if you've read the post with the problem statement. Triple thanks if you've given it a try! If you find this kind of stuff interesting please consider leaving some feedback, so I will continue to publish short and fun programming exercises. Thanks 🙏
CONTRIBUTING: Jamie Maguire on the SocialOpinion API (Twitter)
Tags: opensource, hacktoberfest, opensourceoctober, api
Published: 2020-10-06 21:04:04

> Leading up to (and during) the month of October, we want to help you discover open source projects to work on, and put your Hacktoberfest contributions to excellent use. Meet [Jamie Maguire](https://twitter.com/jamie_maguire1), Microsoft MVP for AI, Senior Developer, and Pluralsight Author, who builds the [SocialOpinion API](https://github.com/jamiemaguiredotnet/SocialOpinion-Public).   
> ######*Check out [this page](https://www.contributing.today/) regularly for more interviews with contributors & maintainers*######

**What can you tell us about your project?**
Twitter are rebuilding their developer APIs from the ground up and in July this year released the first set of APIs. The SocialOpinion API makes it easier for .NET developers to connect to the new Twitter API, allowing them to search for Tweets, surface tweet and profile metrics (impressions, profile clicks, likes, comments), and do text analysis. 

**What contributions are you welcoming?** 
I'm looking for help in terms of coding and integrating new API endpoints, docs help (creating / editing GitHub Pages), and adding unit tests - all which will help us grow the capabilities of the API. 

**What skills do people need to contribute?**
Anybody that can write documentation, has intermediate C# skills, writing unit tests, and creating GitHub Pages would be fantastic to onboard!

**How do folks get started?**
Reach out to me [on Twitter](https://twitter.com/jamie_maguire1), or head straight over to the [repo](https://github.com/jamiemaguiredotnet/SocialOpinion-Public), or check my blog for [more information on the SocialOpinion API](https://www.jamiemaguire.net/index.php/2020/08/16/social-opinion-api-and-the-new-twitter-api-v2/). 

*Check [contributing.today](https://www.contributing.today/) regularly for more interviews with contributors & maintainers, as well as online events to help you get involved in open source.*
My #100DOC - Day 39
Tags: 100daysofcode, challenge
Published: 2020-10-06 21:00:15

### Day 39: October 04, 2020

#### **Today's Progress**: 
1. **Setting up WSL2** (1h):<br>I put a few finishing touches on to my ZSH with PowerLevel10k theme.
    
#### **What I learned**: 
* How to install ZSH and customize it.

#### **Total time**:
1h.
My #100DOC - Day 38
Tags: 100daysofcode, challenge
Published: 2020-10-06 20:59:42

#### **Today's Progress**: 
1. **Setting up WSL2** (1h):<br>I configured WSL2 with ZSH and Oh My ZSH.
    
#### **What I learned**: 
* How to set up WSL.
* How to install ZSH and customize it.

#### **Total time**:
1h.
Por que devs e tech writers são uma ótima dupla?
Published: 2020-10-06 20:43:25

Sabe aquelas duplas queridinhas, tipo Tom e Jerry e B1 e B2? 

Pode não parecer, mas devs e tech writers também têm tudo a ver (segura essa rima, BR! haha) 

Falo dessa parceria pouco conhecida, mas de muito sucesso no meu novo texto:

https://www.linkedin.com/pulse/desenvolvedores-e-tech-writers-uma-parceria-que-tem-tudo-moreira/
Github Policeman - find out which of your repositories don't have a LICENSE
Tags: webdev, react, css, javascript
Published: 2020-10-06 20:35:58

Inspired by [this](https://medium.com/adobetech/how-to-combine-rest-api-calls-with-javascript-promises-in-node-js-or-openwhisk-d96cbc10f299) Medium article, I built Github Policeman, by means of which I learned about Hooks and making API calls in React. 

In essence, it queries the Github API by username, and lets you know licensing statistics for your public Github repos, and gives you the links to all the ones that don't have a license.

you can check out the live demo [here](https://github-policeman.netlify.app), and the Github Repository [here](https://github.com/anirudhRowjee/github-policeman)!

I would love any and all feedback on this application - thank you for your time!
Keep Hacking!
Monitoring Nginx with @sherlog/cli
Tags: devops, node, linux, nginx
Published: 2020-10-06 20:34:21

Logs play a very important role throughout the entire life cycle of an application development as well as troubleshooting and replicating bugs on production that could lead to service interruption and harm our user's experience.

A few months ago, I went on a journey for finding a tool that will allow me to improve logs visibility and to take action as quickly as possible, and of course with a minimum amount of effort and server requirements. I found many of them, the vast majority very appealing with endless features to the point where it started feeling somewhat overwhelmed. None of these tools were easy to set up and they all required a learning curve to take advantage of its full potential. Not to mention, the majority weren't free and pricing will range depending on the retention period, number of instances, license, etc.

My goal was to simply run a command, get what I needed, and continue with my life. All in sudden, I was hit with the **aha moment!** Why don't I write a simple tool that attempts to solve the problem? So here I am, a few months after, sharing my approach at tackling this problem. 

[@sherlog/cli](https://www.npmjs.com/package/@sherlog/cli) requires `node >= 10`. 

For this example, I'm using [nvm](https://github.com/nvm-sh/nvm) to install the minimum required version

Run the following commands in your terminal:

```
nvm install v10.15.0
npm install -g @sherlog/cli
```
Initialize the project
```
sherlog init
```
The previous command generates a `.sherlog` config file in your current working directory (no biggie, just another JSON). Fill in the blanks. Once configured, it should look similar to this.
```
{
  "hostname": "192.168.10.108",
  "backpressure": 1000,
  "chunks": 500,
  "compression": true,
  "files": [{
    "metric": "nginx",
    "file": "/var/log/nginx/access.log",
    "eventType": "http",
    "timezone": "UTC",
    "fromBeginning": true
  }]
}
```

This file can be committed to your repository to speed up the process next time you need to check your logs in different environments. Let's go ahead and start the service.
```
sherlog start
```

This will output the following in your terminal

```
Sherlog listening on:


   - Dashboard:   http://localhost:8000
   - Local:       ws://localhost:8000
```

Demo: https://sherlog.sh

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

Now you can navigate through your logs as if you were watching a YouTube video going back and forth in case you missed something. 

[@sherlog/cli](https://www.npmjs.com/package/@sherlog/cli) supports the following default log formats out of the box:

* apache2
  * http
  * error
* monolog (e.g. Laravel)
* mysql
  * general
* nginx
  * http
  * error
* php-fpm
* redis

That's all for now folks, if you wish to get updates about **@sherlog/cli** and possible use cases you can follow us on Twitter [@sherlog](https://twitter.com/sherl0g) or feel free to submit a pull request to the project on GitHub [sherl0g](https://github.com/sherl0g/cli)
What Is IKEA Effect And How To Benefit From It?
Tags: beginners, developer, learning
Published: 2020-10-06 20:27:04

For those who don't know,  IKEA is a Swedish multinational group designs and sells **ready-to-assemble furniture**, kitchen appliances, home accessories, etc.
### What is IKEA Effect
The IKEA effect is a cognitive bias in which consumers place a disproportionately high value on products they partially created. A 2011 study found that subjects were willing to pay more for furniture they had assembled themselves, than for equivalent pre-assembled items. 

Now you might be wondering why we are discussing it on a tech blog? Read on and you would understand how it impacts you as an IT Professional.

### When Labor Leads to Love

Normally, when you buy a product from IKEA it requires some level of assembly before the product can be used. The study found that when someone puts labor into something, they start liking it more, even if it is poorly constructed. Hence, the phenomenon,“IKEA effect”, is named in honor of the Swedish manufacturer whose products typically arrive with some
assembly required.  The study also found that the "IKEA Effect" dissipates when the creations are destroyed.  The creation has to stay intact for IKEA effect to be effective.

### How you can use IKEA Effect to your advantage?

You might have experienced the IKEA effect even if you didn't know the term before. To take advantage of this, you need to build things. No matter how small it is. If you are learning a new language, a library or a technology, think of a small business problem and try to solve it using the knowledge that you have.  For example, I am upskilling myself in AWS. So first I learn the concepts and then I think of a problem that can be solved using different AWS services.  Once you solve it you will value your solution more than anything else even if it's not of production grade or perfect. This will keep you motivate to learn more and create more. You can also contribute to open source projects. Open source projects are more popular because IKEA effect is in place. Your name gets connected to projects you make contribution to. This gives a sense of accomplishment and motivates you to contribute more.


Also, don't throw away your solution, instead preserve it using your favorite version control like GitHub, GitLab,  etc. Or you can also write blog about it. 

Let me know your thoughts in comments !

Now, this post will be incomplete without these memes!

![IKEA Effect ](https://s3.amazonaws.com/blog-images-rajanpanchal.net/ikea-effect/01.png)

![IKEA Effect ](https://s3.amazonaws.com/blog-images-rajanpanchal.net/ikea-effect/02.jpg)

![IKEA Effect ](https://s3.amazonaws.com/blog-images-rajanpanchal.net/ikea-effect/03.jpg)

![IKEA Effect ](https://s3.amazonaws.com/blog-images-rajanpanchal.net/ikea-effect/04.jpg)
CONTRIBUTING: James Jackson-South on ImageSharp
Tags: opensource, hacktoberfest, opensourceoctober, imagesharp
Published: 2020-10-06 20:22:20

> Leading up to (and during) the month of October, we want to help you discover open source projects to work on, and put your Hacktoberfest contributions to excellent use. Meet James Jackson-South, who works on [ImageSharp](https://github.com/SixLabors/ImageSharp).   
> ######*Check out [this page](https://www.contributing.today/) regularly for more interviews with contributors & maintainers*######

**What can you tell us about your project?**
ImageSharp is a cross-platform, fully managed image processing library in .NET Core, or .NET everything. It does everything you'd expect from a graphics API - from basic image manipulation, formats, loading and saving, drawing, and anything inbetween, it's a very powerful bit of kit. 

**What contributions are you welcoming?** 
We have a team of very dedicated core developers, but it would be great to get other people's insights, see what kind of skills people can bring to the table. I've learned a lot of stuff working on this project, I think it's great for anyone to get involved, grow their skills, or show what chops they've got. We're happy to take anything!

**What skills do people need to contribute?**
You'll need a strong background in .NET to understand some of the stuff that we've got going on. We do like to push the envelope a bit there. But other than code reviews, we can use help with [documentation](https://docs.sixlabors.com/). Like spell checking, my spelling is appalling.  

I'm sure anyone wanting to contribute have more skills than they think they have. You'll for sure be able to do something productive. 

**How do folks get started?**
Start with our [Contribution guidelines](https://github.com/SixLabors/ImageSharp/blob/master/.github/CONTRIBUTING.md) in our repo, our documentation that you could have a good look through. And come to our [Discussions channel](https://github.com/SixLabors/ImageSharp/discussions/category_choices) in our repo, where you can suggest new features, or discuss an issue you've picked up from the issue tracker. 

Head over to the repository and there should be plenty of ways forward. 

*Check [contributing.today](https://www.contributing.today/) regularly for more interviews with contributors & maintainers, as well as online events to help you get involved in open source.*
How to Make $1 Million Creating and Selling an eBook- The Building an Indie Business Podcast
Tags: podcast
Published: 2020-10-06 20:18:46

[Listen Here](https://baib-podcast.com/creating-podcasting-ebook.html)

In this episode, I discuss lessons on how to make an eBook. I discuss the software to use, the platforms to put it on, the platforms not to put it on, and how anyone can make $1 million from sales of it.

**Show Notes:**

[Buy the book I wrote](https://openpodcast.xyz/)
[Revenue Research](https://revenueresearch.co/)
[Episode Transcript](https://baib-podcast.com/creating-podcasting-ebook-transcript.html)
[The Making of Product Managers eBook](https://themakingofproductmanagers.com/)
Keep This in Mind About Python Programming Language
Tags: python, beginners, codenewbie, help
Published: 2020-10-06 20:12:40

Keep this in mind About Python Programming. 
.

Computers can't store floats perfectly, in the same way that we can't
write down the complete decimal expansion of 11/3 (3.6666666666666).
Keep this in mind, because it often leads to infuriating bugs!

.
• Explained By **DDSRY**.
Welcoming Emiliano Rodriguez-Wyler to the DEV Team!
Tags: meta
Published: 2020-10-06 20:02:19

We’re so excited to introduce you all to Emiliano, our new Business Development Manager. Based out of Mexico City, Emiliano will spearhead DEV’s sponsor relationships — everything from hackathon opportunities to Forem partnerships to DEV and CodeNewbie podcast offerings. 

Emiliano joins us with vast and varied experience working with tech companies and startups, and a true passion for helping developers thrive in their creative element. 

Please check out his introductory post, follow him on DEV, and give a big hello! 

{% link https://dev.to/emilianorwyler/hello-world-532d %}

![dancing-cat-head](https://media.giphy.com/media/TgKEjjz1lzjmEsuz80/giphy.gif
)

Welcome, Emiliano!
my portfolio i need some feedback on it
Tags: codenewbie, html, css, javascript
Published: 2020-10-06 19:58:31

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/moz5hn4xezx3lytotj6m.png)
##i made my website i need some feedback 
[weptim.xyz](https://www.weptim.xyz/index.html)
Colored wrappers for kubectl
Tags: kubernetes, devops, cli, zsh
Published: 2020-10-06 19:50:58

---
title: Colored wrappers for kubectl
published: true
description: Kubectl commands, but in color
tags: kubernetes,devops,cli,zsh
//cover_image: https://direct_url_to_image.jpg
---

When using Kubernetes, `kubectl` is the command we use the most to visualize and debug objects.

However, it currently does not support colored output, though there is [a feature request opened for this](https://github.com/kubernetes/kubectl/issues/524).

Let's see how we can add color support. I'll be using zsh with [oh my zsh](https://ohmyz.sh/).


*Edit:* this feature was [merged in oh my zsh](https://github.com/ohmyzsh/ohmyzsh/pull/9316), so it is now standard.


# Zsh plugin

Let's make this extension into a zsh plugin called `kubectl_color`:

```shell
❯ mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl_color
❯ touch ~/.oh-my-zsh/custom/plugins/kubectl_color/kubectl_color.plugin.zsh
```

Now we need to fill in this plugin.


## JSON colorizing

Let's start with JSON, by adding an alias that colorizes JSON output using the infamous [`jq`](https://stedolan.github.io/jq/):

```zsh
kj() {
  kubectl "$@" -o json | jq
}

compdef kj=kubectl
```

The `compdef` line ensures the `kj` function gets autocompleted just like `kubectl`.


*Edit:* I've added another wrapper for [`fx`](https://github.com/antonmedv/fx), which provides a dynamic way to parse JSON:

```zsh
kjx() {
  kubectl "$@" -o json | fx
}

compdef kjx=kubectl
```


## YAML colorizing

Just like for JSON, we can use [`yh`](https://stedolan.github.io/jq/) to colorize YAML output:

```zsh
ky() {
  kubectl "$@" -o yaml | yh
}

compdef ky=kubectl
```

# Energize!

Our plugin is now ready, we only need to activate it in `~/.zshrc` by adding it to the list of plugins, e.g.:

```zsh
plugins=(git ruby kubectl kubectl_color)
```

{% asciinema 363827 %}

and with `fx`:

{% asciinema 364137 %}
My first ever application with oAuth2
Published: 2020-10-06 19:49:08

I've been coding for just over 6 months now, and I've done many things - recently, I've started to dabble around in Express.js and Passport, more specifically Passport-discord. I've now created my first ever login system, which personally I'm really proud of

It's not much special, its just your simple login, logout. The login data is stored in a mongodb.