With Windows 10/11, using windows API, is there a way to get the Windows display (with everything: desktop, all open windows, mouse cursor...) as a texture before it goes on screen, modify it with a shader, and give the new texture back to Windows so it is displayed normally? (I would like to avoid to display it with an overlay window)
I have a solution with two ASP.NET Core projects: Web.Api — minimal API, listens on https://localhost:7124 (and http://localhost:5247) Web.UI — Blazor Server app, listens on https://localhost:7063, calls Web.Api over HTTP via IHttpClientFactory Web.UI calls Web.Api on the first page load (a middleware checks an API endpoint), so both projects must be running. The problem When I run both projects from two terminals, everything works: # Terminal 1 cd Web.Api dotnet run --launch-profile https # -> Now listening on: https://localhost:7124 # Terminal 2 cd Web.UI dotnet run --launch-profile https #
I am planning to build a production-ready SaaS application using Django and Django REST Framework (DRF). The application requires a robust architecture featuring: * **PostgreSQL** as the primary database. * **Celery & Redis** for handling heavy background asynchronous tasks. * **Django Channels** for real-time WebSocket communication. * **Stripe** integration for handling recurring subscriptions. * **Docker & Docker Compose** for clean environment containerization. Setting all of these up from scratch with standard separation of concerns (settings, tasks, consumers) takes a massive amount of b
I'm learning Java in Eclipse and practicing arrays. When I run this code, the output is: 10 20 30 0 0 I only added 3 numbers to the array, so I expected it to print only those values. I already checked the loop and the array size, but I still don't understand why the extra zeros appear. Why does Java print those zeros and how can I avoid them? public class Main { public static void main(String[] args) { int[] numbers = new int[5]; numbers[0] = 10; numbers[1] = 20; numbers[2] = 30; for(int i = 0; i < numbers.length; i++) { System.out.println(numbers[i]); } } }
I know we're supposed to use strtol like this strtol(str, &endptr, base), but it doesn't seem to make sense. If it asked for the last character of the stror maybe the position of the \0 in the str, then it would make more sense to me, but I just don't get it. Can anyone clarify?
I am building a simple CRUD application in C# WinForms to practice database operations. I have a DataGridView that loads user data, and I want to open a separate edit form (formEdit) when a cell is clicked, pass the data to it, and update the database upon clicking a save button. Here is how I currently pass the data from the main form to the edit form: Form1.cs (Cell click event) private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { // creating new form for edit context formEdit f2 = new formEdit(); // Give the clicked content to the
If I run this query, I get all the products I want: $args = array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1, 'category' => array( 'wordpress', 'plugin' ), ); $products = wc_get_products( $args ); However, the following query returns just 1 product (but it should return all). Why doesn't it return all products like the query above? $args = array( 'post_type' => array( 'product' ), 'post_status' => 'publish', 'posts_per_page' => -1, 'tax_query' => array( 'relation' => 'AND', // Condition 1: Product MUST belong to BOTH of these categories array( 'taxonomy' => '
I'm concerned about coroutines in gdscript regarding their potential behavior when one of the node is freed. I couldn't find official documentation on how they are supposed to act in the following scenario. Assuming two nodes Caller and Callee such that callee has a member signal some_signal. From some instance of Caller, we call some_func which asynchronously await a signal from some callee. func some_func(callee): x = await callee.some_signal I understand this creates a GDScriptFunctionState object (which intuitively make sens : "something" lingers to keep the state order to resume the funct
I am using the Next.js 14 App Router to load a user theme preference from localStorage in a component. I get an error on page load: Error: Hydration failed because the initial UI does not match what was rendered on the server. Component code: 'use client'; import { useState } from 'react'; export default function ThemeComponent() { // Attempting to read directly from localStorage during initialization const [theme, setTheme] = useState(localStorage.getItem('theme') || 'light'); return ( <div className={theme === 'dark' ? 'bg-black text-white' : 'bg-white text-black'}> Current theme: {theme} </
I am developing a custom app in Frappe Framework using Vue.js as the frontend framework. The Vue frontend is connected to an HTML page inside the www folder of Frappe. I have already configured the Procfile and added the required watch commands. When I edit Vue files, the assets are rebuilt correctly while running bench start. The issue is that the changes are not automatically reflected in the browser at localhost:8000/.... I currently need to manually perform a hard reload every time to see the updates. I know that standard Hot Module Replacement (HMR) usually runs on a separate development
I am the webmaster of a site that has been ... evolving ... over time, as I've learned more about HTML and CSS. Unfortunately, the site is quite large, and updating the older pages is a project that I'm doing piecemeal as I have time. I do, however, now have site-wide CSS, and new pages are (mostly) consistent, and generally easier to update than the older pages. I have several classes that impose font-style: italic; on text, but I also have some places where instead of using one of those classes, the em tag was used directly. In some places, I have one of those italicising classes nested with
I have developed a minimal working test page for the WebRTC API, see WebRTC_test.html and associated js files. The problem is that it depends on a 0.5 second sleep on datachannel.js line 20. When commented it out, I received error Uncaught InvalidStateError: Failed to execute 'send' on 'RTCDataChannel': RTCDataChannel.readyState is not 'open' at datachannel.js:21:1 Can anyone see why? WebRTC_test.html: <!doctype html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>WebRTC test</title> <script type="module" src="datachannel.js
There is a famous tutorial: Custom Window Frame Using DWM. Everything works as expected (Windows 11), but now I want to get rid of default drawing of Minimize / Maximize / Close buttons (to draw them on my own wherever I want with WM_NCHITTEST). Even if I don't call DwmDefWindowProc(), DWM still draws the buttons (but does not process clicking etc). What I tried: Handling WM_NCPAINT. Some wrote, it's incompatible with DWM. When I try just to handle it (either return 0; or simply don't call DefWindowProc()), the window starts flickering on resize + my WM_NCHITTEST-related code stops working (I
Urine has urea, which turns to ammonia with time and/or heat. Wikipedia and The Smithsonian Magazine explain that this ammonia had important uses in premodern times. Namely, in tanning leathers, cleaning cloths, dyeing cloths, cleaning teeth, and making gunpowder. In my fantasy world, there is a species of sapient, desert dwelling reptiles. I had this idea that they could produce very concentrated urine as a desert dwelling species and this could be an economic resource for them. But then I looked into it more and remembered that reptiles don't produce urea solution; they produce uric acid as
I have a Next.js app (App Router) with two separate upload paths for a gallery feature, and I realized my server-side security checks are being bypassed. The secure path (Server Action) - validates magic bytes and enforces 10MB limit: // app/actions/upload-gallery-image.ts "use server"; function detectImageType(bytes: Uint8Array): string | null { if (bytes[0] === 0xFF && bytes[1] === 0xD8 && bytes[2] === 0xFF) return "image/jpeg"; if (bytes[0] === 0x89 && bytes[1] === 0x50) return "image/png"; // ... } export async function uploadGalleryImage(formData: FormData) { const file = formData.get("fi
I’m learning Playwright with TypeScript and building my first automation framework. One thing confusing me is fixtures. Some examples use the default page fixture directly in tests, while others create custom fixtures and inject page objects through them. Both approaches seem to work, but I don’t understand which one is better for a real project long term. Right now, my framework is still small https://github.com/Arun-Bennyx/playwright-ts For people who worked on larger Playwright projects, would you normally keep things simple with the built-in fixtures unless there’s a real need, or is using
I installed Qt on Windows, but I found that I can't switch the language to English (it works with other languages, but not English). I'd like to know how to solve this problem. Here are example screenshots of what the user interface looks like: enter image description here enter image description here enter image description here
I would like to create an npm library for a base electron client where consumer projects use the same shared main process/renderer/preload. And currently exposing a defineConfigs function that overloads the electron-vite configs from my npm package: import { defineConfig, loadEnv, UserConfig } from 'electron-vite' import reactPlugin from '@vitejs/plugin-react' import tailwindcss from '@tailwindcss/vite' export function defineConfigs(fn: (config: UserConfig) => UserConfig = c => c) { return defineConfig(({ mode }) => { const env = loadEnv(mode) const envVars = Object.fromEntries(Object.entries(
I have build a self-evaluating RAG System now i want to evaluate it so i can know what my system performance for that i used DeeEval framework but the thing is i don’t have OpenAI API key as i’m broke so i’m using free tier API from Groq/Cerebra’s or local model but the thing is local model like llama 3.1 8b model is giving invalid json and keep failing like out of 25 question it’s failing on 15-19 question and when i use free tier api from cerebra’s in DeepEval it’s Rate limit just max out as DeevEval generate 3-4 response per question ,
I’m developing a mobile app for both Android (Kotlin) and iOS (Swift), and I need to identify where the app installation came from. Use case On the website, we show a popup like: “Install the app and get a coupon” User flow: User visits website User clicks popup/banner User installs the mobile app from App Store / Google Play User opens app and logs in App should know the install came from the web popup campaign Backend sends coupon to that user What I want to achieve I want to track: install source campaign ID deferred deep link information attribution after first install connect web campaign
I have a simple sequence, like this: CREATE SEQUENCE my_sequence START WITH 1 INCREMENT BY 1 NOCACHE NOCYCLE; I'm trying to insert something, and I'm using the sequence like this: INSERT INTO table1(col0, col1, col2, col3, col4, col5) SELECT my_sequence.NEXTVAL, col1, col2, col3, col4, col5 FROM ( SELECT tt.col1, tt.col2, tt.col3, tt.col4, sx.col5, FROM table2 tt LEFT JOIN table3 sx ON tt.col6 = sx.col6 WHERE sx.col5 LIKE 'P%' ORDER BY tt.col1 ASC ); Now, when I see the table1 contents, they are not ordered as expected. If I order it by col1, the numbers in col0 show: col0 col1 col2 1 1 ... 2
I want to use the ST VL53L0x sensor with a Raspberry Pi 3 which is supported by the Linux Kernel's IIO driver. Reference 1 and reference 2 state that I need to provide a device overlay so I wrote the following code: /dts-v1/; /plugin/; /{ compatible = “brcm, bcm2837; fragment@0 { target = <&i2c1>; overlay { #address-cells = <1>; #size-cells = <0>; status = “okay”; lv53@29{ reg = <0x29>; compatible = “st,vl53l0x”; }; }; }; }; It doesn't compile due to a syntax error. Which steps are necessary to use this driver and write the correct device overlay?
I'm getting to grips with the STM32 - I'm using STMCubeMX to configure TIM3 as a basic count timer. The system clock configuration has been left as default so it using the HSI oscillator as the internal clock, which has a frequency of 8MHz. With all other settings left as default and the TIM3 configuration I've shown in the screenshot show - I would expect an Auto Reload Register value of 7999 to equate to an interrupt which triggers every millisecond, however I get twice that. Assuming the information I've given is correct - could I be missing something else? Thanks in advance.
Just as I said. I have found many methods to be able to fetch art using album name, but I don't have access to that, at least not right now. I need to fetch it using just song name and artist name. I am making a dummy music player that uses binium's am-lyrics to play local files and fetches time-synced lyrics. Any api that helps fetch the rest of the data which then helps me fetch the cover will also be helpful. Any help would be greatly appreciated, thanks!
I have never needed to use an emergency oxygen mask during flight. In case I do need to use such a mask in my next flight: is there any problem wearing this mask over my eyeglasses? Or should I remove my eyeglasses before putting the mask on? (I watch the safety instructions, but I do not think they answer this question).
Can the margin in the image can be removed from Visual Studio 2026? It is left of the Selection and Indicator margins. It only seems to show the current cursor location. This text can be ignored. It seems I need to add extra text so that I can post my question, even though the question very simple. Not sure why Stack Overflow thinks there needs to be mountain of text to ask a simple question.
I have a task manager spreadsheet for my company's project managers. Each person has their own tab that they add in their projects, due dates, etc. They get email notifications sent when an upcoming task is within certain days of the due dates they put in. When setting up the spreadsheet, I had successes with sending email notifications with just one tab with time triggers set up. Once I added in new tabs the time triggers no longer sent the email notifications even though the time trigger/code run was successful. Every morning, I run the code under each tab and the email notifications send co
I am using kmeans() to examine whether clusters in my data fall into expected categories, and factoextra::fviz_cluster() to visualize the result. To run kmeans(), I had to strip the "type" character variable from the dataset. How can I replace the default point labels with the original "type" values in my fviz_cluster() plot? Example code: library(factoextra) # Example data type <- c(rep("occurrence", 3), rep("random", 3)) water <- c(18.8, rep(17.2, 4), 16.6) barren <- c(3.34, rep(3.20, 4), 3.21) evergreen <- c(75.5, rep(72.2, 4), 77.8) mixed <- c(0.461, rep(0.457, 4), 0.459) test_frame <- dat
I am experimenting with using kmeans clusters to examine whether the clusters fall into expected categories or not (specifically examining land cover between areas around species occurrence records and random points). I have created my clusters using kmeans and visualized them using fviz_cluster, but to do this I had to strip my factor variable (occurrence or random) from the numeric dataset (percentage of each land cover type). I would like to reattach this factor variable so that I can plot the labels of each point (occurrence or random) on the fviz_cluster, but I'm new to these functions an