size

How to change the allowed amout of allocated memory?

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 40000 bytes) in /mounted-storage/home20a/sub001/sc20063-GJYD/[...] on line 62 It looks like the PHP-script only allowes me to allocate 32 MB to the memory? This was with an example image to test what would happen if a user tries to upload a huge picture. My...

Impact of providing exact sizing for the page elements as opposed to the browser resizing tables

Hi we have a application of huge amount of data which is to be converted into HTML tables via Velocity templates.Question1: One area to be focussed is the impact of providing exact sizing for the page elements as opposed to the browser resizing tables height and width want to understand how much time is spent by the browser doing that as...

How can I add images to my desktop application without increasing the executable file size too much?

I'm building a desktop application and I occasionally add images to the solution explorer. When I "Build" the application, I notice the .exe file increases in size. If I add an image that's 40kb, the .exe increases 40kb. All in all, my application is currently 12mb, and I think it's a bit too much for people to download. Is there a way...

how to check the character count of a file in python

Hi ! I have a python code which reads many files. but some files are extremely large due to which i have errors coming in other codes. i want a way in which i can check for the character count of the files so that i avoid reading those extremely large files. Thanks. ...

jquery get image size

I am creating a photo gallery using jquery. I am taking and resizing the images on load to create thumbnails. I want to get the original value of the image's size so that later on I can take it back to its original size. Anyone know how to do this? I have the following code: obj.find("img").each(function(){ }); This loops through...

Custom MediaSizeName for Java Printing

Hi, I need to use a card printer (Evolis Tattoo) with java .. the problem is, that java seems not to have a correct mediasize (54mm by 85mm or 2.13" by 3.38"). Thats my code: DocPrintJob job = tattoo.createPrintJob(); PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(new MediaPrintableArea(0, 0, 54, 85...

Android internal storage - what are the limits?

1) Our Android app will store data in a built-in SQLite DB. I see the DB can throw android.database.sqlite.SQLiteFullException, but there's no exact info in API what is the limit. Could anyone tell what are the size limits for a DB in order not to get into the SQLiteFullException? I assume DB will store data in device's internal stora...

Resize issue to fit dynamically with any browser size

I'm trying to make full flash site dynamically resize in any browser size. If the browser gets smaller than the site MC should constrain to fit in the browser. (EX: 1440x900) What I have right now works like 98% of the time, but when I switch to a bigger screen size, it screws up and makes the site tiny from left to right (menu, logo, ...

Best font size for Latex Beamer

Hi Stackoverflow - I am preparing a presentation in latex using the beamer package. I am wondering what font size "pros" who give a lot of presentations use to make sure people in the back of the room can see. The default font size seems a bit small to me. Thanks, Setjmp ...

Problems when i using GetTextExtentExPoint to calculate the extent of a string.

I created a font object and selected it into the device content, then calculate the extent of the string using WIN32 API GetTextExtentExPoint, but the extent i got is the extent while using system default font. For example, when i using system default font, the extent of the string is 36 pixel width and 16 pixel height, and 72 pixel widt...

3 divs and middle's width

Hi guys, I want to make 3 divs in one line. Left, middle, right. Left and middle must have fixed size (300 px for example) and middle have to resize dynamically (in percents). Here is my css: #content { width: 100%; height: 435px; } #content_left { float: left; width: 300px; height: 345px; border: 1px solid red...

How do I compute the capacity of a hard disk?

I have a worked example of how to compute the capacity of a hard disk, could anyone explain where the BOLD figures came out of? RPM: 7200 no of sectors: 400 no of platters: 6 no of heads: 12 cylinders: 17000 avg seek time: 10millisecs time to move between adj cylinders: 1millisec the first line of the answer given to me is: 12 x...

Winform size changes

Hi, When i run the EXE of winforms it runs perfectly in 14 inch monitors , but it rearranges and the contents shrink and look bad when i run the same EXE in 12 inch monitors. Has .NET Exes have some issues with the monitor size? Please help me. Thanks, Karthick ...

How to increase java heap size programmatically

I have a java desktop application for searching files and it is usually reaching the default heap limit pretty soon. I wont have access to all the systems it will be installed in so I want to increase the JVM heap size in the application itself. Can anybody help me how can I do that programmatically in my application ...

How to determine the dimensions of the icons in an icon object in .net, winforms?

I was wondering whether it's possible to validate a required size for an icon before trying: Dim myIcon = New Icon(theIcon, requestedSize). This falls over for negative numbers, so that's an easy check. It appears it falls over if the number is less than half of the smallest icon. I've looked at the icon class but can see nothing for...

Bash variable expansion causes Java commandline to break

I've been experiencing a strange issue the last couple of days while writing a shell script which executes Java (starting the JBoss AS). I have a variable JAVA_OPTS that I am creating, and finally passing to the 'java' command. When I hard code the values in JAVA_OPTS rather than using variable expansion, the java process executes normal...

Form's client area not rendering size set in Form.ClientSize

I've got a System.Windows.Forms.Form where I need to set the size of the client area at runtime. Strangely, though, even when I set the ClientSize property to 800x600, the area is smaller by 4 pixels on the right and bottom sides, which causes my content to be clipped by 4 pixels in both directions. This behavior is observed with both t...

jqGrid and JQuery UI tabs showing grids expanded only on primary tab (div)

Hi, I have added some grids (jqgrid) to a jQuery UI Tabs object. All the grids on the Tabs child that is expanded by default, displays perfectly. But the grids on the Tab children that are NOT expanded by default, permanently shows the jqGrid small (jqgrid with autowidth=true). Any ideas? Thanks! See http://www.revolucion7.com/wp-cont...

Get the size (after it has been "streched") of an item in a ViewBox

Consider the following: Let's say the Window is 1024x768 and the ViewBox fills the entire window, this means the TextBox is really large on the screen. I want to get the size of the TextBox as it is currently on the screen. If I get DesiredSize or ActualSize or even RenderedSize I always get 100. Any suggestions? Updat...

Why does using boost increase file size so much?

I've noticed that when I use a boost feature the app size tends to increase by about .1 - .3 MB. This may not seem like much, but compared to using other external libraries it is (for me at least). Why is this? ...