Posts

c# - AdDuplex interstital intitialization fails with unspecified error -

i developing game using monogame , c# windows 10 uwp. having problem when try use interstitial ads in game. make initialization call in app.xaml.cs : adduplex.adduplexclient.initialize("application-id-here"); the debugger not break on call itself, rather breaks after onlaunched event complete without specifying exception. i using latest version of adduplex sdk. tried using both vs2015 extension , nuget package. same result. know not monogame, because tried similar call in normal xaml app , got same result. is there doing wrong? i never able resolve issue, reformatted computer , able incorporate adduplex app. problem development environment , reinstalling components solved problem.

Python parsing to lower case and removing punctuation not functioning properly -

import string remove = dict.fromkeys(map(ord, '\n ' + string.punctuation)) open('data10.txt', 'r') f: line in f: word in line.split(): w = f.read().translate(remove) print(word.lower()) i have code here , reason, translate(remove) leaving amount of punctuation in parsed file. why reading whole file within loop? try this: import string remove = dict.fromkeys(map(ord, '\n ' + string.punctuation)) open('data10.txt', 'r') f: line in f: word in line.split(): word = word.translate(remove) print(word.lower()) this print our lower cased , stripped words, 1 per line. not sure if that's want.

javascript - ng-if in ng-repeat recreating elements on click events -

i wanted replace anchor tag img when user clicked on it. sample code like <div ng-repeat="postpart in currentpost.parts "> <div ng-if = "!postpart.isclicked"> <img ng-src="{{imgurl}}" ng-click="iclicked(postpart)"/> </div> <div ng-if = "postpart.isclicked"> <a ng-href="{{postpart.description}}" ng-init="init()"></a> </div> </div> iclicked function make isclicked true. it worked 1 part. when there 2 parts showing 2 images. when click on first replaces 1 anchor element. but in case of 2nd image click replaces 2 anchor tags. how can able make it? there solution replace image element anchor in ng-repeat? may you. var app = angular.module("app",[]); app.controller("ctrl" , function($scope){ $scope.parts = [ {"description": "this test","isclick...

Issue in Sync with soft delete enabled in native iOS (Azure Mobile services) -

i using azure mobile services on ios platform , syncing service ( soft delete enabled), when delete records using device, _delete flag set true records in service database, when sync ios device, deleted records still present there . i have seen other questions on so, did not solve problem. any appreciated. edit : using enablesoftdelete:true domainmanager = new entitydomainmanager<tablename>(context, request, services, enablesoftdelete: true); a new column _deleted setting true after deleting device. to enable soft delete on .net backend, need pass parameter entitydomainmanager in controller initializemethod: domainmanager = new entitydomainmanager<todoitem>(context, request, services, enablesoftdelete: true); for more information, see using soft delete in mobile services .

css - How to make my live site responsive in typo3 templovoila 6.2 -

i have live website in server in typo3 templavoila version 6.2. wanna make responsive. how implement bootstrap in typo3? please me in concern. in advance!! funny question answer is: can find free template requirement google of typo3 cms read documentation of downloaded theme install if still facing problem simple :) hire me or developer.

httpresponse - How to detect http status code in angular 2 -

Image
i have loadsize() func in angular2 project , calls gettotalnumbercampaigns() in service , return observable. , subscribe observable result. this loadsize() loadsize() { this.campaignsservice.gettotalnumbercampaigns().subscribe(value => {//async call this.campaignsize = value; }, (err)=> {} ); } let's there error gettotalnumbercampaigns() , fire err=>{} in subscribe. question how know httpreponse status code is can direct user take different action (if connection failed(502), user should refresh. if access_token expiry(500), page should jump login page) this gettotalnumbercampaigns in service class gettotalnumbercampaigns(): observable<number> { return this.http.get(`${this.apiurl}/count`, { headers: this.headers }) .map<number>(res => <number>res.json()) } the returned error corresponds response itself, can use status attribute status code: loadsize() { this.campaignsservice.gettotal...

c# - File download and save locally windows phone -

i m saving image local folder windows phone application var localfolder = applicationdata.current.localfolder var photofile = localfolder.createfileasync(("mani"), creationcollisionoption.replaceexisting); i m saving file without extension while save locally security reason , avoid other apps view. when search google got api launch default apps file windows.system.launcher.launchfileasync(photofile); but local file dont have extension can't use api default application launch please guide me alternative solution this thanks,