skysight-inc/HackerNews huggingface dataset:
I think we're agreeing on the majority of this. We have not chucked DRF or Django auth or anything. We've just created service layers to take the business logic out of the API views, API serializers, and DB models.

Each action looks like

1. Request arrives into the app, auth happens using DRF on the API view. This is all using Django & DRF built-ins.

2. In the API view: request data gets serialized using DRF serializers, but no calculated fields or model serializers or other BS. JSON -> dict only. The dict does not have models in it, only IDs: profile_id, reservation_id, whatever. Letting the "model Serializers" turn a JSON location ID into a Location model is how you get 10 database queries before you've done _anything_. At this point we don't care if the location_id is valid. We are just serializing.

3. Still in the API view: Dict dump from the serializer gets shoved into whatever format you're going to send to the service layer. For us this is often an attrs/dataclass. If we're calling the "Reservations Service" method "create reservation", we pass in location_id, start time, end time, and the User model. The User model in this case is breaking our policy of not passing models through the service boundary, but it's the one exception for the entire code base, because it's too useful not to take getting it for free from DRF's user auth. We would be basically throwing it away then re-calling for it in the service layer which is dumb.

4. Call the Reservations Service layer. The service layer is going to do n things to try to create the reservation. If it needs to insert related records, like in a transaction, cool. Its job is to provide a sane interface for creating a Reservation, and whatever related side effects, not to only ever touch the Reservation model/table and nothing else. The base of our Domain is Reservation, creating a ReservationReceipt and a ReservationPayment are entirely within scope. Use the Payment model directly to do this if there's zero extra logic to encapsulate, or create a Payment service if you have a ton of Payment-creation logic you need to extract/hide from the Reservation service. You can still manage it all in a transaction if you want. The point is that the caller (the API layer) doesn't see this. It only sees that it's calling the Reservation Service.

5. The Reservation service will either return a dataclass/attrs objects representing a successful Reservation created, or raise a nice business error like ReservationLocationNotFound (remember when you passed in a bad location id to the API, but we didn't want to check it in the API layer?)

6. API View takes the service response & serializes it back, or takes the business error and decides which HTTP error it should be.
Vitalik Buterin: Trump Twitter clash ‘shows why we need an alternative’
My company was renovating their headquarters in New York and I am pretty sure the entire building was to be equipped with LED by GE.

I bet lightning is good business (for big buildings) and definitely a core thing to provide as part of electricity (re)installations.
You can leverage Postgres full-text search, and GeoJSON/PostGIS support. Also for replacing algolia ElasticSearch comes to mind, that should work for most of those use cases.

For analytics and in the SaaS part you have both mixpanel and segment, and also some nice privacy-aware alternatives to Google analytics like fathom and some other indie startup.

Recently some open source segment alternative came along in HN...

MS PowerBI connects with lots of stuff, although it's paid
ELK is open source
Also metabase is a nice open source tool for BI.

Lots of tools!
I use Tiddlywiki 5's node server to host my wiki. I can use it on anything that can take my Yubikey :)
> Decisions have to be made

In general, I disagree. Most of the time decisions do not have to be made--more precisely, decisions by "leaders" who get to dictate what everyone must or must not do so not have to be made, and should not be made. Our political structure makes it seem like they do, but that's a bug in our political structure, not an actual necessity.

> in any argument, experts should get more weight

If "experts" is defined as "people who have a demonstrated track record of making accurate predictions in the past", then yes, I agree.

However, by that criterion, as I said, in most domains that are of importance for public policy, there are no experts. Your statement, while correct in itself with that definition of "expert", does not help at all in those domains.

Any other definition of "expert" does not justify your statement.
You would look at their recommendations? Or you can follow the ones you like already?

This is super simple stuff.
There's only one butterfly keyboard worth talking about.

https://en.wikipedia.org/wiki/IBM_ThinkPad_Butterfly_keyboar...
This is a tangent but it's been fascinating watching the infosec community grow on twitter. It makes me feel super out of the loop with a huge part of my field (i'm more dev/architecture but of course security is important). I kind of dove into it a tiny, tiny bit the last week. I figure with all this time at home for quarantine I might as well start playing in CTFs, etc and hone some skill I'm so used to only using in a reactionary manner.

