HNHacker News
TopNewBestAskShowJobs

Xavdidtheshadow

638 karma · joined July 16, 2012

Senior Software Developer at Zapier
submissionscomments
Xavdidtheshadow··on Ask HN: Are We in a Mega Bubble?
Do you have a link to that tweet?
Xavdidtheshadow··on Password Managers
This isn't quite true. 2FA still protects you from password breaches (and weak passwords, though you shouldn't have those if you're using a password manager).

Also, keeping 2FA codes in a syncable password manager is a huge boon for people who ever break/lose phones. Can't tell you how many people get locked out of their accounts because they lose their 2FA codes.

As an alternative, companies have to have a 2FA-reset process. The fact that such a system exists weakens the entire system, which is too bad.

Xavdidtheshadow··on Data portability, the forgotten right of GDPR
I think, but I'm not sure how accessible it has to be. I was mostly commenting on how approachable the data format was. Formatted json with descriptive keys.

I have no idea what the law requires about the data format, so they could be doing the absolute minimum.

Xavdidtheshadow··on Data portability, the forgotten right of GDPR
For what it's worth Facebook and Instagram (also owned by FB, but is fairly separate product-wise) have pretty good export tools. You make a request in the web UI and a short time later, can download a zip with a bunch of JSON files. I was pleasantly surprised by how much they included.
Xavdidtheshadow··on Sublime Text 4
> VS Code's default bindings are just different enough

FWIW, there's a ST keymap extension for VSCode: https://marketplace.visualstudio.com/items?itemName=ms-vscod...

That's the first thing I installed when I switched (years ago now) and it made the process surprisingly seamless.

Xavdidtheshadow··on WebContainers: Run Node.js natively in the browser
This is a very cool project!

I noticed that outgoing http requests don't seem to work (there's no `curl` and after installing a CLI tool I work on via npm (which worked like a charm!), the outgoing API calls it makes were blocked. I assume that's intentional at this stage. Is that changing in the future?

Xavdidtheshadow··on Request for comments regarding topics to be discussed at Dark Patterns workshop
Also (at least on iOS), content blockers don't work in the in-app browsers that FB uses. It's coded differently than a SafariWebView (which _does_ get the content blockers). Being an ad company, it makes sense that they don't want users doing that.
Xavdidtheshadow··on Starting a TypeScript Project in 2021
I do this sort of thing often enough that I wrote a Yeoman generator to scaffold everything: https://github.com/xavdid/generator-xavdid

Maybe overkill, but it's saved me from having to remember which recent project to reference to remember exactly how I like eslint set up, etc. Been a very smooth experience!

Xavdidtheshadow··on How often do people copy and paste from Stack Overflow?
> UPDATE: There has been a lot of interest in purchasing a real life version of our prank. The good news is we anticipated this might happen and we’ve been working on something along these lines. Stay tuned for more!

Nice! I thought it was a cute idea and I like little useless hardware.

Xavdidtheshadow··on PEP 563, PEP 649 and the future of pydantic and FastAPI
What tool is it?
Xavdidtheshadow··on Whistleblower: Ubiquiti Breach “Catastrophic”
> this completely invalidates the 2FA of TOTP if your password manager get broken into

I think that's the big "if". If you assume the password manager is secure (which something clearly wasn't in this case, but that seems like an outlier), TOTP secret in the password manager still secures the account.

Is such a setup as protective as a separate storage method? No, but it's leagues more convenient. A cloud-based PW manager also solves the problem of a lost/broken/new phone causing you to lose all of your 2FA setups. Some 2FA apps do as well (Authy, iirc), but trust me when I say people lose 2FA codes _all the time_. And then 2FA needs to be disabled by support, which is its own can of worms.

The best security measures are the ones people actually use. If not having to use a separate app is the convenience people need, then I think it's totally worth it.

Xavdidtheshadow··on Semantic Versioning Will Not Save You
> But if we have tried to define 'compatible' in a rigorous way, I haven't seen it

