skysight-inc/HackerNews huggingface dataset:
Don't think in terms of tests -- think in terms of examples.

Write examples of how you would like to be able to solve common cases and handle edge cases if you had the ideal interface based on what you know at the time, then use unit tests with stubbed out interfaces as a tool while trying to develop the implementation.

Refine and even rewrite your examples as you learn about what works and what doesn't work.

Recursively break down complex pieces into smaller modules as you learn what can be handled independently and composed with the other pieces. Break off independent examples depicting how you expect those modules to work and be used as new unit test suites for those new modules.

Don't sweat testing the implementation details, especially when prototyping. What you want is to use tests as a way to speed up your development process and improve the quality of your design and architecture.

Try to write tests that show off how nice your code is to use and how few edge cases you need to handle when calling it. It'll raise the bar for how your code interacts with the rest of the application or system and give you smaller pieces to work and focus on.

Finally, for really green field stuff with a lot of unknown unknowns, you often have to write a lot of standalone, bottom-up throw-away prototypes for things. That doesn't invalidate the usefulness of tests, so don't be afraid to do that pretty regularly.
Facebook was an incredible product 10 years ago. Just because they are not the same now doesn’t mean they never were.
Very cool.

A few comments (which probably need to be emailed to them and not just put here):

1. The main page map absolutely NEEDS a legend.

2. I wonder if any sort of drought map should also include the other half of the spectrum. Are are blank regions normal? Exceptionally wet? Flooding?
I don’t know if this is pure or orthodox but: Start with one or two high-level interfaces that should meet the functional requirements.

It defines the information you need to send in and/or receive.

Non functional. Then capture some basic behavior of one of the methods/properties in the tests, then implement the solution. Then start capturing edge-cases the same way.

If you’re asking yourself “how” or “should” I test this, then you’re doing great.

Apply SOLID principles to separate meaningful concerns into separate classes; and iterate there.

Take my viewpoint with a large grain of salt.
It’s the other way around. People make fun of him because they don’t respect him or what he does.
I think it should be postponable. If everyone wasn't obese and didn't smoke or drink guess what... we would still get cancer or die of heart disease or dementia. At least this goes for the US and much of Europe.
Because you can have a better life in the virtual realm.
> criminal prosecution

Steady now. I don't think you want that.
> is it, or is there a re-driver?

How would I go about verifying that? I've never installed any driver for the dock, and the DP-connected screen works during early boot. Linux recognizes it as DP-X-Y. I've never had the curiosity of plugging in the HDMI port under Linux.

On Windows, it recognizes 3 screens when both DP and HDMI are connected (the third being the internal laptop display).

I know there's a similar HP dock, the G2, that does say it has DisplayLink, whereas this one doesn't.

> the other 2 are for DP-HDMI convertor and DP connector. seems like only 1 of HDMI or DP should work at 1 time.

If it's a USB 3.2 2x2, shouldn't that be able to handle one 4k@60Hz stream per lane, thus supporting two 4k@60 displays at the same time?
I totally disagree with ditching miniconda. The Colab notebooks that make use of it have been super easy to run and modify. There is documentation everywhere and its very easy to find on SO, and Google. Its a joy to use and really like it for all of my Python workloads. I think of it like a Python VM that just works where ever I place it... so far, haven't been let down.
Huh. I like most of the idea, but there's no way I'm going to incentivize a company such that they do better if I fail.
for anyone finding themselves doing a bit of analysis using a eCDF, seaborn[0] has a plot for it

https://seaborn.pydata.org/generated/seaborn.ecdfplot.html
In what way is it dystopian? You can live whatever life you want.
This isn’t entirely a problem with your thermostat. If it’s 26C and humid, all your thermostat can do is to call for cooling. (Maybe it can call for stage 1 or stage 2. You are unlikely to have anything that can do stand-alone dehumification.) So it can’t actually achieve a comfortable and efficient target.
Scientists make major breakthrough in race to save Caribbean coral
I wonder about this often. While I agree that additive manufacturing is incredibly exciting and just getting started, I don't expect that it will get as much mass market adoption as you think. Of my last dozen purchases or so, only a few would have been possible to 3d print. Many include microelectronics or precision machined surfaces with a finish that 3d printers would be hard pressed to match. Several need greasing, and only one was made entirely out of the same material. Nobody is printing entire washing machines or motorcycles anytime soon on house-level printers.

