Posts

python - Compilation error when importing Theano on Windows 7 -

i'm trying use theano on windows 7. able install theano , import theano, after seeing warning not having c compiler installed installed mingw. when try "import theano" compilation error. message rather long, relevant parts (from tell) this: problem occurred during compilation command line below: g++ -shared -g -d npy_array_ensurecopy=npy_ensurecopy -d npy_array_aligned=npy_aligned -d npy_array_writeable=npy_writeable -d npy_array_update_all=npy_update_a ll -d npy_array_c_contiguous=npy_c_contiguous -d npy_array_f_contiguous=npy_f_contiguous -m64 -dms_win64 -ic:\python27\lib\site-packages\numpy\core\include -ic: \python27\include -o c:\users\ameasure\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-intel64_family_6_model_58_stepping_9_genuineintel-2.7.3-64\lazylin ker_ext\lazylinker_ext.pyd c:\users\ameasure\appdata\local\theano\compiledir_windows-7-6.1.7601-sp1-intel64_family_6_model_58_stepping_9_genuineintel-2.7.3-64\l azylinker_ext\mod.cpp -lc:\python27\lib...

jquery - Process Form with php Without refreshing -

i have form ( web poll) , radio answers , need when submitted information action file (voting.php) printed on same page without refreshing! please me i've been trying hard few hours, because i'm new ajax jquery , java , tricky dynamic stuff. <form name="myform" id="myform" action="voting.php" method="post"> <input id="radio1" type="radio" name="answer" value="answer1"><?php echo $answer1?><br> <input id="radio2" type="radio" name="answer" value="answer2"><?php echo $answer2?><br> <input id="radio3" type="radio" name="answer" value="answer3"><?php echo $answer3?><br> <input id="radio4" type="radio" name="answer" value="answer4"><?php echo $answer4?><br> <input id="radio5...

asp classic - Error with FormatDateTime in VBscript -

i running vb script asp classic , getting following error: microsoft vbscript runtime error '800a0005' invalid procedure call or argument: 'formatdatetime' /whatsnew/updated_pages_www.htm, line 52 i trying work out causing error. there wrong format of date in csv file? date format is: 20090220122443 page code below: <%@language="vbscript" codepage="65001"%> <% response.charset = "utf-8" %> <% pagetitle="what published last week on casa.gov.au" %> <% connectstring = "driver={microsoft text driver (*.txt; *.csv)}; dbq=" & server.mappath("/whatsnew/data") set connect = server.createobject("adodb.connection") connect.open connectstring selectsql = "select * www.csv" set www_rs = connect.execute(selectsql) %> <!--#include virtual="/_lib/include/header.htm"--> <!--#include virtual="/_lib/include/menu.htm"--> <p cl...

file - How can I indicate the path of a package in a String in Java? -

new fileinputstream("c:\\users\\adam\\documents\\netbeansprojects\\tictactoe_3.0 beta\\src\\resources\\system shock 2 soundtrack med sci 1.mp3"); bufferedimage bf = imageio.read(new file("c:\\users\\adam\\documents\\netbeansprojects\\tictactoe_3.0 beta\\src\\images\\black-squaremod.jpg")); the 2 lines of code above taking kind of resource given paths. change them reference package within same netbeans project, contains same resources. for example, fileinputstream(); ... getting audio file. the bufferedimage bf = imageio.read(new file()); ... getting .jpg image. these 2 files in package called 'resources' in same netbeans project. how change specified paths go directly packages, instead of going through hard disk? thanks. the class.getresource() , class.getresourceasstream() methods relative class location. intended purpose. from javadoc finds resource given name. rules searching resources associated given class imp...

javascript - Kendo grid initializing number cells -

Image
by default, fields in datasource marked number have cells filled initial value of 0. i'd have cells empty when grid created without turning field string. the below row added calling grid.addrow(); $("#sale_01_div_grid") .kendogrid( { ... datasource : { schema : { data: "data", total: "total", model: { fields : { seq : { type : "string", editable : false}, sap_cd : { type : "string" }, old_cd : { type : "string", editable : false }, inv_name : { type : "string", editable : false }, ...

java - Differentiating String/Int User Input -

i having issues trying type code make program distinguish whether user inputs string value or int value. if int value typed in, stored array (named data) printed , tested typing string values (as seen in code below in method go() . using .hasnextint incorrectly? here code: import java.util.scanner; import java.util.random; import java.text.decimalformat; public class integerstatistics { java.util.scanner scan; // declare storage integers int[] data; random random; // create constructor public integerstatistics() { scan = new scanner(system.in); data = new int[10]; random = new random(); } private void showmenu() { system.out.println("menu:"); system.out.println(" p - print list of values"); system.out.println(" s - print statistics values"); system.out.println(" f - fill list random values"); system.out.println(" c - clear list of values"); system.out.println(...

c# - Intuit POS SDK - Missing manufacturer for inventory query -

i developing against quickbooks pos system. make following request inventory list (in c#). var request = sessionmgr.createmsgsetrequest(1, 0); request.attributes.onerror = enrqonerror.roecontinue; var inventoryquery = request.appenditeminventoryqueryrq(); var response = sessionmgr.dorequests(request); the inventory list not include manufacturer string each inventory item, through string populated in qbpos. field not in returned xml or in iiteminventoryret object, although else appears be. thanks help! the manufacturer field added in later version of program have specify version 3 request it. you can call "qbposxmlversionsforsession" request object ensure end user has compatible version of pos request. this shows fields available versions: https://member.developer.intuit.com/qbsdk-current/common/newosr/index.html