teleren/devto huggingface dataset:
Nebula Operator Kind, oneliner installer for Nebula K8s Operator Playground
Tags: database, opensource, devops, sql
Published: 2021-09-30 08:54:38

Nebula-Kind, an one-liner command to try K8s Operator based Nebula Graph Cluster on your machine, with the help of KIND (K8s in Docker)

##Nebula-Operator-Kind
As a Cloud Native Distributed Database, Nebula Graph comes with an open-source K8s Operator to enable boostrap and maintain Nebula Graph Cluster from a K8s CRD.

Normally it takes you some time to setup all the dependencies and control plane resources of the Nebula Operator. If you are as lazy as I am, this Nebula-Operator-Kind is made for you to quick start and play with Nebula Graph in KIND.

Nebula-Operator-Kind is the one-liner for setup everything for you including:

Docker
K8s(KIND)
PV Provider
Nebula-Operator
Nebula-Console
nodePort for accessing the Cluster
Kubectl for playing with KIND and Nebula Operator

##How To Use
Install Nebula-Operator-Kind:
```
curl -sL nebula-kind.siwei.io/install.sh | bash
```
You will see this after it’s done
![alt text](https://siwei.io/en/nebula-operator-kind/install_success.webp)

You can connect to the cluster via ~/.nebula-kind/bin/console as below:
```
~/.nebula-kind/bin/console -u user -p password --address=127.0.0.1 --port=30000
```
##More
It’s in GitHub with more information you may be intrested in ;-), please try and feedback there~ https://github.com/wey-gu/nebula-operator-kind

Install on KubeSphere all-in-on cluster：
```
curl -sL nebula-kind.siwei.io/install-ks-1.sh | bash
```
Install on existing K8s cluster:
```
curl -sL nebula-kind.siwei.io/install-on-k8s.sh | bash
```
Coffee & Code: Integrating Live Chat Feature to Your React Application with Chatwoot by Olubisi Idris Ayinde
Tags: chatwoot, chatbot, opensource, developers
Published: 2021-09-30 08:51:01

**Join here 📌**
https://bit.ly/2Y0k7pE

**Coding & Coffee** ☕️ is Aviyel’s flagship upskilling series for programmers who are passionate about codes. We feature tutorials, live coding sessions, Q&As, with tabs on some of the fastest-growing open-source projects out there.

This time, we are bringing on board Olubisi Idris Ayinde, an expert blogger, and a popular name in the developer circle.

###What’s in it for you?
- 
Hands-on experience with Chatwoot, a dynamic, open-source customer engagement software for businesses and developers.
- 
Chatwoot’s configuration guide, quick start with React for both beginners and advanced users.
- 
Bombard speakers with your questions to dive deep into open source technology (and maybe start a full-time career).
- 
Insights from Ayinde’s very own developer journey (inspiring heh?).

Get started with Chatwoot through Aviyel today!

Mark your Calendar: **📆 1st October 2021**

Time: **10 AM EST | 7 AM PST**

**Join here 📌**
https://bit.ly/2Y0k7pE

