Maven: add a dependency to a jar by relative path

Maven: add a dependency to a jar by relative path

I have a proprietary jar that I want to add to my pom as a dependency.But I don't want to add it to a repository. The reason is that I want my usual maven commands such as mvn compile, etc, to work out of the box. (Without demanding from th

String literals: Where do they go?

String literals: Where do they go?

I am interested in where string literals get allocated/stored.I did find one intriguing answer here, saying: Defining a string inline actually embeds the data in the program itself and cannot be changed (some compilers allow this by a smar

What do 'lazy' and 'greedy' mean in the context of regular expressions?

What do 'lazy' and 'greedy' mean in the context of regular expressions?

Could someone explain these two terms in an understandable way? 1:Greedy will consume as much as possible. From http://www.regular-expressions.info/repeat.html we see the example of trying to match HTML tags with <.+>. Suppose you have t

How to sum a variable by group?

How to sum a variable by group?

Let's say I have two columns of data. The first contains categories such as "First", "Second", "Third", etc. The second has numbers which represent the number of times I saw "First".For example:Category FrequencyFirst 10First

Download all messages from a Google group

Download all messages from a Google group

I'm in the process of developing a Google apps migration/archive system and at this point in development I'm trying to come up with a way to download all messages in all the groups that my domain users have created. I know that I can set up

How do I get all Sundays between two dates in Ruby?

How do I get all Sundays between two dates in Ruby?

I'm working on a form where the user enters a date range and selects from a list of checkboxes a day/days of the week i.e Sunday, Monday, Tuesday, Wednesday, Thursday, Friday and saturday.Once the form is submitted I need a way to grab a li

How to avoid error “aggregate functions are not allowed in WHERE”

How to avoid error “aggregate functions are not allowed in WHERE”

This sql code throws an aggregate functions are not allowed in WHERESELECT o.ID , count(p.CAT)FROM Orders oINNER JOIN Products p ON o.P_ID = p.P_ID WHERE count(p.CAT) > 3GROUP BY o.ID;How can I avoid this error? 1:Replace WHERE clause

How Numeric literal with underscore works in java and why it was added as part of jdk 1.7 [duplicate

How Numeric literal with underscore works in java and why it was added as part of jdk 1.7 [duplicate

This question already has an answer here: Java 7 underscore in numeric literals 8 answers Wierd Syntax - Underscores between digits [duplic

rsync - mkstemp failed: Permission denied (13)

rsync - mkstemp failed: Permission denied (13)

I have the following setup to periodically rsync files from server A to server B. Server B has the rsync daemon running with the following configuration:read only = falseuse chroot = falsemax connections = 4syslog facility = local5log file

Starting out with an application for Facebook Connect on the iPhone

Starting out with an application for Facebook Connect on the iPhone

I would like to make a button in order for the user to be able to connect and join a group I have created in Facebook. Is this possible with Facebook Connect? Is there a tutorial or something? 1:You can try checking out the newly-updated

how to use onclicklistener for grid view

how to use onclicklistener for grid view

i used gridview to display numbers, so if i click on any number the next activity should start. i tried this code but the app crashes private GridView gridView = null; gridView.setOnClickListener(new OnClickListener() {

Reordering groups in Likert plots with R

Reordering groups in Likert plots with R

I'm using the jbryer/likert package to plot Likert data.Consider the response table, called items—here, A, B, and so on are the column names, not part of the data:A B C D5 4 5 43 3 3 42 2 2 22 2 2 35 3 6 73 3 5 4And the following code:choic

How to calculate the running total using aggregate

How to calculate the running total using aggregate

I'm developing a simple financial app for keeping track of incomes and outcomes.For the sake of simplicity, let's suppose these are some of my documents:{ "_id" : ObjectId("54adc0659413535e02fba115"), "description" : "test1", "amount" : 100

PHP splitting arrays into groups based on equal values

PHP splitting arrays into groups based on equal values

I have an Array containing arrays with 2 values, the first one is the Number of the Author the second is his Affiliation.Array ( [0] => Array ( [0] => 2 [1] => Department of General Chemistry ) [1] =>

How can I deploy artifacts from a Maven build to the SourceForge File Release System?

How can I deploy artifacts from a Maven build to the SourceForge File Release System?

I am using SourceForge for some Open Source projects and I want to automate the deployment of releases to the SourceForge File Release System. I use Maven for my builds and the standard SFTP deployment mechanism doesn't seem to work unless

MongoDB aggregation project string to ObjectId

MongoDB aggregation project string to ObjectId

I am attempting to convert a hexadecimal string to its equivalent ObjectID in an aggregation query. I tried two different methods:db.omvas.aggregate([ {$project:{ EID:{$let: { vars: { id: "$EID"

django-mptt get_descendants for a list of nodes

django-mptt get_descendants for a list of nodes

I am trying to get all descendants(include_self=True) not for one Node, but for a list (a QuerySet) of Nodes. This should be one SQL query. Example (that actually is not working:) some_nodes = Node.objects.filter( ...some_condition... ) som

Use a factor column in “by” and do not drop empty factors

Use a factor column in “by” and do not drop empty factors

Suppose I have a data.table:x I want to know how many rows in x exist for each group:x[, .N, by="group"]# group N# 1: a 2# 2: b 1Question: is there some way to force the above by="group" to consider all levels of the factor group

Why do 'foo bar' and 'foo > bar' have the same specificity in CSS?

Why do 'foo bar' and 'foo > bar' have the same specificity in CSS?

I'm curious why using > or other combinators does not affect the specificity of CSS selectors, i.e. why div span (matching a span somewhere inside a div) and div > span (matching a span which is the immediate child of a div) are considered

Non CRUD actions with ember-data

Non CRUD actions with ember-data

Say I have the following ember-data model:App.Person = DS.Model.extend({ firstName: DS.attr('string'), lastName: DS.attr('string'), starred: DS.attr('boolean')});This communicates with a Rails app with the following pretty stand

Python: ElementTree, get the namespace string of an Element

Python: ElementTree, get the namespace string of an Element

This XML file is named example.xml: 14.0.0 .com.foobar.flubber uberportalconf 13-SNAPSHOT pom Environment for UberPortalConf This is the description 11 9 6 2 If I load example.xml and parse it with Elemen

How to select a maximum value row in mysql table

How to select a maximum value row in mysql table

I have the following tableTable structure:CREATE TABLE IF NOT EXISTS `people` ( `name` varchar(10) NOT NULL, `age` smallint(5) unsigned NOT NULL, PRIMARY KEY (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Insert some values:INSERT INTO `p

Is it possible to perform a bitwise group function?

Is it possible to perform a bitwise group function?

I have a field in a table which contains bitwise flags. Let's say for the sake of example there are three flags: 4 => read, 2 => write, 1 => execute and the table looks like this*: user_id | file | permissions-----------+--------+-----

How Do I Pull Maven Test Jars Using Gradle?

How Do I Pull Maven Test Jars Using Gradle?

In maven I can specify a "type" for dependency resolution. I am trying to pull down a tests.jar. How can I do this using Gradle?I have tried using the Gradle Dependency below, but this does not pull down test.jar. testCompile(group: 'org.a

Vim highlight a list of words

Vim highlight a list of words

I need to highlight a list of words in vim, preferably the words should be defined in a file. A bit like spell checking. I have been looking at http://vim.wikia.com/wiki/Highlight_multiple_words but it requires that I define each word as a