skysight-inc/HackerNews huggingface dataset:
Ask HN: What is your Docker development set up and workflow like?
When I first learned about Docker, I had initially thought that Docker was the answer to managing dependencies. As someone who works with different tool chains for different projects, I was excited to use Docker!

For example, I have a project that requires cross compilation so whenever I need to work on that project, I need to modify my target, path, etc. I had thought a container with these set up would make development easier.

I should also mention that I work primarily in C++ and need to re-build, run, and debug my program.

After messing around for a bit, I still have no solution I like. I used Docker volumes for my source code and and set up my tool chain within the container, but I don't know how to really *work* with it.

I would like to use my IDE, CLion, but I would need to remote into a container and if I do this, I'm unsure if this solves my problems.

And I don't want to develop *in* the container, hence why I opted for Docker Volumes.

So, I'm at a loss and my initial excitement for Docker has turned into frustration. But I also may have completely misunderstood Docker's purpose so my attempts may have been in vain. But I haven't given up just yet, so I ask again: What is your docker development set up and workflow like?
I’m a researcher – here’s why I work at Meta
> I switched to Elixir and Phoenix this year, and Elixir is a joy to write in. It makes me so happy to write less business logic by leveraging their pattern matching.

Pattern matching does streamline a lot of logic, which is a big reason Ruby added it in version 2.7, three years ago. But, while, there are reasons I can see that one might prefer Elixir/Phoenix today, “you can write less logic because pattern matching is available in Elixir” isn’t particularly one of them.
Google Company Intrinsic Acquires ROS Maker Open Source Robotics Corp
Blecon Mobile Hotspot Demo (Fail)
what about a DE's libraries would make it drain so much battery life?
Apple will take a hit, but they will still come out on top there's no way they don't since they have a massive advantage even with the most drastic of proposed anti-monopoly talks.

Unless they have foolish short term thinking and make careless restructuring mistakes in attempts to maintain the "old way", and judging by some of the board and their public comments... that might be a real concern.
Even assuming that anything real comes out of the "crypto refresh" (it seems to be going the way of the last effort) it would still be irresponsible to promote the use of an entirely incompatible encryption mode for no real reason. The existing standard has been in use for over 20 years now. Even if there were some sort of security weakness discovered it would make more sense to try to resolve that issue in some sort of backwards compatible way. Since there is no weakness then the best course of action seems pretty clear and is really easy to do. The crypto refresh is currently attempting to add no less than three new authenticated encryption modes in addition to the existing one for a total of four. Each and every mode is entirely incompatible with the others. This strikes me as sort of nuts...
Some years ago when I was getting into this it looked to me like Z-Wave was winning. Did something happen?
You don't seem to understand fusion
Their economy has been a national mega project for 28 years.

Here is a reference for a 250,000,000 forced migration goal by the CCP, maybe I underestimated: https://www.nytimes.com/2013/06/16/world/asia/chinas-great-u...
This is another project that teaches you to write non-standard, invalid code, with the hopes that a tool will come along and transform it into valid, standard code later.

And there's no need, because there are multiple ways in HTML they could already express this without violating HTML. Here are 2 ways that work, and then the way they've done it which is in violation:

Possible method 1: Data attributes. Any time you as an author want to add additional data to an element, you are free to invent any custom attribute names you want, so long as they begin with "data-".

Possible method 2: Custom elements. Any time you as an author want to add a custom element to HTML, you are free to invent any tag name so long as it follows a simple naming criteria (essentially [a-z]+-[a-z]+) and if you invent any custom element, you are allowed to define whatever attributes on it you like.

Invalid method chosen: To pollute standard elements with invalid attribute names in violation of the HTML standard.
> SHA-1 is still perfectly fine for some applications like detecting duplicate files on a storage medium

If by “perfectly fine” you mean “subject to attacks that generate somewhat targeted collisions that are practical enough that people do them for amusement and excuses to write blog posts and cute Twitter threads”, then maybe I agree.

