Posts

c++ - Visual Studio 2013 Graphics Diagnostics throws immediate access violation in dxgi.dll -

Image
i wanting use visual studio's graphics diagnostics debug shader code, when try "start diagnostics", immediate access violation in dxgi.dll. access violation appears occur before program's main function entered. tried adding sleep inside winmain function attach separate debugger, code never hit. opened 1 of directx sdk sample programs same installation of vs2013 , graphics diagnostics worked fine. tried using graphics diagnostics on program on 2 separate pcs , both threw same access violation. i suspect maybe has project configuration? seems failing establish connection between graphics diagnostics debugger , program before entry point of program called. any ideas appreciated!

java - S3 Presigned Url Callback -

is there way know if has uploaded generated public presigned url of s3? callback trigger servlet. for example: i created presigned url docs amazons3 s3client = new amazons3client(new profilecredentialsprovider()); java.util.date expiration = new java.util.date(); long msec = expiration.gettime(); msec += 1000 * 60 * 60; // add 1 hour. expiration.settime(msec); generatepresignedurlrequest generatepresignedurlrequest = new generatepresignedurlrequest(bucketname, objectkey); generatepresignedurlrequest.setmethod(httpmethod.put); generatepresignedurlrequest.setexpiration(expiration); url url = s3client.generatepresignedurl(generatepresignedurlrequest); // use pre-signed url upload object. then, give url , if upload url , http://example.com/upload invoked data uploaded file. you can use s3 event notifications generate notification. @ objectcreated event. notifications can filtered s3 prefix. (there samples in aws documentation on linked page.)

html - Internet Explorer 11 "n" char based width doesn't fit "n" characters -

i'm building app requires char ("ch") width components. in ie11 doesn't seems working. for example: <input style="width: 5ch; padding: 0; margin: 0; font-family: monospace" maxlength="5"> the width don't fit 5 characters. knows why? couldn't find answer anywhere. plnkr example here edited: i'm using monospace family fonts unlike question better use size attribute : the size attribute gives number of characters that, in visual rendering, user agent allow user see while editing element's value . input { padding: 0; margin: 0; font-family: monospace; } <input size="5" maxlength="5">

angularjs - Angular search not filtering properly -

i have list of json data need able filter typing name in. results should display listings have name in result. hiding other names, , still showing of other listings. how can set filter when type in actors name, shows movie listings actor listed in? this markup used display listings, angular filter code: <div class="row" ng-repeat="movies in results | filter:genre"> <div class="col-lg-12"> <div class="well well-sm"> <div class="row"> <div class="col-xs-3 col-md-3 text-center"> <img src="" alt="poster" class="img-rounded img-responsive" /> </div> <div class="col-xs-9 col-md-9 section-box"> <h2> {{movies.name}} </h2> <div ...

html - Two divs side by side, the right one's width decided by its content, the left one takes up all available space? -

in right div have image , link. images might load have huge variety of aspect ratios (from 0.38 6.83) , have no control on source images need have proper aspect ratio. that, i've given max-width image thinner width. i'm trying first div ( .owner-info-container ) take left on space in parent second div ( .primary-image-container ) doesn't use. if image doesn't take entire space allowed max-width , i'd left container not leave white space. i've messed floating second div right if first div's content gets wide won't break new line, it'll push second div down. html <div class="owner-address col-xs-12"> <div class="owner-info-container"> <h3>address</h3><br/> <span class="owner-info"> <span class="header">owner name</span><br/> <span>name goes here</span> </span> </div> <div class="primary...

C#: Trying to aggregate a dictionary with a tuple<datetime,int> key using the datetime and one of the associated values -

i've spent few hours trying piece having hard time finding example. have dictionary tuple key , set of values class. want able aggregate (by averaging) value sets datetime , stored value aggregate indicator. i struggling how aggregate based on single part of tuple key , stored value. if in sql like: select datetime, [aggregate value], avg(myaggregatedfields) dictionary group datetime, [aggregate value] but tuple tripping me on one. appreciated, if pointing toward tutorial. reason used tuple needed have 2 values ensure uniqueness. maybe this: class myclass { public datetime time { get; set; } public int otherval { get; set; } public double aggfield { get; set; } } list<myclass> lst = new list<myclass>(); lst.add(new myclass { time = datetime.today, otherval = 4, aggfield = 1}); lst.add(new myclass { time = datetime.today, otherval = 4, aggfield = 2 }); lst.add(new myclass { ti...

networking - Does my switch update its router table automatically -

i have hp procurve switch, added 2 new machines network, had assign ip addresses manually. using these 2 machines can ping current machine , other machines on network, if try ping 2 machines current machine (or others on network) not go through. thoughts router table has not updated that's why can't ping them machines have been on router. (not sure, not enough knowledge yet) at least think so. question router table update it's information automatically? assuming hp procurve acting switch, routing table should not problem. switch not route ips, switch concerned routing packets via layer-2 addresses (mac addresses). switch determined physical port connected device mac address, , when gets packet addressed mac address, sends packet out port. mapping on port destination mac address stored in cam table inside switch. different routing table maps ip address ranges physical interfaces. what happening arp not resolving. arp binds layer 3 ips layer 2 macs in local...