teleren/devto huggingface dataset:
入門自然言語処理 pp.1-47
Tags: nlp, python, reading
Published: 2018-01-02 22:57:20

---
title: 入門自然言語処理 pp.1-47
published: true
description: 
tags: nlp, python, reading
---

オライリーの「入門自然言語処理」を読み始めた。2012年刷の本だけど、大きめのチュートリアルとして読むぶんには、たぶん問題ない。何も知らないんだから。

> ロマンスのジャンルにおいてもっとも頻繁に現れる法助動詞が「could」なのに対し、ニュースの 場合は「will」であることがわかるだろう。そのことをこのコードを実行する前に予測できただろう か。特定の語の数を数えることでジャンルが特定できるかもしれないというアイデアは、6章で再 び収り上げる。

こんなこと考えもしなかった。いきなり面白い。

機械学習とかよりも前に、基本的な統計でできることはたくさんありそうだ。

今日は47ページまで読んだ。
How to create an Ubuntu live USB using the CLI
Tags: ubuntu, usb, cli, tutorial
Published: 2018-02-12 16:02:24

---
title: How to create an Ubuntu live USB using the CLI
published: true
tags: ["ubuntu", "usb", "cli", "tutorial"]
canonical_url: https://lobotuerto.com/blog/how-to-create-an-ubuntu-live-usb-using-the-cli/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/q9407upv9esr120sq26r.jpg
---

***