Snark aside, SHA-1 is not fine for deduplication in any context where an attacker could control any inputs. Do not use it for new designs. Try to get rid of it in old designs.
You realize that those of us who aren't Musk fans also dislike other billionaires, right? This is a class issue, not a personal one.
Git has already implemented a solution based on SHA-2 with 256 bit output so that's unlikely to be changed for the time being. (But it has not really been launched in earnest, only as a preview feature.)
It's a perfectly valid thing to do and can be done for the right reasons, but for a counterpoint you can look at the Trump Foundation. Trump and his family gave money to the foundation and the foundation bought things from Trump (ie hosting events at Trump properties). There's loads of small foundations like this that exist for self-dealing, nepotism and tax evasion. That's also not really unique to self-funded foundations. Something like the Gates Foundation is a huge operation that is doing a lot of big, expensive and highly visible projects. What Musk is doing with his foundation is less clear. Could be real charity, could be fraud.
Why would they when you could just google the answers to these questions the whole time. The point is to see if the candidate understands algorithms not to solve a novel problem.
If you like the simplicity of html-based development, also try out https://github.com/beenotung/data-template
Jack Dorsey donates to develop decentralized social network protocol [pdf]
I still (mostly) limit my multiplayer gaming to games with that available via Steam.

ARK, Valheim, etc. If games come out and I have to rely on their server or rent one, it's a pass for me, especially if I can't play privately with my group of friends.

I've been using Battle.net though... for about 15 years, I'd only do LAN, or LAN over VPN (Hamachi), but the ease of use was, of course, much better on Battle.net.
Any pics of the snail?
I wish I could take a "Mechanical engineering with CAD and McMaster Carr" class.

So speaking of - this is probably the best place on the internet to ask - does anyone know of something like that?
Platformatic Cloud Is Here
What he means is that you didn't _used_ to be able to do this:

declare const NOMINAL_BRAND: unique symbol;
enum UserIdType {}
type UserId = string & {[NOMINAL_BRAND]: UserIdType}
type UserMap<V> = { [key: UserId]: V };

But at some point in the past few years, this is now supported and things like this work as expected:

const userId: UserId = "234" as UserId
const coolUsers: UserMap<boolean> = {}
coolUsers[userId] = true // works
coolUsers["isThisOkay"] = false // fails
I upvote when it brings something to the discussion, or when a post correctly corrects unsubstantiated post/s but I have no time to post myself.
Sha3 is performant, but I'll always give it the stink eye because of NIST selecting the winner, then modifying their solution before standardization without sufficient explanation. Read the room, this is cryptography; one does not simply add mystery padding and rush off to the printing press.

https://www.schneier.com/blog/archives/2013/10/will_keccak_s...

https://en.wikipedia.org/wiki/SHA-3#Padding
Trump’s ‘major announcement’ tease is for release of digital card collection
"If I had more time, I would have written shorter code"
Z-wave uses lower frequencies compared to something like Matter so it you can use a lower power or get more range. One competing 802 standard is 802.11ah, or WiFi HaLoW which barely exists right now but should be the best thing available.
We'll never make the world perfect, but we can try and make it better. Less exploitation seems like a good thing to do. Don't you agree?
Even if you remove the artifact, the exact same comment applies. It generates a somewhat less interesting version of elevator music. This is not to crap on what they did. As I said, they underlying problem is extremely difficult and nobody has managed to solve it.

I don't feel strongly about this topic at all.
Just as a note, the primary reason for the truncated variants is not to get a shorter hash but to prevent extension attacks. For variants without truncation, the final hash is the entire internal state, therefore an attacker can calculated the hash of any message that starts with the original message and then has additional content without knowing the original message. Truncating the hash denies access to the complete internal state and makes this impossible.
EE? I think plumbing and prostitution is all there will be left soon...and I'm really horrible with tools and not that good looking so unemployment it is...
Starting about 5 years ago, I noticed that when i type letters show up out of order.

seems to be more prevalent on newer keyboards.

also, the interaction with automatic spelling correction / word completion can make mistakes show up that were not from the typist.
That water availability...

Is a Lack of Water to Blame for the Conflict in Syria?
- https://www.smithsonianmag.com/innovation/is-a-lack-of-water...

