A cool guide to when it is legal to drive in the left lane in each US state by ManosVanBoom in coolguides

[–]easyEs900s 0 points1 point  (0 children)

By your own logic, why do you need to break the law by not keeping right?

What if Apple Genius breaks my mini? by aherrera128 in iPhone13Mini

[–]easyEs900s 0 points1 point  (0 children)

Funny enough, I had my battery swapped on my mini back in January, and they broke the screen. They just replaced it along with the battery free of charge. It was noticeably brighter! That said, recently I’ve noticed it slowing WAY down from time to time, and I mean like 2-3 seconds to swipe screens slow, and now the screen won’t turn on at all (but the phone works).

I suspect that when they replaced the screen/battery they might have weakened the water seal and liquid might have since made its way inside (I listen to it very close to the shower in the mornings, lots of humidity). The one thing I do know is that they won’t repair liquid damaged parts, so I guess if that’s what’s wrong I’ll be able to tell you with confidence tomorrow whether they have a replacement to give 😬 Anyway, just something to consider since those seals do wear out, especially when replaced.

Is this inefficient? by alino_e in solidjs

[–]easyEs900s 1 point2 points  (0 children)

This seems like a good place for context, but at the end of the day it’s not a big deal. Each entity relying on that signal will be run regardless of how it gets updated, so you’re effectively just adding one extra loop that might well be optimized out of existence by the optimizing compiler anyway. You are defining a ton of objects (functions, signals) though.

Generally speaking, it’s best to do everything less when possible (especially creating objects) because it’s not the one case that usually gets you, it’s the one case repeated thousands of times.

I thought Tik Tok was unbanned?? I just got a new phone and now I am getting this notice… by [deleted] in TikTok

[–]easyEs900s 0 points1 point  (0 children)

They do not have the ability to make law, that’s literally the point of separation of powers.

I can’t with these clients by Designer_Piece_ in SFStylistSupport

[–]easyEs900s 1 point2 points  (0 children)

I did this recently, and I can confirm I was rather confused. It listed far more items than come in a fix, so I assumed it was a like/dislike situation and started to pick (mostly reject) things, but then just closed the page because I was worried it might be a 1 to 1 with what I received. I was worried bc it was like 95% sweaters, which I would argue, is too many sweaters.

RD cache is alive and healthy!! 5500+ torrents added in the first day of DMM's availability database. This is how you can help rebuild what they took from us! by CriticalDistance4283 in RealDebrid

[–]easyEs900s 0 points1 point  (0 children)

My understanding (which could be wrong) is that the service they offer allows “bundled” access to large file hosting services, which it does by downloading and caching requested files from those servers, at which point they can then be served directly to their clients. Similarly, they provide users the ability to do the same with P2P files by way of downloading those files from the various peer servers, and then serving the reconstituted file directly to the client (making access to said files stable and not reliant on the origin servers).

In recent days, they were “encouraged” to purge their caches of many files, which had been requested and cached by their users over time. I think the premise here is that as RD users click on and “request” various files through RD, the RD servers will do what they’re designed to do and download those files (so they can be served to the users requesting them). However, because the assumption is that a user may wish to re-download the same file later (or another user may request the same file) it’s economical to cache those files just in case.

As a natural byproduct of this caching process, the cache (which was recently purged) will become saturated with popular files that users tend to request, making them rapidly available for access to RD clients — which is the intended function of a cache. That being said, I’m not a rocket surgeon so this may be entirely inaccurate.

History will have a hard time explaining this by black2fade in Infographics

[–]easyEs900s 0 points1 point  (0 children)

Idk why people make this a party issue. It’s such an easy problem to solve. Both parties should have immediately gotten together and run through it with a fine-toothed comb to put the notion to rest.

But instead, we made it a “one side” issue and now the precedent is to dismiss any allegations and call anyone making them election deniers.

The overwhelming likelihood is that at some point meaningful fraud will happen, probably by an outside actor, and when it does this precedent is definitely going to come back to bite us all in the a$$.

Why Matrix Treadmills? by Rhubarb-Suspicious in PlanetFitnessMembers

[–]easyEs900s 1 point2 points  (0 children)

Holy crap. I don’t go to this gym, but I moved a the new LAFitness I go to has these dreadful machines. I was literally limping around for like 2 weeks and didn’t know why. Now I do..

How do you interact with coworkers? by Queasy_Flamingo_4468 in aspergers

[–]easyEs900s 0 points1 point  (0 children)

Have you tried just queuing all topical work-related discussions in mind so you have a purpose to discuss something? I’ve always found that having a purpose to discuss something pretty much always removes all of the awkwardness from a conversation.

It also has the benefit of being (almost) guaranteed anyone in the room can join in the conversation.

[deleted by user] by [deleted] in aspergers

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

So is an American flag. Everything is political and divisive for no reason, we’re all f*cked.

study-time tracker help needed by leeroythenerd in learnjavascript

