Postzegelcode
en.wikipedia.org
en.wikipedia.org
I love the simplicity.
I used to have a sheet of stamps lying around. Often only one was used. Then those would "expire" after years, in the sense that (yearly?) tariff-increasments would invalidate the "now too cheap" ones. I then had to buy additional special ones to compensate for the price.
Digital is the way forward and this is a perfect example of simple digital to analog. It works fantastic.
Are we talking about US? If so, it might be your office. The one near me tries to sell me all kinds when I actually go in to do stuff. USPS still sells varying rate stamps ranging 1 cent additional postage to $30 priority mail express stamps.
Of course you don't need a stamp, you can purchase postage online.
1. https://www.postnl.nl/klantenservice/tarieven-postzegels/gel...
Still have five rolls, which is:
>enough stamps to last until I die ;)
BUT the hand-written OP stamps are a great idea!
This does lead me to wonder what happens when something gets held up and it's an older code (sir) but it checks out.
(2012, 2016, 2019 and 2022 saw price increases for German post for example…)
I seem to remember Deutsche Post also had a thing you could just write on the letter, or maybe it was DHL's parcel service instead. Those were purchased simply online like any other product/service and, after paying, it told you what to write in the corner. Or maybe I misremember and they only have this system where you can take the pdf to a parcel shop and have them print your label.
Edit: found the "print in store" option, it's not for letters but for parcels https://www.dhl.de/de/privatkunden/pakete-versenden/angebot-... "Don't have a printer? Let your stamp be printed at [places]."
"Handyporto" replaced this and that's probably also why you can't buy it on the website. Deutsche Post probably can't conceive of people who don't own a printer so they heavily advertise "Internetmarke" which requires one.
https://www.giga.de/tipp/briefmarke-per-sms-an-22122-erhalte...
"Design a service with two endpoints, one to create a postzegelcode and another to redeem it. A postzegelcode is a nine character, case insensitive alphanumeric code conventionally displayed in all upper case in a 3x3 grid. Postzegelcodes are valid for 5 days after issue and can only be redeemed once. Authentication and payment are out of scope."
Exercise for the reader: avoid re-reading the PRNG state file on retries.
How about instead we just generate a uuid4, insert it into a sqlite file or Postgres database, and then the postzegelcode value is threefry(SECRET,uuid)?
I don't quite understand why programmers love minimalism more than reusing widely trusted and very easy solutions that are known to perform well.
It's a more standard setup, and enables better logging and later changes.
I think a Redis instance would be better. Assuming each mail intake device has a unique ID, and ID 0 is intended for un-redeemed postzegelcodes, you could have newly created postzegelcodes SETNX a key with value 0 and a TTL of 5 days, then when mail is being scanned, WATCH the key in a multi transaction, and if the value is 0, SET it to the ID of the intake device, while removing the TTL. The mail can then be rejected at intake if the transaction failed. Upon mail delivery then, you clear the key, which frees it for later re-use.
PS: Are those tiny, cheap, desktop laser engravers powerful enough to "print" on paper without starting a fire?
Yes, you can modulate their power. It usually takes a few experiments if the manual doesn't have a material table.
Maybe Ephemeral Stamps? Momentary Stamps? Whatever Stamps?
Given how remote the probability of this happening is, simply ignoring it and delivering both pieces probably isn’t unreasonable. Or flag it for further investigation and maybe bill the sender or recipient for an additional piece of mail.
Germany's new stamps aren't stamped any more - a QR code gets scanned and logged instead - so people thought they were lucky when they received unstamped letters and decided to re-use the stamp. They got hit with a fine.
[1]: https://amp.cnn.com/cnn/2024/01/13/business/uk-post-office-f...
Given that this is the Netherlands, that sounds like "they won't pay for it".
2. Install a system of mirrors to peek at the letters being inserted into the box
3. Reuse one code for a 50% chance of saving 1 euro and delivering your mail for free.
4. Send each letter 7 times, each with a different duplicate code, for a 99% chance of at least one free delivery.
Not worth the effort and I’m sure this would be tracked and stopped immediately. But it’s cool that in theory this seems possible.
when the postal system checks that PZC on the mail, if there is nothing written by the PZC then it's assumed to be fresh, and the 3 extra digits are looked up via a postal-service-only gateway, then placed on the mail by the PZC for future lookups, possibly along with a date.
If the PZC has the extra digits, then it can be looked up and confirmed as redeemed with those extra digits, and possibly the stamped date.
The extra digits could be stamped or handwritten, possibly with the postmark date used as the redemption date manually entered from the mail as it passes through the sorting system the first time, OR stamped from the date it's registered as redemption, either would work.
Such a system would relatively guarantee that fraud would be difficult, since only one person could have a PZC without the check digits go into the system, and sharing would be useless.
That is cute. But what about 'G' and '6', 'B' and '8' and the myriad of things that can go SNAFU when handwriting is involved?
Heck, even on the official picture here:
https://www.postnl.nl/versturen/postzegels/postzegels-kopen/...
The handwriting '1' looks like a 'L'.
Does the system allow for one mistake? Does it automatically try to replace '1' with 'L' and see if it matches a valid code?
I wonder the actual failure rate is. If you decided to not use '0' to avoid confusion, you've accepted that there shall be confusion. And confusion doesn't just happen with '0' and 'O'.
P.S: as a sidenote I know for a fact that at least 30 years ago there were post offices in some EU countries already doing OCR on handwriting, but the ones I've seen were doing it on digits-only, that had to be written on envelopes with pre-printed empty rectangles. It was done for the cities' postcode, to sort the mail automatically.
This is not true of G and 6 or B and 8. If these are well-formed, they are completely distinct.
People who paid for their post code are motivated to write the code clearly, for fear of nondelivery; but no amount of motivation will fix 0 versus O.
> The handwriting '1' looks like a 'L'.
It certainly does not. Rather, the lower case l is easily confused for the digit 1. This postzegelcode doesn't use lower case.
I don't see it mentioned that I is avoided because of 1. The likely reason is that Europeans don't write 1 just as a stick. It starts with an angled upstroke. That upstroke makes it possible to confuse the European 1 with an American 7; but the European 7 has a horizontal stroke across its stem which thwarts that problem. (I addition, a cursive 7's upper horizontal stroke is actually wavy, like a tilde.) Confusion of I, 1 and 7 in European handwriting is next to nil.
I'm European, and that's how I write it, but if you look at the link, that's not how they write 1's in the promotional material - Those 1's follow pretty much the stroke I would do for an L, only the foot is shorter and slightly more pointed upward.
If not, then the system relies on people being able to write 9 consecutive legible characters. With postal codes and addresses it’s less fragile because the context helps disambiguate (a last name helps a postman tell if a street address has a 7 or 1)
If a human cannot find a match then the sender will receive a request to pay for the missing postage (presuming the code is invalid). If the sender is unknown the recipient will receive a payment request (which can be appealed).
Speaking from experience you would normally want the letter to arrive at its destination so I take care to write the code very clearly. I imagine this is true for most people.
https://www.nytimes.com/2013/05/04/us/where-mail-with-illegi...
A bit more realistically, the address could be printed on a sticker by the sorting machine, the way address redirections are handled.
Fun fact: PostNL already does this with 100% of the mail processed. The first step in the sorting process is to OCR the address, generate a "KIX" barcode[0], and print that on the letter using special ink if not already present. It's not intended to be user-readable, but anyone with a smartphone can trivially decode the unique destination address from it.
A code that's past the validity date is probably considered an invalid code as well.
Also, cool design of the label is one thing, but on both laser and thermal printers the resolution repeatability is much better in the direction perpendicular to the paper travel, so you do not want to do cute design things with vertical barcodes. And you want to have a huge margin below the barcode if it is aligned to the bottom of the label as some printers will occasionally get misaligned and part of the barcode will get on the next label… and the imaging scanners in Zebra terminals will happily read half a milimetre high code-128 barcode instead of the correct one on the bottom of the label.
If you think these are different considerations, then you are splitting the wrong hairs. The processes landed on to resolve the conflict are not surprising, but also doesn’t sound like they addressed the underlying architectural conceit.
Which is to say, Kevin Costner did make a movie about it. Just not a good one.
In practice though you can simulate/stimulate most of the failure mode conditions of central control dependencies by parking a delivery truck underground, or addressing something to a farm.
> The most important reason for the introduction of the Zegelcode is that about 20% of our customers indicates they don't have a stamp on hand when they want to send something.
[1]: https://www.internetkassa.nu/postnl-verwacht-digitaal-franke...
https://www.rte.ie/news/business/2022/1012/1328565-digital-s...
Seems like a great idea, I seldom post anything, but when I do it's a pain to have to go buy stamps.
It's a bit stingy though that they are charging so much more for a digital stamp.