Better HN
topnewbestaskshowjobs
Log inSign up

nmjohn

1,490 karma · joined Feb 18, 2014 (12y ago) · 369 submissions

[ my public key: https://keybase.io/njohnson; my proof: https://keybase.io/njohnson/sigs/PEJkqcblsXsrSziMB_Icwhdl9BHXHsj3pODPfhhTxvY ]
Submissions

comment 8y ago · link · parent

> Still, using ip addresses to try to determine where a request is originating from is not a good idea

How else should they do it? I concede it is not foolproof nor ideal - but for websites which you've not provided your location to yourself, how is it possible for them to determine whether or not you are in Europe?

comment 8y ago · link · parent

But is that relevant to _this specific_ case? The problem is not 3rd party clients, it's the npm client itself - so I don't know how error handling is relevant? (In the general case, yes of course it is, but in this and the parent comment I'm specifically talking about issues in only the narrow use case here.)

comment 8y ago · link · parent

> Be careful, "cuteness" and "cleverness" has a way of biting you in the behind.

Generally speaking I tend to agree, but in this specific case how is sending a 418 "biting you in the behind" worse than sending a more proper 500 error? (Or perhaps a 400? Hard to say exactly, feels like the server is having unexpected errors since it cannot properly parse the hostname.)

comment 8y ago · link · parent

Committing fraud is very much illegal, yes. It may be hard to prove and prosecute, but it is undoubtedly illegal. (Though IANAL.)

comment 8y ago · link · parent

> We should not let GitHub take over the Git brand like they try to do with blog posts like this one.

Is there a similar blog post by the actual git team sharing this information? If so, let's link to that - but as I am not aware of one, I do appreciate github's git release announcements because they are typically a much easier way to learn about new git features than reading the entire release emails [0]

[0]: https://www.mail-archive.com/git@vger.kernel.org/msg145986.h...

96.

Waiting time, load factor, and queueing theory – cut your systems a bit of slack(erikbern.com ↗)

1 points · by nmjohn · 8y ago · discuss

comment 8y ago · link · parent

I've ordered multiple rpi zero's / zero w's at cost ($5/$10 respectively) + a few dollars for shipping. Purchased through adafruit, pi hut, and canakit. No need for a receipt, it's in stock for purchase right now [0][1][2]

What you don't get however, is the ability to purchase them in any bulk quantity at that price. However the bulk price is still much less than $49.

[0]: https://www.canakit.com/raspberry-pi-zero.html [1]: https://shop.pimoroni.com/products/raspberry-pi-zero [2]: https://www.adafruit.com/product/3400

comment 8y ago · link · parent

> they instead decide to hardcode usernames and passwords, it's a huge red flag.

Why? That seems like an oddly specific thing to be a _huge_ red flag. Are you expecting random data to actually surface bugs - ie: making your tests non-deterministic? Or is there some other benefit you are looking for to make it such an important criteria?

comment 8y ago · link · parent

The linked intel erata pdf file is 404'ing, but I think this [0] matches if you are curious about this line:

> Note that some errata like AI65, AI79, AI43, AI39, AI90, AI99 scare the hell out of us.

[0]: http://download.intel.com/design/processor/specupdt/313279.p...

comment 8y ago · link · parent

> SpaceX expects its own latencies to be between 25 and 35ms [0]

There is a huge difference in latency between existing satellite internet services and what spacex is looking to launch.

[0]: https://arstechnica.com/information-technology/2016/11/space...

101.

Internet protocols are changing(blog.apnic.net ↗)

458 points · by nmjohn · 8y ago · 134 comments

102.

Software compatibility and our own “User-Agent” problem(sigbus.info ↗)

194 points · by nmjohn · 8y ago · 64 comments

103.

History of the Internet in Webflow IX2(webflow.com ↗)

13 points · by nmjohn · 9y ago · discuss

comment 9y ago · link · parent

Doesn't the license explicitly state the opposite?

> Notwithstanding the foregoing, if Facebook or any of its subsidiaries or corporate affiliates files a lawsuit alleging patent infringement against you in the first instance, and you respond by filing a patent infringement counterclaim in that lawsuit against that party that is unrelated to the Software, the license granted hereunder will not terminate under section (i) of this paragraph due to such counterclaim. [0]

As I read it, it only applies if you are the original instigator, not if they are.

[0]: https://github.com/facebook/react/blob/af312ce006ebe76307662...

comment 9y ago · link · parent

There is something I don't understand about the HN comments when the React license comes up.

Whenever something about software patents in general comes up, the majority of commenters seem to condemn them - at a minimum in their offensive usage. And a vast majority of commenters seem to be opposed to them at least to some degree.

So if as a general position you do not support the offensive use of software patents, why does the react license matter _at all_ to you? The only time it would matter would be if you would sue facebook for violating your patents. Am I not correctly understanding the license? Does it apply any other time?

comment 9y ago · link · parent

I had the exact same thought after port scanning my own uverse gigapower connection - so seeing real exploits actually be found on it is not surprising in the slightest to me.

Though instead of going with the 802.1x proxy approach, it's also possible to spoof the mac address of the RG with your router and swap it in place after 802.1x authentication has occurred. (You have to swap without the link to the ONT going down however, the easiest way to do so being a switch with VLAN support. You put the RG and ONT on one vlan, and then once the connection is up, you swap your router in place of the RG.)

Then you can unplug the RG and put it in your closet (until you have a power outage and have to do it again, which is the main drawback to this approach. However since AT&T provides a UPS for the ONT, if you have a UPS for your router you should be good there too.)

comment 9y ago · link · parent

> having a significant portion of the world's TLS be under one umbrella isn't a good thing.

Why is that? The damage from a CA being hacked is not proportional to the size of the CA - they are all equally (small number of exceptions notwithstanding) capable of issuing certificates for any domain which will be trusted by all major browsers.

Is there another aspect I'm not considering? While I see how it feels like a troubling thing, I'm struggling to actually come up with any real consequences of it.

comment 9y ago · link · parent

> Don't judge their code by their use of a VCS. It's like judging a person's articles by their notes. I've got terrible handwriting.

Except notes rarely are intended to be public and used for communication with other developers. While I agree that bad commit messages every now and then are not a big deal - that is not what the original commenter was referring to. Of the 23 commit messages, 8 of them are just "1".

The only meaningful commit message was from a 3rd party PR that was merged. For security-related code, "hygienic" coding practices, including quality commit messages, are - at least in my eyes - important.

comment 9y ago · link · parent

This book really is fantastic - if you work on anything related to the web and don't know the history of the ARPANET and how it was the foundation of the internet we know today, I highly recommend checking out this book.

comment 9y ago · link · parent

> including the critical private keys

If anyone actually has access to those keys in a manner in which they could be leaked, that is... utterly terrifying. Like the private keys for root CAs, they likely are under strict access controls making exfiltration quite difficult (hopefully impossible barring multiple levels of process breakdown)

comment 9y ago · link · parent

I'd be tempted to think they decided to solve the logistics challenge instead of the technical one. So instead of trying to build a generic piece of hardware that detects its own position and lights up accordingly, each torch was unique (or configured via software to be unique, even if at "runtime") and configured specifically for its exact position on the field.

If each torch is designed for it's own show, then the only thing that has to be synced is the exact time to start. And in comparison, that problem is trivial to solve with known constraints (as opposed to triangulating hundreds of devices with < 1ft precision in addition to actually synchronizing the devices)

comment 9y ago · link · parent

What a frustrating change. However it still is possible to disable (though you probably will need to do this every time chrome updates)

Simply deleting the folder that contains "widevinecdmadapter.plugin" will effectively disable the plugin.

So, for example, on OSX using homebrew to install chrome, it'd be:

    rm -rf /opt/homebrew-cask/Caskroom/google-chrome-canary/latest/Google\ Chrome\ Canary.app/Contents/Versions/58.0.2996.0/Google\ Chrome\ Framework.framework/Libraries/WidevineCdm

113.

Joel Spolsky: Time to take a stand(meta.stackoverflow.com ↗)

115 points · by nmjohn · 9y ago · 39 comments

comment 9y ago · link · parent

Your artwork is great! I'm not sure #1 would really be a problem as that situation never should occur and is totally preventable (there always should be traffic cones/barricades surrounding the cover, something the car easily could detect). In the rare case it does happen, the utility company would/should be at fault for leaving a manhole open like that.

I can also think of a few ways to prevent number 2 (basically, a combination of GPS + knowing where all intersections occur + road data from thousands of other connected cars = knowledge of where every stop sign is. Certainly not foolproof, but I think ultimately it is a problem that has possible solutions)

The rest of your examples are fantastic though, #3 being quite terrifying actually. They are all very intriguing thought-experiments and I look forward to seeing your future additions!

comment 9y ago · link · parent

Yes, it works quite well - For an example setup, this is my setup script [0] to bootstrap a digital ocean droplet + launch an openvpn container using this image [1]

[0]: https://github.com/n-johnson/setup-openvpn-server

[1]: https://github.com/n-johnson/dockvpn

comment 9y ago · link · parent

> SpaceX wants to launch 4,425 satellites into low-Earth orbits, with altitudes ranging from 715 miles to 823 miles. [0]

Latency won't be an issue. Can't find any information on their plan to solve the second problem - but since they've announced the service already, I've got to believe they've come up with workable solutions.

[0]: http://arstechnica.com/information-technology/2016/11/spacex...

comment 9y ago · link · parent

FWIW, on a fresh ubuntu 16.04 install, this is what needs to be run:

    sudo apt update && sudo apt install python build-essential -y
    wget -O bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py
    cd mozilla-unified/
    ./mach build

comment 9y ago · link · parent

Direct link to youtube video: https://www.youtube.com/watch?v=vNySOrI2Ny8

119.

Amazon announces first autonomous drone delivery with Prime Air(amazon.com ↗)

3 points · by nmjohn · 9y ago · 1 comment

comment 10y ago · link · parent

> you can't practically log/monitor/IPS/SIEM...or am I misinformed?

It depends the hardware you're using (specifically router), but using netflow / sflow / ipfix [0] you can get pretty high visibility even for high bandwidth networks. This only gets you "metadata" and not a full packet capture - but for monitoring and the like, the metadata can be far more useful.

I'm not entirely sure what level of traffic you're talking about, but I know it's possible with the right hardware to use netflow with 100GbE links without having to sample (ie: Recording flows for every packet, not 1 in every n packets)

[0]: Good sflow vs. netflow beakdown: http://networkengineering.stackexchange.com/a/1335

12345
13