Posts

botframework - PromptDialog.Choice does not show choices -

i'm looking how can show choices user idialog<object> , promtdialog.choice method. thing below code sample doesn't show choices. difficult find code sample. looking help. thank you. list<string> botoptions = new list<string>(); botoptions.add("find program"); botoptions.add("find event"); promptdialog.choice(context, choiceselectasync,botoptions, "i didn't understand you. i'm cable with", "didn't that", 1, promptstyle.none); you need change promptstyle none. the available options are: auto generate buttons choices , let connector generate right style based on channel capabilities autotext show choices text. prompt decides if should generate text inline or perline based on number of choices. inline show choices o...

android - Navigation Drawer Item ByDefault selected not on click andorid -

i new android, using navigation drawer displaying item list. i faced issues, when come navigation activity, list name restaurant displayed. restaurant item included in drawer item similar other one. first time when come navigation activity, want highlight restaurant item. how can it? kindly tell me. this simple 1 line code: navigationview.getmenu().getitem(0).setchecked(true); and can select(highlight) item calling onnavigationitemselected(navigationview.getmenu().getitem(0)); and call , item index solution can refer link.. solve problem. navigation drawer: how set selected item @ startup? if not copy code can tell how use code.

eclipse - WizardNewFileCreationPage order -

i'm creating export wizard, including possibility user choose format of export , choose location of export wizardnewfilecreationpage. to so, i've created 3 pages, 1 extending wizardpage radio set next page call, , 2 others pages pending format , extending wizardnewfilecreationpage. it's working perfectly, problem concerns "finish" button, requires clickable export format fulfilled if overrided function ispagecomplete limit page validation function validatepage. it looks function validatepage doesn't valid it's own control control implemented class wizardnewfilecreationpage in wizard. am going wrong somewhere , know solution ? regards, waldo the wizarddialog showing dialog drives button enablement. @ various points calls updatebuttons method. in turn calls wizard canfinish method set finish button state. the default canfinish call wizardpage ispagecomplete method every page pages not active. for wizardnewfilecreationpage ...

asp.net mvc - Ajax serialize with extra data MVC -

i use webgid display records have user. load webgrid in partilal view after user clicks on ajax actionlink. @ajax.actionlink(" ", "adduserelements", "users", new { username = item.username }, new ajaxoptions() { updatetargetid = "add_research"}, new { @class = "glyphicon glyphicon-link" }) in webgrid have delete action. when click delete modal appears ask verification. click on yes , record being deleted webgrid in partial view doesn't being refreshed. update partial view use in ajax code $("#add_research").load('/users/adduserelements'); i tried pass username serialize controller no lack my ajax code $(function () { $.ajaxsetup({ cache: false }); $("a[data-modal]").on("click", function (e) { $('#mymodalcontent').load(this.href, function () { $('#mymodal').modal({ keyboard: true }, 'show'); ...

stl - Does set<pair<long long,long long> > does not supports members first an second? -

#include <bits/stdc++.h> using namespace std; #define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define ll long long int #define pb push_back #define mp make_pair #define pii pair<int,int> #define pll pair<ll,ll> #define pis pair< int,string> #define test int t;cin>>t;while(t--) #define ff first // error: 'std::set<std::pair<long long int, long long int> >::iterator' has no member named 'first' #define ss second // error: 'std::set<std::pair<long long int, long long int> >::iterator' has no member named 'second' #define inf 1000000000 #define input(a,n) for(i=1;i<=n;i++)cin>>a[i]; #define output(a,n) for(i=1;i<=n;i++)cout<<a[i]<<" "; vector< vector<ll> > v(3002, vector<ll>(3002,-1)); set< pair<ll, ll> > se; set< pair<ll, ll> >::iterator it; int vis[3002]={0}; void exmin(ll a) { ll x,des,val,min=inf...

android - how to draw capital Letters and fill that alphabets by finger using Canvas? -

Image
i working on app in have draw letters , want draw line finger. when letter fill open dialog box shows completed latter "a" as shown below picture. for example have letters given in picture: but want , if know concept me...!!! you can check solution in github sample

tokumx - Locked outside mongodb replica set -

i have mongodb replica-set of 3 members (version 2.4) in administrator user 'admin' db not have 'useradminanydatabase' role. this role required managing users on databases. the roles have are: [ "readwriteanydatabase", "dbadminanydatabase", "clusteradmin" ] i tried updating roles myself or creating new user, have no permission access db.system.users in admin db. i tried setting noauth=true did not help. when removing keyfile well, db not able sync other members (obviously) , got stuck in recovery state. i found similar question refers stand alone db (no replica set) doesn't in case. what best way add role while having minimal system downtime? i use mongodump , mongorestore backup data rebuild node right permissions , restore data. however approach should work : if have locked out need following: stop mongodb instance remove --auth and/or --keyfile options mongodb config disable authent...