Just got a pair of nice 8x42 binoculars (Athlon Midas ED) and #protip: they make #birding so much better.
I don't know why no one thought to use these to look at birds before I came up with this wholly original idea.
Now I need to get a telephoto lens for my phone or camera, because I keep wanting to take pictures of the stuff I see in the binoculars.
protip u can take pictures thru binoculars
@shit I tried, it's a very different experience and the pictures don't come out great. 😥
Tip: On Cinnamon (and probably other Window managers and OSes), Alt + ~ is the same as Alt + Tab, but restricted to the currently active application (e.g. tab between Firefox windows).
Learned this from last year and I've probably used it every day.
@pganssle cool to see they adopted this, I believe it was a feature first on Unity as we adopted per-application switcher grouping.
Not sure about others, but on Unity we looked at the keyboard map and it is actually "the key above tab" which may not be ` for some folks.
Having a pulse oximeter is kinda fun, though it's disconcerting that the pulse number starts blinking when it falls under 60 bpm, considering my normal HR is usually something around 50 bpm.
If you wanted to write a conditional to check whether both a and b are None or neither are None, would you use comparison chaining for either condition, both conditions, or neither?
if a is b is None:
if a is not None is not b:
if a is None and b is None:
if a is not None and b is not None:
2 posts ommited. Click [See All] to see the entire thread.
@meejah Yeah, that seems a bit of premature optimization for variable literals, though. I'm pretty sure it will always be faster and more compact to use chaining on the "is" case even if the number of elements grows:
if a is b is c is d:
This doesn't need to construct a tuple, a generator, or invoke a function.
For the `is not` case you need N - 1 "None"s to compare N variables, so:
if a is not None is not b is not None is not c:
So there's a stronger case for `all(x is not None for x in (a, b, c, d))`.
@pganssle Yeah .. I guess I should remember that a lot of these "style" type questions don't have a right answer ;)
Sometimes I find it makes things more-clear to assign to a variable too, like:
required = (a, b, c, d)
if any(x is None for x in required):
@pganssle if a==b and None in [a, b]
Been using an exercise ball for a chair for the past 3-4 business days and I can't tell if my back is sore because it's being exercised or because I have terrible posture.
Quite possibly both.
1 posts ommited. Click [See All] to see the entire thread.
@pganssle do be sure to check your ball is big/high enough. Usually theyre a bit too small to be used with regular tables.
@whirli I got a big one (appropriate according to the size chart). It certainly feels as tall or taller than my chair, and my sitting position feels closer to the right height for this desk I have.
@brainwane I'm sure it'll be fine. A little back stiffness isn't going to do me in. 🙂
My brother apparently has a kidney stone, so of course I had to send him this: http://www.thomas-morris.uk/the-self-inflicted-lithotomy/
I should write a bot that cross-posts my tweets from my Twitter account, but also translates them into British English first.
A futuristic version of going to a new school where no one knows you and affecting an accent.
It's weird to me that in all the reporting about how a gender reveal party kicked off the CA wildfires, no one mentions what the gender of the baby was.
they never found out because the forest caught on fire.
#python #pep615 #timezones
Generated using Ye Olde Yorker: https://yeoldeyorker.hashbase.io/
It's pretty fun to generate New Yorker cartoons.
@pganssle THIS IS AMAZING
Oops., time to stop using pep517.build!
Instead, you should start using a brand new library that doesn't have a release yet!
Sorry if you took me seriously when I recommended this tool for the past few years because there was nothing else...
Do you hate the feeling of being a useless spectator while your mate is laboring to bring your child into the world? Consider hiring "prowling sorcerers" who you can fend off with a spear!
(Note: This will likely not be covered by insurance.)
"Now, I see your birth plan involves Mike standing guard at the door with a spear because of... prowling sorcerers?"
"Yes, they can be very tricky."
Apparently the OSI approved the Unlicense as a "Special Purpose" license a few months ago, but I do not see what the special purpose is anywhere on their main site. There's some more background in this mailing list post:
I'm still not clear what the "special purpose" is that they're suggesting, though. Seems like they don't want to be seen recommending it because it's somewhat weirdly drafted and is partially a public domain dedication.
2 posts ommited. Click [See All] to see the entire thread.
yeah, 0BSD is alright.
It's the third license I recommend (alongside Unlicense and CC0).
The reason I don't use it is because the Unlicense opens with regular English that (for a lot of people) will be enough for them to get going and stop worrying.
Also, the fallback aspects of Unlicense help a bit in those legal terms, I think.
WTFPL is better. Same level of freedom, but extra classy!
having a copyright line is counter to my goals, so I cannot actually accept it.
I classify it the same as MIT.
Interesting, #GNU `date` seems to support dates with ambiguous three-letter offsets, though it's unclear how it decides to disambiguate them. Looks like "IST" defaults to "India Standard Time":
$ TZ=UTC date --iso=m --date="Thu Aug 27 12:34:56 AM IST 2020"
5 posts ommited. Click [See All] to see the entire thread.
@pschwede Yeah, what part of that determines how to map three-letter abbreviations to offsets?
@pganssle well, it refers to https://github.com/coreutils/gnulib/blob/master/lib/parse-datetime.y which again defines time_zone_table at :1097 and lookup_zone at :1284 for example. I think I made my point: there's code you can look at.
@pschwede Unclear doesn't mean the information doesn't exist or isn't accessible, it just means that it requires extra effort to figure out.
In any case, thanks for pointing me at that. I'm kinda shocked to find that it's just hard-coded, not even locale-dependent. Seems to me like if you live in China or Ireland or Israel `date` will just be silently wrong in some cases.
Oh man, I just found out that many TVs have a built-in setting (called CEC) for controlling devices and that you can control your OSMC Raspberry Pi with your TV remote by just enabling it. I could have had a single unified remote for YEARS!
Warning from though:
"On paper, it's great, but due to different implementations by AV equipment manufacturers, it can also cause a lot of problems."
I had been delaying getting back into electronics and wearables until after the boy is a bit older (he's 2.5 now), but I think for the right project he might be ready to take some pride in helping me build something already.
Very disappointed that my workbench didn't come when they said it would (Friday). My son was excited to put it together with me.
Anyone have recommendations for a TV where it's relatively easy to physically disable the wifi (and where doing so won't degrade the user experience for a normal user who doesn't care about the "smart" features)?
We need a new TV and apparently you can't just get normal TVs anymore.
@pganssle if leaving all network features unused is acceptable, then Sony’s A8H OLED doesn’t force that part of the experience. If even knowing those features are present is too distasteful, then yea you have to buy a computer monitor or “digital signage” display.
Interesting question from here: https://kenta.blogspot.com/2020/08/kpmswzpc-unlimited-bat.html
"What would baseball bats look like if rules regarding their shape, weight, and composition were lifted?"
(I find this blog mildly frustrating in that it poses many interesting questions but with little discussion.)
Word of the Day:
syr·up·ti·tious, adj. secretly adding or attempting to add syrup to something.
"to avoid judgmental looks, I'm always very syruptitious when flavoring my waffles"
Big exciting day coming up: It's almost the randomly chosen day that Google thinks is my birthday! I think I'll be 47 (so hard to keep track once you hit 40).
@pganssle :-) You mean you don't use 12/31/1969?
"Doctor, it hurts when I invoke setup.py install."
"Stop doing that then!"
(Seriously, always use pip install, never setup.py install)
A very annoying auto-antonym: westerly (or easterly, or other direction + erly words).
It means either "moving towards the west" or "coming from the west". The westerly winds take you east.
That awkward moment when you get to your desk and your co-worker has borrowed your chair, WFH edition.
Looking for a podcast to listen to while grilling (US), pining for past glory (UK), or going about your normal business (everyone else)?
This 4th of July, I'm on talking about #Python datetimes and time zones! Check it out:
New to the suburbs: How long until I stop feeling like Batman entering the bat cave every time I open the garage on approach, park, then close the garage door behind me?
@pganssle you can preserve that feeling by playing the 60s Batman theme each time.
@pganssle it gets strained the first time you find some other dog's poop left in your yard, though.
It's weird when I occasionally get an upvote on an old SO answer that reminds me that at some point in the distant past, I knew enough Java to usefully answer StackOverflow questions about it.
A bunch of people are positing that NYT wanted to take down Scott Alexander because of some culture war reasons, which is just what they want you to think! They were really more afraid that he would hit them where it hurts: https://web.archive.org/web/20200617172710/https://slatestarcodex.com/2020/06/04/problems-with-paywalls/
If New York Times black helicopters disappear me in the next week, you'll know why.
Wow, huge proposal for Python 3.10 (both in potential impact and length of the proposal 😅):
PEP 622: Structural Pattern Matching
@pganssle Stealing from Rust (and Haskell) -- I like it!
Klaxon™ was once a brand name so popular that it became the word for the type of thing the company sold.
Now they don't even have their own Wikipedia page: https://en.wikipedia.org/wiki/Vehicle_horn#Klaxon
Something something Ozymandias...
I really like the idea that King Friday XIII from Mr. Rogers' Neighborhood is the culmination of a pun 13 generations in the making.
At a conservative 20 years per generation, that's 260 years, so that pun was conceived before the founding of the USA.
It has been 0 days since I thought about the fact that the word "lord" originally meant "loaf guardian": https://en.wiktionary.org/wiki/lord#Etymology
Lady has a similar origin, it meant "loaf kneader": https://en.wiktionary.org/wiki/lady#Etymology
One of these days one of the networks producing children's television is going to finally respond to my numerous inquiries about their sub-standard world-building and then my new career writing show bibles for kids' shows will be off like a shot.
Are dogs the only non-human animals that can talk in Paw Patrol?
backports.zoneinfo only has 1300 downloads in the last week: https://pypistats.org/packages/backports-zoneinfo
Not bad, but we're going to really have to get the word out if we're going to finally replace pytz! Get out there and migrate today!
Protip: If your 2 year old just wants to do "1 hide [and seek]" before going to sleep, make sure you are the one doing the seeking, not the hiding.
Is soylent guacamole made of lawyers? #thinkaboutit