Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TH
Posts 11
Comments 165
don't be a coward
  • Tech needs electricity and fire is not universal. That is what we use.

    Our brain is lot more complicated and efficient than the computers we make and it uses ions, in liquid media. So something that lives in water could definitely be able to make something that would be able to use similar things to do processing. Water is also really good with doing things, it's flexible but doesn't compress/expand like air does. Think about hydraulic systems. You can make them smaller and smaller as your tech progresses. Mechanical things using metals and such would work in water as well. Think about gold and such that can be used for electricity as well, we don't use it because it's valuable, but an alien world could have abundance of gold for them to use.

  • Subject Matter Expert
  • Yeah, this is the reason even if 'researchers don't respect so and so because he's a joke in the field' is said about a person, I think they are connecting the ordinary people with science so it's fine. Their job is not to innovate new frontiers of science, let them be the middleman so the ordinary folks aren't left out. Just look at now, we have a lot of "researchers" high on their horse, while ordinary people are taken in by pseudoscience and even harmful theories.

  • If people were really smart, particularly in the USA, What do you think they'd stop doing by now?
  • Yeah, and also even if there's smart people doing it, it doesn't matter. Supposed 10% of people don't use Amazon, as long as 90% are fine, it won't affect them. Most people won't look beyond "it costs me less", the whole reason thing like temu is widespread is exactly that. People don't care about other people, ethics of things, or even the long term effects of their actions. They just see low price vs high price on everyday setting.

    If a chain restaurant gave half price food for a year in a loss to take out all local businesses people would gladly buy it. And then when everything is gone and that chain raises price because there's no competition they'll just blame other people, economy, whatever they can find.

    In many cases it also comes from the side that people can't afford to spend more money for the right reasons. Many people are living paycheck to paycheck, and those that aren't, are still not well off and want to save as much money as they can for retirement/emergencies. You can't count on anyone except yourself for your future, so they'll take whatever costs them less now.

  • Looking for Mentor (for a PhD Candidate) that works with open source and Rust
  • Yes thank you. I am using it. I'm good with finding things on the Internet but I'm struggling with parts that are deeper and not well documented. There are big projects that use pyo3, but not plugins. And there are big projects with plugins but not pyo3.

  • Windows VS Linux (part 2)
  • A simple analogy is, would you rather have keyboard with a-z and symbols you can use to build words/sentences, or would you want a wordlist you can scroll and click, while expanding words in groups, and having to find non-frequent words with a lot of difficulty to make up sentences.

    Command line use is harder if you come from gui. But the main use case of command line are:

    • automation: anything you can do in a command line, can be copied in a script,
    • uniformity: every software now has almost the same format of use,
    • flexibility: gui almost always has less options than command line, and many times options are hidden within a lot of tabs and options.
    • Auto complete: whenever someone complains about terminal being hard to use and spelling mistakes I think about this. I think many people that come from GUI don't know about auto-completion on terminal. It's easy to see which options are available, easy to choose files, wildcards for multiple files, and all that
    • piping: command line allows you to chain one command with another. You have a command to list all your music files, chain that with a search command to search files within them. Now if you need to search in a python code, you use the same search command, just different command to read the file. You basically have lego blocks (old ones) that can be used to make anything.

    I can understand people being afraid of command line when they start, but I think many people come with biases and don't use good terminal and other tools to make things easier.

  • Looking for Mentor (for a PhD Candidate) that works with open source
  • Thank you.

    I did consider Julia in the beginning, but I'm using rust so I can make a python library available for people. And also because I can easily transfer other programs I have, and some other libraries in C into rust easily. My project is mostly about connecting the existing tools the grant agency has plus tools scientific communities use.

    What do you mean by official language communities? I don't know what is rust official community. I am in rust discord but I have never gotten any response on any questions I ask about non trivial things there. I need people knowledgeable about macro, stable abi, and other features.

  • Looking for Mentor (for a PhD Candidate) that works with open source
  • I'm not from CS related field. Me and my advisor don't know professors in CS fields, and my university doesn't have CS grad programs when I looked around. And I need an external professor anyway. My friends that are in CS grad school all do AI/ML related research.

  • Looking for Mentor (for a PhD Candidate) that works with open source and Rust
  • There is a python library as well. But the core algorithm and the plugins are in rust. The GIS component also is computationally intensive or memory intensive, that makes Rust have advantages over python. And the Whitehouse is also talking about more memory safe languages so it seems like a good choice to do it in rust over c/c++ for computational parts and the plugin architecture.

    Edit: As for professors. I need external professor for my committee, and this is a good option as I'm not familiar with any CS professors in my university that do grad research.

  • Looking for Mentor (for a PhD Candidate) that works with open source and Rust
  • I'm trying to do computationally intensive things, and I didn't want to do them in C/C++ because of practical reasons. I am making a python library as well, so people using the program can either use the CLI/rust library or the python library. The plugins and the core program is in Rust.

  • Looking for Mentor (for a PhD Candidate) that works with open source

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

    > Looking for Mentor (for a PhD Candidate) that works with open source and Rust > > TLDR: Searching for person holding professor position to officially act as a committee member on a US PhD defense > > Hi all, > > I'm in a non CS field. I'm doing PhD in hydrology and I'm good at Geospatial Analysis, data analysis, visualization, modeling and such. I really like programming and have been making open source programs, contributing to open source programs and such. And have been learning rust for last 2 years. > > For my PhD dissertation I'm doing a project where I'll be using Rust to make a program with compiled plugin system that can do generalized river related tasks including data analysis and visualization. I have professors in GIS and hydrology to guide those aspects, but I don't have anyone on software side to ask questions, or to look at my work. I tried emailing some people I have seen with open source projects on GIS+rust, but no response. > > I'm ideally looking for someone that holds a professor position for my committee who is good with either rust, GIS related algorithms development, and programming languages. However, it woud also be helpful to just have someone woth knowledge about such things. In either scenario, credit and authorship will be given. > > I appreciate any response even telling where i could find someone matching the above description. :) > > Edit: I can also provide my previous projects in GitHub, websites and such before you decide in messages.

    8

    Looking for Mentor (for a PhD Candidate) that works with open source and Rust

    TLDR: Searching for person holding professor position to officially act as a committee member on a US PhD defense

    Hi all,

    I'm in a non CS field. I'm doing PhD in hydrology and I'm good at Geospatial Analysis, data analysis, visualization, modeling and such. I really like programming and have been making open source programs, contributing to open source programs and such. And have been learning rust for last 2 years.

    For my PhD dissertation I'm doing a project where I'll be using Rust to make a program with compiled plugin system that can do generalized river related tasks including data analysis and visualization. I have professors in GIS and hydrology to guide those aspects, but I don't have anyone on software side to ask questions, or to look at my work. I tried emailing some people I have seen with open source projects on GIS+rust, but no response.

    I'm ideally looking for someone that holds a professor position for my committee who is good with either rust, GIS related algorithms development, and programming languages. However, it woud also be helpful to just have someone woth knowledge about such things. In either scenario, credit and authorship will be given.

    I appreciate any response even telling where i could find someone matching the above description. :)

    Edit: I can also provide my previous projects in GitHub, websites and such before you decide in messages.

    7
    [WorkChronicles] You are loathesome
  • If you have chances of reward then yes. But current situation seems to be really bad. They don't really value the workers as much as they used to. And you can't easily leave your current job even when it's bad. Having most of the population in debt (car+home+college) has removed most of the freedom of the workforce from choosing to work somewhere else.

    Because in my opinion only when you can chose to not work and stay at home for a few months to look for other jobs, that you have a freedom of choice. Otherwise you have to just jump into whatever job you can find because you can get faster.

  • Three-quarters of U.S. adults are now overweight or obese
  • Like with most things in life, variety is the key. Everything in moderation. Eat fruits, vegetables like carrots, celery, etc (raw). Chewing action has benefits. Sometimes cook things till they're really soft, sometimes enjoy a bit of chewy meat. If you have variety in your habits it should be ok.

  • Three-quarters of U.S. adults are now overweight or obese
  • Again I'm not an expert on this. But the problem is think comes from sharp change in the type of food within few generations. Since we have started cooking food more and more we have gotten weaker jaw and bad teeth with results. But something that happened over a long time, vs something that happened within last 100 years has a different health impact.

  • Ah, the good old days
  • Well according to a doctor, since lot of people are not talking vaccine now, polio is coming back and the government has added polio vaccine as one of the requirements last year for people. I had to take adult polio vaccine because I didn't have records that I took it as a child (which I didn't think would need because it was compulsory for children when I was little).

  • Three-quarters of U.S. adults are now overweight or obese
  • Not an expert but I think ultra processed food has two main aspects, one is additives and preservatives. And the other is our body doesn't need to process it as much to digest it. If you eta rice/bread your body has to break that carbohydrates into glucose which takes energy. Now if you directly take suger/glucose then eating the same calories would be a lot more plus calories since your body doesn't need to work hard to process it. Furthermore it has more pure calories per same weight, so you end up consuming more to feel full compared to eating something not as calories dense.

  • Is it worth getting into video games?
  • Can I go completely 180 and suggest programming as a hobby? If you want a hobby where you're in a computer. Then try learning to program little things. If you work on a computer then it'll make things easier for you in the future, it'll keep your brain sharp and teaches you problem solving.

  • Is there a way to detect all structs in the current crate that implement a certain trait?

    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 } } }

    10

    Acrobat PDF forms support

    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.

    16

    How do I word my grant application to keep my software FOSS?

    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.

    20

    GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human-readable representation

    github.com GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human readable representation

    Terminal Command to generate list of numbers from human readable representation - Atreyagaurav/numrng

    GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human readable representation

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

    > 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.

    1

    GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human-readable representation

    github.com GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human readable representation

    Terminal Command to generate list of numbers from human readable representation - Atreyagaurav/numrng

    GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human readable representation

    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.

    6

    GitHub - Atreyagaurav/local-mpv: Run MPV with a webserver to control from local network

    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

    3

    GitHub - Atreyagaurav/local-mpv: Run MPV with a webserver to control from local network

    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

    1

    I made a Gtk GUI to open LaTeX Beamer file, so that you can extract some pages

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

    > Basically, you can choose some slides from an opened .tex file to copy. It also has the function to see which graphics files are included in the selected files, so you know which ones to copy. > > Here is the Github link: https://github.com/Atreyagaurav/beamer-quickie > > The PDF pages are shown using the SyncTeX (if available) so that you can visually choose the slides as long as there is a single .tex source file, (might still work without synctex for simple cases). > > I've made it on Linux, so it hasn't been tested in windows. You probably will need to compile gtk on Windows if you want to make it work. So if someone is really interested let me know, I can give instructions. Even in linux you'll need to install dependencies.

    10

    I made a Gtk GUI to open LaTeX Beamer file, so that you can extract some pages

    Basically, you can choose some slides from an opened .tex file to copy. It also has the function to see which graphics files are included in the selected files, so you know which ones to copy.

    Here is the Github link: https://github.com/Atreyagaurav/beamer-quickie

    The PDF pages are shown using the SyncTeX (if available) so that you can visually choose the slides as long as there is a single .tex source file, (might still work without synctex for simple cases).

    I've made it on Linux, so it hasn't been tested in windows. You probably will need to compile gtk on Windows if you want to make it work. So if someone is really interested let me know, I can give instructions. Even in linux you'll need to install dependencies.

    4