my app showing empty select field first entry. have read other solution given , tried still not working. my controller code is: .controller('usercreatecontroller', function(user,profile,auth) { alert("hello"); var vm = this; vm.type = 'create'; profile.all() //this service fetch profiles shown in select field .success(function(data){ vm.profile = data; }); vm.userdata.profile = vm.profile[0]; //here have set default value select field and html page is: <label class="col-sm-2 control-label">profile</label> <div class="col-sm-8"> <select ng-model="user.userdata.profile" ng-options="person._id person.profilename person in user.profile"> </select> </div> hierarchy of vm.profile { "_id": 46, "profile": objectid("5516498e95b84548156db754"), "isactive": true, "password": "$2...
i writing program , have come across 2 errors believe related , unsure how solve. errors read... 1) error 1 inconsistent accessibility: parameter type 'ref programmingassignment2.avltree' less accessible method 'programmingassignment2.editcountryform.editcountryform(ref programmingassignment2.avltree, system.windows.forms.datagridview)' c:\users\adam\documents\visual studio 2010\projects\programmingassignment2\programmingassignment2\editcountryform.cs 17 16 programmingassignment2 2) error 2 inconsistent accessibility: property type 'programmingassignment2.avltree' less accessible property 'programmingassignment2.editcountryform.stuffs' c:\users\adam\documents\visual studio 2010\projects\programmingassignment2\programmingassignment2\editcountryform.cs 60 33 programmingassignment2 the errors in edit form follows... public partial class editcountryform : form { public country toedit; public editcountryform(ref avlt...
according understanding of documentation there should possbile access microsoft windows keystore service "windows-my" . when load privatekey keystore null privatekey.getencoded(). how can access privatekey windows keystore? trying access with: keystore ks = keystore.getinstance("windows-my"); ks.load(null); privatekey privatekey = (privatekey) ks.getkey("mykeyalias", null); system.out.println("privatekey:" + privatekey)); system.out.println("getencoded:" + privatekey.getencoded()); output i'm getting: privatekey:rsaprivatekey [size=2048 bits, type=exchange, container=mykeyalias] getencoded:null using jre 1.8 , tested win7 , 8.1 the mscapi not seem support private key export. first of key.getencoded() javadoc specifies: returns key in primary encoding format, or null if key not support encoding. and if @ source code of java crypto provider mscapi , getencoded() method returns null in cases. ...
Comments
Post a Comment