#programmers-off-topic
1 messages ยท Page 10 of 1
just first gotta mock like 16 different services for some reason
web stuff is painful to unit tests though
or at least blazor stuff
blazor unit tests break the moment any javascript is executed
gotta mock the javascript, in C#
Just un-Typescript the C#
we've ultimately just opted for just sticking with the end to end testing with selenium...
test some services we can test and just pray the components continue to work
would you be able to help with a NixOS issue im having? or do you only use it sparingly
I only use it sparingly, but i might be able to help
sorry just saw message, basically i cant boot do to bluetooth error
which is i guess common to happen? but not booting from it isnt
That seems wild, unless it's an issue in the kernel
Did you update something? Can you roll back?
possibly kernal
i cant boot past this so nope
(ignore messy desk cleaning slowly)
Is that just a coincidence tho
That doesnt look like a kernel panic or anything, just a general error
only thing i did was allow garbage collection to happen on boot, other than that nothing changed. it could very well be that, still learning NixOS
ahh ok, thats a bit of hope
(ive reinstalled Linux no less than 8 times already)
Ah. Yeah, without the garbage collection, you could roll back to your previous configuration change, but I think youve pruned that
can i like nano into the config from windows?
is it a dual boot?
yes different drives
That should be possible. Before you do that tho
While its sitting there, can you hit Control+Alt+F2
i tried, switching tty's doesnt work either 
Same 
I've seen it before where the prmopt doesn't immediately show up, but hitting enter makes it appear
its weird to have no tty at all tho
i mean i can try again, not much could go wrong that hasnt before
(bricked Linux a few times :3 )
everything i see online suggests switching to a different tty
I shall try
i cant say ive ever bricked a linux install before. I've created some kernel modules that crash and cause problems, and I've forgotten to install important things, but once its up and running I dont usually have issues
And it uhh randomly works again
Huh
.... That's Linux for me I guess
I'm so confused for like 12 hours it booted and stopped
Yep
I uhh have no words
This has been my experience with Linux
Breaks randomly and fixes randomly
You can run journalctl -b -1 to see the logs from your last boot, but idk if anything will really be useful
Meh last time I did that it was 800 lines and useless
yeahh
Now to learn Hypr land!
idk what else to tell you, unless theres some weird thing in your configuration that is causing problems at boot
maybeeeee, but its a bit odd
And I can't leave hypr land 
I forgot to check the keybinds if this config
Lol
Thank Gods for tty and nani
Nano*
i think control T is the default to make a terminal appear
Ooooo
I'll try that
Nope
That assumes you have one installed and set
actually, I think its set by default to open kitty, iirc
I need a keyboard that has names of keys... Like what is exec and return... And super
super is usually mapped to the windows key by default. return and enter typically indicate the same key. don't know about exec
exec is a hyprland thing, that means that when you press those keys it "executes" whatever comes next (usually a program or script name)
return is... return
The llm's, they're just like us
weeeeeee
lol thats fun
im trying to do stuff with my system and my kitty decided my arm is his now
it happens
Poor your arm; just accept you will get no work done today.
does anyone else jump around between a bunch of things? Cause I have about 4-5 mods i'm jumping between to avoid burnout on one or the other of them lol
I only jump to things I never jump back
yeah i have a few projects going at any one time and i move between them arbitrarily. it's not so much for burnout as it is to come back with fresh eyes, having focused on something else for a bit
1 week later im finally finished
Feeling euphoric
Now I have the urge to start another project lol
Hello, I believe I'm on the correct channel because I don't know how to speak English very well, but this problem finally appeared to me:
If you are making a mod, you will want to ask in #making-mods-general . If you want to install mods and play with them, you might want to ask in #archived-modded-support
OK thanks
ive switched to nano almost completely now
@dapper sinew You leveled up to Farmer. You're now a prettier shade of blue. Thanks for sticking around!
yay!
What the actual...
Finally a good OS upgrade for my W10 computer !
no tpm2 required
Whats the contribution guidelines for MSDOS
well it's already been archived
"please don't contribute"
I wonder, is someone free to update this mod? https://www.nexusmods.com/stardewvalley/mods/15123
I've tried getting on it myself but I have no knowledge at all and it's messy ๐
#making-mods-general or something, the -off-topic here means non-Stardew
Rust integration in kicad o.O
Cursed web dev stuff: I was just looking at Nexus after noticing a data sanitation problem, and they're using jQuery 2.2.0.
That version is nine years old.
Not only is mainline jQuery on 3.7 now, but there are multiple security patches for 2.2 that they don't have.
Uuuuuuuuugh
fun
ah but even better
jquery 4.0 is written in rust
or I hallucinated that
I might have
ah just the minifier
I don't want to check what version of jquery we're using in our old webforms application
it's 2 point something
oh
no, my bad
it's 1.10.2
11 years old!
the fact that google knew what I wanted is astounding to be honest
very impressive
the bevy discord has been discussing this post for like a day now
responses range from understanding to some people who are essentially the toxic community types this post talks about
there's good points in this mixed together with just being frustrated
it's a little funny to me that it ends by marketing their own game which seems to essentially be a rather mediocre vampire survivors clone
honestly it's a mixed bag of an article
A lot of the points don't really make actual sense or are very specific to some library or tool he's using
none of which are tools that have even reached a stable release yet
i think the main point of "Rust just isn't a very good choice if you want to prototype at all or actually release a game in a finite amount of time" stands
yeah the general idea behind it makes sense. Rust is not a good language for rapid prototyping
it just isn't and never will be
to what degree that means it's a bad fit for game development is a different question though
In my opinion this also mean that I can't see rust become as commonly used as other languages.
Sure its good at being robust, but from my experience as a professional dev, that's not what companies seeks in most cases.
I mean the industries where it makes sense are already using it
Yeah that's true, to me it looks like another Cobol case where company that needs it will use it, but it'll stay pretty 'niche' otherwise
rust is valuable in systems where the stakes are high, performance is a requirement and security issues can be a very signficant problem
or just programs that need to remain maintainable for a very long time
programs where the initial cost of development time is easily earned back by being more robust and easier to maintain once it's actually ready
the language is already hardly niche even today though
I completely agree on these.
This kind of programs probably represent only a very minor part of the global dev industry, but it's good that they have a language they can use that is not Cobol x.x
for game development idk, I guess depends on the kind of game you want to make
I mean rust is a great language to build a game engine on. But you might want a scripting system on top of that in a language that is more open to quick prototyping
Funilly enough I think Rust might be quite useful for a Vampire Survivors clone as performance is crucial to nail in this kind of games
vampire survivor clones are very common on the bevy discord lmao
Industries exist where that's allowed?! /s

