StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.2/10 (11 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Could the reason why I cant select any kernels in VS Code be this error? If so how do I resolve it

9 October 2025 @ 4:04 pm

I am trying to run an .ipynb file and have installed Miniconda as well as created an environment as such conda create -n <env_name> python=3.7 ipykernel jupyter I am assuming this is successful as I can activate this environment via the anaconda prompt and following command conda activate <env_name> Then I downloaded and installed VS code and I am trying to edit an .ipynb file. I want to select a kernel, via VS Code but when I press the button on the upper right corner I am greeted with the message that I need to install Python and Jupyter extensions. As soon as I do that the following error shows up Extension activation failed run the 'Developer: Toggle Developer Tools' command for more information Source: Jupyter (Extension) and I am not able to select any kernel.Additionaly,when I try running any Jupyter related commands such as

Why in Eclipse Java in the Maven Dependencies section some dependencies can be expanded and others not?

9 October 2025 @ 4:04 pm

For Eclipse Java 2025-09 Exists a simple module project based with Java and Maven. This project works with dependencies. I have the following situation with the Maven Dependencies section as follows: enter image description here Among the dependencies shown: Some are 3rd party (as AspectJ and JUnit) Others are my own projects For each own project through a Terminal was executed the mvn clean install command. Therefore is possible refer them as dependencies to reuse their types (interfaces, classes, etc). The project compiles and works normal without any problem The reason of this post, for each of my own dependency project selected and highlight in blue, observe that: For

QGIS Animation Workbench Run Button Greyed Out

9 October 2025 @ 4:03 pm

I am relatively new to QGIS and GIS in general, but I am running into a rather strange problem I am having trouble solving. I am running QGIS 3.36.2 and have recently installed the Animation Workbench Plugin. I initially ran into an issue with one of the lines of code previously highlighted here and resolved that issue but what I am faced with now is the run button always being greyed out as shown below. No matter what I've tried to change, nothing seems to help. Anyone else face this issue or a similar issue with a plugin and have a solution? enter image description here I have done high level analysis of the python code, attempted to use different layer types and modify the properties within the layers themselves.

Sql injection protection when sending json as a sql function parameter

9 October 2025 @ 4:02 pm

I am sending a json array with filter parameters from ExtJs in the sql function parameter. filters look like this: [{"field":"product_type_id","data":{"type":"number","value":"43","comparison":"in"}},{"field":"code","data":{"type":"string","value":"RRR","comparison":"like"}}] I would like to protect myself against possible SQL injection, but my sanitizeString function removes all characters such as {, ", : etc. This prevents me from sending json, so I cannot use it for parameters. Can you tell me how to best protect myself through sql injection and at the same time pass json in the parameter without any problems? // this.DBModels?.execQuery execQuery<T = any>(query: string, callback: (err: Error, data: T[]) => void) { this.db.

How Do I Get A TSQL View Based On A JSON_OBJECT To Output Data?

9 October 2025 @ 4:00 pm

I'm pretty new to SQL, and would like to know how to get what I need out of this view that I have made which puts out a JSON object: SELECT JSON_OBJECT( /*StaticDataStart*/ 'currencyCode': 'GBP', /*StaticDataEnd*/ 'phoneNumber':dbo.Telephone, 'email':glog.Email ABSENT ON NULL) "order" FROM db_Orders AS dbo INNER JOIN db_Logins AS dblog ON dbo.LoginId = dblog.Id That is a obfuscated version of what is currently in place. If I send that through as a query (ie. not using a view), with an additional 'WHERE' statement, like this: WHERE dbo.OrderNo = 1647046 ... then I get a response, no problem: { "currencyCode": "GBP", "email": "[email protected]" } But, when it is a

How do I get intellisense working, at least minimally, for clang-cl in Visual Studio 2022?

9 October 2025 @ 3:59 pm

I'm working with several msvc projects that I want to also compile with Visual Studio clang-cl. The msvc projects compile fine with no errors (intellisense errors or otherwise). Changing the platform toolset to LLVM (clang-cl) brings on many different intellisense compile errors and many different intellisense distractions in the source code. To focus on just the most distracting thing: clang-cl won't correctly show the macros for AVX512, even though it will correctly compile AVX512 code. I am posting sample code for a tiny project that illustrates the issue. If I compile with arch:/SSE2, arch:/AVX or arch:/AVX2, intellisense shows the correct macro values and the code compiles and runs as expected. If I compile with arch:/AVX512, intellisense shows INSTRSET = 2 and SIMD_SIZE_SPN = 2, but the project compiles and runs correctly with the AVX512 values INSTRSET = 10 and SIMD_SIZE_SPN = 8. For the Command Line "Additional Options" I am using either nothin

Scaling Plan Is Not Deallocating VM in AVD or Triggering Logoff Notification

9 October 2025 @ 3:54 pm

I am experiencing an issue with Azure Virtual Desktop scaling plan where ramp-down notifications and VM deallocation are not triggering. Details of my setup: Host Pool: TEST-HP is assigned to Host Pool Autoscale: Enabled VMs for testing: 1 healthy session host, 0–1 active sessions Permission assigned at subscription level: Desktop Virtualization Power On/Off Contributor (both Azure Virtual Desktop- service principal and also added for the owner - user). Ramp down Minimum percentage of active hosts: 0% (also tested with 10%) Load Balancing: Depth-first (also tested with Breadth-first) Capacity threshold: 90% (also tested 100%, 70%, 1% ) Force sign-out: Yes ( tried with no) Delay before logoff: 40 minutes** enter image description here Off Peak enter image description here I have tired a bunch of twea

How to access the actual Google Maps 3D canvas? (Needed for streaming)

9 October 2025 @ 3:53 pm

I want to get the actual canvas of the Google Maps 3D html element to call a captureStream on it, because I want to stream the footage somewhere. I am using the google maps beta channel. Now the problem is that this canvas is within a shadow_root (closed) which apparently means that my Code cannot query this area of the page (see screenshot for overview): Browser Elements with gmp-map-3d I also could not find anything useful int the documentation on how to access the canvas. I tried a selector query with all sorts of parameters, but that does not work with the closed shadow_root. I tried to somehow access the canvas with a Google WebGL

How to ensure webhook requests are routed to the same FastAPI worker that initiated the request

9 October 2025 @ 3:35 pm

I’m working on a FastAPI service deployed with Uvicorn using multiple workers to handle voice communication with Twilio, and I’m running into a routing problem. Current architecture: A client sends a POST request to the FastAPI endpoint. <POST /call> The API publishes a message to RabbitMQ queue, which is consumed later by the consumer. The consumer, that's running on the same app, picks up the message and starts processing the message to create the call with Twilio. The consumer initiates a Twilio call, dynamically generating a webhook URL like /webhook/{task_id} to handle the callback. Twilio sends a callback to that URL, which is then processed and forwarded via WebSocket. [...] All other processes are done within the WS processing. Problem: Because the app runs with multiple Uvicorn workers, Twilio’s callback (webhook) may hit any worker, not necessarily the one that initiated the call or "pre

Converting table in Excel [closed]

9 October 2025 @ 3:31 pm

I am working with an excel data table provided from an external source. This Excel contains rows which are indented with one space to indicate sub-category. Corresponding to the rows with and without indented text are numbers that belong to corresponding category. e.g. "kolen" total is 232, which contains both "kolengrondstoffen" = 209 and "Kolenproducten" = 23. I would like to create charts/plots with similar data across 100s of columns. Charts could be for main categories, but also sub-categories. I could manually reorganise rows but I wonder if there is a neater way to make Excel understand this data structuring. enter image description here