博文

Scripting News: Friday, February 7, 2025

图片
Friday, February 7, 2025 Behind the scenes in the US government I imagine it's like a Vonnegut novel, or an episode of Pinky and the Brain . # I've cracked the code for adding OpenGraph data to Bluesky posts. The key was I learned how to do the equivalent of a View Source on a Bluesky post so I could see how others did it. I tried Claude, ChatGPT, Gemini, none of them even understood the question of how to get Bluesky to add the data. I was amazed to learn that each developer has to do it for themselves, that this isn't something they built into their server. Anyway, I'm halfway there. # I wish Bluesky had just used the Twitter API . That's how I would've done it. Continuity matters a lot. And think of all time wasted at re-doing something we had working a long time ago. # The AI world would have done much better with a president like Biden than we will with Trump. AI is a very potent tool for surveillance. Completely changes the game. A...

Scripting News: Thursday, February 6, 2025

图片
Thursday, February 6, 2025 A great scene in Goodfellas where they explain what it's like to have Paulie the mob boss as a partner. In this scene Paulie is Musk. The restaurant owner is Trump. The United States is the restaurant. # BTW, I found that video using ChatGPT. I had tried explaining it to Google and it didn't understand. ChatGPT found it in an instant. # People might be curious to see the list of feeds that make up the Little Feed Reader account on Bluesky . It's dynamic, I can add or remove feeds through a very simple user interface designed for managing systems like this. It's like the user inteface of a product like WordPress, for designers and developers, producing results that are for users. There are now apps for the NBA , Devs and all my feeds . # Big picture, the US is being turned into Russia. # California Senator Adam Schiff said, I think it was yesterday, that Trump and Musk are removing honest FBI investigators and DOJ...

Scripting News: Wednesday, February 5, 2025

图片
Wednesday, February 5, 2025 One of my next projects, Murphy-willing, will be JavaScriptScript . # Highly recommend this week's Ezra Klein podcast . It made me wonder if any of the readers of my blog voted for Trump. I can't imagine too many did, unless they've been willing to overlook my strenuous support for any option that opposes him. However if any of you are still here, I'd like you to know that what's happening now is exactly what we thought would happen. If you agree that this is unacceptable, maybe we can use that as common ground to work together to get our country back from the chaotic authoritarian mess that Elon Musk is turning it into. He makes Trump look like an absolute moderate. Certainly no one who voted for Trump with any kind of appreciation for the American system, where your vote and mine matter, can stand by and not object to what he's doing to our system of government. If not now, keep this in mind as Musk's chaos bec...

🔥 (#203) Nesting reactive objects, composable mini tips, and more

图片
Read this on my blog Hey all! This is a quieter week for me. I'm mostly heads down working on the big update and re-recording of Mastering Nuxt to bring it all up to date. The code is nearly there, just a little bit of polishing left to make it fantastic. — Michael 🔥 Nesting Reactive Objects Here's a nuance to nesting reactive objects that's tripped me up. Nesting a ref in a reactive array keeps everything reactive as expected: const arr = reactive ([]); arr . push ( ref ( 'hello' )); arr . push ( ref ( 'world' )); setTimeout (() => ( arr [ 0 ]. value = 'nothing' ), 1000 ); But putting this ref inside a non-reactive object breaks this reactivity: const arr = reactive ([]); arr . push ({ text : ref ( 'hello' ), }); arr . push ({ text : ref ( 'world' ), }); setTimeout (() => ( arr [ 0 ]. value = 'nothing' ), 1000 ); I gave a hint i...

Scripting News: Tuesday, February 4, 2025

图片
Tuesday, February 4, 2025 The coup is over . This time, unlike the last time it was tried, it worked. We're in the post-coup world now. He showed us exactly what he would do if he could and we somehow collectively acted as if he hadn't shown us. Sanewashing was just the tip of the iceberg, you can't blame it on the press, we didn't demand they get their shit together, we didn't try to change the subject so they'd have to tell the real story. We had a lot of tools available to us that we didn't use because we are lazy and selfish. BTW, if you want to follow the power, don't look at what governments do, look at what the other oligarchs do. Google, Apple, Amazon, Facebook, etc. # devs.feediverse.org on Bluesky. An interesting experiment. # Freaky warning. As easily as Musk can turn off government websites, he can turn off our sites. He could turn off all .com or .org sites. He'll probably do it just that way. Only one domain will wo...