teleren/devto huggingface dataset:
5 CV don'ts for software engineers
Tags: discuss, tutorial, career, beginners
Published: 2021-02-07 13:46:01

In this video, you will be introduced to some bad practices that many software engineers do when they are writing or designing their CV.

Notice that many of this practices could be needed or critical for other job positions. However, it's not favorable for software engineers.

{% youtube sms7KjdvI7Y %}

Check out previous bash tutorials:
- [Bash commands for beginners](https://youtu.be/-JY9DDLHaD8)
- [Bash commands chaining, redirecting and nesting](https://youtu.be/UXM8KNTC3aY)
- [Bash shell file walk-through](https://youtu.be/H_bU7u2dvT8)
- [Bash scripting: If conditions](https://youtu.be/BdU5SflFHKk)
Dotfiles the easy way
Tags: github, git, programming, productivity
Published: 2021-02-07 13:42:21

In my ongoing quest to [explore a variety of ways of managing config files][dotfiles1], I believe I have found a way that is attractively simple.

## Step one: git clone

```sh
cd ~
git clone -c status.showUntrackedFiles=no -n --separate-git-dir .git $REPO_URL tmpdir
rm -r tmpdir
```

Rationale:

- `status.showUntrackedFiles` is set to "no" so that future `git status` requests only show files that were intentionally tracked with `git add` and `git commit`
- `-n` means no checkout. We aren't ready for it yet.
- `--separate-git-dir .git` takes some explanation. It is impossible to `git clone` into a non-empty directory without some extra steps. This trick does it in one step (two if you count the deletion of the throwaway directory). Tell Git to use a separate Git directory but then, sneaky miscreants that we are, we name the directory the default: `.git`
- The undesirable side effect is an extra directory `tmpdir` that has a single `.git` file of no consequence. The entire directory can safely be removed.

## Step two for non-empty repo: git checkout

```sh
git checkout
```

Deal with any file conflicts. For instance, you might backup and remove an existing `.bashrc`. Then run `git checkout` again. If you are sure that overwriting is OK, you can pass the force flag:

```sh
git checkout -f
```

## Step two if new (empty) repo: add files and push

If this is a brand new setup, your repo is likely empty. Add some files:

```sh
git add .bashrc
git commit -m "initial commit of Bash config"
```

Repeat as necessary with additional files and directories. Then push:

```sh
git push
```

## Step three: maintain

Keep your files up to date with `git add`, `git commit`, `git push`. Pull remote changes with `git pull`. In other words, manage your home directory as you would any other Git repo. Please avoid `git add .` as that will track every file in your home directory, an undesirable endeavor.

If this spawns other creative ideas or optimizations, feel free to post in the comments!

[dotfiles1]: https://www.bowmanjd.com/dotfiles/
Destructuring Tweets - Episode 6 - Default Parameter Values
Tags: snippet, javascript, destructuring, parameter
Published: 2021-02-07 13:37:57

---
title: Destructuring Tweets - Episode 6 - Default Parameter Values
published: true
description: I pick a more or less random snippet from Twitter and analyze it in depth in this series. It shall help me, and you understand the trickery behind it. This episode features insights about default parameter values.
tags: snippet, javascript, destructuring, parameter
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/8pd1pb8pabs7mhbg5qsx.png
---

Yo! Welcome to the series about destructuring those over-shared JavaScript quizzes on Twitter. Have fun with digging into default values.

# Snippet of the Week

This week's [snippet](https://twitter.com/agiratech/status/1310503178178359297) is from [Agira Technologies](https://twitter.com/agiratech):
```javascript
let year = 2020;
const evolution = (defaultYear = 2000) => {
  year = defaultYear;
}
evolution(null);
console.log(year);
```
At first, a variable `year` gets declared and initialized with the number 2020. Just to be manipulated in an arrow-function `evolution` in the very next line. It accepts a parameter with a default value of 2000. This parameter's value gets assigned to the variable `year`. 
Now comes the exciting part. The function gets called with `null` as the argument, followed by logging the manipulated variable to the console.

# The Output

You have a relatively high chance of 50 % to guess the output right here. As it's either `2000` or `null`, right? The initial value of 2020 gets surely overwritten.
However, `null` wins. And there is a good reason for that.

# The Analysis

The reason is that `null` is indeed a value. It means the _intentional_ absence of any other matter. It stands for "nothing" or "void".
That's different with `undefined`. Undefined is a primitive type (and a value), meaning that a variable does not have a value assigned.
So, if we leave out an argument in a function call, we do not pass "no value" but rather `undefined`.  And that logic is also applied when it comes to default parameters. Only if "no value", so `undefined`, is passed, it gets overwritten by the defined default value.

# Snippet Summary

- **Trickery**: When is a default parameter value applied
- **Key Learning**: Null is indeed a value and therefore a valid argument 
- **Further Reading**:
    - [Default Parameters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters)
    - [null](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null)
    - [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)
Day 8: Bubble Sort
Tags: 100daysofcode, php
Published: 2021-02-07 13:33:17

Bubble Sort algorithm using php.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3swa0i9wngglu7uk0vln.gif)

```php
<?php
function toggle_sort(&$a) {
    $i = 0;
    $lastindex = count($a) - 1;

    while ($i < $lastindex) {
        if ($a[$i] <= $a[$i+1]) {
            $i++;
        } else {
            $tmp = $a[$i];
            $a[$i] = $a[$i+1];
            $a[$i+1] = $tmp;
            if ($i) { $i--; }
        }
    }
}

$values = array(2, 7, 3, 9, 5, 4, 8, 2, 6);

toggle_sort($values);

foreach ($values as $v) { echo "{$v} "; }
?>
```
Java Problem
Tags: java, coding, doubt, learning
Published: 2021-02-07 13:32:08

I am having problem while solving this question in java. Please help me in solving this!!

####Question :
Write a java program to print even numbers after odd times jump.
Ex - 2,6,14,26...

2 (then jump 1 even number 4)-6

6 (then jump 3 even numbers 8,10,12)-14

14 (then jump 5 even numbers 16,18,20,22,24)-26
Deep Neural Network (DNN) in a Brief
Tags: machinelearning, deeplearning, architecture, datascience
Published: 2021-02-07 13:29:18

### Neural Network (NN): 
 It is a series of algorithms that **endeavors to recognize underlying relationships** in a set of data through a process that mimics the way the human brain operates.

### Examples and Applications of NN:
1. __Convolutional neural network__ => 
 Good for image recognition
2. __Long Short-Term memory network__ =>
 Good for Speech Recognition 

### Neuron:
1. It is a mathematical function that models the functioning of a biological neuron.
2. It computes the weighted average of its input and passes the sum through a non-linear function called the activation function (such as the sigmoid).

### Training an Artificial neural network:

<center><img src="https://dev-to-uploads.s3.amazonaws.com/i/k0pktxju3n7czufy99jy.png"><figcaption>Fig 1. Training an Artificial Neural Network</figcaption></center></figure> 

### Gradient Descent:
1. The process of repeated nudging an input of a function by some multiple of the negative gradient is called Gradient Descent.
2. When there are one or more inputs, you can use Gradient descent for **optimizing the values of the coefficients by iteratively minimizing the error of the model on your training data**.
3. A **learning rate** is used as a scale factor and the coefficients are updated in the direction towards **minimizing the error**. 
4. This process is **repeated until a minimum sum squared error is achieved or no further improvement is possible.**
 
<center><img src="https://dev-to-uploads.s3.amazonaws.com/i/mw267omsid15qiwtoeed.png"><figcaption>Fig 2. Gradient Descent Image</figcaption></center></figure>

### Backward Propagation:
1. It is an algorithm for supervised learning of an ANN using Gradient Descent.
2. Given an ANN and an error function it calculates the gradient of the error function w.r.t. the NN weights.
3. Here the partial computations of the gradient from one layer are reused in the computation of the gradient for the previous layer.

### Backpropagation Calculation:
* The chain rule expressions give us the derivatives that determine each component in the gradient that helps to minimize the cost of the network by repeatedly stepping downhill.

![calculus1](https://dev-to-uploads.s3.amazonaws.com/i/id6w0b54ncpc74corw0c.png)
 
![backpropagation_calculus](https://dev-to-uploads.s3.amazonaws.com/i/qv4wn312nvkdnngi2zqk.png)
My boyfriend wanted a sticker of my snoovatar, so for valentines he built me this 
Tags: sideprojects, vue, showdev
Published: 2021-02-07 13:25:28

So house policy: no gifts on valentines, one sometimes it’s hard to pick something, second if you want to spoil your significant other you can do it any other day of the year. 

So long story short me and my bf are avid Reddit users, and me being me I love to set up my avatar to be just like me. One of these days when showing something on my phone to my bf he saw my avatar, chuckled and said “it’s you!”.

Little did I know what he was plotting. Today he showed what he had been doing for the last few hours. He built a website where you can put your snoovatar link and it will then give you an option to personalised stickers, YES MF STICKERS 🙌🏻 

He knows I love stickers and he built this as a valentines present for me so I can have my own snoovatar as a sticker!!!! Brownie points he is already thinking/working towards allowing other type of avatars/images and expanding the content not only to stickers, but who knows what, like mugs, tees, I don’t know possibilities are endless. 🤪🤪 *hyperventilates* 

Now I need to make him a nice homemade meal, because he definitely nailed it!

[snoostickers.com](https://snoostickers.com/)
100 Best Tips about Java Testing tools
Tags: testing, java, 100daysofcode
Published: 2021-02-07 13:25:02

I started a new initiative 100 days ago: post daily tips about Testing tools you can use with Java!

I posted it on Twitter and LinkedIn.
By the way, don’t hesitate to follow/add me!

## What are the tools?

I have covered the following tools that can give you complete test coverage and deliver bug-free high-quality software.

* [JUnit5](https://junit.org/junit5/)
* [WireMock](http://wiremock.org/)
* [RestAssured](https://rest-assured.io/)
* [Selenium WebDriver](https://www.selenium.dev/)
* [TestNG](https://testng.org/doc/)

## Where the tips based?

Believe me or not: from the official tool documentation!
I’ve learned a lot from the official documentation. I always start from there.

Each tip has a link for the feature documentation. Don’t forget to click on it!

## Where can I find the tips?

I’ve created a simple webpage where you can see all the tips or filter them by one of the tools.

[https://eliasnogueira.github.io/100-tips-testing-java](https://eliasnogueira.github.io/100-tips-testing-java)

Would you like to see how I created the web page? (please don’t judge me, I’m not a frontend engineer 😛 ). You can access the following GitHub repo [https://github.com/eliasnogueira/100-tips-testing-java]([https://github.com/eliasnogueira/100-tips-testing-java)
"Don't Make Me Think" Summary for UI/UX  designers [Second Chapter]
Tags: ux, books, ui, design
Published: 2021-02-07 13:12:16

In this article, I'll summarize the second chapter in the book, so if you haven't already read the first one, go and read the first one from my first article in the same series.

##Chapter number 2:How We Really Use The web:
"glance at each new page, scan some of the text and click on the first link that catches their interest or vaguely resembles the thing they’re looking for" (that's how we really use sites)

###Three facts:

* **We don't read pages, we scan them**: "We just scroll fast along the page searching for words or phrases that catch our eyes. What we see depends on what we have in mind [tasks at hand, or current or ongoing personal interests] and of course the trigger words like "free", "sale", "sex" and our own name"


* **We don't make optimal choices**. We satisfice: we choose the first reasonable choice


* **We don't figure out how things work**. We muddle through: most people don’t know and don’t care how something works as long as they know how to deal with it


Great! that's the end of the second rule of the book. Wait for the third and which has numerous useful tips and information
Server Side Public Licence
Tags: techtalks, opensource
Published: 2021-02-07 13:01:51

If you have not heard, elasticsearch recently updated their licence to one based on sspl (server side public licence) created and adopted by mongoDB.
https://elastic.co/blog/licensing-change

If you like watching more than reading, I talk about this in my latest video.
{% youtube xwQvfdSZWOw %}

**Why?** 🤔

While there are many reasons for it and most of them are a good read available here: https://www.elastic.co/pricing/faq/licensing but the most important reason is believed to be limiting the abuse by cloud providers.

> You may not provide the products to others as a managed service.

Now, this means while as a single user or a company the change in licence should not affect you. It only affects those companies who provide elasticsearch as a managed service.

They go in more details about how AWS is a pain in the *** open-source on their blog here: https://www.elastic.co/blog/why-license-change-AWS

**The result**
1. Most cloud providers have contract/agreement with elasticsearch and will be able to provide it as a service.
2. Amazon, on the other hand, created a fork of the lastest release and will work on creating a new product managed by them.

You might think why Amazon would do such thing but turns out they did try to answer this in very details when they specifically talked about elasticsearch licence changes on their blog available here: https://aws.amazon.com/blogs/opensource/stepping-up-for-a-truly-open-source-elasticsearch/

By the way if you are more interested in weather sspl can be called as open-source licence you may find the blog post by open source initiative interesting: https://opensource.org/node/1099
Daily Developer Jokes - Sunday, Feb 7, 2021
Tags: jokes, dailydeveloperjokes
Published: 2021-02-07 13:00:07

---
title: "Daily Developer Jokes - Sunday, Feb 7, 2021"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Sunday%2C%20Feb%207%2C%202021"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259a922f36.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q___: What is a developer's favorite country song?

___A___: Hello World - by Lady Antebellum
 -->
Separate -ives and +ives maintaining their order 
Tags: discuss, algorithms, javascript, logic
Published: 2021-02-07 12:49:55

### Move all negative numbers to the beginning and positives to end, maintaining their order
An array contains both positive and negative numbers in random order. Rearrange the array elements so that all negative numbers appear before all positive numbers and the order of their occurrence in the given array should be maintained(order of negatives among negatives and positives among positives).

```
Input: [3, 5, -9, -8, 1 , 2, -10, -11, 15, 20, -20, 22]
Output: [-9, -8, -10, -11, -20, 3, 5, 1, 2, 15, 20, 22]
```

> NOTE: Order of elements is important here.

#### My Approach(without using extra space):
* The idea is to solve the problem by dividing the array into four parts at each step when we want to shift the elements while iterating the array ( shifting condition will be arr[index]<0).
* **Steps**:
    * iterate through the list
    * At every step, when a negative number encountered, slice the array in four parts say 
        * first part: the part with the negatives.
        * the mid part: which we have to shift after the encountered negative number
        * the -ive number.
        * the last part, which is not iterated.

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

####CODE:
```javascript
let a = [3, 5, -9, -8, 1 , 2, -10, -11, 15, 20, -20, 22];
var nIndex = 0;
for(var index = 0; index	< a.length ; index++){
	if(a[index]<0){
	    //negatives array
		let negativesArray= a.slice(0, nIndex);
		let midArray = a.slice(nIndex, index);
		let neg_num = a[index];
		let endArray = a.slice(index+1);
		a= [...negativesArray, neg_num,...midArray,...endArray];
		nIndex++;
	}
}
console.log(a) //output: [-9, -8, -10, -11, -20, 3, 5, 1, 2, 15, 20, 22]
```

Let's discuss your approach in the discussion box or you can hit me up at aastha.talwaria29@gmail.com.

Thanks for reading.
Fascinating Discussions About AI and ML - Final Podcast Episode

Tags: ai, machinelearning, programming, podcast
Published: 2021-02-07 12:26:43


"Deep learning is going to be able to do everything" (by AI Pioneer, Geoff Hinton). Kyle and Eran are discussing the limitations to "everything" and whether the outcomes of ML decisions will be acceptable in life if they're less intuitive (even if technically more optimal). Are we going to prefer Machine Learning-based decision making over intuition? Listen now to this evoking new podcast episode -
https://www.tabnine.com/blog/eran-and-kyle-podcast-ep4/
A possible solution for no sound in Firefox on Ubuntu
Tags: linux, firefox, ubuntu
Published: 2021-02-10 19:28:36

---
title: A possible solution for no sound in Firefox on Ubuntu
published: true
date: 2021-02-07 11:58:35 UTC
tags: Linux,Firefox,Ubuntu
canonical_url: https://bogdancornianu.com/a-possible-solution-for-no-sound-in-firefox-on-ubuntu/
---

For the last couple of days I was having a weird issue with Firefox on Ubuntu, namely there was no sound.

After searching all over the Internet and trying different solutions I finally found one that worked and I wanted to share it with you in case you find yourself in the same situation.

**Note:** before running the following command, please make sure you have a backup of your data!

Run this command in a terminal:

```
rm ~/.config/pulse/*
```

And restart your computer.

You should now have a working sound in Firefox.

The post [A possible solution for no sound in Firefox on Ubuntu](https://bogdancornianu.com/a-possible-solution-for-no-sound-in-firefox-on-ubuntu/) appeared first on [Bogdan Cornianu](https://bogdancornianu.com).
1000 + Happy Belated Birthday Wishes, Images, Funny, Friends
Tags: belatedbirthday, happybelatedbirthday, latebirthday
Published: 2021-02-07 11:31:55

Birthday is not a simple day like every day. Birthday is a beautiful day, which brings a lot of happiness, wishes, love, care, gifts, and more amazing things in our life. If you missed someone’s birthday or you forget to wish your friends and family. Now you are looking for that how to say late birthday wish and what is the beautiful way or idea to wish you, friends and family. So it’s ok! No need to take tension. Here we are helping you with the best belated happy birthday wishes, which will help you to wish a late birthday. These late birthday wishes will be 100% acceptable.
https://happybelatedbirthdays.com/late-birthday-wishes/
https://happybelatedbirthdays.com
Offline Video Player is here
Tags: javascript, videoplayer, express, node
Published: 2021-02-07 10:44:56

[EDIT] Support for subtitles added

[Offline Video Player](https://github.com/alaindet/offline-video-player) is a new Express MVC application allowing you to watch a lot of videos in a row, without distractions. It also keeps track of your progress automatically and let's you export/import it.

It works completely offline as the name implies though, so you have to put video files into the app's `/videos` folder in order to make it work.

## How to use

1. Install
```
git clone https://github.com/alaindet/offline-video-player.git
cd offline-video-player
npm install
```

2. Move your `.mp4` video files into the `/videos` folder

3. Start
```
npm start
```

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

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

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

Cover photo by [Darren Bockman](https://unsplash.com/@bockman) on [Unsplash](https://unsplash.com/photos/N6kkI32Oh7g)
Do you have to be formal when choosing your GitHub username?
Tags: watercooler, github, username
Published: 2021-02-07 11:20:29

I feel maybe people previously having difficulty to remember my previous username "rynvva",

so i am choosing and renaming my github username to something unique and yet easy to remember, so here i am with my github username

in my opinion, GitHub username doesn't have to be formal but instead must easy to search for the other people

I wonder, can you show me your unique GitHub username and what reason?
Consume a JD Edwards BSSV with python zeep
Tags: bssv
Published: 2021-02-07 11:13:16

Python Sample Code for consuming JD Edwards Business Services (BSSV).

```
from requests import Session
from zeep import Client
from zeep.transports import Transport
from zeep.wsse.username import UsernameToken

session = Session()
url ="https://HOST:PORT/DV920/AddressBookManager?WSDL"
username="username"
password="password"
session.verify =False
transport = Transport(session=session)
client = Client(url,transport=transport,wsse=UsernameToken(username,password))
entity={
    'entityId': '500'
}
addressBookResult = client.service.getAddressBook(entity=entity)
print (addressBookResult)
```