teleren/devto huggingface dataset:
Github Stars - ✨repository's star growth chart
Tags: github, starhistory, stack
Published: 2020-03-28 17:43:46

---
title: Github Stars - ✨repository's star growth chart
published: true
description: 
tags: github,star-history,stack
---

https://github-stars.socode.pro/

the comparison of star trend data for multiple GitHub repository in the technology stack. You can easily add the technology stack-related repositories you understand and download chart image.
What is context path ?
Tags: javascript, contextpath, react, vue
Published: 2020-03-28 17:39:38

---
title: What is context path ?
published: true
description: The context path is the prefix of a URL path that is used to select the context(s) to which an incoming request is passed. 
tags: javascript, context path, react, vue
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/dz4ylxglncgh8na9to7w.png
---


The context path is the prefix of a URL path that is used to select the context(s) to which an incoming request is passed. 

> Context path is also known as sub-path or sub-directory

Many apps are hosted at something other than the root (/) of their domain. For example, My personal blog is live at [https://chetanraj.in/blog,](https://chetanraj.in/blog) or you can host your site on GitHub Pages at [https://example.github.io/blog](http://example.github.io/blog/).

Each of these sites need a prefix added to all paths on the site. So a link to a blog which is having the slug /features-in-es6/ should be rewritten as /blog/features-in-es6.

In addition to the slug of the blog, links to various resources (JavaScript, CSS, images, and other static content) need the same prefix, so that the site continues to function correctly when served with the path prefix in place.

For this to work, you need to specify the config according to them. This allows the built bundle to be deployed under that path.

**Here are some examples where you need to specify the context path before building your app.**

## Create React App

    // package.json
    
    {
      ...
      "homepage": ".",
      ...
    }

## Vue

    // vue.config.js
    
    module.exports = {
      baseUrl: '/blog',
    };

## Gatsby

    // gatsby-config.js
    
    module.exports = {
      pathPrefix: '/blog',
    };

Also, If you are serving static files, then paste the sub-directory folder in the root folder. This will serve from the sub-directory.
Computer Tech Reviews Welcomes Bloggers to Contribute


Published: 2020-03-28 15:29:02

Computer Tech Reviews is a Technology Hub where you can find trends and updates of different technologies. Bloggers can reach us for the following Categories:

Technology Write for Us- https://www.computertechreviews.com/technology-write-for-us/

Generally, technology is associated with scientific knowledge and engineering. However, technology is any notion that can facilitate life in society, or that can meet individual or collective demands or needs, adjusted to the requirements of a specific time.

Mobile Apps Write For Us - https://www.computertechreviews.com/mobile-apps-write-for-us/

If we talk about the basic definition, mobile apps are programs designed to be executed on phones, tablets and other mobile devices, which allow the user to perform professional activities, access services, stay informed, among other universe of possibilities.

Gadgets Write For Us - https://www.computertechreviews.com/gadgets-write-for-us/
A gadget is a device that has a specific purpose and function, generally of small proportions, practical and at the same time novel. Gadgets usually have a more ingenious design than current technology.

Android Write for Us - https://www.computertechreviews.com/android-write-for-us/
Android is a very versatile operating system used primarily for mobile devices. Based on the Linux Kernel, it is a free, free and cross-platform system, with great capacity to adapt to all types of devices, which gives it great development potential.

Machine Learning Write For Us - https://www.computertechreviews.com/machine-learning-write-for-us/
Machine learning is a type of (AI) artificial intelligence that gives computers the ability to learn without being explicitly programmed. Machine learning focuses on the development of computer programs that can change when exposed to new data.

Artificial Intelligence Write For Us - https://www.computertechreviews.com/artificial-intelligence-write-for-us/
Artificial Intelligence is the combination of algorithms proposed with the purpose of creating machines that have the same capabilities as human beings. A technology that is still distant and mysterious to us, but which has been present in our day to day at all hours for a few years.

Cyber Security Write For Us - https://www.computertechreviews.com/cyber-security-write-for-us/
Cyber security is a set of procedures and strategies that aim to guarantee the integrity, availability, and confidentiality of the information of the company or organization.
Find a place for Placeholder!
Tags: html, javascript, api
Published: 2020-03-28 16:56:17

# Placeholder
A *Placeholder* is a person or thing that occupies the position or place of another place or thing. In a computer world, a placeholder can be text, images, JSON, etc.
Here are some of the cool placeholder resources that are found on the web for developers.

**Text Placeholder :**
https://loremipsum.io/
https://www.lipsum.com/

**Image Placeholder :**
https://picsum.photos/
https://placeholder.com/

**JSON Placeholder:**
https://jsonplaceholder.typicode.com/

Comment on some cool placeholder resources that you have come across below.
Show DEV: I built an Event Countdown app with React Native & Typescript
Tags: react, reactnative, typescript, showdev
Published: 2020-03-28 16:52:13

> tldr: download it [here](https://apps.apple.com/us/app/timecount-day-counter/id1497946231)

## The App

I recently created an Events Countdown app for iOS.
Basically, user can create event like Birthday, Anniversary, ... and the app will show a countdown time until or since the event.
User can also add reminder days, weeks, months before or after the event.

[Here](https://www.youtube.com/watch?v=7aXwDqMy1Mw) is a demo video.
It's not shown in the video but the user can choose different display mode like: List, Grid or Carousel and sizes,...

It's free to use. You can create unlimited number of events, reminders, you can switch between dark/light theme... All the core features of an Event Countdown apps are free. But there are interstitial ads after the user created an event once in a while. (using facebook audience network and google admob).

Some premium features like layouts, online gallery, cloud syncing,... are unlocked through a subscription monthly or yearly.

## Dev

About 9 months ago, I shared with you my tips when getting started with React Native along with my architecture [typescript-react-native-starter](https://github.com/NewBieBR/typescript-react-native-starter) that help you start quickly. And I learned **a lot** from you in the comments. This project is created with it!

I also tried to contribute some open-source components like:

- [react-native-easy-icon](https://github.com/NewBieBR/react-native-easy-icon): wrapper component of react-native-vector-icons to use icon easily

    ```js
    import Icon from 'react-native-easy-icon';

    <Icon type="feather" name="award" color="coral" size={21}/>
    ```

- [react-native-unsplash](https://github.com/NewBieBR/react-native-unsplash): The online gallery feature that you see from the video use directly this component. It's basically a photos browser using the unsplash api.

- [react-native-store-rate](https://github.com/NewBieBR/react-native-store-rate): I'm still testing this so I don't recommend you to use



All of my components above are written in typescript so it's kinda self-documented, I didn't have the time to update the documentation so PRs are welcome :).

The app is available on iOS only since I don't have an android device to test it on android and I don't want to publish an emulator-tested-only app.

You can test it here: https://apps.apple.com/us/app/timecount-day-counter/id1497946231

I would love to hear feedbacks from developers. Thank you!
#100DaysofCode
Tags: python, productivity, beginners, 100daysofcode
Published: 2020-03-28 16:50:06

As the title mentions, i will be starting the 100 days of code challenge during the period when my college has gone for an infinite shutdown. I will be laying out the rules in this challenge and i will try to follow them to the letter. I hope i am successful in this endeavour. I will be posting here everyday and also on twitter using the hashtag of 100 days of code.

As Geoff Stevens says in this [blog](https://dev.to/softwaredotcom/essential-guide-to-the-100-days-of-code-challenge-3b5g) post " Not everyone succeeds in completing the challenge. It takes determination, perseverance, and grit. Thoughtful planning plays a role, too."

I will be modifying the rules slightly to make use of my plenty of free time. I will state what i have changed below.As stated by Geoff in his [blog](https://dev.to/softwaredotcom/essential-guide-to-the-100-days-of-code-challenge-3b5g) the first and foremost tip for survival in this challenge is a public commitment. This shall be my public commitment . Another rule is that tutorials don't count as code. Code is should not be consumed but created. The rules state that if you miss a day it shall be added to the remaining days but it sets up a dangerous precedent for skipping days.

I will be coding for at least 4 hours a day from 10 p.m to 2 a.m. As mentioned previously, this does not include any tutorials. I will be maintaining a regular journal with my progress report of each day. I will be starting this challenge from the 30th of March , 2020. 

Another important point about this challenge is burnout. Many aspiring developers try to code too much during the early days and end up quitting midway. This challenge is for increasing your patience, resilience, determination and most importantly, your coding skills. 

I have a rough idea of the coding skills i want to achieve mastery in but i will be uploading a detailed plan soon. 

Till the next time, Ciao !

Hello there!
I am Arnav , an engineering student hailing from Mumbai.

[My Twitter!](https://twitter.com/potatoandchipa)
Ubuntu Lumina - Devlog 1 (March 28, 2020)
Published: 2020-03-28 16:43:41

Welcome to the first devlog of Ubuntu Lumina, we have been in actual development since early this year. I am writing a devlog about it so I can explain what I have been doing in the past month.

1. Testing
Been doing a lot of on-desktop testing to see general use. Also been doing tweaks and settings-dives. I do think I missed one or two dependencies but that will be figured out during production.

2. Packaging
Making a deb package, currently on try 7,284,032. Clearly been going well.

3. Virtual Machines
Building the ISO and stuff. Not too much luck there either just yet.
Slack Status Setter🔮
Tags: slack, javascript, facedetection
Published: 2020-03-28 16:21:29

You can find the repo on [SlackSS](https://github.com/aa-ahmed-aa/SlackSS)
# Slack Status Setter (SSS) 🤖
It will update your slack status according to your actual presence in front of your camera every 10 minutes Follow the Docs to customize this project 

> Thanks to face detector on this repo : [Face-Detection-JavaScript](https://github.com/WebDevSimplified/Face-Detection-JavaScript)

## Installation  👀
1. open `https://api.slack.com/legacy/custom-integrations/legacy-tokens` and under `Legacy information` you can find your token.
2. open `script.js` and replace `<API_TOKEN>` with your slack legacy token.

3. default time interval for updating slack status is 10 minuts if you want to change that you can change the value of `time_fraction` in `script.js` file.

4. open this app in your browser and every 10 minuts it will update your slack status according to your current presence.
This thing about JS Reducer
Published: 2020-03-28 15:45:49

Hello,

Shouting out to anyone who is well versed with JS and can help me with this query.

Can anyone tell me why the Reducer method in Javascript is called 'Reducer', when it exactly does the opposite...doing additions in array.

I searched online for the answer but did not find any and this particular question is driving me crazy.

Thanks for the advance help.

@shazz
Error: Cannot find module <path>/build-manifest.json masks an underlying issue with Next.js
Published: 2020-03-28 15:34:32

https://annacoding.com/article/1pUKZRcFkIhgVKkM56yILw/Error:-Cannot-find-module-%3Cpath%3E-build-manifest.json-masks-an-underlying-issue-with-Next.js
Python: Is and ==
Tags: python
Published: 2020-03-30 16:36:39

---
title: Python: Is and ==
published: true
date: 2020-03-28 15:31:00 UTC
tags: Python
canonical_url: https://coderscat.com/python-is-and-equal
---

![2020_03_28_the-difference-between-is-and-equal-in-python.org_20200328_234214.png](https://coderscat.com/wp-content/uploads/2020_03_28_the-difference-between-is-and-equal-in-python.org_20200328_234214.png)
Figure 1: Photo by Rajiv Perera on Unsplash

## == is comparing values

In Python, == compares the value of two variables and returns True as long as the values are equal.

```python
>>> a = "hello cat"
>>> b = "hello cat"
>>> a == b
True

>>> b = "hello dog"
>>> a == b
False
```

## `is` is comparing object references

`is` compares the ids of two variables.

That is, the actual comparing is **id(a) == id(b)**, and it will return True only if the two variables point to the same object.

```python
>>> a = "hello cat"
>>> b = a
>>> a is b
True
>>> b is a
True

>>> b = "hello cat"
>>> a is b
False

>>> id(a)
4512387504
>>> id(b)
4512387312
```

As we can see from the result, even the value of `b` is still the same with `a`, the variable of `b` is bind with a different object. So, **a is b** will return False.

### An Exception for *is*

According to the above explanation, this code snippet should output False.

```python
a = 2
b = 2
print (a is b)
```

But in fact, it will output True, because Python has a cache mechanism for small integers. The number between -5 and 256 will be cached. In this case since `a` and `b` have the same value, they point to the same object.

Unicode characters decimals 0 to 255 are also initialized when a Python session is started. So

```python
>>> a = chr(80)
>>> a
'P'
>>> b = chr(80)
>>> b
'P'
>>> a is b
True

>>> a = chr(937)
>>> a
'Ω'
>>> b = chr(937)
>>> b
'Ω'
>>> a is b
False
```

`is` will be more complicated when we comparing two strings. Generally, strings longer than 20 characters will be interned.

```python
>>> a = "coderscat"
a = "coderscat"
>>> b = "coderscat"
b = "coderscat"
>>> a is b
True
```

But any string constructed at runtime (produced through methods, functions, etc.) will not be interned.

```python
>>> a = 'coderscat'
>>> b = "".join(['c', 'o', 'd', 'e', 'r', 's', 'c', 'a', 't'])
>>> a is b 
False
>>> a == b 
True
```

## Which one to use

If you want to compare values, always choose to use `euqal`.

Since the return value of `is` also depends on the cache strategy in Python, we have limited use-cases for it.

In some scenarios, we need to use `is` to check whether two variables refer to the same object.
Working with sed command in Linux
Tags: ubuntu, linux, showdev, webdev
Published: 2020-03-28 15:30:48

---
title: Working with sed command in Linux
published: true
description: with the help of sed (stream editor) you can update, delete, insert text in a line.
tags: #ubuntu #linux #showdev #webdev
---

When working with files in Unix-like systems, sed will help you a lot in updating some text in the existing line, deleting, and even inserting, isn't it cool?

#Basic

just open up your terminal and type `sed --help`, you'll get the usage of `sed`.


Print file:

Now let's print the file ( like cat ):
`sed 'p' /etc/passwd`

`p` operator in single quote will print the file. it's basically working like `cat` command, but if you've noticed there is a problem we're getting line twice, how to get it rid

`sed -n 'p' /etc/passwd`

`-n` flag will only give us the updated file.

Let's suppose if we need to print from lines 1 to 3, so how would we do that?
`sed -n '1,3 p' /etc/passwd`

in the single quotes, the number refers to line from 1 to 3. we just rebuild the `head` command using `sed`. isn't it cool!

# Advance

let's find some specific text in a file, I'm gonna find my user name in the file:
`sed -n '/^pi/ p' /etc/passwd`

`/^` caret character means the beginning of line find 'pi' text
`p` for printing


Now let's update the some text, I wanna update the '/bash' to '/sh':
`sed -n '/^pi/ s/bash/sh/ p' /etc/passwd`

`s` for substitute (updating) '/bash' to /sh/'

Let's delete the line by using line number:
`sed 'Nd' <filename>`

`N` for specifying line number
`d` for deleting


# Best example 

`sed -i.bak '/^\s*#/d;/^$/d' <file>`

this command will help you to remove white space, comment and will give you a new file. and the original will be saved in <file>.bak extension.

Thanks!
Balancing blogging with Stack Overflow
Published: 2020-03-28 15:15:01

With limited time, I've found myself wondering often about the gain of answering my open question on stack overflow vs blogging about it. For those that have done both, how do you balance your time between those? 

If it's on my blog it is like a personal learning journey. If I write a question on Stack Overflow it is forcing a more disciplined question and gaining peer review over time. 

I enjoy the stack overflow contributions, but at the same time look at my blog small posting having declined significantly in volume.
Rapid Prototyping with Table-Driven Testing
Tags: productivity, testing, typescript, tdd
Published: 2020-03-28 15:11:54

Developers often need to work with something from scratch. Usually, it's a couple of lines of code whose suitability to real business logic needs to be measured before using. Sometimes you might get an idea you want to play around.

However, prototyping can get cumbersome. You need to create a project, install a test library, organize the logic, and make sure tests pass. This is often too much for lazy developers like me who want to brainstorm but not give up on testing.

One technique is particularly helpful for making the prototyping faster, and it's called **table-driven testing**. This technique has gained popularity among those working with the Golang programming language.

In table-driven testing, you declare a table of values which can be implemented using a two-dimensional matrix (*nested array*). The first columns usually hold the values passed to your testable function and the last column the expected result.

## How It Works

To demonstrate this, let's write a quick curried function that formats a sum of money into a sweet currency string in euros. I'm using Typescript here, but this applies to any language capable of handling basic arrays and throws.

### **Code**

```ts
type Formatter<T> = (a: T) => (b: T) => string
const numberFormatter: Formatter<number> = decimals => euros => euros.toFixed(decimals).replace(/\./, ',') + ' €'

// Partial application to store our precision
const toCurrencyString = numberFormatter(2)
```

### **Tests**

```ts
// [argument, expected result]
const suites: [number, string][] = [
    [-1, "-1,00 €"],
    [0, "0,00 €"],
    [1, "1,00 €"],
    [10.01, "10,01 €"],
    [59.00, "59,00 €"],
    [Math.PI, "3,14 €"],
    [NaN, "NaN €"]
]

for (const [euros, want] of suites) {
    const got = toCurrencyString(euros)

    if (got !== want) {
        throw `Got ${got}, but wanted ${want}`
    }
}

console.log('Congratulations! All tests passed.')
```

As you can see, the trick is to declare a test loop throwing an error for each failed test. With Javascript and Typescript, it's easy to terminate the program by merely throwing a native value like string. If all the tests pass the program prints a congratulatory message for you. No assertion libraries needed.

You could walk an extra mile and capture all the errors into another array for printing the full test results. I like to take the easier route and abort tests as early as possible even when using real test libraries.

If your editor is **Visual Studio Code, JetBrains IDE, Atom**, or **Sublime Text**, you can use the free **[Quokka](https://quokkajs.com/)** extension for even faster prototyping. Live scratchpad ensures you don't even have to save a file onto disk to get down with coding.
What’s your alternative solution? Challenge #3
Tags: challenges, discuss, javascript, codenewbie
Published: 2020-03-28 14:47:24

# About this series

This is series of daily JavaScript coding challenges... for both beginners and advanced users.

Each day I’m gone present you a very simple coding challenge, together with the solution. The solution is intentionally written in a didactic way using classic JavaScript syntax in order to be accessible to coders of all levels.

Solutions are designed with increase level of complexity.

## Today’s coding challenge

```
Print the multiplication table with 7.

```

(scroll down for solution)

## Code newbies

If you are a code newbie, try to work on the solution on your own. After you finish it, or if you need help, please consult the provided solution.

## Advanced developers

Please provide alternative solutions in the comments below. 

You can solve it using functional concepts or solve it using a different algorithm... or just solve it using the latest ES innovations.

By providing a new solution you can show code newbies different ways to solve the same problem.

## Solution

```javascript
// Solution for challenge03

for(var i = 1; i <= 10; i++)
{
    var row = "7 * " + i + " = " + 7 * i;
    println(row);
}

```


To quickly verify this solution, copy the code above in this coding [editor](https://codeguppy.com/code.html) and press "Run".

> Note: The solution was originally designed for [codeguppy.com](https://codeguppy.com) environment, and therefore is making use of `println`. This is the almost equivalent of `console.log` in other environments. Please feel free to use your preferred coding playground / environment when implementing your solution.
Microsoft NLP Recipes
Published: 2020-03-28 14:26:05

{%github  microsoft/nlp-recipes %}

Microsoft が公開している NLP のベストプラクティス集をご紹介します。

### NLP Recipes とは？
Microsoft の Data Scientist が主導して開発している自然言語処理(NLP) のベストプラクティスです。

### コンテンツ

2020年3月28日時点で公開されているコンテンツは下記になります。


| Scenario                              |  Models | Description|Languages|
|-------------------------|  ------------------- |-------|---|
|Text Classification                     |BERT, XLNet, RoBERTa| Text classification is a supervised learning method of learning and predicting the category or the class of a document given its text content. |English, Hindi, Arabic|
|Named Entity Recognition                |BERT| Named entity recognition (NER) is the task of classifying words or key phrases of a text into predefined entities of interest. |English|
|Text Summarization|BERTSum|Text summarization is a language generation task of summarizing the input text into a shorter paragraph of text.|English
|Entailment                              |BERT, XLNet, RoBERTa| Textual entailment is the task of classifying the binary relation between two natural-language texts,  *text* and *hypothesis*, to determine if the *text* agrees with the *hypothesis* or not. |English|
|Question Answering                      |BiDAF, BERT, XLNet| Question answering (QA) is the task of retrieving or generating a valid answer for a given query in natural language, provided with a passage related to the query. |English|
|Sentence Similarity                     |BERT, GenSen| Sentence similarity is the process of computing a similarity score given a pair of text documents. |English|
|Embeddings| Word2Vec<br>fastText<br>GloVe| Embedding is the process of converting a word or a piece of text to a continuous vector space of real number, usually, in low dimension.|English|
|Sentiment Analysis| Dependency Parser <br>GloVe| Provides an example of train and use Aspect Based Sentiment Analysis with Azure ML and [Intel NLP Architect](http://nlp_architect.nervanasys.com/absa.html) .|English|


### 特徴
- HuggingFace のモデルがベース
- 少ないコーディング量で NLP モデルの開発が可能
- 現状メインは英語のみ対応 (テキスト分類の日本語バージョンを後日公開します！)