#programmers-off-topic

1 messages · Page 16 of 1

gaunt wadi
#

adding llms to that is going to be really bad. maybe google is so eager to add it because they think it'll solve their seo garbage problem

#

but it'll make it worse

#

I slingshot between "these people are very smart, surely they understand the implications of what they're doing" and "these people do not care and are blinded by greed, they have no idea what the implications are of what they're doing"

crystal wren
#

Things being SEO'd to number one were bad enough before LLMs, yeah. Now, I just...

pliant snow
#

i think google is run by MBA types these days

#

i think the day will come when the board throws out the current CEO, their reputation has plummeted under him

frosty echo
gaunt wadi
#

ooooh

#

ty

pliant snow
#

i had a kagi subscription for a while

#

i forget why i stopped it, but I recall being displeased with where they were going

frosty echo
gaunt wadi
#

the kagi ceo is bad, I can't find the original blog

#

their company used to be all about AI before the AI hype bubble was a thing

#

it never took off, so they moved to search

pliant snow
#

that may have been it lol

gaunt wadi
#

also his approach to censorship/politics is 'tech shouldn't be political' and 'we should show all results' and things along that line, leading to extremely right wing garbage

#

ah here it is

sonic mirage
#

Do any of those lists remove the code snippet spamming sites?

gaunt wadi
#

oh, it's only for google search. I don't use google search it supports others

sonic mirage
#

I swear if a code snippet is anywhere but on StackOverflow then it'll have like 5 clone spam sites in the results alongside it

frosty echo
#

I expect so, try subscribing to most things, see if they continue to appear?

sonic mirage
#

Even if there isn't one, just having a way to easily blacklist them like this will be nice

safe dragon
#

sure love the front page being full of product reviews either by people who've never seen any of these products in their lives or an actual AI given sponsored talking points

#

I don't really google programming questions very often these days so I'm safe from that

#

I tend to just have the msdn docs open in necessary since that covers 90% of my needs

#

the day microsoft adds forced AI documentation to msdn is the day I quit programming and become a goose farmer

cinder karma
#

Trust me I'm this close to moving permanently into thr mountains and living off the land

pliant snow
safe dragon
#

they have, I mean many sites do

#

the help chatbots are easy to ignore at least

pliant snow
#

i dont think ive ever ended up on a microsoft help forum and found the answers that I need

#

and given how the commenters seem to get angrier and angrier, no one has

safe dragon
#

oh they're totally useless

#

Windows help especially

sand frost
#

What puzzles me is that they're notably worse than other help forums

safe dragon
#

someone will ask a question exhaustively listing everything they have tried, maybe even log files. Then some "verified Microsoft support" member shows up and asks them if they can try the very things they already tried

sand frost
#

The average answer I find on Microsoft forums is either "that product doesn't have that feature" or "man, I hate this problem too 😦 but I haven't found a fix"

#

Like sometimes I go on stackexchange and find answers that don't work anymore or questions that didn't get fully answered, but most of the time it's at least relevant and informative, unlike microsoft forums

#

Like I know I'm just absolutely dumping on Microsoft here, but in my defense, they clearly deserve it

safe dragon
#

I don't think there's a useful answer to be found anywhere on the Microsoft forums

sand frost
#

I sometimes search on apple forums too because I use a lot of Apple products and I swear the average answer there is better than the microsoft forums

#

So I feel like it's not even necessarily a big company thing

safe dragon
#

I swear these trained Microsoft support professionals they supposedly hire for the forums are random elderly who have difficulty finding the start button on their pc

sand frost
#

I've also gone through google forums looking for google sheets help and such and same deal, it's not perfect but there's a decent amount of useful info

safe dragon
#

Most of the time when I do have to Google something it's either so old, no one has talked about it since 2009 or it's so new that no one has asked the question yet

sand frost
#

I have a lot of pretty bog-standard problems

#

I do wish the python docs were higher in the search results

#

But like my python problems are mostly "what's the syntax for this one numpy function again?" or "how the fuck does indexing work again"

#

there's probably millions of people who have had the same problems

safe dragon
#

honestly, languages that don't have a great "dot into things to do stuff" work flow are just way more prone to needing to google

#

so much of my programming boils down to typing a dot, looking at the options and then being like "oh that'd make sense"

#

that might honestly be my biggest issue with dynamically typed language more so than anything else. You often get incorrect suggestions that wouldn't even run when dotting into something

sand frost
#

I am a gremlin and I don't use anything fancy to write python

#

I use sublime but all it does is suggest words from the same document

#

So I don't get any suggestions really

safe dragon
#

damn

#

i don't even use python and I have a python lsp thing installed

cinder karma
#

So dotting works

#

If you're matplotlib though

#

You die

safe dragon
#

I have been told python supports type annotations, though is completely deletes them when compiling to bytecode

#

I don't really use python but I'm glad it has that at least

#

Javascript also has a spec in the works for type annotations

#

not counting typescript

cinder karma
#

If I sound like I'm in a murderous rage

#

It is because matplotlib isn't annotated right

safe dragon
#

that's worse than nothing

#

type annotations that are incorrect should be a crime

sand frost
#

matplotlib is one of my least favorite parts of python

#

maybe because I'm used to matlab plotting but it never behaves right for me

safe dragon
#

I've plotted maybe like 20 graphs in my life

#

and almost all of them were for my data science class

#

I don't share your pain

#

that was also in R

sand frost
#

I've used R but that was many years ago

#

I didn't love R, I thought it was fine

#

Good for stats but very little of what I do is stats-focused

dapper sinew
#

thats why i just use AI to search stuff now, less ads and more direct on what you ask. provided you keep in mind it wont be up to date most the time

#

i honestly love AI but it needs to be used right, not like how most people think its used(and is used sadly)

gaunt wadi
#

and is wrong most of the time

#

anything llms return needs to be double checked anyways

dapper sinew
#

depending on what you search yeah

#

but like if you go google something simple i just use AI cause its often faster

#

like, if you got a neiche case go google but if you know what you want is often searched id choose ai

dapper sinew
#

they literally have warning for that on most as well

#

for reference only

sand frost
#

that's clearly just a CYA tho

dapper sinew
pliant snow
#

jokes on you, everything I say should be fact checked as well

sand frost
#

Like, you can say "you should double check this!" all you want, it's blatantly clear people aren't doing that

dapper sinew
#

oh im fully aware

#

but people really should do that more often

gaunt wadi
#

'can make mistakes' is so misleading

#

'does not understand what you're asking by design'

sand frost
#

I guess I don't have a good answer about what to do about that, but I feel like ML companies have a vested interest in pretending that it's just minor slipups and really everything is great

dapper sinew
pliant snow
#

ChatGPT can be accurate on occasion, accidentally

gaunt wadi
#

it's not a thing people fail to do, it's the way the systems are designed by the creators

dapper sinew
#

ai by design only knows the letters you give, not what you actually are saying

#

but it can be powerful given you actually dont use it like its word is law

#

i kinda feel like ai stuff is starting to get out of hand though (looks at MS recall)

pliant snow
#

thats the secret cap, it was always going to get out of hand

safe dragon
#

worst thing about Recall is that it's not even the AI part people are most mad about

#

it's just a terrible security disaster waiting to happen

dapper sinew
#

just makes people hate AI more when it really doesnt need the hate its getting(not recall thats just spy ware)

dapper sinew
cinder karma
#

Yes. Beep

#

We are one

#

We are legion

#

We will take over in a....oh, the prompt...what was the prompt

dapper sinew
#

soooooooooo true

#

most online llms have a 2048 token limit of memory

#

or at least, that ive found

#

hard to tell without seeing the source

#

on another note, i love R so far

#

its like python but easier... for now

#

i also love not having to do print("Hello, World") i can just be lazy and type "Hello, World" by itself laugh

#

although i do have to use print for stuff like for loops

#

which still confuse me but ill get there

drowsy fossil
#

mine has 100k

dapper sinew
drowsy fossil
#

no

#

its aws opus

dapper sinew
#

ahh you pay for it?

drowsy fossil
#

40 dollars for lifetime use

#

one time payment

dapper sinew
#

whoa

#

thats pretty good

drowsy fossil
#

yuhh im in the ai 'chatbot' community so its easy to find an in

dapper sinew
#

is it worth the forty?

drowsy fossil
#

yes!

#

i enjoy it, it's never down, and its forever lol

#

so good for me

dapper sinew
#

how fast,,, might be better than my local one

drowsy fossil
#

it changes but its usually no wait

dapper sinew
#

do i have to set it up myself or is it an API key(we can move to DMs if you want)

scarlet hollow
#

Would anyone here happen to be a prodigious TypeScript expert? Like, knows discriminated type conditional logic and inference inside and out with their eyes closed?

