#programmers-off-topic
1 messages · Page 95 of 1
honestly I'm learning here you can even put an enum inside of a class
I have refactored out ClassName.Flavor to a not nested ClassNameFlavor before tho
to be fair
Just cus private Flavor Flavor has cursed shadowing effects
I also have a very different code style from you too 
Also to be fair, crumble
Despite being very enum happy
I can also function in a world that just uses bytes
I've been reading generated code today
bit flag enums only
Chu and I are just code incompatible and this is why we always just scope creep each other instead of PRing each other
301 through 307 are all redirect status codes
New quote added by atravita as #6632 (https://discordapp.com/channels/137344473976799233/1215712021207720006/1417280044400644229)
Lol
rename it FoodFlavour or something
at some point I forgot enums can exist outside classes, I thought you were all advocating for a static class EnumPile 
why are y'all putting enums inside classes
that way I can have my private Flavor RequestedFlavor for my order placing class, or PreferredFlavor for the class of regulars
(There are times when I want free standing functions)
I put them in the same namespace sometimes but
enums usually represent specific options in an SDV asset or something, so I'd rather it just be inside that
(in the contexts around SDV)
"this enum was made for this class and therefore it goes inside it" is my reasoning
like nesting a struct
which I've also never done
it's like nested classes for cases where it's really only meant to be used inside the outer class
though that pattern's probably weirder
You have no clue how many items I threw when I realized I couldn't use an enum for my state machine because I needed Volatile lol
🌈
the volatile keyword... exists
that's where my knowledge ends
I have never seen it before in any code
Yeah I've never used it
It's something to do with multithreading, and/or other situations when you don't want the compiler to optimize away get/set when it "wouldn't be necessary", right? (At least in C++)
it's something with threading that's all I know
Yup
Rust Atomics and Locks — Chapter 3. Memory Ordering https://share.google/cfDXic5pAnphC6Qcj
I've worked plenty with threaded code but always with locks, semaphores, concurrent data structures etc
the C# ref page for volatile is mostly "here are things like volatile but better, please don't use volatile" 
but i guess it causes optimization changes for multithread-besieged fields
it definitely falls in the category of "my PR would get rejected if I used this"
I want free-standing constants tbh
My current solution is to just make a static class with global using but man... I don't get why we can't have them
yeah, some of my code is still really tangled around a static "properties" class from ages ago
though I've finally started messing with better formats
all my projects end up with static classes that are just a big list of public consts
I'm fine with still needing using, but like, why can't I just do PI instead of Math.PI every time
Java at least had using static
Well. There's also MathF.PI tbf
C# has using static
Yeah, that's where using comes in
it's like math but more F-y
Okay maybe I'm confusing java and C# again
if microsoft let me have #define i will write entire methods in there and it's probably a bad thing
You mean like literally every C/C++ developer (especially pre-constexpr)
Also it took me way too long to realize Math.TAU was a thing. Previously I was just multiplying pi
which it'd then do during compilation most likely
crumble u never seen the full list of puffermojis in this server?



I know that one
this one I did not
i feel like
is perfectly normal then
I'll accept it even though I have no idea what it implies

