Posts

python - Arelle Xbrl validation - unable to start web service - socket error 10013 -

Image
i'm using arelle project implement validation of xbrl files. http://arelle.org/documentation/api-web-services/ when try start webserver can call code receive following error. been looking how fix , points disabling antivirus. got disabled , still error. arelle python project this should start webservice can reach on www.localhost:8082/rest/xbrl appearently issue previous release of project. i installed latest version 2013-07-25 , no longer had socket error

BGI Error in opening C++ program with DOSBox -

i have program in c++ uses graphic.h want open dos-box when try error dos-box: bgi error: graphics not initialized (use 'initgraph') have used initgraph in program in way: gd=detect; initgraph(&gd,&gm,""); check initgraph(), should like initgraph(&gd,&gm,"c:\tc\bgi"); if doesnot work try giving slash like: initgraph(&gd,&gm,"c:\\tc\\bgi"); if again doesnot not work check environmental variables also. you may refer existing post in bgi error, how resolve it?

bash - unix: renaming batch of files - how do I add numbers from 1 to 4000 to the filenames of 4000 files? -

i have 4000 files, , need add nrs 1 4000 @ beginning of filenames. for example: file_a.cel file_c.cel file_g.cel file_x.cel ... other_file.cel should become: 1_file_a.cel 2_file_c.cel 3_file_g.cel 4_file_x.cel ... 4000_other_file.cel it important underscore after number gets added. filenames totally different (there no system filenames), , doesn't matter in order numbered. there easy way using bash? many in advance! using a for loop , mv should give desired effect. it's not particularly interesting solution, it's simple. count=1 file in ./*; mv "$file" "${count}_$file" let count++ done

android - cast a class to an activity -

i'm trying create listview wich enable open 2 other activities created before. i've got problem intent. i'm quite sure understand lactivity activity wich exists. explain me why? thank you!! public listmenu extends activity { private listview malistview; @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.list); // create list of elements list<elementofconstruction> liste = new arraylist<elementofconstruction>(); string columns = null; class<?> calculcolumns = null; elementofconstruction columns = new elementofconstruction(columns, 0, r.drawable.columns, calculcolumns, 100); liste.add(columns); string beam1 = null; class<?> calculbeam = null; elementofconstruction beam1 = new elementofconstruction(beam1, 0, r.drawable.beam1, calculbeam, 200); //récupération de la listview créée dans le fichier main.xml malistview = (...

apache - Moving a file from a remote server using CGI script -

this need i have local server hosting cgi shell scripts. have file in remote server. want cgi script copy file remote server local server. this tried to avoid entering password every time, created key file using ssh-keygen command , copied public key file remote server /root/.ssh/authorised_keys file , worked. whenever execute scp user@remotehost:/root/ . intended file copied local server without manual authentication , works perfect. now, want same thing apache user triggeres cgi script. used below command generate key file apache user sudo -u _apache ssh-keygen -t rsa and system response enter file in save key (/library/webserver/.ssh/id_rsa) normally .ssh keys stored in location /root/.ssh , why system command defaulting /library/webserver ? can have 2 .ssh files? is there other solution trying? thank you every user in system should have his/her own ~/.ssh directory. when ssh runs, .ssh directory in user's home directory. can check user's ...

selenium webdriver - Where the assert message will be displayed -

i tried code package base; import org.testng.assert; import org.testng.annotations.test; public class assertcheck { @test public void check() { assert.asserttrue(true, "testing string true"); } } and code succeeds message "testing string true" not displayed. checked in console output , in testng results. just information, message parameter executed if assert condition false. message appear in console. but in case assert condition passed, message part not executed, not see message in case. if want see message in both cases, should use try-catch statement like try{ assert.asserttrue(true, "testing string true"); //print message case assert pass and/or perform other event }catch (exception e){ //print message case assert fails and/or perform other event loggerobj.debug("assert failed "+e.getmessage()); }

apache - How to route specific URL segments to separate web root directories? -

my yii project has following structure: webapp ----frontend --------www ------------index.php ----backend --------www ------------index.php ----api --------www ------------index.php https://github.com/tonydspaniard/yiinitializr-advanced apache 2.2 each www directory has own .htaccess file. example "webapp/frontend/www/.htaccess": options +followsymlinks rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/].*)$ /index.php/$1 [l] for separate parts of application use subdomains "api.webapp.com","admin.webapp.com" (symlinks in public_html folder): webapp.com -> webapp/frontend/www api.webapp.com -> webapp/api/www admin.webapp.com -> webapp/backend/www but have problems cross domain ajax requests api, , want this: http://webapp.com -> webapp/frontend/www/index.php http://webapp.com/api/ -> webapp/api/www/index.php ...