Posts

kohana registration returns error -

kohana registration returns error - i have working registration script problem not know how check if username exist because if email or username exist returns me fatal error: orm_validation_exception [ 0 ]: failed validate array ~ modpath/orm/classes/kohana/orm.php [ 1174 ] and here script: $validate = validation::factory($values) ->rule('name', 'not_empty') ->rule('password', 'matches', array(':validation', 'password', 'repeat-password')) ->rule('password', 'not_empty') ->rule('email', 'email')->rule('email', 'not_empty') if(!$validate->check()){ $errors = $validate->errors('registration', true); foreach($errors $value){ echo $value . "<br />"; } return; } $model = orm::factory('user'); $model->values(array( 'username' => $values['nam...

wpf - ComboBox Whith a TreeView -

wpf - ComboBox Whith a TreeView - i need create usercontrol combobox. in items in need treeview , button. if navigate tree item should go text box in bottom. if click button tree should collapsed. first thought isn't good. <stackpanel orientation="vertical"> <stackpanel orientation="horizontal"> <textbox text="{binding adresse, mode=twoway}" maxlength="50" minwidth="170" grid.row="5" margin="5,2,5,2"/> <button width="25" margin="2" click="down"> <image source="/c1_net;component/images/arrow.jpg" horizontalalignment="left" /> </button> </stackpanel> <stackpanel x:name="tree" orientation="vertical" visibility="collapsed"> <sdk:treeview height=...

Cyber-Ark Privileged Identity Management API -

Cyber-Ark Privileged Identity Management API - do know if there sort of api available cyber-ark privileged identity management integrate enterprise applications? i think reply might 50% yes, 50% no. cyber-ark offers web services , api vault objects, should able retrieve passwords vault trusted application. there paragraph of sales info on cyber-ark's website: cyber-ark's comprehensive sdk provides interface vault objects can utilize develop custom solutions work vault. cyber-ark provides variety of sdk such command line interface, activex api, .net api , web services api but beyond working vault objects, i'm not exclusively sure. i'm looking more info on vault web services, , think need register partner information. i'll post follow-up if larn anymore. api identity cyber-ark

linux - Pattern decoding II -

linux - Pattern decoding II - possible duplicate: pattern decoding i have new question concerning previous post pattern decoding: i have same info file, there double empty (blank) lines, have taken business relationship in decoding. so, double empty lines mean there street/grout (for definitions see previous post: pattern decoding) in there 0 (0) house, have count these kind of patterns too. (yes, may think, absolutely wrong statement, because there no street without @ to the lowest degree 1 house, analogy, please, take is.) here new info file, double lines: 0 0 # <--- grouping 1 -- 1 house (0) , 1 room (0) 0 0 # <--- grouping 2 -- 2 houses (0;1) , 3,2 rooms (0,1,2;0,1) 0 1 0 2 1 0 # <--- house 2 in grouping 2, first room (0) 1 1 # <--- house 2 in grouping 2, sec room (1) 0 0 # <--- grouping 3 0 1 # <--- house 1 in grouping 3, sec room (1) 0 2 0 0 # <--- grouping 4 1 0 # <--- house 2 in grou...

javascript - Visual Studio Intellisense for Backbone.js -

javascript - Visual Studio Intellisense for Backbone.js - is there -vsdoc.js file backbone.js? if not, there feasible work-around method intellisense backbone.js javascript library? i don't think there vsdoc. couldn't find in nuget , searching didn't bring up. an alternative might reference non-minified version same way reference vsdoc file. may function list , maybe parameter names. if have js tool (many of them in extensions manager), or have resharper 6.0, may able go definition of function or , read comments in there (the non-minified version has comments, not in vsdoc format). update: some mutual reference code, enable intellisense not reference file, assuming utilize nuget package. http://nuget.org/packages/backbone.js reference in razor file (.cshtml) @if (false) { <script src="/scripts/backbone.js" type="text/javascript"></script> } reference in webforms view engine (.aspx, .ascx, .master): <% if(...

browsing and playing audio and video files in android -

browsing and playing audio and video files in android - i developing project in need play sound , video files. when sound player clicked should display sound files sdcard , play files. when video player clicked need display video files , play video files. i using media player playing files. mediaplayer mp = new mediaplayer(); string filepath = environment.getexternalstoragedirectory()+"/f.mp3"; mp.setdatasource(filepath); mp.start(); but problem is,how browse audio/video files , set info source dynamically when user selects particular file. you should utilize mediastore has separate contentprovider sound , video http://developer.android.com/reference/android/provider/mediastore.html audio : http://developer.android.com/reference/android/provider/mediastore.audio.html video : http://developer.android.com/reference/android/provider/mediastore.video.html android audio video

php - Why is this foreach failing? -

php - Why is this foreach failing? - the script using 'gets' html page , parses showing .jpg images within, need create modifications , when fails... this works: include('simple_html_dom.php'); function geturladdress() { $url = $_server['https'] == 'on' ? 'https' : 'http'; homecoming $url .'://'.$_server['http_host'].$_server['request_uri']; } $html = file_get_html($url); foreach($html->find('img[src$=jpg]') $e) echo '<img src='.$e->src .'><br>'; however, there problems... want show images on size, plus site not display total url in img tag , need seek around too... have done following: include('simple_html_dom.php'); function geturladdress() { $url = $_server['https'] == 'on' ? 'https' : 'http'; homecoming $url .'://'.$_server['http_host'].$_server['request_uri']; }...