> A 2006 drought pushed Syrian farmers to migrate to urban centers, setting the stage for massive uprisings

> In Syria, a devastating drought beginning in 2006 forced many farmers to abandon their fields and migrate to urban centers. There’s some evidence that the migration fueled the civil war there, in which 80,000 people have died. “You had a lot of angry, unemployed men helping to trigger a revolution,” says Aaron Wolf, a water management expert at Oregon State University, who frequently visits the Middle East.

> Tensions between nations are also high. Since 1975, Turkey’s dam and hydro­power construction has cut water flow to Iraq by 80 percent and to Syria by 40 percent. Syria and Iraq have accused Turkey of hoarding water.

From a few years ago - the US Army's assessment of issues with climate change: https://climateandsecurity.files.wordpress.com/2019/07/impli...

---

> We can live most anywhere on the planet, and that isn't going to change. Though relocating from higher risk areas to lower has a cost that will be inflicted on those who are in an area where the risk shifts. If it happens on a long enough timescale the effects won't be that great as we're generally rebuilding our infrastructure on regular intervals anyway.

I would challenge you to tell the people in the Southwest of the US to move out... or the Middle East... or desert parts of Africa... or small island nations in the Pacific.

An approach of relocating people from where it isn't sustainable to live in the future to where it is has the risk of devastating the cultures associated with those areas.

It is preserving those cultures that is important and the reason that it is necessary to try to prevent as much climate change as is possible. It likely won't be enough, and mitigation will also be needed but going to a "well, its too bad your island home of centuries is now under water, we'll just move you to an enclave in Europe" or "well, this part of South Western Asia is no longer inhabitable, we'll set up an enclave for you somewhere else" - those approaches tend not to work too well.
Bit of a blooper in there: "they just know it’s massive, possibly as large as 2^100^100 (or, roughly, 3 followed by 199 zeros)", in fact it has 3x10^199 digits

https://www.wolframalpha.com/input/?i=2%5E%28100%5E100%29
Could you tell me, in your own words, what you think is wrong with GoF research per se?
I was thinking gaming where music can and should dynamically shift based on different environmental and player conditions.
I would expect A, because it is an option.

Like in mathematics or other tests students are not allowed to use the internet or an advanced calculator in order to test wether they truly comprehend the stuff.

If you think that your FAANG-interviews are any good, then just keep them in the format you already have, by making sure applicants cannot use AI during the test. I would have on-sites with pen+paper, whiteboard or a prepped/supervised machine, whatever.

Of course, applicants could use AI to train for the interview, but that is not a problem, as long as you test their comprehension.
DallE, Midjourney, and StableDiffusion are already taking jobs. Illustrations, album covers, blog post images. People are making beautiful books and playing cards.

Midjourney V4 is amazing. It spits out absolutely beautiful images.
There's a good demo of it here: https://www.youtube.com/watch?v=vVUnCXKuNOg
> It tends to love passing other cars on the right

Is it supposed to do illegal things? It shouldn't be so hard to ensure it obeys laws.
My gripe is they do ranges very poorly so you wind up spending a lot of time specifying an exhaustive set of possible sizes that may work in order to see all the various options of things that have some critical feature or dimension you need.
Ask HN: Can I post my startup in SHOW HN, if it doesn't have a free tier?
I'm planning for my SaaS startup to be paid for only (no free tier). Can I still post it in SHOW HN, or it it against the rules?
Today, Jack Dorsey, donated 14BTC (~$250,000) to the developers of the nostr protocol.

From their Github repo[0]:

The simplest open protocol that is able to create a censorship-resistant global "social" network once and for all.

It doesn't rely on any trusted central server, hence it is resilient; it is based on cryptographic keys and signatures, so it is tamperproof; it does not rely on P2P techniques, therefore it works.

[0] https://github.com/nostr-protocol/nostr
Currently you provide some example emails and the replies you sent to them, and that's used in the prompt.

Working on a fine-tune that uses more of your sent items that you can specify.

