i have some problems to connect to a database via python I have an excel file witch can connect to this database, but i dont know how to do that with python Here the connection string from the excel file: DSN=BAAN;UID=baanread;PWD=baanread;DBQ=BAANIV;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;BTD=F;BNF=F;BAM=IfAllSuccessful;NUM=NLS;DPM=F;MTS=T;MDI=F;CSR=F;FWC=F;FBS=64000;TLO=O;MLD=0;ODA=F; How can I change the string below to connect to python via pyodbc? cnxn ..

Read more

I have some surfaces and want to plot them using matplotlib. Each surface has four corners stored in a numpy arrays: import numpy as np points = np.array ([[[472.983284, 114.5,-1792.], [720.65216064, 1535.5, -1792.], [1500.20385742, 1535.5, -1008.], [1252.39562988, 114.5, -1008.]], [[590.38764954, 114.5, -1792.], [652.08530426, 1535.5, -1792.], [1405.10574341, 1535.5, -1008.], [1343.39660645, 114.5, -1008.]], [[679.80918884, 114.5, -1792.], [568.60767365, ..

Read more

I have a large XSD file and I need to create structure of this XSD in Redis with None fields (like something:object:id). Is there any ways to do it, because I found different libs that creates Python classes like GenerateDS and they create .py files for thousands lines, which are impossible to convert. Maybe it ..

Read more

I’m trying to compress files using zip compression(generally available on PC). I’ve 11 text files in which there is a percentage of random data from 0% to 100% with a step of 10%. I tried to compress these files but I don’t understand one problem. For 10% to 100% percent the compressed file size should ..

Read more