An excellent example of where LLMs can save time and introduce near zero risk:
"Convert these Python data structures to YAML".
(I had plopped a couple of pages of Python syntax into a YAML template and didn't want to navigate the reformatting manually, since I find YAML excruciating to write. Yes, I know I'm strange in this regard and everyone loves it. I enjoy JSON too. Break out the tar and feathers :)
=> More informations about this toot | View the thread
For my #Windows peeps: You all probably already know this, but who knows there may be a few who are still kinda finding their way around the platform like I am. Today's discovery? I like to keep a big batch of audio files on tap so I can just bring up a player, hit shuffle, and get work done.
[#]foobar2k is pretty amazing for this. Color me happy :)
https://www.foobar2000.org/
(Available from Chocolatey and probably your other favorite package manager of choice)
=> More informations about this toot | View the thread
Favorite new #bash/#zsh alias OTD:
Often I want to show the contents of a commit in one tab, go do something else in another, but refer back.
By default, git runs the pager, so if I hit any key after the commit is displayed, the pager will exit, wiping the displayed output.
This alias turns the pager off JUST for the duration of this one invocation so I can show my commit and leave it up.
Update: It only makes sense to add the 'show' clause to the alias since this setting only applies to it.
=> More informations about this toot | View the thread
I am shocked but unsurprised that fucking Elon Musk literally giving Trump a Sieg Heil.
Why isn't the Jewish community rioting in the streets?
Why is this getting hardly any press?
=> More informations about this toot | View the thread
[#]bookstodon Just finished @cstross A Conventional Boy and, shocker, really enjoyed it :)
Feels like he's really leaning in to the fan service aspect with his recent short novels almost to the point of my looking up a few times and thinking "Wow this is almost like fanfic!" then chiding myself because what precisely is the problem with fanfic anyway? :)
I listened to the audiobook, and Ciaran Saward was pitch perfect!
I even did something I rarely do and listened to Down on the Farm and Overtime after having read them years back. What a treat! :)
@dashdsrdash I know you advance read his books. What did you think of this latest?
=> More informations about this toot | View the thread
And because it's all based on @pydantic you get constraint violation checks for free!
ERROR Exception in ASGI application
Traceback (most recent call last):
File "/home/feoh/src/personal/chrismud/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context
self.dialect.do_execute(
File "/home/feoh/src/personal/chrismud/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 942, in do_execute
cursor.execute(statement, parameters)
sqlite3.IntegrityError: NOT NULL constraint failed: player.location
=> More informations about this toot | View the thread
Just here to say that writing SQL backed REST APIs with @tiangolo's @FastAPI and SQLModel is easier than falling off a log!
sqlite_url='sqlite:///' + sqlite_file_name
engine = create_engine(sqlite_url)
engine = create_engine(sqlite_url, echo=True)
SQLModel.metadata.create_all(engine)
app = FastAPI()
@app.get("/player/create/{player_name}")
def create_player(player_name: str):
with Session(engine) as session:
player = Player(name=player_name)
session.add(player)
session.commit()
@app.get("/player/delete/{player_id}")
def delete_player(player_id: int):
with Session(engine) as session:
player = session.get(Player, player_id)
session.delete(player)
session.commit()
@app.get("/player/get/{player_id}")
def get_player(player_id: int):
with Session(engine) as session:
player = session.get(Player, player_id)
return player
@app.get("/thing/create/{thing_name}")
def create_thing(thing_name: str):
with Session(engine) as session:
thing = Thing(name=thing_name)
session.add(thing)
session.commit()
@app.get("/thing/get/{thing_id}")
def get_thing(thing_id: int):
with Session(engine) as session:
thing = session.get(Thing, thing_id)
return thing
The people who say #python is so 5 minutes ago aren't paying attention. The community just keeps ratcheting up the level of awesome, and I am incredibly grateful for all the hard work everyone has put in!
=> More informations about this toot | View the thread
So apparently somebody built a thing like Instagram on top of ATProto and people are all like "BEHOLD! THE FABLED ERA OF DISTRIBUTED SOCIAL MEDIA HAS ARRIVED!".
And there's me sitting in my corner feeling like that angry old man who looks like he's sucking persimmons while everyone else is having a good time, mumbling something about @pixelfed
=> More informations about this toot | View the thread
Well I've fallen off the #tmux bandwagon in favor of just using #wezterm everywhere on the desktop for a couple months now and I've gotta say - zero regrets.
Tmux is an incredible tool, but the increase in cognitive load just wasn't worth it to me at the end of the day.
I still use and love it for server side work. Great way to persist working sessions, but for local stuff wezterm is making me incredibly happy :)
=> More informations about this toot | View the thread
[#]bookstadon currently reading Martha Wells outstanding Murderbot book 5 - Network Effect.
These books are such an outstanding example of how science fiction explores what it means to be human, and a great example of how humor can make the experience all the more compelling. Today's favorite line:
"Impulse control. I need to write a patch for that".
=> More informations about this toot | View the thread
@cinimodev If you don't mind me asking what does an irrigation contractor do?
=> More informations about this toot | View the thread
TIL that adding _netdev to the end of your fstab entries no longer works to make the system wait for the network to come up.
instead, you need x-systemd.automount
https://learn.redhat.com/t5/Platform-Linux/Automounting-using-systemd/td-p/5631
(I know the docs are #redhat #linux but I'm validating this on my #ubuntu server 24.04.1)
=> More informations about this toot | View the thread
I've started thinking differently about the diaspora from Failbook and Twitter.
Sure, lots are fleeing to Bluesky, which at least for this very picosecond seems a better option.
But LOTS are also fleeing elsewhere, and lots more are simply turning off social media.
And this is, I think, all for the good.
Every tiny thread we can pry away from the Gordian knot that is profit and virality seeking algorithmic social media, the better off we'll be as a society.
The internet is only beautiful in the small. I think the Fediverse and its anti-virality by design is an excellent example of that.
=> More informations about this toot | View the thread
Update: Reading down the thread, it was made clear that this registration process is more of a wait list.
Can't blame them. TikTok is BIG and just creating supporting infra for something like this has got to be non trivial.
Poor reading comprehension demerits for me :)
Trying to register to @loops today. Never got the registration E-mail.
Some days it's depressing trying to fight the good fight. I know @fastmail customer support is just INUNDATED with "I never got my Email!" requests, so I've kinda given up trying to report, but I do have to wonder...
Would I have gotten my email if I knuckled under and useg GOOG or MSFT? 🤮
=> More informations about this toot | View the thread
So I'm trying something with #selfhosting and it's not going so well thus far, which is fine. It's an experiment :)
I was wondering whether it actually made sense to run #proxmox, because I basically just host VMs that run docker containers anyway, and you can run docker compose and easily have multiple containerized apps per host.
The problem is making them accessible to the internet. I usually use tailscale funnel to do the port forwarding and front it with SSL.
It may be worth the extra work to run ProxMox just to get a different hostname and IP per app.
=> More informations about this toot | View the thread
Always figured Zuck for a bigot. Guess I wasn't wrong.
https://www.404media.co/meta-deletes-trans-and-nonbinary-messenger-themes/
Today, yesterday, and forever. #fuckmeta
=> More informations about this toot | View the thread
You guys, feel free to skip this one. I'm gonna indulge in a #firstworldproblems whine :)
I am feeling logy. Can't focus or wake up and I know that if I drink more coffee I will just be jittery AND unable to focus :)
It's been nearly a month since I've been able to get to our gym and the lack of exercise is kinda killing me.
I can't get good sleep, so I ended up getting no sleep at all the night before last, was a total zomboid yesterday, and last night I slept like a pile of bricks (thank goodness for that!)
I think I need to engage Extreme Measures and start getting up a 5AM so I'll have time to go to the gym before doing the morning dog walk routine.
I'm SUPER grateful she's doing better after having blown a disc. She's weaning off the prednisone and has another full week of "complete rest" but then hopefully we can get her back to being able to use ramps. Right now she requires 24/7/365 supervision which is rough, because she THINKS she's just fine and can jump on and off furniture, which is how she hurt herself to begin with.
If you read this. Thank you for that and I hope you're having an amazing day!
=> More informations about this toot | View the thread
@jimsalter Thanks a bunch for recommending the Cyberpower UPS line.
I just had my every few years shit show surprise emergency where the APC UPS started screaming in the middle of a critical work meeting.
The Cyberpower unit I just ordered:
=> More informations about this toot | View the thread
I feel like #Libertarianism is one of those blobby amorphous ideas that can mean a million different things to different people.
That doesn't make it less valid or interesting even, but it does make it harder to pin down and learn about in any meaningful way.
This musing brought to you by John Ringo's Libertarian science fiction Hot Gate series, which I'm reading the final book of right now and have very much enjoyed despite VERY much not agreeing with some of the philosophy and politics :)
[#]bookstodon #books #scifi
=> More informations about this toot | View the thread
Thank you all! I ended up going with https://www.amazon.com/Anker-PowerExpand-Ethernet-Delivery-MacBook/dp/B08C9HZ5YT/ because a an ex coworker who's a QA engineer says it will work and I trust him :)
=> More informations about this toot | View the thread
=> This profile with reblog | Go to feoh@oldbytes.space account This content has been proxied by September (ba2dc).Proxy Information
text/gemini