dependencies

Managing maven dependancies - New Versions and Non-Repo libraries

Warning: I have just picked up Maven, so things mentioned might be wrong or not best practice. I have a medium size open source project that I am migrating to Maven from the basic NetBeans project management. This is not a developer team sharing the same room, this is 1-5 people over the internet sharing a SVN repo. Reading over the ho...

Dynamic targets in Makefiles

I'm trying to create a Makefile that has a target per src/ subfolder so that it creates a static lib. I am currently trying this: %.o: %.cpp $(CXX) $(CXXFLAGS) $(INCLUDE) -c -o $@ $< lib%.a: $(patsubst %.cpp, %.o, $(wildcard src/%/*.cpp)) $(AR) rcs $@ $^ But this doesn't work, the target matching works, but the dependency tra...

Updating GUI from a different class?

Perhaps this is a very basic question, please pardon me if it is --- I'm a beginner in C#. I have a WPF GUI for sending commands to a receiver. The commands are ASCII texts. Now, I separated the communication part into a separate project because I have console applications that use the communication methods in addition to the GUI. The c...

Maven won't deploy dependencies

Hi, I have a simple project with 3 dependencies but for some reason when i am running from the eclipse run as -> maven install. i don't get the dependencies. not inside the snapshot jar and not outside... any idea? this is my pom: <?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/...

Ruby - Get client IP Address from inside a gem

Hello, I'm trying to create a gem and I would like to have a feature inside it that takes the client ip address when using it. Basically it's just like the rails ActionController request.remote_ip, but within the gem I don't want to rely/depend on rails. Is there any way to have something like this purely using Ruby? I've found this, ...

Are clojure function cyclic dependencies specifically disallowed by design, or is it just a reader behaviour?

If I do the following in clojure (defn sub1a [a] (cond (= a 0) 0 true (sub1b (- a 1) ))) (defn sub1b [a] (cond (= a 0) 0 true (sub1a (- a 1) ))) (println (sub1a 10)) I get the following error: java.lang.Exception: Unable to resolve symbol: sub1b in this context But if I do the following: (defn sub1a [a] (co...

What is the correct (modern) way to require one gem within another?

I've just recently started writing my own gems. One of them requires the gnuplot gem, like so: module Rocker require "gnuplot" # ... module code here ... end It works great, right up until I add my gem to config/environment.rb on one of my Rails projects. Then, not a single page will load. I get errors like this: TypeError in ...

getting full classpath from a class

I'm looking a utility method so that given a class will return the full classpath required to run this class externally. This means the jar the class is in as well as all jars (or folders) of classes that it uses. UPDATE: there are tools that analyze .class files to find dependencies. This is not what I'm looking for. I'm looking for s...

Technical code into the ViewModel in wpf ?

I have a UserControl with some custom dependency properties bound to a clr property in the ViewModel. The ViewModel has application logic where I deal with the TextPointer/TextRange classes with a FlowDocument. Should I put that stuff into the code-behind of the UserControl or in the ViewModel? ranges.Clear(); TextRange ran...

How can I recursively check an array of file include dependencies for other dependencies?

To explain my question, let me first point to this array: <?php $_depends = array( '/Scripting/jquery.hyponiqs/jquery.dropdown.js' => array( "/Scripting/jquery.externals/jquery.resize.js", "/Scripting/jquery.externals/jquery.topzindex.js", "/Scripting/jquery.externals/jquery.timers.js", "/Scripting/jq...

Dependency on 3rd party at runtime?

We have created an applet with javafx and it seems that in order to load the applet several jar, jnlp and js files are required to be downloaded from dl.javafx.com. I tried to work out which files were needed so I could host them on our own server but after spending an hour or so on it I got tired of reading code and gave up. Doesn't it ...

what is the use of attribute "e:color" in ivy dependency

http://ant.apache.org/ivy/history/latest-milestone/concept.html Ivy dependency has an attribute called "color" What is the use of this attribute? How can we use it in realtime. can some one give me some example. ...

Dependency issues in deploying using Java Webstart

I am working on a project in Java which has a directory structure something like this: MainFolder / | \ Folder1 Folder2 Folder3... | Program.jar|Run.sh In Folder1 I have main jar file along with the shell script to run the program. In Folder2 I'm having configuration files in xml which may later be modified ...

python setuptool how can I add dependency for libxml2-dev and libxslt1-dev?

My application needs lxml >= 2.1, but to install lxml its requied to install libxml2-dev libxslt1-dev else it raises error while installing the lxml, is there a way that using python setup tool I can give this as dependency in my setup.py.... ...

Using and deriving from interfaces defined in another COM library

I have two C++ COM projects in Visual Studio. In ProjectA I define InterfaceA in MIDL. In ProjectB I would like to define InterfaceB which inherits from InterfaceA. Is this possible to do without importing IDL or H files from ProjectA? Here's how the code is laid out, which might be clearer. The libraries are large so I put things in se...

Package dependencies separately over Cloud

Hi all, I am working on a project that sets up packages on the cloud. For example, If i want to setup Drupal, i need seperate machines to maintain separate tasks, like mysql in one machine(cloud instance/node 1), apache server in another machine(cloud instance/node 2), etc. So if drupal.rpm has dependencies apache.rpm(has deps too) an...

Resolving a Maven dependency differently if the JVM in use is x86 or x64?

Hi, I have a Maven repository set up to host some dlls, but I need my Maven projects to download different dlls depending on whether the JVM in use is x86 or x64. So for example, on a computer running an x86 version of the JVM I need ABC.dll to be downloaded from the repository as a dependency, but on another computer running an x64 ve...

Identify column-level dependencies between databases

Is there a way to identify column-level dependencies within and between databases? I'd like to generate a report of all columns in a database that are unused by anything (views, procs, UDFs). e.g. In database 'DB1', there is a table with a column called 'col1'. How do I determine if 'col1' is being used by procs, views or UDFs in eit...

Managing Deployment Depencies in Java

I am trying to figure out what is the best way to handle dependencies in app servers. We are considering maven to build the apps, but we found a problem. It appears when we need to update a proprietary shared library that doesn't have version number.This happens once a month and we are using Websphere shared library function in the follo...

is it possible to disable javac's inlining of static final variables?

The Java static compiler (javac) inlines some static final variables and brings the values directly to the constant pool. Consider the following example. Class A defines some constants (public static final variables): public class A { public static final int INT_VALUE = 1000; public static final int STRING_VALUE = "foo"; } Cla...