I'm honestly envious of their community and all of the tools they've created and tutorials and everything for newcomers. They've done a great job getting anyone who is remotely curious the ability to dabble.

When I was coming up as a sysadmin "rtfm."

Anyway, are people making lucrative careers out of bug bounties? What do these "infosec CEO" twitter people do day to day? Their goal is to hit bounties and sell pentesting/exploits I assume?
I don't think anything has happened to Perl. Instead, the popularity of all its alternatives has exploded.

edit: I can count the number of Perl scripts I have used at my job (0). I cannot count the number of Node and Python scripts I have used at my job (there are too many). The niche has been filled.
Right, it's not so much a reflection of age-ism as it is just not having the skills in the job description. It doesn't matter if you're 25 or 45 - if they need X years of language Y, it's for a reason and 20 years of generic dev experience is not usually an acceptable substitute.
The Charging Bull bronze is a piece of guerilla art. NYC towed it away after the artist put it near the New York Stock Exchange. Its current location isn't the original one.

It was a promotion for the artist, who wanted to sell four more of them.
Our parents didn't have privately-owned reusable spaceflight.

Just wait till you see Starship.
Nah, if it goes to anybody, it goes to food banks (or other 501(c)(3) organizations). The supply chain bifurcates much further up; it'd take a lot of effort for a relatively low volume of unsaleable but unspoiled food at the store level to make it to a restaurant or a wholesaler.
At this point it's a case of don't feed the troll, it will get hot enough under bridges they'll just fry out or get washed by a rain bomb soon enough.
One way is showing what multiple experts and news sources say about the facts, such as the Washington Post, The Hill, Forbes, the ACLU, Bloomberg, CBS News, CNN, ABC News, Fortune Magazine, Vox, MSNBC, Huffington Post, and the Christian Science Monitor.

Which Twitter did - https://twitter.com/i/events/1265330601034256384

This focus on complaining about just CNN is a red herring.
“You get paid the minimum your employer thinks they can pay to get someone who does the job well.”

Very true. Most of us also aren’t paid for the value we produce. We get paid for the replacement cost.
> like the compiler is taking type information and using it to make implicit casts throughout the program.

It's not a cast. Rather, it's an inferred/omitted type parameter. In this case, the collect() method is actually collect::<ContainerType>(). So it's not that collect returns something to be cast, but rather that there is a different collect() implementation for each target type. When the compiler is able to infer the target type unambiguously -- for example here, because you assign it to a typed variable -- then you don't have to specify it.
"I realise COVID. But that's the excuse, not the reason." I would tend to agree. From what I understand Boeing has spent some 70%+ of their free cash flow on buybacks for the past 10 years; some 40+ billion dollars worth. They spent so much money trying to boost their own share prices (legal market manipulation?) it's no wonder they have no money.
Which one of the experts I linked here is a politician?
In the post-nuclear world economic pressure is the only tool we have to deal with bad actors. It's why we sanction North Korea, Iran, and Russia.
Apple as a whole would have failed long ago for prioritizing form over function with an astronomical markup, but consumers are unendingly stupid so as long as Apple shovels out underfeatured shiny status symbols the gravy train's never gonna stop.
We don't really know this with such certainty. Our records have gaps and only extend a few thousand years back, at most. Even then, we often only have bits and pieces for certain populations. It's a large stretch to generalize over human history.
I'm kind of wondering if he will step down next year, or find a reason to keep going. (I don't know what the constitutional arrangements are, but assume that he can only have a single 10 year term)
This is easily the most exciting moment of 2020. I can't overstate the emotions running through my body right now - godspeed to the crew & cheers to a new era for human space exploration.
Google deletes Drive file “Plandemic” after contacted by The Post
We either laid off or 100% furloughed about 15% of staff. Those of us who remain got a 20% furlough, except for people already working less than full time.
I’m not missing anything. The time spent to properly understand your problem is generally quite small, and pays itself back many times over.
I'll illustrate with an example.

