Update Eclipse with Android development tools v. 23

Update Eclipse with Android development tools v. 23

I updated Eclipse with the new SDK tools (rev. 23), but now when Eclipse starts I receive the error: This Android SDK requires Android Developer Toolkit version 23.0.0 or above. Current version is 22.6.3.v201404151837-1123206. Please updat

How to concatenate two lists in Python?

How to concatenate two lists in Python?

How do I concatenate two lists in Python?Example:listone = [1, 2, 3]listtwo = [4, 5, 6]Expected outcome:>>> joinedlist[1, 2, 3, 4, 5, 6] 1:Python makes this ridiculously easy. You can use the + operator to combine them:listone = [1,2,3]l

Do a “git export” (like “svn export”)?

Do a “git export” (like “svn export”)?

I've been wondering whether there is a good "git export" solution that creates a copy of a tree without the .git repository directory. There are at least three methods I know of:git clone followed by removing the .git repository directory.g

How to apply CSS to iframe?

How to apply CSS to iframe?

I have a simple page that has some iframe sections (to display RSS links). How can I apply the same CSS format from the main page to the page displayed in the iframe? 1:Edit: This does not work cross domain unless the appropriate CORS he

What is JSONP all about? [duplicate]

What is JSONP all about? [duplicate]

This question already has an answer here: Can anyone explain what JSONP is, in layman terms? 4 answers I understand JSON, but not JSONP. Wikipedia's do

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

std::vector as a template function argument

std::vector as a template function argument

I want to make a class method that takes a std::vector reference as an argument and I want to use it with different types of data.The function should look like:void some_function(const std::vector & vect){ //do something with vector }and I

How to get Selenium to wait for a transition page to redirect before running an assertion

How to get Selenium to wait for a transition page to redirect before running an assertion

I have a fairly standard situation: Click a button, it loads a transition page with a progress bar or something, and then that page redirects to the next page, which takes a while to load.I want to run assertions on the final page, not the

MAX function in where clause mysql

MAX function in where clause mysql

How can I use max() function in where clause of a mysql query, I am trying: select firstName,Lastname,MAX(id) as max where id=max;this is giving me an error:Unknown column 'max' in 'where clause'Any Help? Thanks in advance. 1:You can't r

Running the same mocha test multiple times with different data

Running the same mocha test multiple times with different data

ProblemI have several tests that do the same thing in mocha. This for me, it's duplication, and is the worst thing to do when you want your system to be maintenable.var exerciseIsPetitionActive = function (expected, dateNow) { var actual

xpages - how to set a scope variable from client side javascript?

xpages - how to set a scope variable from client side javascript?

I'm trying to set an XPages scope variable from Client side JavaScript. I have an XPage which contains several sections which are shown or hidden using Dojo. On this XPage I have a button which executes some server side JavaScript. Once the

Algorithm to determine how positive or negative a statement/text is

Algorithm to determine how positive or negative a statement/text is

I need to implement sentiment analysis. Can anyone point me to examples/reference implementations? 1:http://www.uclassify.com/http://www.uclassify.com/browse/prfekt/Mood 2:One approach is:assemble a corpus of statements and textmanua

Multiple Domain Hosting With One Django Project

Multiple Domain Hosting With One Django Project

I'm new to Django and python in general, so please bear with me. I want to create a very simple SaaS app to get started with Django and python. My design dictates that all domains will run on the same codebase. The only thing that will d

How to change the button backgrounds inside JOptionPane

How to change the button backgrounds inside JOptionPane

I was wondering if anybody knew if it was possible to change the background color on the buttons inside a JOptionPane. I know how to change the entire JOptionPane background using a UIManager, but know what I want is to set the individual

How to map RuntimeExceptions in Java streams to “recover” from invalid stream elements

How to map RuntimeExceptions in Java streams to “recover” from invalid stream elements

Imagine I'm building a library, that will receive a Stream of Integers, and all the library code needs to do is return a stream of Strings with the string representation of the number.public Stream convertToString(Stream input) { return in

C++ and Qt: Paint Program - Rendering Transparent Lines Without Alpha Joint Overlap

C++ and Qt: Paint Program - Rendering Transparent Lines Without Alpha Joint Overlap

I have started to create a paint program that interacts with drawing tablets. Depending on the pressure of the pen on the tablet I change the alpha value of the line being drawn. That mechanism works.Thin lines look decent and it looks a re

How to disable ngTouch conditionally and fallback to ng-click

How to disable ngTouch conditionally and fallback to ng-click

How can I use ngTouch but selectively disable it for some elements? That is, for certain elements I'd like to use the original ngClick directive instead of the one that ngTouch provides. Something like this: click me 1:Issue is that once

How I separate logic from presentation?

How I separate logic from presentation?

Normally I am developing website and coding PHP and HTML something like this - while (mysqli_stmt_fetch($stmt)) { // Create Table Body $html .= "\n"; $html .= " $title\n"; $html .= " $date";

pandas: Filling missing values within a group

pandas: Filling missing values within a group

I have some data from an experiment, and within each trial there are some single values, surrounded by NA's, that I want to fill out to the entire trial:df = pd.DataFrame({'trial': [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3], 'cs_name': [np.na

AutoLayout uitableviewcell in landscape and on iPad calculating height based on portrait iPhone

AutoLayout uitableviewcell in landscape and on iPad calculating height based on portrait iPhone

I'm learning / experimenting with autolayout and UITableViewCell's. I asked another question a few days ago to which I answered my own question, I'm still using the same constraints / code. For the full code see here: AutoLayout multiline U

How to write/pipe to a virtual webcam created by V4L2loopback module?

How to write/pipe to a virtual webcam created by V4L2loopback module?

I have written an application which reads from a webcam and processes the frames using OpenCV on linux. Now I want to pipe the output of my application to a virtual webcam that has been created by the V4L2loopback module so other applicatio

Make EF use local database in App_Data folder

Make EF use local database in App_Data folder

I am using POCO approach on all my projects using Entity Framework. It's all good but I have one problem: It is creating database on my SQL Express, instead I want it to store my database in *.mdf file in App_Data folder. 1:Set an approp

Export data from DynamoDB

Export data from DynamoDB

Is it possible to export data from DynamoDB table in some format?The concrete use case is that I want to export data from my production dynamodb database and import that data into my local dynamodb instance so my application can work with l

WCF, Metadata and BIGIP - Can I force the correct url for the WSDL items?

WCF, Metadata and BIGIP - Can I force the correct url for the WSDL items?

We have a WCF service hosted on ServerA which is a server with no-direct Internet access and has a non-Internet routable IP address. The service is fronted by BIGIP which handles SSL encryption and decryption and forwards the unencrypted r

how to do two complement multiplication and division of integers?

how to do two complement multiplication and division of integers?

I have read this post on binary multiplication using two complement. but it is not very clear to me. Even I have difficulty understanding the wiki article on this. I want to know how to go about calculating multiplications of negative numbe