skysight-inc/HackerNews huggingface dataset:
The DX7 had one slider. If it had had knobs, it would have been much bigger and much more expensive.

And it wouldn't have been much easier to program, because it used a novel form of sound generation which most people still find hopelessly unintuitive.

A Germany company made a programming box for the DX7 with one-knob-per-feature. It was very expensive and sold very badly, even among professionals who could easily afford one - which suggests that the market for programmability really wasn't there, even with knobs.

People don't care about knobs. What they care about is simplicity. Synths like the Microbrute require virtually no mental effort. The sound design model is so simple virtually anyone of average intelligence can learn it in an afternoon. Within a few days they'll know most of what there is to know - which is how to make the same few stock sounds that analog synthesizers have been making since the 1970s.

This is fine for beginners but experts find it very limiting. Brian Eno loves his DX7, and the fact that you can set up the envelopes to make quasi-generative noises is a big part of the appeal. Most people don't get that far with it, but those that do aren't going to be happy with the very obvious limitations of a Microbrute.

Touch screens in cars are more complex. Having a map in a car is a useful thing, and there's no muscle memory. It's hard to see how you can replace drag/touch to set a destination with buttons that are less annoying and more intuitive.

But IME the big problem with touch screens is that they don't work. The screen in my car is resistive, so I have to keep poking at it to get a touch to register. The hybrid design - two rows of soft buttons, one knob, one screen - would be fine if the touch part actually worked.
> A minute of arc on the planet Earth is 1 nautical mile.

Only if that minute of arc lies on a great circle route.

As an interesting addendum, when measuring distance made good on a nautical chart, you will use a divider to measure the straight line distance, then lay this onto the latitude scale to convert it to nautical miles.

If you were to use the longitude scale, you would be off by approximately the cosine of your latitude, because the lines of latitude() (apart from the equator) are not great circles.

() corrected longitude to latitude here - longitude is obviously great circles, latitude apart from the equator are not.
I was checking out Spring recently. The hello-world sample turned me off at once [1]. It's so much more clunky than something equivalent in Python/Go/what have you.

[1]: https://spring.io/guides/gs/rest-service/
that's the point that the writer made - Spike can work with anyone (unlike other apps like Slack, Teams, Skype, etc.) Spike works with your regular email, like Gsuite and turns your emails into a chat conversation. The other person doesn't know you're using Spike - they see a regular email. You can even create a channel and message with people not on Spike. That's pretty cool stuff IMO
Not the guy that you were asking but Trivial example:

public static void assertIsSuperset(Collection<Object> superSet, Collection<Object> actualSet) {
final List<Object> missing;
missing = actualSet.stream().filter(x -> !superSet.contains(x)).collect(Collectors.toList());
if (missing.size() != 0) {
/* Imagine some more verbose exception creation here, which is why we caught it in a list*/
}
}

The lambda is in the creation of 'missing':

filter(x -> !superSet.contains(x))

A lot collections in Java 8 brought in a stream method which has some functional esqe methods. Filter is one of them, and if you look at filter's method signature:

public interface Stream<T> extends BaseStream<T, Stream<T>> {

/**
* Returns a stream consisting of the elements of this stream that match
* the given predicate.
*
* <p>This is an <a href="package-summary.html#StreamOps">intermediate
* operation</a>.
*
* @param predicate a <a href="package-summary.html#NonInterference">non-interfering</a>,
* <a href="package-summary.html#Statelessness">stateless</a>
* predicate to apply to each element to determine if it
* should be included
* @return the new stream
*/
Stream<T> filter(Predicate<? super T> predicate);
[SNIP!]
}

Predicate is an interface that has one method: 'public boolean test(T t);'. The lambda that I created conforms to that single method; accepting the generic object (x) and returning the boolean tested by '!superSet.contain(x)' The other way I've seen them used is to implement an anonymous version of an interface.
VSCode Clojure Linter Support
Yes it had! Thanks.
Right? If you could just do a national sampling as part of routine autopsies or something it would give so much valuable data. Sadly there is a lot of politics and money even in scientific research now. I would really value this data, I don't know who would fund it though if not the government, likely not Nestle or a corporation with great sales of bottled water.
Also please see my reply earlier in thread Smithsonian article shakes head in sadness said mm for particulate size when it should be 1000x smaller.
From a consumer perspective as someone driving the new released Mazda 3 2019 (the one in the article) and previously owning a VW Tiguan with touchscreen in the center, I can say I am super happy with that decision, both from a practical standpoint (cleaning/wiping, yuck ...) and from a functional standpoint: It's just so much easier and less distracting to use the center dial. It takes a bit longer in some cases (navigating Android Auto for example) but it's worth it. And most things can be handled by 'OK Google' these days anyways.
> Classical music and popular music serve entirely different purposes and have diametrically opposed motivations behind their creation. In general, a classical composer uses music to express his deepest emotions and experiences. Classical music arouses the intellect and the passions. It addresses the deepest questions of human existence. Classical music is sophisticated and intelligent.

