@tartley@mastodon.social
@tartley@mastodon.social avatar

tartley

@tartley@mastodon.social

Made out of meat.

Class III sentience. Singular biological manifestation. Mortal. Human. He/him.

Computer programming sparks joy. Linux lover. Test obsessed. Mostly wrangling Python.

Loving the current discourse in the science fiction scene, of a critical need for metamodern myths to rally around, provide meaning, and heal the culture wars, by integrating the best of the ancient, modern and postmodern views of the world and our place in it.

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

tartley, to random
@tartley@mastodon.social avatar

@danzin 👋 Hi, thanks for the follow.

tartley, to random
@tartley@mastodon.social avatar

I appear to have ruined my beautiful new email friendship with the Indian Chief of Police, who kindly informed me that I had pending legal troubles, due to his department's detection of illicit activity from my IP address. I couldn't resist playing the fool, accusing HIM in turn of high time-crimes, contravening the United Nations Pre-crime Treaty of 2083, but he could not be distracted. Eventually he revealed that he could make my troubles go away if I made a donation of 58,000 rupee... 🧵

tartley, (edited )
@tartley@mastodon.social avatar

My eyes narrowed. We were in the endgame now. I casually let slip that in my middle-aged delirium I'd mistaken his demand of 58,000 rupee (about $500) for 58,000 Bitcoin (over 4 billion USD), and that his single-minded insistence had worn down my resistance. I confessed to everything, and said I'd pay up, if he could remind me how to do it. I sent him my bitcoin wallet address (A whale containing over $6B) as a gesture of good faith...

tartley, (edited )
@tartley@mastodon.social avatar

They could easily google the address to see I had the funds. I received an agreement to these terms, and the Chief of Police's bitcoin wallet address.

I told him my assistants usually deal with this sort of thing, so I was having to scramble to figure it out. That gave me a little time...

tartley, (edited )
@tartley@mastodon.social avatar

When I finally sent him my next email, reporting I'd figured it out and sent the donation, I embedded an image showing a screenshot of the confirmation - 58000BTC sent to his wallet

After 30 seconds, that animated gif flips to its second and final frame, A BIG HAIRY ARSE.

Game, set, and match.

AlSweigart, to random
@AlSweigart@mastodon.social avatar

What are the recommended ways to install Python on Windows, macOS, and Linux? Is it downloading from python.org for all of them? Or is it Microsoft Store, Homebrew, and apt-get?

tartley, (edited )
@tartley@mastodon.social avatar

@rrmutt I have never understood Anaconda well enough to know why folks cite this as an advantage. In my world, "pip freeze" produces a detailed manifest, in a format which a subsequent "pip install" will read. Presumably Anaconda does it better in some way, but I don't yet understand how.

tartley, (edited )
@tartley@mastodon.social avatar

@rrmutt interesting to hear your perspective, thanks for laying it out for me. TBH I tried pipenv for a few personal projects, but ended up abandoning it. It seemed like a project that had grown out of control and wasn't maintained very reliably. Frequent new releases but things broke. Meanwhile I'm using poetry at work, and while that is nicer, I am not yet convinced it's better (for me) than just using pip (maybe with pip-tools, but maybe without).

tartley, to discworld
@tartley@mastodon.social avatar

I bought dozens of Terry Pratchett's books when they first came out, but have lovingly given them all away to good homes during the various house moves since. Now I'm buying them all over again, to read with my 12 year old.

Just received, The Light Fantastic. <rubs hands with gleeful anticipation>

jcreed, to random
@jcreed@mastodon.social avatar

If you have Netflix and like gorgeously animated sci fi about weird ecology go watch "scavengers reign" right now

I'm only a few episodes in but wow

tartley,
@tartley@mastodon.social avatar

@jcreed kid friendly, or am I doing this one solo over folding laundry?

tartley,
@tartley@mastodon.social avatar

@jcreed ah, common sense says 16. Ok laundrywatch it is then! https://www.commonsensemedia.org/tv-reviews/scavengers-reign

Taffer, to godot
@Taffer@mastodon.gamedev.place avatar

I hate that so many tutorials and whatnot are video rather than text, for a variety of reasons.

If I had copious spare time I'd write tutorials for Godot. Almost all of the Godot instructional material I've found has been video… constantly pausing the video to try out whatever they're talking about is annoying, it takes me 3-4 hours to get through an hour of video tutorial.

tartley,
@tartley@mastodon.social avatar

@Taffer same. Thanks for making explicit a part of why video is so bad for this, which is failed to articulate. That video is appealing because it seems easier to consume, but that only works if you expect to be a passive watcher. Effective consumption instead requires actually trying things out as you go.

mathias, to neovim
@mathias@fussenegger.pro avatar

I've been using nvim as a man pager for quite some time, but until today it never occurred to me to try gO to get an outline of the contents.

Pleasantly surprised to see it working and feeling dumb for not trying it sooner.

(To add another tip, you can use c-] to follow links to other man pages)

