Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragme

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragme

I have an application with three tabs.Each tab has its own layout .xml file. The main.xml has its own map fragment. It's the one that shows up when the application first launches.Everything works fine except for when I change between tabs.

Select rows which are not present in other table

Select rows which are not present in other table

I've got two postgresql tables: table name column names----------- ------------------------login_log ip | etc.ip_location ip | location | hostname | etc.I want to get every IP address from login_log which doesn't have a row

Returning data from async call in Swift function

Returning data from async call in Swift function

I have created a utility class in my Swift project that handles all the REST requests and responses. I have built a simple REST API so I can test my code. I have created a class method that needs to return an NSArray but because the API cal

Generating random whole numbers in JavaScript in a specific range?

Generating random whole numbers in JavaScript in a specific range?

How can I generate a random whole number between two specified variables in Javascript, e.g. x = 4 and y = 8 would output any of 4, 5, 6, 7, 8? 1:There are some examples on the Mozilla Developer Network page:/** * Returns a random number

Change an element's class with JavaScript

Change an element's class with JavaScript

How can I change a class of an HTML element in response to an onClick event using JavaScript? 1:Modern HTML5 Techniques for changing classesModern browsers have added classList which provides methods to make it easier to manipulate class

Is it a good idea to call finish() after starting a new Activity in Android?

Is it a good idea to call finish() after starting a new Activity in Android?

Like:startActivity(intent);finish();Without calling finish() explicitly, onDestroy() is not called for the former Activity, and I run out of memory (OutOfMemory Exception).So, is it a good idea to call finish() explicitly to prevent OutOfMe

Find element by attribute

Find element by attribute

I am trying to find an element with Attribute. Well, I can find elements with Id, tagName, Xpath and all other predefined methods in Selenium. But, I am trying to write a method that specifically returns WebElement, given Attribute name and

SwiftyJSON object back to string

SwiftyJSON object back to string

I'm using the SwiftyJSON library to parse JSON into swift objects. I can create the JSON object and read and write to it// Create json object to represent libraryvar libraryObject = JSON(["name":"mylibrary","tasks":["Task1","Task2","Task3"]

In gradle tasks of type Exec, why do commandLine and executable behave differently?

In gradle tasks of type Exec, why do commandLine and executable behave differently?

Does anyone know why in tasks of type Exec commandline and executable behave differently in terms of inheriting environment vars?For example, I cannot run this Task because Gradle fails to find ruby from my environment:task checkRubyVersio

WebLogic stuck thread protection

WebLogic stuck thread protection

By default WebLogic kills stuck threads after 15 min (600 s), this is controlled by StuckThreadMaxTime parameter. However, I cannot find more details on how exactly "stuckness" is defined. Specifically:What is the point at which 15 min co

Timer.scheduledTimer swift 3 pre iOS 10 compatibility

Timer.scheduledTimer swift 3 pre iOS 10 compatibility

I need to schedule a Timer for firing a function every second but I see that in xcode 8 beta 3 the scheduledTimer is only available for iOS 10. Is there any alternative for using the timer in iOS 9 or previous versions?Timer.scheduledTimer(

Save a html canvas image

Save a html canvas image

I know there is probably an answer already to this question but I haven't been able to find it yet and there is a deadline on my project.So I have made an html5 canvas and I would like to be able to do two things with one(or more) buttons.I

EJB stateless session beans and stateful session bean

EJB stateless session beans and stateful session bean

I have gone through various books on stateful and stateless session bean and how they work. I want to know the real usage of these ejbs and advantages over using plain java classes. Basically when do you go for stateless ejbs and when do yo

how to pass parameters to an ado.net source in ssis?

how to pass parameters to an ado.net source in ssis?

This is the original query, which works fine using ado.net source and using the .net providers\odbc data provider specified inside the source.SELECT a.FA_CLNT_ID, a.FA_ACCT_NM, a.ACCT_E_DT, a.POL_PER_CURR_DT, a.POL_PER_NEXT_DT, a.FA_ACCT_NU

Wait until all Task finish in unit test

Wait until all Task finish in unit test

I have this class I want to unit test:public class SomeClass{ public void Foo() { Bar(); } private void Bar() { Task.Factory.StartNew(() => { // Do something that takes some time (e.g. an HTTP

ASP.Net MVC support for Nested Resources?

ASP.Net MVC support for Nested Resources?

I'm looking for a routing option similar to the nested RESTFul routes functionality available through Rails. The SimplyRestful project on MvcContrib doesn't appear to be active any longer nor does it appear to be current with the 1.0 MVC re

How to get a list of all child nodes in a TreeView in .NET

How to get a list of all child nodes in a TreeView in .NET

I have a TreeView control in my WinForms .NET application that has multiple levels of childnodes that have childnodes with more childnodes, with no defined depth. When a user selects any parent node (not necessarily at the root level), how

Jenkins parameterized job that only queues one build

Jenkins parameterized job that only queues one build

Imagine a Jenkins job A which takes 1 minute to run, and job B which takes 5 minutes. If we configure job A to trigger job B, while job B is running job A may run 5 times before B completes. However, Jenkins doesn't add 5 builds to job B's

How can I iterate over properties from a file?

How can I iterate over properties from a file?

All my projects and their versions are defined in a properties file like this:ProjectNameA=0.0.1ProjectNameB=1.4.2I'd like to iterate over all the projects, and use their names and versions in an Ant script.At present I read the entire file

make localStorage or sessionStorage expire like cookies [duplicate]

make localStorage or sessionStorage expire like cookies [duplicate]

Possible Duplicate: When do items in HTML5 local storage expire? My web application uses client side storage (sessionStorage and localStorage). However, I want this data to be expired after some time (eg. 2 days). It was a super easy task

How do I output gulp results to console?

How do I output gulp results to console?

I want to put my spellcheck results out to the console instead of to a file and I think this should work since as I understand it gulp returns a stream. Instead I get an error:TypeError: Object # has no method 'read'Here is my codegulp.task

Converting an Ant fileset to multiple apply args

Converting an Ant fileset to multiple apply args

I have some files:dir/foo.txtdir/bar.txtdir/foobar.txtIn an Ant apply task, I want to pass the list of files as arguments: This works fine, but what if I want to pick the list of files

Nunit async test exception assertion

Nunit async test exception assertion

I have a controller UserController with this action// GET /blahpublic Task Get(string domainUserName){ if (string.IsNullOrEmpty(domainUserName)) { throw new ArgumentException("No username specified."); }

How to detect right and left click in cocoa

How to detect right and left click in cocoa

I want to create a action on right and left click of mouse. Click may be on NSTableViewCell, NSView, etc (Like when we right click on window it gives a pop-up ) . Is there any API to do such task? If no, any other way .Thank you in advance

android: makes activity A wait for activity B to finish and returns some values

android: makes activity A wait for activity B to finish and returns some values

I have a program that needs to...In Activity A, do some jobsStart up Activity B (a WebView), let user fills in some information, then collect the resultThen finally process the dataCurrently I set it up like this:In Activity A:... startActi