You can check the latest updated version of this article at [lobotuerto's notes - How to create an Ubuntu live USB using the CLI.](https://lobotuerto.com/blog/how-to-create-an-ubuntu-live-usb-using-the-cli/)

***


If the _Startup Disk Creator_ app is not working for you or takes forever to finish, or always present an error at the end… Why don’t you try deploying the Ubuntu ISO from the CLI?

It’s super easy, let’s see how.

_Be sure to have an `.iso` file ready, or download the latest Ubuntu image from [here.](http://releases.ubuntu.com/ "Ubuntu Releases")_

# Find the right letter for your device

Insert the stick into a port and get a list of connected devices with this:

```
sudo fdisk -l
```

Identify the letter for your drive on the output, in my case the drive I’m looking for is this one:

```
/dev/sdb1 8192 15636863 15628672 7.5G c W95 FAT32 (LBA)
```

_I can tell because it’s —supposedly— an 8GB device, look at the 7.5GB size reported above._

In this example, the letter for the drive is the `b` from `sdb`. It could have been `c`, `d` or something else. Just **make sure** that it is indeed the drive you want to trash. You won’t be able to recover anything from it once it’s been_zeroed._

# Zero the bits out of the USB drive

Next, let’s _zero_ the drive out, this serves as a security measure and also it allows you to tell if the drive is still functioning well —if the drive is dying, the process will take an unusual long time, or it’ll get stuck before reaching the end, that’s a sign that you need to get a new USB.

Ok, let’s write zeros all over the USB drive with:

```
sudo dd if=/dev/zero of=/dev/sdX bs=4M status=progress conv=fdatasync
```

It’ll be reporting progress back to you.

# Copy the ISO image to the USB drive

When finished, go to the directory where you downloaded the **.iso** file, and deploy it to the USB like this:

```
sudo dd if=ubuntu-image.iso of=/dev/sdX bs=4M status=progress conv=fdatasync
```

That’s it, now you should have a bootable USB with Ubuntu in it!
Dark mode in JSFiddle
Tags: showdev, javascript, webdev
Published: 2018-01-02 19:12:41

---
title: Dark mode in JSFiddle
published: true
description: Long awaited dark mode in JSFiddle is here! 
tags: showdev, javascript, webdev
---

{% twitter 946872516399779843 %}

If anything was a clear take from [our roadmap](https://trello.com/b/LakLkQBW/jsfiddle-roadmap) (and that tweet \^) is that people really want a dark mode in JSFiddle – that feature request got a **whooping 484 votes**.

Took a while finally managed to get it done, and it turned **[out really, really nice](https://jsfiddle.net)**.

[![](https://thepracticaldev.s3.amazonaws.com/i/5zzr3h0foe04onjolqx7.png)](https://jsfiddle.net)

A few months back I've done a poll, where most JSFiddle users said they actually prefer a dark theme, which is why that one is now the default.

The update brought some other improvements, like **completely removed all web/icon-fonts**, which we're always a burden to maintain and had a lot of negative impact on loading times. Now all icons and SVG – actually there's not a single image on the site, all is code. 

Who doesn't love better loading times! 🚀

There are a few more updates dropping soon, one of which is another big one – switching between different editor grids!


{% twitter 947462762464268288 %}
Welcome Thread - v7
Tags: welcome
Published: 2018-01-02 18:32:06

---
title: Welcome Thread - v7
published: true
description: Introduce yourself to the community!
tags: welcome
---

![Balloons saying hello](https://media.giphy.com/media/l2Jhu9OrGRImXT4Kk/giphy.gif)

# Welcome!
1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋

Let's go!
#2018Liberation
Tags: life, 2018liberation, goals, growingedge
Published: 2018-01-02 18:25:49

---
title: "#2018Liberation"
published: true
tags: Life,2018Liberation,goals,growing edge
canonical_url: http://www.heidiwaterhouse.com/2018/01/02/2018liberation/
---

I loved Cate’s post about [deciding on liberations instead of resolutions](https://medium.com/@catehstn/the-2018liberation-list-4e229bdbb919). If I think there’s a change I should make in my life, I try to just… make it, instead of waiting for an arbitrary time marker. mostly because if I think about it too much, I’ll often talk myself out of it. But liberations? I need some of those, too.

# Liberation

1. Unsubscribing the third time I delete a newsletter unread.
2. Resetting all my slacks and media inputs to Read status whenever I feel like it.
3. Getting rid of every item of clothing I’m keeping in case I lose weight again.
4. Accept that I am terrible at Approved Gift Giving occasions, and just let myself be spontaneous about gifts.
5. Hiring household work rather than trying to teach/enforce it. Not for everything, but maybe that’s just not going to be my legacy as a parent, and that’s ok.
6. Helping assholes.\*

\* I started my new year off with an extensive twitter thread from some jerk in Australia who responded to one of my friends being excited I’ll be giving a workshop by going on and on and _on_ about how open source was life-ruining and stupid, and we were all stupid. And he was wrong, and rude, and abrasive, and I dropped everyone else off the reply list and gently replied that this probably wouldn’t help his job hunt, and had he considered not being a jerk? And then I read Cate’s post, and his follow-up explaining that he hadn’t meant to go after anyone, he just wanted us all to understand that open source was terrible. And then I blocked him, gentle reader. Because I have literally been playing gentle explainer to assholes since I got online at 17, and 24 years is enough. I have done my time. Someone else can help the deliberately abrasive people, or they can stew, but it doesn’t have to be my job.

# Growing Edges

These are not exactly resolutions, more like things that I’m looking forward to working toward.

- Write a book. Also, pitch a book (different books)
- Level up my public speaking (this is a post I’m mulling)
- Make some new types of garments: jeans, bras
- Work toward online teaching/coaching/mentoring skills. Give classes? Run webinars? That sort of thing.
- Parent my kids in the ways that work best for them. That’s an every year goal, but the goalposts move like water on a hot griddle.
Ionic alternatives
Tags: ionic, vue, angular
Published: 2018-01-02 17:36:06

---
title: Ionic alternatives 
published: true
description: 
tags: Ionic, vuejs, angular
---

Hi, I recently started to learn vuejs. 

Now I read about the ionic framework. I figured out that there was no support for vuejs, so I wonder if there is any good alternative to ionic that can be used in vuejs and also angular.

What do you recommend and think?
Run a LoopBack App on Google App Engine
Tags: loopback, googlecloud, googleappengine, node
Published: 2018-01-02 16:53:01

---
title: "Run a LoopBack App on Google App Engine"
published: true
description: Learn how to host and run a LoopBack application on Google App Engine. We will also set up Firestore as the database of our application.
tags: #loopback #googlecloud #googleappengine #nodejs
canonical_url: https://auth0.com/blog/run-a-loopback-app-on-google-app-engine/
---

In this article, we are going to see how to setup a Google App Engine and host a LoopBack app on it. We'll deploy a sample LoopBack application to Google App Engine.

[Read more ☁️](https://auth0.com/blog/run-a-loopback-app-on-google-app-engine/?utm_source=dev&utm_medium=sc&utm_campaign=loopback_gengine)
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2018-01-02 16:10:57

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/xsr1z6iqv0pd7p3s6ns3.png
---

#1. Assess My API Approach

Community member [imthedeveloper](http://dev.to/imthedeveloper) welcomes critique on their approach to API key generation, storage, and policies in a side project. A great conversation follows in the comments.  

{% link https://dev.to/imthedeveloper/critique-my-plan-api-key-for-authentication-26i5 %}

#2. A Bare Minimum for Vim

To vim, or not to vim?  That seems to be the eternal question.  For everyone going with the first choice, this article runs down the basics you'll need to know. 

{% link https://dev.to/hamza/vim-for-starters---the-minimum-you-need-to-know-3ob %}

#3. Trending Git Repos

This "aggregation style" post got a ton of love.  [junp0819](http://dev.to/junp0819) ran down some of the trending open source Javascript repos on Github.  From snippets to bundlers to games.

{% link https://dev.to/junp0819/weekly-trending-repositories-on-github-1lpc %}

#4. Need, or want?  Need.

Highlighting jQuery's usefulness with a number of examples showing the native approach vs. the jQuery-assisted version.

{% link https://dev.to/munieru_jp/i-need-jquery-51dj %}

#5. I wish I knew back then...

A really terrific short/sweet article that highlights a number of learnings that "weren't so obvious" at the beginning.  I'd love to see more of these in other languages.

{% link https://dev.to/henbaku/things-that-werent-so-obvious-when-you-starting-to-program-in-python-2fe %}

#6. Reading List Recap

[Blaine](http://dev.to/bosepchuk) shares his 2017 reading list with rankings and reviews. It's great to see programming-related reads represented alongside fiction and business books.  Definitely give it a look if you need some reading inspiration.

{% link https://dev.to/bosepchuk/books-i-read-in-2017-21p8 %}

#7. Walk around the Block

Another excellent write-up in [damcosset](http://dev.to/damcosset)'s series of articles about blockchains.  This post delves into the "block" and uses examples to describe merkle tree roots and much more. 

{% link https://dev.to/damcosset/blockchain-what-is-in-a-block-48jo %}

 
_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Monday!_
Should you commit your /vendor folder to git?
Tags: discuss, deployment
Published: 2018-01-02 16:09:52

---
title: Should you commit your /vendor folder to git?
published: true
description: A discussion about the pros and cons of committing 
tags: discuss, deployment
---

The recommendation from Composer is *NOT* to commit your /vendor folder and have your deployment process take care of running `composer install` to grab all your dependancies.

I'm coming round to the school of thought that having your /vendor folder in git has some pretty big advantages after reading this article:

https://www.codeenigma.com/build/blog/do-you-really-need-composer-production

I'm curious to see if anyone else thinks this is a good idea!
About AMA on dev.to
Tags: discuss, meta
Published: 2018-01-02 14:10:11

---
title: About AMA on dev.to
published: true
tags: discuss, meta
---

Just some questions about AMA. First, I was wondering if dev.to already had scheduled some AMA in the near future. If so, who will it be?

Second, how are AMAs organized? Do you take requests? Or do we just ask people we would like to see do an AMA directly and they create an appropriate post? Does the ama tag alone trigger the little popup at the bottom of page indicating an AMA is currently happening?

Thanks!
How do I Include Click Event in Powershell Notification?
Tags: powershell, notification, windows10, help
Published: 2018-01-02 13:39:52

---
title: How do I Include Click Event in Powershell Notification?
published: true
description:  Trying to make this existing Powershell notification script also start a program on the event of a click. Any ideas how to do that? Thanks!
tags: Powershell, Notification, Windows 10, help
---
##Here's What I've Got
-A powershell script that can create a notification. This working script can be found [Here](http://www.itcommand.tech/Powershell.txt)
-A Batch script to call said script
##Here's What I need
-For my powershell script to also start a program when it is clicked on
-That's it
I know it's possible. I don't know how. Note that I'm using Windows 10.
Here's an updated version of what I have so far:


    
     [void]         
     [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") 
     $objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon 
     $objNotifyIcon.Icon = "icon.ico"
     $objNotifyIcon.BalloonTipIcon = "None"
     $objNotifyIcon.BalloonTipText = "Body  text or description" 
     $objNotifyIcon.BalloonTipTitle = "Title" 
     $objNotifyIcon.Visible = $True 
     register-objectevent $objNotifyIcon BalloonTipClicked BalloonClicked_event - Action Start-Process -FilePath "C:\users\Public\ITCMD\Toggler\Toggle.bat"
     $objNotifyIcon.ShowBalloonTip(10000) 

Note that what I have right now does not let me start a program, and also leaves the icon in the system ^ tray, and it cannot be removed without restart.(big problem).
JavaScripts Regular Expressions Get More Power
Tags: javascript, regex, coding
Published: 2018-01-02 13:10:19

---
title: JavaScripts Regular Expressions Get More Power
published: true
description: There are RegExp updates incoming!
tags: javascript, regex, coding
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1xfq2viss27xeb3hkt3k.png
---

_[cover image by Mike Lewinski on Flicker, cropped by me.](https://www.flickr.com/photos/ikewinski/)_

Regular expressions are the favorite go-to solution of most devs. Some love their Regex so much they would even use it to parse text that doesn't have a regular gramma at all, like [HTML](https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags#1732454)

Anyway, the `RegExp` class that is part of JavaScript was a bit lacking on the feature side, but this is about to change in the (hopefully) near future.

## The `s` Flag

Routined users of regular expressions know the `.` operator rather well. It matches one character. Sadly, in JavaScript, it doesn't match characters like linebreaks or `\n`.

Using the `s` new s flag changes this behavior. 

```regex
/^.$/s.test('\n') // == true
```

## Lookbehind Assertions

Often you want to match text that is surrounded by special characters, but you don't want to include these special characters. JavaScript only allowed to look for these that _follow_ the text you need. With this update you can also look at those that preceded your text.

`(?=<PATTERN>)` for positive lookahead
`(?!<PATTERN>)` for negative lookahead
`(?<=<PATTERN>)` for positive lookbehind
`(?<!<PATTERN>)` for negative lookbehind


```regexp
// Positive lookahead, matches text that precedes "XYZ" 
/[\w]*(?=XYZ)/

// Negative lookahead, matches text that isn't preceded with "XYZ"
/[\w]*(?!XYZ)/

// Positive lookbehind, matches text that follows "XYZ"
/(?<=XYZ)[\w]*/

// Negative lookbehind, matches thaxt that doesn't follow "XYZ"
/(?<!XYZ)[\w]*/
```

## Named Capture Groups

A recurring problem is also to match many parts of a text and use the results later. Regular expressions will soon allow you to name these results, so they are easier to use.

You can use `(?<<NAME>><PATTERN>)` to create a group with a specific `<NAME>` that matches your `<PATTERN>`. They will later be stored in the `groups` property of your match result object.

For example, to match a date that comes in a specific format.

```javascript
const pattern = /(?<day>[\d]{2})\.(?<month>[\d]{2})\.(?<year>[\d]{4})/;

const {day, month, year} = patter.exec("30.04.2017").groups;
```

## Conclusion

Many times I was using some online [regular expression creator](https://regexr.com/) to build rather complicated patterns just to realize that JavaScript doesn't support them. Often this lead me to splitting the patterns and mixing them with JavaScript logic to make it work. With the new additions this shouldn't be a problem too often anymore.
Year Of Commits: simple systray program in Go
Tags: go, github
Published: 2018-01-02 10:41:47

---
title: "Year Of Commits: simple systray program in Go"
published: true
description: Systray program in Go to show how many days in a row I contributed something on GitHub.
tags: go, golang, github
---

Happy New Year Gophers! One of my goals for 2018 is to commit a code to GitHub every single day. So "Contributions" on GitHub will look like this:

![Contributions](http://pliutau.com/yearofcommits-full.jpg)

To track this process I decided to write a Go program, which will be always in my tray, and which will show how many days in a row I committed something to Github.

Tadaa! [yearofcommits](https://github.com/plutov/yearofcommits)

It's a single-file command line tool using the following packages:

 - github.com/getlantern/systray
 - github.com/google/go-github/github
 - golang.org/x/oauth2

We're installing them using [dep](https://github.com/golang/dep).

[systray](https://github.com/getlantern/systray) is a cross-platform package to place an icon and menu into notification area. Though I tested it only on Mac.

Then application uses GitHub API with help of [go-github/github](github.com/google/go-github/github) Go package. GitHub API doesn't have contributions endpoint, so we need to get all repositories and get all commits made by specified user.

```
client.Repositories.List(ctx, user, reposOpts)
client.Repositories.ListCommits(ctx, user, repo.GetName(), commitsOpts)
```

The rest is easy, count days.

![Contributions](http://pliutau.com/yearofcommits.png)

To run it in locally you need to install `dep` and run:
```
dep ensure
go install
yearofcommits -u github_user -t github_api_token
```

Also, if you want keep it running even after you restart your Mac, you can configure `launchctl`. Create `/Library/LaunchAgents/yearofcommits.plist` file with the following XML:

```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>yearofcommits</string>

    <key>OnDemand</key>
    <false/>

    <key>UserName</key>
    <string>MAC_USER</string>

    <key>GroupName</key>
    <string>MAC_GROUP</string>

    <key>ProgramArguments</key>
    <array>
            <string>/go/bin/yearofcommits</string>
            <string>-u</string>
            <string>GITHUB_USER</string>
            <string>-t</string>
            <string>GITHUB_TOKEN</string>
    </array>
</dict>
</plist>
```

Change `/go/bin/yearofcommits` to the absolute path inside your $GOBIN.

Run:
```
sudo launchctl load /Library/LaunchAgents/yearofcommits.plist
```

[Origin post in my Blog](http://pliutau.com/year-of-commits/)
Video: Using go-bindata with html/template
Tags: go, video
Published: 2018-01-02 10:40:05

---
title: "Video: Using go-bindata with html/template"
published: true
description: 
tags: go, golang, video
---

[go-bindata](https://github.com/jteeuwen/go-bindata) converts any text or binary file into Go source code, which is useful for embedding data into Go programs. So you can build your whole project into 1 binary file for easier delivery.

Let's write some program which will have html template file and build this program in a way that we will need only 1 executable file to run it.

[packagemain #3: Using go-bindata with html/template](https://youtu.be/r7J9jJ6fNG4)
Store Locator Magento 2 
Published: 2018-01-02 10:32:01

---
title: Store Locator Magento 2 
published: true
tags: 
---

[Store Locator Magento 2](https://www.magesolution.com/store-locator-magento-2.html)allows your clients to easily find and see full list of your stores even the nearest stores to your clients' location and the available products of those stores that clients want to buy. Your stores will be shown on Google Map.
 
![Store Locator Magento 2](http://www.magesolution.com/blog/wp-content/uploads/2016/02/store-locator.png)

FULL FEATURES LIST
For customer
Search stores by country, state/ province, city & zip code and search stores by distance
View full stores list with custom pin icon on Google map
Switch view mode seamlessly between map and satellite
View detail store with store information and store on map
For Admin
Add all needed store information such as address, contact info, website, tags, images etc
Set store's open times & days off flexible
Enter address or latitude and longitude to get the location on map or click on map to choose location
Store Locator Magento 2 allow you show StoreLocator link on top links or not and Change the title of top link
View more: https://www.magesolution.com/store-locator-magento-2.html
Task for this New year. Find bugs in Dev.to website. Make it better.
Tags: debugging, ui, discuss, meta
Published: 2018-01-02 08:49:14

---
title: Task for this New year. Find bugs in Dev.to website. Make it better.
published: true
description: Try to find as many bugs in the dev.to website and report them 
tags: debugging, ui, discussion, meta
---

Today as I was reading an article in Dev.to I found a UI issue. When I clicked many times quickly on the heart icon on the bottom of each article, lots of times the counter goes nuts. For example, first it was 10 hearts, then after some clicks, it goes 9 then 8, etc.

When I refresh the page the counter starts again to the original value 10. While I don't find it too much concerning I was wondering if it would be a cool idea for people visiting the site to try to find as many bugs as they can and report them. Maybe do a competition or whatever.

Thoughts?