skysight-inc/HackerNews huggingface dataset:
You also could talk with only one word (unary system), but this misses the mark completely.

I experimented to design a variant of Toki Pona with only two-syllable words, but then I realized that's why it's a linguist who designed Toki Pona. One of the points: the phonemes in a language are not evenly distributed, and even the combinations thereof are not. For example, /ne/ might be twice as frequent than /pa/. I as a programmer started with something like an uniform distribution, and immediately realized that it felt awkward.

It's like the secret sauce: choose the right 120 words and their pronunciation wisely!
With SQLAlchemy, I come for the type checking. I stay for the Alembic migrations.
Why wasn't there a Turkish Missile Crisis? [video]
Exit this page fast with the Gov.uk Design System’s new component
Youtube is compatible with a lot of platforms, old browsers, ancient smart TV's, ancient android, etc - I would guess widevine isn't.
Congrats, you just wrote your own ORM. Please mind that ORM doesn’t necessarily mean ActiveRecord, which could be considered an anti pattern.
I've never seen an open source project survive hosting on gitlab. It is on its own island.
"try explaining something makes you realise how well you really understand it."
Anything that cannot be provided by a bar/QR code these days, which mean very few. It changed a bit when my daughters were younger and would do a lot of coloring.
That content creation needs to be encouraged in the first place still has not been backed up by any kind of studies. But if you were to want to do that, making it a nightmare to build on other people's content is surely not the best way to go about it.
What's Active Record and why is it an anti pattern?
Seems to be a tradeoff between depth and breadth.

If you write an essay about each thing you come across, you'll have to learn the stuff to some depth. That of course takes time, so there's fewer things you can learn about in a given time.

OTOH one can also take the view that learning things properly enables more learning of higher concepts that depend on knowing your stuff properly, and so actually taking your time makes more learning possible.
Your argument is rendered completely null by your flaccid half-apology at the end.

If you have something to say, say it and stand by it, or get out of the way.

What offensive language? Monkey? Was the guy black? One does have to admit some darker skinned people do look a little similar to gorillas. So what. That’s not an incitement to violence.

And the lesbian cop, she is a lesbian right? Who cares! How is that relevant to anything. A simple “don’t be a bellend” response should have covered it.

Sheesh! Some people really just need some bigger problems if the only things they feel motivated to act against is some low level name calling.

Toughen up princesses.
Maybe just make using Go code in Dart easier, one way FFI style.

Then again, I don't think I do whatever Go is meant for and I'm kind of biased against being all that interested. It doesn't seem like it's that much above C/C++, and not that much easier than Rust, nor is it being pushed for things that really need low level control that much.

It seems like it's just built to appeal to minimalists, whereas Dart is almost easier than Python, everything works, there's an obvious way to do everything.
> While both publishers and artists need some kind of limited coercive copyright arrangement in order to have a market for their work

They only need this for the current business model of creating content up front and then collecting payments later. This is not the only way to fund creatives - it's not even the oldest.

Not to mention that with the ability to infinitely recreate all creations without loss of fidelity (as is the case in the digital world) we need to seriously reconsider to what extend whe even need to incentivize creation of even more works. There will always be a base level of artistic output done based on passion and perhaps that is enough.
Show HN: Lushlayers – A configuration generator for Karabiner-Elements
So far all my projects have targeted a specific database with no reason to change it.

So what I do is write SQL commands, but keep all inside a specific file or module of the project. So that I can decide later to refactor it into an ORM.

I think ORMs are great if you write libraries that target more than one database. Or situations, where you have more than one database and need a proper migration part.

If you don't need migration, but in the worst case can start with a fresh, empty database, then write SQL.

But for production system, the no/manual migration might get old quickly. Writing migration code that just adds fields, indexes or tables is easy. But
writing code that changes fields or table structures? Not do much.

Still, you don't need an ORM at the beginning of a project, just don't put SQL everywhere.
First of all, Telegram is not end to end encrypted. It has limited support for end to end encryption of direct messages only. There is zero support for E2E of groups, and zero support for E2E in a multiclient context, which makes the feature almost completely useless, and indeed, almost nobody uses it and I don't think even 1% of telegram users have ever used it or even know how to use it.

Integrating either Signal or WhatsApp clients with Telegram would to tantamount to a backdoor, or would require a redesign of Telegram so drastic that would upset its users. A perfect analogy is integrating WhatsApp and Twitter because Telegram is actually more similar to Twitter than it is to WhatsApp.

But even integrating Signal and WhatsApp which now share a similar encryption scheme and user ID isn't a good idea: Most Signal users don't want any interaction either directly or indirectly with WhatsApp. The two programs have completely different group implementations: WhatsApp keeps all the metadata server side, whereas Signal handles all of that client side with the server acting as a dumb router of opaque messages that wrap the group state updates. How would those two systems be reconciled? Would Signal have to accept WhatsApp users joining its group and then just leak all of the group metadata to WhatsApp servers for compatibility? Would WhatsApp have to re-write its entire service to be compatible with Signal's group semantics and see to it that all billion users are fully upgraded or kick them off the service?

