This is the complete source code for a client-server web application that estimates the strength of a password the user enters, updating the estimate after every keystroke.
import qualified Graphics.UI.Threepenny as UI import Graphics.UI.Threepenny.Core import Text.Password.Strength (estimate) main = startGUI defaultConfig $ \window -> do prompt <- UI.input estimatedisplay <- UI.string "" getBody window #+ [ element prompt, element estimatedisplay ] promptIn <- stepper "" $ UI.valueChange prompt let showEstimate = show . (`estimate` ) <$> promptIn element estimatedisplay # sink value showEstimate return ()
der.hans shared this.
GNU GENERAL PUBLIC LICENSE
Version 9, 21 January 2089
SF novella starts that way, and also is Vinge fan-fiction... mmmmmm
Claes Wallin (韋嘉誠) likes this.
This reminds me of doc/unfinished/free-software-sf-essay which I see got left at an 80 line outline. Anyway, the root idea of that essay, if I ever finish it is that there's really surprisingly little SF that engages with free software concerns and ideas.
The only books I know of that do so at all are by Vinge, Stephenson, Doctorow, and Egan.
Rhubarb, mint and maple syrup crepes.
(Followed by tomato, parm, and herb crepe.)
Second time I've made crepes. And I've reached peak cast iron -- I have a dedicated cast iron crepe pan.Bought a cast iron pan that looked good to me. http://northernway.blogspot.com/2016/05/skillet-part-two.html It's been a year and I still have not fired it up. Maybe I should promise myself this coming weekend.
Peak cast iron.
Mostly no-name except the Le Creuset dutch oven and Griswald "189" crepe pan. The square pan was a gift and I've not found a use for it. Rest is good old cast iron.
Also have a dutch oven (which I use for actual in-the-coals baking, so it's not pretty) with a broken lid. Used to use that lid on the medium skillet, and the only thing I need now is some skillet lids.
Felt kinda hot while out biking. Turns out it's 98 degrees C!Show all 5 replies
Exede sattelite internet filters nothing at all.. except for gpg sks keyserver traffic. WTF???
Does sending a message to a websocket really use 250 bytes of bandwidth for websocket stuff? Seems to in my tests..
Annoying ... I've relentlessly whittled my protocol down to 75 byte packets from 170+ using some fairly serious hackery. And now all this additional overhead!
Christopher Allan Webber likes this.Show all 5 replies
Really annoying thing is, I'm only using http because of port blocking. We can tunnel anything over http websockets, which makes port blocking irrelevant, at a cost of many extra bytes. And of course that reduces pressure for ISPs to not block ports. Progress.
"Nonflood flooding is occurring and minor flooding is forecast" -- NWS bulletin
pondering chorded keyboards
Thought of a way to squeeze both a 64 byte previous message hash and a 64 byte signature into a message, using only 64 bytes.
Just leave out the previous message hash from the serialized message, but include it in the data that's signed. When verifying the signature, try recently seen messages's hashes as the previous message until finding the one that makes the signature verify. (Conveniently, Ed25519 verifies very fast and can do batch verifications.)