Yeah but those are arguments to cd
, the error says command not found
Edit: Sorry didn’t see /S
Yeah but those are arguments to cd
, the error says command not found
Edit: Sorry didn’t see /S
There are basically two types of files. Text files and binary files.
Most information are stored in text files so humans can easily understand it, and it’s easier to find errors, review, parse. But text storage takes more space than binary files. And many complicated softwares normally need multiple text files or data files, many of them just store them together as a zip file so that it’s easier to handle. Examples are .docx,.pptx, etc files in MS Office, try unzipping them and see what they contain. Zipping also has advantages of reducing file sizes.
That depends on what video player you use. Of we have control of that, then sure it works. I use mpv to play things, so for radio streams or live videos I can go back/forward as long as it’s cached.
But if it’s the web service, even though the browser video player has something cached, the player is still controlled by the website. And considering most of the people use chrome/chromium derivatives or YouTube app, it wouldn’t be hard for them to make it so that the player itself will collaborate with whatever they want to do.
If YouTube was a separate organization it wouldn’t have been the problem it is because of how Google has been taking over all the different parts they need for advertising.
What distribution of emacs are you using? What setup for rust? Because the run/debug things work on mine.
Thank you. Yeah, something like this would work for me as I can add in a script and run it before compiling. But it won’t be a cross platform solution and windows/mac users are probably not going to be able to do anything. Maybe if I do the same thing but from build.rs it’ll work. I’ll try that.
That seems like a good compromise if I don’t find something better. Thank you.
I’m hoping to make it easy for people to add more functions, that’s why I want minimal code change required to add more functions.
Thank you for your detailed response.
I am ok using macros. But even proc macro only get the tokens and using in on the whole mod is unstable unless you use use it on mod sth{...}
instead of code being on in a different file (sth.rs).
The plug-in system is dynamic in a sense that my plans for it are loading them through shared libraries (.dll, .so) compiled separately by users. But I also have internally provided core plugins that come with the program. But rust ABI system is not that stable, so in worst case I might have to ask users to just add plugin code to some directory and re-compile program instead of loading from shared libraries. That’s why I’m trying to make it as simple as possible. Asking users to modify the rust code somewhere else yo register the plugin might be met with resistance.
I was thinking that using build script to parse the source code and generating those codes could work, but that seemed hacky. So I was trying to see if there are better solutions, as it felt like a problem people might have come across themselves.
Thank you. I just put the call with !
, I don’t necessarily want a macro solution. Any solution is acceptable, my requirement is that I can just keep adding more mods with functions in src/functions/
and not have to register each function.
Inventory seems like the solution I am looking for. Although in my case, instead of collecting different values of the same type, I want to collect different types that all have same trait. But maybe I can make a temporary struct with Box<dyn _>
member to collect it if trying to collect it directly doesn’t work. I do not plan to support WASM. I am planning to make C/C++ and Python API for the libraries though, so if it has problems with them, then I might have a problem.
Yeah it is sad that we don’t have flash. But today I saw there’s a program Ruffle (written in Rust) that can run flash, and add support to browser through extensions or something.
Seq will only print one sequence, though. The program’s focus is discontinuous range. Something like: 1:2:10,20:2:30
{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.
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
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.
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.
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.
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
Miniserve is a program for computers. Though you can run it in termux. It just opens a tiny server instance for file sharing, you can download/upload files to a directory directory. Will also show QR for the link.
It is kinda like that. We have a tracker that we added because they increased the insurance rate and said if you install this device we’ll keep the rate low based on driving patterns.
Basically records how often you drive, hard break/sharp turns, after midnight drives, etc. We don’t drive the car often so the prob of accident is low but we recently learned that they can consider not driving enough also bad saying it can make you drive recklessly or sth.
Well apple is succulent stem of apple tree. Potato is succulent root of potato plant. Root is stem inside ground. Q.E.D.