scaling

How can I learn to scale in my spare time?

I really would like to learn how to attack problems of scale. Of course, the best way to tackle this is to get a job where I can deal with those sorts of issues. But they're apparently not terribly easy to get. Obviously, I don't have any way to make any services that are going to handle millions of requests a day without a large inve...

How are mobile service provider databases so fast?

i was wondering on how these databases which have over millions of records and millions of lookups per second soo fast. how are they optimised? are there any special servers hosting these databases? how are they scaled? ...

Scaling out: division of labor or redundancy?

This is something I've always wondered about. I understand that horizontal scaling is about adding more machines into the mix. But I can think of two approaches to this. Suppose I have 20 servers I want to use (plus a database). I can: Make all 20 servers run as application servers. Make different servers do different parts of a ta...

What really is scaling?

I've heard that people say that they've made a scalable web application.. What really is scaling? What can be done by developers to make their application scalable? What are the factors that are looked after by developers during scaling? Any tips and tricks about scaling web applications with asp.net and sql server... ...

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 wondering - Is this a good situation to use that type of design? How exactly would be be...

Finding the correct scale value within a scaled object to maintain the aspect ratio of a video.

Hello, I have a video inside of another movieclip. When I go full screen, I scale up the outer movieclip to fit the screen. So that OuterMovieClip.width is equal to screenWidth etc. How do I maintain the aspect ratio on my video so it does not get distorted? Whats the proper math for that? Thank you. ...

How to do multiple MySQL INSERTs in a way that scales (PHP)

We have a loop in our PHP code which inserts rows into a table. e.g.: while ($info = mysql_fetch_assoc($someQuery)) { mysql_query("INSERT INTO X (i,j) VALUES ($info['ii'],$info['jj'])"); } This was fine a few months ago because the loop would only iterate several times. However, due to our website getting more traffic this loop no...

Getting DISTINCT users on Google App Engine

How to do this on Google App Engine (Python): SELECT COUNT(DISTINCT user) FROM event WHERE event_type = "PAGEVIEW" AND t >= start_time AND t <= end_time Long version: I have a Python Google App Engine application with users that generate events, such as pageviews. I would like to know in a given timespan how many unique users genera...

Wpf User Control scale problem

I have a user control that has 5 rectangle shapes in it. I would like to be able to change the size of this control when I use it, but the rectangles don't scale with the control when I put it in the designer and resize it there, they just get covered up or don't expand. This seems like it should be very simple but it's eluding me. <Us...

Form scaling issue on Chinese OS (96 dpi)

Hi All, I have a sample .net application which consist of 2 forms. I have used images and various controls over these forms. When I run this application under XP or Win 7 English version, it works fine. But, when I run this application under Chinese version OS, the form size changes. It increases the form size, causing distorted forms. ...

AS3 Scaling - Clips text and distorts diagonal line on photographs

Hi I used some code that I found, I think even from you guys the scale an external swf being loaded onto a background movie clip. Works great with the exception that it clips some text and creates some funny diagonal lines and some poor picture quality. I have a feeling that this is down to a slight difference in sizing some where along...

Difference between stretching and scaling an image

Hi all! Can anybody please tell me what is the exact difference between stretching and scaling an image? Because you can anyway set the size of image and imageView both to match your requirements. ...

Scaling an SVG in Java

I'm attempting to scale an image, modify it, and then output to another image format. So far, I've been using the apache batik library. For simple conversion, this is easy. For clipping the svg, this is easy. However, I can't seem to figure out how to scale to the full image created by the svg. That is, I can specify the area of interes...

Delphi 7: Application scaling

On my notebook with a screen resolution of 1280x800 I've developed an application. Now I want to use it on a desktop computer with a resolution of 1600x1200. Of course, it's too small on the desktop computer. I've set the sizes so that I could see the whole form on my notebook. But on the desktop computer, everything should be resized. ...

Actionscript 3.0 Tween Error

i'm attempting (so far unsuccessfully) to programatically increase and decrease the scale of an object on stage. there is a Grow button (grow_btn) and a Shrink button (shrink_btn), which increase and decrease the scaleX and scaleY properties of a selected object (either redObject, greenObject or blueObject) over time. the problem i'm...

WPF: How can i scale to fit the content?

hi guys: It gets basicaly to this: I have a canvas container (x:name="Container" - to reffer later to), with some other controls(e.g. I have a Button 30x60 in size) and I want to scale the Container to fit the button, without having to resize anything. (just using scaleTransform) If I set a slider binded to the Container Scale, I can ...

What would be a good way to scale images in C#?

I got a website which contains a lot of projects with each project containing a sidebar. In this sidebar it is possible to attach images to a project. The images attached will be shown in a gallery with 3 small thumbs at the bottom and one bigger image at the top of the gallery. The big image will refresh to another image when a visitor...

WPF performance on scaling a large scene

I have a full screen app that I want to be able to zoom in on certain areas. I have the code working fine, but I notice that when I get closer in, the zoom in animation (which animates the ScaleTransform.ScaleX and ScaleTransform.ScaleY properties on a Parent canvas) starts to jerk down a little and the frame rate suffers. Im not using...

how to apply the center of image view for another image view center

hi, I am developing image redraw app. i know the center of one image view which is having scaling property. i.e it can change it frame and center . that to be applied to another view center. when i apply center to newly formed Image view it giving wrong center because of the previous image view is having scaling property. so how can i ge...

How to scale rotated objects properly in Actionscript 3?

This is unfortunately a quite complex issue to explain, so please don't get discouraged by the wall of text - it's there for a reason. ;) I'm working on a transformation manager for flash, written with Actionscript 3. Users can place objects on the screen, for example a rectangle. This rectangle can then be selected and transformed: mo...