skysight-inc/HackerNews huggingface dataset:
You can have a nicely organized JS project without using a framework, albeit you can expect a bit more boilerplate.

There are many approaches you can take. The following is an MVC approach I'm trying out in a personal project. It's organized as follows:

There's a subscribe/emit system, where you can link functions to run when an object sends an emit signal. This can be done in a couple dozen lines of code. Example: https://gist.github.com/stefano/32cbe9bef5a68ecb3286113369d8...

Models are JavaScript objects. They have methods to read their state and to update it. The methods that update the state need to call emit() so all subscribers are notified.

Views are functions. They return an object with 2 properties: a DOM node (the root of the view), and an update function. The update function takes a model instance, and updates the DOM structure accordingly. If a view supports user interaction, it'll take a delegate object as a parameter. The view will add event handlers which call the delegate object. Example of a text input with a label and optional validation error: https://gist.github.com/stefano/2135cc15470cceba4ac2d344fe2e...

The controller is a function or class. It returns an object with its root view and a function to run when the controller is destroyed for cleanup. It can either take a model as a parameter or instantiate it. It also instantiates the root view, passing itself (or another object) as the delegate. In the delegate methods, it calls the model update methods. The controller subscribes the view to model changes, and unsubscribes them when it's destroyed. Alternatively, the view can subscribe/unsubscribe itself.

With this approach, views can be composed by calling the view functions from inside another view, passing down a delegate and adding the root DOM node to the parent view DOM structure.

The controller and the model are completely independent of the DOM. The model can be tested independently. The controller can be tested with a mock view. The view can be tested by passing in a mock model.

Views only depend on their initial state and the state of the model passed to the update function.
Buying a Tesla is certainly not marginal - it's lifetime carbon footprint incl manufacturing is still huge, it's wastefully big, and the owners previous car will in 90% of cases just continue life with the next owner, ending up with one more car in the world.

The alternative co2 reducing uses of 1 Tesla worth of money would be very significant in the $2 earnings/day part of the world, so the opportunity cost is enormous.
I like to think they're just making our job easier in rooting out the "bad apples" who are more interested in protecting their tribal brethren no matter their behavior than the citizens they swore to protect.
CSS Toggle Switches
The ideal situation for a construction company is where the house they sell has the best cost to manufacture / sale price ratio. People buy houses without living in them first, so the best strategy is to build a house that is very cheap, but is visually impressive.

Consequently, developers tend to build houses that are barely functional as such, with all sorts of damp/heating/basic liveability problems, but which look impressive.

Green initiatives are a sort of nightmare for developers, because the energy efficiency of a house is a cold, uninteresting metric that is not immediately present to the potential buyer.

Consider windows, for example. In an unregulated market, the cheapest, most crappy windows are absolutely the optimal choice for a developer. The fact that they are going to be drafty, break within the first few months, and quickly become covered in mold is simply impossible for a buyer to know, before they've lived in the house for a year or so.

Green windows, however, have to meet energy efficiency ratings - which means they must actually work. They have to keep cold out and heat in, or vice-versa. They can't be giant condensators. They probably don't look quite so pretty, and much worse, they are far more expensive. So the developer actually loses perceived property value, while paying more!
Do modern systems encode a degree of variability? Either by way of slightly varying the parameters of the underlying vectors (beziers?) to mimic the slight variability in speed and curvature of a true signature, or by analysing 100 input samples to generate a wider variability of outputs?

Seems like this would add to the ambiguity over provenance.
In your 1) you mentioned cargo, so just to clarify, you can fly cargo for somebody, i.e. not in your own airplane. In general, flying and operating your airplane for any kind of compensation is what the FAA calls 'holding out' and just a commercial rating is not enough for it (more precisely, you need other, nonflying related qualifications for that, like a 135 certificate).

On 2), my experience has been that most students get airsick because of anxiety (I guess it is associated with them fixing their gaze inside the airplane) and is usually not an issue once they gain confidence. Before that, flying early is great advice.
Yet Romanians love their current president - i yet have to understand why such preference for criminal leaders in that country. Is it a reflection of the Romanian society? Scamming, petty crime, corruption, and generally speaking cheating are so common that it seems like selling babies for profit doesn't even bother people. Apparently human trafficking is nowadays done with the help of local authorities, and Romanians barely care about it.
Can the mayor make the police reveal things? Is the mayor elected by the population?
Deciphering Single-Byte XOR Ciphertexts
Emergent linguistic structure in neural networks trained by self-supervision
They use egregious in the "extraordinary" sense, meaning the battery life's great. Once it does need charging, it can still be used via the cable during charging.

I have to agree, specifically mice have been the least painful Bluetooth experience for me, with a Microsoft. Annoying part is that it changes MAC address when pairing, so regularly using it for more than one computer is a frustration but that's nothing compared to the constant interruptions I've had with keyboards and codec issues with headsets.
I recently made https://neat.joeldare.com based on a few of my favorite "text only" examples from the web, although I wouldn't call them that.
It's a loop. You can loop it as frequently as you like. A big company might do this once a month, a true startup would do it every few hours.

It can be parallel if it's multithreaded. Certainly you don't expect one person to build and engage simultaneously, but quite often there is a list of think you know but aren't certain, and the product team can still engage users on those uncertain parts.
I just love it when there is so much crime and corruption in Romania, that people dont argue over complex topics - they argue over who is the least criminal.
If you're like me, the spark is gone forever.

The spark comes from believing that by learning these technologies you can build awesome stuff as a respected part of a team. In reality, we are subject to the whims of management and assigned boring/impactless work. Our expert opinions are not respected, not because they are wrong but simply because they do not fit with management's ideas. You might have big ideas and want to make great products, but instead you are told to think like everyone else and take shortcuts.

Even working on projects at home can lose their appeal if they aren't original.
My Magic Trackpad 2 has input lag the first time you touch it after more than, say, a second. Apple support said it might be interference and to turn off any other nearby Bluetooth devices. Oof. Ok, thanks.

Perhaps the next product I buy from them in an Apple Store I’ll pay for by wafting my card around the contactless terminal a little before walking out the store saying “if it didn’t go through, try turning off any nearby devices!”
Yep, with all the horror stories around retentions and upselling I personally never had any issues in that front. I honestly tell the rep that I have a better deal on the technical level elsewhere (that their offering can’t match) and it was always easy.
If the goal was to protect the driver then the bridge would be removed. The bridge carries a railway so many more lives are at stake if it's damaged.
I've been thinking: what prevents a lynx-like desktop browser that effectively defaults to a Reader-Mode-only on all pages?
Can't say about "downvoting the comments we don't like", but downvoting for disagreement has always been allowed: https://news.ycombinator.com/item?id=16131314 As siblings have demonstrated, it's not hard to find something disagreeable in gp, and it's debatable whether "all he said is true" (the general observation about "purchases" is true AFAIK, more specific accusations aren't clear).

