error: Attribute “***” has already been defined when using two library projects in Android

error: Attribute “***” has already been defined when using two library projects in Android

I'm using android-support-v7-appcompat as a library in my Android project. Now I want to include actionbarsherlock as another library project. When I add the second library, it gives so many errors like belowandroid-support-v7-appcompat\res

How do you submit a dropdownlist in asp.net mvc

How do you submit a dropdownlist in asp.net mvc

In the above example, what value should you set onchange to? Or, how do you get the correct form?Is there any difference with Ajax.BeginFrom? 1:try this:Every form element in the has a "form" property that is pointed to the form that con

What's the MIME-Type of TypeScript?

What's the MIME-Type of TypeScript?

I want my IIS to correctly display .ts files, is there any MIME-Type for TypeScript? text/javascript or similar may also work, but are there specifications for that?I already looked up the language specification but I didn't find any clue.

Eclipse: syntax highlighting disappeared for one of my files

Eclipse: syntax highlighting disappeared for one of my files

I was trying to close unused files in Eclipse and accidentally made something wrong. Now I can't see syntax highlighting for one of my files.Here are two screenshots - on the first you can see file, where highlighting is broken, and on the

Insert a background image in CSS (Twitter Bootstrap)

Insert a background image in CSS (Twitter Bootstrap)

How can i add a image background to my website? body { margin: 0; background: url(background.png); background-size: 1440px 800px; background-repeat:no-repeatdisplay: compact; font: 13px/18px "Helvetica Neue", Helvetica,

Correct insert DateTime from c# to mongodb

Correct insert DateTime from c# to mongodb

I try to insert local time in MongoDBvar time = DateTime.Now; // 03.05.2014 18:30:30var query = new QueryDocument{ { "time", nowTime}};collection3.Insert(query);But in database I see ISODate("2014-05-03T15:30:30.170Z"),that must be ISODat

C# | WPF - Custom Title Bar - Drag window from top when maximized doesnt work

C# | WPF - Custom Title Bar - Drag window from top when maximized doesnt work

I have a custom title bar and with the window style set to none. On the click of the title bar I check to see if it is a double click (that does window maximize and restore) if it is not double clicked I do Window.DragMove. This works grea

Endianness inside CPU registers

Endianness inside CPU registers

I need help understanding endianness inside CPU registers of x86 processors. I wrote this small assembly program:section .datasection .bsssection .text global _start_start: nop mov eax, 0x78FF5ABC mov ebx,'WXYZ' nop ; GDB br

Android - Issue with lazy loading images into a ListView

Android - Issue with lazy loading images into a ListView

This is a very common scenario: displaying images in a ListView which have to be downloaded from the internet.Right now I have a custom subclass of ArrayAdapter which I use for the ListView. In my getView() implementation of the ArrayAdapte

Would it be correct/ellegant use only alloc without init?

Would it be correct/ellegant use only alloc without init?

If we don't want to implement init method in our class, and bearing in mind that init in NSObject only returns an instance of the object without initialization, I don't see the point of calling init if we already get the instance with alloc

Database replication. 2 servers, Master database and the 2nd is read-only

Database replication. 2 servers, Master database and the 2nd is read-only

Say you have 2 database servers, one database is the 'master' database where all write operations are performed, it is treated as the 'real/original' database. The other server's database is to be a mirror copy of the master database (slav

Honoring exit codes from batch files invoked by msbuild

Honoring exit codes from batch files invoked by msbuild

I have a batch file that is using the exit command to return an exit code.This batch file may, in some cases, be invoked interactively from a commandline, or in other cases, may be run as part of an MSBuild project, using the Exec task.If I

As of today, what is the right way to work with COM objects?

As of today, what is the right way to work with COM objects?

This is a very common question and I decided to ask it because this question may have a different answer as of today. Hopefully, the answers will help to understand what is the right way to work with COM objects.Personally, I feel very conf

MEF = may experience frustration?

MEF = may experience frustration?

UPDATEAs I've tried to get MEF working throughout my application, I'm coming across more an more places where I just don't get why it's not automatically creating my library when I expect it to. I think it all comes back to what Reed was s

Sprite with userInteractionEnabled set to YES does not receive touches when covered by normal sprite

Sprite with userInteractionEnabled set to YES does not receive touches when covered by normal sprite

I put a sprite A (subclassed to receive hits (userInteractionEnabled to YES)), and then a normal sprite B that does not take hits on top of that (userInteractionEnabled default NO), completely covering sprite A.Tapping on sprite B, I assume

How do I put the contents of a list in a single MessageBox?

How do I put the contents of a list in a single MessageBox?

Basically, I have a list with multiple items in it and I want a single message box to display them all.The closest I have got is a message box for each item (using foreach).What I want is the equivalent of: MessageBox.Show ("List contains:"

Android implementation of lifecycle methods can call the superclass implementation after doing any w

Android implementation of lifecycle methods can call the superclass implementation after doing any w

In the Android documentation we have: Note: Your implementation of these lifecycle methods must always call the superclass implementation before doing any work... But I have seen cases where the code is placed after the superclass method

OpenCL: Work items, Processing elements, NDRange

OpenCL: Work items, Processing elements, NDRange

My classmates and me are being confronted with OpenCL for the first time. As expected, we ran into some issues. Below I summarized the issues we had and the answers we found. However, we're not sure that we got it all right, so it would be

How is physical memory organized between base and derived class instances in Java?

How is physical memory organized between base and derived class instances in Java?

When a subclass C is instantiated, it's known that the constructors of its super classes (say A, and B (B extends A)) will be instantiated earlier than C. So does this mean that:There are separate memory allocated for A's instance, B's inst

Why is my Strassen's Matrix Multiplication slow?

Why is my Strassen's Matrix Multiplication slow?

I wrote two Matrix Multiplications programs in C++: Regular MM (source), and Strassen's MM (source), both of which operate on square matrices of sizes 2^k x 2^k(in other words, square matrices of even size). Results are just terrible. For 1

Check nested dictionary values?

Check nested dictionary values?

For a large list of nested dictionaries, I want to check if they contain or not a key.Each of them may or may not have one of the nested dictionaries, so if I loop this search through all of them raises an error:for Dict1 in DictionariesLis

Android: AAC+ radio streaming doesn't work with MediaPlayer (Android 4.2.2 / Shoucast links)

Android: AAC+ radio streaming doesn't work with MediaPlayer (Android 4.2.2 / Shoucast links)

I'm recently faced with some problems of streaming AAC+ radio streams with the Android MediaPlayer. Regarding to the documentation, there should be support for streaming AAC+ in Android 4.1. (Test Device is a Nexus 2 with Android 4.2.2)I fo

What is the jTDS JDBC Connect URL to MS SQL Server 2005 Express

What is the jTDS JDBC Connect URL to MS SQL Server 2005 Express

I'm trying to connect to a MS SQL Server 2005 Express database that is running on the local host from a java program.I have tried the same connect URL (below) that I used on another system (same jave code) that was running MS SQL Server 200

keytool with Android Facebook SDK

keytool with Android Facebook SDK

I just want some confirmation.I'm developing on windowsI'm attempting to integrate facebook into an app and the SDK documentation says I need to 'export a signature'From here: http://developers.facebook.com/docs/guides/mobile/#androidSo it

NumberFormat rounding issue with Java 8 only

NumberFormat rounding issue with Java 8 only

Can somebody explain to me why the following code:public class Test { public static void main(String... args) { round(6.2088, 3); round(6.2089, 3); } private static void round(Double num, int numDecimal) { Syst