skysight-inc/HackerNews huggingface dataset:
I think this is the big thing for me. David Pogue, when he went on a dive with them last year, pointed out that the vessel has no beacon [1]; yet the door bolts from the outside. Apparently there was a five-hour period where the company did not know the location of the sub after it resurfaced.

To me, that seems crazy. Having a GPS beacon seems like a no-brainer for safety purposes. It feels indicative of the engineering as a whole.

[1]: https://twitter.com/Pogue/status/1670826522138091521
Kinda have to laugh at the idea of r/Anarchism having to move and do they have a moderator? lol
The M in MVC has come to mean “data model,” but it originally referred to the “mental model” of the user. What kind of thing are we trying to manipulate and what is the user’s mental model of such a thing?

How about a bank account? A mental model of a bank account would include useful operations like deposit, withdraw, transfer, checkBalance, and these would be the methods on the object. The data schema and the persistence would be necessary, of course, but an implementation detail. Models were smart and mapped to human perceptions of a thing, rather than dumb data persistence layers.

These kind of business logic operations have often been moved into controllers, which couldn’t have been further from the original intention.

MVC, smalltalk, OOP we’re all about stopping and thinking about the way humans think while interacting with computers. It was about designing nice interfaces for interaction based on human expectations, not database requirements. Internal object schemas and data persistence were implementation details of an object that could—if you did it right—be easily changed without changing the interface.

But we can’t help ourselves, and instead OOP today is a world of getters and setters with a little bit of data validation (if we’re lucky) and models are just a schema plus a generic data persistence interface (maybe an orm). And the business logic exists in the controller, the least important, least reusable component of the architecture.
Ask HN: Has anyone found a great solution for building analytics in your app?
It seems there are generally only two (imperfect) options for building analytics in your app:

- either use a BI tool/out-of-the-box tool and embed an iframe (giving you very limited control and flexibility over the components & styling)

- or build it yourself which allows you to make it look fully native, but turns out to be quite a heavy undertaking when you factor in design/build/maintenance/infrastructure/data management/QA/feature requests/personalisation/localisation/performance/accessibility etc. etc.

Has anyone else been forced to select one of these two imperfect options?

We've just started working on something to address this issue - I'd love to hear about peoples experiences to help work out what the ideal solution might be
But very true regardless. Reading HN for health advice is like talking to your barber about stock options. A way to spend time but not to get information to work off of
That's nice. What precisely is Github's policy on using Copilot internally?
> Sure, it's great for readers as it allows them to read all the content from one reading app but, on the other hand, the publication can't provide a custom experience, or - what's most important for some publications - display ads. That's likely why RSS is slowly moving into obscurity, at least IMHO.

Sure. But a title-only RSS feed seems like a very reasonable compromise.

And it's so much better than what everyone seems to have moved to, which is email notification.
>The researchers say this could eventually be rectified with atomic clocks that fit into portable devices, which are in development but are currently too expensive for widespread use. The other components used are already able to be miniaturized. The experiment also only tracked the researcher’s path after the fact, but future work will investigate doing so in real-time.

What would be an eta for an atomic clock inside an Iphone?
Fun fact I still leave at 5pm. People mostly not work outside work times except if it is planned or you are on call.

Not in Europe no Sir ;)
It also rains every now and then.
I put cooking in this same sort of category, but over the years have noticed a lot of people on HN who seem to dislike cooking and have no interest in learning how. Maybe because it's such a regular imposition for them, it feels different.
They are so massive that the difference is caused by the curvature of spacetime.
It is misleadingly phrased in the Bulgarian article, but the original Russian report was that a Ka-52 deflected 18 missiles over the course of a sortie, not all at once.
That’s the distinguishing factor, there was no “hack” to make this a “hack back”.
Even the HTML sites I tried manage to suck even more than Reddit. I didn’t think it was possible, but they’re even worse than “new” Reddit.
Do you really want an alternative? Everybody is different, but for me, the return on my time spent there was way too low. Rarely when I closed the window did I feel good about how I spent the previous 20-30 minutes.

And I say that as someone with a very low bar for when time is well spent. Like John Lennon, I believe that time you enjoy wasting isn’t wasted. Reddit wasn’t clearing that bar for me. It felt like a slot machine. There was some compulsion to pull the handle again but ultimately I walked away less happy.
I think adding more shadow layers adds more smoothness.
Sure, when the CEO does it it's an excuse, and when I do it I get written up by HR.

>Im also very skeptical comment deletion is happening at such a scale to be meaningful vs the billion new comments they get a year.

I don't think GDPR cares about scale so much as compliance. Scale just affects the fine.

>This all smacks of low quality speculation thats mostly a consequence of the current outrage cycle of the week.

