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

All falsey values in JavaScript

All falsey values in JavaScript

What are the values in JavaScript that are 'falsey', meaning that they evaluate as false in expressions like if(value), value ? and !value?There are some discussions of the purpose of falsey values on StackOverflow already, but no exhaustiv

How to create a Custom Dialog box in android?

How to create a Custom Dialog box in android?

I want to create a custom dialog box like below I have tried the following things.I created a subclass of AlertDialog.Builder and used a custom Title and Custom Content View and used that but the result was not as expected.Another attempt w

Why is using a wild card with a Java import statement bad?

Why is using a wild card with a Java import statement bad?

It is much more convenient and cleaner to use a single statement likeimport java.awt.*;than to import a bunch of individual classesimport java.awt.Panel;import java.awt.Graphics;import java.awt.Canvas;...What is wrong with using a wildcard

Exception Breakpoint in Xcode

Exception Breakpoint in Xcode

How to add Exception Breakpoint in Xcode?int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); [pool release]; return r

URL rewriting with PHP

URL rewriting with PHP

I have a URL that looks like:url.com/picture.php?id=51How would I go about converting that URL to:picture.php/Some-text-goes-here/51I think WordPress does the same.How do I go about making friendly URLs in PHP? 1:You can essentially do t

jQuery Ajax File Upload

jQuery Ajax File Upload

Can I use the following jQuery code to perform file upload using post method of an Ajax request ?$.ajax({ type: "POST", timeout: 50000, url: url, data: dataString, success: function (data) { alert('success'); re

Reading a remote file using Java

Reading a remote file using Java

I am looking for an easy way to get files that are situated on a remote server. For this I created a local ftp server on my Windows XP, and now I am trying to give my test applet the following address:try{ uri = new URI("ftp://localhost/

iOS : Could not build module

iOS : Could not build module

I've got Library from another team. I'm trying to use library in our project and while do so getting an error Could not build module 'Common Library' (name of framework)Below are solutions that I worked on but didn't helped :1. Delete Deriv

Return elements of list as independent objects in global environment

Return elements of list as independent objects in global environment

I have a list, and would like to break the elements of the list into seperate objects in the global environment. For example, I would like the list: obj to be three seperate objects a, b, and c. I tried to achieve this with: lapply(obj, FUN

Make ul list work like select input

Make ul list work like select input

I want to be able to use a ul list as an select form element, for styling reasons. I'm able to populate an hidden input with my code (not included in this jsfiddle), and so far so good.But now I'm trying to let my ul behave like the select

Is there any ASCII character for ?

Is there any ASCII character for ?

Typically we all using HTML numbers or names in web pages. ex. & is & or & and $, @, ©, ®, ... etc.Like the way I want to know is there any HTML number or name for ?.Any answer would be helpful?Cheers! 1:& is a character; & is a HTML cha

Escape pound or number sign in Github issue tracker

Escape pound or number sign in Github issue tracker

If I type #1 when creating an Issue in Github, it will reference to Issue ID 1. Is there a way to avoid this by escaping the # sign? I just need it to be regular text. 1:TL;DR—my personal favouriteseither type#1or#1or#1In the lat

C++: reading memory of another process

C++: reading memory of another process

I'd like to have a function that allows me to read the memory of another process.I was thinking about something like this (pseudo code):staticAddress = 0x026E0DC4processId = GetProcessIdByName(processName)processHandle = GetProcessHandle(pr

Android Async Task Progress Bar onProgressUpdate

Android Async Task Progress Bar onProgressUpdate

I am a new programmer. I have seen lots of tutorials but can't understand what is wrong. I am trying to create a ProgressBar from an Async Task. However it always crashes my application.Here is the "main" app:package pt.flag.ensemble;import

How to convert columns to rows using CSS

How to convert columns to rows using CSS

Hi I need to convert columns to rows and rows to columns. I have both column headers and rows headers to the left. The row headers are just bold text to the left of the row to define what the row is. I am trying to make this table mobile fr

Angular ng-show not working if parent has ng-if

Angular ng-show not working if parent has ng-if

I have a view where a parent div has ng-if on it, and some child element has ng-show on it. It seems that the ng-show isn't working correctly when nested under an element with ng-if on it. Is this an Angular bug or am I doing something wr

How to draw a circle after zoom in android

How to draw a circle after zoom in android

I am using Image view and drawing overlay image using layerDrawable.I have used two bitmaps original and myBitmap.After zoom I am not able draw circle in correct location, it's drawn in different location.This is the code I am using, Ima

Using enum in Objective-C?

Using enum in Objective-C?

Is this the correct (or even a valid way) to use emums in Objective-C? i.e. The menuItem is not used but just defines a list add=1, load=2, list=3 etc.enum menuItems { add = 1 , save , load , list , remov

How to find the smallest assignable type in two types (duplicate)? [duplicate]

How to find the smallest assignable type in two types (duplicate)? [duplicate]

This question already has an answer here: How to find the minimum covariant type for best fit between two types? 3 answers Here're two extension method

What are Perl built-in operators/functions?

What are Perl built-in operators/functions?

I'm reading Beginning Perl by Simon Cozens and in Chapter 8 - Subroutines he states that "subroutines" are user functions, while print, open, split, etc. are built-in operators or functions.What are they? Are they really built-in, language-

using enum in switch/case

using enum in switch/case

I have an entity that has an enum property:// MyFile.javapublic class MyFile { private DownloadStatus downloadStatus; // other properties, setters and getters}// DownloadStatus.javapublic enum DownloadStatus { NOT_DOWNLOADED(1),

Using yield to iterate over a datareader might not close the connection?

Using yield to iterate over a datareader might not close the connection?

Here is a sample code to retrieve data from a database using the yield keyword that I found in a few place while googling around :public IEnumerable ExecuteSelect(string commandText){ using (IDbConnection connection = CreateConnection())

Debug route provided to routeProvider

Debug route provided to routeProvider

I am new to AngularJS and am attempting to debug some of my routes but I don't know how to display/view the route passed to the routeprovider.For example if my current routing is set up as follows;reportFormsApp.config(function ($routeProvi

How to delete breakpoints in XCode

How to delete breakpoints in XCode

I go to Breakpoints panel in XCode, in the 'Breakpoints' I click a breakpoint and click 'Delete', but it does not remove the breakpoint. And I try go to go to 'Project Breakpoints' and find the same breakpoint and click 'Delete'. But it st