scaling

Distributing users (or anything else) to database servers by hash.

I'm working on early designs for an application that needs to start out small but be highly scalable. I'm particularly worried about the user database, which in this case will have a high INSERT and UPDATE load, and is unlikely to survive long on a single master. (Although my question isn't tied to any particular RDBMS, for the record, ...

One massive instance of an app, or many medium-sized ones?

A web application we wrote intended for one customer is going to be product-ized and sold to dozens of companies, and we will be doing the hosting. I could use some guidance about the pros and cons of rolling out a seperate instance for each customer versus going with a single (or very small number of) multi-tenant instances. At first...

Do I need to scale a picture myself before printing?

A simple question - If I want to print a picture so it best fits the page in C#, do I have to scale it to the dimensions of the page myself ? I've noticed the many good answers about how-to scale, I just want to know If I need to scale myself, as the scaling isn't a part of an image processing, it's only for the sake of the printing. ...

Scalable painting of a Qt application

I'm writing a simulation of an embedded device's screen (which contains custom widgets on top of a main QWidget), and while the native size of the screen is 800x600, I want to be able to scale it up and down by dragging the window's corner. Without diddling with grid layouts and stretchers (which won't scale the fonts up/down), how do I ...

Full viewport height scaling div just css no js... Possible?

Ok, I'm trying to get a div to scale and the height is always the height of the viewport. I'm going to link to my examples as it needs some explaining. www.madmediablitz.com/tv/precentdemo.html The link above is the closest I've come to a solution and I'm hoping that someone here will find it simple to fix. What I want to happen is the...

Overlaying 2D paths on UIImage without scaling artifacts

I need to draw a path along the shape of an image in a way that it is always matching its position on the image independent of the image scale. Think of this like the hybrid view of Google Maps where streets names and roads are superimposed on top of the aerial pictures. Furthermore, this path will be drawn by the user's finger movement...

NSToolbarItem image scaling

Why is this happening: As you can see, in the "Allowed Toolbar Items" the image looks fine for the "PHP" toolbar item, and when its actually in the toolbar, it scales weirdly. Thanks ...

when to start performance tuning a website

i have a asp.net mvc website and the volume of traffic is increasing. I have the site pointing to a backend sql server 2008 database. at what point, do i need to figure out what the bottleneck of the system and look to review if i need to load balance machines, or change the way i am doing database connection management. are there spe...

Flex mx:axisrenderer How do I prevent the labels from being scaled.

Hi there, I have a line chart that sometimes contains a number of data points. I have solved how to prevent the horizontal axis from displaying too many labels using custom label functions and data functions. My problem is forcing the AxisRenderer not to scale down my labels. I'm using the labelRotation property so the canDropLabels a...

Need someone to verify that my math is correct

I've been sitting with a pencil for the better part of the evening trying to recall how to implement a scalable viewport that can navigate a 2D area. It's been a while since I've first heard of it, but I think I've figured it out, I just need to verify. We have a 2D world with a "classic" cartesian coordinate system, x-axis points to th...

How to partition Mysql across MULTIPLE SERVERS?

I know that horizontal partitioning...you can create many tables. How can you do this with multiple servers? This will allow Mysql to scale. Create X tables on X servers? Does anyone care to explain, or have a good beginner's tutorial (step-by-step) that teaches you how to partition across multiple servers? ...

Hosting managed applications on Azure

We have an ASP.net web application and would like to host on Azure to scale to thousands on concurrent users. Also have a bunch of application and services written in .NET that the web app accesses using TCP/IP or .net remoting which handle long running processes. For example a media transcoder server, a system monitor, image server, sch...

Which would you prefer? SVG, HTML5 or regen'd-PNG for graphs & charts?

I'm developing a new site that graphs some operational metrics. As such about a dozen charts/graphs will be displayed on the site. I want to be able to have them dynamically scale down (within reason) based upon the size of the browser. I'm debating the pros/cons of generating these as one of these options: SVG. Great for scaling b...

WPF font scaling

I have a WPF application where the user interface should be scaled so that it should become larger if the windows is made larger. In one of the dialogs, I need to present a list of items to a user and the user should click one of them. The list will contain from 1 to around 15-20 items. I want the font size for each individual item to be...

High-traffic, Highly-secure web API, what language?

If you were planning on building a high-traffic, very secure site what language would you use? For example, if you were planning on say building an authorize.net-scale site, that had to handle tons of credit card transactions via an API, what would you use building it from scratch? I would imagine that most sites handling similar tra...

Using EC2 Load Balancing with Existing Wordpress Blog

Hello, I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I'm assuming) cause the server CPU to run at 100% and slow down everything. I'm currently using WP-Super-Cache, S3, and CloudFront for most static fi...

AS3 proportionally scaling external image

Currently I am using a for loop to dynamically load XML images and place them in a grid as thumbnails. I have the arrangement set and all the data is loading smoothly, but now I need to make the images scale to small 100px x 100px thumbs in small container movieclips. My code is as follows. import gs.*; import gs.easing.*; var bttnH...

Performance tuning CakePHP application

I just got this quite large CakePHP app (about 20k lines of code), which isn't very clean and there is no documentation at all. The app is running in production, but it has really major problems with performance. Server is Quad core with 8GB RAM, but the app can serve only about 3-4 requests/s, which is very very bad. Each request take...

C# Resized images have black borders.

I have a problem with image scaling in .NET. I use the standard Graphics type to resize images like in this example: public static Image Scale(Image sourceImage, int destWidth, int destHeight) { Bitmap toReturn = new Bitmap(sourceImage, destWidth, destHeight); toReturn.SetResolution(sourceImage.HorizontalResolution, sou...

Host blog on different server?

Currently I have my companies blog on the same server as our main web app - as in website.com/blog What would be the easiest way to move the blog to a different server yet still let users either access the blog at website.com/blog or blog.website.com? ...