@tmr232@mastodon.social avatar

tmr232

@tmr232@mastodon.social

Bio's are hard.

| ex-JFrog
| ex-Magic Leap
| He/Him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

tmr232, to random
@tmr232@mastodon.social avatar

I'm still baffled by the many ways Windows11 broke window management...

ambv, to python
@ambv@mastodon.social avatar

The core․py podcast wasn't dead, it was just sleeping! Pablo Galindo and I return to talk about the upcoming new REPL in #Python 3.13 ♒️

Join us for our signature professional takes just in time for Python 3.13 beta 1 and #PyConUS 🛜

#pypy #synthwave #chrząszcz

https://podcasters.spotify.com/pod/show/corepy/episodes/Episode-10-The-Interactive-REPL-e2j788i/a-ab7uiak

tmr232,
@tmr232@mastodon.social avatar

@ambv I never knew that pydoc has a CLI...
Way back when when I was learning Python I used the HTML version to learn all about the standard library modules & probably some ActivePython stuff.

IIRC there used be a small Tkinter GUI for running the HTML server.

Edent, to random
@Edent@mastodon.social avatar

This is, without a doubt, one of my favourite videos.

A choreographer dancing with herself as a four year old.

https://youtu.be/3MS3HT0Zt4s

tmr232,
@tmr232@mastodon.social avatar

@Edent thanks for sharing, it's wonderful!

dabeaz, to random
@dabeaz@mastodon.social avatar

A bit disappointed...

>>> exc = ValueError("Bad Value")
>>> match exc:
... case ValueError(msg):
... print("Failed:", msg)
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
TypeError: ValueError() accepts 0 positional sub-patterns (1 given)
>>>

tmr232,
@tmr232@mastodon.social avatar

@dabeaz Mostly disappointed that I can't think of a way to properly hack around this. The match semantics are very limiting.

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

Here’s your AI astonishment/nightmare fuel for today:

"TL;DR: single portrait photo + speech audio = hyper-realistic talking face video with precise lip-audio sync, lifelike facial behavior, and naturalistic head movements, generated in real time.”

https://www.microsoft.com/en-us/research/project/vasa-1/

video/mp4

tmr232,
@tmr232@mastodon.social avatar

@stroughtonsmith so much of my brain power is going to be focused on "did their teeth just change in size? What happened to that ear? Hair shouldn't merge as ot moves!" now...

veronica, to random
@veronica@mastodon.online avatar

I have to use Windows for work, and it sucks. It is mind numbingly unresponsive compared to what I'm used to.

I recently got the "New" Outlook and Teams, and I'm wondering if all newer Microsoft software is built on a shared framework called "Microsoft Bloatware".

tmr232,
@tmr232@mastodon.social avatar

@veronica I used to really like Windows.
But with 11 it feels like they tried to fix all the things that weren't broken.

A wonderful mix of "x always worked well, let's rewrite it", "y looks complex! Lets hide it under 3 layers of animated menus", and "people seem to like Apple. I never used their products, but I really like that screenshot I saw once".

molly0xfff, to random
@molly0xfff@hachyderm.io avatar

i am so over the web design trend where every piece of text on the page has to animate in

A webpage for a "Noble" crypto project, where each piece of text slides into view on scroll

tmr232,
@tmr232@mastodon.social avatar

@molly0xfff made me think of this Bing animation. Blurring the results on mouse-over is definitely the behaviour I want.

Bing search results animating on mouse-hover, effectively blurring the text until it finishes.

tubetime, to random
@tubetime@mastodon.social avatar

it's another electronics flea market here in silicon valley! slightly rainy today.

tmr232,
@tmr232@mastodon.social avatar

@tubetime I select Panic-Power!

hynek, to random
@hynek@mastodon.social avatar

the OUTLINE to my next video is 3500 words 😭

tmr232,
@tmr232@mastodon.social avatar

@hynek 3 hour video!
3 hour video!
3 hour video!

Give the fans what they want!

3 hour video!

hynek, (edited ) to random
@hynek@mastodon.social avatar

As the person who has been called being “famous for advocating for the src layout” I endorse this message.

Occasionally I get that suggested by Copilot and I weep for who taught it that.

The whole point of the src directory is to NOT be importable.

https://hachyderm.io/@nedbat/112232430503600269

tmr232,
@tmr232@mastodon.social avatar

@hynek maybe we should start using an un-importable name for it.

If we do, people will know you have to add it to sys.path in your code 🙃

olafurw, to random
@olafurw@mastodon.social avatar

My new video is out.
DOOM in Space.

https://www.youtube.com/watch?v=zthssUIFG6c

tmr232,
@tmr232@mastodon.social avatar

@olafurw isn't Doom in space to begin with? 🙃

veronica, to random
@veronica@mastodon.online avatar

@olafurw Remember when we talked about Python integers at work back when? Here's a really nice writeup of how they're implemented in the CPython VM.

They are by default bignums, and it takes a minimum of 28 bytes to store an integer on 64-bit platforms. 🤯

https://tenthousandmeters.com/blog/python-behind-the-scenes-8-how-python-integers-work/

tmr232,
@tmr232@mastodon.social avatar

@veronica @olafurw

Numpy also has the benefit of not having to constantly check what types it's working with. It can do math without attribute lookups.

hynek, to random
@hynek@mastodon.social avatar

me: my next video is gonna be finally under 10 minutes!

also me:

tmr232,
@tmr232@mastodon.social avatar

@hynek Your videos are great. I'd totally watch a 3hr one as well.

ambv, to python
@ambv@mastodon.social avatar

