FAQ Database Discussion Community


Should the “count” measure be stored in the fact table?

data-warehouse,dimensions,fact-table,datamart
I have a fact table that includes "wait times in hours" for certain services. I have a lot of dimensions that could describe the wait-times based on different slices; however, I am also interested in knowing how many people (counts) came for services through the filters of the same dimensions....

android draw rectangle with dimensions and modify them in runtime

android,runtime,draw,dimensions
I'm developing an engineering app for android. The thing is that I need to draw: rectangles, figures made of rectangles, and their dimensions. Then if you touch one extreme of one dimension you are able to make that dimension of the rectangle longer or shorter. I am implementing the next...

Matlab: arithmetic operation on columns inside a for loop (simple yet devious!)

matlab,for-loop,matrix,vector,dimensions
I'm trying to represent a simple matrix m*n (let's assume it has only one row!) such that m1n1 = m1n1^1, m1n2 = m1n1^2, m1n3 = m1n1^3, m1n3 = m1n1^4, ... m1ni = m1n1^i. In other words, I am trying to iterate over a matrix columns n times to add a...

How to obtain app screenshots for different iphone sizes (4S, 5, 6) in XCode

ios,iphone,xcode,screenshot,dimensions
If I would like a certain screenshot to be displayed for all iphone screen size dimensions, how would I do this through the Xcode simulator? For example, when I select the simulator to run on the iphone 6 and hit cmd+s, a screenshot is saved but only for the iphone...

NetCDF4 Python dimensions reordered

python,dimensions,netcdf
I am creating a NC file using netCDF4 in python. The file is quite simple and includes variables of 1 and 2 dimensions (1st dim=N, 2nd dim=M). But the problem is that when I read out the file, the dimensions of the 2D variables are interchanged, i.e. instead of coming...

Java (Eclipse) WindowBuilder setting maximum dimensions

java,eclipse,swt,fixed,dimensions
I have built a window application using the SWT WindowBuilder in Eclipse. I want the window to be a set size whilst the application is running. This means that I do not want the user to be able to resize the window e.g. disable window resizing and if that is...

Are PDF dimensions meaningful when measured in pixels?

pdf,image-processing,imagemagick,pixel,dimensions
I've been testing two ways of measuring the dimensions of PDFs in pixels using two Python modules - Wand (ImageMagick bindings) and GDAL. Getting the dimensions of this PDF returns completely different results with each module: Wand reports 556x748 GDAL reports 2317x3117. Is one of these 'wrong'? If I understand...

Work out the dimensions of a room based on a ratio in Excel from a total area [closed]

excel,area,dimensions,ratio
I am trying to work out the dimensions of a room to the ratio 3:2 from only knowing the total area. For example, if I have a room of area 10M^2 I want to know the 2 lengths that make up that area to the ratio of 3:2. I have...

How to create Custom Paperclip Processor to retrive image dimensions Rails 4

ruby-on-rails,ruby,paperclip,dimensions,processor
I want to retrieved image upload dimensions before create as I attach the file. I got this via Extracting Image dimensions through model. But I want to dispatch through custom processor. What I tried is: Player.rb class Player < ActiveRecord::Base has_attached_file :avatar, processors: [:custom], :style => {:original => {}} .......

Fix matlab code with error

matlab,dimensions
I understand that there is an error with dimensions in line dr=(r-v*v/2)*dT . But I have little knowledge of Matlab. Help to fix it, please. The code is small and simple. Maybe someone will find time to look function [optionPrice] = upAndOutCallOption(S,r,v,x,b,T,dT) t = 0; dr=[]; pert=[]; while (t <...

fix image wrap size with the same size of Lazy Load image

jquery,image,lazy-loading,wrap,dimensions
I'm looking for to show background-color image before lazy-loading, with exactly the same dimension of the image. My script get width and height of each images and applises on image-wrap. my script : $(document).ready( function(){ $('section .lazywrap').each(function(){ var lazyWrap = $(this); var img = $(lazyWrap, this); lazyWrap.width(img.width()); lazyWrap.height(img.height()); console.log(lazyWrap.height()); });...

android admob size on dimensions error: A 'type' attribute is required for

android,styles,size,admob,dimensions
I have a layout and the attribute: ads:adSize="LARGE_BANNER" I want to put it with ads:adSize="@dim... dim name" but it gives me error for example: FULL_BANNER it says something like full banner doesn't exist and it doesn't compile. I tried it now on styles but it doesn't work too: <item name="ads:adSize">LEADERBOARD</item>...

Why cant I refer to a random index in my 4D list, while I know it exists?

c#,list,for-loop,dimensions
I got a 4D list, and I want where I want to display only the [k][3][j][z], but this isnt working. I checked all the counts and they are all 5+, so 3[4] should work... for (int k = 0; k < lijst4D.Count; k++) { for (int i = 0; i...

MATLAB: Subscripted assignment dimension mismatch: y(:,:,j,i) = x;

matlab,matrix,dimensions,mismatch
I am trying to remove blank (=0) cols and rows from 2D images in 3D stack of images and then generate a new 3D stack: for i=1:numVols; for j=1:numFrames; % Crop black boundaries tempvol = VolStack(:,:,j,i); tempvol(:,all(tempvol==0,1))=[]; tempvol(all(tempvol==0,2),:)=[]; VolStackTemp(:,:,j,i) = tempvol; end end The strange thing is that it works...

Get image dimensions directly from an URL C#

c#,image,download,dimensions
I'm getting the image dimensions directly from the internet using this code: string image = @"http://www.hephaestusproject.com/blog/wp-content/uploads/2014/01/csharp3.png"; byte[] imageData = new WebClient().DownloadData(image); MemoryStream imgStream = new MemoryStream(imageData); Image img = Image.FromStream(imgStream); int wSize = img.Width; int hSize = img.Height; It works but the performance is terrible because I need to download...

Itext rectangle from milimeters

itext,rectangles,dimensions
I try draw a A5 rentangle in a PDF with Itext using Rectangle class and Utilities.milimetersToPoints method but when i print the PDF and measure the rectangle the measurments is not the A5 dimensions. public static boolean createPDF(String pathPDF) { Document document = new Document(PageSize.A4); try { PdfWriter writer =...

Can not figure out how to print second dimension in three dimension List

c#,list,for-loop,dimensions
I am making lists in three dimensions. If I run my code it shows the following strings: list5 + list3 + list1. Now this is in three dimensions, so each dimension adds a word. If you look to the code there will be displayed: 4*4*4 = 64 possiblities. Now I...

Window.Current.Bounds throws HRESULT E_FAIL has been returned from a call to a COM component

c#,windows-phone-8.1,screen,dimensions,windows-universal
I'm building a Windows universal SDK that will retrieve user and device dimensions and I'm trying to get the screen size of the device from a non XAML (or related) class. When trying to get the bounds I receive "HRESULT E_FAIL has been returned from a call to a COM...

iPad landscape dimensions issue

ipad,swift,landscape,dimensions
I have application using Landscape orientation only. I have set Device orientation to "Landscape Left" only in project properties. Every controller has Orientation set to Landscape too. In IOS emulator works all right, width of screen is greater than height, views frames and bounds are as shown. No matter if...