Posts

load testing - use csv parameters in jmeter httprequest path -

load testing - use csv parameters in jmeter httprequest path - i want utilize csv info set config modify path of http request. my csv file: 120,120 121,121 my csv variable names: paraa, parab . my http request path: /my/path/with/?{paraa}/?{parab}/ . i tried , failed. is there anyway work around? seems incorrectly refer jmeter variables. try /my/path/with/${paraa}/${parab}/ instead, ${paraa}, ${parab} refer corresponding values extracted in csv info set config: jmeter load-testing

javascript - Getting Position in jQuery Animate -

javascript - Getting Position in jQuery Animate - i animating 1 image(i.e)scaling image like $('#img').animate({height:'300px','width':'20px'},2000); i need current height of image during animation. tried step property. printing many points unrelated animation. any idea there's step alternative in animate function allows callbacks during animation. in callback can request position , want it. http://jsfiddle.net/ayvue/ javascript jquery html css jquery-animate

command - Which would be better for the syntax for an array? -

command - Which would be better for the syntax for an array? - i making scripting language, need help on deciding syntax. having issues deciding 2 things. first, syntax calling parts in array. thinking 1 of 2 options, give me suggestions if want. let's have array in javascript represented as var people = [ ["joe",34], ["bill",29], ["steve",36] ]; the options are option 1 people[2][1] returns 36 alternative 2 people[2,1] returns 36 second, syntax calling function. thinking 1 of 2 options, give me suggestions if want. let's have function in javascript represented as function foo(bar,hi) { homecoming bar; } the options are option 1 same javascript example: function foo(bar,hi) { homecoming bar } alternative 2 same javascript, - separating each private variable it's own set of parentheses - no need state "function" in front end ...

c++ - Open source project that uses cmake -

c++ - Open source project that uses cmake - can allow me know open source c/c++ project uses cmake build code base? thanks. see success stories page of cmake project. notable projects (imo of course) kde , mysql. c++ c cmake

Online beer & drinks database / service API? -

Online beer & drinks database / service API? - is there well-kept database of beer & drinks accesible via api somewhere? (preferably uk) programmable web has matches in beer tag. database api service social

python - Search image for color. Return X, Y -

python - Search image for color. Return X, Y - i've been looking on way find specific color in image (screen capture), , homecoming the position of of color (x,y). i've had tries, not managed proper search. result should first pixel found color. i tought maybe pil help. tried this, problem returns every position, found color: fixed: def findcolor(r,g,b): image = imagegrab.grab() x in range(1, 400): y in range(1,400): px = image.getpixel((x, y)) if px[0] == r , px[1] == g , px[2] == b: return(x,y) and, need replace loops range, pictures width/height. return result @ first match, instead of continuing loop. python image colors find python-imaging-library

c++ - Structure memory layout In C -

c++ - Structure memory layout In C - struct fraction { int num; int denum; } pi; pi.num=22; pi.denum=7; ((fraction*)&(pi.denum))->num=12; cout << endl; cout << pi.denum <<endl; cout << pi.num <<endl; i can understand memory diagram till point have confusion is next code ((fraction*)&pi.denum)->denum=33; is there legal way 33 printed out ?? command value stored not in view of object? a struct fraction layed out in memory 2 consecutive ints . code looks @ look &pi.denum , address of sec integer: ----------------------- | int num | int denum | ----------------------- ^ ^ | | &pi &(pi.denum) but cast &pi.denum fraction * , seek access ((fraction*)&(pi.denum))->num . since num first fellow member of struct fraction , c standard guarantees address same struct itself. &(((fraction*)&(pi.denum))->num) == (fraction*)&(pi...