skysight-inc/HackerNews huggingface dataset:
How do you guys handle data migrations (not schema migrations)?
For context - we have a RDB that has a column for "params" which is basically a JSON representation of a report object in our application.

Problem arises whenever we want to add new functionality that requires an API change we need to "migrate" the data from one JSON representation to another (or just add another translation layer whenever we fetch the data from the DB).

It's becoming unsustainable and every new piece of functionality we add needs to account for time to do this data migration (or adding a translation layer).

To be specific - this isn't a schema migration - we're not adding, removing or changing any columns. It's a mutation of the data itself.
Brave IOS browser has the ability to redirect automatically which you can setup for reddit.
But you can’t automate that trivially
At wethinkcode.co.za (A non-profit coding academy in South Africa) that's exactly how exercises and projects are done. Students are encouraged to add more tests than we provide initially, but grading is done by running the provided tests.

Disclosure: I work on curriculum matters for WeThinkCode_. I like the exercise in the article and I'll be proposing we add it to the Java curriculum. I'd be surprised (and not in a good way) if the majority of our students fail to make it work.
I agree the definition is overly simplified. The main point was that training implicitly contaminates the model with a presumption of derivation, training is not some magic pixie dust you can sprinkle onto protected works and strip copyright away.

The next thing to discuss is if the derivative work is sufficiently transformative to be considered fair use without legal authorization from the rights owner. There is no easy analogy that can be made here, the type of derivation - transformation we talk about has no precedent in intellectual property law. My position to your challenge is that an AI text classifier/filter/recommendation engine is a sufficiently transformative derivation of the copyrighted works, whereas a general purpose machine that can produce works similar in style, content and character with the originals is not sufficiently transformative and should require authorization.

The way I propose we arrive at that conclusion, without any legal precedent, is one based on first principles, on the intent and final purpose of copyright law. It's a political philosophy position, namely that intellectual property is a social convention designed around the creation of a common good, it exists to promote "the progress of science and useful arts", general flow of ideas and knowledge, by creating an economic incentive for creators to produce and make public their work - as opposed to keeping it secret to control its distribution, or abandoning creation for other fields, both net negative outcomes that diminish the public good.

So when judging if the work of thinking machines is sufficiently transformative, we should ask: is what they output a net positive contribution to the common good of creation and widely available intellectual works, ideas or art? Is it at least not-negative? It's easy to make that argument with text classifiers, but much harder for something like Stable Diffusion. The algorithm it runs is completely dependent on human produced artworks, it cannot function without such an input and can't even produce a single creative bush stroke without them. Yet, the works it remixes using creative features of the originals can and indeed have already started to economically replace the work of original artists in the market place. So treating that derivation as fair use pushes society into a bad equilibrium, where artworks are less valuable and less likely to be produced, while the AI machine owner appropriates much of the economic value of the works it slurped in training. That's not 'fair use', and the AI machine as a whole is not 'fair use', even if some, or even all, of the works it produces could be considered taken individually, as fair use of the originals.

This will continue to be true for as long as human creators remain a key ingredient of the automated creation process. When and if a machine can start to paint after reading an university course on painting, then that would be indeed a fair use of those manuals.
Exactly, as I mentioned above. CQ requires training (but not much—I have no trouble recognizing it when the signal is only modulated noise), but SOS is another matter altogether, even those not trained in Morse recognize the sound especially if repeated (that 'ring' is unmistakable).
And spoiler: you can’t use those for spam.
(1) You will benefit immensely in the applications built from these sorts of structures by keeping the version log for an entity in a separate table from the current value. First because you can just use old-school triggers, “any update over here triggers inserting a new row into the corresponding versions table,” you don't need to even care about implementing the versioning in application logic. Second because the sorts of queries that would involve looking at previous versions tend to not be the same as the sorts of queries for general data manipulation.

(2) To give an instance of where (1) becomes important, suppose you change some X to X' and then want to change it back. Suppose that after the change some entity was deleted—X foreign keys to a now-deleted value, X' does not. Most applications that try to shove both current state and history into one ubertable disable a bunch of constraint checking and other suchness, and permit this dubious feature of partially-rolling-back into an inconsistent state. But if you just DELETED the row when you said you had, then you would have gotten a foreign-key-error and your user would have copy-pasted you on their “unexpected error occurred” error message and you'd immediately be able to diagnose what foreign key constraint was blocking the undo, rather than mysterious failures several weeks later.

(3) Regardless of your stance on (1), once your application supports deletion, your relational integrity usually suffers because the technically correct value for all of the columns in a deleted-row is to make them all null. This is basically the problem that databases do not have sum types. A sum type in a database is not hard to create once you need it, create a row that has 3 columns which foreign-key to other tables, plus constraints that exactly one of these values is non-null. So the very lightweight construction if you are upset about denormalizing your data is for a Cat in your Cats table in your PetStore database to be a nullable pointer to a CatVersion. So that's how to proceed if you REALLY want to normalize.