My understanding (and the way I've versioned my projects) is that a major version denotes a stable API and behavior you can safely rely on. What functions are exported, what arguments they take, etc. That's a pretty easy thing to not break.

Things that _aren't_ covered are implementation details such as the location of files in the package, the reuse of objects internally, or other not explicitly-defined behavior.

A couple of examples:

1. In JS, you can import from sub-folders: `let const = require('somePkg/a/b/c)`, but that depends on internal organization. That's not guaranteed across versions.

2. You can also add properties to an object. If we export a function that takes a request object and returns a response, we don't guarantee those are identical objects. We _do_ ensure that the object returned from the function has properties x,y,z, but not that anything you defined before calling the function will still be there.

We would have this back-and-forth on how to version fix releases. "Well, if someone was depending on this buggy behavior, this update will break their code". Ultimately, we said "this is what we guarantee will work. For anything else, run tests anytime you upgrade".

We're not perfect (all software has bugs), but this has worked pretty well.

Xavdidtheshadow··on Publisher Nacon Cracked and Pirated Our Game: The Sinking City
> Direct sales involve handling credit cards (i.e. chargebacks, scams)

This is actually something that the Factorio developers (mentioned in the comment you're replying to) have had a lot of issues with. See "The Grey Market" (https://www.factorio.com/blog/post/fff-171) or this article: https://www.pcgamer.com/factorio-devs-take-g2a-up-on-its-cha...

Xavdidtheshadow··on A new chapter – full-time working from a van in a forest
I did a similar thing (full time van living while doing full time software development, but in the US) for ~ 6 months until the pandemic cut the trip short. Depending on the build of your van, you will have differing levels of reliance on public resources. Unfortunately, our van was built around urban living - showering in gyms, working in coffee shops, etc.

In normal life, I think that's a much _simpler_ approach than being out in the forest. We were never far from a water source or a hardware store in case of emergency, which came in handy more than once.

I hope it continues to work out for them!

Xavdidtheshadow··on Behold z, the unsung jewel that rethinks shell navigation
This sounds just like autojump (typically run using `j`) to me: https://github.com/wting/autojump

Agree that it's an invaluable piece of software!

Xavdidtheshadow··on Factorio 1.1 stable
Yeah, that and "angels" mods are two very popular mod groups that make the game much harder and more complex.
Xavdidtheshadow··on Factorio 1.1 stable
You might check out https://shapez.io, which is a simplified (an open source) clone with single-lane belts.
Xavdidtheshadow··on We rendered a million web pages to find out what makes the web slow
AdGuard is a free extension that, as far as I can tell, is on-par with uBlock Origin. It's been great so far.
Xavdidtheshadow··on Pip has dropped support for Python 2
Definitely. Python 2 is EOL and will no longer be getting updates. The upgrade is easy, especially if you don't have much code written.
Xavdidtheshadow··on Futuristic Helmet Has Its Own HEPA Filter and Fan
Right, which is why it's so vital that cloth masks be trivially easy and cheap/free, so that I can be confident that everyone around me has access to them
Xavdidtheshadow··on Futuristic Helmet Has Its Own HEPA Filter and Fan
> Goodbye Masks?

Absolutely not. Even if these catch on, masks being cheap and accessible has been a huge boon for getting them rolled out quickly. They can be made from household materials, can be disposable, and never need to be charged.

Because so much of the pandemic is affecting lower-income parts of society disproportionately, this would only replace masks for people with money to burn.

Xavdidtheshadow··on Microsoft Refuses to Open Source VSCode Python Language Server
This title is inaccurate.

The language server _is_ open source, and is available here: https://github.com/microsoft/python-language-server. This is the default one VSCode ships with.

This issue is filed on Pylance, a new (released June 2020) language server that's currently still in beta (announcement: https://devblogs.microsoft.com/python/announcing-pylance-fas...).

Also, like the contributor notes, a lot of the "secret sauce" in Pylance is part of the open source Pyright typechecker: https://github.com/microsoft/pyright.

Xavdidtheshadow··on An experimental open source memristor / programmable “diode”
Looks like there's discussion happening here: https://github.com/greatsuspender/thegreatsuspender/issues/1...
Xavdidtheshadow··on The Wire in HD (2014)
> I know the show was on nearly 20 years ago but I only watched it 2 months ago for the first time

That's why IMO significant spoilers should be marked indefinitely. Sure it's an old show, but tons of people were too young to have watched it at the time. They deserve a fighting chance at seeing it unspoiled.

There may be exceptions to this rule for spoilers that are a core part of culture (say, parental relationships in the Star Wars universe), but it's free to mark spoilers as such. People can feel free to ignore such warnings if they'd like.

Xavdidtheshadow··on Just Wanted to Say Thanks
We've got a `gratitude` channel in Slack for this exact thing! Its only purpose is to call out great work and nice gestures coworkers have done. Provides a nice little pick-me-up throughout the week.
Xavdidtheshadow··on How I Met My Wife (1994)
> rot13 is both encoder and decoder

Hence its popularity for very light obfuscation!

Xavdidtheshadow··on Goodreads plans to retire API access, disables existing API keys
Yeah, I get that. It's all wiki based, so I guess folks aren't filling in that data.

There's not an API directly, but https://www.howlongtobeatsteam.com looks promising. It's got an API that you can use to cache your (or all) games. Zapier might be able to do it as well w/ this scraper: https://www.npmjs.com/package/howlongtobeat (disclosure, I work at Zapier).

I used to have a CLI that would trigger a Zapier webhook that would use [this CLI app](https://github.com/xavdid/zapier-igdb) to populate data into Airtable, but I actually moved the whole process to [Airtable Apps](https://airtable.com/marketplace) since I could customize the UI a little more. I've been meaning to open source it, but it's pretty customized so I'm not sure if it'd be widely useful.

I'm curious to see where you end up with this though! It's something I've put a lot of thought into.

Xavdidtheshadow··on Goodreads plans to retire API access, disables existing API keys
https://www.igdb.com/ is the one! I do the same thing. I've got a great process built on Airtable + IGDB.
Xavdidtheshadow··on Slack wanted to stay independent, but was unable to compete with tech giants
I'd wager there were bigger societal changes between now and 50 years ago then there were in the 50-100 range. Do you have a list of top 1920 companies and if so, how does it compare to the above list (presumably 1970)?
Xavdidtheshadow··on Cloudflare’s privacy-first Web Analytics is now available for everyone
This looks compelling - I've been wanting a simple way to track traffic volume on my static site. I don't have ads or anything and don't want to be creepy.

Basically just want to know roughly how many people are reading my blog posts and if any old posts are getting big upticks in traffic.

Hopefully this fills that need!

← PreviousPage 3 of 6Next →