teleren/devto huggingface dataset:
Stay curious
Tags: programming, engineering
Published: 2018-10-13 22:34:51

---
title: Stay curious
published: true
description: 
tags: #programming #engineering
---

I lead a team of very bright, young engineers. They are keen to learn new technologies, they solve difficult problems, they can present complex ideas clearly. However, there is still one thing they need to learn - staying curious.

The usual task's life cycle: we plan, we design, we implement, we measure... and then some of us are losing interest, especially when measurements go against what was planned. Some of engineers are giving up and switching to new tasks, not knowing that by investigating why the plan did not work they can further enhance their expertise. Because of impatience they are loosing their chance to improve their skills.

Just last week we designed and implemented new caching system and measured that it improved only in half of the cases. Then, the engineer, who was working on the task said that he will switch to the next task. Neither his work was completed, nor he was curious why only half of the cases were improved. I still could pass the task to another engineer, but instead I asked him to explain his results.

Curiosity is the key feature every engineer should have. Curiosity means asking questions, not settling on the status quo and not giving up when things go downhill. Staying curious is difficult, especially when working on the same problem for another hour, day, week or month, but that is how experts are being forged.

I wish you all that you'd never loose that spark that started your engineering journey.
Learning JS can be frustrating
Tags: javascript, beginners, node, learning
Published: 2018-10-13 22:00:35

---
title: Learning JS can be frustrating
published: true
description: Find the basics is basically a pain
tags: javascript, beginners, node, learning
---

Hello everyone.

One week ago I asked for some help for JavaScript. How to attempt it if you know C# and you're not that much interested in frontend / 'plain html scripting' like the most basic tutorials show you. The answer that I got was NodeJS.

So I jumped into it. Got an idea how it works and what I could probably do with it. Up to this point everything was fine. But then ...

I wanted to learn a new language. What I ended up with was a week full of research. And not in the good way.

- I set up a node server. Easy.
- After that I was slightly introduced to html and css - which is ok, its a part of web-dev even that I dont like it that much
- And then there was express, body-parser, mysql/mongoose, jquery / ajax.
- I had a simple HTML page and I could transfer some data. Thats great isnt it? ... Right? ...

Well no. I mean sure its great, I understood the functions as they where but I (and a friend of mine) wanted to know how the most stuff works just with HTML/CSS/JS incl. nodejs on the server side. ('learn the basics') It must be possible right? These are the basics which the whole web is based of. But to find some answers like "How do I send some data to the server" was quite a stressful research lesson if you dont use ajax / jquery.  

Its nearly impossible to find the groundbreaking basics how all that works. Its not like we want to avoid express or the other libraries and frameworks etc. Just what is going on in the inner part of all that stuff, we dont know it so we searched for it. It took us nearly an hour to find the 'fetch' function. At the end it worked and we were happy. But still why is it so hard to find the real basics of JS? It feels like its getting an lost knowledge in all those nodejs+express(+ fit in any other module or framework here) tutorials.

**Summary of my text:** Learning javascript can be a pain. There are the basic tutorials that tell you how to write a script to change a text by clicking on a button, or the 'slightly' advanced ones how you build a server with node js and how all those modules are working. Plus everywhere is jquery and/or ajax included. I guess there is a better reason beside of "its easier with all those things" but its overwhelming. Each of those brings new syntax styles into the game ... its simply to much.

Thats all from me this week. I have to order all those links I collected over the last week and learn css grids now.

Have a nice weekend everybody!
Mentorship for OpenSource projects
Tags: opensource, mentors, mentee
Published: 2018-10-13 21:51:30

---
title: Mentorship for OpenSource projects
published: true
description: 
tags: Open source, mentors, mentee
---

I have started a project to help beginners to contribute to Open source projects based on their interest, project is basically about connecting projects maintainers/mentors and mentees who are interested in contributing to Open source

Any enthusiasts/interested people welcome to work on it. https://github.com/OS-Mentors/mentorship 

https://gitter.im/OS-Mentors/contributors
A multi agent simulation in JavaScript
Tags: aget, aose, javascript, ai
Published: 2018-10-13 20:32:00

---
title: A multi agent simulation in JavaScript
published: true
description: A multi agent simulation in JavaScript
tags: aget, aose, javascript, ai
canonical_url: https://github.com/victorqribeiro/AOSE
cover_image: https://thepracticaldev.s3.amazonaws.com/i/vkuubvm9xl46po3gq627.png
---

