Posts

c# - Convert string with XML to datatable, list or something more manageable? -

without having manually parse file, .net have convert string xml xmlelement , datatable , list or that's more manageable? this actual string. string stored in xmlnode object (this xmlnode.outerxml ), not know how convert can use: <ni> <nss>20150927</nss> <gp>addon</gp> <ns>counterblah1</ns> <ns>counterblah2</ns> <ns>countersales</ns> <ns>counterblah4</ns> <ns>counterblah5</ns> <ns>counterblah6</ns> <nv> <nad>style=1,rfu=1,id=132</nad> <r>0</r> <r>15</r> <r>8</r> <r>3</r> <r>2</r> <r>2</r> </nv> <nv> <nad>style=1,rfu=1,id=433</nad> <r>0</r> <r>15</r> <r>30</r> <r>3</r> ...

php - WP-CLI error in connecting to the database -

this common wp-cli error while using mamp. installed wp-cli, exported php version mamp using wp_cli_php variable recommended instructions. output of $ wp --info is: php binary: /applications/mamp/bin/php/php5.6.2/bin/php php version: 5.6.2 php.ini used: /applications/mamp/bin/php/php5.6.2/conf/php.ini wp-cli root dir: phar://wp-cli.phar wp-cli global config: wp-cli project config: wp-cli version: 0.20.1 i've followed along solutions this, i'm still getting timeout , error in connecting database. have mamp running while running wp-cli commands. ideas? after seeing comment here issues if-statements can have wp-cli when used in wp-config file, went , checked mine. config file using number of if-statements set $config_file variable. commented out entire block , set $config_file = "path_to_config" . seems have done trick.

c# - How to create Master Detail from datagridview -

this code inserts in database private void btnsave_click(object sender, eventargs e) { byte[] imagebt = null; filestream fstream = new filestream(this.txtimgpath.text,filemode.open,fileaccess.read); binaryreader br = new binaryreader(fstream); imagebt = br.readbytes((int)fstream.length); // byte[] pic = stream.toarray(); try { condb.open(); oledbcommand command = new oledbcommand(); command.connection = condb; command.commandtext = "insert abaanacc (ccspn_code,ccfname,cclname,ccmname,ccdob,ccgender,ccschool,caclass,ccvillage,ccsiblings,ccguardian,cccontact,ccimage)" + " values ('" + spn_codetxt.text + "','" + txtfname.text + "','" + lnametxt.text + "','" + mnametxt.text + "','" + dobdtpicker1.text + "','" + gendercombobox.text + "','...

opencv - Unhandled microsoft c++ exception cv exception at memory location -

i developped project vs , opencv on x64 computer , i've problem line: model->train(image, labels); image , labels not empty i've got error: unhandled exception @ at 0x774fc42d in facerec_video.exe: microsoft c++ exception: cv::exception @ memory location 0x0015ef38. if click "continue", program continue , works. furthermore, if set breakpoint on line , step step, error message doesn't appear , program works too. how resolve problem ? thanks

angularjs - Front end material design stack with angular.js -

i trying better @ coding , trying figure out front end stack need. have red lot , lot of tools , don't know ones work or not. currently idea web app design principles of material design google , use angular logic of front end. i have red , used these tools: angular.js, material design lite, angular-material, polymer, ionic, bootstrap, materialize , other various material design frameworks. i playing demo wanted try out material design lite went further , ended needing polymer input drop-down components. playing further more mdl found out not sufficient bootstrap used work , have in it, don't me wrong mdl. ionic has features local server , easy set of template app other nice things export ios,android app, push notifications, ended deleting ionic.css cause interfering mdl , polymer i asking more experienced web app developers me out stack dilemma. out of mind can free , develop more. also tools grunt, bower , on? 1 best in case? note: if u got interested end cak...

java - Why am I getting "Unsupported Major Minor Version 52.0" compile time error? -

i have spring project running on jre 8.0. reason, in application context xml file, i'm getting following error tag: <context:component-scan base-package="com.myproject.controller" /> error: error occured processing xml 'com/myproject/controller/protocol/fetchresponsebody : unsupported major.minor version 52.0'. see error log more details servlet-context.xml /eyecontrol/src/main/webapp/web-inf/spring line 19 spring beans problem the class in question annotation follow: @target({ elementtype.type, elementtype.method }) @retention(retentionpolicy.runtime) @documented @responsebody public @interface fetchresponsebody { } the thing is, i'm getting error on pc. laptop not have error @ all. also, regardless of compile time "error", not seem have issues running whether through eclipse or through terminal. the run-as configuration selected jre8.0 , build path contains same jre. issue doesn't hinder progress sure hall annoy...

Web Scraping with Python: RuntimeError maximum recursion depth exceeded -

i'm trying scape data website updates (here i'm using aapl stock off of yahoo finance). code doesn't run. i've tested every part individually, still error saying "runtimeerror: maximum recursion depth exceeded". in advance troubleshooting! import time import lxml, requests bs4 import beautifulsoup url= "http://finance.yahoo.com/q?uhb=uh3_finance_vert&fr=&type=2button&s=aapl" def printpriceaapl(): r = requests.get(url) soup = beautifulsoup(r.content, "lxml") print (soup.find(id="yfs_l84_aapl").string) #id of current stock price time.sleep(60) while true: printpriceaapl() edit: full error: traceback (most recent call last): file "c:/users/sjung/documents/printpriceaapl.py", line 15, in <module> printpriceaapl() file "c:/users/sjung/documents/printpriceaapl.py", line 11, in printpriceaapl print (soup.find_all(id="yfs_l84_aap...