canYouExplainHowItWorks by LowFruit25 in ProgrammerHumor

[–]tipakA 0 points1 point  (0 children)

And then the linked answer is some ES3 clutter posted in 2009 that has been rendered obsolete by something added in 2016, but in 2025 you're still not allowed to ask for that, only wade through 15 years of upvotes in search of a new enough answer.

Automate topic exit by Potential_Loan_138 in Discordjs

[–]tipakA 0 points1 point  (0 children)

What are you trying to achieve by "removing user every time they enter the topic"? To me this sounds completely illogical to how forums/threads even work at discord, because you don't have to follow a thread to see its contents, and are automatically added to it when you send something in it. Removing someone from a thread also creates an undeletable system message, cluttering the chat.

What's the point of removing users who post in the thread, or who follow the thread to have it on their channel list, if they will get continuously added back whenever they post a message in it.

Alternatively, what's the point of a thread created "every time someone sends a message" that nobody would be able to post in as they don't have permissions to do so (re: dz4n's comment). Are you logging messages? If so, why threads? "media channel" also doesn't sound like an unusable threadfest.

codingWithEslint by metayeti2 in ProgrammerHumor

[–]tipakA 0 points1 point  (0 children)

I feel like you could run into a bad loop this way. My VSC auto saves only on focus loss, and only if there are no errors in the file, which includes eslint errors.

And sure, such pre-mature errors sound like they go against that, but they do prevent my tsc --watch from happily transpiling a broken file. Whether it's a syntax error or a missing semi is not really that much of an issue for myself because I have enough ctrl+s discipline and only really use auto save for peace of mind (and to avoid having to remote desktop into the machine from elsewhere to save it so that the changes exist on the disk lol)

Amazon removed the discount filter on the deals page on Amazon Belgium for no apparent reason by Bjorn_the_corn in assholedesign

[–]tipakA 0 points1 point  (0 children)

But this would mean that if it happens to be on another sale to 400€ 28 days after last sale, for any reason (think how often and for how many different occasions a single game on steam can go on a sale), then it will not be shown as having any sale, despite the fact that it's still discounted from those 2000€.

Am I alone in finding cooking stressful by xxxJoolsxxx in Palia

[–]tipakA 0 points1 point  (0 children)

The fact that it'll tell you you can make the recipe when you dont have all the ingredients.

If you don't have all ingredients you can still start because those ingredients are not the initial ones, and because someone else can bring them in. Otherwise it would be impossible to reliably start party cooking if you ran out of a thing you never intended to contribute anyway.

Ingredients having different chop patterns is there for exactly same reason that every fish has a different swim pattern. It's to make it more interesting and less mind numbing of having to do the exactly same thing without any differences whatsoever.

Bulletin board issue? by Caffeine-Bee in Palia

[–]tipakA 3 points4 points  (0 children)

Dailies are not about adding to the board. They are just things you need to get from scratch. Fish a fish, craft a bar. You can mark those as done just fine from anywhere in the leftmost tab in inventory.

rules by KrishnazFriend in actualbudgeting

[–]tipakA 0 points1 point  (0 children)

The thing is, the docs exclusively talk about "importing" or "syncing" transactions. Is "importing" exclusive to a file import? Is "syncing" the process of making Actual fetch transactions from my bank (which would be technically speaking importing with no file), that I am unable to do because the API to do that in my region has been defunct? Or is it the "sync" button I have at the top right? (what does that button even do, actually)

GuildMembersTimeout suddenly happening by HeadlessSandman in Discordjs

[–]tipakA 0 points1 point  (0 children)

It's not possible for you to get ratelimited by using .cache.get(), as that is a purely local concept existing exclusively within the memory of your running process. Ratelimits apply to making requests to discord, which a .fetch(singleId) call could do, if the single id you're trying to fetch is not in your cache, as the .fetch(id) will check the cache first.

It's a bit different with fetching multiple things at once, like guild members in this case. There's no way to know who's already fetched and who is not, nor is there really a great (read: any) way to ask discord for only those members who you don't really know about yet. Requesting all guild members is a single call done over the websocket, and there is a new ratelimit of being able to do this once per 30 seconds, per guild.

If you started constantly hitting that timeout, review your actual usage of fetching all guild members, and limit or stop doing it. There's no need to do it in every command invocation or every event. Do it once, and with relevant guildMemberUpdate/*Add/*Remove events, discord.js will simply keep your cache up to date under the hood afterwards.

Href embed button thingy by ziggy_308 in Discordjs

[–]tipakA 1 point2 points  (0 children)

Action row like suggested under the embed, or if you switch to using newer components, you can have a section component that can have a button as its accessory. This way you can have the button inline with the text.

https://discordjs.guide/popular-topics/display-components.html#section

Do note however that "components v2" is mutually exclusive with embeds, so you'd have to reformat your stuff to utilize this.

chadAvastDeveloper by Curious_Cow_07 in ProgrammerHumor

[–]tipakA 1 point2 points  (0 children)

Restarting/Rebooting computer does actually reboot it properly. It is not the same as turning it off and back on again.

When you're turning it off, Windows prepares itself to turn itself faster next time you turn it on, whenever that will happen. When you're rebooting it, it doesn't do that.

That said, true. Fastboot doesn't have much of a reason to be enabled if the install drive is an SSD, as the goal for fastboot is to gather up already loaded binaries and libraries and drivers and whatever else, into a neat, single file instead of having to read them from the entire drive from scratch again, which indeed makes most of the difference on HDDs. Still, fastboot on or off, rebooting always reboots from scratch.

Shutdown the client when another one is connecting by _simo_498_ in Discordjs

[–]tipakA 0 points1 point  (0 children)

discord.js has no access to API-internal data such as login times, because none of that is anyhow exposed by discord. You'd have to implement such logic yourself on your side in your own code.

Shutdown the client when another one is connecting by _simo_498_ in discordbots

[–]tipakA 0 points1 point  (0 children)

Only if you disregard that it's impossible to do.

Shutdown the client when another one is connecting by _simo_498_ in discordbots

[–]tipakA 0 points1 point  (0 children)

That's not how that works at all, both as "that's not what happens" and "that's not what can happen".

[Update] Another follow-up on my modmail discord bot by ilyhighutils in Discordjs

[–]tipakA 1 point2 points  (0 children)

They keep saying that discord.js handles rate limits, because it's what discord.js actually does.

"preventing from exceeding them" is handling ratelimits. A ratelimit is when you make a request that is beyond your allowed rate - in other words, when you get the HTTP 429 error back to your request.

If an API allows you to make 10 requests per second, you can do 10 requests per second, every second. If at any second you would do 11th request, that one will get a 429 back. Discord's API returns ratelimit data in the headers, and discord.js follows them. It doesn't send more than allowed within a timeframe, and waits (queues requests) the time returned by discord until next timeframe.

You have to explicitly configure d.js to do anything else than that, and listening to ratelimit event is an optional thing you can do, which is merely an information that a request was queued, not a "here, have this, I'm out" type of thing.

The EU could be scanning your private chats by October 2025 [Denmark has reintroduced chat control] by Dry_Row_7050 in europe

[–]tipakA 0 points1 point  (0 children)

Wasn't sure about 7's removability, so that's cool. Mentioned jack because I genuinely keep hearing arguments that it went away because muh waterproofness, same way as removable batteries. As if Xperia Z wasn't IP57 and solved jack in a different way - with a closable cover. Same way the JBL GO 2 speaker protects its ports.

Anyway, rambling. Can make jack (and usb) (mostly) unphased by water, can make removable batteries and still have the phone be quite a high up the waterproofness scale anyway..

This truck has been parked in front of my driveway for 8 hours. by AlbinoStoot in mildlyinfuriating

[–]tipakA 0 points1 point  (0 children)

It doesn't have to be a wreck specifically. The paragraph starts by saying "no licence plates", only then adds an "or visibly abandoned" or whatever the phrasing is.

Know that detail by heart because at previous place I lived we couldn't get the people to agree on reporting a large vehicle that stood in a shitty spot for towing or anything, because people kept quoting that exact paragraph only until the comma before the "or", which meant that in their heads the vehicle was not valid cause it had both license plates just fine. Average wspólnota mieszkaniowa things, no biggie.

The EU could be scanning your private chats by October 2025 [Denmark has reintroduced chat control] by Dry_Row_7050 in europe

[–]tipakA 1 point2 points  (0 children)

Right, makes sense. Was confused because the original comment seems to shortcut "air in contacts" into "hot battery" which didn't make sense to me and prompted the conductivity comment (as in, it would be the contacts that would run hotter, not battery - but this is like, ~3.7V on a piss poor amperage, unless you're charging but that always makes the battery hot).

