teleren/devto huggingface dataset:
Bash On Ubuntu
Tags: microsoft, windows10, ubuntu
Published: 2017-08-01 08:31:03

---
title: Bash On Ubuntu
published: TRUE
description: Bash is now avaiblable on Windows 10
tags: Microsoft, Windows 10, Ubuntu
---

Did you know that you can use the Bash Shell on Windows 10? You are not dreaming, Bash is available on Windows 10 thanks to collaboration between Microsoft and Ubuntu-creator Canonical.
In this post, I will show you how to install the Bash Shell on Windows 10.
The Windows Subsystem for Linux (WSL) provides you with a command line development environment identical to the one available on Unix systems without the need for virtual machines.
In Windows 10 Creators Update, there are a number of improvements to Bash on Windows. Including the ability to launch Windows apps & tools from within Bash
Microsoft is also working with SUSE and Fedora to bring their Linux distros to the Windows Store & Windows Subsystem for Linux (WSL)

To install Bash in Windows 10 follow this steps:
Enable Developer Mode
Go to Settings | Update and Security | For developers
Select Developer mode
 
When you enable developer mode you receive a warning because you will be able to sideload apps and run apps from Visual Studio in debug mode.  You must enable developer mode to use the Bash Shell on Windows. You can learn more about Developer mode at Docs.microsoft.com
  
Turn on the Windows Subsystem for Linux feature
Open Control Panel 
Go to Programs | Programs and Features | Turn Windows features on or off 
 
Select the Windows feature Windows Subsystem for Linux 

 
Run Bash
Open the Command prompt 
Run bash
You will be prompted to accept the license. Type y to accept the license.

The first time you install Bash on Windows, you will be prompted to create a UNIX username and password. This Unix username and password has no relationship to and can be different from your windows username and password.
 
Launching Bash on Windows

Launch Bash on Windows using either run bash at a cmd/PowerShell command-prompt 
or with the Start menu shortcut.

Start Menu | Bash on Ubuntu on Windows
 
Type a command such as ls or echo to test your installation.
 

Congratulations you are running Bash on Windows! To learn more about this feature check out the MSDN documentation on Bash on ubuntu on Windows.


Twitter @youssefmrini
What are motivational supplements you use? 
Tags: career, motivation, beginners, discuss
Published: 2017-08-01 08:11:55

---
title: What are motivational supplements you use? 
published: true
description: 
tags: career, motivation, beginner, discuss 
---
I personally listen to a few podcasts like Codenewbie, Developer Tea and Shop Talk Show.
And of course, my daily dose of Dev.toðŸ˜Š
What helps motivate you?
HTML5 web storage – offline storage solution for the web
Tags: html, javascript, webdev
Published: 2017-08-01 06:49:46

---
title: HTML5 web storage – offline storage solution for the web
published: true
description: Using HTML5 you can store data into user’s browser.
tags: HTML5, JavaScript, webdev
canonical_url: http://blog.mandarbadve.com/2014/01/30/html5-web-storage-offline-storage-solution-web/
cover_image: https://i1.wp.com/blog.mandarbadve.com/wp-content/uploads/2014/01/WebStorage.png
---

