teleren/devto huggingface dataset:
Being Your Own Product Owner
Tags: discuss, productivity
Published: 2019-03-10 20:49:25

---
title: Being Your Own Product Owner
published: true
description: How to manage yourself and boost productivity
cover_image: https://www.printwand.com/blog/media/2012/01/ultimate-guide-to-your-product-launch.jpg
tags: discuss, productivity
---

As some of you<a href="#note1" id="note1ref"><sup>1</sup></a> might have realized, I am not writing any articles recently. I could state a lot of different reasons why (and some of them will be material for upcoming blog posts, by the way), but the main concrete reason for it is that I am spending most of my spare time creating my blog.

Whether the world needs another dev-tech-geeky blog made with Gatsby is highly arguable, but what is interesting for me is the process. 

As opposed to my stereotypical pet project, I am trying to stick with a "business-like" process. 

## Design

Following what I learned from [this awesome book](https://www.amazon.com/Elements-User-Experience-User-Centered-Design/dp/0321683684), I have split the design of this product into layers, allowing me to get to the design phase with a lot of light already shed.

The document I produced can be found [here](https://hackmd.io/s/SJJDvFfvE).

As you can see, the document is far from the level of details discussed in the book and way more simplistic. Nonetheless, it turned out to be a huge productivity boost for me. With development (and music and other things within my comfort zone) it was crystal clear which kind of difference a proper plan could make. With design, for me, it was *mindblowing*.

![Mindblown GIF](https://media.giphy.com/media/5aLrlDiJPMPFS/giphy.gif) 

The main focus during this phase has been forgetting I am a developer, forget technical constraints and try as hard as I could to think like a designer.

This led me to produce the design you can see [here](https://www.figma.com/file/JBpXSOaeMeN6dDjf4lyQeKxP/CDD?node-id=68%3A7).  

## Owning the product

If shifting from the Developer to Designer has been hard, shifting from Developer to Product Owner is actually being even harder. 

Although I thought I knew what to expect from a good user story, producing a good one is actually a completely different story (pun intended).

[This](https://trello.com/b/1uRW5ouh/coffee-driven-developer) is the board I am working with.

## Why this post?

Well, as my own Product Owner I feel a bit at loss right now. 

Maybe I am introducing too much boureaucracy in the process, but I really struggle in dividing my Developer self from my Product Owner self and this is exactly why I am asking for your help.

As developers, what would you like to see in a board like this? What is missing? 

As product owners, can you suggest any good resource to learn how to write kickass stories and tickets?

Thank you all!

> If you were still wondering, the code is still in a very bad shape, but as soon as I reach the `v0.0.1` milestone, I will open source it.

---

<a id="note1" href="#note1ref">1</a>. It's actually a lot of you ❤ I never would have thought of having ~3.5k followers. Thanks to each and every one of you!
Serverless - from "Hello World" to exposing REST Api in under 10 minutes
Tags: serverless, cloudfunctions, openwhisk, cloudnative
Published: 2019-03-10 20:21:49

---
title: Serverless - from "Hello World" to exposing REST Api in under 10 minutes
published: true
description: A short blog post on Serverless - from a browser or CLI 
tags: serverless, cloud functions, openWhisk, cloud native
---
![[]](https://thepracticaldev.s3.amazonaws.com/i/g7m1nm2cfh2d2kfpuoek.png)
[So you've been hearing a lot of buzz about Serverless tech, but what exactly is the serverless or cloud functions? Serverless has become the new style of coding, and it might be perfect to offload your mobile apps, and container based systems without incurring unnecessary costs. Read more here](https://blumareks.blogspot.com/2019/03/serverless-from-hello-world-to-exposing.html)
WordPress Database replacing the easy way
Tags: wordpress, npm, node, showdev
Published: 2019-03-10 20:18:50

---
title: WordPress Database replacing the easy way
published: true
description: CLI tool to export a local database and do the search replace making it ready to import and deploy it on your staging/production environment
tags: WordPress,NPM,node,showdev
---

Hi,
I published an NPM package a small cli tool which does the exporting and replacing the URL for a WordPress website piece of cake. You can export and replace within 10 seconds (depending on the size of the database and how fast you type).

![demo](https://raw.githubusercontent.com/perlatsp/devild/HEAD/demo.gif)

TLDR;
[NPM link](https://www.npmjs.com/package/@perlatsp/devild)
[Github link](https://github.com/perlatsp/devild) 

------

I started this as a project for personal use but decided to make it as an NPM package and publicly accessible.  We all know the ritual for WordPress development.
- Develop local using Docker containers 
- Use git commit, git push (or FTP upload for old school hardcore people) to deploy 
- open phpmyadmin, find the database, export the database
- find the file in the downloads folder (find which one is the latest from `database (2).sql` or `database (3).sql` or `database (5).sql` because you deleted (4)
- replace the local URL with the staging/production URL you can do it by:
   - using any text editor to search/replace the URL or
   - using a plugin to import and replace URL in the database
        - Install the plugin
        - Configure the plugin
        - Run the search/replace and wait to finish
        - Done
Or do the following while you are in your project directory: 
- run `devild db:export` and follow the instructions to export your database in your current directory
- run `devild db:replace` and follow the instructions to replace the URL and create another file to keep the original one.
- done  ( ~10 seconds ⏳ )


This package is available at [NPM Registry](https://www.npmjs.com/package/@perlatsp/devild) where you can install it by running `yarn global add @perlatsp/devild` or `npm i -g @perlatsp/devild`

Feedback and PR are more than welcome. :D 
{% github perlatsp/devild %}
Visualise JavaScript, TypeScript and Flow codebases as meaningful and committable architecture diagrams
Tags: javascript, typescript, node, webdev
Published: 2019-03-10 19:58:13

---
title: Visualise JavaScript, TypeScript and Flow codebases as meaningful and committable architecture diagrams
published: true
description: 
tags: javascript,typescript,node,webdev
---

[![arkit](https://arkit.pro/arkit.svg)](https://www.npmjs.com/arkit)

- Supports JavaScript, Node.js, TypeScript and Flow code
- Identifies, connects and groups configured architectural components
- Visualises all components or some segments of the architecture
- Exports codebase visualisation as SVG, PNG or Plant UML diagram
- Integrates into development flow, so your CI, VCS, README and PRs are happy

[![arkit architecture diagram](https://thepracticaldev.s3.amazonaws.com/i/ms35zibk46g31ywklu92.png)](https://www.npmjs.com/arkit)
Best blogs/podcasts to follow for Python developers
Tags: python
Published: 2019-03-10 19:40:59

---
title: Best blogs/podcasts to follow for Python developers
published: true
description: I was always eager to find new blogs about python but found just a handful of them. 
tags: python
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ik6c7d9y4jt06ywumxxx.jpg

---

I want to share blogs and podcasts that I occasionally read and listen to. 

## [Python subreddit](https://www.reddit.com/r/Python/)

This is a good news feed for any news related to Python. 

## [Dev.to](https://dev.to/t/python)

This is a great source of information for beginners and I really like the community around this resource. Low signal-to-noise ratio.

## [Ned Batchelder blog](https://nedbatchelder.com/blog/)

This is the personal blog of Ned Batchelder, well known in the Python community. 

## [Nikita Sobolev blog](https://sobolevn.me/)

Nikita Sobolev's blog is mainly about Python, engineering practices and career development. I am always interested in reading his posts and thoughts.

## [Real Python](https://realpython.com/)

Here you will learn mainly about the basics of the language and the concepts around Python. Sometimes it's interesting but the content is mostly for beginners, but sometimes authors tell you something in such details that it becomes interesting.

## [The Invent with Python Blog](http://inventwithpython.com/blog/)

Author's blog "Automate Boring Things with Python". It will be interesting for beginners.

## [Talk Python to me](https://talkpython.fm/episodes/all)

Talk Python To Me is a podcast for developers who want to know news about the language and related technologies. Sometimes good, sometimes boring, but worth sharing.

## [Podcast.__init__](https://www.pythonpodcast.com)

It provides insight into the projects, platforms, and practices that engineers, business leaders, and computer scientists need to know about to learn and grow in their careers. Also worth mentioning the author children's podcast: [Data Engineering Podcast](https://www.dataengineeringpodcast.com).

## [Inside the Head of PyDanny (Daniel Greenfeld)](https://www.pydanny.com/)

Blog of Daniel Roy Greenfeld about Python and Django. 

## [Weekly Python Newsletter](https://importpython.com/newsletter/)

This is the weekly Python Newsletter. It contains the best Python blog posts, open-source projects, interesting tweets. At least they say so :)

## [Python Coder](https://stevepython.wordpress.com/)

Python Beginner Blog. The author provides many tips and code fragments.

## [Neopythonic](http://neopythonic.blogspot.com/)

Then, there is Guido's own blog :) - although not regularly updated, it can be interesting.

## [Luminousmen blog](http://luminousmen.com)

This is the blog you're on right now. I write about Python, Data Science, Big Data and software engineering.


------


**Thank you for reading!**

Any questions? Leave your comment below to start fantastic discussions!

Check out [my blog](https://luminousmen.com/) or come to say hi 👋 on [Twitter](https://twitter.com/luminousmen) or subscribe to [my telegram channel](https://t.me/iamluminousmen).
Plan your best!
ngVikings - come join the greatest Angular conference in the Nordics, 27-28 May, Copenhagen, Denmark
Tags: angular, javascript, web
Published: 2019-03-10 19:21:04

---
title: ngVikings - come join the greatest Angular conference in the Nordics, 27-28 May, Copenhagen, Denmark
published: true
description: announcing schedule and speakers for ngVikings conference
tags: angular, javascript, web
---

![](https://thepracticaldev.s3.amazonaws.com/i/glpg390wbitkgvqyq87r.jpeg)

Follow me on [Twitter](https://twitter.com/chris_noring), happy to take your suggestions on topics or improvements /Chris

The schedule is now set for ngVikings for 27-28 May in Copenhagen

See all the speakers [here](https://ngvikings.org/speakers)

Keynote: John Papa - the man that needs no intro, Matt Podwysocki, creator of RxJS

Tickets can be bought here [tickets](https://ti.to/ngvikings/2019/)
bat, a Substitute cat Command
Tags: cli, commandline
Published: 2019-03-10 19:46:43

---
title: bat, a Substitute cat Command
published: true
tags: cli,commandline
canonical_url: https://gilcreque.blog/2019/03/10/bat-a-substitute-cat-command/
cover_image: https://gilcreque.files.wordpress.com/2019/03/bat.png
---

While watching [Suz Hinton/noopkat’s Twitch stream](https://www.twitch.tv/videos/393424707) today I noticed that when she ran the `cat` command it looked a little different than what I was used to. It has some subtle styling to it I had never seen before. I found out from the [#noopkrew](https://twitter.com/hashtag/noopkrew) that it was the `bat`[command](https://dev.to/scottw/bat-57pg-temp-slug-2229370), a substitute `cat` command with some superpowers. I brew installed it immediately and [set up an alias](https://github.com/gilcreque/dotfiles/blob/e8e2a82d3633eb2c5f438e8bb4940cf0ee0868ee/.aliases#L4) to replace `cat`. Think of it as Apple’s Quick Look but for the command line. It does syntax highlighting for several filetypes including JSON and Markdown. It is also git aware and can show diffs in files. Amazing!!
What's your favorite React library for doing charts?
Tags: discuss
Published: 2019-03-10 18:25:12

---
title: What's your favorite React library for doing charts?
published: true
tags: discuss
---

I'm about to start a new project which requires to display a lots of data in **charts** of many shapes. I've been playing around with some of them:

* [D3](https://d3js.org/): it seems very powerful, but the learning curve is quite high.
* [react-vis](https://uber.github.io/react-vis/): I liked it at the beginning, but it got difficult to personalize the results.
* [recharts](http://recharts.org): as react-vis, it seemed promising, but I ended up having difficulties.

Maybe I'm very lazy and I just have to spend more time with them...

What's your experience with **charts** in React?

P.S. And for no reason, here is a GIF of Ron Swanson:

![Ron Swanson](http://www.reactiongifs.com/wp-content/uploads/2013/06/giggle.gif)
If this happens, will you be loyal or ethical?
Tags: discuss
Published: 2019-03-10 16:52:34

---
title: If this happens, will you be loyal or ethical?
published: true
tags: discuss
---

Well, privacy is the big thing in the industry right now. People have started caring about it and are becoming more aware of how their data is being used. New companies with more transparent data policies are coming forward, but that's not enough. Most big companies we know still store alarmingly high amounts of user data, with or without our consent. Because let's admit it, most people don't read those long T&C documents.
So let’s say, the company where you work as a dev is doing something similar, and you are the one who is supposed to write such a module. What would you do?

![](https://media0.giphy.com/media/xUPGcmF2iGsTGEFVL2/giphy.gif?cid=19f5b51a5c853e1c323254315528343b)
Setup Machine Learning Environment on Raspberry Pi
Tags: python, raspberrypi, machinelearning, tensorflow
Published: 2019-03-10 16:41:47

---
title: Setup Machine Learning Environment on Raspberry Pi
published: true
description: How to set up machine learning environment on raspberry pi 
tags: #python #RaspberryPi #machinelearning #tensorflow
---

I did this setup on Raspberry Pi3 and Pi3+.
Probably, for Pi zero this setup needs an extra step. (Will be added)     

Install `berryconda`, `tensorflow`, `keras`, `opencv`      

First change swapfile size      

```bash
$ sudo vim /etc/dphys-swapfile
default 100MB --> 1024
$ sudo /etc/init.d/dphys-swapfile stop
$ sudo /etc/init.d/dphys-swapfile start
$ free -m 
                total        used        free      shared  buff/cache   available
Mem:            875          65         378          11         431         747
Swap:          1023           0        1023
``` 

## Install berryconda

```bash
# download berryconda
$ wget https://github.com/jjhelmus/berryconda/releases/download/v2.0.0/Berryconda3-2.0.0-Linux-armv7l.sh
$ chmod +x Berryconda3-2.0.0-Linux-armv7l.sh
$ ./Berryconda3-2.0.0-Linux-armv7l.sh
```

### create virtual env & activate

```bash
$ conda create --name mlenv python=3.6
$ source activate mlenv

```

## Install Tensorflow
This process takes so much time (my case almost an hour).  

```bash
$ sudo apt-get install libatlas-base-dev
$ pip install --user tensorflow
$ pip list | grep tensor
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
tensorboard (1.11.0)
tensorflow (1.11.0)
```

## Install Keras
This process also takes so much time (my case almost an hour).   

```bash
$ sudo apt install libhdf5-serial-dev
$ pip install h5py
$ pip install keras
```

## Install OpenCV3
    
```bash
#　Remove previous version
sudo apt autoremove libopencv3
# Install 
wget https://github.com/mt08xx/files/raw/master/opencv-rpi/libopencv3_3.4.3-20180907.1_armhf.deb
sudo apt install -y ./libopencv3_3.4.3-20180907.1_armhf.deb
sudo ldconfig
```

Eventually, let's try run image classifier on Pi
This could take so much time.   

```bash
$ git clone https://github.com/tensorflow/models.git
$ cd models/tutorials/image/imagenet
$ python classify_image.py
```

My Raspberry Pi note repo  
https://github.com/koji/RaspberryPi-Note
5 part Docker series, beginner to master
Tags: docker, beginners, devops, showdev
Published: 2019-03-10 15:47:53

---
title: 5 part Docker series, beginner to master
published: true
description: This is to tell you that I've written a 5 part Docker series that takes you all the way from beginner to proficient in Docker
tags: docker, beginner, devops, showdev
---
![](https://thepracticaldev.s3.amazonaws.com/i/aewe4rlx677va7d6r4u1.gif)

Follow me on [Twitter](https://twitter.com/chris_noring), happy to take your suggestions on topics or improvements /Chris

- [Sign up for a free Azure account](https://azure.microsoft.com/en-us/free/?wt.mc_id=academic-0000-chnoring)
To use containers in the Cloud like a private registry you will need a free Azure account
- [Docker part I - basics](https://dev.to/softchris/docker---from-the-beginning-part-i-28c6)
This part covers what Docker is and why I think you should use it. It brings up concepts such as images and containers and takes you through building and running your first container
- [Docker part II - volumes](https://dev.to/softchris/docker-from-the-beginning---part-ii-5g8n)
 this is about Volumes and how we can use volumes to persist data but also how we can turn our development environment into a Volume and make our development experience considerably better
- [Docker part III - databases, linking and networks](https://dev.to/softchris/docker-from-the-beginningpart-iii-2h51)
 this is about how to deal with Databases, putting them into containers and how to make containers talk to other containers using legacy linking but also the new standard through networks
- [Docker part IV - introducing Docker Compose](https://dev.to/softchris/docker-from-the-beginning-partiv-mi6)
this is how we manage more than one service using Docker Compose ( this is 1/2 part on Docker Compose)
- [Docker part V- going deeper with Docker Compose](https://dev.to/softchris/dockerfrom-the-beginning-part-v-n2c)
this part is the second and concluding part on Docker Compose where we cover Volumes, Environment Variables and working with Databases and Networks
TWilio Flex Plugin
Tags: twilioflex, plugin
Published: 2019-03-10 15:35:15

---
title: TWilio Flex Plugin
published: true
description: 
tags: twilio flex, plugin
---
Hello, now I am studying Twilio Flex.
And it was fascinating to work with it.
But I found that it lacks its plugins.
So I want help from you( if you have any ).
I want to share my knowledge and experience with you.

PS: skype id is live:tigerdeveloper
NOTE-What is Sequence use in Postgresql 
Tags: beginners
Published: 2019-03-10 14:57:27

---
title: NOTE-What is Sequence use in Postgresql 
published: true
description: Question about Sequence in PostgreSQL
tags: #beginner
---

A sequence is a special kind of database object designed for generating unique numeric identifiers. It is typically used to generate artificial primary keys. Sequences are similar, but not identical, to the AUTO_INCREMENT concept in MySQL. 

## Thai

Sequence คือ Database object ใน PostgreSQL ปกติใช้ในการ generate key ( ใช้สำหรับ primary keys ) Sequence จะว่าไปก็คล้ายๆ กับ Auto-increment ใน MySQL.

หมดปัญหาไปเรื่อง Key ชนกัน เพราะ Sequence ออกแบบมาเพื่อการนี้อยู่แล้ว   

Link : http://www.neilconway.org/docs/sequences/
Sketch Units Plugin 2.0.0-rc.1 available
Tags: sketch, plugin, javascript, news
Published: 2019-03-10 14:34:34

In case you didn't know, [Sketch](https://www.sketchapp.com/) is an awesome ~~vector~~,~~pixel~~, umm... "vecxel" design application for macOS. You can use it to design mockups, icons, screens and far more.

Sketch can be [extended](https://developer.sketchapp.com/) using plugins written in Javascript with a quite ugly mix of Cocoa baked in (made possible by [Mocha](https://github.com/logancollins/Mocha) and [CocoaScript](https://github.com/ccgus/CocoaScript)).

Some days ago I wrote a plugin for converting the pixels, that Sketch uses as a base unit to various real life units by using a DPI value and a factor. So when you export something in Sketch as a PDF, it will be exported with an DPI value of 72. Based on that you can very simply convert the pixel unit to every unit you want.

However, version 1.0 of the plugin wasn't quite well designed and the developer tools available at that time were very basic.

Also, version 1.0 used CocoaScript for the dialog UIs and that was a real pain.

Nowadays, [skpm](https://skpm.io/) is available, a nice tool to build up the development environment for a Sketch unit. Additionally, one came up with a library that uses WKWebview for [rendering sketch UIs in a browser window](https://github.com/skpm/sketch-module-web-view). This way I could simply wrap up a Bootstrap UI and some JQuery magic to build up my dialogs.

So, announcing version [2.0.0-rc.1](https://github.com/dploeger/sketch-plugin-units/releases/tag/v2.0.0-rc.1) of the plugin. If you're using Sketch or if you're interested in how to write Sketch plugins, you might [want to check it out](https://github.com/dploeger/sketch-plugin-units/).

*[Cover photo by Crispin Semmens](https://flic.kr/p/TS1LH)*
What can Ruby be used for?
Tags: ruby, programming
Published: 2019-03-10 14:00:41

---
title: What can Ruby be used for?
published: true
description: ruby, programming
tags: ruby, programming
---
<img src="https://proxy.duckduckgo.com/iu/?u=http%3A%2F%2Fwww.markovic.lu%2Fimages%2Ffulls%2Fruby.png&f=1">
Ruby is one of the most simple programming languages to learn. One of the key areas is readability. However as your code-base increases, so will the complexity.

So what do you use Ruby for anyway?

These are some common use cases:

* Web Apps with Rails (Ruby on Rails)
* System utilities
* Libraries
* Servers

Ruby has matured quite a bit. It's already over 2 decades in development and will continue to do so. These days Ruby is used by Twitter, Airbnb, Shopify and others.    

Rails remains one of the most popular use cases. 

<img src="https://proxy.duckduckgo.com/iu/?u=https%3A%2F%2Ftse3.mm.bing.net%2Fth%3Fid%3DOIP.guBlSxZ8Bnt0fbS7HOG0owHaDx%26pid%3D15.1&f=1">

read more: <a href="https://ruby-lang.co/what-can-ruby-be-used-for/">what can ruby be used for</a>
k-nearest neighbors algorithm
Tags: machinelearning, python
Published: 2019-03-10 13:51:12

---
title: k-nearest neighbors algorithm
published: true
description: knn, machine learning
tags: machine learning, python
---

"tell me who your friends are and ill tell you who you are". That's the idea of which the k-nearest neighbor algorithm is based.

You can represent data in a vector space. This could be length (x) and weight (y), size(x) and price(y) or whatever you want.

Given a 2 dimensional space, it looks for the k nearest neighbors. Any point in the space can be part of a group/class. Meaning the closest points are likely to tell the class of a new point.

<img src="https://pythonbasics.org/wp-content/uploads/2019/03/knn.png">

In the image above there is a red and blue group. The new black point is most likely to belong to the red group, as it is surrounded by red neighbors.

read more: <a href="https://pythonbasics.org/k-nearest-neighbors/">k-nearest neighbors</a>