(I didn't downvote.)
Second. Worst. Lock. Ever
Not surprised. To this day respect for human life in Romania is low - human trafficking and rampant racism are part an parcel of life in that country. In Cluj Napoca for instance, a notoriously corrupt city, people of gipsy background are not even allowed in public administration buildings and their children are frequently sold as modern day slaves. Withe the blessing of local police forces of course. Yet Romanians couldnt care less.
Watching videos and listening to music is fine, devices usually delay video playback to match the latency so you don't notice any difference. The latency problem really only matters for when you need instant feedback for your actions: playing games, editing audio etc. Even then you get used to it.
Presumably the truck is already at the intersection, so it's unlikely it can actually move out of the way before the light turns green. In the first video, the truck was 3 cars back. That means that it more than likely had no room to turn away until the cars in front of it went.

Seems to me that's the idea behind the setup. You put on a long red light -- long enough that hopefully the truck driver would notice the lit up sign and realize that he need to do whatever he can to make a turn when possible. Trouble is that for some people the light would have to be 10+ minutes long before they would notice that it's still red.
This sounds very interesting! What are your thoughts on nim vs julia? In the scientific community, julia is popular for similar reasons as nim like easy syntax and compiled code. If you think nim will take over in bioinformatics, how is the support of numerical algorithms like BLAS and LAPACK?
Then there's also Bluetooth Low Energy, which is Bluetooth only in name and mandated in the 5.0 version. Apparently most news products use BLE instead of BT, unless they use a well-known profile for say, audio or game controller accessories.
A&A is definitely good but unfortunately they only offer DSL I believe, which is honestly pretty bad compared to real fibre like Hyperoptic or G.Network.
FPC 3.2.0 Released
Translation for those who don’t speak marketing: Facebook bought Mapillary.
Also recommended: “4 Months, 3 Weeks and 2 Days“, a 2007 fiction film about a college student in 1980s Romania seeking an illegal abortion. The film won multiple prizes including Cannes Palme d’Or.

“Pro-life” Americans would be well advised to see the movie, as a reminder of what would quickly be happening in their own country if a complete ban on abortions were to happen.
I wrote the comment. I didn’t mean that in that way; I mean the intention of the manufacturer may coincidentally overlap with that of a hypothetical parent of a precocious child or children. I didn’t mean to advocate for the practice of safety or otherwise nonstandard fasteners in consumer electronics. I’m against that practice, even if it may have potential upsides as in my example.

I was also that kid, and now I use computer hardware and software skills daily in a professional capacity. Don’t get me wrong, I certainly agree with you on all points.

I don’t know what reasonable justification there is for doing this for consumer devices generally, from the owner’s perspective. Maybe it makes devices more appealing in a corporate context, for the same reason some secure environments forbid devices with cameras or recording hardware, and also forbid (re-)recordable media. Maybe it reduces loss in the supply chain for the companies to do so. Some credit card payment terminals have tamper-evident designs built-in prevent or deter dumping hardware encryption/decryption keys, firmware, and other kinds of tampering, to reduce fraud and unauthorized access, for the owner’s sake and the networks’ sake. I would like to hear some more or better reasons if anyone has insights into these topics.
16kbps over 2km, wow! How sensitive is the system to the quality of connection?

If I hide enamel coated filament just beneath my lawn is that going to be good for a one wire bus to work? Does it even need to be insulated?
Oh, ok. Have you reached out to any US-based startups that you are interested in? Perhaps you can convince them they need a remote European team to help them expand or give them more off-hours support from a different time zone.
>It seems like you may have missed the part that this situation is not sustainable, as well as the prior science that establishes that quality of life depends on the environment, which is why many people care about phenomena like polution and climate change.

It seems you missed the fact that many people don't care about sustainability, and are unwilling to accept even a small reduction in quality of life in the name of the environment. Clearly their values differ from the values of the paper's authors regarding what is "necessary societal change".

>It's going to be hard to argue that the life-sustaining capacity of Earth is not a universal subjective value of all life but the paper isn't arguing the opposite anyway.

If we look at sustainability from the perspective of "preserving human existence as long as possible", then the only long-term solution is expanding to other planets/solar systems. The more limits there are on economic growth, the longer this will take. Similarly, life-extension technology will allow people to extend their lives longer; the slower the economy grows, the longer it will take to develop this. The paper didn't even consider this, or any other downsides of limiting economic growth.

>Make sure you understand what unsustainability means as far as consequences. Moreover, that's hardly a subjective value judgement. It's simply a measurable property of systems.

The language and tone used in the paper is not in the format "if we want to increase sustainability, this is what we should do", it's in the format "this is what we should do". For example: "economic systems that exploit nature and humans" - that's clearly a value judgement, not science.
It seems a common story, customer tried to cancel or get a cheaper service but ends up paying more.

These call centre staff must be very highly skilled, wolf of wall Street level of hustle.

In Korea they have a word which describes a person who is easily scammed and parted away from their cash: hugu.
Slightly related, a now famous bus/car trap in Stockholm that became a short documentary: https://www.svtplay.se/video/17480166/sparviddshinder (only in Swedish, but should be viewable globally)
i feel ya.

people with a desktop computer are a minority thou.
Never use alcohol anywhere near an IPS screen. You might get away with it if it only touches outermost layer but if it leaks to inner layers the screen will be ruined for good.
Mass produced ornamentation! That's not what I'm talking about.

You can produce simple forms with moldings, but worse, you produce generic forms.
I was just pointing out it is not just a monetary issue and most of the successful criminals are intelligent actors.
Is that really the sense you get from a labelling API? Seems rather hyperbolic to me.
Wow. I thought you were joking but UL-39 really does look like an amazing concept. Jet propulsion with a piston engine! And an LSA at that! Incredible. Thanks for the reference.
In France ethernet with RJ45 is the standard that replaced the older phone line that we were running in the walls. Since you can plug RJ11 to RJ45, you can use a

Any decent electrician is France knows how to install ethernet, and they can get install this kind of equipment, equivalent of a distribution cabinet, instead of the regular "phone line" box:

https://www.tableau-de-communication.fr/coffret-hager/13-cof...

https://www.tableau-de-communication.fr/coffret-hager/14-cof...
Hasn't covid already done that. I think we are going to see a high upsurge in competition for masters in my home country. Which is very good.
I have used similar lists to go from almost entirely self taught to having finished a half dozen CS and FP courses at my own pace. At one point in my life I was keeping up a GitHub streak every day by just pushing a couple exercise answers to a private repo. After a while, I really had to go looking to find challenging enough work to keep me engaged. Books with homework like SICP, FP in Scala, Let Over Lambda, Software Foundations, Haskell from First Principles, Land of Lisp, and Progamming Languages all really offered a lot of homework to keep the streak up.

The streak really is a super power for self study of any form. It's so hard to ignore a 1600+ day streak even when you don't feel like it.

When Github took that streak counter down, I was crushed, combined with me taking a management heavy job (encouraging me to read a lot about soft skills), it really collapsed the whole system for me. One day I'd love to pick it back up, but right now I'm doing the same thing with violin as an adult learner, so that's taking up that time I'd otherwise spend on CS.
How can this article, as well as the hundreds of comments here, not acknowledge that all they are doing is solving the Drake Equation for new values they are estimating?
This is fun and all but what's wrong with a regular inkjet printer and a 3-ring binder?
This one is amazing: https://pomb.us/build-your-own-react/
This happened to a family member, looked great, expensive looking house and high price, but shoddy work, all sorts of basic problems with the house in the first year.

I wonder if this couldn't be mitigated somewhat by a clause that makes the developer liable for all problems in the first year. (I know one potential loophole would be that the developer could use a proxy to "buy" from themselves and hold for a year, but it seems like that could be appropriately handled through existing or minimally altered fraud laws.) It's hard to see how we could get from our present situation to something like that, but it might improve craftsmanship, but would also make new houses even more expensive.
> The term "pro-life" may creates a false dichotomy when put in that way, but if you think at it as the crux of the argument not so much.

Even then, not really. Otherwise Pro-Life adherents would push policies that reduce the number of abortions overall—like better access to and education about birth control—over policies that don’t—like making abortions illegal. Instead, they demonstrate that their goal isn’t to actually reduce the number of abortions overall.
In Western law, intent is important, but Chinese culture uses strict liability. They don't accept excuses like, "Oops, my engine failed and that's why my plane hit the apt. building."

Over Singapore, you're not allowed to overfly buildings, so you have to fly along rivers or marshes.

For international flights, you're treated like an airline.

US, Australia and Canada have a GA culture, but most countries cater only to airlines, and tolerate flight training for airlines.
Oat milk may be inherently cheap, but building an oat milk factory is still expensive. Beyond meat factories and their supply chains are even more expensive to develop. Buying them now means you're subsidizing them for the future. Obviously, vegan companies still want profit, but regular food always makes more money than niche luxury food.
The prison industrial complex is a term we use to describe the overlapping interests of government and industry that use surveillance, policing, and imprisonment as solutions to economic, social and political problems.
Those are Ethernet ports, just SFP+ ports rather than the RJ45 copper you're probably used to. I've never seen RJ45 ports > 10Gbps. Even 10Gbps is more often than not SFP+. Even if Cat8 can theoretically can 40Gbps, it wouldn't really make sense to put copper for those speeds today IMO.

This device looks to be target for network engineers, who can use it for testing and benchmarking infrastructure, or for installations that will most likely be in or next to racks rather than on desktops.

You could just pop a transceiver module that will convert the port to RJ45. The price of those is peanuts compared to the 2k list price of this device, and the reverse isn't viable.
You could probably use some form of DMP [0] for this. It basically learns movements by viewing them as the difference from a spring-damper system. This allows all kinds of adaptations.

[0] https://ieeexplore.ieee.org/abstract/document/5152423
Google AR Animals/Objects
>In the context of the cost of a building, the cost of these elements is near-insignificant.

The same could be said of 99% of building code requirements...and it adds up.
Got evidence? I've been to Cluj and it seemed remarkably uncorrupt and well run, certainly compared to the rest of Romania.
Why is this being up voted ?
Make every truck stop before it's able to pass under.
Previous discussion from 2 days ago: https://news.ycombinator.com/item?id=23564854
> On the contrary, it is not possible to foresee kind of houses and places people will want to live in 50 years in the future.

People have been doing it and usually getting it right for millenia. 38% of the UK's housing stock dates from before 1946; much more than was built in the last forty years.

And one of the few really consistent objections to older buildings is 'the architects assumed nobody would still be living in it fifty years later'...
It's not untrue. I've lived in Japan 14 years. I have pictures from late March of people out and about without masks. Sure, it was not uncommon to see a few people wearing masks in Asia (and Japan) before the epidemic but it was not remotely everyone at any time until the lockdown in April. Usually an average train of 200 people might have 10-20 people with masks on (before the lockdown)

Here's pictures March 24th (and one in late Jan which shows zero masks)

https://photos.app.goo.gl/aUWB5YB6vBnjZk8j6

So no, it's not because Japanese wear masks. I'm not saying that doesn't help but it's clearly not enough given how crowded the trains are and how late it was until everyone started wearing them
Show HN: holiday.css – a minimalist classless CSS theme
Same in France.

The vast majority of envelopes are the long ones where you have to fold three times and you never get it right (but are hzppy if it still fits into the enveloppe)
> If we look at sustainability from the perspective of "preserving human existence as long as possible", then the only long-term solution is expanding to other planets/solar systems.

That's not really true, there are other solutions. Bombing us back to stone age, or keeping everyone poor and occasionally decimating the population through resulting pandemics and wars, are both working solutions that align well with the ideology behind the article.

Now if we want civilized solutions that actually improve life for everyone, becoming an interplanetary species is mandatory.
Another point: dead battery completely tanks permance and makes macbook unusable. Could only turn on with charger. Had some 10+ years old macbook - cpu was throttled to some 500+ mhz (with charger attached)

After changing battery, computer flies again.
Best explanation of why we use HTML language