resolution

C++ overload resolution problem

I've got the following structure: struct A { A(); virtual ~A(); virtual void Foo() =0; }; struct E; struct F; struct B: public A { B(); virtual ~B(); virtual void Bar(E*) =0; virtual void Bar(F*) =0; }; struct C: public B { C(); virtual ~C(); void Bar(E*); }; struct D: public C { ...

Merge tool capable of merging conflicting changes

I'm currently using TortoiseSVN to do a merge of two branches and I've found that its not smart enough to handle a specific merging senario. In one branch I have a method as follows: MyMethod(parameter1, parameter2, parameter3) In the other branch I have the same method as follows: MyMethod(parameter1, parameter2, parameter4) Tort...

WPF : Automatic controls sizing

Hellow. I'd like to know if there were a kind of automatic control sizing in WPF. I mean, a way to auto size element regarding to the user's screen resolution, without having to define it in the code. thanks. ...

Get iPhone's camera resolution?

Is there any way to get the resolution of the iPhone's camera? Apparently the 3G has 1200x1600, and 3GS has 1500x2000, but how do I obtain these values from inside my code (without taking the picture). I need them to make some affine transform to the camera preview. I could detect if it's 3G or 3GS to hardcode these values, but it's jus...

print bitmap on a specific resolution

Hi, I have several large image files (32bpp, 50 megapixel) that I draw on top of each other, because they are partly transparent. I want to print the images on the PrintPreviewDialog. If I draw directly on the PrintPage the resolution is super but the printdocument is huge (200Mb) If I draw on a bitmap that has the size of the paperfo...

java inheritance resolution in case of instance methods and variables

Hi As per java, instance method resolution is based on runtime types of the arguments. But while resolving instance variable it uses different approach as shown below. Output of program is .. Child Parent ParentNonStatic Here First output is based on runtime types of the argument but third output is not. can any on...

Resolution support in Android 2.0

Received an email from my first Motorola Droid user. The new 480x854 resolution introduced in Android 2.0 (as opposed to 320x480) is wreaking havoc with my user interfaces. Everything is smaller and ill-positioned. I was under the impression that if we follow the XML layout guides we were resolution-safe, as no absolute coordinates are ...

Html printed page resolution (or size in pixels)

Does anybody know what is the resolution that will be used to render a printed HTML page. I'd like to know what size (in centimeters or inches) will be a printed image of say 500x500pixels. I know this value will change if I set the zoom value (IE and FF), but I am interested in the default value (when zoom is at 100%). Also, is there a...

Change the whole content of site depending on monitor resolution

In my site I am applying a stylesheet depending upon the resolution of the viewer's monitor. By using screen.width in javascript i do this. But now I have a doubt that can I use the same technique to change the whole content of the site depending upon the resolution, i.e, for higher resolutions more contents and for lesser, fewer. Or you...

Type inference over IEnumerable<T>

There are a few posts already on stack overflow about this sort of thing but not exactly the same - so apologies in advance if this is something that has already been answered. Why does this not work: public class MyBase { } public class MyUtils { public bool Foo<T> (T myObject) { return true; } public bool Foo (MyBase myBaseObject)...

AppleScript how to get current display resolution?

Hi, I'm trying to get the current display resolution of both of my displays depending on where the mouse cursor is. i.e. when the mouse cursor is on the first display I want to get the resolution of this display. With a shell script I can get both resolutions: set screenWidth to (do shell script "system_profiler SPDisplaysDataType | ...

Objective C - how to get current screen resolution?

Hi, is there any way to get the users screen resolution with objective c? Thanks. Solution: int width = [[NSScreen mainScreen] frame].size.width; int height = [[NSScreen mainScreen] frame].size.height; ...

Determining Millisecond Time Intervals In Cocoa

Just as background, I'm building an application in Cocoa. This application existed originally in C++ in another environment. I'd like to do as much as possible in Objective-C. My questions are: 1) How do I compute, as an integer, the number of milliseconds between now and the previous time I remembered as now? 2) When used in an obj...

standard for resolving a urn:uuid (and other)?

My application uses urn:uuid as URIs for entities. Of course, when I get, e.g. RDF information about a resource, the referred entities (subject or objects) will contain URIs in the urn:uuid schema. To fetch the representation of the new entity, possibly in a REST way, I need a "resolver", similar in some way to dx.doi.org for DOIs. Anoth...

screen resolution issue when manually maximizing application

In our WPF applicaiton, we're using WindowStyle="None" in order to give our application a more custom look. The maximize/minimize buttons are in the same place, but styled the way we want them. As such, we're hijacking the maximize and minimize behavior and doing it manually. We're doing the following: this.Top = myScreen.WorkingArea...

Testing tool for browser/resolution issues

I just looked at my site (http://softserv.ca) on a laptop and the background images used along the top and top-right looked horrible -- very grainy and striated. It was IE8 on XP. I couldn't check the screen resolution, but it didn't look like anything out of the ordinary. I'd like to know what typically causes such striation, and als...

resolution in WPF

Hi, In my applcaiton,i make Grid of size Grid Width="1300.441" Height="80", Its working fien in this resolution.But when i changed my resolution to 1152 width,quater of application get out of the desktop. How can i avoid that? I want to display full page in all resolution. Pls help me ...

Screen Resolution, Fluid Layouts, Restoring

I love making fluid layouts, but as we all know, one of its problems is that on larger screens, it can cause text to horizontally extend to uncomfortable lengths. I myself only have a moderate screen size, so I'm wondering this. Do people with gargantuan screens typically restore their window and set it to a more moderate width (multita...

Webcam Capture Resolution issues

Hi all, I'm making my own webcam timelapsing application, but having issues with some webcams. The one in particular advertises that it can take 5MP photos, but it runs a native 320x240 (or something horrible) which is the feed that I'm getting. I'm using code that seems to be well copy-and-pasted across the web, the incarnation I'm us...

Windows Forms resolution problem

I have developed a 1024 *780 resolution screen in Windows Forms, but some say that it does not fit properly at higher resolutions. Is there any way to handle this? Is there a way to make Windows Forms applications look the same at ALL resolutions? ...