Music, movies and software had the huge advantage that basically all the effort is in the up-front design and then it can be digitally copied at basically zero cost. A car design or washing machine design on the other hand is only a small part of the total effort required to fabricate it. They require at least a dozen different raw material types, careful assembly, electrical certification, programming the microprocessors, greasing the bearings, etc. Most people will have neither the inclination or the skills to do the required post-processing themselves. Anyone living in an apartment will probably also simply lack the space for big machinery, especially if it sits idle most of the time.

Even apart from whether it could be made at all in a consumer-grade printer, some things are just unbeatably cheap with modern mass manufacturing methods. Your example of a cutlery set is one: a modern hydraulic press will stamp hundreds of spoons per minute out of steel plate. That process probably won't improve a lot by transporting the raw steel to your house first and manufacturing it yourself.

I think there are massive opportunities for additive manufacturing in industry, where companies would be willing to spend several million on a production grade device and can hire dedicated operators to get the most value out of it. You can already see that happening in the aerospace industry, and it will probably trickle down to almost anything that requires complex shapes in their assembly process. I don't think it will ever move beyond hobbyist in the home scene, the machinery is too expensive, too big and too complex. That said, the type of person who in the 80s would have gotten a lathe for their home workshop could now get a 3d printer instead (or both!).
Matt Risinger explains how and why he put an ERV in his house in this episode of The Build Show https://youtu.be/OrG7oG8Tvp8. It seems to be the thing to do of late in to help with air exchanges and still meet the passive house standards.
Yeah, this seems to be the key challenge right now. Some how an image and its elements might be used as context to condition the subsequent generations.
Yaki-imo: The endurance of Japan's simple street snack
Who are they targeting with the metaverse? Surely not gen Z, since they don’t use FB products anymore. Millennials? Too busy with kids/work to bother. Boomers? No way in hell that they buy dedicated hardware to wander around as an apparition in a virtual world. So who is it? Because right now, no one is buying.

BTW, I would bet $$$ that the reason Horizon Views looks so amateurish is because of a desire to use few resources over bandwidth constrained connections.
If you want good stock Android phones, I believe Pixel & Chinese brands are only game in town.
Not really.

It was a controversy created by a poorly written Apple press release that unveiled two distinct features, and subsequently ginned up by an even worse EFF blog post.

CSAM scanning was all about iCloud, just like every other vendor, and the benefit was a roadmap to E2E storage.

The more confusing thing was the explicit content notifications for parents for their minor children in family plans.

So instead, just like everyone else, you almost certainly have CSAM scanning happening in iCloud directly. All of your content is just a subpoena away. Thanks EFF.
I think you missed the /s at the end of my comment! We agree, they are similar - but disagree where you say things should remain that way. They should not.

From my perspective, there is no moral foundation for the existence of any governance system, except self-governance. Governance should NOT have a monopoly on force, they cannot legalise taxation, or the initiation of attacks on individuals, or license people/businesses, etc. These actions are possible on account of governmental force (in the form of police and military) it is not a moral right.
Apple only wanted to scan files on your device once you decide to upload it. In other words, if you don't ever actually upload anything nothing would ever be scanned.
Choice of Telugu over Tamil is a bit puzzling. Especially considering a good portion of Telugu speakers were never under British rule.
Fun fact, you used to need a dedicated hardware to print Chinese character on screen before personal computer have enough memory and storage space to fit every characters in.

