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

How to flush output of Python print?

How to flush output of Python print?

How do I force Python's print function to output to the screen?This is not a duplicate of Disable output buffering - the linked question is attempting unbuffered output, while this is more general. The top answers in that question are too p

Javascript infamous Loop issue? [duplicate]

Javascript infamous Loop issue? [duplicate]

This question already has an answer here: JavaScript closure inside loops – simple practical example 35 answers I've got the following code snippet. fu

Xcode: How to set CA_DEBUG_TRANSACTIONS=1?

Xcode: How to set CA_DEBUG_TRANSACTIONS=1?

I'm getting this warning in the log window of the debugger: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.I have to find out what code of mine is calling

Facebook crops open graph image in to a square

Facebook crops open graph image in to a square

I'm trying to create a custom open graph story to Facebook but I'm having some trouble getting the og:image to show properly. I'm using a 1200*630 sized image as recommended here and here but on my timeline it gets cropped in to a square fr

In gradle tasks of type Exec, why do commandLine and executable behave differently?

In gradle tasks of type Exec, why do commandLine and executable behave differently?

Does anyone know why in tasks of type Exec commandline and executable behave differently in terms of inheriting environment vars?For example, I cannot run this Task because Gradle fails to find ruby from my environment:task checkRubyVersio

Samples/tutorial for DRM framework in Android

Samples/tutorial for DRM framework in Android

Android 4.0 brings drm framework to smartphones. I'm interested to write a code that plays video protected by the DRM, but can't find enough information.Are there any tutorials on using the DRM framework? Sample code?How to set up an enviro

How to assign Application Icon that will display in Task bar?

How to assign Application Icon that will display in Task bar?

I am working on a Wpf desktop application, whenever i run my application it shows me a window and associated tab in the task bar(Normal windows feature). My problem is that the tab is using window's icon for unknown file-type, I tried with

“Input line is too long” error in BAT File

“Input line is too long” error in BAT File

I am having a problem executing a bat file. After some time running I get the "input line is too long" error.The structure of the bat file is simple. There is a main bat file that calls 10 other bat files that are responsible for updating d

Does anyone have any good SSIS Best-Practices tips and suggestions? [closed]

Does anyone have any good SSIS Best-Practices tips and suggestions? [closed]

I would interested to hear from other developer tip on SSIS best practices, dos and don'ts, pitfalls and tricks, etc.I'm trying to introduce a few here at my company. 1:This blog by Jamie Thompson is really good that has both best practi

How to implement a double linked list with only one pointer?

How to implement a double linked list with only one pointer?

How to implement a double linked list with only one pointer?It takes O(1) time to find the prev and next Node.struct Node{ int val; Node* p;}; 1:This sounds as if it's impossible, the way it's stated. You can't implement two pointers

How to set a connection timeout when using JAXRPC-RI web services client?

How to set a connection timeout when using JAXRPC-RI web services client?

I'm working with a bit of a legacy component in which we interact with a SOAP web service (a technology which I absolutely, positively abhor) using some client code built using the JAXRPC-RI (reference implementation) library.I'm interested

How to auto-scroll to input field in Android when the soft keyboard overlaps them on showing?

How to auto-scroll to input field in Android when the soft keyboard overlaps them on showing?

I am developing a hybrid app using Worklight, and I am experiencing the following issue:When the user clicks on an input field, the soft keyboard that pops up hides the input field when the latter is relatively low on the screen. The page i

Session not saving when moving from ssl to non-ssl

Session not saving when moving from ssl to non-ssl

I have a login screen that I force to be ssl, so like this:https://www.foobar.com/loginthen after they login, they get moved to the homepage:https://www.foobar.com/dashbaordHowever, I want to move people off of SSL once logged in (to save C

Glassfish v3 logging

Glassfish v3 logging

In Glassfish v2.1 I could look at my web-applications log all stdout and stderr in the glassfish server log ($GF_HOME/domains/domain1/logs/server.log). But I dont see the same in v3. Is there a setting that has to be turned or do applicatio

How do I prevent 'Publish Web' from overwriting config files?

How do I prevent 'Publish Web' from overwriting config files?

When I publish my Asp.Net MVC website to the production server (via VS2008), the web.config & castle.xml files are overwritten. The content of these files is obviously different between my local dev environment and the production server.How

How can one determine the current region within an AWS Lambda function?

How can one determine the current region within an AWS Lambda function?

Regions.getCurrentRegion() returns null from within an AWS Lambda function. It seems that Regions.getCurrentRegion() is not supported from within an AWS Lambda function. Is there an alternative way to determine which region the lambda fun

.pyw and pythonw does not run under Windows 7

.pyw and pythonw does not run under Windows 7

Running a simple .py or .pyw python file causes python.exe to show up under Task Manager.python myApp.pypython myApp.pywHowever when we try to run it without using the console, the script does not appear to run, nor does python.exe or pytho

Team Foundation Server (TFS) File Difference viewer - customize with other tool

Team Foundation Server (TFS) File Difference viewer - customize with other tool

I am using Team Foundation Server (TFS) for Visual Studio 2005.Whenever i wish to compare two file's versions TFS displays a window with the differences.The problem is that it is always split vertically.In fact, almost every time, i would p

Adding Support Libraries to Android project

Adding Support Libraries to Android project

Why am I having such a hard time getting into the swing of Android development? I've been developing in various languages over the years and, for some reason, just can't seem to get beyond that "jeez-i-still-feel-a-total-noob" stage with An

Imagick php windows

Imagick php windows

I am trying to use iMagick in Symfony2.I am using PHP 5.4.16 and all i have done :1-Copy php_imagick_nts.dll from php5-4 directory from the extracted http://valokuva.org/~mikko/imagick-php54-php53.tgz to php/ext .2-Rename it to php_imagick.

Multi-tenant ServiceStack API, same deployment to respond to requests on different hostnames?

Multi-tenant ServiceStack API, same deployment to respond to requests on different hostnames?

We're creating APIs using ServiceStack that are multi-tenant. We want to do DNS-based load-balancing and routing, rather than stitch things up via a reverse proxy (like nginx or haproxy).We have Request DTOs that have a Tenant parameter.

How to copy data from one database/table to another database/table

How to copy data from one database/table to another database/table

I have written the following query using the documentation at: Oracle Documentation to copy some data from a database/table on my production server to database/table on Sandbox server.COPY FROM username1/[email protected] to username2/[email protected] INSER

How to pass command line arguments to a c program

How to pass command line arguments to a c program

I've known how to write a program that accepts command line arguments ever since I learned to program. What I don't understand is how these parameters get their values. Hopefully I don't have these two mixed up but there is a difference bet

How to build Docker Images with Dockerfile behind HTTP_PROXY by Jenkins?

How to build Docker Images with Dockerfile behind HTTP_PROXY by Jenkins?

Building Docker images works in a desktop without a problem. Installing Node.js NPM dependencies work as usual. However, when using a continuous integration server such as Jenkins that is hosted behind a corporate proxy, the build Docker Im