Posts

ios - Assigning a value out of array of arrays, using section in Xcode -

this code: let servicebonnen = [[1,2,3],[4,5,6],[7,8,9]] //not real data func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell { let cell = tableview.dequeuereusablecellwithidentifier("namecell", forindexpath: indexpath) cell.textlabel!.text = servicebonnen[section][indexpath.row] return cell } but gives me error @ "section" point in line of code: cell.textlabel!.text = servicebonnen[section][indexpath.row] does know why won't compile, , proper solution? you need use section indexpath : indexpath.section your line should this: cell.textlabel!.text = servicebonnen[indexpath.section][indexpath.row]

xamarin.ios - Xamarin(PCL) - Signal R - System.InvalidOperationExceptionConnection started reconnecting before invocation result was received -

i getting system.invalidoperationexceptionconnection started reconnecting before invocation result received exception signal r chat, using signal r client in pcl of xamarin project here chat service class- public class chatservice : ichatservice { private ihubproxy _hubproxy; private hubconnection _hubconnection; private readonly imobileserviceclient _mobileclient; private readonly iinsightsservice _insightsservice; private readonly ichatmessagerepository _chatrepository; public chatservice(imobileserviceclient mobileclient, iinsightsservice insightsservice, ichatmessagerepository chatrepository) { _insightsservice = insightsservice; _mobileclient = mobileclient; _chatrepository = chatrepository; } public event eventhandler<chatmessage> messagereceived; public async task connect(bool dismisscurrentconnection = false) { try { if (!crossconnectivity.current.isconnected)

r - XTS-File doesnt work for quantstrat -

i have created xts file out of csv file looks this: open high low close volume adjusted 2016-01-04 14:30:36 "4896,3818" "4896,4272" "4895,2363" "4895,8789" " 0" "0" 2016-01-04 14:31:56 "4892,3579" "4894,0259" "4891,752" "4894,0259" " 0" "0" 2016-01-04 14:32:57 "4894,1753" "4899,2466" "4894,1753" "4898,8589" " 0" "0" 2016-01-04 14:33:59 "4899,2227" "4899,2227" "4894,8281" "4896,5469" " 0" "0" 2016-01-04 14:34:59 "4896,2915" "4896,418" "4892,3838" "4893,4326" " 0" "0" 2016-01-04 14:35:59 "4893,1196" "4896,3301" "4893,1196" "4895,434

javascript - How equal two objects and return this value to ng-show -

i have 2 objects (dates) {{vm.currentdate|date:'mediumdate'}} , {{vm.anotherdate|date:'mediumdate'}} how equal (if same) , value operation sent directive in button <button type="submit" ng-show="value_from_operation"></button> you check if equal this: +currentdate === +anotherdate

javascript - Website analyzer -

i'm having problem, page search products, has getting worse last time. wants display me products can delivered country - still want see of them. have check domins product manually (.com .ca .co.uk etc etc). want build small tool me. i have tried php way: $html=file_get_contents('https://www.ebay.com/sch/i.html?_ipg=200&_from=r40&_sacat=0&_nkw=book&_sop=10'); $dom = new domdocument(); @$dom->loadhtml(mb_convert_encoding($html,"utf8",mb_detect_encoding($html))); $x = new domxpath($dom); foreach($x->query("//li") $node){ $ignore=0; $itemid= $node->getattribute("listingid"); if($itemid >0){ //if (in_array($itemid,$itemsindb)){ echo "itemid=".$itemid."//////text: "; echo $node->nodevalue; echo "<br>"; } but problem is, nodevalue seems missing html tags, since ouput looks this: itemid=322582462268//////text: new listing wind in willows, grahame arthur ra

vba - Invoicing in Word document -

i'm trying write vba script multiply figures exist in table in ms word. so far i've managed below value of b appears £11,000 in document , when message out returns 0. i'd value of b 11000 can multiply, ideas or written code great. private sub calculate_click() dim t1 table dim double dim m, b currency ' first table set t1 = activedocument.tables(1) = val(t1.cell(5, 3).range.text) = a/100 b = val(t1.cell(7, 4).range.text) 'b = ccur(t1.cell(7, 4).range.text) **i tried didn't work msgbox b m = * b t1.cell(5, 4).range.text = format(m, "currency") end sub your code perfect - until tried put icing on cake. :-) dim double, b double because don't want multiply apples oranges. m = * b gives correct result, converted currency divides 100. perhaps done in line, t1.cell(5, 4).range.text = format(m, "currency") . don't know. suggest declare m double , format result forma

mesos - configure: error: cannot find libz -

building mesos 1.3.0 sources on linux-mint release 18.2 following message: configure: error: cannot find libz when try search packages starts libz* many packages names starting libz. 1 right package should install it? try installing zlib1g-dev . it's listed in the documentation linux mint 18.2 based on ubuntu 16.04. so, should follow instructions ubuntu 16.04. # update packages. $ sudo apt-get update # install few utility tools. $ sudo apt-get install -y tar wget git # install latest openjdk. $ sudo apt-get install -y openjdk-8-jdk # install autotools (only necessary if building git repository). $ sudo apt-get install -y autoconf libtool # install other mesos dependencies. $ sudo apt-get -y install build-essential python-dev python-six python-virtualenv libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev zlib1g-dev