I'm curious to see where bevy and other rust based game engines end up tbh. Bevy's end goal is certainly not where it is now. The UI thing he complains about here makes sense because the current UI system in bevy is essentially a temporary placeholder they're in the middle of replacing for a proper system
the editor hasn't been made yet either
it's a bit early to be judging it in some aspects
I wouldn't be surprised if the end result is an engine where most people don't even use rust
just like Unity doesn't make you program in C++
or godot for that matter
Makes sense! A systems language isn't exactly something I would think of as a first choice for game logic.
(That reminds me that i completely lost track of what happened after the Unity nightmare a while back, I might need to check how all of this ended)
It's... kinda acceptable now, but the trust is screwed.
That's pretty much my summary.
short answer: the existing versions of unity don't have the new licensing bullshit, the 2024 releases do
Yeah, so nothing new since I lost track of it I see
I would consider using it. Even Unity 6 with the new licensing stuff... if it didn't drive me mad no matter the licensing terms.
I don't make games but for some reason I keep a close eye on the development of a bunch of engines
It was a few interesting weeks to say the least when all of it happened.
I've tried both Unity and Godot, but I can't keep focused long enough on a personal project to be able to actually learn using one of those two.
Making mods is far better suited for me x)
I like the tech behind it and I can see myself becoming an engine contributor but I will probably never make a game myself
Isn't there a joke about rust having 999999 game engines and no games?
Fwiw, I see their point. But, otoh, I find rust in a way easier to write than python because the compiler will tell me off
there are actually rust games believe it or not
there might be fewer rust games than there are rust game engines though
I'm sure you don't have time cause u gotta mod
I'm spending my weekend stabbing a pcb with a sewing needle
sounds like a good activity
python just makes me feel bad when I use it so it doesn't matter how easy ti is
just feels like I'm commiting sins
I want my types
Ptoh I've been writing fpga code in fjcking LabVIEW
I'm about to throw fists
And rewrite it
you're the only reason I know labview exists
Entirely in verilog
I've got 300ns I cannot account for
Three hundred of them
Unacceptable
a whole 300 nanoseconds
(Yes, for some applications it is unacceptable)
Not much thermal mass in a typical cheap sewing needle... must be some small-scale soldering! 
Nah it's because they make for sharp probes actually
Smaller than fingers!
I've been struggling with getting oscilliscope input in labview too. Its been my weekend
What if we gave you the ability to add types, but we also just ignore them if we want
it'd be cruel
That's a question better suited for #making-mods-general
Oh, is it? Mb, thanks for telling me
man the thread in the bevy discord that spawned from this article is still goin. It's not at all about the article anymore at this point but it seems to have become long ass discussion thread
oh i read that article
This is incredibly cool
A demonstration of some of the internal programming and debugging tools we use at Tomorrow Corporation to make video games.
Our company website:
https://tomorrowcorporation.com
My personal twitter:
https://twitter.com/allan_blomquist
TIL (well, technically yesterday) if you want to get the number of tracked lines in a git repository, you can use
git diff --shortstat 4b825dc642cb6eb9a060e54bf8d69288fbee4904
And that'll give you the insertion/deletion breakdown specifically comparing head to 0th commit
After a talk about the two ways a value-type's constructor can be called in #making-mods-general earlier, I was curious if using a local vs making a newobj had a performance implication, so I ran a benchmark. newobj is actually oh so slightly faster, from the look of it? ```csharp
[Benchmark]
public void TestOne() {
int total = 0;
for(int i = 0; i < 1000; i++) {
total += DoSomething(new Rectangle(i, i, i, i));
}
}
[Benchmark]
public void TestTwo() {
int total = 0;
Rectangle val;
for(int i = 0; i < 1000; i++) {
val = new(i, i, i, i);
total += DoSomething(val);
}
}
I've run the test several times, and they're pretty much tied but TestOne always executes very slightly faster. An infinitesimal difference, really.
I feel like these should compile the the exact same code
The compiler could definitely optimize them into the same, but it does not appear to be doing that at an IL level. Maybe the native code is but the native code is at least slightly different and I'm shit at reading that, lol
well my test kinda failed cause it realized it could inline and completely delete the allocation of the object...
does C# have a way to enforce no inlining
it does
I'm surprised they aren't compiling to the same Assembly
I wouldn't consider sub 1 ns measurable tbh
it's easily within margin of error
even on an incredible stable machine with nothing else running
(A 3ghz machine has a clock cycle of .33ns)
So that is handful of clock cycles at bESt
With inlining completely disabled my example does indeed generate different assembly
https://godbolt.org/z/hEcnna9dx
using System;
using System.Runtime.CompilerServices;
class Test
{
public void TestOne() {
int total = 0;
for(int i = 0; i < 1000; i++) {
total += DoSomething(new Rectangle(i, i, i, i));
}
}
public void TestTwo() {
int total = 0;
Rectangle val;
for(int i = 0; i < 1000; i++) {
val = new(i, i, i, i);
...
really only two extra movs
not a conclusive test by any means
but yeah I can't imagine this ever making a measurable difference in practice
with a class instead of a struct they're identical
Interestingly with the class version it does not inline my simple DoSomething even with AggressiveInlining
it only inlines the struct version
Where are you sticking the aggressive inlinknf?
if you open the godbolt link you see where the NoInlining instruction was
for the struct implementation it's necessary else it just inlines my DoSomething down to four add statements and completely removes the allocation of a rectangle
the class version doesn't inline DoSomething regardless of what I put there
I don't have anything installed for C# on this machine I think so I can't really check further
I mean I'm at a Costco food court because I'm very dumb so
(Packed a lunch and left it on the kitchen counter)
It's monday
it happens...
though my office has a little "cafetaria" (a table with a few loafs of bread and toppings that you can grab from)
which is what most use instead of bringing anything
man this would be nice to have for modding
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.unsafeaccessorattribute?view=net-8.0
Very nice. Alas, .NET 6.
I do still wonder the feasibility of having SMAPI use .NET 8/9/future and running Stardew in that context.
Definitely tricker in terms of deployment at the very least...
What is the point of CreateLabel() if calling it like this does not work ```csharp
return new CodeMatcher(instructions)
// We want to find Game1.outdoorLight = Game1.ambientLight; so we can jump to the bit after it.
.MatchEndForward(
new CodeMatch(in0 => in0.LoadsField(Game1_ambientLight)),
new CodeMatch(in0 => in0.StoresField(Game1_outdoorLight))
)
.ThrowIfInvalid("could not find last branch of lighting code")
.Advance(1)
.CreateLabel(out var label) // create a label on the next instruction so we can jump to it???
// Next, we want to find the start of the lighting block so we can add a branch that skips it
// all, depending on our own function call's return value.
.Start()
.MatchStartForward(
new CodeMatch(in0 => in0.LoadsField(Game1_timeOfDay)),
new CodeMatch(in0 => in0.Calls(Game1_currentLocation)),
new CodeMatch(OpCodes.Call),
new CodeMatch(OpCodes.Blt)
)
.ThrowIfInvalid("could not find initial time of day check")
// Insert our call + branch instruction
.Insert(
new CodeInstruction(OpCodes.Call, assignOutdoorLight),
new CodeInstruction(OpCodes.Brtrue, label)
)
.InstructionEnumeration();
(I am considering this off topic because it's Harmony-specific and I don't wanna spook the people doin JSON)
Does createlabel not attach it?
instead you're spooking me, unbelievable
Is there a function that is like create and attach label
Crumble you're purple
Too purple to be scared away
I may have been here the longest of any person in the entire server but I can still be spooked
Ah, my dear atra, it's stupider than that. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at HarmonyLib.CodeMatcher.CreateLabel(Label& label) at Leclair.Stardew.CloudySkies.Patches.Game1_Patches.UpdateGameClock__Transpiler(IEnumerable`1 instructions) in F:\Code\Stardew\StardewMods\CloudySkies\Patches\Game1_Patches.cs:line 301
I completely guarantee that there is an instruction at that position. So what the hell is null
And CreateLabel is an out method. public CodeMatcher CreateLabel(out Label label)
Okay, do I just make a new ILGenerator instance and pass it in?
And I wouldn't expect that error if that was the issue... right? That doesn't just sound odd to me?
Or is it an optional method parameter to my transpiler?
ok technically the one who has been here the longest without ever leaving and technically is still in the server is Twisted, one of the original admins
Nevermind, I looked at the docs
chaining this many functions together makes me nervous, idk why
Thank you atra I never would have guessed that was the issue. Harmony docs and errors suck so much
it's called a fluent api aquo smh it's all the rage
back in my day we were proud of our semicolons
Me, a JavaScript dev: pfffffffffffffffffffffft you think this is chained function calls?
back in my days we defined callbacks in our callbacks in our callbacks
really though, fluent apis are really nice to work with most of the time
Excellent, fixing that label made things work.
Yeah wish the error message was better tbh
I know brainzz hates the fact that sometimes we need to touch the ilgen explicitly
And sometimes not
And it really isn't well documented
Tbh no clue how I figured it out (2 or so years ago)
I'm pretty dumb
Nah you're not
just cause u forgot ur lunch
No, this is how Brrainz/pardeike operates nowadays
Missing even basic validation
not ideal for a library
So what you're saying is that I have more validation in my mods?
undoubtedly
What does Harmony use under the hood? MonoMod?
That's going to be useful for my super early HC mods...
it's probably better if you stick to a library that's well known in the modding world
I think I probably ought to be able to manage prefixing and postfixing with MonoMod myself?
but it would be a nice challenge to make my own Harmony, definitely
changing the parts i dislike about the original
if the infix patches will end up being implemented the way pardeike wants to, i'll probably actually do it
How... how do they want to do them?
breaking transpilers basically
currently transpilers get the raw IL of the method
no prefix/postfix/finalizer IL
pardeike wants to implement infix patches in such a way, that transpilers would actually be ran after them
were you targeting some method call before, including some instructions before/after the call? it would be a shame if someone added an infix patch on that very same call
i'm looking at Harmony's code and... there really isn't much of it
just gotta pick a name that is thematically similar to Harmony but shows that it opposes it in ideals... Discord
perfect
what I ended up doing instead was writing a method that generates delegates that return field references to the object they're given
Harmony's AccessTools has a thing for that.
Shockah, I recommend Vulture for your Harmony replacement. Feels vaguely appropriate.
does it?
...or Seagull. Same kind of logging, swooping in out of nowhere and screwing with everything.
I stopped using it because I thought it was just glorified reflection
if it's a monkeypatching library it shold start with an M I think.
macaw maybe
Yeah, that would fit with the naming scheme now I think about it...
Meddler
Has to be a bird!
anyways this is what I ended up writing
public delegate ref TO FieldAccessor<TI, TO>(TI source);
internal static FieldAccessor<TI, TO> CreateFieldaccessor<TI, TO>(string name)
{
var field = typeof(TI).GetField(name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
if (field is null)
return null;
if (field.IsInitOnly)
throw new InvalidOperationException($"Field {field.Name} on type {typeof(TI).FullName} is readonly and should not be ref accessed!");
var dynMethod = new DynamicMethod(Guid.NewGuid().ToString(), typeof(TO).MakeByRefType(), [typeof(TI)]);
var il = dynMethod.GetILGenerator();
var throwex = il.DefineLabel();
il.Emit(OpCodes.Ldarg_0);
il.Emit(OpCodes.Brfalse, throwex);
il.Emit(OpCodes.Ldarg_0);
il.Emit(OpCodes.Ldflda, field);
il.Emit(OpCodes.Ret);
il.MarkLabel(throwex);
il.Emit(OpCodes.Ldstr, "Cannot use field accessor on null object!");
il.Emit(OpCodes.Newobj, typeof(ArgumentNullException));
il.Emit(OpCodes.Throw);
return dynMethod.CreateDelegate<FieldAccessor<TI, TO>>();
} ```
merlin...
oh, so it does. huh. didn't know about FieldRef.
well, at least now I have something that can do that without harmony if I ever need it
It does you can get field references
I don't use it personally but yeah
All done super it was salad with chicken on top
uh oh
i removed the drive of NixOS to tranfer it to another PC and now its not showing up on on either of my PCs as a bootable drive(ssd), i heard it was possible to do

was the bootloader on that drive?
does your computer see the drive at all?
yeah in BOIs it registers as SATAdrive
where are you looking for it to show up?
So what needs to happen is that in your motherboard settings, you point it at one of your drives to be the bootable one. Then on that drive, you have a small partition which has something called the "bootloader", which among other things, will let you pick which OS you actually want to boot up to. Given that Nix booted up on your other machine, I would expect it to boot up to Nix if you point your motherboard settings at it as the default. Depending on which bootloader you have (probably GRUB or systemd-boot), you might need to add some configuration to give the other OS as an option (I'm assuming windows)
thats the thing, its not showing up on the first PC either 
its like it was never there
doesnt nix also have a hardware.nix file

i would suspect you might have troubles if that's not updated correctly
So you put it back in the first PC?
yeah
and its the only drive?
I would go into your motherboard BIOS and see which drive its trying to use as the default
usually you have to reboot while hitting F2 or some key
(My theory is the bootloader is just on another drive, which is weird, because that's a very Windows thing to do.
)
That could be the case since I assume Nix was installed later, and it might be using Window's bootloader
idk Windows enough to know how to make it add an entry into its bootloader
hmm, it might be actually
since i dont think i saw a bootloader option when i did install
what does it normally look like when it boots up
like, what menu appears before the OS actually boots
enters Grub and i can choose between NixOS and Windows
oh so it is GRUB then
you'd be looking for something with an efi partition on it but that'd require being able to check the partitions
surely the grub partition is on the Nix disc
Personally at this point, I'd just be booting from a live CD/USB drive and looking to see what's going on with the partitions.
yeah
would Gparted work?
yes
yeah
thanks
can NexusMods please add a bulk mod details API endpoint pls
so i can stop doing this bullshit https://github.com/Shockah/Nickel/blob/shockah/update-checks/Nickel.UpdateChecks.NexusMods/ModEntry.cs#L54-L158
(it's also WIP and doesn't really cache yet)
it's also my first time ever using C# async/await
as a web dev that feels very surprising
which part lol
it just never comes up in game modding
games are very hard to parallelize
and i only ever do C# for modding, sooo
yeah it makes sense
but i guess i didn't get a chance to use Swift's async/await really either
but seriously, i have to do this stupid dance of requests now
it's interesting that in all these modding things I see in C# there's significant use of this while I essentially never see that used in my day job
ask for top 10 trending/updated/added, hoping to get some mods i need to check updates for, then try checking latest updates in the past month, but oh that doesn't have the version info, so i gotta do 1-by-1 checks ANYWAY
not great
it's not going to matter much in the grand scheme of things cause of the lack of bulk retrieval and all but you could in theory speed it up every so slightly by not awaiting the three tasks (latestAddedModsTask, latestUpdatedModsTask and trendingModsTask) sequentially but awaiting them together in a var results = await Task.WhenAll(new[] {task1, task2, task3})
because now it won't start retrieving updated mods till it's done retrieving the added mods
sorry for nitpick
unless nexus starts calling you names if you do three simultaneous requests to their api
h-how
I thought thatโs already what I did by splitting it like that?
I specifically wanted to achieve the thing you said
today has... not been a good day
hmmm I think you might be right. Apparently C# has a distinction between hot tasks and cold tasks... these would be hot tasks which means they run immediately and don't wait till they are awaited/started
still, it might be cleaner and show your intention more clearly to do it through WhenAll but it wouldn't matter (most likely)
could put some print statements and maybe sleeps in there to check
I guess for my particular use case WhenAll is fine. Iโm surprised thereโs no overload that returns generic tuples
So you could deconstruct the results back into variables easily
well they're overhauling the async/await system for .NET 9 so maybe...
we are getting an await foreach (var task in Task.WhenEach(tasks)) at least...
Ahaaaaaa
Thanks
Is there any way to get files from the drive?
If so I'll just reinstall
mount another storage device and just move the files I suppose
This is stuffed but I think I have a way
That seems harder to set up than the other methods, but at least you got then
Wake up Bae time to spend 30 minutes learning about obscure tech again https://youtu.be/TLm7Q92xMjQ?si=XUlzCKOUmS8525sg
When it's wet it wipes.
Links 'n' stuff:
The video I just did on stovetops:
https://youtu.be/ff04ecF9Dfw
Technology Connections on Mastodon:
https://mas.to/@TechConnectify
Technology Connections on Bluesky:
https://bsky.app/profile/techconnectify.bsky.social
This channel is supported through viewer contributions on Patreon. Thanks to the ge...
the drive was just not working with me
trust me, this is easier for me
a friend of mine will say the same as you lol
but i just cant sometimes with figuring stuff out
like physically and mentally
Hey this one isn't four hours long and doesn't leave me thinking about how weird the phrase "causing the ceiling to leak through" is, so that's something
Anyone know anything about Gradle plugins for Java and JavaScript? It's related to a Stardew mod I'm developing
little do i know about java, but gradle wasn't a type of compilation script available for different targets or something like that?
like "Make" and C
It does a bunch of stuff for Java
Currently downloading a Gradle plugin and trying to figure out where tf this readme wants to put the config block
which plugin?
This and smth else, but this is what's driving me nuts
The real reason to use a JetBrains IDE.
I need one but for insults
"Who is the dumbass who wrote this? Right, it was you. "
That's just the normal inline commit logs.
great extension
this is my favorite english one
oh man, that''s the vscode original which has a couple english ones which are pretty good
the intellij port one has some really good ones in chinese
Whoops, wrong chat ๐
Do I code my current project or start anew, choices choices
Neofetch has been archived 
I didnt realize the last commit was 3 years ago
Looks like fastfetch is the best alternative
fast
performance truly is what I look for in a tool I run once to flex about using arch
Do you need that info though
why do i have two IP addresses is the better question
Hollywood would cast that immediately
3 emails is my guess
And it might be limited to 3 and thereโs more?
Or same email, but different name, whichever way it correlates accounts
yeah i think i changed my git email at some point
Finally moved my home lab down to the basement, gotta get it set back up 
Hereโs my janky homelab. Iโm hoping to get a proper setup in my next upgrade.
No basement in my house, so it'll have to live in a corner somewhere
Iโm so glad I could get my stuff downstairs, my servers SCREAM
My house isn't even wired, so I want to get ethernet setup in every room
But now I have to run Ethernet and thatโs a pain
My apartment now is old and has coax so I have MoCA adapters everywhere lol
I had to use those before, they worked pretty well actually
My old apartment was properly wired though, so I'm missing that
may i know the stats?
The PC on the left is for running unRAID
I've never heard of that before. Servers are intended to be running constantly.
anyways if it works it works
its true
In fact, turning servers on/off excessively can increase the risk of failure
indeed
The main risk is overheating I suppose, but I have pretty good cooling and airflow, so they don't tend to run warm for too long
ye
Other than when they're under heavy workloads. Which isn't too often.
fair enough
But yeah, these things are always doing work for me. I have a bunch of self-hosted apps running so that I don't have to rely on Google or any of the other major corporate apps.
nice
I think my self-hosting journey started ever since Google killed off Google Reader which I was heavily dependent on, and I vowed to not rely on things out of my control like that again if I could avoid it
i have an old server for OLD pictures that my family likes
never plug a monitor into your server, ssh can sense fear
W
y'all have a very different definition of janky than me
Well, it's not a "proper" rack which is what I meant
my ""homelab"" is a just a pc case on the floor next to my couch and router
EVERYTHING is janky in my old ass server
W
mine at least has a little table to sit on
Double W
Mine is just a PC which is just slightly elevated from the ground
i have an old ass pc i converted into a server for files my family doesnt want to loose
I think my original server was an old laptop
you can do bios stuff from ssh?
oh never do bios stuff to a server
I had to update my bios cause it didn't support my cpu on the factory version
ima upgrade ma server to a 5600x and 32gigs of ram
and ima use it for bit of gaming too
Beautiful
wheres the problem?
oh theres no problem
extra space for cables
the bottom half is its entire own compartment under the motherboard
and the top and left right both come off, so its kinda nice
i do wish it had a better space for hard drives
two of them have nice little hot swappable bays
but the other two are just crammed down in there somewhere
same
My cases are cramped. I want something way more roomy so I'm not having to squeeze everything in.
well hey, have i got a case for you
i have a case with 2 harddrive spots and like 5 ssd slots
the case does have two optical drive bays, so someday i might get a hard drive adapter thing for there, but I cant be bothered
Getting ethernet to every room of my current house would be... yeah, that ain't happening.
it frustrates me to no end my apartment isnt wired for ethernet
Just buy like 12 really long Ethernet cords
And snake them through the house
Thatโs what my house does
Primary stopper for me is England. Walls. Brick. Everywhere. 
I've used those powerline adapters before
powerline... works
Isn't it generally fine for speeds, and just a bit of a hurt with jitter and latency?
eh, I had it set up for my girlfriends office and even then the speeds were dramatically worse than over wifi
Just on the walls with janky tape
Old houses here too
All brick internal construction is great for some things!
Just... less great for others. 
at one of my apartments, my bedroom closet with the network jack was through the bathroom.. So i had an ethernet cable run out of the closet, across the bathroom, down the hall, and finally into a space behind a bedroom door lol
If you have coax, the Moca adapters worked better for me than the powerline
Move then
Tbh powerline doesn't feel like it should work to me
Muh impedance control you know
You can drill into brick if you need
Yeah, that's one thing I prefer. So much easier to position things that need to go on a wall. No need to worry about finding studs, being limited to where they are, etc.
You know we have drywall screws haha
Tbh I'm very surprised that powerline works at all
It feels like it should not
Drilling light things into drywall is super easy
Finding the studs is only for heavy stuff like cabinets or storage hooks
love how almost all my walls are load bearing reinforced concrete I need specialized equipment for to even drill into
we've fucked up a drill before though trying to brute force it
Are you also European
yes, dutch
I will never forget the immense confusion I felt when I first saw a video from the US where someone punches a hole into their wall cause the only thing getting hurt if I punch any of my walls, even the non load bearing ones, is my hand
I've since learnt of the existence of drywall
we use it here too but I hadn't come across it before
though even that seems a lot more sturdy than whatever the fuck these people seem to have in videos where they damage their walls with a punch
Some people just punch kind of hard, itโs not that difficult to break drywall
rough change...
NOOOOO CUSTOM SHADERSSS
off topic
im a smart (trying to learn html and then go to javascript)
an expert web designer
truly revolutionary code
go to javascript
My condolences.
yeah ill probably perish but
i am prepared(i have the coding for dummies all in one book i took out from the library and an html and i think c++ beginners book)
nope css
If its from the library, I assume its from like 2005
im still gonna suffer but its nice ot have a ref guide to look thru
ope
actually
2022
the big book anyways
Well well
the other one is 2021
damn
this book might actually teach you the right way to do things and not float: left and float: right
That's not the right way? ๐
I learned web design back in 2016 and I swear that's what all the courses taught
Definitely more up to date than the last JavaScript book I bought. (I was like... nine? I think? I was an interesting child.)
I have that book too!
Also a matching Java one
The reader may note I know neither Javascript or Java
I know both.
I used to have a pretty good collection of various computer books, but I got rid of them one of my moves ago. I realize I probably wasn't ever going to refer to them again, and they were just taking up space.
They looked nice behind me on the bookshelf in my office though
probably because they still wanted to support internet explorer...
I have a few still. The standard C, C++, and Rust ones, one on Linux and Ghidra, I think one on Nim
Ye
Ah the purgatory that drags me in a couple times a year. It's actually really fun to play around with
Holy hell, I remember Sams books.
To be fair my "doesn't know Java" also fixes Java code on the AoC subreddit all the time so
me with python
Yeah, "not knowing" at a senior level is a lot different than "not knowing" at a junior level, lol
Internet Explorer try to let flexbox work challenge (impossible)
So glad IE died. Now we just need Safari to die.
Death to all web browsers that are tied to an OS's update cycle.
Ghidra is nice
Ah my other nightmare
At one point, I had to do web dev for iOS, but I didn't own an iPhone. Drove me crazy
Safari for Windows didn't translate well to Safari normal
Safari.. has Windows support??
There's an old version of Safari that you can download on Windows
Apple is somewhat inconsistent about it, but does sometimes offer things for other OSs
there was iTunes for windows or something
I think they killed it though
Yeah they killed pretty much all windows support pretty early on
At work, I refuse to do Safari support. I make other people do that.
If Apple wants me to make my stuff work on Safari, they should make Safari work on my stuff.
They do, though!
Your stuff just has to be Apple stuff.
I don't own so much as an Apple charging cable.
I can technically charge modern MacBooks and iPads. That's... about it.
I think most people own apple charging cables at this point
the usb-c switch has been so good
I can steal my friends cables now when I go over to play
instead of bringing my own
Thank you EU for forcing Apple to actually use industry standards.
GaN chargers are ridiculous, though. The fact I can charge my laptop using something about a quarter the size of a typical laptop charging brick is great.
But muh innovashuns... /s
The weirdest thing about the whole charger situation was they were aggressively usbc on the macs really early, then didnt want to do it on the iphone
They make a lot more money on charging cables for phones than they ever did on laptop/desktop accessories.
Kinda like how if Apple can't charge exorbitant developer fees, every iPhone will burn down to the ground with malware
Gonna love it when SiC hits
It would be nice if the EU would slap down Apple for geofencing their compliance with the DMA.
Apple and everyone else
It'd be nice if the US took a similar stance, and it seems like we finally are starting to
We've got way too much corruption in our politics to get proper regulations at a federal level. As long as companies can give politicians money... yeah, no, it's just not gonna happen. We've got enough problems with blatantly obvious things let alone anything with nuance that would negatively affect corporations.
Gone are the days that the government broke apart MaBell
so far apple has done a great job figuring the absolute worst possible way to comply with any regulations forced upon them
lawyers dedicated to figuring out how they can still be pieces of shit and still technically abide by some very disingenuous interpretation of the exact phrasing used in the regulations
meanwhile ipads have been using usb C for ages
it's all strange
I think part of iPads being the first to USB C is that they were trying to market it as a productivity tool, and the lightning port couldn't support some of the use cases they were trying to advertise it as
People were generally accepting of iPhones not having the higher data transfer rates because it's not too often nowadays that files are being transferred to/from it. It's all being synced to the cloud.
they've been marketing it as a productivity tool for so long while offering essentially no actual features you'd want in such a product 
My concern is that in 10 years we'll hate USB-C but be legally mandated to keep using it
Thank god they didnt do this 10 years ago and force us to keep using micro USB
But it has Stage Manager and floating windows now, so it's like 85% a MacBook. You know except for all the applications.
I actually had no issues with micro usb
๐คทโโ๏ธ like, I have issues with Apple same as anyone, but genuinely iPads are good pieces of tech
I tried a few different things during covid because virtual teaching without touchpad is shit
and the iPad far outperforms (tbf it's probably more than I need)
I have an ipad pro that I use for editing photos in lightroom which I'd say counts as something they would consider a valid usecase but it's extremely frustrating
I used to use it for marking up documents + Zoom teaching, I still use it for an electronic notepad + occasionally marking up documents
I use and iPad and it's perfectly suitable as the device that sits in-between my phone and pc needs
primarily due their lack of proper file system and their files app just straight up crashing sometimes with large files and just almost always crashing when usin smb network shares
All my micro-USB cables are super fragile
Like, web browsing, chatting, some apps, on a portable touchscreen
My ipad is perfect for drawing and reading things with lots of pictures, but I don't use it for much else
Maybe I just own super cheap micro-USB cables
I use a third party files app I paid for because apple's files app was just unusable
My ideal phone is the size of like, two business cards, so an iPad perhaps fills more of a gap for me
I don't have any issues with SMB on the Files app, except that it'll forget the connection sometimes
i dislike SMB in general tho and wish I didnt have to use it, but thats a different story
theres the zenphone
and uh
I have small hands and I want to be able to hold me phone
iphone se
I can access network drives just fine from the apple files app(other than the forgetting issue) but it just crashes when I try to actually upload a batch of my photos to the share
yeah i have a 13 mini or something
but it's honestly too big
used to have an se
they've stopped with the minis haven't they
Yeah :/
The problem is that I want the features of a "flagship" type phone, but those are all big
I briefly looked at androids too and it seems the smaller ones are all catering to cheap
it seems like every attempt any manufacturer has made to introduce a smaller form factor phone series never ended up sticking around
i think the iphone mini line sold dramatically worse than the normal sizes, so they canned them
I swear it's a conspiracy between phone manufacturers and women's pants pocket designers
yeah they did and instead they just made an even more pro edition
Phone go in pocket!! this shouldn't be hard!!
I'll just use my mini until it can't be fixed anymore and see what's out there by then
I should have several more years left in it
I like the idea of foldable phones as being able to be my smaller phone and a tablet, but in practice the fold is too distracting to me
I don't trust the engineering in foldable phones
everyone made fun of the duo...
maybe it's gotten better
but it's like fundamentally a terrible idea for durability
I drop my phone like 5x a day
I have large hands so I don't really mind the large phones even for me I wouldn't mind them just being a little smaller cause even I can't comfortably touch stuff at the top of the display with my thumb
nokia does technically make smartphones I think
I don't think my hands are even that small for an adult woman, it's just that I guess most people use two hands or something??
I can get behind foldables long before I get behind this thing
what is that??
the humane AI pin
it is bad
i'd rather have a smartwatch
Or this
and I don't actually want a smartwatch
that one is also similarly bad!
I'm pretty sure I would shatter the watchface
It's the first-wave of handheld AI hardware
I use a good ol regular analog watch
why would I want that
I have a phone
yeah that's the issue with these products
they're just worse at something your phone can already do
I used to wear one but it did not come out the other side intact
It doesn't fill a gap. It's trying to create a market where one doesn't currently exist.
I've learned anything that lives on my hands needs to be extremely durable
First and last
I'm sure someone will try again
I own a product from the same design firm tho, and you can tell, they look very similiar
Like "instead of silently searching for things on your phone, how about speaking out loud and hearing the response back on a speaker instead of a screen?"
Not to mention the rabbit thing is just an Android app, and hackers have already got it running on Android hardware
I legitimately don't think I have ever heard the ringtone of any of my phones
They've been on vibrate for as long as I've had smartphones
I do use media audio
though headphones in public obviously and even usually headphones at home
What the fuck
the rabbit r1
"Teenage Engineering" at work
Neither do I tbh
a 200 dollar very incompetent voice assistant
Their big product is the synth keyboard thing
I also have one of these, that they (clearly) designed
yeah it reminded me of the playdate immediately
the difference is that the playdate actually has a selling point
its true, i would much rather recommend the playdate over the rabbit
it's a gimmick but at least it's something
the rabbit is just a worse voice assistant
no games just a very unresponsible scroll wheel and a touch screen that's disabled for anything except the virtual keyboard
i suspect they'll update the scroll sensitivity
that just seems weird
theyre a big fan of analog controls tho, and i admire that
but the issue is that the wheel protrudes beyond the rest of the chassis so if you put it down somewhere it scrolls the wheel
maybe include a back button tho
i feel like half their issues couldve been solved with a second button
honestly that describes a lot of the minimal design tech in recent years
a lot of tech products could've been a whole lot better if they'd just had some actual buttons
sure love that they're trying to sell these touchscreen interfaces as a futuristic fancy innovation while they're actually cost saving measures
i not insignificant reason i chose my car is that it has actual dials and buttons lol
yeah I've heard a lot of cars nowadays have big touchscreens
Absolutely no touchscreen
clicky buttons all the way
it's fine for like, on screen keyboard for satnav
mine also has a touchscreen, but its used where it should be used
I used to use "my phone dumped upside down in a cupholder"
I think i technically can use the dials for everything, but some stuff is better with touch
but after a couple years I decided I could upgrade to a phone holder
so no touch screen just to adjust the direction your ac is blowing in?
something we've had a very competent solution for for a very long time
aka physically changing the direction
At least not until cars have achieved flawless self-driving
thats what the passenger is for
I don't/can't drive so the car woes are not something I experience
i think its possible to control the climate with the touchscreen, but ive always just used the physical controls
something I don't expect will ever happen
i dont want self driving even if they offered it
I think it's still awhile away, but I still expect to see it within my lifetime
i did learn how to add my car's stats to home assistant tho
I like the idea of taking an overnight roadtrip across the country while I sleep
since they gave me that stupid free trial i didnt want, I guess i'll put it to use
ignoring the fact they're grabbing that data at all
I just did a 12 hour roadtrip last week (and another 12 back), and it got me thinking, I wish I could overnight this
I like my trains and buses I've felt little need for a car
12 hour roadtrips 
I could reach italy in that time
Not sure where you're from, but I could drive 12 hours and be in the same U.S. state from start to finish
And because of flight prices, it's more economical for 3+ people to get into a car than for each of them to buy tickets. (if you don't factor in the value of the added time)
and that's despite flights probably being a lot cheaper than they should be
I try to avoid flying but it's often just not an option to
I was looking at trains in Europe and it makes me so jealous
I don't mind flying, in fact I'd prefer it to driving, but in this case I wanted to save some money, and I had a lot of things to bring to and take from my destination, so having the car space helped
Trains every hour to even smaller cities
If only America had high speed trains, that would be nice
We have likeโฆoneโฆsort of
every hour I feel should definitely be the absolute bare minimum for essentially any train service
Every major train project across America has been in development and funding limbo
Like they pour millions into projects that stretch a fraction of the promised distance
The CA high speed railโฆI want itโฆ
yeah the US' history with trains(not counting freight) is pretty bad
it'll exist... eventually
meanwhile china was building train networks to places that don't exist yet
China was building entire cities with 0 population
crucially all a "was" but hey...
Someday I want to take the Taiwanese high speed rail down the length of the island
It's good in that it stimulates their GDP, but also unless there is upkeep, the cities could fall apart before anyone ever uses them
Iโve taken the Shinkansen and it was really nice
being able to just step into a train here and be walking around in the center london within 4 hours
and that's counting the passport checks and security
Are we now trains
Thereโs so many places it doesnโt go
Yes
This is #trains-off-topic
Didnโt you know? ๐
the dutch train network is quite good but also insanely expensive
unmatched in price by no one other than the swiss, who earn a whole lot more than we do
The Swiss trains look really nice
I have riden swiss trains. I am now here with my expert opinion
Are they in fact nice?
I have technically been in switzerland I am an expert
Iโve only watched YouTube videos about them
they were pretty good
This should be programmers-off-topic the channel where programmers discuss anything and everything
idk if they were uniquely special
I'm not actually sure I've seen any moderators in this chat
You guys let me in despite me not being a real programmer
oh wait
DH
Heyyyy if youโre not, Iโm super not
you guys let me in despite having no idea what sdv modding even is
as I stare in horor at contentpatcher
its sdv moderating
Nobody is a real programmer, we're all just faking it and no one has noticed yet
Computers are just an illusion
It is a nightmare
Case in point: Leah is just broken and i have no idea why
solution: rewrite leah in rust
You expect me to believe there's a magical box that does math using electricity and it can make images and sound happen. It's all just magic.
smh rust strings aren't that bad
Awww i think itโs nice
Just make all the bots into LLMs trained on the previous bots. What could go wrong?
Yes
Insert rust strings meme
We hit drops of water to flatten them
Next thing you're going to tell me is that you can make sand do math with some chemistry
Tbf, I'm definitely not a real programmer in the traditional sense. I study alternative computing lol.
Oh yeah its great! It just scares me everytime I try to understand what's happening
they do math so we dont have to
I'm just horrifed by json being used as a programming language
yeah, should've used yaml at least 
Why not program in .ini?
time to go back to xml
I have a colleague that'd be very excited about that
I know nothing about the guy other than that he loves xml
and that he's polish I suppose
po(xm)lish
poxmlish
XML is too expressive, we should be programming in csv
Please Matt
Good point, definitely should use an IDE like Excel
If you don't program by rearranging individual electrons
You aren't a real programmer
Iโm going to need much smaller needles
Powerpoint! 
I am very behind but having caught up with the conversation, all I have to say: give women better, bigger pockets in our pants, dang it.
I write HTML for my day job that is more than enough XML. No one is allowed to use XML for anything else.
I love dealing with imports and exports at work from excel files where everything explodes because dutch and english use a different decimal separator and excel is culture dependent
Hmm annealing machines are pretty close to that
I love dealing with excel deciding random shit is a date
next thing you know excel is interpreting numbers as epoch timestamps
Women should have pockets, and men should be allowed to carry purses without being judged
Sometimes my pockets are all buldgy and stuffed, and I wished I had another method of carrying my things
Backpack too big, maybe I'll bring back the fanny pack
I extend the pockets of all my clothing
I recently learnt that /> doesn't actually do anything in html other than for the contents inside of an svg as per the spec
Honestly yeah, normalize people having bags. There's so many useful things to carry with you.
My EDC is so limited just having pockets to put things in
I have a backpack with me at all times
phone is in pocket though and stuff like keys and cards are in my jacket
I carry a messenger bag most places, but itโs very freeing to only have pockets
I used to do a messenger bag, but it didn't feel good on my shoulder
It is, but phones and pockets being what they are ...
On days when I go out without a bag, itโs much easier to walk a long way
I use my winter jackets for pockets
I always have a backpack
when I don't have my backpack on my back while outside it just feels horribly wrong
like I just forgot something crucial
I've gone on a lot of walks with a backpack on my back despite nothing being in it and me not buying anything just out of habit
I used to wear a coat everywhere solely for having coat pockets
I also extend my pockets
I'd die without a coat 95% of the year
I struggle in summer every time as I try to figure out where to put my cards and keys
cause they live in my inner jacket pocket normally
keys are uncomfortable and lumpy in a pocket
Opening a tiny PR on someone else's repository is way scarier than it should be
Any .NET developers here? Why does .NET break when an dll is symlinked?
are you getting this error?
The managed DLL bound to this executable: '<original-name>.dll', did not match own
name '<symlink-name>.dll'.
A fatal error was encountered. This executable was not bound to load a managed DLL.
You must install .NET to run this application.
App: /home/jh-devv/.local/share/Steam/steamapps/common/Stardew Valley/StardewModdingAPI
Architecture: x64
App host version: 6.0.27
.NET location: Not found
Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=nixos.24.05-x64&apphost_version=6.0.27
If the DLL is symlinked, I get that
would suggest checking the .net core framework via environment variables but the issues are deeper than that
.net is very inefficient and unoptimised
symlinks are used in windows/.net tho
but theres no built in api for it 
you need to create symlinks using the CreateSymbolicLink method
also could be an issue that youre on x64
the only working symlinks ive seen are on x32
windows spagetthi code
Yeah, you need to make sure it's an actual symlink and not a shortcut/alias or whatever, there's a difference
JS bad, TS good. I'll die on that hill
Please refrain from dying on any hill involving JavaScript in any way.
if I find Javascript on any hill I'm leaving
my hills only involve typescript, I'm safe.
I don't think there's any reason to learn vanilla JS in 2024 when you could just learn TS instead
why hurt yourself
Because you should know what your code compiles into?
Got it learning python bytecode
tbh the biggest bottleneck to people "learning Javascript" is the culture around learning a specific library instead of the language. Typescript is mostly fine by comparison
imma learn BEAM bytecode
that's actually a really good point
honestly I resent it for being so convenient to use some of the time
One of these days I need to completely revamp how the smapi website frontend is authored to allow for TypeScript + Vue + UnoCSS
smh Vue is old news it's all about uh... htmx I think unless that's now also no longer the cool kid
I guess it really depends what you're targetting... All of my configurations compile to ESNext which has all the fun new features so it's basically equivalent to the TS but with name mangling and a bit of rearranging
We need a native dark theme and I need to fix the mod compatibility page's performance like I did the log viewer
Yeah. Some of us aren't allowed to target esnext.
yeah, completely fair. Most of my frontends that I design are for robotics tools or stuff like that so I don't have to worry about browser compat
I have a project that gets warnings whenever I use anything beyond ecmascript 2016
I'm also the person maintaining my company's UI framework, so I can personally keep it up to date lol
that project also still uses jquery 1 though so ecmascript is the least of its problems
as a user, I like safari

