scaling

scaling function used by BitmapData.draw function?

What scaling functions are used by the BitmapData.draw function for smooth and not smooth drawing? (Libraries like clevrlib allow for bilinear and bicubic sampling, which suggests that neither is what flash is doing natively.) ...

How to scale MySQL with multiple machines?

I have a web app running LAMP. We recently have an increase in load and is now looking at solutions to scale. Scaling apache is pretty easy we are just going to have multiple multiple machines hosting it and round robin the incoming traffic. However, each instance of apache will talk with MySQL and eventually MySQL will be overloaded. ...

Problematic data patterns, performance-wise

Assertion: the performance of SQL databases degrades when the volume of data becomes very large (say, tens or hunderds of terabytes). This means certain patterns in database design which are reasonable for most small-to-medium sized databases break down when the database grows. For (a rather general) example, there is a trend that moves...

Reset Scale in a GDI+ Transformation Matrix

I'm writing a function to draw UI handles (rotate, resize and so on) in my client area in a Windows Forms application. The function is called when an object is selected. The caller sends me a Graphics object properly rotated, scaled and translated to fit into the larger scheme of things (the selected object has its own rotation/translat...

Planning Scalable Web Application Development

What language, framework, and hosting considerations should one make before starting development of a scalable web application? ...

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 queue to post any writes to my database base to and have a process which polls that queue ...

scale object size viewport-> preview

Hi. I toying with a project where I can position objects runtime on the screen. I also have an small "preview"-window, where I want to see the outline of the objects. I have an object array who have size and location on the "scene". Now I want to loop through my scene-objects and create one picturebox in the preview-window for each obj...

How to scale the Quartz scheduler?

I plan to use the Quartz scheduler as I read many good opinions about it. My problem is as follows: I will have thousands of triggers living in the system at any given time. Most of the triggers will fire just one event and die. In addition, it is very likely I will have to cancel many jobs after their allocation (based on new input). ...

Java2D: scaling issues

Hi all, I'm a reasonably experienced Java programmer but relatively new to Java2D. I'm trying to scale an image but I'm getting poor quality results. The image is a preview of a panel so contains things like text and textfields. I'll always be scaling down, never up. Currently I'm using the following code:- g.drawImage(panelImage, 0, ...

HTML default element size (Scaling HTML pages)

Hello, Is there a way to work out the likely size of an HTML element, an H1 tag for example in pixels relative to the size of the view port. I am wanting to display HTML pages within within pages, and I want to scale the content appropriately. Clearly, if an element specifies a height in px or similar, I can scale that down easily, but...

Advice on how to scale and improve execution times of a "pivot-based query" on a billion rows table, increasing one million a day.

Our company is developing an internal project to parse text files. Those text files are composed of metadata which is extracted using regular expresions. Ten computers are 24/7 parsing the text files and feeding a high-end Intel Xeon SQL Server 2005 database with the extracted metadata. The simplified database schema looks like this: ...

calculate mp3 average volume.

I need to know the average volume of an mp3 file so that when I convert it to mp3 (at a different bitrate) I can scale the volume too, to normalize it... Therefore I need a command line tool / ruby library that gives me the average volume in dB. ...

Whats the best way to transport a file to a different server?

Im running a file host thats grown beyond the capacity of a single server, and I need to implement multiple server storage of files. I'd like to do this as cheap as possible, so those fancy mass storage methods are out of the question. I simply want to move a file thats uploaded by the user to the "gateway" server, which hosts all the ht...

DataGridView Scaling

In VB.net 3.5 SP1 I have a Windows Form with three DataGridView controls. One DGV takes up the whole bottom half of the form. The other two share the top half and are side-by-side. I'd like to have each DataGridView scale appropriately. More specifically I'd like to have column widths and row heights adjust to the size of the form....

how to resize a scale 9 grid enabled MovieClip that contains text with an embedded font ?

Hi, This might be simple one, since it's a design question mode than development ( think drawing UI graphics not OOD :) ) I've realized I haven't used the Flash IDE for design in a while. I created a simple button that has rounded corners and is made of: a background clip a base color clip a text field a highlight This is what I've...

Swing: What is a good way to implement fully-scalable components?

I am creating an application which has a scrollable and scalable (zoomable) view. Inside this view I want to place other components (most of them customized JPanels and JInternalFrames). Things such as fonts and borders, and sub-elements such as buttons don't need to be scalable. Only dimensions and position of container components shou...

Best scaling methodologies for a highly traffic web application?

We have a new project for a web app that will display banners ads on websites (as a network) and our estimate is for it to handle 20 to 40 billion impressions a month. Our current language is in ASP...but are moving to PHP. Does PHP 5 has its limit with scaling web application? Or, should I have our team invest in picking up JSP? Or, i...

Designing an MFC App That Will Work on All Resolutions?

I'm currently designing my first ever GUI for Windows. I'm using MFC and Visual Studio 2008. The monitor I have been designing my program on has 1680x1050 native resolution. If I compile and send my program to one of my coworkers to run on their computer (generally a laptop running at 1024x768), my program will not fit on their screen. ...

HAProxy and "sharding"

I was wondering if anyone has used HAProxy for sharding. Specifically, I would like to be able use a cookie I define w/a identifier and have any client that presents that cookie/identifier combination be directed to the same server. It seems possible and my preliminary tests seem to work but I am not a sure. My listen configuration look...

How can I fix this scaling issue with soft deleting items?

I have a database where most tables have a delete flag for the tables. So the system soft deletes items (so they are no longer accessible unless by admins for example) What worries me is in a few years, when the tables are much larger, is that the overall speed of the system is going to be reduced. What can I do to counteract effects l...