Under the British, while it was true that the governor and many government officials were Brits, a surprising number of them were able to speak fluent Cantonese. They actually took the effort to understand the local culture. You can find many such clips on Youtube.

Nowadays, under Chinese rule, Hong Kongers often get told off by mainland Chinese officials for not speaking Mandarin, and hence Hong Kongers are unpatriotic and seditious. Schools must be forced to switch to teach in Mandarin, and so on.
Ya, I didn't cover them but there's certainly exceptions. Kids shows is a great example of a genre targeting a demographic which is likely under represented by the voting community - adults. Imdb is best viewed through the filter of "what do adults want to watch or think is good".

I remember watching duck dynasty, great kids show and I loved it, but I doubt it holds up for adults. Batman beyond on the other hand won an Emmy and still falls into the "kids show" genre but is very watchable for adults who can appreciate animated content.

So to answer your question, Netflix needs both as they represent very different audiences.

A few other exceptions that I didn't mention are comedies and horror. Ratings for these skew lower than average as they aren't meant to compete with Shawshank for greatest of all time, simply to entertain or scare. As such neither of these genres tend to attract serious directing, writing and acting talent and in turn, audiences tend to view them more as "fun" than serious.

You or I might love to watch pineapple express, hilarious comedy, but still vote it as a 6.9 because it doesn't hold a candle to Shawshank.
this guy has it figured out: https://youtu.be/FM5HkpyXxsQ . We need to throw a party. It's time to celebrate. Emancipation is in sight.
dang: Could you point to this article, instead of the summary?

A few things I noticed: Other than management and sysadmin, the area with the highest average seniority was embedded programming. That fits nicely with my view that embedded is an area with less age age discrimination.

Haskell pays better than C++, by a fair amount internationally, but only fractionally better in the US. I'm not sure what to make of that, but I thought it was interesting.
I like side by side. Especially when I am linking pictures and or creating blocks and linking pdf .. I can write in left pane without those pictures blocks and pdfs taking space in left pane and shows up on right pane.
I'd blame the tax code; it makes no sense for corporations to save money. They should aim for zero every year either by investing in growth or paying it out.

With the amount we pay in taxes, the ability to save is sharply limited.
It's not just CNN saying that the President is lying about mail-in voting.

There's a long list of news organizations:

https://twitter.com/i/events/1265330601034256384
Does Azure Synapse Analytics Spell the End for Azure Databricks?
As a person with a history of depression and social anxiety I really do feel calmer since the crisis started, as if my state of mind was made for this kind of life.
Less people on the streets, it's quieter, no one breathing down my neck in the supermarket, home office, no expectations on how to pick my clothes, how to behave, no trying to hide the weird stuff I eat (carnivore, high meat, raw, cooked and aged whatever gets on the plate), no forced socializing.
>> Fragile by what measure? The US economy at least appears to be weathering the storm, and many experts expect it to start rallying in the next few months.

There won't be a "V-shaped" recovery. That's just what the administration is hoping for because they understand it will have a massive impact in November.

The best analogy I've heard is that we just had a huge earthquake, and now everyone is waiting for the tsunami of a catastrophic economic crash.
Untrue, because:

60 years ago was 1960.

There were no space stations to dock with.

If your parents were American: no Americans had been in space.

But most importantly rockets were not reusable. That is why this has never been done before.
Why is Brexit relevant? What kind of trouble do you think he and his wife will end up in?
Clash of Titles in Data Science
The current link to https://bash.org/ is broken. Only http://bash.org/ works right now.
this is true in some sense; the value of JAM-stack apps is that they are portable and deployment is vastly simplified and requires limited resources (web-accessible file storage). How much value-add is there to be captured?

