teleren/devto huggingface dataset:
When reading a thorough tutorial, would you rather read it in a single long article or multiple short articles?
Tags: discuss
Published: 2018-03-17 12:32:50

---
title: When reading a thorough tutorial, would you rather read it in a single long article or multiple short articles?
published: true
tags: discuss
---


I'm writing a tutorial, but based on the sections I have outlined I imagine it would be somewhat lengthy for a single post (e.g. more than 4000 words).

Think of a tutorial in building a complete (although simple) app. The goal is not the end result of the app per se, but rather walking through the development phase, tying things together, in a beginner-friendly way.

Would love input on which method you prefer and why. Thanks!
Birds Vs Animals War
Tags: birds
Published: 2020-11-05 19:24:12

---
title: Birds Vs Animals War
published: true
date: 2018-03-17 03:56:07 UTC
tags: birds
canonical_url: https://medium.com/zuhaworld-publication/birds-vs-animals-war-8a8b015d8d2a
---

After losing the battle of the birds, the bat came to the service and told,  
“I bat, maybe see like a bird, but like animals on my face. So I am also an animal like you”

Next time the animals were lost, the bat ran to the birds and said, “Oh Lord, thank you, finally we the birds got victory.”

after that…???

The birds and animals became friends and forgotten war.  
Clever bat ran at the press conference, shattering the front of the neck, bat said,  
“Hey all look at me, I seem like a bird on, but my mouth like an animal …. I am the only one, who had set up friendship between animals and birds in the animal world!!!”

Be careful bats. I am not animals, also not birds, I’m ZuhaWorld…. So never come to play game with me…

* * *
Changelog: Richer (and Smarter) Suggested Posts Beneath Articles
Tags: changelog, meta
Published: 2018-03-16 22:11:21

---
title: Changelog: Richer (and Smarter) Suggested Posts Beneath Articles
published: true
description: We now include two-to-three of those boxes under each post. They include more info and interaction than some of the content like this has in the past.
tags: changelog, meta
---

### Since basically day one, the area under articles on [dev.to](/) has looked like this:

