Yeah, but I think it is speaking in first person, about itself. So it should be “I saw” and “I think”, regardless of its pronouns in third person.
- 18 Posts
- 347 Comments
Yea, but socket is not a file. Maybe if you stretch the definition.
Well in any case, when people say that linux is great because everything is a file, they either mean that:
- they can edit configuration of most things with a text editor, or that
- in bash (and other shells) it is easy to work with byte streams, piping them from one process to another and compose complex behaviour from simple commands.
It could be a process, which you can talk to only via an IPC call. For example, dbus
You are either a crazy nutjob or a genius thinker. Interesting idea
Wikipedia to the rescue:
However, some formats (ex., HDV, DVCPRO HD) use non-square pixels internally for image storage, as a way to reduce the amount of data that must be processed, thus limiting the necessary transfer rates and maintaining compatibility with existing interfaces.
Actual displays do not generally have non-square pixels, though digital sensors might;
TLDR; some formats use non-square pixels for reducing file size, some digital sensors has non-square pixels.
Does anyone know why anyone would want to encode their video using PAR != 1? Reducing the file size, by storing less pixels in one dimension, but not the other?
verstra@programming.devto
Lefty Memes@lemmy.dbzer0.com•Average ideological debateEnglish
2·21 days agoI’m assuming guacamole is communism? What avocado?
verstra@programming.devto
Privacy@programming.dev•Europe gets serious about cutting US digital umbilical cord
8·22 days agoDid Nextcloud get any more performant in the last 5years, or did the Austrian ministry shoot itself in the foot?
verstra@programming.devOPto
Programming@programming.dev•Lutra: General-Purpose Query Language
1·24 days agoI do believe that it is possible to translate any SQL query to Lutra, that is Lutra can cover that last 1% of cases. There are a few caveats:
- Some cases would produce very verbose Lutra code because they have special-case syntax in SQL, which makes them terse.
- Lutra does not cover DDL (CREATE, ALTER, DROP, ADMINISTER). That’s because Lutra is conceptually a “run-time” language for dealing with data and not schema modifications. Because of this, Lutra cannot be used for migrations.
- Lutra is still in development, so you are likely to find cases that are not yet expressible. If you do, please report them, so they can be implemented. But I don’t believe that there are cases that would conceptually clash with Lutra language design, like there are with most ORMs.
verstra@programming.devOPto
Programming@programming.dev•Lutra: General-Purpose Query Language
2·24 days agoTwo great questions!
First one comes down to how database query optimization and predicate pushdown in particular. In this case,
albumswould probably have an index onalbums.idcolumn, which would optimizeget_album_by_idinto a single index lookup. Ideally, I would want to have an explicit function for this, something likesql::from_index("albums", "id", 3), but there is no such thing as explicit index lookup in PostgreSQL right now.Regarding different function syntaxes:
- curly braces
{ ... }construct a new tuple (think object, struct, record), - parenthesis are used for precedence. They are not strictly needed for function bodies, but they do give a better visual guide to multi-line definitions, especially when using pipe operator.
So:
func something() -> { ... } # constructs a new tuple func something() -> ( ... ) # returns a value func something() -> ... # equivalent to ( ... )- curly braces
verstra@programming.devOPto
Programming@programming.dev•Lutra: General-Purpose Query Language
1·26 days agoI think that ORMs work great for 90% of cases, and abismally for the rest. They are also limited by the syntax and semantics of the language they are embedded in. For example, if you refer to a non-existing column, it would take a call to database to figure that out, and a cryptic error message with non-helpful code span.
verstra@programming.devOPto
Programming@programming.dev•Lutra: General-Purpose Query Language
1·26 days agoHaven’t thought about but yes - it solves a few of the same problems as ORMs. Maybe the front page does not mention it, but with Lutra, you don’t get
result.getInt(). You get generated Python classes / Rust structs that reflect the Lutra types.
I’m currently looking into Concourse.
It does have steeper-than-average learning curve, but I really like that it has well-defined fundamentals (resources, jobs, tasks) and isolation with OCI containers. Before I adopt it fully, I want it to run my nix flake dev shell.
Also computer science, parsing
verstra@programming.devto
European Federalists@lemmy.world•Slovenia rejects assisted dying law for terminally ill patients in referendum
1·2 months agoIt’s just opposition’s strategy to get its entrenched and loyal voter base railed against opposition.
verstra@programming.devto
European Federalists@lemmy.world•Slovenia rejects assisted dying law for terminally ill patients in referendum
1·2 months ago… due to low participation of people who have already once voted yes, when this law was part of a previous advisory referendum.
verstra@programming.devto
Programmer Humor@programming.dev•you guys are paying for git?
9·2 months agoMy guy from nsfwlemmy making sure all people, regardless of disabilities or horniness can read git memes. Respect
verstra@programming.devto
Selfhosted@lemmy.world•Material for MkDocs is getting rid of MkDocs. Now: Zensical - A modern static site generatorEnglish
3·3 months agoNice. I knew something was in the works for Material for MkDocs and it turned out to be exactly what I wanted. Which is a binary executable that you point to a repo and it gives you a static website.
verstra@programming.devto
Selfhosted@lemmy.world•Its a solar powered phone webserver! Made from a pixel 6a, solar panel, and hopes/dreams.English
11·3 months agoMeanwhile, I’m using Pixel 3a for my main phone (for quite a few years now) and consider it a relatively up-to-date phone.








Ok, i’m on board. Thank thou two