skysight-inc/HackerNews huggingface dataset:
I'm sick of the argument that those who advocate for the use of an ORM have a dislike of SQL, or simply don't understand it. Perhaps this is true of newer developers who have "grown up" on ORMs, but for the most part advocating for an ORM is simply wanting to employ the "don't repeat yourself" thing and having enough battle scars to know that trying to compose your own SQL statements results in vulnerabilities, bugs, and a mess.

> If you define your database properly typed, defaulted, and not null unless an update field that sort of layer isn't needed at all.

Which is a laudable goal but not realistic if you've worked on any backend that has even a hint of organic growth or legacy. I know of at least two books on the subject of dealing with anti patterns in and the refactoring of database schemas.

Database schemas are the mortgage of technical debt, they can take literally decades to pay off if you don't get them "right" in the first place, or you pivot, or you're growing quickly, or you have a large team. Using an ORM allows you to abstract away and isolate a lot of the technical debt, create single entry points, and then fix those.

And in the part where using the ORM's syntax would obfuscate or complicate compared to SQL, then just write your own SQL query anyway and put this in a virtual view.

Sure, you can create your own entry points that handle the madness and domain knowledge, with your own SQL handling to put the pieces together that return a nicely mapped object or data structure. Then what have you done? You've written your own ORM.
As a last resort they can - if the market forces them to - but I suspect that is less profitable than selling new stuff cyclically.
> Why do you have to know my ethnicity? Why do people in the US _constantly_, and I mean CONSTANTLY, talk about their origins? Literally no one cares in Europe, but it's always said in the US. "Native-american btw", "african-american btw", etc

As a Canadian who's lived in Europe for the last 4 years, this is farcically false.

When my family emigrated to Canada, we were Canadian from day 1. And as you also noted in your dashed qualifiers, all those people are still considered AMERICAN. That is the North American way.

On the other hand, in Europe, i meet people who have been in their current country for 3 generations but still consider themselves as from the country of their ancestors.
Excellent work! Taking a look.
I don't think there is a huge difference with Facebook. You cannot delete your face (well, you can, but at a huge cost, with facial surgery).
So when your photos are leaked, you can't do much about it, deleting your Facebook account won't help here.
The vast majority have been convinced that the "I've got nothing to hide" defense protects them. It works with surveillance, and it'll work with this too. They've already given up liberty to purchase some temporary security; Franklin would be upset.
There's a couple hundred dollars of lithium in a 100 kw-hour battery. It isn't particularly driving the cost.
I recently heard the word "upcycling". It's very self-explanatory and clearly is what we need to do consistently.
> "Anvils were also traditionally fired on St. Clement's Day, honoring Pope Clement I, the patron saint of blacksmiths and metalworkers."

Hm. Obscure. Intriguing. Okay. Then briefly down a rabbit hole I learn that Saint Isidore of Seville is the patron saint of "the Internet, computer users, computer technicians, programmers, students"[0]

[0] https://en.wikipedia.org/wiki/Isidore_of_Seville
> The card is probably a good idea. No fee, simplicity, and convenience are good for the consumer. Only selling to Apple product users means a certain band of wealth and thereby lower default rates are implicitly targeted.

The strategy may work in the US where the payments ecosystem is incredibly dated and backwards, but Apple Card is very much a me-too offering in nearly every other developed economy.
Unfortunately, there’s a clear difference between nation states and us that I don’t feel it’s productive to say, “Well, there’s no treaty, so obviously you and me are okay with it”. My country does plenty of things that are questionable or immoral. I’m still not okay with it. Do the politicians care? Nope. But their doing it despite my objections doesn’t make it any less immoral.
Yes, xv6 book is on my reading list :) As for other books - Appel's Modern Compiler Implementation in ML and Cooper/Torczon's Engineering a Compiler come to mind.
Instead they showed a credit card, that look's nice, but I fail to see how Ben think's that reduces churn (credit cards aren't sticky, incentives are - no one will buy a new phone because they're middle of the road rewards are there)

