dimensions

MDX: Calculated Dimensions?

I don't know if this is possible or not, or if my limited knowledge of MDX is pushing me in the wrong direction... The cube I'm dealing with has two different dimensions for dates, [Statement Dates] and [Premium Dates]. Further in the hierarchy of each looks like this: [Statement Dates].[Statement Year].[2008] [Payment Dates].[Payment...

Total width of element (including padding and border) in jQuery

As in the subject, how can one get the total width of an element, including its border and padding, using jQuery? I've got the jQuery dimensions plugin, and running .width() on my 760px-wide, 10px padding DIV returns 760. Perhaps I'm doing something wrong, but if my element manifests itself as 780 pixels wide and Firebug tells me that ...

How to retrieve coords (x,y,w,h) of a rendered canvas element?

How i can get coords of a rendered canvas element? I need them to apply clearRect, fillRect etc to its area. I get the canvas: //html <div><canvas id="canvas_id">some useless text..</canvas></div> //javascript var ctx = document.getElementById('canvas_id').getContext('2d'); Then? there is a way to get top left x, top left y, widt...

Retrieving SWF / FLV dimensions in VB.net

I'm uploading a flv / swf file and I need to capture the dimensions of those files so I could later retrieve it from a database and embed it into a page. Any suggestions of how I could do it in code behind? ...

how to get the PageFormat from a Java.awt.print.PrinterJob

Hi, I'm trying to use the PageFormat information to modify my javax.swing based printout prior to printing it. I am stumped as to how I can get the PageFormat from the PrintJob (which is obtained using getPrinterJob() and printDialog()). I know there is the getPageFormat method, but I can't figure out how to get the PrintRequestAttribu...

SSAS - Inferred Dimension Attributes - are they necessary?

I have a cube with fact tables that have a parent-child relationship: Person - Case. Some dimensions are inferred from the parent, e.g. State in the example below. Person does not have a foreign key to the State dimension, but Case does, and through the Person-Case relationship the State is inferred. By doing it this way, I end up with ...

Any Html control libraries - a visual counterpart to jQuery/Prototype

jQuery provides a browser neutral library for accessing and manipulating the DOM. This is good. However I'm looking for a counterpart for the visual side of things - I need to build pixel measured interfaces, without wasting so much time testing and correcting cross browser issues (buttons having crazy margins in IE, or using the wrong ...

Get the scrollbar sizes in javascript

How to determine the height of an horizontal scroolbar, or the width of a vertical one in javascript ? ...

Flex : Dimensions of an application

<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init1()" width="100%"> <mx:Script> <![CDATA[ import mx.controls.Alert; public function init1():void { Alert.show(this.width.toString()); } ]]> </mx...

Data warehouse reporting questions

Hi all. I've just begun diving into data warehousing and I have one question that I just can't seem to figure out. I have a business which has ten stores, each with a certain employees. In my data warehouse I have a dimension representing the store. The employee dimension is a SCD, with a column for start/end, and the store at which t...

How do I limit SSAS hierarchy levels to users?

I am relatively new to ssas and am having trouble with something. The scenario: A cube with a company hierarchy (region, sub-region, country, company) Dimension security is applied by filtering the company dimension by linking username to a list of allowable companies. Enable Visual Total is switched ON so that you can only see totals...

WPF position and dimensions wrong

Hey I'm currently using a semi-transparent WPF form with no border as a camera style device in a program of mine. However, when I access the position (top, left) and dimension (height, width) properties of the form, it would appear they are wrong. The top property reported to be roughly 26 pixels higher than it actually is in relation...

Processing dimension in SSAS 2000

Hi, I have a shared dimension in SQL Server Analysis Services 2000. The dimension is used in two cubes. The dimension is marked as non-changing dimension. Names of some memebers in the database have changed. However no structal changes have been made. I process the dimension incrementaly, but the names of the memebrs stored in dimens...

Type II dimension joins

I have the following table lookup table in OLTP CREATE TABLE TransactionState ( TransactionStateId INT IDENTITY (1, 1) NOT NULL, TransactionStateName VarChar (100) ) When this comes into my OLAP, I change the structure as follows: CREATE TABLE TransactionState ( TransactionStateId INT NOT NULL, /* not an IDENTITY column i...

.net calendar control dimensions under vista

I'm developing a desktop application in Visual Studio 2008, and I've made the delightful discovery that evidently under Vista, the Calendar control is 45 pixels wider than the same control in XP. Naturally, this ruins the layout of my from, and I don't have space to give. If I tinker with the dimension attributes of the calendar in Vista...

dimensional and unit analysis in SQL database

Problem: A relational database (Postgres) storing timeseries data of various measurement values. Each measurement value can have a specific "measurement type" (e.g. temperature, dissolved oxygen, etc) and can have specific "measurement units" (e.g. Fahrenheit/Celsius/Kelvin, percent/milligrams per liter, etc). Question: Has anyone bui...

Workarounds for setting the size of an empty display object?

I want to create an invisible drawing surface that sits over top of an image. This drawing surface would be in charge of taking mouse input and passing the coordinates along to a sprite that sits on the layer between the drawing surface and the image. The drawing surface is an empty Sprite. According to the docs, a display object that...

Sql Server analysis Services 2008 Dynamic dimension security using MDX expression

Some dimension tables in my warehouse: DML Site Id bigint Name nvarchar(256) Primary key (Id) DATA SiteId Name 2 Site 2 3 Site A DML UserSite Username nvarchar(256) SiteId bigint Primary key (Username, SiteId) Foreign key (SiteId) referrences Site(Id) DATA Username Sit...

Webcam Aspect Ratios

For the purpose of my testing, I am using a Logitech Quickcam 9000 which records in a 4:3 resolution (640x480, 320x240, etc). I am using a custom flash app to relay from the webcam to Wowza media server (then to our users). When I record in the app and playback at 240x180, everything looks great. When I record in the app and playback a...

JavaFX: Embedded JavaFX applet loses width and height?

I have a JavaFX applet with the stage's initial height and width defined as such: var stage:Stage = Stage { title: "Blah" scene: Scene { height: 768 width: 1024 fill: Color.WHITE ... Additionally, I have elements laid out in the scene that are bound to the height and width for layout purposes. All works fine as...