These issues go on and on and on, and they increase exponentially the more messaging systems you try to add. The whole idea is just ridiculous.
Proteins do everything. Proteins are basically organic nanobots. It's some really wild stuff.
Nobody else was pushing reusability in the way Musk was, or with the same approach of propulsive landing. Pretty much the whole rest of the industry was absolutely convinced it was impossible. Yes he found a few engineers willing to try to make it work, but without him going all-in on it from the top there is no way we would have propulsively landing first stage boosters today, and maybe not for many decades to come.

That doesn't make Musk perfect, he may well have many negative personality traits that get in the way of progress on other fronts. On Starship as well though, plenty of engineers there confirm that it was Musk that came up with the idea to switch to Steel as the primary structural material.

It may be true that if you take one 'great man' out of the picture we might still get the same innovations, but in some areas like space rockets it's not something anyone can knock up in their garage to matter how bright they are. There's also the argument that ok, any one great man might be replaceable, but often I think you'd find them replaced by another great man. Some big leaps forward take a lot of capabilities in one package to make them work, or occasionally in a great synergistic partnership such as Jobs and Wozniak, or Lennon and McCartney.
The fear with trying for temporary deflation is it will become an out of control feedback loop, because there aren't as many "reasonable" monetary tools to combat it as there are with inflation.
So what do they train it on then?
I don't understand. "The other way around" compared to what?
No; that won't work, since the final dart is required to be a double...
Can't you just provide the bar/QR code to the pick up guy showing at your door these days? Last time I shipped something, I only provided the barcode that the second hand marketplace (similar to craiglist but for another country) I used generated for me. It was at the local post office though, not a DHL/UPS pick up guy but I would have assumed it would have been the same.
I don't think youtube really cares if you pirate their content or use a 3rd party client.

What they care about is you wasting their bandwidth. For an ad-supported video streaming site, bandwidth is normally more expensive than revenue - Google only manages to make it just about work because they have probably the worlds cheapest bandwidth due to being able to bully ISP's into peering with them for free. (they don't let you peer with Google for just Google Search but not youtube).

All these throttling measures are simply trying to reserve most of the bandwidth for real users, not people scraping all the content.
> YouTube's resources

> Getting full Gb/s

Technically most of the time video is served on the same network(ISP) as youtube has caches with almost all ISPs, IXes in the world. It might be the largest CDN built to date.

Case in point, the authors YT URLs point to Canadian ISP Videotron.

https://bgp.he.net/dns/rr1---sn-8qu-t0aee.googlevideo.com
I was playing around with the code snippet, and I discovered you can replace line 22:

e = P[i]-P[j]

with

e = P[j]-P[i]

That is, you can simply change the order of comparisons of areas, and suddenly the script stops working… This shows how unreliable sympy really is; you can write an article how it solves a mathematical problem, but you could similarly write an article on how ChatGPT solves a problem (because for a given prompt it does solve it, but for a slightly changed prompt it fails miserably; of course assuming 0 temperature, otherwise the prompt is not reproducible…). Unfortunately, I also have similar experience with AI Feynman…
The logical response of those "right-wing peoples" should be to join the fight to make sure minorities are not targeted.
The active record pattern is an approach to accessing data in a database. A database table or view is wrapped into a class. Thus, an object instance is tied to a single row in the table. After creation of an object, a new row is added to the table upon save. Any object loaded gets its information from the database. When an object is updated, the corresponding row in the table is also updated. The wrapper class implements accessor methods or properties for each column in the table or view.

https://en.wikipedia.org/wiki/Active_record_pattern

It was fashionable for a while to say it was an anti-pattern because that was a contrary view and ActiveRecord is very tied into building Rails applications.
AI-Camera That Runs Stable Diffusion to Turn Your Photos into AI Art
I don't recommend applying this technique specifically when reading this article, or you could become entrapped in an endless cycle.
> There is a considerable amount of open criticism in Russia, and individuals are not being incarcerated or silenced for it.

Just like that father of a schoolgirl who drew antiwar drawings at school and had the impudence to criticize the government after the (scum) principal decided to call the police on her?

Really? What about other people who've been sentenced for years for doing absolutely nothing but sharing their (quite mild opinions) on the war.

> There is a considerable amount of open criticism in Russia,

From fascist imperialist who think that putin is not murdering enough people. Sure. As long as they they say out loud the open secret that he's utterly incompetent.

But no there isn't and there can't be. I bet you would've also have said that the USSR was a democracy and had freedom of speech?

> harming their own people for personal gain

