teleren/devto huggingface dataset:
Testing for Children Sum Property in a Binary Tree
Tags: 100daysofcode, javascript, programming, webdev
Published: 2022-06-24 13:00:31

In this video, let us solve a simple but an important interview question which is on : 

**Testing for Children Sum Property in a Binary Tree**

We will also be doing a quick dry run to understand the problem in depth along with the implementation of the problem using JavaScript.

{% youtube gQcNn98L2Ao %}

Support my channel:
💜 Join the Discord community 👨‍👩‍👧‍👦: https://discord.gg/fgbtN2a 
💜 One time donations via PayPal
Thank you! 🙏

---
Follow me on:
👉 Twitter: https://twitter.com/The_Nerdy_Dev
👉 Instagram: https://instagram.com/thenerdydev
Thoughts on dash v2.5.0
Tags: python, dash
Published: 2023-01-28 01:22:32

---
title: Thoughts on dash v2.5.0
published: true
date: 2022-06-24 13:00:00 UTC
tags: ["python", "dash"]
canonical_url: https://friendlyuser.github.io/posts/thoughts_on_dash_v250/
---


Your job as an engineer is to find the data and put it in a way that makes sense to understand your students' brains. Data science is based around how much you would like to understand those brain processes. You could even use a computer's cognitive function as an indicator.

Your job as an engineer is to find the data and put it in a way that makes sense to understand their brains.

