Posts

Sip/Voip Call Support for all device in android -

i build application sip/voip call. supportable samsung , htc , motorola device. sip call not supportable micromax, xolo etc etc device.so want build app supportable sip call devices.how can do? actually samsung devices doesn't support sip/voip(like s3) there library can use refer building own sip/voip client. i used build voip client using csipsimple, works fine on devices tested. csipsimple imsdroid sipdroid http://code.google.com/p/csipsimple/ https://code.google.com/p/imsdroid/ https://code.google.com/p/sipdroid/

reactjs - How to reuse React component that has different markup? -

i have following component today, represents container box has heading , different rows. how looks: var box = react.createclass({ render: function() { return ( <boxheading title={this.props.headingtitle}/> <boxbody rows={this.props.rows} /> ) } }); var boxbody = react.createclass({ render: function() { return ( {this.rows()} ) } rows: function() { return _.map(this.props.rows, function(row) { return ( <houserow /> ); }, this); } }); now question is: if want reuse box & boxbody instead of using want use kind of row, how it? would pass kind of component want row box? so, <box rowtype={<houserow} /> or similar? the approach chose looks — you can combine box every type of row want, provided has correct interface. called object composition , legit , respected pattern in software engineering. the thing is, in react should not passing rendered component, compone...

sql - Combine two queries in PostgreSQL -

i need union in single array of 2 queries : in query related absences achievement of students in quarter : $ssqlasistencia = " select ca.idcadete, coalesce(sum(i.cantidad),0) cantidad cadetes ca, cursos c, cursos_cadetes cc left join inasistencias on i.fk_idcurso = cc.fk_idcurso , i.fk_idcadete = cc.fk_idcadete c.habilitado = true , ca.habilitado = true , c.fk_idanolectivo = ".$aanolectivobuscar." , c.fk_idano = ".$aanobuscar." , c.fk_iddivision = ".$adivisionbuscar." , cc.fk_idcurso = c.idcurso , cc.fk_idcadete = ca.idcadete , (extract(month i.fecha) in ".$trimestre ." or i.cantidad null) group ca.idcadete "; ...

javascript - declare multiple variables into a variable angularjs -

how put multiple variables 1 variable can minify code usage. how declare can use $scope.bundle instead of these 3 variables : $scope.acc.city, $scope.acc.state , $scope.acc.country. global variable carry multiple variables can use everywhere without need write variables again , again. the way want : $scope.bundle = [{$scope.acc.city, $scope.acc.state, $scope.acc.country}]; $scope.postcode = resp.content; if ($scope.postcode.length > 0) { $scope.bundle = $scope.postcode[0]; $scope.acc = $scope.bundle; } else { $scope.bundle = ''; $scope.acc = $scope.bundle; } instead of : if ($scope.postcode.length > 0) { var data = $scope.postcode[0]; $scope.acc.city = data.city; $scope.acc.state = data.state; $scope.acc.country = data.country; } else { $scope.acc.city = ''; $scope.acc.state = ''; $scope.acc.country = ''; } you're creating array of objects , need provide keys values $scope.bundle = [...

javascript - $myform.textinput.$isvalid is true when it should not -

the whole form should not valid until stuff[] has @ least 1 item added it. when user enters in value text box , clicks add adds value stuff[], @ point when value has been added stuff[] should submit button enabled. however, user types text box without clicking add, , nothing in stuff[], makes form valid , enables submit button. <form ng-app="myapp" ng-controller="myctrl" name="myform" ng-submit="submit()" novalidate> <div ng-repeat="things in stuff"> <table><tr><td>{{things}}</td></tr></table> </div> <input type="text" name="app" ng-model="input" ng-required="!stuff[0]" /> <button ng-disabled="!input" ng-click="add()"> <span> add</span> </button> <input type="submit" value="submit" ng-disabled="myform.$invalid" /...

javascript - How to show html result form a texterea -

in page of web, have textarea write html code. how show html result of textarea other view under texterea. you looking wysiwyg angular: angular wysiwyg directive textangular angular-redactor angular-froala list provided here well: http://ngmodules.org/tags/wysiwyg

Mos score calculation of opus codec with E-Model algorithm -

now want use e-model algorithm calculate opus mos score, need feed parameters e-model, e.g. bpl, ie, can't find value of these params opus in web, can help? or know other used algorithm opus mos? itu-t e-model tutorial. @ table 2 there default values each parameters , recommended range.