Posts

angularjs - Are you able to upload a file -

Image
this question has answer here: how upload file in angularjs e2e protractor testing 7 answers i have test upload pictures website uses defaulted os upload modal. after click upload cannot access upload screen. there way around it? saw online looked there had no idea how implement saying. element(by.xpath("//div[@id='ngdialog28']/div[2]/div/div[6]/div/span")).click() element(by.css("input[type=\"file\"]")).click(); element(by.css("input[type=\"file\"]")).clear(); element(by.css("input[type=\"file\"]")).sendkeys("c:\\programdata\\meetingmatrix international\\meetingmatrix 2010\\mmidemo\\setups\\test.mms"); the answer below came previous post had overlooked. here code: var path = require('path'); var filetoupload = 'put path here', absolutep...

xml - Google hangout Application configuration giving error for Application URL -

Image
i following instruction creating application getting-started( https://developers.google.com/+/hangouts/getting-started ) document while setting application url google hangout application configuration in google console, getting same error 'the user request invalid. please check url , try again.' i have tried google default xml( https://developers.google.com/+/hangouts/getting-started ) file url application url given in same document still not able save it's configuration url. i using correct xml file still facing application url issue? .. have idea saving google hangout application configuration in google api console i having same problem. don't know correct solution. filling 3 support url's dummy values. saved successfully.

singular gradient error with nls in r; how do I know if its the code or the data? -

Image
i'm trying run non linear regression on data: flux<-c(192.09536, 199.47616, 137.63245, 133.60358, -89.28360, -23.17639, -27.14659, 107.25287, 52.72565, na, 167.43277, 113.59047) par<-c(4.166667e-01, 4.347826e-02, 4.583333e-01, 1.845833e+02, 1.122688e+03, 1.059048e+03, 6.384000e+02, 3.326087e+02, 7.094762e+02, 4.180000e+02, 3.953333e+02, 3.998636e+02) obs<-c(1,2,3,4,5,6,7,8,9,10,11,12) curve1<-data.frame(flux, par, obs) curve1<-do.call("cbind", curve1) this first model tried, has worked on other similar datasets: model1 <- nls(flux~b*par/(c+par)-a, data = curve1, start=list(a=180, b=-200, c=800)) however data model1 gives: error in nls(flux ~ b * par/(c + par) - a, data = curve1, start = list(a = 180, : singular gradient i thought might because starting parameters wrong tried turn self starting model (i've tried lots of different starting parameters): model2<-with(curv...

javascript - How to set dynamic form on popup -

i have dynamic form code following: <form accept-charset="utf-8" action="https://vd263.infusionsoft.com/app/form/process/60dfa9fa31db677b87c9061c53d0925b" class="infusion-form" method="post"> <input name="inf_form_xid" type="hidden" value="60dfa9fa31db677b87c9061c53d0925b" /> <input name="inf_form_name" type="hidden" value="sign newsletter" /> <input name="infusionsoft_version" type="hidden" value="1.44.0.47" /> <div class="infusion-field"> <label for="inf_field_firstname">first name *</label> <input class="infusion-field-input-container" id="inf_field_firstname" name="inf_field_firstname" type="text" /> </div> <div class="infusion-field"> <label for="inf_field_email...

javascript - Receive data in the nodejs server sent by the ajax jquery in a client -

i using ajax jquery send image nodejs server. stuck @ receiving image in nodejs server client. client code: jquery.noconflict(); formdata = new formdata(); jquery("#afile").on("change", function() { var file = this.files[0]; if (formdata) { formdata.append("image", file); jquery.ajax({ url: "http://130.211.245.190:8080", type: "post", data: formdata, processdata: false, contenttype: false, success:function(){} }); } }); can me receive image in server. in advance. i think "this" should wraped "$()"... try it... jquery.noconflict(); formdata = new formdata(); jquery("#afile").on("change", function() { var file = $(this).files[0]; if (formdata) { formdata.append("image", file); jquery.ajax({ ...

How to restore Android ListView position? -

i used code save list view position. how can restore it? view c = listview.getchildat(0); int scrolly = -c.gettop() + listview.getfirstvisibleposition() * c.getheight(); this looking: onresume(){ refresh_your_data(); if(listview.getadapter()==null) // create adapter } else { //create method in adapter refresh list of data refill_data(listdata); adapter.notifydatasetchanged(); } }

grails - Set select value in gsp -

controller: def abbrev = [:] abbrev.put(1,"i") abbrev.put(2,"ii") abbrev.put(3,"iii") abbrev.put(4,"iv") list<expando> abbreviations = abbrev.collect{ abbreviation -> expando.newinstance(key:abbreviation.key,value:abbreviation.value) } def row = [:] def programrows = [ ] somelist.each { item -> row = [key1:value1, key2,value2 ] programrows << row } [abbreviations:abbreviations, programrows:programrows ] i iterate through programrows map ( programrow ). map value1 equivalent key in abbreviations ( list of expandos ) want set select value based on this: commented option value can understand value want assign. view gsp: <g:each in="${programrows}" var="programrow"> <g:select name="abbrevs" from="${abbreviations}" optionvalue=...