1
голосов
1ответов
105 просмотров

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?

2
голосов
2ответов
4183 просмотров

Uploading file with WCF streaming, tiny reads from stream

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) { ...

7
голосов
4ответов
60205 просмотров

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...

3
голосов
4ответов
11215 просмотров

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 c...

4
голосов
1ответов
2714 просмотров

mysql load testing tools

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

18
голосов
4ответов
63757 просмотров

MySQL VARCHAR size limit

If I have a column in table with field of type VARCHAR(15) and if I try to insert data of length 16, MySQL gives an error stating Data too long for column 'testname' at row 1 Does anyone know why VARCHAR fields in MySQL take fixed length? Also how many bytes does a VARCHAR field take per recor...

1
голосов
2ответов
2238 просмотров

Change button text without changing button size

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 th...

31
голосов
4ответов
19682 просмотров

Determining the size of a JPEG (JFIF) image

I need to find the size of a JPEG (JFIF) image. The image is not saved as a stand-alone file, so I can't use GetFileSize or any other API such this one (the image is placed in a stream and no other header is present, except the usual JPEG/JFIF header(s)). I did some research and found out that J...

2
голосов
2ответов
3696 просмотров

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 ...

4
голосов
3ответов
1337 просмотров

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 fo...

2
голосов
1ответов
2739 просмотров

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...

2
голосов
1ответов
533 просмотров

.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 to...

4
голосов
3ответов
351 просмотров

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_SI...

401
голосов
11ответов
65761 просмотров

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 o...

1
голосов
1ответов
399 просмотров

Font properties

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 specif...

0
голосов
3ответов
32268 просмотров

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; b...

2
голосов
2ответов
124 просмотров

How does Visual Studio set sizes for WPF controls?

In visual studio, when dragging a control from the toolbox onto the design area, VS automatic sets width and height of the control with some values. Do you know how it does it? I was suspicious that there were some kind of attributes for the Width and Height properties or even the class itself ...

0
голосов
3ответов
184 просмотров

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?

8
голосов
3ответов
20297 просмотров

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...

2
голосов
1ответов
356 просмотров

WPF ListView grows bigger than it's containing Canvas

I have a ListView which is using a GridView to display a DataTable and when new rows are added to the DataTable the ListView grows as expected but when it reaches the bottom of the Canvas it carries on growing. I want it to stop when it reaches the height of the Canvas, how can I configure this?...

1
голосов
2ответов
1176 просмотров

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 fre...

4
голосов
4ответов
469 просмотров

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 e...

149
голосов
10ответов
81786 просмотров

Why are Oracle table/column/index names limited to 30 characters?

I can understand that many years ago there would be this kind of limitation, but nowadays surely this limit could easily be increased. We have naming conventions for objects, but there is always a case that turns up where we hit this limit - especially in naming foreign keys. Does anybody actual...

0
голосов
3ответов
2101 просмотров

playing multiple videos in flash as3

I have a blank project that simply plays two video files. No matter what I try, the second video gets sized to the same as the first. Please tell me this isn't a Flash bug and that there's something I can do to accomplish this. Here's my document class: package{ import flash.display.*; ...

14
голосов
5ответов
2294 просмотров

Nvarchar or varchar what is better use multiply of 2 or rounded full numbers?

My question is what is better to use in generating columns in SQL. Should the size of nvarchar (varchar) be multiply of 2 (32, 64, 128) or it's doesn't matter and we can use fully numbers example '100', '50' ? Thank You very much for answers with reasons Greeting's to all

3
голосов
2ответов
1245 просмотров

How do I make a .net assembly filesize as small as possible?

I have a .net assembly that contains data access code (a bunch of Typed Datasets and helper classes) that is quite large on disk (~2.5MB). What can I do to work out why it's so big and make it smaller?

6
голосов
4ответов
12269 просмотров

get size of nswindow

Is there any way I get get the size of an NSWindow (in pixels) and display it? So when the person resizes the window the text will change and display the new size.

5
голосов
1ответов
3098 просмотров

Change the maximum width OR maximum height of a form in .net

I've been meaning to ask this question for a while. It appears that if I want to set a maximum width of a form then I have to set a maximum height as well. Is this right? If so, which of the multitude of variables do I use, in this situation, to set the maximum form height to the height of the...

7
голосов
1ответов
11353 просмотров

SQL Server Tempdb LOG file growing

On a SQL Server 2000 system, I have a templog.ldf file that seems to grow without bound! But when I check, there are never any open transaction in the tempdb (using DBCC OPENTRAN), nor do I ever use explicit transactions within tempdb. I do, however, use temp tables within my stored procedures. ...

0
голосов
3ответов
907 просмотров

Flash AS3 - Second video created on stage is the same size as the first

Even though I specify different widths and heights for each. vid = new Video(600, 800); this.addChild(vid); trace(vid.width); //600 trace(vid.height); //800 vid2 = new Video(1000, 1200); this.addChild(vid2); trace(vid2.width); //600 trace(vid2.height); //800 What is going on here? Is this a f...