Though it can be crazy good without any training at all!
The vast majority of human generated art is hideous or bland. Artists throw away bad ideas or sketches that didn’t work all the time. Plus you should see most of the stuff that gets pasted up on the walls at an average middle
School.
Nice examples - you can also have languages (like SML) where monomorphization is simply an implementation detail. Some compilers (e.g., MLton) perform monomorphization and others don't.
I think I saw another blog post for that... here is it https://shopify.engineering/porting-yjit-ruby-compiler-to-ru...
Yes, they say "Modules that still use SHA-1 after 2030 will not be permitted for purchase by the federal government" so I wonder... does that mean products that can read 2022-era git repos (using sha-1) are they no longer allowed by that date, and so on? There must be exceptions by use case!
Show HN: Reflio – Open-source affiliate program creator now supports Paddle
One of the nice things about XFCE is that its window manager includes a style called “Kokodi” (on CentOS 8 Streaming) which shows the active or focused window with a distinctive blue title bar.

I’ve found that many other window managers (including MS Windows), don’t make this visually obvious (i.e., there’s little difference between the focused and non-active windows) which makes it harder to discern which application is currently active while using multiple monitors.
Same, so I rebound whiskermenu to Meta+Space.
When it launch, the line will likely becomes something like.

15.5" M2 MBA $1299

13.6" M2 MBA $1099 ( Reduced from $1199 )

13.3" M1 MBA $899 ( Reduced from $999 )
Surely you can see that there's a difference between a billionaire who can hire private security and the common person? A billionaire's house cannot be broken into because that house is in a gated community with private security. Even at the airport, a chartered car with a personal driver and security is likely coming to meet Elon.

This is the definition of concern trolling on Elon's part, and you're carrying water for his bad faith arguments in favor of restricting the republishing of information that is free and open to the public by design. I don't think you even really understand the implications of what you're saying.
The owner of Z-Wave is also a major contribute to Matter. I think they can work together.

See: https://z-wavealliance.org/matter-1-0-is-here-and-z-wave-is-...

Also: https://www.silabs.com/blog/bridging-non-matter-devices-to-a...
If it can do music, can we train better models for different kinds of music? Or different models for different instruments makes more sense? For different instruments we can get better resolution by making the spectrogram represent different frequency ranges. This is terribly exciting, what a time to be alive.
$SJIM
The website speed is also worthy of praise. When I visit McMaster.com, I get DOMContentLoaded: 348 ms. When I visit Amazon.com, I get 2.39 SECONDS, and this is with a 10-core monster of a CPU.
Buddy, I'm speaking English, it's full of exceptions.
I'm not "condemning" charity, some are really good and I financially support two that are important to my own family.

My point was simple, someone said charities cant buy houses, but they in fact can and do.
You should give i3 + XFCE a go... Start an XFCE session, launch Session and Startup settings, disable xfwm4 and xfdesktop, add i3, relogin. Done! XFCE DE with i3 window management.
I did this as well and it looks great initially but there are already examples of GPT generating totally bogus references and sources. So we're back to square 1.
Humans can game every system. Then you can tweak the system to make it better for a period of time till it is gamed again. Rinse, wash and repeat. Same flaws exist with all ratings systems and many are just mathematical garbage.
Is there documentation on how to interact with a API for the wrapper? The API I'm probably going to try this with needs some crazy logic to parse the responses and does everything through query parameters.

Can't wait until this is ready.
Fortunately it's still true for Fast Fourier Transform. Would be fun to break that one.
Isn’t this the plot of Deus Ex?
Z-Wave is definitely the better protocol (vs Zigbee), but Matter is partially based on Zigbee so everyone expects Z-Wave to lose.

I don't agree, I think Z-wave will work with Matter using bridging.
> rock solid taxonomy

> On Amazon

Although I have never used McMaster but use Amazon most of the time, I definitely agree. And it's not even really related to taxonomy. The amount of disorganized information on Amazon is frustrating and many times leads me to believe that something is just fake, drop-shit, subpar quality, etc... There's so much "WxHxD: 2", "color: yes", "weight: 34.6 inches" that I just end up buying something else or not at all
> The web as a whole needs need to move on from these obnoxious pop-up cookie warnings ASAP.

