size

Dijit.Dialog 1.4, setting size is limited to 600x400 no matter what size I set it.

I'm trying to set the size of a dijit.Dialog, but it seems limited to 600x400, no matter what size I set it. I've copied the code from dojocampus and the dialog appear, but when i set the size larger, it only shows 600x400. Using firebug and selecting items inside the dialog, I see that they are larger than the dialog, but don't show c...

How to find out minimal render size of a visual in WPF?

Hello, I'm trying to display a game desk and info panel right next to the game desk and I need to calculate minimal width of the info panel in order to display the game desk properly. This is my XAML code: <StackPanel Orientation="Horizontal"> <Rectangle Width="Auto" Height="Auto" Name="gamedeskRect" Style="{DynamicResource GameDe...

PHP: upload image max 150x150..

How do i make a limit for the size of the image not SIZE but i mean how big it is.. so max 150x150? $image=$_FILES['image']['name']; if ($image) { $filename = stripslashes($_FILES['image']['name']); $extension = getExtension($filename); $extension = strtolower($extension); if (($extension != "jpg") && ($extension != "jpe...

how to change the width and height of infowindow on google-maps-v3

i want to set the width and height of the infowindow using v3 thanks ...

java - reduce external jar file size

Hi all, still learning, so be patient :) I've developed a module for a Java project. The module depends on external library (fastutil). the problem is, the fastutil.jar file is a couple of times heavier than the whole project itself (14 MB). I only use a tiny subset of the classes from the library. the module is now finished, and no-on...

Can I make the webview take only a port of the screen?

I am trying to make a webview to open on the bottom of the application to display little information but it keeps taking the whole screen and covering other widgets with information. Is there a way to make it have a certain size and place on the application? ...

Is there a size limit for HTML5 Manifest?

Hello I have been looking into HTML5 manifest but I am unclear as to whether or not there is file size limit for caching using the manifest. For example if i wanted to make several audio files available offline would this be achieved using manifest? or is it really only for small images and text? ...

ajax response byte size

I'm using jQuery's getJSONP and I want to log the duration of the call and the size of the response to be able to have some statistics about the usage of my application. This is a cross domain ajax call, so I need to use JSONP, but as the JSONP call is not done with an XMLHttpRequest object, the complete callback from jquery's ajax does...

Find size of dictionary object in VBA

What is the simplest way in VBA to determine the size (i.e., number of keys) in a dictionary object? ...

Multiplying char and int together in C

Today I found the following: #include <stdio.h> int main(){ char x = 255; int z = ((int)x)*2; printf("%d\n", z); //prints -2 return 0; } So basically I'm getting an overflow because the size limit is determined by the operands on the right side of the = sign?? Why doesn't casting it to int before multiplying work? In this case I...

Should I Make These Vectors Classes or Structs in C#

I am creating a geometry library in C# and I will need the following immutable types: Vector2f (2 floats - 8 bytes) Vector2d (2 doubles - 16 bytes) Vector3f (3 floats - 12 bytes) Vector3d (3 doubles - 24 bytes) Vector4f (4 floats - 16 bytes) Vector4d (4 doubles - 32 bytes) I am trying to determine whether to make them structs or clas...

Flex 4: Is it possible to have a BorderContainer automatically size to the contents within it?

I have a BorderContainer with several objects inside of it. I want it to fit snugly around its own contents, but it doesn't. It seems the default size of a BorderContainer is 112x112. That is so wierd considering no other containers have that default size. Is there a way to set the width and heigh properties to "auto" or something like t...

How can I tell Wordpress to reset all posted image sizes to the largest set width?

I've set the width of large files in Wordpress' Media settings: http://cl.ly/7wX but how can I tell Wordpress to apply the setting to all the images I've already inserted in posts? It's limiting them to a previous setting of 500px wide. Thanks! ...

Find out how much storage a row is taking up in the database

Is there a way to find out how much space (on disk) a row in my database takes up? I would love to see it for SQL Server CE, but failing that SQL Server 2008 works (I am storing about the same data in both). The reason I ask is that I have a Image column in my SQL Server CE db (it is a varbinary[max] in the SQL 2008 db) and I need to k...

Custom byte size?

So, you know how the primitive of type char has the size of 1 byte? How would I make a primitive with a custom size? So like instead of an in int with the size of 4 bytes I make one with size of lets say 16. Is there a way to do this? Is there a way around it? ...

Sql Server - How to calculate the size of some rows from each table in a database?

How can i calculate the size of only some rows for each table? For example, with the code: EXEC sp_spaceused 'myTable' you obtain the size of all rows, however i want to calculate the size not of one single table, but all of them, and using the same clause for each one, something like this in pseudo-code: foreach(Table myTable in Da...

Set UIImageView Size?

hi, i have following problem: i generate subviews UIView in an UIScrollView including UIImageViews. NSArray *bilder = [[NSArray alloc] initWithObjects:@"lol.jpg", @"lol2.jpg", nil]; NSArray *added = [[NSMutableArray alloc] init]; UIImageView *tmpView; for (NSString *name in bilder) { UIImage *image = [UIImage imageNamed:name]; ...

What is the best way record monthly user uploads to our web application?

Our web application allows users to upload photos, it uses a PHP script on a LAMP server running on Amazon EC2 to handle image uploads, Amazon S3 to store the files and a MySQL database for recording data about the image (user id, filename, tags etc). I intend to have an image_uploads table in the database with a colum for each month an...

How to change the size of the font of a JLabel to take the maximum size

Hello, I have a JLabel in a Container. The defaut size of the font is very small. I would like that the text of the JLabel to take the maximum size. How can I do that ? Thanks :) ...

Resize TD. (Noob question)

I am currently re-building a table display page, just wanted to know if it's possible to resize a TD without inline styles, like add a class with width and height? Example: <td class="Td_class">Blah</td> .Td_class { height:30px; width:80px; } Probably can, just wanted to make sure for when I make this table. Thanks. ...