thevoidzero

joined 7 months ago
[–] [email protected] 1 points 1 month ago

{1..10..2}

Wow, that's nice to know. I guess my program will at least make it easier since you can type it in a more humane way, but not essential.

[–] [email protected] 1 points 1 month ago (2 children)

Thank you. I did think there might be a way.

My program is basically doing printf "%d\n" {{1..3},{7..8}} in that case. Can bash do step? like 1:2:10 would be 1,3,5,7,9

[–] [email protected] 3 points 1 month ago (1 children)

You know how people say "Devil you know is better than God you don't"?

Excel is that Devil people know. It's not the best tool for a lot of stuffs but it let's people do things.

I saw a co-worker generate sequence for formula in excel for another cell in excel. They wanted to do average of all January data, instead of averageif/sumif/countif etc, they generated a sequence a1+a13+a25...... And used excels' drag down thing to make the formula. I'm like who could even verify it.

[–] [email protected] 7 points 2 months ago (14 children)

If there was an easy way to use rust or something on webassemly and use that instead of JS. I'd be so happy, but I can't find how to do it without npm.

[–] [email protected] 3 points 2 months ago

I think that's why Github suggests MIT as default. Unaware people will just put that. Most open source people just code things they want without thinking much on other aspects. We really need some sort of enforcement to stop companies banking on voluntary work done for the community.

[–] [email protected] 34 points 2 months ago (2 children)

You can use your library for commercial projects that you have. Just have dual license that requires payment for commercial use or something similar. You don't have to pay yourself

[–] [email protected] 5 points 4 months ago

System 76 laptop has fingerprint sensor. They don't say it has one cuz it's not supported.

And since it's designed to be used as a tap/scan, and power button only on hard restart/shutdown it's hard to press to stop it being pressed on fingerprint scan, the hardware not being supported means you have to press the power button a lot instead of fingerprint.

[–] [email protected] 11 points 5 months ago (1 children)

For the OCR, have you tried tesseract? For printed documents it can take image input and generate a pdf with selectable text. I don't OCR much but it has been useful when I tried a few times.

You might be able to have a script that takes the scanner input into tesseract and output a pdf. It only works on a single image per run so I had to make script to run it on whole pdf by separating it and stitching it back together.

[–] [email protected] 1 points 5 months ago

Someone already talked about the XY problem, so I'll say this.

Why sound notification instead of notification content? If your notification program (dunst in my case) have pattern matching or calling scripts based on patterns and the script has access to which app, notification title, contents etc. then it's just about calling something in your bash script.

And any time you wanna add that functionality to something else, add one more line with a different pattern or add a condition in your script. Comparing text is lot more reliable than audio.

Of course your use case could be completely different, so maybe give some examples of use case so people can give you different ways to solve that instead of just the one you're thinking of.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

Yeah sure, I'll compile it in my OS. For any other OS, either I'm not knowledgeable about the tools available, and many of them that I am not going to spend money to acquire. If providing the binary a developer compiles for themselves would solve it, we'd not have that problem at all.

I specifically hate when program or libraries are only in compiled form, and then I get an error messages talking about an absolute path it has with some usernames I've never seen before, and no way to correct it as there's no code. Turns out when people pass compiled versions to the OS they don't use themselves they don't encounter the errors and think it works fine.

[–] [email protected] 3 points 6 months ago

I haven't tried many CAD softwares but AutoCAD has really intuitive UI. I used to be able to find most things by just thinking what tab it should be based on what it is. It actually inspired me to learn better programming and software design to make something intuitive. I haven't used it in years since I came to Linux so as long as they haven't changed it.

[–] [email protected] 1 points 6 months ago

It's not even at OS level (unless you're thinking fonts are OS level). So basically you'd just need to define a font, with certain unicodes with images you want, and make sure it ranks higher than other fonts. So the application will search for any characters in that font, and then for those you didn't define, it'll search in other fonts.

view more: ‹ prev next ›