Posts

single sign on - Error CTJSO1501E from Bluemix SSO Web UI -

attempting set instance of bluemix sso service use in app. created service instance when click on tile open can configure settings get: com.ibm.sec.iam.platform.ui.dashboardexception: ctjso1501e have arrived @ page without valid parameters. must visit page via bluemix administration console. now, thought was in bluemix administration console. mean, i'm coming page: https://new-console.ng.bluemix.net/dashboard/all i tried coming @ other paths every time try open service error. would appreciate thoughts on wrong here or how might workaround failure. mike i not seeing problem. browser use? can try switching different browser, or cleaning current browser cache see if helps.

google maps - Can't translate some Javascript code I need for my C# App -

i'm trying build simple app locates restaurants nearby kinda lost since can't find how translate piece of code google guide c# , implement app since cannot find placesservice way try. var request = { location: pyrmont, radius: '500', types: ['store'] }; service = new google.maps.places.placesservice(map); service.nearbysearch(request, callback); function callback(results, status) { if (status == google.maps.places.placesservicestatus.ok) { (var = 0; < results.length; i++) { var place = results[i]; createmarker(results[i]); } } } chat conversation end try one: googlemapsapi nuget package it's 'google maps web services api wrapper .net' here github page can find examples, library pretty documented.

javascript - Youtube Api Auto Change Video Quality -

is there way automatically detect if user can handle higher video resolution? right i'm setting user playback quality 'default' in onplayerready. can check if there higher resolution available using getavailablequalitylevels()-1 in onplayerstatechange don't know if changing resolution cause issues. it seems there no direct way it. previous post suggests , can using 2 ways: use javascript method in post . use buffered video size quality estimate over suggested methods suggestion make slow process more kalman filter . hope helps.

r - shiny fluidrow column white space -

i have top banner want split 2 separate sections representing 2 different inputs. this, i've created fluidrow , 2 columns, 1 each input. however, there little bit of white space between columns, despite putting offset = 0. there way remove white space columns next 1 another? colors = c("green","blue","red") library(shiny) ui <- fluidpage( tabsetpanel( tabpanel("info", fluidrow( column(width = 6, offset = 0, div(style = "height:50px;width:100%;background-color: #999999;border-style: solid;border-color: #000000", tags$h3("section 1") ) ), column(width = 6, offset = 0, div(style = "height:50px;width:100%;background-color: #999999;border-style: solid;border-color: #000000", tags$h3("section 2") ...

For Loop never executing (Javascript / Jquery) -

this question has answer here: how return response asynchronous call? 25 answers why variable unaltered after modify inside of function? - asynchronous code reference 6 answers so loop runs if replace $.get('/preceed_with_an.txt', function(data){var ans = data.split('\n')}); ans = ["filler","more filler"] when $.get line in refuses execute loop , nothing ever written console. context, writing code tells if should use or before word. words use on separate lines in preceed_with_an.txt have checked $.get functions , file written array fine. $(document).on('input',$('#givenword'),function(){ var ans = new array; $.get('/preceed_with_an.txt', function(data){var ans = data.split('\n')}); (var = 0;...

scala - how to use spark streaming + kafka with streamingListener -

i have 1 situation here. i want aplication connect 1 time kafka, read offset, make action , stop application. i reading streaminglistener detect when first iteration occurs. i don´t know how use streaminglistener stop mi application. can me? i using spark 1.4 example code bellow: val lines = kafkautils.createstream(ssc, zkquorum, group, topicmap).map(_._2) lines.foreachrdd( rdd => { rdd.saveastextfile("......") }) sys.shutdownhookthread { println("gracefully stopping spark streaming application") ssc.stop(true, true) println("application stopped") } ssc.start() ssc.awaittermination() thanks!

java - Sorting an array in ascending order that contains null values -

i need sort array contains null values , null values represent invalid data have set null cannot removed array represent invalid piece of data null values must kept in place i.e sort other values except null values error thrown nullpointerexception on call arrays.sort(); public static double getmedian(double[] values) { double[] copy = arrays.copyof(values, values.length); arrays.sort(copy); double median; if (copy.length % 2 == 0) median = (copy[copy.length / 2] + copy[copy.length / 2 - 1]) / 2; else median = copy[copy.length / 2]; return median; } all and/or suggestions appreciated. add comparator , return appropriate sign, indicate less than, equal or greater than. example: class mycomparator<double> implements comparator { // change value -1 inverse sort direction. var direction = 1; public int compare(double o1, double o2) { int sign = 0; if (o1 == null) { sign = -1...