skysight-inc/HackerNews huggingface dataset:
I hate ORMs with the fury of a thousand suns.

The problem is that I know SQL but now I have to spend a bunch of time trying to figure out how to convert SQL into ORM X just so it can convert it back to inefficient SQL. SQL mostly translates between various databases but ORMs are unique and you have to learn a new API for each one.

I'm on a project using TypeORM and it has been fantastic at helping developers on my team make really bad schemas due to not understanding how to use TypeORM to make the right relationships.

Currently I'm looking at pg-types because you just write SQL and it just helps by making some TypeScript types for you.

(I have used ORMs in C#, PHP, and JavaScript and I hate all of them).
This is one reason startups can win.
I can't pretend to know your story. My story is not startup related. But "inner peace" frustrates me.

For my turmoils, it was about acceptance. Saying "Yeah... that happened" with the idea the past doesn't define me.

To make the past separate do something, anything, that "past you" wouldn't guess, even just once. Maybe put cupcake-sprinkles on your morning cappuccino or on a PB&J sandwich. Change your desktop wallpaper to unicorns and rainbows. Sing along to a death metal song before breakfast.

.

This does two things:

1. Bookends an era. The old era is now BSC.(Before SprinkledCoffee)

2. Means you can do things tomorrow that even you can't predict today.

Congrats. You are now living in a new era where even you can't foresee the possibilities.

No inner peace though. Your past will always be your past. You will continue to have feelings about it though it does get easier over time. Maybe see a therapist if you can.

I like Desiderata, one unequivocal phrase of which is:
"You are a child of the universe no less than the trees and the stars; you have a right to be here."

You have a right to be here.
Doesn't mongo support JSON Schema for document validation?
Janet Malcolm, Remembered by Writers
The first 7 paragraphs start with I/me/our. For some reason these types of articles stand out and are unreadable
Universal Declaration of Human Rights, article 19: "Everyone has the right to freedom of opinion and expression; this right includes freedom to hold opinions without interference and to seek, receive and impart information and ideas through any media and regardless of frontiers."

Notice how there's no clause stating that this right is conditional on "news integrity".
Coordination and consensus can have non linear costs, and will vary with the amount complexity of the decisions that need to be made.
They definitely also needed to relocate because of price.

But that was certainly not the only reason for moving to Kyoto.
Just curious, how is something like this typically handled/addressed internally? Is it one of those live and learn type situations or was there any consequence other than your email getting flooded?
I've been a hiring manager in tech for a long time now, and recently as a candidate. As has already been commented, all companies have a budget. They may be able to increase that for the right candidate, but there is always a range, why not disclose that? As a candidate I know I'm not wasting my time, and the actual during the actual negotiation, its then that the 'value' of the new candidate to the org can be assessed. Pay people what they are worth, which is of course a reflection of their experience, talent, and attitude.
Ask HN: Cool keyboard shortcuts you use that have made your life easier?
I'm curious about shortcuts you've found or created that have made your life easier (you don't have to be a programmer).

For instance, ever since I found out about Vimium and CVim, I can't think of a better way to browse the web using keyboard (what the heck was I doing all those years before that?!)

Another example: I've set up many customized keyboard shortcuts (some use macros) in Word that have made a significant difference on my productivity and how much I enjoy typing in the software.
Do you really share these things in a professional context? What country was this in?
No there’s often tons of them. I’ve personally seen hundreds.
Ah yea, I didn't mean importing yourself as a model. Just a digital wardrobe of sorts with the model being a default like you have in Style Space.

https://www.tiktok.com/@_radcollab/video/6973274254406110469
I think they're just other smart contacts that use many data sources. Like if you wanted an oracle that returned the result of a baseball game, you'd have it check various newspaper websites and have it make sure the results were all the same. To attack it, you'd have to attack all the newspaper sources. It's still a weak point, but not quite a single point of failure.
You're being downvoted, but I completely agree. If you are on Node and Postgres I highly recommend using slonik - it makes it easy to just write SQL but at the same time makes it almost impossible to have mistakes like SQL injections:

https://gajus.medium.com/stop-using-knex-js-and-earn-30-bf41...

https://github.com/gajus/slonik
Parties to a contract exist in jurisdictions that do not see things this way, and even block chains are rooted in some form on physical media in legal jurisdictions.

In the case if IRON, the 0.75 in actual money exists somewhere, a bank presumably. Wherever that is, the jurisdiction might be friendly for IRON, or not, but there is in a very real sense no pure native environment for smart contracts. At a minimum, the parties involved will always exist in a physical legal sovereign jurisdiction that regards it's own authority as higher than the smart contract and has some ability-- perhaps limited, perhaps extensive-- to enforce that authority.
as far as we know unicorns could be more closely related to rhinos
I think people should learn to stop being fucking arseholes.
So use threads! That's what they're there for.

Go's solution is threads, just with a particularly idiosyncratic M:N implementation. Rust threads are 1:1. But they're the same concept. You can even get M:N if you really want it (nobody does, which is why mioco gets no use).
> I find them useful as I write code because they allow me to state my intention (in plain English), translate it to code, then compare statements and see how well I’ve achieved my goal.

IMO this is exactly what unit tests should be used for. Replace these comments with unit tests and you're doing TDD. The practical difference is by stating your intention as unit tests, you not only verify your initial implementation is correct but also that any future changes remain correct.
16-year-old amateur astro-photographer captures 'clearest image of the moon'
> Don't transition unless...

ancient trans proverb
The link and title made it seem like something official from the Deno developers but it's just a mirror for https://github.com/eveningkid/denodb
What you say is true of light water reactors, a 1950s design.

LFTR would be far better. Neutrons breed new fuel, and it consumes virtually all the radioactive fuel with "waste" that rapidly becomes non-dangerous within a month.

So I would guess neutron degradation of the equipment/vessel/reactor will probably be a similar problem in both cases.
> In AOL one prank was to flood someone with emails because it was difficult to remove them, IIRC and needed to be done almost one by one.

An email service one of my friends used around 2005/6 (I can't remember if it was Lycos or the school internal system) had a similar issue - you could only remove a page (10-15 IIRC) of emails at a time. Once he mentioned this, one of my other friends took this as a cue to blast him with 32k (pretty sure it was 32768) emails. I don't think he ever got them all deleted.
Automation is fun because when you make one mistake you actually make it millions of times inside of a few seconds :) been there!
Show HN: Diggy – run practical and recreational languages in a browser
Any competition, by its very nature, competes with the idea of cooperation. One, after all, competes to win.

The perennial challenge is how to develop and maintain a healthy internal competition environment, especially when there are high monetary and non-monetary stakes involved.

I don't think this issue has been resolved or that it's unlikely to be resolved anytime soon.

One thing that I generally believe to be true is that internal competition is better than no competition.

If a company doesn't have internal competition, it may be prone to group think. It is also highly likely that it will face an existential threat from external players who are not an thinking alike.
Hi HN. Over the last week, I was working on a playground that could run practical and recreational languages in a browser. To a certain extent, it is a follow-up to a recent (and much upvoted) HN post about one famous company trying to kill a like-minded open-source project. I am unaffiliated with both parties, but I felt unpleasantly frustrated with the story and decided to give something back to the community and build a similar project from scratch. [0]

To be frank, there is not much new about Diggy. It stands on the shoulder of giants: the code is executed in a Python process that is launched through NsJail. On the frontend it is Svelte. The code is executed inside protected environments, but there are some limitations such as time & memory limits, no networking, etc. It is a boring tech-stack. I like it.

But, hey, Diggy runs on a cheap DigitalOcean instance in a docker-compose environment (drum roll… awaiting the HN hug of death?) One can complete computer science assignments, try new languages. Sure, there are no accounts. It is a sandbox, and everyone is welcome. Grab a large bucket and a shovel; it is playtime!

Oh, yeah, I think I said it already, but Diggy is open-source, and anyone can self-host it. It won’t blow a hole in your budget, and it is simple to install. [1]

Currently, Diggy could run only two languages: Python and Ruby. Python has two pre-installed libraries: numpy and matplotlib. Not much, you say? I will add support for more languages over the next week. It is super easy. This is what I have in mind: compiled languages: C, C++, Clojure, C#, Erlang, Go, Java, Rust, Scala, and interpreted languages: Bash, Basic, Common Lisp, Haskell, Javascript, Typescript, Lua, Markdown, OCaml, Perl, PHP. Huh… did I miss anything?

This is just a small weekend project. But there is a reason Diggy will stay light (except that I haven’t finished it yet): programming is not the luxury of a few people. It must be simple to learn.

[0] http://diggy.sh/

[1] https://github.com/diggyhq/shell
As a jazz musician I made a lot more per hour than engineering but the gigs were very sparse even though they could be well paying when they happened.
Another nice add-on to this format within my department is that we utilize an internal retro tool for people to post their questions for discussion.

After the 20ish or minutes of silent reading, we give people ~5min to post their questions for all others to see in real-time. We then give people a set number of votes and the presenter goes through the list answering the questions in descending order of votes.

I was hesitant at first when they introduced this (since it felt like more red tape), but I've found it helps focus the discussion on the most important feedback while avoiding one person bikeshedding the discussion time right at the beginning.
It is easy to talk about this over 100 years. But that also conveniently lets us ignore that the US was founded on the backs of chattel slavery. Turns out lots of forms of governments can hurt people. But at least the communists/socialists raised all ships, whereas the racist policies of our 'democratic' government only raised a few.
LFTR fission reactions are self-regulating in many ways due to the liquid fuel and thermal expansion abilities, and even if something goes wrong, there is a melt plug that will automatically stop a runaway reaction.
It's because synchronous libraries that block don't play well with async event loop code like node or deno. You'd have to run them on a thread pool and pass data back and forth to avoid blocking.

This phenomenon also happens in go and rust for similar reasons.
Or to paraphrase a US president (Andrew Jackson) when he didn't like a Supreme Court ruling, "make me. Oh right, you don't have an army. I do."
I bet if you implemented this system with every NPC getting a separate thread, it would be quite comparable in performance to the Go implementation on a modern OS. Goroutines are heavier, and OS threads lighter, than many people think.

(This speaks more to the fact that goroutine-per-entity wouldn't be feasible than to the idea that thread-per-entity would be.)
That was also the policy of the Third Reich at multiple levels. Give overlapping tasks to competing organisations. Let the strongest win
It's definitely an improvement. Still, I would advise against it in general, especially for arbitrary pairs. This category of attacks can be difficult to foresee and even arise after deployment due to new incentives outside of the system.

While Chainlink has its own host of issues and risks, there are still valid reasons why companies are paying them and their node operators good money to feed price contracts for ERC-20 token pairs.
I suppose from the perspective of those higher up the chain of command, it’s not much different than acquiring competing companies as soon as possible.
It’s supported in the beta version of Apple Music for Android.
SARS-CoV-2 delta variant: Differences and risks
South Korea bans 1700 tech products for using forged test reports
Well if you're talking about a in-development fusion reactor, then it's fair to use in-development fission reactors for comparison.
Agreeing the code is the legal authority means implicitly believing the code is perfect: no bugs, no unanticipated edge cases. Which is just not realistic. So when they arise, who decides what happens?
Not believing in the legitimacy of the state is like not believing in the gravity.
It would be needed to POSIX compliant (even Windows had compliant) but not UNIX(R)
Agreed on every one of these points. Especially with the inspirational aspect of seeing veteraned industry leaders and principal engineers come in fresh and have questions and misunderstandings. It's given me the courage to be wrong or confused and ask questions. I've also admired a few people's ability to advocate for shared principals and express how this relates to them - especially customer obsession
I’d love to get insight into how orgs with cultures like these organize docs so they’re discoverable
Alcohol Powder
If you rewrite it so it's no longer a cryptic one-liner, it's probably easier to understand this way without a comment than the other way with one.

return this.page.$eval(selector, (node) => Array
.from(node.childNodes)
.filter((child) => child.nodeType == Node.TEXT_NODE)
.map((child) => child.nodeValue)
.join('')
.replace(/\s+/g, ' ')
.trim()
);
I did a triplebyte interview once. I come from a Computer Engineering background, which was more or less spun off from Electrical Engineering. We learned a lot about low level stuff and signal processing, not so much about discrete math and algorithms. For me their interview was focused on Computer Science and Web development, which I didn't really do.

The interview itself was nice and ok, the feedback was really appreciated (after all this more or less reflects what high paying programming recruiters are looking for). But I felt like there was no place for people with my background.
It was certainly the right policy in Steve Jobs era. But is it the right policy now? As a matter of fact Jobs fought internally for side loading. Even Phil Schiller argued they should run it a lower commission once they reach critical mass. And Tim Cook is looking at it as a lost of revenue only. This was also apparent when Tim Cook decide to start a whole 5+ years operation to undermine Qualcomm ( and later IMG and Dialog), something that Steve Jobs thought was worth it.

Jobs would have listened and rethink. Jobs is great for changing his mind. Tim Cook is taking a few of Steve Jobs last policy as gospel and counting pennies. ( Which is a good thing as a COO, not so much as an CEO ) In many ways Tim Cook feels more like John Sculley.
Sounds like a good approach. Why not put it to practice by letting China own Florida for 150 years, then see who Floridians want to join at the end of it.
My general rule is paraphrased from the FTC website[1]

There's more detailed information on a different page[2] including the following quote which I think supports the general rule I listed in my original comment:

> ...[Amway's] sales plan was not an illegal pyramid scheme. Amway differed in several ways from pyramid schemes that the Commission had challenged. It did not charge an up-front "head hunting" or large investment fee from new recruits, nor did it promote "inventory loading" by requiring distributors to buy large volumes of nonreturnable inventory. Instead, Amway only required distributors to buy a relatively inexpensive sales kit. Moreover, Amway had three different policies to encourage distributors to actually sell the company's soaps, cleaners, and household products to real end users. First, Amway required distributors to buy back any unused and marketable products from their recruits upon request. Second, Amway required each distributor to sell at wholesale or retail at least 70 percent of its purchased inventory each month -- a policy known as the 70% rule. Finally, Amway required each sponsoring distributor to make at least one retail sale to each of 10 different customers each month, known as the 10 customer rule.

Lastly, just because people disagree about the nuances of the rule, does not mean the rule doesn't exist. I feel very comfortable with my original statement, and those in favor of e.g. Herbalife would vigorously argue that meet my definition of MLM, while those who think its a scam would argue that they don't meet it.

1: https://www.consumer.ftc.gov/articles/multi-level-marketing-...

2: https://www.ftc.gov/public-statements/1998/05/pyramid-scheme...
A CoC should formalize what the leadership already believes, so it would be backwards and pointless here.
Hong Kong’s fate was sealed in 1984 when the UK agreed to return it to China. And that was when China was far weaker than now, and could have been confronted at far less cost. Instead, the West got played, transferring massive capital and know-how to China while convincing themselves that economic integration would inevitably lead to greater political freedom.
Agree, wish MS ecosystem had more support. Looks like it was given some thought though:

https://github.com/eveningkid/denodb/blob/bb319c03085612c108...
I'm really curious who is USING this company for their recruiting. As a IC I've been approached a lot by them, tried taking one of their tests, was turned off.

And as a HM, I was never interesting in using them, and we continue to use our own internal recruiters or local recruiters who know the market.

Having worked at a startup that was trying to disrupt the hiring/recruiting market back in 2010. I'm curious to how effective they were....if at all.

Edit: update, maybe I'm super skeptical because of all their cheesy ads that were all over Reddit for so long?
Yes. "php.ini" is a pain to have for script language.
> OLPC was also ruggedised, had replaceable parts and had things like crank charging for areas with no/little power, it was a well thought out machine all around

No, it did not. The crank charger was never supplied commercially, it was purely a marketing tactic. Same as the Potenco Pull-cord generator http://wiki.laptop.org/go/Peripherals/Hand_Crank , http://wiki.laptop.org/go/Peripherals/YoYo

Both were ideas which even basic calculations tell you aren't viable.

In addition, your other claims like "ruggedised", "replaceable parts" contradict what I saw with OLPC XO. I would say the product was a one-off that had almost no consideration for long term reuse. Things like the wifi bunny ears prove that the product was driven more by marketing tacticians rather than reality and cost. Honestly, my opinion is that OLPC was a huge scam to take money from unwitting unsophisticated developing country funders who didn't know any better and waste it in swanky offices in One Cambridge. It was one of the worst options about how to expend public funds.
I sympathize because when I was a junior engineer once I accidentally emptied the test email spool sending the entire company including upper management all sorts of fake test emails accumulated in the past years about hires and fires and whatnot. What is more, a coworker convinced an HR person to play a prank and call me to HR office next day for giggles. Needless to say it was stressful and infuriating at the same time.

Now I know better and if somehow they are reading here, I would advise the person to just chill and don't take any shit than necessary. If you were not one of the few people with root access but somehow still had the capabilities for mass emailing in prod, that is not your problem, it is an organizational problem. For an operation at the size of HBO, anything prod has to be behind sufficient failsafes and a peer reviewed process (except maybe for a very rare "break glass" emergency).

Hope there will be a good, rational postmortem that can cool headedly identify the root causes and create action items for the actual stakeholders. If your shop is worth its salt, there wouldn't be performance evaluation consequences for you. If there is, no worries either, it is time to look for a better place.
Most of the chinese people I've met in tech have been excellent at written English because they learn it starting in primary school. They're just uncomfortable speaking it.
The best one can do is what some of the commonwealth countries, led by the UK, are doing by offering Hong Kong citizens an accelerated path to immigration.

All you can do when a ship sinks is find a life raft.
> we can craft questions that cannot be answered using Boolean algebra alone

Sure, that's trivial, the travelling salesman problem for example can't be solved exactly, but approximative methods come very close. Given that brains are pattern recognition machines generating probabilities we're already in the approximative regime. Nothing is certain, even science has its revisions.

So does it matter if we can only approximate? For living things the main thing that matters is life, self reproduction, not exactness. As long as they reproduce they are still valid, with all imperfections and approximations. I think the only questions that matter are those related to life, there are plenty of uncomputable things outside self reproduction. This is for biological agents, an AI would be using evolutionary methods to reproduce their digital genes instead.
Was Apple Daily regularly sharing outright falsified stories?
I wouldn't know. I've been a premium subscriber for longer than that.
I wish AAA games are thing in VR
Almost every scam gives money to the early adopters. It would only be a ponzi if they claimed that there was some kind of a business/mechanism that’s generating the revenue when it’s actually coming from the fools downstream from you. Usually it’s something like a guaranteed double digit interest on your money. You put the money in and receive the reward (from other people’s money) and that’s a strong psychological trigger to put more money in. You just saw it work and you have the check from the ponzi to prove it!

If you just have a large amount of a worthless asset and you convince other people to buy it on the market to pump the price up (mainly via social media and “influencers” these days) and then you dump it at the top then you have a…