If that was the case Putin and his cronies would've faced the firing squad years ago.

> The U.S. or any other behemoth corporation is no different, rendering this argument meaningless.

Come on... You can't just say "{RANDOM_COMPLETELY_NONSENSICAL_THING_} therefore you'r argument is meaningless" and expect anyone to take it seriously?

I'm just not quite sure why are you feeling compelled to share you ideas here? It's not like anything you say could make any sense to anyone who isn't a deranged pseudo-fascist...
Professors have a summer assignment: Prevent ChatGPT chaos in the fall
Give it a Tron skin and I'll play it for a whole day <3
We should. Freedom of political speech either exists for everybody or you let the government - good or bad - carve out the chosen exceptions. There's a reason it was embedded in the American constitution.

>Of course Ukraine is deeply flawed country in many ways

The irony being that due to its history many of its flaws and values are very Russian in character. That includes imprisoning Lira for "informational terrorism".

I didn't realize that these Russian characteristics would be quite so popular on Hacker News though. Apparently freedom of speech isn't that important.
If you're going to end up querying all the fields and putting them into a model like this dataclass anyways... Django can do that for you. If you're going to later pick and choose what fields you query on the first load, and defer other data til later.... Django can do that for you. If you're going to have some foreign relations you want to easily query.... Django can do that for you. If you're doing a bunch of joins and are using some custom postgres extensions for certain fields and filtering... Django can help you organize the integration code cleanly.

I totally understand people having issues with Django's ORM due to the query laziness making performance tricky to reason about (since an expression might or might not trigger a query depending on the context). In some specialized cases there are some real performance hits from the model creation. But Django is very good at avoiding weird SQL issues, does a lot of things correctly the first time around, and also includes wonderful things like a migration layer.

