问题标题 string | 问题内容 string | 答案 string | 点赞 int64 | Unnamed: 4 null | Unnamed: 5 string | Unnamed: 6 int64 | Unnamed: 7 string | Unnamed: 8 string |
|---|---|---|---|---|---|---|---|---|
Including required DLLs into a windows project solves a perceived problem? | We have recently decided to start shipping the versions of some of the DLL files that a product requires with the product itself.
This is to guard against the situation where (for example) the MVC DLL file is updated on the server to which the software is deployed and the product fails to work as it was written agains... | Assuming you meant the MSVC (Microsoft Visual C++) DLLs, the correct solution is to use an application manifest. The MSVC DLLs support Side by Side installation (SxS). This means that a new version of those DLLs does not replace an old version. Your application manifest tells Windows which DLL version(s) you want. | 2 | null | yes | 2 | My concern and question is whether this is going to give a false sense of security or not actually cope with the problem in the following situation: if Version 1.0 of the MVC DLL file is relying on method X of standard Microsoft DLL library Y and this DLL file Y is updated we will be in the same situation of having a b... | the correct solution is to use an application manifest. The MSVC DLLs support Side by Side installation (SxS). This means that a new version of those DLLs does not replace an old version. Your application manifest tells Windows which DLL version(s) you want. |
Including libraries while avoiding conflicts for code that uses your code | Concrete Example:
I'm writing a library to provide a given functionality. When writing my library, rather than reinventing the wheel, I want to use Apache Commons (ie, StringUtils, etc). Unfortunately, if I include that library with mine, either as a separate jar or built into my own jar (build-with-dependencies), I f... | Do you know jarjar ? https://code.google.com/p/jarjar/ | 2 | null | yes | null | null | null |
Gerrit revision workflow: merge conflicts and re-approval | We are considering using Gerrit for the large project. At this point it would be interesting to know how people are dealing with merge conflicts of approved changes.
Imagine, that many changes of different size are pending revision simultaneously, and they are being reviewed and verified gradually. Since some of them ... | Gerrit is used by some really massive projects, such as Android and the related bsp, kernel, etc repositories. These projects get way more than 50 external commits per week. I think Qualcomm will have several thousand commits in about that amount of time.
There is a setting in Gerrit to auto-merge trivial conflicts. T... | 7 | null | yes | null | null | null |
Are annotation class files needed in the runtime class path? | If a class is annotated with an annotation, does the definition of that annotation have to be in the runtime classpath in order to use the class? For example, given the annotation
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.... | Runtime annotations are meta information to be processed by annotation processor at the runtime. If there is an access to annotation at runtime, you definitely add annotations in the classpath. For example junit definitely need the annotations in the class path determine test methods.
If there is no processing of anno... | 6 | null | no | null | null | null |
Modifying a Compiled Static Library | Put on your c++ ninja voodoo gloves.
We purchased a 3rd party library to use in our iOS app. There are 2 versions of that library, so let's call them bull_frog_noises.a and toad_frog_noises.a.
The company never imagined that someone would want to make both frog noises in a single app, so each library offers the same ... | I would try using a hex editor to manually modify one of those libraries so that every instance of MAKE_FROG_NOISE was replaced with MAKE_TOAD_NOISE. You would have to be extremely careful to make only that one change. You can only replace bytes. Don't insert or delete anything. And don't change anything else in the fi... | 3 | null | no | null | null | null |
JSF 2.0 and Primefaces with Facelets | I'm trying to incorporate primefaces into my JSF 2.0 web project.
I've recently updated from facelets 1.x to 2.0 and Added primefaces jar to my library folder. Everything is fine except, the way I have my templates structured has a conflict with the primefaces.
my template.xhtml looks like this:
<?xml version="1.0" ... | In your template.xhtml, you need to replace <head> by <h:head> and <body> by <h:body>. You shouldn't add another ones, that would only result in invalid HTML.
Particularly the <h:head> is mandatory as it allows component libraries like PrimeFaces to auto-include the necessary CSS/JS files by resource dependency inject... | 4 | null | no | null | null | null |
Eclipse error installing update Indigo 3.7.2 w/ ADK | Eclipse is running into problems with dependencies after trying to update from Indigo 3.7.1 and Android SDK 15.
It seems all the Android components installed but I get the following message "There were no installable units selected when the plan was computed" in the Available Updates window.
Eclipse SDK Version 3.7.2.... | Having a conflict dependency caused by "Software currently installed: Shared profile" is potentially a tell-tale of shared plugins issue in a shared installation (which can't be updated unless running as administrator, as reported in bug 339659)
Bug 322344 sums it up:
You have a number of plugins under c:\Program Fil... | 2 | null | no | null | null | null |
What's the benefit of using extend.js? | I just got acquainted with extend.js, and was wondering if there's an added value to using the library over using native JavaScript. Let me demonstrate;
With extend.js, I would declare a namespace like so:
extend('some.madeup.namespace',{
foo : 'bar'
});
… whereas without it, I'd only have to do that:
var some ... | I suspect a sensible answer to this question leans heavily on a generic answer for any third party tool.
People use third party tools when it helps them get the job done faster and more elegantly, at least that's the theory. But there are people, myself included who find it more elegant to reduce dependencies and to i... | 1 | null | no | null | null | null |
Install WordPress using bash shell without visiting /wp-admin/install.php? | I wrote this little BASH script that creates a folder,unzips Wordpress and creates a database for a site.
The final step is actually installing Wordpress, which usually involves pointing your browser to install.php and filling out a form in the GUI.
I want to do this from the BASH shell, but can't figure out how to i... | Check out wp-cli, based on Drush for Drupal.
wp core install --url=url --title=site-title [--admin_name=username] --admin_email=email --admin_password=password
All commands:
wp core [download|config|install|install_network|version|update|update_db]
wp db [create|drop|optimize|repair|connect|cli|query|export|import]... | 8 | null | no | null | null | null |
need help installing pecl on centos 5.8 | So basically I'm trying to install APC, but I can't get pecl to work on Centos 5.8 i686
I have the latest stable releases of php-fpm, mysql, and nginx. Everything is working at 100%, everything is smooth. I'm running a live website with no problems. I just can't pecl to work.
yum install php-pear:
Most of the packa... | /usr/bin/pecl is available from php-pear package.
The dependency failures you got are stange. Probably because you have mixed installation of php-* 5.1 RPMs and php53-* 5.3 RPMs and get conflicts on devel files. You should do some clean up to keep only one set of RPMs for your target version, either 5.1 or 5.3.
You a... | 6 | null | yes | null | I'm trying to install APC, but I can't get pecl to work on Centos 5.8 i686
I have the latest stable releases of php-fpm, mysql, and nginx. Everything is working at 100%, everything is smooth. I'm running a live website with no problems. I just can't pecl to work.
Most of the packages I'm trying to instal have depende... | /usr/bin/pecl is available from php-pear package.
The dependency failures you got are stange. Probably because you have mixed installation of php-* 5.1 RPMs and php53-* 5.3 RPMs and get conflicts on devel files. You should do some clean up to keep only one set of RPMs for your target version, either 5.1 or 5.3.
You a... |
How to eliminate /usr/local from pre compiler and linker paths? | I am trying to build an open source package and running into trouble involving a conflict with a prototype library I have installed in /usr/local, where the "right" version resides in /usr.
% (make distclean>/dev/null; ./configure > no_env_conf.log 2>& 1; make > no_env_make.log 2>&1 && echo Success || echo 'Build Erro... | From "man gcc":
-nostdinc
Do not search the standard system directories for header files.
Only the directories you have specified with -I options (and the
directory of the current file, if appropriate) are searched.
Also note that while pre-compilers do exist, you are not using one -- you are using a regula... | 1 | null | no | null | null | null |
jboss tools installation error in eclipse | I've installed Java 7, Eclipse indigo and downloaded Jboss AS 7.1.1. Now i would like to install jboss tools using eclipse marketplace, but I'm receiving these dependency conflicts every time...
I'm getting the errors mentioned in the unsuccessful installations tab located here
Cannot complete the install because of ... | I too faced this issue. I could resolve the issue by first updating the Eclipse (Help --> Check for Updates) and then install the jboss tools. | 1 | null | yes | null | I've installed Java 7, Eclipse indigo and downloaded Jboss AS 7.1.1. Now i would like to install jboss tools using eclipse marketplace, but I'm receiving these dependency conflicts every time...
I'm getting the errors mentioned in the unsuccessful installations tab located here
Cannot complete the install because of ... | resolve the issue by first updating the Eclipse (Help --> Check for Updates) and then install the jboss tools. |
Error Deploying Spring app to JBoss - NoSuchMethodError | I have created a Spring webapp, the app is working on tomcat and CloudFoundry, but I am getting an error attempting to start the app on JBoss (OpenShift express).
On starting I get the following error:
2012/04/10 11:11:58,967 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) Context initi... | Ok, I discovered the issue.
Using M2Eclipse Maven plugin in Eclipse, I had excluded the spring-core dependency (this had excluded the library from every dependency where it was a transitive dependency), I assumed this would be ok as I was using the org.springframework.core library instead.
However, it looks like it h... | 1 | null | yes | null | I have created a Spring webapp, the app is working on tomcat and CloudFoundry, but I am getting an error attempting to start the app on JBoss (OpenShift express).
On starting I get the following error:
2012/04/10 11:11:58,967 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) Context initi... | I have now fixed this issue by explicitly declaring a dependency on spring-core.3.1.1 and excluding all others to ensure that the latest gets pulled down. |
Structure large jQuery Mobile web apps: use iFrames as pages? Backbone, Spine, Underscore, and other frameworks? | We built a web app using jQuery Mobile. It's now nine pages and becoming very unwieldy. jQuery Mobile bundles all "pages" into the same page to simulate the responsiveness of native apps.
We thought about implementing each page as a separate iFrame. The first page contains every iFrame/page and preloads each one. Page... | Using iFrames seems to be not optimal especially when lots of different light-weight and easy frameworks exist.
JqueryMobile has it's own router. I didn't like it - using hash tags it requires the page with needed hash was in DOM. Of course, it's possible to load pages dynamically but you'll anyway need to create new ... | 3 | null | no | null | null | null |
Dalvik VM error: Exception found "Javax.xml.namespace.QName.class" | This isn't intended to be a question. Rather, an observation which is a common problem found in Android when you use external APIs for development and android.jar isn't duplicated into your project! | After searching through various forums, Google and stackoverflow, I seem to get a solution by myself and thought of sharing it.
Whenever you are linking external libraries, better link it by creating a /lib folder and dump those .jars there(means to COPY the files and NOT linking them). Link them using Eclipse -> Buil... | 10 | null | no | null | null | null |
how to do an embedded python module for remote sandbox execution? | I am trying to dynamically add python code to a sandbox module for executing on a remote machine. I am experiencing an issue with how to deal with imported methods. For example, it is common to see scripts written such as:
from test_module import g
import other_module
def f():
g()
other_module.z()
I kn... | Other modules can be imported to sandbox (you mean modules that are created dynamically at runtime) by
sandbox.other_module = __import__('other_module')
or:
exec 'import other_module' in sandbox.__dict__
If you call "sandbox" modules from other modules or other sandbox modules and you want to reload some ... | 1 | null | no | null | null | null |
Dynamic Dependencies | We have a situation where some of our dependencies have conflicting dependencies. We depend on A & B. A dependes on version a of X. B depends on version b of X.
Are there any dependency management tools that handle this type of a situation. I feel as if I had heard about some dependency management tool that dynamicall... | You can use OSGi or some other framework that manages multiple class-loaders so that the conflicting versions don't end up in the same class loader.
You can try to do the same thing yourself on a small scale by creating class loaders.
You can use the maven-shade-plugin to rename the packages in one or more copies to ... | 1 | null | yes | null | We have a situation where some of our dependencies have conflicting dependencies. We depend on A & B. A dependes on version a of X. B depends on version b of X.
Are there any dependency management tools that handle this type of a situation. I feel as if I had heard about some dependency management tool that dynamicall... | You can use OSGi or some other framework that manages multiple class-loaders so that the conflicting versions don't end up in the same class loader.
You can try to do the same thing yourself on a small scale by creating class loaders.
You can use the maven-shade-plugin to rename the packages in one or more copies to ... |
Qt static linking and deployment | I am trying to deploy(release to public) a simple qt application I made recently, but got stuck at static linking qt libs.
I followed the guide on qt docs to re-build qt and my app statically. But the release build still require qtgui / qtcore dll for no apparent reasons, I wonder if anyone has seen this kind of probl... | I wrote a guide to static linking
and How to build Qt static with multiple compilers and keep it small
(because it can get pretty big, especially for simple programs). You may also want to check out the BitRock installer, which is free for open source projects.
In short, it turns out to be a little more complex if y... | 49 | null | no | null | null | null |
maven resolves dependecy but cannot find package/classes in it | In custom geotools platform compilation (in fact OSGi-based) one of the modules compiles properly when I try to build it separetly. But when I build the whole project - it fails on compile stage with reason that it cannot find certain packages/classes. Howerver the dependincy is resolved fine.
here is the dependency f... | I can see two things to try to solve it out.
First, if you go in your local .m2 repo, you will see if there are other versions of the lib (however, sometimes different versions can have a different name, and therefor be stored in a different folder, which does not help)
You can also check what is the ACTUAL dependenc... | 7 | null | yes | null | In custom geotools platform compilation (in fact OSGi-based) one of the modules compiles properly when I try to build it separetly. But when I build the whole project - it fails on compile stage with reason that it cannot find certain packages/classes. Howerver the dependincy is resolved fine.
here is the dependency f... | I can see two things to try to solve it out.
First, if you go in your local .m2 repo, you will see if there are other versions of the lib (however, sometimes different versions can have a different name, and therefor be stored in a different folder, which does not help)
You can also check what is the ACTUAL dependenc... |
How do I correctly use Nexus and Maven/Jenkins for a 3rd Party library (not in Maven Repository) and a necessary p2 repository | we use Jenkins/Maven for BuildManagement and Continuous Integration. Managing 3rd party libraries should be handled by the Nexus Server we set up.
A 3rd party library in question is org.eclipse.bpmn2 0.7.0
This library isn't hosted at a remote Maven repository, as far as we know
We've uploaded the 3rd party libraries ... | You have a few things going on here:
Maybe important: How do the local Maven repo and Nexus work together? Is the local repository redundant? Could it conflict with Nexus libraries? Or does Maven only load the dependencies from Nexus and store in the local repository? Should we have emptied it after installing Nexus?
... | 3 | null | yes | null | we use Jenkins/Maven for BuildManagement and Continuous Integration. Managing 3rd party libraries should be handled by the Nexus Server we set up.
A 3rd party library in question is org.eclipse.bpmn2 0.7.0
This library isn't hosted at a remote Maven repository, as far as we know
We've uploaded the 3rd party libraries ... | Maven makes requests for artifacts not found in the local repository from the remote repositories. Nexus is a remote repository, even if it's on the same machine. So in order to get requests running through your new Nexus setup, you need to first empty the local repo. Then things will be cached in Nexus and in the loca... |
Dependency on two versions of a Jar | I have a module X that is dependent on a Third party library which in turn depends on apache-commons-collections 2.1.
In module X, I want to use the latest apache-commons-collections 3.0 which has some additional methods than 2.1. If I add a dependency to 3.0, I'm guessing this will create a problem since the class lo... | IMHO there is no really good way without additional solution for modularity (like Java EE's EAR or OSGi). I guess however that you're asking about just simple web (or not) module that directly use this 3rd party lib. I'm afraid you have to resolve this conflict manually. If fact, Maven won't provide 2 versions of commo... | 1 | null | yes | null | I have a module X that is dependent on a Third party library which in turn depends on apache-commons-collections 2.1.
In module X, I want to use the latest apache-commons-collections 3.0 which has some additional methods than 2.1. If I add a dependency to 3.0, I'm guessing this will create a problem since the class lo... | I guess however that you're asking about just simple web (or not) module that directly use this 3rd party lib. I'm afraid you have to resolve this conflict manually. If fact, Maven won't provide 2 versions of commons-collections and depend on classloader's resolution, but rather resolve dependencies graph and pick the ... |
JNLP should use a specific Java version but error results | I'm facing a problem here. I want to use a special version to run our java webstart application but just for one jnlp. ("It was tested, ... blabla we can't use a new version... blabla" by random windbag)
So I tried to configure our JNLP like this:
<resources>
<j2se version="1.6.0_29" href="http://java.oracle.com/... | I had installed Java 1.6.0_21 and it was enabled at the Java Control Panel. However I got the same error message that it's stated in the question: "The application has requested a version of the JRE (version 1.6.0_29) that currently is not locally installed"
I got this message even if I tried with different lines in t... | 3 | null | yes | null | null | null |
Ironfan setup problems | I’m trying (and failing!) to set up ironfan
I’m getting to the situadion where I’ve installed it, but when I do a ‘knife cluster list’ I get the following error:
ERROR: Gem::LoadError: Unable to activate ironfan-3.1.5, because fog-0.8.2 conflicts with fog (~> 1.2.0)
I have fog 1.2.0 and 0.8.2 installed. I tried the ... | I found the answer. I needed to edit the gemspec to allow greater versions of fog. See https://github.com/infochimps-labs/ironfan/issues/130 | 0 | null | null | null | null | null |
PHP / MySQL stand-alone installer/updater script? | I'm looking for a script that will quickly implement package install/update functionality for my framework. It should be able to do the following things:
Must be PHP 5 compatible.
Should be able to install and update components' files and database tables.
Should allow defining of package dependencies and have a form o... | I don't know of any magic tools to do this, but a couple that might help you do these tasks are Phrake and Composer.
Phake is a PHP version of Ruby's Rake util. You could use these scripts to set up your database, update files and run unit tests.
For package management you could use Composer to manage your dependenci... | 1 | null | null | null | null | null |
Spring Security-Error creating bean 'org.springframework.security.filterChains' | I am trying basic spring security set up. I am using 3.1.0.RELEASE I have in the spring security xml as follows:
<security:http auto-config='true'>
<security:intercept-url pattern="/**" access="ROLE_USER" />
</security:http>
<security:authentication-manager>
<security:authentication-provider>
<security:user-service>
... | The actual cause of the problem seems to be that spring-security 3.1.0 pulls in older versions of spring which create a silent conflict. In my case spring-security-3.1.0.RELEASE pulled in spring-aop, spring-jdbc, spring-tx and spring-expression 3.0.6 but I was using spring 3.1.0.RELEASE. After adding these dependencies... | 11 | null | null | null | null | null |
Using ActionBarSherlock & ViewPagerIndicator Synchronously Will Not Compile | When using ActionBarSherlock and ViewPagerIndicator at the same time I am getting the below error; from what I've read - it's caused due to conflicting/duplicate libraries in the two.
One solution was to have ABS rely on VPI (Or the other way around, I tried both) but this still gave me the same error even after a cle... | Yes, the problem is both ActionBarSherlock and ViewPagerIndicator use libs/android-support-v4.jar dependency.
The simplest solution is upgrade your work station to latest Android SDK and Eclipse ADT plugin version (at least r17), as this situation is automatically handled by the SDK now (since r17), see the r17 change... | 6 | null | null | null | null | null |
Multiple package manager [closed] | Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Is there a pitfall of using multiple package managers? Could I use Redhat's yum with Debian's aptitude at the ... | The short answer is, yes you can, but you really shouldn't.
Below is a list of things (in no particular order) to consider when cross-distribution installing:
Dependency hell
The primary reason things like yum/apt/yast exist in the first place is to avoid what is known as dependency hell. By using packages from othe... | 14 | null | null | null | null | null |
What makes up the "standard jmock libraries"? | I'm following this guide http://javaeenotes.blogspot.com/2011/06/short-introduction-to-jmock.html
I've received the error
java.lang.SecurityException: class "org.hamcrest.TypeSafeMatcher"'s signer information does not match signer information of other classes in the same package.
In the guide the author says:
The ... | i'm a committer on both libraries. JMock depends on hamcrest to help it decide whether an call to an object is expected. I suggest just using the hamcrest-all jar. The split between hamcrest core and library was to separate the fundamental behaviour of matching and reporting differences from a convenient implementation... | 1 | null | null | null | null | null |
subclassing an open-source library | I am using a large open source library and need to generate personal subclasses of a few of the classes. What are the best strategies? I would like to keep the original library unaltered and be easily able to reconfigure when it is updated. It is unlikely that my code is worth contributing to the project (though I am h... | Here's how I would do this:
Create a separate project that contains your source code changes. Check it into source code/revision control (SVN, Git, whatever you're using). This project will only contain your changes.
Make sure it's a Maven project. Use the same version number as the original open source project, but a... | 1 | null | null | null | null | null |
Repackaging the .jar file | I need to add some jars from JRE7 library to my Android project. But for example rt.jar is in conflict with android.jar from Adroid 2.2 SDK, so I get this error:
Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library.
This is often due to inadvertently including a core libr... | It would be ill-advised to do this in any project at all, even if it were possible. You would be opening yourself to a wealth of class incompatibility and loading problems. But in any case it doesn't even matter because the core Java libraries are loaded way before your archives are even touched, making any such attemp... | 3 | null | null | null | null | null |
Handling frequent changes in csproj files with Visual Studio and Ankhsvn | I am using ankhsvn to collaborate with my friend on a project in Visual Studio.
Both of us are making frequent changes to the same project although we do not make changes to the same source files.
I have hard time understanding how to tell subversion to handle the automatic changes VS is making in .csproj and .sln fi... | In my experience, #1 is your only option. As both of you are editing the .csproj regularly, and the nature of the .csproj is that both of your changes will always occur in the same region of the file, you're going to have conflicts.
Absolutely avoid #2. I can only think that you'd want to do this because you're worrie... | 4 | null | null | null | null | null |
C++ won't let me make friends | I have two classes, Mesh and MeshList. I want MeshList to have a function that can change the private members of Mesh. But it won't compile and I don't know why. Here's my code.
Mesh.h
#ifndef _MESH_H
#define _MESH_H
#include "MeshList.h"
#include <iostream>
class Mesh
{
private:
unsigned int vboHandle_;
fr... | When you compile Mesh.cpp, it includes Mesh.h, which includes MeshList.h, which starts to include Mesh.h but stops early because _MESH_H is now defined. Then (back in MeshList.h) there's a reference to Mesh -- but that hasn't been declared yet. Hence, e.g., your C2143 error. | 9 | null | null | null | null | null |
TFS Shelvesets and Code review [closed] | As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help... | I think Microsoft disagrees with you a lot on this one, as the new Code Review feature in TFS 11 and Visual Studio 11 is built around shelvesets. The real issue is probably more around how the team operates and how tasks are split up across the product.
If the tasks have been split such that they have few dependencies... | 11 | null | null | null | null | null |
TFS Shelvesets and Code review [closed] | As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help... | I think Microsoft disagrees with you a lot on this one, as the new Code Review feature in TFS 11 and Visual Studio 11 is built around shelvesets. The real issue is probably more around how the team operates and how tasks are split up across the product.
If the tasks have been split such that they have few dependencies... | 11 | null | null | null | null | null |
how to separate source code and data while minimizing directory changes during working? [closed] | Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
This is a general software engineering problem about working on Linux. Suppose I... | It's a little more coding, but can you set environment variables from the command line to specify the data directory?
export DATA_INPUT_DIR=/path/to/data
export DATA_OUTPUT_DIR=/path/to/outfiles
Then your script can process files relative to these directories:
# Set variables at the top of your scripts:
in_dir="${D... | 2 | null | null | null | null | null |
Android Static Linking vs Dynamic Linking against glibc | I have been cross-compiling some Linux tools (and some of my own C code) to Android and one of the challenges that I face is that Android's libc has some missing/stripped components and I end up patching my code to make it work with Android's libc (for e.g. a problem like this http://credentiality2.blogspot.com/2010/08... | First a small note on the libc. The Android libc is the Bionic libc (https://github.com/android/platform_bionic/) rather than the GNU libc (glibc). Thus the libc contained in the NDK is Bionic, as is the libc available on android devices.
As far as glibc is concerned, it is possible to build it with the NDK. However, ... | 5 | null | null | null | null | null |
org.json JAR provisioning | I was wondering why www.json.org/anyone else doesn't provide an official JAR package of org.json for download? All queries I find of people asking where they can download the JAR results in replies to the page which just lists the source files.
It seems a bit cumbersome to expect everybody to download each source file... | Have you considered using Maven? for instance, if you wanted a JAR to pars JSON you could just include...
http://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl/1.9.6
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.9.6</version>
</... | 19 | null | null | null | null | null |
Understanding External Jars in Eclipse | So I'm fairly new to Java and especially Eclipse, so please excuse my ignorance. I took a project from a server and copied it locally to my machine. When I opened the workspace, I had many errors due to it not being able to find the jars. This makes sense because I don't have the same dir structure as the server I copi... | You should be OK. Java is using what is called classpath to locate dependencies. The classpath may be different on the development machines, but as long as all the dependencies are on the classpath in the production everything should work.
To avoid issues with the synchronisation of directory structures the most commo... | 2 | null | null | null | null | null |
Spring - Maven | Jasper dependency | I'm trying to add my spring project the jasper dependency but i'm getting this error below
I already tried with diferent versions of jasper and log4j but i cant get it working:
I use the latest version of spring and oracle weblogic 11g.
This only happens when i add jasper dependency.
Anyone had the same problem?
<1/M... | SECOND ANSWER
The first error indicates that an incompatible XML parser implementation is getting used. Most likely Weblogic provides it's own implementation, and that is conflicting with an XML parser implementation being brought in by one of your dependencies. You need to figure out what is bringing in an XML parser... | 0 | null | null | null | null | null |
Yet another issue about log4net 1.2.11 conflicts | I've spent the last 2 hours looking over these issues on SO, and nothing seems to be working.
I have a solution that uses log4net 1.2.11, via NuGet. It works fine on my 32 bit development workstation running Windows 7. It does not run on my 64-bit Windows 2008 R2 test system. The error I get is:
Unhandled Exception: ... | I had this issue after upgrading log4net through NuGet, only to find that the newer version was signed with a different key. Sigh. For some reason this only became apparent when I deployed to the live server, it didn't crop up in development.
You can grab the 'oldkey' version from the apache log4net site. Just nuke yo... | 6 | null | null | null | null | null |
How to determine CPE: Cycles Per Element | How do I determine the CPE of a program? For example, I have this assembly code for a loop:
# inner4: data_t = float
# udata in %rbx, vdata in %rax, limit in %rcx,
# i in %rdx, sum in %xmm1
1 .L87: # loop:
2 movss (%rbx,%rdx,4), %xmm0 # Get udata[i]
3 mulss (%rax,%rdx... | If you want to know how long it needs, you should measure it. Execute the loop some about 10^10 times, take the time it needs and multiply by the clock frequency. You get the total count of cycles, divide by 10^10 to get the number of clock cycles per loop iteration.
A theoretical prediction of the execution time will... | 4 | null | null | null | null | null |
git releases management | I couldn't find anything what is the "right" approach to manage the releases using git. Say, I have master, release-1, release-2 and release-3 branches. Release 1 is already released and I do only bugfixing and released versions tagging on it. Release 2 is going to be released soon and I develop mostly on this branch w... | See the following posts on Junio C Hamano (git maintainer) blog:
Completing a merge
Never merging back (about branches forked with intention of not merging back)
Resolving conflicts/dependencies between topic branches early
Fun with remote branches (1)
Fun with remote branches (2)
Take also look at gitworkflows manua... | 17 | null | null | null | null | null |
Maven: determine if newer versions of libraries are used by dependencies vs. the project | I have several sets of libraries. For example:
Core 1.0
Core 1.5
Web 1.0 (uses Core 1.0)
Drawing 1.0 (uses Core 1.5)
My problem arises when I have a project that uses both the Web and Drawing libraries. I hard-code the version number of the Core library in a dependencyManagement section of my project, and update it f... | You can use mvn -Dverbose dependency:tree to see dependency hierarchy and it will also show you version conflicts like you've described.
Also can use mvn versions:display-dependency-updates to see updated dependencies. | 1 | null | null | null | null | null |
What tools are there to cross-create an OSX installer for a python package? | Distutils offers existing solutions to build a Windows self-extracting EXE. Notably, I can create the package even if I'm on Ubuntu (which is essential given our automated build process).
How do I build an osx installer from an Ubuntu machine?
(This is for python 2.7) | Py2app, cx_freeze, and py2exe are for creating standalone applications, not installers.
You can use Python distutils to create a zip file of your package, and then wrap the zip file in a script that self-extracts and installs the package, like this: http://www.noah.org/wiki/Self-extracting_Python_Script
Or, if you wa... | 5 | null | null | null | null | null |
Using JAX-WS webservices with Spring 3.0.X on JBoss AS 7.1.X | I have some problems deploying a JAX-WS webservice with Spring 3.0.6 on JBoss AS Final 7.1.1.
I have tried two first method from this tutorial: http://www.javacodegeeks.com/2010/11/jaxws-with-spring-and-maven-tutorial.html
When I was using the first method (extending SpringBeanAutowiringSupport and declaring the serv... | I am also having problems deploying JAX-WS with similiar configuration. Indeed using the SpringBeanAutowiringSupport as described in Spring doc chapter "19.5.5 Exposing servlet-based web services using JAX-WS" doesn't work as expected.
See doc http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference... | 8 | null | null | null | null | null |
Google Drive Java Authentication | I am trying to fetch access token and refresh token using the document specified here. While doing so, I am faced with an issue:
java.lang.NoSuchMethodError: com.google.api.client.json.JsonFactory.fromInputStream(Ljava/io/InputStream;Ljava/lang/Class;)
Where can I find the jar which contains this class and method? | The Google Drive Java client library is based on the Google APIs Java client library. Make sure you download it as well. The zip contains the library and all its dependencies.
Also make sure that you don't have conflicting versions of the Google Apis Client library in your compile/classpath as this method is only avai... | 2 | null | null | null | null | null |
Copy signed jar with dependencies | I'm working on a maven web project. I've created a different maven project containing a couple of applets i want to use in the main project. This project is added as a dependency to the main project.
In my Applet-project POM,
I've added a plugin for creating a jar with dependencies,
<plugin>
<artifactId>maven-as... | I had the same problem with jar-with-dependencies, it is much more easy to build it using maven shade plugin:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.6</version>
... | 0 | null | null | null | null | null |
What is pluginManagement in Maven's pom.xml? | This is a snippet of my pom file.
...
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<exec... | You still need to add
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
</plugins>
in your build, because pluginManagement is only a way to share the same plugin configuration across all your project modules.
From Maven ... | 356 | null | null | null | null | null |
Maven omits for jar conflict with older version | I'm new to maven. My gwt-compatible project uses PlayN, which has a dependency on Google Guava r09:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>r09</version>
</dependency>
(The project isn't GWT itself, but it is a dependency of a GWT project, so everything in it ne... | I would say that it is safer to specify the version you aim to use, and exclude the transitive dependencies that could lead to trouble.
If you want further support on this, you can run
mvn dependency:tree
before or after you add the exclusion, and post the result here | 0 | null | null | null | null | null |
Install pip and virtualenv, a chicken and the egg dilemma? | I've already been using pip and virtualenv (and actually sometimes still prefer a well organized combination through an SVN repository, wise usage of svn:externals, and dynamic sys.path).
But this time for a new server installation I'd like to do things in the right way.
So I go to the pip installation page and it sa... | tl;dr Answer would be VirtualEnv first. You can have two of them each for Python version 2.x and 3.x
[edit]
I am really doubtful if installing (there is no install, you merely download and execute a script) VirtualEnv system wide/per-user even matters. The whole point of Using VirtualEnv is to create isolated develop... | 6 | null | null | null | null | null |
Simple scalatra-test specs2 example throws Exception | I'm getting this exception when running the scalatra specs2 example from the scalatra docs:
ThrowableException: org.eclipse.jetty.http.HttpGenerator.flushBuffer()I (FutureTask.java:138)
Here is the test code (starting on line 5, skipping imports):
class MyAppTest extends MutableScalatraSpec {
addServlet(classOf[M... | Still unsure of the root cause, but the test executes successfully after rolling jetty-webapp back from 8.0.3.v20111011 to 7.6.0.v20120127. | 1 | null | null | null | null | null |
Installing multiple versions of the same package using yum? [closed] | Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I have a server with a weird internal version of MySQL installed and want to install collectd on that node. Un... | It is generally not possible to install two versions of the same package. This usually results in unresolvable file conflicts, although there are rare cases in which you can have multiple versions of a package installed without conflict (e.g., the kernel package).
It is possible to create a "fake" package that fulfill... | 3 | null | null | null | null | null |
Is there a possible solution to make the coding process scalable? | Each of our programs has something in common,
which is a waste of time and mind.
It's fine when the common part is simple,but not always the case.
Has anyone ever thought of this kind of question?
The goal is:
When we do coding,we only do the new,say,the part not similar with any part done before.
If there is a g... | This is the point of any library, programming language, or design pattern: to abstract away solved problems so they don't have to be solved again.
Of course, there will always be new, more complex problems to solve. And people disagree about the right way to solve them. So there's a lot more to be done. | 5 | null | null | null | null | null |
Looking for feedback on a use of the Adapter pattern | In a project at work we have a certain value type class in our domain model that includes a very large number of attributes...
public class BigValueType {
private Foo foo;
private Bar bar;
private Baz baz;
//...
}
We've realized that we would like to "focus" this into a number of different, somewhat... | Firstly, it is important to understand the problem you would want to solve. Having a class with a large number of attributes is not necessarily bad and if you want to do the refactoring only to conform to 'good' design principles, i would reconsider the decision.
Having said that, this is a fairly common design in the... | 1 | null | null | null | null | null |
Plugins in Maven and POM.xml | I just started using Maven and I read that plugins are additional components that can be used.
A typical structure of pom.xml file is
<project>
<groupId>org.koshik.javabrains</groupId>
<artifactId>JarName</artifactId> (A fldernamed JarName was created)
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging... | <project>
<groupId>org.koshik.javabrains</groupId>
<artifactId>JarName</artifactId> (A fldernamed JarName was created)
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>JarName</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-... | 79 | null | null | null | null | null |
ImportError: No module named sqlalchemy | I'm unable to find a module in python ,though easy_install says its already installed. Any idea how to resolve this isseue?
$ python -c "from flaskext.sqlalchemy import SQLAlchemy"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sqlalchemy
$ python -V
Python 2.7... | Did you install flask-sqlalchemy? It looks like you have SQLAlchemy installed but not the Flask extension. Try pip install Flask-SQLAlchemy in your project's virtualenv to install it from PyPI. | 78 | null | null | null | null | null |
Distributed Lock Service [closed] | Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 10 years ago.
Improve this question
Which distributed lock service would you use?
Requirements are:
A mutual... | A newer kid on the block is hazelcast. I've been playing with it and it is amazingly simple to use and configure.
As far as I can see there shouldn't be any conflict between Gigaspaces and hazelcast as hazelcast doesn't have any dependencies i.e. no jgroups.jar etc
Hazelcast:
A mutual exclusion (lock), yep implement... | 24 | null | null | null | null | null |
com.sun.xml.internal.ws.client does not exist | I'm trying to catch ClientTransportException and my program fails on compilation stage with the following exception
[ERROR]\workspace\rates\java\service\bundle1\src\main\java\com\connector\ws\TestClass1.java:[72,70] package com.sun.xml.internal.ws.client does not exist
As I know this package is from rt.jar and exist... | According to this FAQ it's a bad practice to directly call 'sun' packages. When I ran into the same problem it was fixed by catching javax.xml.ws.WebServiceException instead (as sugested by artbristol). | 23 | null | null | null | null | null |
scons behavior after running twice in a row | I'm trying to get scons configured as conveniently as possible. My build script works fine, but I'm still having trouble with one thing.
With make, if I run just 'make' twice in a row, the second time will do nothing because it will detect that the target is up to date (because I just built it).
How can I make sure t... | A more common way to specify the source files to be compiled in SCons is as follows:
sourceList = Glob('#/src/*.cpp')
t = env.Program(target='#/bin/build_result.exe', source=sourceList)
Notice the '#' character in the path. In SCons that means relative to the directory where the SConstruct file is located. Glob() do... | 2 | null | null | null | null | null |
Can I have a global razor @helper outside of App_Code? | The question is simple as stated in the title: Is there a way of having razor helpers outside of 'App_Code'?
Example ( HtmlEx.cshtml file ):
@helper Script(string fileName, UrlHelper url)
{
<script src="@url.Content("~/Scripts/" + fileName)" type="text/javascript"></script>
}
I ask this because I don't really have... | The question is simple as stated in the title: Is there a way of having razor helpers outside of 'App_Code'?
No, there isn't. | 18 | null | null | null | null | null |
Install C# application on user system with system libraries | I have created a C# 2010 application and now when I install it on user application it asks for complete dot net framework. Is it possible if I can only put required dll files with my application instead of installing complete dot net framework on user machine ? | No it is not possible
The .NET framework is more than just assembly to copy on the target computer. It is a more complex infrastructure that interact with the OS when an executable is loaded and, if it contains IL instruction, it compile it just in time in order to have it running. So non chanches in order to me to ha... | 3 | null | null | null | null | null |
Dependency Injection + Ambient Context + Service Locator | Recently I was reading a lot of stuff about application design patterns: about DI, SL anti-pattern, AOP and much more. The reason for this - I want to come to a design compromise: loosely coupled, clean and easy to work with. DI seems ALMOST like a solution except one problem: cross-cutting and optional dependencies le... | You can add cross-cutting concerns using hand-crafted decorators or some kind of interception (e.g. Castle DynamicProxy or Unity's interception extension).
So you don't have to inject ILogger into your core business classes at all. | 3 | null | null | null | null | null |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 2