Posts

http - Jmeter close connection before my test finish -

Image
i use jmeter http sampler test sequence of http requests , choosed "use keepalive". few threads jmeter closed connection tcp fin before requests send out. as picture shown, 172.19.0.101 jmeter,172.19.0.111 server. rest of requests can send in new connection , out of session. it can of 2 reasons: first reason - timeout whether timeout reached (default value 60 seconds, , configurable. if not configured, uses connectiontimeout parameter value in tomcat server). the default connection timeout of apache httpd 1.3 , 2.0 little 15 seconds , 5 seconds apache httpd 2.2 , above i observed request got response after 10 seconds (15 -> 29 seconds) before sending fin signal terminate connection. references: https://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#p-timeout https://en.wikipedia.org/wiki/http_persistent_connection https://tomcat.apache.org/tomcat-7.0-doc/config/http.html second reason - 'max' parameter may re...

csv - powershell - empty list of group's members -

i'm trying export csv file list (or table doesn't matter) members of group . after many searches , tried : get-adgroupmember -identity **genericgroupname** -recursive | select name | export-csv output.csv -notypeinformation i tried change things in command- remove -recursive . i tried find problem in command , remove -export-csv output.csv -notypeinformation but showed nothing (in nothing mean - show command , nothing) my problem got output.csv , empty. if matters : genericgroupname : $group = (get-aduser -identity username -properties memberof | select memberof).memberof and genericgroupname --> $group[0] this command works well. i fixed problem (accidentally) closing powershell ise , open it. still don't know problem somehow fixed closing powershell

javascript - Is selected option selected if attribute is in DOM or not -

Image
to create dual listbox bootstraps needed remove default gray color of selected option. way remove gray color change selected state of element false. no other trick worked remove gray background color of selected option. now if so, attribute selected still remains in dom seems false. thought if have element like: <option value="1" selected>1: lorem ipsum</option> if selected there means option selected true same as: <option value="1" selected="selected">1: lorem ipsum</option> or <option value="1" selected="true">1: lorem ipsum</option> but seems not so. shed light on me? i've created fiddle https://jsfiddle.net/npm6tn0m/ trying demonstrate scenario. css option[selected] { background-color: orange; } only works selected option set false still has selected attribute in dom. cause may vary across different browsers here image see in osx chrome browser: all code i...

ios - FacebookSDK - Loginscreen has wrong layout size -

Image
i using cocos2d-x (c++) & soomlaprofile game. i want login facebook via facebooksdk. if click on fb-login-button popup-window facebook appears, layout wrong.

java - Non-static variable cannot be referenced from a static context -

i've written test code: class myprogram { int count = 0; public static void main(string[] args) { system.out.println(count); } } but gives following error: main.java:6: error: non-static variable count cannot referenced static context system.out.println(count); ^ how methods recognize class variables? you must understand difference between class , instance of class. if see car on street, know it's car if can't see model or type. because compare see class "car". class contains similar cars. think of template or idea. at same time, car see instance of class "car" since has properties expect: there driving it, has engine, wheels. so class says "all cars have color" , instance says "this specific car red". in oo world, define class , inside class, define field of type color . when class instantiated (when create specific instance), memory reserved color...

Python xml ElementTree findall returns empty result -

i parse following xml file using python xml elementtree api. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <foos> <foo_table> <!-- bar --> <fooelem> <fname>bbbb</fname> <group>somegroup</group> <module>some module</module> </fooelem> <fooelem> <fname>aaaa</fname> <group>other group</group> <module>other module</module> </fooelem> <!-- bar --> </foo_table> </foos> in example code try find elements under /foos/foo_table/fooelem/fname findall doesn't find when running code. import xml.etree.celementtree et tree = et.elementtree(file="min.xml") in tree.findall("./foos/foo_table/fooelem/fname"): print root = tree.getroot() in root.findall("./foos/foo_table/fooelem/fname"): print i not experienced elementtree api, i've used example under https://...

json - Is a batch operation to save a set of navigation properties possible? -

for example: company has employees. posting odata.svc/company(1)/employees/$ref, can save company-employee relation. can save multiple company-employee links way using odata.svc/company(1)/employees/$ref/$batch ? tried didnt work. if incorrect way, there other alternative ? odata support batching, i'm not sure version of odata using here documentation v3 (v4 same) http://www.odata.org/documentation/odata-version-3-0/batch-processing/ in example batch url, adding $batch end of url using, instead have post odata.svc/$batch request contains details of of operations want perform. example, here 1 of request taken link: post /service/$batch http/1.1 host: host content-type: multipart/mixed; boundary=batch_36522ad7-fc75-4b56-8c71-56071383e77b --batch_36522ad7-fc75-4b56-8c71-56071383e77b content-type: multipart/mixed; boundary=changeset_77162fcd-b8da-41ac-a9f8-9357efbbd621 content-length: ### --changeset_77162fcd-b8da-41ac-a9f8-9357efbbd621 ...