scaling

When is a good time to start thinking about scaling?

I've been designing a site over the past couple days, and been doing some research into different aspects of scaling a site horizontally. If things go as planned, in a few months (years?) I know I'd need to worry about scaling the site up and out, since the resources it would end up consuming would be huge. So, this got me to thinking,...

Scale down whole website [into iFrame]

I was wondering if there is a (webbased) way to scale down a whole website and put it into an iframe. [including images etc], so that a user would get a fully functional preview of the website (only for websites without frame busting methods of course). ...

Jquery image slider window resize scaling issue

Hi, I have created image gallery slider, the images of which scale with the window size. My problem is I can't seem to create the right formula to ensure that the slider is at the right position when the window is scaled. If I am at the first image and the slider 'left' offset is 0 then the scaling works fine and my offset is correct, ...

What does the filter parameter to createScaledBitmap do?

The declaration of android.graphics.Bitmap.createScaledBitmap is public static Bitmap createScaledBitmap (Bitmap src, int dstWidth, int dstHeight, boolean filter) However, the documentation doesn't explain any of the parameters. All of them are pretty obvious except for boolean filter. Does anyone know what it does? ...

General advice about scaling on QGraphicsView/QGraphicsScene

Hi, In my project I am using QGraphicsView/QGraphicsScene stuff. On my scene there will be regions that contains 2D graphics. Region count will be limited(Lets say 20) Users can choose to display one or more regions. If user choose to display one region I am going to show one region on scene If user choose to display n regions I am goin...

Scaling ratio of two different resolutions

I have two different resolutions, the original one is 567x756 (wXh), the one which I want to display is 768x1024 (wXh). How to find out the scaling ratio for these two resolutions? For example if the font size used in 567x756 resolution is 7 pts then whats the values I should multiply with the font size (7 pts) to display the text in 768...

Amazon Autoscaling trigger not working, how do I debug it?

I'm trying to use autoscaling to create new EC2 instances whenever average CPU load on existing instances goes high. Here's the situation: I'm setting up autoscaling using this boto script (with keys and image names removed). http://balti.ukcod.org.uk/~francis/tmp/start_scaling_ptdaemon.nokeys.py I've got min_size set to 2, and the Au...

Scalability comparison between different DBMSs

By what factor does the performance (read queries/sec) increase when a machine is added to a cluster of machines running either: a Bigtable-like database MySQL? Google's research paper on Bigtable suggests that "near-linear" scaling is achieved can be achieved with Bigtable. This page here featuring MySQL's marketing jargon suggest...

Creating a grid of scaled ImageViews [Android]?

I need to make a grid whose width and height is the same as the screen. I guess I would somehow use DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); to do this but I need to scale the images inside so that each ImageView is 1/10th of the width of the screen (with 10 images for ...

Printing image or canvas in Flex3 - scale error

I'm trying to print an Image and/or Canvas with ActionScript - however scaling doesn't work. I'm trying to scale down the image/canvas to have it fit to page. During testing it seems that Flex doesn't care if I set the size of the Image/Canvas trough width/height properties or scaleX/scaleY properties, it just chooses to print the conten...

Heroku Dyno/Worker Scaling

Heroku allows you to add and remove dynos and workers on the fly and charges you per second that each is used. Is it possible to set up my app so that it can add/remove dynos and workers from itself depending on the load it's under via some sort of heroku api? ...

MySQL: how to ensure integrity in multiple read only architecture

Scenario is simple to describe, but might have a complex answer: Imagine a case where you have one write only mysql database. Then you have about 5 or 6 read only databases. The write database has a count for a particular inventory. You have hundreds of thousands of users banging away at this particular inventory item, but only limited ...

SVG Polyline (and Path) Scaling Issue

I have written a mathematical software that is able to plot graphs (among other things). First it creates the graph itself, i.e. a set (or list, call it whatever you want) of points { (x0, y0), (x1, y1), ..., (xn, yn) }, and then lines are drawn between these points. On-screen, using either Windows GDI or OpenGL, it looks great, if onl...

Why is flash resizing my images?

O.K I'm really confused about some resizing behaviour in flex and I'm hoping somebody can explain whats going on to me. I have a container movieclip 3 movieclips deep. MC2 is inside MC1 and MC3 is inside MC2. I have another movieclip that contains a bimap image that is 55 pixels wide and 38 pixels high. When I add this movieclip to M...

Strange HTML5 Canvas drawImage behaviour.

I am writing some code that uses HTML5 canvas. Genereally it works well, but now I found a very strange behaviour. The weird thing is that it is consistent on different browsers, so must be that I understood the thing wrong... despite this the docs seem to say exactly what I do. Here is the code (it's an object method): MyCanvas.prot...

How to scale up a PDF containing a vector-based graphic drawn by CGContextDrawPDFPage in Cocoa Touch

Hi guys, ok so here is what I want to do: Load a PDF containing a vector graphic Scale it up Draw it to a graphics context Create a UIImage from the result and present it Everything works fine, except the fact that the graphic loses quality and looks pixelized :( Here is the code where the scaling happens: // PDF loaded before CGP...

In a WPF user control, how do I specify coordinates relative to the control's total size, so that the control will scale correctly?

I have created this simple expand button user control with WPF:          I designed the thing with Width and Height both set to 100 so that I could see what I'm actually doing. The stripped-down XAML of this user control is: <UserControl x:Class="Foobar.ExpandButton" ... Width="100" Height="100"> ... ...

foreach Control loop misses hidden controls

Hey there. The program I'm working on at the moment uses C# WinForms (on the 2.0 .NET Framework, though that probably won't make a difference in this case). The design calls for the ability to scale a form and all of its controls up and down. I did this by looping through each of the controls, saving their original sizes and locations, ...

ASP.Net intelligent scaling page based on page content

Like iPhone Safari Browser or Firefox (Ctrl + Scrolling), I need intelligent scaling where not only Divs but also font-size and images are scaled based on the viewable area of the screen. I need to implement this in ASP.Net. Any suggestion? Regards Thant Zin ...

Scaling Up a Number

How do I scale a number up to the nearest ten, hundred, thousand, etc... Ex. num = 11 round up to 20 num = 15 round up to 20 num = 115 round up to 200 num = 4334 round up to 5000 ...