HN user

prawks

1,072 karma
Posts8
Comments516
View on HN

you dont figure it out for days or weeks?

If it was important and estimates on how long it will take are overrun, then don't wait to follow up on it and find out how it's going.

Unless the problem is more nuanced like a small component of a larger body of work? Like knowingly leaving flaws in an implementation, or something.

Shortly after your post, they did revoke all access tokens:

https://status.npmjs.org/incidents/dn7c1fgrr7ng

To protect potentially compromised accounts, npm is invalidating all npm login tokens created between 2018-07-11 00:00 UTC and 2018-07-12 12:30 UTC (about 2 hours ago). If you believe your account specifically was compromised we still recommend visiting https://www.npmjs.com/settings/~/tokens to revoke all your tokens.

Posted about 20 hours ago. Jul 12, 2018 - 16:42 UTC

Then later:

We have now invalidated all npm tokens issued before 2018-07-12 12:30 UTC, eliminating the possibility of stolen tokens being used maliciously. This is the final immediate operational action we expect to take today.

We will be conducting a forensic analysis of this incident to fully establish how many packages and users were affected, but our current belief is that it was a very small number. We will be conducting a deep audit of all the packages in the Registry to confirm this.

Posted about 18 hours ago. Jul 12, 2018 - 18:52 UTC

Advice 8 years ago

30) Existential angst is part of life.

Definitely a 20-30 thing, never even crossed my mind before I was 25.

I think I'm in the group that doesn't immediately see the obvious gain of teaching in a Docker container vs. teaching how to install pyenv/virtualenv.

Is it mainly cutting out troubleshooting differences between host OS's while also getting isolated python environments?

Maybe I do see the win there, after all?

Consumer perception, mainly. It depends on the target audience of the page. Modern consumers have come to correlate certain appearances with quality. It's not an awesome cultural development, but you're not likely to gain much traction by fighting against that momentum unless you already have an oversized influence on that readership's expectations.

I often hear people point to security as a reason to avoid shipping sourcemaps in Production, but it seems like such a non-issue given that anyone can unminify the code shipped out to their browsers. What kinds of secrets are able to be hidden via obfuscation? The answer traditionally is "none" so I'm pretty consistently baffled. We do strip comments explicitly so that devs don't need to be as concerned with exposing anything that way, but aside from that I don't really understand this angle.

The winter can be a bit much if you're not used to it for sure, but the upside is that tourists leave and restaurants no longer need reservations :)

Plus, not far from some excellent (downhill and cross-country) skiing, snowshoeing, ice fishing.

2 quick points:

- The paradigm shift in writing interactive web pages in the React "write your app like a game that re-renders every frame"-style is extremely compelling. You are correct that there are plenty of largely static sites that do not need JS-based rendering, but for people wanting to develop single-page web apps or other interactive content, that mindset is a godsend.

- We recently re-wrote an ecommerce site with React and it is WCAG 2.0 AA compliant. To our knowledge, and to the independent firms that have audited our application, screenreaders have no problem with it. You still have to go through the diligence of all of the standard a11y-friendly techniques like semantic markup and thoughtful keyboard navigation, but React at least does not get in the way.

One funny (ab)use case that may not be immediately obvious: any public API that accepts payment for goods via credit card will sooner or later attempt to be used by carders to test purchased/stolen card lists for validity.

Ditto, I was able to get a Leap from an office surplus store for my home office and I enjoy its adjustability better than the Aeron I had at my last job. The breathability of the Aeron is nice, but I don't have issues with standard cloth chairs anyway.

I think that's a difficult comparison to make because you can reasonably secure your house against unwanted entry and it's fairly likely that breaches could be detected.

Obviously malicious law enforcement could still circumvent that just as they could a warrant depending on their level of capabilities and your house's security, but there isn't a similar path to securing your water usage data against warrant-less searching. Its security is wholly in the hands of a third party and any security breaches are essentially invisible to you.

That said, we're both painting in broad strokes.

