8,119 karma · joined Oct 11, 2011 (15y ago) · 2,990 submissions
152.
ABC yanks Jimmy Kimmel’s show ‘indefinitely’ after threat from FCC chair(cnn.com ↗)
651 points · by VikingCoder · 1y ago · 1070 comments
comment 1y ago · link · parent
"Server dependence: You need to host or use two different servers (Signaling + STUN/TURN). Can use Google’s STUN, but combining signaling and STUN into one server would be nice."
I'm curious about using Tailscale with this. I don't think you can just do Tailscale Funnel? But maybe you could? Maybe Tailscale Share, and the client has to also be on Tailscale?
I feel like they would go really well together...
Thoughts?
comment 1y ago · link · parent
I once wrote a program that opened up all of my code, and at every single code curly brace, it added a macro call, and a guid.
void main() { DEBUGVIKINGCODER("72111b10c07b4a959510562a295cb2ac");
...
}
I had to avoid doing that inside other macros, or inside Struct or Class definitions, enums, etc. But it wasn't hard, and it was a pretty sizeable codebase.The DEBUGVIKINGCODER macro, or whatever I called it, was a no-op in release. But in Debug or testing builds, would do something like:
DebugVikingCoder coder##__LINE__("72111b10c07b4a959510562a295cb2ac");
(Using the right macros to append __LINE__ to the variable, so there's no collisions.)The constructor for DebugVikingCoder used a thread-local variable to write to a file (named after the thread id). It would write, essentially,
Enter 72111b10c07b4a959510562a295cb2ac (epoch time)
The destructor, when that scope was exited, would write to the same file: Exit 72111b10c07b4a959510562a295cb2ac (epoch time)
So when I'd run the program, I'd get a directory full of files, one per thread.Then I wrote another program that would read those all up, and would also read the code, and learn the File Name, Line Number of every GUID...
And, in Visual Studio, this tool program would print to the Output window, the File Name and Line Number, of every call and return.
And, in Visual Studio, you can step forward AND BACK in this Output window, and if you format it correctly, it'll open the file at that point, too.
So I could step forwards and backwards, through the code, to see who called where, etc. I could search in this Output window to jump to the function call I was looking for, and then walk backwards...
Then I added some code that would compare one run to another, and argued we could use that to figure out which of our automated tests formed a "basis set" to execute all of our code...
And to recommend which automated tests we should run, based on past analysis.
In addition to being able to time calls to functions, of course.
So then I added printing out some variables... And printing out lines in the middle of functions, when I wanted to time a section...
And if people respected the GUIDs, making a new one when they forked code, and leaving it alone if they moved code, we could have tracked how unit tests and other automation changed over time.
That got me really wishing that every new call scope really did have a GUID, in all the code we write... And I wished that it was essentially hidden from the developers, because who wants to see that? But, wow, it'd be nice if it was there.
I know there are debuggers that can go backwards and forwards in time... But I feel like being able to compare runs, over weeks and months, as the code is changing, is an under-appreciated objective.
comment 1y ago · link · parent
"Epigenetics is the study of heritable changes in gene expression that occur without altering the underlying DNA sequence. These changes, also known as epigenetic modifications, affect how genes are turned "on" or "off" and are influenced by factors like environment, lifestyle, and aging."
comment 1y ago · link · parent
But I want the next thing. Which is like Tailscale2, but for people, not machines.
I want to tell Tailscale2 about all of the people in my life, and which of my self-hosted apps they're allowed to talk to. And if they're also running a self-hosted app, then I want our apps to federate together.
It feels like we're suuuuuper close to having this.
I get that you can basically do this with Tailscale. Basically. But I want the next thing to be designed from the ground-up around this kind of design. People, sharing apps with each other.
comment 1y ago · link · parent
"The Abyss" is about a deep sea crew that encounters ... aliens...?
And yes, in general, I recommend The Abyss. It's definitely not the same as Project Hail Mary, but it does have similarities.
comment 1y ago · link · parent
https://www.yahoo.com/news/u-n-nuclear-watchdog-says-0510491...
That's the whole article.
If we blow up a place filled with enriched uranium, shouldn't there be an obvious spike in off-site radiation levels, as the uranium settles to the ground?
Meaning, isn't this damning evidence that there was no enriched uranium?
comment 1y ago · link · parent
I'm definitely not a Docker expert, but I've become a huge fan.
comment 1y ago · link · parent
And then select one-meter square patches of land... and one-meter cubes of spots with bushes...
And then make a "Minecraft-looking" world, repeating the grass block all over the place, with occasional dirt and bushes?
I'm guessing I'd need some pretty beefy hardware to render thousands of blocks...
comment 1y ago · link · parent
I love C#, and I acknowledge Github as the king of source control.
I make a new Repository a couple times a week, and use Visual Studio Code to clone it, and open a terminal and "dotnet new gitignore" and then use dotnet to make new projects all over the place...
On multiple machines, even. On a VM on my NAS. On my Windows machine. On my Windows laptop. On a VPS.
And I'm happy.
But how in the holy hell am I supposed to share code from one repository to another?
I want to make VikingCoderLib as a C# library (classlib), and drop in all of my favorite Extensions for generics and strings, and etc.
And then make another classlib for some of my Protocol Buffer utilities. And another classlib for setting up a terminal.js console for an app. And...
What's the best way to do that?
Submodules?
They really seem to suck. I can't easily make changes here, and use them there, without it being a huge pain in the rear.
Am I doing this wrong? Am I missing something?
comment 1y ago · link · parent
What exact solar products (panels, battery, converter?) would I need to buy, near Chicago, to run one of these 24/7, year round, and let's say it's gotta be up and running most of the time - say, 99% of the time. (That means it can be down over 3 days a year, and still be acceptable to me.)
comment 1y ago · link · parent
I have a really, really dumb question.
Why don't we have more licenses and contracts like this? Do we just need to set up a foundation that drafts them and makes them freely available to use?
Like, for instance, "Hi, Mark - we'd like to offer you a job here at our daycare, but first we need you to look over this contract and sign it."
This contract says, roughly, that if there's an accusation of sexual abuse against children that it will go to a mediator who has final say, and if they say it was a credible accusation, that Mark immediately loses his job, and can never work anywhere that uses this same contract, ever again. Sorry, you lost your chance to work with kids. It sucks that it might have been a false accusation, but our kids are just far too important to trust to the existing systems.
Guess what? Churches should follow a similar license. Letting priests or pastors move from town to town, abusing kids? That was completely bonkers insane. And I feel like a contract like this (and a registry, and etc.) could have helped. If people forced their daycares and churches to accept a license like this.
Another one, "Hi, Greg. We understand we'd like your endorsement from our political party? Sounds good, here's a contract for you..."
It says, among other things, that if Greg switches political parties that he must resign from office. Sorry. He's welcome to run again, but he can't stay in office on our votes.
Like, shouldn't we have more contracts like this?