skysight-inc/HackerNews huggingface dataset:
Good luck getting people to have integrity. Incompetence and apathy are the status quo. People are more interested in the appearance of smooth operation than in putting in the work to actually operate smoothly.

You're not going to change the organization; they'll find a reason to fire you. Find a company or work where you can have some agency and be principled without dealing with structural nonsense. Quit doing good things for this company. The director and whoever hired them deserve to fail. Don't fix it for them.

When people tell you who they are, believe them. They've told you, clearly, in actions and words that they don't care about actually doing the right thing, it's all about appearances.

If you find yourself covering for the incompetence of your management, your peers, or otherwise where it's not the work you're paid to do, knock that shit off. It's not nice or good or kind or anything other than you being exploited by unscrupulous people who either know and don't care, or are incompetent and don't know. Leave and let them learn from the pain.
> what prevents Americans from simply buying Dji products in Canada

Canada has significant regulations around purchasing and operation of drones [0]

[0] - https://www.gazette.gc.ca/rp-pr/p1/2017/2017-07-15/html/reg2...
Unfortunately, electronics design does not operate outside the bounds of economics. Given a target retail price of ~$1.25/unit -- many of these bulbs are the best design possible.

The existence of poor quality products does not indicate malice -- many buyers demand low end products.

Cost/quality/performance is an engineering tradeoff without a "correct" answer. The answer is up to the opinion of the customer.
AMD has just never had good developer software. For ages the best BLAS on AMD was… Intel MKL, as long as you figured out how to dispatch the right kernels.

Actually, it could be really cool if everybody acted like AMD. The fact that Intel and Nvidia put out the best number libraries for free means you can’t sell a number crunching library!
Interesting! So basically: smell followed by electric shock (or some other painful stimuli) -> demethylation of (already present, but dormant?) gene that connects relevant olfactory receptor to the amygdala?
No thanks I'm a coffee purist.

Never had decaf, it just sounds wrong.

No methylene chloride or carbon dioxide in my coffee

Decaf is like:

A dried up dog turd wearing a pretty dress

A summers day with no sun.
Can't it be done with a DLP device? CRT was X-ray projection device with phosphor paint applied inside to convert the rays to visible light.
The Wi-Fi all-in-one isn't exactly a great thing if you have any tree cover.

For starlink to work well you need to find a section of the sky that doesn't have any tree blockage.

I run my starlink cable probably 100 ft from the house in order to find that.
Which made me good at recursive programming, which made me good at recursive programming.
Two levels of poor management probably means that it goes all the way up the chain and your company is poorly led in general. This is going to go sour eventually and you aren't in a position to fix it or protect the team. If you don't want to stick around to see them get laid off, maybe it's time to get out.
The cables have an led which assumes a single orientation for text. You can only read the text right side up if it's plugged in one specific way.
I also made this mistake once upon a time.

I like this since it's such a good example of how bad API design can mislead the developer and lead to subtle mistakes with substantial consequences. It is right for the JVM to have special handling for strings due to their ubiquity and unique characteristics, but it should be reflected in the API design to avoid encouraging horrible mistakes like that.
Typical nice guy response.

I never said any of those things, that it was better to be a jerk or toxic, but you assume that I did.
Naively I would expect that each iteration of a for loop creates a new loop variable (all with the same name, but effectively each in their own scope) and so each closure holds a reference to a variable named number whose value never changes, and there is a distinct one of these number variables per closure .
I would have just done something like

```
def loop():
for number in range(10):
fixed_number = number
def inner():
return fixed_number
yield inner
```
Show HN: from the dev https://news.ycombinator.com/item?id=33795296
> We are all goths now

I suspected it was contagious when I first saw a Hot Topic and mall goths oh so many years ago.
A related problem I have as an amateur is the lack of structure documentation. I clone a repo and try to figure the code out, and I am met with complex folder structures hosting interconnected source files that call functions among them in ways I have to disentangle. There is usually no high level schematic, no bird's eye view documentation, no discussion of the overall flow of execution or the main code paths.

Why? I don't understand; twenty-thirty years ago, I was taught to provide visual high level schematics and structural documentation. The latter may be difficult, but surely some schematics with notes on intent cannot be too onerous to draw.
I completely agree. Thinking more along the lines of- whether or not something is better may not drive a market, people loved Tamagotchi but vanilla stuffed animals last generations... but Tamagotchi still work for many.

Something that has dirt simple utility (you have a visual que that can be rotated that indicates to staff processing thousands of people an hour that you're payed) without requiring a phone that can do all that and more maybe be generically useful.
How does that work in practice? Python stores local variables in the stack frame with a compiler-calculated index. Do you have a growable stack frame? Add stack frames for every loop iteration?

I don't think the Python compiler is to know if a loop variable is closed over and then adjust the code generation. So this change would likely introduce a lot of complexity, or be a pessimisation in the normal case.

I think the simple, although less helpful, semantics are clearly better here. FWIW I don't think this comes up in practice very much. Maybe because callbacks in Python APIs aren't common (and its not due to this).
> it's behaving as documented.

what do you think the documented behaviour is? None is documented, so it is undefined. The only defined behaviour is with extended asm.

Remember in C and C++ everything is UB unless defined in the standard or by an implementation.

If it was documented as giving an hard error, you would be right. But it is not.
> some students feel that some of their time is better spent on their phones than paying attention to the teacher

And kids feel that eating donuts is better than vegetables.

Or that drinking soda is better than water.

The fact that students feel something easy (not just easy, but something that is designed by tens of thousands of the smartest people in the world to be addictive) is more attractive than something hard says almost nothing that isn't a tautology.
Right on the money: "SD card could be inserted like a floppy"
It's definitely economic protectionism but it's mostly protectionism for national security reasons. I assume the US is going to start manufacturing drones for war in large numbers in the near term and they need to be made at home (or at least by allies).
There was a Quake 4?! ...ah yes... no.. heh?

Must've blotted it out to preserve the affection I had for the first 3.
SpaceX satellites have a designed lifespan of approximately 5 years. They'll sustain their launch pace just to keep up the constellation. There's no real vN+1 advantage for competition.
What was the impetus for schools to become "smartphone-friendly"? In the 00s, phones/smartphones in class weren't a thing.
Note that he didn't say anything about the information the CEO tried to add/remove/edit, just that the edit was "historical" in nature and epistemically unacceptable based on its source. It might not have involved a secret plot to dilute the company's baby formula with methanol, it might have been as innocent (and as objective) as their date of formation or ownership structure.

We simply don't know. There's a lot we don't know because somebody like this didn't approve of where the information came from. Somewhere a homeowner's association is missing a lawn committee chair.
Ask HN: Is Dark Mode ever coming to HN?
It's been more than four years since Dark Mode was last proposed. I wonder if it will ever happen?
https://news.ycombinator.com/item?id=23197966
Counter point, I’ve worked at companies that weaponize the concept of soft skills as a way to cut down really great engineers who are high performers (I spent years at AWS learning this lesson). Even if you are strategically aligned with the leadership, customers, and the business, if you don’t play ball with elements of middle management or make them look bad you can get the axe.

My advice when you find you’re working at that kind of company? Leave. Consider becoming a founder or working at a smaller company.

Sometimes your spider sense is telling you the right thing. So many people are so hopelessly dependent on the system they will convince themselves that soft skills are more important than execution. Those folks are wrong.
> why can't we have smart light switches that work like physical ones (two states) and work both directions (i.e. toggleable remotely)

Separate command from power!

Like this? (command + relay(s), inside switch box)

https://kb.shelly.cloud/knowledge-base/shelly-1-mini-gen3#Sh...

https://kb.shelly.cloud/knowledge-base/shelly-plus-2pm#Shell...

or this? (command only, inside switch box, either use a separate smart relay or send on/off commands straight to an always-powered smart bulb)

https://kb.shelly.cloud/knowledge-base/shelly-i4-gen3#Shelly...

or this? (4 command + 4 relays, for breaker box)

https://kb.shelly.cloud/knowledge-base/shelly-pro-4pm-v2#She...

Inputs can be set up as button (so, open/close circuit are an input event) or switch (so, open/close circuit are an input state)

Of course it won't physically change the switch position, but the switch works both ways because you can turn it into a toggle, whatever the current position is.
I dunno, it a world where hardware companies like, sold hardware, and then software companies wrote software and sold that could be pretty nice. It is cool that Hotz is doing something other than contribute to an anticompetitive company’s moat.
It does poke a hole through the concept of markets that are free of government intervention lead to cheaper goods. I doubt these subsidies don’t further government revenue in some way, so is the Chinese government a better capital allocator than the free market? They’ve made bets on solar, EVs, battery tech, and pretty much everything related to advanced manufacturing bar the latest CPU lithography, and right now they’re winning. Such a narrative couldn’t sit well with the US that poses as the poster child of laissez-faire capitalism (though often with heavy government interference of its own)
Worked with Huawei. Look at the smartphone market pre and post Huawei ban, immediate crater.
The Disappointing Starknet.io
> If you want to know why the US would have interest in limiting the growth of DJI look no further then Ukraine and the impact drones have on the war.

How is banning DJI drones in the US going to affect how they're being used in the war in Ukraine?

Or do you mean that banning them in the US will somehow stop them from being used against the US in the future?
Austin Frerick has had a number of really great interviews since launching his book. Among others:

Odd Lots had him on, which is where I first heard about his work. https://podcasts.apple.com/us/podcast/the-mega-corporations-...

And an Iowa Public Radio interview https://www.iowapublicradio.org/podcast/river-to-river/2024-...
If I could channel some of my less imaginative QA colleagues, it's not a bug if it's not specified in the acceptance criteria. A bug is something contrary to the expected output. If the AI tool producers never cared about bias, then it's not a bug. And it will probably never be treated as such until they have a liability issue to contend with.
The problem is that mocks are normally used to avoid testing services/outside code.

For example making a wrapper around a message system if you don't mock, it tests both your code and the message system.

However the the overhead of keeping the mocking system up to date is a pain in the balls.
This seems to effectively muddy the waters such that they can steadily raise the price without a ground truth for comparison. We learn to ignore the MSRP but each promotion becomes apples to oranges, and over time they're nudging things up.
The golden rule was to only mock your own code. Make a facade around the framework class using an interface and mock that if needed to decouple your tests. Then write integration tests against your implementation of the interface. The moment you mock other people’s code you have brittle tests.
> "In addition, we fly the whole team into Tulsa at the start of each quarter to collaborate and spend time together in person."

Ouch. Why? This has to be an HR initiative, right?

What happens for other parts of the year? No collaboration?

Why do people need to spend time together in person? Don't you interact with others via clubs, memberships, hobbies, etc., outside of work?
And the display should be e-ink to go all the way from zen to Nirvana!
Tests are a tool for you, the developer. They have good effects for other people, but developers are the people that directly interact with them. When something fails, it's a developer that has to figure out what change they wrote introduced a regression. They're just tools, not some magic incantation that protects you from bugs.

I think the author might be conflating good tests with good enough tests. If IOService is handled by a different team, I expect them to assure IOService behaves how it should, probably using tests. The reason we're mocking IOService is because it's a variable that I can remove, that makes the errors I get from a test run MUCH easier to read. We're just looking at the logic in one module/class/method/function. It's less conceptually good to mock things in tests, since I'm not testing the entire app that we actually ship, but full no-mocks E2E tests are harder to write and interpret when something goes wrong. I think that makes them a less useful tool.

The thing I do agree on, is assuming your mocks should only model the happy path. I'd say if something can throw an exception, you should at least include that in a mock. (as a stubbed method that always throws) but making the burden of reimplementing your dependancies mandatory, or relying on them in tests is going to mean you write less tests, and get worse failure messages.

Like everything, it depends eh?
> You should.

In a perfect world, sure. But most of us, alas, have to live in the real world, where these are considered unreasonable expectations.

People need to get paid. That includes the developers who work on unusual niche products like this.

> it's lost afterwards

It's not lost. It just can't be repurposed, in the unlikely situation that VVVV just disappears completely. Which isn't really a problem for most projects in this space, which are often highly experimental and unique.
I think there is a way to resolve this sort of thing. If there are a certain number of tribunal appointments for the same type of issue, it becomes a criminal case for the CEO.
I had a number of cringes moment in spain with my latin american partner when overhearring some spanish people justifying colonization with webroughtthemcivilization bullshit. Also reading plain insults with similar colonization justification bullshit aimed at latin american workers who clean the facilities in the restrooms of a Corte Ingles in Madrid center. Made me want to burn the whole place.

In a way colonization hasn't stopped and should still be talked about and denounced.
Eh, slightly faulty memory on the details, but it's here:

Part 1 - https://leehamnews.com/2024/01/15/unplanned-removal-installa...

Part 2 - https://leehamnews.com/2024/01/15/unplanned-removal-installa...

Still a clusterfuck all around though.
I believe that, in retrospect, these schoolchildren will greatly appreciate this decision.
Show HN: PyPI Scout – Find Python packages on PyPI using vector embeddings
Finding the right Python package on PyPI can be a bit difficult, since it isn't really designed for discovering packages easily. For example, you can search for the word "plot" and get a list of over a 1,000 packages that contain the word "plot" in seemingly random order.

Inspired by a blog post about finding arXiv articles using vector embeddings and Sentence Transformers, I decided to build a small application that helps you find Python packages with a similar approach. For example, you can ask it "I want to make nice plots and visualizations", and it will provide you with a short list of packages that can help you with that.
China's 'art factory' goes from Van Gogh copies to originals
> I wonder how well it would correlate with a similar human study.

A smart human would know about human biases in picking random numbers and would generate an answer using a random number generator. An even smarter human would ask you about shape of the random distribution and not assume flat distribution is desired. An average human however will likely not be aware about these things and the random numbers you get from them will also be biased.
I don’t know sheaves (except that they are a generalization of differential geometry or something?), but a great example of local to global is the fundamental theorem of calculus.

You take this property of a function that’s only defined in an arbitrarily small neighborhood of a point, and from it you can determine the function’s value anywhere else. That is, you take infinitesimally small changes (e.g. velocity) and add them up in the right way and get finite changes (e.g. distance).

It’s more interesting than it sounds because you aren’t computing a sum or something with numbers when you add up infinitesimal change. Local/infinitesimal change is in some ways a different beast than finite/global change.
Autoscaling GA: Scale Fast, Sleep Well, Don't Break the Bank
When I try to download DJI fly app from the Play Store it always crashes.
My comment wasn't about comparing it to Rust at all. Adwaita for Swift sounds good an all but it still looks immature. Also, the win32 bindings look even more immature. I agree UI is not there yet for Rust and from what I see it's even worse for Swift (unless we're taking about Apple devices).

I'm still not sold on the idea of managing bindings to C++ UI libraries. I'd rather have either the Swift organization or the UI library authors themselves write, maintain and document the bindings. Otherwise, it just seems like fighting against the ecosystem.
Pretty sure food is the key word here, seeing as people need that to live. A monopoly on swiss watches, for example, would be fine.

Now again, do you see a difference between a monopoly on food, and a monopoly on a particular form of labor?
The Netherlands already banned smartphones from schools since January 1st 2024

https://www.iamexpat.nl/education/education-news/netherlands...
The answer is simple. f strings are evaluated at run time. The behaviour is correct. Up until you call the lambda, they are just a function definition.

What's so interesting about the Elephant case? You store the value of i at run time, so it can be accessed later. lambda doesn't have that capability, as it's inheriting i from the block.
I've been in a situation where I had a manager who was a nice guy. Everyone took advantage of him and none of the people under him really grew unless they changed teams. My career stagnated for a long time there and it significantly sapped my confidence and professionalism. I jumped out prematurely and made some bad career moves after that.

My general advice is to follow your gut. If you feel like your manager is actually hurting your long term career prospects, then you should switch teams or company. If not, and it's just a passing feeling, you can stay. A decent check for the former is to see how much growth you've had under this manager and then take a call.
All but One US President Are Directly Related to Each Other
My kids' school district with 10k students has a no phones policy. Kids have to check them at the door, if they bring them.

https://berkeleyhighjacket.com/2023/news/bhs-teachers-unify-...
With containerization it’s very quick to spin up test dependencies as well as part of your CICD. Why mock calls to a datastore when it’s super easy to spin up an ephemeral postgresql instance to test on?
There's no need for ordering (it's a bag rather than a vector), but yeah.
I don't like mocking either, but there are periodically situations where I've found it useful. Sometimes there is a complex system (whether of your own design or not) that isn't amenable to integration/e2e testing, and the interesting parts can't be easily unit tested due to external or tightly coupled dependencies.

Of course you can always pick it apart and refactor so it can be unit tested, but sometimes the effort required makes mocking look pretty appealing.
Um... I've seen such a statistic cited here, but I don't remember the exact number. I tried to be conservative - I'm pretty sure it wasn't below 70%, but as I say, I don't remember precisely.

Now that you ask, I'm also not sure of the source of that statistic. I'm pretty sure dang knows, but he may not be the source of the information. It may have just been someone's informed guess, or uninformed guess for that matter.

I do know that there are lots of people not from the US here, and that you shouldn't assume, for example, that English is someone's first language. Also shouldn't assume US vs England even for native English speakers (so don't attempt to "correct" British spelling).
Cool. Badges, commemorative pins, small tradable items are mainstays at cons, conferences etc., their market doesn't need to be created, it's their to be fed.

