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

Embedding DLLs in a compiled executable

Embedding DLLs in a compiled executable

You know, I haven't seen a good answer for this anywhere. Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? If it is possible, how would one go about doing it?Normally,

How do I set up NSZombieEnabled in Xcode 4?

How do I set up NSZombieEnabled in Xcode 4?

How do I set up NSZombieEnabled and CFZombieLevel for my executable in Xcode 4? 1:In Xcode 4.x press ⌥⌘R(or click Menubar > Product > Scheme > Edit Scheme) select the "Diagnostics" tab and click "Enable Zombie Objects": This turns releas

Why does a RegExp with global flag give wrong results?

Why does a RegExp with global flag give wrong results?

What is the problem with this regular expression when I use the global flag and the case insensitive flag? Query is a user generated input. The result should be [true, true].var query = 'Foo B';var re = new RegExp(query, 'gi');var result =

What does the “yield” keyword do?

What does the “yield” keyword do?

What is the use of the yield keyword in Python? What does it do?For example, I'm trying to understand this code1:def _get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median:

Twitter Bootstrap tab shown event not firing on page load

Twitter Bootstrap tab shown event not firing on page load

In a page where I have n tabs, and the following script (coffeescript, I checked the compiled javascript and it seems to be ok)...$ -> init()init = -> $('a[data-toggle="tab"]').on 'shown', (event) -> shown = event.target

Android Robolectric Click RecyclerView Item

Android Robolectric Click RecyclerView Item

Is there any way to simulate a click on a RecyclerView item with Robolectric? So far, I have tried getting the View at the first visible position of the RecyclerView, but that is always null. It's getChildCount() keeps returning 0, and find

How do I read a delimited file with strings/numbers with Octave?

How do I read a delimited file with strings/numbers with Octave?

I am trying to read a text file containing digits and strings using Octave. The file format is something like this:A B Ca 10 100b 20 200c 30 300d 40 400e 50 500but the delimiter can be space, tab, comma or semicolon. The textread function w

Oracle considers empty strings to be NULL while SQL Server does not - how is this best handled?

Oracle considers empty strings to be NULL while SQL Server does not - how is this best handled?

I have to write a component that re-creates SQL Server tables (structure and data) in an Oracle database. This component also has to take new data entered into the Oracle database and copy it back into SQL Server.Translating the data types

How to convert milliseconds to seconds with precision

How to convert milliseconds to seconds with precision

I want to convert milliseconds to seconds (for example 1500ms to 1.5s, or 500ms to 0.5s) with as much precision as possible.Double.parseDouble(500 / 1000 + "." + 500 % 1000); isn't the best way to do it: I'm looking for a way to get the rem

Generate jasmine report using Karma Runner

Generate jasmine report using Karma Runner

I want to obtain a report of all successful jasmine specs runned with karma, something like you obtain when using jasmine alone.Is there anyway to achieve this? 1:Try this quick plugin I wrote:https://github.com/dtabuenc/karma-html-repor

How to purge tomcat's cache when deploying a new .war file? Is there a config setting?

How to purge tomcat's cache when deploying a new .war file? Is there a config setting?

I have a simple hello, world servlet application that I am just playing around with, and pushing it out to my tomcat server on a VPS.When I make a change to my code, and deploy it, tomcat doesn't serve the newly published code (even after s

Way to read first few lines for pandas dataframe

Way to read first few lines for pandas dataframe

Is there a built-in way to use read_csv to read only the first n lines of a file without knowing the length of the lines ahead of time? I have a large file that takes a long time to read, and occasionally only want to use the first, say, 20

Different Connection Strings with Entity Framework based on Context

Different Connection Strings with Entity Framework based on Context

I have a web forms application that uses entity framework, the application is deployed on a development box, my local machine and a production box. Each of these have different connection strings.What is the best way of handling this.I use

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

Excluding a bean's field in Hibernate criteria result

Excluding a bean's field in Hibernate criteria result

Here is how I'm getting my User beans from Database.session.createCriteria(User.class).list();That returns all of User records from database. Interesting part is that, I don't want to get the password field from DB. Just want to exclude tha

MGTwitterEngine for Iphone SDK errors

MGTwitterEngine for Iphone SDK errors

I'm trying to get MGTwitterEngine to work for the iPhone SDK. I've followed the read me below and now I keep getting the following errors: TCDownload.h: No such file or directoryyajl_parse.h: No such file or directoryNow, I've done a search

Android NDK: how to link multiple 3rd party libraries

Android NDK: how to link multiple 3rd party libraries

Let's say we're building a shared library A that needs to link to 2 external static libs B and C. All you've got are libB.a and libC.a, along with their header files.Here's a simplified Android.mk for libA:LOCAL_LDLIBS := ../external/libB.a

R: Interaction Plot with a continuous and a categorical variable for a GLMM (lme4)

R: Interaction Plot with a continuous and a categorical variable for a GLMM (lme4)

I would like to make an interaction plot to visually display the difference or similarity in slopes of interaction of a categorical variable (4 levels) and a standardized continuous variable from the results of a regression model.with(GLMMo

Iphone - device - linker error

Iphone - device - linker error

I have added libpng to my application. If I build for simulator, everything is OK. When I build application for device, I got linker error: Undefined symbols for architecture armv7: "_png_init_filter_functions_neon", referenced from: _pn

Unable to find resource in repository central (http://repo1.maven.org/maven2)

Unable to find resource in repository central (http://repo1.maven.org/maven2)

In General, what do i do to resolve resource not found in a maven repo, is there another list of repos i can add to pom.xml ? i tried the solution listed as command line, but it did not work, even though maven reported it as being SUCCESS.I

Counting number of words in C#

Counting number of words in C#

I'm trying to count the number of words from a rich textbox in C# the code that I have below only works if it is a single line. How do I do this without relying on regex or any other special functions. string whole_text = richTextBox1.Text;

Using std::function and std::bind to store callback and handle object deletion.

Using std::function and std::bind to store callback and handle object deletion.

I want to implement a manager that stores callbacks to member functions of polymorphic classes using C++11. The issue is that I am not sure how to handle the case where the object that the member belongs to gets deleted or should be deleted

How to disable db:schema:dump for migrations

How to disable db:schema:dump for migrations

I dont want Rails 3 to generate my schema every time I do migration. How to properly disable it?Thanks 1:Create an application specific task (as Alex Kaushovik suggested) like so...Create a file lib\tasks\db_schema_override (actual name

Java Webstart intermittant JAR not updating

Java Webstart intermittant JAR not updating

We use java Webstart to deploy a java application on our intranet. The application receives frequent updates. Once in awhile a user will launch the application from their desktop icon after we have updated the JARs / WAR on the webserver (t