Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic
1 | ... | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | ... | 104

neb

neb
11294 posts

Uber Geek

Trusted
Lifetime subscriber

  #2527071 22-Jul-2020 13:05
Send private message

MurrayM: I believe they contain a JSON structure of a few hundred characters) they need to be displayed optimally in order for the scan to work.

 

 

And therein lies the problem. They could probably get away with a v10 code (all they need is a store ID/business ID), which would be the easiest/most reliable to scan, but instead they go for the innately difficult-to-scan option.

 

 

The MoH app and its deployment is starting to look like a design example of how not to do something like this. Almost everything you can get wrong, they've got wrong. I can understand a few problems here and there, but not this end-to-end fail.



Oblivian
7300 posts

Uber Geek

ID Verified

  #2527085 22-Jul-2020 13:24
Send private message

neb:And therein lies the problem. They could probably get away with a v10 code (all they need is a store ID/business ID), which would be the easiest/most reliable to scan, but instead they go for the innately difficult-to-scan option.

 

It's not toooo long a string. But it is why I'm strong for encouragement to use a standard barcode scanner and double check. Cause it looks more and more by the time it takes me to scan the A4 (if it even does.. looking at you 'Z') vs the A3 - the shops are perhaps scaling down and hiding A4s because Head office has told them to do one, rather than make it super obvious and easy for the camera to decode.

 

https://www.geekzone.co.nz/forums.asp?forumid=161&topicid=270639&page_no=15#2492574


MurrayM
2456 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #2527086 22-Jul-2020 13:29
Send private message

ezbee:

 

Would the scanning problems be they are trying to pack too much data into the poster ?
Developers have all the best kit and never accounted for poorer cases , to have a robust solution.
How much data would you really need for unique id f?  
Lower data density also allows more room for error correction and coarser codes easier to read under challenging circumstances.

 

 

A Munzee QR code contains a URL that uniquely identifies the Munzee. An example of a Munzee URL is: https://www.munzee.com/m/TheBitBandit/4158/927MOC/ 

 

The URL contains my Munzee username (TheBitBandit), a Munzee number that is unique to my username (4158) and a randomly generated secret code (927MOC). This Munzee QR code looks like this:

 

 

This is all that the Munzee app needs to uniquely identify the individual munzee and verify that I've found it. As you can see Munzee QR codes look a lot simpler than the Govt QR codes.

 

I've had a read of the MOH's official QR code spec and it looks like they're using Version 13 codes. An example of what they're storing in the QR code is:

 

{
"typ":"entry",
"gln":"0000000000000",
"opn":"Kaikōura Souvenirs and Gifts",
"adr":"Level 1\n123 Main Street\nKaikōura",
"ver":"c19:1"
}

 

So they're storing a lot more than a simple unique ID, which means they've had to go for a higher QR code version number in order to fit all that data in. I'd say they were going for maximum flexibility in designing the structure, which may have sacrificed some robustness with the actual scanning.

 

In perfect conditions (poster is perfectly flat, good lighting, no damage to the code, scanning straight on and not at an angle, etc) the Govt's codes scan just fine, as evidenced by the fact that I was able to scan the ASB's poster and also the North Harbour Gymnastics Mini Gym at the Glenfield Mall (both scanned in 1-2 seconds). But as can be seen from the Glenfield Countdown example it doesn't take too much to make the code difficult to scan.




richms
28187 posts

Uber Geek

Trusted
Lifetime subscriber

  #2527431 22-Jul-2020 19:24
Send private message

Probably because the tinfoil hat idiots want it to run offline because otherwise people might get tracked. Ruined the whole idea of it to satisfy a few edge case people.




Richard rich.ms

neb

neb
11294 posts

Uber Geek

Trusted
Lifetime subscriber

  #2527510 22-Jul-2020 23:13
Send private message

MurrayM:

I've had a read of the MOH's official QR code spec and it looks like they're using Version 13 codes.

 

 

And that's the problem, the tail is wagging the dog in that design. Instead of saying "we'll aim for the most reliable, easy-to-scan code there is and adapt the data accordingly", they've said "we'll stuff a bunch of redundant JSON in there and have to use a hard-to-scan-reliably code to handle it all".

 

 

If you don't mind an online lookup, you need (say) 32 bits to map a unique business ID to its name and address, what's currently in the JSON. If you want to encode the entire address in the code itself you can use dictionary compression and variable-length coding and get it into maybe 80 bits. You couldn't get every obscure address, but for the 0.1% that can't be encoded in 80 bits you could use the harder-to-scan more complex QR codes. So go for minimum complexity, maximum error correction, and you've got the best chance of everything being able to scan the code.

MurrayM
2456 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #2527565 23-Jul-2020 08:33
Send private message

neb:
MurrayM:

 

I've had a read of the MOH's official QR code spec and it looks like they're using Version 13 codes.

 

 

And that's the problem, the tail is wagging the dog in that design. Instead of saying "we'll aim for the most reliable, easy-to-scan code there is and adapt the data accordingly", they've said "we'll stuff a bunch of redundant JSON in there and have to use a hard-to-scan-reliably code to handle it all". If you don't mind an online lookup, you need (say) 32 bits to map a unique business ID to its name and address, what's currently in the JSON. If you want to encode the entire address in the code itself you can use dictionary compression and variable-length coding and get it into maybe 80 bits. You couldn't get every obscure address, but for the 0.1% that can't be encoded in 80 bits you could use the harder-to-scan more complex QR codes. So go for minimum complexity, maximum error correction, and you've got the best chance of everything being able to scan the code.

 

