Live data from Hacker News

Show HN: Print a WiFi Login Card

wificard.io

181–190 of 347 posts

Re: Show HN: Print a WiFi Login Card

#181

Earlier quoted context omitted.

Can any website start service workers that outlive their tabs? That seems like a huge change

Yes, but not directly via a service worker (aren't they blocked from network access in general?) - you'd have to trigger the main thread to sync with the service worker, then perform the exfiltration for you. The original way to do this via a synchronous XHR request in visibilitychange/beforeunload/unload handlers gave you a 1-2s window to exfiltrate the data. That's been deprecated in exchange for a more insidious "…

Wow - that is just sad to see from Mozilla (sighs, where did all the good guys go?)

Excerpt from their KB

Navigator.sendBeacon() .... It’s intended to be used for sending analytics data to a web server, and avoids some of the problems with legacy techniques for sending analytics, such as the use of XMLHttpRequest.

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...

Re: Show HN: Print a WiFi Login Card

#182

Asking as a person who understands the fundamentals of all of the technologies involved but is horrified by much of what goes on in the minds of today's web developers and designers, what motivates the decision to make this repo use make, docker, yarn, npx, nginx, react, and jest rather than a bit of static HTML and css and something like qrjs2.js or VanillaQR.js with a simple canvas or datauri update in onInput?

If I had done this project it would probably use node.js + gulp + sass + pug + browserify + babel + bootstrap ... or maybe Webpack instead of gulp and browserify (depends on the project). Why? Because I have a website template that solves many things for me, like: - I see no reason not to use SASS or the latest ES even though I know how to. Or pug, for that matter... which I like. I also have a SASS template with som…

> All the extra baggage is just part of the development environment. If you want to skip my tools, they're quite easy to bypass and replace for any other transpiler... or you can just ignore my sources, reindent my compiled files and work on them directly.

This might be technically true, but is not true in any meaningful sense if another developer ever has to work with your code. They will have to deal with all your baggage, and their job will be much harder because of it.

Re: Show HN: Print a WiFi Login Card

#183

Asking as a person who understands the fundamentals of all of the technologies involved but is horrified by much of what goes on in the minds of today's web developers and designers, what motivates the decision to make this repo use make, docker, yarn, npx, nginx, react, and jest rather than a bit of static HTML and css and something like qrjs2.js or VanillaQR.js with a simple canvas or datauri update in onInput?

The same reason I take a massive V8 engine attached to a massive truck bed one mile over to my friend’s place to watch England lose at the Euros. Turns out that sometimes, even when tool X isn’t the best at the job, it’s way better for me to use what’s at hand. This is what a lot of people have trouble understanding: sometimes the best tool for the job is the tool you’re best in. Evidence? No one has made this static…

No, that’s not the best tool for the job, that’s just the most convenient tool for the job.

Re: Show HN: Print a WiFi Login Card

#184
post #116

I do wish there was an option to safely disable all connectivity in a browser tab (forever) like with Javascript or camera access. Yes, saving the page, disconnecting your network connection, then deleting the page would work, but it's a real bother.

DevTools -> network -> Change the throttling to "offline"

Does it stay offline if you have a service worker?

Re: Show HN: Print a WiFi Login Card

#185

I do wish there was an option to safely disable all connectivity in a browser tab (forever) like with Javascript or camera access. Yes, saving the page, disconnecting your network connection, then deleting the page would work, but it's a real bother.

Same for apps.

And it's crazy you can't disable phone service on iPhone.

Also, if you worried about someone accessing your network then you probably need to isolate your devices from seeing each other.

TBH other than pwning my router or misusing my IP address in some way I don't see much problem having my devices on public net. All of them run firewall and are up to date. Most traffic is HTTPS and I'm not sure if you can MITM with just Wifi password lol.

Re: Show HN: Print a WiFi Login Card

#186
post #153

My iPhone has a pre-defined "Make QR Code" "Starter Shortcut" that you can invoke by typing "Make QR Code" in Home screen search. It basically generates a QR code of the same WIFI:S:$SSID;P:$PASSWORD;; format as wificard.io. https://en.wikipedia.org/wiki/QR_code#Joining_a_Wi%E2%80%91F...

My Pixel 4a can also generate a QR by opening a particular network in the settings app and pressing «share».

Re: Show HN: Print a WiFi Login Card

#187
I can also recommend drawing it instead of printing if you hate printers with the same passion as me. Record to beat for drawing a working QR code is 3 tries and I think about three hours (for an SSID of 13 bytes (5 unicode characters) and 19-character password). I did it mostly out of curiosity how hard it would actually be (spoiler: medium difficulty).

Re: Show HN: Print a WiFi Login Card

#188

Asking as a person who understands the fundamentals of all of the technologies involved but is horrified by much of what goes on in the minds of today's web developers and designers, what motivates the decision to make this repo use make, docker, yarn, npx, nginx, react, and jest rather than a bit of static HTML and css and something like qrjs2.js or VanillaQR.js with a simple canvas or datauri update in onInput?

The same reason I take a massive V8 engine attached to a massive truck bed one mile over to my friend’s place to watch England lose at the Euros. Turns out that sometimes, even when tool X isn’t the best at the job, it’s way better for me to use what’s at hand. This is what a lot of people have trouble understanding: sometimes the best tool for the job is the tool you’re best in. Evidence? No one has made this static…

> No one has made this static website you’re talking about. It doesn’t exist. This one does. The imperfect app that exists beats the perfect app that is vapor.

Another poster whipped one together since this was posted, because it's so trivial to do with vanilla tech:

https://news.ycombinator.com/item?id=27804490

I also don't think anyone has a problem with someone who says: "I dunno, this was just the way I learned and I don't know the underlying tech."

But that's usually not what happens. Instead, there are endless rationalizations for why the obvious over-engineering is not only okay, but preferable.

Post reply on HN