teleren/devto huggingface dataset:
Share your methods to measure and improve personal productivity!
Tags: discuss, productivity, tips, selfimprovement
Published: 2019-10-06 13:02:27

---
title: Share your methods to measure and improve personal productivity!
published: true
description: How can we achieve more with less effort?
tags: discuss, productivity, tips, self-improvement
---

I wanted to see what system you guys have to measure and improve your productivity outside of work. By productivity, I mean everything from self-improvement, contributing to open source, or maintaining side projects or business. 

## Personal example

**Everyday, for 6 days a week, I try to accumulate at least 90 productivity minutes**. I define *productivity minutes* loosely: any time spent reading or writing outside of work. 

I use [forest](https://www.forestapp.cc/) app to keep track of time - it is a distraction-free pomodoro app (to be honest, a simple stopwatch can accomplish same thing). 

For example, I wake up around 6:30 (or 7 if I'm really tired 😅) and read for **10 minutes**. Then around breakfast, I would read some articles for **10-15** minutes and write (usually for dev.to) for **5-30** minutes. Then I'm off to work. During lunch, sometimes I would code for **30 minutes**. During my commute, I would listen to audiobooks (thanks, [scribd](https://www.scribd.com/)!) for **10-15 minutes** each way. After work, in the evening, I would code/ read for **30+ minutes**.

The schedule above would yield me a good 100 minutes per day. I usually take Sunday off as my day of rest. I would still read and write, but I would only impose 25 productivity minutes instead of 90.

## Problems 

Some of the problem I am starting to see with my method:

1. *All minutes are counted equally when not all minutes spent doing different things do not yield equal result.* I think the time spent producing things (writing articles, writing code for open source) is more valuable than the time spent reading. I am definitely not undervaluing reading here; I am a HUGE advocate of reading a lot of stuff everyday - I am saying in the long run, psychologically, I would want to spend more time reading all the time because it is easier to read than actually writing and producing things; it takes more effort for me to write code than to read code. I would think, "why not accumulate all my productivity minutes reading if writing takes more effort and counts the same as reading?". 

2. *There is a tendency to sacrifice life by wanting to accumulate more minutes everyday.* I notice that I would rather spend my evening reading and writing than spending it with my wife (retrospectively, I don't think spending whole evening in front of screen with your spouse is healthy either). It is easy to gravitate doing stuff for yourself than for others.

<hr />

There you have mine. I am curious to see what you guys do. Don't feel obligated to share every little detail. I would like to hear what you guys do to measure and improve your productivity so we can learn from each other and come up with the solution that is best for each of us!
A Message for the Newbies in coding-
Tags: beginners, discuss, webdev
Published: 2019-10-06 12:57:12

1)To be a greater code write, Don't ride on copy and paste system
2)Don't feel to know all, is a gradual process 
3)Motivate yourself and learn more 4)Get a mentor and join a community to grow in the field.
Feel free to drop urs to 🚀 Us.
Functions in Javascript - 00011
Tags: javascript, beginners, deliaslan, khanacademy
Published: 2019-10-06 12:18:55

__note: please ignore xPos and yPos values all my posts.__

var yourNameFunc = function(){
var textX = random(0, 300);
var textY = random(0, 300);
var yourName = "Adem Deliaslan";
fill(255, 0, 0);
textSize(30);
text("Hiiii, " + yourName, textX, textY);
};

yourNameFunc();


__output:__ "Hiiii, Adem Deliaslan"
OpenSMTPD 6.5: Mailing list
Tags: mailinglist, openbsd, opensmtpd, dovecot
Published: 2019-10-06 11:54:50

---
title: OpenSMTPD 6.5: Mailing list
published: true
description: This post is about how to make maling lists in OpenBSD. With OpenSMTPD, this method is perhaps the simplest. Without any additional servers, it has no functionality such as editing subjects or bodies, but is perhaps the simplest.
tags: mailinglist, openbsd, opensmtpd, dovecot
series: OpenBSD mailing lists
canonical_url: https://obsd.solutions/en/blog/2019/10/06/opensmtpd-65-mailing-list/index.html
---

This post is about how to make maling lists in [OpenBSD](https://www.openbsd.org/) (whose current version is [6.5](https://www.openbsd.org/65.html)).

With [OpenSMTPD](https://www.opensmtpd.org/) (and [Dovecot](https://www.dovecot.org/), optionally), this method is perhaps the simplest.

Add a line for the list to `/etc/mail/users` like:

```diff
  os_user@some.fqdn      some_user
  ...
  noreply@some.fqdn      nobody
  ...
  some-name@some.fqdn    vmail
  ...
+ some@ml.address        to1@target.address, to2@target.address, ... 
```

where `/etc/mail/smtpd.conf` is:

```config
table domains           file:/etc/mail/domains
table users             file:/etc/mail/users

listen on lo0
listen on egress \
        tls pki <pki> \
        auth-optional \
        tag MTA

action "local" maildir alias <aliases>
action "domains" lmtp "/var/dovecot/lmtp" rcpt-to virtual <users>

match tag MTA   from any                for domain <domains>    action "domains"
match           from local              for local               action "local"
```

and also `/etc/mail/domains` is like:

```config
target.address
ml.address
```

Compliting the configuration, emails sent to "some@ml.address" are forwarded to "to1@target.address, to2@target.address, ..." directly.

Without any additional servers, it has no functionality such as editing subjects or bodies, but is perhaps the simplest.
Are We Going to See Metadata > Data Someday?!
Tags: seo, discuss, opengraph, html
Published: 2019-10-06 11:31:14

My question her is: why Twitter and other social media use custom metadata, like Twitter card and Open Graph properties? I mean, aren't standard HTML metadata supposed to be enough?

Check this example:

```html
<title>Lorem Ipsum</title>
<meta property="og:title" content="Lorem Ipsum" />
	
<meta name="description" content="Lorem ipsum dolor sit amet, consectetur adipiscing elit." />
<meta property="og:description" name="Lorem ipsum dolor sit amet, consectetur adipiscing elit." />
	
<link rel="canonical" href="https://domain.com/path/to/page/" />
<meta property="og:url" content="https://domain.com/path/to/page/" />
	
<meta name="twitter:card" content="summary" />
	
<meta property="og:image" content="path/to/logo.png" />
<link rel="icon" type="image/png" href="path/to/logo.png" sizes="128x128" />
```

Even with an ability to merge some lines:

```html
<meta property="og:description" name="description" content="Lorem ipsum dolor sit amet, consectetur adipiscing elit." />
```

We still have redundancy.

Doesn't this phenomenon kind of reinventing-the-wheel?

According to this example, the only line that's not supported by W3C yet is `twitter:card` line, which could be simply renamed to `sm:layout`; something like this:

```html
<meta name="sm:layout" content="summary" />
```

The rest of the values could be the same as Twitter's ones:


* `summary_with_image` or `visual_summary`.
* `player`.
* `app`.


For `visual_summary` case, we could write:

```html
<meta name="sm:layout" content="summary" />
<link rel="cover_image" type="image/png" href="https://domain.com/path/to/cover.png" sizes="640x400" />
```

Even Open Graph protocol, which came to standard this issue, doesn't rely on the already existing metadata!

What do you think?
Send me all the Kotlin questions you were too afraid to ask
Tags: kotlin, explainlikeimfive, help
Published: 2019-10-06 11:30:36

The inspiration for this post comes from this request:

{% link https://dev.to/abhinav1217/can-someone-explain-this-kotlin-expression-59nn %}

I actually enjoy the challenge to try to explain useful things with simple words. Everyone can say complex sentences filled with buzzwords. Cloud-ready serverless blockchain-based something something. The real test is whether you can explain it with simple words. As a great french writer once said:

> (français) Ce que l'on conçoit bien s'énonce clairement, Et les mots pour le dire arrivent aisément
> (english) Whatever is well conceived can be clearly said. And the words to say it flow with ease. 

So don't hesitate, if you have any Kotlin-related questions you were too afraid to ask, reply to this post.
Do you also watch inspirational video's from time to time?
Tags: discuss
Published: 2019-10-06 11:03:21

From time to time I have the feeling that I cannot grasp what I want and can achieve in my life and career. Somehow I have the habit when this happens that I will watch inspirational video's.

I am wondering if I am the only one who does this.

Small tip for an awesome inspiration video: https://www.youtube.com/watch?v=AziDp1-Ht4Q
Lucky ASO, from 0 to 500 active installs
Published: 2019-10-06 09:27:18

I am not a good writer, so maybe this will not be a good post (btw this is my first post here), but I want to share this with you. Many of us, including me, underestimate the potential power of ASO. I think that we tend to believe that one app will grow crazy only if we invest a lot of money into ADS, considering that this will automatically improve the app. The following analysis is my experience regarding the growth of two apps that I developed.
I am an Android developer and my friend is a backend developer (PHP) and we started, 5 months ago, to develop a simple app called Code News. This app shows news about different programming languages. It is a very simple and clean app that does one thing well (we hope). We did this just to improve our teamwork and skills. We created the app in just 3 weeks (2-3 hours/day approximately), we published it and we leave it on google play, thinking that it will reach the bottom of the ocean. :) 
In the meantime, we are also working on another project with a bigger team, investing more time into it. Our current project was growing only when we spend money on marketing but afterward all the users left, very few remained. The organic traffic from browsing or searching was almost inexistent. 
Surprisingly, we found out that, after three or four months, Code News is growing organically without any ads or marketing, compared to our current project that behaves like a hearth diagram. Code News didn't fall to the app grave as we thought, but it rises unexpectedly. It reached higher traffic than the first project which got investment and money for marketing. We were confused, we didn't know what we did right with one project and wrong with the other. These are the active installs for both apps:

https://www.dropbox.com/s/vc0myyqe1zb4fei/Screenshot%202019-10-06%2010.08.34.png?dl=0
the other app (money in ADS)

https://www.dropbox.com/s/a3qofq2xzpy2yny/Screenshot%202019-10-06%2010.01.07.png?dl=0
Code News (organic traffic)

Right now Code News has 564 active installs and the other app has 216. We are very happy to see that at least one app is going up. These are not big numbers, they are really small, but the interesting part is the difference between them. 

Btw, another friend joined our two men army team and he is working on the iOS app :D. Hopefully, he will publish the app this week. We are really eager to see it live on the app store and we hope it will have the same growth.

It is clear that Code News has more potential growth than the other project, but we don’t know why these variations occur. What we are aware of, is the fact that ASO is really powerful and has a big impact on traffic. We understand that there are more to discover and much to improve in order for our graphic to reach its highest peak.

If you want to check out the app on google play you can find it here -> https://play.google.com/store/apps/details?id=ro.crxapps.codenews
100+ Merged PRs - 30 Seconds of C++
Tags: cpp, hacktoberfest
Published: 2019-10-06 06:48:22

If you don't know what I'm talking about, see this post 

{% link https://dev.to/bhupesh/30-seconds-of-c-4egn %}

## 30 Seconds of C++ just surpassed 100 Pull Requests.

![](https://media.giphy.com/media/11sBLVxNs7v6WA/giphy.gif)

### A big thanks 💓 to all those people who contributed.

### I learned a lot about opensource as a Maintainer, I literally get excited every time I get a email notification about a PR.
### All thanks to **hacktoberfest**, **DEV.to** and **Digital Ocean**.


If you would like to contribute to 30C++, see some Open Issues.
{% github https://github.com/Bhupesh-V/30-seconds-of-cpp/issues/31 %}
{% github https://github.com/Bhupesh-V/30-seconds-of-cpp/issues/36 %}
{% github https://github.com/Bhupesh-V/30-seconds-of-cpp/issues/38 %}

> PS: It may take some time to review your PRs, I still hsve a bunch of them to review ;)

## Feedbacks 💙
Feel free to comment what you think about 30C++.

> Also I will be launching something new soon :)
How to use bind() to bind a function to an object
Tags: javascript, react
Published: 2019-10-06 06:17:56

In the [previous post](https://dev.to/naveenkolambage/test-11fd) we discussed how - 'this' keyword works in JS. 

But there was a problem we discovered;

###Problem
when we call a function as a standalone object - or outside an object this will return the global object which is the window object in browsers, but we wanna return 'man' object (in this case) 

###Solution
using the bind function as shown below;


```javascript

const man = {
  name: "rick",
  adventure() {
    console.log(this);
  }
};


const adventure_reference = man.adventure.bind(man);
adventure_reference();

```
Output;

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/go1reon6sgy3ysh94o5v.png)


###Explanation

* Functions in JS are objects, they have properties and methods we can use.

    * this means  adventure function in 'man.adventure' is an object and it has 
      access to methods and properties - in this case we use bind () method

* With the 'bind()' method we can set the value of 'this' permenantly.


* When we call bind() under adventure() function we get a new function , And in that new function value of 'this' is based on the argument we pass in the bind method. 


```javascript

const adventure_reference = man.adventure.bind(what_we_pass_here_as_an_argument);

adventure_reference();

```

'what_we_pass_here_as_an_argument' will determine the value of this , 
so when what_we_pass_here_as_an_argument is 'man' object, the bind method will return a new instance of the adventure function and set 'this' to point to the man object.
What does "self taught" mean anyway?
Tags: discuss
Published: 2019-10-06 04:23:04

It seems a fair amount of people doing web development (programming or doing UI, UX, branding, digital marketing, and related stuff are calling themselves "self-taught". Now, what the hell does that even mean? 

If you read a book, watch a tutorial or have an informal mentor you are not self taught. Someone else helped you. Some one else taught you. 

Self taught maybe means you did not received a formal education (e.g. college) in whatever you do, for example building houses. But someone, in some way or another helped you to learn and master what you can do.

If for example you learn Vue by watching the tutorials on vuemastery and then some others as well on youtube please think it twice nextime before calling yourself "self-taught"
Key wear on the Macbook Pro 2018
Tags: apple, laptop, discuss, hardware
Published: 2019-10-06 03:58:27

Has anyone experienced any key wear on the keyboard of the new MacBook Pro 2018?  

I used to think that when you buy an Apple laptop you do not expect the keys to EVER wear off, not to say within months!

To me its an obvious quality issue. Heck i dont even use my laptop's keyboard very often (since i use a blueetooth keyboard on my three monitor setup), but already two of the keys on my MacBook Pro 2018, with very little use, are completely wearing off. (Meaning two letters on the keyboard are kind of looking smudged, blurred to the point of showing a white spot instead of a character). Anyone had experienced the same problem?

I've had many Apple keyboards with thousands of hours of use, some of them more 10 years old and NONE of them show any wearing of the keys.
Tutorial: Using AWS Amplify to deploy your website
Tags: aws, beginners, node, devops
Published: 2019-10-06 02:38:40

AWS Amplify is a tool for developing and deploying web and mobile applications.  In this article, we’ll be focusing on the deployment capabilities of AWS Amplify and how you can use this tool to quickly & securely deploy a website.  

For connecting your app to Amplify, there are multiple Git repo options or you may choose to build your own artifacts and manually upload when deploying.  For this example, we’ll use GitHub.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/e2vdwi82fnn9vgcqj83p.png)

You will be prompted to authenticate with GitHub and allow Read Access for Amplify to listen on pushes to a given branch and pull from your repo to kick off a build.  Once you’ve successfully authenticated, you can select which repository & branch you’d like to deploy.  Keep in mind that Amplify will automatically rebuild anytime you push to the branch you've selected. 

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/9bamkmwapoox8eipdrwz.png)

In the next step, you’ll be asked to configure build setting for this application.  If you’re using Node.js, your build spec may be as simple as the following:

```
version: 0.1
frontend:
  phases:
    preBuild:
      commands:
        - npm ci
    build:
      commands:
        - npm run build
  artifacts:
    baseDirectory: build
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*
```

Once you’ve customized your build spec, you can proceed to the next step and deploy your application!  This should take just a few minutes depending on how complex your build is, and then your app will appear in the Amplify console.  

Here, you can see the information for the last deployment, including build status, build output, and a link to where your app is being hosted. 

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/vk141jlvlakhz36f6eki.png)

And there you have it!  Your web app is now deployed and waiting to be rebuilt whenever your changes are ready.
Can I get a review of my portfolio
Tags: showdev, web, react, css
Published: 2019-10-06 02:05:42

---
title: Can I get a review of my portfolio
published: true
description: 
tags: showdev, web, react, css
---

Folks, recently I redesigned and rewrote my portfolio. Can I get a review of the site ? Here is it.

## [gnsp.in](https://gnsp.in)
How to Never Run out of Coding Project Ideas
Tags: productivity, beginners, career
Published: 2019-10-06 01:49:07

>"I don't know what to make!" - Every budding developer ever

I'm sure these words have spurted out of your mouth when trying to come up with new coding project ideas at some point. Probably accompanied by "I can't come up with ideas" and "I'm not an idea person".

But let me tell you this - **You are an idea person**.

Everyone is an idea person, and **every developer can come up with a whole boatload of coding project ideas**.

The problem is, there are two types of idea people; **conscious idea people** and **unconscious idea people**, and the majority of developers, especially budding and junior developers, fall under the latter.

But it's OK! Becoming a conscious idea person - a conscious thinker **is something that anyone can do**.

---

## How to come up with coding project ideas

---

#### 1. Decide that you are going to be a conscious idea person

This is the most important step. Start every new endeavour with a positive affirmation - "I will become a conscious idea person".

#### 2. Train yourself to think consciously

Train to catch yourself mid-thought and realise that the noise going on in your head, isn't actually noise, but a goldmine of budding ideas. 

This is the hardest step and will probably take a bit of practice, but is well worth the effort.

While you are walking around, on the train or sitting on a park bench consciously take note of, and observe what you are thinking.

#### 3. Notice your budding ideas

Note how I say "notice budding ideas" and not "come up with ideas". You are already coming up with them, you just aren't noticing them.

They usually come in the form of "it would be nice if...", "I wish...", "if I had ... then I could ...".

When phrases like these pop into your head, notice them! These are your possible billion dollar ideas.

#### 4. Notice dissatisfaction

Whenever you are dissatisfied, displeased, discontent - something can be improved. And that something, could be an idea.

Consciously take note of these times and you will have more seedlings to play with.

#### 5. Write it down!

Once you have a seedling in your grasp, a budding idea or a dissatisfaction, write it down.

I use a page in Notion to dump all of my ideas into. Even the bad ones, the boring ones, the silly ones.

The more you write down, the more potential coding project ideas you have. Even the ones that you think are no-so-great might combine or morph into something amazing.

If you forget your ideas, they are of no use to you, so write them down!

---

Follow these five steps and I promise that you won't struggle to come up with ideas. You might however have the opposite problem - So many ideas, that you just don't have the time to pursue them all.

Can't win them all - Sorry!

---

This post was originally published at [my personal blog](https://www.datadependence.com/2019/10/get-coding-project-ideas-in-5-steps/)
Hacktoberfest (finally run dev.to locally)
Tags: hacktoberfest, practicaldeveloper
Published: 2019-10-06 01:05:39

**Finally!!!** 🥳🥳

Hurahhh!! Finally I setup dev.to on my local machine after 4hours! almost gave up. I'm so excited!! letssssss goooooo!!

Question is now what? lols

any tips where to start? 🤓
Install vscode on OSX via brew 
Tags: note, brew, vscode
Published: 2019-10-06 00:48:06

---
title: Install vscode on OSX via brew 
published: true
description: 
tags: note, brew, vscode
---

| updated to latest brew version (thanks: @eloisetaylor5693)

Already have brew, then go
```sh
$ brew install --cask visual-studio-code
```

If doesn't have brew before, run this first 
```sh
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

Success ? check version and run :D
```sh
$ code --version 
$ code {your-project-folder}
```