https://en.m.wikipedia.org/wiki/Chinese_language_card
Unfortunately, most people now seem to be absolutely unwilling to expose themselves to information coming from a doubleplusungood hate site. Better to trust journalists and Wikipedia, which always use reliable sources[1], and are never wrong or biased.

It is approaching something like a religious taboo or literal OCD, as if they would be irrevocably damned by reading some bad words. While at the same time pathologizing everything outside their own narrow spectrum of permitted opinions as some kind of "-phobia".

Really everything about this group is contradictory:

* self-professed socialists / communists / anarchists who eagerly support megacorporations

* gloat about how they've basically won already, while justifying their actions with being existentially threatened (didn't Umberto Eco write something about that once?)

* academic background and vocabulary, try to shut down any nuanced discussion

* ironic statements like #killallmen are fine, while even mild criticism of them is proof of genocidal intent

Yes, there are vile comments on KF, and a large number of users do seem to be edgy trolls (the bad kind, i.e. those who go after targets other than cis/white/hetero men, see last point above), if not outright neo-Nazis. That does not mean that the factual information they post isn't accurate.

Deplatforming will radicalize them further, while hiding the problem from view. Conspiracy theory: perhaps that is the actual intent of such actions, to destabilize democracy and prepare it for Russian / Chinese / Western authoritarian takeover?

[1] https://xkcd.com/978
I'm interested in the same subject, but the fact that the book bundles "event-driven" with "microservices" is a red flag for me...
Did this hidden wealth motivate the puzzling foot shooting of Brexit? I live in the middle of North America, and I do not understand UK politics.
This method can stop working immediately if both parties decide to stop working out.

Also there is nothing that FORCES you to pay to the other person, no legaly binding contract so if you really don't feel like you're just gonna say "fuck it and fuck you" and it's gone.
I think they say that about the software, not the hardware.
It's a sort of arms race. Unprepared plain raw organic produce is delicious, if you haven't been eating prepared food covered in salt and other seasoning for years. Once you start adulterating your food with flavor crystals, you require that stuff just to move the needle.

A flavor tolerance develops, similar to drug tolerance.
Might be funny from the outside. But I put myself out there, felt very vulnerable and then they just made fun of me.

They could have told me that whatever I was saying didn’t make sense, they could have pointed the way to books/classes/papers, but instead they just bullied me.
What are some obvious use cases for something like this? I really have trouble imagining what you would use it for.
I have been smoking for close to 15 years now and I'm 40. I still struggle with quitting smoking even though I tell myself daily today is the last day.
> given adequate time new sources will be brought online

Or in the French condition: existing sources will be brought back online

https://www.reuters.com/business/energy/edf-restart-all-its-...
Yes, the most local food are the ones that are grown at home. When you add seed-saving, there is an opportunity to breed landraces specific to your environment, taste, and nutritional density.

