size

Videos - should I include them in my app?

Hey guys, Thanks to you, I got my working hours calculator on the App Store. :) Now for my next one - I want to make an app that includes video of my series of tutorials. However, I want to know whether it's good form to include the videos directly inside the app or not? If I do, the app size would be something in the region of 80mb as ...

Is it possible to know if JFrame is fully visible?

I'm just experimenting with JFrames and would like to know if my application window is fully visible or obscured by some other application window. The other application window can be a native app. If this is possible, can I retrieve the size and position of the area that is not visible? ...

Minimize python distribution size

The hindrance we have to ship python is the large size of the standard library. Is there a minimal python distribution or an easy way to pick and choose what we want from the standard library? The platform is linux. ...

How many elements are full in a C array

If you have an array in C, how can you find out how much of it is filled? ...

What's the equivalent "sizeWithFont: " method for the Mac?

I'm familiar with sizeWithFont: for the iPhone. Now I'm trying to build an app for the Mac and need something like that, but I don't know how to do it :/ Here's why I need it: I've got a panel that displays some text, and I want to size it so that it just fits the content (a NSTextView). How would you do it? ...

How to add a condition to the geom_point size?

I am trying to add a condition to geom_point size and I've pasted my example below. I would like geom_point size to be 2 when n_in_stat is 4 or more, and size = 5 when n_in_stat is less than 4. I tried putting an ifelse statement inside the geom_point, but this failed. Perhaps I can't include logical operators here and I have to crea...

Any tool to find size of memory allocated dynamically using malloc/realloc?

Hi, I have a MS-Visual Studio 2005 workspace having all c code. This application(exe) allocates memory dynamically from heap using malloc and realloc. I want to calculate the maximum size allocated size allocated on heap using malloc/realloc by this application program when i run particular test case. I do not want to change the code b...

How to get a tool window title bar height in WPF ?

WPF includes the title bar height in the total window height instead of using only the client content area height. Is there a way to disable this behaviour? If not, how can I get the height of a tool window title bar? I'm aware of the SystemParameters.CaptionHeight property and the SystemParameters.WindowCaptionHeight property but t...

How to reliably get size of C-style array?

How do I reliably get the size of a C-style array? The method often recommended seems to be to use sizeof, but it doesn't work in the foo function, where x is passed in: #include <iostream> void foo(int x[]) { std::cerr << (sizeof(x) / sizeof(int)); // 2 } int main(){ int x[] = {1,2,3,4,5}; std::cerr << (sizeof(x) / sizeof...

Change the size of the panel dynamically

Hi! I am implementing an application that needs to drag and drop image boxes in a panel.Image boxes are added dynamically from the program and so I have set the autoscroll property to true in panel.But when I have drag out the boxes at bottom in the panel the panel size got reduced.I have put autosize property false in panel.The panel is...

Average and maximum size of directories

I have a directory and a bunch of sub-directories like this: - directory1 (sub-dir1, sub-dir2, sub-dir3, sub-dir4, sub-dir5...........and so on, hundreds of them...) How do I find out what is average size of the sub-directories? And how do I find what is the maximum size of the sub-directories? All using Unix commands... Thanks. ...

Iphone reduce Image file size

Hello, Is there anyway to reduce the Image file size or Raw RGB buffer ? Actually I have RGB buffer which it has 500KB with 320X420 size.I tried to save it to disk using UIimage and it comes to 240 KB. As per the image size, I want it to have less than 50KB or so.(loosing quality is OK) Is it possible ? Thanks, Raghu ...

How to get the disk space on a server ?

Hi, I should to develop a web-application in php for a firm, and I need to know the disk free space of the server. At the moment, I'm able to obtain the free disk space of this kind : $quota="104857600"; //100Mb : (100*1024*1024) after, I do the difference between $quota and my size variable. So, in this case, I must to write the ...

Change xib width in interface builder

Hi, I try to change the dimensions of the view in interface builder from the size tab of the property inspector, however it is grayed out and doesn't let me. Does anyone know how I can edit the dimensions? ...

What is the max possible size of an 32x32px .ico file?

Titles says it all. I'm making a favicon.ico script, and i need to know the max amount of bits possible. ...

File size in Python server

We have server on Python and client + web service on Ruby. That works only if file from URL is less than 800 k. It seems like "socket.puts data" in a client works, but "output = socket.gets" - not. I think problem is in a Python part. For big files tests run "Connection reset by peer". Is it buffer size variable by default somewhere in a...

AlertDialog.Builder vs class to extend AlertDialog - Application size

I am trying to figure out what is the best way to go about creating dialogs. I can either create my own Dialog class (which, to me, is more clean and organized), or I can use AlertDialog.Builder (which would be done inline, and funky looking)... What are the positivies and negatives of either implementation? The only thing I can think o...

How can I tell the size of my app during development?

My programming decissions are directly related to how much room I have left, or worse perhaps how much I need to shave off in order to get up the 10mb limit. I have read that Apple has quietly increased the 3G & Edge download limit from 10mb up to 20mb in preparation for the iPad in April. Either way, my real question is how can I ga...

Make div with absolute position expand and fill the rest of the page

I have a div with absolute positioning, which serves as a kind of horizontal line, with a background image with x-repition. I want its width to fill up the whole page, but its x-position isn't 0 so I can't just give it width 100%. How do I do it? ...

Infragistics Webgrid (Datagrid) dynamic adjusting columns

I want to explain this as best as I can. I have a Webgrid with a certain amount of columns. What I want is for the columns to adjust to the size of the largest string within each column, where the total of all width of columns does not exceed the width of the webgrid. At the same time however if the width of all columns is less than the ...