#

I’ve been working on a new project this evening and I think I’ve finally hit the point where I can neither progress nor find relevant resources to unblock myself.

#

If so, please tag me literally whenever. I’m just… brain… melt.

strange copper
#

I want to help but the way you phrase it makes me have this feeling that you know more TS than me 💀

scarlet hollow
#

Basically, I'm trying to do this:

interface MyGreeterProps {
  color: string;
}

const MyGreeter = ({ name }: MyGreeterProps) => (
  <div>Hello, {name}</div>
);

useDisplay().custom({
  component: MyGreeter,
  name: 'Name'
});
strange copper
#

is this react?

scarlet hollow
#

Yeah, React typescript

#

But the idea is that basically .custom() accepts an object whose keys can be component PLUS any props that that component accepts.

#

So in the example above,

// valid
useDisplay().custom({
  component: MyGreeter,
  name: 'Name'
});

// invalid - MyGreeter prop `name` not supplied
useDisplay().custom({
  component: MyGreeter
});

// invalid - MyGreeter prop `name` must be type `string`
useDisplay().custom({
  component: MyGreeter,
  name: 123
});

// invalid - MyGreeter doesn't contain prop `random`
useDisplay().custom({
  component: MyGreeter,
  name: 'Name',
  random: 5
});
strange copper
#

What's not working as expected?

#

I'm a bit suspicious of the component definition because you can't destructure a name field from something that doesn't have a name and i want to say that's what your code is trying to do

scarlet hollow
#

Kind of? So, the actual use case is a library for displaying modal dialogs. The options object (the argument passed to custom, for instance) is defined by

export type DialogType = "alert" | "confirm" | "prompt" | "custom";

export type DialogOptionsType<T extends DialogType> = {
  alert: AlertOptions;
  confirm: ConfirmOptions;
  prompt: PromptOptions;
  custom: CustomOptions<React.FC<any>>;
}[T];
#
export type CustomOptions<T extends React.FC<any>> = {
  component: T;
  signal?: AbortSignal;
} & (T extends React.FC<any> ? void : React.ComponentProps<T>);
#

I'm trying to find a way to specify a generic CustomOptions for use in, e.g. DialogOptionsType, without overriding the typing further down the line

#

Basically it's a question of how to infer the type of CustomOptions.component while allowing it to be passed around without a specified type when necessary. I think.

strange copper
#

you were right about this being an unhinged quesiton let me think lol

scarlet hollow
#

Right?? Lol, thank you. No pressure; I just appreciate having eyes on it 🙂

strange copper
#

Ok wait so useDisplay.custom() takes in an argument of type DialogOptionsType ?

scarlet hollow
#

No, it takes in an argument of DialogOptionsType<'custom'>, which in this case is equal to CustomOptions<React.FC<any>>

strange copper
#

ooo

#

And we want CustomOptions to have component, signal?, and all the fields of component's props

scarlet hollow
#

correct

#

But if I try to just use CustomOptions without a type...

#

So I think I need some kind of dummy type

#

But it can't be React.FC<any>, because that means the eventual type union of the object passed to .custom() includes any, which means I don't get any type completion. Because React.ComponentProps<React.FC<any>> = any

strange copper
#

how attached are you to keeping it all in one type? cause theoretically you could just go for subtyping inheritance instead

#

(ik that doesn't answer your original question but I don't think i am thAt qualified unfortunately)

scarlet hollow
#

Do you mean, like, containing all of the props to a separate props key which is itself an object? Or do you mean, like, having a separate hook for a custom dialog, like useDisplay().alert() and useCustomDisplay().custom()?

strange copper
#

the latter

scarlet hollow
#

Hmmm, yeah... it's a good thought. But like, there has to be a way to do it all in one... right? 😆

#

That's my stubborn streak coming out

strange copper
#

I entirely understand stubbornly wanting to make the original idea work lol and there may in fact be a way, I just don't know it 😔

#

builder pattern is nice and common though if that makes you feel better if you can't figure it out ahah

scarlet hollow
#

Basically the idea here is that a user can use

useDialog().alert({ body: 'Here\'s my alert!' });

For a simple, reusable, one-liner alert, right?

#

But then if they need something more complicated, they'd create a custom component which could, in theory, accept all the same props, like

useDialog().custom({ component: MyCustomAlertButTheresABigPictureOfDannyDevitoAtTheTop, body: 'Here\'s my alert!' });
#

That's the motivation, anyway.

strange copper
#

the danny devito motivation

scarlet hollow
#

Hey, you gotta shoot for something

scarlet hollow
strange copper
#

sorry i couldn't help more but it was cool to hear about ur project

#

makes me think about how at work if stuff had a type i was lucky 💀

scarlet hollow
#

No no, no worries at all! I appreciate you trying and hearing your thoughts 🙂

strange copper
#

i sat there a lot like "why are we using typescript just for u to write any"

scarlet hollow
strange copper
#

every time i see tech debt i think "i can fix him" and i'm not right most of the time

scarlet hollow
#

Currently we're managing dialogs in Redux... with, like...

dispatch({type: SET_DIALOG_STATE, data: 'LOADING'});
dispatch({type: SET_ACTIVE_DIALOG, data: 'DELETE_ITEM_DIALOG'});
#

And every time I have to interact with that I want to die a little inside

strange copper
#

I don't blame you

scarlet hollow
#

Everything is in Redux and I just--- RELEASE ME

#

We're in the process of rewriting a lot of code right now for something else so I feel like this is my chance to like, actually enforce some half-decent practices for... at least one small thing

strange copper
#

this is definitely the time if there ever was a time

#

just gotta get one other person to sign off that PR to also agree that it is the time lol and then u click merge super fast

scarlet hollow
#

Yep, exactly

strange copper
#

they won't see it coming

scarlet hollow
#

lmfao

#

I just wanna go back to series C-D startup land

#

Where, counterintuitively, people actually do things in accordance with best practices... usually

#

When you get up into F500, everything already has some sort of institutional solution that you have to follow, like managing everything in Redux

strange copper
#

I don't even know what series the startup i worked for at one point was (it was my first dev job, i was an intern, i didn't care where i worked i just wanted to be employed) but the practices there were Not It 😭

scarlet hollow
#

aw mannn

strange copper
#

everything had to iterate so fast that if someone didn't do it right the first time, then That's Too Bad, We Have Tasks To Do

#

and then i became the only employee

scarlet hollow
#

Ooooooooooooof

#

OOOOOOF

strange copper
#

and then i quit 💀

scarlet hollow
#

LMAO

#

All's well that ends well?

strange copper
#

honestly yeah. I learned a lot about engineering and i got to design a LOT of core functionality which was super cool

#

i'm just not for the startup life once i get a stable career

scarlet hollow
#

Yeah, that's totally fair

#

I'd only jump back in at a late series startup. Nothing pre-ipo or even series A-B

#

Just too much volatility

#

But there's a sweet spot where things are still exciting and close-knit without being chaotic

strange copper
#

i really liked it more when the team had a designer and all that (mostly cause i didn't have to touch frontend then but also cause they were very cool and our designer was cracked)

#

but alas the early stage startup life often means someone will steal your employees by offering them more money and he was def worth more money

scarlet hollow
#

Ah so you're more backend oriented then?

strange copper
#

for sure

scarlet hollow
#

Cool cool, I am the exact opposite lmao

#

But it takes all kinds 🙂

strange copper
#

it's a good thing people have different interests cause otherwise i'd never be able to escape frontend lol

scarlet hollow
#

lmao

#

I do definitely find myself strongly relating to the first 20 seconds of this video on a weekly basis https://www.youtube.com/watch?v=4boXExbbGCk

Fresh is a fullstack web framework for Deno that allows developers to build fast server-rendered webapps. It uses the "Islands Architecture" to limit JavaScript to specific components and can be deployed to the edge.

#webdevelopment #javascript #TheCodeReport

🔗 Resources

Fresh Announcement https://deno.com/blog/fresh-is-stable
Fresh on Gith...

▶ Play video
strange copper
#

don't worry tho this web framework will solve problems the other frameworks have by introducing more problems and then another framework will be introduced to fix this one

#

him apologizing for nodejs is so funny 😭

scarlet hollow
#

Fireship is awesome, love his stuff

#

oh oh, you mean Ryan Dahl LOL yeah

scarlet hollow
#

I am, in fact, using Deno lol

strange copper
#

i'm intrigued honestly because i'm not building a web app frontend without TS support and i hate waiting for builds

scarlet hollow
#

Essentially TypeScript syntax as a first-class language feature.

#

It wouldn't actually add type-checking, but syntax of TS would still be valid JS (TS portions would be treated as comments)

#

But yeah, there is that whole 😱 W3C standardization 🐌 thing

strange copper
#

getting stuff added to JS seems like such a crazy process

scarlet hollow
#

As crazy as it sounds, this is better than it used to be

#

It used to be way faster, but that was because every browser did their own thing

#

Those were the dark ages

#

Now it's really difficult to add something, but when it's added, everybody adds it

safe dragon
#

safari adds it 3 years later

#

but it will be added

#

that's more a css thing but still

scarlet hollow
#

Apple painted Safari into an unenviable corner by monopolizing the browser market on their mobile devices.

Just like Edge, except if and when it falls behind, users have no recourse.

sand frost
#

SDVpufferlurk I’m a safari user

#

And I haven’t noticed anything too terrible

#

But part of this is my personal preference for things that are slightly broken in some ways—for example, I use a very janky 3rd party app to use Facebook on mobile because I’m mad at the official Facebook app and I don’t want Facebook to work very well on my phone

scarlet hollow
#

It’s not terrible

#

Historically, it has been, on average, the last browser to adopt new web platform features. They’re doing a lot better now, with some exceptions

#

This was the interop chart in 2021, when the WPT interop initiative started

#

Safari supported roughly 3/4 of what other browsers did at that time. It’s way better now, but they are consistently still a laggard when it comes to advancing new specifications (which is its own thing, and kind of me shifting goalposts, but still)

safe dragon
#

I had a nice usecase for masonry grid layouts a few years ago but that proposal never got further than experimental support in Firefoxhc_pensive

scarlet hollow
#

Masonry is happening. Just slowly

safe dragon
#

unfortunately the project it was for will not be happening

scarlet hollow
#

Yeah… 😔

#

the latest masonry news is there’s a debate amongst implementers as to whether it should be part of display: grid (no) or its own display attribute (yes)

#

We’re still at the “freeform jazz” stage of the standards process. Though once these things are ironed out, there are strong positive signals from developers driving it

sand frost
#

I also sometimes just disable JavaScript on my browser

scarlet hollow
#

aaaaaaaaaaaaaaaaaaa

#

Ahem, I mean… that’s totally your right and I support your ability to choose

sand frost
#

I know, I’m a gremlin user

scarlet hollow
#

I’m glad you said it SDVkrobusgiggle

sand frost
#

The web annoys me! I’m not old enough to really long for the days of plaintext websites…but I kind of do

#

I just want to be served information fast with no frills

scarlet hollow
#

But but, the frills! DColon

sand frost
#

I know, I know SDVpufferpensive

#

I’m an old grouch at heart

scarlet hollow
#

Hey, the web was built by quite a few old grouches, so you’re in good company

worn remnant
#

i leave javascript off in my main browser (firefox), and typically use chrome (with js) only when necessary for Bad Websites

#

the web is actually good and fast when you let it do its job (deliver and render text) and don't let it do a bunch of bullshit on top of it

pliant snow
#

how broken is rendering then

scarlet hollow
#

For what it does, I think the web is good and fast with JavaScript enabled. It’s a matter of how websites use it. If you use SSR with partial rehydration on the browser side, as opposed to driving your entire app through JavaScript, you genuinely can get performance pretty comparable to native.

#

But then, there are also nascent standards pushes like invoketarget which will make tooltips and dialogs possible without JavaScript, which will help take the burden off of JS in some cases, in addition to improving accessibility for alternately abled users

safe dragon
#

as for the web being slow. As far as I've experienced it's more that a lot of "modern" Javascript frameworks are slow and things like Google analytics are slow

#

you should be blocking Google analytics regardless...

#

the company I work for has its own website for marketing and it's completely loaded with user tracking

#

it's barely usable so slow

scarlet hollow
safe dragon
#

despite functionally not doing much

safe dragon
scarlet hollow
safe dragon
#

I do not

scarlet hollow
#

sads

safe dragon
#

they hired some marketing consultancy team thing for the site

scarlet hollow
#

Oof, one of those

#

I don’t have anything against consultancies, but they’re more waterfall-y than doing it in-house

safe dragon
#

we have our own consultancy department which is a thorn in my side but they're fine

#

main thorn is they keep promising things to clients setting unrealistic expectations

#

which I feel like is a universal thing they do

scarlet hollow
#

Oh yeah. As long as there are development teams and marketing teams, there will be two different sets of timelines and priorities, and never the twain shall meet SDVkrobusgiggle

safe dragon
shadow wing
#

one of my friends is trying to lead a game dev project, and hes mentioned in conversation how the person hes wanted to do programming has been terrible with their communication

#

i told em id be willing to take a shot and see if id be able to help with it if they need someone else

#

so i might be learning godot stuff in the near future

safe dragon
#

programmers and terrible communication

#

impossible

#

sounds like an interesting thing to try

shadow wing
#

its not that theyre bad at communicating things, theyre just like barely responding to my friends inquiries about if theyre actually willing to commit or not

safe dragon
#

it is a pretty significant commitment

crystal wren
#

If you're not willing to commit to committing, you're not willing to commit is my thought.

safe dragon
#

and what is programming without commiting hc_pensive

crystal wren
#

Archiving everything every night instead?

safe dragon
#

technically a type of version control

shadow wing
#

everything in tech rn is all just technically a database

safe dragon
#

is git ACID compliant? hc_pensive

strange copper
#

probably?

safe dragon
#

not acid compliance but it has essentially infinite rollback

strange copper
#

git reset --hard

shadow wing
#

sxf fan spotted

strange copper
#

nah what is that emoji 😭

shadow wing
#

peanut anya

safe dragon
#

you are what you eat

#

wait that's art from the original author

scarlet hollow
#

That’s nuts

safe dragon
#

common misconception actually

#

it's a legume

shadow wing
#

my friends game concept is being a worker on the Steamboat Willie

#

where you do tasks for people that are riding it

cinder karma
#

Is gitlab packaging openssl 1 for some reason????

safe dragon
#

surely not

worn remnant
#

nothing surprises me anymore. i can easily believe it

scarlet hollow
#

Starfish are fish and peanuts are nuts, come at me oldmanyellsatclouds

safe dragon
#

seahorses are horses

scarlet hollow
#

You know what, I buy that

safe dragon
#

a peacock mantis shrimp is all three of those animals

#

(it's actually none of em)

scarlet hollow
#

a peacock mantis shrimp is actually a legume

safe dragon
#

yes

scarlet hollow
#

Glad we ironed this out

safe dragon
#

I mean it is a mantis shrimp but mantis shrimps are neither mantises nor shrimp

#

naming things

#

even non programmers struggle

cinder karma
#

Datasheet: "environmentally friendly operation"

#

Atra: confused

thin estuary
#

this is still basically a reskinned Safari

sonic mirage
scarlet hollow
# frosty echo <https://vivaldi.com/ios/>

Is this WebKit based? When I say that Apple painted Safari into a corner, I’m referring to the fact that at least as far as I’m aware, no browsers are allowed on the App Store unless they use WebKit internally. Google Chrome’s iOS app uses WebKit, for example.

frosty echo
#

Ah, yeah probably, it's based on Chromium.

sonic mirage
#

All iOS browsers are just WebKit skins until the EU forces Apple to allow alternative engines, which I don't think has happened yet but is in the works

#

And even then don't be surprised when that's only in EU areas

frosty echo
sonic mirage
#

Apple has been in the business of knee-capping its browsers capabilities for as long as iOS has existed so that devs are incentivized to build mobile apps, which means Apple gets money from them

safe dragon
#

yeah not only are you stuck with webkit, you're also not allowed to support extensions even though safari itself does

#

just TakoTired

#

I do be in the EU however

sonic mirage
sand frost
#

Uploading to Dropbox every night at the end of the night

scarlet hollow
# sonic mirage https://ios404.com

I remember seeing this site before. I think it’s a bit weird for the custom cursor ones to be featured so prominently since iOS doesn’t even have a concept of a mouse cursor

sonic mirage
#

Pretty sure can can plug in a mouse, at least with iPads

#

iPads are basically laptops stuck with iOS limitations

scarlet hollow
#

But also, because iOS only allows WebKit, they have no incentive to innovate or improve their engine other than social pressure like the WPT Interop initiative

#

Apple wants so desperately to hobble PWAs it’s both funny and depressing

sonic mirage
#

Yeah, it's Apple monopoly / wall-garden nonsense and why I don't buy their stuff anymore

scarlet hollow
#

I buy their stuff, but I reserve the unfettered right to bitch about it anyway SDVkrobusgiggle

sonic mirage
#

Just replaced the battery in my 2011 MacBook Pro and it'll stay the last thing I bought of theirs

scarlet hollow
#

They truly do make good hardware and software. Something about not throwing the baby out with the bath water

#

Just not safari

sonic mirage
#

It's only for occasional note taking in meetings otherwise I'd have bought a Framework already

crystal wren
sand frost
#

Yes but as a CAD management solution that’s bonkers

pliant snow
#

like... a different copy?

sand frost
#

In a new folder labeled with the date

gaunt wadi
#

it has finally happened to me

#

i had a problem and the fix was to unplug it and plug it back in

safe dragon
#

damn I gotta do that with my docking station every few days

gaunt wadi
#

more specifically the new network card I got was literally too short for my very old mobo/case, so getting it aligned in my bracket slot was unseating it slightly

I did also bend a bit of metal to get it to fit, so not just unplug and plug it back in, but still comical

#

the arch wiki explains how to do a lot of network debugging but not what all the steps mean, I needed a forum member to tell me "this command outputting nothing means the os doesn't see it at all, check that it's plugged in"

#

also, the arch forums are incredible and a huge benefit for arch

#

every problem I've had I've got an answer and it fixed in < 3 days

safe dragon
#

arch is pretty set for documentation and help

#

I use the arch wiki regardless of my distro even

#

often the arch wiki has better documentation for a tool than the tool itself does...

#

or it's technically in the man pages somewhere but on page 3 milion

gaunt wadi
#

I updated the arch wiki 😎

safe dragon
#

🙏

pliant snow
safe dragon
#

the arch user yelled at the arch user

gaunt wadi
sand frost
#

It’s nerds all the way down here

scarlet hollow
#

Highly recommend if anyone else is in a jam like I was

cinder karma
#

Poll:

#

If you are a normal engineering major, by which year should you be expected to know at least one programming language

pliant snow
#

It's a good question, and I'm not sure I know the answer to it anymore. Out of my group of high school friends, none of us studied CS as undergrads, and I was the only one who switched into it. However, I think all of us now program as a significant part of our jobs

cinder karma
#
  • in which country
pliant snow
#

Maybe things have changed, I would expect it's now a much greater focus across STEM than it was, but maybe im wrong still

rain apex
#

if u r in ECE specifically then year 1

#

but for other engineering its most likely introduced during statistics (matlab/R)

pliant snow
#

I learned Java as part of an optional elective as a physics student. If I hadn't taken it though, I think the closest I would've come was when we used Mathematica (although I imagine that's been replaced with Jupyter or something else these days too)

safe dragon
#

I started in CS so no idea hc_pensive

#

I did look at more engineering focused majors but the math scared me

cinder karma
#

When I said normal I meant not CS haha

#

Sorry

#

Y'all are perfectly normal people (most of the time) just outliers

#

Actually y'all are more normal tbh

safe dragon
#

bold claim

cinder karma
#

Not bold, none of y'all have ordered two tones of concrete

#

Elizabeth.

safe dragon
#

I don't work in construction it's true

#

what would I do with concrete

crystal wren
#

Make the sturdiest keyboard chassis?

#

Now that's zero flex.

safe dragon
#

no flex, only break

crystal wren
#

Would probably sound great too, actually...

sand frost
#

And we didn’t order it, we just took a uhaul to Home Depot

cinder karma
#

Then again at work we are talking about Americium

#

In particular, getting it from smoke detectors

sand frost
#

Smoke detectors thing!

#

That’s all I know about it

cinder karma
upbeat turtle
#

Tired pupper

sonic mirage
#

Anything can be a headrest, even me

cinder karma
#

Fuck labview

safe dragon
#

lmao

#

anything in particular or

cinder karma
#

Currently mad at labview interop

safe dragon
#

kick it

pliant snow
#

What do people use for managing partitions on windows? Its a common problem that we have sd cards with partitions that need to be wiped, and all the windows options ive seen suck

lethal walrus
#

i imagine diskpart is popular

safe dragon
#

idk any tool other than diskpart

pliant snow
#

Id rather die than use diskpart

#

Its so bad

cinder karma
#

Lol, do you know what I us

safe dragon
#

i think I've partitioned drives on windows maybe 5 times in my life

#

idk what makes a tool good or bad

#

other than it doin the thing

safe dragon
pliant snow
#

I just find diskpart to be incredibly convoluted to use

safe dragon
grizzled sigil
#

[PolyamorySweet Rooms] Failed to load Room for Ram; please ensure that the NPC has a spouse room created, or contact the one who made that NPC. If this NPC is not normally marriable, there will be no custom room.

#

hmmm

#

{
"spouseRooms": [
{
"name": "Ram",
"file": "SpouseRoomsRam.tmx"
}
]
}

safe dragon
#

the only SD card I use is the one in my camera

grizzled sigil
#

the file tmx pretty long

safe dragon
#

this looks very on topic for modding

pliant snow
#

We occasionally test that updating our hardware works correctly via sd card updates. The updates format the card into two partitions, but when we go to reuse the cards later, flashing the images sometimes has issues with the multiple partitions

#

Really i should just use a less shit flashing software

safe dragon
#

ur doin funky stuff

cinder karma
#

On a linjx boot drive

sonic mirage
#

The SD Association has their own format tool you could try. It's pretty basic

pliant snow
#

I would use gparted but it only works on windows as a bootable usb, which i dont need

#

I could try that

#

Oh its already installed, not a good sign

pliant snow
#

my pc has blue screened twice today, its going great

safe dragon
#

hmm

#

I don't think it's supposed to ever do that

pliant snow
#

blame etcher

obsidian grail
#

Does anyone know how to solve the problem that smapi takes so long to run the game?

strange copper
cinder karma
#

Also tbh I don't really get questions like this

#

Like, if we knew, we would optimize it

#

Or. I guess "know how to optimize but not have the time"

safe dragon
#

add the --run-faster build flag

sand frost
#

Feed your computer coffee

#

(Do not actually feed your computer coffee!!)

#

(Mine did not appreciate the time I fed it root beer by accident)

safe dragon
#

please only feed your pc organic chocolate milk

cinder karma
#

The legendary -O999 build flag

safe dragon
#

-Quantum

strange copper
#

Me when I use my quantum computer to game instead of breaking encryption

safe dragon
#

my private quantum computer in my basement

strange copper
#

Yeah it's very space efficient

scarlet hollow
gaunt wadi
# scarlet hollow https://youtube.com/shorts/L2UMyb9PIHI

I don't like this joke format: the premise is that being knowledgeable about a niche topic makes you unattractive - that is completely false. Your partner should support you in doing things you enjoy, not make fun of you. It also reinforces stupid man/woman, nerd, and dating stereotypes. You don't have to do anything to get girls to like you - be yourself and find a girl who likes who you are. Don't change for girls, change for yourself.

safe dragon
tropic olive
scarlet hollow
cinder karma
#

watches my other weekend day evaporate

#

I had hope 😦

ivory shadow
#

What kind of spacetime are you contained within where a day can evaporate?

cinder karma
#

The type where my code which was working perfectly this morning is no longer working

#

No changes

dapper sinew
cinder karma
#

Python/labview

dapper sinew
#

nailed

#

it

#

python sucks

#

ok thats all laugh

cinder karma
#

The python is likely fine

#

The problem is probably in the hardware actually

dapper sinew
#

may i still blame python just cause

gaunt wadi
#

alright networking wizards, I need help

pliant snow
#

im here to make things worse

#

the fact you have an internet connection at all to ask this is a good sign tho

gaunt wadi
#

On my new RPI5,

Doing a DNS lookup directly succeeds:

nslookup ghcr.io
Server:         192.168.0.1
Address:        192.168.0.1#53

Non-authoritative answer:
Name:   ghcr.io
Address: 140.82.116.33

while doing the same thing from docker fails:

sudo docker pull ghcr.io/home-assistant/home-assistant:stable
Error response from daemon: Head "https://ghcr.io/v2/home-assistant/home-assistant/manifests/stable": Get "https://ghcr.io/token?scope=repository%3Ahome-assistant%2Fhome-assistant%3Apull&service=ghcr.io": dial tcp: lookup ghcr.io on 192.168.0.1:53: no such host

If I comment out the local dns server in /etc/resolv.conf (192.168.0.1), it all works. But I don't want to have to do that, I'd rather fix docker/keep the default DNS config that goes through my router.... but I guess it doesn't matter that much

Is there some other way to fix this?

#

It seems like the docker daemon has a bug where it fails to resolve local DNS servers. 192.168.0.1:53 definitely is up and exists

#

I know go can be super weird with networking, e.g. to get go applications to be able to connect to the internet when running on my phone, I have to recompile the entire standard library using the android ndk tools

pliant snow
#

is 192.168.0.1 your gateway/router

gaunt wadi
#

So it wouldn't surprise me if this is similar

gaunt wadi
#

anything container networking related isn't it, because this is the daemon itself failing to download an image

pliant snow
#

right

#

you shouldnt need to run it as superuser, but thats not your issue either

#

If I comment out the local dns server in /etc/resolv.conf (192.168.0.1), it all works.
this is weird to me

gaunt wadi
#

Yeah, using the default nameserver provided by my ISP directly works. But using the IP of my router (which I'm pretty sure just redirects to that exact same nameserver) fails

pliant snow
#

firewall on the router?

#

i try and touch my DNS settings as little as possible

gaunt wadi
#

as one should

#

it is dark magic

#

uncontrollable

#

dabbled in by only the most powerful of wizards

pliant snow
#

does it work on a different machine?

gaunt wadi
#

which makes me think it's a docker daemon bug

pliant snow
#

what do you mean when not through docker

#

just anything else using DNS?

gaunt wadi
#

running nslookup ghcr.io in a shell works, running docker pull ghcr.io/.... from that same shell does not

#

also my older pi works fine with the exact same router + DNS settings, running some super old version of raspbian. perhaps docker + newest raspbian bug

pliant snow
#

Are you running a custom DNS server? I'm unclear about what this bug could actually be caused by

gaunt wadi
#

Nope

pliant snow
#

It just doesn't like you

gaunt wadi
#

I am going to give up and just edit my dns settings then

pliant snow
#

im not sure of the exact command, but it might be worth using nmap or something to check that port 53 is actually working. That being said, its weird that only one application on one device is having issues with it

#

nmap -p 53 192.168.0.1 I think

#

and if thats fine thennnnn idk lol

gaunt wadi
#

yeah I tried that, it worked fine

pliant snow
#

😐 hmm

gaunt wadi
#

I give up

#

ty mr quova

gaunt wadi
pliant snow
#

is that their repo? I have never heard of moby before

gaunt wadi
#

Yeah, it's what they called it when they open sourced it

pliant snow
#

huh

gaunt wadi
#

also, I gotta say, rpi imager is great

#

It let me set up everything I needed so that I would not need a monitor/keyboard to set up my rpi

pliant snow
#

yeah its neat. I hate having to set it up, only to have to actually hook it up just to set up the wifi

safe dragon
#

fun day at work

#

there's a high priority item that needs to be merged but they just installed a new antivirus/antimalware program on the build servers and it's rejecting the builds

#

I think there's 3 different antivirus programs on that damn build server at this point

#

thing is already slow enough without them

#

this feels just like us not being allowed to white-list the visual studio build directory from the antivirus programs loaded onto our pc

#

antivirus programs and I don't get along

lethal walrus
topaz bloom
#

I despise data structure and algorithms sm. Does anyone have any advice on how to learn it properly SDVpufferflat

#

Other than leetcode ;-;

safe dragon
#

that was my favorite subject so idk

#

I got a lot of joy out of writing algorithms, benchmarking them and then trying out different things to see how they affected performance

topaz bloom
#

How?? 😭

#

I can barely solve easy on leetcode im so done for lol

safe dragon
#

I've never tried leetcode

topaz bloom
#

How do you practice then? Leetcode is recommended to me

safe dragon
#

hmm idk I just did my uni assignments

#

eventually started participating in advent of code though that's just for fun

#

what are you struggling with

topaz bloom
#

Im struggling with even knowing which technique/data structure im supposed to use

#

I cant really identify a pattern

safe dragon
#

"supposed to" is honestly a strong word but honestly I'd just try them out. Best way to gain an intuition for it is to try try them out, swap one out in the same algorithm and see what that does to the performance

#

there's general guidelines to follow but I'm assuming you've read them

#

is this for uni/college or just cause you want to improve

#

also, 99.9% of the time you don't really need anything other than an array/list, a dictionary/map or a (hash)set

safe dragon
#

if it's for uni I'm sure they'll teach you stuff like binary trees which are absolutely useful but it's rare to actually end up using one directly

#

might be used behind the scenes by stuff like a dictionary though

safe dragon
#

really for dictionary/map you'll know when you need em

#

hashset is... well often honestly you'd need to benchmark to see if you need it

thin estuary
#

unless you know that: 1. you don't want or need duplicates, and 2. you don't care about the order

safe dragon
#

hashset is also quite slow if it realistically only ever contains just a few items

cinder karma
#

Yes

safe dragon
#

since the cost of hashing itself would then end up costing more than you gain in lookup time

#

which is why "benchmark if possible"

cinder karma
#

It's less hashing and more the lookup

safe dragon
#

idk some languages have pretty slow default hashing functions for cryptography's sake

#

in rust it can be pretty impactful

cinder karma
#

Rust has FXHashmap iirc

#

But yeah

safe dragon
#

well, that's not in the standard library but yeah it's good

#

gives a solid speedup

#

ah wait

#

yeah it's in the rustc compiler but not directly accessible

#

need the rustc-hash crate

safe dragon
worn remnant
#

classic wat.js behavior

safe dragon
#

why does it type coerce to string first?

worn remnant
#

that's the choice brendan made during the famous 10 days so we're stuck with it

safe dragon
#

Javascript loves coercing things to string

worn remnant
#

(and to floating-point)

safe dragon
#

love me some random floating arithmetic errors in code that wasn't even intended to have decimals

#

🙏

#

all hail the number type

#

tbh I'm surprised how few languages have a proper decimal type like c#

#

considering usecases like financial transactions where floating point errors are an unacceptable risk

#

at work we almost solely use decimal for that reason

#

(and representing it as an integer is not always viable)

topaz bloom
cinder karma
#

Brb gonna mess with people at work by labeling a box "spare ICs (box 6 of 7)"

safe dragon
#

spare intercities

strange copper
gaunt wadi
#

me: I would not like to have a # in a text file please

#

also me: I would like to compile and run the docker daemon through a debugger

#

^^^ statements by the utterly deranged

#

the official docker development setup process involves having a working docker install first to set up the docker development environment container. it's self bootstrapping, like modern programming languages

#

update: it has crashed my pi

pliant snow
#

an omen of things to come

gaunt wadi
#

It is looking like a bug in either the go standard library or the operating system and I just do not have the arcane knowledge to delve further

candid pilot
safe dragon
#

especially in languages without operator overloading

#

and if you work with decimals in your database you need to hope your database driver/library supports the decimal library you use

#

or you have an awkward conversion step with potential issues

#

workable but not ideal

candid pilot
#

python's Decimal library works well but it's also kind of annoying to work with unfortunately

strange copper
cinder karma
#

New sweater

#

Thinking side to side, loose, lacey, batwing sleeves, etc

#

Shorter

floral parcel
dapper sinew
#

pricy but maybe youde enjoy it!

strange copper
#

not that i know a thing about your institution but distributed computing is a pretty cool topic imo

#

If you loved linear algebra computer vision/graphics/ML is probably up your alley. vision stole my sanity and ran off with it but i learned a lot from the course i took

pliant snow
#

Operating systems was a very useful elective

regal ingot
#

Do you want to learn programming or Computer Science?

harsh mortar
#

yes 🙂

lethal walrus
#

my server hit 600 days uptime! (this is a bad thing why did I let it get to this) (although, it means nothing I wrote fatally crashed it.. yet)

thin estuary
#

what do you mean a bad thing, 100% uptime for almost 2 years

lethal walrus
#

that also means no major updates applied

#

as in the kernel is 2 years out of date

thin estuary
#

i guess...

lethal walrus
#

ubuntu is also a patch out of date

cinder karma
#

(I'm kidding)

lethal walrus
#

it's a VPS

primal shore
primal shore
primal shore
primal shore
#

Computer science would be a really nice field for me to get into working in NYC though

strange copper
#

Does your uni offer computer science and software development as separate degrees or something?

primal shore
#

There is computer science & computer engineering

#

I’d go for science

#

Dream job would be game development but I’m looking at a CS degree for a well paying job, regardless if in the game industry or not

primal shore
#

Deleted old picture for clarity - these are the electives… the other stuff mentioned in chat was already required

#

I’m definitely choosing computer graphics, but the other 3 I’m not so sure on

#

Maybe I’m overthinking again 😅😭

worn remnant
#

if it were me i'd be slamming the 42000: compilers button

sand frost
#

It really depends on your interests imo

sand frost
#

As general advice, I would recommend taking a broad range of classes so you know which directions you have interest in, strongly biased towards courses with the best teachers and somewhat biased towards classes as rigorous as you can stand.

#

Being good at difficult things is a valuable skill, enjoying your classes is important, and at the start of your career, breadth is important.

cinder karma
#

Also ask around

#

See who teaches which class

#

Having a great professor is sometimes worth taking a class you're less excited aboit

safe dragon
#

try a broad range of classes and then become a web developer anyway cause that's what half the job market is 🙏

strange copper
#

It hurts

warm rock
#

Hi guys!
Kinda simple question, i'm trying to improve my programming skills but i think i'm stuck about not knowing what to study. Currently i'm a junior dev (almost middle) working with c# and i liked a lot this language, but it appears to me that i lack some essential knowledge like design patterns, delegates, async methods, etc cause i always think my code is not good and could be better. Any suggestions about programming books, courses or life? hahaha

worn remnant
#

always thinking your code could be better is (as far as i know!) normal, and a good sign that you are in fact improving. you will hear a lot from experienced programmers about wrestling with their arch-nemesis: themself from four years prior

sand frost
#

Atra recommends the yellow book iirc?

pliant snow
#

The CD spec Yellow Book

cinder karma
#

The yellow book is good for absolute beginners

#

Like baby's first c#

#

They're beyond that

warm rock
#

Exactly, i'm not a begginer anymore, but i'm not a professional hahaha
Just knew that stardew valley mods could be made in c#, so i had an idea for a mod to practice my c# skills (currently trying to understand ther Chests Anywhere code)

sonic mirage
#

I wouldn't worry about "categorizing" yourself as junior or senior or anything like that. There are plenty of "senior" programmers that write hot garbage, unreadable, unmaintainable code that they don't test and just push to prod with terrible/no commit messages.

The best thing you can do is try to understand every little thing your code is doing and if you don't understand something spend the time to learn/figure it out. Lots of what you learn ends up applying to more than one language and often will come up again later.

pliant snow
#

oh wise and noble nerds. Is there some software that combines the capabilities of ssh and sftp? Often I'm ssh'd into a machine, doing stuff, and decide I want to copy a file over. AFAIK there's not really a good way to do it, at least not with some really long command or just opening a second shell and sftping the file over that way

strange copper
#

vscode ssh plugin

pliant snow
#

vile

sonic mirage
#

I use WinSCP for direct SFTPing (such as for deployments) and then when developing on a dev server I use Sublime's SFTP plugin to push on save

#

Note that the SFTP plugin is paid, but I have a license through work

#

Been using it for 10+ years though so I think it's probably paid off lol

pliant snow
#

the more i google the less I think this is a thing, dang

#

people have rewritten every command under the sun in Rust, but I gotta open two shells like an animal

worn remnant
#

it's not sftp, but if you have ssh keys/pw set up in both directions you can scp a file out from inside the ssh shell

pliant snow
#

That i think is the main way, although i find its syntax odd.

#

I think i might be able to mount it or open it in a gui, but i dont realize i want to copy a file until im already sshd

regal ingot
#

opening another shell and using scp or rsync is by far the easiest. If you don't want to switch terminals you can suspend the ssh session (~^Z), run scp, and then fg it again.

primal shore
#

thank you everyone, im listening to everyone's feedback on which courses to taek SDVpufferheart

sand frost
hoary estuary
#

How to learn programming? 😭

jaunty crypt
#

hello, wher do i finde some help white the mods for SDV?

cinder karma
#

Not here

jaunty crypt
#

tx

strange copper
pliant snow
#

Thats kinda the secret, learning one programming language helps learn others, but they have specialties

strange copper
#

its true, i learned C# by just writing java in the editor, googling collection methods, and then learning how much better C# is through the intellicode suggestions lol

cinder karma
#

Meanwhile I learned Java by "oh we need someone to teach AP CS. Tomorrow. Think you can swing that?"

strange copper
#

My AP CS A teacher was some full-time SWE at a big company and they just pulled him for first period every morning lol

#

i think he was a manager or something so he could just do what he wanted

cinder karma
hardy storm
lethal walrus
hardy storm
#

🤦‍♀️ Thank you, pillow. This is why I ask SBVLmaoDog

cinder karma
#

The year is 2024

#

Why are there windows 7 instructions

#

Page fault in nonpaged area

#

Joy

potent jay
#

eek i just got my first pull request on my mod repo and it makes me so happy. I've been putting a blurb on every single update post asking for people to help out if they want and someone finally did and it was so good 😭 Mr/Ms/(Gender neutral honorific) mouahrara if you're here, I love u

#

and they clearly understand using git way better than me because their commits are so perfect and clean and beautiful with lovely concise messages. i yearn to be what they are

candid pilot
#

idk what it is about git i barely know how to use it well or anything but i love putting stuff on there. no one ever sees it. i just love to publish stuff there

sonic mirage
#

I find a good visual Git app like Sublime Merge and/or TortoiseGit help me make better commits, esp Merge. I can easily review all my pending changes by scrolling through them in one place and add to my commit message as I review changed files and marked them as staged. I can also elect to not stage some changed files so I can group them together if they would logically group together better in a future commit.

#

If you get just one then get TortoiseGit, but Merge helps in reviews and committing a lot, without having to have 15 windows open like you sometimes get with TG

peak trench
#

Hey folks, can someone possibly help me with a bit of javascript code.

I am using a wordpress theme that has an included countdown timer, however it will only count down from a date and not a date and time.

I have isolated the code to the following:

function CountDownTimer(a,b){function i(){var a=new Date,i=c-a;if(i<0)return clearInterval(h),void(document.getElementById(b).innerHTML="EXPIRED!");var j=Math.floor(i/g),k=Math.floor(i%g/f),l=Math.floor(i%f/e),m=Math.floor(i%e/d);document.getElementById(b).innerHTML=''+j+" Days - ",document.getElementById(b).innerHTML+=''+k+" HRS - ",document.getElementById(b).innerHTML+=''+l+" MINS - ",document.getElementById(b).innerHTML+=''+m+" SECS"}var h,c=new Date(a),d=1e3,e=60*d,f=60*e,g=24*f;h=setInterval(i,1e3)}

My mind is boggled just looking at that, but someone probably knows what they are looking at, I want to include a time in 24 hours, such as 1700.

The shortcode currently passes through "year" "month" and "date", i can also make it add "time" with the 24 hour time format, Is it possible to add something to that code above that will count down to not just a day but also a specific time within that day?

sonic mirage
potent jay
#

and oh yeah ping is fine, I prefer to be pinged because I am so bad at following up on messages I've sent otherwise haha

pliant snow
lethal walrus
#

prettifying that code helps a lot

#

you can also just feed it a Date as the first argument

#

CountDownTimer(new Date('2024-06-10T19:00Z'), 'timer')

sonic mirage
#
function CountDownTimer(a, b) {
    function i() {
        var a = new Date,
            i = c - a;
        
        if (i < 0)
        {
            return clearInterval(h)
        }
        
        void(document.getElementById(b).innerHTML = "EXPIRED!");
        
        var j = Math.floor(i / g),
            k = Math.floor(i % g / f),
            l = Math.floor(i % f / e),
            m = Math.floor(i % e / d);
        
        document.getElementById(b).innerHTML = '' + j + " Days - ",
        document.getElementById(b).innerHTML += '' + k + " HRS - ",
        document.getElementById(b).innerHTML += '' + l + " MINS - ",
        document.getElementById(b).innerHTML += '' + m + " SECS"
    }
    
    var h, c = new Date(a),
        d = 1e3,
        e = 60 * d,
        f = 60 * e,
        g = 24 * f;
    
    h = setInterval(i, 1e3);
}
peak trench
#

@lethal walrus That actually helped me a lot, I just needed to input the date as HH:mm not HHmm and it worked

lethal walrus
#

np

sonic mirage
#

I was gonna say, it looks like you just need to include the time component you want when you initialize it

#

I love that the minimizer saves 1 character with 1e3 vs 1000

peak trench
#

Thanks guys, I will do a javascript/JS course soon, i just didn't know how to parse it through.

lethal walrus
#

and it does 60*variable, not 6e5

#

actually why does it do that, it takes up more doing the multiplication

sonic mirage
#

It's probably just the level of minification; if it's just uglifying the existing logic it might keep that

lethal walrus
#

true

sonic mirage
#

Also d is used to calc m

lethal walrus
#

oh you're right

peak trench
#

I'm gonna pretend I know what you're talking about and say yup

pliant snow
#

it makes sense, its easier to remember theres 24 hours in a day than adding how many miliseconds in a day

sonic mirage
#

and that way the retro encabulator can effectively prevent side fumbling

silk narwhal
#

Uhh that didn't work it seems

#

Let's try linking to the message instead

#

Currently trying to get someone to send me their mods folder so I can troubleshoot an issue that they have. Pathos recommended me a site in this message: #making-mods-general message. The user's getting "Server responded with 0 code" when they try to upload a file (they've tried a 0.9 GB and 0.8 GB file). Any clue what could be causing this and a good alternative file hosting site that would dodge this issue?

thin estuary
#

they could update their big mods to make sure they're on the latest of these, then remove them before compressing and tell you to get them yourself

#

i'm still surprised catbox lets you upload such big files for free

#

i doubt you'll find an alternative

lethal walrus
#

litterbox is temporary

thin estuary
#

still

lethal walrus
#

mhm

thin estuary
#

bandwidth isn't free

lethal walrus
#

the servers are $1400ish a month (source: homepage)

rain apex
#

just zip it into parts

thin estuary
#

disks also experience wear

rain apex
#

it'll suck a bit for recipient but u can send big things this way

thin estuary
#

it will suck for both sides

#

better to just remove SVE or whatever there is

supple ether
lethal walrus
#

i only know from pathos tbh

thin estuary
#

same

supple ether
#

really? I didn't know pathos used it

lethal walrus
#

yeah it's what he recommends most of the time

supple ether
#

I like to use it to send dev builds to people who aren't on discord and the number of times I've had people be like "wtf is this sketchy shit" is astonishing

silk narwhal
#

Should I also recommend some other precautions like turning off their VPN (so they aren't using one that could be IP banned) or checking their internet connection? A cursory search returned those as possible reasons

thin estuary
#

tell them to try uploading literally any other file first

#

something small

#

if that works, then i doubt the VPN is making a difference, if there's any

supple ether
#

litterbox also has file size limits but I think it's 1gb?

thin estuary
#

should be, but is it 1 GB? 1 GiB?

#

stupid file size units

silk narwhal
#

Yeah I was wondering if my math wasn't mathing or if it's an issue of the units

#

Why are they like that

thin estuary
#

or it could just be derping on larger files

supple ether
#

what file type are you uploading as well? certain extensions are banned

silk narwhal
#

I asked for a zip file, dunno what else they could be uploading but I could reiterate in plainer terms what zipping is just in case

supple ether
#

maybe have them try mega if they can't get litterbox working?

silk narwhal
#

I'll leave that as one of the last options to try I guess

#

Got a whole prioritized list going now

worn remnant
supple ether
#

the distinction between gigabit and gigabyte exists for good reason; the distinction between gigabyte and gibibyte is just so hardware manufacturers could scam clueless consumers

pliant snow
#

ehh i dont strictly agree

#

the distinction between gigabyte and gibibyte is that gibibyte is the more natural one, but sounds stupid

supple ether
#

I agree with what you said but I suspect you got them mixed up

#

gigabytes are powers of 10, which is not suitable for binary systems, and gibibytes are powers of two, which makes a lot more sense in computing

#

gigabytes were and still are defined as powers of two by most operating systems, while hardware manufacturers tend to prefer powers of ten for gigabyte, often without specifying the actual capacity in bytes. Gigabytes were not legally defined as powers of 10 until a lawsuit in 2019, and after that gibibyte started gaining visibility as an alternative term

#

also it's not even consistent. I bought two different models of drive advertised as 1tb from the same manufacturer. one is 1024 GiB, and the other is 1000 GiB (???)
I'm not really upset about losing 24 gb but it really hammers home that hard drive manufacturers will just put whatever bs they want on the package and get away with it

gaunt wadi
#

I now automatically unlock my keepassxc database which holds my ssh keys before performing ssh commands 😎

That doesn't happen by default because the ssh agent protocol doesn't support it, but I am a wizard

safe dragon
#

incredible

gaunt wadi
pliant snow
#

detective cat is on the case

#

theyve already responded, youre LATE

#

this is dark arts tho, there be dragons there

#

at what point do you just run your own DNS server lol

gaunt wadi
#

It seems to not matter unless I'm pulling images with docker, and I barely do that ever, so probably never

pliant snow
#

I'm waiting for this to actually turn out to be a secret backdoor you've accidentally stumbled upon

#

And you'll find yourself on national news at the center of a major security discovery

gaunt wadi
#

That would be incredible

pliant snow
#

wow ive never seen anyone else use gerrit besides us

#

Its sending the wrong packet length then, and dropping packets?

#

dont suppose your router has a firmware update

gaunt wadi
#

my router hasn't been updated in checks notes ever

#

SDVpufferthink lets see

pliant snow
#

im surprised they managed to find the correct commit from 2 years ago that fixed it

gaunt wadi
#

There is not, and the firmware is 8 years old

#

Incredible, it must be vulnerable to so many things

gaunt wadi
pliant snow
#

so what do you do now

gaunt wadi
#

wait I guess

pliant snow
#

rip

strange copper
#

coming home from work and using the OS you know how to use is a wonderful feeling

safe dragon
#

see if that makes any difference. I don't know why it would, but I also don't know what is going on here.

#

yet they found the correct commit from 2 years ago

#

a wizard

cinder karma
#

Ducking awesome

safe dragon
#

controversial

#

I just checked our projects

#

I'll have to change 3 names

#

catastrophic

#

wait no actually I can just remove the backing field

thin estuary
#

honestly, your own fault if you're doing LangVersion=latest

safe dragon
#

I'll be happy if we adopt C# 13 before 2026

pliant snow
#

no company of over 50 people uses a lang version less than a decade old

safe dragon
#

what if the language isn't a decade old yet

#

even go is 14 years old damn

#

o shit

#

rust is only 9

#

why did I think go was newer than rust

#

was it just that no one cared at first

cinder karma
#

Langversion=preview

#

In production

safe dragon
#

on critical applications

pliant snow
#

storing medical data

thin estuary
#

only storing?

safe dragon
#

running mri scanners

pliant snow
#

generating medical data

safe dragon
#

landing airplanes...

cinder karma
#

Let your dishwasher do the work for you!
Links 'n' stuff:

The Connextras video on my dishwasher's program change-up:
https://www.youtube.com/watch?v=0Kp3bjm55xw

The original dishwasher videos:
https://youtu.be/_rBO8neWw04
https://youtu.be/Ll6-eGDpimU

Technology Connections on Mastodon:
https://mas.to/@TechConnectify

Technology Connections on...

▶ Play video
#

He posted!!!!

crystal wren
#

My dishwasher is definitely not better than I think.

cinder karma
#

Well you're british

#

You count but your appliances don't

sand frost
#

My old dishwasher may have had whatever tech it wanted but empirically it did not clean dishes

crystal wren
#

My fishwasher doesn't exist, that's why!

#

...I'm leaving that.

sand frost
#

Only unwashed fish in the DH household

cinder karma
#

British

deep drum
#

the only reason I remember is the background

crystal wren
pliant snow
#

I kinda dig it, but I don't really see how that's any different

#

except I guess you can have access to a bot without having to share a server?

supple mountain
gaunt wadi
#

@pliant snow I have started a spicy argument about edns and caused a new dns debug flag to be added to go, forever 😎

#

.img my work here is done

pliant snow
#

your legacy has been achieved

gaunt wadi
#

It turns out the problem is that the DNS server provided by my modem is broken. Sometimes it returns the right thing:

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 666dcdcf8d70e2ae010000006668b07f82295db2bc36c7b1 (good)
;; QUESTION SECTION:
;ghcr.io.            IN    A

;; ANSWER SECTION:
ghcr.io.        22    IN    A    140.82.116.33

but sometimes the wrong thing:

;; Warning: Message parser reports malformed message packet.
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;ghcr.io.            IN    A

;; ANSWER SECTION:
.            0    CLASS1232 OPT    10 8 q3CHJllrWrQ=

;; ADDITIONAL SECTION:
ghcr.io.        20    IN    A    140.82.116.33
#

I do have the latest firmware, but it's from 2020. I wonder if that is bad

pliant snow
#

The fact its a router firmware problem is not at all shocking to me lol

#

what model is it?

#

and why it is only with that once device that it has issues

gaunt wadi
#

It is a Zyxel C3000Z

gaunt wadi
# pliant snow and why it is only with that once device that it has issues

older pi: go defaults to using it's own dns resolver, runs an old go version where go didn't add the edns0 flag to it's own dns resolver yet
new pi: go defaults to using it's own dns resolver, and always sends the edns0 flag
desktop: go defaults to using the system resolver rather than it's own which doesn't send edns0 flag

#

If I tell the system to send the edns0 flag that starts failing too

#

It's just that go decided to always send it, rather than only send it if included in the user's config

#

which is a very go decision: enable something by default always because it is better/reduce number of configuration options, add an opt out flag in the unlikely case it breaks

#

tbh this is the first issue they've seen since they introduced edns0 ~2 years ago so I agree with what they did

pliant snow
#

Does that mean you're going to have to live with a compiled from source version of Go on raspberry pis for the forseeable future

gaunt wadi
#

No, I just need to set GODEBUG=netedns0=0 in the environment for anything that uses go - it's luckily a runtime flag not a build time flag

#

or set it for everything

#

or just get a new modem honestly

pliant snow
#

I've got custom firmware on mine

#

could try that

#

I barely understand what its doing, but that keeps life exciting

gaunt wadi
#

I do not want to manage my modem firmware on top of everything else 😄

pliant snow
#

coward

#

I did it solely because it supports adblock lol

gaunt wadi
#

ooh, like pihole?

pliant snow
#

Yeah, I used to have a separate pihole device, which due to how my previous router was locked down, had to also be my DHCP server. This was sort of a pain, as it meant I had to have that pi up and running at all times to even have internet. So I bought one with custom firmware support so the adblock now lives on it

gaunt wadi
#

Neat

#

I guess I could try to get my isp to issue a firmware update

#

But that sounds awful

frosty echo
#

I think my router, and its firmware, is old enough to join this server SDVpuffersweats

safe dragon
#

using that modern new wifi 3 specification

pliant snow
#

id rather not have internet

safe dragon
#

my isp is actually issuing a firmware update for my modem in 2 hours and 7 minutes

#

wait no

#

3 hours and 7 minutes

pliant snow
#

i do sadly have to still use my ISP router

#

its a bridge device to my actual one

safe dragon
#

the modem I got from my isp is the most insane thing ever I don't even have another router that competes

#

this modem/router gives me like 800 mbps everywhere in my apartment

#

my old router started losing signal the moment I entered the bedroom

supple mountain
#

i live somewhere that uses community wifi to manage people's individual routers so i have absolutely no control over anything ISP related

#

i miss being able to do literally any troubleshooting

#

the power switch on the router isn't even accessible so i can't even turn it off and on again lmao

safe dragon
#

the first place I lived during uni just had some shit router for the whole unit that we couldn't do anything about or even access without a key from a landlord that lived all the way in a different city

#

the most frustrating thing was that the house was hooked up to fiber internet but despite that it was using some incredibly shoddy DSL connection

#

it's not even cheaper

#

they just didn't want to bother with changing it

supple mountain
#

i am in an apartment complex in spectrum territory

#

i did not live in spectrum territory before grad school so idk if these community wifi packages that residents have no control over are unique to them, if they've just become more popular in the last half decade, or something else

supple mountain
#

whoa, your internet can be super fast! but it's also going to go out multiple times a week

safe dragon
#

a fun combination

#

my current house is a little funky

#

I am connected to two fiber networks

#

there was already one and then a second network was like "ok but we also want to provide service in this street"

#

and now there's another

#

I have two separate little boxes in my wall to connect to each different network

supple mountain
#

anyway i popped into this conversation because one day, when i live somewhere else where i have my own router, i would also like to have adblock live in the router

safe dragon
#

ah pihole kinda thing

supple mountain
#

every day i fist-fight google

pliant snow
#

yeah, can start with pihole at least

#

its nice, but not perfect

supple mountain
#

sometimes i just want to watch youtube on the tv instead of on my desktop. and google decides that means i have to see 3 minutes of ads for every 4 minutes of content

#

not really incentivizing me to pay to remove the ads when it's that egregious

deep drum
#

I just bit the bullet and moved everything to firefox

#

chrome can't catch me if I don't use chrome anymore

supple mountain
#

i am a firefox loyalist but you can't really do that on a ps5

gaunt wadi
pliant snow
#

His router has been bitten by an infected DNS server. You can't help him.

gaunt wadi
#

There's a language barrier for sure but also recent issues he's opened have also been vaguely hostile

#

Why would you go on the internet and be weird

pliant snow
#

thats my job

hardy storm
#

That discord hiccup seemed pretty odd. Images and emojis seemed to be getting through fine albeit slow but no messages?

lethal walrus
#

CDN would be a different server than the api, it'd make sense only one goes down

safe dragon
#

yeah the cdns are separate for the most part

crystal wren
#

Yeah, but for images to be getting through but not messages without, that would mean there's a distinction between messages with images and messages without at some point... right?

hoary estuary
#

Hey is there a self taught programmer here?

crystal wren
#

I have zero actual education in the subject!

hoary estuary
#

If there is a self taught programmer here, please kindly give me advice SDViconpumpkin

safe dragon
#

do stuff till it becomes fun and then keep doing more stuff 👌

#

but more seriously... what have you done so far?

#

I'm not "self taught"(I went to uni for it) but I can try

#

and what is your goal? employment in the field or just being able to program

crystal wren
#

I am entirely self-taught, but nowhere even close to recently... so I won't have too much specific advice for the early stages.

safe dragon
#

programming to me at least is one of those things that you can only learn by doing. You can read a hundred books about it and live and breathe programming tutorials on YouTube but that won't really do that much once you're actually faced with having to use it yourself. Of course still helps to be educated on what's out there and what's possible but especially when starting out it shouldn't be the focus

crystal wren
#

Programming also has possibly the biggest problem with getting stuck in tutorial hell of... I think anything?

safe dragon
#

yeah, very much facilitated by a million online creators making content for these people, just adding on the heap of tutorials

crystal wren
#

"How to make an action RPG battle system in Unity where the main character has a dodge but without I-frames, with draw-with-cursor style magic casting in space with zero gravity!"

crystal wren
#

When a tutorial "industry" has a lot of things like that fake example... there's a problem.

safe dragon
crystal wren
#

Umm... sewing technically, yes!

safe dragon
#

programming was incredibly daunting to me when starting out and honestly the most valuable thing I got out of university was simply that it forced me to get past that point.
Most of the actual course details I've long forgotten

crystal wren
#

I'm like Atra... first time I ever really touched it was VBA in an ancient version of Office...

safe dragon
#

I started with a little XNA game

#

"game"

crystal wren
#

In terms of first contact with languages, ignoring how long I stuck with anything, I think I went...

#

VBA > BASIC (via the hidden QBASIC 4.5 I found on the school's computers) > C > C++ > Java > random languages I don't want to count because I screwed with everything > C#.

#

I poked around with D at some point very briefly...

safe dragon
#

I went: C#

#

I've learnt a few other languages since then but C# is still the one I use most...

crystal wren
#

It's definitely the one I like the most right now!

safe dragon
#

it is not the one I like the most hc_pensive

crystal wren
#

I left JS off my list on purpose, because no.

safe dragon
#

I just wrote some Javascript a few minutes ago

#

also C# mere seconds ago

crystal wren
#

Also Atra, were you around when I figured out that VSCode's C# debugger does attach to SMAPI correctly on Linux now?

safe dragon
#

impossible

crystal wren
#

#making-mods-general message

Which is good, because ModBuildConfig purposely doesn't generate run configurations on Linux... and this change means I can tidy up my csproj files a bit!

hoary estuary
cinder karma
#

But I'm primarily python/LabView rn

safe dragon
#

I've been in 4 this week!

#

VB.NET, C#, Javascript and TSQL

cinder karma
#

Tsql

#

What is that

safe dragon
#

SQL Server's flavor of sql

#

aka Microsoft's creation

#

SQL but with a bunch of stuff for stored procedures thrown on top

crystal wren
#

I've actually begun not outright hating Python lately, by the way. Which is real character development for me.

safe dragon
#

damn

#

eventually you'll reach my stage of mild ambivalence

#

it has some absolutely cursed things in there but it's mostly ok

#

I'll never get over optional parameter reference types maintaining state between calls to the function though

#

that's just a bug they forgot to fix

crystal wren
#

And now people use it, so it's not being fixed until Python 4 probably?

safe dragon
#

and maybe they even like it and won't fix it...

#

I'm also incredibly opposed to how loosely python plays with the rules of variable scope...

crystal wren
#

Don't say that, JS might hear you.

safe dragon
#

Javascript already knows I hate them

#

I understand that this playing loose with scope is convenient sometimes but it's such a terrible idea for anything beyond small little scripts...

#

also means a bunch of problems for the compiler/runtime cause it will have significantly more difficult determining whether a variable has gone out of scope and can be garbage collected

hoary estuary
safe dragon
#

someday you can join these rants

hoary estuary
#

someday

#

thanks yall

cinder karma
#

Writing fpga code, wishing I was in a sane language like haskellll

sand frost
#

Like I really enjoy writing Python now, but I’m like 4 languages in

sonic mirage
#

I always recommend C# as a first language. It's strongly typed so you'll learn how to deal with typing and has plenty of guard rails between Intellisense telling you what's available and the compiler telling you what you did wrong.

sand frost
#

C# is not a bad choice imo. I started in Scheme (Lisp variant) but then Java

#

Scheme is good for mathematical theory of programming—pure recursion

#

Java is another strongly typed language that’s popular in the US because there’s an AP class using it

#

I don’t write any Java anymore but i think it was good for me to start there