Posts

ios - iCloud: disable incremental backup on file -

in documents directory of app big binary file needs in backup (isexcludedfrombackup = false). works fine, icloud incremental backup , big binary file can change lot, i'd disable incremental backup on file (otherwise backup size grow fast). does know if possible? maybe can try follows: do { var url = url.init(fileurlwithpath: "") var resourcevalues = urlresourcevalues() resourcevalues.isexcludedfrombackup = true try url.setresourcevalues(resourcevalues) } catch { }

xamarin - How do I get the Mac Address for and Android Device using 6.0 or higher in c#? -

i have found few examples using java, having trouble constructing method c#. can please post straightforward c# example gets mac address of device, marshmallow (6.0). understand there other methods of obtaining unique id, not interested in having import components @ time. using xamarin visual studio 2015. i have these permissions active: access_wifi_state internet read_phone_state the codes have tried simple methods used below android version 6.0. appreciated. edit: i not believe duplicate requested c# version of code specifically unfortunately, you're out of luck. starting version 6.0, android restricts access mac address. if try query mac address of current device, you'll constant value of 02:00:00:00:00:00 you can still access mac addresses of nearby devices, stated in official android documentation : to access hardware identifiers of nearby external devices via bluetooth , wi-fi scans, app must have access_fine_location or access_coarse_locatio...

How do I submit a Visual Studio bug if the normal channels are not working? -

i using visual studio 2013. keeps crashing under circumstances, i'm trying submit bug report. i have tried help > feedback > report bug , after logging in @ connect.microsoft.com/visualstudio either has message saying not authorized submit feedback connection (whatever means), or page blank under top banner. in either case, can click "feedback" link on banner, takes me list of submitted items. list, there no direct way add item, instructions "after searching, option submit new feedback enabled." if search (which takes literally minutes), "submit feedback" button @ top of list. if click this, goes blank page saw before clicked "feedback" on banner. how supposed submit bug? how can report failure of bug reporting service? if having troubles submitting built in tools can go https://connect.microsoft.com/visualstudio , manually submit bug report there. using built in tools preferred because can record etl trace ,...

Is it possible to create a shortcut that opens windows cmd in specific folder? -

Image
is possible create desktop shortcut or task bar shortcut opens cmd window in specified directory on windows os? yes, possible , easy, without creating else shortcut: create shortcut of cmd.exe (command prompt) on (drag'n'drop icon desktop) edit properties , change "start location" (not sure of english name. me it's démarrer dans : sorry french edition) required directory

html - how to display images correctly on mobile devices? -

Image
the background image have 1920x1080p , displays correctly on desktop browsers not on mobile (not in portrait or landscape mode). anyway fix issue? need multiple images or there way automatically resize? .css file. #tf-home{ background: url(../images/odysseytitleimage.jpg); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; color: #cfcfcf; } #tf-home .overlay{ background: -moz-linear-gradient(top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.73) 17%, rgba(0,0,0,0.66) 35%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.4) 100%); /* ff3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.8)), color-stop(17%,rgba(0,0,0,0.73)), color-stop(35%,rgba(0,0,0,0.66)), color-stop(62%,rgba(0,0,0,0.55)), color-stop(100%,rgba(0,0,0,0.4))); /* chrome,safari4+ */ background: -webkit-linear-gradient(top, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0.73) 17%,rgba(0,0,0,0.66) 35%,rgba(0,0,0,0.5...

How can I scroll content horizontally with fullcalendar scheduler? -

using heavily customized version of scheduler, i'm getting reports users having trouble figuring out how scroll horizontally. imagine it's because scrollbar @ bottom of schedule , on mac os, it's potentially hidden if user has trackpad. my schedule functions similar this one minus vertical scroll. if you're on apple laptop , using trackpad it's won't see scrollbar @ all. if scroll bar visible, it's buried under page's fold. ideally, i'd have arrows near times users click left or right , view scroll left or right. i've been unable figure out way programmatically call $.animate({ scrollleft: ... }) on piece of scheduler , scroll both contents events and header times are. it looks can , set position of @ least timeline $( '.fc-time-area .fc-content table' ).offset() won't move contents of schedule itself. any idea how can move schedule content (events) , timeline in sync each other? bonus internet points if can tell me h...

entity framework - AutoMapper with EF6 not populating one of the mapped objects -

i have ef6 mvc app using code first generate models. trying create mapping using automapper between model , viewmodel representation of model. i don't have errors, resulting object missing details ptcredential object. missing ptcredential object nested within ptcredential. don't believe ignores causing this, can't pin down. have tried suggestions other posts on automapper, nothing has proven useful. could provide assistance on can use automapper in situation? here code how configuring , initializing mapper: var ptconnections = _db.ptconnections.include(p => p.ptconnectionclass).tolist(); mapper.initialize(cfg => { cfg.createmap<ptconnection, ptconnectionviewmodel>() .aftermap((s, d) => { foreach (var in d.ptcredentialassignments) i.ptconnection = d; }); cfg.createmap<ptcredentialassignment, ptcredentialassignmentviewmodel>() .formember(m => m.ptcredential, op...