Indeed, a smallish unique ID would have been much better from the point of it resulting in a much simpler QR code that would have a higher chance of being able to be scanned successfully in non-optimal conditions. They would have needed to have a central database to match each unique ID with it's actual location and to update that database as each QR code is generated for the posters. I don't know if they have a DB like that for the current system, maybe they were trying to avoid that by stuffing as much info into the QR code's JSON structure as possible?


neb

neb
11294 posts

Uber Geek

Trusted
Lifetime subscriber

  #2527812 23-Jul-2020 14:29
Send private message

MurrayM:

maybe they were trying to avoid that by stuffing as much info into the QR code's JSON structure as possible?

 

 

I doubt they even thought about it, if they were worried about space they (a) wouldn't have used JSON and (b) wouldn't have added a pile of completely useless fields that do nothing that bloat up the data size. Even if they don't want to do a central DB, and given that everyone who applies for a QR code gets recorded it's not like they don't have the info anyway, you could encode the vast majority of NZ addresses into about 80 bits from a back-of-the-envelope calculation.

 

 

The whole thing looks like a project carried out without any stakeholder involvement at all. The fact that the peanut gallery here has already come up with dozens(?) of no-brainer improvements indicates just how poorly thought-out it was.

 
 
 

Move to New Zealand's best fibre broadband service (affiliate link). Free setup code: R587125ERQ6VE. Note that to use Quic Broadband you must be comfortable with configuring your own router.
Yabanize
2350 posts

Uber Geek


  #2527826 23-Jul-2020 15:24
Send private message

I wish they would just hurry up and enable bluetooth tracing using the official bluetooth covid API's in Android and iOS! Can't be bothered scanning codes everywhere.


Technofreak
6530 posts

Uber Geek

Trusted

  #2527967 23-Jul-2020 21:45
Send private message

Yabanize:

 

I wish they would just hurry up and enable bluetooth tracing using the official bluetooth covid API's in Android and iOS! Can't be bothered scanning codes everywhere.

 

 

How does the Bluetooth option work? Is dependant on phone settings? If so  I'd suggest that's will be ass useful as the current app.

 

Actually from what I understand of the current app if it it is ever implemented properly and promoted well it is the best solution.





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


Oblivian
7300 posts

Uber Geek

ID Verified

  #2527973 23-Jul-2020 21:50
Send private message

Technofreak:

 

How does the Bluetooth option work? Is dependant on phone settings? If so  I'd suggest that's will be ass useful as the current app.

 

Actually from what I understand of the current app if it it is ever implemented properly and promoted well it is the best solution.

 

 

 

https://www.google.com/covid19/exposurenotifications/ 

 

MoH could chose to re-launch another which hooks the API. Or integrate. Needs min Android 6

 

Random ID, looks for pairs. But of course everyone will still be convinced it's tracking them (more than the social media they just checked in on or got near a known WiFi point...)


Technofreak
6530 posts

Uber Geek

Trusted

  #2527980 23-Jul-2020 22:35
Send private message

Looks like it's probably dependant on phone settings. Also Android 6 or later might be a bit limiting.





Sony Xperia XA2 running Sailfish OS. https://sailfishos.org The true independent open source mobile OS 
Samsung Galaxy Tab S6
Dell Inspiron 14z i5


freitasm

BDFL - Memuneh
79294 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2528003 24-Jul-2020 07:45
Send private message

Remember that any app that needs to be running in the background will utterly fail on Android - different OEMs make their own rules for "battery saving".





Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 


Oblivian
7300 posts

Uber Geek

ID Verified

  #2528014 24-Jul-2020 08:38
Send private message

And that was one of the PM's talking points at one stage.

 

If the user want's it, they wan't it automatically

 

BUT they don't want to be 'tracked'

 

If a user experience or device is impacted as a result - they'll stop or uninstall it or find a way that defeats the purpose

 

BUT they don't want to manually have to do anything

 

 

 

It's like a scene out of Matrix. Me me ME ME ME!

 

Rather than I and everyone, I and everyone, I and everyone


MurrayM
2456 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #2528024 24-Jul-2020 09:27
Send private message

freitasm:

 

Remember that any app that needs to be running in the background will utterly fail on Android - different OEMs make their own rules for "battery saving".

 

 

This is so true. I had to get a new phone recently and opted for an Oppo A5 2020. For the first few days I was wondering why I seemed to be not receiving some notifications, or I was getting them but they were delayed (text messages, Gmail notifications, IFTTT, etc). After some digging I found people reporting that Oppo used very aggressive power management to make their batteries last longer (I'm not sure if this is on all Oppo models or if I was just unfortunate enough to get it on mine). After I turned off "Smart Restriction of Background Running" for a bunch of apps I found that things mostly now work as I expect. I've never had this problem on other Android phones I've owned and I certainly wouldn't expect the average user to know about this or spend any time investigating it; they'd probably just blame the contact tracing app as not working.

 

Also, it seems that tracking via bluetooth wouldn't help you in the situation where an infected person visits a cafe and sneezes all over a table and then leaves, and I come along 5 minutes later and sit at the same table and pick the virus up from the table surface. Since I was never in the same space as the infected person at the same time our phones wouldn't have exchanged anything.


freitasm

BDFL - Memuneh
79294 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #2528027 24-Jul-2020 09:42
Send private message

You haven't experienced the Huawei aggressive power management... This is the only way Android can have any battery life.




Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 


1 | ... | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | ... | 104
Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.