Readit News logoReadit News
pokler commented on Python’s Preprocessor   pydong.org/posts/PythonsP... · Posted by u/rbanffy
sdrothrock · 2 years ago
Literally: it's difficult to avoid pain, but suffering is optional
pokler · 2 years ago
“You can hold yourself back from the sufferings of the world, that is something you are free to do and it accords with your nature, but perhaps this very holding back is the one suffering you could avoid.” - Franz Kafka
pokler commented on Is something bugging you?   antithesis.com/blog/is_so... · Posted by u/wwilson
wwilson · 2 years ago
We can force any* software to be deterministic.

* Offer only good for x86-64 software that runs on Linux whose dependencies you can install locally or mock. The first two restrictions we will probably relax someday.

pokler · 2 years ago
That point about dependencies -- how well does this play or easy to integrate with a build system like Bazel or Buck?
pokler commented on Learn Modern C++   learnmoderncpp.com/... · Posted by u/nalgeon
jenadine · 2 years ago
The tutorial starts with

    cout << "Hello, World!" << '\n';
But the most "modern" way to write to the console is:

    std::println("Hello World!");

pokler · 2 years ago
This is from C++23, right? I wonder how available this is within compilers and how many shops plan on moving to this version of the standard and how long that will take.

I imagine targeting C++17 or 20 for 'modern' would be practical enough considering thats what you are most likely to run into in a professional setting.

pokler commented on Some Useful Bash Aliases (2022)   chuck.is/alias/... · Posted by u/todsacerdoti
pokler · 2 years ago
alias please="sudo"

alias amend="git commit --amend --no-edit"

alias vim="nvim"

pokler commented on Some Useful Bash Aliases (2022)   chuck.is/alias/... · Posted by u/todsacerdoti
ForkMeOnTinder · 2 years ago

  alias ..='cd ..'
  alias ...='cd ../..'
  alias ....='cd ../../..'
  alias .....='cd ../../../..'
  alias ......='cd ../../../../..'
  alias .......='cd ../../../../../..'
Merry christmas, HN!

pokler · 2 years ago
up() { cd $(eval printf '../'%.0s {1..$1}); }

So you can just type something like `up 2` to move by two directories.

pokler commented on The Linux Scheduler: A Decade of Wasted Cores (2016) [pdf]   people.ece.ubc.ca/sasha/p... · Posted by u/PaulHoule
megaloblasto · 2 years ago
This paper is from 2016. Anyone know the status of this now?
pokler · 2 years ago
The Linux kernel received a new scheduler not too long ago (https://lwn.net/Articles/925371/), so I'm not sure how relevant the critiques about CFS are.
pokler commented on Does Market Timing Work?   schwab.com/learn/story/do... · Posted by u/alihm
olalonde · 2 years ago
If there are really just a few, it could be explained by chance. Warren Buffet is often cited in that group and yet, a blindfolded monkey would have done better than him in the past 20 years[0].

[0] https://www.linkedin.com/pulse/warren-buffett-has-underperfo...

pokler · 2 years ago
And what about Renaissance Technologies? Is that just chance or luck?
pokler commented on Ask HN: How do you deal with information and internet addiction?    · Posted by u/rqtwteye
milesjag · 3 years ago
Some of the tools which have helped me rediscover my focus and discipline:

* Use the CLI for everything - reduce the amount of time you have a browser open

* An egg timer - use this every time a tedious task needs completing

* A dumb phone - small and minimal functionality, easy to forget about

* A watch - stop using your phone for checking the time

* Cook your own food - excellent use of time

* Exercise - no headphones, a gym provides background music and enough human contact to keep boredom at bay

* Long-form media - books, films, music

* Return to things you know you like - 'it is better to know one book intimately than to have read one hundred'

pokler · 3 years ago
> A dumb phone - small and minimal functionality, easy to forget about

This requires more diligence, but can't you create the experience you want on a smart phone (no social media, disable all notifications, etc.) without giving up utilities that provide actual value, such as GPS / navigation?

> Exercise - no headphones, a gym provides background music and enough human contact to keep boredom at bay

Interesting. I feel like I am more distracted and unfocused when I listen to the gym's music (sometimes their music just doesn't match the intensity of the workout) or when I socialize between workouts.

pokler commented on How to Beat Stress and Anxiety   prashants.in/blog/how-to-... · Posted by u/prashantsengar
robg · 3 years ago
1. Establish good sleep habits. Sleep is how the body recovers from stress.

2. Exercise daily. Movement is how the body puts the stress hormones to work.

3. Eat well. The gut-brain connection drives how we feel as we digest.

pokler · 3 years ago
To point 1, this almost feels like catch-22. While sleep may be a way to recover from stress, stress is probably the single thing that impacts my sleep the most (aside from alcohol consumption, which is much easier to control).

Does anyone have any help or tips here?

pokler commented on Am I an idiot for wanting a dumber phone?   wired.com/story/am-i-an-i... · Posted by u/mikece
pokler · 4 years ago
What is stopping someone from creating this experience on a modern phone?

u/pokler

KarmaCake day190October 19, 2016View Original