Sure, I don't disagree. As long as we agree we are both dabbling in speculation. could be an honest mistake, could be the next phase of panic from a sight that is flailing about to keep its valuation from dropping further. I won't claim any authority on the topic.

I do find it entertaining how thoroughly they are stumbling over this tho. And we still have over a week until the real action.
Yep! I like this theory.

Related: how many times I introduced bugs after some quick refactor on some careful code to make a linter happy.

Yes, yes, tests, I know.
You don't need to actually fall asleep for a nap to be beneficial. I like to lay on the floor, feet up, and alarm set. 10-15 minutes and I feel completely refreshed.

This isn't a replacement for actual sleep, but I've never been a napper and the above I found super useful for me.
I shouldn't have clicked on this first thing in the morning. There goes my day.

Is there the equivalent of the using kittens as eye bleach, but for ideas?
you say "optional", i say "explicit"

it's important that i see the `return` keyword in the source code
This is actually quite simple to play but increasingly harder to master. Like it!
Tree's would be great, and an actual example would be threaded comments in a forum, or just nested lists.
There are companies still selling EL display panels.
Thanks. Unfortunately I saw too late for me to edit it now :)
>This often involves making the dependencies you inject during testing some more complete simulations of real implementations. Takes more up front effort to implement them, but can often be re-used between many tests.

At higher levels, the up front effort is higher but most of that work that is much more reusable - reusable across implementations and different languages, even.

With tools like playwright and MITM proxy, the state of the art for these highly reusable tools has moved forward considerably in the last 5 years. I can now "TDD" everything in a way that actually makes sense on some projects - even a tweak in CSS (via snapshot driven development).

Meanwhile CPU power has also kept accelerating to the point that hermetic end to end tests that were unbearably slow can now be run on a laptop in seconds. Entire suites that used to take hours on CI can be trivially parallelized and run in minutes instead.
I'm surprised. There are some pretty large and visible subs on this list.

Does anybody know if there's anything like a Lemmy + kbin client that could connect to these multiple fora and build a feed that looks somewhat like what you'd see on Reddit? These individual instances remind me a lot of old forums, which is great, but what I like (liked?) about Reddit was having the ability to subscribe to multiple, high quality subreddits and have them all in a single feed.
There are several studies which say that viewer emotional engagement caps out at 1080p, and the only thing that drives more engagement beyond 1080p is HDR/WCG and HFR.

Customers are also not as willing to pay for 4k as those invested in UHD would like to think. It's a "nice to have" and having big numbers makes people feel good, but it doesn't actually make them love the content more.
In Spain we finish at 6pm.

Some people even work until like 7pm.
Phosphates are already won and reused from grey water in The Netherlands:
https://www.nieuweoogst.nl/nieuws/2021/02/24/ruim-baan-voor-...
What's barely believable in that article? From what I can see around myself, it's more or less the same except you can whatsapp someone instead of leaving a message on their voicemail.

Oh and it's a lot easier to sync up, no more wondering if they saw the message that you're at another bar, you send them your current GPS location.
Can anybody really be "sure" of anything?
The problem is Trust.

Consumers don't trust manufavturers.
If I pay 2x premium I have zero trust the product is better made or will last longer. My $300 laptop worked for 10 years, $3000 laptop has issues after 2 years.

We have a Toshiba TV that has lasted 15 years. Kinda getting to the end of it's usefull life - its 720p.

On the other hand, I don't expect image technology to advance at the same rate any more, we are at the usefull limit of resolution for example. So maybe if I was buying today, I would actually keep the TV for 20 years.
The tests you propose might take 10x longer to run. There is value in having quick tests as a first level of validation.
I don't think anyone has returned to Twitter from Mastodon, of course most people didn't migrate in the first place, but Mastodon is much more active than it was a year ago.
Biphasic sleeping is great! Highly recommend the book Why We Sleep by Matthew Walker, or at least watch his brief Ted talk. Honestly will change your life, for the better.
No device is needed to track bodies in a house btw.
> Just out curiosity, what makes the code you write, more original than an LLMs

Indeed in many ways LLM code is more original than mine, as I limit myself to calling only functions that exist and producing code that will compile, unlike LLMs which have no such limitations. /s
Mentioning race and having a discussion about the scientific and philosophical nature of it isn't a flamewar. My contention was explicitly a scientific contention with the article.

That's a completely unacceptable, anti-intellectual interpretation that would entirely abrogate the ability to discuss anything controversial.

The fact that you would even try to flex on this is unbelievable. I am appalled on every level, imagine being a self-styled "curious intellectual" acting like this.

I am *very* disappointed.
huh? it's exactly the opposite

ideally, control flow goes 'down' via func calls, and 'up' via return statements

this is the "trivial to see pattern" -- the code as written