When you say , I hear . Let's celebrate this day with a special episode with a special guest: sitting Steering Council member and core developer, Emily Morehouse-Valcarcel!

We're talking about the Steering Council, progress bars, least and most favorite parts of Python, and of course, assignment expressions.

I'd use a walrus emoji, but the best we've got is a tuskless seal! 🦭 There's no anonymous crow either...

https://podcasters.spotify.com/pod/show/corepy/episodes/Episode-9-Py-Day-with-Emily-Morehouse-Valcarcel-e2h2tt9

tmr232,
@tmr232@mastodon.social avatar

@ambv Looking forward to listening to this one!

I'm really enjoying your podcast!

glyph, to random
@glyph@mastodon.social avatar

I just want to write some code, maybe make some music, maybe draw some pictures.

I don't want to be mad about blockchains, I don't want to be mad about GenAI, I don't want to be mad about terrible backfiring "think of the children" legislation, I don't want to be terrified about the rising tide of bigoted, racist fascism ending democracy in my lifetime.

I don't want you to have to be mad about all that either.

I wish the world would leave us all alone for a little bit.

tmr232,
@tmr232@mastodon.social avatar

@glyph working on a tool for automatic supercut generation based on subtitles.
Because supercuts are fun but editing them isn't.
https://github.com/tmr232/supercut

Here's an example (Frieren spoilers ahead, up to episode 23) https://www.reddit.com/r/Frieren/comments/1avd9tx/fern_saying_frieren_sama_supercut_of_23_episodes/

jwz, to random
@jwz@mastodon.social avatar

List of 2024 Leap Day Bugs.

Code of Matt: (My favorite is this one):

Street lighting in Paris, France was inadvertently turned off at midnight at the start of February 29th, according to reporting by Le Parisien, a French daily newspaper. The...
https://jwz.org/b/ykN4

tmr232,
@tmr232@mastodon.social avatar

@jwz me, expecting a list, reading this like:

  • Street lighting in Paris
  • France was inadvertently turned off...
hynek, to random
@hynek@mastodon.social avatar

I should’ve known a video on Python packaging is gonna get me my first downvote. 😅

tmr232,
@tmr232@mastodon.social avatar

@hynek People are probably mad that you didn't mention the graphical install wizards we had on Windows...

willmcgugan, to python
@willmcgugan@mastodon.social avatar

#Python challenge for y'all.

Your mission, should you chose to accept it...

Write a function to get the last 5 lines from a text file as efficiently as possible. Assume line endings are all "\n".

Should work with text files of any size.

tmr232,
@tmr232@mastodon.social avatar

@willmcgugan what's your measurement of efficiency?
Single thread runtime? Total runtime? Least bytes read from disk?

tmr232,
@tmr232@mastodon.social avatar

@willmcgugan So (expectedly) it seems that running through bytes with regex is way faster than Python code.
Now to check file read times...

hynek, to random
@hynek@mastodon.social avatar

It would be harsh to say that requests is a pile of poorly-written attractive nuisances on top of urllib3. But, unfortunately, it wouldn’t be wrong.

Many diligent devs have spent countless work hours trying to unfuck the project over the years, but there’s only so much you can do when:

“After receiving our first security disclosure, I was told that Requests wasn't a serious project but instead one person's art project and thus we shouldn't fix the vulnerability.” https://hachyderm.io/@sigmavirus24/111986425127558764

tmr232,
@tmr232@mastodon.social avatar

@hynek thanks for sharing!
Requests got into my toolbox long ago, and I never stopped to review that decision.

hynek, to random
@hynek@mastodon.social avatar

It should really be less of a ceremony to contribute to a project on GitHub and delete the fork afterwards. No wonder everybody carries around dozens of unused forks in their profiles.

tmr232,
@tmr232@mastodon.social avatar

@hynek I... actually never thought of deleting them?

tmr232,
@tmr232@mastodon.social avatar

@hynek Oh, well... Now I need a tool that tells me if I have any changes that don't exist in the forked-from repo...

tmr232,
@tmr232@mastodon.social avatar

@hynek It was less code than I expected, for a naive solution - https://gist.github.com/tmr232/98c03dde8821facf3989365a98e18c1c

As for deleting - it seems the GH CLI tool can do it with less ceremony

dabeaz, to random
@dabeaz@mastodon.social avatar

Thought: I'd bet a lot of projects would have fewer dependencies if pip was 100x slower. Maybe we should try to do that.

tmr232,
@tmr232@mastodon.social avatar

@dabeaz Reminds me of importing networkx in a Jython environment... IIRC it was over 10 seconds.

hynek, to random
@hynek@mastodon.social avatar

Shots fired by the flake8 maintainer.

We can have a nuanced discussion about the failures of flake8 etc, but you’ll still have to acknowledge that a VC-backed, non-Python project profited from decades of community work, & has sucked all air out of the space.

It’s not like I’m not using Ruff—but I do it begrudgingly & find the cheerleading around it baffling. It has practically destroyed a part of the ecosystem & it looks like nobody has seen the VC playbook play out.

https://youtu.be/XzW4-KEB664

tmr232,
@tmr232@mastodon.social avatar

@hynek I entirely missed the VC backing part.
I was worried enough about it replacing everything else (as I think multiple tools are generally a good thing), but VC makes it worse.

Thanks for sharing this!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • khanakhh
  • kavyap
  • anitta
  • Durango
  • vwfavf
  • GTA5RPClips
  • cubers
  • tacticalgear
  • tester
  • cisconetworking
  • ngwrru68w68
  • Leos
  • normalnudes
  • provamag3
  • modclub
  • JUstTest
  • All magazines