Posts

How to convert (decode) this url string to the actual word using PHP? -

what php function use convert this %25ce%2592%25ce%2595%25ce%259d%25ce%2596%25ce%2599%25ce%259d%25ce%2597 to actual string using php? the actual string written in greek characters , "ΒΕΝΖΙΝΗ" your string encoded 2 times. you can decode rawurldecode : $str = rawurldecode('%25ce%2592%25ce%2595%25ce%259d%25ce%2596%25ce%2599%25ce%259d%25ce%2597'); // $str = "%ce%92%ce%95%ce%9d%ce%96%ce%99%ce%9d%ce%97" $str = rawurldecode($str); // $str = "ΒΕΝΖΙΝΗ"

count - How to calculate total from Hashmap Java -

i have current output: first clusters: [[1, 0, 0, 0, 0], [1, 1, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 1], [0, 0, 0, 1, 1]] 0 : 4, probability: 0.8 , logval: -0.2575424759098898 1 : 1, probability: 0.2 , logval: -0.46438561897747244 0 : 3, probability: 0.6 , logval: -0.44217935649972373 1 : 2, probability: 0.4 , logval: -0.5287712379549449 0 : 5, probability: 1.0 , logval: 0.0 0 : 4, probability: 0.8 , logval: -0.2575424759098898 1 : 1, probability: 0.2 , logval: -0.46438561897747244 0 : 3, probability: 0.6 , logval: -0.44217935649972373 1 : 2, probability: 0.4 , logval: -0.5287712379549449 then each logval total them example: first data: 0 : 4, probability: 0.8 , logval: -0.2575424759098898 1 : 1, probability: 0.2 , logval: -0.46438561897747244 total[0] = (-0.2575424759098898) + (-0.46438561897747244) next, 2nd data: 0 : 3, probability: 0.6 , logval: -0.44217935649972373 1 : 2, probability: 0.4 , logval: -0.5287712379549449 total[1] = (-0.4421793564997...

c# - xamarin how to open facebook and twitter app from my ios app by a button -

i'm developing ios app xamarin, in c#. have "contact" uiviewcontroller, buttons, including facebook , twitter. i need open facebook , twitter app app, points specific facebook page , twitter profile. which best way this? thanks in advance... try : device.openuri(new uri("fb://page/page_id")); device.openuri(new uri("twitter://user?user_id=userid")); for page_id right click on page , select view source page , find page_id facebook , same twitter find userid

javascript - Selected cells is not permanent when redraw table -

Image
i have table: <style> table .highlighted { background-color: #999; } table .unhighlighted { background-color: whitesmoke; } </style> <form> <div class="form-group"> <div class="input-group"> <div class="input-group-addon"> <i class="fa fa-search"></i> </div> <input type="text" class="form-control" placeholder="aramak İstediğiniz Ürün alanını giriniz" ng-model="src_product"> </div> </div> </form> </div> <div class="row"> <div class="col-md-10"> <br/> <table ng-table="userstable" id="prod...

python - What is the asterisk for in signal and slot connections? -

in python qt, i'm connecting qlistwidget signal slot, this: qtcore.qobject.connect(self.mylist, qtcore.signal("itemclicked(qlistwidgetitem *)"), self.listeventhandler) my question is: trailing asterisk in qlistwidgetitem * do? a couple of bullet points explain (i'll try avoid c++ syntax): pyqt python wrapper around qt, written in c++. qt provides introspection classes inheriting qobject , using strings identify things. python has native introspection, c++ not. the syntax used called "old-style signals , slots" , uses c++ function signatures. c++ has more types of variables python. in c++, variable can value, reference, or pointer. pointers have asterisk after type name. qtcore.signal("itemclicked(qlistwidgetitem *)") refers qt signal called itemclicked has parameter pointer qlistwidgetitem , not item itself. in c++, looks like: void itemclicked(qlistwidgetitem *item); going strings introspection, identify signal ...

html5 - launch a web page automatically NativeScript -

there website of company, when open first time login page opens automatically. i'm going build mobile version of it. want when app opened, login page launched. how started? need use auto-launch? or need set page manually using openurl etc? is there typescript alternative this: // my-page.js var openurl = require("nativescript-openurl"); openurl("http://www.master-technology.com"); or should use webview? if so, how make launch automatically? thanks. if yоu using web-view need pass url , load on fly <webview url="https://www.nativescript.org" width="*" height="*"/> of course, can bind web-view url property , pass source dynamically. there plugin called nativescript-webview-interface can ease bi-directional communication. nice tutorial plugin can found here

yii - Outputting values not equal to certain values in yii2 -

Image
i output variables not equal values returns error of failed prepare sql: select * `tblsuunit` `unitid` != :qp0 there 2 models first model getting array of ids public function actionsunits($id){ $unitslocation = new unitslocation(); $id2 = unitslocation::find()->where(['officelocationid'=>$id])->all(); foreach( $id2 $ids){ print_r($ids['unitid']."<br>"); } } this outputs ids as 8 9 11 12 13 14 16 i take id , compare model(units model) , id values not similar above , output so have added $idall = units::find()->where(['!=', 'unitid', $ids])->all(); so whole controller action becomes public function actionsunits($id){ $unitslocation = new unitslocation(); $id2 = unitslocation::find()->where(['officelocationid'=>$id])->all(); foreach( $id2 $ids){ $idall = units::find()->where(['!=', 'unitid', $ids])->all(); ...