(4) All of the above assumes that for every edit to an entity you will save a new row in the versions table, copying all of the other data. The problem is that inevitably some tables get super wide as they have to hold dozens of pieces of business data together, and it's never the ones that you initially expected. There is an easy fix for this as well, it is for versions to also be “mutable.” Whaaaaa??? Yes. Snapshots plus deltas. It's not really mutable because it's append-only.
Well if they mention their dad is in prison its a bit too late to sterilize, don't you think? If folks in prisons are rather less educated and have lower IQ than average, they are having children earlier in life than average... all this means that you probably won't catch the issue 'at the source' in most cases so to say.

That goes without even going into morals, bad incentives and overall this-is-not-a-good-idea-in-democracy stuff. Imagine if, instead of these severe punishments, you would try to make people better human beings in prisons, teach them skills they can use for honest life once getting out and actually properly help them out? Most folks in prisons are not career criminals, not when they enter the system. I know, very non-righteous-conservative-living-by-bible approach. Instead, ie in US prison record ruins your life, and population generally doesn't give a fuck, you went to prison, you deserved it, now suffer and suffer more, you are sub-human.
Four of those languages are ones where you can almost always statically tell when code is dead. Two or three of them are dynamic languages with large investments by multiple companies and communities to make the dynamicness less terrible for performance and code size.

The one that is neither is objc (ignoring recent awesome improvements like objc_direct).
> For most things in life where we could impact the lives of other people materially - driving is a good example - we ensure some minimal amount of training before letting people perform that activity.

> How about some minimal coaching so that all parents are aware of the state of the art in child psychology and techniques to do better as parents.

In my country, we had a housekeeping class in school, that taught everything from basic cooking skills, to safety with electrical appliances. There was also a woodworking class, where you were taught how to use various tools correctly and safely. Later, in university, there were courses that concerned things like paying taxes in more detail, employment law and how small businesses work etc.

I think that parenting classes sound like a good idea. It can also help people figure out when they're absolutely not ready for something or are not comfortable with it - like happened to me and getting a driver's license.
I'm from Kenya now Locked out
> The goal of incarceration is to reform, not take revenge.

s/is/should be/
This take is crazy. I hope you don't have, nor will have kids.

Fathers should absolutely be there for emotional support, especially for small kids.

Also, distant mothers are not a modern creation, there have always been distant mothers.
Where on earth do people find interns this is good
OK, this is going to sound extremely controversial, but as a person who lived for many years in three different worlds:

1. The Western world (born/raised/educated in Canada)

2. The Arab world (lived for years in Jordan, have Muslim/Arab roots)

3. Eastern Europe (currently living in Ukraine for many years, now volunteering in the war)

My observation is that 1. has an overly effeminate culture and harmfully stifles masculinity, or the other extreme 2. has an overly masculine culture and harmfully stifles femininity, 3. celebrates both feminine and masculine qualities in a mostly healthy way, and is the most "balanced" of the places I have lived. The one problem I would say that is way too common here in Eastern Europe is absent/cheating dads, but that is balanced by a strong and independent feminine (not feminist!) expression.

For me it was a real awakening and a welcome cure to live in a place where men are men and women are women.
You say that, but as an adult, look back how talking about feelings was shot down repeatedly by everyone in your life.
TOS applies to the commercial service, not to GPL code. You can do whatever you want with the code within the bounds of the GPL. But the GPL doesn't magically obligate me to continue doing business with you. I can't sue you for re-distributing GPL code. But you can't make me provide you new versions of the software after you've breeched our agreement.
Doesn't link to the article, which is an unremarkable profile of some kind of crypto billionaire: https://www.reuters.com/investigates/special-report/finance-...

It seems extremely weird to use this of all things as an example to show how unethical reporters are.
Truth be told, boiling tea leaves continuously does extract all the tanins and could lead to gastric distress for some.

Better to make the tea the usual way and then keep it warm. You can use the leaves multiple times, though.
I vaguely remember a device back in the day that buffered a 4 bitplane 640 pixel scanline to output a 320 pixel 256 colour mode.

Seems entirely doable on a rp2040. The arm cores have so much power that there's hardy any work that you'd use the Amiga for though.
In my opinion, Nim is too broad. I did some code in Nim to extend/make Python ML (Huggingface) faster and Nimpy was very good. Then I tried to learn how to use Nim for systems programming and barely any guide exist except for open-source libraries.

In my opinion, Nim's ability to be compiled to C, C++, and JS make materials for new users too defragmented (this also almost occur with Clojure, IMO, though JVM/JS/and now Dart targeting make sense with their various niches). And all the tricky parts like Orc/Arc/no GC.

