Dimensions of an array define its size and shape -- the arangement of elements in the array. Use this Tag for questions regarding the shape of arrays.
Questions tagged [dimensions]
1238 questions
15
votes
2 answers
Google Analytics Custom Dimension Not Being Set
I've recently upgraded our site to use Universal Analytics and am trying to get some custom dimensions to work. However, no custom dimension data appears to be logged. Below is an example of my code.
ga('create', 'UA-XXXXX',…

Jason Miller
- 253
- 1
- 3
- 10
14
votes
1 answer
ctypes - numpy array with no shape?
I am using a python wrapper to call functions of a c++ dll library. A ctype is returned by the dll library, which I convert to numpy array
score = np.ctypeslib.as_array(score,1)
however, the array has no shape?
score
>>>…

Alejandro Simkievich
- 3,512
- 4
- 33
- 49
14
votes
4 answers
Android Launcher Icon Rounded Corner Edge Radii
Are there any official guidelines for how many pixels the edge radii should be when giving Android launcher icons rounded corners?
I've found guidelines for launcher icon pixel sizes (but rounded corners aren't mentioned), a tool called Android…

Luke
- 2,187
- 1
- 18
- 29
14
votes
2 answers
"Incorrect number of dimensions" error, help me understand why
Organization of this question:
I. Background
II. The Problem/Question
III. Steps Taken to Make this Question Good
IV. Update: the output of head(x.path) and dput(x.path)
I. Background
I am customizing/adapting the e-mail classification code…

user2225772
- 159
- 1
- 1
- 7
13
votes
4 answers
Why is a window larger in runtime?
I have a window set to 340 x 146 px, not resizable.
In designer the window size is correct. But when I run the application it is bigger.
Edit: Also, the layout is Canvas.
Classic theme:
Edit2:
After running snoop (thanks Zach), it appears that…

Kugel
- 19,354
- 16
- 71
- 103
13
votes
4 answers
If ScrollView only supports one direct child, how am I supposed to make a whole layout scrollable?
I have 3 text views in a layout, where the text clips a tad on the bottom on my droid 2... How can I ensure that the whole text is viewable, and the user can scroll down (simply with their finger), to see the rest of my text?
Thanks!
EDIT:

Sapp
- 1,793
- 7
- 29
- 51
13
votes
6 answers
Why is accessing dimensions of the image so expensive in JavaScript on IE8?
I have to process loads of images. First, I need to check if the size of the image is greater than 50x60 and appropriately increasing the counter of bad images.
The problem I have is that the speed of n.width / n.height on Internet Explorer 8 is…

Piotr Rochala
- 7,748
- 2
- 33
- 54
13
votes
2 answers
Get image dimensions directly from URL in C#
I'm trying to get dimensions from a picture directly from the web using this code:
string image = @"http://www.hephaestusproject.com/.../csharp3.png";
byte[] imageData = new WebClient().DownloadData(image);
MemoryStream imgStream = new…

Thadeu Fernandes
- 505
- 1
- 6
- 23
13
votes
0 answers
Android Studio Designer preview does not show correct dimensions
I have a strange issue with Android Studio Designer.
I am trying to work on my layouts so that they fit for multiple screen sizes and density.
I am to the point where I need to set different text sizes to different labels. Some bigger, some…

Mackovich
- 3,319
- 6
- 35
- 73
13
votes
3 answers
Three dimensional database table
We have all been there - consider the following example - first, the client says "every user shall only have one profile picture", so we add a field for that to the users table - half a year later, requirements change and a user actually needs to…

Dennis Hackethal
- 13,662
- 12
- 66
- 115
13
votes
3 answers
Safari doesn't calculate rem units correct when scaling with @media (width/height/background-size)
When using rem as units in css, scaling doesn't really work in Safari (both PC and Mac).
Example located at http://jsfiddle.net/L25Pz/3/
Markup:

Lorem ipsum dolor sit…

Anders Brohäll
- 313
- 1
- 3
- 9
12
votes
2 answers
Keras ValueError: Dimensions must be equal issue
Even after applying the suggestions in answer and comments, it looks like the dimension mismatch issue persists. This is exact code and data file to replicate as well:…

hearse
- 379
- 2
- 4
- 23
12
votes
7 answers
Check uploaded image's dimensions
I'm using asp.net 3.5 and c# on my web site. Here is my question:
I have an upload button and asp:Image on a page. An user can upload an image from his computer and that image will be displayed in the asp:image. But before I display the image, I…

chuckyCheese
- 369
- 2
- 4
- 14
12
votes
2 answers
jQuery - find out the width of an element as specified in CSS (e.g. in %age if it was specified in %age, not just in px)
Similar to this question:
get CSS rule's percentage value in jQuery
However, I am writing a plugin and it needs to deal with it gracefully dependent on how the width was originally specified. If the element was originally specified in pixels it is…

vitch
- 3,215
- 3
- 25
- 26
11
votes
1 answer
Android: Resizing custom views. Parent is resized but width/height changes not passed down to child view
I am currently trying to make a game based on the old school battleship board game using android. I am kinda just messing around at the moment trying to get a feel for it and for the components that I may need to make the game.
Basically what I…

cgreene
- 111
- 1
- 5