Posts

Selenium + Nose - N-1 Tests runs headless -

having strangeness go on. from selenium import webdriver selenium.webdriver.common.keys import keys selenium.common.exceptions import timeoutexception selenium.webdriver.support.ui import webdriverwait selenium.webdriver.support import expected_conditions ec selenium.webdriver.common.by import selenium.webdriver.common.action_chains import actionchains driver = none class testthreshold: def __init__(self): self.driver = webdriver.chrome() def waitforid(self,type,id): try: element_present = ec.presence_of_element_located((type,id)) webdriverwait(self.driver, 10).until(element_present) except timeoutexception: print "timed out waiting page load" def setup(self): # code uses driver.login login def teardown(self): self.driver.close(); def test_login(self): # test assertion def test_feature(self): # test assertion def test_admin(self): # test...

coordinates - Trying to isolate a GPS conversion -

g'day i came across application converting gps co-ords else. tryng figure out format is. enter standard -26.61722 152.96033 and stores in database -15732970 91615170 any ideas second pair are? cheers. this going impossible answer, because there literally hundreds of different standards storing point data. have different units of measurement , have differing levels of accuracy. take account curvature of object, such earth, , others distances point in 2 dimensional plane. this of course assuming data stored different standard , not custom encoding of numbers provided. perhaps name of application , vendor might help. wiki

java - Selenium with Chrome -

i'm fresher of selenium automation testing, have 0 knowledge in selenium, tried selenium chrome browser using eclipse i'm facing following error please me . exception in thread "main" java.lang.noclassdeffounderror: org/openqa/selenium/remote/capabilities @ launchapplication.main(launchapplication.java:13) caused by: java.lang.classnotfoundexception: org.openqa.selenium.remote.capabilities @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 1 more this common error , happens when class available while compiling , cannot found jvm in runtime, may try these options: 1) class not available in java classpath. 2) might running program using jar command , class not defined in manifest file's classpath attribute. 3) start-up script overriding classpath environment variable. ...

gitlab - Git workflow - how to sanely sync forks without rewritng history? -

i working in large company , use git track changes in code. current workflow like: fork repository "gitrepoa" , name "gitrepob". introduce changes. ' git clone <gitrepob> git remote add upstream <gitrepoa> git checkout -b new-feature vim <text-file> git add <text-file> git commit -m "commit message" git push -u origin new-feature create merge request @ gitlab. the commit introduced me isn't perfect, have improve it. in meantime, other developers modify codebase , fork has synchronized. . git checkout master git fetch upstream git pull --rebase upstream master now local master branch date, don't know how bring new-feature branch state too. performing pull rebase changes ids commits have pushed (they aren't merged yet), occur multiple times in end. how should use git not pollute history of gitrepoa? wiki

postgresql - Create unique identifier for more persons that are the same (SQL) -

i have 2 tables: |-------------| |-------------| | person | | alias | |-------------| |-------------| | person_id | | person_id_1 | | person_name | | person_id_2 | |-------------| |-------------| the alias table tells me if 2 persons in fact same person. if case, want have unique id these persons. e. g.: |-------------------------| | person | |-----------|-------------| | person_id | person_name | |-----------|-------------| | 1 | michail | |-----------|-------------| | 2 | michail | |-----------|-------------| | 3 | petja | |-----------|-------------| |---------------------------| | alias | |-------------|-------------| | person_id_1 | person_id_2 | |-------------|-------------| | 1 | 2 | |-------------|-------------| now want create view, query, you name it , lists me person_ids , unique identifier these ids. |-----------------------| | unique ...

objective c - OSX: Get Session ID of PID -

is there way read session id process running in using pid? i can current session id process using std::string get_current_console_user() { cfstringref result; scdynamicstorecontext context; scdynamicstoreref store; context = {0, null, null, null, null}; store = scdynamicstorecreate(null, cfstr("com.apple.dts.consoleuser"), nil, &context); result = scdynamicstorecopyconsoleuser(store, null, null); if (result != null && !cfequal(result, cfstr("loginwindow"))) { return std::string([(__bridge nsstring *)result utf8string]); } return ""; } uint32_t get_current_login_session() { osstatus error; securitysessionid session_id; sessionattributebits session_info; if (get_current_console_user().empty()) { return 0; } error = sessiongetinfo(callersecuritysession, &session_id, &session_info); return (uint32_t)session_id; } is there way other processe...

symfony - 1 application with 2 login security -

i have symfony 3 application. there 1 part /api , 1 /back (administration) the /api use lexikjwtauthentication , /back fosuserbundle. with actual security, have error when go /back. a token not found in tokenstorage. i think, app try read bearer token. how can use fosuserbundle security routes /back ? my security.yml security: encoders: fos\userbundle\model\userinterface: bcrypt ... providers: fos_userbundle: id: fos_user.user_provider.username_email ... role_hierarchy: role_admin: role_user role_super_admin: role_admin providers: fos_userbundle: id: fos_user.user_provider.username_email firewalls: # disables authentication assets , profiler, adapt according needs dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/api/login stateless: true anonymous: true ...