TIL: about the python code module

well this module is hugely useful. invoke the REPL where you need it while you’re debugging something gnarly. for some reason, i’ve never quite grokked the use of pdb. i stumbled on this gem via this article.

April 19, 2020 · sulrich

TIL: y is not Y is not year, like you'd think

unicode date format patterns are a little more nuanced than the “standard” strftime() supported formats. note the difference between the following: man strftime (linux) %y The year as a decimal number without a century (range 00 to 99). (Calculated from tm_year) %Y The year as a decimal number including the century. (Calculated from tm_year) man strftime (osx) %Y is replaced by the year with century as a decimal number. %y is replaced by the year without century as a decimal number (00-99)....

December 30, 2019 · sulrich

NNT on personal finance

i’m curious as to how long this link will last. that said, pretty solid advice and reasonable take on things. far less abrasive than his twitter feed would have you think.

December 27, 2019 · sulrich

hardcoded DNS will bite you in the ass in the most subtle and annoying ways

tl;dr - make a list of all of the annoying places where you need to hardcode DNS entries. you’ll thank yourself later. i retired a DNS server this past week. couple that with the expiration of a couple of guest wifi passes and i discovered that there’s a hidden DNS setting on the APs that can make captive portal DNS resolution miserable if the DNS server is offline. on ubiquit APs the preferred DNS server in the AP is what’s used for the resolution of DNS for the hotspots....

December 25, 2019 · sulrich