How can I automatically calculate axis scale and intervals?
Does anyone know where I can find an algorithm that given a set of values (dates) for an axis I can calculate a reasonable scale and tick interval? ...
Does anyone know where I can find an algorithm that given a set of values (dates) for an axis I can calculate a reasonable scale and tick interval? ...
Hi, I need to transmit the image from the mobile phone to the server. I am able to reduce the image screen size but not the memory size. I understand i have to deal with the color depth. J2ME does not seem to offer any scaling method which is available in J2SE: image rescaled = image.getScaledInstance(thumbWidth, thumbHeight, Image.SC...
This came up in a conversation I was having online, and it occured to me that I have no idea how this is supposed to work: Quite a lot of programmers seem to just take as a given- indeed, obvious that classes are a necessary language feature for managing huge software projects. It's not obvious to me how they do this. My question to yo...
I've been having a brief look at NHibernate and Linq2Sql. I'm also intending to have a peek at Entity Framework. The question that gets raised, when I talk of these ORM's is "They can't scale", so can they? From Google I get the impression they're able to scale well, but ultimately I suppose there must be a price to pay, Is it worth pay...
Hello, I have a simple UIImageView with an image that is larger then the display (600x1400). The image starts with Fit to Aspect, so the bounds of the UIImgageView report 320x750, still larger then the display, but that's OK. I know of a point (300, 150) relative to the original dimensions of image (600x1400) that I want to scale and ...
I have an application in Grails. I use Hibernate to access the database (per standard grails rules) I use MySql and the site works and is stable (for 6 months). I am doing load testing, and recently discovered that the database rejects connections when under load. Using MySQL Server 5, I can see threads connected hovering around 20. Th...
How do I get my OwnerDrawn UserControl to respect the users dpi (96/120/xxx) and/or font-size (normal, large, extra large)? Some people suggest to use the DpiX and DpiY properties on a Graphics object, but that doesn't seem to to anything in my control (i.e. they are always set to 96, regardless of which font-size or dpi I choose). The...
I would like to downsize a Texture2D object to another Texture2D object in XNA. The reason is to use the downsized object for pixel based collision detection. Can this be done? ...
I'm trying to scale an image down, change the image, then scale it back up. CABasicAnimation* shrink = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; shrink.toValue = [NSNumber numberWithDouble:0]; shrink.duration = 1; shrink.delegate = self; [myImageView.layer addAnimation:shrink forKey:@"shrink"]; makes the shri...
I want to plot a graph with one logarithmic axis using matplotlib. I've been reading the docs, but can't figure out the syntax. I know that it's probably something simple like 'scale=linear' in the plot arguments, but I can't seem to get it right Sample program: from pylab import * import matplotlib.pyplot as pyplot a = [ pow(10,i)...
Alright quick overview I have looked into the knapsack problem http://en.wikipedia.org/wiki/Knapsack_problem and i know it is what i need for my project, but the complicated part of my project would be that i need multiple sacks inside a main sack. The large knapsack that holds all the "bags" can only carry x amount of "bags" (lets s...
I have an image viewer I wrote in Flex that scales the size of the image you're currently viewing based on the size of the browser. This is what the tag looks like: <mx:Image id="img" maintainAspectRatio="true" source="{horizontalList.selectedItem.image}-large.jpg" height="100%" horizontalCenter="0" horizontalAlign=...
TB hard drives are available for the desktop and it's getting hard to remember what the order of the SI prefixes being used are. It occurs to me that I really have no idea what kid of scale is considered how big. I'm looking for a yardstick to compare them to. So, what is a really huge DB now days? What is the best measure; GB of data? m...
Hi, I have a user control that I'd like to show when the user clicks a button. That's not a problem, using af Popup control. However, I'd like to have the user control fade-in and scale from 0.5 to 1.2 and back to 1.0 (both X and Y) at the same time. How do I do that? ...
I'm writing code to use UIImagePickerController. Corey previously posted some nice sample code on SO related to cropping and scaling. However, it doesn't have implementations of cropImage:to:andScaleTo: nor straightenAndScaleImage(). Here's how they're used: newImage = [self cropImage:originalImage to:croppingRect andScaleTo:scaledIma...
When reading about frameworks (.net. ruby on rails, django, spring, etc.), I keep seeing so and so does or doesn't scale well. What does it mean when someone says that a framework "scales well" and what does it mean to say a framework "doesn't scale well"? Thank you. ...
Hi, I would need a scale-widget in SWT that looks like the following example: http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Scales.htm If I run this example under Ubuntu (Gnome) the scale looks like this: http:// book.javanb.com/swt-the-standard-widget-toolkit/ch10lev1sec2.html But actually I would prefer to have these steps besid...
I have a web application that needs to display 30,000 markers on a map at the same time. I don't want to use any kind of clustering. I need them to all be displayed. I also need them to be clickable. The user can click on each point and a popup will come up with information about that point. Even at a low zoom level when there are thous...
Hi Everyone, I'm creating a subclass of UIImageView that detects touches, and will move, rotate and scale the image based on the touches. However, I really feel like I'm reinventing the wheel here, and it's driving me nuts. Shouldn't this already exist somewhere? Does anyone have any examples, or links to a class that is already doin...
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. ...