4 ms·
My, lightsail is yar. Easy to handle, quick to the helm, fast, bright, everything a ship should be.
by deepnet 11y ago
My, lightsail is yar.
Easy to handle, quick to the helm, fast, bright, everything a ship should be.
- ColinWright 11y agoI wonder how many people get that reference ... import md5 answer = '...' h=md5.new(answer) h.hexdigest() '0c9fc7b0723925183380b55e348462a9'
- quadhome 11y agoCase-sensitive? Spaces? Did you leave the "The" at the beginning?
- ColinWright 11y agoTwo words, case sensitive, no punctuation, film title, 1956. Alternative, three words, case sensitive, no punctuation, film title, 1940: 522218c9dac88e6efb7330d06fcb1211
- btown 11y agomd5 -s "first name of character who says it in either version, capitalized, no brackets" 04b97f2a35d9e016a05f844ea3b94dd4 This is fun...
- JoshTriplett 11y agoThe Philadelphia Story (1940) or High Society (1956).
- dalke 11y agoMy guess was Moby Dick, and thought I was right when I saw there was a version made that year. I was wrong: >>> import urllib, re, md5 >>> text = urllib.urlopen("http://en.wikipedia.org/wiki/1956_in_film").read() >>> pat = re.compile(r">(\w+\s\w+)</a></i>") >>> for title in pat.findall(text): ... if md5.new(title).hexdigest() == '0c9fc7b0723925183380b55e348462a9': ... print title ...
- JoshTriplett 11y agoSimpler version, without having to parse HTML with regexes: >>> import lxml.etree, urllib2, hashlib >>> for a in lxml.etree.parse(urllib2.urlopen("https://en.wikipedia.org/wiki/1956_in_film")).xpath("//a"): ... if a.text and hashlib.md5(a.text.strip().encode('utf-8')).hexdigest() == '0c9fc7b0723925183380b55e348462a9': ... print a.text ...
- dalke 11y agoDidn't have lxml installed. Or Beautiful Soup. "The best camera is the one you have with you." :)
- TheLoneWolfling 11y agoParsing HTML with a regex? That way lies ₥áδñèƨƨ.
- dalke 11y agoParsing Unicode without normalization (as JoshTriplett's solution) is another sort of mádness. (Or is that mádness?) In this case there's an oracle that tells me if I have the right answer, so there wasn't need for anything more rigorous. (Edit: looks like my LATIN SMALL LETTER A WITH ACUTE vs. my LATIN SMALL LETTER A + COMBINING ACUTE ACCENT didn't make it all the way through the system. Haven't researched to figure out where the normalization occurred.)
- ColinWright 11y agoWonderful - someone has apparently gone through and down-voted every comment in this sub-thread. We're obviously not supposed to use things like MD5 and code snippets to discuss literary references.
- zorpner 11y agoMust be the dry rot.