size

Is int guaranteed to be 32 bits on each platform supported by Qt, or only qint32?

I remember reading somewhere that Qt guarantees the size of some data types on supported platforms. Is it that int will be at least 32 bits everywhere, and qint32 will be exactly 32 bits everywhere? Or something else? C++ guarantees that int will be at least 16 bits, and some Qt structures like QRect and QPoint use int internally. I'm d...

downsizing several hundred png files from png24 to png8

I have several hundred images that I ended up saving as a large file format (png24) so I'd like to downsize them all. Is there a quick way to do this rather than manually opening each one in photoshop and saving as a png8? Also, if I only have the png file and not the psd, can I still downsize the image from png24 to png8? Thanks. ...

How to find floppy\ CD sector size in Linux?

Hi, How can I get the sector size for floppy and CD disks in Linux, via C++ code? Thank you all. ...

Maximum application size of android & BADA platform

what is maximum size of thick/thin client application(to d/w through OTA) in both Android & Samsung Bada platform ? ...

Why are my WPF window sizes defaulting to be huge

I have a wpf application with a few forms. At design time they are small, and they are not set to auto size. However at run time they are giant, even with no content in them to make them big. Why is this happening? Here is one of the forms <Window x:Class="SuperPluginPicker" xmlns="http://schemas.microsoft.com/winfx/2006/...

Determine how many fields a Javascript object has.

I have a Javascript object that I'm trying to use as a "hashmap". The keys are always strings, so I don't think I need anything as sophisticated as what's described in this SO question. (I also don't expect the number of keys to go above about 10 so I'm not particularly concerned with lookups being O(n) vs. O(log n) etc.) The only func...

Is it possible to read a filesize directly from MFT info in windows?

Is it possible to get file size info in MFT? I want to make use of dwRecLength, however I found it is 0 sometimes. struct NTFS_MFT_FILE { char szSignature[4]; // Signature "FILE" WORD wFixupOffset; // offset to fixup pattern WORD wFixupSize; // Size of fixup-list +1 LONGLONG...

Panel Size keep getting smaller

I got many panels and one form. I have employed panels so I don't have to use multiple forms. But there is a problem with it. After I assign the panel size to the form size and show the form, the next time I assign it again, and to my surprise the panel gets smaller than the original. Why is this happening? Here is how I'm doing it. thi...

Growing/shrinking a frame based on the size of a child panel

I have a frame that contains (among many other things) a panel. I need to be able to explicitly set the size of the panel and have the frame with all its sizers, buttons, and everything else fit around the new size of the panel. I have tried every combination of Fit/Layout/etc I can think of, but I can never get the frame to grow/shrin...

how do you specifiy how many items are shown (height) in a listbox

I have this and it shows all of the items in the listbox but there are alot of them <label for=”Application”>Application:</label> <%= Html.ListBox("SelectedCategories", Model.Applications)%> is there a way to show just show 5 items and add a scrollbar (compared to increasing the height of the listbox) ...

WPF: WrapPanel in ItemsPanelTemplate expands list width

Hi, I have a listbox defined like this: <ListBox.ItemTemplate> <DataTemplate> <ItemsControl> <!-- Contents here --> </ItemsControl> </DataTemplate> </ListBox.ItemTemplate> </ListBox> My problem is this: This l...

Dirty Size, VM Tracker, iPhone

Hi All, My doubt is regarding iPhone "VM Tracker" memory management tool. I have been trying out this tool with my project and found that the "dirty size" column is showing 55 MB, which is quite huge. It would be great help if someone could answers the following How could I see which variables are the cause of "dirty" size? 32MB memor...

Decrease iPhone App Size

hi, I want to decrease my iPhone app size. Any suggestions? Taimur ...

Visual C#: Adjust Form Size

I've been trying to use a button to extend the size of my form. However, for some reason, it won't let me do this. I'd think this would be an easy thing to accomplish, but I get the error: "An object reference is required for the non-static field, method, or property 'System.Windows.Forms.Control.Width.get' The code I'm using that caus...

What’s the best way to calculate the size of a directory in VB .NET?

I need to calculate the directory size in VB .Net I know the following 2 methods Method 1: from MSDN http://msdn.microsoft.com/en-us/library/system.io.directory.aspx ' The following example calculates the size of a directory ' and its subdirectories, if any, and displays the total size ' in bytes. Imports System Imports System.IO Pub...

Android Get Screen dimensions from Service

Hi Guys though i got the Screen Size by using the following from a activity, Display display = getWindowManager().getDefaultDisplay(); But the same thing is not working from a service (for obvious reasons, i know!) but i desperately need to get the display size from a service. Can some1 please explain me any other way for getting the ...

how to properly size jQuery.ui dialog with an iframe

When I open a jQuery dialog with a predefined size (say, 800x600), the iframe within the dialog is not resized properly. It appears like it has the default size. In fact, the height is OK, but width seems to stay at 300px for no reason. I'm creating the iframe and dialog like this: someVar = '<iframe id="some-dialog" class="window-fram...

what should my initial size be

I'm moving a database from MySQL to SQLServer. When creating the database, what should I set the initial size to? I know the size of the imported database will be about 130MB but will grow. Should 130MB be the initial size or should I just take the default of 2MB? ...

How to explicitly specify the size of an array parameter passed to a function

I have a function which accepts a parameter named IV. Is there anyway that I can explicitly specify the size of the parameter IV to be 16 ? public AESCBC(byte[] key, byte[16] inputIV) { //blah blah } The above is of course not working. Is it possible? I know I can check it inside the function and throw an exception but can it be ...

c data type size

How i can know the size of all data type in my computer? ...