teleren/devto huggingface dataset:
Introduction to Datasist (A Python Library for Data Scientist) 
Tags: data, machinelearning
Published: 2020-01-01 12:11:02



Lol. Here is my gift for you this 2020 🎊 

Datasist is a python library that ease the workflow for Data Scientist and Analyst. 
Everything you want to achieve with Datasist is in one line of code. 

I made a quick video on getting started with datasist 

https://youtu.be/ErWa_WWu7vM
Ignore ESLint rules on specific lines
Tags: typescript, javascript, eslint
Published: 2020-01-01 23:28:11

---
title: Ignore ESLint rules on specific lines
published: true
description: ESLint let you ignore the lint rules by putting comments on line.
tags: TypeScript, JavaScript, ESLint 
---

On writing codes for [Google Apps Script](https://developers.google.com/apps-script) with [clasp](https://github.com/google/clasp), it is often the case you get warning from ESLint like "@typescript-eslint/no-unused-vars" on the functions because they are called from triggers in most cases.

![Warning message by ESLint](https://thepracticaldev.s3.amazonaws.com/i/3bswdjb107ue0wrf8uhz.png)

For that, you can use inline comments to disable rule of ESLint as follows:

```typescript
function mp4Organize(): void { // eslint-disable-line @typescript-eslint/no-unused-vars
  ...
}
```

## Reference

* [ESLint: Configuring ESLint - Disabling Rules with Inline Comments](https://eslint.org/docs/2.13.1/user-guide/configuring#disabling-rules-with-inline-comments)
Clickable link text for Android TextView — Kotlin Extension
Tags: android, kotlinextensionfun, androidtextview, kotlin
Published: 2020-01-13 12:11:06

---
title: Clickable link text for Android TextView — Kotlin Extension
published: true
date: 2020-01-02 00:53:57 UTC
tags: android,kotlin-extension-fun,android-textview,kotlin
canonical_url: https://medium.com/@hossainkhan/clickable-link-text-for-android-textview-kotlin-extension-a36b9e03180b
---

### Clickable link text for Android TextView — Kotlin Extension

Recently I have had to create UI that required user tappable/clickable text in the same text view. I know this is kind of unusual as the touch target for the view will likely be smaller compared to a button with no outline style. However, I wanted to share a quick Kotlin extension function that is dynamic and well tested.

![](https://cdn-images-1.medium.com/max/868/1*_xZdmLNOUR7vrQ-jQYomxA.png)<figcaption>Android TextView where “Register Now” is a tappable link with a callback.</figcaption>

Here is an example usage for generating clickable link within the same TextView

So, if your project requires something like this take a look at the following extension function for android.widget.TextView.

{% gist https://gist.github.com/amardeshbd/c0983ee766301f3ff706a4aa65d4e819 %}

You should be able to easily convert this to Java if needed. Let me know if you find this useful. Cheers ✌️
Android-Kotlin MVVM clean arch.
Tags: android
Published: 2020-01-15 07:11:35

https://github.com/furkanaskin/Weatherapp

Weatherapp is a simple forecast app, which uses some APIs to fetch 5 day / 3 hour forecast data from the OpenWeatherMap and to fetch places,cities,counties,coords etc. from Algolia Places. The main goal of this app is to be a sample of how to build an high quality Android application that uses the Architecture components, Dagger etc. in Kotlin.
Using pattern matching to compare two strings
Tags: elixir, todayilearned
Published: 2020-01-15 12:56:53

---
title: Using pattern matching to compare two strings
published: true
tags: elixir, todayilearned
canonical_url: https://til.ryanwill.dev/posts/f2kgyinezp-using-pattern-matching-to-compare-two-strings
---

Elixir’s pattern matching feature is the gift that keeps on giving. I love this neat trick to check if two strings are the same. It is an easy way to check if a password and password confirmation match.

```elixir
def passwords_match?(password, password), do: true

def passwords_match?(_, _), do: false

passwords_match?("password", "password") # true
passwords_match?("password", "notpassword") # false
```
Daily Developer Jokes - Thursday, Jan 16, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-01-16 13:00:15

---
title: "Daily Developer Jokes - Thursday, Jan 16, 2020"
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=Thursday%2C%20Jan%2016%2C%202020"
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/5e1258c20b362.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:___ Why did the computer keep sneezing?

___A:___ It had a virus!
 -->
How to use JetBrainsMono in VSCode (New font in the town)
Tags: opensource, vscode
Published: 2020-01-16 17:14:16

---
title: How to use JetBrainsMono in VSCode (New font in the town)
published: true
description: how to use JetBrainsMono in vs code
tags: opensource, vscode 
---

JetBrains has released a typeface for all of their IDEs and this is opensource!:blush: So, VSCode lovers or other IDE guys can also try this! For VSCode users- 

* Install the Font Pack in your computer (Guide is here-https://www.jetbrains.com/lp/mono/)
* Go to Preferences->Settings->Font and then change the font to JetBrains Mono. You can Follow this gif- 

![](https://imgbbb.com/images/2020/01/16/ezgif.com-video-to-gif.gif)

Use it or not, you should have a look at their site at least. It is great! People are twitting about it! 

{% twitter 1217558350201872384 %}
lesson 11
Published: 2020-01-19 22:25:55

1. Why do you think conditionals are important?
- Sometimes you want code to execute only if a certain condition is true, and in Swift that is represented primarily by the if and else statements. You give Swift a condition to check, then a block of code to execute if that condition is true.

2. Give a set of instructions on how you think a thermostat program should work and “bold/underline” the conditionals.
-
I'm Joining the Team at DEV
Tags: career, meta
Published: 2020-01-21 18:10:11

---
title: I'm Joining the Team at DEV
published: true
description: Some professional news
tags: career, meta
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ezurs3dxcwrnavib9obf.png
canonical_url: https://joshpuetz.com/2020/01/20/Im-joining-the-team-at-dev.html
---

This is my first week as a member of the team at DEV! I'm beyond excited to be joining this team of dedicated, passionate humans.

I've been a huge fan of the DEV community since way back when it started at @thepracticaldev on Twitter. As a longtime lurker (and very, very occasional contributor), I've learned so much from DEV community members sharing what they've learned. It's time to give back, and I'm excited to get started!

## A Little About Me

Hi there! 👋 I'm 42 years old, and live with my husband and daughter in Sturgeon Bay, Wisconsin: a tiny town on the shores of Lake Michigan. Our part of the state is in Door County, which is a popular tourist area: it's a peninsula full of beaches, state parks, and cherry orchards. My family has been vacationing here since I was a baby, and a few years ago we were lucky enough to finally make this place our home. Expect the #DoorCounty hastag on DEV to blow up now that I'm here 😂

I've been a software engineer for two decades, working mostly in small startups. Most of my development work over the past few years has been with Ruby: I started using Rails with version 0.9. For the past decade I've worked remotely: remote work has allowed me to remain in this industry despite living far from a metro area.

When I'm not writing software, I'm an avid chef, photographer, and gamer. I'm also one of those crazy CrossFit people 🏋️‍♂️

## Goals at DEV

The vast majority of my career has been spent in private, closed source software. I'm excited to be more involved with the open source community, and help DEV accomplish their longer term goals that Ben outlined in his [recent post](https://dev.to/devteam/the-future-of-dev-160n). I'm also going to be focused on helping the DEV team to be an even better remote team by lending my experiences working across multiple time zones.

Want to get in touch? My DM's are open here, and I'm also available on twitter ([@joshpuetz](https://twitter.com/joshpuetz)) or via email (josh@dev.to).
Erlang/OTP 18.0 で AES-GCM を使う
Tags: erlang
Published: 2020-01-21 03:16:17


Erlang/OTP 18.0 から AEAD な AES-GCM と ChaCha20-Poly1305 に対応しています。

AES-GCM は 128/256 です。とりあえず AES-GCM の 256 を試してみます。

crypto:supports/0 で ciphers の中に aes_gcm がいることを確認して下しださい。

chacha20_poly1305 は boringssl でしかまだ対応していないらしく、OpenSSL では非対応です。

## AES-GCM

crypto:block_encrypt(aes_gcm, Key, IV, {Nonce, Plain}) で使えます。戻りが {CipherText, CipherTag} なので気をつけてください。

```
Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V7.0  (abort with ^G)
> crypto:supports().
[{hashs,[md4,md5,sha,ripemd160,sha224,sha256,sha384,sha512]},
 {ciphers,[des_cbc,des_cfb,des3_cbc,des_ede3,blowfish_cbc,
           blowfish_cfb64,blowfish_ofb64,blowfish_ecb,aes_cbc128,
           aes_cfb8,aes_cfb128,aes_cbc256,rc2_cbc,aes_ctr,rc4,aes_ecb,
           des3_cbf,aes_ige256,aes_gcm]},
 {public_keys,[rsa,dss,dh,srp,ec_gf2m,ecdsa,ecdh]}]
> crypto:block_encrypt(aes_gcm, binary:copy(<<0>>, 32), binary:copy(<<0>>, 24), {<<"">>, <<"1234567890">>}).
{<<41,96,181,164,113,168,138,253,250,8>>,
 <<205,178,48,121,244,0,208,72,72,4,142,93,114,149,83,137>>}
> crypto:block_decrypt(aes_gcm, binary:copy(<<0>>, 32), binary:copy(<<0>>, 24), {<<"">>,  <<41,96,181,164,113,168,138,253,250,8>>, <<205,178,48,121,244,0,208,72,72,4,142,93,114,149,83,137>>}).
<<"1234567890">>
```
RDBMS or NoSQL: The question that pops up with every new project!
Tags: database, sql, nosql, backend
Published: 2020-01-22 05:48:42

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/74f1hg2gifjlnoszvea1.png)

Barun is starting his next software development assignment soon, but his biggest worry is - SQL or NoSQL and he is pondering about these questions:


* Which database to use for this new project?

* Should I use relational database or NoSQL?

* MongoDB is nice, it is schema-less and it does not require creating tables and normalize the structure, should I just select it for this project? 

* Or whether I just use cloud-native databases like Amazon DynamoDB or Cosmos DB? 

* No wait, I heard Redis can also be used for persistence and it is a key-value pair so that may also fit well here! The choices are endless...

Have you ever come across these questions or a debate on which database is right for your project? The decision depends on number of factors and there are dozens of articles available over internet explaining pros and cons of different options. I am not going to repeat them here. I am rather interested in documenting what some of the popular internet apps are using as their data store. I'd done this exercise in the past, but lost the record. While doing this exercise again, I thought this could be useful for wider #DEVCommunity.

> It would be interesting to know from you if you have gone through the process of making decision on choosing the right data store for your application. Feel free to add your comments to build this knowledge base.

+ Twitter - Twitter was built on MySQL and everything was stored in a single instance of database. However, as platform evolved, it is using number of different database technologies - MySQL, PostgreSQL, Vertica, Blobstore, Graph store, Hadoop. You can read more information about this [here](https://blog.twitter.com/engineering/en_us/topics/infrastructure/2017/the-infrastructure-behind-twitter-scale.html)


+ Facebook - MySQL, Memcached, Haystack (for photo storage), Hadoop and Hive. Read more about complete technology stack used by Facebook [here](https://royal.pingdom.com/the-software-behind-facebook)


+ Youtube - MySQL, Bigtable

+ LinkedIn - traditionally used Oracle and key-value stores such as Voldemort. But then moved to distributed data store, [Espresso](https://engineering.linkedin.com/espresso/introducing-espresso-linkedins-hot-new-distributed-document-store).

+ Instagram - [Instagram mainly uses two database systems: PostgreSQL and Cassandra.](https://instagram-engineering.com/instagration-pt-2-scaling-our-infrastructure-to-multiple-data-centers-5745cbad7834)

+ DEV.together - [PostgreSQL as primary datastore and Redis for cached data](docs.dev.to/technical-overview/stack/).

> Note: this information is collected from different forums, engineering blogs and Q&A sites, if you think anything is incorrect, feel free to point out, I will be happy to update the post.
quick backup of a file
Tags: bash
Published: 2020-01-21 15:23:41

Recently I started trying to get competent at bash's string expansion phase and realized I could do the following to backup a file:

`$ mv path/to/file.txt{,_}`

Then to restore the file, swap the , and _ in the brackets.

`$ mv path/to/file.txt{_,}`

String expansion is a step that runs before executing the shell command so what is really being run can be viewed with the following:

```
$ echo mv path/to/file.txt{_,}
mv path/to/file.txt path/to/file.txt_
```
How to create a maintenance system on a Symfony 4 project
Tags: webdev, tutorial, php, symfony
Published: 2020-01-21 15:47:28


https://www.titocode.fr/article-standard/11/Syst%C3%A8me-de-maintenance-sur-un-projet-Symfony-4

Here is a french version of "How to create a maintenance system on a Symfony 4 project"

Titocode.fr
30 principles to level-up your Soft Skills (Carnegie’s wisdom remix)
Tags: career, softskills, motivation
Published: 2020-01-21 19:00:56

---
title: 30 principles to level-up your Soft Skills (Carnegie’s wisdom remix)
published: true
description: 
tags: #career #softskills #motivation 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/mpmy2v6u7z3c03yqibtz.png
---
*Photo by Jens Johnsson on Unsplash*

**Note: I originally put this article together as a resource for developers joining their first remote developer team at [Chingu](https://www.chingu.io/). After a few years and thousands of remote developer collaborations launched, I remain convinced that soft skills are grossly underestimated. I hope you find this valuable.** 

Your Skills Stack should not be limited to just technical skills. 


## BECOME A FRIENDLIER PERSON
1. **Don’t criticize, condemn, or complain.**
2. **Give honest and sincere appreciation.**
3. Arouse in the other person an eager need or want.
4. **Become genuinely interested in other people.**
5. Smile.[emojis work just as well]
6. Remember that a person’s name is to that person the sweetest and most  important sound in any language.
7. **Be a good listener.** Encourage others to talk about themselves.
8. Talk in terms of the other person’s interests.
9. Make the other person feel important — and do it sincerely.
10. **The only way to get the best of an argument is to avoid it.**


## WIN PEOPLE TO YOUR WAY OF THINKING
1. **Show respect for other person’s opinions. Never say, “You’re wrong.”**
2. **If you are wrong, admit it quickly and emphatically.**
3. **Begin in a friendly way.**
4. Get the other person saying “yes, yes” immediately.
5. Let the other person do a a great deal of the talking.
6. Let the other person feel that the idea is his or hers.
7. **Try honestly to see things from the other persons point of view.**
8. **Be sympathetic with the other person’s ideas and desires.**
9. Appeal to the other nobler motives.
10. Dramatize your ideas.


## BE A LEADER
1. Throw down a challenge.
2. Begin with praise and honest appreciation.
3. Call attention to people’s mistakes indirectly.
4. **Talk about your own mistakes before criticizing the other person.**
5. Ask questions instead of giving direct orders.
6. Let the other person save face.
7. **Praise the slightest improvement and praise every improvement. Be “hearty in your appreciation and lavish in your praise.”**
8. **Give the other person a fine reputation to live up to.**
9. Use encouragement. Make the fault seem easy to correct.
10. Make the other person happy about doing the thing you suggest.

*All the above are Carnegie principles.*

{% youtube 0uMZi1gc0Nc %}
Basic linux commands
Tags: linux, bash, terminal
Published: 2020-01-21 18:51:53

# Basic linux commands
This is a list of all basic linux commands you should know. 
Of course this is my personal opinion. 
What do you think?

## Files and navigation
> ls - directory listing of current directory
> ls -l - formatted listing
> ls -la - formatted listing including hidden files
> cd dir - change directory to dir (dir = name of directory)
> cd .. - change to parent directory
> cd - change to home directory
> cd - - change to previous visited directory
> cd ../dir - change to dir in parent directory 
> pwd - show current directory
> mkdir dir - create a direcotry "dir"
> rm filename - delete file
> rm -f filename - force remove filename
> rm -r dir - delete directory 
> rm -rf dir - force delete of directory
> cp file1 file2 - copy file1 to file2
> mv file1 file2 - rename file1 to file2
> mv file1 dir/file2 - move file1 to dir as file2
> touch filename - create or update file
> cat file - output contents of file
> cat > file - write standard input into file
> cat >> file - append standard input into file
> tail -f file - outputs contents of file as it grows

## Networking
> ping host - ping the host
> whois domain - get whois for domain
> dig domain - get DNS for domain
> dig -x host - reverse lookup host
> wget file - download file
> wget -c file - continue stopped download
> wget -r url - recusivley download files from url
> curl url - outputs the webpage from url
> curl -o output.html url - writes the page to output.html
> ssh user@host - connect to host as user
> ssh -p port user@host - connect using port
> ssh -D user@host - connect & user bind port

## Processes
> ps - display currently active processes  
> ps aux - detailed outputs  

> kill pid - kill process with process id (pid)  
> killall proc - kill all processes named proc  

## System info
> date - show current date/time
> uptime - show uptime
> whoami - who you are logged in as 
> w - display who is online
> cat /proc/cpuinfo - display cpu info
> cat /proc/meminfo - memory info
> free - show memory and swap usage
> du - show directory space usage
> du -sh - displays readable sizes in GB
> df - show disk usage
> uname -a - show kernel config

## Compressing
> tar cf file.tar files - tar files into file.tar
> tar xf file.tar - untar into current directory
> tar tf file.tar - show contents of archive
> 
> options:
> * c - create archive
> * t - table of contents
> * x - extract
> * z - use zip/gzip
> * f - specify filename
> * j - bzip2 compression
> * w - ask for confirmation
> * k - do not overwrite
> * T - files from file
> * v - verbose 

## Permissions
> chmod octal file - change permissions of file
> * 4 - read (r)
> * 2 - write (w)
> * 1 - execute (x)
>  
> order: owner/group/world
>  
> chmod 777 - rwx for everyone
> chmod 755 - rw for owner, rx for group and world

## Some others
> grep pattern files - search in files for pattern  
> grep -r pattern dir - search for pattern recursively in directory  

> locate file - find all instances of file  
> whereis app - show possible locations of app  
> man command - show manual page for command
Top 5 DEV Comments from the Past Week
Tags: bestofdev
Published: 2020-01-21 23:13:14

---
title: Top 5 DEV Comments from the Past Week
published: true
description: Highlighting some of the best DEV comments from the past week.
tags: bestofdev
cover_image: https://res.cloudinary.com/practicaldev/image/fetch/s--7VrAA2ln--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/qmb5wkoeywj06pd7p8ku.png
---

This is a weekly roundup of awesome DEV comments that you may have missed.  You are welcome and encouraged to boost posts and comments yourself using the **[#bestofdev](/t/bestofdev)** tag.

@cassandraspruit leads things off by describing their answer to **[What are the hardest coding terms to search for?](https://dev.to/ben/what-are-the-hardest-coding-terms-to-search-for-2n9n)**:
{% devcomment ka9o %}

@tobiassn offers their opinion in **[What's the most wasteful software?](https://dev.to/ben/what-s-the-most-wasteful-software-l78)**:
{% devcomment kdma %}

@aleksandrhovhannisyan shares some useful perspective about perfection vs. progress in response to **[Clean code, dirty code, human code](https://dev.to/d_ir/clean-code-dirty-code-human-code-6nm)**:
{% devcomment keeg %}

The **[Tell me about the worst CSS you've ever had to deal with](https://dev.to/ben/tell-me-about-the-worst-css-you-ve-ever-had-to-deal-with-hf0)** thread had some great replies, but none better than @lukeshiru who talks about a true war of sorts:
{% devcomment k9ha %}

@ryansmith provides some great tips in response to **[Has your job impacted your physical health?](https://dev.to/jess/has-your-job-impacted-your-physical-health-4fbg)**:
{% devcomment kemb %}

See you next week for more great comments ✌
gmail mobile feature or bug ?
Tags: gmail, bug, feature
Published: 2020-01-22 06:39:17

when i go to my gmail sent items folder it lists me as having sent every email i would prefer to see everyone i had sent an email to (not from me) !

![gmail outbox every email was sent by me](https://thepracticaldev.s3.amazonaws.com/i/o9qml6o0gvcmd8ynhv4u.png)


btw the last time i spent hours logging a bug the unnamed vendor said it was a feature
Developing 30 JS Applications in 10 days
Tags: javascript, react, python, 100daysofcode
Published: 2020-01-22 08:57:39

30DaysOfJavaScript challenge has been running for 20 days. In this challenge students solve more than 500 JS problems and develop about 30 JS applications. 

Today is the 21 day and we will start developing applications. You can join us for 10 days of developing JavaScript application. In 10 days, you will master JavaScript by building applications and connecting dots.

💻  30DaysOfJavaScript Github: https://lnkd.in/efqy_df
💻  30DaysOfPython Github: https://lnkd.in/epW6d_U

Follow me on LinkedIn: https://www.linkedin.com/in/asabeneh/

👥 Join the 30DaysOfJavaScript group: https://lnkd.in/er7kdTE
👥 Join the 30DaysOfPython group:  https://lnkd.in/eE5Qgqd



📅 Start your new year or monthly resolution with coding.

Good Luck!! ✨
🔥🔥🔥
🖋Find synonyms in 15+ languages directly from your terminal
Tags: showdev, bash, writing, productivity
Published: 2020-01-22 13:31:12

I created a small bash utility to quickly find synonyms in 15 different languages directly from command line.

I couldn't imagine how handy this would be, specially when writing READMEs or using Vim 😄!

Thought I'd share it with you here!

Repo: https://github.com/smallwat3r/synonym