area

Sum up Area for material in Components, Google Sketchup

I am making a plugin to sum up the area of all the material in a Sketch. I have succeeded in getting all the faces and such, but now the Components come into the picture. Im using the term single or multi leveled component as i dont know any better way to explain the occurence of having a component inside an component and so on. I have...

Way to determine the visible size of the web page

Is there a way for knowing what size was the visible portion of a page? Are there any services that provide this? I mean, not just screen resolution, but available browser area. When a user has a lot of browser toolbars the area left for the webpage gets reduced. On the other hand, using Chrome may maximize the available space. Thanks ...

Scrollable Content areas on Mobile Safari

I'm developing a web app for iOS devices, and want to have a header that stays on the top, and then two scrollable content areas underneath it, kind of like Gmail's iPad interface and the iPad split-view apps. Does anyone know how? I've looked at http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/, which has a good so...

How can I modify the Joomla search component to use default search areas?

I'm using a Joomla 1.5 installation and the Joomla search component allows you to search in certain "search areas": Articles / News Feeds / Sections / Categories / Web Links ... I don't want my users to have to worry about these things however and I also don't want them getting "sections" or "categories" as results - it's just a simple ...

how to map background image in div tag

I wanted to create a box that you could click on and be forwarded to "#" so I thought this would be a good idea: But unfortuneatly areamaps couldn't be used in div or p tags :/ Anyone have an idea what a good solution would be? ...

ASP.Net MVC 2 Area, SubArea and Routes

I have been looking around for a solution for my problem. Found alot of similar issues, but none of them led to a solution for me. I am trying to register an Area within an Area. This works however it "partially" screws up my routing. My route registrations in the order they are registered, consider the FooBar and Foo registrations to...

Restrict Area to a given role

I have an area setup in MVC2, called Admin/, which I want I only want Users who belong to the role "admins" to have access. I know I can decorate each of the methods with [Authorize(Roles="admins")], but this seems tedious when your talking about multiple controllers with multiple actions. Is there an better and cleaner way? ...

Get HTML area tag name from Javascript?

I would like to display area tag name after a person clicks on it. Unfortunately when I use code below for map area I get undefined name of obiekt name. It's weird because for textbox 'kot' it works well. <script> function metoda(obiekt) { alert(obiekt.name); //Here I get undefined! } </script> <input type='text' value='kot' nam...

How Do I Calculate the Area of a Polygon in a MySQL Database When the Polygon's Points are Lat Longs?

Hi, How do I calculate the area of a polygon stored in a MySql database? The polygons' points are lat longs. So, degrees and minutes seem to be causing a problem. I've tried: SELECT AREA( my_polygon ) FROM `my_table` WHERE name = 'Newport' Because, the points are lat longs, I get weird results. (I'm not able to switch to Post...

Android: Measure/detect covered area by a finger touch on screen (NOT only touch coordinates)

Hi I would like to get access to the area covered by a finger for each touch event on an Android. Every touch event will result in a coordinate pair X and Y independent of how big the finger and consequently the touch area is that triggered the event. I was wondering if there is a way to get the area data which triggered the touch eve...

How do I calculate width and height when increasing area of box

If I had a box 100px wide by 50px high, so the area is 500px squared. what is the formula for calculating the new height and width of the container in pixels if I wanted to increase the overall area by 20% or 50% or whatever? ...

Second layer of authentication in ASP.NET MVC2 application

We have an ASP.NET application that's partly in MVC (the rest of it being a legacy webforms-based CMS). The application is authenticated via Forms Authentication, although any user accessing it from a specific set of IP addresses are automatically assigned to a "special" user. We currently have a child application that we would ideally...

Peoplecode- Range in Scroll area grid

I have a scroll area and grid. What I want is when the user clicked the save button and for example he/she is on the range of 21-30 rows, after the save button was clicked, the page will still remain on the 21-30 range. It's because my page go back from the starting range when I clicked the save button which is from 1-10. The cursor s...

How do you calculate the area of a series of random points?

So I'm working on a piece of code to take positional data for a RC Plane Crop Duster and compute the total surface area transversed (without double counting any area). I cannot figure out how to calculate the area for a given period of operation. Given the following Table Calculate the area the points cover. x,y 1,2 1,5 4,3 6,6 3,4 3,...

image-map associated with more than one image

Let's say there are several identical images on the page, all associated with the same map: <img id="img1" usemap="#my-map" .... > <img id="img2" usemap="#my-map" .... > <img id="img3" usemap="#my-map" .... > <map name="my-map"> <area .... coords=... class="foo"> <area .... coords=... class="bar"> </map> There is a mouseover ev...

Area covered by a point cloud with R

Hi R experts! I have a cloud of points scattered in a 2D Euclidean space. I would like to calculate the area inside the polygon linking the most extreme (=peripheral) points of the cloud. In other words, I would like to estimate the area covered by the cloud in this space. Is there a formula in R? Thanks a lot for any response Julien ...

ASPNET MVC: ow can I make a page located in a given area (as opposed to the root structure) as default?

Hello, How and where do I configure my application so that, when it launches, the action (thus the page to be displayed) be, not in the root structure, but rather in a given area of my choice? Let's say, Action = "IndexOfArticles", Controller = "Articles", Area = "News". I want this setting to be the default when I launch the applicat...

How do you verify that a 2d bitmap is contiguous?

Let's say you have the following structure in C#: struct Piece : IEquatable<Piece> { public readonly int size; public readonly bool[,] data; public Piece(Piece p) { size = p.size; data = (bool[,])p.data.Clone(); } public Piece(int s, bool[,] d) { size = s; if (d.GetLength(0) != s || ...

Gnuplot plot area background

How to set the background only in the plot area? I wahnt my chart look like this http://pchart.sourceforge.net/screenshots.php?ID=1 ...

Windows Security Template to Allow CAN Controller Access

I'd like to see advice on how the security template should be configured to permit CAN controller access from an application. Thank you. ...