HNHacker News
TopNewBestAskShowJobs

yan

9,992 karma · joined March 17, 2008

yan (@) srtd . org

@yan / twitter

Contact me. I'd love to hear from you.

[ my public key: https://keybase.io/yan; my proof: https://keybase.io/yan/sigs/bsufXWbJRQgWAiZQ3yD9Ydi_lDSJDWpSAxS1aqv3ORk ]

submissionscomments
yan··on Ask HN: Any good audio podcasts?
Some I listen to regularly: 99 percent invisible, planet money, radiolab, the occasional Nerdist podcast, this american life, Dan Carlin's Hardcore History, Dirtbag Diaries
yan··on Kindle Unlimited
We, as a society, put a value on MySpace profiles from 2006. Good riddance.
yan··on Kindle Unlimited
I can fully understand your sentiment, and to some degree emotionally connect with it, but rationally: my entire bookshelf of computer science and literary classics has gone untouched since my initial read through the vast majority of books.

I keep looking around and I'm not sure that I'm happy with the "ownership" aspect of books, or a lot of stuff in general. (Having moved three times during the last six years, moving books is an awful experience).

This is probably an expression of what I've been feeling in general as of late, but I am extremely happy with the "subscriptionification" of media that's been happening. Spotify's huge library is a net win for me, as opposed to collecting albums for them to just collect dust. For me, revisiting what I used to listen to in high school by over-hearing someone's playlist has a far stronger emotional reaction than revisiting it by walking past a bookshelf.

Regarding stuff disappearing ten, twenty, thirty years from now: my experpience has been the opposite. The Internet has been getting better and better and archiving content of yesterday, and has provided better and better access to it.

My personal lean has been to own less stuff in general, which includes books, music and media in general. So needless to say, I'm pretty excited about Kindle Unlimited.

yan··on Mac keyboard shortcuts
FYI: You can also cycle tabs with Command+Option+Left and Command+Option+Right and Command+[1, 2, 3, etc, with 9 always selecting the right-most tab] in the case of Chrome.

With Safari, you can do Command+Shift+[ and ]

yan··on Mac keyboard shortcuts
I don't really remember to be honest, I'm always on the prowl for new shortcuts (I rarely touch the mouse. Also, get Vimium for Chrome.) but it changed how I interact with OS X pretty significantly after I found it.
yan··on Mac keyboard shortcuts
I live by keyboard shortcuts, and one that I use many times a day that I find lists of OS X shortcuts always miss is how to restore a window if it's minimized, or open a new empty document if no windows are active.

Normally, when you cycle open apps with Command+Tab, if you land on an application that has minimized windows, nothing happens. The way to remedy that is as follows: Hold Command and tab to the app you want to un-minimize. Without letting go of Command, press down Option, then while holding down Option, let go of Command.

It's a little awkward to use at first, then you'll do it automatically. I hold Command with my thumb, then tab with ring finger, then just move ring finger back down to Option, and let go of thumb.

Edit: Bonus tip: When landing on an application icon with Tab, continue holding Command and use Tilde (~) to cycle through windows of the same App. I use that one a lot too.

yan··on Divide Your Rent Fairly
I've been using and loving Splittr[1] frequently on iOS.

[1] https://itunes.apple.com/us/app/splittr-cost-sharing-made/id...

yan··on A Gossip App Brought My High School to a Halt
There was also a great bit on last week's This American Life on anonymous gossiping on the Internet: http://www.thisamericanlife.org/radio-archives/episode/522/t...
yan··on Ask HN: Screenshot Saturday
My WebKit hack from two years ago that splits the rendering area into N joined columns, such that you scroll content Up->Down->Left->Right.

https://vimeo.com/59463521

The intuition was that screens are almost all wide-screen, but content is all narrow, due to readability. This was an attempt to add a mode to browsers that can let you use more of your screen real estate.

I have a draft of a blog post from a year ago explaining my reasoning and a diff of the hack, but I kept putting it off. If people are interested, I'll port it to Blink and write something up about this.

yan··on Norwegian skydiver nearly struck by meteorite
It's probably not a fake or packed inside the chute, since he was under canopy for some time when this occurred. Low odds are not zero odds, but then again, it can be a clever April fools segment.

Also, chutes are not packed with great care. A main (the parachute you generally use) takes an experienced packer 5-10 minutes to fully pack and some people hurry through it to get on the next load. Outside of two things you need to get right (make sure the slider is up, make sure lines aren't over the fabric), it will open. Most of the packing is all about reducing the pack volume and slowing down the opening, not ensuring it.

A reserve however (the second chute sport jumpers wear), gets packed by a certified packer and gets re-inspected and repacked at least once every 180 days.

yan··on Apply dog vision to photo of Robert S. McNamara
From what I understand, both dogs and cats have poor "static" vision but can spot minute changes very, very well. A squirrel has a very specific gait and movement style which they can spot very well. If your dog saw a photo of a squirrel from 100yrds away, I doubt it would heed much attention to it.
yan··on Github Down
I used to not really understand why GitHub being down sent people into a fervor, since you know, git is distributed and you can just work without it.

But then just a few minutes ago, a 'brew update' failed because the recipes are hosted on github. Then, 'opam install' failed (which is why I was updating brew) because it too, is on Github. Then I went searching for build failures, and the answer was in a GitHub issue thread, with a link to a pull request that fixed the issue.

No, I don't have a solution to doing this better, but man do you feel the fragility of these systems when one component goes down.

yan··on Why we love Scala at Coursera
I'm curious, what languages do you consider impractical?
yan··on The worlds most remote base exit is still untouched
As others said, exit is where you jump from. Exits matter because not all are safe vertical drops, some are way more stylistic than others and in case of BASE wingsuiting, some lead to specific lines. A line is the flight path a wingsuit pilot takes after jumping. Recent times, proximity flying has been getting more popular, where a person wearing a ram air wingsuit tries to get as close to cliffs, ground, trees or other natural elements as possible. As you can guess, lots of people die doing this.

For an example of a safe exit that immediately leads to a very spicy line, check this video, at 0:40 specifically: https://vimeo.com/82949889

yan··on Guide to Advanced Programming in C
What the article intended to say is calling free() on the same pointer twice is considered 'double free'. Also an issue with the c++ delete operator.

Calling free() on NULL is a no-op.

yan··on Ask HN: What's the worst you've ever screwed up at work?
Not the worst at all, but probably one I found most amusing. One of my jobs included some sys admin tasks (this wasn't the position, but we all did dev ops), among my other responsibilities. I spent half a day going through everything with the person responsible for most of the admin tasks at the time. She was an extremely dilligent and competent admin, did absolutely everything through configuration management and kept very thorough personal logs and documentation on the entire network. One of my first tasks was to change backup frequency (or other singular change) and going by how I usually did things at the time, just sudid a vi session, changed the frequency and restarted the service.

She found out about it pretty quickly due to having syslog be a constant presence in one of her gnu screen windows and gave me a look. She quickly reverted what I did, updated our config management tool, tested it, then deployed it, while explaining why this was the right way to do things. I slowly came around to doing things the right way and haven't thought much about the initial incident until we found her personal logs that she archived and left on our public network share for future reference.

In the entries for the day that I started, we saw the following two lines:

    [*] 2007/09/09 09:58 - yan started. gave sudo privs and initial hire forms.
    [*] 2007/09/09 10:45 - revoked yan's sudo privs.
yan··on The descent to C
I'm sorry, but I think the article's version is actually closer to the truth.

Regarding stack arrays, while the compiler certainly knows how large an array is (of course it has to, you're using the length in the code it parses), it will almost certainly not write code or immediates that hold the size anywhere to the resultant binary. If you allocate three arrays, each of 12 doubles, a compiler can simply emit "sub esp, 288" and be done with it. It also won't stop you from referencing memory at an unreasonable offset from any of those arrays. (Compilers can warn you though.)

Passing the array along with its size further goes to prove the original statement, not refute it. If you have to do something manually, it strongly implies that the language/runtime isn't doing it for you.

Regarding arrays on the heap, the runtime even then does not require you to place a size anywhere. What likely happens is the right cell from a bucket of the closest size to the allocation you need is returned to you and marked in use. It will be as large as the size you're allocating, or larger. The only artifact of its original size is which span of memory it's located at. When you free() that allocation, that block simply gets marked as free, no size needed.

yan··on Romanian saves OpenBSD?
Nitpick, OpenBSD came out of Theo's disagreements with the NetBSD team, not the other way around.
yan··on Frere-Jones is suing Hoefler for half of preeminent digital type foundry
Whoa, this is huge.
yan··on Bitrot and atomic COWs: Inside “next-gen” filesystems
I think this is why there's a distinction between "new" and "next-gen". ZFS still has a lot of features and concepts that make most "current generation" file systems feel like toys.
yan··on VVVVjs lab
For those curious, this is inspired by vvvv[1].

[1] http://vvvv.org/

yan··on Github was down
"Why don't they just make the airplane out of the same material that the black box is made from?"
yan··on ReText - Markdown editor for Ubuntu
For a similar, great markdown editor for OS X, check out: http://mouapp.com/
yan··on IDEas: Tools for Coders
I also have a few offshoot tool prototypes and a current side project into code visualization that I'm building, also not ready for public viewing. Get in touch if you're interested.
yan··on IDEas: Tools for Coders
I started implementing a few of these (and lots of others) ideas, and the issue isn't coming up with what to do, it's doing it intelligently. I have a small side project where I'm playing with AST rendering and the details are usually where you get tripped up.
yan··on Nmap team releases 5 gigapixel favicon map
Looks like the color determines the position, and traffic the size.
yan··on BitHub = Bitcoin + GitHub. An experiment in funding privacy OSS
This is very cool, but my initial reaction was "this is amazing" to a misunderstood model of what this is.

This is: Create a pool of btc, distribute to those who commit to current round.

What I thought this is: Anyone can tip on individual commits that they find useful or of exceptionally high quality, akin to Reddit Gold for code. This way, not all commits are treated equally and great commits can be compensated. To further the reddit gold analogy, this can tip for premium features (i.e. tip some btc or usd for a month of free github premium) or just straight out money.

I realize there's gittip, but this is on the level of commits, not developers.

yan··on Show HN: Cilantro - Chat 1:1 with employees at companies you'd like to work at
And now, I can't look past it.
yan··on Canada Post to phase out urban home mail delivery
Agree, that is an awful chart.
yan··on New Google Sheets: faster, more powerful, and works offline
Am I the only one that is distracted by the name "Google Sheets?" It doesn't exactly roll of the tongue, awkward to say and doesn't exactly scream "spreadsheets" when placed next to other Google Docs (Drive?) products. It can just as easily have been a presentation tool, or something else entirely. Although, it's probably ambiguous only to me and for most other people, sheets == spreadsheets.
← PreviousPage 2 of 34Next →