Questions tagged [scaling]

Scaling refers to the image manipulation function of re-sizing an image. For issues to do with handling increasing workload gracefully in software or network components, see "scalabilty".

Scaling refers to the image manipulation function of re-sizing an image.

2497 questions
8
votes
4 answers

Scaling to a fixed point in KineticJS

I'm having some problems with scaling a container to a fixed point. In my case I'm trying to scale (zoom) a stage to the mouse cursor. Here is a way to do with pure canvas: http://phrogz.net/tmp/canvas_zoom_to_cursor.html (as discussed at Zoom…
Skarbo
  • 697
  • 1
  • 6
  • 12
7
votes
5 answers

Building a scalable ASP.NET MVC Web Application

I'm currently in the process of building an ASP.NET MVC web application in c#. I want to make sure that this application is built so that it can scale out in the future without the need for major re-factoring. I'm quite keen on using some sort of…
gsobocinski
  • 295
  • 3
  • 10
7
votes
1 answer

Algorithm for self-scaling ruler in plotter GUI component

I am designing (not programming) a data-series viewer program for medical data, using C#/WPF. There is one main panel which shows the data, with the common mouse pan/zoom functionality (pan with left drag, horizontal zoom with scroll, vertical…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
7
votes
3 answers

Single Point of Failure on scaling application across AWS

We have a Rails-based application, deployment infrastucture binds to AWS. Current schema included the following layers: load balancer (HaProxy) Rails-application (EC2) x2 MySQLd database (EC2 master-slave) Redis, DelayedJob background…
Anatoly
  • 15,298
  • 5
  • 53
  • 77
7
votes
1 answer

iPad not scaling site down website correctly in portrait orientation

This is a bit of an odd one and was wondering if anyone had a solution. We're building a few websites just now that are over 1000px in width and for some reason when the iPad loads them up in portrait mode it's scaling them down but leaving some…
7
votes
2 answers

how to scale a path in raphael.js

I don't understand why the following example is not working... It only works if I am resizing it once but if I try to resize it again it get's all messed up... http://jsfiddle.net/JAVWN/1/
fogy
  • 81
  • 1
  • 4
7
votes
8 answers

(How can/What should) I implement a database that scales to the upper tens of thousands requests/second?

By Upper tens of thousands requests/second I want to see 60,000 -> +90,000 requests/second. My Setup consists of the following: user ---> web app --> message queue --> parser --> database? I should mention that the parser currently can parse/stuff…
eyberg
  • 3,160
  • 5
  • 27
  • 43
7
votes
1 answer

How to scale websocket connection load as one adds/removes servers?

To explain the problem: With HTTP: Assume there are 100 requests/second arriving. If, there are 4 servers, the load balancer (LB) can distribute the load across them evenly, 25/second per server If i add a server (5 servers total), the LB balances…
pdeva
  • 43,605
  • 46
  • 133
  • 171
7
votes
1 answer

How are hardware resources defined in Kubernetes? CPU and RAM

What is a simple explanation to resource allocation and definitions in kubernetes? What does it mean to allocate "1000m" CPU units and 1024Mi off memory?
Amir Mehler
  • 4,140
  • 3
  • 27
  • 36
7
votes
2 answers

When should you use Async Controllers in ASP.NET MVC?

Changing an ASP.NET MVC synchronous controller (Controller) to an asynchronous controller (AsyncController) seems like a trivial thing to do, but when should you do it? Should I just make every controller async irrespective of its actions? What are…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
7
votes
1 answer

WinForms window changes dimensions when it encounters an async call

I have a WinForms project which is several years old and has been retro-fitted with async event-handlers: private async void dgvNewOrders_CellClick(object sender, DataGridViewCellEventArgs e) Inside this method is an async call: var projectTemplate…
awj
  • 7,482
  • 10
  • 66
  • 120
7
votes
3 answers

Scaling images with Java JAI

I have to scale an image with Java JAI. At the time now, I use the following code: private static RenderedOp scale(RenderedOp image, float scale) { ParameterBlock scaleParams = new ParameterBlock(); scaleParams.addSource(image); …
Basil
  • 638
  • 1
  • 9
  • 16
7
votes
2 answers

How can I set drawtext fontsize in ffmpeg according to resolutions ratio

How can I set fontsize for drawtext on video according to width and height of each resolutions, to a certain proportion? ffmpeg -i Input.mp4 -vf drawtext="fontfile=OpenSans-Regular.ttf: \ text='New Music Video': fontcolor=white: fontsize=?: r=25:…
Parsa Saei
  • 1,263
  • 5
  • 21
  • 38
7
votes
1 answer

Is there downtime involved when using Azure vertical scaling?

I have a two websites on a VM with WHM/cPanel and MySql. I am looking to move this into Azure and use vertical scaling. Visits to the website are usually stable but three or four times a year there is a big increase in traffic which historically has…
stepeng
  • 71
  • 1
  • 2
7
votes
2 answers

Windows Forms application on Windows 10 not scaling properly

When running one of our Windows forms applications on Windows 10, the GUI looks pretty bad since the scaling seems to be messed up. Here are some 1920x1080 screenshots (note the different sizes of the second pair): The scaling option in the…
Cleo
  • 620
  • 2
  • 10
  • 32