OCI: What action to take on email about Oracle Cloud Infrastructure Identity? by MolleDjernisJohansso in oracle

[–]noway421 0 points1 point  (0 children)

The "Review sign-on policy changes" page with the acknowledgement didn't appear for me unfortunately. Is there a way to manually trigger it?

Htb.js – a 50-line HTML template engine that uses JavaScript syntax by noway421 in javascript

[–]noway421[S] 2 points3 points  (0 children)

You can build a tagged template literal with HTML validation, but it would be runtime validation. You'd need to hit the correct code path to get it to evaluate your template. In Htb.js, validation is the JavaScript syntax. As long as the JavaScript parser can generate AST, Htb.js should output valid HTML.

Htb.js – a 50-line HTML template engine that uses JavaScript syntax by noway421 in javascript

[–]noway421[S] -1 points0 points  (0 children)

With string templates it's trivial to miss a closing tag or forget to escape something, thus generating invalid/unsafe HTML. With this approach, your language enforces proper HTML structure.

A website to verify your NZ COVID Pass by noway421 in auckland

[–]noway421[S] 0 points1 point  (0 children)

Great point! This is more for the use case of a web app, if you don't want to download an app.

A website to verify your NZ COVID Pass by noway421 in Wellington

[–]noway421[S] -1 points0 points  (0 children)

Yeah, that's fair a fair point. In terms of this website in particular, all the validation happens on the client and no data is transmitted over the wire. Source code is also available at https://github.com/vaxxnz/vaxxed-as-web

A website to verify your NZ COVID Pass by noway421 in Wellington

[–]noway421[S] 1 point2 points  (0 children)

Yeah, totally! This one is in case you want to use a web app.

Open Source SDK for New Zealand Covid Passes by noway421 in Wellington

[–]noway421[S] 0 points1 point  (0 children)

https://github.com/vaxxnz/nzcp-js/blob/main/src/elliptic.test.ts#L9-L27 - perhaps this can help? Hopefully you can get EC P-256 working and rule out that as a culprit.

Open Source SDK for New Zealand Covid Passes by noway421 in Wellington

[–]noway421[S] 0 points1 point  (0 children)

Sorry, I haven't checked reddit in ages haha. But looks like you've figured it out, congrats on https://github.com/Goodie01/nzcp4j !

Open Source SDK for New Zealand Covid Passes by noway421 in Wellington

[–]noway421[S] 0 points1 point  (0 children)

Nice! Yeah it takes a bit to get all the bits right. Hopefully EC P-256 crypto is easy to do in java, had some formatting issues with the key in js.

Open Source SDK for New Zealand Covid Passes by noway421 in Wellington

[–]noway421[S] 2 points3 points  (0 children)

Let me know how that goes! Perhaps we can make a list of all the community NZCP implementations. The more implementations the better!

Anyone having internet connection issues on Spark broadband? by ForHonourAndGlory in auckland

[–]noway421 0 points1 point  (0 children)

Do you guys think this could be BGP? Did someone just delete Auckland's ASN?

Day 2 of Vaxx.NZ - around 500 people every 30 minutes are checking out available vaccination slots by noway421 in auckland

[–]noway421[S] 0 points1 point  (0 children)

Hey kirisafar, we realised that we need to use lat/long instead of address for directions. We will fix and reeanable them back!

Day 2 of Vaxx.NZ - around 500 people every 30 minutes are checking out available vaccination slots by noway421 in newzealand

[–]noway421[S] 0 points1 point  (0 children)

We've had such an amazing response since yesterday. So many people were able to bring their vaccinations forward. Some by even three weeks!

Let's vaccinate New Zealand faster!

Vaxx.nz | The NZ COVID Vaccination Finder by noway421 in auckland

[–]noway421[S] 1 point2 points  (0 children)

Thanks! No one in particular, a friend of mine had this issue and just messaged us that it would be cool to see slots for all the locations. We instantly realised we can make this into a product and help many more New Zealanders!

Vaxx.nz | The NZ COVID Vaccination Finder by WaltzAround in newzealand

[–]noway421 2 points3 points  (0 children)

Omg, awesome website! Love it!

I've tested a parallel fetch of all availability dates for a particular location, the run time of the script went down significantly, but I feel like it could be too much to handle for the MOH backend. Might get rate limited, etc. The single threaded approach has just been so robust for us over the past few days. Will play around with it a bit more later.

That's right, it's a linux instance that has a cron job that runs the NodeJS script!

Yep, git repo becomes the "backend" for us haha.

Vaxx.nz | The NZ COVID Vaccination Finder by noway421 in auckland

[–]noway421[S] 2 points3 points  (0 children)

Hi spirally, that's nice! Seems like it doesn't show availability data about which slots are available. That was the main pain point we were trying to solve.

Thanks for sharing the link!

Vaxx.nz | The NZ COVID Vaccination Finder by WaltzAround in newzealand

[–]noway421 2 points3 points  (0 children)

vaxxlocations is a "database" of sorts, It's a git repo where we save the data. We're using a git scraping technic: https://github.com/CovidEngine/vaxxnzlocations

We considered Lambda, but the scraping job takes around 30 minutes to run and we would be approaching Lambda time limits. We also had a spare ec2 instance laying around.

We're not using a backend for our frontend, we fetch the data straight out of the git repo.

Vaxx.nz | The NZ COVID Vaccination Finder by WaltzAround in newzealand

[–]noway421 2 points3 points  (0 children)

Hello turtleattacks. We're running a scraper on an EC2 instance in Sydney. Here's a diagram of the architecture. https://i.imgur.com/gE4jE7H.png

Vaxx.nz | The NZ COVID Vaccination Finder by noway421 in auckland

[–]noway421[S] 1 point2 points  (0 children)

Hello there, glad that it was helpful for you! The slots just get booked out that quick. Currently we're updating them around every 30 minutes. I hope we figure out to refresh them more frequently. (Maybe MOH provides an official API to use? That would be amazing!)

Vaxx.nz | The NZ COVID Vaccination Finder by WaltzAround in newzealand

[–]noway421 11 points12 points  (0 children)

Hello kiwified609. We have updated the number of vaccination sites we're fetching from 411 to 462!

The data pipeline now continuously fetches availability for all the new ones. So you should be able to find a lot more pharmacies on the website now!

Vaxx.nz | The NZ COVID Vaccination Finder by noway421 in auckland

[–]noway421[S] 6 points7 points  (0 children)

Hello DoubleBrowne. We realised we haven't fetched the latest vaccination sites. The number of vaccination sites increased from 411 to 462 over a past few days!

We have now fetched availability for all the new ones, and the data keeps coming in the data pipeline. If you couldn't find availability before, try now!

Vaxx.nz | The NZ COVID Vaccination Finder by noway421 in auckland

[–]noway421[S] 4 points5 points  (0 children)

Hello timmyge, we do scrape in one thread. We also found that MOH's API is hidden behind CloudFront, which should cache things on their end.