Categories
Mastering Development

Error During Compiling Arduino Code (NodeMCU)

I have been working with NodeMCU for 1 week but suddenly yesterday, while compiling NodeMCU again, as usual, it is showing error during compiling and not uploading the code. Please help me get out of it. This is the error coming Arduino: 1.8.12 (Windows 8.1), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new […]

Categories
Mastering Development Software

Unable to load C# library with w10 from python Win32com module while DLL regsitered with Regasm

I am facing an issue with a C# library within a python code. I am using a C sharp Library to be loaded via a A win32com module. My DLL is registered via : regasm.exe MYDLL.dll as CSharp DLL cannot be registered via regsvr32. Here is the code : import win32com.client as win32 (1) PL […]

Categories
Mastering Development

The library is compiled without QT support in function error when running Python virtual environment

I was trying to run this installed library – https://github.com/alkasm/magicwand but when I tried to run a command in the commmand line “python -m magicwand C:\Users\home\Pictures\img.png”, it returned this error – Traceback (most recent call last): File “C:\Users\home\AppData\Local\Programs\Python\Python38-32\lib\runpy.py”, line 194, in _run_module_as_main return _run_code(code, main_globals, None, File “C:\Users\home\AppData\Local\Programs\Python\Python38-32\lib\runpy.py”, line 87, in _run_code exec(code, run_globals) File […]

Categories
CMS Mastering Development Wordpress

Cannot hide block with jQuery

This seems to be a trivial CSS question and should be asked on SO, but I think there are many subtleties in here that it’s better to ask in here. I add a CSS class to a block and use jQuery to hide it. It’s simple, but it doesn’t work. How do I debug this? […]

Categories
Mastering Development

Why is this glDrawElements call failing?

I am trying to integrate the advice from https://gamedev.stackexchange.com/questions/10727/fastest-way-to-draw-quads-in-opengl-es and How to draw with Vertex Array Objects and glDrawElements in PyOpenGL to render quads using an index buffer implemented by OpenGL.arrays.vbo.VBO, in a context provided by GLFW and using the helper class. (I am also, at least for now, relying on ctypes for raw data […]

Categories
Mastering Development

Reconstruct 3D object with OpenCV

I am following the OpenCV camera calibration tutorial https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_calib3d/py_calibration/py_calibration.html to run camera calibration ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(objpoints, imgpoints, gray.shape[::-1],None,None) What I want to do next is to reconstruction the 3D location of some feature points. The features points are defined in the image space. Here is what I am planning to do: […]

Categories
Mastering Development

How to filter NA values of group of columns in pydatatable?

I have created a datatable with 3 different group of observations as, DT_EX= dt.Frame({ ‘country’:[‘a’,’a’,’a’,’a’,’b’,’b’,’c’,’c’], ‘id’:[3,3,3,3,4,4,4,4], ‘shop’:[‘dmart’,’dmart’,’dmart’,’dmart’,’amzn’,’amzn’,’amzn’,’amzn’], ‘beef’:[23,None,None,None,93,None,None,None], ‘eggs’:[None,33,None,None,None,103,None,None], ‘fork’:[None,None,10,None,None,None,210,None], ‘veg’:[None,None,None,40,None,None,None,340] }) It’s output as, | country id shop beef eggs fork veg — + ——- — —– —- —- —- — 0 | a 3 dmart 23 NA NA NA 1 | a 3 […]

Categories
Mastering Development

Improve R2 for Bayesian neural network in training

I have a problem with a machine learning code in python , it is a Bayesian neural network and the problem is that during train the R2 cannot increase, but actually decrease. I tried several activation functions but nothing works.in the data the first n-1 columns are structural descriptions , the last column is the […]

Categories
Mastering Development System & Network

cloud-init seems incapable of creating swap on a raw partition

cloud-init seems incapable of creating swap on a raw partition. It can create a swap ‘file’ but when I try a raw device my /dev/sdb1 changes from a device to an actual file. In looking at ALL the cc_xxx.py scripts the only place mkswap is done is in cc_mounts.py and it removes the specified file […]

Categories
Mastering Development

.htaccess file causing forbidden error in my codeigniter application, I am running apache 24 in my windows server

Without the .htaccess file the application running perfectly, Whenever I add .htaccess file it showing forbidden don’t have access to the / server. I tried to put “Test.” in the first line of .htaccess file it “showing Internal server error” that’s good apache reading .htaccess file. But whenever it read “RewriteEngine on” line in .htaccess […]