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 to get UTF-8 working in Java webapps?

How to get UTF-8 working in Java webapps?

I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support äöå etc. for regular Finnish text and Cyrillic alphabets like ЦжФ for special cases.My setup is the following:Development environment: Windows XPPr

“cannot resolve symbol R” in Android Studio

“cannot resolve symbol R” in Android Studio

In every instance in all of my classes where I reference R.id.something, the R is in red and it says "cannot resolve symbol R". Also every time there is R.layout.something it is underlined in red and says "cannot resolve method setContentV

What's the purpose of the LEA instruction?

What's the purpose of the LEA instruction?

For me, it just seems like a funky MOV. What's its purpose and when should I use it? 1:As others have pointed out, LEA (load effective address) is often used as a "trick" to do certain computations, but that's not its primary purpose. Th

How to randomize (shuffle) a JavaScript array?

How to randomize (shuffle) a JavaScript array?

I have an array like this:var arr1 = ["a", "b", "c", "d"];How can I randomize / shuffle it? 1:The de-facto unbiased shuffle algorithm is the Fisher-Yates (aka Knuth) Shuffle.See https://github.com/coolaj86/knuth-shuffleYou can see a grea

Android View align bottom (programmatically) without XML

Android View align bottom (programmatically) without XML

I got a problem with setting aligning my view programatically to the bottom of the screen. Basically I just want to place my admob advert at the screen bottom. I can't do it with XML because it would be even more troublesome. Right now I al

equals(…) and equalsIgnoreCase(…)

equals(…) and equalsIgnoreCase(…)

Why do we have equals() and equalsIgnoreCase() as two different methods, when equals() could have been overloaded with a special ignoreCase argument to provide equalsIgnoreCase() functionality? 1:The method equals() is inherited from Obj

Does introducing foreign keys to MySQL reduce performance

Does introducing foreign keys to MySQL reduce performance

I'm building Ruby on Rails 2.3.5 app. By default, Ruby on Rails doesn't provide foreign key contraints so I have to do it manually. I was wondering if introducing foreign keys reduces query performance on the database side enough to make it

Text content in a WPF button not being centred vertically

Text content in a WPF button not being centred vertically

Is there a reason why the text content of a WPF button is appearing with unwanted space above the text?I have a button in a StackPanel. This button is a simple close button so I want it to appear as a square button with an "x" centred in i

PDFBox converting inches or centimeters into the coordinate system

PDFBox converting inches or centimeters into the coordinate system

I am new to PDFBox (and PDF generation) and I am having difficulty to generate my own PDF.I do have text with certain coordinates in inches/centimeters and I need to convert them to the units PDFBox uses. Any suggestions/utilities than can

Persisting SCSS variables in rails asset pipeline?

Persisting SCSS variables in rails asset pipeline?

I'm upgrading a rails app with lots of SCSS stylesheets to use the asset pipeline, and need to include some global variables and mixins for each file.Adding several @import directives at the top of every file isn't very DRY, so I'd like to

How to get a WPF window's ClientSize?

How to get a WPF window's ClientSize?

In WinForms, Form had a ClientSize property (inherited from Control), which returns the size of its client area, i.e., the area inside the title bar and window borders.I'm not seeing anything similar in WPF: there's no ClientSize, ClientWid

Adding a tooltip to an input box

Adding a tooltip to an input box

I am using the CSS.Tooltips library to try an get a tooltip to show up on an input tag. I can get it to work on a p tag but not an input tag. Any ideas?Here is link to the fiddle: http://jsfiddle.net/cwlanca/BumU5/1/htmlThis is a paragrap

“No source file named” error debugging Eclipse CDT

“No source file named” error debugging Eclipse CDT

I've got a project with a shared library (loaded dynamically), and I'm attempting to debug it. I get the following error message:No source file named /home/username/Code/path/to/project/MyFile.cpp.After having searched other threads, I've

SELECT TOP is slow, regardless of ORDER BY

SELECT TOP is slow, regardless of ORDER BY

I have a fairly complex query in SQL Server running against a view, in the form:SELECT * FROM myview, foo, bar WHERE shared=1 AND [joins and other stuff] ORDER BY sortcode;The query plan as shown above shows a Sort operation just bef

Clear session cookies in ie11?

Clear session cookies in ie11?

in previous versions of IE the F12 dev tools had several option for cache and cookie management, but in the new IE 11 version (on the network tab) the option to clear / delete session cookies seems to be missing, does anyone know where to f

The type or namespace name 'Xamarin' missing in xamarin studio

The type or namespace name 'Xamarin' missing in xamarin studio

I'm getting this error "MyApp\App.cs(7,7): Error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?) (CS0246)". i'm using Xamarin studio to make cross platform app vi

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

How to know in which file that defined a js global var in chrome console?

How to know in which file that defined a js global var in chrome console?

How to find out which file and line a variable was defined in using google chrome console?For example, the variable Native (from MooTools) has been defined in global scope. I want to know in which file that defined this variable using googl

SELECT ONE Row with the MAX() value on a column

SELECT ONE Row with the MAX() value on a column

I have a pretty simple dataset of monthly newsletters:id | Name | PublishDate | IsActive1 | Newsletter 1 | 10/15/2012 | 12 | Newsletter 2 | 11/06/2012 | 1 3 | Newsletter 3 | 12/15/2012 | 04 | Ne

Importing Vue Components with Webpack

Importing Vue Components with Webpack

I have a hello world Vue app setup with Webpack and have the initial App component working and mounted to body. Although within that App component I can't figure out how to use more components I made.main.jsimport Vue from 'vue'import App f

How to run a command as a specific user in an init script?

How to run a command as a specific user in an init script?

I'm writing an init script which is supposed to execute a single command as a user different than root. This is how I'm doing it currently:sudo -u username command This generally works as expected on Ubuntu/Debian, but on RHEL the script wh

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

How to make Visual Studio editor stop scrolling past bottom of a file?

How to make Visual Studio editor stop scrolling past bottom of a file?

In the Visual Studio editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult becaus