I'm coming from a Rails background, where there is a Gemfile in each project. I'm trying to learn Sinatra now, and realize I need to install the Nokogiri gem. Where would I list my dependencies?
It's the same thing as in Rails just add a Gemfile
You may would look at a template project https://github.com/zapnap/sinatra-template
Related
I need to install this project/code as its required for a project I am working on.
Is the easiest way to just grab whats in the Dist folder and copy it into the project?
Do all projects have npm install commands? in the documentation this one doesn't appear to have any explanation for installing it?
See this page for npm:
https://facebook.github.io/react/docs/package-management.html
I guess only if a project is shared on npm, you can use npm commands.
For this particular project, you can use npm, as you can see by searching for the project on npmjs.com.
npm install --save react-modal will install the package in your project.
In general, however, yes, if a project doesn't have installation instructions and it isn't on npm, then you will have to download the code from github.
Found the answer and have been installing npm packages for fun every since ;) I followed this tutorial Node.js and npm into for VS2015
I found editing the packages.json file first fixed it for me. Cause after doing so then running the commands it installed perfectly fine. Thanks for the answers guys, did help me find the issue and the eventual solution.
I would like to use Nodejs in sync with my IDE in order to do a browserify + gulp/grunt config for my frontend modules.I am currently on Eclipse which crashes when I attempt to install npm modules for my config.
I currently use grunt with my package.json and the gruntfile and the npm modules outside the project,I have also found that the watch task is useless because one has to refresh the files in Eclipse and then restart the server.
A friend recommended the Intellij Idea IDE.I have come to understand(painfully) that the Nodejs plugin is not available in the community edition and is not likely to be.I would like to know if there is any way to run tools such as gulp,npm,browserify with a seamless watch config in the IntelliJ IDEA.
I have a simple J2EE project that uses no frameworks.
You can find more details in this link.
Normally I recommend to use text advanced text editor like
1.brackets
2.atom
3.sublimetext
Then it'l be more faster and easy.
I'm reviewing plugman, but it seems it is quite completed to use and I can't figure out how I'm I supposed to know which plugins are installed. How can I know which plugins are installed? How do I version this?
Good question. Since config.xml holds only cross platform installations using cordova plugin command, any plugins installed using plugman is not listed there. I couldn't find a command to list the installed plugins in plugman documentation. I usually look at the plugins folders directly inside the platform directory. For example, if I want to see plugins in Android, I go to:
project/platforms/android/cordova/plugins/
Here I can see the plugins installed from plugman.
I've asked a couple of questions already trying to get around this. I've tried not using maven at all, but would like to figure out why it hasn't worked for me in the first place. All the guides I see online that detail how to install maven projects just say to check out the code, go to the directory you want and
mvn install
and it should just work. However, I always have to use
sudo mvn install
As a result, my builds are successful (installing mahout and hadoop) but because the installation was done by root, a normal instance of eclipse can't access the files because it does not have root permissions. I must be doing something wrong since these kinds of problems don't seem to be mentioned by others explaining how to do maven installs. Launching eclipse as root with
sudo eclipse
does solve this problem, but people are forever telling me it's a bad idea to anything as root.
Here's an example of a guide I looked at
http://harish11g.blogspot.co.uk/2012/02/configuring-mahout-clustering-hadoop.html
What have I missed?
I'm not familiar with the specifics of these projects builds. Typically, however, mvn install is not run with elevated privileges because all it does is build the projects and put the output artifacts in ~/.m2/repository/. This allows the artifacts to be referenced as dependencies by other maven projects you want to build locally. This is useful if you need to do development against unreleased code.
mvn install is not analogous to make install in that the latter will usually install binaries on system paths, where as the former installs binaries in your home directory (specifically ~/.m2/repository/ as mentioned above.
I'm trying to learn to use glassfish for the first time. My IDE is netbeans and I've installed the glassfish plugin for netbeans. I opened up synaptics package manager and typed in glassfish. My choices were
imqv2
glassfish-activaton
glassfish-mail
glassfish-appserv
glassfish-toplink-essentials
glassfish-jmac-api
glassfish-javaee
I'm not sure what is in each package, or which package are needed. I can't seem to find anything that tells me anything descriptive about these packages.
I've seen a lot of tutorials on how to install glassfish, but I'd prefer to use apt-get / synaptics to install glassfish so that syntactics can take care of updating.
To strictly answer your question, I think that a typical install would at least include glassfish-appserv, glassfish-javaee, glassfish-toplink-essentials (for JPA).
But for development, I'd warmly recommend to use GlassFish v3 (because of the session preservation across deployments feature, to maximize productivity) and to install it manually in your home directory. Download the self-extracting installer file from here.
Do you want to run the latest and greatest software? It looks like Synaptic has Glassfish version 2 which is an entire major version out of date.
Just for the record: I love Ubuntu and their (well, Debian's) package management system. However, for any Java applications, I prefer to do manual installations. So, my Maven, Eclipse, Tomcat, Glassfish, etc. were all done through manual installs for the newest version... and because sudo apt-get install winds up throwing the app in some weird place and can have unexpected behavior.
Here is how you can do a manual install...
Download Glassfish: wget http://download.java.net/glassfish/v3/nightly/latest-glassfish.zip
Extract the archive anywhere on your filesystem
Inside your IDE such as Netbeans or Eclipse, setup a new server and point it at where you extracted the file
It's also useful to add a new environment variable to ~/.bashrc file, which will make it easier to start the server from the command-line, e.g. $GLASSFISH_HOME/bin/asadmin start-domain domain1
Another cool thing to try, if you're into maven, is to use the maven-embedded-glassfish-plugin. It's a clean way to get a web app up and running and not need to manually install glassfish and not even have to use an IDE.
You might also try asking this question at superuser.com if you really want to get it working with Synaptic.
i dont know if this here is still open...
but if you know how to handle shell commands on ubuntu then you might find this here helpful:
http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-311-on-ubuntu