WTF Bites
-
And deallocating does not change this either; deallocating just marks the memory block available for reuse, but does not clean it.
Some software I know has a memory-debugging mode where it clears out every memory allocation immediately on deallocate. It is a great way to find most of the places where you're doing dodgy things in your code without quite as much overhead as Electric Fence (or equivalent), but is still not something you tend to enable in production code.
If you want to do the equivalent in your own code, make sure to overwrite with an odd byte so as to encourage harder failures on access through a blanked pointer...
-
@PotatoEngineer said in WTF Bites:
observable variables
Yeah, I remember something about how it's effectively impossible to properly observe bare arrays because they don't raise events when their internal contents change. Or something.
-
@Tsaukpaetra said in WTF Bites:
@PotatoEngineer said in WTF Bites:
observable variables
Yeah, I remember something about how it's effectively impossible to properly observe bare arrays because they don't raise events when their internal contents change. Or something.
sound higher-level than the memory model to me. no, nothing need get called when base + offset is poked.
-
@Tsaukpaetra said in WTF Bites:
@PotatoEngineer said in WTF Bites:
observable variables
Yeah, I remember something about how it's effectively impossible to properly observe bare arrays because they don't raise events when their internal contents change. Or something.
sound higher-level than the memory model to me. no, nothing need get called when base + offset is poked.
We were talking about observables. Unless you're indicating that the proper way to detect array changes is to scan the entire memory or something?
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@PotatoEngineer said in WTF Bites:
observable variables
Yeah, I remember something about how it's effectively impossible to properly observe bare arrays because they don't raise events when their internal contents change. Or something.
sound higher-level than the memory model to me. no, nothing need get called when base + offset is poked.
We were talking about observables. Unless you're indicating that the proper way to detect array changes is to scan the entire memory or something?
No clue, I don't have observables over here in the Pure Land. Sounds like a C# thing to me. Usually consists of a buncha consumers tied to a mutator I think?
But if you can afford to scan the whole memory, it is a nice land mine to leave for the next poor bastard.
-
-
@Tsaukpaetra said in WTF Bites:
Sounds like a C# thing to me.
@PotatoEngineer said in WTF Bites:
Well, yes, but this is JavaScript.
Potatoes, not-javas.
-
@Tsaukpaetra said in WTF Bites:
Sounds like a C# thing to me.
@PotatoEngineer said in WTF Bites:
Well, yes, but this is JavaScript.
Potatoes, not-javas.
I'm hungry now, thanks.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Sounds like a C# thing to me.
@PotatoEngineer said in WTF Bites:
Well, yes, but this is JavaScript.
Potatoes, not-javas.
I'm hungry now, thanks.
Thaw first if ingesting anally.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Sounds like a C# thing to me.
@PotatoEngineer said in WTF Bites:
Well, yes, but this is JavaScript.
Potatoes, not-javas.
I'm hungry now, thanks.
Thaw first if ingesting anally.
I usually cook stuff to ingest. Warm shit is usually better than frozen anyways.
-
"This column can hold one of two possible values. Let's make it able to hold up to 20 character strings!"
I don't know why this was limited in this way. I'm not allowed to change it though, so just adding more columns.
And they're going to be strings too, because I can't get a good answer for how we're going to denormalize actual sources, so fuck it, MAC addresses as bare strings it is!
-
@Tsaukpaetra Ah, the strategic pile of linseed-oil soaked rags architecture.
-
@Gribnit And I'm only doing this because I realized doing full-text searching on a "Description" column that actually contains meta data for the row (that really should be in more columns) was a bad idea, and the only reason it hasn't cropped up as a problem yet is that the number of rows is still very small.
-
@Tsaukpaetra said in WTF Bites:
I'm only doing this because I realized doing full-text searching on a "Description" column that actually contains meta data for the row (that really should be in more columns) was a bad idea, and the only reason it hasn't cropped up as a problem yet is that the number of rows is still very small.
There's value in having a description column for unstructured and semi-structured metadata, especially when the users' understanding of the application domain is evolving fairly rapidly. and some DBs are really good at full text searching, but if there's stuff that's put in there consistently it should usually migrate to being its own column(s).
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Sounds like a C# thing to me.
@PotatoEngineer said in WTF Bites:
Well, yes, but this is JavaScript.
Potatoes, not-javas.
I'm hungry now, thanks.
Thaw first if ingesting anally.
I usually cook stuff to ingest. Warm shit is usually better than frozen anyways.
-
@Tsaukpaetra Ah, the strategic pile of linseed-oil soaked rags architecture.
https://www.youtube.com/watch?v=MqcSLlXcXoU&t=149s
e: The time code didn't work for some reason? Anyway it's at 2:29 but rewatching the whole thing is always worthwhile
-
@Tsaukpaetra said in WTF Bites:
@PotatoEngineer said in WTF Bites:
observable variables
Yeah, I remember something about how it's effectively impossible to properly observe bare arrays because they don't raise events when their internal contents change. Or something.
MobX lives in JS-land, where everything can be observable to almost any granularity, with or without recursive observability. Heck, the last thing that MobX couldn't observe was adding a property to an object, and with the more recent releases of ECMAScript, even that is possible.
It's not always cheap, but it's always possible. (There's this one control I need to re-jigger; after it picks up a bunch of data, typing into its textbox comes with serious lag, as it's doing something with all of the data, which is recursively-observable. The quickest win is just to make the data shallowly-observable; the better fix is to divide that control into smaller pieces so that the data fetched isn't near the text control.)
-
az deployment group validate
Validate whether a template is valid at resource group.
Yes, Microsoft, I know I am in a helicopter. Could you please tell me where I am, I really can't tell which of your venues it is this time…
I would have assumed this validates whether the template is a valid JSONC, adheres to the schema, and the functions in
"[]"
are syntactically valid according to their rules and don't refer to non-existent items. If it wasn't for presence of this argument:--rollback-on-error
The name of a deployment to roll back to on error, or use as a flag to roll back to the last successful deployment.strongly suggesting that the command actually makes some changes.
-
@Tsaukpaetra said in WTF Bites:
I'm only doing this because I realized doing full-text searching on a "Description" column that actually contains meta data for the row (that really should be in more columns) was a bad idea, and the only reason it hasn't cropped up as a problem yet is that the number of rows is still very small.
There's value in having a description column for unstructured and semi-structured metadata, especially when the users' understanding of the application domain is evolving fairly rapidly. and some DBs are really good at full text searching, but if there's stuff that's put in there consistently it should usually migrate to being its own column(s).
Yeah. So far the only thing that's going in that column is a bar-separated list that includes the Mac address and self-appointed name, and the actual conversion value (i.e. How many "quarters" were triggered for how many "credits" are being taken in the transaction).
-
@boomzilla said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Sounds like a C# thing to me.
@PotatoEngineer said in WTF Bites:
Well, yes, but this is JavaScript.
Potatoes, not-javas.
I'm hungry now, thanks.
Thaw first if ingesting anally.
I usually cook stuff to ingest. Warm shit is usually better than frozen anyways.
Hence, usually.
-
rewatching the whole thing
Yeah that movie fucked with my expectations on how to get a mate real hard. The type 4 TT shenanigans were fun though.
-
Ticket comes in today: "How did the Foo get unapproved and who dunnit?"
So I go looking. Ultimately, I discovered that we had a ticket a few sprints ago that said, basically, "Don't let users edit [sub-components] of Foo objects when the Foo is approved."
And I discovered that my uber-idiot cow-orker apparently decided that the way to go here was to update the Foo to make it unapproved.
Bonus - previously, she'd sabotaged permissions that would have prevented editing those subcomponents in, well, all ways, not just when the Foo was approved.
-
@boomzilla said in WTF Bites:
Bonus - previously, she'd sabotaged permissions that would have prevented editing those subcomponents in, well, all ways, not just when the Foo was approved.
A repeat offender? That's where you adjust the permissions on things to not let her get any commits in without review by a competent team member.
-
@boomzilla: careful, you're pointing the gun the wrong way.
-
@boomzilla said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Sounds like a C# thing to me.
@PotatoEngineer said in WTF Bites:
Well, yes, but this is JavaScript.
Potatoes, not-javas.
I'm hungry now, thanks.
Thaw first if ingesting anally.
I usually cook stuff to ingest. Warm shit is usually better than frozen anyways.
Microwaveable fried ice cream was achieved 20 years ago, look it up. It sucked, but it worked!
-
@boomzilla said in WTF Bites:
Bonus - previously, she'd sabotaged permissions that would have prevented editing those subcomponents in, well, all ways, not just when the Foo was approved.
A repeat offender? That's where you adjust the permissions on things to not let her get any commits in without review by a competent team member.
PR should already be required for all commits. Just put the word in that nobody is to look at yon PRs but a senior and yon senior is to read hard and respond with Changes Requested by default. The way of specificity in who can review IN THE SYSTEM, tho, that way lies madness. Use the backchannel.
If it's all Changes Requested all the time, that's measurable, and so is the review time, and you can ethically raise the firing decision when required.
-
@Zerosquare said in WTF Bites:
@boomzilla: careful, you're pointing the gun the wrong way.
Either way solves his immediate problem.
-
Either way solves his immediate problem.
If he whips the gun around really quickly, he can hit both.
-
@cvi OMG that scene is ridiculous.
-
Either way solves his immediate problem.
But if @boomzilla dies, we all die.
-
@Zerosquare said in WTF Bites:
Either way solves his immediate problem.
But if @boomzilla dies, we all die.
Indeed. Please do not kill me. I promise you, when the storm ends I will have the wheel.
-
@Zerosquare said in WTF Bites:
Either way solves his immediate problem.
But if @boomzilla dies, we all die.
Not true. Another instance will take its place. There is no master.
-
@Tsaukpaetra said in WTF Bites:
@Zerosquare said in WTF Bites:
Either way solves his immediate problem.
But if @boomzilla dies, we all die.
Not true. Another instance will take its place. There is no master.
Ahem. If it were a distributed system it would admit of upgrade.
-
@Tsaukpaetra said in WTF Bites:
@Zerosquare said in WTF Bites:
Either way solves his immediate problem.
But if @boomzilla dies, we all die.
Not true. Another instance will take its place. There is no master.
Ahem. If it were a distributed system it would admit of upgrade.
The issue isn't distribution, it's aberration in desynchronization.
One of the reasons the Borg hivemind may never truly be perfect, really.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
@Zerosquare said in WTF Bites:
Either way solves his immediate problem.
But if @boomzilla dies, we all die.
Not true. Another instance will take its place. There is no master.
Ahem. If it were a distributed system it would admit of upgrade.
The issue isn't distribution, it's aberration in desynchronization.
One of the reasons the Borg hivemind may never truly be perfect, really.
But we are not all @boomzilla. We are all @boomzilla.
-
@Zerosquare said in WTF Bites:
You gotta admit, it's pretty innovative for an online game to be single-player
It worked for Star Wars: The Old Republic, my favorite MSPORPG.
-
Was looking something up on the ISP provided router. Stumbled across the following:
Sweet. I feel so safe now - wouldn't want to have the router let those packets with the evil bit set get through.
Edit: Those were the options selected by default. No idea what they do. Would have to google the router's manual, but at the moment.
-
-
@Tsaukpaetra Pretty sure one part of the ISP added it to the UI so they could have Yet Another Feature to advertise, while the other part of the ISP completely gutted the functionality because the router literally can not handle it, especially with all the other crapware the ISP pushes.
-
@TwelveBaud said in WTF Bites:
the router literally can not handle it,
If my 20 year old router could do it, Shirley newfangled no Jay ess should too!
-
@Tsaukpaetra said in WTF Bites:
@TwelveBaud said in WTF Bites:
the router literally can not handle it,
If my 20 year old router could do it, Shirley newfangled no Jay ess should too!
wait wat the router is definitively running Node? oh my. oh my oh my.
-
@Tsaukpaetra Your 20-year-old router probably has at least 4 times the RAM, at least the same processor speed, and probably significantly less crap.
-
@Tsaukpaetra said in WTF Bites:
SPI
Stupid overloading of acronyms. SPI = Serial Peripheral Interface, not stateful packet inspection. Had to google.
-
@TwelveBaud said in WTF Bites:
@Tsaukpaetra Your 20-year-old router probably has at least 4 times the RAM, at least the same processor speed, and probably significantly less crap.
It doesn't have IPv6, sure enough!
-
@Tsaukpaetra said in WTF Bites:
It doesn't have IPv6, sure enough!
Surprisingly, the router in question does. And even more surprisingly, it even gets a IPv6 address from the ISP. Pretty sure this is the first time I've had a proper IPv6 address at home -- which of course means that I never bothered configuring my side of the network properly for IPv6. Bleh. Time to get on to that then.
-
Bleh. Time to get on to that then.
For some reason it's not nearly as easy as it should, in my experience. Took two plus days to get everything squared away...
-
Twitch Plays Technical Expert:
-
@izzion to be fair, it's more than likely that this kid has never used a CD in their entire life.
-
@izzion to be fair, it's more than likely that this kid has never used a CD in their entire life.
It was in the context of a Wii vs Wii U debate in a speedrunning channel. So I'm willing to bet he's used the odd game disc or three. But I suppose that those aren't CDs
-
@izzion all optical disks are CDs to me.