Recent submissions

Comment · 6 years ago
> I'm still not entirely sure what was going on, but in Azure

FWIW, from someone who used to work on exactly this; neither did most of us :)

The org had fired^Wtold most of the network engineers to either interview for dev positions or leave. That left the rest of us with only dev experience to have to learn DC networking from scratch (without any mentors) while also building the infra to automate it, because, well software engineers should be able to learn network engineering overnight right?

I'll just say this, most of the devs I worked with had never coded before in a production environment, didn't know how to test their code (failing tests that would somehow pass in ways you'd think these were contest entries), and didn't even understand basic concepts in programming languages (I'm talking things like references vs values...).

On top of this, the tooling and infrastructure was so bad, even if you wanted to be productive you'd be fighting things like your build environment just randomly breaking after a git pull and having to reinstall visual studio or reformatting windows to fix it.

From what I've heard from people I still know on the inside, things haven't changed much (I'm very grateful for $MSFT though...)

Comment · 6 years ago
Right, but I'd prefer not to have to do that if a comment cites multiple links that I want to queue for later.
Comment · 6 years ago
This is one of my biggest pet-peeves. Whenever I have to help people debug performance issues with their machines it's almost always due to a bottleneck on their disk.

For my family members that have laptops with those shitty 5400rpm HDDs with 8MB read/write buffers - I can't blame them and just tell them to upgrade to an SSD. I've witnessed Windows update hogging 100% of the disk activity for 30+ minutes after reboot on these machines until they're actually usable...

But for my developer friends who I figure should know better, they never seem to think of looking into disk activity. It's almost always things like applications hanging/blocking on disk due to lots of different processes trying to read/write at the same time on an HDD or "small" RAM size causing constant thrashing on a disk due to memory being paged in and out of swap constantly.

Comment · 6 years ago
I've been meaning to get around to basically plagiarizing this UI for a personal linux system monitoring tool.

I've tried a bunch of the popular linux disk/resource usage monitors but I find none are as flexible/nice to look at as Windows' Task Manager overview graphs and Resource Monitor. Any time I'm using a Windows system I will dedicate a monitor to just having Resource Monitor's disk usage tab open (although it can result in nontrivial CPU usage under certain disk access patterns).

Comment · 6 years ago
Very interesting, thanks for sharing!
Comment · 6 years ago
I suffer from this too (only formally diagnosed with sleep apnea though) and found that 0.5mg of melatonin about 20-40mins before I want to go to sleep has helped me align my sleep cycle to a 24hr schedule. I also get a consistent 8hrs registered on my CPAP so it doesn't seem to interfere with my sleep quality/duration either.

I buy melatonin that comes in 1mg pressed/powder pill form and just bite it to split it in half and toss the other half back in the bottle.

I've been doing this for 2 years now and have never had to change the dose. At one point I even considered seeing if .25mg would be sufficient but depending on the brand sometimes the pill crumbles up too much so I stick with .5mg. I've used Nature's Bounty and Webber Naturals and both brands seem to work the same for me.

I really wish I had figured this trick out a lot earlier in life as it would've saved me from missing out on a lot of opportunities in my career.

(more detail about my experimentation below)

Before I discovered this I tried everything from reducing screen time before bed, cranking up night mode in flux/redshift, abandoning coffee/caffeine entirely, working out earlier in the day instead of evenings, etc. _Nothing_ worked for me - my brain would remain wide awake and I would have to stay up until 5-7am before I even began to feel tired (where I would have to wake up between 10-11am for work).

I had even tried melatonin before too but it was a 3mg pill and it would produce very erratic results in my sleep quality. I'd sometimes wake up drenched in sweat or wake up feeling very groggy for hours so I figured melatonin just wasn't for me. It wasn't until I came across some advice on /r/n24 or /r/dspd to try .5-1mg of melatonin that I decided to try again (IIRC it was a post about how doses >=2mg can actually result in melatonin overdose and result in the types of symptoms I was observing - TBH I didn't really bother verifying that info and just figured I'd try .5mg and see what happened as I was desperate for a solution).

And for the record, with this approach I haven't had to make any other modifications to my daily routine. I continue to lift heavy in the evenings and drink 1-2 cups of drip/espresso every day.

The only situations I've noticed where this trick falls apart for me are:

1) if I ever try to push past that 20-40min period where I start to get drowsy, it results in me being awake again. This rarely ever happens and I usually just end up sleeping about an hour later. I make sure to take the melatonin just before I begin flossing+brushing and get in bed right after

2) for some reason drinking a can of coke/pepsi in the evening will keep me wired awake all night. I've had cups of coffee in the evening rarely which never had the same effect, but coke/pepsi will...

Anyway, just thought I'd share since this made a huge difference in my life - maybe worth trying/experimenting.

Comment · 6 years ago
Well, did you train at commercial gyms or powerlifting/weightlifting gyms? What if the lifters just happened to be on high volume blocks, or tapering for a meet whenever you visited?
Comment · 6 years ago
Do you have a quick explanation or resource that explains why [1] is true?

Just curious as I've wanted to get better at being able to understanding assembly output by gcc/clang but don't think I've come across this advice explicitly before.

Comment · 6 years ago
I switched to KeePassXC because KeePassX had a bug where you could silently lose data if you made changes to the notes section of an entry and hit `Esc` without remembering to save.

KeePassX won't prompt you at all and silently drops all those changes, whereas KeePassXC will ask what to do.

KeePassXC also seems to immediately save changes upon adding new entries whereas KeePassX requires an explicit <ctrl-s>.

Comment · 8 years ago
Can you provide more context re: "The recent reaction from Valve is telling, I think Gabe is fearful about the current state of affairs" ?
Comment · 8 years ago
From what I understood of OP's description of the process, it sounds a lot like the sort of awareness that's cultivated through long-term and consistent practice of meditation (implicitly or explicitly depending on the school of practice).

I noticed after a couple months of initially starting daily zazen practice (just 10-15 minutes every night), that I went from reacting in a way that was originally: event -> (usually 'extreme') reaction, to something more like: event -> stepping back/observing what would've originally been my reaction -> choosing to engage with it or not. After a year of practice, this new pattern of reacting basically became muscle memory and would happen _even when_ I sometimes wanted to strongly react to things (i.e. music/art/social situations with friends/etc ).

After about 4 or 5 years of consistent practice I caved into what I had even read was a common pitfall for most practitioners in thinking that I had "achieved" most of the "benefits" I could from meditation and just stopped practicing all together. It took about a year for most of these benefits to even start decaying, but after about that 2 year mark, my pattern of thought/reacting had almost entirely gone back to how it was before I had ever started practicing.

I'm thinking there has to be some happy medium where you have the ability to observe as well as engage, but I'm not sure what the original philosophies of the practice actually "advocate" for as I never really delved too deep into the literature on this.

I think this was actually one of the main reasons I stopped practicing, because I was wondering if my 'artistic side' was being 'dulled' by meditation. This is still a question I want answered and have been wondering if it may be worth doing a deeper dive into the literature/having a teacher guide me through the rest of this journey.

Comment · 8 years ago
Could you maybe elaborate on some examples you have in mind?

I'm strongly considering accepting a job offer for a company in NY since I'm starting to get bored of living in Seattle. I figure moving to NY would mean being surrounded by more people and having more opportunities to collaborate on projects like these.

Comment · 8 years ago
Does Pivotal have a list of resources/references to help new hires ramp up on TDD practices and principles that you can share?

My current plan is to finish reading and working through the examples in 'Growing Object Oriented Software, Guided by Tests' as that seems to be a very highly recommended book.

Comment · 8 years ago
He's referring to the vi command sequence he would type to amend his command, i.e. OP has 'set -o vi' in his shellrc or 'set editing-mode vi' in his inputrc

    # x| = cursor is in insert mode, after char 'x'
    # |x| = cursor is in command mode, on char 'x'
    # (<keys>) = keystrokes entered resulting in prompt on next line

    $ git ci -m "<str>"|    (<CR>)
    $ |                     (<Esc>k)    # puts shell prompt into command mode (<Esc>) and cycles upwards to previous command (k)
    $ git ci -m "<str>|"|   (F-)        # from current position, reverse search (F) and stop on first occurence of '-'
    $ git ci |-|m "<str>"   (aa)        # cursor is on '-' char, append (a) 'a', i.e. transition into insert mode by advancing cursor after current char, then insert 'a' literally
    $ git ci -a|m "<str>"   (<CR>)      # execute command
    $ |

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton