What causes java.lang.IncompatibleClassChangeError?

What causes java.lang.IncompatibleClassChangeError?

I'm packaging a Java library as a JAR, and it's throwing many java.lang.IncompatibleClassChangeErrors when I try to invoke methods from it. These errors seem to appear at random. What kinds of problems could be causing this error? 1:This

PHP does not display error messages

PHP does not display error messages

I installed XAMPP 1.7.4 (with PHP 5.3.5), the problem is PHP does not display any error messages. E.g. if I connect to MYSQL with mysql_connect() without parameters, PHP will not complain about the required fields.Why is this?How can I conf

How do I watch a file for changes?

How do I watch a file for changes?

I have a log file being written by another process which I want to watch for changes. Each time a change occurs I'd like to read the new data in to do some processing on it.What's the best way to do this? I was hoping there'd be some sort o

How to Flatten a Multidimensional Array?

How to Flatten a Multidimensional Array?

Is it possible, in PHP, to flatten a (bi/multi)dimensional array without using recursion or references?I'm only interested in the values so the keys can be ignored, I'm thinking in the lines of array_map() and array_values(). 1:You can u

How can I obfuscate (protect) JavaScript? [closed]

How can I obfuscate (protect) JavaScript? [closed]

I want to make a JavaScript application that's not open source, and thus I wish to learn how to can obfuscate my JS code? Is this possible? 1:Obfuscation:Try YUI Compressor. It's a very popular tool, built, enhanced and maintained by th

Event binding on dynamically created elements?

Event binding on dynamically created elements?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.This happens on page ready and works just fine.The problem I have is

What are app domains used for?

What are app domains used for?

I understand roughly what an AppDomain is, however I don't fully understand the uses for an AppDomain.I'm involved in a large server based C# / C++ application and I'm wondering how using AppDomains could improve stability / security / per

Bluetooth Low Energy API for Windows 7.0

Bluetooth Low Energy API for Windows 7.0

Windows 8 exposes an API to communicate to Bluetooth Low Energy (Smart) devices, but this API is not available in previous versions of Windows, so how can I communicate with a BLE dongle on Windows 7?The BLE dongle I'm currently using (BLED

INotifyPropertyChanged and static properties

INotifyPropertyChanged and static properties

I'm tying myself in knots over a simple problem. I have a class that implements INotifyPropertyChanged. Some of the instance properties' getters use static properties and thus their values may change if the static property changes? Here's a

Add a custom permission to a User

Add a custom permission to a User

I'd like to be able to give some existing Users a custom permission which I will require for accessing a view.I think I need to add the new permission to the Postgres table auth_permission, but I suspect there is a higher-level way to do th

JSON schema validation with arbitrary keys

JSON schema validation with arbitrary keys

I am using validictory for validating the attached JSON data and schema.Working so far.However the data dictionary can have arbitrary string keys (others than 'bp' but). The key 'bp' in the schema here is hard-coded...it can be a string fro

Naming convention and structure for utility classes and methods

Naming convention and structure for utility classes and methods

Do you have any input on how to organize and name utility classes?Whenever I run in to some code-duplication, could be just a couple of code lines, I move them to a utility class. After a while, I tend to get a lot of small static classes,

Sleep and check until condition is true

Sleep and check until condition is true

Is there a library in Java that does the following? A thread should repeatedly sleep for x milliseconds until a condition becomes true or the max time is reached. This situation mostly occurs when a test waits for some condition to become t

Is it possible to use ExtJS components in AngularJS?

Is it possible to use ExtJS components in AngularJS?

I'm really enjoying learning to use AngularJS. Now I'm looking for components I can use with it. I've been looking at Angular-UI components but I'd like to know if it's possible to use the nice, supercharged components in ExtJS. Does any

Alternative to setAlpha in api level 8

Alternative to setAlpha in api level 8

I am working on an app, which can run on Froyo as well as JellyBean. I have a class that extends PageTransformer as below:import android.support.v4.view.ViewPager.PageTransformer;import android.view.View;public class ZoomOutPageTransformer

'MOD' is not a recognized built-in function name

'MOD' is not a recognized built-in function name

I wanted to use MOD function in SQL Server 2008R2 and followed this link but still got the message: 'MOD' is not a recognized built-in function name.DECLARE @m INTSET @m = MOD(321,11)SELECT @mError: Msg 195, Level 15, State 10, Line 2

Access parent window from User Control

Access parent window from User Control

I am trying to access parent window from user control. userControl1 uc1 = new userControl1();mainGrid.Children.Add(uc1);through this code I load userControl1 to main grid.But when I click on a button inside userControl1 then I want to load

Is a class private or public by default in Java and C++?

Is a class private or public by default in Java and C++?

Are classes private or public by default in Java and C++? 1:Java:By default, the classes visibility is package private, i.e. only visible for classes in the same package.C++:The class has no visibility defined like in Java. They are visi

Verbose Output From rake assets:precompile

Verbose Output From rake assets:precompile

I've just started using the asset_sync gem and my assets seem to be being compiled out of order, with Sass files unabled to access variables defined in other Sass files. What would really help me narrow down the issue is being able to see e

pyqt: how to remove a widget?

pyqt: how to remove a widget?

I have a QGroupBox widget with children in it that I want to remove. How do I do that? I can't find any removeWidget, removeChild, removeItem, or anything similar in the docs. I can only see how to remove things from a layout, but that, app

android how to change  width and height

android how to change width and height

I'm making a layer-list for drawable.I have my background image, and I want the second layer to be smaller,but it seems that not matter what I'm writing inside my android:layer_width\heightThe second layer size remain the same..this is my x

How do I safely join relative url segments?

How do I safely join relative url segments?

I'm trying to find a robust method of joining partial url path segments together. Is there a quick way to do this?I tried the following:puts URI::join('resource/', '/edit', '12?option=test')I expect:resource/edit/12?option=testBut I get the

Is making an empty string constant worth it?

Is making an empty string constant worth it?

I have a co-worker that swears by//in a singleton "Constants" classpublic static final String EMPTY_STRING = "";in a constants class available throughout the project. That way, we can write something likeif (Constants.EMPTY_STRING.equals(ot

Safely delete a TFS branch project

Safely delete a TFS branch project

I'm currently reorganising our TFS source control for a very large set of solutions, and I've done this successfully so far.I have a problem at the moment where I need to delete a legacy "Release Branch" TFS project that was branched for th

Can I use a Windows .Net app with Docker?

Can I use a Windows .Net app with Docker?

I'm a little confused by all the chat about Docker, and how it fits into the virtualisation world. So here's a straight question: can I package up a .Net application (that normally runs on Windows 7 etc) to run in a Docker container, and th