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
68 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
49 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
220 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 ...