skysight-inc/HackerNews huggingface dataset:
On this World Productivity Day, here is a list of deals for tools and resources to improve your life and work.
Elon has entered the room.
So because they did things voluntarily they are owed something? You describe the very mentality that is persistent among all corrosive human efforts that go by many different labels, but all share a common element of imposing demands through violation, i.e., “we freely agree on one thing, now you demand another under threat of violence.”
I think this one is context dependent.

If you are a small or medium project that doesn't make many RPCs just test with the real thing.

Once I got to google which makes many RPCs in every layer it just wasn't viable to not use mocking. I use mocks in almost every thing.

Yes, it makes unit tests brittle and couples to implementation. But unit tests are cheap and often need to be changed anyways. It also allows you to have control over certain situations like what happens if an error occurs. Which can be hard to test for in integration tests.

In short I feel like avoid mocks if you can but embrace them if you can't.
Create and Open a Modal in Phoenix 1.7
Breaking the back button isn’t necessary for this; all they need to do is call `history.replaceState()` instead of `history.pushState()`.
Maybe I just don’t need to drive enough to unlock that. On average I do a 4-hour roundtrip every month or so, and that’s all. It’s regular enough to make the drive feel boring, but doesn’t create the daily practice that is central to making progress in most activities. I don’t feel like forcing it either because public transport is so much more convenient in the city.
I find it good for things where I understand the concept but haven't got to grips with the syntax yet. From the point of view of avoiding googling through endless blog spam and SEO word salad it's great, but it's definitely best to assume it's chatting confident rubbish until proven otherwise.
At a former company, our newly appointed CTO staunchly advocated for the use of IntelliJ, including Webstorm and Pycharm. Coming from a predominantly Java environment, this preference was understandable. However, our team was largely composed of Emacs or Vim users. This sparked a passionate debate, culminating in a disheartened CTO and an aggrieved development team that stubbornly stuck to their favored tools. Two key takeaways from this experience are: a) Avoid trying to impose your preferences onto your team, and b) don't attempt to strip away someone's preferred editor, especially if they are productive with it. A bit of humor added, these lessons highlight the importance of respecting individual tool choices in a team environment. :)
"weird languages"? sigh.
https://en.wikipedia.org/wiki/List_of_Superfund_sites_in_Cal...
Iran Unveils 'Quantum' Device That Anyone Can Buy for $589 on Amazon
From Australia: "The uploader has not made this video available in your country"
"The field of philosophy called epistemology deals with what knowledge is and how it is obtained, and the field overwhelmingly agrees that it is necessary (but not sufficient) for knowledge to be a (1) belief that is (2) true, and (3) justified."

How do you know if something's true, though?

If knowledge of truth has to be true, how do you know that the true knowledge of truth really is true? Etc..
The tech angle here is unsurprising, but yet another example of "the algorithm" causing real harm

Tech companies can't scream "it's too hard". Tech employees can't hide their actions behind "If I didn't do it someone else would".

From the longer article at https://www.bbc.co.uk/news/extra/Iot1dIWVS5/hunting-the-monk...

> Then the algorithm served her videos of monkeys being slapped and sprayed with water. These videos violated YouTube’s terms of service, so she reported them, but the platform didn’t seem to take any action. The videos kept appearing. Kapetanich kept clicking. Soon enough, a torture video turned up in her feed.
True, I should have phrased that differently. I was spoiled with variety in Seattle. In a day of driving I could do mountains or desert or water or urban or ocean. Around Stockholm, where I live now, things are a lot more uniform. And it hurts going far with car sharing price per km. In Seattle I had the benefit of free Electrify America charging and flat monthly rate charging in my apartment building so driving was essentially free.

So yeah, circumstances.