No transport on refrigerated trucks needed. Onsite compost complements the whole setup. Then you add greywater for the perennial food forest.
(disclaimer: used to work for Facebook) I had similar doubts about the Metaverse concept until recently. However, Meta has done a great job (better than any other company in history) scaling up VR. They've sold more units than the most recent version of Xbox. The Xbox did sell out, which makes demand appear artificially low, however the fact that Quest sales are keeping up with Xbox sales is a very big deal. I didn't realize that until I listened to Mark Zuckerberg's interview on Joe Rogan. If you're an app developer, it's more than worth considering VR given the size of the audience on those platforms. One other thing to keep in mind - the current concept of the metaverse is essentially an alpha version. Now that Meta has established VR as a legit platform, they're using it to usher in a new future. Meta is throwing out lots of ideas for how VR might help reshape the future. The vast majority of those ideas will not work out but many of them will stick and form the foundational principles that underpin the evolving VR ecosystem as people increasingly spend more time. Once the technology passes a certain threshold of maturity, it will be a fundamentally better way to connect with friends/family/coworkers than any other medium. In general, high bandwidth communication mediums dominate with in-person interactions being at the top of the food chain. Meta aspires to make it feel like you're with people in real life except that your social experiences will be augmented with super powers that don't exist in real life. If they achieve that, meeting with in VR/AR will be preferable to real life and we'll all be using VR, as hard as that is to believe. That's not a future that anyone is necessarily asking for but it is a future that many will find more appealing than the existing options offered by computing platforms, like video chat. Assuming that happens, Meta will have a path to creating the new dominant computing platform. That's the ultimate manifestation of the metaverse vision - defining and owning the future of computing. Recall how clunky smartphone and personal computing experiences felt at first. Those devices weren't for everyone...until they were. Now, <15 after the first smartphone (which I define to be a phone on par with the personal computer, so in my mind the first smartphone was really iPhone running iOS 2, which introduced the App Store), people now routinely idle on their smartphones. That is to say, when they're doing nothing else with their hands (even if they're doing something else) it's not uncommon for their to pull out their smartphones. In 2000, if you predicted that grown adults would impulsively pull out what amounts to an entertainment device while they're idling at the airport, grocery store, or even while driving that would have sounded ridiculous. It's important to remind ourselves how quickly technology can become virtually ubiquitous and how challenging it is to predict the impact on our habits.
Similarly, I worked on a team that experienced backend failures in a custom distributed hash table that some crazy person decided to deploy on the cheapest server tier available from Hetzner hosting. Every hot summer day around 3pm, we started to see cascading failures in the DHT nodes.

Turned out Hetzner were to cheap to pay for cooling for their cheapest server racks and they all failed like clockwork when it got hot enough outside.
Enlighten yourself

https://m.youtube.com/playlist?list=PLunBXl8kd0GgDkHUWb-Zqxy...
Deepfakes have already existed for several years, and let you paste any face onto any video, in a much more convincing manner than Stable Diffusion, which is very limited in video2video domains.
The Amazon series Upgrade does a really great job mocking the idea that a virtual world would be better than the real world.
https://m.youtube.com/playlist?list=PLunBXl8kd0GgDkHUWb-Zqxy...
Parent is right, with some assumptions to be made explicit. Considering the reactions this deserves more explanations ;)

Let's say that the heat energy of the warm thing is "E" and the outside and fridge are at same temp for simplicity. Let's also assume that the house is not heated using a heat pump.

Consider the two cases:

1) The warm thing is put into a fridge. It's a heat pump, with coefficient of performance C. To cool the thing the fridge will consume E/C, and E will be released as heat inside your room. So you paid E/C of electricity to get E Joules of warming in your home;

2) The warm thing is put outside. The energy E is wasted outside, and then the piece put into the fridge with no extra cooling there. No energy spent by the fridge, but no warming of the house either. To do a fair comparison with the same final state, we need to add E joules of energy to heat the house, which will require E Joule of electricity or primary energy (because no heat pump to heat the house).

So to reach the same point, in case (1) we spent E/C of heating energy, and E in the second case. It is indeed more efficient to put the warm thing directly into the fridge, as this will contribute to heating the house with the efficiency of a heat pump.

And if you heat your house with a heat pump of same efficient C, you don't care either way: it's equivalent.
Seems like you know about, yet haven't watched War Games yet. Definitely an older one, but arguably one of the best — would highly recommend giving it a go.
On a spare pc I would absolutely recommend it. I have it on a raspberry pi and I love it. It's hard to explain, but it takes me back to the days when I was a kid discovering computing for the first time. It's just...fun.

Everything feels so simple and well-designed. Once you sort of wrap you head around the core concepts (namespaces, what 9p really gives you, etc) you suddenly start seeing how crummy posix based systems really are.

You can enable a shocking amount of functionality with little scripts.

At my last job, I worked on a mobile banking app (mostly c++/java) and I developed almost exclusively in acme on my raspberry pi with some little scripts to use my apple laptop for compiling.

