Better HN
topnewbestaskshowjobs
Log inSign up

VikingCoder

8,119 karma · joined Oct 11, 2011 (15y ago) · 2,990 submissions

Submissions

comment 1y ago · link · parent

Sorry, I thought you were going to end your line with "McCarthyism".

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

Think you used enough dynamite, there, Butch?

comment 1y ago · link · parent

If it's ipv6, I think that's true. If it's ipv4, then you still have problems. They could be behind NAT or worse, CGNAT.

comment 1y ago · link · parent

You specifically mention:

"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

Many different ways to do it. Back in Visual Studio 6, this was the best way I could come up with!

comment 1y ago · link · parent

I have counter-points to several of these... But this one is my favorite (This didn't go very far, but I loved the idea of it...):

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

Check out epigenetics.

"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

Right, other than financial pressure. Which is, of course, immense.

comment 1y ago · link · parent

Right, but that doesn't work when I have a hundred friends, and they each have a hundred friends, and etc.

If I "Share" nodes on my tailnet with a hundred people, it's way closer to what I want.

comment 1y ago · link · parent

No, thanks. I want to limit the number of people I share content with. Not broadcast to the world.

comment 1y ago · link · parent

So, the thing we have right now is Tailscale - and it's freaking awesome.

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

If you want to do something several hundreds of billions of times per day, you probably want to do it very efficiently.

comment 1y ago · link · parent

The Abyss is a movie by James Cameron, who also made Terminator, Terminator 2, Aliens, True Lies, Titanic, and Avatar.

"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

This is like if Project Hail Mary and The Abyss teamed up to write a headline.

comment 1y ago · link · parent

"The U.N. nuclear watchdog says there's 'no increase in off-site radiation levels' after US strikes on Iran nuclear sites"

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

Because now I can use their Docker image trivially. They can also trivially use their Docker container on multiple computers, multiple VMs, multiple VPSs. They can Docker Compose it into other Docker images they're setting up, too.

I'm definitely not a Docker expert, but I've become a huge fan.

comment 1y ago · link · parent

Can I run around with my phone, and capture some Gaussian Splats of... grass... bushes... dirt...

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

And set up my own nuget repo?

I want my code to be private...?

comment 1y ago · link · parent

I hate that you're almost certainly right.

It feels like there should be a good way to have a dotnet classlib in one repository, and use it from others, but it just doesn't feel like they fit together the way they should.

comment 1y ago · link · parent

Please help me figure out the best way to share code between Github repositories...

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

It doesn't work on any of my 3 Windows machines, all completely different hardware. Jank factor 100% for me. I wish I was seeing what you're seeing.

comment 1y ago · link · parent

Some jokes I saw on Reddit:

He is to be referred to as, "Da Pope."

"Ketchup to be banned in the Vatican."

"He's going to replace Communion Wine with Malört."

comment 1y ago · link · parent

So if I bought the $58 one from the Wikipedia Store...

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 wish they were standardized and freely available.

comment 1y ago · link · parent

> Er, yes, that does sound bonkers; where are you that every school, church, and daycare isn't already doing a background check on every single person working there?

Someone has to be convicted for something to show up on their background check, yes?

comment 1y ago · link · parent

I think these licenses are incredibly useful.

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?

comment 1y ago · link · parent

Tailscale is another neat way. You can have ephemeral nodes. I want to learn how to do it with Docker, but apparently it's not too bad.

comment 1y ago · link · parent

I'm one of those idiots who would rather write an engine than a game.

I'm cribbing from LambdaMOO and Inform 6.

1
567
100