News for hackers. Stuff that matters.
Re:Why Japan’s Rail Workers Point at Things by cperciva on Saturday April 01, 2017 @02:11PM (#14013310)
For example, sometimes I would take a medicament mechanically while doing something else and just a few minutes later, forget if I took it or not. Solution: say loud to myself "I'm taking a pill".

My solution for this problem: I have a cron job which sends me an email every morning. If I see that email, I

1. Take a pill out of the bottle and put it on my laptop keyboard

2. Delete the email

3. Eat the pill.

This sequence ensures that even if I crash and lose ephemeral state (err, I mean, get distracted) I can immediately recover by looking at my laptop.

Re:Why Japan’s Rail Workers Point at Things by inopinatus on Saturday April 01, 2017 @09:22PM (#14015173)
I prepare a week of pills in a 14-slot pill case (mon-sun w/AM & PM). This results in a very simple decision: if the pills are present for the current timeslot, take them (with the sole exception of Sunday night post-refill, which is easily checked because the box is full). I also get at-a-glance evidence of any missed dose. When the case is empty on Sunday night, I refill all the slots.

Process requires careful consideration when crossing the international date line, otherwise has proved robust, and does not require a laptop.

Re:Why Japan’s Rail Workers Point at Things by cperciva on Sunday April 02, 2017 @04:03AM (#14016368)
Yeah, I've considered that. But I always have my laptop, whereas a pill case would be an additional thing to bring when I'm travelling.

Obviously for anyone who has gone for more than 24 hours without checking their email in the past 20 years, the tradeoffs might work out differently.

Re:Why Japan’s Rail Workers Point at Things by inopinatus on Sunday April 02, 2017 @04:28AM (#14016411)
It's a rare and exhilarating experience to go without that most basic form of messaging, but I was off the grid completely on a remote shore in Alaska for a week last year. I also cross national borders quite regularly and therefore have contingency plans in case some overzealous/corrupt official decides to separate me from my communication devices.

And of course one is not exempt from natural disasters, or the periodic collapse of civilisations.

Re:Why Japan’s Rail Workers Point at Things by thecrazyone on Saturday April 01, 2017 @03:45PM (#14013782)
This has a serious security flaw.

Reproducing the security flaw:

1. Create a plausible enough distraction 2. Place pill on said keyboard 3. Pharmaceutical intervention Complete!

Perhaps, this is a general flaw in the choosing of a visible, non-access restircted (presuming) place to keep the pill (also no verification if it's the correct pill).

How would you solve this problem?

1. Trivially, restrict access to this place (lock your cabin or something) or use a pill box for which you've the keys 2. Verification of pill - camera surveilance of keyboard(has its own issues lol, perhaps, if angle it such a way that you're not keylogging yourself) - weight sensitive plate on keyboard (mission impossible anyone? :D) - edible hologram on pill - SHA engraving on pill (manual verification becomes is time consuming and is not cool) - encode hash in pill weight: Have a delicate weighing balance, alter the weight of the pill by addition or removal of a neutral substance, program the balance or use an sdk for balance to auto verify this; (note SSH keys required) - Ah! laser engrave a qr code on to pill; laser engraving can be reasonable automated (presumption), verification via smartphone i.e. check the hash or qr code is a shortlink to a verifiable hash (I'm reasonable happy with this solution, moving on)

Re:Why Japan’s Rail Workers Point at Things by primitivesuave on Saturday April 01, 2017 @06:32PM (#14014537)
QR code on a pill sounds interesting, then you can scan the pill with your smartphone to find out if you've taken it yet.
Re:Why Japan’s Rail Workers Point at Things by animal531 on Monday April 03, 2017 @10:05AM (#14022817)
Future improvement: We can embed the scanner inside the tongue, so it can directly tell you if you're on or off schedule (perhaps by emitting a bitter vs sweet taste).
Re:Why Japan’s Rail Workers Point at Things by LeonM on Saturday April 01, 2017 @02:19PM (#14013346)
Unless you lose state between step 2 and 3.
Re:Why Japan’s Rail Workers Point at Things by Scaevolus on Saturday April 01, 2017 @02:41PM (#14013460)
Then you're left with a pill on your keyboard and no email, so presumably you're supposed to take it.

If you discover a pill on your keyboard and an email, you should delete the email and take the pill.

I think this ensures at-most-once pharmaceutical delivery, but I haven't investigated formal proofs of Bicameral Generals with memory loss.

Re:Why Japan’s Rail Workers Point at Things by stickfigure on Saturday April 01, 2017 @03:55PM (#14013834)
This can be addressed with a two pill commit protocol.
Re:Why Japan’s Rail Workers Point at Things by cperciva on Saturday April 01, 2017 @04:17PM (#14013938)
This is a two-phase commit protocol already. Placing the pill on my laptop constitutes logging the transaction, so that it is guaranteed to be completed even though it hasn't taken place yet.
Re:Why Japan’s Rail Workers Point at Things by Ezhik on Saturday April 01, 2017 @09:34PM (#14015231)
How can we make the pill transaction atomic?
Re:Why Japan’s Rail Workers Point at Things by finid on Saturday April 01, 2017 @03:54PM (#14013830)
What if there's a network issue that prevented the email from being sent?
Re:Why Japan’s Rail Workers Point at Things by cperciva on Saturday April 01, 2017 @04:01PM (#14013860)
Then I notice that I'm not getting any email. The cron job runs on my mail server.
Re:Why Japan’s Rail Workers Point at Things by ceejayoz on Saturday April 01, 2017 @09:25PM (#14015196)
What if it malfunctions and the email gets repeatedly delivered? :-p
Re:Why Japan’s Rail Workers Point at Things by neohaven on Sunday April 02, 2017 @09:42AM (#14017137)
ahem... A "buffer overflow" is what happens. :P