skysight-inc/HackerNews huggingface dataset:
Criminalizing basic humane behaviors (such as saving drowning people, or giving water to a dehydrated person at risk of death) is making things worse and strips us of our very humanity.
We wring our hands and move on, preferring to not know about it, instead.
Or Google Earth.
One more: OEMs like Dell and HP aren't allowed (by Microsoft) to sell PCs that dual-boot between Windows and something else, such as GNU/Linux so the only people that get to try Linux are those that have it pre-installed as the only OS, or those willing and able to install it themselves. Source: read about it somewhere or other; main topic was the history of BeOS.
Nitpick: There should be a check for zero count to avoid a divide-by-zero. It's missing in the original article as well.
don't connect smartTV to the internet, juse use the DP/HDMI inout ;)
"Open source" has a precise definition [1], and your comment does not use the term correctly.

[1] https://opensource.org/osd

In particular, if the software or "work" was never made freely available by its lawful owner, it is not open source.
Yes! I was hoping that people would be inspired to do something like that and I would be delighted to help you however I can. My contact info is in my HN profile.
This is a beautiful story. It reminds me of the stories collected in "Working: People Talk About What They Do All Day and How They Feel About What They Do" by Studs Terkel. The overall theme is how people find meaning in what they do and the nobility of the human spirit. Thank you for sharing it.
I post this as I saw a basic humanitarian essay "flagged" by one of our less enlightened fellow readers.
The humanitarian essay that was "flagged" is the following link:

https://joelx.com/american-immigration-policy/14965/

shame on the person who flagged it, you risk your very soul...
> you must figure out the Windows IP

The existence of c:\Windows\System32\drivers\etc\hosts cracks me up. Supposedly [citation needed] Windows uses/used part of the BSD network stack.
And, what's more, it was easy - I hope that people are inspired to take ML further than I did, there's a lot of cool things waiting to be re-discovered in newspaper archives.
You incentivise your employees to manipulate, misrepresent or outright lie.

Then when it is found out; you throw your employees under the bus.
> You’re misunderstanding me. I have nothing to say to people

> who want to argue in bad faith about racism and other

> nonsense as if they have any valid scientific footing.

Are you suggesting that I'm acting in bad faith, or the commenter on Gab? I all honesty I think we're misunderstanding each other, that's always been the challenge of writing.

> Please don’t cherry pick my remarks to make like there’s

> an argument to be had here.

Please quote specifically what you think I've cherry picked, I haven't done so on purpose.

> By the way, that article is referencing a revival of a

> strategy employed much earlier on in the 20th century. It

> doesn’t hinge on “alt right” or anything else. Just bigots

> making an effort to normalize their bigotry.

Normalization of speech through sarcasm? I'm British, sarcasm/"jokes" is the language most of us speak normally anyway, it's how we laugh about our shared troubles.

> Have a good weekend. It’s a long one here as we celebrate

> Canada Day.

Have a good one.
Basic Computer Concepts – CPU Architecture in Minecraft
Well since foo fighters [1] were spotted during the Second World War and I doubt the US patented designs for the F117 stealth bomber several decades before it was revealed, I'd put this in the class of psyops. If they don't know what's flying those things or what they are, better to blame the Chinese instead of little green/grey men and get people all concerned.

[1] https://en.wikipedia.org/wiki/Foo_fighter
... I didn't know that they existed? I just ran with the first thing I could get working.
Would this only be used for services l/sites that run on Google Cloud? Or does the entire Internet benefit directly
GitHub finally allows you to assign issues to non-collaborators
Sledgehammer is an allegory for cognitive burden of checking and rechecking the code you write in a command line. *nix CLI for example is not an ideal of uniformity ([0]) and simplicity. It's not at the same level of simplicity as your common household knife, at least.

[0]: `--opt=val`, `--opt val`, `-opt=val`, `opt=val`. First two are usually interchangeable but sometimes not. Third one was completely unexpected for me (clang uses a mix of first, second and third). Forth one is easy, only `dd` uses it.
>(HAUC), which can function as a submersible craft capable of extreme underwater speeds (lack of water-skin friction)

Chinese advancement in frictionless supercavitating submarines are already well known[1]. But claiming that they have the capability to do so with EM propulsion is something new.

What's more bewildering to me is that the patent fiasco surround this. AFAIK state of the art defence tech rarely gets through patent system for obvious reasons, TIL that U.S. Patent system has a way to file secret patents and even that wasn't used in this case.

Not sure whether they filed this patent with PCT (Patent Cooperation Treaty), then they would be eligible to submit this patent application for review in other countries as well.

[1]: https://www.popsci.com/article/technology/chinas-future-subm...
I spent a lot of time trying to get dynamic switching working and after countless hours I gave up.

Optimus is definitely not a "solved problem", unless you know some method I didn't find in my dozens of hours of googling how to get it to work on a system76 laptop (Linux preinstalled) and a 2012 MacBook.
This is the internet. People are constantly making things up. Actually, this is mostly what people do. I don't think we can do much about that. It isn't against the site guidelines to be wrong.

As for the comment you linked to, it seems like a neutral statement of what the commenter thinks. Maybe they're mistaken, but I don't see how that was a flamewar comment.
Its unix with a generally nicer/hassle-free ux and better arbitrary device support... its utility for development seems fairly obvious to me. The only major factors are price and recently ports and physical reliability.

Hell, what are your alternatives? Linux on laptops is broadly a mess until fairly recently... and Windows is Windows.
Yeah you're looking (in typical nerd fashion, I might add; no pun) to the "optimal" stack for you and your future development workflow. But, you know, there aren't many GUI apps worth running on the Electron/browser stack. I need capable pixel and vector graphic editors, 3D modelling apps, audio editing apps, and tons of other apps for media production which are extremely time-consuming and expensive to create. I don't want to loose what we've achieved in F/OSS, because I don't believe we're going to get replacements for the likes of Inkscape, GIMP, G'Mic, Krita, Blender, etc. in these times of short-lived stacks and SaaS's, ever. And why would we want replacements? These apps have just begun to mature, and are working extremely well for me after 10-20 years of development and a bit of getting used to them.
Latin did play a major role in Greece (which was ruled by Rome), though in a twist, as Adam Davidson of The History of Philosophy Without Any Gaps podcast (a real treasure) notes, Rome adopted Greek as its language of scholarship and aristocracy rather than imposing Latin on the Greeks.
Docker desktop runs a Hyper-V VM. Prior to that, Docker used a Virtualbox VM on Windows. The current plan seems to be to integrate with WSL2 once that ships [1].

[1] https://engineering.docker.com/2019/06/docker-hearts-wsl-2/
Would you please stop posting such antagonistic comments to HN? You've done it a lot. That's a drag, and it's not in the spirit of this site.

https://news.ycombinator.com/newsguidelines.html
I'd make a $5 bet that if they find and sequence life on Mars it'll be not just speciously like archaea but actually archaea.
How would you rewrite the first example?
Maybe just sloppy title writing.

Because TFA says nothing about it growing outside.
Dozens and dozens of UNIX kernels (with Fuchsia being the exception I believe..? Not sure). Yes I know kernels have far outgrown POSIX, but it's still a form of monoculture. Diversity in all dimensions matters imo.
> This pattern is nothing really special and I should have realized it sooner but I found myself filtering a collection of items to get all items that matched a certain condition, then doing that again for a different condition. That meant looping over an array twice but I could have just done it once.

Write a generic function for this instead? Lodash has one like this called "partition" for example.

I try and avoid explicit for loops as much as possible as they tend to make code harder to follow and state manipulation is a big source of bugs. Most operations on collections can be decomposed into some easy to follow combination of map, reduce and filter instead (this is a filter variation).

Nice article!
Ask HN: Any success story on selling software as AWS AMI?
Hi folks,

I am trying to find new distribution channels for my software.

One idea is to create a set of AMI and sell them into the AWS marketplace.

Are there any success stories for this business model? Did any of you successfully made money out of it? Any cautionary tales? Something to whatch out for?

In the AWS marketplace you can decide how much your AMI will cost in $/hours, just like a normal instance.

So my plan was to sell the AMY at 5% the cost of the machine.

Are there some other approaches?
If your house didn’t burn in the last two years, consider not insuring it anymore.
OTOH considering Termux popularity, you may say that general purpose computing on Android is growing rapidly.
Pros and cons of Blazor for web development
It's not really that insane. Microsoft just provides a very detailed privacy policy that covers every single possible scenario and clearly explains it to the user.

In any generic platform privacy policy, the same lines you quoted from their privacy statement would be summed up as "We collect [insert here] as required for operational and security reasons", "We use your data to perform business functions" and "Your data may be shared with third-party service providers such as payment processors". It's nothing scary and is what's required for Microsoft to operate as an entity.

I'd also be careful how you interpret it. Microsoft's privacy statement applies to literally every single product and service they offer and acts as a catch-all, and from there they have independent statements that cover individual products in more detail.

In this case, the diagnostics and feedback page describes all of the scenarios that they collect and use the information, and therefore the global statement isn't relevant.
Error return values are also invisible.

By default, an ignored return code does nothing. The situation is shuffled under the rug.

By default, an ignored exception is loud.

Error codes have to be handled to become louder.

Exceptions have to be handled to become quieter.

The control flows underlying exceptions are syntactically invisible except at the source and destination sites. However, they reliably occur. They reliably occur because they are invisible. If exceptions had to be propagated by some visible assistance through all the layers they cross, they would become unreliable.

The problem/trade-off with exceptions (the bad aspect of how they are invisible in their own way) is that if we have statements like S1; S2; S3, we can never be sure that S2 is reached, or if S2 is reached then S3. S1 can call some function that throws, and so can S2 or S3.

Exceptions can cause partially executed statement flows to be unexpectedly abandoned. And that means that whatever those statements were doing remains half done because the programmer assumed that if S1 is reached, then S2 and S3 are an iron-clad given.

Programmers using exception-based languages have to train themselves to use unwind protection mechanisms in all situations fitting the pattern that "if we have executed S1, then S2 must execute to complete/undo/clean-up whatever S1 started". They must never rely on ordinary sequencing, except when it is obvious that the code doesn't throw (for whatever reason: triviality, or all being in the same module put together by that programmer or whatever). If any external code is involved (statements inserted by a macro, foreign callbacks, calls into third party stuff), all bets are off.
I had to uninstall it after it started to ask me to review places and locations I visited and didn't gave me the option to turn these off.
> There is also a good bit of distance between "I have a bunch of scans of Krazy Kat" and "I have a file ready to send to a book printer to turn into a bunch of books of Krazy Kat".

I assumed as much myself. However, based on the comics that I spot checked in my Fantagraphics hard copies, I'm no longer sure that is the case?

In particular, I'm really curious how Fantagraphics missed the comic published in 1922-10-29. (See the section titled "Figuring out dates for comics" in my write up for details)

> I suppose one could apply more ML to automatically try to clean up all of these diverse scans into something worth putting into a book, but I feel there is a huge can of worms being opened up there.

I, for one, hope that someone opens that can of worms!
>Microsoft does not bring anything substantial

Microsoft brings integration not possible in VM. You can actually make Linux tools part of your complex heterogeneous workflow.
>At this time we'd have to be chumps to give them the benefit of the doubt.

That’s fine and well but I’m going to have to repeat myself.

That doesn’t mean you fill in the blanks yourself and go around pretending that was actually said..
To make it clear:

Photons have two different forms of angular momentum. Spin angular momentum (SAM) and orbital angular momentum (OAM). Radiated photon carries not only spin but also orbital angular momentum.

That OAM must exist has been known some time but it was observed relatively recently (27 years ago). Orbital angular momentum of light and the transformation of Laguerre-Gaussian laser modes https://journals.aps.org/pra/abstract/10.1103/PhysRevA.45.81...

>Abstract

> Laser light with a Laguerre-Gaussian amplitude distribution is found to have a well-defined orbital angular momentum. An astigmatic optical system may be used to transform a high-order Laguerre-Gaussian mode into a high-order Hermite-Gaussian mode reversibly. An experiment is proposed to measure the mechanical torque induced by the transfer of orbital angular momentum associated with such a transformation.

> Received 6 January 1992

>DOI:https://doi.org/10.1103/PhysRevA.45.8185
If you can do low-level software, particularly assembly, sure:

https://news.ycombinator.com/item?id=19797601
return rawData && rawData.length > 1 ? rawData.map((item) => item) : []

In many other cases, I would use a result variable. It's more expressive and more importantly you can move that code (the result variable may become just another variable in a bigger function). (note that in many programming language like lisp or haskell you wouldn't need the result variable because everything is an expression) Granted, it looks like no big deal in many many spots. Until it is, particularly at scale when you can't refactor anything because everything is full of early returns.
Maybe, but I don’t think there’s a CoreSunrise or CoreSunset. The problem isn’t in setting the brightness or colour tone, it’s calculation when to switch between them.
Seems to be a dupe of similar post that is also "trending" on HN at the moment:

https://news.ycombinator.com/item?id=20310938
Knowledge Hypergraphs: Extending Knowledge Graphs Beyond Binary Relations
Running Linux in a VM under Windows is not a new capability, nor is this convenience development particularly helpful to Linux's long term support of modern desktop hardware if it results in what would be new linux-on-metal users never bothering and instead using Windows as a driver layer for Linux VMs.

Chrome and Windows using the Linux kernel as a POSIX support layer is only going to diminish the Linux desktop community and the quality of its modern hardware support.
Has dopamine got us hooked on tech?(2018)
I was re-reading this old article today and this caught my eye:

[..]In the 1950s, dopamine was thought to be largely associated with physical movement after a study showed that Parkinsonism (a group of neurological disorders whose symptoms include tremors, slow movement and stiffness) was caused by dopamine deficiency. In the 1980s, that assumption changed following a series of experiments on rats by Wolfram Schultz, now a professor of neuroscience at Cambridge University, which showed that, inside the midbrain, dopamine relates to the reward we receive for an action. Dopamine, it seemed, was to do with desire, ambition, addiction and sex drive.[..]

If I were to have a simple mind and I correlated dopamine hits with Parkinson’s disease...and I said , “social media dopamine hits protects people against possibility of Parkinson’s at a later age ..”, would I be right?

Would exposing seniors to social media dopamine hits or games or ‘brain rewards’ retard cognitive decline due to genetics+age?
One contributing factor to that statistic it that the phone lifecycle is a lot shorter than the desktop/laptop lifecycle. Also desktops and laptops are more likely to be shared between family members. The point is people still have access to and use traditional computers.
Ruby got started like that. Matz was a C programmer in the 80s, and just wrote a bunch of helper code that helped him write C more consistently, and eventually it just became Ruby.
See, you say that, but I've actually had the situation where my network was down and I had to wait 4 minutes before I could get it back up because of the stupid mouse design.

My wife works in a small, elementary school and I help with the computers from time to time. One day, their network was misbehaving and I needed to change some settings on their iMac "server". I quickly discovered that the mouse had lost it's charge over the 2 months that they didn't use it and I had to plug it in and wait for it to get a small charge. Well, first I had to find a USB <--> Lightning cable.

Anyway, the worst possible case is not that you go read something for a while; sometimes your network is down and you have to wait 10 minutes before you can fix it. Just because some designer thought it would be ugly to put a "tail" on a mouse.
Figure out roughly where the problem is (a number of ways of doing this), then send a boat out with a hook to grab the cable off the bottom of the ocean. Pull it up to the surface, fix it, and lower it back down.

Incredibly expensive operation, so you want to avoid this if at all possible...
Shocking evidence shows people in vegetative states may be conscious
the article talks about long review cycles which imo implies the managers were involved
Wer schreibt der bleibt
Is there any information about the performance when not looking for things like when a?a?a?aaa matches aaaaaa?
If these are all public patents, why haven't a couple dozen university labs taken a stab at building them or at least verifying the principles? This is something where I would expect even negative results to be newsworthy.

