Whatapp is for business, and signal is for official government communication
- 3 Posts
- 114 Comments
moseschrute@lemmy.worldto
Programmer Humor@programming.dev•Days since last timezone issue
1·17 days agoFor this specific project, I need max 2-3 decimal places of precision. So rounding really fixes all the issues. It’s more that we’re preventing the user from seeing awkward decimals. We aren’t doing rocket science. But understanding what metrics need what precision, and sometimes the same metric needs a different precision in different contexts.
moseschrute@lemmy.worldto
Programmer Humor@programming.dev•Days since last timezone issue
2·17 days agoI agree, storing in a consistent unit is the way. That doesn’t solve conversion/rounding issues, but it does simplify things.
Though you can run into floating point errors when editing in one unit vs storing in another. For example, maybe the user entered 2 in unit A, then it’s converted to unit B and stored in the db. However, when it’s converted back to unit A, it’s 1.999999. Fortunately rounding fixes this. We say unit A and B get 2 decimals of precision, and 1.999999 becomes 2.00.
moseschrute@lemmy.worldto
Programmer Humor@programming.dev•Days since last timezone issue
67·17 days agoYou think timezones are annoying? Try handling metrics that use imperial and metric, need to be rounded to different precisions across a large system, and are sometimes recorded in a different unit than it’s viewed in. Slap some floating point error on there, and you got yourself a fun time.
I spent all day working on bug where backend was categorizing 19.9999 as falling between <20, but frontend was rounding it to 20 and categorizing it as >=20.
Edit: just to be clear, I don’t really think this is more difficult than date/time. But it does remind me a lot of solving date/time issues.
moseschrute@lemmy.worldto
Apple@lemmy.world•I want one-finger flashlight brightness adjustment back (from iOS 17)
2·24 days agoI do occasionally. Though 50% is me just being like “how did they do that”. It’s kinda satisfying
moseschrute@lemmy.worldto
Technology@lemmy.world•Huge internet outage live blog: Amazon, Disney+, Hulu, HBO Max and more experiencing issuesEnglish
1·26 days agoGot it. So I should write my own SQL database?
Is your phone out of storage?
This value will fluctuate according to system needs
iOS might wait to purge the cache until it needs the space
moseschrute@lemmy.worldto
Technology@lemmy.world•Jeep pushed software update that bricked all 2024 Wrangler 4xe modelsEnglish
10·1 month agoProbably in 2025, we at Meta, as well as the other companies that are basically working on this, are going to have an AI that can effectively be a sort of midlevel engineer that you have at your company that can write code.
~ Mark Zuckerberg, Jan 2025 (source)
My guess
It’s C. And if that’s wrong, it has to be D. There is no way it’s A or B
console.log("poop")
- git rebase fuck
- git checkout fuck
- git checkout -b me
- git diff fuck…me
moseschrute@lemmy.worldto
Apple@lemmy.world•I didn't really appreciate the "dynamic island" at the top of the screen until today
15·2 months agoI was today years old when I learned you could swipe
moseschrute@lemmy.worldto
Technology@lemmy.world•Amazon is making it impossible to remove the DRM from Kindle BooksEnglish
41·2 months agoIf you have a kindle you can hack it and load PDFs onto it. The koreader is better anyway.
moseschrute@lemmy.worldto
DeGoogle Yourself@lemmy.ml•My detailed de-google journey: Why and what I replaced with
181·2 months agoTry Nebula to replace YouTube. It’s $5/month, run by creators, and absolutely no ads. I can gift you a free trial week if you’re interested. Send me a message if you want the free week.
moseschrute@lemmy.worldto
Technology@lemmy.world•Mastodon is bringing quote posts to the fediverseEnglish
1·2 months agoI don’t think this will work within the context of a feed of posts. You would have to make at least 1 additional comment for every post in the feed to fetch the comments for a post. So if you fetch a feed of 50 posts, you will have to make 51 requests. If a post has too many comments to fetch in one page, you will have to iterate through all the pages until you have all the comments. So it’s actually >=51 requests. Though I suspect you could get a good idea of a posts comments by fetching just the first page of comments.
PieFed seems to have tags, but I’m not exactly sure how they work. But that might be a better place to start.
moseschrute@lemmy.worldto
Technology@lemmy.world•Mastodon is bringing quote posts to the fediverseEnglish
1·2 months agoBut where do you store the computed tag? I guess you could hack it by having a bot that comments the computed post tags on the post itself, but that’s messy.







Bonus frame:
The 2000 line file is one function