teleren/devto huggingface dataset:
All About Tableau
Published: 2022-06-14 07:29:57


## What is Tableau?

Tableau is a Business Intelligence / Analyst tool that enables users to analyze, manipulate, visualize and share data.
It was developed as a tool for a user to create graphics without a programming or tech heavy background.

"[the founders] basically combined the structured query language (SQL) with graphics and invented a database visualization language called VizQL, i.e. Visual Query Language. 

Tableau converts the relational databases, cubes, cloud database, and spreadsheets to dashboards and shares over the internet." (1)

Tableau was founded in 2003 by a group of Stanford students- Chris Stolte, Pat Hanrahan, and Christian Chabot. It was acquired by Salesforce in 2019. (2)


Once data is selected, prepped, and modeled in Python/ R. This data set is then able to be exported to Tableau. Data can be continually added without losing integrity. 

**What are the main alternatives or competitors to this tool/library?**
Excel 
PowerBI
More robust than either of these.

**Advantages**
One of the advantages to Tableau is that requires minimal coding skills. It can help provide answers to specific questions. It is also user friendly when it comes to data integration and manipulation.

Something interesting to note - you cant use tableau in python, there isn't a module for it. But you can use python in tableau. 

**Tutorials**
{% embed https://www.tableau.com/learn/tutorials/on-demand/getting-started-part6?playlist=391099 %}

{% embed https://onware.com/tableau-product-and-licenses/ %}

{% embed https://www.tableau.com/learn/tutorials/on-demand/getting-started-part8?playlist=391099 %}

{% embed https://www.tableau.com/learn/tutorials/on-demand/getting-started-part9?playlist=391099 %}


**Dashboard examples:**

{% embed https://www.cu.edu/blog/uis-news/enterprise-tableau-server-project-begins-roll-out-psc %}


{% embed https://www.tableau.com/en-gb/products %}


{% embed https://www.tableau.com/about/blog/contributors/mark-rabins %}


{% embed https://www.decisionscience.bi/tableau-server/ %}

**For more info see**

1. Tableau Tutorial For Beginners – Learn What is Tableau Data Visualization. (n.d.). Retrieved June 14, 2022, from https://data-flair.training/blogs/tableau-tutorial/

2. What is tableau? Tableau. (n.d.). Retrieved June 14, 2022, from https://www.tableau.com/why-tableau/what-is-tableau
Face Recognition App In Flutter Using TensorflowLite & Google ML KIT
Tags: flutter, tensorflowlite, machinelearning
Published: 2022-06-14 07:23:26

Hey developers, I have created a face recognition authentication app in flutter using TensorFlowLite and Google ML KIT. If you are interested in the work and explanation then I've created a complete YouTube video mentioned below. Also, I've linked the GitHub repo in the description box so feel free to check it out well!

{% youtube c2JNZ8nxCCU %}


## Source code

Source Code is Available in the description box below in the video. So do check it out...

## Subscribe For More

[![YouTube](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lvjpg9zn6xfcdkfxhl0x.png)](https://www.youtube.com/channel/UCLO_mjF4nvD4wYnTYRlYXsA?sub_confirmation=1)

## Contact Me

Website: [yashmakan.co.in](http://yashmakan.co.in)

Twitter: [@Yash_Makan](https://twitter.com/Yash_Makan)

## Other Interesting Articles

- [21 must-read books for kids, beginner, advanced & interview with PDF 🐍](https://dev.to/yash_makan/21-must-read-books-for-kids-begineer-advanced-interview-with-pdf-56c7)
- [Improve your workflow using Automation in Python](https://dev.to/yash_makan/everything-about-automation-in-python-pc-mobile-web-raspberry-pi-4cgh)
- [4 ways to create modern GUI in python in the easiest way possible](https://dev.to/yash_makan/4-ways-to-create-modern-gui-in-python-in-easiest-way-possible-5e0e)
- [4 Free hosting platforms for python web app with step-by-step process](https://dev.to/yash_makan/4-best-python-web-app-hosting-services-for-freewith-complete-process-57nb)
- [18 Python one-liners that will speed up your coding process.](https://dev.to/yash_makan/18-python-one-liners-that-will-speed-up-your-coding-process-21md)
- [AI bot that could answer your questions](https://dev.to/yash_makan/ai-bot-that-could-answer-any-questions-asked-gmn)
- [Generate your own favourite TV episode using python](https://dev.to/yash_makan/generate-your-own-favourite-tv-episode-using-python-1pb3)
Common Ninja Platform News: Storage API | Payment Trials | Webhooks Management
Tags: ecommerce, storage, api, webdev
Published: 2022-06-14 07:15:07

We are very excited to share with you recent news and updates related to our [developer platform](https://www.commoninja.com).

This month we announce the new Storage API, a full support in payment trials, and a brand new webhooks management tool.

Just to remind you, the Common Ninja Developer Platform allows you to **build** & **monetize** apps for e-commerce platforms very easily. With our universal e-commerce API you can build your app once, and integrate it with multiple platforms like Shopify, BigCommerce, Wix, WooCommerce, and more. There's no need to rebuild the app and make it work on every platform individually.

---

🎉 What’s New:

- Storage API
- Payment trials support
- Webhooks management tool

---

## Storage API

Earlier this month we announced the new Storage API and platform integrations - an easy way for adding storage capabilities to any e-commerce app.

The new API is simple and you can decide whether you want Common Ninja to manage your storage, or to integrate it with your own AWS S3 bucket.

We wrote a detailed article about the motivation behind it as well as how to start using it. See below:
[https://dev.to/commonninja/announcing-common-ninja-storage-a-simple-api-for-adding-storage-capabilities-to-e-commerce-apps-2dii](https://dev.to/commonninja/announcing-common-ninja-storage-a-simple-api-for-adding-storage-capabilities-to-e-commerce-apps-2dii)

---


![Trial setting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b1pn80kuuu3yxgheneb9.png)

## Payment Trials

Last month we introduced the new payments capabilities that will allow you to seamlessly monetize your app by connecting it to popular payments platforms like Stripe, PayPal, Paddle, BlueSnap, and Shopify app payments solution.

With Payments you can create payment plans and set the amount and period you want to charge your users. 

A new feature that we added is payment trials that enables you to set time so your users will be able to test your app for free before they start paying.

---

![Webhooks Management Tool](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tagldrvy7eqr8ydhnkh7.png)

## Webhooks Management Tool

One of the most difficult thing to track and debug when you're developing an app is webhook messages that being sent by 3rd party platform and being received by your server. This is why we developed the new Webhooks Management Tool. With the new tool you can:

- Create multiple webhooks
- Resend webhook messages
- View messages' payload, request, status code, and error.

The new tool is available under the "Webhooks" menu item in the [Common Ninja app's dashboard](https://www.commoninja.com/developer/apps).

---

If you have any specific requests or ideas, we'll be more than happy to [hear them](mailto:contact@commoninja.com) 🙂


## 📚 Learn more

You can use the following resources to learn more and get help:

📜 [Common Ninja Docs](https://docs.commoninja.com)
💬 [Discord Community](https://discord.com/invite/cxqUTbvMNd)
Max Number of K-Sum Pairs
Tags: leetcode, dsa, theabbie
Published: 2022-06-14 07:00:47

You are given an integer array `nums` and an integer `k`.

In one operation, you can pick two numbers from the array whose sum equals `k` and remove them from the array.

Return _the maximum number of operations you can perform on the array_.

**Example 1:**

**Input:** nums = \[1,2,3,4\], k = 5
**Output:** 2
**Explanation:** Starting with nums = \[1,2,3,4\]:
- Remove numbers 1 and 4, then nums = \[2,3\]
- Remove numbers 2 and 3, then nums = \[\]
There are no more pairs that sum up to 5, hence a total of 2 operations.

**Example 2:**

**Input:** nums = \[3,1,3,4,3\], k = 6
**Output:** 1
**Explanation:** Starting with nums = \[3,1,3,4,3\]:
- Remove the first two 3's, then nums = \[1,4,3\]
There are no more pairs that sum up to 6, hence a total of 1 operation.

**Constraints:**

*   `1 <= nums.length <= 105`
*   `1 <= nums[i] <= 109`
*   `1 <= k <= 109`

**SOLUTION:**

    from collections import Counter
    
    class Solution:
        def maxOperations(self, nums: List[int], k: int) -> int:
            pairs = 0
            ctr = Counter(nums)
            for num in ctr:
                if 2 * num <= k and (k - num) in ctr:
                    a = ctr[num]
                    b = ctr[k - num]
                    if 2 * num == k:
                        pairs += a // 2
                    else:
                        pairs += min(a, b)
            return pairs
Amazon Web Services Cloud Migration
Tags: aws
Published: 2022-06-14 06:51:37

Today, businesses face a myriad of issues, many of which can be addressed through cloud computing. This is the reason why AWS cloud migration is expected to be a boon to businesses that have experienced a sudden rise in traffic, or for people seeking a faster deployment of apps. It can also be beneficial for companies that are cautious and want to protect their data centers from downtimes and other. After we have figured out the reasons why you need. Learn more about AWS and the AWS services by taking an [AWS Certification](https://www.edureka.co/aws-certification-training).

**AWS cloud migration let's take a to look at the different stages of the process:**

**Discover:**

The process starts with the determination of which elements in the application, applications and services. are able to be transferred into the cloud.

**Evaluation:**

 Based on the kind of data being used it is necessary to select the migration method and the resources needed to achieve this.
Prototype After determining the specifics of the move, it is important to consider what and exactly where your project is saved, i.e. testing workloads, becoming familiar the AWS Storage Service, etc.

**Migration:**

Once you have everything in place now is the time to switch over to AWS Cloud.

**Cloud operation:**

Be prepared to incorporate AWS-driven updates to your current architecture after your system has been moved to AWS.
Find And Replace in String
Tags: leetcode, dsa, theabbie
Published: 2022-06-14 06:30:40

You are given a **0-indexed** string `s` that you must perform `k` replacement operations on. The replacement operations are given as three **0-indexed** parallel arrays, `indices`, `sources`, and `targets`, all of length `k`.

To complete the `ith` replacement operation:

1.  Check if the **substring** `sources[i]` occurs at index `indices[i]` in the **original string** `s`.
2.  If it does not occur, **do nothing**.
3.  Otherwise if it does occur, **replace** that substring with `targets[i]`.

For example, if `s = "abcd"`, `indices[i] = 0`, `sources[i] = "ab"`, and `targets[i] = "eee"`, then the result of this replacement will be `"eeecd"`.

All replacement operations must occur **simultaneously**, meaning the replacement operations should not affect the indexing of each other. The testcases will be generated such that the replacements will **not overlap**.

*   For example, a testcase with `s = "abc"`, `indices = [0, 1]`, and `sources = ["ab","bc"]` will not be generated because the `"ab"` and `"bc"` replacements overlap.

Return _the **resulting string** after performing all replacement operations on_ `s`.

A **substring** is a contiguous sequence of characters in a string.

**Example 1:**

![](https://assets.leetcode.com/uploads/2021/06/12/833-ex1.png)

**Input:** s = "abcd", indices = \[0, 2\], sources = \["a", "cd"\], targets = \["eee", "ffff"\]
**Output:** "eeebffff"
**Explanation:**
"a" occurs at index 0 in s, so we replace it with "eee".
"cd" occurs at index 2 in s, so we replace it with "ffff".

**Example 2:**

![](https://assets.leetcode.com/uploads/2021/06/12/833-ex2-1.png)

**Input:** s = "abcd", indices = \[0, 2\], sources = \["ab","ec"\], targets = \["eee","ffff"\]
**Output:** "eeecd"
**Explanation:**
"ab" occurs at index 0 in s, so we replace it with "eee".
"ec" does not occur at index 2 in s, so we do nothing.

**Constraints:**

*   `1 <= s.length <= 1000`
*   `k == indices.length == sources.length == targets.length`
*   `1 <= k <= 100`
*   `0 <= indexes[i] < s.length`
*   `1 <= sources[i].length, targets[i].length <= 50`
*   `s` consists of only lowercase English letters.
*   `sources[i]` and `targets[i]` consist of only lowercase English letters.

**SOLUTION:**

    class Solution:
        def findReplaceString(self, s: str, indices: List[int], sources: List[str], targets: List[str]) -> str:
            n = len(indices)
            op = list(s)
            for i in range(n):
                if s[indices[i]:indices[i]+len(sources[i])] == sources[i]:
                    op[indices[i]] = targets[i]
                    for j in range(indices[i] + 1, indices[i] + len(sources[i])):
                        op[j] = ""
            return "".join(op)
Select Box And Scroll Vue js 2 and Bootsrap 5
Tags: codepen, javascript, vue, mobile
Published: 2022-06-14 06:30:17

<p>Tried to use api in this project and that the work is somewhat similar to the site <a href="https://css-tricks.com" target="_blank">https://css-tricks.com</a>
@csstricks</p>

{% codepen https://codepen.io/mazdevelop100/pen/PoGMRPR %}
Effect of educational games on kids and teenagers
Tags: gamedev, beginners, math, programming
Published: 2022-06-14 06:27:28

Adults always tell us to not play games for prolonged periods. But, they encourage playing educational games. Are educational games really better compared to traditional learning?

Short answer: yes. They most probably do.

While there is no definite answer and studies are still ongoing, many studies favour video games being better than traditional learning. 

In a study from 2006, the experimenter developed a game for students with dyscalculia. The students were given 5 weeks to complete the game. It was found that all students could solve numerical tasks better and had a boost in their confidence!

Various other studies conducted from 2000 to 2010 support this claim. All of them say educational video games are why their perception of mathematics improved; they got motivation and were able to perform better.

A study covered on CNN in 2016 shows that students who spent more time gaming than browsing social media performed 4% higher.

A Stanford study states that games today focus more on teaching skills rather than the ability to think. They focus on retention rather than understanding. 

And I agree with that study. Games can bring about a revolution in the education industry. Education approaches might be entirely different for the next generation. We need to reduce today's rote-learning strategies with more practical-based learning. If we can somehow make engaging games which will also help the player develop an ability to think, education all across the globe could be revolutionised and made a lot better.

I truly admire all the companies making educational games and trying to make students' lives easier. I am a student, and using games to learn helps me understand and solidify concepts quicker. In this 'information era', game-based learning can significantly improve education.

This is precisely what engineer Harshad Saykhedkar (https://www.linkedin.com/in/harshadss/) and I are trying to do at Pledu Interactive. We're creating science-based courses with many games to help students learn concepts. Check Pledu Interactive out at: https://pledu.co.

Socials: https://twitter.com/SifarJirgale
https://www.reddit.com/user/JuliusCheesy
https://www.linkedin.com/in/sifarjirgale/

Email (for inquiries): sifar@jirgale.com

Thanks for reading!
Longest Univalue Path
Tags: leetcode, dsa, theabbie
Published: 2022-06-14 06:00:44

Given the `root` of a binary tree, return _the length of the longest path, where each node in the path has the same value_. This path may or may not pass through the root.

**The length of the path** between two nodes is represented by the number of edges between them.

**Example 1:**

![](https://assets.leetcode.com/uploads/2020/10/13/ex1.jpg)

**Input:** root = \[5,4,5,1,1,5\]
**Output:** 2

**Example 2:**

![](https://assets.leetcode.com/uploads/2020/10/13/ex2.jpg)

**Input:** root = \[1,4,5,4,4,5\]
**Output:** 2

**Constraints:**

*   The number of nodes in the tree is in the range `[0, 104]`.
*   `-1000 <= Node.val <= 1000`
*   The depth of the tree will not exceed `1000`.

**SOLUTION:**

    # Definition for a binary tree node.
    # class TreeNode:
    #     def __init__(self, val=0, left=None, right=None):
    #         self.val = val
    #         self.left = left
    #         self.right = right
    class Solution:
        def mlen(self, root):
            if not root:
                return 0
            l = self.mlen(root.left)
            r = self.mlen(root.right)
            mpath = 1
            if root.left and root.left.val == root.val:
                mpath = max(mpath, 1 + l)
                self.pathlen = max(self.pathlen, 1 + l)
            if root.right and root.right.val == root.val:
                mpath = max(mpath,  1 + r)
                self.pathlen = max(self.pathlen, 1 + r)
            if root.left and root.right and root.val == root.left.val == root.right.val:
                self.pathlen = max(self.pathlen, l + r + 1)
            return mpath
        
        def longestUnivaluePath(self, root: Optional[TreeNode]) -> int:
            self.pathlen = 0
            self.mlen(root)
            return max(self.pathlen - 1, 0)
Arm7 Projects With Source Code
Tags: arm7, programming, tutorial, embedded
Published: 2022-06-14 05:49:19

This article is regarding ARM7 based mostly LPC2148 microcontroller, design and pin configuration. this text can assist you to grasp the fundamentals of the microcontroller.
	
Engineering student projects for B.Tech and M.Tech final year students. Takeoff Edu Group offers a wide range of projects best for [arm7 projects with source code](https://takeoffprojects.com/arm7-projects-with-source-code) looking for magnificent final projects at low cost. 

We have successfully delivered wind energy projects to our engineering students. Our programs are specially designed by experts for best results of arm7 projects with source code for engineering students. max of the B.Tech, M.Tech, PhD and Diploma scholars.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/953be1l6orjvzigwxhkl.png)
 
Takeoff Edu Group provides the most creative conceptions and ideas that can make very effective final year projects for scholars, experimenters, and engineers. So browse through our list of [arm7 projects with source code](https://www.youtube.com/watch?v=AcNMu7XBbcg) and choose the smart final year projects for your requirements.
 
The full form of an ARM is an advanced reduced instruction set pc (RISC) machine, and it's a 32-bit processor design enlarged by ARM holdings. The applications of an ARM processor embrace many microcontrollers additionally as processors. The design of an ARM processor was authorized by several firms for planning ARM processor-based SoC product and CPUs. This permits the companies to manufacture their product exploitation ARM design. Likewise, all main semiconductor firms can build ARM-based SOCs like Samsung, Atmel, TI etc.
 
ARM7 processor is usually utilized in embedded system applications. Also, it's a balance among classic also as new-Cortex sequences. This processor is tremendous to find the resources existing on the web with excellence documentation offered by NXP Semiconductors. It suits fully for an apprentice to get intimately hardware & software system design implementation.
🦀 browser extension to explore rust cargo dependencies on GitHub repos
Tags: rust, svelte
Published: 2022-06-14 05:42:53

---
title: 🦀 browser extension to explore rust cargo dependencies on GitHub repos
published: true
description: On every GitHub repository or folder with a Cargo.toml file, scroll to the bottom of the page to see a list of its npm dependencies and their descriptions.
tags: rust,svelte
---
## cratehub

On every GitHub repository or folder with a Cargo.toml file, scroll to the bottom of the page to see a list of its npm dependencies and their descriptions.

cratehub also adds convenient links to:

- the Cargo.toml file
- crate info
- support create data copy (eg: rustfmt-nightly = "1.4.21")
- Cargo.toml Workspaces
- crates.io
- rust docs
- rust playground

GitHub Enterprise is also supported by right-clicking on cratehub's icon in the toolbar and selecting Enable cratehub on this domain.

## Design
Here's what cratehub looks like:

![cratehub on Chrome](https://user-images.githubusercontent.com/12692552/173165981-414dc36d-a11b-4e09-b92f-7c1333f84ea0.png)

cratehub on Chrome

## Installation

- Chrome: [link](https://chrome.google.com/webstore/detail/createhub/ipcffemefdnmgnhkpdkenddfoebpejei)
- Firefox: [link](https://addons.mozilla.org/addon/cratehub/)


🥳Github repo: https://github.com/hehehai/cratehub
Select button in html
Tags: javascript, html, jquery
Published: 2022-06-14 05:38:08

So basically I created a web page on which if a button (with id = 1) is clicked then django send an html button (with id = 2) to that web page. Now, according to static files button 2 is not going to be selected by `getElementById`. So my question is how could I select button (with id = 2) to do another task on clicking that button (with id 2) using js specifically.
Car Pooling
Tags: leetcode, dsa, theabbie
Published: 2022-06-14 05:30:37

There is a car with `capacity` empty seats. The vehicle only drives east (i.e., it cannot turn around and drive west).

You are given the integer `capacity` and an array `trips` where `trips[i] = [numPassengersi, fromi, toi]` indicates that the `ith` trip has `numPassengersi` passengers and the locations to pick them up and drop them off are `fromi` and `toi` respectively. The locations are given as the number of kilometers due east from the car's initial location.

Return `true` _if it is possible to pick up and drop off all passengers for all the given trips, or_ `false` _otherwise_.

**Example 1:**

**Input:** trips = \[\[2,1,5\],\[3,3,7\]\], capacity = 4
**Output:** false

**Example 2:**

**Input:** trips = \[\[2,1,5\],\[3,3,7\]\], capacity = 5
**Output:** true

**Constraints:**

*   `1 <= trips.length <= 1000`
*   `trips[i].length == 3`
*   `1 <= numPassengersi <= 100`
*   `0 <= fromi < toi <= 1000`
*   `1 <= capacity <= 105`

**SOLUTION:**

    import heapq
    
    class Solution:
        def carPooling(self, trips: List[List[int]], capacity: int) -> bool:
            n = len(trips)
            points = []
            for i in range(n):
                num, source, dest = trips[i]
                heapq.heappush(points, (source, num))
                heapq.heappush(points, (dest, -num))
            curr = 0
            while len(points) > 0:
                curr += heapq.heappop(points)[1]
                if curr > capacity:
                    return False
            return True