w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
I have an install script in the before part of travis-ci's script, but travis "can't open it"
sh: 0: Can't open adore-djakota-install.sh means that sh can't find the file. It appears to me like you've forgotten to cd into the directory where the file is located. Also, remember that you have to cd back into $TRAVIS_BUILD_DIR at the end of before_script so Travis can run your actual tests (the default build script expects to be run from $TRAVIS_BUILD_DIR.

Categories : Bash

Using travis-ci.org with a pure as3 project
We do not have built in support for ActionScript, but if it's possible to run on Ubuntu, then it should be possible to test on Travis. You can install any dependencies as part of the build process with apt-get: before_install: - sudo apt-get -qq update - sudo apt-get -qq install some-package another-package Looking at the FlexUnit docs, it looks like you need a frame buffer available. You may have some luck using xvfb. We have some docs on that, although aimed towards browsers, it may work for you too.

Categories : Actionscript

Gradle dependencies with Travis CI on Android project
I got this solved with some help. It seems that Gradle couldn't find the Android Support dependencies on the local repository, those needed to be installed with the following command: android update sdk --filter extra-android-support --no-ui --force > /dev/null android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null You can check my .travis.yml file on this public repository (https://github.com/Ruenzuo/cloaked-octo-cyril), hope this helps someone else.

Categories : Android

How can a Github Gradle project built in travis-ci access dependencies normally found in my local Maven repo?
You can either commit the artifacts to a private source control repository, or push them to a private binary repository. The only suitable software-as-a-service binary repository that I'm aware of at this time is Artifactory Online. If you go with a binary repository, you'll also have to provide Travis with (temporary) credentials to download the artifacts. One way to do this would be to configure the Travis build to set an environment variable containing the necessary information.

Categories : Maven

How to Install Matplotlib Basemap Module on Windows 7 with WinPython (or any Python stack install)?
I use windows. And my installation failed with official guidance, too. Finally I installed Basemap using the following method. Although I am not sure if it will go right for you, I just offer mine. First of all, you must have pip in your computer. (It is much easier to install, compared with Basemap and other things. And it can be used to install many useful packages.) Then go this great link: http://www.lfd.uci.edu/~gohlke/pythonlibs/ And download the file named "basemap‑1.0.8‑cp27‑none‑win_amd64.whl". Remove the .whl file to directory "C:Python27". (Maybe you installed your python in different disk, then change it accordingly.) Open terminal. (Use cmd or Git Bash or something else.) Use command: pip install basemap‑1.0.8‑cp27‑none‑win_amd64.whl

Categories : Python

Pip install python package into a specific directory other than the default install location
System: Ubuntu 12.04, Enthought Python Distribution (this is where I wanted to install a new python module) So the prefix_path environment variable didn't work for me and pip still kept installing it in the default location. But I used change default directory for pip install question as a guide. And one of the answers helped me achieve what I needed. pip install -d <path_to_my_directory> For the path I used: path_to_epd_directory/lib/python2.7/site-packages This puts the tar.gz file into the site-packages Then extract it using: tar -zxvf pymodule.tar.gz a directory named pymodule is created, cd into that module and type: python setup.py install and that should do the job.

Categories : Python

