matcha_addict

joined 1 year ago
[–] matcha_addict@lemy.lol 3 points 2 weeks ago (1 children)

If you do not have an argument to make or anything of value to add, please stop replying to my comments or I will ignore them going forward.

[–] matcha_addict@lemy.lol 3 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

The "app", as you call it, only subscribes to the services provided.

And?

any features you described are on the server side (as to your post title)

None of the features I described (the interface) are on the server (the interface).

If you think otherwise, you'll have to prove it to be taken seriously :)

You are asking about the server

I am not. Again, please refer to the first three words in the body of post. In general, I urge you to read posts before you respond to them.

Why else would you post in "self-HOSTED". Applications aren't hosted.

it's in regards to a self-hosted xmpp server.

[–] matcha_addict@lemy.lol 12 points 2 weeks ago

But I thought slackware installs the entire repo by default. Is that not very much bloat?

[–] matcha_addict@lemy.lol 11 points 2 weeks ago (2 children)

Is my summary here correct?

  • slackware installs all software in its repos by default.
  • there's no package management or dependency resolution. If you want to delete something, or install something, you do that on your own
[–] matcha_addict@lemy.lol 5 points 2 weeks ago* (last edited 2 weeks ago)

Monocles looks really nice! I'll try it out, it may be exactly what I need. Thanks :)

[–] matcha_addict@lemy.lol 7 points 2 weeks ago* (last edited 2 weeks ago) (5 children)

You are asking about the server, not the apps.

No. Please refer to the third word in the body of my post, which spells "app".

This is another "I WANT EVERYTHING FOR CHEAP!" post

Where? I am not seeing what you're seeing. Feel free to quote my post to show where this is, and please demonstrate how it is "i want everything for cheap!" in all caps.

[–] matcha_addict@lemy.lol 12 points 2 weeks ago (12 children)

Telegram client is open source, and there are many forks of it with enhanced features (forkgram, nekogram, etc.)

 

The telegram app has a very nice interface, but I want to use a self hosted xmpp chat server.

Is there maybe a fork of telegram that makes it work with a self hosted xmpp server? I would imagine that this is possible.

If not, is there anything that at least gets close to how nice telegram UI is?

[–] matcha_addict@lemy.lol 1 points 2 weeks ago

My setup was really weird. I was running it under a network namespace. Maybe that's why? The app would run like normal, but it would not successfully create any connections. I replicated the same setup on glibc and it worked.

[–] matcha_addict@lemy.lol 1 points 2 weeks ago

I agree, I organized the post wrong. Void should've been up, but it's also a notable mention that I can't write a lot about since I did not do too much with it.

[–] matcha_addict@lemy.lol 2 points 2 weeks ago (2 children)

Bunch of random small things gave me issues. Sdkman (kinda like a Java version manager) and transmission on arm64 on wireguard would not work either.

[–] matcha_addict@lemy.lol 2 points 2 weeks ago (1 children)

It has a lot more support than you think. As a gentoo user, I am jealous of nixos often seeing more support than gentoo, when gentoo is older and seemingly easier to support. But nix seems to have a bigger hype nowadays.

 

Sorry, the question in title sounds naive. I have no doubt that math is essential in programming, but I am thinking about philosophy of programming and want to summarize when they're needed in programming. My attempt is below:

Most applications of programming are making electronics do things through their interfaces. Whether that's telling a screen to display something, a network wire to transport data, a hard disk to persist data.

But we often need math because we often transform data, or we might make said electronics do things based on user input, or an event. Transforming an event to data is a mathematical construction.

Some applications are almost purely mathematical, like banking, crypto currency, or encryption.

In your opinion, does this fully explain why we need math in programming? Is there a better way to sum it up?

 

Hi all,

I am looking for a local database that is easily accessible via the command line.

It can be SQL or non-SQL

Whats my use case? I want to use it kinda like a second brain. A place to save ~~my notes~~, my todo lists, my book reading lists, links / articles to read later, etc.

I want it to be a good CLI citizen so that I can script its commands to create simpler abstractions, rather than writing out the full queries every time.

Maybe sqlite is what I need, but is that ideal for my use case?

Edit: removed notes, as evidently they aren't suitable for this and aren't like the rest.

 

I am thinking to make the following tool, but wanted to get opinions before I embark on this journey.

The tool builds container images.

The images are optionally distroless: meaning, they do not include an entire distro. They only include the application(s) you specify and its dependencies.

What else does the tool give you?

  • the build tool uses a package manager to do dependency resolution, so you don't have to manually resolve them like many docker files do. (NOTE: The package manager is not installed on the container image. It is only used by the build tool)
  • uses gentoo's portage to build the software from source (if not previously cached). This is helpful when you're using versions of software that aren't built against each other in the repos you download from
  • allows specifying compile flag customizations per package.
  • makes use of gentoo's existing library of package build or install recipes, so that you only have to write them for uncommon apps rather than in every docker file.

I find it crazy that so many dockerfiles are doing their own dependency resolution when we already have package managers.

