Posts

uitableview - iOS Swift How to change or update UILabel attribute in custom UITableViewCell -

i want update/change uilabel attribute (background color,background shape,etc...) dynamically when data web service. i want dispaly label in difference type different lable text, update uilabel attribute according testdata got web server. : if testdata=[1,1,1,1] uilabel background color red , testdata=[2,2,2,2] uilabel background color blue.etc i doing following: in main.stroyboard: i add tableview , tableviewcell (choice custom) associated uitableviewcell named tvcell , add uilabel component. in tvcell import uikit class tvcell: uitableviewcell { @iboutlet weak var testlabel: uilabel! var testdata:testdatainfo?{ didset{ updateui() } } private func updateui(){ if let mfildata=testdata{ setstauteslabel() } } private func setstauteslabel(){ self.testlabel=uilabel(frame: cgrect(x: 50, y: 50, width: 100, height: 35)) self.testlabel.text = "thistestlabel" ...

php - Including external javascript in shopify page from the app installed using shopify api -

i new shopify , created 1 shopify development account, created 1 app. have provided option each user install app using shopify shop name. how can include 1 of javascript file(customized in app) in shopify page? want load javascript file in shopify page (this js file loading 1 popup subscription). there shopify api loading specific js file app shop page? i used following link reference, https://github.com/cmcdonaldca/ohshopify.php you can use scripttag resource: https://help.shopify.com/api/reference/scripttag this shopify website: if need add storefront use javascript. don't edit theme's files. add javascript using scripttag resource. when app uninstalled, javascript no longer used shop automatically, , beauty of using scripttag resource. merchant won't need edit theme bring way before app's installation.

javascript - mysql ajax table editor doesnt find primarycolvalue -

i using previous version of mysqlajaxtableeditor had upgrade new one, downloaded new mysqlajaxtableeditor there bug in it. need value of first column in javascript function when click on row, value isn't passed. does know should make work? or have alternative solution? this relevant part of code in initiateeditor function $tablename = 'tblklant'; $primarycol = 'idtblklant'; $errorfun = array(&$this,'logerror'); $permissions = $rights; $this->editor = new ajaxtableeditor($tablename,$primarycol,$errorfun,$permissions,$tablecolumns); $this->editor->setconfig('tableinfo','cellpadding="1" width="1200" class="matetable"'); $this->editor->setconfig('tabletitle','klanten'); $this->editor->setconfig('addrowtitle','klant toevoegen'); $this->editor->setconfig('editrowtitle','klant bewerken'); $this->editor->setconfig('paginat...

Call constructor of cls object in Python -

i trying call constructor of class object in python. managed work using following few lines: obj = cls.__new__(cls) n = (list of attribute names) v = (list of attribute values) s in n: setattr(obj, s, v[s]) i wondering if there way directly insert attribute value + name pairs constructor, cause arguments ignored if call following: obj = cls.__new__(cls, v) p.s.: using python3 the class looks similar this: class inheritingclass(baseclass): def __init__(self, basic_attribute, another_attribute=none): super().__init__(basic_attribute=basic_attribute) self.another_attribute= another_attribute class baseclass: def __init__(self, basic_attribute=1): self.basic_attribute= basic_attribute so nothing special there __init__ constructor of python class instead of __new__ . refer pythons use of new , init more information.

visual c++ - VS 2015 C++ compilation failed on "CodeTaskFactory load" -

i got strange error: c:\program files (x86)\msbuild\microsoft\visualstudio\v14.0\codeanalysis\microsoft.codeanalysis.targets(219,5): error msb4175: task factory "codetaskfactory" not loaded assembly "c:\program files (x86)\msbuild\14.0\bin\microsoft.build.tasks.core.dll". timed out waiting program execute. command being executed "c:\windows\microsoft.net\framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"e:\buildagent\temp\buildtmp\dxr3ks1s.cmdline". i disabled code analysis: <runcodeanalysis>false</runcodeanalysis> <runcodeanalysisonthisproject>false</runcodeanalysisonthisproject> but see same error :(

android - What does this logcat line means? -

my app runs expected, except when select last option on navigation drawer. error i/process: sending signal. pid: 2062 sig: 9 ... , app crashes. help? when use code , when crash happen: binddictionary<listarecompensas> dictionary = new binddictionary<>(); dictionary.addstringfield(r.id.lrnivel, new stringextractor<listarecompensas>() { @override public string getstringvalue(listarecompensas listarecompensas, int position) { return listarecompensas.getname(); } }); dictionary.addstringfield(r.id.lrqty, new stringextractor<listarecompensas>() { @override public string getstringvalue(listarecompensas listarecompensas, int position) { return "" + listarecompensas.getqty(); } }); dictionary.addstringfield(r.id.lrexp, new stringextractor<listarecompensas>() { @override public string getstringvalue(listarecompensas listarecompensas, ...

php - Symfony returning error : some parameters are missing. Please provide them -

Image
i'm trying install symfony on wamp server, i'm installing through composer. tried below command in cmd $ composer create-project symfony/framework-standard-edition sym2 above command installing symfony latest version on wamp in end returning error or request edit something. creating "app/config/parameters.yml" file` i attached cmd screen shot reference, can on guide me how can solve issue. have update composer phar before installing symfony. it's not bug (error), it's feature. there's no error, information. cmd waits provide values these missing parameters. right here in command line, not directly parameters.yml file. currently on screen it's waiting provide database_host or press enter apply default value shown in brackets ( 127.0.0.1 ). this interactive management of parameters.yml file