Please. The difference between classical and popular music is primarily the funding model
You drive car with pedals and steering wheel. Everything else that is ternary (music, climate, nav) is on touch screen.

So yes, you can have cabin light and temperature controls on touchscreen on an airplane.
[Research] Crowd vs. Managed Team: A Study on Quality Data Processing at Scale
Malt project – Taking back control using open software
I would understand if it was a full GNSS outage, must most "GPS" equipment nowadays is multi-constellation, using as much as four (GPS, Galileo, Glonass, BeiDou). The loss of one constellation should go undetected by most end users.
For those who aren't C/C++ programmers, the issue here is people using ^ to mean power where it means XOR in C/C++.
He said capitalism, not free-market capitalism.

They are not the same thing.
You're right. Java is a decent language with a decent type system (bar the lack of null safety and some other quirks). It's all the annotations and reflection and XML and magic that creates most of the pain, and that's the fault of the library and framework developers, not Java itself.
Even if it meant power, it would make sense to warn here, because storing 2^16 in an unsigned short yields 0 :-)
To us, 2 centuries after slavery went extinct in the civilized world, the idea seems incredibly cruel, although it was practiced in various forms throughout human history in most civilizations with little regard to its victims.

We must ask ourselves, are there any other malevolent deeds inflicted humans to other humans or living creatures that we overlook?
The most obvious answer to this is the treatment of animals in the meat and dairy industries. Those creatures can't and will never be able to voice their suffering. It seems to me that in 2 centuries from now, people will talk about this issue with the same contempt we talk about slavery today.
The article talks about decriminalization, not legalization.

Decriminalization means that you are still not allowed to sell the product in a legitimate business. If you get caught with it, instead of going in front of a judge - possibly getting a criminal record and jail time - you will get a fine and no record. This lowers the priority for the police and prosecutor to track you down.

I think the US should really start thinking about decriminalizing the use of all drugs. It's crazy to destroy live for use of psychoactive substances. But legalization is a whole other story, the opioid crisis would look pale in comparison to the aftermath of selling high quality MDMA/Cocaine/Heroin with a doctors note.
Sure. Here's a fretless bass with a Gizmotron: https://www.youtube.com/watch?v=UBCvI-do0KA Even better, here's a pedal steel guitar with a Gizmotron ... and Robert Randolph: https://www.youtube.com/watch?v=i-CODgpHuPY .
Blind users already have their favourite screen readers. There is almost zero need for custom audio summary or alike features. Those are feature from sighted people for sighted people. But they have almost zero relevance to people relying on accessibility.
I've not yet worked on anything more recent than 8 but ...

I have a Map of Lists of Foo items (foos), and I want to transform each item in the sublists to a Bar, filter out bad Bars, transform to Baz and keep the results as a new list of Bazs

List<Baz> barList = foos.values()
.stream()
.flatMap(List::stream)
.map(Foo::transformToBar)
.filter(Bar::isBad)
.map(Baz::transformToBaz)
.collect(Collectors.toList());

The syntax is a little clunky at times... but once you get used to it it's quite expressive.
Ask HN: How do you open source a SaaS with payment handling?
Hey all,

I'm building a web analytics tool that a few people are paying for at https://plausible.io. I claim to offer better privacy than Google Analytics, but I'd like to prove that statement by open sourcing the code behind it.

My only reservation at the moment is that the codebase includes the payment integration with Paddle (similar to Stripe). Are there any concerns with open-sourcing this code along with the main analytics code? If so, how could I separate these two concerns in code so I can open-source one while keeping the other closed?

Thanks in advance,
Uku
> Is whether or not you play the score as written an issue?

It's a question discussed extensively in the essay, and one that the essay sees (ahistorically, but perhaps descriptively true in modern practice) as defining the distinction between classical and jazz.

> How do we even know this about composers that predate recording technology?

Accounts from people who saw multiple performances, evidence of composers reworking written pieces after experimenting during performance, composers' own diaries...

> I think that might actually be more true of some forms of jazz and pop. Much classical music is very much an intellectual exercise, whereas blues and rock tend to be far more emotional. But again this varies wildly within each genre. Hardly a meaningful distinction.

Yeah, agreed. Indeed I'd say pop often expresses the emotions that are most fundamental and deeply held (which by the same token are often the simplest and clearest).
I am not a C programmer but my opinion with any language is don’t try to catch mistakes like this in the compiler. Instead leave to configurable and competing linters for people who want to catch possible mistakes like this. Anyone caught by this mistake probably hasn’t tested their program adequately. Any mistake induced by the wrong constant number should be easy to weed out with unit testing.
>You get in the car and it already knows where you want to go because it has access to your calendar.

Do I need a book a time slot in my calendar for going to the hardware store?
these are signed, so you‘re getting -2^16... so many warnings to emit!

/edit: had that mixed up in my head. Interestingly, clang does warn about the overflow:

main.c:6:17: warning: implicit conversion from 'int'
to 'int16_t' (aka 'short') changes value from
65536 to 0 [-Wconstant-conversion]
int16_t s16 = 65536;
> As a User Experience Professional, I was never able to grasp the true user's need for touch screens in cars.

For me there is two different scenarii for controlling the car:

- while driving quick adjustments: volume up/volume down, temperature control, play/stop/skip music, start/stop navigation.

All of those should be via easy to understand, direct access physical controls.

- while parked (or by a passanger): navigation setting, app switching, playlist adjustments, peripherals setup, air control strategies, anything finicky really.

I see a case for these operations to be done by a touchscreen with no physical equivalent. Physical controls for those are juste hell most of the time.

In that sense, I feel Mazda is just throwing the towel when a more sensible and best of both world approach could be taken.
Especially on 32-bit JVMs. Still have nightmares.
I did wonder what the coverage on the mainland was like. No coverage seemed like the most likely outcome.
> Someone can father a child and then disappear without too many consequences

Can’t mothers do the same? (Once the child is born, obviously.)
What I said: it looks at the whole story, rather than piecemeally stitching together a stack. The downside is that it's maybe overwhelming, especially with multiple competing protocol specs and stacks doing the same thing.

As to XML: IMHO actually XML isn't a good fit for most API payloads. XML comes from markup languages/SGML which model semistructured data as regular content models, rather than co-inductive data structures of programming languages. The thing is, though, that the alternative, JSON, is really too basic (doesn't have schema-based validation, doesn't have date datatypes or enumerations, hell doesn't even have decimal numbers, etc.) Part of the story why JSON is so popular is that it's untyped and you don't have to agree on schemas, typed payloads, etc. upfront, and can just begin coding - but that also means you don't have typing, service contracts, etc. as your apps mature.
No direct experience, but I’d try consulting or freelancing first. That’ll get you closer to other people’s problems but while still staying technical.
I don't think it would not be simple or a good idea to warn because these are perfectly valid expressions and it would lead to a flood of warnings if compilers started to display "Did you really mean that?" for an ever growing list of expressions (which is what it would become).

Better to leave this to code analysis tools.

Edit:

2^32 uses the ^ operator exactly as intended, and has perfectly legitimate uses, especially when dealing with registers of HW peripherals.

It's not the same as warning on "if (a=b)" as someone replied.

From a language perspective, 2^32 is exactly the same as 2+32.
libripgrep has been on master since 0.10.0. There just isn't any high level documentation for it.

It's not clear whether libripgrep would be a good fit for this project or not. They would need to reroll all the arg parsing logic themselves. libripgrep is really about building your own search tools (or more specialized tools) using the same internal infrastructure as ripgrep. But yeah, this is why I need high level docs to explain this stuff. I've been putting it off until I get bstr straightened out.
I’ve also long wondered what Twitter’s thousands of software developers do all day. Their product certainly hasn’t gotten any better.
I've definitely had to fix servers that have choked themselves with thread abuse, so maybe it's ptsd. The fixes can be as simple as shrinking threadpools to needing substantial rewrites, so I still treat threads as resources requiring management.

Green threads are nice because they let me separate logical execution from operating system resources. Unlike Go, Java will expose the ability to use a custom scheduler, so that should be nice!

My personal pet usecase is actually the opposite. I want to isolate 5-10 "low priority" tasks to a single kernel thread to isolate how much damage misbehaving code can do.
Problem here is the definition of 'better'. We'd need to find a common ground of agreement on that before deciding if it is better now or 30 years ago. Perhaps the answer isn't even a simple yes/no.
That makes perfect sense, thanks. Are there screen readers capable of providing summary if needed?
Is any money getting spent on painted bicycle lanes in the UK? I'm surprised to hear that, because the very few I've seen there were a joke. The similar joke examples shown in this article don't seem far-fetched based on my (limited) experience in the UK.
When I conduct interview, I ask very simple programs like fizz buzz for logic. If s/he succeeds, I focus to understand if interviewee is passionate about his craft, which is the hardest problem s/he encounter ? which is code s/he proud of ?
I find that asking "What is the worst bug you've ever encountered" is a great sounding board.
navigation was just an example. Angdthere is no place here for muscle memory. Do you want to switch radio station? (I hope I can do such thing during driving?). Look at screen where is focus now and rotate the wheel by some angle which depends on what you see on screen. Press the wheel, rotate the wheel again to select another radio station, press it again.