*This was originally posted on [my blog]
(http://blog.mandarbadve.com/2014/01/30/html5-web-storage-offline-storage-solution-web/)*

Using HTML5 you can store data into user’s browser. Before HTML5, there was only one way to store data using cookies. This web storage stores data in key/value pair. You can use this technique to store data offline.

How to check that browser supports web storage?

```javascript
    if(typeof(Storage) !== "undefined")
    {
        // Browser supports web storage. So you can use local and session storage
    }
    else
    {
        // Browser does not support web storage.
    }
```


There are two types of the web storage

1. Local Storage
2. Session Storage

###Local Storage
You can store data into local storage like

```javascript
localStorage.key = "value";
```
And you can retrieve it as

```javascript
var localStorageValue = localStorage.key;
```

This storage is persisted even you closes and reopen the browser.

###Session Storage

This storage is same as the local storage. One thing differs from local storage is that, the data will be lost if user closes the browser. So if you want to store data per session, go with this storage.

You can store data as follows

```javascript
sessionStorage.key = "value";
```

After you can retrieve as

```javascript
var sessionStorageValue = sessionStorage.key;
```

###How to check/debug web storage is working or not?

Developer tools of the browser will show data stored into the web storage. Following image taken from w3schools.com describes the where you can find the web storage.

![HTML5 web storage – offline storage solution for the web] (https://thepracticaldev.s3.amazonaws.com/i/jhrmyjsb7kdx505iilkt.png)


You can check your browser supports how many HTML5 features just opening http://html5test.com/ into your browser.
Drawing career inspiration from movies/TV
Tags: discuss, career, inspiration
Published: 2017-07-31 23:18:47

---
title: Drawing career inspiration from movies/TV
published: true
description: 
tags: discuss, career, inspiration
---

I was 16 when **Sneakers** was released in 1992. I remember seeing it at the theatre and having to whisper explanations of various plot points to the friend who was with me--she didn't "get" it, but I sure did!

Some 25 years later, I give credit to **Sneakers** for steering me toward Computer Science during university; and again now for sparking an interest in data science. Mind you, my aspirations are more "benevolent analyst" than Ben Kingsley's "black-hat anarchist" character. :)

*"I might even be able to crash the whole damn system."*

{% youtube coDtzN6bXAM %}


*"There's a war out there, old friend--a world war--and it's not about whose got the most bullets; it's about who controls the information."*

{% youtube oKprr3tEBew %}

----------------------------------------

Have others drawn career inspiration from movies/TV? A particular clip or character that gets you jazzed up about doing what you do (or perhaps could do) each day?
What is the main driver in getting a "professional" program like Photoshop vs paint.net?
Tags: discuss, opensource, career, design
Published: 2017-07-31 21:32:25

---
title: What is the main driver in getting a "professional" program like Photoshop vs paint.net?
published: true
tags: discuss, oss, career, design
---

Is it some extra value simply because Adobe? What makes it worth $30/month when something like paint.net is free? Features? Industry respect?
OpenSource Collabs 
Tags: discuss
Published: 2017-07-31 21:03:45

---
title: OpenSource Collabs 
published: true
tags: discuss
---

Hey, guys! I want to get a group of developers together and form an "OpenSource" team. I have a few GitHub projects I want to refactor and improve. Also, this is not exclusive to only my projects. I would like to work on others projects as well. If anyone is interested drop your GitHub and project name in the comments or contact me directly. 

Also, I would like any suggestions on how to contribute to and find good OpenSource projects and joining a group of coders involved in the community. Thanks!

Check out my GitHub here: https://github.com/InceptionCode
What are some ideas for tags on dev.to?
Tags: meta, discuss
Published: 2017-07-31 17:56:55

---
title: What are some ideas for tags on dev.to?
published: true
description: 
tags: meta, discuss
---

Ben started [#explainlikeimfive](https://dev.to/t/explainlikeimfive) last week. I'd love to hear ideas on other tags we could organize around!!
How to Turn an Android Device into a Web Server
Tags: go, android, iris, termux
Published: 2017-07-31 09:54:05

---
title: How to Turn an Android Device into a Web Server
published: true
description: Simple steps to setup a web server from a phone or tablet
tags: go, android, iris, termux
---

![article cover](https://thepracticaldev.s3.amazonaws.com/i/na51byqup84hs8e5lci5.jpeg)


Hello folks,

Yesterday I did manage to serve my web simple application from my android phone. By following some simple steps you can do it too, it’s ridiculous easy!


First of all I have to say that this experimental is tested and worked only with the [Iris web framework](http://iris-go.com/), written in [Golang](https://golang.org/) and Android version 5.1.

## Steps

Open your android device and follow the steps below.

- Install & open [termux](https://play.google.com/store/apps/details?id=com.termux)
- Execute the following commands by order

```bash
$ pkg install git
$ pkg install golang
$ export GOPATH=/data/data/com.termux/files/home/go
$ go get github.com/kataras/iris/v12@latest
$ cd /data/data/com.termux/files/home/go/src/github.com/kataras/iris/_examples/hello-world
$ go run main.go
```
- Open your favorite browser and navigate to 
http://localhost:8080

For those who understand better by watching media, I produced a simple video tutorial too!


{% youtube Vs5CScPeMA0 %}

## That’s all, pretty simple. Right?

Share your thoughts about this post and let me know what awesome apps you’re planing to build with Go + Iris!


The full source code of the web app we ran is located [there](https://github.com/kataras/iris/blob/master/_examples/hello-world/main.go).
If you have any further questions please feel free to leave a comment below or [open a discussion](https://chat.iris-go.com) with us.


_This article was originally posted at [medium](https://medium.com/hackernoon/how-to-turn-an-android-device-into-a-web-server-9816b28ab199)_
Laravel Nigeria — When meetups turn into conferences
Tags: meetup, laravelnigeria, laravel, nigeria
Published: 2017-07-30 05:38:52

---
title: Laravel Nigeria — When meetups turn into conferences
published: true
description: Laravel Nigeria meetup was a hit back to back and is on the verge of becoming a full blown conference.
tags: meetup, Laravel-Nigeria, Laravel, nigeria
---

![](https://thepracticaldev.s3.amazonaws.com/i/pq0ogtacx7zyrnmzlh6k.jpg)

When the idea of [Laravel Nigeria](https://laravelnigeria.com) came to me; I talked with Prosper and we decided to make it happen, it was not how we imagined it. We did not think there will be 350 people who RSVPd and 150+ on the waitlist. We simply did not think that.

The [first edition of Laravel Nigeria was a hit no doubt](https://blog.devcenter.co/building-the-laravel-nigeria-community-with-over-150-attending-the-first-meetup-c919d5ca373c) but nothing could have prepared me for the numbers of the second one. When I talked about the first one, I went into detail on how I organised the meetup with the help of companies like [Pusher](https://pusher.com), [Andela](https://andela.com) and a plethora of others. This time even more companies came forward to sponsor the event again. Chris Sevilleja from [Scotch.io](https://scotch.io) was amazing in the support for the meetup and we are glad it happened.

So without much talk I will share some of the pictures from the meetup. If you need more information about the next meetupor how you can help please leave a comment below and I'll be more than glad to reach out.

🔥🔥🔥🔥

![](https://thepracticaldev.s3.amazonaws.com/i/1z43zdpzw7ekez2a5z23.jpg)
![](https://thepracticaldev.s3.amazonaws.com/i/cburg1ixz6stox620154.jpg)
![](https://thepracticaldev.s3.amazonaws.com/i/g2e5hj4o8tp518f5mkty.jpg)


More coming soon.
Getting Back Into Blogging
Tags: beginners, blogging
Published: 2017-07-30 05:09:40

---
title: Getting Back Into Blogging
published: true
description: 
tags: beginners,blogging
---

[How to Build an Online Presence as a Junior Developer](https://dev.to/samjarman/how-to-build-an-online-presence-as-a-junior-developer)

I found this post a month back and it has been sitting in my phone's Chrome tab since them. It finally wore me down, and I started looking into how to get back into blogging. As a junior developer working with edge tech, I feel like I should have information to share and that the act of blogging consistently is another great screen activity.

After spending an entire day trying to figure out how to tear down [my site](https://lawrencechau.github.io/) and redesign it with blogging in mind, I decided that I would make dev.to my temporary blogging home rather than taking days to build/refine my own website. After all, procrastination is starting's worst enemy. There's probably a grammatical error in that phrase, but let's roll with it.

I am still looking to refine my web development skills on the side with VR. I have about 2.5 years of C#.NET experience, but I am more interested in getting started with Javascript and having it drive much of my new website. If anyone has any guides or suggestions on how I can do so, please let me know! Thanks for reading~
Controlling Python Async Creep
Tags: python, asyncio
Published: 2019-07-05 03:24:44

---
title: Controlling Python Async Creep
published: true
tags: python, asyncio
canonical_url: https://tryexceptpass.org/article/controlling-python-async-creep/
cover_image: https://tryexceptpass.org/images/controlling-async-creep.jpeg
---

Python added formal asynchronicity in the base language a while ago. It’s fun to play with [asyncio](https://docs.python.org/3/library/asyncio.html) `tasks` and `coroutines`, the basic constructs that execute almost in parallel. But as you start to integrate more with a regular codebase, you may find that things can get tricky. Especially if you’re forced to interact with synchronous code.

The complication arises when invoking _awaitable_ functions. Doing so requires an `async` defined code block or coroutine. A non-issue except that if your caller has to be async, then you can’t call _it_ either unless its caller is async. Which then forces its caller into an async block as well, and so on. This is “async creep”.

[Read on ...](https://tryexceptpass.org/article/controlling-python-async-creep/)
Day 14: sprymesh now stores all revisions of your website!
Tags: backonthehorse, motivation, revisions
Published: 2017-07-30 00:00:00

---
layout: post
title: "Day 14: sprymesh now stores all revisions of your website!"
date:   2017-07-30
published: true
canonical_url: http://blog.12startupsin12months.in/2017/07/30/day-14-sprymesh-now-stores-all-revisions-of-your-website/
comments: true
tags: 
  - Back on the horse
  - Motivation
  - Revisions
---

I lost Day 13 to my Analysis Paralysis and a lack of motivation. However, Today, I am back on the proverbial Horse!

It is difficult to be motivated all the time. Motivation waxes and wanes and so does your performance with it.
However, I have found a small hack to keep get my motivation up when I am feeling down. I have started watching the videos listed on https://www.startupschool.org/
And have been listening to podcasts like [Startups for the Rest of Us](http://www.startupsfortherestofus.com/) and [The art of product](http://artofproductpodcast.com/).
Both have good content and push my motivation levels up.

Anyway, I have finally added an essential feature to sprymesh which allows you to **Publish with confidence**: Revisions!

Now, you can make as many changes to your website as you want, with gay abandon! All your changes will be published under a **draft** subdomain.

So, if you have a website called **elixir.sprymesh.com** (I created the site to publish my elixir tips!). Your unpublished changes will be shown at **http://draft.elixir.sprymesh.com**.
You can keep making as many changes as you want and view them on the draft version of the website. Once you are satisfied you can just go to the web console and publish the selected version.
You can also at any point view old versions which will be listed on the site's details page

![Site Revisions](http://blog.12startupsin12months.in/assets/sprymesh-versions.png)

I am a firm believer in [dogfooding](https://en.wikipedia.org/wiki/Eating_your_own_dog_food). So, I'll be building the blog and the documentation site for sprymesh using sprymesh!

I'd love to have you guys try out sprymesh! Please let me know how you feel about this tool!
Changing an Uncontrolled Input to Controlled Error in React
Tags: javascript, react, newb, learning
Published: 2017-07-29 19:07:38

---
title: Changing an Uncontrolled Input to Controlled Error in React
published: true
description: My react linter kept giving me an error and nothing I changed in javascript fixed it.  A quick sprinkling of converters solved my problem
tags: javascript, react, newb, learning
canonical_url: https://www.gunnargissel.com/changing-an-uncontrolled-input-to-controlled-in-react.html
cover_image: https://thepracticaldev.s3.amazonaws.com/i/6muvklesgsfajh2fedxx.jpg
---

React wants form inputs and the like to keep their state inside React, inside of inside the input.  This style is called a "controlled input".  They also offer "uncontrolled input" where the input manages its own state.

React apparently does not like inputs switching from controlled to uncontrolled.  I was developing a form with the docs open next to my editor and I kept getting a `Warning: CustomInput is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: `[https://fb.me/react-controlled-components](https://fb.me/react-controlled-components)


As far as I could tell, my input was set up to always be controlled.  I changed javascript around and googled for quite some time before realization set in


## I was Switching a Form Value from `''` to `null`


This is apparently a _no-no_ in React's controlled component land.  My initial state set up had all empty strings, and the only subsequent state manipulation was to get data from webservices.  The webservices I'm working with return a fairly faithful representation of data from a database - nulls and all.


I solved it by converting my state variable to `const` in the render method - with a twist:


    const nullable = this.state.nullable == null ? '' : this.state.nullable;


A little sprinkling of last minute converters and all is well.

[Get a monthly email with great tech and tech leadership articles from around the web](http://www.gunnargissel.com/pages/email-signup-1.html)

_Thank you [Sebastian Dooris](https://www.flickr.com/photos/sebastiandooris/) for the [sprinkles](https://flic.kr/p/61ZqoU)_

If you like this, [visit my blog for more](http://www.gunnargissel.com)
Hi, I`m Velimir Majstorov
Tags: introduction, php, tcl, pentesting
Published: 2017-07-29 09:30:49

---
title: Hi, I`m Velimir Majstorov
published: true
description: Introduction
tags: introduction, php, tcl, pentesting
---

Hi, my name is Velimir Majstorov

You can find me at local bar.

I live in Belgrade, Serbia

I mostly programming in PHP, but I love LISP/Lua based languages like TCL 4example.

I`m currently learning JS, and better understanding machine language :)

I glad to be here, I love to read your posts :)
Explain Bubble Sort Algorithm Like I`m Five
Tags: explainlikeimfive, algorithm, sortalgorithms
Published: 2017-07-29 09:24:03

---
title: Explain Bubble Sort Algorithm Like I`m Five
published: true
description: Sorting algorithm
tags: explainlikeimfive, algorithm, sort algorithms
---
I see this tag is popular here, so please explain me for example Bubble Sort Algorithm like I`m five :)
Anyone who code in Tcl/Tk
Tags: tcl
Published: 2017-07-29 09:05:49

---
title: Anyone who code in Tcl/Tk
published: true
description: /dev/language
tags: tcl
---

Any one who still coding in Tcl/Tk?
Are this language is dead?
I`m coding TCL since 1999. what about you?
Friday Blast #3
Tags: fridayblast, links, post
Published: 2019-01-20 15:17:56

---
title: Friday Blast #3
published: true
tags: friday_blast,links,post
canonical_url: https://horia141.com/friday-blast-3.html
series: "Friday Blast"
---

A shorter blast this week, on account of being on vacation.

[A brief history of the UUID (2017)](https://segment.com/blog/a-brief-history-of-the-uuid/) - what I expected to be a short article about UUIDs turned into a deep dive into their long history. There’s even some code archeology involved. Fun fact: telephone numbers were the first unique identifiers we used in communication.

[The best icon is a text label (2015)](https://thomasbyttebier.be/blog/the-best-icon-is-a-text-label) - and the best summary is the title itself.

[Implementing state machines in PostgreSQL (2017)](http://felixge.de/2017/07/27/implementing-state-machines-in-postgresql.html) - worth it alone for the advanced usage of Postgres, this article talks about various ways of implementing state machines directly in Postgres. More than just having a `state` column and letting application code deal with state management, that is.

[Boolean logic in polynomials (2017)](https://jeremykun.com/2017/07/24/boolean-logic-in-quadratic-polynomials/) - a neat way to encode boolean formulas as polynomials. You transform a boolean expression <script type="math/tex">A</script> with variables <script type="math/tex">x_1, x_2, \dots, x_n</script> into a polynomial <script type="math/tex">A_P</script> in <script type="math/tex">x_1, x_2, \dots, x_n</script> by turning every `AND` into multiplication and every negation of a term <script type="math/tex">F</script> into <script type="math/tex">1 - F_P</script>. `OR` is handled by [DeMorgan’s law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws). There’s two or three examples in the article of real-life[1] applications of this transformation as well.

* * *

[1] Real-life CS theory at least.
Cool companies to work for
Tags: career, discuss
Published: 2017-07-28 20:48:36

---
title: Cool companies to work for
published: true
description: comment below what you think are the most interesting companies to work for
tags: career, discuss
---

Going on my coop term soon, wanted to make a list of interesting companies to apply to. My only wishes are that a company has to be in Canada or States and that it shouldn't be too big. Comment below what you think are the `S i C k E s T` and most interesting companies to work for. 

Some examples: 
1. Comma.ai
2. Simulmedia
3. otto
I'm running my first tech workshop next week.  Any general advice?
Tags: discuss, react
Published: 2017-07-28 19:41:31

---
title: I'm running my first tech workshop next week.  Any general advice?
published: true
tags: discuss, react
---

I'm running my very first workshop/tech talk next week on React!  I will be teaching the basics of React and building a simple To Do list application. 

I intend for the workshop to be mostly live coding with a few slides here and there.  

As someone who has never done this before, I'm looking for any advice on giving a talk/workshop, live coding, handling slides, calming nerves, etc.  Thanks in advance!
How do you stay focused at work? 
Tags: discuss, productivity
Published: 2017-07-28 18:48:14

---
title: How do you stay focused at work? 
published: true
description: 
tags: discuss, productivity
---

I'm about a year into my first developer job (I'm a former nonprofit education program director turned JavaScript developer, which is a whole other post). My office is a big open floor plan, there's lots of chatter on Slack and in person, and of course there's a flood of articles, forums, blogs, podcasts, tweets, and online learning platforms to distract myself with - and that's just the content that's web development related! My team has relatively few meetings, and I have no desk phone. 

I love my job and I love my work environment, but sometimes I feel like a kid in a candy store who can't settle down and concentrate when needed. My fancy new headphones have been a lifesaver but sometimes even they can't do the trick.  

Eager to hear from other devs - how do you stay focused at work?