Yeah, you'll miss out on some things (mostly web and gaming related) but if you're like me, your real pc will become your spare because you'll look for every excuse you can to do it in plan9 first and only use your expensive rig as a fall back.
It used to be true that people know these three are bad, but this changed a few years ago when aggressive corporate marketing on the "body positivity" changed the perception about big BMI incredibly, many people these days believe it is perfectly healthy to be seriously overweight. I am quite upset by the marketing around this matter, it is ruining lives.
9front is fine, it's just actively maintained
>>what we want to achieve

What is it, SPECIFICALLY, you want to achieve.

And, assuming you do achieve THING, what are the negative consequences of such achievement?

How will you be accountable for dark patterns?

What recourse would any biologically physical Human Being have against [THE BAD THING] that may ensue from said achievements...

SERIOUS QUESTION
I now regularly charge my laptop, camera, tablet, game controllers, and friends’ devices using the same charging cube or battery and cable. That was impossible and hard to believe even just ten years ago. The only odd one out is the iPhone. I actually like the Lightning connector more - too bad it’s proprietary and has limited speed/power.

I never experience incompatibility with my setup, but I’m sure it does happen, especially with budget cables/devices. I’m not sure what cables you’ve tried but I’ve had good luck with Anker and Apple’s newer cables.
I was just thinking that the next class of advances in AI could come from the ability to learn in a similar way humans do.

For example, a model could read a book and then answer questions about it after a period of thinking about and processing the information.

Basically, go beyond the paradigm of single forward pass.

The current models do something like intuitive, instant thinking humans do. But they can't do the type of thinking which takes a long period of time.
I got a Pixel6 in July. Aside from the camera, it is by far the worst phone I've ever owned. I probably experience at least 4 or 5 major crashes every day where the phone becomes unresponsive for a few seconds.

Up until now, I've been able to live with the bugs as a moderate inconvenience, but now that I know I could potentially die because of Google's complete lack of QA, I'm going to ditch the phone right away. I'll never buy a Google device again. What a waste of money
I switched to iPhone when I learnt Android didn’t have encrypted storage at the time.

The whole Android stack is rife for criminal prosecution, between GDPR, permissions, freezing when calling 911…
> Is that power usage more efficient than not running it and relying on another heat source?

I can't get whether to answer yes or no to that question, but the fridge's heatpump is more cost-efficient that most people's heat sources. That's the entire premise of the article.
Discussed in this thread:

https://news.ycombinator.com/item?id=32712578
(1) I dare say this is less readable than the original. Not un-readable, but definitely less readable. Just put them side-by-side if this isn't obvious.

(2) You probably don't want to call it something generic like "flatten" if it's going to do something so specific like concatenate table.rows. Note that I'm not just nitpicking on the name here. Rather, my bigger point is your factored-out functions aren't really as reusable as your name suggests. In this particular case you can trivially get around it by passing table.rows directly, but that obviously wouldn't generalize if you needed anything else in the table in the process.

> This process is generalizable

(3) I'd question that too. Imagine if you had a per-row operation too. Like maybe:

found = None
for r, row in enumerate(table.rows):
for c, cell in enumerate(row):
if search_query.matches(cell.value):
found = (r, c)
break 2
logger.log("Finished row #{}".format(r + 1))

Are you really going to factor it out like this?

def flatten(table):
for r, row in enumerate(table.rows):
for c, cell in enumerate(row):
yield (r, c, row, cell)
logger.log("Finished row #{}".format(r + 1))
How does this compare to some other open source, self hosted assistants?

rhasspy comes to mind, but i believe Mycroft can be self-hosted too.
They aren't at all new in the US though? It just depends on the location, and they are very common in some areas
I am a professional artist and I am worried.
One of my favorite tables: https://en.m.wikipedia.org/wiki/Modulo_operation#In_programm...
It’s not about him being ugly but him being robotic. He’s had work done which doesn’t help , Botox freezing expressions, but all the shit Zuckerberg gets is that. And frankly considering how he’s undermined our democracy he’s got off light with a little mocking.

In another era there’d be pitchforks.
I can't believe people have to force/trick themselves to work out... It's amazing!