teleren/devto huggingface dataset:
Mounting Network Drives into Windows Subsystem Linux
Tags: linux, windows, wsl
Published: 2019-10-04 17:22:26

---
title: Mounting Network Drives into Windows Subsystem Linux
published: true
description: By default, only fixed drives are automatically mounted.  Mounting network drives takes a little (very little!) extra work.
tags: linux, windows, WSL
---

This was initiated by my last article where I was counting directories on the command line.

{% link https://dev.to/rpalo/count-child-directories-with-powershell-55d1 %}

At the end of the article, I wanted to show how it was done on the Linux CLI too, but I quickly ran into the problem that our server wasn't mounted into the Windows Subsystem Linux (WSL) file system.  As it turns out, it's easier than I initially thought it would be!

Microsoft uses a new type of file system called [DrvFs](https://blogs.msdn.microsoft.com/wsl/2016/06/15/wsl-file-system-support/) behind the scenes to allow the Linux subsystem to talk to native Windows directories.  So you end up mounting a network drive just like you would mount any other media normally.

Let's say you've got a server on your network usually accessible as `\\stroopwafel`.  To mount it into your WSL, you can do the following (I'm using Ubuntu, but it should be similar for the other distros):

```bash
sudo mkdir /mnt/stroopwafel
sudo mount -t drvfs '\\stroopwafel' /mnt/stroopwafel
```

Note: I used single quotes to avoid awkwardness around the backslashes in the network drive name.

If you have mapped the network drive to a drive letter on your Windows system already--let's say `\\stroopwafel` is mapped to `S:\`--or if you've just got a removable drive that isn't mounted yet but has a letter on your Windows system, the syntax changes a little:

```bash
sudo mkdir /mnt/stroopwafel
sudo mount -t drvfs S: /mnt/stroopwafel
```

If you ever want to unmount it:

```bash
sudo umount /mnt/stroopwafel
```
What is 'this' in JavaScript
Tags: javascript, react
Published: 2019-10-04 17:09:29

##What does 'this' return?

Here's an object which uses this keyword 

```javascript
const man = {
  name: "rick",
  adventure() {
    console.log(this);
  }
};

man.adventure(); 
```
Executing above you will see the man object on the console.

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


But what if you do; 

```javascript
const adventure_reference = man.adventure;

adventure_reference();
```
Output then would be; 

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

##Explanation

Value of 'this' is determined by how a function is called; 

* If we call a function as a method in an object this will always return a reference to that object.

* If we call a function as a standalone object - or outside an object this will return the global object which is the window object in browsers.


In the [next post](https://dev.to/naveenkolambage/how-to-use-bind-to-bind-a-function-to-an-object-4023) we will use bind() to solve the problem 'of returning the window object'
🚀#2 Made an OpenSource Markdown Editor ✨(PWA+Electron+Angular+Indexed DB)🎉.
Tags: showdev, javascript, angular
Published: 2019-10-04 17:03:02

This is my second opensource project, after Paper ,which is a note-taking app with "networkless" sharing. 
You can check out the app here.
[Paper](https://github.com/JP1016/Paper)

About Markdown Editor,

![MarkdownEditor](https://github.com/JP1016/Markdown/blob/master/preview.png?raw=true)

i have posted an article about paper on dev.to and also made a listing on product hunt. From the feedback that i got from fellow developers i made a standalone WYSIWYG markdown editor.

Thanks to Ilya Lesik for providing the idea for a markdown editor, and to Quintus Cardozo for this comment.

{% devcomment fjdo %}

This projects uses indexed db for larger storage space, and i have decided to go with pwa and electron so it can be used as a native app.


[Markdown Editor](https://mdown.now.sh)

[Support on ProductHunt](https://www.producthunt.com/posts/markdown-editor-3)

#Features


#### 👆One Click Licence, Contribution Guidelines Export

#### 💾Load and Save Markdown to Indexed DB

#### 🚀Copy/Download Markdown with one-click

#### 🌟Auto Save for Markdowns

#### 🌓Dark/Light Mode

#### 🎎Resizable Split UI

#### ✨Assist for Inserting Images/Link

#### 🚅Save Frequently used Contributing Guidelines/Contributors/Licence on to local storage

#### 📬Opens the recent file, that you were editing on resuming

#### ⚛️ Electron & PWA app for offline use

#### 🔌 No Internet

#### 📖 OpenSource

<a href="https://twitter.com/JP1016v1"><img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/jp1016v1?style=social"> </a>


If you like this project, ⭐️ star on github/ follow me on twitter to get my project updates.

🍻Feel free to contribute to the project/provide feedback regarding the project.
Webassembly for C, Rust, Go, and C# in 45 Minutes
Tags: webdev, go, csharp, webassembly
Published: 2019-10-04 16:50:18

---
title: Webassembly for C, Rust, Go, and C# in 45 Minutes
published: true
description: A 45 minute video presentation that walks through the history of WebAssembly starting with asm.js then demonstrates examples of apps using C, Go, Rust, and C# Blazor.
tags: webdev, go, csharp, webassembly
canonical_url: https://blog.jeremylikness.com/blog/webassembly-for-c-rust-go-csharp-in-45-minutes/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/a2mumluh1t5v8x16cb3g.png
---

In June of 2019 I presented a 45-minute session about WebAssembly at Refactr.Tech in Atlanta.

{% twitter 1137041533625032704 %}

In this presentation I reviewed:

* asm.js
* WebAssembly
* Building WebAssembly with C using Emscripten
* How WebAssembly manages memory
* Creating WebAssembly apps with Go
* Compiling Rust to WebAssembly
* Building fullstack apps in C# using Blazor WebAssembly

This is the [full presentation](https://youtu.be/FSJ_XfscEMs):

{% youtube FSJ_XfscEMs %}

Regards,

![Jeremy Likness](https://blog.jeremylikness.com/images/jeremylikness.gif)
Getting started with serverless
Tags: serverless, webdev, javascript, aws
Published: 2019-10-04 16:45:51

# Front Matter
I have been writing on freeCodeCamp since February of 2018 (back when they were hanging out on Medium). As I am figuring out my place in the Dev community, I developed this plan to keep writing on FCC and then cross-post over here. However, in a recent conversation with Quincy Larson, it's become clear that I shouldn't cross-post away from FCC. As he put it in a recent article:

> We're focusing on substantial articles you can't read anywhere else.

I have thoroughly enjoyed my time writing for FCC, and I absolutely plan on staying there. It's a fantastic platform that gets better by the day.

However, I love the community built here in Dev.to, so I do plan on posting the videos I am making in conjunction with the articles. My hope is that this community can give me feedback, and discuss the topics in my videos. I *think* this fits into what FCC is trying to do.

# What I'm trying to do

I want to make the best, most informative articles/videos I can, and I can't do that in a vacuum! I have some ideas for what to include in my new series: Practical Serverless, however, I'd really like to get feedback from the community on what they'd like to see done!

So, if you want to learn something about Serverless, or have inputs, check out my article I wrote on [freeCodeCamp News](https://www.freecodecamp.org/news/) and/or check out the videos below!

Thanks and happy coding!

## Part 1:
{% youtube sYGE0zQ8tCQ %}

## Part 2:
{% youtube bZpC9xaKU9k %}
Mighty-watcher digest #1
Tags: github, hacktoberfest, kotlin
Published: 2019-10-04 16:40:50

Introductory post on what [mighty-watcher is](https://dev.to/igorperikov/open-source-made-easier-1hh8)

First of all, thanks to everyone who have supported me in any way :heart: I don't know how many of you have tried [mighty-watcher](https://github.com/igorperikov/mighty-watcher) so far, but if u did, I hope you enjoyed it. I feel motivated to keep writing articles, especially about things, other than mighty-watcher. TBH, I've already started writing a new one! It will be **more technical** with a bit of comparison between java and go. 

## Development news
There are currently 2 things which are in-progress:
- Right now I am working on [supporting advanced mode](https://github.com/IgorPerikov/mighty-watcher/issues/60). It's a mode for those who are looking for harder issues, have broad experience and probably have contributed to repository already. 
- My brother is implementing support for html reports. It was his idea on how to make output more convenient and user-friendly. You can track his progress [here](https://github.com/IgorPerikov/mighty-watcher/pull/61). Here is example:
![HTML report](https://thepracticaldev.s3.amazonaws.com/i/yw79cosagla12izadydu.png)

## Hacktoberfest
If you haven't finished your hacktoberfest goals yet or just want to make a contribution to kotlin-based project - I have some [issues](https://github.com/igorperikov/mighty-watcher/issues?q=is%3Aissue+is%3Aopen+label%3Ahacktoberfest) available. Or use it to find issues in your favorite(and starred :star:) open-source projects. As usual if you have something in mind - **don't hesitate** to discuss it.
Become Github Student Developer
Tags: developerpack, student, github, opensource
Published: 2019-10-04 16:35:56

<h2>What is Gihtub Student Developer Pack?</h2>
<p>Github Student Developer Pack is a collection of free services for student developers. Student can take benefits of commercial software and tools for free.</p>
<p>Now, question is 'How to apply and am I eligible?'</p>
<p>If you're a student, you're <i>eligible</i>. But there's a bad news. You must be enrolled in an institute to apply for this developer pack.</p>
<h2>What will you get?</h2>
<p>If you get selected for the developer pack, you'll get following stuff:</p>
<ul>
<li>Access to commercial tools like JetBrains IDEs</li>
<li>3 free domain names</li>
<li>Github Pro Membership</li>
<li>Cloud Credit in different cloud platfrom (Microsoft Azure, Digital Ocean)</li>
<li>Free access to paid courses</li>
</ul>
Isn't that cool?<a href='https://education.github.com/benefits'> List of all benefits</a>
<h2>How to apply?</h2>
<p>In order to apply, you need a proof that you're a student. You need an enrollment verification letter or your student ID card to proof that you're currently a student and studying in an institute.</p>
<p>After that go to <a href='https://education.github.com/'>Github Education</a> website and choose Student Developer Pack option.</p>
<p>Fill the application form after signing in to your Github Account. You need to provide the picture of the document that verifies your student status. Make sure that document is clear and in good quality.</p>
<p>Then explain how you plan to use github in future. Type some fancy sentences that you love open source and github is best community of open source developers. After submitting the application, you will get email of confirmation between 2 or 3 days. If you provided your school email address, you may get confirmation email in between 2 hours.</p>
<p>Now, what are you waiting for? Go and <a href='https://education.github.com/pack'>apply now</a>!</p>
Authentication for Blazor server app
Published: 2019-10-04 16:35:34

Hi All,

I am learning and developing blazor. So I need some assistance.

I want to add authentication after the successful creation of blazor server app. I know there is an option to change the authentication while creating a new project as shown in the screenshot attached below but I have a blazor server app without authentication and want to add this later.

Kindly assist me how can I do this.

Regards
Naresh
JavaScript Promises Explained
Tags: javascript, webdev, angular, react
Published: 2019-10-23 15:09:05

---
title: JavaScript Promises Explained
published: true
date: 2019-10-04 16:30:05 UTC
tags: javascript, webdev, angular, react
cover_image: https://i1.wp.com/geekyminds.co.in/wp-content/uploads/2019/06/promises.png
canonical_url: https://geekyminds.co.in/javascript-promises-explained/
---

## Hey geeks!
In this article, we are looking into Promises in JavaScript! As usual, I'm going to explain some foundation building concepts and then dive straight into the syntax.

## Here's what we will go through:
* Foundation concepts
  * Asynchronous Code
  * Blocking code
  * Concept of threads
* Creating Promises
  * Syntax
  * Resolve, Reject
  * Then, Catch, Finally
* Live examples
  * Resolving a promise
  * Rejecting a promise
  * Using finally() on a promise

[Continue reading "JavaScript Promises Explained | JavaScript Basics"](https://geekyminds.co.in/javascript-promises-explained/)

The post [JavaScript Promises Explained | JavaScript Basics](https://geekyminds.co.in/javascript-promises-explained/) appeared first on [GeekyMinds](https://geekyminds.co.in).
Created 4 pull requests and completed #HACKTOBERFEST 🙂
Tags: hacktoberfest
Published: 2019-10-04 16:23:50

Yay! I created 4 pull requests and Completed #HACKTOBERFEST Now i'm waiting for my T-Shirt 🙂

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/1p8t1pd4dn0l9vilgek8.png)
Automating with Python | Creating and classifying files
Tags: python, tutorial, learning
Published: 2019-10-04 16:21:29


Original post [Automating with Python | Creating and classifying files](https://letslearnabout.net/tutorial/automating-with-python-creating-and-classifying-files/ "Permalink to Automating with Python | Creating and classifying files")


Websites, Machine Learning, REST APIs… Professional Python has a lot of uses. But Python can also help us with mundane tasks, for example, automating repetitive tasks.

On the first part of the video, we are going to generate randomized students reports, containing random names, subjects, date of file creation, subjects and marks. And also how to delete only the .txt files generated to clean our folder.

On the second one, we are going to read the files, count how many failed subjects the student has, rename the file by adding it passed or failed, moving the file to a 'passed' or 'failed' folder, and then zipping both folders into .zip files

In this video you'll learn how to:

* Create files
* Read files
* Delete files
* Move files
* Randomize the content of the files
* Zipping folders

and more. With just using Python, no packages nor modules needed.

### The lesson

You have the code on my [Github account][1]. While it is easy to learn, I recommend you to watch the video where I explain what I'm doing on each line of the code and why. 

And of course, [remember to subscribe][2]!

{% youtube 50UntcVYLq8 %}

* * *

[My Youtube tutorial videos][2]

[Final code on Github][1]

[Reach to me on Twitter][3]

[More tutorials on my blog][4]

[1]: https://github.com/david1707/auto_teacher
[2]: https://www.youtube.com/channel/UC9OLm6YFRzr4yjlw4xNWYvg?sub_confirmation=1
[3]: https://twitter.com/DavidMM1707
[4]: https://letslearnabout.net/category/tutorial/
The Brave Browser just released a new way to support contributors on Github 🤑
Tags: github, opensource, money, brave
Published: 2019-10-04 16:04:00

---
title: The Brave Browser just released a new way to support contributors on Github 🤑
published: true
description: 
tags: github, opensource, money, brave
---

With the recent release of Brave ([0.69](https://twitter.com/brave/status/1179789944451022854?s=20)), they have added a new way to share your [Basic Attention Tokens](https://brave.com/brave-rewards/) on Github, through comments and issues.  

![](https://res.cloudinary.com/dscgr6mcw/image/upload/v1570204698/brave-github-post/Screenshot_at_Oct_04_11-58-13.png)

Brave already had Github accounts setup to be channels for which users could send their tokens, but you had to visit their Github profile page. With this feature, it should be much easier for Brave users to tip.

Anyone think this is a good idea? Too pushy? It would be interesting to hear what people think.
Newbie with performance questions
Published: 2019-10-04 16:02:14

Hi everybody, I'm new here and new in React world.
I'm learning React and as long I was learning "web development components" I didn't have so many performance issues on my laptop.
But when I tried to develop Apps with react-native everything became incredibly slow. No way to use it.
The comand "run-android" takes 20 minutes to launch the app on the emulator (android studio), but mostly crashes.

My question is: my laptop's CPU AMD 12 is it so slow? or is a problem that I have on node/react?

Following tutorials I see installations that the PC's guy makes in 30 seconds, I need 5 minutes.
Now I'm thinking to buy an Intel i9 but before that I'd like to be sure that I can't really get more than this.
Thanks in advance
Help with maven multi-module project / Java module system (with a PR)
Tags: help, discuss, java, hacktoberfest
Published: 2019-10-04 16:00:15

Hi,

does anybody have experience with Maven and the Java module system? We can not figure out what's wrong with a PR, which will introduce module-infos:

https://github.com/sirixdb/sirix/pull/106

Have a great weekend :-)
Johannes
Introducing Git and Github PRs to beginners
Tags: git, github, hacktoberfest
Published: 2019-10-04 15:59:39

---
title: Introducing Git and Github PRs to beginners
published: true
description: For Hacktoberfest, I decided to organise a workshop to introduce new programmers to git and github, and hosted it as a repo
tags: git, github, hacktoberfest
---

Tomorrow, Saturday 5th October 2019, I'm going to run [a workshop in Edinburgh](https://www.meetup.com/Edinburgh-Free-Software-workshops-and-exploration/events/265240016/) to introduce programmers in my area to Git and Github Pull Requests.

It's gathered some modest interest - I posted the event on the TechMeetup mailing list, where a professor said he'd share it with the university computer science groups, and with the Edinburgh Linux User Group mailing list, where I seem to have gotten both participants and volunteer assistants.

The question then was, how to run it? It wouldn't do to give a brief pep talk, and set people on their way on arbitrary projects... I have delivered git training at my company when we were migrating from SVN to git, but those sessions were 4-hour long. I couldn't run a workshop thay long for a casual event...!

The answer to the first question then was to write the presentation notes, tutorial *and* exercises [as a repo](https://github.com/taikedz/git-workshop) that the participants themselves will PR against as their first PR... and the second concern boiled down to: let's not get too far down in the weeds, let's just explicitly cover what we're here for, namely forking, cloning, pushing, and making a PR. No explaining branching models, hashes and the likes. Just the basics.

Of course during the session we'll get into the weeds, and I've offered to continue to provide dedicated help through a Riot.im channel (because, use open source, you know!).

Final cherry on the cake: it's easily adaptable for anybody use and run their own workshop. I've licensed it and all - and included instructions to boot.

Here's to a hopefully successful session...

EDIT: The session was a success!

I [updated the repo](https://github.com/taikedz/git-workshop) with the feedback I received, and it is ready to be run by anybody. I might even offer to run it at OggCamp 2019 in Manchester. If you're interested in the details, hit me up when there!
Flyer Design
Tags: design
Published: 2019-10-04 15:54:46

<h3>Hi everyone I haven't written anything in like a week or two so I wanted to tell a story about a flyer design I did this week.</h3>

I have a friend that is starting a new tutoring service to help kids get ahead before going to kindergarten. I'm not sure if it's just for the local kids in the community or others but I thought it was a cool and noble idea. I was happy that she was doing something she enjoyed. We need more teachers and our kids need more help in school, so seeing this brought a smile to my face. She created a flyer so she could attract more people for her service. The flyer was fun and kid-friendly but it was all over the place and not professional. You really couldn't tell what was going on if you saw it from afar. I know in this digital age you probably would only post them on social media but even then the flyer was crowded and it would take some time to decipher.

I saw it and in a fit of desperation went to my handy dandy <a href="https://www.figma.com/">Figma</a> tool and got to work. I know she tried her best when she made her version of the flyer but it was not at all what it could have been and should be. I didn't tell her I started on a new design because I didn't know how she would take it. Maybe she would have thought that I was insulting her hard work. I was nervous but determined to make the flyer. I thought of something professional but also fun. Creating a flyer is something anyone can do but conveying a message in a strategic but simple way is not.

Using the right background, utilizing the right font and working with whitespace is something you have to be cognitive of when designing anything. It didn't take me that long to get a good idea on the page. I finished it by the end of the day and sent it off hoping she wouldn't yell at me. She saw it and the first thing she said was: <em>"WOW! Where did you find this?!"</em> as though I had shown her someone was stealing her idea. I explained that no one had stolen her idea rather I wanted to help out and I had remade her flyer to be more professional.

Suddenly she was excited and happy with the changes. She said she liked it and I was glad I could help her. I created this flyer for KinderPrep Academy and just wanted to share it. Let me know what you think of the design. Check it out <a href="https://twitter.com/Andrewz_os/status/1180124528703352834/photo/1">here</a>

Thanks for reading.
Let's Program the Document Object Model aka DOM
Tags: javascript, react, tutorial
Published: 2019-10-04 15:52:20

In the [previous post](https://dev.to/harittweets/what-is-dom-document-object-model-1gdp), I shared the information about what a `DOM` is.

In this video, learn to work with your Browser and `Document Object Model (DOM)`. We will take an `HTML` page, load into the `Google Chrome` and interact with the `DOM` using the `Google Developer Tools`. 

We will query and manipulate the `DOM` to strengthen the understanding.


**********Watch all JavaScript Tutorials**********

http://bit.ly/javascript-youtube

***************************************************

Harit on Twitter: https://twitter.com/harittweets

Subscribe for more videos on JavaScript with Visualization: https://www.youtube.com/channel/UC0yZBnRsD9JRqLXBkfGym0Q?sub_confirmation=1
Follow bonsaiilabs on Twitter: https://twitter.com/bonsaiilabs
Follow bonsaiilabs on Facebook: https://www.facebook.com/thebonsaiilabs
Visit bonsaiilabs at https://bonsaiilabs.com
В эфире рубрика «Веселые айтинки» :)
Published: 2019-10-04 15:43:27


"Ex Kazakhstan President Nursultan Nazarbayev returned into Nur-Sultan city and held a meeting in  Nazarbayev center" - it's the way, that we call recursion!

![](https://sun9-20.userapi.com/c855636/v855636544/114335/lNiLgyPS9_8.jpg)