exceptions subvert those simple rules, they say any expression can potentially be a return statement, and recursively so!
I once built an entire site where the frontend was XSLT applied to XML from the middleware that spoke to the various data sources. You could set a url parameter and switch off the server side transformation to let the browser do it client side (and another to transform it into RSS instead of HTML).

I liked the overall approach of a declarative transformation, but XSLT is absolutely awful and the lack of an alternative that's supported by browser made me not do it again.
Does water recycling accentuate issues with stuff like concentrating PFAS, microplastics etc?

I guess it depends on how thorough the filtration is, whether reverse osmosis is used.
This doesn't cause an exit for me on GNU bash (3.2.57)
Animal abuse videos are hard to watch. Easily some of the worst things I've seen online. I really wonder what/where the appeal is. I imagine that people who "enjoy" that kind of content are basically one step removed from being serial killers, but I have a feeling that the reality is a lot more complex than my imagination. I hope that the people busted for commissioning/paying for monkey torture videos aren't just locked up and ignored. They should still be locked up, but we should try to get them help and use the opportunity to learn as much as we can about them because they aren't the only ones out there, and they won't be the last.
You start with MVC, following "the fat-model, skinny controller" rule of thumb.

Now the Models become obese. So you split out the Repository logic.

Now you need a place to do "client onboarding" which creates a Customer, a User, a BillingInfo, a bunch of things to show the new client a non-empty environment... Where does this live? In the Customer model? Nah. In a repository? Certainly not.

No. That's when the OnboardingService comes along.

note: We use jOOQ so our "Model entities" are generated from the db schema and thus logic-less.
As explained to me by a sleep doctor, sometimes people do feel as if they didn't sleep after a nap, but still feel rested. We often don't remember stage 1 or 2 sleep but that doesn't mean we didn't sleep.

So yes, a nap is valuable even if you feel you didn't drift off, but it is not necessary to invoke mental energy expenditure as an explanation.
Some current systems already have trouble at night. I would expect vision based systems to have even more trouble. Are there any CV based guidance systems?
Do note that while modern browsers are pretty performant with this, the more you stack shadows the more your low end users pay for it. I can't recall which large site ran into it a few years ago, but the short gist is they struggled with scroll performance and in the end stacked shadows were to blame.
Cthulhu is an equal opportunity destroyer.
Certainly sounds interesting, I use to play no games except for Nexuswars.com, a browser based game with some d&d mechanics. The 15 minutes a day keeps it very controlled and manageable (unlike games that want to keep you in)
The one mentioned in one of the earlier comments of this thread?
Sadly that is so much of society these days :(
Sure but you guys take daily hour+ long afternoon breaks and relatively longer lunches no?

At least that appeared to be the case when there on my honeymoon :).
do you think it's an issue of gitlab or of the transition?

As far I know Jira and GitLab issues initially can look kinda similar (depending on how Jira is used) but are very different in what works well with them so Jira to GitLab transition seems rather risky.

And while I haven't used GitLab issues a lot, GitHub issues are kinda terrible and Jira isn't better either (but bad in different ways; with github actions you can try to "fix" GitHub but in practice this doesn't work that well my experience and can't fix the most important issues)
I've made a Game Boy emulator using Rust, React and WebAssembly
And the author is revealing this only now!?
That's not a great look, being witness to massive safety violations and keeping quiet about it until after it goes wrong.
Pixel density is pointless after you get above your retina’s “resolution”. I can’t really tell 4K from 1080p from my couch. What I can tell apart is HDR from SDR. I think a lot of progress will continue on that area because it results in higher perceived quality.

If I had a pet owl, they’d probably be the only ones in the house to be able to tell content apart by resolution.

Even for my 27” desk monitors, it’s almost pointless to go beyond 5K.
Yes, exactly. Everyone is talking about how great it is, yet its nowhere to be found.
>Now you cannot delete all traces of your post without editing mine.

gdpr =/= right to be forgotten (I'm not even sure if the latter cares about that. That's more about search indexing than perfectly scrubbing your history). GDPR is there to ensure your data can't be stored indefinitely on some private server without your ability to withdraw it.

Paul-Craft being quoted saying something that one time on June 17th 2023 is 100x less valuable to a data harvester then a directly post from Paul-Craft himself.
Yet those same people happily use Office 365 without a second thought.
I feel bad for thinking of this but now there are two wrecks to visit. Even more reasons for tourism!
Yeah you can subscribe to any lemmy or kbin community from any lemmy or kbin instance!
At least Reddit is a walled garden compared to a walled silo that is Discord and can't be searched or discovered.
Most MVC frameworks have some soft or form DTO notion, as a form does not map 1-on-1 to one db record. The form DTOs in our app also holds the logic to validate itself.

Basically, like sibling post mentioned: you put it where it makes sense.

