Using Orchard how can I install/download/view a module - orchardcms

I am using orchard 1.6
I am looking to download a completed module to have a look at the code.
D/L is available from https://docs.google.com/file/d/0B0Jfn7UoeC3FZ1E2NWVJc1NBVXc/edit?pli=1
How do I install the .nupkg as a module. Do i create the module as normal from the command line and some how copy it over?
Thanks

You can unzip packages with 7zip (http://7-zip.org/) and add them to your modules folder.
Or you can go to the admin -> modules -> features -> install from computer and upload your package there

Related

How to make gopls recognize external github imports

I recently started to work on a Go project.
When I use gopls with Coc, all external imports are not recognized such as "github.com/prometheus/client_golang/prometheus". It complains it could not find this module from neither $GOROOT and $GOPATH.
This project is managed by bazel, and all depedencies are listed in WORKSPACE file. Do I have any way to install all packages based on WORKSPACE file or I have to go install all packages one by one? If the latter, I would imagine keep package version synced is challenaging.
To install all dependencies listed in the WORKSPACE file in a Bazel-managed Go project, you can use the bazel run command and the go_repository rule in the WORKSPACE file.
For example, if you have the following go_repository rule in your WORKSPACE file:
go_repository(
name = "com_github_prometheus_client_golang",
importpath = "github.com/prometheus/client_golang",
version = "0.10.0",
)
You can run the following command to install the dependencies:
bazel run //:gazelle
This will run the gazelle target, which updates the dependencies in the WORKSPACE file and generates the required BUILD files for each package in your project.
Once the dependencies are installed, they should be recognized by gopls in your editor.

How to download npm packages instead of using the command line

I'm working in a completely offline environment & lately, I've had to code some react applications. I wonder if there is a way to download npmjs packages manually without using the command npm install <package-name>.
For example, while I'm coding with python in the same offline env, I'm downloading everything from PyPi manually & use the .whl in my offline environment using removable devices from one online environment to the offline environment.
I'll appreciate for any help or direction to the solution.
You need to download their source from the github. Find the main file and then include it in your main file.
You need to find the source and go through the package.json file. There you can find which is the main file. So that you can include that in your application.
To include example.js in your app. Copy it into your application folder.
Once you do that, your requirements will just be:
var moduleName = require("path/to/example.js")
It will always look for a node_modules directory at the root of your app (and a few other places as well).
It's important you download the full repo and not just the lib folder if you plan to use it this way since the package.json file is used to find the main entry point. As long as the repository has a valid package.json file it should work.[

How to create nuget package of .zip file

I have a .zip file which contains 3 directory(folder) inside this.
Now I want to create a nuget package for this .zip file so that I can use this into my git repo.
I know basic way to create nuget package though not sure how to create for existing .zip file.
Please check this article
https://learn.microsoft.com/en-us/nuget/create-packages/creating-a-package
No matter what your package does or what code it contains, you use one
of the CLI tools, either nuget.exe or dotnet.exe, to package that
functionality into a component that can be shared with and used by any
number of other developers. To install NuGet CLI tools, see Install
NuGet client tools.

Overriding package libraries in Google App Engine project

I am writing a Google App Engine Django REST Framework project that uses external libraries through requirements.txt.
In one of the of files in a module installed in requirements.txt, I am manually editing some code there. How do I get GAP to use this modified version instead of original one.
The way I am doing this is installing the packages in a folder called lib, modifying the package inside it and then creating a file called appengine_config.py which contains this:
from google.appengine.ext import vendor
vendor.add('lib')
But when I deploy it, it still uses the original package in requirements.txt. Any idea how to make this work?
GAE will use requirements.txt and install those libraries in the lib folder when you deploy. That is just how it works.
Nothing prevents you from deploying code outside the lib folder. You can structure your project like this:
GAE_folder:
-- app.yaml
-- requirements.txt
-- lib
-- my_app
-- my_custom_lib

Is it possible to change the directory where node.js modules are installed?

Is there any way to change the directory where node.js modules are installed? By default (on Linux Mint 13), npm install express installs the express module in home/username/node_modules, but I want modules to be installed by default in home/username/Dropbox/node_modules instead.
Well if you want to change installation directory try setting relevant prefix.
Just a suggestion though, if its a small project, a quick fix is simply install packages separately on each machine. If its a big project then I guess you would be atleast using some source control like git. All package dependencies can be managed elegantly using source control.

Resources