Categories
Mastering Development

Oracle store procedure to retrieve dates ny passing column name as parameter

The below procedure returns thousands of lines by passing start date and end date. Added to that i need to add one parameter which should apply the start date and end date on different columns such as created date, planned date and end date which are available in result set. For instance if i pass […]

Categories
Mastering Development

QML cannot find signal from c++ within the signal handler

So i have been searching around for the past day, even reducing the whole project to the least amount of code possible to see if there was anything interfering, but i cant seem to get it working to handle a signal from a c++ file in a qml file. main.cpp: #include "main.h" int main(int argc, […]

Categories
Mastering Development

Rotate a boundingBox by a given angle

I’m working with output from Azure Computer Vision Read API. The output has a boundingBox and angle of the page. I need to rotate the points in boundingBox. A sample boundingBox is : "boundingBox": [ 2.4533, 10.6901, 2.6147, 10.6901, 2.6147, 10.8193, 2.4533, 10.8193 ], And the angle is in degrees-180 to 180. I need to […]

Categories
Mastering Development

Using ClassSymbol in a quasiquote

I have a ClassSymbol and want to generate a zero-argument method throwing ???. Here are my attempts: Assume that object Test is the type we have ClassSymbol of. I. val sym = //the ClassSymbol val tpe = tq"$sym.type" q"def foo(): $tpe = ???" Result: [error] stable identifier required, but Test.type found. II. val sym = […]

Categories
Mastering Development

“Secure/Lockdown Window” for a program, windows 10

I’m trying to think of how I should go about creating a ‘Secure Window’ for my JavaFX project. Essentially, the program would instead of displaying its content on the normal desktop, go into a secure mode where only the program is showing, you could not minimize and for example look at Google. This would mimic […]

Categories
Mastering Development

Global variables and the .data section

Is a variable that is stored in the .data section by definition a global variable that has program scope? In other words are these two words synonymous and one implies the other, or, for example would it be possible to have a global variable that is not stored in the .data section, or a label/variable […]

Categories
Mastering Development

scrape a list of links in beautiful soup using range

I’ve been practicing my web scraping skills and came across a problem that involved me filtering though a set of 10 links by grabbing the paragraph tag with id="secret-word". I figured out how to do it for the first link so I thought it would be good to loop though the processes and grab them […]

Categories
Mastering Development

Promise.allSettled – set time delay to avoid API Abuse Rate Limits

I’m working with Promise.allSettled to do multiple fetches to the Github API for a few hundred requests. I’m getting blocked as they’re all getting called at once, so I want to add a delay of 5ms between each. Is this possible with Promise.allSettled?

Categories
Mastering Development

spreadsheets.get method not returning any actual value, just format

So I am trying to get a whole sheets at one bacause I otherwise get too many request and API is blocking me. I have copied code on google documentation. Unfortunately it basicly just return me things like fontSize , foregroundColor,foregroundColor , italic , strikethrough , underline. It says if it’s true or not or […]

Categories
Mastering Development

C# Form/Control Width Not Updating All the Time

I’ve made a small tool bar that sits in a transparent form, it loads a variable sized menu from a text file and can be changed on the fly. Each button is a type of Label, the bar is just a list of buttons and adds/removes them in the correct spots. Width of the form […]