You just contradicted yourself. “Stickiness” by definition is not about people getting “new” phones it’s about people staying in the ecosystem and spending more. The whole idea behind services is to get people spending more money in the ecosystem since they aren’t buying new phones as frequently.

The credit card is basically useless without the phone. If you track your spending with the phone, you’re less likely to leave and you get simple cash back with it that goes into your Apple Pay account.

Subscriptions for games are really a big deal. The whole ecosystem for games is slimy with ads and in app purchases of gems and loot boxes. Games that are bundle with the subscription are curated. If you have kids, signing up for a games subscription and handing them a new $329 iPad or hand me down iPhone is a no brainer. AppleTV+ won’t be a big deal, but get a subscription to Disney+ when it comes out and you have the perfect item to keep them busy.

I would get Apple News just for one of two magazines that I care about.
Why does it seem like you are giving him a pass for treason? Everyone has struggles. This does not give you a pass to become a spy for a hostile foreign nation and endanger the lives of your countrymen.
The apple card is sticky because earning 2% cash back with it requires the use of Apple Pay.
This looks great! I’m going to give it a shot.
I'm still looking for a good way to I'm using this approach, but looking for a way manage dotfiles for multiple machines. Having separate branches feels clunky, since there is a lot of overlap and tweak may involve making the same tweak on several branches. Any recommendations for managing this situation?
They're not that uncommon. You can do this with SQLAlchemy in Python or jOOQ in Java.
Way to ignore the point to argue about semantics. Fine. Explain why private ownership of business necessitates that this company push yoga teacher training, then?
Like a cyclical interaction with a neighbor brane which is essentially another universe? Because that's the ekpyrotic universe model. And it fits with your imagination.
You could use views. Although personally I dislike adding this layer of obfuscation. Generally devs are very underskilled in SQL (relative to it's importance) and ORMs hiding the SQL IMO is one of the reasons why.

There is great value in having the entire SQL easily visible in your source code. If there is a performance issue with a specific query my app is running, I can very quickly pull it out and into a database IDE and see what's going on using the more detailed tools available (REPL, execution plan/statistics usage analysis etc).

If the query is composed from a bunch of ORM function calls, I have to step through the program to first generate it.

Reducing friction around debugging allows your devs to become more capable in fixing things or making them work better, and SQL is no exception to that.
Hi ishakahmed,

you are right! Now it's fixed, a thousand thanks!!
I'd be interested in this on a modern smartphone platform with a touchscreen and virtual keyboard just to cut Google out of my life.
I use something even simpler

My dotfiles git repo is meant to be cloned in my home directory. It comes with this .gitignore committed in the repo:

/*
!/.vim/
/.vim/.netrwhist

Basically it ignores everything in my home directory, unless I explicitly `git add` it, which matches my workflow. For the few cases where I want to notice changes (like the entire ~/.vim/ subdirectory), I explicitly un-ignore it as you can see above.

The only downside I've experienced is my bash PS1 prompt shows the status of the dotfiles repo (branch/dirty/etc) in any directory I'm in that's inside my home dir - I've learnt to ignore it, and it doesn't interfere with CDing into an actual directory that's its own git repo.
We spent so long waiting for linux on the desktop. Turns out insurgency was the best strategy: sit back, launch a few attacks, and wait for the desktop to die ;)
Thanks,

But cryptographers only love math and “Andy” and “Barbara” are friends of "Alice" and "Bob"!

[1] https://www.schneier.com/blog/archives/2012/09/replacing_ali...

[2] http://cryptocouple.com/
I love services like this, but I am super weary to adopt them, particularly after Now v1's deprecation. It's kind of difficult to run a stable production application when your Platform-as-a-Service provider announced major breaking changes-- aka killing docker, and forcing me to rewrite my application in serverless lambdas (which doesn't work for all use cases, like web sockets).

It killed the category in my mind, it isn't even your fault. I now feel far more comfortable running on bread-and-butter tools, like AWS/GCP/Azure with Kubernetes. The overhead sucks, but at least I can plan for things better than I can when hosting with fast-moving PaaS providers.

Hosting is too important of a problem to wholly outsource entirely to a PaaS platform if it's subject to shuffling at a rate I can't control (exception: personal projects with no real availability expectations). That's the double edged sword with platforms like these. They let you get your application online rapidly, but you could be subject to unforeseen technical debt at the hosting provider's will. I learned (the hard way) that I'm not a fan on managing risk under those terms.
It’s because the topic is how you set norms and ethics. If your ethics are relativistic and entirely dependent on how ethical or unethical your peers are, I’d suggest that your ethics aren’t ethics and more like an opportunistic world view devoid of such.
Wow, I wish I'd learned about anosql a long time ago! I love the elegance of it - thank you for the rec!
This is a bit of a misunderstanding of the problem. Imagine you took a car and you drove in a straight line in any direction in the US where you'd loop back at the end. And now imagine somebody else did the same thing. How likely would you be to collide? You'd have either 0 or 1 collision point in your paths. Usually it'd be 0. And even in the case where you had 1, the chances of you both hitting that point at the exact same time would be infinitesimally low. Now have thousands of cars do the same thing. And all the above still holds true over one 'iteration', or two or three or... However, any two cars that have at least one intersection point will eventually collide (excepting a perfectly synchronized orbit timing) so long as they keep going. It might take a long time, as in potentially thousands of years, but if you get enough cars doing this and you run them long enough - eventually you'll get a pair that will have a collision within some foreseeable time. This is analogous to how things collide in space, except space is much bigger.

In other words Kesseler syndrome does not create some sort of impassable barrier -- in the above analog imagine your risk of getting hit by a car if you stand in one place for 30 seconds - again, basically 0. It just makes collisions, over the longrun, more likely to occur between orbiting bodies. There's absolutely no risk of impairing our ability to get off Earth -- just our ability to circle around it for years in fixed orbits. And in reality, I think it's almost certain we'll eventually see a Kessler syndrome type event. The first thing two capable nations involved in an armed conflict would do is to destroy each others' satellites, resulting in a severe mutual crippling of both offensive and defensive capabilities (as well as civil chaos - imagine if GPS/comms were all taken out tomorrow!) at very low cost. So the only way we do not see a Kessler Syndrome type event is if there's literally never a significant armed conflict between any of US/Russia/China/India, and whatever other future nations develop this technology. The odds of that seem to be pretty much 0.
I personally have ported about 20K LoC from a java application to go; the majority of the code was from an underlying library used to model the data structures being used. It was mostly a class-by-class, function-by-function process of porting the base data structure and then all of its implementations, and culminated with the port of the services which uses all of it.

Regarding the author's frustration of moving POJOs over (and their variable declarations), I used sublime text to select all variables based on a shard token, then cut them and moved them over by word. You can then lower case the first letters of every word, and then find-and-replace by type using a shared token. I found this method very quick and effective.
Google should just kill the YouTube app for iOS and see how long this exclusive bullshit lasts.
“It’s not going to handle a day, a week, a month, a season,” said Moniz

I believe that way solar thermal based approach is going to be future; energy stored in form of intrinsic heat of a liquified salt solutions (by the concentrated solar beam), or may be for that matter simply inside heated stones (by solar CSP), and then passing water to convert in steam and run turbines!!
But ya that will be for grid level solution, not the mobile electronics' power source.
What’s wrong with MSG?
Thanks,

I will add this comic strip.
Curious if existing owners can upgrade to the Raven motors.
Isn’t the point how long you used the shaver? And how many lesser shavers would you have needed in that period that would also have ended up on the shelf?
Agreed. Probably a bit of a dealbreaker
While alcohol will help put you to sleep (so will a concussion) it inhibits the restorative function of sleep. (1,2,3)

I’m all for the hedonistic rationalization for alcohol. We all need a release. But it is disingenuous to say alcohol has any positive effects beyond that. It is no different than sugar in that regard. My Saturday night cheat meal is filled with both, and I always look forward to it. But I don’t try and pretend that it’s in any way good for me (beyond psychological).

To that end, I completly agree with you that there are plenty of people who enjoy a few drinks without any real damage. I'm saying classify alchohol for what it it. The tobacco and sugar (4,5) lobbies love to pretend that they are something which they are not to sway public opinion. That is dangerous to society.

1. https://onlinelibrary.wiley.com/doi/abs/10.1111/acer.12006
2. https://www.amazon.com/Why-We-Sleep-Unlocking-Dreams/dp/1501...
3. https://peterattiamd.com/matthewwalker1/
4. http://sugarscience.ucsf.edu/sugar-papers-reveal-industry-ro...
5. https://well.blogs.nytimes.com/2015/08/09/coca-cola-funds-sc...
You don't give any particularly good reasons for why you feel a certain way. You have a very specific product, a personal hygiene product so obviously if you no longer want to use it that's your prerogative but that does not negate the value of having something that lasts a long time.
An example on iOS being?
I’m not a CPA or accountant. Investopedia has a few articles on the subject.

I think capital losses can completely cancel any capital gains - kind of obvious if you think about it - if you lose $10 on sales of stock A and gain $10 on sales of stock B you had not income from your activities.

In addition, you can apply $3,000 in losses to reduce ordinary income (not taxes directly) and carry the remainder to following years. So on sale of stock A you lost $5,000, on sale of stock B you gained $1,000. You can eliminate the gain, have $4,000 left, reduce your taxable income of $100,000 to $97,000 using $3,000 more of the loss, then have $1,000 left over for following years. In the next years I think you can use that loss to reduce gains then income in the same way.

Hope I’m right and that is clear.
Not necessarily.

To a large extent, LEO aggression can be modeled even more dissuasively (collapsing into MAD) via game theory.

If I blow up your satellites, and I don't know where the pieces are liable to go, then I imperil my own satellites in a similar orbit.

Ergo, if I have space assets and ASAT capability, the strictly dominating strategy is to publicly declare I will only deploy my ASAT weapons in defense or if strategic red lines are breached (e.g. territorial invasion).

Consequently, it's in the US's best interests for other countries with ASAT capabilities to increase their satellite capabilities.
What is "ekpyrotic" ? Google Translate can't translate it, sorry.
It also got important facts wrong: The alleged partner was in reality a Microsoft senior employee.

There was already a large lawsuit in 2015:
https://www.theguardian.com/technology/2018/mar/13/microsoft...
Yeah they do nothing to even hint at possible correlation without causation
I was wondering why they didn't just irradiate the infected room and did a preliminary online search. I'm not a specialists and the following are not specific to Candida Auris, but it seems some of these organisms actually thrive under radiation. Reminded me of The Andromeda Syndrome.

https://www.ncbi.nlm.nih.gov/pubmed/15907555

https://mbio.asm.org/content/7/6/e01483-16

https://www.scientificamerican.com/article/radiation-helps-f...
Be cautious of the stupid.
That's all.

http://www.zoon.cc/stupid/
The arguments is against a specific level of API that is particularly bad. Expecting simple means to obtain objects out of tables is unreasonable, and attempts to that purpose must cheat one way or the other; in the opposite direction pretending that a database can offer "persistence" for objects is naive and highly constraining.
You're over thinking it. Put it on product hunt, put it on HN, explain it in a comment if you want or need to. Read the feedback, take in the useful parts and don't let anything else get to you. Good luck with it!
Evolutionary changes played a crucial role in industrialization, study finds
>The games platform sounds both boring AND unlikely to do well

I'm not sure, the whole in-app purchase thing is a bit of a mess. I could imagine parents subscribing just to keep their kids out of that cesspit.
Most designs aren't good enough to become huge sites like Reddit. Most redesigns aren't better than most designs. So if you take a very successful site and redesign it, more often than not it'll become worse.

Unless you really, really understand why your original design was so successful in the first place and you make sure you keep those things, but Reddit's just seems like generic web design of nowadays.
Aren’t all large companies exploiting loop holes in the tax system? I hate the new MacBooks, but I generally like Apple products and will continue to buy them.
Talk about the Citybound engine, a high perf city simulation written in Rust
I use stow. But honestly, I don't think it's better than git.
Hahaha, it's still running. I ended up running out of drive space on the SSD I started it on, which began a lengthy process of shuffling things around, cleaning indexes and VACUUMing two very large databases (60 and 80GB, which ended up running all night), and finally (as of this morning) restarting the process of populating the FTS table. I will respond when it's finally done, I promise!
What I don't get is that not only the surface in question is enormous (even more vast than the oceans), but also in 3d (think tens of thousands of layers of ocean surface). How can a few dozen 10cm debris be such a big deal? They may be deadly if a collision occur but how likely is such a collision?
And if that was 10 dollars of sodium, that sounds like a pretty big cost reduction to me? Sodium is cheap to extract from all sorts of sources, less toxic to humans than lithium pre-processing, and you don't have to move it around the world.

Sodium batteries don't just replace the lithium, they also use phosphorus electrodes. Also easy to source.
People can get your DNA without your consent already, as your DNA gets onto every object you touch. The most valuable part about sending stuff to a DNA company is your consent, especially considering that sequencing costs have a super-moore's law like cost reduction. Once they have your consent they can share it, sell it, rent it, to recruiters for ad targeting, insurances, etc etc. Without consent they'd get onto dubious legal territory, if e.g. Amazon took gene samples from refunds. But maybe it'll just become part of their TOS, you not being able to opt out unless you don't want to refund your stuff to Amazon.

Not sure if the ability to sequence DNA yourself is really beneficial to privacy, after all that allows people to sequence the DNA of many people around them.
What do you mean by "deal with"?
Why would I? I think the article was clumsy and clickbaity in its headline. I do think that these outcomes are typical under our brand of capitalism in the US though. A lot of money is made by shaming and tricking people and using that leverage to make them work for you.

We might as well talk about something interesting, and common misunderstanding of capitalism which conflate it with "a fair and free market" are interesting, no?
But even the LOOP macro has returned values for a long time. It isn't even hard to see how the new stream/collect API if Java is just approaching what LOOP has been doing for decades.
Why don't you voluntarily consume benzene in moderation? Because you don't want cancer. Same with alcohol.
It's not strictly relevant but there's a quote my dad used to like, apparently from Mark Twain, but who knows. I'm paraphrasing: "two people can keep a secret as long as one of them is dead"
I had the same issue. I clicked the verification link, but it redirected me to the main site and I still have "You cannot create any emails yet because you have not verified any email addresses".

Later I noticed I have to go to "email addresses" and "check verification status". You'll probably lose some people at this step, since I hadn't expected to need to do that.

Also in "my campaigns" it says "Click on the campaign name to expand" but actually you have to click on the arrow at the end of the row.
Not to be the negative-Nancy in the room but there's a massive gap between prototype and commercially viable at a chemical level and then another between chemically stable and commercially producible. I wish them the best, but there a probably at least a dozen similar companies with roughly similar claims with different underlying chemistries (flow batteries, etc.) and many more that haven't panned out for one reason or another.

People are most definitely trying to replace Li-ion but its not an easy thing to do in practice, even if simple enough on paper.
They have around 100 million iPhone users in the US, so that seems like a very reasonable market to target, even if no one outside the US ever uses it.
Japan's Hayabusa2 spacecraft bombs Ryugu asteroid
Received same HIV question. Severe Candida infections are apparently a new phenomenon.
> I could imagine parents subscribing just to keep their kids out of that cesspit.

I can see parents resenting subscribing just to keep their kids out of that cesspit.
They’ve tried. It isn’t as simple as that. If it were it’d happen.
Thanks for answering. That is clear, and it makes sense.
I wonder, though, if your parents get sequenced, is that not also valuable information about you?