Earlier quoted context omitted.
It's also not like you'd have to have a separate server/vserver for every such project, a very affordable vserver will run quite a lot of nginx containers. Plus I guess some people will have a vserver or something like that anyway (I have a small one to get around NAT at the ISP level), in which case it might be net-zero.
>get around NAT at the ISP level genuinely interested in the benefits of this. care to share?
Show HN: Print a WiFi Login Card
231–240 of 347 posts
Re: Show HN: Print a WiFi Login Card
#232 WIFI:T:WPA;S:${ssid};P:${password};;
[0] https://github.com/bndw/wifi-card/blob/master/src/components...Re: Show HN: Print a WiFi Login Card
#233Earlier quoted context omitted.
The command-line app is effectively eternal as long as it's mirrored and the runtime interface doesn't change. Can we count on this link to still be there when we need it? Do you know how long most "Show HN" links still work after a year or two?
You can just fork/clone/whatever it, it's right there.
Re: Show HN: Print a WiFi Login Card
#234qrencode -t utf8 'WIFI:T:WPA;S:network;P:password;;'
read -rp "SSID: " ssid
read -rsp "Password: " pass
echo -e "\n"
qrencode -t utf8 "WIFI:T:WPA;S:$ssid;P:$pass;;"
echo "SSID: $ssid"
Even better, generate a PDF with emojis and all! #!/usr/bin/env bash
out="${1:-wifi-card.pdf}"
read -rp "SSID: " ssid
read -rsp "Password: " pass
echo -e "\nGenerating PDF..."
{
cat
SSID: $ssid
Password: $pass
Point your phone's camera at the QR Code to connect automatically.
EOF
} | pandoc --pdf-engine=xelatex -f html -t pdf -o "$out"
echo "$out"
I used those GitHub URLs for the emojis because pandoc was being weird about the unicode versions.Re: Show HN: Print a WiFi Login Card
#235Earlier quoted context omitted.
I can't speak for the poster, but sometimes the fun is in using tools you know. I don't know VanillaJS that well, so I took a stab at the same concept: https://q726kbxun.github.io/qrcodes/ Not nearly as pretty, since I know even less about making pages pretty, but still, a fun little stab at making such a site.
Would be nice if the code was in an image I could save.
Re: Show HN: Print a WiFi Login Card
#236Re: Show HN: Print a WiFi Login Card
#237Earlier quoted context omitted.
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
#238qrencode -t utf8 'WIFI:T:WPA;S:network;P:password;;'
Write-Host "?"Re: Show HN: Print a WiFi Login Card
#239Earlier quoted context omitted.
> 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…
If "you have to make it easy for third parties to fork your website" were a requirement in a particular project, I would still use the exact same stack but output non-minified pretty-printed code to some subdirectory that will get commited to the repository... so they don't even have to run "npm install && npm build" if they don't want to or don't know what npm is (although the README in my template provides these in…
That's not the requirement I'm talking about. It's "multiple developers you don't know, of varying experience levels, will work on this project over the course of years".
They're going to clone the repository and have to make changes. Ignoring your stack is not an option. They have to figure it out, or throw it away and rebuild something else.
They'll be the ones paying the time cost of all the advantages you get by doing something complex but easy for you.
You may say this doesn't apply in your situation, and maybe right now it doesn't, but it almost always happens in any successful project eventually.
Re: Show HN: Print a WiFi Login Card
#240My 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...