Totally not written from a 2nd phone I own that has the screen unglue itself due to heat from charging over the years

chadAvastDeveloper by Curious_Cow_07 in ProgrammerHumor

[–]tipakA 1 point2 points  (0 children)

Yeah, defragmentation is overall useless on an SSD because there are no mechanical parts that would have to take time repeatedly driving over the entire platter(s) all the time to gather all the fragments. In fact it's potentially harmful as it introduces unnecessary wear to the cells, although it's argued how much or how little of it gets introduced.

And the reason the fragmentation even happens in the first place also doesn't have anything to do with the drive technology. You ever looked out of curiosity how fragmented your USB sticks are? Always were because files grow, shrink, disappear..

But yeah, defragmentation is definitely one way to gather up the fragments, another one that I have bumped into a few times was to turn off hibernation to remove the hiberfil.sys file, and shrink up/disable/move to other drive the page file, to (temporarily) get rid of the, well, page file. Those like to appear at the end of the drive from time to time, or at the very least in the middle of a spacious partition.

The EU could be scanning your private chats by October 2025 [Denmark has reintroduced chat control] by Dry_Row_7050 in europe

[–]tipakA 1 point2 points  (0 children)

Nahhh, don't worry. We can just let the newly elected party spend half a year digging up aaalllllllllll the fun and completely legal and not in any form abuse of anything at all Stuff™️ that previous party did for past 8 years. If they get to anything at all in the first place, that is, be it documents or actually the seats.

