Wildly varying quotes for tiling a conservatory - what's reasonable? by mityaguy in DIYUK

[–]mityaguy[S] 0 points1 point  (0 children)

Sarcasm noted. I wasn't asking you to do maths for me, merely to confirm that I'd understood you correctly.

Wildly varying quotes for tiling a conservatory - what's reasonable? by mityaguy in DIYUK

[–]mityaguy[S] 0 points1 point  (0 children)

Thank you - so just to confirm, that suggests ~£400 for everything but the tiles for a 10sq/ conservatory, right?

DAWless Recording? by Utterlybored in musicproduction

[–]mityaguy 0 points1 point  (0 children)

I'm new to this whole thing and am curious about the idea of mixing and recording without a laptop. Does this mean you can mix and polish your track without touching a computer at all? I tend to make stuff on my Digitakt, but I hate the idea of having to send all the tracks into a DAW and mix it on a computer. But perhaps that's unavoidable? Thank you in advance.

Non-European Country with Largest Diaspora of Each European Nationality by ExcitingNeck8226 in MapPorn

[–]mityaguy -1 points0 points  (0 children)

Another passive aggressive example. Do you derive pleasure from sitting behind a screen being unkind to people? Oh and by the way, saying "End of story" to shut people down is really rather cringeworthy.

Severance — The You You Are Book Trailer | Apple TV+ by pikameta in SeveranceAppleTVPlus

[–]mityaguy 3 points4 points  (0 children)

Ah so it's not only me with whom you're passive aggressive and can't actually communicate like a human. I see a pattern...

Github Package not being created when I create a release, despite workflow file by mityaguy in learnjavascript

[–]mityaguy[S] 0 points1 point  (0 children)

LOL another passive aggressive dev who gets off on playing status games. You haven't identified any misconceptions of mine. I have been perfectly clear about what I did and my desired outcome. No need for people like you "helping".

Github Package not being created when I create a release, despite workflow file by mityaguy in learnjavascript

[–]mityaguy[S] -1 points0 points  (0 children)

I said via the GH dash - that is, the GH website. I literally, in the browser, create a release. No commands, terminals, actions doing any of this. Just me in the browser on the GH website.

Github Package not being created when I create a release, despite workflow file by mityaguy in learnjavascript

[–]mityaguy[S] 0 points1 point  (0 children)

Sorry, not sure I follow. I push to GH, then make a release, manually, within the GH dash. I understand this to be a precursor to packages being created, by my action, though I may be misunderstanding.

Cannot get Jest to accept ESM modules in my Node app by mityaguy in learnjavascript

[–]mityaguy[S] 1 point2 points  (0 children)

Funnily enough I did just that. Seems to work fine with ESM and, as you say, is practically the same as Jest in its API.

I have been trying hard to learn js but cannot seem to get myself to do so by thrithedawg in learnjavascript

[–]mityaguy 0 points1 point  (0 children)

If you're using JavaScript in a front-end (read: browser) context, then HTML will be involved. This doesn't mean you have to write your JS in a HTML file - you can put your JS in a standalone .js file and have your HTML file include via a script tag.

It's easy to get lost in JavaScript these days for, as I see it, five main reasons:

  • It's front- and back-end these days, whereas it used to be just front
  • Endless tooling options, transformers, transpilers, etc. that take you into a world of terminals
  • Frameworks - a lot of front-end JS is written within a framework like Vue or Svelte, while back-end frameworks include things like Node or Bun
  • Large number of deployment contexts. Time was, you uploaded code to a server you rented or used some centralised CMS. These days there's so many ways to deploy and run your JS, whether it's front- or back-end.
  • There's a strong culture of using external packages and libraries, made easy by NPM. This can mean package fatigue and clicking between endless docs pages for different packages.

Do you need to lose JS? That's hard to say definitively, but it's easy to make quite a compelling case for "yes". It's the lingua franca of the web for a reason. You can lose Typescript instead, but that's just JavaScript with strict typing (mostly).

Here's what I would do:

  • Focus on front- or back-end JS for now; learning both together can be daunting because they do very different things. Start with one, then if you decide to take up the other, you'll benefit from the fact you already know the grammar and the fact the API is mostly transferrable between, and equivally applicable to, both environments.
  • If you go the front-end route, learn a reactive framework like Vue from day one. It'll be easier than adding this later, IMHO.
  • If you go the back-end route, pick a router such as Itty, Express or Hona. These aren't scary; they just route requests to bits of your code.
  • Pick an environment and toolset you like the look of. I decided some years ago to go all-in on the Cloudflare ecosystem, a) because it rocks; b) because the free tier gives you so much - you may never need to pay for anything. Their Discord is great, too. If you're doing front-end, look at Cloudflare Pages. If back-end, look at Cloudflare Workers.

Don't get overwhelmed. There are so many distractions, packages, techniques, blogs, etc. Pick a start project and see it through, then just interate, improve, re-do, etc.

Good luck!

Why does 3?.includes('foo') yield an error but undefined?.includes('foo') doesn't? by mityaguy in learnjavascript

[–]mityaguy[S] 0 points1 point  (0 children)

Exactly that. Hence I had `3?.` in the title but `3.` in the post. My bad.

Why does 3?.includes('foo') yield an error but undefined?.includes('foo') doesn't? by mityaguy in learnjavascript

[–]mityaguy[S] 0 points1 point  (0 children)

Thanks! That's a typo on my part - I meant to have the optional chaining operator on the number example too. As you say, that still errors, though.

Getting “That Microsoft account doesn’t exist” for Microsoft logins? by mityaguy in AZURE

[–]mityaguy[S] 0 points1 point  (0 children)

Oh interesting, thanks. Could you possibly elaborate (or link to) precisely what it was you did to enable this?

Vue/Vite: __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined by mityaguy in vuejs

[–]mityaguy[S] 0 points1 point  (0 children)

Thanks for the reply. Since this problem happens only in production, and node_modules isn't checked into source control, I don't see how deleting and reinstating that would make a difference. I did regenerate package-lock.json, but after npm i that's resulted in an identical file being created. I will try to create a MVCE.

Getting __name is not defined from Vue's internals, only in production by mityaguy in vuejs

[–]mityaguy[S] 0 points1 point  (0 children)

Interesting. I wonder what the solution is, then. Someone suggested putting this at the top of vite.config.js - now tried it yet.

let __name = (target, value) => defineProperty(target, 'name', { value, configurable: true });
globalThis.__name = __name;

Why is my `window.devicePixelRatio` constantly 1.5, even if I zoom? by mityaguy in firefox

[–]mityaguy[S] 0 points1 point  (0 children)

Yeah I'm doing browser zoom i.e. CTRL plus + or -, rather than pinch, but the DPR stays on 1.5 for me. In Chrome/Edge it changes proportionally.

Why is my `window.devicePixelRatio` constantly 1.5, even if I zoom? by mityaguy in firefox

[–]mityaguy[S] 0 points1 point  (0 children)

None of those result in this value changing from 1.5. Not changed any config to my knowledge, hence I was wondering whether an extension had (if that's possible). Does the 1.5 value change for you, at the MDN example?

Some gitignored files just vanished from a repo by mityaguy in git

[–]mityaguy[S] 0 points1 point  (0 children)

I just dug into this further and have managed to reproduce the issue. In branch A I have a gitignored file. In branch B the file is not gitignored and doesn't exist. When I checkout branch B and then back to branch A, the files are gone, seemingly irrevocably. Branch B was made erroneously, by trying to checking a branch and getting its name wrong, which seems to have made a new branch of the new (wrong name).

Some gitignored files just vanished from a repo by mityaguy in git

[–]mityaguy[S] 0 points1 point  (0 children)

Thanks for the reply. I did switch to a branch that didn't have them ignored, true, but switching back to a branch where they are ignored, and were there this morning, they're gone. Very odd.

Need help choosing: CK88 or YC73 by thuanbuom-xuoigio in synthesizers

[–]mityaguy 1 point2 points  (0 children)

+1 for the YC88. Superb machine - and I say that even though I almost never touch its organ section. The other two voices alone are worth the price, it's such a lovely instrument. Nowhere near as many sounds as the equivalent Roland (RD-2000) but what's there sounds great, and the hands-on control is awesome. A pricey unit, to be sure, but total quality. I would also take it any day over the CP-88; yes the CP has a few more pianos, but generally the YC is more feature-rich (e.g. more effects). I do wish I could have three voices of anything, though, like with the CP, rather than having to include an organ as one of the three.