How do you download only the modules or pages of a wikibook and their images with wget? - wget

With the instructions found on internet, wget over the modules of a wikibook recursively downloads everything. How can I download only modules and images contained in the modules ??

Related

perlbrew custom folder for libs

When I use
perlbrew lib create testlibs
to have a folder to store test libraries from CPAN, it creates a folder under the following path:
$HOME/.perlbrew/libs/perl-5.32.0#testlibs/lib/perl5
How can I tell perlbrew to store the libs folder ( perl-5.32.0#testlibs ) under a different folder such as /opt/perl5/libs, etc.?
I have very little disk space for home mountpoint on my server, so I need libs folders to be created on a different mountpoint. I already have PERLBREW_ROOT set to a different mountpoint, but that only makes perlbrew install new perl installation folders under it. It doesn't do it for the libs folders, which was surprising.
I already read the documentation and googled the hell out of this, but I can't find some env variable I can use to tell perlbrew where to install libs folders.
I know I can manipulate locallib env variables and even use lib on my scripts to point to some other folder, but it would be nice to have this all included within perlbrew.

How to install different GitHub packages to my website

I want to install a jQuery photo album package from GitHub, but there are so many files, and I do not know which ones to use. It's getting kind of annoying, because I see all these cool packages I want to add to my website, but I am reluctant to download them because I do not know how to install them in my site here is a link to the GitHub package I want to install
https://github.com/sachinchoolur/lightGallery
The files that I have for my website are an index.html, CSS stylesheet, a JavaScript file for my scripts, and the jQuery file. How could I add some of the plugins I have to my site?

how do I import a CPAN module using XS into my project?

My company has policies against using Perl modules which are not in Debian/Ubuntu's repositories. To "import" a non-xs module into my project/repo, it's usually just a matter of copying over the .pm files and putting them in the appropriate directory in lib/. Then I can use as if I'd cpan installed it.
But what do I do for an XS module? How do I "pre-compile" and to where should I copy over the .so and other XS related files? If you look, for example, at Ubuntu's DBD-SQLite package contents here, it seems like it should definitely be possible.
You should look into dh-make-perl for making .deb packages of your perl modules. That way you can install them like a regular shipped module.
You should also read Building Debian packages of Perl modules

Where to download Scala RPM or DEB packages?

One of the projects under the official Scala git page is scala-dist, which contains code related to making native packages like msi, deb and rpm.
I'd love to get deb and rpm packages for Scala 2.10.2! Where can I download packages produced with scala-dist? If there's no place that I can download them from, is there a tutorial somewhere on how I can build these packages myself? Do the scripts in scala-dist still even work? Or are they abandon-ware?
Thanks.
Good point, it seems like they are not listed on the Scala 2.10.2 download page.
But they are actually there, you can browse the download directory directly to get them for any version that has them (2.9.2 and above).
For 2.10.2:
scala-2.10.2.deb
scala-2.10.2.rpm
I created an issue to track this. Edit: this is now fixed, the download pages have been updated.

Using Multiple Front End Package Managers Simultaneously (Bower, NuGet)

The (unofficial) convention for writing NuGet packages for front-end libraries seems to be to strip out the JavaScript files and put them in the Scripts folder, and strip out the CSS files and put them in the Content folder. Rarely are these files put in subfolders, so you end up with a huge number of files littering the Scripts and Content folders.
The only way to separate your own code is to put that in a subfolder, or a different folder altogether (see the SPA templates Durandal and HotTowel where an "App" folder is added).
I personally like the "unopinionated" solution that Twitter Bower provides. Put all front-end packages in a root folder called "Components" and do not mess with the original structure of the package.
I am wondering about giving up on NuGet for front-end libraries and using Bower instead and just wonder if anyone has any experience of combining the two? Alternatively, is there a way to install GitHub repos directly using NuGet without creating a NuGet package?
We use NuGet and Bower both and it has worked well for us so far. We are slowly moving the front-end libraries to Bower. You will have to create a Nuget package to use it from Nuget to install.