thevoidzero

joined 2 years ago
[–] thevoidzero@lemmy.world 2 points 2 days ago* (last edited 2 days ago)

Use documentation is here, use the sidebar to navigate: https://nadi-system.github.io/latest/why-nadi.html

GitHub: https://github.com/Nadi-System/nadi-system

It has multiple components, all in the same github org if you wanna explore

Some example probects with networks and custom code. There is visualization too. You can run code line by line after loading network, or press Refresh all to run everything

https://nadi-system.github.io/playground.html?example

One of the example when loaded and run: (It's better on computer)

[–] thevoidzero@lemmy.world 3 points 2 days ago (2 children)

Yup, I have a program (a programming language I wrote) I have been working actively for 2 years, and still add features now, all open source, with pages and pages of documentation, and I even added webapp. Still no users except me. I've published papers showing the program, and the analysis it can do. No users, no citations.

Now, someone with AI could probably make something similar, if they have a good amount of followers their program might get users too. And it might just be unmaintained after their interest wanes.

[–] thevoidzero@lemmy.world 3 points 2 days ago (1 children)

Assume all that is true, AI can really do well in these fields, but there are some other fields it can't do well in.

Now who is going to work on those fields? Who is going to take the risk of studying for it, practicing for years, being an expert in the field that takes maybe a decade, and the AI can suddenly solve your field too, and you don't get anything.

[–] thevoidzero@lemmy.world 1 points 2 days ago

It's from 2017, from a Facebook group. So yeah, different target audience, probably

[–] thevoidzero@lemmy.world 4 points 2 days ago* (last edited 2 days ago) (2 children)

It has been a while since Boku no hero was completed, one piece still hasn't lol

[–] thevoidzero@lemmy.world 2 points 4 days ago (1 children)

I understand it works for people, that's why they don't do it. But me for example have a gag reflex where either I need to control the suction tube, or I need to spit. Before moving to US, I've always seen dentist chair with a little sink next to it, so I think it is a good convenience.

Maybe consider it like slopes on the sidewalk, or the tactile pavements. You don't need it, but it's there for people who need it, and is kind of an standard now.

[–] thevoidzero@lemmy.world 8 points 4 days ago* (last edited 4 days ago) (5 children)

Whatever the thing you lay down on is called lol

[–] thevoidzero@lemmy.world 3 points 4 days ago (7 children)

Idk where this post came from, American dentist don't seem to have sink next to the bed. I thought it was just one place, but it keeps happening.

[–] thevoidzero@lemmy.world 6 points 4 days ago (1 children)

You aren't faster at checking it out per item. The supermarkets are just keeping it understaffed all the time so the human checkout has a long wait while self checkout does not, so it's faster to not wait. I try to not use self checkout, but if I have a few items it just makes me feel guilty about making other people wait behind me.

As they keep having understaffed situations, sometimes there's no other option except self checkout. Which honestly should be illegal.

[–] thevoidzero@lemmy.world 4 points 5 days ago

There's a whole band of people who only listen to rich people. Because "they're rich because they're genius" mentality

[–] thevoidzero@lemmy.world 5 points 1 week ago* (last edited 1 week ago)

Fun coincidence that I was working on making a graph (network) of the relationships between different units yesterday. Here is how it looks in a circle, yellow dots are lengths, mass red and time blue.

It's not perfect on the phone, but here is the link, press the "Refresh All" button to load the network and run the code.

https://nadi-system.github.io/playground.html?example=units

Context: I'm writing a programming language to analyze graphs, so I thought "units are graph relationships, let me see what I can do". It was fun, but also funny because so many relationships are not simple factor multiplications. The network was extracted from the data gnu units uses, but I did it halfhazardly, so it's not perfect.

You can play around with the code if you wanna try your own things, there's user documentation and more examples. The actual network can be viewed using the buttons on the left of the editor.

[–] thevoidzero@lemmy.world 2 points 1 week ago

Auto complete is a separate command (or a bash function) that runs when you press tab. It's a feature of the terminal (e.g. bash). Programs can provide theur auto complete while distributing their packages, or provide a flag to generate auto complete.

So I would think you can just call that function call auto complete for whatever command is after sudo. But maybe it gets complicated. I've only written it for my own programs.

 

Hi all,

I like programming and do a lot of hobby projects. But I don't really do web development, or android, which seems to be what most work are about.

I like making desktop applications, computational projects, etc. i also like problems where I can solve/automate tasks using programming. I have like 100 projects in GitHub now, and I love contributing to open source community. But it sometimes makes me feel like I could be using that time to do things that could make money instead of working on projects that noone will use.

I'm looking for small jobs, independent tasks I could do for minor income. But if it's in python or rust, I am open to a bit larger projects.

 

cross-posted from: https://lemmy.world/post/30361372

Hi all,

I don't know where would be the best place to post this, but I wanted some people's feedback on a DSL that I wrote for network analysis.

I am using nom for writing the lexer and parser, then using abi_stable crate for data types so that you can write plugins to the language and load them dynamically as well.

This language is made to work by loading a tree graph (network) and then call a bunch of node or network functions that work on it. There are different ways you can run functions, and use node/network attributes.

I am mostly self-taught, so it took a lot of years to get to a level where I could write something like this. I am learning a lot and having a lot of fun in the process, but I want this to develop into something that can have a practical usefulness to people. Since I am in the field of hydrology, I am making it with river networks in the mind.

To try it out, you can either download the executables for windows from the releases page, or you can compile it using cargo (for all OS; except android where GUI won't work, CLI will work in termux). I have some basic examples in the Learn By Examples section of the User Guide that you can follow.

Please let me know if you can't compile/use it as well. I have tried to make sure it has required instructions, but I could have missed something.

 

Hi all,

I don't know where would be the best place to post this, but I wanted some people's feedback on a DSL that I wrote for network analysis.

I am using nom for writing the lexer and parser, then using abi_stable crate for data types so that you can write plugins to the language and load them dynamically as well.

This language is made to work by loading a tree graph (network) and then call a bunch of node or network functions that work on it. There are different ways you can run functions, and use node/network attributes.

I am mostly self-taught, so it took a lot of years to get to a level where I could write something like this. I am learning a lot and having a lot of fun in the process, but I want this to develop into something that can have a practical usefulness to people. Since I am in the field of hydrology, I am making it with river networks in the mind.

To try it out, you can either download the executables for windows from the releases page, or you can compile it using cargo (for all OS; except android where GUI won't work, CLI will work in termux). I have some basic examples in the Learn By Examples section of the User Guide that you can follow.

Please let me know if you can't compile/use it as well. I have tried to make sure it has required instructions, but I could have missed something.

 

Hi all.

I want to develop a plugin system within my program, and I have a trait that functions defined by plugins should implement.

Currently, my code gets all the functions in a HashMap and then calls them by their name. Problem is, I have to create that hashmap myself by inserting every function myself.

I would really appreciate it if there was a way to say, suppose, all pub members of mod functions:: that implement this trait PluginFunction call register(hashmap) function. So as I add more functions as mod in functions it'll be automatically added on compile.

Pseudocode:

Files:

src/
├── attrs.rs
├── functions
│   ├── attrs.rs
│   ├── export.rs
│   └── render.rs
├── functions.rs
├── lib.rs

Basically, in mod functions I want:

impl AllFunctions{
    pub fn new() -> Self {
       let mut functions_map = HashMap::new();[[
       register_all!(crate::functions::* implementing PluginFunction, &mut functions_map);
       Self { function_map }
  }
}

Right now I'm doing:

impl AllFunctions{
    pub fn new() -> Self {
       let mut functions_map = HashMap::new();[[
       crate::functions::attrs::PrintAttr{}.register(&mut functions_map);
       crate::functions::export::ExportCSV{}.register(&mut functions_map);
       crate::functions::render::RenderText{}.register(&mut functions_map);
       // More as I add more functions
       Self { function_map }
  }
}
 

TLDR: I recently found out there is "deprecated" XFA format that acrobat still uses in their programs, and government forms have those for dynamic contents in the form that we cannot fill using other softwares. Looking for solutions.


This has been a problem since a long time. Back in 2020 I had dual boot because I needed acrobat to fill PDF forms, but after finding xournal++ program I nuked windows partition. Windows update messing up grub was one of the reason I decided to nuke windows and looking at the posts recently it's still a huge issue.

So the problem I recently encountered is that even the government issued PDF forms need acrobat reader (which is free software for PDF, but only available in windows and mac). Which I didn't think would be an issue and just filled the form in Firefox.

Turns out that was problematic as the PDF forms has fields that are automatically filled, calculated from other fields, only made available when certain checkboxes are checked, etc. and Firefox doesn't support that. Even trying to install the acrobat reader snap (which uses wine) in a VM and opening the PDF on it didn't work. The UI makes me think it's a really old version of the reader.

So without searching for other devices (and filling a PDF with my sensitive information) what solution is there? Installing windows is a hassle even in a VM, and it will use up precious SSD memory. But that's the only solution I can think of.

I also found masterpdf or something like that which the Arch wiki says has support for that, but it didn't work. It says XFA forms are converted to acro forms, and the dynamic part doesn't work. There are websites that promise to work for such forms, but I'm not going to be putting sensitive info on web apps.

 

Hi everyone,

I'm hoping there are people here who work on FOSS and have applied for grants to support their software financially. I am applying for a grant opportunity that is asking for a software from US gov agency.

My requirements:

  • I want to publish it under Open Source Licenses like GPL (not MIT) so other corps can't take this to use on their product,
  • The grant agency will get the source code, they can do whatever as long as the license is held,
  • I will develop the features they want, and request during the duration of grant,
  • I will want to continue development independently after the grant, or apply for more grants from other organizations,
  • To clarify the previous point, I do not want to give them the final product so they own it, and I can no longer do anything on the program.

So, if anyone has done similar things, please give me advice on this. Their requirement says "a web repository" should be provided at the end, so I think I can apply with the intention of giving them the software code while keeping the rights. But I don't want to make a mistake in application/contract and lost the rights to the program, I want to develop a lot further than just the features they want for their use case.

Or at least dual license to protect the Open Source Side while giving the grant organization rights to take the code for their other programs because of the money they spent.

 

This feels like it should already be a feature in a terminal. But I didn't find anything that let me do this efficiently.

I had a rust library for converting list like 1-4,8-10 into vectors, but thought I'd expand it into a command line command as well, as it is really useful when I want to run batch commands in parallel using templates.

I wanted to share it since it might be a useful simple command for many people.

 

cross-posted from: https://lemmy.world/post/17984566

Hi all,

mpv communities seem to be tiny in lemmy, so I'm sharing it here.

This is a program I made for music control from local network.

You can run it in a computer with some local media files, or youtube links or any other links yt-dlp supports. And then with the server, you can control the media player and the playlist from any devices in your local network. So that you can just show a QR code or something to house guests for parties, or have it bookmarked within family to control the music.

I wanted to make something similar to how youtube app let's you play in TV and such, but my skills were not enough to do that. So I tried a simple alternative that works with computers. In an ideal world, I could make "Play with local mpv server" option come while on other android apps, but I have zero experience in android app development and it looks complicated.

I know some other programs also give option to control media, but I wanted to give it a go with a simple implementation. Making the web-server was a tricky part. Only tutorial from the rust book was useful here as every other web server developement in rust seems to be async ones using libraries so I would have to make a complicated system to communicate with the mpv. Using the simple Tcp connection let me make a thread with mpv instance in the scope. I do need to support https and file uploads and other things, but I haven't had any luck finding a solution that works with simple Tcp connection like in the tutorial. Let me know if you know anything.

Github: https://github.com/Atreyagaurav/local-mpv

 

Hi all,

mpv communities seem to be tiny in lemmy, so I'm sharing it here.

This is a program I made for music control from local network.

You can run it in a computer with some local media files, or youtube links or any other links yt-dlp supports. And then with the server, you can control the media player and the playlist from any devices in your local network. So that you can just show a QR code or something to house guests for parties, or have it bookmarked within family to control the music.

I wanted to make something similar to how youtube app let's you play in TV and such, but my skills were not enough to do that. So I tried a simple alternative that works with computers. In an ideal world, I could make "Play with local mpv server" option come while on other android apps, but I have zero experience in android app development and it looks complicated.

I know some other programs also give option to control media, but I wanted to give it a go with a simple implementation. Making the web-server was a tricky part. Only tutorial from the rust book was useful here as every other web server developement in rust seems to be async ones using libraries so I would have to make a complicated system to communicate with the mpv. Using the simple Tcp connection let me make a thread with mpv instance in the scope. I do need to support https and file uploads and other things, but I haven't had any luck finding a solution that works with simple Tcp connection like in the tutorial. Let me know if you know anything.

Github: https://github.com/Atreyagaurav/local-mpv

view more: next ›