Conditional Compilation my beloved
(I used to abuse it so much to turn up and down logging)
someday I'll try Zig
with its comptime that people seem to love
Just run practically arbitrary code during compilation...
it does seem kind of incredible
Just slap a keyword in front of it like "oh yeah do this ahead of time during compilation thanks"
and that's that
Makes sense
As in 10 is 10 or go 5.7346
If the later, it can't be stored as a floating point number because accuracy is important, 0.1 + 0.1 + 0.1 must exactly be 0.3 and not a tiny bit extra
Let's do farthings again
Then again the IRS pretty much rounds to the nearest $1k a lot 
The ez solution is just have more inflation and then just drop cents/pennies entirely
In Australia we got our penny equivalent removed ages ago and all prices must have the cents be a multiple of 5 (59.95) and that if paying in cash/coins then the total transaction value rounds to the nearest multiple of 5 (though electronic payment is optional rounding)
In unrelated, purple asparagus
In the us the smallest unit is technically mils, which are 1/1000th of a dollar and that's usually what's used for financial calculations. We just don't have denominations that small so consumer-facing stuff is usually cents instead
Yeah, I checked. So it is possible at least somewhat to have fractional cents
Hmm
Tbh I have no clue how this works
Oh the history of the stock market is...interesting
Apparently stocks used to be quoted in 1/16ths of a dollar
You'd think I would know this shit lol.
So, the actual answer is whatever I bought was rounded to the nearest cent
No idea how fractional shares play into that. Tbh I haven't thought that far
I used to do the former, moved to the latter, then gave up and made myself a static logging helper in my current project 
in Debugger I have a scuffed static logger with vague attempts of maybe making it thread-safe ish?
I dont think it fully is though
it's not
thread safety is for people who aren't willing to pretend everything is single threaded
Debugger isn't single threaded, each client connection is running in its own thread
anyways my youtube has now started lecturing me on dehumdifiers so I should sleep
and I made the audio stuff in SpeedySolutions multi-threaded but forgot to turn its logging off so that blew up
and therein lies your issue!
sinz, I've always just logged shit from other threads fine
it gets interleaved and sometimes looks funky but so far I haven't blown anything up
it used to be On My List to look into zero allocation/thread safe wrappers and then I gave up
it straight up crashed smapi.io/log and breaks profiler site wanting its uninterrupted json blocks
(there was a lib I was considering. It was net 6.0)
well, writing json was your problem.
the solution is clearly to stop making mods for the current version of the game/smapi
in Winforms it would have been fairly easy to force it to resync on main thread, but I don't know how to easily do it without those synchronization contexts or whatever
oh XNA has a utility for it? sweet
it's internal but nothing a little publicizer won't get you
the internal one has less checks but there is a public one
those are both internal in whatever build I'm looking at
Stardew Valley, Version=1.6.15.24356 (I'm now really at risk of being on topic)
actually this isn't a fair comparison, for whatever reason the version of MonoGame.Framework my ILSpy has loaded is from SpriteMaster post GeneratedPublicizedAssemblies
ok now my version agrees its internal only
I kinda wish there was an async/non-blocking variant for this, as I'd want the log to fire and forget and let the off-thread resume what its doing
Was looking at this
that would require me to maintain my own parallel log file though and then I don't get the benefits of having people use pathos's upload infra
Is it not possible to mangle it into using your logger instance
Yeah custom appender is possible
(Me too but I was over simplifying. I’ve used a Log.Info type thing for ages)
Just use non blocking sockets!
the DAP library I'm using wants Streams
there might be a nonblocking TcpListener variant though to save on one thread
Every time I’ve done sockets I’ve used non blocking
Like there was a selector or something in SFML that I didn’t use because it was intended for blocking sockets
(Or maybe I did use it after I learned it worked fine for that?)
For the tcp listener I threw it on a thread and when a connection was received, sent it straight to a queue for the main thread to worry about and do handshake stuff and whatnot
Literally avoided threading as much as I could because I didn’t want to figure out anything beyond mutexes
(To be fair, this was pre-c++11 when there was nothing standardized for threading)
looks like there are async variants of the key methods I need which would turn it from a thread problem to a task problem
(So a library like SFML was the only option for cross platform ones, and non cross platform APIs usually were more complex)
but without a syncronization context the tasks wont be guarenteed to return back to ui/mainthread
Like, to this day I don’t know what a semaphore really is (my OS class in college was during one of the semesters my mental health was collapsing)
I should be trying to be sleep right now though
when I hear semaphore I think railway signalling, but I forget what it fully meant in that context as well
Semaphore? More like she-a’-snore(-ing)!
(Good night 😛 )
https://github.com/SinZ163/StardewMods/blob/main/Debugger/DAP/DebugAdapterManager.cs#L40-L92 I was fairly lazy and took a basic bitch example as I wanted it to work at all and focus on the hard parts
(Yes that was terrible, I’m aware)
(shouldn’t semaphores be in concurrency classes)
I got semaphores in boat signaling class
why were you in boat signalling class
Why were you not in boat signaling class
yeah why weren't you
-# why weren't you at elf practice
I only know semaphores from puzzles
Why were YOU not at boat signaling class
I missed the prerequisite classes
Because I was at railway signalling class instead
railway signalling is fun, though modern systems are starting to replace them with stuff like CBTC (Communications-based train control) or ETCS (European Train Control System) to obsolete the need for actually line of sight signals next to the tracks
Ngl the fact that modern flights still primarily use radio is a bit...scary
the main reasoning for modernizing it for trains is higher density trains, and can trivially automate the driving of the train using it (though all the other stuff the driver did on the event of a fault or other issue become problems with the driver now missing)
it's preferable over smoke signals
we learned some train signals at driving school for the 'car broke down on train tracks' situation
airports have other factors bottlenecking flights than the radio system used for ATC
well, more like 'how to get attention'
"damn there's a car stuck on the track but there's no signal so I guess it's fine to continue"
trains go real fast, and visibility is not always in a straight line
trains work by being a very low friction environment to be extremely efficient at moving heavy loads
that also means they can't stop quickly
you have to go along the tracks, preferably with someone else also going in the other direction, and [i forgot this part beyond 'wave something colorful']
yeah of course I assume the signal more than just waving next to your car
usually by the time a driver has line of sight of an obstacle, its too late
its just about going along the tracks im afraid. i dont remember the specific signal, i could look it up if this ever happens tho i hope lol
these days trains here almost never intersect with other forms of traffic
the few that remain tend to be quite old
pretty much every case of train automation I know of has a prerequisite grade seperation with everything else first
and is a factor of "metro" vs "railway"
and places that have both keep those tracks separated for the most part
it gets a little confusing here sometimes
when they intersect with other types of traffic they'll be trams though which are a lot slower obviously
I don't think line signals will be completely replaced by ETCS and CBTC, since they also serve as a good backup, but yeah, modern systems are very handy
I do remember there still being an intersection between train and cars/bikes in Utrecht
redundancy is always nice for something that needs to be reliable
In melbourne Australia the classical signals get turned off when CBTC is active and the new "metro tunnel" afaik is CBTC only operations.
though only a subset of the line actually has CBTC active and the train driver transitions to use the signals again outside of the CBTC region
How do I know this? My train was stopped on one of these crossings for like 2 hours before rolling back to Antwerp
Yeah, I've read about that
I'm not entirely sure how widespread that kind of adoption will be - more of a global north thing at any rate.
India still uses line signals, and that'll remain the case for a long time because of the sheer scale of the railway
so we have a suburban railway that for a small section is level 2 automated metro that transitions back to being manual operated, in addition to our tram network which is the largest in the world
... Although India also still uses brakevans for redundancy, so make of that what you will
(Trains all have fitted brakes, the brakevans are for extra braking power, I guess.)
I'm assuming the entire electrified network will get it eventually, but the main issue is only the new trains actually have the CBTC stuff installed, and would need to get it retrofitted to the existing fleet, and we have freight trains and the occasional preserved steam train run on the network
What do you mean "backwards" 
ancient train infrastructure
You will be haunted by that cow
we'll move the cow first
You move the cow? You move the cow like Miette? Jail!
Nah but seriously that trip was atrocious, I got home at like 4am instead of 11pm
...well, that's not how it works here!
(I'm not sure there was a dedicated concurrency class - and a big part of this was implementing those things on like a barebones linux kernel type thing, so you understood how they worked)
(Also included stuff like filesystems if I remember right)
I just learned about class libraries
they're very good for organizing your project
there is the far more cursed thing called a shared project which, instead of compiling as a separate library/assembly, compiles directly into the assembly of the project that uses it
oh no
I'm a bad person though
I have used one once
I abuse this property. 😛
My mod shared project has a Log class with a static field for the logger, and so every mod has its own copy with no extra work from me
What? Stack overflow isn’t allowed to change, what were they thinking
If they’re gonna change something, they need to change the attitude / policies towards asking questions
There's something even more cursed: you can make a nuget package which directly adds loose cs files to your project.
(not a source generator)
... what?
Yeah I found a guide for it the other day
that sounds like forbidden knowledge
The guide opens with something along the lines of "you can only do this by manually creating a nuspec file" which is how you know it's good
I haven't even looked at a nuspec file in idk how long
.avif is a nice format
on another note, I think it's becoming dire that I start doing some memory profiling on governor...

I need to figure out the best way to profile a long-running python program, at least get an idea of what object is using all my memory
I'm trying tracemalloc now, it's... eh
Currently it's telling me the json decoder is the most... but I barely use json...
I wonder if its those pesky modders causing this
I've never had wild berry poptarts
They tasty
much to all of our regret
Fun fact
I apparently got the Google AI so confused it showed me a video on how to make a push in git when I asked Google how to model a pullup resistor in verilog
(I knew there was syntax for it but I forgot how)
i didn't know you could find berry poptarts in the wild.
test
I liked the maya, I might switch back to it
I thought it looked like claire, but it is zoey, well done
i know the two characters look 99% identical but i was 99% sure it was claire
It's very hard to look at pop while on the stairmaster
I mean
It’s very hard to survive on the stairmaster
Anyone willingly getting on one must be already be teetering over the precipice to insanity
I'm very insane
should i go back to maya, i'll let you pick
very well
the spirits are calmed. all is as it should be 😌
bad news, im on trial for murder again
all is as it should be 😌
@lusty steeple Hi, head to #1272025932932055121
this channel isn’t for Stardew

hi why on earth does date parsing with the culture set to InvariantCulture use the American date ordering
I'd have assume an ISO standard interpretation
Americans are invarianr
(fixed a bug at work)
05-07-2024 was being interpreted as 7th of May
dumb
it's not like it uses American logic for the time cause InvariantCulture does use the 24 hour clock
0/10
Why does it take 2-3 business days to transfer money between banks 
it doesn't here
takes a minute
can do it at 4 am on a Sunday
huh
it's been a thing for ages but apparently as of January this year the EU actually mandates banks to accept instant transfers
from the 9th of October they'll also be required to offer instant transfers themselves (at no extra cost)
So here it Depends but the actual transfer doesnt true up for 2-3 business days
Like, when I transfer money from my normal bank to my brokerage, the brokerage actually will let me place trades with it immediately, but the money doesnt leave from my checking account for 2-3 days
a lot of places still have warnings about that here but I've only rarely actually experienced it happening, and when it does my bank shows me the actual balance vs the "pending" balance after pending transactions are cleared
Yeah, that's every interbank transfer here
Unless it's two accounts at the same institution (instant) (and they keep buying each other so)
Some banks just let you "in effect" have the money early
american exceptionalism at work
Pcb design...not safe for kids
definitely not
they might get into custom PCBs for mechanical keyboards
they'll be cursed to spend all savings on keyboards they won't use
I thought making pcbs involved toaster ovens
Deep fryer actually
what the fuck
is nothing safe from AI
AI can't even use a keyboard this is ridiculous
(to be clear. This is on the landing page of keychron right there as headline marketing)
it was either that, predictive text built into the keyboard or a chatbot that types for you - this is probably the least bad option
I wonder if AI liked how the Keychron felt to type on
I would probably agree with the AI. But I would also agree with it being ridiculous, as I think even people who do like using AI would agree that it isn't always right
“okay now show us the prompt”
As someone who owns like 8 Keychron keyboards, I do think they're the best bang for the buck, but I'm actually not using one anymore
AI knows...
👉 In short:
Typing on a Keychron feels solid, tactile, and responsive with a noticeable “mechanical” presence under your fingers. The exact sensation ranges from smooth and gliding (Reds) to bumpy and confirming (Browns) to clicky and snappy (Blues). The case and keycap material amplify this—plastic boards sound sharper and lighter, while aluminum-bodied ones give a deeper, more premium sound and firmer feedback.
On a semi-related note, now that I've built muscle memory on a split keyboard, regular keyboards feel wrong to me
i have turned into an ortholinear person, which makes typing on a classic stagger keyboard (read: every keyboard) feel just awful
Oh god Razer BlackWidow was my first mech, and by today's standard I would hardly consider them a contender for best, let alone top 10
Razer BlackWidow are like the Beats headphones of mechs. Probably one of the most recognizable names, but not one for the true enthusiasts.
I started with a Ducky One
I do think keychron is probably one of the best prebuilt keyboards you can buy that isn't ridiculously priced
but the marketing...
What's extra unfortunate is that I use my ortho/split at home, but a regular keyboard at work, so it makes me less effective at work. I was bringing my keyboard to/from the office everday, but it sort of became a chore to set it up everytime
I think I just need more ortho/split keyboards. I'm not addicted.
I have two zsa moonlanders just to also have one at work
I love my ZSA Voyager
I use a Wooting at work, and their Mod Tap support is awful. When I do Home Row mods, it reverses the order of any key that has a secondary function.
Like s being alt makes it so that when I type test it outputs tets unless I slow down my typing
I have one of the original wootings partially cause it's a dutch company so it felt nice to do
never really liked it though
my keyboard journey:
Dell office keyboard -> Ducky One -> Wooting One -> Keychron K2V2 -> ZSA Moonlander -> Glove80 -> ZSA Moonlander
My journey was Black Widow, a few Keychron, Corsair Rapidfire, Wooting, and ZSA Voyager
my first mech keyboard is an ikbc, and even now I still recommend it as a brand with one of the best quality/price ratio
I paid $2 for a keyboard in 2020 and it broke my mind about how much a keyboard costs
My current keyboard is a Keychron with some random SA keycaps I found... somewhere I don't recall.
Taking membrane keyboard to another level, those.
if you want the polar opposite of a price competitive keyboard there's always just about anything produced by Norbauer
The Seneca is goddamn incredible. … might be the best computer keyboard ever built. … It’s certainly the nicest keyboard you can buy. The Verge Plasma ceramic and titanium finishes First Edition is offered in three aluminum finishes (Oxide Gray, Travertine, and Heatshield), along with a lavish Veracity Titanium option.
3k and not even a numpad 
with that price I expect a personal handshake from the founder
Who is this even for
to be fair. the creator themselves has said he does not consider it a good value proposition
a lot of this is high quality especially designed engineering invented for the creation of the keyboard
it's aiming for perfection at the cost of any sense
meanwhile it does not support QMK, ZMK, VIA or really any good way to customize it so it's essentially worthless to me
collectors and enthusiasts. The same kinds of people who would spend a ridiculous amount of money on a really high end watch
i love when a keyboard runs QMK and you can just make it do whatever you want
there's no functional reason whatsoever to ever buy a grand seiko watch or a high end rolex or whatever but for some people just the craftmanship and engineering that went into it is worth the cost
of course this would not be bought by people who just want to have status/seem rich unlike a rolex or grand seiko
so not entirely the same
i completely understand where the norbauer is coming from: having a really high-quality device sparks joy for me, even if it doesn't make it "better" in terms of performance characteristics
however, the level of perfection chasing in this case is a bit too much for me
if I were rich this would be the kind of thing I'd buy
precision engineering
what is very disappointing about this is that he figured out a novel way of designing stabilizers for big keys like the spacebar but they patented it so no one else can use it
gotta wait for the patent to expire like we did for cherry mx switches
Yeah I think that's kind of the thing for me. I enjoy when I can have well-made things, but mostly that focus is on ease-of-use and longevity.
The guy who made this just did a video with adam savage discussing it, it was interesting
My general rule of thumb is this: if I want something, I'll buy it cheaply. When it breaks, I'll consider a better version
This $2 keyboard has yet to die
Ie - I have a set of dirt cheap knitting needles ($20)
I also have, only in the sizes I use most, expensive Chiagoo knitting needles
I tend to buy goods on the higher end of prices
unless it's something I don't really care about but just need for whatever reason
then I just try to find a version of it somewhere that isn't some drop chipped shit from alibaba
The running theory is that
- If I dont end up using something, buying cheap was the right decision
- If I do, I will have more informed opinions after the first one breaks anyways
Like, my full set of knitting needles is very cheap
The sizes I use most are the ones I spent good money on
if money is your main concern that's a good way to go about it
I just don't want my money to be going to these cheap mass produced goods that are driving the actual quality versions out of the market so I tend to try and find those
I'm perpetually broke so unless something is on a steep discount or the upper end of the price range is still affordable, I always buy cheap or used
Oh, and I also dont have to worry about things being drop shipped from aliexpress if I'm just buying from taobao anyways 
😌
thankfully a fulltime software dev salary when you're a single dude without pets leaves a fairly strong financial safety net
(You're also not American, lol)
The American system is.... you need to have your retirement fully funded before you retire, and the earlier you start the more compounding works in your favor
while investing extra in your retirement is definitely not a bad idea here, retirement is mostly something that's just part of your employment contract
if you're not a freelancer anyway
if you never had a job and never saved for retirement you'd have to live from the state pension which is less than minimum wage
oh never mind it's roughly minimum wage
wait no
ok yeah it's far less than fulltime minimum wage
I prioritize certain luxuries, like investing in a good bed earlier on in life will benefit you later on with better sleep and less back issues
Having a bed that just works isn't doing you any favors now or later on in life
Similarly, ergonomics can be important for things like keyboards if you spend a lot of your day typing
lol speaking of beds I coincidentally found this brand the other day that goes for no less than five figures
https://www.hastens.com/ca/
one of my fav pastime is looking at obscenely expensive stuff and imagining what it’s like to own them
like browsing through zillow
Some investments don't pay dividends in money, but through reduced pain or higher quality of life
If you subscribe to the belief that your time is finite, I'd rather enjoy certain pleasures while I'm younger and more capable
(That said I already do maximize my retirement investments, so all of this is coming from a privileged position that I'm able to do that while still splurging on things from time to time)
I haven't done anything for my retirement really
You're not an American
Fwiw, I dont find more expensive mattresses or more expensive desk chairs valuable
But also my posture isnt shit so
We were discussing this at work - i dont even use my backrest lol
How's your sleep quality?
Otoh, I both have a home gym and a gym membership so
(To be fair to me, the home gym costs <$100.)
Fine 😛
the real cost of a home gym for me would be making myself actually use it. So far every burst of enthusiasm I've had to exercise lasted at best a few months
at worst, a day
I have a home gym, and it took me 2 years to really get into the habit, but I'm pretty good about putting in my time now
what should i imagine when you say home gym
Adjustable dumbbells and a weight bench i got for free
I don't have space for a full gym so I use a cable-based system
But the one I chose is pretty versatile in that I can do full-body workouts
I need to make a deadlift platform still
I live in a small apartment to the point where my fridge doesn't fit in the kitchen and my desk is in the living room
For cardio I'm a full believer in good running shoes
I love walking but running is genuinely one of the most miserable things to do to me
Yeah, the room I have my "home gym" in isn't dedicated solely to that. I cram a few things in there including my 3d printer, a little wall-mounted desk, and some storage
not aided by the fact that like 9 months of the year I'd have to run in the dark
The other thing I should add is a pullup bar
Fwiw, my setup fits in about 6 feet by 4 feet
I don't have a free space that large lmao
(Not including 20 mile running trails, ofc)
They have pullup bars that work in door frames
I have one of those
Yeah if I wanted to break the door frame lol
yeah I stopped using it cause my door frames didn't seem to be a fan
P90X also gives you some resistance exercise options using only a door frame
My home gym preference is definitely adjustable dumbbells
One day when I have more space I'll get a barbell too
Until then basically all my leg workouts are done single leg because you can only load so much on a dumbbell
my exercise is mostly just regular walks not much else
(Hence the deadlift platform being next up.)
This is my home gym
Was the cat included
Yes, the cat is an important part
One brain cell
I don't have central heating, so every room has it's own electric heater in the wall
Which I mostly just turn off because I like my place to run cooler anyway
pretty sure central heating is required by law here for it to be legal to live there but I'm guessing the netherlands is a colder place than where you live
Yeah, I mean it does get below freezing here but only slightly
I lost power in the middle of winter for a week last year, and survived just fine with extra blankets
Central heating is less common in older buildings in the US
Idk if Netherlands just decided to require retrofits?
oh definitely yeah
Any form of cooling is practically non-existent where I live which sucks in the summer
my apartment is from the 1950s
Don’t you live in one of the few parts of the us where it isn’t absolutely miserable without AC? (PNW)
I get some days in the 90s where it's pretty insufferable
I’ve spent summers a lot of places in the US and most of them are awful without AC, PNW has like a week of bad weather
often for stuff like this you're just not allowed to sell a home until you fit new requirements (like central heating or energy efficiency targets)
PNW is mostly fine for most of the year, but the 1 or 2 weeks where it's not are pretty awful
I do agree that one week sucks but Maine has that level of bad for like 2 months
I mean I've lived in Texas and California, and both had more harsh summers, but I also had access to A/C so it was a non-issue
It’s kind of astounding how different the same latitude on both coasts
PNW... pacific north west
You must be built different lol
Like Texas had 100+ most days of Summer, and I barely noticed because I just stayed indoors
oh damn maybe that's not wrong
I'm pretty sure Duke also lacked AC at least once when I went for summer camp
And I was okay
AC used to pretty much not exists here and the government still begs us not to install it due to its environment impact but it's getting more common
Keep in mind this is nighttime
They were sleeping in stairwells for a bit of relief
There was no AC anywhere in Maine except one classroom building
my office has AC so that's nice
my uni definitely did not
universities aren't even open during the summer tho
at least ours
Yeah it's peak summer camp time tbh
It also occurs to me this was a while ago, right?
Summers have gotten worse
My students (south of Boston) without AC couldn’t sleep at night this past summer
summer camp to me sounds like a thing you send your 12 year old to cause you don't want to bring him on your holiday but presumably that's not what you mean considering this is about uni
(Or engineering summer camp)
Nerd camp
Also for high school (and middle school) nerds
ah
Here is one worse
No AC. Chongqing. China. Summer
I did go to a study camp once when I was 17
Awful
Isn’t it humid there too?
I learned all of (American high school) calculus in three weeks at nerd camp
I remember going to a summer camp once, and somehow winning a pizza, but I don't remember what for
Yup
At a different camp we had the best brie and pear sandwiches
I think I drew a picture or something
all I remember from my study camp is the guys sneaking into the girls' sleeping area and hiding some girl's stuff
idk when we studied
@pliant snow do you accept governor PRs
and can I write you a PR to add a feature that automatically repins the modded tech support rules every time they become unpinned
how does something become unpinned
discord is stupid
and automatically closes ALL posts after a week, including pinned ones
which then unpins them
You know you probably could've stopped here
except it isn't actually all posts btw it's super inconsistent and we've tried several times to figure out what the logic is and never did
incredible
some posts stay open for months. some get auto closed. we don't know why
the rules post has unfortunately been fairly consistent at getting unpinned, when I was doing more tech support I would repin it once a week and at other times, other people try to, but often there's nobody who happens to catch it
it's me I close them
wow you must be dedicated though
very
Did you guys know Nepal just elected their next leader via discord
I did notice a funny thing when I went to look just now...
The most recent post right now, set to the maximum possible.
Global for the channel as a whole... is this?
I have no clue and will never have any clue
forums are more cursed than most discord stuff and that's saying something
I wonder if that inconsistency in the settings is causing weird things?
And for that matter what's setting the longer period on posts. Maybe Governor?
yeah, that's my main question
I don't think the inconsistency would do anything because as you may have noticed if you tried matching them, there's actually no "don't ever automatically close the post" option 
What gets unpinned?
Not so much unpinned, but hidden for inactivity.
Because we're not allowed to set longer than a week, and being pinned does nothing to prevent it.
Hidden from where though? The channel list, or the forum post list?
Forum post list specifically. Which I know is weird, because the setting doesn't even read like it controls that.
So either it's inaccurate, or something else is unpinning it on occasion.
And I have seen pinned forum posts stay in the forum lists in other servers without any sign of them doing anything
What would be the point of pinning anything anyway if it only lasted a week
That's a sensible point, but Discord often doesn't see those. 
in one of my other servers we were having an issue with permissions were users thought they could pin things and it would only show up in their view, not realizing it affected the entire server. could that be happening here?
it actually does get fully unpinned in the process, annoyingly enough
no, most users have no perms and it happens weekly
Ah, so maybe a bot unpinning and pinning it again every day or something would help?
it doesn't get hidden btw, it gets thrown in the closed posts list
or just routinely checking if it's pinned and if not repinning, whichever of the two is more reliable
what's the point of having a pc-only feature where you can "reply" or "react" to pfps, and it gets sent as a DM with some automatic text... I stopped assuming discord logic makes sense 
I was honestly shocked to realise they recently made a GOOD decision regarding permissions (and pinning, actually), where they finally separated pin perms from manage messages perms
...still no individual thread pin permissions, but we can dream
wouldn't want people to truly properly set permissions
stop talking about discord permissions while i'm trying to ignore discord permissions
Discord is full of tiny dumb decisions (like "hey, here's some stuff you wanted ignored/blocked"). The sum total is pretty wild
How goes crimes?
I'm looking at the source for the translation class builder and I don't see any asset interaction in the code. the readme doesn't mention it either. the package targets file seems to have a related property in it, but as far as I can tell it's unused
I'm just realizing you said "asset", not container
I was thinking of
<TranslationClassBuilder_AddGetByKey>true</TranslationClassBuilder_AddGetByKey>
(Used in satchels)
I'm in the process of converting my main PC to linux. Just curious what the Linux folks like to use as a development environment for SDV mods. Last time I used Linux I was all-in for emacs. I've used VSCode, but not really loved it. What's the debugging experience like? Do you get the same nifty decompiling stuff as in Windows+Visual Studio?
if you're comfortable with emacs i would just use emacs
Well, you'd need to have the context that I last used Emacs during the Reagan administration.
well, i'm sure it's still more or less the same, so there's that
if you want an IDE i think Rider is more or less the option
And editing is the easy part - what's tricky is autocomplete, intellisense, debugging integration, test integration. None of that was a thing back in the day.
I read that Rider was really tailored for web development.
and i don't use any of them now! (i'm a dinosaur)
you can have hot reload (which i do use) on linux with dotnet watch outside of an IDE but it's finicky
DH will tell you that Rider can do either hot reload or an attached debugger but not both at once. i wouldn't know
It's on par with Visual Studio there -- (VS won't let you do hot reload unless you launch the process from the IDE)
Rider has been subjectively a perfectly fine drop in replacement for VS (after Microsoft killed it on Mac)
Yeah, I found Rider to be much better than VS for Mac
VS for Mac felt like a cheap knock off that used the same branding to trick people into using it
VS for Mac makes slightly more sense under its previous name of xamarin studio
I dont remember the last time I had hot reload work, but I also have Just your code turned off among other things
Everything errors, from the beginning of every file in that project
Lately it's also been crashing if I try to hot reload a function that is anywhere in the call stack
And like an hour ago it started doing this
I assume this is somehow related
clearly you need setup ContentCode to be doing JIT harmony patches to what you are currently working on

Possibly related as well - when I have to restart VS (because sometimes when closing a program it will get stuck? and can't write to that DLL anymore - been an issue for years, unreliably) that project is unloaded entirely
It's very strange
Really annoying when I'm tweaking things to try and get it working
(This code isn't even actively running at the time, either - like, the DLL is obviously, but this function is definitely not in the call stack)
Already tried a "Build > Clean"
(And/or stop any new frames from rendering, despite it clearly running still based on when I pause it and step through and what not)
(But now I can't hot reload at all, so...)
Sorry, all development budget went to putting in chatgpr
I did setup vs2026 and have enjoyed the minor reskin
...you know, I've been getting this warning about my VS version being unsupported recently
Did they get made I ignored it and activate sabotage mode
(Oh wait, I did update that already)
(...maybe that has been causing some of the problems?)
I haven't tested to see if vs2026 can finally do the memory dump stuff again
I guess I'll turn off my computer tonight and tomorrow see if the restart fixed my hot reload woes
I haven't watched the video but the still looks really cool!!!!
pretty much all of vs2022 couldn't and I had to go back to vs2019 to have a reliable memory dump experience
(Sorry. I have been nerdsniped)
I recall having memory analysis on stardew on vs2022
(Well, there shouldn't be a gap between that grass 😛 )
But I'm also dumb and old and dont recall
Well, according to everyone I know who has a yard, keeping the grass nice and neat is hard
Anyways
Guess I'll ship it
Because of this and me being dumb when trying to do the backwoods map data in Tiled I didn't get to do the cool feature I had in mind to work on tonight
I'm really enjoying this YouTube channel I found
My computer's only been on for a little less than four days this time, but if I'm lucky restarting will fix it
But that's tomorrow casey problem
Please just stop hating me VS
I use copilot more and more at work bc there’s pressure to develop faster, and I’m sad because I prefer doing it all myself
red flag from the company's side...
but been there
being pressured to develop faster that is
also being told to try AI tools to be faster
ironically where I work now the security restrictions are so tight that I now can't use stuff like copilot
They gave us copilot keys a while back, but ive honestly turned it all off
Yeah, my company has granted everyone in Technology ChatGPT licenses while at the same time doing 10-20% reductions every year and expecting productivity levels to stay the same or rise. There is definitely an expectation that AI is what will make it happen.
And I won't discredit AI for areas it has made certain things more efficient, like summarizing emails and responding to them. But it's in actual engineering and deep thought that it isn't making much of a difference.
I used to feel like it did a lot for me but after a honeymoon period I just kinda stopped using it
My team is operating at less than half the capacity relative to when this all began. And it turns out 1 developer + AI != 2 developers
I used to have 12 people on my team, and now it's 5
fwiw the guy who worked here before me wrote a functional called "VerifyRemoteCertificate" and when I checked inside it was just return true
no AI necessary even for that
lol, that was exactly what I replied with when someone sent that ^ in another server.
To make matters worse, my company provides reports to leadership about how much everyone uses ChatGPT, and puts people into categories of high, low, none at all, etc.
And because I'm pretty self-sufficient, I was in the low category. I have to artificially do BS prompts so that I'm at least an average user.
you get judged if you don't use AI enough?
Yes
I will pray my current scenario persists for as long as possible
I decide what I work on that day myself, no one is haunting me about progress, everyone is happy with my productivity
no real deadlines
still surreal to me
I feel like my colleagues who've been here for like 20/30 years don't truly grasp how abnormal it is
That sucks I'm sorry
I hope they don't actually look at what I'm using ChatGPT for because I just prompt it for random things for no reason
my confession is that I use chatgpt a fair bit as a javascript question machine
I ask it to rewrite my emails
googling javascript stuff is a genuine nightmare
Here's what I want to say, make it sound better
I'll also paste emails and ask it for what's important
"should I care"
pretty sure my security officer would beat me up if I told him I paste company emails into chatgpt
Since this is Enterprise, all data is supposed to be private to the company
Like I don't believe they're allowed to train on anything I submit
hmmm
Yeah, it says it on the footer "OpenAI doesn't use ____ ChatGPT Enterprise workspace data to train its models."
"this writer is good but isn't opening the thesaurus enough so we must punish them" style thinking
for somethign completely different...
I've come to the unfortunate conclusion that I really love the windows terminal font (Cascadia Code)
I have it installed on linux...
I gave that one a shot, but I'm too used to FiraCode Nerd Font Mono
I like that one but it just ain't as good to me
Maybe I need to give it another shot
I recently started using Helix as my main code editor after seeing some discussions here, I've been liking it so far
Recently converted from NeoVim to Helix and tmux to zellij
I use it sometimes for python!
I've switched to helix as well and honestly after the initial hurdle i haven't had too much issues still using vim keybinds in visual studio alongside it
The language I use ChatGPT for the most is English, because otherwise I can come off as abrasive at times
I have a very stupid question though that I just have no figured out the solution to
there's a few situations in helix where you end up with multiple cursors like some bulk edits or stuff like space + h
but like
how tf do I go back to 1 cursor without grabbing my mouse and clicking somewhere
Luckily I'm mostly internal and internal can handle the snark
there's ; to cllapse each cursor to 1 character but you still have x number of cursors...
I'm still learning so I've been referring to this cheat sheet https://kapeli.com/cheat_sheets/Helix.docset/Contents/Resources/Documents/index
Maybe split selection on new lines and then keep primary
Its ,
it never registered to me that the cursors would be called selections
Ive kinda just settled back into neovim, although i stole some of helixs binding and plugin ideas
if that line had said Keep only the primary cursor I would've found it ages ago
I've been on this and other cheat sheet websites many times
I have been going back and forth since I still use VSCode for a lot of things, and the Neovim for VSCode extension is really good
I've been using helix for all web dev stuff and still visual studio for back end work
I do a lot of server admin stuff in the terminal so Helix has suited me well there
the bad syntax highlighting in svelte files has bothered me a fair bit
I've been tempted to build helix from source because it's actually fixed already in the main branch
with their release schedule the alternative is waiting till january
it breaks more than just syntax highlighting too
it might be worth compiling from source
Closes: #14180
Source of queries: https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries/svelte
Before
After
or I need to figure out how to patch this specific PR
it might be possible
I think they're separate files
How about no
Let's see if VS still collapses trying to hot reload after a computer restart and VS update (the latter I did for a different issue - the C++ compiler was just dying on a macro with an internal compiler error)
It did, but, uh... I don't have nullable enabled
Oh that's probably just from a float? not having a value actually
Seems like it'd be more pain than it's worth when working with a big codebase that doesn't use it either (SDV)
but that's getting dangerously on topic
to be fair I've been too lazy to do it on new standalone projects too, but there's no excuse there
you just really like null reference exceptions
i need to figure out how to make the header bar on my stupid website bigger on mobile
this is not a mobile first web page
Have you considered pretending mobile doesn’t exist
time for you to discover media queries
I think the last time I did something like that I did something very stupid
Like keying off the width of the page stupid
Note this was more than a decade ago
you'll be happy to know that's what media queries are and are still the standard
Isn't there a way to get like "is this a phone"
Not with css
I was in a ducking Django site too so that was possible
nope
The server can do it by reading the user agent string
Yeah. But I was the laziest and just did smth stupid with css
you do have a fancier option nowadays with container queries but even that still ultimately boils down to doing something based on the width. Just the width of a container instead of the viewport
I mean tbf this is not how you're Supposed To Do It but nonetheless was fairly common in the early years
So if you made your screen tiny all the text and buttons got bigger
For little fat fingers you know
Anyways
You can also use ems or rems in a lot of places which helps
<-- is not a web dev
Also makes it more accessible for people who can't see well
<-- isnt a real dev anyways
for one application (I think the self checkout?) we had dynamic font sizes that would adjust to fill the given space instead
don't even remember how that worked but I think it was container queries
I also did a janky night mdoe that literally swapped out the css
The entire css
That i wrote by hand btw
Why is everything a browser nowadays. Self checkout does not need to be electron /salt
don't worry this wasn't electron, it was just a legit full screened chrome browser
😌
Brb getting free groceries via xss attack
the simple answer tho is that the options out there for non web UI are compartively quite shit
lmao well the self checkout was quite stupid (in a good way). It didn't handle any of the validation/verification logic itself
IDK, there's a few options
though if you somehow gained access to a keyboard at the self checkout you could definitly pull some shenanigans
Avalonia is popular in c# land, and I've been tinkering with Slint a bit lately and it's quite nice as well
I do want to try more UI frameworks
avalonia was never happening at that job because avalonia isn't owned by a gigantic mega corporation which made it too risky and scary
Swift is xplat too I think though admittedly I know little about it
Swift is what
idk either atra
Cross-platform
oh
Taylor Swift is but I wasn't aware Swift wasn't 🍎
only native ui frameworks I've really used beyond a toy project are WinForms and MAUI neither of which I'd recommend to anyone
Oh yeah there's also qt and gtk
the classics
I remember when I toyed with the idea of attempting to integrate https://www.noesisengine.com into Stardew to make UI easier. 
they use the word blazingly so you know it's modern
Huh, hadn't heard of that before
seems to be for game UI which isn't exactly relevant to anything I build but it is neat
Seems useful though. Game ui tends to be a big blind spot for both gui and game libs
Godot is like the only engine I've ever used that has half-decent gui tools
all of my text is just a set font size, which looks a bit goofy on mobile, but idk if i care enough to change it
Which is crazy considering you can't make a modern game without it
I'll give the person who fixes it one whole level
I can probably fix it
just slap in a media query changing some css stuff at a max-width of 768 px because everyone copies the arbitrary sizes bootstrap chose 200 years ago
hey now, my computer monitor in high school was 768px
I know there some... thing you can put into your header thats supposed to do something about mobile idk, but it always looks ugly as sin when I try it
a thing in your header that does something
I still like pretending mobile just doesn't exist.
I usually can
thats what im doing, and its working well
The browser mobile preview thing never seems to really reflect what it actually looks like, and I cant start a dev server on my phone so i havent been bothered
the web applications I develop for seem to almost always boil down to interacting with massive sized tables of data which is completely unusable on mobile regardless of what you try to do
so I can just always ignore mobile
tablets however
every once in a while we'd get a bug report because someone apparently somehow used our application on an ipad in safari and we never tested the thing in safari
it already barely worked on chrome and barely functioned on firefox
idk how they were even achieving anything on safari
There was a different c# ui thing I was looking into at one point, besides Avalonia
Uno?
Talked about it here, probably have it saved in my notes
WinForms
HTML+CSS?
FIgma
MS Word UI
microsoft access
Actually my notes are phone accessible now, let me see if that’s one I moved over
…I never tested this
testing is for cowards
Tbh my obsidian auto sync is also borked
But I'm doing this for work so it needs to stay on work machines anyways so my give a ducks are low
I'd get hunted down by my security officer if I set up syncthing on my work laptop
My own notes are now in obsidian backed up to our local company gitlab
Crumble
Do I do anything personal now
Anything
yes
My personal notes are actually in my JournalIt
is the knitting for anyone else
I'm starting to realize I keep portraying the security officer at my job as a very violent dangerous man
he's a nice guy he just does his job
Oh the knitting
I'd never want to be a security officer or anything like that
your job is basically to annoy people with more restrictions and guidelines
Cat tax
Cutie
nearly 16 years old
her sister doesn't have quite as much of a baby face
I’m using the git plugin on desktop, and a separate app on mobile.
To be fair, the great security people aren't there to annoy people, it's to make everyone more secure.
And nieve policies that just annoy everyone don't make them more secure because it pisses them off and find workarounds to keep doing their job
There was a great deviant talk on this
Can you believe that Tarah and I had never given a presentation together on a stage like this before? More about Tarah's work is here...
and she is tarah@redqueendynamics.com
...we've very frequently been speakers at the same conference when we've both been invited. We've even presented back-to-back before, ...
to be fair I think he does it well, the thing is that we are part of IT and IT has the most to actually do for security compliance
which often isn't fun work
A good amount of that talk would relate to IT security compliance, but a lot of ways companies implement their policies to address compliance stuff do it in a more aggressive way than is required, like computers locking after 60sec of idle or whatever
<insert hatred for requiring password changes every 3 months>
The standards don't specify a time interval just a vague phrase about "reasonable" or whatever
thankfully none of that for us
Hot take: yubikeys
Those are the physical things right? No thanks
But I love adding known suffixes to my passwords.
One day I will finally migrate to appending the current quarter (Q2FY26) as that suffix also will naturally change every 90 days
most our more annoying compliance things come from the fact that we have to adhere to the security requirements of defence contracts
in a world where every company is trying to make you use a cloud service it gets quite annoying when you literally just are not allowed to
new lifehack: salt your own password! sysadmins hate this one simple trick
I do have to change my password ever 3 months and I may or may not have a system for this
I think everyone does
honestly
you're not remembering your password change every 3 months if there's not some logic to it to rely on
That's why it's no longer best practice and Microsoft doesn't recommend it anymore
alas we do it
The fact that consumer Microsoft has gone the other direction and made accounts passwordless so there isn't a password to renew in the first place
I still don't like passkeys
ok that's not true
I don't dislike passkeys necessarily
I dislike that they don't seem to work in half the things I've tried it on
They are like passwords but are truly unguessable and can't be phished
I've tried to make passkeys in keepass work a few times on mobile but it just doesn't
And also more secure as the server can't do dumb storage on them either to have them leak
I think conceptually they're not bad
my experience with actually trying to use them so far however has been genuinely horrendous
I'm just annoyed it took them rebranding as passkey to catch on
I did get a yubikey a few weeks ago
Please hold
As my work is finally starting to retire it's fleet of hardware otp tokens
Checking to see if I'm real
I admittedly don't really understand what a yubikey is. Like I kinda do but I also don't
It's a USB drive that speaks fido2 and stores all the private keys (read: passkeys)
When you authenticate with a passkey you will get promoted if you want to use a security key, then select USB or whatever and then you get prompted to plug it in, enter the yubikey pin and then tap the fingerprint thing and then you are logged in and can unplug it
Same process can also happen over NFC instead for mobile
hmmm
You technically can leave it plugged in indefinitely but in theory shouldn't
I think I'm just too used to username/password authentication that this all just feels a little... outside my control
like with a password manager I have a database I can look at and if I want to move somewhere it's possible to just see what's in the password manager and move it over
but this just feels like 🌈 magic thing I'm now married to or I can no longer access anything 🌈
I assume there's some way to make backups
What if I need to log in on a random computer? I’ve never understood how that works with passkeys bc I thought they were tied to the fingerprint sensor
I think for the non-yubikey scenario there's some qr code method
I don’t trust qr codes
Maybe I’m just trained to be paranoid about the wrong things
I keep hearing about discord QR code scam tho
for a yubikey... idk. It feels like it'd be a security faux pas to plug your yubikey into someone else's computer
but maybe it's not for some reason
I have to log in to so many things with my work login I have the secure randomly generated password memorized
it feels similar to putting your keepass file on someone else's computer you'd never do that
I also feel like I’d lose a yubikey
there would need to be some way to back it up cause that thing isn't going to last for all of eternity even if you don't lose it
Maybe if work stopped auto logging me out every 2 hours I’d be willing to not lose a tiny physical object
But I bet they won’t make that trade
ew auto logging you out
All the time!! Even when I’m actively using things!!
I understand banks doing this
But my freaking work email??
As far as I can tell the fingerprint sensor doesn't remember fingers it's just there to detect physical presence (ie software can't automate it, a human needs to approve it in the real world)
I choose to blame Microsoft
googling making yubikey backups jsut confuses me further
people saying you should put a yubikey in a safe somewhere
how am I going to keep the yubikey up to date with my logins if it's in a safe somewhere
You don't renew the passkeys every 90 days for a starter
well but there's a lot of accounts
every once in a while I'll make a new account somewhere
would I then have to hunt down every yubikey I own
and set them up one by one
idk I guess I don't really get it
maybe I shouldn't think of it as a replacement for password managers but just something you use only for your most crucial accounts
I wouldnt put stardew wiki on my yubikey for example
but the admins of stardew wiki should
We just have them as Keychain
....I wonder if they will release new content
I think the beans focused enough
Hyperfocus you might say
JournalIt also has a time tracker which i like
Tells me how productive I've been
....how the fuck is overnight oats (the company) a thing
Overnight oats are the easiest thing to prepare
anything sells if you give it a name. first rule of marketing
i feel like i should be more invested in password security, but at the same time i only ever need to login on 2 devices tops, and if my work laptop catches fire i've accepted that i'll just have to spend a day of agony setting them all up again
somehow despite our work requiring that we use no fewer than 10 different logins, some with expiring passwords, i'm the only person in the office who actually uses a password manager with randomly-generated values and 2fa, and i guess everyone else just uses the same email-password for all of them. sometimes i wonder if i'm the crazy one
work passwords not expiring
finally-some-good-fucking-food.gif
w-woof
speaking of password security, someone at work seems to have fucked up big time and started off a script that is deleting everyones lastpass vaults
that seems suboptimal
...how
Please don't start hating me again, hot reload.
I didn't even edit that DLL
I see I missed the password talks
well I don't really have anything to contribute other than to brag that I have setup Tailscale to sync my PC/phone passwords remotely
Passwords are old school
Why dont we just authenticator ourselves by rapping to Hamilton instead
i live to serve /lh
future authenticators will not use passwords but instead use the mountain of surveilance data they collected on you to determine if you're the correct person via browsing behavior
but will somehow still show you completely uninteresting "targeted" ads
W H Y