So make this type of thing work across time and you have created value to someone, which means a marketable product, at least in the Slashdot sense of ?, ?, 3... profit!.
Getting caught using one (at least with stricter teachers) meant it was taken from you and you got it back at the end of class or even better, your parents picked it up from the principal. YMMV, but that's how it was in Poland in 2005.
100% agree. Maybe you should be the amazing cto.

Context always matters.
> Seems a bit pointless banning the market leader?

I guess that depends on what the goal is? If a foreign company is the market leader, banning it allows US companies to take over the domestic market without having to actually figure out how to be competitive with the market leader.
I don't think I've ever seen a schematic for a program in all my years programming. Now that you mention it, it really is peculiar given most if not all other schools of engineering have schematics drawn up at some point or another.
Wires subjected to repeated flexure in normal use are very likely to be stranded copper rather than solid copper.
What about power consumption? Could you have a tiny Mac which runs approximately forever on a single charge?
Manifest v3 update: Vivaldi is future-proofed with its built-in functionality
Was it ever? Iirc when Shakspeare was writing his plays theater was the popular entertainment...
I suspect they first became mobile phone friendly. Dumbphones provided kids a way to communicate with parents and the worst distraction would be kids wanting to play snake and/or texting little messages to each other on their T9 keyboards.

But once smartphones came around they replaced those dumbphones and snuck in through the same policies, but in reality they're a completely different category from dumbphones.