I didn't realise how much I'd miss the driving when I moved back to Europe and switched back to a not-insane income level.
For the record, my 5 year old LG C7 has mild subtitle burn in, only appears on brown background.
Why should TLB flush performance ever be a problem on big machines? You can have one process per core with 128 or more cores, never flush any TLB if you pin those processes. And as it is a database, shoveling data from/to disk/SSD is your main concern anyways.
Can you summarize what that good way look like for those of us that haven't read it ?
These levels are entirely in line with what you can expect in Europe unless you are willing to do incredibly unethical work. Even then it is hard to go far over. I'd go so far as to say these are normal salary ranges, even.
GP said 'things are documented in' - while neither's an ideal tool for long-term product-oriented 'how its supposed to work' docs, both are definitely used like that.

(You probably wouldn't choose either for that from the beginning, but you start using Jira for issue tracking/feature planning, of Figma for feature design, and end up with them holding a lasting record of how the feature is intended to be.)
There’s an ongoing discussion about how to better facilitate this here: https://github.com/LemmyNet/lemmy/issues/818
> why wouldn't we use that same excess energy to run a giant tesla coil? At least that makes some pretty arcs while wasting the energy.

Well, why aren't you doing it?

Let me guess. You don't have enough money to waste to just build a "giant tesla coil .. to make some pretty arcs", just for the sake of it.

Let me guess further. If you actually were to build such a coil, you'd want a return on your investment, you'd want to make money. As do many (which is a huge understatement here) people who invest in some material stuff.

Some investments are simply not financially feasible, because not enough people are willing to pay enough money for the resulting product/service.

That's the reasons you're not building your tesla coil.

And it's also the reason why we don't see people stacking so many massive batteries at the GWh scale (and try to make profit), so that grid operators can put a check mark on that "balance the grid at all times" task.

It's not happening because it doesn't pay for itself.

"Store the energy" sounds easy but is everything but that.

So when Bitcoin miners come along and set up their gear in some grid where the price of electricity regularly goes low/negative .. which happens because noone else is able to use the amount of electricity available at that moment to do something useful with it .. then they're actually doing something useful.

They're preventing the price from going even lower, they're making the power generation more profitable.

If you can come up with some process to make use of the fluctuating excess electricity and at the same time, make money from it, congrats, you have an excellent business case and only need some investors to throw money at it to get filthy rich.

Until then, you could try to acknowledge that somehow through means of money/prices, (parts of) society has attributed some value to running sha256 perpetually, enough so that the process can use quite a bit of electricity and move money to electriticy producers.
"this looks about right and has no obvious bugs" is my standard when reviewing human code, and it's my standard for machine-generated code too. no reason to formally verify GPT-4 outputs if I'm not formally verifying my coworker's either.
I went to sleep, time zones being what they are, but see that user jacquesm posted a link to a most impressive rabbit hole of engineering porn.

As an aside, one of the first field jobs I attended after graduating was commissioning some equipment fitted onto the R/V Knorr, the very ship which was used for finding the Titanic.

For a Titanic buff, that was a great experience - doubly so when the project manager at the Woods Hole end found out that I had more than a passing interest in the wreck, and during lunch one day suggested we go see if we could find Bob, as he believed him to be on the premises.

Bob, of course, turned out to be Robert Ballard, who turned out to be an incredibly gentle and patient guy who answered each and every question I had like it was the first time he had it posed to him, despite probably having had them thousands of times before...
The CEO of Reddit watched an interview with Elon Musk and decided that it was time to cut back on staff to save money? \s
Is the explanation in that book better/different than the one in https://cdn.preterhuman.net/texts/computing/nextstep-openste...? Just curious.
This topic of testing techniques is fraught with extreme points of view. The way I see it is that unit testing, int-testing, mocks, stubs, and now fakes are all techniques and tools in your toolbox. Do not throw out a tool in favor of always using one of them. Instead, I implore devs, to try and use the *best tool for the job at the time for a specific test. Understanding that "best" is based on opinions and current constraints at the time. I would implore exploration, and experiments to try these different tools to get a better understanding of their pro's and limitations.
Well, that's the point: you have to find a subject that doesn't bore the kid to death, and show him how he can explore it with programming. Any kind of programming. So what interests this kid?
Unrelated but if you want this page to look modern and responsive, you can use WaterCSS's Bookmarklet:
https://watercss.kognise.dev/#bookmarklet

Example (NOT NSFW , I don't know why imgur shows this warning): https://imgur.com/a/QxJGARN
My point wasn’t that the ability to search a file is unique to vim, but that counting words to use w or b isn’t really part of the work flow.
Does anyone know if there are libraries for writing fakes ? I wonder why there is a lot of mock libraries but I know none for writing fakes.
Many good monitors are able to display 30-bit pixels in the Display P3 color space (frequently described as the DCI P3 color space, even if there are small differences between these two color spaces).

I have been using only such monitors for more than a decade (e.g. I am still using a pair of relatively cheap Dell U2720Q; now there are newer, better models).

However most monitors by default display only 24-bit sRGB colors. Many users never change the default settings, so they never see the full color range of those monitors.

An annoying fact is that there are many programs, even expensive professional programs, which come with installers written in Java, and those installers crash whenever they see a 30-bit monitor, regardless of the operating system.

As a workaround, it is usually enough to temporarily change the monitor colors to 24-bit during installation, as the actual programs do not care about the color resolution, so they work after installation.

Color spaces larger than DCI P3 (e.g. that of Rec. 2020) can currently be displayed only by laser projectors.
If someone says something about the salaries explicitly they have numbers in mind and theories on how they should map. That's what I was after, and it's what I got. I think your stance that an average salary does not exist is nonsense, especially if you look at averages for seniority levels in relatively wealthy areas (which the entirety of Japan is).
Rust does it pretty well. No error handling via exceptions, it's all Result<Ok, Err> or Option<Value> types.

This is great since it's enforced on a type-level that every result or option has to be unwrapped before it can be used. Unwrapping is explicit, the code panics if something goes wrong, and the function signature makes it easy to see what sort of errors to expect (especially when using custom error enums for the Err value).

There is one major caveat here, which is that Rust's type system only forces you to check for errors if you plan to use the return value of a function.

An example: You have a function write(), which writes to a file, and which returns Result<(), Err>. (Here `()` is the zero-sized type, ie. an empty tuple).

If you call this function in your code, it might return an error, but you can just silently drop this error. Your linter is going to complain, though. This issue could be fixed with proper linear types (ie. types which must be used once), but adding them to the language would afaik be really difficult at this point.

But other than that Rust is doing pretty well, honestly, and (imo) Go would be a significantly better language if it had a proper Result type, and just used it for all of its error-handling. Sadly, we can't change history.
I don't want to call it a cult, but there's a lot of stuff people will do, even to their objective personal cost, if it lets them benefit from a social perspective (be it real social value or perceived).

No one becomes a community manager because it pays well.
Imagine Bard outputs code that is licensed under AGPL.. Suddenly whatever services the code gets included in needs to have their source code made public.
Claude has no problem with it either.
It’s often unclear (and people have different opinions on) what exactly that principle actually is, though. You can’t just say “MVC” and have everyone be in agreement on what that will mean.
> Nuance voice AI startup

Is a 30 year old company with over $1bn in revenue still a startup?
I'm in a Very Large Company that just yoinked Jira and replaced it with GitLab Issues. I can't even tell how badly it's going because no-one knows what going on with any project now. People are literally copying and pasting hand-edited Excel summaries of sub-projects in emails and asking people to edit in place and reply. It's hilarious.

It's super standardised, though.
Don Walsh has been on the Deep Sea Podcast a few times, I can recommend it for anyone interested.
When mainline tells you "your hardware is broken", what kind of contributions do you expect exactly?
If you only paid $15,000 for all of that technology after only two months and you're salty about not having automatons carrying out your commands, you probably should just stick to your podcast show and thank everyone for delivering something, even if it's a few shades different than what you asked for.

These aren't imaginary problems but interesting solutions. I'd bet that card punching programmers working on the first computers were the first to build interesting solutions along with addressing requirements. Look at how far managers have evolved since then.
We're offering this at Federated Computer: https://federated.computer. Nextcloud, Jitsi, Matrix/Element, all domain level services, all private.
This is really nice! Well-designed and can really help with creating box-shadows in CSS (which, on a side-note, is a real pain!).

I have personally long given up on trying to create a perfect shadow in CSS and just use those available online or in libraries like Tailwind CSS. With that, the "Library" part is a great addition.

One thing is the history handling - with every change writing a new URL to the history - it's really inconvenient for the user who, in most cases, just wants to go back to entirely different page. Consider changing that to not affect the history state.
React for Your Infrastructure
Create and deploy full‑stack apps to any infrastructure using the power of React.
> Plenty of legal cases support my position

I didn't know there were already cases where employers were allowed to join their promised severance with the liability for WARN. That would definitely convince me that there is a basis to your statements. Care to share those cases?
But you would need much more participants in all trials, to make up for all those new combos that you now have to consider.

Also: I can imagine that most of the patients would be eager to engage in all possible treatments. You might not even have a control group that did not participate in the study of the faulty drug X
https://mailtrap.io/blog/telnet-send-email/
apparently Lemmy and Kbin are the two big names popping up.

here's the same topic posted on Kbin for reference: https://kbin.social/m/RedditMigration/t/59559/Removed-as-mod...
More fun challenges (unofficial Set 9) for those who completed all 8 sets: https://ilchen.github.io/cryptopals/newproblems.html
You can get most of these speedups by using advanced APIs like IO_uring and friends, while still benefiting of using an OS, which is taking care of the messy and thankless task of hardware support.
I thought this was something similar to Microsoft mandating membership to update OS
What I realised is that this might be the first correct way to watch Koyaanisqatsi at home that was ever created.
I wanted to style my RSS page for non-tech readers, but I thought I need to return XML or HTML based on HTTP Accept header, therefore not possible for my static blog.

It's good to know that all I miss is a xml-stylesheet. I'm going to implement that once I'm free.
It's a Norwegian company. Vast difference in terms of culture to the US.
This is very cute, not sure how I missed this. I never liked the aesthetics of the XML that shows up when you click an RSS feed. Will make some time to style my websites' feeds soon. :)
> The door doesn't lock

Assuming you are not a prison operator this smacks of complacency.

In the digital age where rules are there to be broken fast, any and all complacency will be used against you (us).

The era of web 2.0 social media, damaging as it was, is drawing towards a close.

The next phase will be an ever tighter "embrace", with airtight control of digital identity, access to financial transactions and unprecedented AI manipulation. Of-course the inmates will enjoy Cloud Atlas type amenities.

Freedom was never easy and is not an exportable good either. It is either in your real constitution or not. I just hope that there is a critical mass of countries that actually mean it.
Imagine being unable to email someone because he holds an opinion that was the only one possible some 15 years ago, and think again.
If OpenBSD had specified that groups are only unique up to 8 characters, wouldn't they avoid to specify a "_shutdown" group of higher length?

Looks like an overlook to me. Double click on operator, yank, type the new group name, done. Or even a quick replace all not noticing there was an hardcoded length right after one of the occurrences. The parent might have found an actual issue.

But happy to join you in the "maybe I just don't get it" clan.

You still need to be root to create groups and assign them to users, so probably not a big one and it will probably work all the time in practice.

How funny is this, someone randomly asks for the diff on HN for no apparent reason, someone else gives a link, someone else randomly opens the link and finds a potential bug.

Eyeballs, shallow bugs…
I read something similar about LG and OLED last year. Will look for a reference.

Update: https://www.techradar.com/opinion/come-in-regular-oled-tvs-y...
You don’t move the data with Ansible. You can move a VM to do load shifting.
Mullvad Leta: A search engine used in the Mullvad Browser
The first time I saw these layered shadows was in AngularJS Material design whiteframes ( https://material.angularjs.org/latest/demo/whiteframe ), which have a few fixed levels of elevation. I always wondered if it would be to generate these shadows continously, and here we go. Great work!
"To demonstrate its technology, Epic Cleantec, a water recycling company, has even brewed a beer called Epic OneWater Brew with purified graywater from a 40-story San Francisco apartment building."

I've got to say that this beer would not be high on my list of beers to try.
> "Deflecting" 18 older model Russian SA-16 Gimlets

Where did you get the missile type? TFA doesn't mention it.
Read up a bit on Norwegian culture and it will make more sense. Very different from what you are used to in US culture.
Home Page of Vladimir Borisenko
Ignoring an error is a red herring.
You have to go out of your way to actually use a special character to do it.

No, one real issue that can happen if one is not careful (but fortunately linters help) is variable shadowing which may lead to some errors being unchecked.

In general, I find that error handling is not as horrible as some seem to purport.
Anti-Meta FEDI Pact
When I was young, naive, and still in HS, I thought XSLT would be the future. Imagine, one XML file, many representations! It could be your Database, your Website, everything! Writing one took forever, but never until I learned programming in university was I so amazed how some code had such a visible result.
I do wonder if Google included their own monorepo codebase in the training data.
> and at quite a low cost

So, let's actually look at that. For a "low-budget" 8K pipeline you'd first need a camera that can shoot at 8K or more. Ideally you'd want more so you can crop-in or do stabilization in post. So you'd be shooting on the Blackmagic Ursa Mini Pro 12K (~$6k) [1].

Usually you're using 5-10% of the material that you shot in the final edit, for some movies that can go as low as 1% (e.g., Apocalypse Now [2]), but let's calculate with a 45min documentary and 7.5% material used.

That means you've now got 30 TB of raw material [3]. You'll obviously use proxies for editing, but at least for color grading and for delivery you'll need access to the full material.

So now you'll need to store 30 TB of raw material somewhere in the cloud accessible to the machine that's doing the delivery. Even assuming you've got a symmetric fiber connection so we can disregard potential traffic limits and transfer speeds for initially uploading the material, you'll still need to pay for the cloud storage.

Creative Cloud has a storage limit of 100 GB for individuals or 1 TB for business plans [4], which is obviously far too limiting, so you'd need to use something like LucidLink. As you'd be working with large video files, you'd need high-performance storage, so you'd have to calculate with their performance plan, which is another $80 per TB per month, so $2400 per month just for this one single project [5].

________________________

[1] https://www.bhphotovideo.com/c/product/1578059-REG/blackmagi...

[2] https://books.google.de/books/about/?id=wB7cAAAAMAAJ

[3] https://www.braw.info/capacity/

[4] https://www.adobe.com/creativecloud/plans.html

[5] https://www.lucidlink.com/pricing
That'll set Europe back to 2000.
Theft of a physical object must also be intentional. Wage theft is very much alike to theft, although it would be more properly termed "labor theft".
Back button is broken on Firefox for Android.
Agree. Mocking is a slippery slope I think.

We need to mock, for example, DownstreamAPI01 that our app POSTS to and GETs from, so we can put in accurate and realistic faked responses.

We don't strictly need to mock other bits of our own apps - but many people choose to do so.

Martin Fowler writes very well about this, and I hadn't even appreciated the "split" between sociable unit tests and solitary tests:

https://martinfowler.com/bliki/UnitTest.html

I can see the appeal of both sides, but (a) I prefer sociable tests as they tend to test real code more than artificial constructs, and (b) people tend to get into a mess when they try to produce pure solitary tests, leading to the "not really testing your app" example in my earlier comment.
Check out our latest blog post on how CRM can drive your subscription app's monetization! Learn how to improve customer engagement, retention, and drive revenue growth with CRM strategies. Don't miss out on this valuable insight, read the full article now!