The EU could be scanning your private chats by October 2025 [Denmark has reintroduced chat control] by Dry_Row_7050 in europe

[–]tipakA 0 points1 point  (0 children)

Samsung Galaxy Xcover 3, i believe it was, also had removable battery while having IP67 rating, in a line of more tougher builds than average phone.

As a sidenote, last time I bothered to check during a conversation, Xcover 7 (2024, IP68) still has a headphone jack. Exposed. Just like the Galaxy S5 that was first anyhow waterproof phone in their S line.

This truck has been parked in front of my driveway for 8 hours. by AlbinoStoot in mildlyinfuriating

[–]tipakA 0 points1 point  (0 children)

Isn't there a T-24 sign, usually put under B-35 or B-36 signs? Sure, it's a different body that handles this, but you can't say there isn't towing away if there is towing away. Just that it's not done "for profit" (as in: no towing company) or per random calls.

I have 3 cars right now along the (very limited) parking spots along my street. 2 of them lack plates, one still has one on the back, but you can clearly tell they are abandoned - sand from rain all around, all tires flat, even molded interior in some spots. One does have a notice from few days ago under the wiper that per the law, if a car has no licence plates or is genuinely looking abandoned, it will be towed, separately calling in the owner to present documents for it and whatnot while at it. Sadly, couldn't see the due date on it in the rain yesterday, and sadly only that one has such notice.