Things like that. Maybe after few years you will memorize parts of this.

I am not telling resignation from touchscreens is bad. Just Mazda didn't offer anything useful instead of it.
Overcoming the 6 Most Common Problems in a Defect Management Tool
> I interview programmers and I've encountered this a few times, and yet, I still don't do code tests. I talk to the candidate and you can easily ask the right questions to tell who can code and who can't. You can even get a judge of experience level (junior, intermediate, senior) which you won't get from a code test.

How do you know? Do you check your interview assessments against actual performance among those hired (measured how)? What about the ones you turned down, what makes you so confident that they actually couldn't program as opposed to just answering differently from how you expected?
I once tested this with a ATMega32U4, as it can also control the mouse it can as well be a prank tool for eg in the office at work. I made the cursor move in a circle.
Lean UX Boosts Value in Scrum
By the time you write a linter, you've done more than half of the work of a compiler, at which point you might as well just ship it as a compiler. It's a bit different for clang, which is modular and provides libraries that tool writers can use, but gcc is intentionally monolithic.
Unit tests will not catch all issues, the person that writes the unit test will probably not see a corner case when implementing the code so it won't add the test for that corner case in the unit test either.
To me, 'trophy wife' comes across as unnecessarily disparaging: the Spilkers have been married for 45 years.
> For example, good luck trying to read a 5.25" floppy. You'll need to build your own hardware and write your own device driver to do it.

It's really not that hard, assuming some older PC format. Motherboards up to the 486DX4/120 generation had onboard controllers for the cable to interface to a standard AT type, half height 5.25" drive. I had one in my PC at the time. They read 360KB disks fine too.

From that sort of computer, which can run DOS 6.22, it's not too hard to use it to transfer the data to a modern machine.

https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.eb...

If you mean good luck trying to read a 5.25" disk due to magnetic degradation on the media,that's another problem.
I love this approach.

It features (with some overlaps):

1) Less is more.

2) Data hygiene.

3) Present for grandfather/grandmother/family.

The problem is that the more photos you made, the more difficult it becomes to pick a hundred. We leave behind so much data trails every day, including data which is no longer relevant. We constantly have to decide which data we keep or 'consume'. The problem is only becoming worse throughout the years (in history). Data is more easily available, and more easily able to be made (or fabricated!) now than 50 years ago.
It’s been awhile since I’ve used HAProxy (changed roles, loved the product). But are there drawbacks running on all cores? I seem to remember sticky routing and acls not working properly as each core had its own set. Has that changed?
100s times a few thousand == a few million. Thats a lot!
There were a whole bunch of parents in the US a few years back having their kids learn Mandarin because so much business was happening in China. I haven't heard this in the last few years though.
> Is whether or not you play the score as written an issue? How do we even know this about composers that predate recording technology?

Sometimes they pretty much tell us directly, e.g. in treatises which discuss performance. Other times, we can look at early recorded media to figure out what the style was. But there's no question that classical used to have a hugely important tradition of improvisation, which was only gradually lost throughout the 19th-c., as technical ability in performance was regarded as more important than well-rounded musical aptitude. It survives today, e.g. among organists, who are still trained in both performance and composition.

> There's a massive difference between pre-20th century classical music, which was very much the pop music of its day

Well, not totally true. On the one hand, by the 19th century, pop music did exist already, e.g. Stephen Foster's songs; on the other hand, it was not yet radically different from classical music, being published in sheet music form, for a musically-knowledgeable public. It would be hard to tell apart a Stephen Foster song from the 19th c., from a classical "arietta" or "canzonet", of the sort that even e.g. Joseph Haydn composed, by any inherent criteria. Classical music forms did vary widely in "intellectual" ambition ("arietta's" and "canzonet's" being on the low end, together with dance suites, "divertimenti's" and "cassations"), but for a long time that ambition wasn't regarded as incompatible with some degree of reasonably-widespread appeal - for something on the "high" end, consider symphonies, instrumental concerti or opera overtures.
> There is a good argument that the technical interview success is much more strongly correlated to the number of hours spent practicing Leetcode-type questions than to actual cognitive ability.

Where is that "good argument" substantiated?

People say exactly the same thing about IQ tests, probably because it's something they'd like to be true. But it's not backed up by the evidence.
No, i hate large modern touch screens in cars and prefer proper buttons, and controls that I can memorize, like the controller in my BMW. I can do most things with minimal eyes off road.

I would argue its not a best in class feature, its a liability.
Something like uBlock I'd imagine it's worth supporting for some brands just to be associated with by name.

Like a VPN service, or such.
If I had to buy a car now it may be a Mazda 3 because of this. I may be getting old but I prefer having physical buttons and needles. The dashboard in the new Mercedes for example may look neat and futuristic but I can imagine it going wrong in many ways. I just want a car, not a space ship.