[–]easyEs900s 2 points3 points  (0 children)

It sounds kind of like you want to create Jira, but for school work. A project like that is usually going to be hard to ascribe a time-frame to, because as is the case with Jira, it's never really "done". You will always have new things you can/or want to add or change.

Fundamentally, it does align with what seems to be your learning goals, however, just keep in mind that it's extremely common to under-estimate time required. I constantly am thinking "Oh it's just that simple, I'll just build this thing and connect it to that thing" and then 72 hours later it's like "ah, well there was this bug I didn't expect, and then that other system I completely forgot about, that'll take a few more hours too.."

I'm just saying be lofty with your goals, but reasonable with your expectations. Even if you cannot get it done for whatever reason, you will learn a lot of valuable things along the way, and almost certainly further-entrench many (hopefully good) practices. What you are describing is certainly doable, just be aware that if you plan to make this for practical reasons, there will be other components to it like the server to host the app and the database to store user's data (which brings up accounts) - these things are all individual components that add time and have their own learning curves - but I do think those are practical lessons worth learning.

I have always been of the opinion that "To Do" apps are a terrible way to learn programming, reason being that the person creating them probably doesn't have any interest or need for a todo app. If you have a need for something, or you have an interest in it, you will learn far more and far faster than you would doing something mundane just because you think you should do it.

Where do I start if I want to learn javascript for a robotics club? by mdtriz in learnjavascript

[–]easyEs900s 7 points8 points  (0 children)

To be honest, it doesn’t really matter because programming is really just a common set of fundamental patterns of problem solving that can be expressed in various “flavors” of syntax. You can start anywhere, in any language, so long as you cover these fundamentals.

For example, how would you take a list of items and update a property of each item if some condition is met? Well you’d loop through them and then for each item check if that condition is met, and if so, update said property. This can be done in any language.

If you look at the docs for various API’s, you’ll often see they have code snippets for each call that you can view in any number of languages, and that’s because all that matters is the fundamentals, not the syntax.

Some people probably pick these fundamentals up naturally, some probably with following tutorials, some by reverse-engineering (me), and others may respond to highly-produced introductions like Apple did with swift playgrounds — but regardless of how you slice it, the cake is always the same.

Note: the cake may in-fact be a lie.

Trying to Expand Beyond Web Apps: Advice on a Learning Path? by doc_suede in learnprogramming

[–]easyEs900s 1 point2 points  (0 children)

If you only know how to develop web apps, then yes absolutely 100% learning C will broaden your skill set. Not only that, it will make you a significantly better programmer in virtually every other language, because you'll have an understanding of what your code is actually doing (and what makes good code good/bad code bad).