You might have a database that is _really_ unamenable to something like an ORM (like if most of your tables don't have ID rows), but I wonder how much of the wisdom around ORMs is due to people being burned by half-baked ORMs over the years.

I am curious as to what a larger codebase with "just SQL queries all over" ends up looking like. I have to imagine they all end up with some (granted, specialized) query builder pattern. But I think my bias is influenced by always working on software where there are just so many columns per table that it would be way too much busywork to not use something.
It’s interesting how such things impact an employe.

There are times where things have to fail in order for change to happen, but employees also generally want to make things that are meaningful, and work. It makes the process to inevitable failure really frustrating / demoralizing for the employees.
> Maybe one of my extensions designed to skip "wait 10 sec to skip this" is messing up the timings of the game?

Might be related to time accounting differences between browsers also... are you using firefox?
Previous discussion:

https://news.ycombinator.com/item?id=37100283 (22 comments, 1 day ago)

https://news.ycombinator.com/item?id=36735590 (2 comments, 29 days ago)
Looks interesting. In the post, the author does

echo -n '{"videoId":"aqz-KE-bpKQ","context":{"client":{"clientName":"WEB","clientVersion":"2.20230810.05.00"}}}' |
http post 'https://www.youtube.com/youtubei/v1/player' |
jq -r '.streamingData.adaptiveFormats[0].url'

which is very similar to what you do, but runs into an issue of throttling to ~70Kbps. Is the difference just the "key" parameter? Do you get no throttling?
that's their problem to deal with. why is everyone here going all 'think of the poor corporations'
I always write SQL code directly, but that's mostly because I actually enjoy writing SQL queries :).
If your code is not flawless, do you retain your honor? Without honor, is your life worth more than say, a Cobalt miner in Congo? I have spoken. /s
State is unavoidable. But FP, rather than being just another cargo cult is simply a different approach to programming. In a nutshell: imperative languages arrive at a castle through piling stones on top of each other until they have the shape of the castle, and functional languages transform a pile of stones into a castle. The difference is subtle: the one is about how you do the work, the other is about the end result. There are several major consequences from using the one or the other technique and both have their advantages and disadvantages. FP is probably easier for people with a math background and imperative programming is probably easier for people that look at programming in the same way that you'd look at building something out of real world components.

State, that big bad thing is something that is unavoidable in programming because at some level you will have state and side effects. But the longer you can put off having state (preferably all the way to the top) the cleaner your code will be and the easier it will be to test. That is because state effectively complicates the number of dimensions that your test has to verify against. If there are 5 variables of state and 5 function parameters that may still be doable. But if your execution context contains 500 variables and your function takes 5 parameters you now have to test against all of the permutations of 505 elements to ensure your function does what it should do. And if your function is going to modify that state (rather than return a result) it gets even worse for every function that calls this one.

So functional programming helps in the same way that processes can encapsulate a certain amount of functionality within a limited scope: the scope of a function that has no side effects (so it does not modify the state of the program) and that does not look at anything other than its parameters is very well defined, if it works once with a certain set of parameters it will always do so with those parameters. So now you can write some pretty clean and simple test cases to verify this function once and for all and if it passes the tests you are able to make some guarantees about it.

This can turn your worldview of programming upside down, it is a very powerful technique and to suggest it is 'cargo cult' is potentially throwing out a very powerful tool.

hth
Just checked NewPipe on a MrBeast video.

There is an option now to select the audio track and MrBeast uploads dubs in more than a dozen languages.
But it takes ages
> "NONE of those are relevant to a government"

It is in the context of taxes if you agree that regligious organizations would receive church tax from the government.
Yes. And then share with the world, and who cares if anyone pays attention.
Why are you posting this on this site? Haven't you read the guidelines?
> The fact you think it is obvious and the fact it is not implemented should mean it is flawed in an obvious way for those facing the problem.

Yes. Agreed. It seems we are on the same page on this.

Where we seem to disagree is what follows from this observation. You call it arogance to share one’s thoughts and questions, i call it curiosity.

If we all just sit on our backside and think “hmm, clearly setting guards should work, yet the article doesn’t even mention it, there might be something I’m missing”, then we all will die not knowing any more. If someone asks it we might learn from the answers.
hearsay, but I've heard OpenAI pays significantly more

I agree that Meta hired some amazing researchers so we'll see what the future holds
Build, Test, and Debug Regex Online
And yet, based on the one game I saw while visiting the US, they will gladly spend hours doing anything except playing the game - they'll play 2-3 minutes and then go away for 15. I'm glad I got to see a "kiss cam" in real life, but I ended up watching more Jumbotron TV than game.

You want to speed up the game? Turn off the screens. I know there's a tradition of taking baseball more like a picnic than a sport, but if cricket could come up with variations to shorten 2-3 days into 3 hours I'm sure baseball can do it too.
It's not about fashion. Observations about fashion are no deeper than fashion itself.

It scales badly with table size, I think by design. That's why SQLAlchemy's and Hibernate's Data Mapper pattern is slightly more cumbersome to write, but works out much better.
He didn't really. The SQL is right there, and this is important.

What I've experienced (unfortunately) across multiple projects is that people who understand databases will write SQL with a nice collection of helper and wrapper functions as needed, and the people that think that databases are mysterious black boxes will reach for ORM. I've seen the ORM-happy teams getting scared at the idea of a million (1,000,000!) rows in a table, and they always neglect to set up even basic indexes or to think through what their JOINs are really doing.

YMMV but that's the pattern I see again and again.
> ... Python dot not have anything in the standard library that supports database interaction, this has always been a problem for the community to solve.

Python has built-in support for SQLite in the standard library: https://docs.python.org/3/library/sqlite3.html
You can't expect every human being to be enough of an expert in all topics to make informed choices on their own for all their interactions with corporations. That's why we have tons of saftey regulations governing the products you can sell. Similarly, it is much more reasonable to resrict a few megacorporations than it is to expect everyone to understand why the so-called "trusted" computing is bad for them.
Most languages are like this. That English words are so opaque is quite a historically contingent thing, not the baseline of how languages usually work. English retains a lot of Latin and Greek and French compounds, which are usually translated more literally in many other languages.

In German, plane is Flugzeug (flight tool), fridge is Kühlschrank (cooling closet). In Hungarian, they are repülőgép (flying machine) and hűtőszekrény (cooling closet) as well, calqued from German.

English speakers often perceive this as some kind of endearing primitive Tarzan-like communication without all those classy prestigious words, but English also has plenty examples. How about "washing machine" for example?
Lira hasn't been accused of spying for Russia, just of being a propagandist, which he certainly was - exactly as Glukhovsky was accused of spouting Ukrainian propaganda by Russia.

Personally I'm quite attached to freedom of speech (defined as "I think people who espouse views I despise should be allowed to do so"), but I know that many people aren't and they are extremely happy with both Ukraine and the west aping Russia's crackdowns on freedom of speech.
Indeed. So much more than this simple example. It gets interesting for more advanced use cases. If i now rename a field on the model, it will not be renamed in the database. If i want that to match, i have to change the query. And make a migration. But that is probably another simple blog post.

Putting it all together is another blog post. And if you have colleagues: probably needs documentation. Which you also have to maintain yourself.
Not anywhere near as well as ChatGPT 4 (for chat anyway - maybe the model is better)?

Prompt:

> Hvad tycks om at fika nu?

ChatGPT 4

> Det låter som en trevlig idé! Fika är ju alltid gott. Vad skulle du vilja ha till din fika? (Oj, ursäkta för emojis! )

https://chat.openai.com/share/8e89a16f-f182-4f62-b9fa-f93cd5...

Llama2:

> I apologize, but I don't understand what you mean by "fika nu." Could you please provide more context or clarify your question so I can better assist you?

https://hf.co/chat/r/kOF2qst