But I really love the Python + Pascal syntax, to be honest. Maybe even more than Lisps.

I really wish I could buy the new Nim book but it's kinda hard as a 3rd worlder to import dead-tree books. Unfortunate.
Why not cut out the middleman then?

People who "agree with what ChatGPT wrote" are redundant in a discussion if they're merely relaying it.
Warning, if you are a man with low self-esteem do not visit that sub.
Programmers, in reality, is like trader.

We jump on hype, just like you jump on a new coin, pump, dump happens, of course.

So, it's reality, what's future is based on usefulness to the masses (enterprises).
They have done some nice stuff recently with objc_direct. The minute you can annotate away the dynamism it’s much better. Question is what’s the best way to do this? Lots of folks have been investigating analysis of entire apps either at the source level or some ir (maybe mlir some day).
Maybe it was the phrasing from the comment I was replying to, but yes, I understand the fear. I'd just leave them alone, more or less, for a long time.

If they see their parents swimming, the desire to try will come at some point. That's when the help should kick in, in my opinion.
I'm frustrated because it has always bothered me and it tells me nothing, but people keep doing it, so there must be a demographic to whom it appeals to.
Why, I ran Slackware on 32MB back in 1996. /s
If you forget about a PHP container for a few years it will /also/ have 40 new vulnerabilities. Actually, containers are worse because OS updates of core shared libraries do nothing. You have to rebuild every damn container.

Setting up monitoring for your docker containers is also a whole thing. :)

I think you’re taking my example a little too literally. My point is not that docker/k8s/whatever is bad; just that the ‘new’ adds features at the cost of simplicity.
Can you elaborate? What exactly are the behaviors that cause them to be seen as an unwelcome influence?

I'm genuinely asking because it's interesting, not to harp on you but because I'd like to know more.
It's not really an issue though.

You just restore the OS without the time machine backup and then you browse the time machine backup manually and copy the files you want. It's usually just a random file it can't read correctly in it's index so it breaks the whole thing, it's not like the whole backup is useless, you can manually browse all the files and you are still good, not sure how that is the 'fuck you user' approach.
Bitsavers Software Archive (2022)
Because discussions thread in various directions. It's not a school exam.
I’d put higher aggression (and capability to act on such) into the mix as well.

From a long time ago, we were the aggressive hunters, warmongers, protectors of everything that “belonged” to us, including women and children.

To this day, we’ll often be the protectors (and usually aggressors) in a violent situation, for the reasons above.
That assumes there are no fit and willing parents.
…and unfair to mothers, too!
Sounds like bull. ;)
I think the original expectation was you wouldn't segment it, and that's why each address class has it's own defined range of ipv4 space. See rfc870, MITs /8 was listed as "temporary" (lol) and they had several separate specific class Bs.

The ghost of /etc/networks rattles in the distance..
This isn't meant to invalidate what you're saying, but this whole thread reads like a parody to me. 1000 services all making requests to Zanzibar, and this oreo keto thing.

Makes me think of this: https://m.youtube.com/watch?v=y8OnoxKotPQ
> If you want no ads and high quality but want to play games on the go, buy a Switch.

Hardly comparable to a device you already own and also most likely always have with you. It's not a solution for many to carry a dedicated gaming device with them always, just in case they have 15 minutes they wanna play a small game.
Investor Hunter's AI does automate the drafting of highly personalized introductory emails to potential investors. However, as of now, the system does not send the emails automatically. The reason for this is to provide you with the flexibility to send emails from your own domain and to review the message before it gets sent.

We are planning to integrate with LinkedIn and SMTP to automate the email sending process. However, as of now, emails are sent manually by the users.
I suppose you were expecting him to throw smalltalk or clasp or prolog/datalog in there to get your approval? This was rude.
I see where you're coming from. Over the past two decades, I tried different sports like going to the gym, jogging, swimming, body pump, etc. but never stuck because it was just a not fun. In the past 5 years, I've discovered at-home Yoga (on YouTube, I hate in-person classes), hiking on weekends, and going for 2-3 km walks after lunch each day.

What works for me might not work for you, but my broader point is that exercise != exercise. Try to find something that you like, and that you can fit into your schedule. Even if it's only a 15 min walk each day, during which you can e.g. listen to music or a podcast, reflect, do some people watching just or do nothing.
Yep.

And what's even worse is that the semantics are muddled.

foo.view.bounds.size.width = 200;

This will not set the width of the view to 200.
You don't get to decide what should be at the top of the comments.

>And its definetely NOT about programming, OR leadership

Never had to be. Perhaps you took the name "Hacker News" too literally?
People have this weird thing where, if something comes about as an emergent property of a market system, then it’s fine, but otherwise a much more carefully organized result is not fine. Like if corporations raced towards an AI apocalypse then there’s no one to blame but if a central planner did it, then that would be an evil plan that should be stopped. Same with non biodegradeable plastic, destruction of ecosystems, loss of biodiversity, and so on. (By contrast to all these, fossil fuels are a slowpoke.)