Netlify already gives me everything I need for free at this scale. Once I move into their enterprise features the competition heats up.
> The IDIOT. Usually a cretin, morphodite, or old COBOL programmer

https://www.lexico.com/definition/morphodite

> Originally: a hermaphrodite; a person having both male and female sex characteristics. In later use also: a homosexual man or woman, especially one overtly manifesting features or attributes regarded as characteristic of the opposite sex; a transvestite.

Oh wow, TIL a new homophobic slur :-(
Isn't this just imparting a false sense of security? The one party who I'm most worried about getting my data, Google, will still get it.

I think you've still failed to answer my basic point - how is this not just a competitive moat that benefits Google? If we care about privacy and data collection, legislation is required because Google and Facebook have no reservations about sucking up everything they can. If it's ok for them to do it, why not $RANDOM_CANADIAN_ISP?
It correlates strongly with tenure, which I imagine also correlates strongly with pay, so perl is transitively associated with money. I bet perl is also associated with SRE, the rarest and highest-paying role among these survey respondents.
You're welcome :) Glad you had so much fun with it.

Currently trying to bring it back, actually. I released a sequel on Xbox 360 a while back, and I'm trying to clean it up, add some things, then release it on desktop, then mobile, then hopefully more modern consoles.

Now that Flash is basically completely dead from modern browsers, I'm trying to figure out what I should do about the original. I might eventually make an HTML 5 version, but in the meantime I'm considering making downloadable executables of the Flash game and releasing it on itch.io or something.

I also finally prototyped a board game version, and at some point I'm hoping to find a publisher for it. Figured I need to bring the video game back so it can be played again before publishers will give it a shot, though.

Speaking as a fan, do you have any opinions on what I should be doing with the game?
>and all the welfare programs

hn right now is a great source of metadata for who to avoid when applying/hiring. i'm scraping all of these covid and economy threads for vile conservative comments and matching to names and making a "red flag" list. @gmail me if you want access to the list.
Biased signal is still signal.

A data source that only reports facts that support its theory is still reporting facts. I think, rather than tune it out, combining it with other sources gives a richer picture.
A bug in macOS 10.15.5 impacts bootable backups
My SO was supposed to start med school this fall, and now that's all up in the air. Try to empathize -- yes, the lockdown has only been in effect for a few months, but this pandemic is going to continue for at least a year or two. I'm planning on taking the GMAT in prep for business school next year, and even that is questionable at this point.

When you're in your mid 20s, delaying 6 months to 1 year of your career trajectory can have massive effects. If you already have your life established, you probably don't have the same concerns.
You probably stopped checking that thread by now, but I finally replied to your comment from the day before yesterday:

https://news.ycombinator.com/item?id=23306317
IDK why but when I read your post all I can think is that sounds like PPP had -someone's- intended effect, just not the one most people thought they would get.
How does staying at a single company improve your skills? You can switch 5 companies in 5 years or stick to 1 company for 5 years, the amount of skills you gain is not tied to duration of your employment but your inherent ability to learn and desire knowledge.
Soyuz has done a good job of making spaceflight routine, but unfortunately it's a bit of a dead end (if only for political / organizational reasons, but also the technology hasn't been updated in decades).

I was directly comparing to the Shuttle, which cost more like $450mm per launch.

