Is there something like gem for erlang? - erlang

Is there a simply plug in system like gem for erlang as I find it quite complicated to install third party software?

The Comprehensive Erlang Archive Network and Faxien are two packages that provide an easy way to install erlang libraries.
Neither of these are bundled with erlang so first need to be installed. Then you can use them to download other software.
CEAN is available either as a library to add to an existing erlang installation or as an all-in-one install including an erlang distribution. Get CEAN from CEAN download page and then read the CEAN documentation to see how to use it.
For Faxien the best is to follow the tutorial. Once it's installed you can use faxien help to find what you can do next.

It's not difficult though to install 3rd party libraries. Just unzip/clone/whatever as a subfolder to the directory you define in the ERL_LIBS environment variable.

There's also agner http://erlagner.org/

Related

Can I use OpenCV on AIX?

I developed an image processing library with OpenCV and it works well in Windows, Android(Native) and iOS.
Now I want to build my library to run on AIX server. Unfortunately I couldn't find any guidance for building OpenCV for AIX.
Can you give me any guidance?
There is no official support for OpenCV on AIX. No community driven project either.
However there is another project maintained by IBM called IBM AIX Toolbox for Linux Applications.
This project is intended for developers and provides most Linux based, especially GNU based programming languages, tools & libraries to be run on AIX.
You'll have to go through setting up the environment / dependencies, though it must compile just fine. Linux tutorials for building OpenCV using GCC should work just fine.
You might ask the person at Perzl if he could build it. He must have a lot of knowledge, tools, and environment already. I also find it much better than the IBM AIX Toolbox so if you want to try to do it yourself, I would start with his versions instead of IBM's.
Group Bull use to have a similar set of built open source packages but I don't know where they disappeared to.

Trying to instal jStat - do I need GNU or GSL

I am developing a Ruby-on_rails application that now needs to do some statistical processing. I wish to use jStat. On this page it lists three dependencies including GNU make 3.8 or later. Tried the download and install and it failed. Should I be installing GNU as per instructions or given that it is a R-o-R project use GSL which is a ruby port of the GNU Scientific Library/mathematical package. Thanks
A work collegue Tristian solved the proble by copying jstat.min.js to to the app//assets/javascripts directory - thanks

How should I distribute an OSX framework for use by developers of an application?

Let's say I'm building an application with a dependency on a third party library, but one I've built myself - say, Boost. I've packaged the dependency into a framework which is the OSX way of doing things.
How should I now distribute the framework to the developers of the dependent application? If this were Windows I'd probably use Nuget, or apt etc on Ubuntu. Python has pip for this kind of thing - is there a standard MacOS way of dealing with combined source & binary dependencies?
Cheers.
I can imagine 3 different ways to do this:
CocoaPods: This it the nearest thing to something like a "package manager" as you get.
Make a Github/Bitbucket Repository and use git for distribution
make a framework bundle and distribute it via download (e.g. zipped or packed in a .dmg) or email

Including External Packages in App for Jailbroken iOS Devices

I am building an app that I eventually would like to release on Cydia, however I'm having trouble finding any good documentation on developing apps for jailbroken devices. So firstly, if you have any good links for developing for jailbroken iOS devices that would also be much appreciated!
My current problem is that for my app to work I would require tools from other packages on Cydia like otool and possibly some script interpreter (haven't decided which one yet). Is there a way that I can have these dependencies install alongside my current app in Cydia? I feel like I've seen it before downloading other apps.
Yes, absolutely.
When you build your app, you should make sure to bundle it as a Debian package. Some repositories will let you just give them a normal .app bundle, which they will then use to build a .deb file. But, if you want this, I'd recommend learning to build a .deb bundle yourself. More instructions from Saurik here.
Inside the .deb bundle, you will have a DEBIAN subdirectory, with a file inside named control:
DEBIAN/control
DEBIAN/postinst
DEBIAN/postrm
DEBIAN/preinst
The control file is where the Cydia store app description, the app version number (used by the store), and a bunch of other information goes. An optional field in the control file lets you specify that your app has dependencies. If you list another package as a dependency, that package will automatically get installed when Cydia installs your app. Something like this:
Depends: bigbosshackertools
This line is to specify a dependency on the BigBoss Recommended Tools package (which is a very large set of packages, so be aware that you're adding a large install set to your own app).
Or, you could try
Depends: odcctools
to use Saurik's Darwin CC Tools package.
I have been building jailbreak apps for a while, so I do it with homemade scripts, but there's now a tool for helping with this called iOSOpenDev. You could use that to build your package, and edit your control file, if you aren't already familiar with .deb packages, and don't want to bother (although I'd recommend learning).

Building DEB package for fsharp compiler

I would like to install the fsharp compiler from Github on my Debian system, and the usual way would be to create a deb package first and then install it (so it is possible to uninstall it later, etc.). What is the easiest way to achieve this? All the examples of how to use dh_make assume you have a source tar.gz appropriately named, whereas I don't. Also I need to use some prefix for the autogen script:
./autogen.sh --prefix=/usr
I am not sure it this makes the task any more difficult.
This should actually be fairly simple to achieve with a binary package - which will also be cross-platform because the F# compiler itself is written in F#. The compiler itself is fairly standalone and depends only on a few BCL libraries. There are versions that run on Mono.
More important than installing the compiler is the integration with your platform's build system(s). Microsoft ships a Microsoft.FSharp.targets file for MSBuild, I don't know whether that will work with Mono's xBuild.
I have put together a blog post that explains where to find the various bits that make up the F# compiler and how to package them to compile on a platform that has only .NET and MSBuild (AppHarbor in my case), which you may find helpful.

Resources