skysight-inc/HackerNews huggingface dataset:
LOL - yeah what about China? If they were making commercial aircraft they might be doing the same thing!
Iirc, even the Win32 APIs sit above the subsystem layer. There was the OS/2 subsystem back in the day, Win32, and one more I can’t remember from my training 11 years ago.
>Any hack reported by the western media immediately gets linked to the government, no matter how thin the evidence is.

The October hack of Facebook[1] didn't seem to be blamed on any government by the media. It seems to me like a fairly sophisticated attack that could have been done by a government.

And the western media blames some hacks on the US government and its allies as well[2][3].

> Chinese people can be smart and motivated by greed too

How do they plan to make money by hacking NASA and the US military's shipbuilder? They're not installing ransomware asking for bitcoin payment. If they want to hack for money, I would think they would target credit cards, or banks, or better yet: cryptocurrency exchanges. Or maybe popular websites whose databases they can use for credential stuffing. One way to make money by hacking NASA is to be paid by the Chinese government.

[1] https://www.nytimes.com/2018/10/12/technology/facebook-hack-...

[2] https://www.reuters.com/article/us-usa-cyber-yandex-exclusiv...

[3] https://www.nytimes.com/2010/09/30/world/middleeast/30worm.h...
NASA’s Restored Apollo Mission Control
Ask HN: The best way to sync two MacBook Pros completely
I’m planning to buy another MacBook Pro so that I don’t have to carry it around. What’s the best way to completely sync between the two?
There is a missing piece in the Julia subsystem - first class support for GNN (Graph Neural Networks). So if someone wants to help - he can take an issue[1] at the GitHub repository of FluxML[2].

[1] https://github.com/FluxML/Flux.jl/issues/625

[2] https://fluxml.ai/
Visvakantie in Nederland
because something something mutable state
History remembers the winners - so even though I actually agree with what you're saying about US government economic warfare, the end result was the Venezuelan government turned to shit. It's become oppressive, their policies have failed and now their society is crumbling and people are suffering.

If Venezuela's form of socialism was working so well, then it should have sustained itself no matter what the US did. Instead it was supported by oil money, and as soon as the oil dollars were cut off it collapsed because there was nothing revolutionary or innovative about it. I'll be voting for Andrew Yang this primary because I like the idea of UBI and a social safety net and how he's planning to implement his policies. I think that form of 21st century socialism might work - the form that Venezuela chose just led to cronyism and oppression.
Logic may not be sound. A factory owner invests in lowering costs. It doesn't mean that costs aren't already low.

China is investing in increased stability. US assumes they are very stable and thus takes on a lot of destabilizing actions.

So a lot of people deduce that China will be more stable than USA in N years.
In the early 2000s, I spent quite some time learning with the tutorials on IBM developer site. Many of them are well-written and easy to read compared with blog posts. And they paid the authors.
> BSD lost for not being popular

People used to say that BSD lost because of the ambiguous copyright status of the early 90s, allowing Linux to glide in unopposed as the "free unix-like os for PCs".

https://en.wikipedia.org/wiki/UNIX_System_Laboratories,_Inc.....

https://en.wikipedia.org/wiki/Berkeley_Software_Distribution...
One of the things I dislike the most about unit tests is how it's used for "quality theater". Some examples:

- Trying to use coverage percentage metric as a sign of quality. As if a simple percentage means anything about the quality of the tests. It's as useless as using lines of code as a way to measure progress.

- Not recognizing that useless unit tests are harmful for the code maintenance. It makes refactoring code into better structure difficult and developers just give up because it's too much work to fix the tests that weren't even providing any value in the first place. This ignorance is expressed in statements like how there's a testing "pyramid" with unit tests at the bottom and end to end tests at the top. Which is a nice sounding soundbite and image, but is useless. Forget pyramids, just write tests where it makes sense.

- Code review comments that try to look smart with "where's the unit test?" Then the developer doesn't want a long drawn out fight about how a unit test would be useless here since there's a huge crowd just cargo cult yelling "code coverage!" "unit tests are good!" "pyramid!" So the developer just writes the stupid test to get the code merged. This is also an example of how harmful code reviews can sometimes be, when there's a popular stupid idea, code reviews perpetuate it because the developers who know better just get tired of fighting the same fight over and over again.

I really hate useless unit tests. I've seen tests that setup a mock, configure it to return a value when called, call the code using the mock, then check the returned value is the mocked value. This tested absolutely nothing! I've seen unit tests that verify every line of the method was called, completely pointless. The point is supposed to be to verify that for a given input, it has a given output, not lock it into a specific implementation by verifying every line of code ran a certain way.

There is an idea for structuring software "functional core, imperative shell". Write the software this way and the natural place for unit tests and integration tests becomes obvious. But nope, the industry is all about unit test coverage percentage, stupid pyramids, looking good in code reviews. It's all quality theater, not actual focus on quality.
There's no need for type inference, nor repeating the type, especially if you're designing a new language anyway.

Why not:

String string = new ();
Thank you. Are you joining as well? Would love to learn about your startup :)
I used to do about 2-5 hours a day of freelancing on the train or on an Uber. Ironically I probably worked more part time than full time.

My spouse took care of the children during the longer periods. It helps to share some of the income. An envelope full of cash makes for a better gift than flowers.
Inside the race to (finally) bring pinball into the internet era
I'm not sure it counts as non-tech, but I like reading design patterns for drama, also known as tropes. And then I try to reassemble them in different ways, like a puzzle.
Looks very similar to mithril... with triple the size and no users
The WSL team knows about this issue and I think they hope to fix it before it ships in Windows stable.
So how do the drivers work? Is Microsoft implementing and integrating cross platform drivers? Have they somehow made Linux a microkernel that uses windows drivers through a shim?
You can generally sue for anything you feel like.

However if the press demonstrates that they followed reasonable journalistic practices and weren’t blatantly lying, they’d be fine.
Not a domain expert, but curious if one would comment. This was only trained on 10,000 images and was supposedly not bad at its function. Would it be fair to say “the horse is out of the barn” and copycats are going to crop up trained on far more images to improve accuracy?
As someone who's been freelancing over 5 years, this is pretty close. The usual story is "someone asked me to do it and I asked for money and people kept giving more money."
Yep, this is currently confirmed broken on Windows 10 1903 (Windows Hypervisor Platform extended user-mode APIs). Affects VirtualBox, qemu, etc. We may see a patch, but it's up in the air right now. (<closes eyes and sighs>, I know.)
You're absolutely right that "100% right" is an unreasonable standard. I submit that knowing that there are places on the planet where, at times, the sun doesn't set, however, is a reasonable thing to expect of someone who's made it far enough in life to be writing code (or testing it! How did this pass QA?) for Apple.

f.lux gets it right if I set my zip to Barrow, AK. Why can't Apple, with how many orders of magnitude more resources at their disposal — including knowledge?
Would anyone consider that the corebrightnessd process at 117% cpu is expected/desired behaviour?
I did! Elisp is a better language :).

Microsoft does understand interoperability; Office suite integrates well together and applications respect power users. I like them for that.
Is this true? If it is I think it should be an optional step. Can someone else confirm this since I didn't start the application process step.

Edit : I just went through the signup process with this account and I did not come across the personal video requirement. Where did you come across it?

Startup school mods : can you please delete my startup school application, I was testing out the signup flow. Sorry for the trouble.
Have you considered using DNA testing to track down your father or related family of theirs? I’m not suggesting it, but just trying to understand the feelings that go along with possibly having the ability to have unanswered questions answered.
GTFO, Boeing shill!
After 15 years of writing unit tests, I haven't reached the same conclusion as the author.

What I've found in my time is that unit testing can be good, but like anything it's not a panacea. It requires discipline, and like normal code, it has code smells.

Black box unit tests are the most likely to be good tests, and white box unit tests are the most likely to be bad tests. The more you depend on the inner workings of a function in order to test it, the more likely it is that you are coupling your test to the implementation rather than the purpose of the unit being tested. Once you tie to the implementation, refactoring becomes a LOT harder, because changes will break the tests even if they don't break the functionality.

Mocks are also a major source of trouble, and more likely to be a code smell. If your tests are using a mock to test how many times your unit called it, either your tests are bad or your architecture is wrong.

There are three main kinds of code:

- Code that fetches data

- Code that stores data

- Code that transforms data

Mocks are necessary when you mix these. If you have a function that opens a DB connection, fetches data, transforms the data, and then stores the data, you now have an extra problem to deal with (the database), when all you wanted to do was test the transformation. Things would be far easier if you separated the transformation out, tested that in isolation, and then integrated that encapsulated functionality with fetching/storing code. This also improves separation of concerns and code duplication, since now your fetching/storing code can be generalized and also tested in isolation.

Actually I lie. There is a fourth kind of code: code that modifies state. This is the evilest, smelliest code around, and it's also something that unfortunately we can't get completely away from. But we can manage it, by isolating state, reducing the need for or scope of the state, and providing "configuration object" function entry points to make testing these monstrosities less nasty.

Code coverage is not just a measure of quality, but also of waste. If your code is not being called, then one of three things is happening:

1. It's error checking code for another API it's calling, which you normally shouldn't be writing tests for (unless that API is known to be buggy and you need to guard against it).

2. It's not contributing to the goals of the program, and can be taken out.

3. It does contribute to the goals of the program, in which case you need a test for it.

You can't reach 100% code coverage because of (1). But you absolutely should check WHICH code is covered in your tests because of (2) and (3). Anything higher than 80% coverage is pure luck, and tells you nothing about quality or wastage. In many cases, even 60-70% is sufficient.
Yeah, same opinion. Shame they're shit, they were a consistently OK option for roadtrips that wouldn't upset stomachs, but this is pathetic. I guess I'm not surprised that no real consequences have come of it, but wow Subway should be dissolved. This is rot all the way through the organization.
I personally recommend the first-generation Google Pixel XL (marlin), which costs under $100 used on eBay.

https://en.wikipedia.org/wiki/Pixel_(smartphone)

With MicroG, Google Camera works as it does on stock Android. Most phones on LineageOS aren't able to use their stock camera app, which results in reduced camera quality compared to stock Android. The Pixel/Nexus line, ironically, is the main exception.

Google Camera isn't available on F-Droid or Yalp/Aurora Store, but you can download it from APKMirror:

https://www.apkmirror.com/apk/google-inc/camera

(APKMirror is operated by Android Police, so it's a trusted site.)
Money won over principles after all.
This is passive cooling for solar panels, basically. The title says its for cooling buildings but in reality they created a solar panel* with a cool bottom. It seems like they could thermally couple the two if they wanted.

*The solar panel was not able to produce electricity.
Danielle Steel has a net worth of over $300 million, and still has "the fire to write", so that point may be very high for some people.
Across the Atlantic?
I'd like to push back a bit on the 'hobby' terminology. It seems to rest, or at least lends fuel to, an assumption that work is of primary value. That may be true for some, and probably more in a field like tech than many, but it's not universal, and certainly not structural.

In my case many of the things I do (reading, sailing, running, political activism, meditating, etc etc) are each far more important to me than work, which is just a (somewhat reluctantly engaged in) physical necessity. It handles the bottom level of Maslow's hierarchy. The upper levels are more than hobbys!

I realise you probably just grabbed word out of the lexicon without necessarily meaning as much by it as I'm making out. Still, I dislike the word.
I just can't get over how dumb this is in Java:

List<String> names = new List<String>();

Why not let people write just:

List<String> names = new List();

Why did they even need to invent the diamond operator?
As the OP, I'm giving this one an upvote. I am far from an engineer, so the most I can come up with a hypothesis. I need a real engineer to do the real debugging.
This tells how to stop it from happening.

But my problem was that I needed it to happen (e.g. if using msvcrt) and having no way to do so for DLLs “manually” loaded from memory.
On Reddit, they had a benchmark for WSL1 vs WSL2 and it showed that the Single core perf of WSL2 was sometimes better than Windows (and even bare metal linux - how that happened I am not sure). The multi-core was not as good, but still better than WSL1.

I can't find that exact thread right now, but here's another one comparing WSL with Windows:

https://www.reddit.com/r/bashonubuntuonwindows/comments/c1r6...
That's when you had to apply to Startup School for limited spots. Now it's open to everyone for free, which means we don't require the intro video to just register/signup for the class.
Interesting. Both of my problems were hardware related (usb port and a power adapter), but I wouldn’t consider myself a “hardcore” gamer, I bought my Razer Blade to play a specific game (The Dishonored trilogy) at the time because I travelled quite often for work and had the disposable funds for it.

Maybe I got extremely lucky with my build, who knows.

Sucks to hear other people are having such a frustrating go at things. Price aside I’ve had a pleasant experience with Razer.
Startup School is now open to all. Taking spot doesn't take away from anyone else now.
As long as you like your userspace software 3-5yrs out of date.
Agile is not an excuse to start without a plan
We have a video conf system we offer on Startup School website, but teams are welcome to organize something else if they can all agree.
shoot me an email if you wanna chat: (dedacted since we have chatted) :)
Interesting twist. I am a high functioning addict in a top tier company who has dabbled in the more extreme drugs in the past two years. I am alone. All family is deceased. I can't seek help via EAP because I will be judged and labeled. What do I do?
They can claim whatever they want. But they have no proof, and there has been plenty of counter evidence.
Honestly this could be true, however I dont think musk would risk most of his wealth on non-viable tech. The dude does a lot of really dumb stuff with his money, but in terms of investments and new products, his largest tech investments have a remarkable track record.
You make a good argument for UBI.
You have got it the other way around. TCS etc don't have that much power over Indian military contracts. Instead Boeing had to comply and open an Indian development center to win those contracts.

I talked to couple of people at the Indian center and they tell me because the center was created due a compulsion and not strategy the quality of work is terrible. Most of them are paid well but have no work to do.
Seriously, how the fuck do you even tell that story without resolving the mystery of the quality of the revised sandwich?

Subway tastes like
resignation and apathy.

One can only adjourn with the assumption that the alteration had zero effect or less, because it's unremarkable and forgotten, which would detract from the parable about burnout, because holy shit.

mundane things can
surprise you

I guess that means hoagie chef's ardent recommendation. The story leaves us to imagine the chef (age, appearance, demeanor) on our own.

Fuck dumping your soul into human hamster wheels.
The math pirate!
There are theorems like that for polynomials and fourier series and all sorts of other function classes too. They are just as practically relevant (or irrelevant).
> I think the first lesson I applied from it was using pinning tests for safer refactoring.

Thanks for the book recommendation. Funny to realize I have done this in the past without prior knowledge; it just made sense.
> At this point, there isn't much value for Microsoft to hang on to the legacy of Windows

I would say this move by Microsoft is the exact opposite, because it maintains Windows at the centre of the picture.

Microsoft is basically saying, look you can have all your Linux goodness and best of all you can access all that goodness using your current Windows desktop.

Using WSL2 the between Windows/Linux are very blurred.
The Palouse is really beautiful, but honestly I felt like I'd kind of grown past Pullman by the time I finished high school - you can only go bowling at Zeppoz so many times :)
> At every step of the way, the underlying development emphasises security, performance and debugability guided by a principle of least surprise in terms of API design.

I'm very happy they started that list with security, which links to a nice security overview:

https://github.com/letoram/arcan/wiki/Engine-Security

One of the things no one mentions is how awful security is on X.
Close, but this is still but a shadow.