And yeah, maybe Crew Dragon won't drop to $6mm, but Starship (next) pretty plausibly could, if it works.
It sounds like the plan is to make people so desperate, they have to reopen and just live with a higher than normal chance of dying. Which is obviously not going to work, because supply side economics don't work. You can open all the businesses you want, but customers are going to need to want to take that same risk as the workers are being forced too. And many businesses don't have the margins to run at 50% capacity. Restaurants and retail are some of them. It's going to be a mess and there is no help coming. Many states are tapped out with unemployment, loss of revenue, and pandemic responses that had to be fully built and funded by states. As such, state bailouts are unlikely to be very meaningful.
But 'bleached asshol' doesn't suggest or correct to 'bleached asshole'
Seems like an alternative to Pritunl Zero
You can create Obsidian vaults wherever you would like. I created my vaults in iCloud Drive on my Mac. As these are just Markdown files, you can use any Markdown capable iOS app (that has access to the Files chooser which includes iCloud Drive) and make any edits or modifications to those files. It doesn't automatically make link suggestions while editing it in an iOS app, but once you are back on your Mac you can easily update those links or just use the suggested unlinked references tool in the side panel. Does that make sense?
It's a little overblown, sure--but I do think that for the super technical power users especially, people like to invest in getting their setup tweaked just right, including all the UX details. This then creates anxiety over the risk to all that time invested. I don't want to learn and rejigger a full set of power user keyboard shortcuts for an app that might disappear, goes the thinking. In addition, open source often means further tweaks are possible (though it sounds like they're trying to maintain extensibility so this may be less of a big deal).
Show HN: Unreplied 2.0 for SMS/iMessage, now with CLI support
uh “Attractive, fit, intelligent” seems like a winning combination regardless of the era.
I’ve owned both high-end and middle-of-the-road computers and mobile devices from many manufacturers... they almost all suck in comparison to Apple’s products. You don’t make revolutionary products by playing it safe - good design is about both form and function, as can be experienced with the vast majority of Apple’s current product offerings.
Oh absolutely. See also:

- Turn signal on when there is no space to change lanes to indicate "soon I need to be in that lane so you'd better move before it becomes an issue"

But it takes a long time to learn this which is part of the challenge of being a 16 year old (or in the case of some people I know, an inattentive 35 year old).

The telegraphing is important enough that some of us flip out when a driver ignores right-of-way trying to 'be nice', or keeps tapping the gas and then not going. It's your turn (or at least it is now!) just go before you get somebody killed.
Says who? Or are you just guessing?

You'd also have to ignore the PR benefits, which certainly corresponds to more money down the line.
Embraer is cutting 4000 jobs too :(
my favorite so far

http://bash.org/?835030
Same with me, Flash games were an amazing side business for a college kid. I made over a dozen games and paid for college completely :)
Funding is a red herring, it's not primarily about money. The whole framework of school is not geared towards this, because there is just not enough teachers who have the capability to teach something like this. They themselves aren't the brightest minds. Now, higher salaries could in principle make teaching jobs more attractive to the best minds, but it would require a huge social change, not just shuffling the budget around a little bit.

And from the children's side: It's already extremely hard to teach kids anything at a deeper level, especially those ones who will later on become susceptible to misinformation. If I look at my Facebook feed, schoolmates who got bad grades around age 10 are the ones sharing fake quiz results, horoscope stuff, "you won't believe what THIS person..." articles, listicles, racist stuff etc. Sure it's just correlational, but I think we don't have much better ways than we currently do in school.

If we could go back in time and design some critical thinking curriculum, are you sure you could teach something useful to those struggling 10-year-olds, that would keep their adult selves away from Internet bullshit?
How does pulsing at a frequency that's unrelated to the AC line frequency but still low enough to be visible improve efficiency? SMPS efficiency usually peaks in the hundreds of kHz, which is invisible even to the most sensitive observers.
I thought Wikipedia was built on user contributions and user provided citations? Do you have any sources that would indicate that the Wikimedia Foundation is far left?

If it truly was far left, why doesn't Wikipedia host pages of Pol Pot and Stalin filled with praise? Or, in lieu of praise, at least apologism?
I'm 57. I'm just observing the truth when I see people my age go for months without work.
I think they'd be happy, dems would be happy and repubs would be happy. Let's make it happen.
The US State Dept?
I think most people are used to seeing the source and can basically "imagine" what it looks like. So they really only switch for double checking before sending something out I would say.

Many people in our community said things about "staying in the editor" so I guess that's a common workflow.