Impressed? Check out the rest of our  [events](https://bit.ly/3FdPfDh)!

PS: The session is free, but your pre-event confirmation is required. Confirm your presence by registering today.

Let’s build open source together. 🚩
Team Aviyel
Val - Powerful Static and Dynamic programming language
Tags: javascript, rust, ruby, python
Published: 2021-09-30 08:46:57

Hi All!,

We have been working on a radically new programming language called **Val** for a couple of months now.
Val language is a static language with a compile-time dynamic language called **Valet**. 
Think writing Python/Ruby/JS to generate C/Rust for quickly building Web, AI, Data-Intensive, and Low-Level applications.

The documentation is here to give you a glimpse of Val. 
We are looking to raise funds for our funding platform, and we need to clarify some points before publishing the source code.

We are at the beginning of our journey. Feedbacks, ideas, suggestions are highly appreciated.

Check it out at [Val](www.val-lang.org).

Stay tuned at:
- [Reddit](www.reddit.com/r/vallang)
- [GitHub](www.github.com/alkaemy/val-lang)
- [Twitter](https://twitter.com/vallanguage)

Thanks all!
Droplet Loader NFT
Tags: codepen
Published: 2021-09-30 08:40:45

<p>Something pretty because I love pretty things.</p>

<p>You can buy the iNFT on BeyondNFT <a href="https://beyondnft.io/explore/0x8747ad5ec5c6d68962b6c0ea8029cde01da7634f/49/0xbd51bc1e80aca4e902eb0d4be69ab5b52be6152a">here</a></p>

{% codepen https://codepen.io/chrisgannon/pen/ExjmQOm %}
Extend your Microsoft 365 Developer Tenant with your GitHub activities
Tags: microsoft365, github
Published: 2021-09-30 08:38:40

During the development process of a Microsoft 365 application (with PowerApps, ASP.NET Core and Graph API, Single Page Applications and more) to have an environment where, time to time, you can break everything, working with specific settings and much more, is vital.

#Join the Microsoft 365 Developer Program
For the developers, Microsoft provides a free tenant including **25 user licenses**.
You can go [here](https://developer.microsoft.com/en-us/microsoft-365/dev-program) and join the program.
It's a five minutes task and you can also choose the name of your tenant. 

By default the developer tenant expires after **90 days**.

![developer tenant preview](https://cdn.graph.office.net/prod/media/office/dev-program/home/DevPro_E5_Images_1_800x450.png?v={1/string})

#The importance of the sample data pack
If you create your own tenant by yourself, as a developer, you won't create realistic content.
Installing the sample data pack on the developer tenant is useful because it **adds 16 additional users** with licenses.
On top of that, it adds a lot of content like conversations, meetings, documents on SharePoint and an intranet.

![sample data pack](https://cdn.graph.office.net/prod/media/office/dev-program/home/DevPro_E5_Images_2_800x450.png?v={1/string})

#Extend the life of the developer tenant with your GitHub activities
Every 90 days, to recreate everything from scratch it should be annoying especially if you work a lot with the Azure subscription connected to the Microsoft 365 tenant.
Since a while, Microsoft added the chance to extend the developer tenant life to infinite if you do a lot of GitHub activities on your account.

To link the GitHub account, you can go on [your Microsoft 365 Developer profile](https://developer.microsoft.com/en-us/microsoft-365/profile) and click on the "Settings" knob on the right top corner.
Then click on the "Accounts linked" on the left menu.
You can also use the direct link: [https://developer.microsoft.com/en-us/microsoft-365/profile/settings/accounts-linked](https://developer.microsoft.com/en-us/microsoft-365/profile/settings/accounts-linked)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/794g8sw557wwvl6n8967.png)

You can learn more on the Microsoft 365 Developer program at this link: [https://aka.ms/GitHubLearnMore](https://aka.ms/GitHubLearnMore)

If you have linked the GitHub account correctly, in the dashboard you should have the logo on the top bar.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zdaxpou17stn2ax4reh.png)
Lambda Functions in Dart
Tags: dart, flutter, tutorial
Published: 2021-09-30 08:10:33


*Every function in dart is an object.*

Functions that we use very often *without a name* are also called lambda functions.

*Lambda functions are also called Arrow functions.*

You can see usage example and output below.

<img alt="Lambda Function Example Code" src="https://baransel.dev/post/dart-lambda-functions/code.png" style="height:75%;width:75%;"/>

Follow my blog for more [baransel.dev](https://baransel.dev/).
[Tự học Substrate #1] Chuỗi Substrate Chain - Giới thiệu
Tags: substrate, blockchain, rust, polkadot
Published: 2021-09-30 08:08:38

Trong bài hướng dẫn này, bạn sẽ học cách biên dịch và chạy Substrate Developer Hub Node Template và vọc với nó sử dụng Substrate Developer Hub Front-End Template

Hướng dẫn này hướng tới những bạn chưa bao giờ biết về Substrate từ trước và muốn hiểu một cách đơn giản và nhanh về Substrate là gì. Chúng ta sẽ không đi quá sâu về sự phức tạp khi lập trình với Substrate, Nhưng hị vọng có thể thoả mãn cho bạn biết được Substrate là gì và có thể tiếp tục con đường phát triển cùng Substrate.

Bài hướng dẫn này sẽ tốn khoảng 1 tiếng để hoàn thành. Và chúng ta sẽ sử dụng Rust làm mã biên dịch, nhưng bạn không nhất thiết phải cần có kinh nghiệm về Rust để hoàn thành bài hướng dẫn này. Chúng ta sẽ đi chung và giải thích cách code hoạt động và làm cách nào để sử dụng nó cùng với nhau.

Bài này dành cho:

- Bạn quen thuộc công việc lập trình cụng như sử dụng command line
- Bạn đã biết về blockchain và smart contract platforms (hợp đồng thông minh)
- Bạn mong muốn tìm hiểu sâu về Blockchain.

Nếu bạn gặp sự cố trong hướng dẫn này, chúng tôi sẵn sàng trợ giúp! Bạn có thể đặt câu hỏi trên Stack Overflow và sử dụng thẻ nền hoặc liên hệ với chúng tôi trên Element.

Element: matrix.to/#/#substrate-technical:matrix.org

Stack Overflow: stackoverflow.com/questions/tagged/substrate

Tóm tắt những gì chúng ta sẽ học
Trước khi bắt đầu, hãy sắp xếp lại những gì chúng ta sẽ làm trong bài hướng dẫn này:

- Cùng setup máy của bạn để có thể lập trình với Substrate
- Dùng một mẫu có sẵn để chạy Substrate-based blockchain (Substrate tương tự)
- Dùng mẫu front-end để vọc với mẫu Substrate node trên.

:)) nghe thiệt tuyệt vời đúng hong. Cùng bắt đầu nào!
Good discussion board post
Tags: writing, discuss, student
Published: 2021-09-30 07:56:53

Almost every student asked a question: how to write my discussion board post?

It can be quite simple if you know the structure of writing a discussion post and the requirements for it. Let's take a closer look.

What is a discussion board post?

According to the Oxford Dictionary “Discussion” is the process of discussing somebody/something.

Discussion board posts are often used in universities.It is a good way for students to learn via talking about something in order to reach a decision or to exchange ideas. In this way they can study the subjects better. 

To have a good discussion you have to prepare your discussion board post in advance.
 
What can make your discussion topic better?

You need to have a good understanding of the topic you are discussing.
You must prepare a good argumentation structure.
You must learn to express the material of the discussion clearly and concisely.

Tips for writing good discussion board material.

Read the theme attentively. 
Think about discussion board post and connection with your course - it helps you better argue your answer.
Highlight key words - this tip will accelerate your answer - you will definitely know what you have to say. 
I use verified sources of information - confirming  your reasoning with the written resources will impress your professor. 
Express your opinion about the discussion topic.  

Writing is an assiduous process. Just don't give up and in time you will write a great discussion post.



References:

https://order-essays.com/write-my-discussion-post/

https://www.oxfordlearnersdictionaries.com/definition/english/discussion?q=discussion
Microsoft.NET.Sdk.Common.targets was not found
Published: 2021-09-30 07:54:41

After update of Visual Studio and .NET I got an error that seems to repeat pretty often. Unfortunately I forget how to deal with it every single time. 

The issue looks like this 

```
msbuild //works
dotnet build
```
Results in following error
```cmd
C:\Program Files\dotnet\sdk\5.0.41\Current\SolutionFile\ImportAfter\Microsoft .NET.Sdk.Solution.targets(14,3): error MSB4619: The imported
project "C:\Program Files\dotnet\sdk\5.6.100\Sdks\Microsoft .NET.Sdk\targets\Microsoft.NET.Sdk.Common.targets" was not found. Confirm that
the expression in the Import declaration "C:\Program Files\dotnet\sdk\5.0.41\Sdks\Microsoft.NET.Sdk\targets\Microsoft .NET.Sdk.Common.targets" is correct, and that the file exists on disk.

Build FAILED.

C:\Program Files\dotnet\sdk\5.0.41\Current\SolutionFile\ImportAfter\Microsoft .NET.Sdk.Solution.targets(14,3): error MSB4619: The imported
project "C:\Program Files\dotnet\sdk\5.6.100\Sdks\Microsoft .NET.Sdk\targets\Microsoft.NET.Sdk.Common.targets" was not found. Confirm that
the expression in the Import declaration "C:\Program Files\dotnet\sdk\5.0.41\Sdks\Microsoft.NET.Sdk\targets\Microsoft .NET.Sdk.Common.targets" is correct, and that the file exists on disk.
```

When you try to print the file `Microsoft.NET.Sdk.Solution.targets`

``` 
cat "C:\Program Files\dotnet\sdk\5.0.401\Current\SolutionFile\ImportAfter\Microsoft.NET.Sdk.Solution.targets"
```

Notice this line
```xml
  <Import Project="$(MSBuildSDKsPath)\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.Common.targets" />
```

The `MSBuildSDKsPath` variable is important here. It looks like it's looking at the wrong folder.

When I created an enviroment variable with the name `MSBuildSDKsPath` and value `C:\Program Files\dotnet\sdk\5.0.401\Sdks` it works! 

Don't forget to restart your terminal.
How to ace your coding interview?
Tags: codenewbie, computerscience, interviewprep, faang
Published: 2021-09-30 07:22:06

If you are a new coder who wants to get his/her dream coding job or a experienced coder who wants to upgrade his/her dream coding job, read on! This post will help you. 

Coding interviews may seem like a daunting task at first but there is a method to this madness, I promise. Here are a few tips to ace your coding interview -

##Leetcode. Leetcode. Leetcode
![Leetcode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kb1t4t2wit466hzlvet2.gif)
If you want a one stop shop for all commonly asked coding questions leetcode is your best bet. If you can invest on the premium version, it helps. But the free one covers a wide array of problem types. Most tech companies (FAANG) included ask a lot of problems that are similar to the ones on leetcode. So practice away!

Here is a video walkthrough to one of the most fundamental question types.
{% youtube TzSaWO-G8js %}

##Think out aloud
![Think out aloud](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x6lh2cgebdxzetzdziy0.gif)
Most people assume that the coding interview is all about solving the problem, but nothing is further from the truth. Yes, it tests your problem solving skills but it is also a test of how well you are able to structure the solution and communicated it. Think about it - a large part of your role as developer is to structure the solution and communicate it with your peers!

##Ask follow up questions
![Questions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hjkiph1p2ovmaiztwxpc.gif)
Most interviewers are impressed by inquisitive people. In a 45-60 minute interview session, the surest way to highlight your inquisitive side is to ask (relevant) questions about the problem at hand. It gives the interviewer the impression that you are trying to look at the problem holistically and covering all edge cases - all qualities of a great developer!

Most importantly, I want you all to appreciate the fact that you are qualified for your dream job! Technical interview expertise is an acquired trait which I am sure, we all can acquire if we put our minds to it.

Follow along my [Youtube journey!](https://www.youtube.com/channel/UCdf3akZG2_pEDNty8GKc0yw)

[Buy me a coffee](https://www.buymeacoffee.com/thecodestudio)
Data analysis using R/R studio (r code available)
Tags: datascience, rstudio, statistics
Published: 2021-09-30 07:20:14

[Import data into R](https://www.statisticalaid.com/data-analysis-in-r-how-to-import-data-into-r-statistical-aid/)
[Principal component analysis (PCA) code](https://www.statisticalaid.com/principal-component-analysis-pca-using-r/)
[canonical correlation analysis (CCA) code](https://www.statisticalaid.com/canonical-correlation-analysis-using-r/)
[Independent component analysis (ICA) code](https://www.statisticalaid.com/independent-component-analysis-ica-using-r/)
[Cluster Analysis using R](https://www.statisticalaid.com/cluster-analysis-using-r/)
[One-way ANOVA using R](https://www.statisticalaid.com/one-way-anova-using-r/)
[Two-way ANOVA using R](https://www.statisticalaid.com/two-way-anova-using-r/)
[Paired sample t-test using R](https://www.statisticalaid.com/paired-sample-t-test-using-r/)
[One sample T-test using R](https://www.statisticalaid.com/one-sample-t-test-in-r/)
[Random forest in R](https://www.statisticalaid.com/random-forest-in-r/)
[Chi-square test in R](https://www.statisticalaid.com/chi-square-test-using-r/)
[Pearson correlation test in R](https://www.statisticalaid.com/pearson-correlation-in-r/)
[One Sample t-test in R]
(https://www.statisticalaid.com/one-sample-t-test-in-r/)
[ANCOVA using R]
(https://www.statisticalaid.com/ancova-using-r/)
[Test of Significance]
(https://www.statisticalaid.com/statistical-test-of-significance/)
[MANOVA in R](https://www.statisticalaid.com/manova-using-r/)
Custom error pages in Next.js
Tags: nextjs, react
Published: 2021-09-30 06:35:41

There is always that moment a user ends up on a page that doesn't exist.
So let's see how we can make these pages stand out more by adding our pages for each error page.

## Creating a 404 page in Next.js

Let's start with the most common one, the 404 page. This one often occurs if the users end up on a page that no longer exists or make a typo in the URL.

Let's try to find a random page called `/does-not-exist` and see what happens:

![Slug error in Next.js](https://cdn.hashnode.com/res/hashnode/image/upload/v1632462057881/xoaBSN9te.png)

So we get the above error because we said fallback is true for the `getStaticPaths` function.

That means it should always try to resolve the page even if it can't find the static props.

To fix this, we can set the fallback to false like this, which will redirect to a 404 if it can't resolve.

```js
export async function getStaticPaths() {
  const pagesWithSlugs = await getAllPagesWithSlugs();
  return {
    paths: pagesWithSlugs.edges.map(({node}) => `/${node.slug}`) || [],
    fallback: false,
  };
}
```

To create the 404 page we can create a page called `404.js` in our `pages` directory.

```js
export default function Custom404() {
  return (
    <div className="flex items-center justify-center h-screen mx-2 my-2 overflow-hidden ">
      <div className="px-6 py-4 rounded shadow-lg">
        <div className="mb-2 text-xl font-bold">
          404 - Sorry could not find this page 😅
        </div>
      </div>
    </div>
  );
}
```

And now, when reloading the page, we should see the following page.

![Next.js 404 page](https://cdn.hashnode.com/res/hashnode/image/upload/v1632462239412/AgqVVYFma.png)

## 500 error page in Next.js

Sometimes there might be something else wrong, and our website might throw a 500 error.

We can create a custom error page for those pages as well.
Create a file called `500.js` in your `pages` directory.

```js
export default function Custom500() {
  return (
    <div className="flex items-center justify-center h-screen mx-2 my-2 overflow-hidden ">
      <div className="px-6 py-4 rounded shadow-lg">
        <div className="mb-2 text-xl font-bold">500 - Server error 😭</div>
      </div>
    </div>
  );
}
```

![500 Error page in Next.js](https://cdn.hashnode.com/res/hashnode/image/upload/v1632462478053/keCrLurwU.png)

This is the basic approach to having custom error pages in Next.js.

As always, you can find the complete code on [GitHub](https://github.com/rebelchris/next-tailwind/tree/error-pages).

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Numpy in Python
Tags: python, productivity, beginners, datascience
Published: 2021-09-30 06:25:41

Hello Guys today i am going to show you how to use python numpy library for fast array computation.

What is NumPy?
- NumPy is a Python library used for working with arrays.

- It also has functions for working in domain of linear algebra, fourier transform, and matrices.

- NumPy was created in 2005 by Travis Oliphant. It is an open source project and you can use it freely.

- NumPy stands for Numerical Python.


Why Use NumPy?

- In Python we have lists that serve the purpose of arrays, but they are slow to process.

- NumPy aims to provide an array object that is up to 50x faster than traditional Python lists.

- The array object in NumPy is called ndarray, it provides a lot of supporting functions that make working with ndarray very easy.


Why is NumPy Faster Than Lists?
- NumPy arrays are stored at one continuous place in memory unlike lists, so processes can access and manipulate them very efficiently.

- This behavior is called locality of reference in computer science.

- This is the main reason why NumPy is faster than lists. Also it is optimized to work with latest CPU architectures.

- Arrays are very frequently used in data science, where speed and resources are very important.


Install -
```python
C:\Users\Your Name>pip install numpy
```

Simple Example - 

```python
import numpy

arr = numpy.array([1, 2, 3, 4, 5])

print(arr)
```

Output-
```
[1 2 3 4 5]
```


Using Tuple in numpy -

```python
import numpy as np

arr = np.array((1, 2, 3, 4, 5))

print(arr)
```

Output-

```
[1,2,3,4,5]
```

0-D array - 

```python
import numpy as np

arr = np.array(42)

print(arr)
```

Output-

```
42
```

1-D array - 

```python
import numpy as np

arr = np.array([1,3,5,7,9,11])

print(arr)
```
Output - 

```
[1,3,5,7,9,11]
```

2-D array - 

```python
import numpy as np

arr = np.array([[1,3,5],[7,9,11]])

print(arr)
```

Output - 

```
[[1,3,5] [7,9,11]]
```

3-D array - 

```python
import numpy as np

arr = np.array([[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]]])

print(arr)
```

Output - 

```
[[[1 2 3]
  [4 5 6]]

 [[1 2 3]
  [4 5 6]]]
```

Check Number of Dimensions - 

```python
import numpy as np

arr = np.array([[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]]])

print(arr.ndim)
```
Output - 

```
3
```

Higher Dimensional Arrays - 
```python
import numpy as np

arr = np.array([1, 2, 3, 4], ndmin=5)

print(arr)
print('number of dimensions :', arr.ndim)
```

Output - 

```
[[[[[1 2 3 4]]]]]
number of dimensions : 5
```

This is just a basic introduction of Numpy , You can read the full documentation at below link

Numpy Documentation - https://numpy.org/


THANK YOU FOR READING THIS POST AND IF YOU FIND ANY MISTAKE OR WANT TO GIVE ANY SUGGESTION PLEASE KINDLY MENTION IT IN THE COMMENT SECTION.
Downsides of TypeScript?
Tags: typescript, webdev, javascript
Published: 2021-09-30 06:19:05

I love Typescript and enjoy using it. However, it's not perfect and has its downsides.

Some downsides of Typescript (based on my experiences and what others have shared):

- another thing to learn
- more code boilerplate, especially for 3rd party libraries (glares at Redux)
- installation costs initial time (but it makes up for it later with the type safety)
- npm modules without typedef are difficult to work with TS
- it only starts to pay off once your codebase gets larger and complex 
- the resources are scattered in multiple places (no universal, comprehensive resource like MDN; I find the Typescript handbook lacking)
- slower compile/build time

I most likely will use Typescript for most of my projects from here on, unless a third-party library has no type definitions or doesn't work well with it.

## DISCLAIMER:
  
This post only expresses my thoughts and opinions (based on my limited knowledge) and is in no way a substitute for actual references. If I ever make a mistake or if you disagree, I would appreciate corrections in the comments!

### Other Media

Feel free to reach out to me in other media!

<span><a target="_blank" href="https://www.rammina.com/"><img src="https://res.cloudinary.com/rammina/image/upload/v1638444046/rammina-button-128_x9ginu.png" alt="Rammina Logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://twitter.com/RamminaR"><img src="https://res.cloudinary.com/rammina/image/upload/v1636792959/twitter-logo_laoyfu_pdbagm.png" alt="Twitter logo" width="128" height="50"/></a></span>

<span><a target="_blank" href="https://github.com/Rammina"><img src="https://res.cloudinary.com/rammina/image/upload/v1636795051/GitHub-Emblem2_epcp8r.png" alt="Github logo" width="128" height="50"/></a></span>