I am trying to get into Perl6 by working on a module but I can't seem to figure out what the right workflow is.
Right now I am using rakudobrew and I want to add SSL/TLS support to HTTP::Client.
Where does rakudobrew store libraries? What do I do to use the modified version?
Thank you for your time and patience helping me get started with Perl6.
Christoph is right; perl6 -Ilib or perl -I./lib is what I was looking for.
In general, you don't need to care about where the libraries are stored. If you use rakudobrew or some other method, zef install . will put the libraries where they can be reached. So as answered above, just hack away at your version of the library after cloning it, then test locally with zef test . and install it globally with zef install .
Related
After I am installing a root library, such as npm install aws-amplify, sometimes it seems that I need to install its sub library such as npm install #aws-amplify/cli. Why did not npm install aws-amplify install every sub library within it?
What's the npm packaging and installing rule here? can someone help me clearing understand that?
You are mixing up 2 different syntaxes. The #namespace/package is relatively new. It used to be just package, and some packages still use this. In the old way package tend to name themselves 'namespace-package' as some sort ofworkaround.
But that is not your question. Your question is 'why do they even do this?'.
Why wouldn't you just download all the npm package out there? Then you have and can use everything, right? As you can imagine this doesn't make much sense, you will only want to download and use what you need. Think of this quote from Joe Armstrong:
You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.
The quote is a entirely out of context since it is more about not using classes, but it still kind of applies to this. At lot of packages will offer you a core package and the option to add sub-packages based on your need. Like in your example, someone might not need #aws-amplify/cli, this way he doesn't have to download it.
I am a php developer and have not done much front-end work for 3 or 4 years so I feel its time to update my skill set. I want to install a less compiler and set-up a bootstrap work flow using my Ubuntu desktop. I know how to use the basic pre-compiled bootstrap but I’m kinda lost with all this LESS stuff. I need to use it as I want to shoehorn bootstrap onto an existing application that has all its own css classes in the html output that cant really be changed easily. So Ill need to extend the LESS files to add these classes to the boostrap css.
I am just not sure where to start. Does anybody know of tutorial that will walk me through installing and setting up the LESS complier then how to use it so that I can work in an efficient way. Iv searched but can really find any Ubuntu specific or up to date tuts.
For installing less, you can use lessc:
it is a node.js package which convert less to css, with several options:
http://lesscss.org/#using-less-installation
You need to install npm before
Full installation:
# apt-get install npm
# npm install -g less
And to use, as explained in the doc, just use lessc package.
For me, when I work with less, I use Bracket editor: http://brackets.io/
You can then install an extension which, when you save less file, automaticaly compile less to a css file: https://github.com/jdiehl/brackets-less-autocompile
(you find it with built-in extension manager)
Maybe for others IDE / editor, you have also plugins
I extensively use Cygwin on a Windows 8 environment (I do not want to go ahead and boot/load Linux directly on the machine). I use the OCamlIDE plug-in for Eclipse and have experienced relatively no problems using this workflow setup.
However, I would like to use Batteries so that I may make use of use of its dynamic arrays among a few other interesting features that will speed up my development process.
I have tried this method: http://ocaml.org/install.html, but I get the following error:
$ sh ./opam_installer.sh /usr/local/bin
No file yet for i686:CYGWIN_NT-6.2-WOW64
What am I missing and how would I configure Cygwin so that it can accept the Opam installer? When I tried yet a different way of building Opam, I got:
'i686-w64-mingw32-gcc' is not recognized as an internal or external command,
as a Makefile error and reason for building failure. It seems something is wrong related to mingw32-gcc, what do I need to install and/or configure for my Cygwin to get it to compile/build things properly. I have wget and curl installed as well.
My overall question: What is the best way to get Batteries installed on my system with the minimum of time spent tracing all of its dependencies by hand? Is there a way I can just build the library module, such as BatDynArray and the includes:
include BatEnum.Enumerable
include BatInterfaces.Mappable
That way I can just call them directly in my code with open...;; and/or include...;;;
OCaml works beautifully on Windows with WODI, which is a Cygwin-based distribution that includes Batteries and tons of other useful packages (which are a pain to install manually on Windows).
I urge you to take a shot at WODI, which I believe to be an indispensable tool for the
rest of us, the forgotten souls, who have to deal with Windows.
First of all, include does not do what you think it does. open Batteries should be exactly what you're looking for. OPAM is not yet solid on windows (maybe Thomas could give an update on where things stand).
Frankly, I would recommend to install a linux on a VM, you should be able to get started with OPAM instantly then. Otherwise, take a look at this package manager for OCaml which focuses on cross platform support: http://yypkg.forge.ocamlcore.org/. I've never tried it myself however. The last package manger you could try is GODI, I'm not sure about its windows support though.
Finally, if none of these options work then it should be possible to install batteries from the source. All you need is OCaml and make. And if there are problems with this approach then you should definitely follow up on them either here or on the bug tracker because batteries does intend to support windows AFAIK.
I have installed the GNUStep gnustep-msys-system-0.29.0-setup.exe and gnustep-core-0.29.1-setup.exe on my WinXp Machine
I am able to compile problems. The documentation says that gnustep-core comes with the make utility but I am unable to locate it or use it !!
Assuming everything is installed correctly, jacekmigacz's answer may work.
However, an easier path might be to simply install Linux. That will give you the ability to trivially install GNUStep and LLVM.
Alternatively, grab the GNUStep Live CD (http://wiki.gnustep.org/index.php/GNUstep_Live_CD).
cd gnustep/core/make
./configure
make
make install
Does anyone know how to make .deb files install directly from MobileSafari on the iPhone/iPod touch/iPad? I know it's possible, as seen with the 'lima' project, but I have no idea what it's supposed to be written in, or how. If someone could tell me I'd be grateful. Thanks in advance.
While this is not a detailed answer to your question, it shows the way on doing it:
1st: A download plugin for MobileSafari to actually download the .deb
2nd: Once the download has been completed you execute dpkg -i /path/to/package.deb (for example via system()
But this won't take care about dependencies and other things which is important when dealing with DEBIAN packages. For that you'll have to utilize the apt library like Cydia does.