The steps in the migration guide [Dash 2.0 Migration](https://dash.plotly.com/dash-2-0-migration) very helpful, for the most part I could just replace the imports and the app would work as expected.

However, migrating to the new dash page system was far too difficult and I left it out for the initial release.

![Upgrading to Dash v2.5.0](https://friendlyuser.github.io/imgs/2022/dashv250_upgrade.png)

Upgrade from Dash v2.5.0 is simple for moderately complex apps, but for creating new multipage apps, I would recommend starting from a fresh project.

Dash v2.0.0 combines the other standard dash packages into the main dash library, I thought this was a great way to simplify development.

Unsurprising dash .net is still in alpha release which should surprise no one.


Overall, dash is a powerful framework and migration from v1.2.0 was easy for me, for a new project I would just make a new project and import it piecewise.
How to create a conda environment that imports all Python libraries in Jupiter notebooks
Published: 2022-06-24 12:45:01

When I first started working with conda environments in windows 10, it took me a very long time to figure out how to import basic python libraries in Jupiter notebooks without having to install them one by one any time I needed it.

Even tried cloning the base environment to a .yaml file but that didn't work either.

so what finally worked? 

**Creating conda environments from a text file**

The first thing to note with this method is we need to start with an existing working environment. its some sort of cloning but not really. 

for me I'll be "cloning" the base environment in conda.

- In your anaconda or command prompt activate the environment you 
   need to duplicate: `conda activate base`

- Run `conda list --explicit` to see a list of specs in the 
   active environment like this:

     ![packages list](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/otqq7wthoriet5vsrr0i.jpg)
 
- Save the list in a text file by running

```
conda list --explicit > pack-file.txt
```
 
A thing to note with explicit files is that they are not cross platform. The `# platform: win-64` shows where the file was created and can only be used within the same platform since we'll be installing the packages from the text file and dependency issues may arise.

- Create a new empty environment _mtest_. Replace _mtest_ with 
  name of your choice

```
conda create --name mtest
```

- Locate the pack-file.txt from your directory and remove any 
  packages you don't want installed in the new environment. Make 
  sure ipykernel is in the list if you want Jupiter notebooks to 
  work correctly in the environment

Remember if you are duplicating the base environment you need to locate the following packages and remove them from the file:

![Remove this](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/omkvxkk0wyhjtw8i1295.jpg)
- Deactivate the active environments and make sure there is no 
  environment enclosed in () before your folder path:

![env deactivation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ysictljxv5hwhlxbyshz.jpg)

- Run this to install the packages in the new environment
```
conda install --name mtest --file pack-file.txt
```
Conda does not check architecture or dependencies when installing from a txt file. To ensure that the packages work correctly, make sure that the file was created from a working environment, and use it on the same architecture, operating system, and platform, such as linux-64,osx-64 or win-64.

- The final step is to link your environment to jupyter using kernels. Activate your environment `conda activate mtest`

Run: 

```
python -m ipykernel install --user --name=mtest
```

![Link jupyter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cuaoty0t5y11n0jm5np9.jpg)

Now the kernel can be found in your Jupyter notebooks.

![Available kernel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m5ahgotmmh7u6kbw0slj.jpg)

There you go! I hope this was helpful.
Pushing folders from local pc to GitHub using Git
Tags: webdev, github, git, developer
Published: 2022-06-24 12:42:46

Hello all,
In this post, I will be explaining the procedure to push our local projects, files etc to a GitHub repository in simple and elegant way!
First of all make sure to install Git in your computer and link your email and other things to it!

Now, head toward that folder which you want to push there on GitHub.
Then, Follow following steps-

1. Open Git Bash in that particular folder.
2. Type `git init`   _(this will make that folder a repository)_
3. Type `git add .`  _(this will add all files to the repository)_
4. Type `git commit -m "Intial commit msg"`   _(all files now in repository)_
5. Type `git status`  _(you will get a msg "Working tree clean")_

These are the steps which are used to make a local repository, now to push the same to a GitHub repository we use following steps-

1. Open your GitHub profile and create a New Repository.
2. Copy the SSH Key of that created repository.
3. Open Git Bash in that particular folder which you want to push.
4. Type `git remote add origin PASTE_SSH_KEY_OF_CREATED_REPO`
5. Type `git push origin main --force`

This will successfully push that folder to your GitHub account.
Thank You :)
Hiring Frontend Developer (React.js)
Tags: react, redux, wfh
Published: 2022-06-24 12:30:47

Hi All. We are looking for #React.js developers. Experienced and interns welcome. Job details are available on the following link:
https://vocally.ca/jobs/frontend-developer/

Interested individuals may apply through the same link, or email varun@vocally.ca
#wfh / remotejob
gh repo create
Tags: git
Published: 2022-06-24 12:25:59

---
canonical_url: https://waylonwalker.com/til/gh-repo-create/
published: true
tags:
- git
title: gh repo create
---

I love getting faster in my workflow, something I have recently added in is creating GitHub repos with the cli.  I often create little examples of projects, but they just end up on my machine and not anywhere that someone else can see, mostly because it takes more effort to go create a repo.  TIL you can create a repo right from the command line and push to it immediately.

``` bash
gh repo create waylonwalker-cli
```

![gh-repo-create](https://screenshots.waylonwalker.com/gh-repo-create.webp)

## want to see what this repo I created is about?

Check out what I created here.

```
pipx run waylonwalker
```
Integrate embeddings easily
Tags: tutorial, opensource, showdev, datascience
Published: 2022-06-24 12:23:47

Hey there, hope everyone’s having a great day 😄 Today we’ll jump right into text embeddings and integrations you can leverage to build high-quality AI models. With kern it is possible to build any kind of text embeddings with just three clicks ! Not just that, it integrates with HuggingFace transformer hub so you can pick your favourite language model for vectorization. Now imagine if this could be automatically integrated for your active transfer learning and neural search ? Yes you read that right, this is possible with our soon to be released open-source data labeling solution ! Jump right into the comments sections for questions or any queries regarding the software 😉

Check out our website for more information 👉🏼https://www.kern.ai/ 

Subscribe to our newsletter 👉🏼 https://www.kern.ai/pages/open-source and stay up to date with the release so you don’t miss out on the chance to win a GeForce RTX 3090 Ti for our launch 😉
Outreachy'22: Everybody Struggles!
Tags: opensource, beginners, programming, career
Published: 2022-06-24 12:22:08

Hi Folks, Welcome to another blog. 

This is my second blog of the Outreachy'22 internship. Before this Internship, I never had any strong development experience. This is the opportunity that enabled me to work across a really good technical Project i.e. "[The Enarx Project](https://enarx.dev/)". 

Folks here are very supportive and encouraging, especially my mentor [Mr. Nick](https://twitter.com/NickVidal), who is very cooperative as well as concerned about my everyday progress. He keeps monitoring what I'm going through and advises the right things to work on. Throughout these days, I struggled with many things but he keeps me motivated and tries to show me the right path. When I'm stuck with my work or I don't understand something, I'm always able to get help from him.


> Every pro was once an amateur. Every expert was once a beginner. So dream big. And start now. - By Robin Sharma


Every day, attending the daily meeting lets me learn a new technical term or a technology. I learned a lot of professional & technical conversation etiquette.


A vocabulary term I didn't know before I applied to Outreachy  was  
***Upstream and Downstream Software Dependencies***



![Upstream](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vd6ugbhrf7wydbjhudwm.png)

Explaination:

This component C depends on component B, and component B in turn depends on component A.

By using the Dependency Rule, we can safely state that component A is upstream of component B, which is upstream of component C (even though the arrows point in the opposite direction).

It is a bit more abstract to apply the Value Rule here, but we can state that component C holds the greatest value since it "imports" the features of components B and A and adds its own value. Since it is the downstream component, we can call component C the most valuable.

> Image and Explanation By [Tom Hombergs](https://twitter.com/TomHombergs)


Thanks for Dropping By!

Share your views about this blog in comments and feel free to connect with me on [Twitter](https://twitter.com/aryankaushik21).
Puzzle-4
Tags: c, programming, beginners
Published: 2022-06-24 12:13:38

## Can you guess the output without the help of code editor ?

**Comment the output in the below comment section.**

```
#include <stdio.h>
void func(struct tag v);
int main()
{
    struct tag
    {
        int i;
        char c;
    };
    struct tag var = {2, 'd'};
    func(var);
}

void func(struct tag v)
{
    printf("%d\n %c", v.i, v.c);
}
```
Best web application development company in Toronto
Tags: webdev
Published: 2022-06-24 11:50:56

Best Web Application Development Company Toronto
Looking for a good web application development company in Toronto? If you're based in Toronto, you've come to the right place. Our list of best Toronto-based web application development companies includes Myplanet, Datarockets, MindSea Development, and AppStudio. Read on to find out more about each of these companies, and how they can help your company. In addition to completing projects for clients across the globe, these companies also provide a wealth of marketing, design, and consulting services.

Parachute Design Group
If you're looking for a web application development company that understands the importance of a user-friendly interface, you've come to the right place. With nearly 50 years of combined design experience and carefully developed tools, Parachute Design Group can bring your idea to life. Parachute's team emphasizes beauty, creativity, and patience in its design and development work. The team's flexible schedules and 100% remote working options allow employees to work when it suits their lifestyle.

Datarockets
When looking for a top-notch web application development company in Toronto, consider Datarockets. This company has a proven track record of developing high-quality products for its clients. Their team of experienced developers believes in stimulating both their own and their clients' growth. Their goal is to deliver projects on time and on budget, and they strive to inject fresh ideas and vision into the clients' rough drafts.

MindSea Development
If you're looking for a web application development company Toronto, look no further. MindSea provides beautiful, integrated mobile apps to clients all over the world. Their team is comprised of a combination of design, business analysis, and programming experts, with more than one million users across the globe. MindSea has an impressive portfolio of both iOS and Android applications. They've also worked with established companies in North America, including newspapers and other traditional industries.

nextbrain
If you are looking for a web application development company in Toronto, nextbrain Digital may be the right fit for your needs. They specialize in custom web development and design, as well as e-commerce solutions. The team at nextbrain Digital is experienced in PHP, JavaScript, and other technologies to meet the needs of organizations and startups alike. For example, their team created a website for the Global Brain Health Initiative (GBHI), an organization that works around the world to decrease the effects of dementia. The GBHI's website was outdated and lacked a clean, simple design.
My Google Interview Experience....
Tags: goggle, interview
Published: 2022-06-24 11:42:10

In this article, I will be discussing my interview experience with Google India. Before that I want to tell process before interview. 
I updated my LinkedIn profile to open to work and add my experience to get new opportunity. Google HR has contacted me asked for my resume, after a week she set up a telephone interview with her. In that she asked about my work experience and working technologies. She had about 10 questions regrading time complexity of tree, some worst case scenario for data structures, and also some related stacks and queue. In the call itself she said I will have next interview in 2 days.
1st & 2nd round: Problem Solving
- He asked me about my work experience technologies that we are using.
- He gave me DSA question to solve. He didn't want me write the code. First he asked what I understood in given question and asked me to write different testcase.
- Then I said brute force solution for the question. Then he gave same hints in which we can optimize the approach. Asked me what data structure can be used why and why not other type.
- For about 30 minutes he asked different path where code can break and asked how can we handle those cases. He wants to test how better I understand code, how I'm approaching the solutions.
- Then he asked me write code. He was communicating with me in google docs so, he didn't compile code.
- For last 15 mins he asked question about frontend and website working like how can we fast up the website loading and couple question related to it.

I somehow passed first interview and second interview was basically the same process. He asked a DSA question and saw how I'm I approaching the solutions and then code. 
Honestly, getting my resume shortlisted for one of the roles at Google was a win for me at that time. I had never interviewed for Google before and hence was a bit nervous. May be I missed this time but hope its helps few.
Cron's Request Access Flow
Published: 2022-06-24 11:37:27

When you're making an app, things are often far more complicated on the inside than meets the eye.

I love [Cron](https://twitter.com/Cron)! Currently it is invite only, and I was lucky to get early access. Cron has an excellent onboarding flow and I wanted to document it, if only for myself as I build my own apps.

<a href="https://lucid.app/publicSegments/view/8fa1c863-be88-4e32-8087-d825d774ab64/image.png">
    <img width="1870" height="1322" src="https://lucid.app/publicSegments/view/8fa1c863-be88-4e32-8087-d825d774ab64/image.png" />
</a>

Here's [a link](https://lucid.app/lucidchart/82d6aad7-0859-4e8a-9171-b901d3c1a53a/edit?invitationId=inv_e49cc770-78ab-4543-a229-8961a5ae5361#) to the Lucid Chart itself (sign in required).
Vue State — Migrate From Vuex Store to Pinia
Tags: vue, webdev, pinia
Published: 2022-06-24 11:15:30


Pinia is recently gaining popularity among Vue developers due to its simplicity.

Until now, we were mostly using [Vuex](https://vuex.vuejs.org/guide/) for the application state management in Vue. Let’s give [Pinia](https://pinia.vuejs.org/) a try today and see how it goes.

This article will guide you in a simple way to migrate Vue.js applications from Vuex to Pinia.

Recently, we migrated our [canopas website](https://canopas.com/) from Vuex to Pinia. I feel it's super easy.

It is quite similar to Vuex but with less code. It has reduced lots of coding and extra computations of mutations and getters.

Pinia can work with Vuex easily. So if you have a large application then don’t worry. You can replace the store with Pinia module-wise, and eventually, you can have Pinia store in the whole application.

**Today’s article consists of 4 sections.**

1. Directory structure
2. Define and Use Pinia Store
3. Understanding Pinia architecture
4. Example code of migration from Vuex to Pinia

Feel free to jump to any section you are interested in.

You can read more about it here to learn how to [Migrate From Vuex Store to Pinia](https://blog.canopas.com/vue-state-migrate-from-vuex-store-to-pinia-7db0eab864fd).
Best way to Deploy NextJS HeadLess WordPress Website
Tags: nextjs, wordpress, devops, react
Published: 2022-06-24 11:05:02

If you are running a blog, news, or content website then you must know about NextJS Headless Wordpess technology.

Nowadays ranking your blog website with the basic WordPress template is not an easy task. You need the right tactics and technology to convert your WordPress blog or news website to NextJS. And we all know how fast the NextJS webpage loads.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pg6hudn6qs0i5qwa32z1.png)
 

Don't forget to check my Google ranking tricks - [Secretly Rank your Blog or News Website on Google Top Search Results](https://dev.to/santosh3700/secretly-rank-your-blog-or-news-website-on-google-top-search-results-4cp4)

So after creating a website in NextJS how you will deploy it. I know you will say hey we have Vercel right? 

Ha ha, yes. Vercel is best for NextJS deployment itself. But Vercel has other issues that we will discuss later in this article.

So now let's check what best ways are currently exited to deploy NextJS


## 1. Vercel
Vercel is a cloud platform for serverless deployment. It enables developers to host websites and web services that deploy instantly, scale automatically, and require no supervision, all with minimal configuration.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/inqnuf61crqd09azi3ua.png)
 

### Pros
- Simple deployment
- Easily scalable websites and cloud services
- Seamless integration with GitHub
- Faster website development compared to other options

### Cons
- Poor documentation for developers
- It is Too Expensive after the free tier


## 2. Netlify
Netlify lets you build, host, and maintain your website or app with continuous deployment, 1 click HTTPS, and more

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fy9khy18vuehco03skba.png)
 
### Pros
- Simple Dashboard
- Provide Free Tier
- Website Load time is short

### Cons
- Deploying the NextJS website takes too much time
- The getServerSidePros function does not work properly
- It is Too Expensive after the free tier


## 3. AWS Lambda
AWS Lambda is another way to deploy your NextJS project using an S3 bucket.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rcloburwkt7z0fo5fhg.png)
 

### Pros
- Runs too fast
- Almost zero downtime
- Scale automatically
- It is less expensive than Vercel and Netlify

### Cons
- Configuration takes lots of time
- Deploying the NextJS website takes too much time
- The getServerSidePros function does not work properly

Don't forget to check my Gig on Fiverr - [I will convert your blog or news website to NextJs headless WordPress site](https://www.fiverr.com/santoshmlm/convert-your-blog-or-news-website-to-nextjs-headless-site)


## Comment What you prefer
So above I have mentioned all the major NextJS deployment ways. Comment which Hosting server or which way you like to host your NextJS project. Also mention if you have any other better way than this in the comment.
How to prevent other team member installing new npm package?
Tags: npm, programming, discuss, node
Published: 2022-06-24 11:02:47

Requirements:

- Only the project owner can install **new** npm package.
- `npm install` should work for local development and CI/CD pipeline.
- When other team member run `npm install <PackageName>` command, it should print an error message like: `"Installing new npm package is prevent, please contact the project owner."`

Motivation: I don't want other team member install package at will. I want to limit this behavior through code or script.

This is an optional-based question, Thanks for any advice.
05 - Cloud Solution Architect – Proof of Concept (aka PoC)
Tags: csa, career, cloud, techtalks
Published: 2022-06-24 10:56:38

Building confidence in technology will help in the long run. People will be skeptical for the obvious reason. Building a small Proof of Concept (PoC) would help gain momentum. 

https://youtu.be/0pAeXc4NYlI

{% youtube 0pAeXc4NYlI %}

For more please subscribe 
https://www.youtube.com/c/TechTalksWriju?sub_confirmation=1
VanceAI Photo Restorer
Published: 2022-06-24 10:03:50

Pictures from the past are a wonderful way to relive happy memories. [VanceAI](https://vanceai.com/) can help me [restore old photo](https://vanceai.com/old-photo-restoration/) using AI technology and [colorize old photo](https://vanceai.com/colorize-photo/) for free, which is a really exciting discovery. it's like having a time machine that keeps memories alive forever...
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w8tkgkiagdi5ic0ne3wj.png)