[-] thevoidzero@lemmy.world 6 points 1 day ago

I'll repeat it as much as I can but we need yo open up new journals for these kind of things.

All we need is a good cloud for storage, and volunteers. I think comp-sci people do that with https://arxiv.org/

The journal should accept any user submitted papers but have ranking based on other people, like successful reproducible studies (which is also accepted in journal) will be linked to the original journal. Reviews and such can be their own articles but also linked to the journal.

That way, undergrads can do projects reproducing previous studies (given resources) which will still give them research credit. Failures and exploration will also give people credit as it helps other people's research. We can just tag papers for novel ideas,failures, reproducing old paper,reviews, etc.

I think it has a chance to be very useful if we can pull it off. Although it'll have the same problems as of social media with upvote system. So some more thoughts needs to be there for the actual implementation.

[-] thevoidzero@lemmy.world 1 points 4 days ago

I know it's an edge case. But the edge case of having to pay more on taxes on increasing income existing for incomes close to poverty line seems counterproductive, doesn't it?

[-] thevoidzero@lemmy.world 1 points 5 days ago

I guess yeah. In that condition the algorithm would probably destroy all universe. Although you might be able to set a threshold and not destroy when it is over the threshold.

But situation where you don't know the answer is not for this algorithm as this one came from sorting problem.

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

It's not fun when you have to explain it. But basically it is based on the infinite multiverse theory. Since the multiverse splits whenever you make choices, in this case the program would spawn a large number of multiverses each with different combinations of those bits, which means at least one of them would have the exactly the combination we want. If the program destroys the multiverse it is in after it determines it is not correct, only reality that remains is the one with correct combination of bytes. Making it that we will get the code we want on the first try.

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

That seems like a wonderful function. Considering android support external mouse with cursors. I hope someone can make a FOSS version and put it in F-droid.

[-] thevoidzero@lemmy.world 5 points 5 days ago

Just ask if it's correct. If not destroy the universe. Only The correct will survive, it's O(1)

[-] thevoidzero@lemmy.world 7 points 5 days ago

M-x M-c butterfly

[-] thevoidzero@lemmy.world 2 points 5 days ago* (last edited 5 days ago)

That's not how tax brackets should work. But sadly for last year's state tax I came across it. [Example numbers] Previously I had 24,200 annual salary but zero tax as it was below 25,000. Even though personal deductions are 10,000, below 25 was considered too low to tax. This year, due to a mistake from employers I was paid for two weeks retroactively, now I have 25,300. Instead of taxing 300 above 25,000 the tax was for 15,300 after deduction. So I had to pay taxes which decreased the money below 25,000 which should not happen if income below 25,000 pays no tax.

And considering there might be things like not qualifying for financial assistance and other things when you cross 25,000 (again example numbers), the actual benefit of making slightly below that, is higher than making slightly above that..

So the system is putting a resistance to overcome poverty. Either you start making double of what you are making, or stay on your lane. Because trying to improve your situation by only a little is harmful.

[-] thevoidzero@lemmy.world 28 points 6 days ago

Underscore to delineate different parts, hypen to delineate words.

Like: my-resume_draft.pdf

And to make it consistent and easier to reuse parts for project names and such, I have a command line utility written for it. It caches the parts and uses a template system (support for generating current datetime in parts)

Available here (is in AUR too):

https://github.com/Atreyagaurav/nameit

[-] thevoidzero@lemmy.world 3 points 1 week ago

That's another reason US tax system baffles me. Why does it make it so that workers have to pay taxes this way. In my country, salary have very small tax and it's cut before the money comes into your account at all. So whatever money you egt is yours, there is no feeling of paying taxes at all. While employers will pay taxes and the taxes on profit is a lot more than tax on salary.

I personally think there's not much point of tax on the salary, they'll be spending it on other things, and whoever makes profit on that will pay the taxes on their profit. e.g. you get salary no tax, you buy clothes, vehicle, prepared food, etc. and those companies get your money, and they pay tax on profit, and then have expenses which is money that goes to other companies/people who again pay tax on profit, and their expenses goes somewhere else. All in the money is only taxed once, when there is profit. Unlike in every transaction.

[-] thevoidzero@lemmy.world 12 points 1 week ago

I wouldn't say that. For primitives yeah, day or two. But if you want to build a proper program, it'll take time to get used to it. For my first few projects I just used clone everywhere. Passing by reference and managing lifetimes, specially when writing libraries is something that takes time to get used to. I still don't feel confident.

Besides that I do like Rust though. Sometimes I feel like "just let me do that, C let's me", but I know it's just adding safety where C wouldn't care.

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

First of all, in many cases, writing new code is lot easier than trying to modify/salvage old code from someone else. Unless you can just plug it in for a modular function in that case your code is not useless.

And if they think your code is valuable enough to save that many people after they improve it, they can approach you for dual license or other agreements. They pay people with patent all the time, so they can do the same for people who's volunteering their time for open source.

9
submitted 2 weeks ago by thevoidzero@lemmy.world to c/linux@lemmy.ml

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.

48
submitted 2 weeks ago by thevoidzero@lemmy.world to c/linux@lemmy.ml

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.

5
submitted 1 month ago by thevoidzero@lemmy.world to c/rust@lemmy.ml

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.

10

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.

16

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

8
submitted 1 month ago* (last edited 1 month ago) by thevoidzero@lemmy.world to c/rust@lemmy.ml

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

32
submitted 7 months ago by thevoidzero@lemmy.world to c/rust@lemmy.ml

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.

0
submitted 7 months ago by thevoidzero@lemmy.world to c/latex@lemmy.ca

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.

view more: next ›

thevoidzero

joined 7 months ago