Doing validation on db entities, is certainly not a place it makes sense (except in the most trivial cases, hence the common mistake).
kbin.social is pretty good, love the interface. It appears though that I can not upload images to it yet -- it says it is disabled for some reason? A little confused about.

I was trying to contribute to https://kbin.social/m/astrophotography
AWS Launches S3 Dual-Layer Server-Side Encryption with Keys Stored in AWS KMS
i just noticed this and came to HN to spread the good word!
I thought this was sarcasm at first but I’m genuinely not sure now: Do you truly believe shoplifters are easily and often prosecuted, let alone convicted?

Personally, I’ve never seen or heard of a single person have any repercussions for shoplifting, and I’ve seen a _lot_ of shoplifting in Seattle.
It is implemented in Scala. There is no mention of Scala because Scala does not really handle effect handling at that level.
Not really, I think the shops close during the day, but those guys work until 9pm.

I mean it's 9am-6pm with an hour for lunch so it's still an 8-hour day if you don't count the lunch hour as working. But if you are working in the office it still kinda sucks as you can't really do much in that time.
I'm old enough to remember what I did in 2002, online games and offline games, ICQ and forums instead of social media. So, not much difference
This whole thing has been about:

[1] Reddit not building the needed tools for its free labor and relying on third parties to do it for them, then taking those tools away without providing another option

[2] Disrespecting moderators and powerusers by insulting them ("landed gentry"), creating incentives for them to scab on each other, and being threatening and doublehanded at every turn, if not outright lying.

[3] A decade of broken promises on feature development, trust n safety failures, half baked features that no one asked for that end up shut down.

[4] Breaking the illusion that users ever owned their data (posts, comments) and communities.

Not all these reasons apply to everyone, but at least one of them applies to most people protesting.

Reddit has built up so much bad will. They could have been a great steward of the internet (and made money doing it!), but instead they decided to attack their community of moderators (the same insult they hurl at moderators, saying they are attacking their community of users!)

Discord, for its faults, does not have the same issues.
The bankruptcy (and the regulator failures and government actions around it) are like a casebook example of ripping off the creditors to enrich lawyers and advisors and for political appointees to score political points.
I come from a country which specializes in water reprocessing, but doing so diligently is an expansive endeavour. Especially where private companies are doing this, the incentive is to keep costs low and just be above barely-legal (and maybe not even that).

There is a myriad of drugs, pesticides and chemicals which are known to be inside the water system in the us. Your neighbour is depressed? Good for you. You might get some anti-depressants yourself (no, the body does not break down drugs completely, they are mostly escaping with the wastewater).

But hey, maybe I am just paranoid.

Good watch: https://www.youtube.com/watch?v=0FccVv5NsIY
I was pointing out that the case where the network produces exact copies of copyrighted code (or very very close to exact copies, such as changing a variable name or removing a comment) is clear, and requires no new litigation.

While I also think there is a good chance that what you are claiming (that any output is a derived work of the training set), this is definitely not settled, and will require someone going to court over it. I expect the proceedings over something like this to take a long time, and very likely reach to the supreme court. So, we won't know if you're right or not for quite a while.

A good argument against the idea that any output is a derived work of (all) data in the training set is exactly that verbatim copies of snippets from the Linux kernel can't be a derived work of snippets from GCC, even if GCC was also in the training set. So it is arguable that someone intending to claim copyright infringement for a piece of code generated by an LLM has to identify which particular work of theirs from the training set it infringes on, it can't be a blanket finding.
> One nice thing about bash is the ${var@Q} syntax that is great for printing stuff and deals with the potential for stuff that affects the terminal in a much nicer way than piping through tr.

An alternative which works in both Bash and Zsh is

printf %q "$var"

using /usr/bin/printf %q "$var" has even a good chance to work in other shells.

And as fun fact: the Zsh equivalent for Bash's ${var@@} is ${(q)var} and it was not enough to have one quoting style but instead you can also provide qq, qqq, qqqq, q+ or q- all with a different result.

https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parame...
imagine the smell
As a paying customer, I think this is a really good way to use the resources. While it does rely on Google not pulling the plug on using the API that way, I think for the time being it's a great way to reduce your online footprint. Very few of my searches need freshest data by the hour and I can always either make the search string more specific to cache bust or go back to Google for search.
> Also you will run into some web interface that was designed with landscape in mind sooner or later.

It’s fun when websites assume I’m using a mobile because I’m on a rotated 1200x1920 display.
I have bought a monitor with 600 nits so that in the summer I can work at home without drawing curtains. I can have sun in the room and still read the display without issues.
Even then it's horrible, since the thing is sealed from the outside (as basically all crewed DSVs are)
It is incredibly naive and foolish to suggest that no mods is a good idea. That's how you get 4chan,or worse, 8chan, and if places like that are your goal, then you have no business making suggestions for anything.