teleren/devto huggingface dataset:
Quick Demo! Three months of building.
Published: 2020-06-01 11:24:37

It has been a monster month at [Supabase](https://supabase.io) and we're back with a video update. It's a longer video this month because we have a couple of housekeeping items. 

## Housekeeping

We got into Y Combinator :tada:. The cohort has just started and it's fully remote so it will be a unique experience, even by normal YC standards.

Normally we wouldn't mention this until our official YC launch in September but the cat's out of the bag since @vira28 [posted about us on Hacker News](https://news.ycombinator.com/item?id=23319901).

We've seen a huge response from the tech community. We're still 'very alpha' so the attention may have been better in September but everyone has been patient with the bugs and instability. It just goes to show: ship early and often because nobody knows when you might get picked up.

## Updates

OK now for the important part - as promised, we will continue to release our updates here in the DEV community first. Skip to 1m18s in the video if you just want to see what we've been up to.

### Fresh UI

We've revamped the UI to fit in some more features that we're building. 

![Fresh UI](https://dev-to-uploads.s3.amazonaws.com/i/jzzm7u56ns6ega9uyc4j.png)


### Table View

This one is still very unstable, but we wanted to ship it anyway. It's a little hidden away so you'll have to hunt for it :). Give us a couple of months and we promise this will be as good as (better than?) Airtable.

![Table view](https://dev-to-uploads.s3.amazonaws.com/i/jalcaoz4lsp2b6wegah5.png)



#### And more

- ⚡ Realtime listeners! Subscribe to your database just like you would with Firebase.
- 🤖 Instant RESTful APIs that update when you update your schema. Supabase introspects your schema and updates your API and documentation.
- 📓 Auto-documentation for your APIs and Postgres schema. What's better than documentation? Documentation that you don't have to manually keep up to date.

We'll announce all our future features with more freebies here on DEV first. Follow us so that you don't miss out.

[Sign up](https://app.supabase.io)

![Follow](https://dev-to-uploads.s3.amazonaws.com/i/jf7adc5e3kbdu4luxvt4.gif)

And make sure to star us on github! 
[https://github.com/supabase/supabase](https://github.com/supabase/supabase)
54 : Opening up is important 
Published: 2020-06-01 10:36:35


My direction is changed! From hardcore working to Joyful art! JavaScript became the part of Art Project! :) 

We can solve problems in a variety of ways, why can it be only for Inductive Reasoning parties? I am totally happy with my deductive reasoning! Yes, Indeed! I want to know how to apply correctly... my curiosity likes to discover a lot at one time, and sometimes, I got lost... I guess I am coming back! 



##For the beginner... 

* Layout a simple webpage using HTML
* Style a website element using CSS
* Write and test software with JavaScript
* Inspect websites using Developer Tools on a modern web browser (Chrome, Firefox, or Edge)
* Debug and troubleshoot errors and failures in JavaScript programs
* Use Git for version control. 




---

##Why free mentorship?
In the process of providing value to the community, I have published tons and tons of free things. But unfortunately, no matter how good of work you’re doing, the first thing you have to do is to make yourself visible to the world.

I received this great piece of advice from my friend and the central engine guy of freeCodeCamp — Quincy Larson. The other day when we were having a call, he told me about the importance of putting your product in front of people first so they do not pick bad and paid options at first only to realize there exist better options.

This got me into thinking about how can I myself reach out to people first, and impact the developer community at the same time — right hitting at the problem source. A lot of good “future” developers are giving up on development every day because of no correct guidance or path they should follow. I want to start small but strong and this is where I think I could start.



[I'm providing free mentorship to aspiring developers!
](https://www.freecodecamp.org/news/free-mentorship-to-developers/)

--- 

#Warming up the brain! 
I recharged myself for a month, was pretty overwhelmed by the present situation, however, I noticed that I don't have to be changed, I just need to know 'WHY' and the self-expression is positive to figure out, always, the communication, the honesty is healthy to keep the optimism, what I want to do is completing my puzzle, by encoding in order, then we all know the answer inside, time to take an action even though there is another pain haha, learning is hard, but coding is so lovely job I have ever done! 

[Would you like to be brilliant?](https://brilliant.org/courses/)
Invert a Binary tree Leetcode solution
Tags: binarytree, leetcode, challenge, algorithm
Published: 2020-06-01 11:19:12


The *Leetcode June'20 challenge* has begun with a tree inversion problem. The problem is pretty simple, invert a tree or in other words create a mirror image of the tree.
The implementation of the tree is given and is nothing different from the usual, containing left and right child for each node. To understand the problem a basic knowledge of binary tree is required. However, if you are well-versed with this data structure, the solution is quite easy to figure out.

Here's a link to the problem, try it on your own before you go through the solution below. (https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3347/)

###Approach:
Travelling downward from the root of the tree, swap left and right child and call this same function recursively for each node of the tree. Pretty simple, eh?

C++ code:
```cpp
class Solution {
public:
    TreeNode* invertTree(TreeNode* root) {
        TreeNode *i= root;
        TreeNode *temp=NULL;
        while(i!=NULL)
        {
            temp=i->left;
            i->left=i->right;
            i->right=temp;
            TreeNode *l=invertTree(i->left);
            TreeNode *r=invertTree(i->right);
            if(i==root)
                break;
        }
        return root;
    }
};
```
What you need to know, beyond algos?
Tags: career, webdev, codenewbie
Published: 2020-06-01 11:18:58

We all know you should be good at **algorithm** solving to get good jobs. But is this the only skill we should have for our jobs? 🤔

What a lot of people don't know, algo solving is just a small subset of the skills companies are looking **when hiring** a developer. Some other important aspects are:

## Diverse range of problems solved under your belt
People care what problems you can solve so they can delegate similar problems to you.

Are you the guy who can set up **Web Apps**, **Web Apis**, optimize a database?

Can you navigate through thousands of lines of legacy code and find ways to **improve the codebase** & **fix bugs**?

## Know what technologies to pick for certain problems
Can you detect the problem domains in your application, like:
- CRUD for certain domain objects 
- Auth
- Data ingestion 
- Data visualization
- Searching
- Scraping
- etc.

Depending on a problem domain, can you choose the right tools for the job?

## Quickly understand technology stacks and the architectures of projects
How easy can you understand how a **new project** works? 

Can you understand **why** some technologies are used, and what is the overall **architecture** of the application? 

## Quickly identify code smells and architectural antipatterns
This means you can  pin-point the things that could be improved. And even better, **come up with solutions** to solve them.

If you like this article, chances are you will also enjoy what I post on [Twitter](https://twitter.com/alexandrudanpop). 🔥

More interesting reads: 
- [Becoming a better FE developer in 3 steps](https://dev.to/alexandrudanpop/becoming-a-better-fe-developer-in-3-steps-2khn)
- [Tips to boost productivity as a FE developer](https://dev.to/alexandrudanpop/tips-to-boost-productivity-as-a-fe-developer-2ig9)
- [Remote dev checklist](https://dev.to/alexandrudanpop/remote-dev-checklist-clk)
Algorithms Problem Solving: Subtract product and sum
Tags: algorithms, python, computerscience, interview
Published: 2020-06-01 11:16:07

---
title: Algorithms Problem Solving: Subtract product and sum
published: true
description: Solving algorithms problems with TK
tags: algorithms, python, computerscience, interview
cover_image: https://raw.githubusercontent.com/leandrotk/tk/master/series/algorithms-problem-solving/assets/math.jpg
canonical_url: https://leandrotk.github.io/tk/series/algorithms-problem-solving/subtract-product-and-sum.html
series: Algorithms Problem Solving Series
---

This post is part of the [Algorithms Problem Solving](https://leandrotk.github.io/tk/series/algorithms-problem-solving/index.html) series.

## Problem Description

This is the [Subtract Product and Sum](https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer) problem. The description looks like this:

Given an integer number n, return the difference between the product of its digits and the sum of its digits.

## Examples

```python
Input: n = 234
Output: 15

Input: n = 4421
Output: 21
```

## Solution

For each character, we transform it into an integer value, and then use as part of the multiplication and sum. At the top of the function scope, we define two variables: one for the multiplications and the other for the additions.

After the loop, we just need to return the subtraction between multiplications and additions.

```python
def subtract_product_and_sum(num):
    multiplications = 1
    additions = 0

    for digit in str(num):
        multiplications *= int(digit)
        additions += int(digit)

    return multiplications - additions
```

## Resources

- [Learning Python: From Zero to Hero](https://leandrotk.github.io/tk/2017/09/learning-python-from-zero-to-hero/index.html)
- [Algorithms Problem Solving Series](https://leandrotk.github.io/tk/series/algorithms-problem-solving/index.html)
- [Big-O Notation For Coding Interviews and Beyond](https://www.educative.io/courses/big-o-notation-for-interviews-and-beyond?aff=x8bV)
- [Learn Python from Scratch](https://www.educative.io/courses/learn-python-from-scratch?aff=x8bV)
- [Learn Object-Oriented Programming in Python](https://www.educative.io/courses/learn-object-oriented-programming-in-python?aff=x8bV)
- [Data Structures in Python: An Interview Refresher](https://www.educative.io/courses/data-structures-in-python-an-interview-refresher?aff=x8bV)
- [Data Structures and Algorithms in Python](https://www.educative.io/courses/ds-and-algorithms-in-python?aff=x8bV)
- [Data Structures for Coding Interviews in Python](https://www.educative.io/courses/data-structures-coding-interviews-python?aff=x8bV)
- [One Month Python Course](https://mbsy.co/lG6tv)
How to create your first rollup plugin
Tags: rollup, plugin, javascript
Published: 2020-06-01 11:13:54

**[Rollup](https://rollupjs.org/guide/en)** is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application

# Getting Started
  * Create `copyFile` function 
    - `name` is the name of your plugin
    - `targets` array of src and dest
    - `hook` it is `buildEnd` (execute after bundling) or `buildStart` (execute before bundling) 
  ```javascript
const copyFile = (options = {}) => {
  const { targets = [], hook = 'buildEnd' } = options
  return {
    name: 'copy-file',
    [hook]: async() => {

    }
  }
} 
  ``` 
 * Copy file implementations
  - Lets add dependencies and add some codes
  - Since `targets` is array let's loop thru each target
  - when `target.dest` is not exist create the directory
  - then copy and override the file if exist
  - now we can exports our copyFile plugin
  ```javascript
  const { basename, join } = require('path')
  const fs = require('fs/promises')
   
    ...
    [hook]: () => {
      targets.forEach(async target => {
        await fs.mkdir(target.dest, { recursive: true })

        const destPath = join(target.dest, basename(target.src))
        await fs.copyFile(target.src, destPath)
      })
    }
    ...

   module.exports = copyFile
  ```
  
* Create `rollup.config.js` and use our copyFile plugin
 ```javascript
const copyFile = require('./plugin')

export default {
  input: './src/index.js',
  plugins: [
    copyFile({
      targets: [
        { src: './index.html', dest: 'dist' }
      ]
    })
  ],
  output: {
    file: './dist/index.js',
    format: 'es'
  }
}
 ```
What's buzz about Machine Learning?
Tags: machinelearning, beginners, datascience, deeplearning
Published: 2020-06-01 11:05:25

> The cover image has been taken from [here](http://www1.semi.org/en/semi-arizona-forum-artificial-intelligence-machine-learning-deep-learning-applications-0).

#So what is Machine learning?
Machine learning, in simple words, is to learn from data or extracting knowledge from data. It is a part of both data science and artificial intelligence. It incorporates the use of statistics, algebra, probability and computer science. 

---

#Why do we need it?
Think of spam filters or movie recommendation systems. How do these work? They both make use of machine learning or predictive analysis. What if spam filters stopped learning from data? Then, you would have to use a handcoded approach to write the logic rules to classify an incoming mail as spam or not. This method would be complex and tedious. One more case where this handcoded approach fails is in detection of faces in an image.

Using machine learning, however, we can create a large collection of  images of faces, which will be enough for an algorithm to determine the characteristics that are essential for face identification.

---

#Use cases
* To classify tumors based on their classes
* For rainfall forecasting
* Checking for frauds in banking activity
* To recognize digits from images

---

#Difference between Machine Learning, Artificial Intelligence and Deep Learning
Machine learning is a subset of Artificial Intelligence. Deep learning, in turn, is a subset of Machine Learning.

AI is "Human intelligence exhibited by machines"

ML is "Approach to achieve AI"

DL is "Technique to implement ML"

![https://geospatialmedia.s3.amazonaws.com/wp-content/uploads/2017/05/AAEAAQAAAAAAAAhPAAAAJDlkMWMwNTA1LTZkZjUtNDA5MS1hYT.jpg](https://geospatialmedia.s3.amazonaws.com/wp-content/uploads/2017/05/AAEAAQAAAAAAAAhPAAAAJDlkMWMwNTA1LTZkZjUtNDA5MS1hYT.jpg)

---

#Languages used for Machine Learning

| Language      | Description   |
| ------------- |:-------------:| 
| Python     | Extremely popular, open source and highly dynamic. | 
| R      | Dynamic, array-based, multi-paradigm language.      |  
| C++ | One of the oldest, useful for computer vision.  |
| Julia | High-performance numerical model analysis essential for ML. |

![https://www.houseofbots.com/images/news/11501/0img.png](https://www.houseofbots.com/images/news/11501/0img.png)

---
Let's read No Hard Feelings together!
Tags: book, career, books
Published: 2020-06-01 10:43:43

---
title: Let's read No Hard Feelings together!
published: true
description: Join a developer book club and become a better developer in 2020.
tags: book,career,discuss,books
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/f5jr8ytkxmimdgnsev1p.jpg
---
I run a book club for developers, where we select a book to read together and discuss it in a Telegram group.

So far, we have read Clean Code (Jan), The Pragmatic Programmer (Feb), Don't Make Me Think! (Mar), Elon Musk (Apr), and Head First Design Patterns (May). June's pick is No Hard Feelings: The Secret Power of Embracing Emotions at Work. It's a pretty recent book (2019) and has been recommended a lot.

We'll have weekly sessions where we read the book together (2 chapters every week) on a Zoom call. Join us and become a better developer in 2020!

👉 [Link to join Telegram group](t.me/dxclub) 👈
👉 [Previous Picks](dxclub.io/books) 👈
The world Of Machine Learning
Published: 2020-06-01 10:25:23

In the present scenario, the field that gains the most importance is Artificial Intelligence. Be it in Healthcare, Crime Investigation or Studies, Artificial Intelligence has its primary footprint in every sector around us. Machine Learning is a field coming under Artificial Intelligence where Machines are trained to perform various tasks the same way as humans perform. Early 2000's saw the emergence of Machine learning. Now, It has gained a lot of importance in today's world. Systems that get smarter and smarter over time without human intervention.

Machine learning proves that even machines can learn from experience and can be trained in such a way to perform tasks with approximately human accuracy. The present era has also seen the rise of symbolic learning. Symbolic learning aims to instill emotions in machines so that they attain the ability to think.Deep learning can now effectively deal and learn from experience on large data sets.  Computer Vision has faced a very good advancement , that now, we are able to detect objects and categorize them.

Being the most promising field in the present Scenario, Machine Learning and Deep Learning arises giving immense opportunity for enthusiastic learners to explore. Learning and Exploring the world of Artificial Intelligence stands out of all odds!
Job Assistant - Virtual Assistant Jobs From Home No Experience
Tags: jobs, onlinejobs, bestjobs
Published: 2020-06-01 10:17:21

From the little research that exists, the average North American virtual assistant earns between $35-50 per hour.

This is going to depend on your experience, skill-set, and areas of expertise.

The more specialized your services and the more experience you have, the more you can charge.

I’ve seen people in our community charge as little as $15 per hour and others earn more than $100 per hour (including myself). Ultimately it comes down to being really good at what you do and finding clients that value what you’re offering them.

How quickly you start earning honestly depends on how quickly (and frequently) you start putting yourself out there for hire.

In my opinion, contracting and working virtually is the way of the future.

People (clients and virtual assistants alike) crave increased flexibility. And what better way to obtain it than to build a business and/or team virtually?

Clients (typically small business owners, entrepreneurs, etc.) aren’t always looking to manage people or take on full-time help. Instead, they’d like to contract out for specific services they need help with. It makes it a win/win for both parties!

This gives you the opportunity to charge per job and not per hour, which can give you a much higher profit.
Are you ready to become a virtual assistant?
Invest in your future today! Don’t listen to people that tell you that you can’t have it all:

A happy life
A business that gives you money but also…
Time for yourself to do what you want
You just need to believe in yourself and start working for you!

https://jobassistant.info/
پایتون برای ورود به دنیای موبایل آماده# می‌شود؛ آینده‌ای مبهم
Published: 2020-06-01 10:14:14

چند سالی است که شاهدیم زبان برنامه نویسی پایتون، به دلیل کاربردهایی مانند یادگیری ماشین، بیشتر از گذشته مورد توجه توسعه دهندگان قرار گرفته است. با این وجود، این استقبال هنوز در دنیای موبایل ایجاد نشده است و هنوز برنامه‌های محدودی هستند که به وسیله پایتون برای موبایل توسعه داده شده‌اند. مسئله اینجاست که توسعه دهندگان پایتون برای انتشار اپلیکیشن‌های موبایلی خود در فروشگاه‌های رسمی موبایلی، با مشکلات زیادی مواجه هستند.

با این حال عده‌ای از توسعه دهندگان معروف و معتبر پایتون هستند که به آینده این زبان برنامه نویسی برای دو سیستم عامل عمده موبایلی، یعنی اندروید و iOS امیدوارند. به عنوان یکی از این افراد، می‌توانیم گویدو وان راسم اشاره کنیم.

تلاش برای ورود پایتون به دنیای موبایل
یکی از پروژه‌های و تلاش‌هایی که برای ورود پایتون به دنیای موبایل صورت گرفته است، پروژه متن باز BeeWare است که توسط راسل کیت مگی ایجاد شده و مدیریت می‌شود. این پروژه در اصل CPython را به اندروید پورت می‌کند. درواقع این پروژه به توسعه دهندگان این امکان را می‌دهد که اپلیکیشن مورد نظرشان را با زبان پایتون برنامه نویسی کنند و سپس با استفاده از ویجت‌های رابط کاربری، آن برنامه را پلتفرم مقصد، مثلا اندروید پورت کنند.

https://faceit.ir/articles/python-in-mobile-world/
4 tips for creating habits
Tags: engineeringmonday, habits, productivity
Published: 2020-06-01 10:05:34

---
title: 4 tips for creating habits
published: true
description: 
tags: engineeringmonday, habits, productivity
---
Here are some important things when it comes to creating habits. 
Implementing some of these ideas will increase your chances of success.

## 1. Never miss twice
You’re allowed to skip once. This rule will prevent you from the _all or nothing_ mentality which people usually accept for some reason.

## 2. It takes time (compound interest)
Get 1% better each day and in 1 year you’ll be 38 times better (3800% increase). And here’s math to prove it: 1.01^365 ≈ 38 🙂
But. On day 10 you'll be "just" 10% better and result won't be spectacular or you might not even notice them.

## 3. Keep the difficulty in just the right zone
In order to be motivated, don’t ask too much of yourself in the beginning. If I want to achieve typing faster by typing 20 minutes daily, I would start typing everyday for 5 minutes (and then increase the duration over time).

## 4. Start small
If you are creating a habit to start running, for example, and you’re feeling hesitant at the moment, put your running shoes on. You’ll play a little trick on yourself. 🙂

These concepts or rules can be used in many situations. 
What are your experiences? Do you have any tips?