What do you think? Is this tool useful or am I missing a reason why it wouldn't be?

 

This instance performs spectacularly. Admin is always on top of everything. No drama, and I have high confidence that this instance won't disappear without notice.

Our admin does not get enough appreciation, so big shoutout and thanks for your hard work ❤

 

I am looking to program something similar to a simulation game, but free-form in its customization and scripting to the point where no strategy game will get me close enough.

I initially thought to start from scratch, simulating all the basics. Simulating money, people, resources, maps, etc. Obviously this is very ambitious.

Are there any libraries or frameworks that could help me with this? I don't want something opinionated that decides the model for how to simulate, for example, money or a person. I want to preserve the ability to simulate those with the models and math of my choosing. But maybe a library that has the foundations of simulation in general, so that I don't have to build everything completely from scratch?

I understand what I said sounds very vague. This will be something I will discover as I do more of it, so forgive the vagueness.

 

I am building an application that is using JSON / XML files to persist data. This is why I indicated "outside of SQL" in the title.

I understand one benefit of join tables is it makes querying easier with SQL syntax. Since I am using JSON as my storage, I do not have that benefit.

But are there any other benefits when using a separate join table when expressing a many-to-many relationship? The exact expression I want to express is one entity's dependency on another. I could do this by just having a "dependencies" field, which would be an array of the IDs of the dependencies.

This approach seems simpler to me than a separate table / entity to track the relation. Am I missing something?

Feel free to ask for more context.

 

In the desktop world, we have the option to use the command line: a uniform interface for a multitude of apps that would otherwise be very different when implemented as GUIs.

Using the same interface, I can move or edit files, cross out tasks on my to-do list, retrieve my password for my email account (using Bitwarden or pass), etc. All in the command line. The GUI for each of those are wildly different.

The other benefit is it is very easy to create a new command line app, as opposed to a GUI.

Is anything like this possible for the smartphone world (even if it doesn't or will never exist)? What would it look like?

Since smartphone typing is much slower, we can't simply reuse the command line. We'd need something different. An interface that can still support a various spectrum of different operations, yet ergonomic for a smartphone. What are your thoughts?

 

While reading Sipser's book on theory of computation, it relies heavily on the concept of formal language, and machines that merely accept or reject an input.

But most useful programs we deal with do more than merely verify an input. They compute something. We may compute a solution for an equation instead of merely verify it. We may sum a list of numbers, or calculate some function on it.

Maybe "most" is an exaggeration since I can't prove it. But still, it begs the question. Why not deal with machines than do more than merely verify?

 

I am interested in trying out matrix, but my first impression seems to reveal that by default, there may be some privacy or anonymity pitfalls if I use matrix.

Examples:

  • using an instance I don't host means the host is trusted with my data
  • self hosting might reveal a lot of information about me. Most likely, it is registered to a domain that has my info and could potentially be traced back to me.
  • When self-hosting, being one of few users, basic analysis of my activity could reveal a lot about me, since all that activity could be easily identified as belonging to a single person

Now I understand not all threats could be mitigated, but my worry is that both self hosting or not have significant gaps. What's the most privacy and anonymity conscious way to use Matrix?

 

I know Calibre can remove DRM, but it seems that Calibre does not remove things like watermarks, references to the buyer by name, etc. Now maybe I can try to find those manually, but that is an error prone process. Plus, what if they embed a unique digital signature that ties back to me? I understand that this is a very uncommon practice, but I do not want to find myself in a bad place.

I suppose the only way to remove a digital signature of any sort is to buy two of the same e-book by different people, diff them, and remove anything that differentiates them.

Is there any tool that does this or automates the process? am I being too paranoid, and this is not a real threat?

 

Suppose we have a large to-do task manager app with many features. Say we have an entity, which is the task, and it has certain fields like: title, description, deadline, sub-tasks, dependencies, etc. This entity is used in many parts of our codebase.

Suppose we decided to modify this entity, either by modifying, removing, or adding a field. We may have to change most if not all of the code that deals with this entity. How can we do this in a way that protects us from errors and makes maintenance easy?

Bear in mind, this is just an example. The entity may be something more low-key, such as a logged user event in analytics, or a backend API endpoint being used in the frontend, etc.

Potential Solutions

Searching

One way people do this already is by just searching the entity across the codebase. This is not scalable, and not always accurate. You may get a lot of false positives, and some parts of the code may use the entity without using it by name directly.

Importing

Defining the entity in one central place, and importing it everywhere it is used. This will create an error if a deleted field remains in use, but it will not help us when, say, adding a new field and making sure it is used properly everywhere the entity is being used

so what can be done to solve this? plus points if the approach is compatible with Functional Programming

Automated Tests and CICD

Tests can discover these types of issues with high accuracy and precision. The downside is... Well tests have to be written. This requires developers to be proactive, and writing and maintaining tests is non-trivial and needs expensive developer time. It is also quite easy and common to write bad tests that give false positives.

view more: next ›