Earlier quoted context omitted.
Not to start a flamewar, but have you looked at tmux for this kind of thing? "Daemon mode" is the mode for tmux, and the whole stack is designed to be extremely scriptable. "tmux send-keys" does what you're referring to, here, but essentially anything you can do interactively, you can do via the command-line. Not to say you shouldn't just keep doing what works for you! But figured I'd at least make mention of tmux as…
Ctrl-B is the _worst_ shortcut ever devised (which is why it is used rarely... except on tmux). Just _thinking_ about it gives me the pain. My hand hurts. And yet, this is a default shortcut for command mode in tmux. "But you can configure it!" — one might say. No, I won't be doing it on every system I manage, I have better things to do.
Ask HN: What was your “why didn't I start doing this sooner” moment?
191–200 of 785 posts
Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#192Earlier quoted context omitted.
I had a similar epiphany when I started to learn programming (I was about 27 at the time). I realized I was spending all my time just incrementing numbers in a server. Since then I've dropped almost all gaming, reducing it to about 4 hours a week of phone games and shifted to doing outdoor activities like running, biking, ect. PokemonGo has been a way to meld the two.
Well... isn't everyone basically spending all their time (working) to just incrementing numbers in a server (bank account balance)?
Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#193Earlier quoted context omitted.
>1) Meditation, I used to think it was something hippies did. I now think its worth 10 IQ points. I honestly can't recommend it enough. I wish this was true && that there was well compiled evidence that could convince me that this is the case.
Why not just give it a try on your own? Do it for 21 days and don't let yourself have an opinion on it until that stretch of time is done. Then see how you feel and make a decision.
Empirical religion ftw.
Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#194Earlier quoted context omitted.
Agree with all three, but #2 for me has now become the very important due an incident last week. I pulled an all nighter and next day rear ended a vehicle near a traffic signal because I dozed off for a second. The impact was minimal and no one was harmed. It was the first accident with my fault in 15 years of driving. I am approaching 40 and have 2 young kids. I cannot get my priorities wrong at this point. Many liv…
Good call. I'm curious, what is your solution to getting more sleep? Frequently those all-nighters come as a result of deadlines and pressure from work. The usual tradeoff is work vs family vs sleep, where often you only get to pick 1. Have you had any success in getting 2 or even 3 of those together?
Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#1953 things for me: 1) Meditation, I used to think it was something hippies did. I now think its worth 10 IQ points. I honestly can't recommend it enough. 2) Sleep, I'm getting close to 40 and the last 2 times I pulled all nighters I ended up deleting pretty much all the code I wrote from 11pm onward. 3) Occasional Fasts. I normally fast from 6pm until noon the next day but I now do one 3 day fast each month. I think th…
The beginning was pretty difficult but once you're used to it it's nice.
Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#196Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#197Earlier quoted context omitted.
Not to start a flamewar, but have you looked at tmux for this kind of thing? "Daemon mode" is the mode for tmux, and the whole stack is designed to be extremely scriptable. "tmux send-keys" does what you're referring to, here, but essentially anything you can do interactively, you can do via the command-line. Not to say you shouldn't just keep doing what works for you! But figured I'd at least make mention of tmux as…
Ctrl-B is the _worst_ shortcut ever devised (which is why it is used rarely... except on tmux). Just _thinking_ about it gives me the pain. My hand hurts. And yet, this is a default shortcut for command mode in tmux. "But you can configure it!" — one might say. No, I won't be doing it on every system I manage, I have better things to do.
It all started with less(1)... Configuring it is a pain in the butt. One day, I couldn't remember how to do it on a new machine, so I just performed the following command...
scp ~/.*less* ~/*less* newmachine:
It was wonderful! Now I do the same thing for my emacs config, and my .xsession, and my hosts files, etc.Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#198Re: Ask HN: What was your “why didn't I start doing this sooner” moment?
#199Every time I start seriously exercising this hits in about week ~4. Sadly, I only generally keep it up for 6 months before falling back to old habits. Professionally: email lists. If you have any reason to have a blog, you should have an email list. It surfaces the identities of the people who are actually interested in what you have to say, and ties people to you much, much tighter than "Oh yeah, that thing you wrot…
I'm currently at that 6 month point in my exercise program for about the 5th time. Anybody have any hints for pushing through it?
Find something to exercise for. It's not: I want to exercise for me. It's not: I want to exercise to exercise. It's: I want to exercise to reduce my cholesterol so I live past 50. I want to exercise so I can participate more fully in (rec league sport, martial art, hiking), and not be the slow guy that gets gassed after 5 minutes. I want to exercise so I can keep my weight under 200lbs (creeping back up, but that was adding in a strength routine so good weight, waist is still slim). It can be vanity. It can be to take care of someone (ever had a sick or injured friend or family member and been unable to help them move? It's not a pleasant feeling, they need help and you're there but can't offer it.).