teleren/devto huggingface dataset:
Timbu goes bug hunting 
Tags: travelbugsweb
Published: 2019-04-02 08:16:05

---
title: Timbu goes bug hunting 
published: true 
description: 
tags: travel bugs web
cover_image: https://thepracticaldev.s3.amazonaws.com/i/u4lm9yfr2gjhtght6m3z.png

---

Timbu.com, a travel site that helps travellers plan their trips has opened their doors to bug hunters. The site connects travellers to homes and hotels all over the world. 
This move by Timbu.com was made to fix several bugs on the site. Check out the site https://timbu.com/
Where do software engineers want to work?
Tags: dailywriting
Published: 2019-04-09 01:24:34

---
title: Where do software engineers want to work?
published: true
tags: daily-writing
canonical_url: https://marcusblankenship.com/what-if-we-wanted-to-create-a-place-software-engineers-wanted-to-work/
---

What if we set out to create a place that software engineers want to work?

Where might we begin?

We might begin with constructing the most beautiful building and providing unlimited, top of the line equipment.

We might begin with a problem previously thought impossible to solve.

We might begin with an idea so important it would improve the world for every living person, and their children.

We might begin with the opportunity for them to become rich beyond our wildest dreams.

We might begin by giving them control over what tools and languages they use and how, when and where they work

We might begin by providing generous salaries, unlimited vacation, flexible schedules, catered lunches, and on-site massages.

If we do this, they might line up around the block for a chance to join, enduring days of testing, group interviews, whiteboard exercises, and intense pressure.

**All this might create a place they want to work, but it won’t create a place they want to stay.**

### My core thesis

Lately, I’ve been spending time working about my “core thesis.”

My **focus** is on helping you become a great leader and build great dev teams where your programmers stay and thrive.

But that’s my mission – the desired outcome.

The question remains: _“What creates a place programmers want to stay at?”_

Thus far here’s what I’ve hammered out:

_“A place programmers want to stay at requires a person they love working for. A person they love working for has built a special relationship between them. Both parties contribute to the special relationship, and both benefit from it.”_

It’s not that the first ideas don’t matter; it’s that they don’t matter _enough_ to prevent someone from leaving if they don’t enjoy working for their boss.

I dunno, what do you think? What part of this sounds right, and what part do I need to develop more?

I’m looking forward to your thoughts as I work through this.

Thanks in advance,

Marcus