#neovim

tartley,
@tartley@mastodon.social avatar

@mathias I have never seen gO before, thanks! I wonder if I can make it work for Markdown headings?

tartley,
@tartley@mastodon.social avatar

@mathias Oooh that is interesting. I am the packager of universal-ctags as a snap, as it happens. Let me try it out...

andy47, to python
@andy47@aus.social avatar

Dear #python #lazyweb how do I create an instance of a dataclass with only some of the values specified? I can't seem to find a way to specify attribute names in the constructor, must I always just provide values in the order that they are specified in the class definition?

tartley,
@tartley@mastodon.social avatar

@andy47 you can specify default values for some attributes in the data class definition.

@dataclass
class D:
one: int
two: str = "a"

d = D(1)

Here 'one' has no default value, so must be specified, whereas 'two' can be omitted.

tartley,
@tartley@mastodon.social avatar

@andy47 hmm maybe I am misreading your question.

bgardner, to godot
@bgardner@mastodon.sdf.org avatar

So, #godot wizards, how do you come up with #game ideas? I've been studying GDScript, have a programming background, and should be able to make something, but an actual idea escapes me. Any advice would be appreciated.

tartley,
@tartley@mastodon.social avatar

@bgardner One Idea: Remake something extremely simple. An early1980s arcade game, maybe. Allow yourself one or two small experimental flourishes. 😁

A long time ago I was an accomplished professional programmer, doing cool graphical things with shaders, had big ambitions for games I wanted to write. The above advice was the best I ever received.

tartley,
@tartley@mastodon.social avatar

@bgardner Right now I'm doing Missile Command, and my flourish is that the screen scrolls just a little, to follow the cursor around, and the ground is slightly curved, like a section of the surface of a planet, so as the screen scrolls left and right, it also rotates, just slightly. Makes the play area come alive, feeling vertiginous and dynamic.

pawsplay, to random
@pawsplay@dice.camp avatar
tartley,
@tartley@mastodon.social avatar
tartley, to random
@tartley@mastodon.social avatar

I should undertake challenging #reads.
instead of these #doomscrolling feeds.
But I've no strength to face
an escape from the base
of #Maslow's hierarchy of needs.

engiqueering, to python
@engiqueering@gaygeek.social avatar

trying to implement some functionality in #python I'm mentally calling an "echo" but that's probably got an actual name already. the idea is basically wrapping the setters of properties of one object so they store their values in an "echo" object as regular attributes.

this allows for objects that only stores property values (i.e. data only, no callables). these will be easier to persist to an object database, and with a reversal tool should function as a form of universal-ish storage

tartley,
@tartley@mastodon.social avatar

@engiqueering Forgive me for being dumb, but I don't understand why you'd need any of that. Use setters if you want them, store the resulting attributes, save them in an object database. Why do you need two objects? Feel free to ignore, you owe me nothing, I'm sure misunderstandings are all my own. :hugs:

tartley,
@tartley@mastodon.social avatar

@engiqueering ah, thank you for laying out the basics for my benefit. Good luck in your battles! 🙂

rebeccawatson, to random
@rebeccawatson@mstdn.social avatar

I hate how whenever US liberals defend immigrants they have to say how hard working they are. I just want it to be known that I support immigrants who are just as lazy, if not even lazier, than me.

tartley,
@tartley@mastodon.social avatar

@rebeccawatson Thank you! I feel very supported! 🙂

anders, to ai
@anders@thoresson.social avatar

If I want to transcribe every new audio file that appears in a folder on my Mac using (Mac)Whisper and then run the transcription through a LLM using Ollama to clean it up, what are my best options? Do I have to write some Python code myself or is the readymade tools for this?

tartley,
@tartley@mastodon.social avatar

@anders I am a Python fanatic of many years but I'm not sure Python is the tool I'd reach for here. But I'm also a Mac newb so this is going to be very unhelpful. On Linux I'd do something like this, and I imagine there must be Mac equivalents:

In shell (I use bash, but I understand Mac defaults to zsh)

Use a loop like this to watch for changes in a folder:

inotifywait --quiet --monitor "$folder" | while read changed
do
echo "$changed"
done

1/n

tartley,
@tartley@mastodon.social avatar

@anders inotify watches for filesystem events without polling all the existing files. I'm fairly sure it doesn't exist on Mac, but there simply must be some equivalent.

Then, replace the 'echo' with the command needed to do the conversion on file "$changed". (Maybe this step is "then just draw the rest of the owl"? Sorry!)

beanjbunny, to gamedev
@beanjbunny@nerdculture.de avatar

I fixed this bug in my code yesterday but I'm sitting here crying laughing about it today. Godot The Game Engine You've Been Waiting For really said with its whole chest, THAT NULL CHECK CAN'T STOP ME BECAUSE I CAN'T READ #indiedev #gamedev #python #godot #godotengine

tartley,
@tartley@mastodon.social avatar

@beanjbunny hooray! My tentative understanding is validated!

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