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
7
votes
2 answers

Horizontally scale socket.io with redis

I currently am creating a horizontally scalable socket.io server which looks like the following: LoadBalancer (nginx) Proxy1 Proxy2 Proxy3 Proxy{N} BackEnd1 BackEnd2 BackEnd3 BackEnd4 BackEnd{N} My…
Steve P
  • 319
  • 3
  • 7
7
votes
3 answers

Using matplotlib, how can I print something "actual size"?

I have a number of plots where the x- and y-axes are in centimeter units, and I am already using axis('equal') to ensure proper aspect ratios. I would like to print out those plots so that when I measure distances within my axes, the distances…
GaryS
  • 71
  • 1
  • 2
7
votes
1 answer

geom_point points manual scaling

I got some data (named result.df) which looks like the following: orgaName abundance pVal score A 3 9.998622e-01 1.795338e-04 B 2 …
Phil S.
  • 190
  • 1
  • 3
  • 11
7
votes
3 answers

Scale Y-Axis of a Chart depending on the Values within a section of X-Values for several Series

I have got an aplication like this: With the textboxes below the chart the user can set the min and max of the X-Axis of the Chart. This is the code for it: private void textBoxXaxisMin_TextChanged(object sender, EventArgs e) { double x; …
kimliv
  • 427
  • 1
  • 8
  • 25
7
votes
6 answers

Building a mutliplayer game site

I am building a site that has a lot in common with a person-on-person chess site. I was thinking of using Rails for the front-end(User Registration, Navigation, etc) and something like Scala or Erlang for the engine(Game state and maybe AI). I was…
Joe Cannatti
  • 4,989
  • 5
  • 38
  • 56
7
votes
3 answers

How can i rescale every column in my data frame to a 0-100 scale? (in r)

i am trying to get all the colums of my data frame to be in the same scale.. right now i have something like this... where a is on a 0-1 scale b is on a 100 scale and c is on a 1-5 scale a b c 0 89 4 1 93 3 0 88 5 How would…
Matt.G
  • 95
  • 1
  • 1
  • 4
7
votes
1 answer

Android - common techniques for scaling screen layouts

I realise this topic has been covered to death, and I have read the official and unofficial developer guides on it so know the theory. But I'm still unsure which path to take to ensure my app looks good on multiple screen sizes. My app is a simple…
7
votes
2 answers

Scale SVG around center with plain javascript

I have a problem maybe understanding well how coordinates work ins SVG. I have a javascript function that scales an svg graphic such as that: var g = document.getElementById("graph"); var nm = g.getCTM().multiply(k); //k is the scale…
kandan
  • 715
  • 2
  • 12
  • 39
7
votes
3 answers

scaling statsd with multiple servers

I am laying out an architecture where we will be using statsd and graphite. I understand how graphite works and how a single statsd server could communicate with it. I am wondering how the architecture and set up would work for scaling out statsd…
Shawn
  • 260
  • 4
  • 8
7
votes
3 answers

Cost of scaling Rails vs cost of scaling PHP vs Python frameworks

I guess this question has been asked a lot around. I know Rails can scale because I have worked on it and it's awesome. And there is not much doubt about that as far as PHP frameworks are concerned. I don't want to know which frameworks are…
Rishav Rastogi
  • 15,484
  • 3
  • 42
  • 47
7
votes
3 answers

Scaling ratio in Android images?

I am developing a simple informative system which will use a lot of images. The problem is I do not know how to scale them to the folder of ldpi, mdpi, hdpi, and hdpi. I read that android uses a scaling ratio like 3:4:6:8. Can some explain to me…
nelzkie
  • 235
  • 1
  • 3
  • 15
6
votes
3 answers

iOS CAKeyFrameAnimation Scaling Flickers at animation end

In another test of Key Frame animation I am combining moving a UIImageView (called theImage) along a bezier path and scaling larger it as it moves, resulting in a 2x larger image at the end of the path. My initial code to do this has these elements…
Peter M
  • 7,309
  • 3
  • 50
  • 91
6
votes
1 answer

Best practices to structure a database to be scaling-ready

I know this is a very generic and subjective question, so feel free to vote to close it if it does not meet the StackOverflow netiquette.. but for me, it's worth trying ;) I've never built a high-traffic application since now, so I'm not aware…
Strae
  • 18,807
  • 29
  • 92
  • 131
6
votes
6 answers

Where to do joins - in the database server or in the application server?

I am facing a performance (it can lead to scaling issue later on) issue at the moment. The application I am working on is quite complex and it’s running on SQL Server 2005. I need to join 6 - 7 tables to get the desired data. Each table contains…
Jeff
  • 13,079
  • 23
  • 71
  • 102
6
votes
3 answers

Standardize dataset containing too large values

I standardize features to mean=0 and sd=1 using preprocessing.scale astype('float64'). I got the following warning: UserWarning: Numerical issues were encountered when centering the data and might not be solved. Dataset may contain too large…
De Gninou
  • 257
  • 3
  • 13