2,533 questions
0
votes
1
answer
51
views
Cropping an image Android Java
Using camerax I have taken a screenshot of a image...success....
I then load the image into an imageView...success....
I now want to crop the image in the image view by using ....
imageView....
0
votes
1
answer
42
views
JavaScript Django default scaling using extends index
I'm using Django's template inheritance (extends) in every page of the app. The current design looks too zoomed out, and I want to adjust the default scaling through my index.html, but it didn't work. ...
0
votes
1
answer
177
views
How can I speed up my Selenium scraper using multiprocessing in Python? [closed]
I'm scraping a large list of URLs (1.2 million) using Selenium + BeautifulSoup with Python's multiprocessing.Pool. I want to scale it up to scrape faster, ideally without hitting system resource ...
2
votes
1
answer
148
views
How do you upscale DirectX 11 textures?
I have sample code that creates a 320x180 texture and displays it in a resizable window that starts off at 320x180 inner-size.
But as I resize the window upwards, the texture is blurry. I thought that ...
0
votes
1
answer
66
views
Fix blank space at the top of image (JS)
I'm using the Internet Archive BookReader> https://github.com/internetarchive/bookreader
I've set up a book using images but at the top there is always a blank space
This is controlled by JS file ...
0
votes
0
answers
49
views
OpenMDAO IPOPT optimisation constraints violation
I'm trying to run an IPOPT optimisation (pyoptsparse driver in OpenMDAO) and I'm noticing the driver converges at an infeasible point where one out of four constraints is violated. I use finite ...
1
vote
1
answer
148
views
C# WinForms SplitContainer.SplitterMoved resizing of thumbnails
I have for now given up on doing this myself, as I have tried all day without getting this right, so I would appreciate some hints here. I have created a new mock-up, where I can experiment with this ...
0
votes
0
answers
39
views
Problem With Scaling Indicators Using PineScript in TradingView
in this code I am trying to put two scaled financial numbers on the chart after scaling them:
Free Cash Flow
Net Income
But they look similar after scaling them, I tried many ways to scale them but ...
0
votes
1
answer
73
views
Resize pages with GhostScript only if page size is too large
I process prints and PDF files on a server. It sometimes happens that users upload very large pages (A1 or A0). Conversion with GhostScript then takes a very long time and very large amounts of data ...
1
vote
1
answer
50
views
Tweens method converts my buttons back to their original size an and not the custom one I gave them
I'm creating four buttons, using the game engine Phaser 3. I try to give each button a custom size based on the screen size (so it always fits nice in the screen no matter what screen size). At first ...
0
votes
1
answer
62
views
How scaling matrix is calculated on itk-snap?
I'm trying to reproduce the scaling matrix of ITK-SNAP on python but I have failed. I have a fixed image and a moving matrix. I tried to set the scale factors of GUI as Sx = 2; Sy = 1; Sz = 1. When I ...
0
votes
1
answer
57
views
htmlwidgets with R
I try to create a plot with R and the display it implemented in a website.
My R Code:
library(tidyverse)
library(plotly)
data <- read_csv(...)
plot_temp <- data %>%
ggplot(aes(x = lon, y =...
0
votes
1
answer
95
views
How to scale a PNG image in SVG pattern properly
I have a task - create an ability to fill SVG paths with PNG image and scale up and down this image to create a certain texture.
One solution is to create a pattern with image and fill paths with that ...
4
votes
0
answers
223
views
Why does my WebSocket connection randomly fail under heavy traffic, even with a load balancer?
I have a WebSocket server running on Node.js with Socket.IO, and everything works fine under low traffic. However, when the number of concurrent WebSocket clients increases (e.g., 10,000+ connections),...
0
votes
1
answer
49
views
Is there a way to set the data_min and the data_max in MinMaxScaler()?
I'm currently using MinMaxScaler() on my dataset. However, because my dataset is large I'm doing a first iteration pass in batches to compute the Min and Max Values for my Scaler. i'm using ...
0
votes
1
answer
40
views
How to apply min-max scaling on a IterableDataset?
I'm using an iterableDataset because I have massive amounts of data. And since IterableDataset does not store all data in memory, we cannot directly compute min/max on the entire dataset before ...
0
votes
1
answer
560
views
Pyside6 Issue with scaling factor of windows on high dpi screen
I have this bit of code to draw a line on the upper border of specific row in a treeview:
class TextValidatorDelegate(QStyledItemDelegate):
"""a delegate to validate user input&...
-1
votes
1
answer
346
views
How to really decide Patroni Configuration based on System Configuration
I am trying to build Dedicated Patroni Cluster Which can basically handles my traffic. so currently dedicated instance is about 124GB Ram, 31vCPU, 1 TB SSD now with that said. i did little bit google ...
7
votes
1
answer
508
views
Zoom in and out centered about the mouse cursor in 2D using ImGUI
I have a 2D canvas used in a ImGUI context, that requires Zoom and Pan functionality.
Currently the Pan functionality works fine. However the zoom functionality does scale but the result is not ...
0
votes
0
answers
20
views
Best way to have concurrent writes on the same element
Let's say I have an event. the event can have multiple users.
I think the best way to map this relationship is to do it in a relational database, as the writes on this relationship should not be that ...
0
votes
0
answers
64
views
Prediction on the same sample differs from training to testing
I am studying ML with Tensorflow and I wanted to understand if my data formatting makes some sense!
To achieve overfitting I am following a few ideas:
not applying any regularizer
I am using a large ...
0
votes
0
answers
75
views
background-image svg scaling not working svelte
So I have multiple < p > elements inside a < div > which is inside an overall container. The container has an svg graphic as a background image with the top and bottom being wavy sides (so ...
3
votes
1
answer
557
views
Java 21 Swing Nimbus: on Windows/Linux high-resolution display the GUI is tiny
There are a lot of old questions regarding the Java Windows/Linux scaling topic with no clear answer. Does some Swing expert know of any updates, for example on Nimbus?
I have coded a really nice ...
0
votes
0
answers
449
views
How can I scale an Avalonia.UI App for high DPI Displays?
Yes, 4 years somebody asked the exact same question (Avalonia UI Scaling Issues) but maybe now it's possible to scale an Avalonia ui app. Cause when running my app on a 2.8 K display (Fedora 41 KDE ...
0
votes
1
answer
137
views
Sporadic High CPU Usage in Laravel 11 with Increased Bootstrap Times
We are facing a perplexing issue with our Laravel 11 application and are looking for insights to resolve it.
Server Setup:
32-Core CPU
128GB RAM
SSD storage
Nginx
PHP-FPM: Limited to 20 processes
...
1
vote
0
answers
80
views
ASP.NET Core app scaling when processing high volume messages
I am working on an ASP.NET Core 8.0 web application and C# 12, where I am consuming messages from multiple sources like RabbitMQ.
Earlier the number of messages are small like 50 a day even less.
Now ...
1
vote
3
answers
191
views
How to scale a 10 bit analog signal into an 8 bit PWM?
I'm using the PIC18F47-Q18 Curiosity HPC Development Board and the MPLAB X IDE v6.20.
The goal is to store the 10 bit value from the analog output into the 8 bit PWM. Depending on the justification of ...
0
votes
1
answer
80
views
Visual Studio (64-bit) V17.11.5 (.NET V4.8.09032) 100% Scaling bug?
My PC has a 4k monitor with the graphics card resolution at 3840 x 2160 with a 150% scale (via windows 11 Home).
When I click on an .sln file to load a project:
VS Launches.
If a form (design) is not ...
-1
votes
1
answer
73
views
Why is my data not getting properly concatenated?
I split the data using train_test_split after preprocessing:
from sklearn.model_selection import train_test_split
X_train,X_test,y_train,y_test= train_test_split(X,y,test_size=0.2,random_state=42)
...
0
votes
0
answers
92
views
How to stop browsers scalling my images in a html page?
I have a png image in a html page. Is it possible to display it with its original resolution, regardles of the screen DPI, Windows display scale factor or any other settings ?
For example, my png is ...
-1
votes
1
answer
67
views
How to scale conditionally using sklearn minmaxscaler
I have a column that has positive, 0 and negative values. Rows with 0 values constitute 90% of dataframe. I want to scale this column but without touching 0 value rows. Only those rows that have non ...
0
votes
1
answer
135
views
Scale canvas/matrix and all transformations applied, to obtain better quality image in the canvas
A member from stackoferflow helped fix my script and he obtained a good result, but I still need some help.
I have a DIV that contains some other divs and in the end, an image.
This image is bigger in ...
1
vote
0
answers
67
views
WinForm hidden behind task bar after scaling my monitor
I have a win form that scales itself correctly (based on what the monitor has) but the form than becomes too big so a part of the form gets hidden behind the task bar and the top is cut off (see photo)...
0
votes
0
answers
79
views
Prevent rescaling graphs on different screen sizes when zooming in R shiny
When we create a shiny app, users will use the app on different screen sizes (laptops, monitors). This means there are different heights and widths per user which may transform the graphs which have ...
0
votes
1
answer
55
views
How can i unlock my gnuplot graph, running from terminal?
When I run the txt script through the terminal, I cannot scale the graph, but if through the GUI application, then everything is fine.
gnuplot -persist PLOT_SCRIPT.txt
How can I change the scale by ...
0
votes
0
answers
134
views
Why is WinForms not keeping control aspect ratio set in Designer?
I'm designing a form in WinForms (C#) and having a problem where a panel that is designed to be square is vertically stretched at runtime.
Here's how it looks in Designer (note the square panel on the ...
0
votes
1
answer
57
views
How to use relative CSS dimensions (%, vw, vh) and preserve user zooming/scaling
I have coded a website and have used a percentage width like so:
max-width: 50%
When the user zooms the website, the text and other divs are scaling OK but these percentage-set divs are enlarging very ...
0
votes
0
answers
467
views
Fixing scaling in react-native-vision-camera-face-detector
const frameProcessor = useSkiaFrameProcessor((frame) => {
'worklet'
const faces = detectFaces(frame);
frame.render();
for (const face of faces) {
if (face?....
0
votes
1
answer
93
views
How to resize PDF pages to `Letter` using `pypdf`?
I noticed that the pypdf doesn't have a PaperSize of Letter (it only has A0-A8 & C4). I have PDF's of various page sizes that I want to standardize and scale to Letter size.
Is this possible with ...
1
vote
0
answers
207
views
ECharts: How to Handle Large Discrepancies in Data Values in a Stacked Bar Chart
I'm having trouble with the scale of my stacked bar chart in ECharts when there's a significant discrepancy between data values. The issue is that the chart doesn't represent the smaller values well ...
0
votes
0
answers
25
views
Images resized in HTML are clearer than resized in photoshop
enter image description here
This image is another example I found, where someone resized something pretty small with photoshop, and also the same size with HTML
Does anyone know why this happens I ...
2
votes
1
answer
70
views
Trouble Resizing widgets in Custom Tkinter when going into another page
I was trying to use the set_widget_scale function to resize my widgets based on the resolution of the window, when I resize the widgets on the main page it works fine when the resolution is chosen, ...
0
votes
1
answer
151
views
PyQt6 Pixmap scaling error: Arguments did not match any overloaded call [duplicate]
I've been trying to scale a Pixmap image correctly, however when calling the function I get a TypeError - am I doing something wrong?
It's stating that "size" isn't a valid argument, but ...
0
votes
0
answers
93
views
issues with scaling winform, on high res at 125% the labels move and start to overlap
Im having issues with a desktop app I created, when I load it on my desktop it looks one way but when it loads to a computer with a higher screen resolution certain things move around and the ...
0
votes
0
answers
91
views
FFT: PSD scaling issues in python
I have a problem with the right scaling of the PSD when I use a window. Let me show you an example.
I am using a box window (no window) and a hamming window for comparison.
This is the signal I ...
0
votes
1
answer
162
views
Reduce an Image in C
Hello fellow programmers. I'm new to the forum so please bear with me.
What I am trying to achieve is taking a loaded image from file(e.g. background wallpaper image 4000x2250) and scale it down to ...
0
votes
0
answers
572
views
Azure Synapse SQL Dedicated Pool Stuck in Scaling Mode for over 48 hours
Question:
I have a SQL Dedicated Pool in Azure Synapse that has been stuck in the "Scaling" status since 2.5 days. This unexpected behaviour has disrupted our operations, as the data is not ...
0
votes
1
answer
48
views
Frame of PushButton is cut off when using fractional DPR
I recently updated a piece of software from Qt 5.15 to Qt 6.5. The process itself was easier than expected but the new handling of high-DPI scaling in lead to some visual errors on multiple Widgets, ...
1
vote
0
answers
260
views
Maximize database pooler TPS
I'm trying to maximize pooler and DB resources to ensure highest throughput.
Specs:
Postgres DB: 8CPUs 64GB Memory
VM for PGbouncer: 16CPU 64GB Memory
Both servers are on the same location.
As I'm ...
-1
votes
1
answer
182
views
How can I track the Last DPI which is sent by WM_DPICHANGED in WPF?
I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling ...