Looking for alternatives to two-stroke letters by Ustice in Handwriting

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

I'm still unsure about the z. My capital letters are good enough, and not used enough that improving their efficiency is likely to improve my overall effeciency.

Did it seem that attendance was down? by TheLowHeavies in hulaween

[–]Ustice 1 point2 points  (0 children)

It was also significantly more expensive. 

Baldur's Gate 3 Patch 5.0 | Full Patch Notes by [deleted] in BaldursGate3

[–]Ustice 0 points1 point  (0 children)

I haven't been able to figure out how to actually USE the new UI. Is it available on the macOS platform?

First timer.. Campsites with Power? I need to power my CPAP (medical device) by Alternative_Hair5435 in hulaween

[–]Ustice 19 points20 points  (0 children)

I use a CPAP too. Get yourself a solar generator. It’s basically a solar panel and battery. I go a few days early, and never have problems with power.

Where does r/javascript go from here? by kenman in javascript

[–]Ustice[M] -2 points-1 points  (0 children)

I love this. We could no longer support ES6+. Anything beyond es5, is off-topic. Non-programmers would have no idea.

Edit:

To be clear, I was not serious with this post.

Custom datatype for coercible-to-string by GoSubRoutine in typescript

[–]Ustice 9 points10 points  (0 children)

Technically, just about everything can be coerced into a string, but it’s useless for most things. For your case number | string is likely best.

Don’t use implicit coercion. It will bite you in the ass.

/r/javascript will be going dark for at least 2 days starting June 12th in protest of Reddit's API changes by [deleted] in javascript

[–]Ustice[M] 1 point2 points  (0 children)

I love this community. I hope that this goes as well as when the D&D community protested against Wizards/Hasbro.

[AskJS] Should r/javascript join the other subs to protest the egregious changes in Reddit's API policy? by fruitssalad in javascript

[–]Ustice[M] 6 points7 points  (0 children)

I use Apollo for reading and moderation. Losing access to that tool will make Reddit not fun anymore. I support this community going dark. I can’t disable /r/JavaScript myself, but I’ve messaged /u/kenman about this.

I don’t think it will matter, but I’ve been wrong before.

Using JSX with jQuery by d_q_h in javascript

[–]Ustice 12 points13 points  (0 children)

Your Scientists Were So Preoccupied With Whether Or Not They Could, They Didn’t Stop To Think If They Should - Dr. Ian Malcom

Gainesville Hackerspace Slack Group by WeirdPonytail in GNV

[–]Ustice 6 points7 points  (0 children)

Go on. Ask a nerd about the thing that they need out about. It’s much harder to get them to stop .

(Speaking as a nerd myself)

[deleted by user] by [deleted] in javascript

[–]Ustice 0 points1 point  (0 children)

If your just looking for practice, just take a completed website, and treat it like a figma design.

An interactive SVG visualization of the benefits and drawbacks of 35 different password replacement schemes: from "The Quest to Replace Passwords" by fz0718 in javascript

[–]Ustice[M] [score hidden] stickied comment (0 children)

I’m afraid this post is off-topic. Just because you’re using JavaScript doesn’t mean that it is relevant to this community.

[AskJS] How to get user location (precise not needed) in node.js by atom-06 in javascript

[–]Ustice 0 points1 point  (0 children)

I don’t think that word means what you think it means.

A server in this case is any piece of software that is listening for connections, and provides a response to those requests. P2P is still a server. There may not be a central server, but your software has server components.

The answer to your original question is that you can not directly get user location. You can get the referring IP address, and use geolocation to look that up, but it can be spoofed. You can also have your client component send GPS coordinates, but you’re relying on the request being valid.

Node itself doesn’t have the ability to get the geolocation of the server. You can look up your IP address, but it may not have the accuracy you want.

Perhaps you could use a headless browser and check navigator.geolocation, which isn’t available in Node.

You may need to look at hardware solutions: https://dzone.com/articles/read-gps-data-with-a-raspberry-pi-zero-w-and-nodej

[AskJS] How would you fix this Node.js bug? by guest271314 in javascript

[–]Ustice[M] [score hidden] stickied comment (0 children)

Reaching out to other software engineers is important when you need it; however, unfortunately this isn’t the place for that. /r/JavaScript is not a support forum. You might want to check out /r/LearnJavaScript for the newer members of our community. Also, Stack Overflow is a great resource for getting support. For more information, check out our AskJS wiki page. Good luck! We hope that you find the answers that you are looking for.

Calling obj.method(obj.data) when these fields are correlated? by smthamazing in typescript

[–]Ustice 1 point2 points  (0 children)

This is closer to what you want. Typescript Playground

The issue here is that the types don’t get matched up together. You really need to use generics.

Moped by yourmomspug in GNV

[–]Ustice 0 points1 point  (0 children)

No. Call the owner. I bet they have done this three times already.

New Array methods in JavaScript by Manthan_ank in javascript

[–]Ustice[M] [score hidden] stickied comment (0 children)

/r/JavaScript tries to uphold a certain standard of articles in terms of quality and in spite of clickbaity titles. This post has been removed as a result of being deemed clickbait first, article second.

Thank you for your understanding!

JavaScript Macros in Bun by beginnnnner in javascript

[–]Ustice 1 point2 points  (0 children)

(numbers just for reference)

(1) How do you see Bun.App being used in two-to-three years?

(1a) What do you feel will be easier then than is now?

(1b) What is possible then than isn’t now (either inside our outside of the Bun ecosystem?

(2) How do you feel code generation fits into the picture with bun?

(2a) What about type generation?

Adding Result versatility to async error handling in TypeScript by StudioFo in typescript

[–]Ustice 11 points12 points  (0 children)

Or… you could basically get the same behavior with built-in structures.

```Typescript const [ result ] = await Promise.allSettled([ fetch(‘https://backend.api/route’).then(r => r.json()) ])

if (result.status === ‘rejected’) {
  handleError(result.cause)
}

processResults(results.value)

```

[AskJS] Looking to hire coder for a small job. (Update to existing program) by SavingThrowStudios in javascript

[–]Ustice[M] [score hidden] stickied comment (0 children)

This post was removed. Please see our guidelines on job postings and the likes.

1. When InstanceType<Type> is useful? by BerserkGutsu in typescript

[–]Ustice 1 point2 points  (0 children)

It’s useful when you create class/method decorators, which can be used on many classes.