HNHacker News
TopNewBestAskShowJobs

rshurts

41 karma · joined February 8, 2018

submissionscomments
rshurts··on Ask HN: How do I develop focus?
Start mono-tasking. Focus on one thing at time and work on growing the amount of time you can keep that focus.

I've been doing this and it has been quite helpful. Some good mono-tasking activities:

- Read books. Books require you to focus for an extended period of time on the same subject. It doesn't matter fiction or non-fiction. Just find a book you enjoy and finish it. If you don't enjoy the book at 50 pages, try a new book.

- Actively listen during meetings. Close all your other tabs and applications and pay attention during a video call. Take notes with pencil and paper to keep your hands busy and keep the focus up.

- Walk. Just take a walk. Don't listen to a podcast or music, just walk and let your mind rest. You might even apply some meditation techniques and try to pay attention to your body. Can you feel your breathe or heart rate?

rshurts··on 1.1.1.1 for Families
No. But I'll have to check it out. Do you use it and the mobile apps?

Do you have problems with connecting to public wifi when running the app? I've noticed setting the DNS locally on a computer throws off the local library wifi that has the captive page that makes you agree to terms before proceeding.

rshurts··on 1.1.1.1 for Families
> I have little kids and don’t want them to accidentally stumble onto malware or porn sites. But I still don’t like this kind of policing happening at the DNS layer.

Where do you set up the filtering or accountability? With so many connected devices in houses I've found DNS is common denominator. It's perhaps the easiest to circumvent, but it covers all the mobile devices, gaming consoles, etc. that are connected to my home network.

My kids are too young to circumvent things, but if they start doing that I'll be equal parts proud and preparing for a loving talk.

rshurts··on 1.1.1.1 for Families
While anyone technical can easily get around DNS filter it is a nice option for helping prevent accidental exposure to pornography.

I'm looking forward to when the customization options are available as an alternative/addition to OpenDNS. The morality police argument doesn't seem to hold much water if they are going to let you whitelist or blacklist anything you want or turn categories on or off.

rshurts··on Ask HN: What was the best decision you made in your career?
What time do you go to bed and how much sleep do you need each night?

I've been trying to get up earlier, but evenings/nights are still prime time for family, spouse, and "me time." So, starting work at 5am seems out of reach.

rshurts··on Writing Dockerfiles for Node.js Web Apps
No mention of using a non-root user? Any reason why or just oversight?

With Debian based images like node:carbon you could do something like this:

  ENV HOME /home/nodejs
  RUN groupadd -r nodejs \
  && useradd -r -g nodejs nodejs \
  && mkdir -p $HOME \
  && chown nodejs:nodejs $HOME
  USER nodejs
With alpine something like this:

  RUN addgroup -S nodejs && adduser -S -G nodejs nodejs
  USER nodejs