teleren/devto huggingface dataset:
Who Am I *Not* to Put Myself Out There?
Tags: devjournal, womenintech, codenewbie, codeland
Published: 2020-07-10 13:14:01

_This post was originally published on July 10, 2020 on [my blog] (https://alexlsalt.github.io/blog)._

I had a wonderful walk this morning where I had the chance to think about my current life projects and where I want to go with them.

I don't think I'd be anywhere close to this headspace at the moment had it not been for the fact that I've been so enthusiastic about certain situations in my life as they presented themselves to me.

In other words, if I saw an opportunity that gave me a certain spark, I chased it down. Period.

More recently, I threw my proverbial hat into the running to be a speaker at this year's CodeLand:Distributed Conference.

As a relatively novice coder, I'll sometimes look at the lineup and think I'm way out of my league.

Like, who was I to think I might be able to share the stage with such accomplished engineers and other experts?

But, then again, who am I *not* to throw myself into the running?

What if all of the experiences I've accumulated up to this point have put me in the exact position to share my perspective and potentially reach those who need to hear it most?

All this is to say - I invite you to attend this conference - CodeLand:Distributed on July 23 (it's virtual, so you don't need to get all dolled up - unless you really want to).

My talk - Being Utterly Fearless in Your Pursuit of Learning to Code - will be my first-ever foray into public speaking on a relatively larger scale.

And I'm so excited about it!

If you're interested, just head to [www.codelandconf.com] (https://www.codelandconf.com) to register.

----------------------------

Thanks so much for reading along! [Now let's be friends over on Twitter >>] (https://twitter.com/alexlsaltt)

P.S. I've launched a brand-new podcast with new episodes each Wednesday! Stay up to date by [signing up for the newsletter here >>] (https://www.ladiescodecollective.com/)

![The Ladies Code Collective Podcast art](https://dev-to-uploads.s3.amazonaws.com/i/nl20jdyk6b9ec2w1lms7.png)
All You Need To Know About Comments in Ruby
Tags: magiccomments, ruby, frozenstringliterals, comment
Published: 2020-07-11 02:45:47

---
title: All You Need To Know About Comments in Ruby
published: true
date: 2020-07-10 13:08:50 UTC
tags: magiccomments,ruby,frozenstringliterals,comment
canonical_url: https://medium.com/tarkalabs/all-you-need-to-know-about-comments-in-ruby-97d991714cf3
---

[![](https://cdn-images-1.medium.com/max/1920/1*JqoME6Y6loVpW1IGmsFklQ.png)](https://medium.com/tarkalabs/all-you-need-to-know-about-comments-in-ruby-97d991714cf3?source=rss----caaf8be76090---4)

Ruby is a beautiful language. But the real magic lies in the details of the language. Learn how special comments can change the way you…

[Continue reading on Tarka Labs Blog »](https://medium.com/tarkalabs/all-you-need-to-know-about-comments-in-ruby-97d991714cf3?source=rss----caaf8be76090---4)
Opinions on Company-Paid Training and Payback Periods
Tags: discuss
Published: 2020-07-10 13:05:54

I recently found out that a friend was leaving his old position for a new one. That friend had been with his prior company for a few years before the new opportunity presented itself.

His old company lists "generous yearly training allowance" as part of their benefits package. That allowance covers both things like certification-preparation training and conference-attendance costs. The company even nags their employees to take advantage of it – pointing out that using it helps employees stay relevant and so the company can stay competitive.

As we were discussing his moving on, he told me "when I submitted my resignation, they told me I owed them the full cost of a conference I attended ten months ago". This was a conference that both the company and the customer on whose contract he was working had explicitly requested he attend. The customer even chipped in to help significantly offset the costs of attending. 

I was, to say the least, both flabberghasted and appalled. I've worked for several companies with training benefits. Once an employee was outside of their new-hire parole period, there was never an expectation to pay the company back for training. There was no expectation of repayment even if the employee came back from training and then dropped their resignation almost immediately afterwards. So, it forces me to ask a couple questions:

* Is what my friend's experiencing the current norm or is my experience the more normal?
* Does it seem fair or even ethical to claim that training is a "benefit" if you're on the hook to pay it back – in whole or in part – if you leave (e.g., I've never had an employer try to recover my use of medical or other, more-traditional benefits)?
* If you knew that a company was going to do this, would you *ever* take company-paid training or go as a company-sponsored conference-attendee during your tenure with them?
* If you knew, any time during the recruiting process, that a company was going to do this, would you waste time with that process (let alone actually accept a job)?

It really makes me wonder if his old employer has thought out the recruiting, retention and other consequences of having this unrestricted training cost-recovery policy.
Why I love Hacker News
Tags: tech, programming
Published: 2020-07-10 12:59:41

---
title: Why I love Hacker News
published: true
description: Hacker News is a tiny social network made by YCombinator. And it's my favorite social network of all time.
tags: tech, programming
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/tf4hhdzjpo7jmtm7yq30.jpg
---

I discovered Hacker News about 3 years ago and while at first I though "what a crappy old looking site with a bunch really technical articles". I would visit every now and again but recently, I've started to visit every day to the point where it's the first site I'll check in the morning.

Hacker News I feel is the most pure form of a social network out there. First off let's talk about the platform itself. Simple site, basic upvote/downvote features and comments. What more do you need? The site even works without Javascript.

But that's not what I love most about it. What I love most is the community of fellow minded people that are there. The pureness doesn't just come from the sites design but with how everyone interacts. From interesting articles to thought provoking discussions in the comments, you get a sense very quickly that on HN there is no agenda.

Also I have yet to see a place other than Twitter maybe where an article about a company is posted and the CEO chimes in the comments and discusses the article with readers. This all seems very natural on HN unlike other places because when you look at that CEO's profile, you find that they are a daily HN user. Less of "they are talking about my company, better handle the PR" and more of "oh look someone posted about us, lets see if I can clarify anything". 

Overall HN just seems like a very honest place. If you haven't visited Hacker News yet I highly recommend it.

https://news.ycombinator.com
Running own private email server and the problems?
Tags: help, discuss, postfix
Published: 2020-07-10 12:58:00


I created my own email server using postfix and implemented a catch-all email approach. I am a beginner in creating and running my own email server but read few articles and successfully ran it.

The approach I followed is written in here https://naveenhonestraj.in/creating-an-incoming-email-server-and-sending-data/ 

My end goal is to catch all the email sent to a specific domain, say (@example.com) and make a POST call(something like a webhook action) with payloads that contains all the information of the email sent.

I successfully made this and now can make those POST call with proper payload, but I am not aware of the problems/cons along running own server with the catch-all approach.

If somebody who worked on the similar lines can share their thoughts and opinions on this, it would be very very helpful. Thanks.
What Dungeons and Dragons 🐉 can teach you about getting your first dev job
Tags: beginners, career, codenewbie, motivation
Published: 2020-07-10 23:12:37

---
title: What Dungeons and Dragons 🐉 can teach you about getting your first dev job
description: The strategy my daughter used to get into her first D&D group also work for getting your first web development job. I'll share her secrets in this video.
published: true
date: 2020-07-10 12:43:00 UTC
tags: beginners,career,CodeNewbie,motivation
canonical_url: https://raddevon.com/articles/what-dungeons-and-dragons-can-teach-you-about-getting-your-first-dev-job/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/6rzhe7aegb30obm9arm8.jpg
---
Turns out, it’s not as easy as you’d think to get into your first online tabletop RPG campaign. You’d think if you’re easy to get along with and you have the skills, someone would want to take a chance on you. Sound like your web development job hunt?

It sure sounded like mine.

{% youtube o7fidT8WA7U %}

Video Notes
-----------

My daughter decided she wanted to play a tabletop RPG over the summer. In-person is out of the question due to the pandemic, so she started looking for a group online.

She started the way many of you start looking for jobs: by shotgunning applications! 📃📃📃📃📃📃📃📃📃

If you’ve tried this approach in your job hunt, you may have predicted it didn’t work. I want to share with you what _did_ work for her, and **how you can apply these lessons to your job hunt**. 🎉

Career transitions are hard. You need an anchor. Something to right the ship when you’re desperate and it seems like things just aren’t going to go your way. You need a Big Goal.

I can help. Take my free, quick email course that [helps define your Big Goal](https://raddevon.com/stick-with-web-development/) **so that you don’t just quit** when things get tough.
Fixing Linux Dualboot: Reinstalling the Windows EFI Bootloader Files
Tags: dualboot, linux, windows, bootloader
Published: 2020-07-10 12:31:45

Note to my future self :).

Reloading my Linux install after a pretty radical 'nuke and pave' I had to get my Windows dualboot back to work.
There are a thousand guides on how to do that, but I'll add another one in case your setup is similar to mine. 

I have installed windows on a separate drive and Linux on my main drive, along with the efi partition.

Don't follow this guide blindly. Think about every step you take, because you can seriously mess up your system :).

With that out of the way, the things you have to do are:
 1. Boot a windows install medium.
 2. Choose your language and enter the 'repair options'.
 3. Go to advanced and select 'command line'.
 4. To mount the efi partition type diskpart and in diskpart then type list volume. A list of volumes will be printed and one of them the efi partition (usually around 500mb ). Select this partition (select volume `[number]`) and assign a drive letter (`X` is the drive letter you assign).
 5. Check where your windows partition is mounted. The diskpart list volume output will probably include it. I will assume that it is volume `C`. Exit diskart with `exit`.
 6. To finally install the boot files type the command `bcdboot c:\windows /s x:` . This will generate boot files based on `c:\windows` and install them on the partition with the letter `X` . 

Thats it, you can reboot now.
You may have to reconfigure grub (or whatever loader you use). On arch-linux, make sure you have os-prober installed :).
Node.js + Cron === 💪🏼💪🏼💪🏼
Tags: javascript, node, discuss, learning
Published: 2020-07-10 12:30:21

**TLDR; wrote script to automate new gym registrations everyday. Tell me in the comments below what you have done to solve your COVID quarantine problems.**

**CODING FOR COVID** Everyone has been affected by COVID-19 in some way. Many states were shutdown for an extended period of time, something that I don't think most people have come close to experiencing. But that doesn't mean life can't go on! As programmers we are to be critical thinkers, looking to solve our problems and hinderances. I want to talk about one that I solved and hear about your own! I call it: **Coding for Covid**.

Businesses in my area have begun their reopening. I guess I should really write, *reopening\*\*\*\*\**, since there are numerous strict health and safety guidelines. One such business reopening I have been anticipating the most is the gym, which naturally have some of the strictest requirements. For example, almost 2/3 of the gym equipment is closed off, the usual 24/7 gym hours have been cut back to 7:00am-6:30pm (with an hour in-between that they close for cleaning), and to top it all off, you have to register two days in advance for one of the allotted time slots that has a maximum capacity of 25 people. *This is a large facility*. I'm sure you can imagine how quickly the most popular time slots fill up.

**First, let me be clear, I am completely on board with the guidelines and keeping everyone safe.**

As dedicated to my workout regimen as I am, time slots only open two days in advance and I simply cannot be online at the exact time each day to secure a slot. *So, this got me thinking*.

I took one look at the network requests on the registration website and knew I could start cooking something up. I decided to use **Node.js** to write the script and **axios** to make the network request with the proper authentication. A couple hours later I successfully signed up to a class through my terminal.

Now, I needed this to run at the same time every day so obviously my head immediately went to Cron Jobs. However, I don't have a machine that will, reliably, be on all the time. 

*Cue in: Google Compute Engine*

I configured a super low-end linux machine: lowest amount of RAM, standard 10GB storage, etc. I pulled down my script file from git and 20 minutes later I was ready to go.

Of course I took proper precaution to not sign up for any *at risk* time slots as, thankfully, I am not at risk. My next plan is to configure some quick commands to cancel my registrations to free up time for everyone else in the event that I cannot make it on a given day.

### What have you done to Code for Covid?
CloudSkew crosses 14K user signups
Tags: milestones
Published: 2020-07-10 12:22:29

[cloudskew.com](https://www.cloudskew.com) just crossed 14K user signups. It's been a good week (we made it to the HackerNews front page). Onwards & upwards!

![14K user signups](https://assets.cloudskew.com/assets/blog/images/35-milestone-14k-user-signups.png)
Fish shell: if with array
Tags: fish, shell, if, array
Published: 2020-07-10 12:15:23

With [fish shell](https://fishshell.com), there are two ways to check if some value exists in array. One is to define array and then use it in [if](https://fishshell.com/docs/current/cmds/if.html) statement, and the other is define array directly in if.

1. Define array and then use it in if statement
    - Define array: `set -l $ARRAY_NAME VALUE1 VALUE2 ...`.
    - Use it in if statement: `if` [`contains`](https://fishshell.com/docs/current/cmds/contains.html) `$TARGET $ARRAY_NAME`
    
    For example:
    ```shell
    set -l myarray 'member001' 'member002'
    if contains 'member001' $myarray
        #do something
    end
    ```
2. Define array directly in if statement
    Curly brackets do the work.
    
    For example:
    ```shell
    if contains 'member001' {'member001' 'member002'}
        #do something
    end
    ```
Gui web interface builder for react
Tags: react
Published: 2020-07-10 12:12:43

Hi #react,

I am a newbie to react. (I started by adding some components to someone else's hello world app). Is there a https://material-ui.com/ based gui builder or should I build one - cutting as many corners as possible - preferably written in React (to get my React up to speed). I would have to get nodejs to do the file (re)writing.

Thank you for your time,
Turloch
Iterate multiple lists all at once
Tags: python
Published: 2020-07-10 12:04:55

---
title: Iterate multiple lists all at once
published: true
description: 
tags: Python
---

Use zip and for-loop
Example:
```python
a = ["a", "b", "c"]
b = [1, 2, 3]

for e1, e2 in zip(a, b):
    print(e1, e2)             
```
Output:
```
a 1
b 2
c 3
```
Daily Developer Jokes - Friday, Jul 10, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-07-10 12:00:03

---
title: "Daily Developer Jokes - Friday, Jul 10, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Friday%2C%20Jul%2010%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e125952bbb70.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Where did the API go to eat?

___A:___ To the RESTaurant
 -->
jetbrains annotations 13.0
Tags: kotlin
Published: 2020-07-10 11:59:44

Hi #kotlin,

Where do I get the source to recompile jetbrains annotations 13.0 for our(Company Oracle) internal repository? It is ancient (2013?) - but it is a current kotlin dependency (in part to work with java6 - latest is annotations 19 - there is an annotations-java5 (for java<8 - it does not have annotations 13).

I spent yesterday searching for google search + software that is a github tag or release (only goes back annotations 16). (Other people (Google? Debian? might be careful about chasing up/not relying on 3rd party sources)

https://mvnrepository.com/artifact/org.jetbrains/annotations/13.0

Has sources but no LICENSE.txt (I looked at some individual files they have copyright jetbrains and apache license at the top).

I think I am looking too hard there is already an internal to oracle approved version of the jar by a different group - might be able to use that.

Thank you for your time,
Turloch
Help me with this error "internal/modules/cjs/loader.js:638"
Tags: help, node, javascript, discuss
Published: 2020-07-10 11:56:30

I'm tired of searching a solution for this error but it seems that no one has a proper solution. It is unable to find campground.js file in the models directory. I even tried reinstalling npm, but no luck.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/kzoijpgd1an4x9iyhbr9.PNG)

I have my campground.js file in the models directory and I'm not able to run my app.js file.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/xyldkgg9ccfondmh2t66.PNG)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/loczlxv33kqfgfllupfp.PNG)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/a9dw8ry0eq9t19qnau5t.PNG)
🚀10 Trending projects on GitHub for web developers - 10th July 2020
Tags: javascript, css, webdev, react
Published: 2020-07-10 11:54:39

Trending Projects is available as a weekly newsletter please sign up at [www.iainfreestone.com](https://www.iainfreestone.com) to ensure you never miss an issue.

### 1. Lazysizes 

lazysizes is a fast (jank-free), SEO-friendly and self-initializing lazyloader for images (including responsive images picture/srcset), iframes, scripts/widgets and much more.

{% github aFarkas/lazysizes %}

---

### 2. Slate

Slate helps you create beautiful, intelligent, responsive API documentation.

{% github slatedocs/slate %}

---

### 3. Simplefolio

A minimal portfolio template for Developers!

{% github cobidev/simplefolio %}

---

### 4. Skeleton

Skeleton is a simple, responsive boilerplate to kickstart any responsive project.

{% github dhg/Skeleton %}

---

### 5. Dev Icon

Devicon aims to gather all logos representing development languages and tools. Each icon comes in several versions: font/svg, original/plain/line, colored/not colored, wordmark/no wordmark.

Devicon it's 78 icons and 200+ versions. And it's growing!

{% github konpa/devicon %}

---

### 6. minireset.css

A tiny modern CSS reset that covers the basics.

{% github jgthms/minireset.css %}

---

### 7. next-i18next

The easiest way to translate your NextJs apps.

{% github isaachinman/next-i18next %}

---

### 8. Recharts

Recharts is a Redefined chart library built with React and D3.

{% github recharts/recharts %}

---

### 9. Monaco Editor

The Monaco Editor is the code editor which powers VS Code, with the features better described here.

Please note that this repository contains no source code for the code editor, it only contains the scripts to package everything together and ship the monaco-editor npm module.

{% github microsoft/monaco-editor %}

---

### 10. Redwood

Redwood is an opinionated, full-stack, serverless web application framework that will allow you to build and deploy JAMstack applications with ease.

{% github redwoodjs/redwood %}

---

Trending Projects is available as a weekly newsletter please sign up at [www.iainfreestone.com](https://www.iainfreestone.com) to ensure you never miss an issue.

If you enjoyed this article you can [follow me](https://twitter.com/iain_freestone) on Twitter where I regularly post bite size tips relating to HTML, CSS and JavaScript.
สรุปบทความ Why You Should Have (at Least) Two Careers
Published: 2020-07-10 11:47:38

---
title: สรุปบทความ Why You Should Have (at Least) Two Careers
published: true
description: การที่เราทำงานมากกว่า 1 งาน (อาชีพ) อาจจะส่งผลดีต่อชีวิตของเรามากกว่าที่เราคิด :)
tags: 
//cover_image: https://direct_url_to_image.jpg
---

เห็น @gatukgl แชร์ไว้ในเฟสบุค อ่านแล้วชอบมาก และรู้สึกว่าเป็นอย่างงั้นจริงๆ กับตัวเอง ขอเขียนสรุปไว้ประมาณนี้

คือจากประสบการณ์ของผู้เขียน การเปลี่ยนงานมี cost ค่อนข้างสูง แล้วก็มีน้อยคนที่จะประสบความสำเร็จในชีวิต ซึ่งเค้าบอกว่าแทนที่เราจะมองหางานใหม่ ให้ลองมองหางานที่ 2 แทนอาจจะดีกว่า และทำให้เราได้ประโยชน์จากทั้ง 2 งาน (ผู้เขียนทำงานอยู่ 4 ที่..)

1. งานหลักช่วย subsidize ทำให้เราสามารถพัฒนาสกิลจากงานที่ 2 ได้ และงานที่ 2 ก็ช่วยเติมเต็ม passion ของเรา
1. เราได้เจอเพื่อนใหม่ในสังคมที่ต่างออกไป เราจะได้ perspective ที่ต่างออกไป และเรายังมี connection ที่เพิ่มมากขึ้นอีกด้วย
1. เราจะได้พบกับ innovations จริงๆ เราจะมองเห็นการเชื่อมโยงต่างๆ การผสมผสานกันจนเกิดสิ่งใหม่ๆ ขึ้นมา

ไปอ่านเต็มๆ ได้ที่ลิ้งค์ข้างล่างนี้จ้า :point_down: 

https://hbr.org/2017/04/why-you-should-have-at-least-two-careers
What concept in programming you struggled with the most while learning?
Tags: discuss
Published: 2020-07-10 11:45:55

---
title: What concept in programming you struggled with the most while learning?
published: true
description: Are some concepts harder than others?
tags: discuss
cover_image: https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/socialmedia/apple/237/shocked-face-with-exploding-head_1f92f.png
---

Name anything, whether it is web-related programming, or not. The most difficult concept for me for a very long time has been **asynchronicity**. It was really hard to stop thinking in sequential execution.