Posts

css - if you know an image's dimensions, how do you scale it without a reflow in a fluid container -

i know dimensions of image, it's located in fluid container (the red area, resize window width). want avoid reflows, meaning don't want size of red area ever change. http://codepen.io/anon/pen/afmfh how can setup html/css no reflow occurs? i think may looking overflow: hidden on div. down side if expand image won't fit in div. div { width: 50%; background-color: red; overflow:hidden; }

debugging - Reference - What does this error mean in PHP? -

what this? this number of answers warnings, errors , notices might encounter while programming php , have no clue how fix. community wiki, invited participate in adding , maintaining list. why this? questions "headers sent" or "calling member of non-object" pop on stack overflow. root cause of questions same. answers questions typically repeat them , show op line change in his/her particular case. these answers not add value site because apply op's particular code. other users having same error can not read solution out of because localized. sad, because once understood root cause, fixing error trivial. hence, list tries explain solution in general way apply. what should here? if question has been marked duplicate of this, please find error message below , apply fix code. answers contain further links investigate in case shouldn't clear general answer alone. if want contribute, please add "favorite" error message, warning or notic...

c# - HttpPostedFileBase Stream Upload to AWS SDK Bucket has no Data -

i'm testing how upload aws using sdk sample .txt file web app. file uploads bucket, downloaded file bucket empty notepad document without text original uploaded file. i'm new working streams, i'm not sure wrong here. see why data wouldn't sent in transfer request? in advance! using (var client = new amazons3client(amazon.regionendpoint.uswest1)) { //save file bucket using (filestream txtfilestream = (filestream)uploadedhttpfilebase.inputstream) { try { transferutility filetransferutility = new transferutility(); filetransferutility.upload(txtfilestream, bucketlocation, uploadedhttpfilebase.filename); } catch (exception e) { e.message.tostring(); } } } edit: both transferutility , putobjectrequest/putobjectresponse/amazons3client.putobject saved blank text file. then, after having trouble instantiating new filestream, memorystream used after ...

c# - System.IO.File is a type not a namespace -

im tring create file using system.io.file namespace howeever im using on mvc witch im new , error when publish proyect "a using namespace directive can applied namespaces; 'system.io.file' type not namespace" this using statement: using system; using system.reflection; using system.data; using system.collections.generic; using system.linq; using system.web; using system.collections.generic; using system.linq; using system.web; using system.web.mvc; using newtonsoft.json; using system.collections; using system.componentmodel; using system.data; using system.io; using system.io.file; using system.text; using (var reader = system.io.file.createtext(@"c:\inetpub\wwwroot\procedimiento.txt")) { // starting outer json array reader.writeline("["); (var rowindex = 0; rowindex < mytable.rows.count; rowindex++) { var row = mytable.rows[rowindex]; ...

c++ - Creating a plugin for Sublime Text 3 in a language other than Python -

i want create plugin sublime text 3 in language, say, in c++ or c or other compiled language. possible? preferably without python code or libraries @ except ones that's installed sublime text3. if not, there workaround? thing here want plugin compiled language. i'm aware python ".pyc" files that's not i'm looking for. no, it's impossible make sublime text plugin absolutely 0 python code. however, can call binary application python plugin , put of logic in there. for example, sublimelinter part of work in python, calls out binaries such flake8 , ruby -wc actual linting of file.

java - Accessing JWT nested claims with jose4j -

i having trouble accessing nested claims jwt using jose4j. have jwt claim set looks this: { "iss": "awesome.issuer", "iat": 1300819370, "exp": 1300819380, "clm": "string claim", "sub": "batman", "context": { "username": "mpdavis", "firstname": "michael", "lastname": "davis } } i running issues when try access , of nested claims inside context claim. can access top level claims getclaimvalue . private string qsh; qsh = jwtclaims.getclaimvalue("qsh", string.class); it seems have 2 options if want nested claim. the first option find way return context claim map<string,object> , pull each claim out of object. other option use flattenclaims flatten of claims map<string,list<object>> , grab first object off of map nested claims. neither 1 of thes...

How to get active window and child's title on remote pc using vb.net -

i'm developing winform application can retrieve names of running excel document. can retrieve locally can't figure out how can retrieve remote pc. the way did on local pc searching excel.exe process there i'll find active window , child of it. i wondering if there's way can title of active window , child's on remote pc. i using code below find process local , remote. w = getobject("winmgmts:{impersonationlevel=impersonate}\\" & pc & "\root\cimv2") processq = "select * win32_process name = 'excel.exe'" i've search internet , couldn't find method so. please :( ps. don't know tags should add question, sorry.