The post [Where do software engineers want to work?](https://marcusblankenship.com/what-if-we-wanted-to-create-a-place-software-engineers-wanted-to-work/) appeared first on [Marcus Blankenship](https://marcusblankenship.com).
I was system operator of Fidonet node from Russia, Ask Me Anything!
Tags: ama
Published: 2019-04-02 06:29:49

---
title: I was system operator of Fidonet node from Russia, Ask Me Anything!
published: true
tags: ama
---

https://thepracticaldev.s3.amazonaws.com/i/ixj5hoagebu4wobn1dau.gif
Get off of Medium and publish a blog under your own domain
Tags: blogging, personalbrand
Published: 2019-04-02 12:41:24

---
title: Get off of Medium and publish a blog under your own domain
published: true
tags: blogging, personalbrand
canonical_url: https://www.kahlillechelt.com/2019/04/02/get-off-of-medium-and-publish-a-blog-under-your-own-domain/
---

Nobody can wall that off behind a paywall.

Nobody can put a popup over your stuff and say “Don’t look at the content right now. It’s so much better if you login!”.

Nobody can build their brand off of your work. Nobody can make money off of your work, if you don’t want to.

Nobody can tell you “You can’t have your own domain on here.”

Your hoster will most likely not suddenly go: “Oops we just went out of business / were acquired, we’re deleting all your stuff but you can export it until tomorrow and fuck off, basically.”

And if they do, you can go and host that somewhere else.

You can still decide to re-distribute your content to places like Medium, dev.to, Micro.blog, Twitter, Instagram, Linkedin, Facebook and / or via a newsletter. It’s a good way to extend your readership.

You can have an RSS feed! That feed should always be _under your domain_!

Writing on the internet under other peoples / companies domain names is like giving away money.

Sure, sometimes it makes sense to guest-post on somebody else’s blog because it broadens your audience. That’s a good trade-off.

You should just always have a place that people can come back to that is yours.
Javascript For Loops - Explanation For Beginners
Tags: javascript
Published: 2019-04-02 05:51:24

---
title: Javascript For Loops - Explanation For Beginners
published: true
description: Sometimes you need to do some action repeatedly. There are several different ways to implement loops in Javascript. for statement, while statement, do..while statement, for..in statement, for..of statement. Today we'll learn how to use the most basic one, the `for` statement.
tags: javascript
series: Javascript for beginners
---

Sometimes you need to do some action repeatedly.

There are several different ways to implement loops in Javascript.

* for statement
* while statement
* do..while statement
* for..in statement
* for..of statement

Today we'll learn how to use the most basic one, the `for` statement.
Artistic Style Transfer in Keras
Tags: python, machinelearning, showdev, opensource
Published: 2019-04-02 04:09:38

---
title: Artistic Style Transfer in Keras
published: true
description: An implementation of "A Neural Algorithm of Artistic Style" in Keras
tags: #python #machinelearning #showdev #opensource
---

# Keras-Style-Transfer (KeSTra)
An implementation of "A Neural Algorithm of Artistic Style" (http://arxiv.org/abs/1508.06576) in Keras

The code present in this repository is presented in this [blog](https://medium.com/@singhal.amogh1995/utilising-cnns-to-transform-your-model-into-a-budding-artist-1330dc392e25).

The code is written in Keras 2.2.2

# Preview
This is a 5-sec gif of **Chicago city** painted in the style of **Rain Princess**
<p align="center">
  <img src="https://media.giphy.com/media/i4ElhKepMTcIZiqcma/giphy.gif" width="480" height="270"/>
</p>

### Content Image and Style Image
<p>
  <img align="left" src="https://reiinakano.github.io/arbitrary-image-stylization-tfjs/images/chicago.jpg" width="500" height="270" />
  <img align="right" src="https://afremov.com/images/product/RAIN-PRINCESS.jpg" width="320" height="270" />
</p>

============================================
Using go modules in K8S projects
Tags: notes
Published: 2019-04-02 04:09:01

---
title: Using go modules in K8S projects
published: true
description: 
tags: notes
---

Starting to adopt `go mod` more and more in the projects I maintain instead of other tools, but for some reason I keep hitting into the following issue: https://github.com/kubernetes/client-go/issues/551

Some solutions are written into that issue and [more notes added to client-go](https://github.com/liggitt/kubernetes/blob/3a988cfb8c2638ed76401a3fc2d8eb695d5b18d2/staging/src/k8s.io/client-go/INSTALL.md#go-modules), but so far what seems to work for me is the following ¯\_(ツ)_/¯

```conf
module github.com/wallyqs/my-k8s-module

go 1.12

require (
	k8s.io/api kubernetes-1.13.4
	k8s.io/apimachinery kubernetes-1.13.4
	k8s.io/client-go v10.0.0
	k8s.io/kubernetes v1.13.4
)
```
Machine Learning With Python
Tags: python, opensource, showdev, machinelearning
Published: 2019-04-02 04:02:05

---
title: Machine Learning With Python
published: true
tags: #python #opensource #showdev #machinelearning
---

# Machine-Learning-with-Python [![star this repo](http://githubbadges.com/star.svg?user=devAmoghS&repo=Machine-Learning-with-Python)](http://github.com/ddavison/github-badges) [![fork this repo](http://githubbadges.com/fork.svg?user=devAmoghS&repo=Machine-Learning-with-Python)](http://github.com/ddavison/github-badges/fork)
![alt text](https://media.istockphoto.com/vectors/machine-learning-3-step-infographic-artificial-intelligence-machine-vector-id962219860?k=6&m=962219860&s=612x612&w=0&h=yricYyUqZbILMHp3IvtenS3xbRDhu1w1u5kk2az5tbo=)

## Small scale machine learning projects to understand the core concepts (order: oldest to newest)
* Topic Modelling using **Latent Dirichlet Allocation** with newsgroups20 dataset, implemented with Python and Scikit-Learn
* Implemented a simple **neural network** built with Keras on MNIST dataset
* Stock Price Forecasting on Google using **Linear Regression**
* Implemented a simple a **social network** to learn basics of Python
* Implemented **Naives Bayes Classifier** to filter spam messages on SpamAssasin Public Corpus
* **Churn Prediction Model** for banking dataset using Keras and Scikit-Learn
* Implemented **Random Forest** from scratch and built a classifier on Sonar dataset from UCI repository
* Simple Linear Regression in Python on sample dataset
* **Multiple Regression** in Python on sample dataset
* **PCA and scaling** sample stock data in Python [working_with_data]
* **Decision Trees** in Python on sample dataset
* **Logistic Regression** in Python on sample dataset
* Built a neural network in Python to defeat a captcha system
* Helper methods include commom operations used in **Statistics, Probability, Linear Algebra and Data Analysis**
* **K-means clustering** with example data; **clustering colors** with k-means; **Bottom-up Hierarchical Clustering**
* Generating Word Clouds
* Sentence generation using n-grams
* Sentence generation using **Grammars and Automata Theory; Gibbs Sampling** 
* Topic Modelling using Latent Dirichlet Analysis (LDA)
* Wrapper for using Scikit-Learn's **GridSearchCV** for a **Keras Neural Network**
Physics sandbox - easy JavaScript tutorial
Tags: javascript, physicsengine, programming, tutorial
Published: 2019-04-02 03:40:24

---
title: Physics sandbox - easy JavaScript tutorial
published: true
description: 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/vydqey8w3rm580j3qoo5.png
tags: javascript, physics engine, programming, tutorial
---

[http://slicker.me/javascript/physics_sandbox.htm](http://slicker.me/javascript/physics_sandbox.htm)

This simple little physics sandbox was created with just several lines of code using the great Matter.js library. The code below should be simple enough for even inexperienced JavaScripters to understand. You can use the mouse to place different objects (cars, Newton's cradles, balls, bricks and trapezoids) on the screen. You can drag them with the mouse or use the keyboard to scale/rotate/delete them. Have fun!
New Feature - Short Video on Advanced Request Routing for AWS ALB
Tags: aws, alb
Published: 2019-04-02 03:29:18

---
title: New Feature - Short Video on Advanced Request Routing for AWS ALB
published: true
description: 
tags: aws, alb
---

I love ALB for its routing and now ALB is much cooler with even more routing conditions. [I made a short video here](https://youtu.be/KSpMFys37JU) to show you some use cases and familiarize you with the new conditions.

Still no Regex or Weighted Conditions but definitely a step in the right direction for ALBs
Como criar um usuário sudo no linux (Debian/Ubuntu)
Tags: ubuntu, sudo, user, root
Published: 2019-04-02 03:22:38

---
title: Como criar um usuário sudo no linux (Debian/Ubuntu)
published: true
description: O comando sudo permite usuários comuns acesso a funções administrativas, normalmente disponíveis apenas para o usuário root. Com isso em mente, muito cuidado para qual usuário você dará essas permissões… 
tags: ubuntu, sudo, user, root
canonical_url: https://marquesfernandes.com/2019/04/01/como-criar-um-usuario-sudo-no-linux-debian-ubuntu/
cover_image: https://marquesfernandes.com/wp-content/uploads/2019/02/Untitled-Design.jpg
---

O comando sudo permite usuários comuns acesso a funções administrativas, normalmente disponíveis apenas para o usuário root. Com isso em mente, muito cuidado para qual usuário você dará essas permissões… Se você deseja adicionar as permissões para um usuário já existente, pule para a etapa 2.

## TL;DR;

```bash
$ sudo adduser nomedousuario
$ sudo usermod -aG sudo nomedousuario
```
## Criar um usuário
1 No terminal digite o comando abaixo e não esqueça de trocar nomedousuario pelo nome que você deseja criar.

```bash
$ sudo adduser nomedousuario
```

Em seguida você precisará definir uma senha, por se tratar de um usuário que terá permissões root utilize uma senha bem forte. Em seguida você precisará preencher alguns dados opcionais do usuário, como não são obrigatórios você pode deixar vazio.

2 Agora vamos utilizar o comando usermod para adicionar o usuário no grupo sudo.

```bash
$ sudo usermod -aG sudo nomedousuario
```

3 Agora vamos testar o novo usuário criado e seus poderes como sudo.

```bash
$ su - nomedousuario
nomedousuario$ sudo ls -ls /root
```

Você precisará digitar a senha na primeira vez que utilizar o comando sudo sempre que iniciar uma nova sessão de terminal.

## Extra: Remover um usuário
### TL;DR;

```bash
$ sudo su -
$ userdel -r nomedousuario
```

1 Alternar para o usuário de root:

```bash
$ sudo su -
```

2 Use o comando userdel para remover o usuário antigo:

```bash
$ userdel nomedousuario
```

3 Você pode também excluir esse usuário e seu diretório inicial (/home/nomedousuario):

```bash
$ userdel -r nomedousuario
```
Learn LOLCODE
Tags: lolcode, beginners, news, codecademy
Published: 2019-04-02 02:28:00

---
title: Learn LOLCODE
published: true
description: Learn about LOLCODE, an esoteric programming language based on internet memes and cats!
tags: #lolcode, #beginners, #news, #codecademy
cover_image: https://thepracticaldev.s3.amazonaws.com/i/htexnl58d9mn5niqys3i.png
---

Happy April Fool's! To celebrate, my coworker [@joshuakgoldberg](https://dev.to/joshuakgoldberg) wrote a brief LOLCODE course on Codecademy. And yes, it's real. However, it's an easter egg course, meaning, it doesn't live in the catalog. You can only access it with the secret link:

✨ [Learn LOLCODE](https://codecademy.com/learn/learn-lolcode) ✨

Inspired by the old lolcat memes, LOLCODE is an esoteric programming language with catchphrases like `I CAN HAS` and `KTHXBYE` in place of traditional keywords.

P.S. The course also features some of our team members' cat babies! 😻
Unset All Variables Matching a Pattern
Tags: shell, bash, zsh
Published: 2019-06-11 14:52:03

---
title: Unset All Variables Matching a Pattern
description: Easily unset variables matching a pattern in both bash and zsh
published: true
tags: shell, bash, zsh
canonical_url: https://garettmd.com/unset-all-variables-matching-a-pattern.html
---

#### Unset all variables beginning with prefix

When using the Openstack CLI, you typically will get a shell script that you would `source`, which will export a bunch of variables to your session. I’ve run into the problem of switching between two different Openstack installs that were on different versions, and needed different variables. I had issues where variables from one instance were still there when trying to use another one. I could go ahead and remove them one by one, but I didn’t get into this line of work to do things by hand. Accordingly, the following example will unset all Openstack variables (all variables that begin with `OS_`)

For **bash**  it’s

```shell
# Bash
unset "${!OS_@}"
```

Because it’s bash, it’s a cryptic incantation of symbols that only wizened old graybeards can explain. (that's sarcasm)

For **zsh**  it’s

```shell
# zsh
unset -m "OS_*"
```

As you can see, in zsh it’s much simpler. You use the `-m` flag (I believe it stands for “match”) then use a glob match. I’m not sure if it supports regex or not, because for some reason the documentation for zsh builtins is not easy to find.

Obviously, you can use this for a lot of things. I tend to use this a lot with CLI tools (Openstack, AWS, Terraform, etc). Hopefully it’s useful for you!
Visual Studio Tips - Trace Points
Tags: vstips, csharp
Published: 2019-04-02 12:26:49

---
title: Visual Studio Tips - Trace Points
published: true
tags: VSTips, csharp
canonical_url: https://hutchcodes.net/2019/04/visual-studio-tips-trace-points/
---

Tracepoints are not a new feature, they’ve been in Visual Studio since 2005, but they are a new feature to me. I just stumbled on them while researching for this series of posts. Tracepoints allow you to turn a Breakpoint into what is essentially a call to `Debug.WriteLine()`.

<!--more-->

A Tracepoint is just a special kind of Breakpoint that allows you to log a message to the Output window and continue execution. This can be really helpful in situations where stopping at a breakpoint makes reproducing a bug difficult or impossible.

And since Tracepoints are just a kind of Breakpoint, you can also put conditions on them and manage them just like Breakpoints. To learn more about Breakpoints see this [post](/2019/03/visual-studio-break-points/).

To set a Tracepoint, you set a normal breakpoint, then go into the settings of that Breakpoint and check `Actions`. That will display a textbox for you to create your log message and another checkbox to specify whether execution should stop or continue.

![alt text](https://hutchcodes.net/img/2019/Tracepoints.gif "Visual of creating and using a Tracepoint.")
What happens when you only write try/finally
Tags: javascript, es6
Published: 2019-04-01 22:42:21

---
title: What happens when you only write try/finally
published: true
description: Without cheating, what is the output?
tags: javascript, es6
---

I thought to myself today, hm, what happens when you do `try/finally`, and don't have a `catch` clause, so, what is the output here?

```js
const errorThrower = () => {
  throw new Error("i am an error");
};

const errorInvoker = () => {
  try {
    errorThrower();
    console.log("errorInvoker");
  } finally {
    console.log("finally");
  }
};

const catcher = () => {
  try {
    errorInvoker();
    console.log("catcher");
  } catch (error) {
    console.log("catcher caught the error");
  }
};

catcher();

```


I thought that the output would be:
```
finally
catcher
```

But actually the output is:

```
finally
catcher caught the error
```

In `errorInvoker`, the try block executes, and `errorThrower()` throws an error, and then immediately after the error is thrown, the finally executes, then catcher catches the error that `errorThrower` threw, and logs `catcher caught the error`.
Reads of the week
Tags: programming, work, ethic
Published: 2018-10-03 23:48:09

---
title: Reads of the week
published: true
description: 
tags: programming, work, ethic
---

I consume some articles on Medium every week, some of them made me reevaluate my learning strategies, or improve my coding habit, or just let me know some useful career tip. Sometimes I feel the content could reach more people. So I'm bringing them to my audience here, first as a general test. Feel free to contact me or discuss one or two subjects of the reading list.

## #Programming #Architecture

- [The Onion Architecture : part 1](https://jeffreypalermo.com/2008/07/the-onion-architecture-part-1/)

- [Screaming Architecture](https://8thlight.com/blog/uncle-bob/2011/09/30/Screaming-Architecture.html)

- [The Clean Architecture](https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html)

- [How Microsoft rewrote its C# compiler in C# and made it open source](https://medium.com/microsoft-open-source-stories/how-microsoft-rewrote-its-c-compiler-in-c-and-made-it-open-source-4ebed5646f98)

## #Security

- [How I used a simple Google query to mine passwords from dozens of public Trello boards](https://medium.freecodecamp.org/discovering-the-hidden-mine-of-credentials-and-sensitive-information-8e5ccfef2724)

## #Ethic #Neuroscience #Future

- [Yes, You Should Delete Facebook](https://medium.com/s/story/yes-you-should-delete-facebook-heres-why-bc623a3b4625)

- [Why We All Hate Hypocrites](https://medium.com/@ermanmisirlisoy/why-we-all-hate-hypocrites-3194a04d3141)

- [Survival of the Richest](https://medium.com/s/futurehuman/survival-of-the-richest-9ef6cddd0cc1)

**Did you find any article useful? Which one? Why?**

That's it!
Weekly Coding Challenge - Week #5 - Drawing App
Tags: challenge, javascript, canvas
Published: 2019-04-01 22:32:34

---
title: Weekly Coding Challenge - Week #5 - Drawing App
published: true
description: Week #5 of the Weekly Coding Challenge program - Drawing App
tags: challenge, javascript, canvas
canonical_url: https://www.florin-pop.com/blog/2019/04/drawing-app-built-with-p5js/
cover_image: https://www.florin-pop.com/static/2bad6b32e0bb10fef1e237829676bc4d/ff993/drawing-app.png
series: Weekly Coding Challenge
---

Theme of the week: **Drawing App**

### Description

This is the first application that we are building in the #weeklyCodingChallenge program. So far we have built smaller projects, so this is pretty exciting if you ask me! 😄

## Useful Resources

Check out my submission for this challenge: [Drawing App built with p5js](https://www.florin-pop.com/blog/2019/04/drawing-app-built-with-p5js/).

See all the submissions in this [Codepen Collection](https://codepen.io/collection/XOgBzg/).

Are you interested in joining the challenge? :smiley: Read [The Complete Guide](https://www.florin-pop.com/blog/2019/03/weekly-coding-challenge/) to find out how. Don't forget to share your creation! :wink:

Happy Coding! :innocent:
Responsive Web Design
Tags: responsivedesign
Published: 2019-04-01 21:42:43

---
title: Responsive Web Design
published: true
description: Mobile view dropdownmenu
tags: responsive design
---
Almost everyone has a mobile phone these days. Of course it is portable and easier to carry around compared to PC's. 
The internet on its own has evolved over the years. Enabling people to perform transactions and much more. It is therefore important to build responsive websites. Websites that adapt to different mobile screens. 
When building a responsive website, it is good for items to placed where it is easily accessible by the users. The menu could be a dropdown or a sidemenu. 
The website, timbu.com is quite responsive, but the menu dropdown does not display its menu.
DigitalOcean API Slugs
Tags: digitalocean
Published: 2019-04-01 22:13:09

---
title: DigitalOcean API Slugs
published: true
description: Look up API slugs for DigitalOcean Droplet Sizes, Distro Images, One-Click Apps, and Kubernetes Versions for use with the API
tags: DigitalOcean
---

![Screenhot](https://i.imgur.com/etNCvLU.png)


Ever need to look up the slug for a DigitalOcean Droplet size or image and not have `doctl` handy? If want grab one quickly without needing to deal with paginated API responses to find it, now you can just go to: [https://slugs.do-api.dev/](https://slugs.do-api.dev/)

This project was mostly created so I could play around with Vue.js and some other new technologies, but I hope it's useful for other folks. The source is [up on GitHub](https://github.com/andrewsomething/do-api-slugs) for the curious.