Categories
Mastering Development

C# getting error calling stored procedure with an output variable, parameter not supplied

I’m calling a generalized method in C# that returns a string from an Azure SQL stored procedure with an output variable. The error is: "Procedure or function ‘TableScriptGenerate’ expects parameter ‘@table’, which was not supplied." I’m passing the parameters as Lists My code looks like: static public string ReadSpData(string cnxn, string storedProcedure,List<string> paramValue, List<string> paramType, […]

Categories
Apple User Help

How to create a script on Automator to watermark each PDF in a folder with a different watermark?

I am trying to create a script to watermark a group a PDF files in a folder, each PDF has to have a unique watermark. All the PDFs are in one folder, all the watermarks are in .png located in another folder. I currently have watermark script which I found on Apple Forums, but this […]

Categories
Game Creation Mastering Development

Godot 3.X Implementing a smooth movement for pitch, yaw & roll

I’m implementing pitch, yaw and roll on airplane object, but when rotating the object (either pitch, roll or yaw), it starts rotating slowly but then the rotating movement goes awfully fast very quickly. it’s quite jarring. i’m not sure how to make more smooth. The issues: I think the problem lies in the acceleration when […]

Categories
Mastering Development

How to reduce the runtime of program?

Edit: Sorry for the very vague question. So basically I’ve created a brain tumor detection program which is the Final.py This is my gui.py which is the gui I’m currently building from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QPushButton, QFileDialog, QLabel import sys from PyQt5.QtCore import QRect from PyQt5.QtGui import QPixmap from package.Final import predict class […]

Categories
Raspberry Pi User Help

Boot directly into react app

I am trying to make a simple react app which will control various bits and bobs connected to the raspberry module via node. I have seen that some people managed to boot raspberry pi within 2s into their Qt app. Of course they disabled all the network, input, usb drivers etc which I will need […]

Categories
Mastering Development

How to use scikit-learn optimize in a class (especially the use_named_args decorator)?

I am using the scikit-learn optimize package to tune the hyperparameters of my model. For performance and readability reasons (I am training several models with the same process), I want to structure the whole hyperparameter-tuning in a class: … import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.preprocessing import sequence from tensorflow.keras.models […]

Categories
Mastering Development

When I use the subclassing API of tensorflow2 ,some strange problem arise: some layers can be reused,some can`t,why

In the following two examples,that are all use the subclassing to construct the same model.Some strange problem occur about reused layers.the one can`t reused all layers,the another can`t reused a part of layers,such as Convolution,BatchNormization,but can reused the Activation layer. why? 1. use the existing layers in tensorflow . the all layers can`t be reused,such […]

Categories
Mastering Development

Reactive Form – how to fill mat-select control with object?

I would like to build a reusable form for creating and editing a customer. The form includes mat-select to assign the customer’s advisor. I would like to save a full advisor’s object, that’s why I assigning a full object to [value] property. The problem is when I try to edit data – I can set […]

Categories
Mastering Development

No module named ‘sklearn.utils’ [closed]

Traceback (most recent call last): File "C:\Users\Tinaxhe\Desktop\francis\fake news monitoring\fake news\Fake News Detection app\Fake News Detection app\app.py", line 13, in <module> from cal import predict1 as pred1 File "C:\Users\Tinaxhe\Desktop\francis\fake news monitoring\fake news\Fake News Detection app\Fake News Detection app\cal.py", line 5, in <module> from sklearn import model_selection, preprocessing File "C:\Users\Tinaxhe\Desktop\francis\fake news monitoring\fake news\Fake News Detection app\Fake News […]

Categories
Mastering Development

How to print a Java Spring array item? [duplicate]

I’m working in a code for the university and I’m stuck in one feature only. I created an array list and I’m adding items to it, however, I need to print to the console this list. When I try print I receive the Java Spring address or something like this, for example "com.demo.spring.Suitcase@4fb0f2b9" instead of […]