From the mypy docs linked in the article (http://mypy.readthedocs.io/en/latest/duck_type_compatibility...), it seems it supports a small number of built-in duck types currently, and has support for some protocols (http://mypy.readthedocs.io/en/latest/cheat_sheet.html#standa...)

mypy considers an int object to be valid whenever a float object is expected.

Use Iterable for generic iterables (anything usable in `for`)

Thus you should be able to get a more broadly correct (though still not 100% if you have your own types implementing __add__ and __radd__) like this:

  from typing import Iterator

  def sum_and_stringify(nums: Iterator[float]) -> str:
      return str(sum(nums))
It also looks like implementing an abstract base class SupportsSum (to check for __add__ and __radd__) may not take a whole lot of work, see `SupportsInt`: https://github.com/python/mypy/blob/d7f6ea617317103534d86686...

http://mypy.readthedocs.io/en/latest/class_basics.html?highl...

Django's recommended project structure is one that immediately comes to mind. A project is broken down into "applications" each which have their own models, views, and controllers (among other things like forms, tests, etc.). Each "application" is an area of responsibility within the project, like payment or user management.

As it's python, the 'views' module could technically be a folder with multiple files inside it, but they would all be grouped under their respective app.

It's a problem inherent in any system offering pure anonymity in an unrestricted way.

It's really a shame. An opinionless platform offering anonymity cannot flourish in an opinionated world. At some point if these things want to succeed, they need to play by the rules of the world that they exist in. But I don't think anyone's figured out a common set of systemic restrictions that Tor, 4chan, etc. can implement that avoid taking away their primary affordance: freedom.

"You make your own luck." There were a sequence of events that lead to you getting the opportunity to be in the right place at the right time.

Random luck happens for sure, but how did you get to put on a warm-up for one of the biggest DJs in the world? I'd guess because of some conscious work you did, not because he picked a phone number in the book at random.

You told him about your party after getting the gig. He probably wouldn't have gone if you had not. That kind of networking and effort is a skill just as much as selecting the right music.

http://farlandsorbust.com/

That guy's been doing it for quite a while.

At the end of that most recent FLoB-ATHON Weekend in 2015 we discovered that I was 2,266,779 blocks in the furthest 'Z' coordinate, the equivalent of 2,266-kilometers from spawn! Amazing, yes, but it means we are still only 18.06% of the way to reaching the Far Lands located at 12,550,820 meters! They don't call them "far" for nothing! INDEED!

unless you're really into just having fun - which the game mostly does not encourage

This is the exact reason why, no matter how many times I tried over the years to play this game with friends, I could never stay attached for longer than a few hours. There seems to be less and less emphasis put on enjoying the experience of exploration and being in a space in modern online games, and more emphasis on rote activities for the sake of progress.

And thus I return to single-player games, which I certainly do not mind. There is a seemingly never-ending stream of creative ideas coming out of that space.

I think you're looking at a pretty narrow genre (Complex Games) and extrapolating the entire platform's content/potential from it. There are fewer people making as complex games as back then, but saying people are uneducated is a bit silly.

Hypothesizing about how Backblaze stores data: because they likely keep a series of backups, it's more likely they write each delta out separately. I'd imagine it's likely they no not have whole copies of your latest backup on their drives, but they could reconstruct one at will if needed. If that were the case, it would indeed be close to write-once.

This article reminded me of an NPR piece I saw a few days ago about "When Women Stopped Coding"[1]. The theory goes that without having prior knowledge of working with computers, people cannot compete in many introductory computer science classes. Computers had been marketed like toys, to one gender: boys. Because of this, it was rare for women to have prior computer experience, and so struggled and dropped out of CS.

It made me reconsider what "technical privilege" really means and why I think it's a valid thing. Exposure to computers and technology outside of the classroom is definitely becoming more common, but not the kind of hobbyist interest that this article talks about.

[1] http://www.npr.org/blogs/money/2014/10/21/357629765/when-wom...