Hacker Newsnew | past | comments | ask | show | jobs | submit | daemianmack's commentslogin

  Ansible looks to me like the product of a person who looked 
  at Puppet, said something like "ugh Ruby, ew syntax" and  
  made his own thing, without looking deeper.
Before he created Ansible, Michael Dehaan was Puppet's product manager.


I said looks, I was not being literal. I don't know anything about Mr. Michael Dehaan and I'm not going to speculate.


He was the product manager some years ago and very briefly.


Surprisingly entertaining -- thanks! It'd be nice if the the popup messages had a force field around them, so they stayed readable for as long as possible.


Glad you like it!

That's a good idea. It's definitely not using space very optimally as it is, though it's meant to feel like a busy "hubbub" / very active, so that's somewhat intentional.


I just finished _Dreaming in Code_ Friday night. A deep dive into http://chandlerproject.org/ afterward was one of the more depressing experiences I've had in recent memory: all that effort, abandoned.


Sort of. -p considers consecutive lines a single hunk. Often, that's not what I want. Luckily, there is magit: http://philjackson.github.com/magit/


You can split the hunks into smaller ones.


You can split hunks until they're consecutive lines. You can't split more granularly than that with -p. You'd need to edit the patch, either directly or with git gui or similar.


And you can also edit the patch manually.


I resisted the edit option of git-add -p for a long time because I was afraid of messing something up with a low level tool... big mistake! So easy to use!


Plus if you make a patch that doesn't apply it will just error out and you can try again. And if you add anything extra by mistake you can easily back it out with something like git reset HEAD <file> or git reset -p


ctrl+c should cancel the search, saving you the line-editing workaround.


I hit the Enter key.


Our boy just turned 3 months old. People keep telling us we got really lucky, but the impact on sleep and personal time has not been that huge.

During my wife's pregnancy, I had a big development project eating up 90%-95% of my free time: I wanted to get it done before he arrived, anticipating the huge time suck everyone warned me about. (I ended hitting the finish line, and deployed over the two-week paternity leave, and let him push the launch button when he was 8 days old.)

In my experience -- and again, YMMV, etc. -- if you can regiment your time carefully, it's absolutely not that big a deal. Yes, our days are substantially different now, but we work together really well to relieve each other; I get plenty of development time, she gets plenty of roller derby time, and after completing the post-deploy piece of my last project, I've already picked up another major project and am getting things done.

I've always been a pretty light sleeper, and it's not uncommon for me to be woken up at 4 and just not go back to sleep, so perhaps I already could deal with mild sleep deprivation well, but I really have no complaints about the amount of sleep we're getting. Generally I'll take the last feeding of the night, since I probably won't go back to sleep after, and there were a couple days in there where I dragged a bit, but really, the impact has been negligible.

(The impact of him coming home sick from daycare is an entirely different story. It's like he's a breeder reactor for bugs. I haven't been that sick in years.)

The best way I found to take care of my wife is to get her what she wants, when she wants it -- i.e., literally stand up before she's finished her request and go take care of it, stat. She's in a ton of discomfort (both before and after pregnancy, especially if you're doing a natural birth) and will appreciate the hell out of you going the extra mile. Post-birth, being instantly ready to locate/retrieve/position whatever baby paraphernalia or etc. has been a big help to her. Before we gravitated to a nice he-eats-then-we-eat schedule, I used to feed her and myself both as she fed the baby. Felt silly the first time but it worked out great logistically.

Some random bits in no particular order...

Interesting baby hack: one time the boy was crying, and just holding him wasn't doing the trick, so I figured his diaper needed changing. As a rule, his crying increases dramatically when first laid down for the diaper change, then he perks up and stops crying after he's cleaned up. So I laid him down, took off his diaper, and found that it was actually clean. When I re-diapered him and picked him up, he stopped crying... even though he didn't need the diaper change in the first place. I think if we could find out what was going on in their little brains, we'd be pretty surprised.

Totally invest in the mechanical swing kerben mentions.

When nothing else works, a warm bath has proven to be an awesome baby-fixer for us.

You will learn many new ways to care about poop.


Thanks for sharing your experience, that's very encouraging.

I've heard the horror stories about poop getting smeared on walls, etc. (when they're a little bit older)... :D


Having my food be smart energy packets reduces the excitement of sitting down to dinner. On the other hand, it's been indispensable for getting back in shape -- this combined with working out 4/5 days a week and I'm down to 190 from 210 a year ago, and 245 four years ago.

Breakfast: Shake -- strawberries, blueberries, bananas, Greens Plus superfood powder, chia seeds, flax seeds, soy milk.

Lunch: Usually turkey and field greens and a couple apples. Occasionally PBJs on high-protein bread. Sometimes Thai or Vietnamese pho.

Dinner: Once or twice a week, NY strip medium-rare in a cast-iron pan.

A ton of salmon, three or four nights a week -- fresh, canned.

Tilapia. Been replacing this with pork cutlets lately.

Mix and match any of these with steamed broccoli, baked tomatoes, cauliflower, brown Basmati rice, cottage cheese.

No butter, no sauces -- salt, pepper, sriracha, habanero powder etc. for seasoning.

It'd be possible to add a lot more variety if I wanted to take the time to get creative with it.


Perfect; I was just looking for vc-annotate-next today.

Magit user here. I love it for its ability to let me do line-level control over what I place in the index. I use the prompt for deep surgery but for general coding/logging/commit-bundling, I haven't found anything better.

The documentation for it is great. I wanted something a little more breezy for quick task-centric scanning and made this...

http://daemianmack.com/2009/09/24/magit-cheatsheet/#

Maybe it'll be useful to you.


Funny, about an hour ago I finally broke down and remapped Ctrl+w to backward-kill-word[1] after re-reading Yegge's Effective Emacs, and you've just reminded me to push the commit to my fork of emacs-starter-kit, which is a great way to get a core set of functionality. Works best if you're tyrannical about keeping it up to date, which I mostly am.

http://github.com/daemianmack/emacs-starter-kit/

Favorite two most recent additions: pyflakes/pylint for Python, and rainbow-mode for CSS.

[1] Having backward-kill-word a two-finger-stroke, instead of the two-handed alt+Backspace, is great! On the other hand, it turns out I kill-region a lot more than I thought I did, so that's a little weird.


I too made the switch after reading Yegge's good stuff, but missed kill-region so badly I had to come up with this:

    (defun backward-kill-word-or-kill-region (&optional arg)
      (interactive "p")
      (if (region-active-p)
    	  (kill-region (region-beginning) (region-end))
    	(backward-kill-word arg)))

    (global-set-key (kbd "C-w") 'backward-kill-word-or-kill-region)
This gets me kill-region for an active (transient-mark-mode) region but backward-kill-word otherwise.


Excellent idea; thanks!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: