skysight-inc/HackerNews huggingface dataset:
I imagine that the process is very highly pipelined and optimized, and I would imagine that they had some sort of backup (generator) that failed.

One analogy is to think about if you had a batch script that you were working on that touches a lot of files (1000s). Now imagine power was cut and the batch script was interupted because the computer turned off, but that computer hasnt been turned off in a long time (say it was a server).

First, you have to turn the server back on after a power outage. Was there corrupted files in it? You have to now get that server in a known working state, and if you have kept it on for years....then you may be in a world of hurt.

NOw you got your server up and running. You have the option of going through each of the 1000s of files your script was working on....but that will take time. Does it make sense to start from scratch? You will have to through our all the files you were working on, but at least you can start that script again. You could attempt to salvage every file, but that will also take time too.
FP works very well in short simple examples. If the for loop would be any more complex the FP solution would probable be incomprehensible.
Optimizers however love small immutable and steteless functions so FP would likely be faster then the imperative version. For example by making it run parallel, caching, inlining, etc
Here's a first-hand review. I posted this as a reply a minute ago, then decided to make it a primary comment.

Wire has been my go-to communications app for 2-3 years now. Running it on a Google-free phone, it has gradually become more buggy, and less reliable over time, and sadly, still the best secure/encrypted app I could find.

Testing Jami. I tried Ring 8-10 months ago. Text worked, audio/video did not.

In the past few days, trying Jami, audio-only works very well - clear, crisp, no lag - much better than Wire. Video was a bit buggy, but still decent.

Connectivity was an issue, calls froze, or got cut off a couple times. Tentatively, it looked like switching from a local WiFi to phone ISP was at least part of the problem.

Also, using the same account across multiple devices is a bit buggy. Contacts established on one device are not available on the other.

All things considered, the basic quality of the connection is very good, better than Wire, maybe better than Skype. Reliability of the connection, and the various 2ndary features that people take for granted, still need work.
The utility of "lie detectors", which I personally imagine most law enforcement people understand, is as a tool of coercion and deception. It's not so much that they believe the devices actually function how they are claimed to, but that it gives the officers some 'legitimate' excuse to prosecute people based upon the intuition of the officer. It's not an accident that all of these systems require a human being to look at whatever readings are taken and "interpret" them. Any real system would include no such feature at all, because putting a human in the loop does nothing but invalidate whatever determination is made by opening up the inevitability of human error. At the end of the day, the verdict of a lie detector is nothing more than "the examiner has a gut hunch the person is lying/telling the truth" + a little bit of extra credibility in the eyes of the uneducated.
Here are why it’s absolutely better doing web development on Linux or any Unix
Tests are nice to have but there are not that many tests in the projects I work. Sometimes the code is not that critical, no lives and money at risk. Then I do not refactor the entire project but only 1 section and I refactor it because it is required, like I discover a function with 5 level of nesting and 500 lines of code, if I do not rush then refactoring should be simple and I can reduce the big function in a few smaller functions , reduce some big unclear code in something that is readable like a story.

I agree that someone handing you a project that you have no idea what it does, what the features are and going and randomly refactor is stupid.
Business Lessons from Computer Village in Lagos, Nigeria
This book is not "an old version". This book is K&R-class. Moreover, the "K" is from the same person in both cases.
Instant Messengers feel pretty much like this now: https://xkcd.com/927/

So, we got WhatsApp, FB Messenger, Threema, Signal, Telegram, Riot/Matrix, Jabber/XMPP, maybe Slack or even Skype and now Jami.

I'm _so_ looking forward to another messenger and trying to onboard users/friends to that, because _this_ now is the final solution to all our IM problems.
You've just completed GP's point perfectly though - 12 hours after noon (post meridian) is midnight too.
Not on LineageOS or any other ROM you have MicroG installed on.
Yeah maybe — it should really just be the entrepreneurial economy. I think one of the big challenges is that most people jumping into this type of work want the freedom of an entrepreneur and the "safety" of an employee. There seem to be services that offer full-time employee like benefits[1], but I'm not sure how effective they are.

As an entrepreneur, it is a "bring your own tools" type of system. When I did contract development, I had to bring my own laptop, my own software, and use that to produce and bill the client. I think the challenge in this new system is that the pricing dynamics aren't fluid. You know what, as I'm typing this I wonder if building a system that lets the entrepreneurs somehow control the prices will maybe help set an equilibrium.

[1] - https://www.trupo.com
Ah yes. That makes perfect sense.

I think there's a lot of public art in America that seems to lionise slave owners but I posted too soon.
>They have clearly found a “bug”...

This depends on your definition of "bug". I think, in the classical sense, a bug is something that you understand both the cause and the resultant undesired behaviour and, as of consequence, you can reproduce the chain of events.

Given that definition, I would be disinclined to agree with calling it a "bug".

However, I would also like to point out that we're getting so nuanced in terms that we're, quite literally, dropping the notion of lauding the attempts of the OP to go down the road of wanting to deduce the problem, themselves.
> My Personal preference is for tests to be a bit higher level (does login with a username containing null still cause an exception?).

These tests are great, but what if username has a bunch of validations on it?

For example, it's reasonable to think a username field might be validated with:

- Must be required

- Within 1-32 characters that match a certain pattern (let's say a regex to limit it to lowercase letters, numbers and -)

- Must not be a blacklisted word (admin, administrator, etc.)

- Must be unique (enforced with a database index)

Pretty standard stuff. Are you going to write 5 integration tests for this? 4 to test each validation and then the success case? These would be tests that exercise your entire web framework's routing stack from request to response (ie. the user visiting a /register URL and then submitting the form).

Personally I would not. I would write 1 unit test for each of those things (4 unhappy cases where I assert a specific validation error for each invalid input and 1 happy case where with valid input I expect 0 validation errors). In this case, the "unit" would likely be a `register_user` function that accepts params as input and either aborts with validation errors, or succeeds by writing the record to the DB.

Then, for an integration test I would have 2 tests. One to make sure with invalid input I end up with some type of error displayed in the HTML response (it doesn't matter which one), and another test with the success case to make sure things work when they should (such as the user is registered and a new record was created in the DB).

So I end up with a tiny bit of overlap in tests. Technically the unit test for the success case doesn't need to be there since the integration test covers it but I usually include it for the sake of completeness because it's usually like 4 lines of code to make that test but I'm not 100% opposed to someone saying it should be left out.
I'm just tickled by the number of layers of opposition in this title.

(“Pseudoscientist Attempts to Censor Anti-Lie Detector Website,” in case it gets changed later.)
The moment I saw the subject I thought of the same article. It is one of the all time great articles of 'early modern' era of the net.
They of course aren't very accurate, and really shouldn't be relied upon in anything more critical than daytime television.

But you can use techniques to attempt to make them more revealing. The first obvious one is to simply convince people they work, and then use them as a persuasion technique. "Look, do you want to just come clean here or are we going to have to bring out the polygraph?"

The second technique you can use is to ask a series of alternate fact questions and look for response. "Did the murder happen at five o'clock? Did it happen at six o'clock? Did it happen at eight o'clock?" Somebody who is doesn't know the answer isn't going to be any more nervous at any of those questions in particular, but someone who does is often going to have a nervous spike as, or just before, the correct question is asked.
Being a homeowner, hearing an "irritating mould problem" didn't make me think "resilient fungi could lead to new kinds of materials for use in space". It made me think that there are some serious health risks for those astronauts if that mould gets out of control.

Funny nobody mentions that.
Surprisingly, the article doesn't engage with this argument! Unless I missed it, the author never mentions that unit tests can make refactoring other code easier.

In my experience, after code is checked in, unit tests have two main purposes:

1. Checking that functions aren't completely broken in dynamically typed languages (i.e. a check so basic that a static type checker can do its job)
2. Allowing programmers to refactor code without being terrified it will break something far away in the execution path

And like, that's it. That's enough to make them useful to have around.
NPM makes it possible to release new minor/patch versions even for older majors. You just need to specify in your package.json that you want that specific major version (and not any newer, which is of course common best practice) and you'll get them.
I think it is more if they will encourage any use outside of the control of Google. Or if they, like with Android where they illegally obstructed companies from doing so, will even discourage it.
Seems extremely rude to criticise someone’s preferences like that?
You’re making my point for me. Since you believe so strongly in social engineering, there’s no need for backdooring crypto algorithms!

You have articulated clearly that you require your proposed system to have a backdoor for the authorities to use to read the traffic. That is the definition of broken by design.

Good day.
I know that NAND involves no exotic raw materials, so does that enable them to recycle any of the damaged/lost wafers? I don't know very much about the physical processing/preparation of the raw silicon and such that goes into making a wafer, could you simply grind up or perhaps chemically dissolve everything back to base components and re-create a fresh wafer?
Paving the Way for Personalised Medicine
False. It can just as well be a lazy iterator that returns data one by one from a stream.
No, you just test slightly different implementations of the same standard, that seem to interoperate until they don't, even among products from same vendor.
But it's the price for a company, not for a person.
They have mainly asked Apple to follow a standard, and not do their own similar-but-not-quite-the-same thing.
Related and a big reason for the existence of this new cable: https://www.skatelescope.org/

The Square Kilometre Array, on its initial phase, will have close to 200 dish radio telescopes and 130000 radio antennas working together in South Africa and Australia. The amount of data produced is predicted at 50% of all internet traffic (this was calculated 2 years ago, probably it changed a bit). A big part of that data will be distributed across the globe for science, being the main link originating in South Africa and ending up in Europe.

This will be the biggest scientific endeavor (by size) of mankind so far.

The Phase 2 of the SKA (for now just an idea), will increase the number of telescope dishes and antennas by a factor of 10.
> rather than trying to fit Linux applications in Windows, they're running in their own world and providing integrations into this world.

It is effectively their way to have an "integrated Linux virtual machine" inside of Windows. The WSL1 on Windows was relatively similar (but not enough for me) to Wine on Linux. The WSL2 is in some ways "more integrated" than the typical VM would be, but otherwise still similar to that.

Not enough: my greatest disappointment up to now is that the "VM-like" behavior was present even in WSL1, if I understood correctly, the files "inside" were more special than the files inside Cygwin folders would be.

Another disappointment was: it was not easy to install WSL on previous Windows 10 versions. Specifically, it was "in app store" but you weren't supposed to "click to install" -- it resulted in something weird. There were recipes what to do from the command line with hoops to take care of, so at the end... I've installed Cygwin, which I knew will work. Does anybody know, did WSL get better now?

(Edit: in the last sentence: s/ it / WSL /)
Well one could say that it would be a matter of time before someone discovered the Element 115 - what's curious is that he seems pretty confident when he says that, when we will have a stable version of the element (if ever), it will have the same properties he claims it has.
How have you built a Google-free (and presumably Apple-free) phone?
I guess we do, as I've said elsewhere, it has literally been years since I've encountered anything I couldn't do on Linux just the same as on Windows. I firmly believe the reason more organisations haven't changed is inertia. To paraphrase a cliché, no one was ever fired for choosing Microsoft.
I find this scary. Because: Say this technology isn't that hard, say that we are actually technologically capable of making this a reality? Of making a craft that can basically separate itself off from the rest of the universe and flit off to wherever it wants with impunity? That means that there are very likely many many other alien species out there who have similar capability. And those species don't actually have to be that smart or advanced, they could be just as violent and messed up as we are. And they could be zipping in and out of our atmosphere all the time.

I guess this is the first time I've considered that this whole UFO/alien thing might be real.

God, this might be why they all look the same - the underlying technology requires the same basic external shape... but the craft could be from different civilisations.
iirc php is the only (popular) language with messed up ternary-if associativity, it works as you'd expect pretty much everywhere else
Ask HN: How do you manage cross team conflicts?
Which improves culture, resolves conflicts, improves healthy discussions and agreements on right things avoiding ego problem.
If it would be 2013 the "hacky" way would be acceptable, but JSX is a de-facto standard that is supported by all tools used in production (incl. TypeScript, Babel, your favorite colorizer, language server extensions, ...).

Imho the proposed way sacrifices readability a lot (what does "with" do? is it like the infamous JS with? what is the first, second, third, ... argument?).
I am somewhat confused here, I primarily do C# so I am used to IEnumerable and Linq for doing this kind of stuff and you would just do .Where().Select().Average() without worrying about intermediate memory usage. In C# you do this stuff with millions of results from a database (although you would do in the db if you can, but might be a flat file too).

Linq with IEnumerable doesn't necessarily create intermediate list (js arrays) in memory unless it has to like say .OrderBy()

So I basically assumed js was the same since it has generators but its seems map and filter etc don't support them yet?:

https://dev.to/nestedsoftware/lazy-evaluation-in-javascript-...

So then you get a solution like this that looks to me very confusing vs a fluent style.

Please tell me I am missing something
The whole concept of equity at law is contrary to what you described. In legal systems descended from English tradition, fairness trumps codified or common law.
Considering the majority of work computing is done on desktops I'm not sure it will be replaced by iOS or Android any time soon.
When I saw this example I knew that this isn't for me. Super verbose and the arguments in favor of OOP are shallow at best.
In one of Cory Doctorow's books, the trick to cheat a lie detector is said to be to clench and unclench the anus repeatedly for several minutes (in advance before the test). Purportedly, this agitates the nervous system so the measurements hike up, and on this background your legitimate discomposure will look like smooth sailing. The anus is probably chosen just for the inconspicuousness.

Dunno how true this is and haven't heard of this trick elsewhere, though admittedly I haven't researched the topic. Other techniques in the ‘Little Brother’ books are real, apart from two or three that are doubtful to me.
This is an SDL bug (wontfix IIRC)
I found that 6yrs ago, after running some emulators (build with SDL library),

What I did was to disable the US keyboard from the registry:

HKEY_LOCAL_MACHINE
SYSTEM
ControlSet001
Control
Keyboard Layouts
00000409

Then remove Layout File : KBDUS.DLL
remove Layout display: @%SystemRoot%system32input.dll,-5000
Semiconductor manufacturing involves a lot of precisely controlled processes. You put the wafers into furnaces and pass a gas over them for X time and Y flow rate at Z temperature to impregnate the wafer with various chemicals. You put them in low pressure plasma environments to etch them, again for X time at Y flow rate. There are half a dozen more of these as well, like applying metal and implanting ions.

These values are experimentally tightened to get the highest possible accuracy to the desired effect and improve the number of working chips that leave the factory. If the power cuts out you don't know what conditions the wafer experienced while the system was winding down completely uncontrolled and your processes haven't been designed for the wafer going through the ramp up twice.

The reason why it's lost so much output is because modern semiconductor processes have hundreds of steps and (I believe) a lead time in the months, so the amount of material that's in flight at any one instant has to be huge to get any reasonable throughput.
First, I need to say I was a multi-unit Subway franchisee for 33 years until late last year.

When Subway field agents inspected our stores, we would be marked up "out of compliance" but that statement sounds more serious than it actually is. Yes, you could technically lose your franchise for a handprint on the glass but, unless it was a constant problem, agents would only point it out with a remark on the form of "need to pay more attention to the glass".

I need to call out the article treating the slicing thickness of cucumbers being a minor problem. It's not. It's sloppiness that should never happen but yes it happens to the best of us.

We had a problem with one older store where some of the ceramic tile was breaking and coming loose. It took a while to get to it--like months--because we were shorthanded, extremely busy, and the tile was a type that was difficult to find. While our field rep would constantly get on us about it, because it was in the customer area, he was also understanding of our issues.

Something to point out. You needed to be written up on compliance issues three times before you could get into trouble. We were inspected monthly so you had three months to fix issues.

I never felt threatened about losing our franchise. I always felt respect from our DA. Most of the groaning I would hear at meetings was more from newer owners than "original owners" as we older franchisees sometimes called ourselves.

Other groaning came from other areas not mentioned in the article. One was about marketing that didn't work including pricing of advertised deals. The other is the remodeling of older restaurants which would cost around the $200,000 level. If you owned 10 restaurants, that's a $2 million investment that someone of my age would never recover.

Fred DeLuca was stuck in his ways and wouldn't change with the times. His sister, when she took over, was more amenable to change but didn't have the respect from higher ups in the system. That she "retired" is not the right word.

The problems for most of us was marketing not competing well with the new competition causing sales to falter over the last several years. I sold out for that reason and because I didn't want to spend the money on remodeling.

So the problems with this one development agent (DA) in California is something I never heard of before so it really is an anomaly to me, at least.
Yes. It's OAuth2 with some additional formalism/standardization.
Proteins, made from carbon, oxygen, hydrogen and nitrogen, all found in air + water. Some proteins also need sulfur. This is from a cursory glance at Wikipedia.
While I agree that this is hard to implement with a type system, I never want to see this implemented as a unit test.

What you describe is a real use case that I personally want to have tested on a real system with all the stuff in place (but test database instead of the real one). It has nothing to do with one unit you can test on its own.

And the crucial problem here is that you tie your testing code on the inner workings of transferFunds, when you are mocking stuff.

> and verify that the warning is triggered when the value being transferred is over 95% of the amount in the account.

Please also note that you cannot verify this property using testing. You can only verify that this works for one particular set of values (or a big but finite set of values). Testing never can verify that something always works. That's the wrong tool for this job.
Especially given the other comment here about using strings for handlers in views, which seems crazy TBH
... and getting rid of MagSafe and their “walled garden” and the 30% they take.
Lie detectors are a measure of heart rate, respiration, and galvanic skin response (roughly == how much you sweat).

What relationship—if any—those have to the truthfulness of a person at any given moment, remains debatable at best.
Without the magnetic field, a thick atmosphere on Mars will still persist for tens of thousands of years.
0 dependancy project! That is a worthy goal. Think all projects should have a live counter of how many dependencies they have and highlight the highest risk ones
I think that is entirely up to Toshiba/WD. The profit margin on NAND is so astronomical and the price charged for it is so completely decoupled from the cost of production (which is as close to nothing as anything gets) that they could afford to just absorb the 'loss', but it might mess with their projected schedules of how much they had expected to make, so I could see them jacking up the price to compensate. The market and society in general seems to be content with permitting the NAND manufacturers price-fixing even when it's become absurd (do a tally of the raw materials and processes involved in producing 1TB of modern mechanical hard drive storage compared to a dumb regular parallel array of 1TB of NAND gates... it's ludicrous) so they've got whatever flexibility they feel like using.
You're holding it wrong way
I’m sure they were aware but admitting to that would have legal consequences.
Yup, tried setting a 'return' variable. It's less than elegant of course, and there are potential concurrency issues.

Lists can't contain lists, nor can they be passed as inputs to blocks, unless you encode them as text or numbers.