teleren/devto huggingface dataset:
Update your dependencies automatically
Published: 2020-07-26 15:18:14

<sub><span>Photo by <a href="https://unsplash.com/@pawel_czerwinski?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Paweł Czerwiński</a> on <a href="https://unsplash.com/s/photos/grey-colour?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span></sub>

A part of a good security is to know if your system have vulnerabilities, and if these can be patched.

##Tools

Tools let you know if any of your dependencies can be updated. [Dependabot](https://dependabot.com/) can do it on Github, but only on Github. 

[Renovatebot](https://renovate.whitesourcesoftware.com/) can do it on multiple repository including Azure Devops.

To do that, we need to host our bot locally. For example, we can run it using the provided [docker image](https://hub.docker.com/r/renovate/renovate/) in a daily pipeline like  :

```bash
docker run renovate/renovate:latest --platform=azure --endpoint=https://dev.azure.com/YOUR_ORGANIZATION/ --token=$(RENOVATE_TOKEN) --log-level=info --git-author="YOUR_USER <YOUR_EMAIL>" --labels=["renovate"] --autodiscover=true --autodiscover-filter=MY_FILTER*
```
where $(RENOVATE_TOKEN) is your PAT token.

It will scan all the repository in your organisation corresponding to your filter. 

You can refer to the [example](https://github.com/renovatebot/renovate/blob/master/docs/development/self-hosting.md#docker) on the official github. The command line can use multiple [options](https://docs.renovatebot.com/self-hosted-configuration/) available.

##Renovate file
- If no file renovate.json is found in the repository, it will first create a PR to add it with a default file.

This file is critical as it will manage the behavior of the bot (how many PR will it be created per run ? Is any update to a major version of a package will be created ? etc ...).

- If the file is found, PRs will be created according to the file

You can refer to the [docs](https://docs.renovatebot.com/configuration-options/) for any option in the file.

You can use [preset options](https://docs.renovatebot.com/config-presets/) in order to quicken writing of the file like 

```json
{
  "extends": ["config:base"]
}
```

hope this help !
Day 56 : #100DaysofCode - A Tweet - Devise - Users
Published: 2020-07-27 01:08:52

Yesterday I saw this tweet and I laughed out loud because I related to it so well. 

{% twitter 1287072474916696067 %}

I am still building my rails project and it is coming along. At the moment I am trying to add users to my project and I am attempting to use the <a href="https://github.com/heartcombo/devise">devise gem</a> because I heard it was "simple". However, my project requires three levels of entry. Something similar to this <a href="https://altalogy.com/blog/rails-6-user-accounts-with-3-types-of-roles/">article</a> and devise is not coming off as "simple" as everyone says. So what did I do today? I attempted to implement the devise gem with three different user account roles and watched three videos of the <a href="https://www.youtube.com/watch?v=D_50cO1TO0A&list=PL01nNIgQ4uxPCgJEMYwX1MUkWVKjjAmxN"> Web-Crunch Let's Build: With Ruby on Rails - Extending Devise Series</a> 

{% youtube D_50cO1TO0A %}

The series is helpful, but I am considering just building user functionality manually instead of using the <a href="https://github.com/heartcombo/devise">devise gem</a> because I do not think I will be using all the amazing features just yet in my project. Only time will tell.

Song of the day:

{% youtube PsEY8YKerls %}

As always, thanks for reading!

Sincerely, 
Brittany
Methods for learning a new programming language
Tags: productivity, beginners, tutorial, codenewbie
Published: 2020-07-27 09:35:20

Today, developers are using languages as tools to solve problems, and their main languages are sometimes not effective for particular problems. Therefore, they are starting to learn new programming languages. There are some methods you can use to learn new languages.

## Attending courses in real life

There are programming courses which are opened by universities or organizations. These type of courses mostly offer you a certificate that you can get. You should actually go for some place like classrooms and attend this lectures to get these certificates. These courses can be free, but some courses needs to be paid. Also, there will be progression in time for lecture contents.

## Joining online courses

These type of courses offers video lectures that content is already completed. You can find free and paid online courses like in Udemy, Coursera and Youtube. 

## Reading through manuals and tutorials

You can find documentations for your new programming language online. Also, they mostly provide some basic tutorial to use the new language to get you started. 

## Buying new programming books

You can learn new languages by using books. Books are great if you don't like to use screens for this job. Content of the books are more detailed, so you can learn some interesting details that you may not learn using online videos.

To sum up, you can learn new languages from various sources, but you should keep practice in the new language to memorize and master your skills.
Deploy code faster with Kubernetes
Tags: kubernetes, technology, codequality
Published: 2020-07-27 10:27:38

First, let us address the underlying question:

What can Kubernetes offer compared to a basic development workflow?

With Kubernetes explained, the developer can write some codes, send it, and get it working. It is also essential that the development environment be as alike as attainable to production (this is because having two different environments will introduce bugs.) 

In this blog, “Deploy code faster with Kubernetes ” we will walk you through kubernetes quickstart workflow built around: 

Kubernetes | Docker | Envoy/Ambassador.

What is Kubernetes?

Kubernetes is an open-source container management tool. An orchestration tool with container management responsibilities combining container deployment, scaling & descaling of containers & load balancing.

Note: How kubernetes works is not a containerization platform. It is a multi-container management solution.

Read more: https://www.terralogic.com/deploy-code-faster-with-kubernetes/
I GIVE UP , I HATE CODING
Tags: webdev, gamedev, career, codenewbie
Published: 2020-07-27 21:25:09

I GIVE UP , I HATE CODING this is one of the biggest challenge we face when it comes to working.

Imagine coding an application for 3hrs, you tested and it worked then few hours later you head back to check, boom u encountered an error on what you have tested. Me: i hate my life, i hate coding, Boss: I thought you said this was working already. LOL

That can be so annoying and frustrating lol, but we still have to keep on coding, trust me if plan a fails, try plan b and c if they ain't working too, keep on trying till you get to Z. your skill is a brand, protect it.

Lets take cs dojo for example, this particular guy applied at google 5 times and got rejected 4 times, imagine lol.. that basically means his lucky number is 5

Imagine me too applying for jobs more than 10 times and boom my whatsapp status got me a remote laravel backend job lol , seems weird right?

if you stop trying then you start failing _ devprecious, yes if you give up today you have given up everything, I gave up more than 3 times but with the help of people around me I was able to get on my feet back, imagine I didn't have supportive people around me, I would have become a Disc Jockey(Dj)..Lol

So basically your first failure is a map to your success..

Failure is the state or condition of not meeting a desirable or intended objective, and may be viewed as the opposite of success.

Don't mind the above definition you should focus on Impossible which is basically I'm possible.. So keep on pushing and let see where we get to.

I guess am a motivational speaker now... LOL

Thanks My Youtube channel : [IcodeForEarth](https://www.youtube.com/channel/UCLcHGKxbEO1XGVETXqzYXLA?view_as=subscriber)
Switching from Git master to main on Heroku
Tags: github, git, devops
Published: 2020-07-27 21:57:09


[I just saw that Heroku created the ability](https://help.heroku.com/O0EXQZTA/how-do-i-switch-branches-from-master-to-main) to `git push heroku` from _main_ instead of _master_ - and since I've been wanting to change my Git repos away from master anyway, I thought I'd check it out myself. Luckily, it was simple.

(For a little background info on the issue of _master_ vs _main_ in Git, [see here](https://sfconservancy.org/news/2020/jun/23/gitbranchname/))

I followed these 3 steps:

1. First I had to move my master branch to main using `git checkout -b main`:

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

2. Then I had to delete the old master branch using `git branch -D master`:

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

3. And now I can deploy from _main _using `git push heroku main`.

(Heroku builds and runs the pushed code as the latest version of your app)

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

That's it. Easy and fast, and no more _master_ branches in my Git repo or Heroku builds.
Joker :- Webpage
Tags: html, css, javascript, design
Published: 2020-07-28 12:04:26

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

Check this out... Only in laptop or desktop for now.. 
[Joker](https://joker-git-master.vishal035.vercel.app/)


And I need help in coding to make it mobile friendly... Please let me Know if anyone wants to help me Here is github project [link](https://github.com/vishal035/Joker)
Update: I built a tool to help me manage my job search
Tags: showdev, career
Published: 2020-07-30 16:19:11

In December of last year I posted about an open-source job tracking app I built. 

{% link https://dev.to/messerli90/i-built-a-tool-to-help-me-keep-track-of-my-job-hunt-jobhuntbuddy-3p0g %}

I got great feedback here on DEV and from a couple other sources. Since then, I decided to try and build a real product around the idea and expand on some features.

# Why I built it (What I tried before)

I've tried a lot of ways to stay organized while I'm applying for jobs across multiple job sites. Something always falls through the cracks. 

### Trello or Spreadsheets
[Trello](https://trello.com/) is great for a big picture overview to see what status a given job application is in (application sent, interviewing, etc), but it requires doing a lot of formatting to keep information easy to read.

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

### Notes
Usually, what I do when I send a new application is create a **note** (I like to use [Bear](https://bear.app/)) that holds all relevant info that might be useful later. 

- If the application has a **questionnaire** I jot down the question/answers. This is useful as a reference while writing a cover letter, or to take snippets from when other applications have similar questions. 
- Prepare questions I want to ask during the interview
- Link to job posting to review (again for cover letter or interview prep)
- Any other relevant data: salary, location, contract-type, etc.

Having the notes is super useful, but they lack the general overview of seeing what status each application is in.

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

#### *So that's what I built*

I wanted to marry the two strategies that worked for me in an application that does both. Plus, I wanted to add a couple features that go beyond the Kanban board and note taking:

- Email Discovery: Let JobHuntBuddy help you find email addresses at the company you're applying to. It helps to know who's reviewing your application
- Document storage: Upload your resumes and cover letters to a central place and always have access to them.

## Thank you DEV

I want to thank the community here for the great feedback, criticisms, and ideas I've received from DEV.

I know a lot of readers here are looking for their first dev job and others who have been affected by current world events and that's why I created a **free** plan to help people get started. 

And as a special thank you to DEV.to I want to offer a coupon code for those that decide upgrade to a premium plan: **DEV-2**

### You can check it out here 👉 [JobHuntBuddy.co](https://jobhuntbuddy.co/)

---

The original JobHuntBuddy will remain **free** and **open source** and can be found here:
- [free.jobhunthuddy.co](https://free.jobhuntbuddy.co/)
- [GitHub - messerli90/jobhuntbuddy](https://github.com/messerli90/jobhuntbuddy)

Follow me on Twitter [@michaelmesserli](https://twitter.com/michaelmesserli) to connect and see my ramblings about tech, travel, and gaming.
100 Days of SwiftUI — Day 32.2
Tags: 100daysofswiftui
Published: 2020-07-29 21:29:53

---
title: 100 Days of SwiftUI — Day 32.2
published: true
date: 2020-07-29 21:29:03 UTC
tags: 100daysofswiftui
canonical_url: https://zeitschlag.net/100-days-of-swiftui-day-32-2/
---

Well, let's say, I needed a break for like a whole month. From time to time I had a bad conscience that I kind of stopped, but let's call it a break.

The last time I rushed through the animation-parts and that broke my neck when it came to the exercises. So today, a month later, I spontanously gave it another try, starting with [Day 32](https://www.hackingwithswift.com/100/swiftui/32) again.

It was about animations and I wanted to understand them. To do so I read the texts slowly: There're three ways to animate things:

1. Animate the view implicitly
2. Attach the animations to a binding and its change — _and not the view!_
3. Animate things explicitly

The third part was basically the previous [Day 32-blogpost](https://dev.to/zeitschlag/100-days-of-swiftui-day-32-2e89), it just blew my mind. What I didn't understand back than was the second way, but today I think I finally got it.

So, yeah, till tomorrow!
How to use LIKE operator with AngularFire?
Tags: angular, firestore
Published: 2020-07-30 02:24:14

I will show you a way, what how to use LIKE operator with AngularFire.

This post is based on [this](https://stackoverflow.com/questions/46642641/sql-like-operator-in-cloud-firestore).

## ng version

```
Angular CLI: 9.0.2
Node: 12.16.0

Package                           Version
-----------------------------------------------------------
@angular-devkit/core              9.0.2
@angular/cli                      9.0.2
@angular/fire                     6.0.0-rc.1
```

## codes

src/app/models/user.model.ts

```
export class User {
  id: string;
  name: string;
  createdAt: Date;
}
```

src/app/services/user.service.ts

```
import { Injectable } from "@angular/core";
import { AngularFirestore } from "@angular/fire/firestore";
import { User } from "src/app/models/user.model";

@Injectable()
export class UserService {
  constructor(private firestore: AngularFirestore) {}

  findUsers(name: string) {
    // 'users' is a name of users collection on Firestore
    return this.firestore.collection<User>('users', ref => { return ref.orderBy('name').startAt(name).endAt(name+'\uf8ff') }).snapshotChanges();
  }
}
```

src/app/components/user/user.component.ts

```
import { Component, OnInit } from "@angular/core";
import { UserService } from "src/app/services/user.service";

@Component({
  selector: "app-user",
  templateUrl: "./user.component.html",
  styleUrls: ["./user.component.scss"]
})
export class UserComponent implements OnInit {
  constructor(private uService: UserService) {}

  ngOnInit(): void {}

  search() {
    this.uService.findUsers("A part of the user name you want to find").subscribe(data => {
      console.log(data)
    });
  }
}
```

Above codes are now working completely.

I hope that this post helps you for using LIKE operator with AngularFire.

If you got some problems. Don't be confused. Please share me with information about errors. I will teach you how to fix it.

Thank you for reading.
How Psychology Assignment help Experts can Provide You Right Assistance 
Published: 2020-07-30 06:00:53

Are you searching for the right Psychology Assignment Help, which can encourage you to score good marks in examinations? Do the psychology papers bother you quite often? Need relaxation from the uncertainties of psychology homework? If so, you are in the right destination at this moment. Weprovide high-quality psychology assignments for students.

Dream Assignment help is offering psychology homework helps students by skilled psychology tutor. Our experts know the value of an assignment. They create your psychology assignment flawlessly and deliver you before the given timeframe. Besides psychology assignment writing, we also offer Sociology assignment help also.

You can locate various Psychology Homework Help online But to get the right help with psychology assignment for achieving great marks; you shouldpick the best one. Students in the USA prefer Great Assignment help mostly while they requite help with psychology because we always give them services before the timeframe. Our professionalswill not compromise with assignment writing quality in any condition. For that reason, our assignment is well-known among the candidates.

Psychological understanding can be applied to many spaces of Human Activity, including problems linked with daily life like job, family, education for dealing with mental health issues. It is a broad area to wrap for scoring highscores in examinations and for that you have to study all day. But if you get assistance with psychology essay at a  sufficientcost, why you do hard work? You have to work smart as well asscore high.
For More Relevant Information Visit here-
https://www.greatassignmenthelp.com/psychology-assignment-help/
🛠️ your own awesome GitHub README profile 😍
Tags: github, markdown, branding, portfolio
Published: 2020-07-31 17:34:09

#  :speech_balloon: Blah blah blah

These last months, while browsing github profiles, I would sometimes find some developers having kind of a presentation section made in markdown on their github profile. At this time, I was learning at the bootcamp *The Hacking Project* and didn't had much time to search about it...

But this week, I'm on holidays ! So I grabbed this task in my to-do list and decided to do it.

Here is the result: [My GitHub README profile](https://github.com/davidBentoPereira)

# ⚙️ Setup : ~1min

1. Create a new github repository
2. Name it just like your github account
3. Check the box allowing you to initiate the repository with a README.md file
4. Write your content in mardown syntax ([here is a markdown cheatsheet for you](https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf))

# 🖌️ Pimp your repo

### Insert emoji : 😄 😕 😢

To insert emoji in your makrdown file (.md), just consult one of these resources, choose an emoji and copy the associated code like `:seedling:` to paste it in your file.

- [github_emoji.md](https://gist.github.com/davidBentoPereira/ff79445cb502b7ea22581b543af3fb56)
- [Complete list of github markdown emoji markup](https://gist.github.com/rxaviers/7360908)

### Insert cool badges

You may have seen some badges on famous repos while browsing github. Here is how you can add them on your own READMEs.md

Resources :

- [For the Badge](https://forthebadge.com/)
- [Shields.io: Quality metadata badges for open source projects](https://shields.io/)
- [Badgen](https://badgen.net/)

# 🎉 Inspiration : The cool kids on the block

Browse this resource to find some of the most awesome github profile READMEs, and try to do better !

[Awesome github profile :zap: ](https://awesome-github-readme-profile.netlify.app/)

Oh ! By the way... this is my first post on Dev.to :tada: !

See ya :v:
Replacing ZooKeeper with Kafka
Tags: java, messagechannel, zookeeper, kafka
Published: 2020-07-30 08:39:25

Yes you read it correct. Currently, Kafka uses ZooKeeper to store its metadata about partitions and brokers, and to elect a broker to be the Kafka Controller. This controller pushes out state change notifications to other brokers in the cluster, it is possible for brokers to miss some of the changes even after several re-tries. This can leave brokers in a divergent state. The state in ZooKeeper often doesn’t match the state that is held in memory in the controller. And so, this metadata may not be in synchronized state in ZooKeeper and Kafka controller.
To overcome such challenges, Kafka is soon going to be evolved and will remove its dependency on ZooKeeper. With the introduction of KIP-500, Kafka’s metadata will be stored on Kafka itself rather than in an external system ZooKeeper. This is just like we are using “Kafka on Kafka” and will remove its dependency on its keeper. Also, it will simplify the deployment and configuration of Kafka along with improvement in scalability. Metadata scalability is a key part of scaling Kafka in the future. It is expected that a single Kafka cluster will eventually be able to support a million partitions or more.

To know more about this, please refer below links:
Confluent link: https://www.confluent.io/blog/removing-zookeeper-dependency-in-kafka/
Apache Wiki: https://cwiki.apache.org/confluence/display/KAFKA/KIP-500%3A+Replace+ZooKeeper+with+a+Self-Managed+Metadata+Quorumhttps://cwiki.apache.org/confluence/display/KAFKA/KIP-500%3A+Replace+ZooKeeper+with+a+Self-Managed+Metadata+Quorum
Find the factorial of a number in JavaScript
Tags: beginners, javascript
Published: 2020-07-31 17:05:00

The factorial of a natural number in mathematics is defined as that number multiplied by that number minus one, then that number minus two, and so on until that number gets to 1. Ergo, if we choose to represent the number with the letter n, the factorial will be the product of all the positive integers less than or equal to n. The factorial of a number n is often denoted as n!

For example:
```
n! = n * (n - 1) * (n - 2) * …*1
4! = 4 * 3 * 2 * 1 = 24
```

##The Challenge
Write a function that returns the factorial of a number n.

Here, I will explore two approaches.

###The recursive approach
Keeping in mind that the factorial of a number can be computed by finding the factorial of that number - 1 and then multiplying the result with the number. The factorial of the number - 1 is a subproblem that needs to be solved first, so we compute that again and again (recursively).

```javascript
const factorial = (n) => {
  //base case 1: return -1 if the number is less than 0
  if (n < 0) return -1
  //base case 2: return 1 if the number is 0
  if (n === 0) return 1;
  //else call the recursive case
  return n * factorial(n - 1);
}

factorial(6) //--> 720
```

This solution has greater memory requirements as all the function calls would remain on the call stack until it gets to the base case.

###Computing iteratively...
The input n is decremented gradually until it gets to 1. In each iteration, a result variable is updated with the value of multiplying the result with the current value of the input.

```javascript
const factorial = (n) => {
  //create variable to save final result
  let res = n
  // if input = 0 or input = 1, return 1
  if (n === 0 || n === 1) return 1
  //initialize loop; should run wile num > 1
  while (n > 1) {
    n-- //decrease num by 1 with each iteration
    res = res * n //update result by multiplying with decreased num
  }
  //return the computed factorial of the input
  return res
}

factorial(6) //--> 720
```

The upside of this approach is that it takes less memory than the recursive implementation at the cost of writing a bit more code.

We've now examined two ways to find the factorial of a number in JavaScript. Both implementations are okay and could help you pass that coding challenge.