Hacker News new | past | comments | ask | show | jobs | submit | gabes's comments login

What does a migration look like with something like this?


If there's enough usage/interest in litdb I plan to create a similar migration solution to our C# OrmLite DB Migrations: [1]

[1] https://docs.servicestack.net/ormlite/db-migrations


If it helps, the reason we don’t use any typesafe SQL library for node is because of lack of migration support - which was exactly what I first looked for here.


Meta doesn’t buy competition?


Facebook / Instagram?


WhatsApp


You should have read the post before commenting.


> Even people who donated to the truckers before the crackdown got targeted in the bank account freezes.

Source?


There's no way to know for sure because these are all secret charges (Deputy Prime Minister Chrystia Freeland said she would not give "specifics of whose accounts are being frozen." -- https://www.newsweek.com/banks-have-begun-freezing-accounts-... ).

But there are some example of people who have come forth: https://www.visiontimes.com/2022/02/21/canadians-frozen-bank...


Not knowing anything about the Vision Times, a quick search:

> Vision Times is one of the news organizations that Falun Gong's founder Li Hongzhi refers to as "our media".[1] The newspaper's president is the spokesperson for the Falun Dafa Association in New York, and is chair of another Falun Gong group called Quit the CCP.[1] In 2021, The Atlantic called Vision Times a "doppelgänger site" of The Epoch Times.[5]

* https://en.wikipedia.org/wiki/Kanzhongguo


Last I read up on it the consensus seemed to be Mark Strahl's claims had no basis in reality.

None of the donating people mentioned in that article have come forth, if they had done we'd have some evidence it happened.


I saw this reported here in the UK. I believe it was also mentioned in a recent Unherd article about the dangerous implications of this misuse of powers, but I’m sure you are capable of using a search engine.


I was asking because American right wing news has frequently lied about what was happening here in Canada. To my knowledge there hasn’t been a single report of a frozen bank account over a donation except for some debunked tweet by a Canadian conservative politician.

Thus, I asked for a source.


This isn't _exactly_ true. JS will await on anything that is Promiselike (an object with a `then` function that accepts a callback). See the TS definition of Promiselike.


JS will await on literals too, it just immediately resolves to the value of the literal.

I use this all the time in async functions with code branches, some of which await and some return an immediate value.


I've both personally and professionally worked on builder-type applications in the past and found that lenses are always the most elegant way to do state management. Over the past month I decided to hack on a general purpose library for React and lenses with the end goal of coming up with something that felt _good_ to use. Cheers!


Yeah that’s fair. Not sure about you, but in the past I’ve struggled with keeping Jest module-level mocks in sync with their actual interface. Was playing around with how I could get around it and this is something I came up with.


Keeping mocks and tests in general up to date with reality can be tricky for sure. One thing that works very well for me, since you're using Typescript, is to use the ReturnType [0] generic to make sure the mock matches up to the actual implementation.

[0] https://www.typescriptlang.org/docs/handbook/utility-types.h...


I think this suggestion highlights why I'm not a fan of the module-level mocking approach. It puts the onus on the developer to ensure that type checks are present where they wouldn't otherwise be. On larger teams, I've found that stuff like that is too easy to forget about or choose not to do.


Speaking of fuck you patterns, has anyone else been part of the A/B test where navigating to an Instagram page prevents you from using the back button? They somehow clean my tab history so that I can’t go back to Google. It’s been happening to me for months!


I'm glad you mention this, thought I was the only one. I've been experiencing this on facebook.com, for years.

I'm puzzled how this is even technically possible. A website isn't supposed to be able to clear the history of where I came from?


It's Firefox doing it to prevent Facebook (and Instagram) from scraping your history.

If you're not on Firefox, then I don't know.


That makes total sense, thanks!


Is there an announcement, help page, or issue/commit explaining this feature?


There's this:

https://www.mozilla.org/en-CA/firefox/facebookcontainer/

I'm not sure if it's built into some versions now?

It does it on my Windows computer but not my Linux laptop, and I don't remember explicitly installing this extension on either.


Ah of course. Shows how I hold my bias toward Facebook :facepalm:


This game is incredibly good. It's everything Diablo 3 should have been.


Yep. Just started playing it. It's like Diablo 2 with materia from FF7. Perfection.


This is exactly how I describe it to people. I've been playing since closed beta and put more than 1000 hours into it, still can't beat all the end game content (in a good way)


Inability to zoom out more kills it for me. Feels too much like diablo 2 at 800x600


If you adjust the aspect radio by playing in windowed mode and keeping it full-width while lowering the height, you gain significantly more visibility. I imagine playing on an ultrawide display would have a similar effect.

Granted, it wasn't built to support a zoomed out camera so some controls behave poorly at the outer edges of visibility.


One of biggest downside of that game for me.

Fortunatelly at least few years ago there was publicly available zoom hack that obviously will get your account banned, but it's not something I would care about in F2P game like ever.


The definition of an introvert is a shy person.


Audrey Hepburn, Hollywood star and UNICEF Ambassador:

"I have to be alone very often. I'd be quite happy if I spent from Saturday night until Monday morning alone in my apartment. That's how I refuel."


Agree with ionised and reddit_clone (below). I'm an introvert and I am definitely not shy, nor are my thoughts 'self centered'. It's simply that it takes more mental energy to engage with those I don't already know.

[edit] to clarify to whom I'm agreeing.


I am pretty introverted. It's not that I'm shy, it's that conversations take a lot of mental energy for me, it's exhausting.


Except it isn't. I suggest you do some reading and educate yourself.

No psychologist worth their salt would define an introvert that way.


There a various definitions, but the one I like is: introverts exhaust energy while around people, extroverts recharge.


It's only one of the definitions. If anything, it's the common one instead of being the scientific one.

http://www.dictionary.com/browse/introvert says:

"introvert

noun

1. a shy person.

2. Psychology. a person characterized by concern primarily with his or her own thoughts and feelings (opposed to extrovert ). "


No (2) doesn't sound right. It makes it sound synonymous to 'self centered', which I am sure most introverts are not.


Your "own thoughts" don't have to be about yourself. It just means you're paying less attention to what other people think or feel.

(edit: added "don't")


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: