size

Warn the user a file is too big before the upload

Hello SO, To increase user experience, I would like to warn the user that the file is too big (let's say > 8M) before sending the whole file (which may take some time due to the size and the client connection). All kind of fields can be "pre-validated" client-side for a better user experience, but I'm stuck on the file size problem. Is...

Upload one large file once, and change its scale using css, or use different files of the same image in different sizes?

I have a little book flipping site. I have it so I upload an image (the page), the size is about 1500x1948, but it is scaled down using css to fit on the ipad better (it becomes about 946x728). Then I have it so if you double click the image, it scales into its original size (1500x1948) and you can scroll around the page. Is it better t...

Haxe flash API -- how to get/set the the flash display size?

How do i get and set the size in pixels that the flash file's drawing output is? ...

How to fix image height and width in webview for android

Hi Friends, I am developing image application,i am using WebView to display image, so I want to fix some height and width size for the image, this size applicable for all kind of size of images in WebView. Any sample code is welcome, Thanks All ...

Upgrade from SQL 2005 EXPRESS to SQL 2008 EXPRESS

Hello friends, I restored My database in SQL 2005 of size more than 4 GB but it creates problem when i save picture (image data) in database.i.e i can't save it.So i searched for that problem and came to know that SQL Express 2005 has database size limit of 4 GB. i upgraded it to SQL EXPRESS 2008 and restored it to there.Still it has t...

Layouts and minimal sizes

Hi, I'm trying to insert a new panel with a minimal size set onto an existing form. Unfortunately after I do this: this.add(scrap); this.moveScrapCentre(scrap); // runs setLocation(...) this.revalidate(); this.repaint(); (where this: JPanel with null layout, scrap: JPanel with box layout and children) the scrap gets resized to (0,0) ...

sql server database file size already 4 gb but not so much data in it

I checked the size of the file itself - it said it's 4.02 GB. I checked the size mentioned in properties of the database using SSMSE - it said the size was somewhere above 4000 MB. I then executed sp_spaceused and it said that the file size was above 4500 MB and the unallocated space was close to 4100 MB. I'm a little confused as to ho...

Is it possible to change strings (content and size) in Lua bytecode so that it will still be correct?

Is it possible to change strings (content and size) in Lua bytecode so that it will still be correct? It's about translating strings in Lua bytecode. Of course, not every language has the same size for each word... ...

How do I allow the user to easily choose how much memory to allocate in a Java Swing app?

We have a Swing app that processes relatively large amounts of data. For instance we currently process csv files with millions of rows of data. For the reasons of performance and simplicity we just keep all of the data in memory. However different users will have different amounts of data they need to process as well as different amou...

Win7 quick launch bar icon size

Hey! I'm using Windows 7 with the good old quick launch bar. Since I'm usually working on a big screen with a lot of open windows my taskbar is two rows high which works well for open windows in general. The only problem is that the symbols in the quick launch bar are shown in one row wasting a lot of space underneath even though it ...

How to get the length of dynamically allocated two dimensional arrays in C

The question is how to get the length of dynamically allocated 2D Arrays in C? I thought the code below should get the number of rows, but it doesn't. char** lines; /* memory allocation and data manipulation */ int length; //the number of rows length = sizeof(lines)/sizeof(char*); Any thoughts on this? ...

Android activity image background size.

Hello, I am a bit confused on creating an image which will be acting as a background for my activities. So, in short, my aim is that my application should be able to fit the different screen sizes. Therefore, what size in pixel should my three images be to be able to fill the screen of the device in ldpi, mdpi and hdpi? Thank you for a...

How do you determine the appropriate size when drawing a CheckBox?

I'm helping someone convert a huge mess of panels and 700 meticulously-placed checkboxes with something slightly more sane. My plan is to implement a custom control that uses the ControlPaint class to draw the checkboxes manually; this will make it easier to work with the data and dropping 700 GDI handles from the form will likely be a ...

[Python] Pre declared dictionary size limit?

I have a big dictionary i constantly reference in my code so i have it initialized at the top: import ... myDictionary = {'a':'avalue','b':'bvalue',...} code ... But when i try to get values, some of the keys are not found. It appears as though Python is chopping my dictionary due to a size limit. I tried searching google but could...

How do I get the real usable resolution

Hello, with Toolkit.getDefaultToolkit().getScreenSize() i do geht the screen size. But usually this isn't the available size i have for my own program, because on the mac there is a on top an menubar and a on bottom an iconbar. Windows does have an iconbar. So how do i get the real available space? ...

WCF Named pipe message size problems

I am trying to get working a WCF named pipe communication between two processes on the same computer (on XP), but I am having trouble with "large" messages disappearing. The messages that disappear contain a largish byte array and I have narrowed the failure down to when the array is around 16k in size. Smaller than that and the messag...

How to spec font sizes in CSS for a mobile web site for the latest versions of Android, Blackberry, and Safari Mobile?

What's the best way to spec CSS fonts sizes for the latest versions of Android, Blackberry, and Safari Mobile? I.e., using font size keywords (medium, small, etc.), setting the body to a percentage and using ems for headings, or using pixels. This is for a mobile web site, not an app. ...

iPhone app size greater than 600MB

Hello, I am building an iPad application for playing the videos. I am planing to include the videos and other related stuff into the app itself. So the app size would be approximately 600MB+. I have found that Apple allows maximum app size of 2GB. Also for the app with the size more than 20MB, WIFI is required. Please guide me whether ...

UPLOAD_ERR_EXTENSION (#8) in PHP?

I'm completely stuck on this one. Whenever I upload a large file, larger than 8MB (approx), I get this error code in the $_FILES array... I looked at the loaded extensions, but it didn't help... The max file upload is 50M and the max post is 55M. Has anyone else had this problem before, and know of an extension that may be causing it? ...

Photo dimensions & conversions of user albums?

Are there any php libraries for this to re-scale or re-size photos down to whatever limit we set for height/width/size and also if users upload photos in gif png, or bmp then convert them to jpeg? ...