I'm getting a bit confused on how to use the simulator to build applications that need to support the new higher resolution of the iphone 4.
I would except when selecting the iphone4 simulator to run the app on that [[UIScreen mainScreen] bounds] would give me 960x640 back, but instead it still giving me the old resolution (480x320) ?
...
Is it possible to snap the draggable to only four points on the site?
I tried to do it with some conditions in the drag event, but it didn't work. The hleper is still moving across the whole page.
...
I have two tables:
regions <id>
points <region_id, x, y>
Assuming there are exactly 4 points per region, and these points describe a rectangle -- is there an SQL query that will bring me this view:
rectangular_regions <region_id, x1, y1, x2, y2>
?
...
Hello.
I have two devices - HTC Tattoo and Sony Ericsson Xperia X10. One has 145 DPI, the other 245 DPI.
When I specify font size for a TextView in points, like this:
textView.setTextSize(TypedValue.COMPLEX_UNIT_PT, 6.5f);
I get different physical size of text on these two devices. On 245 DPI, the text is barely readable.
Now, "pt"...
I have a class with a member
ObservableCollection<Point> Points;
I want a custom usercontrol that shows a canvas with these points on it, drawn as a closed polygon, and the user should be able to select and move individual points.
I've googled around and found a lot of stuff on adorners, moving controls etc.,
but I'm still confused ...
I am in my way of finishing the graphs for a paper and decided (after a discussion on stats.stackoverflow), in order to transmit as much information as possible, to create the following graph that present both in the foreground the means and in the background the raw data:
However, one problem remains and that is overplotting. For exam...
I already have my xy graph using the line graph. What troubles me is how can I ask matlab to give me the value of y if I give the value of x. That is, the corresponding value of y when I give x in the line I have in the graph.
...
I'm working with 3D mesh data, where I have lots of 3D triangles which I need to rotate to eliminate the Z value, converting it to a 2D triangle.
With this 2D triangle I'm doing some vector calculations.
After I'm done with my work I need to rotate it back to the original angle such that the old points return back to their original pos...
Is there a way to catch a click event on a TabControl tab so that you can say if clicked at a certain point that it doesn't switch to the clicked tab?
Here is the code that is used to find the area that if clicked in i do not want it to switch tabs.
RectangleF closeArea = (RectangleF)tabStrip2.DisplayRectangle;
closeArea = ...
In photoshop, my text size is 5.12pt and font type is Arial.
My base font size for my website is 13px/1.23 Arial.
How would I convert the 5.12pt size to the same size on web?
Thanks!
...