Anyway, it seems to me that the options have narrowed to human tech or psyops. Invoking aliens just doesn't help with any of the observations.
Geez man. This isn’t good. Not only do you have a code base that kept having to go back and forth for corrections; you also have another country that can do whatever it wants with that code. Steal it, sell it to the highest bidder, etc.
I'm not sure anything below Minix can be considered a UNIX kernel.
It doesn’t bode well for Boeing if this is the case though. Many reports show them trying to cut corners. Hiring $9/hour engineers can’t be good for them. Not saying these engineers aren’t good. But there’s a reason they are getting paid that low.
It's funded by Google completely according to TFA, and it's filed under "Infrastructure - Google Cloud Platform" - I'd hazard a guess that it's probably just for Google Cloud.

They might extend it for AMP sites, maybe..
The Era of Revolution in Digital Marketing
http://www.digitalblogue.com/the-era-of-revolution-in-digital-marketing/
I'm also a fan of early exits, for more reasons than in the post: an early return results in less nestings and less variables, it makes the code simpler. Consider:

Option<T> sink(int pos) {
if(pos>=this.length()){
return Nope;
}
// code that has depends on the bounds check
Some(value)
}

Versus:

Option<T> sink(int pos){
Option<T> ret = Nope
if(pos < this.length()) {
// same code
ret = Some(value)
}
return ret;
}

I argue that the second is more complex: an added variable, deeper nesting, useless return line.

When rewriting multiple guards you get more empty statements that reassign the default value of the return.

I do have the following opposite opinion too: guards should be simple: no loops, no complex control flow (name the loop). No side effects in guards. And no guards handled by the expected case, even for clarification.
> YMMV, but as far as I know that's more or less a solved problem by default (for X anyway) with DRI3.

https://wiki.archlinux.org/index.php/NVIDIA_Optimus

LOL. What a bunch of crap.
I think the resignation and apathy is just something that happens always with chain restaurants and scale. At a certain point consistency becomes the big priority and it becomes soulless as process dominates and it depressingly seems to work.
If you’re not interested in solutions then you’re wasting everyone’s time.
I don't think OneNote did much to Evernote. Evernote did itself.
It was news, 3 years ago.
They also had problems of updates causing boot loops which one time affected some of their own Surface Pro line. Some Windows 10 updates were delayed for months because they crashed computers and destroyed installations.

But it doesn't make the computer literally explode so nobody cares if some random users have to pay a repair shop to restore files and get it running again.
That's fine, and it's your prerogative, surely. However you must notice there is arbitrary antagonism throughout the thread to which I am responding, not intending to 'inflame' however much that may have been the case and I'm sorry for that.
This guy QAs :D
Bill wrote his letter 21 years before this definition materialized and it actually served to inspire the free software/open source concept altogether.

> There is a viable alternative to the problems raised by Bill Gates in his irate letter to computer hobbyists concerning "ripping off" software. When software is free, or so inexpensive that it's easier to pay for it than to duplicate it, then it won't be "stolen".

—Jim Warren, July 1976
Cheap outsourcing itself is kind of a problem in this case. The best Indian engineers just don't work in cheap outsourcing places, they work for proper companies with better salaries. You just get the worst developers who can't find any better by using these methods.
Gts – TypeScript style guide, formatter, and linter
What measures are taken to avoid this? I read somewhere that these cable are not actually buried into the ground, but rather lay on top of the ground. That sounds very risky to me?
So? The same script reports 11 lines on my 4 year old Haswell. It should read as "mitigated or not vulnerable" instead of simply "not vulnerable".

Edit: oh wait, it's actually 12 lines, the same as on your system. The reason it reported 11 on the first run is because KPTI has been disabled manually here.
Microsoft said that the classic WSL will be available alongside WSL2, so you'll be able to continue using WSL1 no problem if WSL2 will have issues