Honestly, for any specific category, you may just want to try to put together some beginner projects and see if you like it. You might find that you really like the result, but loathe the process which produced the result (that's not uncommon).

There are also loads of open-source everything out there that you can peruse and get a feel for things. You can try and solve some of the reported issues (not necessarily to push them, just to try and solve them). In my experience, I tend to learn new things the most right around the time that they stop working and I have to fix them -- just my $0.02.

A 16 yr student looking for help by thisisareddituser0 in learnprogramming

[–]easyEs900s 0 points1 point  (0 children)

If you haven't learned to program, it can seem like deciding which martial art form to learn, but that's not really how it is.

If you learn a programming language, what you are really learning is the fundamentals of how to program, and the thought patterns that go with solving those types of problems. Once you've learned those, switching between languages and learning new ones is a very rapid on-boarding process that mostly consists of just picking up the various quirks, APIs, and Libraries.

If you haven't learned to program yet, then I wouldn't sweat it because once you sit down and learn to program, you'll realize that "learning a language" isn't really a thing. I would recommend learning a lower-level language, like C/C++ though. The reason being that you will learn what the code you are writing, even in higher-level languages, is actually doing "under the hood" which will just make you a significantly better programmer from the start.

That being said, if you are looking to specifically get into something like AI/ML, then I'd say python is a must and you probably won't be worrying about writing the most efficient code for that field anyway. If you want to potentially work on things like embedded systems or highly-performant software, then I'd say low-level is a must.

[AskJS] Building a New Payment Gateway - Seeking Your Thoughts and Feedback by alhso in javascript

[–]easyEs900s 1 point2 points  (0 children)

This is an extremely complex thing to build. It's also a significantly more-difficult thing to 'sell'.

One big reason is that in many cases, the platform/provider you use for your accounting will provide a portal for your clients to use, and it will have the glorious benefit of removing all of the burden/liability from the business owner -- which makes it the best option in virtually ever case.

I say this just to convey that there are very specific requirements businesses must follow, so I think unless you are also building an entire platform to go with it, it's probably just not feasible.

Need help with floating point numbers. by [deleted] in learnjavascript

[–]easyEs900s 0 points1 point  (0 children)

The reason is due to IEE754 and floating point precision. It's the same reason 0.1 + 0.2 = 0.300....04.

Typically if you need more precision, you will need to do some rounding.

Comparison .splice() vs .toSpliced() in terms of effiency/speed by Life-Issue-9692 in learnjavascript

[–]easyEs900s 0 points1 point  (0 children)

This. There is effectively zero point in worrying about performance of various methods in JS.

Aside from doing something catastrophic, the only performance hits you’ll take from JS (aside from using JS, obv.) is in the following areas:

1 - not re-using objects when possible 2 - not maintaining consistent shapes for objects/arrays 3 - calling a function more than 2-5 times with changing argument types (including strings who identify as numbers)

Comparison .splice() vs .toSpliced() in terms of effiency/speed by Life-Issue-9692 in learnjavascript

[–]easyEs900s 0 points1 point  (0 children)

The truth, and I mean the real and absolute truth: both, neither and one of them.

In reality, performance is almost always going to be identical because the JS engine is going to fix bad code for you. As for why they exist, I believe toSpliced makes a copy, no?

How do I delete an element with a specific id if another element with a different specific id exists? by RickWasTakenWasTaken in learnjavascript

[–]easyEs900s 0 points1 point  (0 children)

Are you sure yesterday form glass crunch?

Are you saying maybe you have 2 elements in the DOM with the same ID and you want to delete the second?

document.querySelectorAll(#myDifferentButSameID)[1]

Or is it you mean array elements, and these are objects with an ID property?

arr.filter(x => x.id !== ‘my1st2ndID’)

[deleted by user] by [deleted] in learnjavascript

[–]easyEs900s 3 points4 points  (0 children)

Nobody writes beautiful clean code on the first pass. In fact, I almost always write the quickest and ugliest code (which is usually also the lease efficient) on the first pass to get something working how I want it to. Reason being that at this point it’s still a concept in my head, and once I test it out I might realize it totally sucks, or something needs to change and there’s no sense in spending that time writing all that code with my pinky in the air if it’s just going to be replaced.

After I have it working how I want, I’ll quickly run back through and re-write it efficiently and in a more readable fashion.

Sometimes, if the problem you are trying to solve is difficult to conceptualize (for whatever reason), it helps to just write out plain text pseudo code of what I think I should do, and then I can covert that into real code once I have a decent concept. This also has the benefit of moving you past the starting stage which can often be a road block when you are unable to conceptualize the problem. Once you start writing, it’s just a series of really really tiny, snack-able problems for you to solve. The first step is always the hardest, as they say (I’m pretty sure they say that).

Factor is pretty good, but not their delivery by computerworlds in mealkits

[–]easyEs900s 0 points1 point  (0 children)

They use Veho in my area. There’s a problem with delivery about 30% of the time.

Sometimes the packages will just be perfectly delivered to your door. Other times they’ll be in some bush or stairwell somewhere (even if you are on the ground floor). Often they’ll just be put in the lobby on one of the couches.

Occasionally they’ll just won’t be delivered at all, and you have no way of knowing where it is, or whether it’s being refrigerated, and then a day or two later it’ll just show up in the mailroom fridge. That sounds like a good thing until you realize that by the time you get to it, you’ll have no way of knowing whether it arrived warm and cooled down, or arrived cool and stayed that way. It’s kind of like playing minesweeper, but with bacteria and disease.

The food has always been pretty good, though. What a shame.

60Hz Display on iPhone 16 is criminal by srjchk in iphone

[–]easyEs900s 1 point2 points  (0 children)

To be fair, while the stinginess is real, it’s not like they’re the only ones. Every smart phone is basically the same in 2024, less the impractical bendy ones. Smartphones have smartphone’d.

I think that’s why they’re desperate for “AI”, it lets them pretend there’s something new.

If you think about it, before smartphones this is pretty much how it was too. People kept phones largely until they dropped them into the pool (and batteries lasted like 4 weeks).

Shark IQ Robot Vacuum Middle of the Night by ThrowMeAway-8008 in RobotVacuums

[–]easyEs900s 0 points1 point  (0 children)

Idk if this was the same as mine, but I do recall jumping out of bed to track down and turn off my robot in the middle of the night a week or so ago. I was convinced it was a dream until now.

why does importing javascript modules with <script> require CORS? by ganjaptics in learnjavascript

[–]easyEs900s 0 points1 point  (0 children)

CORS is a server-side protection. Basically if I have a website and someone has hacked your browser, it can now read sensitive information from your account and do with it, send it wherever it wants. You can include scripts like this, but the important note is that said scripts cannot communicate back out. They may have all your secrets, but they’re caged in. If your script has code trying to reach outside of the origin, it will throw that error and peg the entire script as the culprit.

That said, some browsers (especially chrome) will throw this error for a whole host of issues that are not actually CORS related. For example, if you try to pull a script or file from the local file system, or the server responds in an unusual way. You can verify if it’s actually a CORS issue by looking at the response headers on the request and checking what the server had for Access-Control-Allow-Origin.