teleren/devto huggingface dataset:
Taskord Changelog - Sep 29
Tags: opensource, productivity, changelog, showdev
Published: 2020-09-29 10:21:12

Welcome to **Taskord Changelog** 📜, This is a weekly post where we share what we shipped to [Taskord](https://taskord.com) this week.

Visit Taskord: https://taskord.com

**This week on Taskord**

- GraphQL API is shipped with all basic queries and some mutations. Currently, it is behind the Staff's feature flag, DM us on Twitter to give you early access.

![Eixtc3IU8AATMOa](https://dev-to-uploads.s3.amazonaws.com/i/gnt4cruuqw2wmpq468vc.jpg) 

- Added Separate Comment Page

![Ei3F0XLUwAIjPiC](https://dev-to-uploads.s3.amazonaws.com/i/i8wbmg8o6lgg3daba8fw.png) 

- Added Horizon to Speed up and monitor Redis Jobs
- Added Daily Goals, If the goal is reached the user will be praised by additional Reputations, Thanks @filiptronicek for working on Praising Algorithm

![Ei3FGlVUcAEdp61](https://dev-to-uploads.s3.amazonaws.com/i/ww8z63rf9drhox82vy6d.png) 

Make sure to signup today! https://taskord.com/register

### Thanks 🙏

For taking care of marketing stuff!

{% user theaadithyan %}

For providing constant feedback and feature requests!

{% user filiptronicek %}

Happy shipping ❤️
★★★★★ Star Rating System with jQuery, Ajax, PHP and MySQL
Tags: laravel, html, css, php
Published: 2020-09-29 10:13:14

Star rating system with PHP MySQL, jquery, and ajax on products, etc posts. In this tutorial, we will learn how to create a simple star rating script with PHP MySQL using jQuery and ajax. Then display the star ratings on the web (HTML) page from the database.

If the user changes the start rating then send an AJAX.


Read more: [★★★★★ Star Rating System with jQuery, Ajax, PHP and MySQL](https://www.phpcodingstuff.com/blog/star-rating-system-with-jquery-ajax-php-and-mysql.html)
Why I choose C++
Tags: cpp, beginners, career, codenewbie
Published: 2020-09-29 09:58:32

#### Search for an objective Language
During my studies I got a broad insight into various programming languages. Including Java, Python, R, VBA, HTML & CSS and JavaScript. I also took various courses in Java and Python, but Java didn't feel right to me. I really enjoyed doing the courses and think Java is very good, but Java is not for me. 

I only had a lot of fun with Python and R, not least because they can be easily combined. I taught myself Bash and PowerShell over the years. I prefer to use Bash because I mainly work with Linux. However, I always lacked an object-oriented programming language.

#### Why C++?
The answer is pretty simple. I wanted to learn a system-oriented programming language. Java and C# are not system-oriented and can therefore be hacked more easily through reverse engineering. Also, I didn't choose C# because I don't use Windows except at work.

I also find C++ very interesting due to its universal applicability, because due to its proximity to the system, every C++ program runs on every device with a few adjustments. I also wanted to take on this challenge, as C++ is very complex and has a steep learning curve. I see more benefit for me personally in learning a complex programming language like C++ than an easy-to-learn programming language.

When choosing the programming language, neither trends nor the TIOBE index played a role. Because if everyone were to choose the programming language that is currently very popular and sought after, then the diversity would be lost.

#### How do I learn C++?
I am currently familiarizing myself with C with the help of my Codecademy Pro membership. I also rely on specialist literature such as the book: _Programming - Principles and Practice Using C++_ by the creator of C++ **Bjarne Stroustrup**. Of course, you learn a programming language better through constant learning like coding, coding and coding ...
What are five of the most useful Javascript libraries that you use as a Javascript developer?
Tags: javascript, java
Published: 2020-09-29 09:51:54

Moment.js for handling time including human-readable time in different languages. Example, a notification is timestamped and moment.js can show it as « Il y a quelques minutes » — “a few minutes ago” because it recognizes time relative to now, and can say it in the user’s language. It also helps for formatting dates such as Dec. 10, 2017 instead of the ambiguous 12/10/17 (outside the US this is October 12, 2017)

Lodash (underscore) for helpful utility methods. Instead of reinventing the wheel on how to iterate through an array of objects efficiently, trust those who have fine-tuned these methods.

Validator for email password strength and other validations. Instead of trying to anticipate all the cases that would make an email invalid, or a password not very secure, use a library that is tested by time and experience.

React for rendering code and templates together. This may not qualify as a JavaScript library, but it is by far the most useful tool I have discovered since JQuery. I’m sure Vue.js or some other, similar libraries are equally impressive, but I can attest to the power of React. It’s one of those things that makes you wonder how we did things before (much like how JQuery once felt)

Node / npm for javascript on the server and for installing dependencies. Not a library, but a tool for installing libraries and wring JavaScript on the server. Express would be a useful Node.js library.

Meet the Experts : https://nareshit.com/javascript-online-training/
What's the dev skill you mastered in a day?
Tags: webdev, discuss, productivity
Published: 2020-09-29 09:43:14

---
title: What's the dev skill you mastered in a day?
published: true
description: 
tags: webdev, discuss, productivity
cover_image: https://miro.medium.com/max/1000/1*1n5PmMFrZKSj05PmqEE9yQ.png
---
First ones that come to my mind would be [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) and [Emmet](https://emmet.io/).
Increases my productivity and I use them every day.

What are some of your skills that were easy to pick up and then became a main part of your dev routine?
My Scanty Angular Knowledge from GADs Project
Tags: 100daysofcode, angular, typescript
Published: 2020-09-29 09:38:20

My final GADs project is building an album store product page in angular. Just so you know the only thing I know about angular is that its a framework. I'm learning on the job though. Today's post is about the scanty knowledge I've gathered so far.

####Service class
I created a service class today, but what is a service class?

A service in angular handles data allowing it to be shared among components.

> _Components shouldn't fetch or save data directly and they certainly shouldn't knowingly present fake data. They should focus on presenting data and delegate data access to a service._
_[Angular documentation](https://angular.io/tutorial/toh-pt4)_

Command used to create a service class:
```
ng generate service product
```

#### Declaring public and private Class properties 
Private properties
```typescript
 private _albumUrl = string;
```
Public properties
```typescript
public name: string;
```
To access properties in a class you use `this` keyword:
```typescript
this.name
```
> _In the class when we refer to one of the members of the class we prepend `this.`. This denotes that it’s a member access._
_[Typescript handbook](https://www.typescriptlang.org/docs/handbook/classes.html)_

#### Declaring Class Methods
```typescript
getAlbum() { }
```
It is an interesting ride, is should probably find a crach course on Angular.

#### Adding a return type to a function.
```typescript
 getAlbum(id: number):Album{}
//Where Ablum is an interface
```
#### Observables
> Observable are just things you wish to observe and take action on. 
_[Angular and Observable by Bhatt Ami](https://medium.com/fuzzycloud/angular-and-observable-4bf890b2a282)_

```typescript
 getAlbum(id: number):Observable<Album> {}
```
#### Casting
Changing or converting types

_That's it for day 75_
_Let's do this again tomorrow_
Blockchain Development Company
Tags: software
Published: 2020-09-29 09:32:00

Take your Business to the next level with MLM Developers. We are a leading Cryptocurrency development company, has developed applications for blockchain, smart contract, integrated with mobile application. We are offering blockchain development services for all cryptocurrency with metamask platform. We also working on a decentralized tron platform as per on your requirement.

Our Decentralized Software Services- 

Blockchain Development
Smart Contract Development
ICO Development
ERC Token Development
Cryptocurrency Development
Decentralized Tron Development
Metamasking Development
Wallet Development
Exchange Development
https://www.mlmdevelopers.com/cryptocurrency-development-company/
Relé 1.0.0!
Published: 2020-09-29 09:31:47

---
title: Relé 1.0.0!
published: true
description: A comprehensive Python solution to get you up and running with Google Cloud’s Pub/Sub
tags:
cover_image: https://raw.githubusercontent.com/mercadona/rele/master/docs/_static/rele_logo.png
---

We are pleased to announce [Relé](https://github.com/mercadona/rele), a comprehensive Python solution to get you up and running with Google Cloud’s Pub/Sub as quickly and easily as possible. Meant to ease development workflow, Relé comes built-in with key components for managing a project with Pub/Sub enabled services.

Out-of-the-box, Relé provides:

- Powerful Publishing API
- Highly Scalable Worker
- Intuitive Subscription Management
- Easily Extensible Middleware
- Optional Django and Flask Integration
- And much more!

Allowing our products to scale with ease, Pub/Sub is a vital piece of infrastructure at [Mercadona Tech](http://mercadonatech.es/en/) and we lean on Relé to manage publishing and subscribing to millions of messages.

## Show me the data!

In the last 30 days we have:

    Published 20 million+ messages
    Consumed 125 million+ messages
    managed 120+ topics and 300+ subscribers

And it’s growing every day!

## Use Case

For many years, Python’s go-to task queuing library has either been Celery or RQ. Although on the face of it, Pub/Sub’s design may look similar, it is solving a different problem.

While Celery and RQ solve task queues within an application, Pub/Sub shines when it comes to managing task queues between many services. Leveraging Relé with Pub/Sub maintains an elegant API much like Celery and RQ’s, but instead allows for scalable messaging within a service oriented architecture.

## Reasoning

Since the Google Pub/Sub client does not come built-in with solutions to database connection management, publisher management, declaring subscribers, and running workers, the Mercadona Tech team decided to coalesce around an open source solution.

To reduce complexity and risk when adopting Pub/Sub, we organized our experiences from the Python client into one comprehensive library to solve common use cases and patterns suitable for a highly-available production environment.

If any of this sounds interesting, checkout our [docs](https://mercadonarele.readthedocs.io/en/latest/) and [repo](https://github.com/mercadona/rele).

Cheers!
How do you store private keys?
Tags: webdev, discuss, security
Published: 2020-09-29 09:25:15

---
title: How do you store private keys?
published: true
description: 
tags: webdev, discuss, security
cover_image: https://static01.nyt.com/images/2017/04/05/nytnow/28xp-lost/28xp-lost-superJumbo.jpg
---
Private keys allows users to access the databases and APIs, execute authorization, store signing secrets and are by all means sensitive information that must not be shared with the public.

What approach do you normally use to store them in your app? 

Do you use some packages like [dotenv](https://www.npmjs.com/package/dotenv) and then use .env file or do you have other solutions to this?
How to test next-i18next
Published: 2020-09-29 09:19:16

---
title: How to test next-i18next
published: true
description: Simple gist that shows how to mock next-i18next
tags: 
//cover_image: https://direct_url_to_image.jpg
---

Add this to your `test/setup.ts`:

```ts
import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'

// Mock t function
export const t = (key: string, params?: any) => {
  if (key === 'key.with.params') {
    return `key.with.params.${params.param}`
  }

  return key
}


// Mock react-i18next
i18n.use(initReactI18next).init({
  lng: 'en',
  fallbackLng: 'en',
  ns: ['common'],
  defaultNS: 'common',
  resources: {
    en: {
      common: {}
    }
  }
})

// Mock your i18n
jest.mock('~/i18n', () => {
  return {
    useTranslation: () => {
      return {
        t,
        i18n: {
          language: 'en',
          changeLanguage: jest
            .fn()
            .mockImplementation((lang: string) => console.log(lang))
        }
      }
    },
    withTranslation: () => (Component: any) => {
      Component.defaultProps = { ...Component.defaultProps, t }
      return Component
    }
  }
})
```

- [article](https://react.i18next.com/misc/testing)
- [example](https://github.com/i18next/react-i18next/tree/master/example/test-jest)
Career Scope Of Selenium Testing In Future Archives
Tags: selenium, testing, career, training
Published: 2020-09-29 09:09:15

About Selenium:

SELENIUM is a free (open-source) automated testing framework used to validate web applications across different browsers and platforms. You can use multiple programming languages like Java, C#, Python, etc to create Selenium Test Scripts. Testing done using the Selenium tool is usually referred to as Selenium Testing.
Selenium is a portable framework for testing web applications. Selenium provides a playback tool for authoring functional tests without the need to learn a test scripting language.

Career Scope Of Selenium Testing:

The scope of job opportunities in selenium testing will be available at all times for skilled and training professionals. The testing automation developers will convert the written test cases into automation scripts. It requires adequate programming knowledge in languages like C, Perl, C#, and Java.

The testing method that could provide the same throughput as Manual Testing, but with minimal labor and cost. In addition to this, they also wanted to reduce the repetitive tasks of Manual Testing. The scope of automation or automation testing future scope is huge in the market.

The business now requires rapid output, hot deployment and even faster testing. Thus Automation Testing is a boom today. Automation with Selenium is even a better choice as it is an open-source tool tester can play with.

To make testing and automation faster and efficient, the better approach will be to aim for testing and automation in the same sprint. In the future, more companies are expected to adapt in-sprint test automation and move towards a product with high automation coverage.

around $97,500 per annum

The average salary of a selenium automation tester in the US is around $97,500 per annum. The minimum and maximum limits of selenium salary in the US are $16,500 per annum and $160,875 per annum.

For more details please visit: https://nareshit.com/selenium-online-training/
Need resources to learn (I don't have idea where to go)
Tags: help, beginners, node, database
Published: 2020-09-29 09:06:38

I've been doing through this fullstack course at school. We are focusing on javascript, node.js, express, http and mariadb. Also we started using xampp with mariadb. So mainly we are working on backend + some javascript programming. 

I am new to this and getting quite overwhelmed. Can people here provide any resources for more learning (the more accessible the better). Youtube videos, courses, articles. 

I asked the teacher and he was only able to guide me to the DOCUMENTATION of the languages/technologies itself... which is quite overwhelming. 

Thank you for reading!
How to Create Files And Directories With Passwords in Linux [VIDEO]
Tags: howto, directory, files, folders
Published: 2020-11-08 12:51:39

---
title: How to Create Files And Directories With Passwords in Linux [VIDEO]
published: true 
date: 2020-09-29 09:01:00 UTC
tags: HowTo,directory,files,folders
canonical_url: https://fossnaija.com/create-files-and-directories-with-passwords/?utm_source=rss&utm_medium=rss&utm_campaign=create-files-and-directories-with-passwords
---

![file_security_banner_fossnaija](https://i0.wp.com/fossnaija.com/wp-content/uploads/2020/09/file_security_banner_fossnaija.jpg?resize=665%2C444&ssl=1)

Security and preventing unauthorised persons from getting access to [files](https://www.linux.com/training-tutorials/file-types-linuxunix-explained-detail/)and information has been a long-standing fundamental principle in the [world of Linux](https://dev.to/xeroxism/5-top-privacy-and-security-linux-distributions-2n92).

Computer theft is a thriving phenomenon (and business) in the world we live in today. So thinking about how to protect your files is a must.

So if you have any sensitive files worth protecting, you can save sensitive files into a directory with a password for safekeeping. Only persons with the password can open and access it.

In the video below I will show how you can [add a password to files and directories](https://fossnaija.com/password-encrypt-compressed-files-directories-linux/). ENJOY!!!


{% youtube jThQ-2kucCo %}

Happy Linux’NG!

The post [How to Create Files And Directories With Passwords in Linux [VIDEO]](https://fossnaija.com/create-files-and-directories-with-passwords/) appeared first on [Foss Naija](https://fossnaija.com).
Machine Learning
Published: 2020-09-29 08:55:01

Machine learning is a tough topic to wrap your head around, because 
it comes in so many different forms and shapes, but the way
I think about Machine Learning is how a computer can perform a task
, and usually when we program a computer to be able to do a task
we are giving it a very explicit instruction : Do this or 
if this is true , do that, or do this some number of times using
"for loop" for example.

But in machine learning, instead of telling the computer explicit instructions on how to do something, we instead tell the computer how to LEARN o do something on its own.

There is a distinction between Artificial Intelligence and Machine learning though, because whenever you hear a talk about machine learning you get to hear about artificial intelligence in the same talk.

Artificial Intelligence or AI is usually a little bit broader, it used to describe any situation where a computer is acting rationally or intelligently ; machine learning is a way of getting computers to act rationally or intelligently by learning from patterns and learning from data and being able to learn from experiences.
🎉🎉 Private Variables & Methods in JavaScript
Tags: javascript, webdev, react, vue
Published: 2020-09-29 08:53:57

Recently, a [new proposal](https://tc39.es/proposal-class-fields/) was introduced that would introduce private variables and methods to classes. Currently, it is at stage-3. 

Its very simple, just put # before the name of variables or method, and it becomes private. 

```javascript
class Person {
  #salary = 100;

  #increaseSalary() {
    this.#salary += 1000;
  }
}

let p1 = new Person();

console.log(p1.#salary); //Error - Private name #salary is not defined
console.log(p1.#increaseSalary); //Error - Private name #increaseSalary is not defined
```

👉  [Live Demo/Playground](https://babeljs.io/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&spec=false&loose=false&code_lz=MYGwhgzhAEAKCmAnCB7AdtA3gKGtAxBGOIgJ7QC80AjAAy0Dc2uBAlmsIvJPAMrFgyACgCUWFngAuAC1YQAdIQFloAaip16TPAF9se7CHiToAB2qVoaeAHc4SVGlFNswdKiPyQKAOZDzikQkpCIM0AD04QCiiIgoiNAAtHCIrABuYJLwVmAAttlKwdByVigmACbwAGbs8OWu7iie3n4B-Oyc3BB8yiFhkTFxCcmwqRlZOflsHFw8_EUlaGXQlTXW5UA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=stage-3&prettier=false&targets=&version=7.11.6&externalPlugins=)

👉  [Babel](https://babeljs.io/blog/2018/12/03/7.2.0#private-instance-methods-8654httpsgithubcombabelbabelpull8654) supports this feature in 7.2+ versions out of box.

👉  You can also enable this feature by just installing these babel plugins -
[babel-plugin-proposal-private-methods](https://babeljs.io/docs/en/babel-plugin-proposal-private-methods)
[babel-plugin-proposal-class-properties](https://babeljs.io/docs/en/babel-plugin-proposal-class-properties)
Download YouTube videos using Python
Tags: python, packages
Published: 2020-09-29 08:44:46

Hey guys, in this short post lets see how we can download youtube videos using Python.

To make this possible, we use a package called  [pytube](https://pypi.org/project/pytube/) 

## What is pytube?
Their official docs says,
> pytube is a very serious, lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos.


## Installing pytube

Run the below command to install the `pytube` package.

```python
pip install pytube
```
Now, `pytube` is successfully installed on your system.

To download a video, simply copy the URL of that video and run the below code

```python
from pytube import YouTube
url = "http://youtube.com/watch?v=9bZkp7q19f0"
YouTube(url).streams.first().download()
```
Thats it folks :) 

> To learn more about `pytube` visit their  [docs](https://pypi.org/project/pytube/)
Generative Adversarial Networks (GANs) Open-Source Projects Article
Tags: opensource, python, machinelearning, computerscience
Published: 2020-09-29 08:38:32

[5 Best Open-Source Projects That Will Teach You All You Need To Know About Best Generative Adversarial Networks(GANs)](https://medium.com/datadriveninvestor/5-best-open-source-projects-that-will-teach-you-all-you-need-to-know-about-best-generative-a1084f47256d)

[Top 5 GAN(Generative Adversarial Networks) Projects to play around with Human Faces](https://medium.com/datadriveninvestor/top-5-gan-generative-adversarial-networks-projects-to-play-around-with-human-faces-f647040e8a65)

[You Will Never Think That Learning These 5 GANs Projects Could Be So Beneficial! But It Is!](https://medium.com/@waliamrinal/you-will-never-think-that-learning-these-5-gan-projects-could-be-so-beneficial-but-it-is-f4362a6aa3d7)

###Here is the best Generative Adversarial Networks (GANs) project articles. All of the projects mentioned in these articles are open-source and free.

###Use it to learn, implement, and try experimenting with some-out of the box ideas. 
Happy Learning folks!!

[#GAN #GANs #GenerativeArt #MachineLearning #Open-Source]
Jenkins Pipeline with Python
Tags: jenkins, python, cicd
Published: 2020-09-29 08:37:36

---
title: Jenkins Pipeline with Python
published: true
description: Jenkins Pipeline with Python 
tags: 
- Jenkins
- Python
- CICD
---
I want to share my experience in implementing the Jenkins pipeline. In this tutorial, we will implement the Jenkins CI/CD Pipeline for Python applications. We will be building a pipeline as code, aka Declarative pipeline.

Read the full post in https://skamalakannan.dev/posts/jenkins-pipeline-python/