![](https://thepracticaldev.s3.amazonaws.com/i/eupgdfk757lor4nboj7h.png)

### That section still exists at the bottom, but above it, we have a few blocks that look like this:

![](https://thepracticaldev.s3.amazonaws.com/i/zj6k59fx6cqd1w2yvr4f.png)

### And this:

![](https://thepracticaldev.s3.amazonaws.com/i/cdn19jc2mbdatcj0r6sv.png)

We now include two-to-three of those boxes under each post. They include much more info and interaction possibilities than the previous implementation allowed.

They include mostly the really good from the site's history. We plan to increasingly make use of that space for other types of content going forward.  For instance, we’ll have content tips about how to use the site, notices about new features, suggestions on members to follow, etc.  We’ll also be allowing sponsoring organizations in our community to promote posts from their own engineering team. 

This offering is part of an ongoing effort to hone a sustainable business model that best reflects the professional ecosystem of the dev world. As we continue to get closer to open sourcing, we’ll remain transparent about our thoughts and intentions along the way.

Alongside our plans for supporting promoted org posts, you now have the ability to opt out of seeing any sponsor material across the site, as well as the option to control whether these blocks can show up near your own posts. We want to ensure you have full control over your experience as it relates to our monetization efforts.

This is just the first version, and we’ll constantly be improving the new area and adding useful functionality.  The emphasis will always be on delivering relevant and quality content.

Thanks for being along for the journey as we try to improve the experience for everyone and grow a sustainable business.

Please let me know if you have any questions!
Recruiter Spam
Tags: career, discuss
Published: 2018-03-16 21:56:21

---
title: Recruiter Spam
published: true
description: Recruiter spam in tech is real
tags: career, discuss
---

Recruiter spam in tech is real. We don't talk about it often but it exists and it hurts. I have had so many experiences and I totally want to begin calling out and mentioning the names of my perceived offenders.
What I Learned This Week (March 16, 2018)
Tags: discuss, devops
Published: 2018-03-16 17:12:31

---
title: What I Learned This Week (March 16, 2018)
published: true
description: The weekly installment of "What I Learned"
tags: discuss, devops
---

One of the things I value highly where I work is that, each week, our Director emails out a "What I Learned This Week".  It got me thinking that a good way for me to reflect on what I have learned would be for me to publish the same thing each Friday.

So without further delay, I present to you the things that I learned this week:

## Common Themes

We recently started our DevOps committee where I work, and we have been discussing what our current direction will be for the next six months.  With that in mind, I have personally been reviewing the following technologies for possible recommendation as things we can look into:

## Kubernetes via Minikube

Last time I looked into learning Kubernetes (affectionately abbreviated as `k8s` by the community), it was prohibitively difficult to get into and learn due to having to spin up a small cluster sandbox merely to experiment with.  Imagine my excitement at learning that a tool, [minikube](https://github.com/kubernetes/minikube), exists that allows you to play with Kubernetes locally on your development machine!  Seriously, go install it and start playing with Kubernetes.

## [HashiCorp](https://www.hashicorp.com/)

HashiCorp is famous for developing the amazing tool, Vagrant.  Well, it turns out that they have a ton of other awesome projects:

* Terraform - represent your infrastructure as code
* Nomad - a deployment tool that is awesome
* Vault - secret management tool

The major win with these tools is they are modular and modularly adopt-able.  That is also their weakness, however: there is more to set up in order to play with them.

## [Ansible](http://docs.ansible.com/ansible/latest/index.html)

This week I also rediscovered Ansible.  By rediscovered, I mean I delved more into how it works and fell in love with it all over again.  We are already using this tool at my job, but up until now, it has mostly had major wins on our Systems Support team.  This week, it finally "clicked" how Ansible configuration works, and it is now no longer such a (great) mystery.  I will definitely be integrating this into more of my workflows more often.

## Conclusions

I am just going to keep these short and sweet, so that's all folks!
How to create a streaming HTTP interface in Python?
Tags: help, python, webdev
Published: 2018-03-16 14:51:52

---
title: How to create a streaming HTTP interface in Python?
published: true
description: Help me find a way to consume chunked data, transform it and stream the results back in a python web app.
tags: #help #python #webdev
---

Hey folks,

lately I'm playing around a lot with artificial intelligence and Python. What I want to build now is a web interface for a python based ML model (keras etc). For full flexibility I want the app to a) take a stream of input data b) return a stream of output data. Each chunk in the input stream would be run through the ML model and the corresonding output streamed back as a chunk.

However I could not find any resources online that tell me how to SEND a stream response in a production grade python web framework. Anyone got experience how to send a HTTP stream response in python?

Currently I'm focusing on the combination of falcon + gunicorn to create a web app as Flask doesn't seem to be a production grade framework. Although my requirements are not production-grade I would love to figure out how to do this at such a level.

/andreas
what are your criteria for review front-end
Tags: discuss
Published: 2018-03-16 17:11:23

---
title: what are your criteria for review front-end
published: true
description: code review is not simple as we imagine.
tags: discuss
---
<h1>Front-end Coding Standards</h1>
I try to discover a way to make my code so simple, so clear, but simply one of the principles of the right code as I think, let's put a list of criteria of good 
front-end code?
About “Difficult Conversations” (book recommended by Phil Haack)
Tags: strategy, book
Published: 2018-03-16 18:28:25

---
title: About “Difficult Conversations” (book recommended by Phil Haack)
published: true
tags: Strategy,book
canonical_url: http://www.elemarjr.com/en/2018/03/about-difficult-conversations/
---

 ![](http://www.elemarjr.com/wp-content/uploads/2018/03/DifficultConversationsBook-225x300.jpeg)

Some days ago, I heard a fantastic [interview with Phil Haack](https://itcareerenergizer.com/e46/) on the IT Career Energizer Podcast. Here is the episode description: 

_In this episode, Phil Haack tells us why we need to be prepared to have difficult conversations and why this can help your career. Phil also talks about the importance of taking care when writing code and why you should test your code carefully._

What amazing show!

In this interview, Phil recommended an excellent book: [**Difficult Conversations: How to Discuss What Matters Most.**](https://www.amazon.com.br/Difficult-Conversations-Discuss-What-Matters/dp/0143118447?tag=goog0ef-20&smid=A1ZZFT5FULY4LN&ascsubtag=7b1b405b-689b-4446-bb71-cca294c7c7df)  I listened to the audio version of the book, and it is impressive. I strongly recommend it.

![](http://www.elemarjr.com/wp-content/uploads/2018/03/51HuEI-hISL._SX325_BO1204203200_.jpg)

The book gives a lot of good suggestions about how to succeed in challenging conversations. Here is a short description (from Amazon):

_We attempt or avoid difficult conversations every day-whether dealing with an underperforming employee, disagreeing with a spouse, or negotiating with a client. From the Harvard Negotiation Project, the organization that brought you Getting to Yes, Difficult Conversations provides a step-by-step approach to having those tough conversations with less stress and more success. you’ll learn how to:_

- _Decipher the underlying structure of every difficult conversation_
- _Start a conversation without defensiveness_
- _Listen for the meaning of what is not said_
- _Stay balanced in the face of attacks and accusations_
- _Move from emotion to productive problem solving_

I wish I had the opportunity to read (or listen) it some years ago.  For sure I would have less stressful moments.

Thanks Phil!

O post [About “Difficult Conversations” (book recommended by Phil Haack)](http://www.elemarjr.com/en/2018/03/about-difficult-conversations/) apareceu primeiro em [Elemar JR](http://www.elemarjr.com/en).
How to host your Hugo website on GitHub pages
Tags: hugo
Published: 2017-12-27 13:01:36

---
title: How to host your Hugo website on GitHub pages
published: true
description: Using Hugo
tags: Hugo
---
# What is Hugo?
[Official site](https://gohugo.io/)

# Installing Hugo
At first, Install Hugo.
[Install Hugo (official)](https://gohugo.io/getting-started/installing/)

# Setup
Follow the procedures below:
[Quick start](http://gohugo.io/getting-started/quick-start/)
You can skip step1.

About step3, some websites might explain using `git clone` instead of `git submodule`.
You can choose either, but I recommend you to use `git submodule` because using it enables you tracking the newest version of the theme.
If you chose `git clone`, You should add themes folder to .gitignore like below:
```
echo 'themes/' >> .gitignore
```

# Add contents
If you chose `gohugo-theme-ananke` as your theme, you should see below:
[Getting started(gohugo-theme-ananke)](https://themes.gohugo.io/gohugo-theme-ananke/#getting-started)
Of course you can add your first content with
```
hugo new posts/foobar.md
```
but I recommend you to copy the contents of `exampleSites` from `gohugo-theme-ananke` and tinker them.

# Config your config.toml
If you wanna upload the website to your GitHub Pages, you should modify `config.toml`.
```
baseURL = "https://<YOUR-USER-NAME>.github.io/"
```
The part `<YOUR-USER-NAME>` should be your user name of github.

And if you are tracking the [Quick start](http://gohugo.io/getting-started/quick-start/) you should add the line below like official procedure:
```
theme = "ananke"
```

# Launch Hugo locally
Execute below
```
hugo server
```
and hugo starts soon.
Let's access to `localhost:1313` with your web browser.
You can see the aesthetic of the website.

# Build your website
When you done your website, please execute
```
hugo
```

Hugo builds your website under `public` folder.

# Upload your website
Before you upload it, you should add `public` to your `.gitignore`
```
echo 'public/' >> .gitignore
```
and move to public folder
```
cd public
```
After that, `git push` whole contents of the `public` folder.
```
git init
git remote add origin https://github.com/<YOUR-USER-NAME>/<YOUR-USER-NAME>.github.io
```

Then, access your website `https://<YOUR-USER-NAME>.github.io`
Friday Blast #32
Tags: fridayblast, links, post
Published: 2019-01-20 15:25:01

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

[Microservice fallacies (2016)](https://www.infoq.com/news/2016/10/microservices-please-dont?utm_source=infoqEmail&utm_medium=SpecialNL_EditorialContent&utm_campaign=02092017_SpecialNL&forceSponsorshipId=1343)- the usual stuff - only get them once you’re sure you need them. Which is usually _not_ at the start of a project. There’s other ways to get the modularisation benefits.

[A programmer’s guide to polynomials and splines (2018)](http://wordsandbuttons.online/programmers_guide_to_polynomials_and_splines.html) - this is mostly about interpolation and figuring out nice polynomials for various interpolation tasks. This sort of material is sometimes lumped in with other regression tasks in a statistics/ML course, so it’s interesting to see them from a more “engineering” point of view, without the probability theory.

[Security 101 for SaaS startups (2017)](https://github.com/forter/security-101-for-saas-startups/blob/master/readme.md) - some advice on security for SaaS companies. It’s nice that it focuses on company-wide issues such as using 2FA for employee accounts, besides the standard advice on encrypting data and using password hashes etc.

[Smart endpoints, dumb pipes (2017)](https://bravenewgeek.com/smart-endpoints-dumb-pipes/) - another neat article from Tyler Treat. It’s about the issues in distributed systems around resiliancy and exactly once delivery. The point hammered is that these things are properties of the application as a whole, rather than a particular infrastructure component. And the point where you want to control this is usually the “endpoints” - that is the services making use of your infrastructure. The counterpoint is that embedding smartness in “middleware” - message queues, distributed databases etc. will lead to (1) bad performance, since the middleware will need to “fat” and handle a lot of the complexity itself. Even when that isn’t required. Secondly, it’ll give you a false sense of security. Because the properties are application level, you really can’t protect at a lower-level - that is, do something like proper deduplication of events without some context from the application of what is a duplicate and what is not. Building distributed systems - still hard.
Firefox freezes on chrome://global/content/bindings/textbox.xml
Tags: firefox, javascript
Published: 2019-06-20 09:31:03

---
title: Firefox freezes on chrome://global/content/bindings/textbox.xml
published: true
tags: firefox,javascript
canonical_url: 
---

Got an interesting and unexpected error message today (Mar 16,2018) from Firefox 58 which was running with just the default page — suddenly displayed a popup saying that a script on the following page is running slowly:

chrome://global/content/bindings/textbox.xml

I have found some references on Mozilla Developer site, however this does not look good from QA & testing point of view:

[https://developer.mozilla.org/en-US/docs/Mozilla/About\_omni.ja\_(formerly\_omni.jar)](https://developer.mozilla.org/en-US/docs/Mozilla/About_omni.ja_(formerly_omni.jar))
Logging Rails requests with structure and colors
Tags: rails, ruby, logging
Published: 2018-03-16 10:51:42

---
title: Logging Rails requests with structure and colors
published: true
description: Using structured logging, Rails and ANSI colors
tags: rails, ruby, logging
canonical_url: https://rhymes.dev/posts/logging-rails-requests-with-structure-and-colors/
---

In a [related post about Flask and Python](https://dev.to/rhymes/logging-flask-requests-with-colors-and-structure--7g1) I explained how to structure request logs in Python with a sprinkle of colors.

Rails already has the great [lograge](https://github.com/roidrage/lograge) but how can we leverage it and add ANSI colors to the strings?

Fortunately lograge supports custom formatters with:

```ruby
Rails.application.configure do
  config.lograge.enabled = true
  config.lograge.formatter = YourOwnFormatter.new
end
```

so I just created a new formatter to add colors like this:

```ruby
require 'colorized_string'

class ColorKeyValue < Lograge::Formatters::KeyValue
  FIELDS_COLORS = {
    method: :red,
    path: :red,
    format: :red,
    controller: :green,
    action: :green,
    status: :yellow,
    duration: :magenta,
    view: :magenta,
    db: :magenta,
    time: :cyan,
    ip: :red,
    host: :red,
    params: :green
  }

  def format(key, value)
    line = super(key, value)

    color = FIELDS_COLORS[key] || :default
    ColorizedString.new(line).public_send(color)
  end
end
```

I admit that color coding each parameter might be a little too much but I'm having fun :-D

`require 'colorized_string'` and `ColorizedString` are part of the [colorize](https://github.com/fazibear/colorize) library.

This is the result:

![colorized logging](https://thepracticaldev.s3.amazonaws.com/i/uul3vln56n30ror4ncyi.png)
Heroes
Tags: uncategorized, hero, stephenhawking
Published: 2019-11-14 14:03:36

---
title: Heroes
published: true
date: 2018-03-16 09:07:48 UTC
tags: Uncategorized,hero,stephen hawking
canonical_url: https://www.funkysi1701.com/2018/03/16/heroes/
---

 **Who was your hero growing up?** Mine was Stephen Hawking.

![Stephen Hawking](https://i0.wp.com/www.funkysi1701.com/wp-content/uploads/2018/03/Hawking-ZeroG_web-1.jpg?resize=662%2C268&ssl=1)

**What is a hero?** A lot is said in the media about “Heroes”. Often the sportsperson of the hour is described as a hero. I don’t like this definition and I think there is far more to being a hero than that. One definition I saw describes a hero as _A person who is admired for their courage, outstanding achievements, or noble qualities._

**Why Hawking?** As a kid I thought I was pretty smart (Not really just above average), I liked Star Trek and science so Hawking was a pretty obvious choice. I remember reading all about Hawking and his life fascinated me. A brilliant man was struck down by motor neurone disease in his early twenties, however this did not stop him and he completed his doctorate and became the famous physicist we all know and love.

My physics career was fairly short lived ending with an undergraduate course at University of York, however I really enjoyed learning the concepts that he described about space and time and was definitely a driving factor for me to learn as much as I did about Physics.

How heroic is it to be given 2 years to live and then not only survive but to expand our understanding of the universe without being able to speak or move without the aid of technology?

I can not imagine what it must be like to not be able to communicate without the use of a computer, but this has been Stephen Hawkings world for over 30 years. His computer system has undergone various upgrades over the years however his synthetic computer voice has continued as he identified with it and prefered it.

Stephen Hawking had an immense intellect, I would probably describe him as one of the cleverest people on the planet.

**Who are your heroes?** What kind of person is your hero, is it a scientist or engineer? The world contains some very clever people who will inspire and excite young people to strive towards something. I am hopeful that my sons can be inspired even if it’s only a small way by someone like Stephen Hawking.
Xamarin.Forms really needs to pick up it's pace
Published: 2018-03-23 01:38:14

---
title: Xamarin.Forms really needs to pick up it's pace
published: true
tags: 
canonical_url: https://blog.jonstodle.com/xamarin-forms-really-needs-to-pick-up-its-pace/
---

I recently tweeted this:

{% tweet 970950569669120000 %}

This was a comment on a tweet by [Morten Nielsen](https://mobile.twitter.com/dotMorten/status/970842655734226944), in which he stated that what Microsoft was showing their MVPs at the MPV Summit was pretty exciting. My hope is that it has something to do with Xamarin. I fear it's unlikely however, as Xamarin.Forms is open source and it would be truly bad form to spring something unexpected on the project.

I've been working with Xamarin.Forms for a few years and while I was onboard with _Native Look And Feel_, it started to sour a while back. There's just too many problems trying to make different platforms and UI stacks behave in the same fashion.

While something like Xamarin.Forms gives me the actual native widgets produces by UIKit, Android Widgets and Windows.UI, it's less and less what I actually want. What I really want is for my list view to work equally well on all platforms. Tall order? Yes. Impossible? No.

[Adam Pedley recently wrote](https://xamarinhelp.com/flutter-xamarins-next-big-competitor/) that Xamarin.Forms gives a _"Native Look And Feel. A commonly spoken phrase, that used to be the shining selling point of Xamarin … This is fast losing relevance, among Xamarin.Forms applications. Today clients are less focussed on making an app look native … they want the app to look like this on ALL platforms "_. To me this has become more and more obvious.

I've been looking into Flutter on and off for the last few months, and with the recent move to beta, it's really starting to look promising. Flutter throws native UI out the window and does it all itself. Underneath is Skia, a very powerful 2D rendering engine used by, among others, Chrome.

On top is Flutter's reimplementation of all the necessary UI components. That includes both the visual ones, like buttons, labels and text fields, but also touch events, layout and animation. Usually I'm very sceptical of this kind of approach, but it turns out it actually works. And it works well.

At the moment I'm using Xamarin at work to build our mobile app, but I'm going to keep a close eye on Flutter for a possible change in the future. In the meantime, I'm going to play around with Flutter on some personal projects.