New blog, not much to see.
Will be adding things, and eventually move some old things from https://ysth.livejournal.com.
Will be adding things, and eventually move some old things from https://ysth.livejournal.com.
Software engineering often involves listening to statements of problems, deriving one or more underlying actual problems, and coming up with solutions that address (partially or completely) those problems (and ideally have other advantages or advance other goals as well).[1] But sometimes the starting point you get is a specification
Task 2: Nice Strings: You are given a string made up of lower and upper case English letters only. Write a script to return the longest substring of the give string which is nice. A string is nice if, for every letter of the alphabet that the string contains, it
Task 1: Counter Integers: You are given a string containing only lower case English letters and digits. Write a script to replace every non-digit character with a space and then return all the distinct integers left. The first part is easy. In Python:[1] new_string = string.translate({ c:'
I switched to a wildcard cert, and while getting the ACME DNS challenge working[1] I saw Let's Encrypt is removing support for OCSP (in favor of CRL URLs and the coming increasing shortening of cert validity). So I removed my OCSP Stapling and switched the certs, and