teleren/devto huggingface dataset:
How to Setup a Jekyll Blog and link to Dev.to
Tags: jekyll, blog, rss
Published: 2019-07-05 09:17:49

---
title: How to Setup a Jekyll Blog and link to Dev.to
published: true
tags: jekyll, blog, rss
canonical_url: https://kodaman2.github.io/blog/How-to-Setup-a-Jekyll-Blog/
---

I am in the process of writing a series, and while I have awesome tools like scrivener for book writing, it doesn’t work quite well with markdown. In this guide I will show you how to setup jekyll with minimal effort.

Jekyll-Now [Quick Start](https://github.com/barryclark/jekyll-now#quick-start)

- Fork [jekyll-now](https://github.com/barryclark/jekyll-now)
- Rename repo to username.github.io under settings. If this is not your main site, you can also just name it whatever. For example my main github.io is used as a portfolio, so I just renamed mine to “blog”. Github pages will automatically serve it at kodaman2.github.io/blog.

If this is your github.io page, then it will be ready to view with a demo post. If this is not your github.io repo, then go to settings, scroll down to Github Pages, and select the branch. Once that’s done you should be able to see your site.

## Configure \_config.yml

Below are the settings I changed:name, description, avatar, github, twitter, url, baseurl, theme.

The file is heavily commented, so it was easy to modify. The baseurl is necessary because is not my main github.io site as you can read in the comments. Check the changes [\_config.yml](https://github.com/kodaman2/blog/blame/master/_config.yml) if you have problems.

It doesn’t take too long for the site to sync with the repo changes.

## Publish posts to Dev.to with RSS Feed

In https://dev.to/settings/publishing-from-rss enter your site rss feed, if you are using github pages it would be username.github.io/feed or username.github.io/repo\_name/feed hit the update button, and then the fetch button on top.

If everything worked you should see the “You are up and running” demo post. Note that articles are not published, and are synced as drafts from the RSS feed.

## Publish new Posts

To make new posts go to \_posts folder, and create a new md file. Ex: year-month-day-title.md.

Remember to add the front matter, check the demo post. [front-matter-docs](https://jekyllrb.com/docs/front-matter/)

```
---
layout: post
title: Blogging Like a Hacker
---

```

Hope you enjoyed this quick and easy guide to build your own blog, and publish on dev.to at the same time. Thanks for reading.
Preloading in PHP 7.4
Tags: php, preload
Published: 2019-07-04 12:00:53

---
title: Preloading in PHP 7.4
published: true
tags: php, preload
canonical_url: https://stitcher.io/blog/preloading-in-php-74
---

PHP 7.4 adds preloading support, a feature that could improve the performance of your code significantly.

In a nutshell, this is what preloading is about:

- In order to preload files, you need to write a custom PHP script
- This script is executed once on server startup
- All preloaded files are available in memory for all requests
- Changes made to the source file won't have any effect, until the server is restarted

Let's look at it in depth.

## Opcache, but more

While preloading is built on top op opcache, it's not exactly the same. Opcache will take your PHP source files, compile it to "opcodes", and store those compiled files on disk.

You can think of "opcodes" as a low-level representation of your code, that can be easily interpreted at runtime. So opcache skips the translation step between your source files and what the PHP interpreter actually needs at runtime. A huge win!

But, there's more to be gained. Opcached files don't know about other files. If you've got a class `A` extending from class `B`, you'd still need to link them together at runtime. Furthermore, opcache performs checks to see whether the source files were modified, and will invalidate its caches based on that.

So this is where preloading comes into play: it will not only compile source files to opcodes, but also link related classes, traits and interfaces together. It will then keep this "compiled" blob of runnable code — that is: code usable by the PHP interpreter — in memory.

When a request arrives at the server, it can now use parts of the codebase that were already loaded in memory, without any overhead.

So, what "parts of the codebase" are we talking about? Continue to read on [https://stitcher.io/blog/preloading-in-php-74](https://stitcher.io/blog/preloading-in-php-74).
A Programmer Goes Shopping
Tags: jokes
Published: 2019-07-03 23:00:14

---
title: A Programmer Goes Shopping
published: true
description: 
tags: jokes
---

A Programmer is told by his wife "please go buy milk, and if they have eggs, buy a dozen."

The programmer returns with a dozen jugs of milk.

When his wife angrily asked him why, he said, "they had eggs."
How everything started...
Tags: webdev
Published: 2019-07-03 22:59:02

# The year was 1998...

In Brazil, internet had just advanced... we could now use it with 56kbps modems, lol.

At that time, I was still playing RPG and made an awful page about my 🧛character and his clan... The solution I found was Angelfire's free hosting service. Can't remember where it was 'designed'(!?)... perhaps with Dreamweaver when it was still Macromedia Dreamweaver 2.0 🙃

Oh, I found it in one of the files!

```html
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Postulado</title>
</head>
```
LOL!!!
The Worst of Kat
Tags: jokes
Published: 2019-07-03 22:30:59

---
title: The Worst of Kat
published: true
description: 
tags: jokes
---

I'm flat out of creativity today, so I'm just going to compile the content I've most successfully terrorized Twitter with. Hope you enjoy!

{% twitter 1134635023984807937 %}

{% twitter 1137352808628273152 %}

{% twitter 1139696176721096704 %}

{% twitter 1140519226471407617 %}

{% twitter 1141962739721465856 %}

{% twitter 1142239420336103425 %}

{% twitter 1142382806720339968 %}

{% twitter 1144919494952808448 %}

![](https://thepracticaldev.s3.amazonaws.com/i/7kvl0fem30u59wgosogm.png)
The 3 biggest user story myths
Tags: agile
Published: 2019-07-03 21:25:05

In my work with agile teams and as a trainer I often hear statements about user stories that cause problems in practice. Time to get rid of the most common myths.

## Myth #1: In Scrum, you document requirements with user stories.

The Scrum Guide leaves it open how backlog items are documented. I like user stories because they shift the perspective from the system to the user. But they are not mandatory. And they should be used more for conversation than for documentation.

## Myth #2: If you write user stories, you have to use a certain template.

You probably think of: As a _user_ I want _function_ so that _fulfilled need_.
The story concept had nothing to do with this template at the beginning. Later the template became popular. It's possible to document user stories informally. Don't get hung up on the template.

## Myth #3: User Stories are estimated with Story Points.

As a Scrum Master, I watched teams go crazy with discussions about story points, estimates and velocity.
There is a simple alternative. The team agrees on small stories. So 1 or 2 days to implement them. Then after the sprint, the team counts the stories it has finished. There's the velocity.
Destinations are Disappointments. Do What Makes You Happy and Ignore the Rest.
Tags: health, career, productivity
Published: 2019-07-03 20:23:03

---
title: Destinations are Disappointments. Do What Makes You Happy and Ignore the Rest.
published: true
description: Be a little bit happier by doing what you like and ignoring the things that keep making you sad.
tags: #health #career #productivity
---

Sheryl Crow has possessed my mind.

I wasn't a fan 2 decades ago  
But — this week — [If It Makes You Happy](https://www.youtube.com/watch?v=dyihQtBes1I) is dominating my subconscious like it did the radio waves of the 90s.

> If it makes you happy, it can't be that bad.
> If it makes you happy, then why the hell are you so sad?

I'm singing it at the top of my lungs, driving down the coast, and it smacks me in the face:
She's singing to herself.
She's negotiating with the disappointment arriving.

Into my 30s, I know that type of sadness.
I know that it'll be with me regardless of the destination.
But — like Sheryl — I get to choose why I'm sad.
I can be sad doing things that make me happy.

Over 10 years in tech,
I've tried things that don't make me happy — 
Giving talks,
Chasing promotions,
Fixating on hearts/RTs/followers,
And gaming Google Analytics metrics for my projects.

Every one of destination felt hollow.

So I'm doing more of what I like — 
[Writing](https://tinyletter.com/chantastic/archive), [podcasting](https://reactpodcast.com), minding my business, and [cooking](https://twitter.com/chantastic/status/1146221895953592322) [meals](https://twitter.com/chantastic/status/1132788278661267456) for the family.

Stars, RTs, promotions, and subscriber counts be damned;
You never made me happy.

🎭 chantastic
[Ecc. 1](https://www.biblegateway.com/passage/?search=Ecclesiastes+1%3A1-11&version=ESV)

PS.
What makes you happy?
Have you diminished it to gain something that only makes you sad?
Can someone help me understand the direction React design patterns are moving in?
Tags: react, javascript, design, webdev
Published: 2019-07-03 20:04:43



Before Hooks were really a thing, the most definitive design pattern I had experienced in React was the "Redux with Container Components that encapsulate Presentational Components" pattern. There was a very clear distinction between Class-based (stateful) components, and Functional (stateless, presentational) components. You'd be encouraged to "Lift state up" and -- from what it seems like to me -- store as much state as you can in a single container component so that it can be drilled down maybe 2 or 3 levels at most to presentational components. More levels than that, and you were probably looking at a new Stateful component.
And of course, all Class/Stateful components were connected to Redux store.

Then Hooks came about, and the line between "which components should or shouldn't have state" became very blurry. And let's not even bring up Context. 
An aside: I'm not even sure if Context is considered a stable enough solution (yet) to replace Redux completely for apps of all sizes. Context usage seems like the wild west at this point between people trying to use it exactly like Redux, to people building libraries like `reactn` and `constate` around it, and using each Redux reducer as an individual context or something. Who knows.

Are Hooks supposed to encourage us to decentralize state by writing more stateful components? Or are they just supposed to be a new paradigm for writing stateful components, and the idea of big centralized stateful components isn't going away?
My Thoughts on FreeCodeCamp
Tags: codenewbie, css, htm, beginners
Published: 2019-07-03 19:54:25

If you haven't been following this series, it's basically a journal through 100 days of code in which I desired to get moving through completing the FreeCodeCamp curriculum and I started by resetting my progress completely, thus forcing myself to go through their HTML and CSS learning paths again. I believe they added the accessibility and responsive sections and possibly even the CSS Grid and Flexbox stuff after I had done it the first time. I think that the HTML and CSS basics were plenty usable (but I've had some practice, I don't know what one might feel if they were starting from scratch). The built-in IDE and live page are a nice touch, though I wish it had some intellisense built in.

I struggled with the curriculum when it came to the accessibility and responsive sections. It would seem that they'd present just a very basic idea, with an exercise to show it. At one point they mentioned, in the last exercise we discussed some tools to help you with this (I believe it was the exercise in accessibility about HSL and colorblindness), and I went back. There were no tools that were discussed. I know that FCC isn't the only player in this game, but I definitely think this was a weak link in their program. 

When I started my day, I was hoping to get to the Flexbox section, but I have successfully gotten through everything up to the Projects section. I haven't clicked through the Tribute Page project yet, but I've done it once. If I had never done it, I am not convinced I'd be prepared to do it.  Does putting these projects at this point in the material serve the platform?  Perhaps it does, it gets people to expand their reading material, searching new sections and participating in the forums - Read-Search-Ask. 

The FCC Forums are overwhelming, I rarely feel like I can get my questions answered there and I'm technical, I can't imagine what a new person might feel.
Simple to-do list app based on Ivy Lee Method
Tags: productivity
Published: 2019-07-03 19:54:11

Hi everyone,

Today I am sharing an app I've been working on for the last little while called Ivy - which is inspired by the "Ivy Lee Method". It isn't the Ivy Lee Method exactly but it forces you to focus on only six things every day.

In 2014 I was diagnosed with GAD (generalized anxiety disorder). I was in school at the time, and I was trying to manage my time at University with two part time jobs. It was definitely a chaotic point in my life, and in order to get through it all, I had to take things one day at a time – keeping my mental and physical health top of mind. I did that by keeping detailed journals and to-do lists.

Fast forward a bit and I found myself dropping out of University to work at two tech companies, which was a pretty wild experience. I tried a bunch of different methods for managing my day and staying productive, but the only one that really stuck was the Ivy Lee Method. I started using stickies, and my whiteboard at home, to work through six things every day.

And so that’s where Ivy comes in. The app is currently iOS only, but I would love to build a web and Android app in the future.

Please give it a look and let me know what you think!

Website: https://getivy.co/

iOS app: https://itunes.apple.com/us/app/ivy-stress-free-to-do-lists/id1458049415?ls=1&mt=8
If statement is not comparing it goes directly to Else
Tags: javascript
Published: 2019-07-03 19:30:29

var colors = ["rgb(255,0,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,255)","rgb(0,0,255)","rgb(255,0,255)"]


var squares = document.querySelectorAll(".square");
var colorPicked = colors[3];
var colorDisplay = document.getElementById("colorDisplay");
var messageDisplay = document.querySelector("#messageDisplay");

colorDisplay.textContent = colorPicked;





for (var i = 0;i<squares.length;i++) {
	squares[i].style.background = colors[i];

	squares[i].addEventListener("click", function(){
		var clickedColor=this.style.background;

		if(clickedColor === colorPicked){
			messageDisplay.textContent = "Correct";
		}else{
		this.style.background="#232323";
			messageDisplay.textContent = "Try again";

		}
	});
}
A QA walks into a bar...
Tags: jokes, qa
Published: 2019-07-03 18:55:44

{% twitter 514473420277694465 %}


I actually have a sticker of a beer labelled sfdeljknesv from back when StickerMule had a marketplace. In trying to find a picture of the sticker, I found [this amazing shirt](https://teespring.com/shop/sfdeljknesvbeer?pid=87&cid=2333) that I now need
Blast Off! (with Zeit Now Platform)
Tags: devops, deployment, agile
Published: 2019-07-03 18:45:50

---
title: Blast Off! (with Zeit Now Platform)
published: true
description: Going live with Zeit Now under 1 minute.
tags: DevOps, deployment, agile
cover_image: https://thepracticaldev.s3.amazonaws.com/i/cjohcaguye1nwmfr7n90.jpeg
---

We all have great ideas. Yet, only a few of us manage to take them to realization. There're many reasons why it happens. Personally, I would get discouraged by the amount of preparation that is necessary to be done in order to start working on that next billion dollar idea. There're the learning curves of the technologies that I need to know first. Then I need to get my environment setup to start coding. At the same time, I need monitoring to put in place to collect statistics and benchmarks. The unit tests, integration tests, QA, CI/CD Pipelines, hosting... bah! what's on Netflix?

Some things cannot be avoided and you just need to go through them, others can be simplified. In this article, I'd like to concentrate on one part and get it out of the way to productivity. It's taking your code from the repo and deploying it. After working in DevOps for the past three years, I've been convinced that the manual work of a coder should end after the Git Push/Merge. 

Therefore, I needed a solution that deploys the code from Git to a cloud environment without any intervention on my part. I wanted to avoid tinkering with Azure, Google, or AWS. Even Digital Ocean, that is as simple as one click and ssh was still too time-consuming.

Yesterday, I discovered [Zeit Now](https://zeit.co/now) and instantly fell in love. Zeit's other products are [Next.Js](https://nextjs.org/) and [Hyper](https://hyper.is/)

So what is Now? In words of Zeit "Now is a global deployment network built on top of all existing cloud providers. It makes teams productive by removing servers and configuration, giving you a seamless developer experience to build modern scalable web apps." 

How easy is it to use?

1. Login/Register with GitHub at [Zeit Login](https://zeit.co/login)
2. New Project
3. From Template select React*
4. Give a name to the Repo and submit.
5. A few seconds later, you got it online. Here's mine (https://dev-to-react-now.rommik.now.sh)

You're online!

_*Because it's so hot (apparently). Feel free to use another template :)_

Oh, did I mention it is free? Yup!

There's a ton of other things you can do with Now Platform. I'll let you discover it yourself. Their documentation is detailed, consistent and clear. They are working on integration with other tools like Slack, CloudAMQP, and MongoDB Atlas. You can suggest integrations as well.

Searching "Zeit Now" (https://dev.to/search?q=Zeit%20Now) on dev.to brings back a few tutorials, and the web has more.

Overall, I was pleased with my experience on this Platform. It is easy to use, quick to set up, it's free to start, and the prices are affordable and scale with the resource demand. Give it a try.


P.S. Zeit doesn't know me and I get nothing in return for this article.
Ruby and Ruby on Rails: uma conversa com o especialista
Tags: ruby, rails, tips
Published: 2020-04-08 16:32:51

---
title: Ruby and Ruby on Rails: uma conversa com o especialista
published: true
tags: ruby,rails,tips
canonical_url: https://eusoudev.com.br/ruby-and-ruby-on-rails-uma-conversa-com-o-especialista/
---

Tempo de leitura:<small> menos de 1 minuto</small>

 
# Saiba mais sobre Ruby e Rails

![](https://www.eusoudev.com.br/wp-content/uploads/2019/07/Blog.png)

[**Daniela Nascimento**](//www.linkedin.com/in/marciadanieland/), especialista em Branding na Vulpi, conversou com [**Eustáquio Rangel**](//www.linkedin.com/in/eustaquio-rangel-de-oliveira-jr-a446a328/): o autor do primeiro tutorial sobre a linguagem no Brasil e, futuramente, esse trabalho se tornou um livro.

<!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]--><audio id="audio-1853-1" preload="none" style="width: 100%;" controls="controls"><source type="audio/mpeg" src="https://www.eusoudev.com.br/wp-content/uploads/2019/07/Eust%C3%A1quio.Editado.mp3?_=1"></source><a href="//www.eusoudev.com.br/wp-content/uploads/2019/07/Eust%C3%A1quio.Editado.mp3">https://www.eusoudev.com.br/wp-content/uploads/2019/07/Eustáquio.Editado.mp3</a></audio>
## Nessa conversa, foram levantados os seguintes pontos:

- Como nasceu o Ruby e Ruby on Rails no Brasil
- Quais as principais vantagens e desvantagens dessa linguagem (Ruby) e desse framework (Ruby on Rails);
- Quero aprender Ruby! por onde começar?
- Mercado de Ruby e Rails no Brasil
- O futuro do Ruby

Além disso, Eustáquio conta a respeito de sua trajetória como desenvolvedor e um grande fã da linguagem Ruby.

## Materiais citados no podcast:

[“Conhecendo Ruby”](//leanpub.com/conhecendo-ruby) por Eustáquio Rangel.

[O Guia de Comando do Rails.](//onebitcode.com/o-guia-de-comandos-do-rails/)

[Conhecendo o Rails](//www.amazon.com.br/Conhecendo-Rails-Eust%C3%A1quio-Rangel-Oliveira-ebook/dp/B00LLIPSSE) por Eustáquio Rangel.

The post [Ruby and Ruby on Rails: uma conversa com o especialista](//eusoudev.com.br/ruby-and-ruby-on-rails-uma-conversa-com-o-especialista/) appeared first on [Eu Sou Dev](//eusoudev.com.br).
QA Automation Engineer to Developer 
Tags: testing, devlive, career
Published: 2019-07-03 18:28:32

Hi,

How and what is the best way to make the transition from qa automation to developer, but keeping the same salary limits?

Things i. m good at now, after 5 years:
Java programming 
SQL(any flavour)
ci&cd concepts, docker
A lil bit of front (html, css, js)

The reason behind this to escape the QA world as i feel i. m not tech improving myself, all my work is around 4-5 libraries that i know by heart and need to work daily with them.
Programming is more in solving problems, finding best and optimal ways in doing this. I consider it more rewarding on the long term.
Hacker Ethic from Building the ITS system in the 1960s
Tags: discuss, computerscience
Published: 2019-07-03 18:18:29

---
title: Hacker Ethic from Building the ITS system in the 1960s
published: true
description: A quote from Steven Levy's Hackers book about building the ITS system. 
tags: discuss, computerscience
cover_image: https://thepracticaldev.s3.amazonaws.com/i/2po3wgj4cuxte3rs3xu2.jpg
---

I'm currently reading Steven Levy's *Hackers* and came across this quote which I thought was worth sharing. I think it not only embodies the [hacker ethic](https://en.wikipedia.org/wiki/Hacker_ethic), as Levy describes, but also provides a glimpse into the future. One day, everyone will be their own designer, implementor, and user.

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

Here's full the quote from Don Eastlake:

*The ITS system is not the result of a human wave or crash effort. The system has been incrementally developed almost continuously since its inception. It is indeed true that large systems are never "finished." ...In general, the ITS system can be said to have been designer implemented and user designed. The problem of unrealistic software design is greatly diminished when the designer is the implementor. The implementor's ease in programming and pride in the result is increased when he, in an essential sense, is the designer. Features are less likely to turn out to be of low utility if users are their designers and they are less likely to be difficult to use if their designers are their users.*
How do you use sketching in your workflow?
Tags: discuss
Published: 2019-07-03 18:06:39

---
title: How do you use sketching in your workflow?
published: true
description: Curious to learn how developers incorporate sketching into their days. How do you use sketching in your workflow? Share your thoughts.
tags: discuss
cover_image: https://dzwonsemrish7.cloudfront.net/items/0f2V20130i3N193J2K0O/kaleidico-26MJGnCM0Wc-unsplash.jpg
---

I'm curious to learn how developers incorporate sketching into their day/workflow/process.

Do you use sketching to collaborate with your team, think through ideas on your own, plan your code structure, visualize relationships within your code, plan front-end layout, or some other way?


**How do you use sketching in your workflow?** 🤔

Share your thoughts!