Those obnoxious cookie pop-ups can go away today. No browser intervention necessary.

You know why? They only exist because the greedy industry really wants to collect and sell your private information at scale. No other reason. So the companies could remove those popups today if they cared.

If you move the dialog to the browser, you will have both the browser dialogs and the non-cookie dialogs (because they will still want to fingerprint you, and collect your data, and sell it)
Yup our current version of AI is great for cool demos and very bad for real world use cases.
I can't speak for ChatGPT but the "AI" that I use for this sort of development, the `M-x doctor` feature of emacs, only makes pleasant imaginary arguments, mainly because it was written in 1966, but it is still useful sometimes and at least it doesn't make any incorrect assertions about code: https://en.wikipedia.org/wiki/ELIZA
> Possible method 1: Data attributes. Any time you as an author want to add additional data to an element, you are free to invent any custom attribute names you want, so long as they begin with "data-".

From the linked docs:

> It's worth mentioning that, if you prefer, you can use the data- prefix when using htmx:

<a data-hx-post="/click">Click Me!</a>
What makes Musk more of a narcissist than any number of other celebrities and influencers who spend all their time online and post provocative tweets, videos, Tiktoks, etc.? What's your definition of a narcissist?

I'm also curious why Elon Musk would be "booed" in Oklahoma (where I'm from, by the way). Is it because of his industrial achievements, or his libertarian and free speech leanings, or because he hails from South Africa, or...?
Universal Document Processing (Paper)
The public perception difference is quite easy to see. Compare these two statements:

1. "I gave $5B to charity"

2. "I gave $5B to my charity"

That they're both charities does not wash away the feeling that one of them is a bit less selfless than the other.
HN doesn't attract many DDoS attacks, most websites don't attract any DDoS attacks.

Historically HN has not been hosted on infrastructure that would be particularly resistant to DDoS attacks, nobody has been DDoSing it.
But you know. Everything you said can easily be imagined to apply to humans as well. You can’t see your own programming, and so can’t fully understand it, and so you imagine it to be something more than what it is.
Personally - I got kinda the other feel. Seems like Z-Wave is slowly dying in favor of zigbee devices.

I can't really even find z-wave bulbs right now. And basically any device I might want (curtains, alarms, sensors, lights, motors, thermostats, etc) comes in a zigbee form.

I agree that Z-Wave did the better standards enforcement, but Zigbee went with the age old route to success: manage to be cheaper.

Throw in that the two most common automation situations tend to be either:

1. Upstream cloud service

2. Local management engine (ex: HomeAssistant, OpenHab, etc)

And it just doesn't really matter all that much how compatible devices are in terms of point to point control. I can just route the message through HA and take the action I want - mixing and matching as needed.

Plus - Alexa pro ships a directly integrated zigbee hub now, which got a lot of devices moving that direction, and Ikea makes some great super cheap zigbee devices.

Bluetooth and Wifi devices are the worst of both worlds, in my opinion. Wifi usually needs integration with an upstream service which is a non-starter for me, and bluetooth is just really limited on total device count. Both also eat through a lot of power compared to z-wave/zigbee.

It's pretty cool that several recent zigbee switches are completely battery/wire free. They literally use the energy you expend to push to the button to send the signal.
(Tailscalar and a tailnet lock author here)

Thanks for the feedback!! Writing the documentation for how this worked was a challenge, and its good to hear what pieces we need to call out more strongly in the future.

If you're interested in gory details around tailnet lock internals, we have the beginnings of a whitepaper here: https://tailscale.com/kb/1230/tailnet-lock-whitepaper/
But that's cheating, and people can cheat without AI already.
Just wanted to echo this sentiment. Here's another blog post that helped me reflect on this, from Raptitude (a blog sometimes shared here):

https://www.raptitude.com/2009/03/how-to-keep-bad-moods-from...
Oh I'm still using SvelteKit. I just don't love having 3 or 4 +page.ts'es open in my editor.