size

Is there a de-facto relation between the font size ranges {1, 2, 3, 4, 5, 6, 7} and {xx-small, x-small, small, medium, large, x-large, xx-large}?

In HTML/CSS font size can be specified in the following fashion (deprecated but all browsers support it): <font size="n">text</font> with n an element of {1, 2, 3, 4, 5, 6, 7}. Another possibility is the following: <span style="font-size: s;">text</span> with s an element of {xx-small, x-small, small, medium, large, x-large, xx-la...

PHP SOAP fread() dynamic POST size

Looking to read the file size of the SOAP POST, any best practices? $data = fopen('php://input','rb'); $content = fread($data,5000); $dom = new DOMDocument(); $dom->loadXML($content); Would like the 5000 to be dynamic as each SOAP POST size will be different or does this matter? Using fread() would be great ...

How Do I Get the Usable Coordinates of the Screen in Delphi

With Screen.DesktopHeight and Screen.DesktopWidth, I can get the size of the "virtual" desktop and I believe that works for one or multiple monitors. I save the position (top and left) and size (height and width) of my application into the registry when it closes. When it opens, I want to ensure it is entirely visible, since it may have...

Which is smaller footprint in C#

A lable sized like a rectangle with no text but has a border and is invisible (for a visual rectangle on the form around controls but not to contain the controls) or a panel? ...

HTML: div size?

I have 3 divs, all contained within a parent They are in parent-div. Here's my HTML: <div id="header"> <div id="left"></div> <div id="middle"></div> <div id="right"></div> </div> And my CSS: #left { float: left; width: 334px; background-image: ...; } #middle { float: left; width: ???; background-image: ...;...

Font properties

Hi there, I have a text file with the following info in it, on a single line: -16777216 Arial 7.8 Bold (-16777216 is the color of the text in ARGB format).. How would I be able to set this text as the font properties for a label at runtime? I have googled this but couldn't find anything related specifically to my problem. Can anyon...

C programming : How does free know how much to free?

In C programming, you can pass any kind of pointer you like as an argument to free, how does it know the size of the allocated memory to free? Whenever I pass a pointer to some function, I have to also pass the size (ie an array of 10 elements needs to receive 10 as a parameter to know the size of the array), but I do not have to pass th...

Casting a 'BigStruct' to a 'SmallStruct' in C (similar structs with static arrays of different sizes)

Supposed that for some reason you are only allowed to use static memory in a C program. I have a basic structure that I am using in several places defined as below: #define SMALL_STUFF_MAX_SIZE 64 typedef struct { /* Various fields would go here */ ... double data[SMALL_STUFF_MAX_SIZE]; /* array to hold some data */ } Small...

.NET form - setting location changes size

I'm working on an app that shows its forms as a series of modal windows stacked on eachother. All forms are placed to the center of the screen. When the user moves the form around the screen, only the topmost one moves, others remain at the center and cannot be moved as they are blocked by the topmost dialog. I'm trying to code a form-m...

How to determine optimum prepared statement cache size when using Hibernate

AFAIK, Hibernate transforms all sql to prepared statement form before issuing it to the database. When tuning the application, the size of prepared statement cache can be an important factor. How to determine the optimum value when using Hibernate, given that it creates prepared statements “under the hood”. ...

Turn off Intellisense in VS 2008 for a single project

I have a project with about 1000 classes in it (no, there is no way to conveniently break this project into multiples). Just loading the project takes about 20 minutes as intellisense slowly chugs through all the classes, and eats almost 1gb of memory. Is there a way to turn off Intellisense for a single project, but keep it for all ot...

iPhone - Maximum Download 3G Size MB

I have heard the maximum download size for an app through ATT wireless 3G network is 10MB, anything over that size you will need a wireless router to download the app. I am building a game with numerous images and am trying to keep it under 10MB. Does anyone know if the xcode app's binary file cannot be 10mbs or the itunes .ipa file ca...

Change button text without changing button size

Hello, I'm using a borderLayout to arrange my components in a JFrame and a Box(BoxLayout.X_AXIS) to put buttons next to each other. But it creates two problems: I want the buttons to have the same size, but it automatically resizes them to fit the text within them (especially annoying when I change the text inside a button at runtime)...

mysql Varchar size limit

Hi All, Can anyone provide me a quick input on how mysql treat varchar data type size. For Example: - If I have a column in table with field with Varchar(15) and if I try to insert data of length 16, then it gives an error stating "Data too long for column 'testname' at row 1". Does anyone know why varchar fields in mysql take fixed...

mysql load testing tools

Hi All, I want to calculate the each row size of a table. are there any tools available for this. Also Does anyone aware of any load testing tools. Thanks in advance. Regards, Manasi ...

Unwanted border around JPanel

I'm creating a form with a JPanel inside it for some graphics and some buttons for controlling the thing. For some reason I have to specify the JPanel to be 10 px less wide and 30 px less high than the actual graphics I want to put inside it. What causes this problem? This is the code: public class Window { public Sheepness sheepness;...

Setting the size of panels

I have 3 panels. One is the main panel which holds 2 smaller panels. For the main panel, I used setPreferredSize(new Dimension(350, 190)); For the smaller left panel, I used setPreferredSize(new Dimension(100, 190)); For the smaller right panel, I used setPreferredSize(new Dimension(250, 190)); but the smaller panels remain t...

Uploading file with WCF streaming, tiny reads from stream

Hi I've implemented file uploading using WCF's streaming. Everything works as expected, however i faced one issue: i'm allocating 4kb buffer to read from incoming stream, but WCF reads only 255 bytes. Here is my upload function: public UploadResponse UploadFile(FileDto fileDto) { using (var inStream = fileDto.FileStream) ...

homepage made for iPhone - size

I'm trying to make a homepage I'm creating look good on the iphone. But even though the content on the page is only 320px in width, the page is still zoomed far out in the iphone browser. What must you do for safari to display the page in its "real" size? ...

what does the mySQL Length parameter do for different types?

I've used MySQL (via PHPMyAdmin) a lot before but never really understood half of it. I'm assuming that for varchar, length is the maximum length of a string that can go there. But what about for Int? According to this, Int is a 4 byte integer, so why have a Length parameter for it? Is it the number of bits for that integer? Why have sep...