Code License that allows for Redistribution but No Compiling then Redistributing [closed] - perl

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Essentially, I have an interesting Perl script that I want to put on Github / other places that I want to be re-distributable but I do not want anyone compiling it and then redistributing it (yes I know the source would be included with certain licenses - but I don't want it to ever be compiled at all).
Those who can figure out how to use CPAN, etc, to set it up - I want them to be able to use it and redistribute it in source format but is there a way of restricting the compilation and then redistribution. I only want to allow users to redistribute in source.

Your requirements are at odds with each other. The first step of running a Perl 5 program is compiling. Your best bet is the GPLv3, it requires anyone who distributes a compiled version to also provide a method to retrieve the source.
Most of the methods of making a binary out of a Perl 5 script (which I think you are confusing with compiling) aren't actually compiling. They are packaging. The source is still present in the binary and is compiled at run-time by an included copy of the perl binary.

Related

What are the steps to upgrade old MATLAB code files? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm currently using MatLab 6.5 (it's a 2004 version), because the custom code files I need aren't compatible with newer versions.
I'm wondering what are the necessary steps to update those files.
Thanks very much to everyone reading!
Ideally, those files have associated unit tests, so you could have an indication on whether each of them runs correctly or not. Probably not your case.
If you can, try having both Matlab versions on your machine, then have a copy of the file sets to modify and another copy just to inspect and run in the old version for reference.
If changes are expected to be made on a per file basis, then start by opening each file and checking warnings. As good practice, never leave warning in .m files, and suppress those that you'll be accepting nominally. I.e. put %#ok<NASGU> or other warning code but not simply %#ok. Most upgrade related issues are indicated by warnings. You can check the current folder for such problems with mlintrpt (see here)
Then, there is a compatibility tool codeCompatibilityReport, simply typing this will explore folders in your current workspace, and you might just use that if you expect changes in general to be minor or not to be needed for every file.
Now, for simple files, these should be everything you need, I"d expect that after some debugging and relearning, you'd have a much smoother experience with a recent version of Matlab than with a 10+ years old version. For shorter-term updates, I would recommend to avoid switching versions mid-project.

How to compile strace for ARM Linux? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I saw this project https://github.com/strace/strace. (is that the best project for strace?)
And I have gcc cross compiler for Arm Linux.
How can I compile it for Arm Linux?
I look here https://github.com/strace/strace/tree/master/linux/arm but I didn't find Make file
The specifics for building strace from source will depend on:
a) your particular Linux,
b) your particular toolchain, and
c) your strace source.
Take a look at this article: it should get you pointed in the right direction:
Cross compiling for ARM with Ubuntu 16.04 LTS.
See also https://strace.io/. It points to exactly the same the GitHub source tree you cited: https://github.com/strace/strace. It also gives you detailed information, and links to mailing list sand an IRC channel for additional help.
Finally:
Be sure to read the README* file(s)!
Usually the first thing you need to do is run ./configure. This generates a Makefile which is tailored to your configuration

Standalone Matlab program [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have heard that it is possible to make standalone programs using Matlab compiler.
It is good but I doubt that if someone can use the commands in the tool boxes and make a standalone program out of them otherwise one could make a program using optimization tool box and distribute it, then no body would pay for such a too box. Am I right? Is it possible to use the features available in tool boxes to make a standalone program in Matlab?
There are certain features in toolboxes which are not supported by MATLAB Compiler. These mainly include GUIs provided with the toolboxes, such as imtool, cftool, systemIdentification, pidTuner, etc... and things the Compiler itself, or code-generation tools such as MATLAB Coder. For an exhaustive list, see Support for MATLAB and Toolboxes on the MathWorks web site.
Note that for the end user to run the compiled MATLAB application, he first needs to install the MCR (MATLAB Component Runtime) on his machine. This is essentially a "headless" version of MATLAB which can only be called by the compiled application, and is freely distributable to end users by the person who has a license for MATLAB Compiler.

how to assess the quality of CPAN Perl modules? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
In CPAN, a huge amount of Perl modules are available.
Which is your favourite way / method to assess the quality of a Perl module ? --- in prior to a manual test.
It seems like a rather easy question but it implies an impact. Many modules are buggy and time wasters. And it is not my intention to name a few of them to avoid an unnecessary defamation.
MetaCPAN Metrics: Rating, Bugs, Last Updated
In order to get easy access to these, try searching on metacpan.org instead of cpan.org. It displays number of open bug reports and average rating on the left-hand side, as well as telling you when the module was last updated and gives you an overview of the speed at which changes are made to the module.
You can also easily see a list of dependencies on the right, so you can look for any modules in the groundwork which are less-than-stellar. It doesn't give you any data you can't get on cpan.org, but it does put it all in one place.
Obviously, if you're working on critical infrastructure, nothing is going to replace an old-fashioned code review as you need to be confident not only in the quality of your program but in your understanding of the plumbing, but those are the metrics I usually look at first.

I Need a Lightweight Version Management System for Word, PDF, and Zip Files [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am building a system that will allow users to upload Word, PDF, and Zip files.
Sometimes, they will review those files and upload newer versions. I will need to keep the older versions too, as they would also like to have the ability to download them.
Instead of storing all versions in full, I would rather store the first versions, and diffs for the successive versions. Basically, I need to store all versions of a document in the smallest possible space. (Maybe it can be done in a different way, without diffs?).
There is no need for merging changes, multi-user, distributed, or any advanced features that typically come with version control systems. All use of the tool will be made through my application.
Is there an easy-to-learn, lightweight, open-source package, with good JVM (or REST) interoperability, that I can use for this purpose?
No needs for reinventing the wheels.
JavaHL or SVNKit will allow you to work with Subversion repositories from Java