The kind of UIs I think about have text commands and GUI commands being essentially the same; your clicking issues commands, but you can also start typing and then use mouse to select GUI elements as arguments - because things drawn on screen are first-class objects, not just their rendering.

Think e.g. of typing "ls" (or pressing a button) to be shown directory listing, on which now you can click, drag&drop, etc. You start typing "rm", and now all entries can be clicked to add as arguments. Or, you start typing "find -mtime" and now you can click on any of the visible timestamps, etc.
When I had a support engineering job it was pretty magical. Super easy to store notes and kept a lot of my life and browsing curated and organized. I took pictures of whiteboards and stored them. But like many others here the app became bloated because of the volume of notes I had. Add to that the premium features that didn't seem like they were worth the expense and I just stopped using it over time. I just write stuff in markdown now, or lastpass if I need a secure note.
What Jony Ive's Departure Means for Apple
What do you mean by behavior-focused testing style?
The problem is that sophisticated type systems only catch a subset of the bugs that a unit test can catch. For example, let's say I'm adding the ability to transfer funds from one account to the other in a banking application. I want to display a warning when the amount of money being transferred is over a certain percentage (let's say 95%) of the funds in the account. That's pretty easy to do in a unit test: create mock account, call the transferFunds() method, and verify that the warning is triggered when the value being transferred is over 95% of the amount in the account.

How would I do that with a type system?
That would be true if you can find a frame of reference in which the photon's velocity is 0 (its rest frame -- a pre-requisite for associating that frame of reference with the photon in the first place). But special relativity does not allow photon velocity to be zero in any frame of reference, so there is no frame of reference associated with a photon.
Boeing's 737 Max Software Outsourced to $9-an-Hour Engineers
Intel did (probably forced by recent at the time $1B Qualcomm penalty in China) the very same thing with Atom IP, twice!

https://www.anandtech.com/show/8061/this-is-huge-intel-enter...

http://linuxgizmos.com/intel-invests-1-5-billion-in-chinese-...

Not only Intel gave away its CPU IP, it also "invested" $1.5B in Tsinghua Unigroup. Whats more last year they shared 5G modem IP with Unisoc, part of Tsinghua Unigroup holding.
I was hoping that he'd cover the different kinds of time, and where each kind is used in a program, but nobody seems to think about it:

* Absolute Time: A time value fixed to UTC.

* Fixed Time: A time value fixed to a specific time zone.

* Floating Time: A time value that is interpreted according to the time zone of the observer.

https://technicalsourcery.net/posts/time/
Ancient Roots of BNF
This looks like a poor copy-paste (plagiarism) of the article at https://thriveglobal.com/stories/4-powerful-methods-to-stop-...

Someone ran a thesaurus to attempt to hide it — compare the original:

> Perfectionism—defined as “as a combination of excessively high personal standards and overly critical self-evaluations”—is officially on the rise. Our growing perfectionistic tendencies have also been identified as a key driver of depression and anxiety in millennials.

with this one:

> Compulsiveness—characterized "as a mix of unreasonably high close to home gauges and excessively basic self-assessments"— is authoritatively on the ascent. Our developing stickler propensities have likewise been distinguished as a key driver of despondency and tension in twenty to thirty-year-olds.

and so on, throughout the article. It's quite meaningless, e.g. what is in the original article introduced by the acronym “STOP” (Stop, Take a breath, Observe, Proceed) becomes in this one “Stop, slowly inhale, Watch, Continue”.

Curious why/how this was submitted? And maybe the link here should be to the original article?
Subway dude was probably told he had to meet his spinach quota or lose his job.
They offer ways to export your media via the Google Photos API, but you only get the "high quality compressed" version (even if you are storing in original quality) and it strips the location data out of the EXIF tags.

Unless I'm missing something, it looks like the only way to do a full quality bulk export now is using Takeout.
They are Windows processes, just as the Win32 subsystem also spawns Windows processes.
If one could improve on this process, it seems like a huge opportunity.

I have one person in our Mumbai office out of a 8 person team I manage. He had been absolutely fantastic with the work he does.