A simulation involving a criminal, a civilian, a police officer and a firefighter. 

[Agent-Oriented Software Engineering - Simulation](https://github.com/victorqribeiro/AOSE)
React Conf Ticket For Sale 
Tags: conference, tickets, reactconf, react
Published: 2018-10-13 19:01:15

---
title: React Conf Ticket For Sale 
published: true
description: 
tags: conference, tickets, react conf, react
---
![React Conf 2018 Logo](https://thepracticaldev.s3.amazonaws.com/i/wb5xyk7o2eyr7oku13ay.png)

Hey Gang, I have an extra React Conf (https://conf.reactjs.org/) ticket for sale.

The conference is the official React conference hosted by Facebook and is sold out.

Email me if you're interested:
dapc85@gmail.com
Show off your JAMstack projects
Tags: showdev, jamstack, static, javascript
Published: 2018-10-13 16:33:49

---
title: Show off your JAMstack projects
published: true
description: JAMstack projects showcase
tags: #showdev, #jamstack, #static, #javascript
---

Hi dev.to! 

It wasn't until a couple of months back that I started paying attention to the "JAMstack" trend, if you're not familiar with the term, check out this post:


{% link https://dev.to/lewismenelaws/jamstack-how-sites-are-becoming-even-faster-in-a-bloated-web-fig %}


Like every other technology it comes with some limitations, so I'm curious to see what type of projects you have built using the JAMstack and how you came around those constraints (if any).

I hope to share mine soon :)
C# tutorials
Tags: learnc, csharp, programming, net
Published: 2018-10-13 16:29:00

---
title: C# tutorials
published: true
description: learn C#, csharp, programming, .net
tags: learn C#, csharp, programming, .net 
---

C# is a programming language that is often used in the Microsoft world. It's used to make Windows apps and for Windows mobile. 

If you have to learn C# for work or study, these are some resources to get started.

## Tutorials

There are some websites that give an introduction to C#.
List of online tutorials on C# programming:

* https://csharp1.com/
* https://csharp-station.com
* https://completecsharptutorial.com/basic/
* http://learncsharptutorial.com

## Courses

Courses are great to progress faster on programming. If you like to learn by massive online courses (mooc), these are some good ones:

* [C# for beginners](https://skl.sh/2ujNpe9)
* https://www.udemy.com/csharp-tutorial-for-beginners/
Learn Python, Resources
Tags: python, programming
Published: 2018-10-13 16:16:10

---
title: Learn Python, Resources
published: true
description: learning python
tags: python, programming
---
Python is a programming language that can be used for many different purposes including data science, software development and scripting. 

These are a couple of resources to get started with Python programming. If you are a beginner, it's usually best to start with exercises.

## Exercises

Exercises are great to master new concepts quickly. I always learn by exercises rather than dry theory.

* https://pythonbasics.org/Exercises/
* https://www.practicepython.org/
* https://w3resource.com/python-exercises/

## Tutorials

To get started, here are some beginner tutorials. They cover all the basics concepts:

* http://pythonprogramminglanguage.com/
* https://learnpython.org
* https://pythonprogramming.net

## Want to make web apps?

You can use Python to build web apps. Django and Flask are the most commonly used. These articles will help you get started building your web app:

* https://www.fullstackpython.com/flask.html
* https://docs.djangoproject.com/en/2.0/intro/tutorial01/
* https://pythonspot.com/flask-web-app-with-python/

## Machine Learning

Machine Learning and related topics (Artificial Intelligence, Deep Learning) is very popular these days. 

Do you want to learn Machine Learning? These are some resources to get started:

* https://github.com/rasbt/python-machine-learning-book
* https://pythonprogramminglanguage.com/machine-learning/
* https://machinelearningmastery.com/machine-learning-in-python-step-by-step/

## Conclusion

These are some tutorials and articles on Python programming and some applications. I hope this list is useful to you.
#Help with passport and postgresql
Tags: node, postgres, passport
Published: 2018-10-13 14:12:06

---
title: #Help with passport and postgresql
published: true
description: A quetion with passport and postgresql
tags: node.js, postgresql, passport
---

I have a question, I’m making an application that uses passportjs for authentication, on the official website to find the user the findUser method is used (which if I remember correctly belongs to mongoose and mongodb), but I’m using postgresql, the equivalent to findUser in postgresql what would it be?
C# REPL using mono or dotnet-script
Tags: csharp, dotnet
Published: 2018-10-13 12:07:26

---
title: C# REPL using mono or dotnet-script
published: true
tags: csharp,dotnet
canonical_url: https://gldraphael.com/blog/csharp-repl-using-mono/
---

Quite often, all I want to do is check if a single line of code does what I think it does. I've always been a huge fan of [LinqPad](https://www.linqpad.net/) for a use-case like this. But it's Windows-only and that's a bummer since I do most of my development on a Macbook.

I began googling around a few days back and was pleasantly surprised to find two great options:

## The mono-tools csharp REPL

1. Install mono.
2. Type `csharp` in your terminal to start a REPL.

Here's what it looks like:

![](https://gldraphael.com/content/images/2018/10/Screen-Shot-2018-10-13-at-17.13.13.png)

The REPL is documented [here](https://www.mono-project.com/docs/tools+libraries/tools/repl/).

## The .NET Core dotnet-script global tool

1. Install .NET Core.
2. Install the global tool using `dotnet tool install -g dotnet-script`.
3. Type `dotnet script` in your terminal.

Here's what it looks like:

![](https://gldraphael.com/content/images/2018/10/Screen-Shot-2018-10-13-at-17.10.51.png)

This tool covers a lot of use-cases beyond a basic REPL and they're all documented in its [GitHub repo](https://github.com/filipw/dotnet-script).

For me though, a simple REPL with intellisense is all I want!
Use eslint with docker
Tags: help, docker, eslint, react
Published: 2018-10-13 11:06:22

---
title: Use eslint with docker
published: true
description: How to make eslint map to node_modules in docker container
tags: help,docker, eslint, react
---

Hi guys, I have a problem when develop with docker.
Everything is fine until I used Sublime Text + Eslint ( in devDepensives ) + Docker.
I also used SublimeLinter in Sublime Text. When sublime text started up, it said cannot found 'eslint'. The reason is node_modules is empty.
I have mapped host's node_modules to docker container. Below is my docker-compose:

frontend:
  build: ./frontend
  ports:
    - "3000:3000"
    - "35729:35729"
  volumes:
   - ./frontend:/app/frontend
   - /app/frontend/node_modules
  command: yarn start

Thank you for your help.
Anonymous Blogging - How and Where
Tags: beginners, blogging, internet, privacy
Published: 2018-10-13 10:47:22

---
title: Anonymous Blogging - How and Where
published: true
description: how to start blogging anonymously by Palash Bauri
tags: beginners,blogging, internet, privacy
cover_image : https://thepracticaldev.s3.amazonaws.com/i/cae9hrglyjwvwrpujcsc.jpg
---

Who doesn't love privacy or staying safe? 
Assume you have a world changing idea but afraid to tell the world about it, because you know what might happen next . . . and it wouldn't be good to write about it on your own blog, so what you gonna do? 💭

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

Don't worry, I've found some ways to do that without harming your privacy.

**Anonymous Blogging**

> You write blogs, but nobody knows who wrote that! 🎉

Let's look into some **anonymous blogging platforms**

## ✏ [**Telegra.ph**](https://telegra.ph)

Made by the people behind the famous private messaging app **Telegram**, I think I've said enough about privacy 😉. Telegraph is simple , minimal and easy to use anonymous blogging platform.

**👍 Highly Recommend by Me**


## ✏ [**Write.as**](https://write.as)

It is probably the most feature-rich anonymous blogging platform. It doesn’t track you, doesn’t log your IP address and you can even publish using their Tor hidden service.

**👍 Highly Recommend by Me**


## ✏ [**Txt.fyi**](https://txt.fyi)

I think it is the simplest blogging platform out there. No need to sign up and  no tracking. You just need to post. Simple minimal design and easy to use.

**👍 Give it a try**

---
Thank You for Reading!
That's It For Now, See you Next Time

Let Me Know Your Suggestions, Questions in the Comments Below 👇

---
If You Like My Work (My Articles, Stories, Softwares, Researches and many more) Consider [Buying Me A Coffee ☕](https://www.buymeacoffee.com/palash) 🤗
How to show a demo of a website on portfolio website?
Tags: explainlikeimfive, javascript, beginners, help
Published: 2018-10-13 08:50:06

---
title: How to show a demo of a website on portfolio website?
published: true
description: I wanted to make a portfolio website, but how do I show my other websites that I have worked on as demo websites? So when a viewer clicks on a project website from my portfolio it opens as a demo website in a new tab?
tags: explainlikeimfive,javascript,beginners,help
---

I wanted to make a portfolio website, but how do I show my other websites that I have worked on as demo websites? So when a viewer clicks on a project website from my portfolio it opens as a demo website in a new tab.
Format Date with Purescript
Tags: purescript, date, time
Published: 2018-10-13 07:11:39

---
title: Format Date with Purescript
published: true
description: 
tags: purescript, date, time
---


This will be a simple tutorial on how to parse date with purescript using `purescript-formatters`. I will use date from postgres: `2018-09-30T12:27:33.168791` as the example

We will need two functions one that will convert string to datetime and another will display that datetime value.

```haskell
parseDate :: String -> Either DateTime
displayDate :: DateTime -> String
```



We will need 2 formatters for both decode and display:

```haskell
parseFormatter :: Formatter
parseFormatter =  unsafePartial fromRight $  parseFormatString "YYYY-MM-DDTHH:mm:ss"

displayFormatter :: Formatter
displayFormatter =  unsafePartial fromRight $  parseFormatString "hh:mm:ss, DD MMM YYYY"
```




Then we can use this formatter in our previous functions

```haskell
parseDate :: String -> Either String DateTime
parseDate s = 
    unformat parseFormatter s

displayDate :: DateTime -> String
displayDate d = 
    format displayFormatter d
```



We can combine them together

```haskell
parseAndDisplay :: String -> String
parseAndDisplay s = 
    either (\err -> err) (\d -> displayDate d) $ parseDate s
```




If you run this, you may have noticed a run time error. Because our seconds is in fraction. We do not need that so we can just drop them off.

```haskell
parseAndDisplay :: String -> String
parseAndDisplay s = 
    either (\err -> err) (\d -> displayDate d) $ parseDate $ String.take 19 s
```



If you run this with input `2018-09-30T12:27:33.168791`, you will get `12:27:33, 30 Sep 2018`



There you go here is the full code

```haskell
import Prelude 

import Data.Either (Either, either, fromRight)
import Data.String as String
import Data.DateTime (DateTime)

import Data.Formatter.DateTime (Formatter, parseFormatString, unformat, format)
import Partial.Unsafe (unsafePartial)

parseFormatter :: Formatter
parseFormatter =  unsafePartial fromRight $ parseFormatString "YYYY-MM-DDTHH:mm:ss"

displayFormatter :: Formatter
displayFormatter =  unsafePartial fromRight $ parseFormatString "hh:mm:ss, DD MMM YYYY"

parseDate :: String -> Either String DateTime
parseDate s = 
    unformat parseFormatter s

displayDate :: DateTime -> String
displayDate d = 
    format displayFormatter d

parseAndDisplay :: String -> String
parseAndDisplay s = 
    either (\err -> err) (\d -> displayDate d) $ parseDate $ String.take 19 s
```
How to make performant Docker images
Tags: docker, java, maven, devop
Published: 2018-10-13 05:55:34

---
title: How to make performant Docker images
published: true
description: We look into how to build docker images for performance. Talk about the compromises between speed and size.
tags: docker, java, maven, devop
---

{% youtube hK_3kj2lC0w %}
Improve performance generate pdf using puppeteer
Tags: pdf, puppeteer
Published: 2018-10-13 05:04:06

---
title: Improve performance generate pdf using puppeteer
published: true
description: 
tags: pdf,puppeteer
---

My first post about generating pdf using puppeteer at [here](https://dev.to/chuongtrh/generate-simple-pdf-from-html-41i0).

At this post, I want to share about tip how to improve performance generate pdf.

We can use [page.setContent](%28https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagesetcontenthtml%29) to improve performance.

**Using goto**

    console.time('launch')
    const  browser  =  await  puppeteer.launch({
    args: ['--no-sandbox'],
    headless: true
    });
    console.timeEnd('launch');
    console.time('newPage')
    const  page  =  await  browser.newPage();
    console.timeEnd('newPage')
    console.time('goto')
    await  page.goto(`data: text/html ,${finalHtml}`, {
    waitUntil: 'networkidle0'
    });
    console.timeEnd('goto')
    console.time('pdf')
    await  page.pdf(options);
    console.timeEnd('pdf')

Log

    launch: 168.766ms
    newPage: 87.764ms
    goto: 1018.925ms
    pdf: 109.687ms

**Using setContent**

    console.time('launch')
    const  browser  =  await  puppeteer.launch({
    args: ['--no-sandbox'],
    headless: true
    });
    console.timeEnd('launch');
    console.time('newPage')
    const  page  =  await  browser.newPage();
    console.timeEnd('newPage')
    console.time('setContent')
    await  page.setContent(finalHtml);
    console.timeEnd('setContent')
    console.time('pdf')
    await  page.pdf(options);
    console.timeEnd('pdf')
Log

    launch: 147.349ms
    newPage: 89.669ms
    setContent: 15.247ms
    pdf: 161.551ms

Gotcha, **setContent** faster than **goto** 

Thanks for your reading my post.
Matching people from the same country
Tags: discuss
Published: 2018-10-13 04:59:36

---
title: Matching people from the same country
published: true
tags: meta, discuss
---
Hi guys. I'm currently working on a project idea targeting developers from my country, Kenya. I'll probably post it on #showdev when I'm done. Problem is, I won't be able to reach my target audience -- developers from my country.

If I were on twitter, I'd probably post it with #kenya #kot (kenyansontwitter) tags and It'd reach a few Kenyan developers and people who like the idea, then the word would spread. 

So, just a thought, would it be possible to achieve the same result on dev.to? It would be nice if people could get follow suggestions of people from their own country so that they could connect and maybe share ideas on how to solve problems in their own locale, organise physical meetups, etc. Because people have their location info on their profiles, it would also be great if they would get posts tagged with #theircountry show up on their feed. 

I don't know how viable this idea is. Would it cause any problems with the way dev.to currently works? Any ideas on how this could be achieved? I really wouldn't want to get back on twitter just for this.
Hacktoberfest 2018
Tags: hacktoberfest, opensource, event
Published: 2019-04-01 18:28:49

---
title: Hacktoberfest 2018
published: true
tags: hacktoberfest,open-source,event
canonical_url: https://www.ivanovyordan.com/2018/10/12/hacktoberfest-2018/
---

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/Hacktoberfest_2018_poster1_1600x850.png)

If you don't already know that, [Hacktoberfest](https://hacktoberfest.digitalocean.com/) is a celebration of open-source organized by [DigitalOcean](https://www.digitalocean.com/), [GitHub](https://github.com/) and [Twilio](https://www.twilio.com/) this year. The rules are simple, the first 50 000 who open five pull requests to open-source projects in GitHub will get a cool free T-shirt from DigitalOcean and friends.

In the spirit of supporting open-source, we (the guys from [Tuxcon](http://tuxcon.mobi/)) organized a local meetup last Sunday. It's the time to thank [Siteground](https://www.siteground.com/) for their help and support and for giving us their space in Plovdiv, Bulgaria.

We started with a [presentation](https://www.slideshare.net/ivanovyordan/hacktoberfest-2018-119209298/).  We explained what Hacktoberfest is and what the rules are. There was some introduction to open source, what it is, how it works and how important it is for us.

After the talks, we started with the real fun part. As expected, most of the attendees have never used Git or GitHub. We created a broken [fizzbuzz](https://github.com/ivanovyordan/fizzbuzz) project to work with. We did everything from cloning and branching to forking and creating pull requests. We fixed some merge conflicts and merged a couple of features. We even talked about Vim and other editors and had some fun about issues with Windows.

It was a fun event for me, and I really hope it was educational and entertaining for everyone.

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/43266537_905700509639064_1080438936439881728_n.jpg)

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/43308170_905700809639034_2144412364131270656_n.jpg)

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/43354229_905700832972365_458953767094583296_n.jpg)

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/43367843_905700779639037_7290394019283075072_n.jpg)

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/43374031_905700879639027_7813529346697592832_n.jpg)

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/43411575_905700692972379_6321741502326243328_n.jpg)

 ![Hacktoberfest 2018](https://www.ivanovyordan.com/content/images/2018/10/43414379_905700542972394_5625976943770861568_n.jpg)

<figcaption>Hacktoberfest Plovdiv 2018 workshop</figcaption>
An image to ASCII conversor in JavaScript that runs on the browser.
Tags: javascript, ascii, image, graphics
Published: 2018-10-13 04:45:59

---
title: An image to ASCII conversor in JavaScript that runs on the browser.
published: true
description: An image to ASCII conversor in JavaScript
tags: javascript, ascii, image, graphics 
canonical_url: https://github.com/victorqribeiro/imgToAscii
cover_image: https://thepracticaldev.s3.amazonaws.com/i/rt2f11j8cpedoorrgbco.png
---

[imgToAscii](https://github.com/victorqribeiro/imgToAscii)