For example — we don’t particularly need to do anything to reduce birth rates of technologically advanced societies societies with human rights. That’s because women choose to study and work on their career in their 20s, while men try hard to save up to afford the sky-high real estate prices. The market does the eugenics for everyone.

If anything, the fear that uneducated populations or those in low-cost-of-living countries are going to “replace us” is a result of that simple fact. Comparing continents, Africa is expected to continue to have a ton of kids per woman compared to, say, Europe or USA.

Religion, of course plays a role. When the condoms are off, the religion doesn’t matter — you’re going to have a lot of babies. The only difference is, how early do you get married? Religions tend to frown on premarital sex.
It's because a lot of engineers are learning to become better plumbers, not better engineers.

Trying new technologies means you're mostly becoming better at using someone else's APIs - this is the path to eventual burn out as the churn continues.

There is a better path - See through the hype. Ask those around you what's the downsides to this approach? And you'll often get blank stares... Why? Because they don't know either - And if they don't know the downsides, they don't really know. They are following the hype curve.

Focus on the fundamental engineering principles and asking better questions - take the bottom-up approach and the reward is you'll find teams that aren't taken by the hype curve so easily.

PS. There are a lot of good technologies that come out, but staying behind the hype curve a little helps you make better judgements over time.
And I thought it was only the English who have such a close relationship to tea!
It can be healthy for a family not to be together. Fetishizing stability and the nuclear family over happiness of the people in that family isn't necessarily a good solution to anything much.

Sure, a good relationship might not resemble the hollywood ideal very much, but "duty to the family" leads to misery for a lot of people, and kids don't grow up happy and well adjusted when mom and dad are very unhappy with their lives and each other.
This is not ignorance. This is UI/UX design.

Some of us are old enough to remember people carelessly pressing the OK button in a Windows dialogue without reading the mesage in it.

Everybody wants to stop an annoying sound.
If it fosters civil discussion because everything is discussed through the same lens that you agree with, which is the exact same view point as 4000 other feminist subreddits, then I'm not sure how it would add anything.
Franz Kafka meets the Wild West.
> With the Netflix app both of this won’t be the case.

Thanks, I'd forgotten about that. I've not used Netflix, so didn't really associate "it's an app with no proxy settings ability".

That being said though, if it's being used on a device (android, iSomething) shouldn't it all "just work" if the proxy is set in the OS system settings?
I would recommend trying sport climbing or gym bouldering. I had a very similar mindset of not being interesting or engaging for a longer period of time, but bouldering for me finaly hit the right combination of a "gamified" excercise that kept my attention for years.
As much as I loathe advertising, I think this assessment is provably wrong. We're genetically driven to pick out mates most likely to produce fertile, healthy, and effective offspring. Even in relatively isolated tribes with 0 access to advertising of any sort, preferences like low waist-to-hip ratios are ubiquitous [1] (random study that also references a bunch of others - this is not a controversial statement). The reason is that low waist-to-hip ratios correlates with all sorts of health, fertility, and genetic strengths. So we are genetically attracted to such.

I think you could also make an argument in reverse here as well. An increasingly large chunk of Western advertising is actively seeking to push values like contravening said genetic proclivities, yet it seems to have had little to no impact on what people find attractive. That's even more telling as obesity is rapidly becoming the norm rather than the exception.

[1] - https://www.nature.com/articles/s41598-017-01916-9
I implemented CLIP inference in plain C/C++
I implemented CLIP inference in plain C/C++ with no extra dependencies thanks to the great work in GGML that powers llama.cpp. It can work with models from both OpenAI and LAION. It also supports 4-bit quantization for extremely constrained devices, 4-bit CLIP-base is only ~85 MB!

I'm also happy to hear that a company is thinking of adopting it for their project only a few hours after I announced the repo.

Check it out and feel free to reach out to me for any suggestions or give it a star
Add this to the list of blog posts praising RDF without anyone realising it.

And the additional element added to the tuple is reminiscent of quads, also in heavy use in RDF implementations or similar graph databases.
There's no such thing as "off the record" -for a big enough story your anonymity is nothing. You might not interview again with that journalist but somebody else will.
> Just to add my contrarian two cents to a comment section that is otherwise mostly the former.

Your comment isn't particularly contrarian, and agrees mostly with the article. It says consistently throughout the article that the type of exercise doesn't matter, and that people should do exercise they enjoy, and tailor their choices towards their own personal wellbeing needs.

If DDR is what gets you going, then have at it (dancing is specifically highlighted in the article as beneficial). If yoga doesn't work for you, don't do it.