mcgrew

@mcgrew@dice.camp

Software Engineer.
Open source developer.
JRPG enthusiast.

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

StillIRise1963, to random
@StillIRise1963@mastodon.world avatar

Racist ass white people have made a fucked up mess of the entire world.

mcgrew,

@ralph058 @StillIRise1963 I've done this for years. Any time I have a negative reaction about someone different from me I try to take the time to examine why I felt that way to see if it was justified. It usually is not. I find myself having less of these reflex reactions as time passes.

mcgrew, to python

I just remembered a Python behavior I learned about in college that could have bitten me:

>>> def addbork(borklist=[]):
... borklist.append('bork')
... return borklist
...
>>> addbork()
['bork']
>>> addbork()
['bork', 'bork']

This happens because the default argument is instantiated when the function is defined rather than when it is called, so any changes to the object persist on subsequent calls.

leonerd, to random
@leonerd@fosstodon.org avatar

In a +1 score to 's great back-compatibility, I've had a script called from procmail that's been 100% reliable for the past 15 years maintaining my email, over many years of regular Perl updates.

A month ago it broke - because procmail. https://github.com/BuGlessRB/procmail/issues/5

But the perl itself still runs absolutely fine.

mcgrew,

@leonerd @pjakobs to be honest I think the pyenv users are crazy. I've been developing in Python for 20 years and I've never used it.

Migrating from Python 2 to Python 3 did break a lot of stuff, but aside from that I seldom have a problem. I suppose third party libraries do sometimes break things, but that's not really Python's fault.

I think the problem stems from the over-introduction of dependencies. I blame java & typescript devs for that culture.

RickiTarr, to random
@RickiTarr@beige.party avatar

It's been a minute since I've done a music question, so here goes:

Who is an artist/band that you're annoyed you like?

mcgrew,

@RickiTarr mine would have to be Iced Earth. Great music, but their founder was also a founding member of the Oath Keepers and was arrested for participating in Jan 6.

I no longer listen to them.

mcgrew, to random

I've been having fun with RPGs with job systems recently so I decided to create a thing to make it a little more fun.

https://jobfair.quest/

Maybe you'll like it too. It's just Final Fantasy 5 and Bravely Default 2 right now, but there's a good possibility I'll add more games in the future.

mcgrew, to random

I think it just dawned on me why I prefer playing as female characters in video games and prefer female leads in movies, tv, music, etc.

I love seeing women, especially younger women, being strong and successful.

I still don't really understand why that's the case though. Maybe it's just an extension of "rooting for the underdog". I don't know, I'm not a psychologist.

mcgrew,

Yes, I've spent an inordinate amount of time thinking about this. I want to know why I like the things I like.

0xabad1dea, to random

just got an automatic refund out of nowhere from amaz*n because they claim the package, which I received in good working order, was returned to them undelivered. ??? did interdimensional shenanigans occur

mcgrew,

@0xabad1dea I had this happen to me once, except that instead of delivering my $100 item they delivered a completely unrelated $500 item.

seldo, to random

Who is out here offering bribes in the form of gold bars in the first place, what kind of pirate-ass mobster are you?

mcgrew,

@seldo apparently having gold bars is a trend? And some people are just burying it in their back yard? What…

https://www.cnn.com/2023/09/22/investing/gold-bar-bribe-menendez/index.html

dragonmantank, to random
@dragonmantank@phpc.social avatar

New status

image/jpeg

mcgrew,

@grmpyprogrammer @emd @ramsey @dragonmantank at least the band's leader didn't help found an organization that participated in Jan 6. So much for listening to them.

mcgrew,

@ramsey @gizmomathboy @grmpyprogrammer @emd @dragonmantank it's unrelated. The founder of a band I was a fan of was involved. I was just pointing out that what Foo Fighters did could have been worse.

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

I drive a Tesla, fully aware that it is collecting all sorts of data about me and making $$$ off of it. My personal feelings are that we are less than a decade away from cheap cars that collect the most intrusive data possible because car companies will discover they make more money that way. Prepare to need an always-connected cellphone to use your car or else it will have almost no features.

mcgrew,

@grmpyprogrammer so what you're saying is I should find a late 70s model car and restore it to use as a daily driver.

mcgrew,

@grmpyprogrammer if we're converting it why not just go full electric?

mcgrew,

@grmpyprogrammer isn't Tesla opening up their chargers to non-Tesla vehicles soon? Pretty sure I heard that somewhere.

Also since this is some hypothetical time in the future anyway hopefully the infrastructure would be there by then.

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

“Currently, there are zero plans for Starfield to release on Nintendo Switch” oh well

mcgrew,

@grmpyprogrammer @freekmurze I'm not sure what you mean by "official", but if it's on Steam you can load it onto the Deck. It's not Deck Verified, but protonDB reports it as Gold. https://www.protondb.com/app/1716740?device=steamDeck

Word is the performance isn't great (~25fps or so), but there was recently an update to fix some bugs with the game on Deck, so they are at least working on it. https://steamcommunity.com/app/1675200/eventcomments/3818543965124846994

mcgrew,

@grmpyprogrammer @freekmurze no problem. I can understand that. Personally I love the deck but I usually stick to PC for more graphically intensive games since it's not all that powerful. ProtonDB is a good source to know whether a game runs well on Linux and Steam Deck before buying, verified or not.

FWIW I don't always trust the verified badge now since Baldur's Gate 3 is Deck Verified and according to all reports the performance is pretty terrible (I haven't tried it).

mcgrew, to random

I assume that most people listen to music on phones/tablets these days, probably with headphones.

If so, why are graphic equalizers not more prominent? Personally I find music much less appealing without one for the most part. It took me a while to find a decent EQ for Android, and it's not great, just okay. My new headphones have built in EQ but the presets are pretty sparse and generic.

Do people just not use them any more? Is this why popular music sounds like it does today?

ramsey, to random
@ramsey@phpc.social avatar

I don’t understand folks getting super-excited that they won’t have to use an XML config file. Is using an XML config file that big of a hurdle to developer happiness?

mcgrew,

@ramsey I don't mind xml, but I normally go for json. Especially if it's not intended to be edited by a human.

Though that could be partially because json is in the python stdlib and a single function call.

In practice I don't care much about the config format.

foone, to random
@foone@digipres.club avatar

I'm not super smart.
I just tried to fix a USB problem on my server by unbinding the USB drivers.

Guess how I was typing in these commands?

mcgrew,

@foone I've definitely seen something similar to this happen when the USB bus is overloaded (not enough bandwidth).

Did you recently add a USB device that might be sending a lot of data?

mcgrew,

@foone ok it would only happen if the device is connected. I have a USB video capture device that I have to make sure is connected to a different root hub from everything else, otherwise this happens.

dgar, to classicrock
@dgar@aus.social avatar

These were released all within 44 days of each other in 1991.

mcgrew,

@dgar the best 44 days of rock music there ever was.

foone, to random
@foone@digipres.club avatar

oh my god. MMC1 (the NES mapper used in games like Metroid, Kid Icarus, and Zelda 1/2) uses a serial bank-switching interface.
To bankswitch, you write a byte with value with bit 7 set to any address in 8000-FFFF, then write 5 times with bit 7 not set, but varying bit 0. After 5 writes, it bankswitches for you.
For the last write, bits 13 and 14 of the address select which register you're pointing at.

mcgrew,

@foone nice to see you RE-ing something in my wheelhouse.

I have an NES disassembler if you need one: https://github.com/mcgrew/nes-disasm6

0xabad1dea, to random

there’s been so many incredibly annoying and useless features added to everything recently, but I have to say: iOS’s on-device OCR is actually really, really good. I can highlight Chinese text in a photograph on a webpage and get a translation popup

mcgrew,

@0xabad1dea that's cool. I have an Android app that can do this for Japanese but it would be nice if it were a native feature.

ramsey, to random
@ramsey@phpc.social avatar

Why is it so difficult to lowercase a string in C?!

My program keeps crashing, and I don’t know why.

mcgrew,

@ramsey @wilbr @lhengstmengel values is a const char*. I'm pretty sure it'll segfault if you try to modify that.

You'll need to allocate some memory for a new array and copy the lowercased result to that.

0xabad1dea, to random

I seemed overdue for my discord name change prompt and I got it by fully restarting the desktop client specifically. (and yes, I got my actual correct username)

mcgrew,

@0xabad1dea thanks for the reminder. I restarted discord and also got the update prompt. And yes I got my correct username too.

  • 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