Posts

xaml - WPF Could not load file or assembly or one of it's dependencies -

Image
i error @ design-time. at runtime works fine. there absolutely nothing wrong i-synergy.resources class library. i've searched error intensively no solution. (already tried: reset settings vs clear , rebuild solution delete obj , bin folders checked references , dependencies converted pcl regular class library ) as know, there lot of questions regarding notorious "could not load file or assembly" error many times creeping our xaml designer. after reading provided solutions, , sadly non of them working me, started investigate annoying issue. spend 4 days trying figure out. luckily today found answer problem. in solution design created several projects under wpf application called i-synergy. among others added assemblies named i-synergy.controls , i-synergy.resources (where put resource strings, static classes , images). last assembly seems caused error. don't have resouces file (or other local reference inside wpf application) somehow g...

android - Get path from gallery without failing delivering Result -

my application works fine on devices. unfortunately others reported following bug failure delivering result dont know how solve so use following code: @override public void onactivityresult(int requestcode, int resultcode, intent data) { if (requestcode == 1 && data!=null) { if (resultcode == result_ok) { uri uri = data.getdata(); string s = getpath(uri); //null string on devices if(s!=null){ file f = new file(s); } else{ //???????? } if(resultcode== result_canceled){ } } } and 1 method called getpath: public string getpath(uri uri) { // safety built in if( uri == null ) { return null; } // try retrieve image media store ...

Filter data on click function in AngularJS -

i have data on bikes in html page. have filter data via on click function. have used filter in text box area, want same functionality via on click function. so how can bind filter click function? http://jsfiddle.net/3g7kd/114/ <div ng-app='app' class="filters_ct"> <ul class="nav" ng-controller="selectfilter"> <li ng-repeat="filter in filters" ng-click="select($index)" ng-class="{sel: $index == selected}"> <span class="filters_ct_status"></span> {{filter.name}} <ul class="subul" ng-if=filter.lists.length> <li ng-repeat="list in filter.lists" ng-click=" $event.stoppropagation()"> <input type="checkbox"> {{list}} </li> </ul> </li> </ul> <input type="text...

c++ - visual studio 2013 command line parameter compile for xp -

i'm developing application on visual studio 2013 works fine on windows vista+ need make work on windows xp. so compiled using visual studio 2013 windows xp (v120_xp) toolset. , worked fine. got errors indicating library weren't compatible xp ( libcurl). i suppose need compile same toolset can't find anywhere parameter need set uses v12_xp toolset. i compiled lib using : nmake /f makefile.vc mode=static debug=yes and nmake /f makefile.vc mode=static debug=no thanks in advance :)

ios - Change view in a page view controller when button is pressed in one of the controllers -

Image
i have uipageviewcontroller connected 3 view controllers and 3 classes each uiviewcontroller when "take photo" button pushed, third view should slide view. when "choose library" pushed first view controller should slide view. i have 3 classes controlling each uiviewcontroller , 1 class controls pages in storyboard. here pageviewcontroller.m @implementation pageviewcontroller { nsarray *myviewcontrollers; } - (void)viewdidload { [super viewdidload]; self.delegate = self; self.datasource = self; uiviewcontroller *p1 = [self.storyboard instantiateviewcontrollerwithidentifier:@"one"]; uiviewcontroller *p2 = [self.storyboard instantiateviewcontrollerwithidentifier:@"two"]; uiviewcontroller *p3 = [self.storyboard instantiateviewcontrollerwithidentifier:@"three"]; myviewcontrollers = @[p1, p2, p3]; pagetwoviewcontroller *ptvc = [[pagetwoviewcontroller alloc] init]; ptvc.publicviewcontrollers = myvi...

javascript - Aurelia ValueConverter fromView confusion with multi-select -

i'm trying use , understand aurelia valueconverter in context of multi-select form. thought straight forward, has turned out challenge me. i have form create new deal has multiple categories assigned via multi-select input field. i've bound output form new_deal.categorizations (in database deals have categories through categorizations). right on create, through 'brute force' method, i'm converting each category id {category_id: id} object before posting api. example logging post output: create(){ var categorizations = this.new_deal.categorizations; this.new_deal.categorizations = categorizations.map(function (e) { return {category_id: e} }); logger.debug ('post: ', json.stringify(this.new_deal)); } example output: post: {"name":"new deal","categorizations":[{"category_id":"1"},{"category_id":"2"}]} but think better accomplished throu...

javascript - MeteorJS: Display Posts with locations within x miles of current location -

i working on application display posts of people within amount of distance of location. whenever post created value of location created stored with: {"lat":39.7230949,"lng":-104.83521619999999}. lat , longitude of current location when post made. this function, geolocation.latlng();, prints out object lat , lng of current device. i trying figure out how have page lists post, show post fall within radius of devices current location. here current function lists post database. template.yakresults.searchresults = function () { var keyword = session.get("search-query"); var query = new regexp( keyword, 'i' ); var results = yaks.find( { $or: [{'yak': query}] }, {sort: {score: -1}}); return {results: results}; } what have results 10 mile radius of devices current long/lat can found function mentioned above. i imagine use if statement of sort or maybe filer when finding posts in yaks collection? does 1 have idea...