Adding in a python module to the sys.path for a Java project in pydev, Eclipse
Having spent a few seconds looking at the documentation (so I've no ide if this actually works), it looks like you can use pass in a PySystemState to the PythonInterpreter constructor. The PySystemState has a public path field that (I assume) you can append path entries to. UPDATE As you want to specify the path in the runtime configuration, then it looks like you can do this by specifying the python.path system property on the command line (from the Jython FAQ): Properties props = new Properties(); // set in the VM args in the Eclipse runtime configuration instead // props.setProperty("python.path", "/home/modules:scripts"); PythonInterpreter.initialize(System.getProperties(), props, new String[] {""});

Categories : Java

Trying to install a Scitools Python pkg via 'pip install' but getting error
I had the same error but resolved it by manually installing all the Anaconda packages. NumPy SciPy Pandas PyTables h5py Matplotlib IPython Spyder Qt/PySide VTK Numexpr Astropy Cython LLVM LLVMpy Numba Scikit-learn Scikit-image NLTK NetworkX MayaVi

Categories : Python

How to install grails project
If you are creating a grails "plugin", you should be referring to this information instead. The one you are referring is for creating a Grails Application. Gist: Grails app (one you are referring to) creates a deployable component which can be deploed to any container and accessed. On the other hand, grails plugins are extension/modules that are created and maintained separately. packaged as zip and are plugged to any Grails Application when required. If you are creating a grails plugin and want to push it to local/remote repositories, you need to use the release plugin which comes inside a plugin by default. grails maven-install The command is taken from release plugin to push your plugin to local maven repositories, if you have any.

Categories : Grails

Install a gem to node project on Heroku
I got a reply from Heroku. "You would need to use the heroku multi buildpack in order to have both the Ruby buildpack and the Node buildpack: https://github.com/ddollar/heroku-buildpack-multi"

Categories : Node Js

Can't install MVVMCross on PCL project only on XamarinStudio
Well, just found on the "N+1 days" of Stuart a video of how to fix the problem on Xamarin Studio here: http://www.youtube.com/watch?v=UC2r4mmj3UI&feature=youtube_gdata The fix is to open and edit the csproj. of the PCL project, and change the TargetFrameworkProfile element value to Profile104

Categories : Dotnet

Make a deployable Java EE project from a java project
I know that normaly a root Project with a root-Pom is created, that holds a EAR Project with the ear-Pom and the EJB Project with the ejb-jar This is not necessarily the "normal" way. You can deploy a .jar containing EJBs on its own. Typically you would do this if the EJB beans are either called remotely (via RMI/@Remote or via SOAP/@WebService) or if the application contains some job-like logic (@Singleton/@Startup, or maybe JSR 352 Batching). Could somebody explain how I package and deploy my app correctly? In your pom.xml you should use <packaging>ejb</packaging>, that's basically it (assuming you have an otherwise valid pom.xml). The resulting jar can be deployed on its own. For GlassFish you would use the asadmin deploy command for this.

Categories : Eclipse

How to install Doctrine Extensions in a Symfony2 project
You can install it via composer. Just add it to your composer.json and then php composer.phar update beberlei/DoctrineExtensions "beberlei/DoctrineExtensions": "*", Then you can register functions to your ORM doctrine: orm: auto_generate_proxy_classes: %kernel.debug% entity_managers: default: auto_mapping: true dql: datetime_functions: MONTH: DoctrineExtensionsQueryMysqlMonth YEAR: DoctrineExtensionsQueryMysqlYear

Categories : Symfony2

How should I Install wrapboostrap template on a rails Project?
Hi I just find out what was my issue, First of all I just move all javascritps and css to vendor/Javascripts and vendor/stylesheets , then added those entries in application.js and application.css manifest. Making a lot of investigation I've figure it out that jquery.min.js has to be loaded first, so It appears that jquery.min.js was not loading first, so I just add a new entry on my application.js mainfest and Violá!!! all jquery animations started to work!. So, I will recommend that always make sure that your jquery.min.js load first, if you are Working with wrapbootstrap themes. to do that just simply add the next line on your application.js manifest //= require jquery //= require jquery_ujs //= require_self //= require ../../../vendor/assets/javascripts/jquery.min.js //= require_

Categories : Ruby On Rails

iOS Project with CocoaPods in SVN Failed when doing pod install/update
Try doing a fresh svn checkout of the project, then when that completes successfully, do an svn update on it immediately. You shouldn't get anything new (unless someone has committed to the project while you were checking it out). After that, run your pod install.

Categories : Svn

How to install openssl.so and libssl.so in an android project?
What you need to do is use the PREBUILT_SHARED_LIBRARY directive. In your Android.mk, add the following sections: # Prebuilt libssl include $(CLEAR_VARS) LOCAL_MODULE := ssl LOCAL_SRC_FILES := precompiled/libssl.so include $(PREBUILT_SHARED_LIBRARY) # Prebuilt libcrypto include $(CLEAR_VARS) LOCAL_MODULE := crypto LOCAL_SRC_FILES := precompiled/libcrypto.so include $(PREBUILT_SHARED_LIBRARY) As part the LOCAL_MODULE := security section, add the following: LOCAL_MODULE := security ... LOCAL_SHARED_LIBRARIES= ssl crypto This LOCAL_SHARED_LIBRARIES line will replace the following lines: LOCAL_LDLIBS += $(LOCAL_PATH)/precompiled/libssl.so LOCAL_LDLIBS += $(LOCAL_PATH)/precompiled/libcrypto.so Please take a look at the question Calling inner Android.mk file to build prebuilt librarie

Categories : Android

Cannot Install libjson in c++ Embedding in XCode 4 Project
I'm answering my own question because this was a pain in the neck. Here's what I did to get it working. Comment out #define JSON_LIBRARY in JSONOptions.h Run make Add libjson.a to your project Add libjson.h to your project Add JSONOptions.h to your project Add #include "libjson.h" to your main project file Voila. Hope you don't waste as much time as I did on this...

Categories : C++

LuaSocket in Windows - How to install and use it in an Eclipse Project
First error looks like you are running in Linux?? Have you successfully installed LuaSockets? Its written in C so you need a compiler to install it. That can be found in Microsoft developer tools. You can also use cygwin. Alternatively if you have mingw installed you can first download: https://github.com/pkulchenko/ZeroBraneStudio/blob/master/build/build-win32.sh Then you can run: bash ./build-win32.sh lua luasocket

Categories : Eclipse

install and execute cocos2dx project on windows 8
Option 1 Your going to have to open a new Direct3D project and follow the directions from here Option 2 There are a couple build scripts available to generate project types for all platforms in python, as seen here. (this works with 2.1.2 or later) Option 3 Newer versions of cocos2d-x have build scripts for all platforms that come with the latest git repos. Not sure if there are a lot of breaking changes but the newer versions also have build projects.(build-win32.bat) About the project template. The templates for windows 8, at least in the last stable release I looked at a month ago, still had some issues with the html in the c++ project wizard but, the current development branch should have that fixed for the windows 8 visual studio browser. If they haven't then there are a coupl

Categories : Visual Studio 2012

How to build & install GLFW 3 and use it in a Linux project
Step 1: Installing GLFW 3 on your system with CMAKE For this install, I was using KUbuntu 13.04, 64bit. The first step is to download the latest version (assuming versions in the future work in a similar way) from www.glfw.org, probably using this link. The next step is to extract the archive, and open a terminal. cd into the glfw-3.X.X directory and run cmake -G "Unix Makefiles" you may need elevated privileges, and you may also need to install build dependencies first. To do this, try sudo apt-get build-dep glfw or sudo apt-get build-dep glfw3 or do it manually, as I did using sudo apt-get install cmake xorg-dev libglu1-mesa-dev... There may be other libs you require such as the pthread libraries... Apparently I had them already. (See the -l options given to the g++ linker stage, belo

Categories : Linux

preventing addition of system Python path to virtualenv easy-install.pth by python setup.py develop
When you do python setup.py develop That ^ python that you are using to run setup.py is not necessarily associated with the virtual environment. You need to ensure that you are running the virtualenv's version of python by navigating directly to python.exe in your virtual environment and using that to run setup.py. Alternatively you can just call activate.bat in your scripts folder and it will do it all for you, ensuring that nothing outside of the virtual environment is used. edit if you are certain that you are using the virtualenv's python.exe please ensure that when you created the virtual env you used the --no-site-packages flag virtualenv --no-site-packages myEnv edit2 the --no-site-packages seems to have been OP's problem

Categories : Python

How do I use a Java project that requires a 1.7 compliance level on an Android project build path?
Try to clean your project, and fix android properties. Link here and here

Categories : Android

java servlet project and android library project in eclipse - NoClassDefFoundError
First of all - I believe Java Web Project will not work with any of Android specific classes due to many reasons. If your MonitoringModel contains some Java code that you want to share between Android and Web application you can extract it to separate Java project and use a Link Source option in Properties->Build Path to link it to both projects.

Categories : Android

How do you include files from a scala project in eclipse in a java project in netbeans
If you are developing a library in your Scala application, i would suggest to use sbt and package the library as a jar and import that jar to your java project. You will have to define a build file in sbt. I am not sure whether you already defined it and use the sbt package command. sbt package Try using sbt

Categories : Java

Java reflection: How can I load a class from another project without adding that project or JAR to my classpath?
You need to implement a custom classloader, something like this Class<?> cls = new ClassLoader() { public java.lang.Class<?> loadClass(String name) throws ClassNotFoundException { byte[] a = read class bytes from known location return defineClass(name, b, 0, a.length); }; }.loadClass("test.MyClass");

Categories : Java

NoSuchMethodError occuring in normal java project and not in J2EE project ( Eclipse)
NoSuchMethodError happens when you write code for one version of a class and then run it with another that does not have a the method that you use. From the documentation: Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. Make sure that you have the same versions of the library that is giving the error in both environments. If the error is thrown for a method that you wrote yourself you have a mixture of classes from different builds. Try deleting all class files and doing a clean build.

Categories : Java

When I try to install Trac on Windows I get an error when I need to create a project
Could be an env var path problem, not sure. I recommend to install the Windows version of Bitnami Trac Stack because it's an all-in-one package of Apache+Python+SVN+Trac. You install in a 3-minutes-action by click-click-click-click-done approach, and you will not have any trouble.

Categories : Python

What's an easy way to convert legacy Java project with lots of jar libraries to maven project dependency list?
There's no magic bullet here. This will be a tedious manual trial-and-error task: Take your best guess as to the dependency version numbers Attempt to build If it builds, attempt to run it If you get errors, go back to step 1 and refine Once you get it done Maven should make it much easier going forwards.

Categories : Maven

Unable to acces files of other project in a eclipse java project
Make your resources folder also as a source folder. Select Project A, go to project > properties, under java build path> source tab, add resources folder. This will make sure all your files available in resources are copied to bin folder and can be referred as classpath resource.

Categories : Java

Programatically install Python msi application from a Python script
Normally every well designed MSI can be installed silently. The given standard command line should be tried out, other optional parameters maybe TARGETDIR for the directory etc. The msiexec parameters "/quiet" and "/qn" do the same, don't use them both. The main problem in your case is about admin rights. A script normally does not run with admin rights, if you have not done special things (like adding/changing manual manifests). If you just use the parameter "/qb" instead of "/qn" normally MSI should come up with UAC. Try it out first, it's the easiest (maybe not the absolutely best) solution. Not silent, but unattended installation, may be sufficient for you. Or even "/qb+" then you get a final box too. To start an installation (or everything else requiring admin rights) from a script

Categories : Python

Install python module to non default version of python using .sh
You should run your scripts in a virtualenv created for your app's environment. This creates an isolated environment that uses the Python interpreter you created the virtualenv with, but with its own set of libraries. # create the virtualenv folder: M2Crypto-venv python2.7 virtualenv.py --distribute M2Crypto-venv # activate the virtualenv, changing environment variables to use its Python interpreter . M2Crypto-venv/bin/activate # see how the current python has changed which python # should be M2Crypto-venv/bin/python python --version # should be 2.7 # after activating, run your install scripts If you're using mod_wsgi or something similar to serve content, you'll want to modify your WSGI file to activate the virtualenv before doing anything else (adapted from mod_wsgi instr

Categories : Python

Install OpenCV for Python (multiple python versions)
Use virtualenv virtualenv -p python2.7 env source env/bin/activate python --version # prints «Python 2.7.3» pip install pyopencv If you need support of 2.4 (or other version), just create new environment.

Categories : Python

How to install new packages for pyramid without getting a pkg_resources.DistributionNotFound: once a project has been created
pip and setup.py develop should not to be mixed. The latter uses easy_install which is not compatible with pip in the case of namespace packages (these are packages that are installed as subpackages of another parent, such as zope.sqlalchemy installing only the .sqlalchemy part of the full zope.* package). Namespace packages will cause problems between pip and easy_install. On the other hand, most other packages will work fine with whatever system you choose but it's better for you to be consistent. Another thing to double check is that you are actually installing the packages into your virtualenv. You should be able to open the python cli in your virtualenv and import the package. If you can't, then it's probably not installed.

Categories : Python

Remove SonataPageBundle or Install a fresh Symfony2 with SonataAdmin project
Yes, you can use composer to install only the Sonata bundles you need. Here's mine, which is about as short as it gets for Sonata using Doctrine: "require": { "sonata-project/admin-bundle": "dev-master", "sonata-project/doctrine-orm-admin-bundle": "dev-master", "sonata-project/user-bundle": "dev-master", "sonata-project/media-bundle": "dev-master" } If you haven't actually started coding anything, you might want to start a new project because removing PageBundle is slightly tedious and reinstalling using this guide is simple and basically three simple steps: Install composer: curl -s https://getcomposer.org/installer | php Download Symfony2: php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony 2.3.0 Then you can add the bund

Categories : PHP

how to create one click setup for .net project to install several files and dlls
i show you the way , crossing is by you install "install shield " software ( a program for making setup ) Make a new project and use prerequisites(tools > Build prerequisites ) and define the programs that you need to be installed before your main setup hope to be useful ...

Categories : Vb.Net

install project visual studio 2010 files cannot be executed
So let me see if I understand - You tried to open your project in VS2010 instead of VS2012, to create a setup file, that requires an Admin Permission. If so, you have to put this line in your manifest file: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> I think this thread can easily answer your question.

Categories : C#

How to use Maven to build a Java EE project with Java class references to several dependent Java projects?
You are getting this error because you are trying to join everything with maven pom file where packaging node is set to war: war/ +--- project 1 - jar/ | +--- project 2 - jar/ instead you have to reorganize your project and join everything in project with packaging type set to "pom" pom/ +--- war/ | +--- project 1 - jar/ | +--- project 2 - jar/ Maven requires parent pom to be of type "pom".

Categories : Java

Eclipse: What is the Difference Between "dynamic web project" and a "java ee web project"
According to Jboss documentation, java EE web project "generates a Java EE 6 web project with JSF 2, JPA 2, REST and CDI support enabled. In your scenario, JPA 2, REST and CDI could be more than you need. You should go with dynamic web project, which is the standard profile for web applications. You could insert additional features such as JPA later, if you need them.

Categories : Eclipse

fail to install nuget package zlib in a visual studio project
It looks like these packages do not target .NET framework. They are meant to be used in C/C++ projects. You may want to use zlib.net package.

Categories : Dotnet

Gradle Maven plugin "install" task does not work with Android library project
I just solved the issue by defining an upload archive as described here: Gradle documentation 52.6.2. Deploying to a Maven repository uploadArchives { repositories { mavenDeployer { repository(url: "file://${System.env.HOME}/.m2/repository/") } } } calling gradle uploadArchives deploys the artefact to the (in my case local) Maven repo. I havn't found a simple and more flexible way to specify the local repo's url with e.g. mavenLocal() yet but the above suits my needs.

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.