size

[graphviz/dot] size of node with shape=circle

hi guys, i'm trying to set the size of the nodes this way: controller[shape=circle,width=.5,label="Controller",style=filled,fillcolor="#8EC13A"]; But all three nodes are with different size. How can i set fixed size? ...

Need Algorithm to group files of varying sizes into approximately equal blocks

Hey folks, I'm trying to figure out an algorithm that will help me group an assortment of files of varying sizes into say, 'n' groups of approximately equal size. Any ideas on how to achieve this? ...

Easy way to get size of folder (ObjC/Cocoa) ?

Right now I'm using this code to get the size of a folder: NSArray *contents; NSEnumerator *enumerator; NSString *path; contents = [[NSFileManager defaultManager] subpathsAtPath:folderPath]; enumerator = [contents objectEnumerator]; while (path = [enumerator nextObject]) { NSDictionary *fattrib = [[NSFileM...

determine size of dynamically allocated memory in c

Is there a way in c to find out the size of dynamically allocated memory? For e.g., Suppose I say char* p = malloc(sizeof(char)*100); Now is there a way to find out the size of memory associated with p? ...

Size discrepancy between size of folder from Finder and from Carbon file manager

Hi, I'm using this method by Dave DeLong to calculate the size of a folder using the Carbon File Manager API: http://github.com/davedelong/BuildCleaner/blob/b2712242b4eea1fff0e78a08b393a417e3019c8a/NSFileManager+FileSize.m (Its the first method there) The issue I'm having is that some folders (.app bundles in my case) are not reporti...

change image size with javascript

Hey, I'm trying to change the size of an image with javascript. The jS file is separate from the html page. I want to set the height and width of an image in the JS file. Any good ways on doing this? Thanks for any help. ...

how to reset the zoomed image to it's actual size after changing the tab and then getting back to the tab whose viewcontroller contains the image

hi iProgrammers, i have 5 tabs,namely home,ask a doc,tip,inbox and disclaimer....im my home view controller i zoom an image in viewforzoominginscrollview method...after zooming if i switch to another tab and then get back to home tab....i want the image to be of actual size... This is my homeViewController class code import "HomeViewC...

How do i set the default page print size on a asp.net reportViewer control

Is there any way to set the default page print size in an ASP.NET report viewer control. I'm having an issue in which some users are forced to change the page size or scale in order to print correctly. I'd like to just make it so they can just click Print and it'll go. Thanks in advance. ...

Delphi apps, form size varies on different machines

I've got a Delphi 7 app, on the WinXP development machine the form size is the same as it was designed. However, running the app on a Vista machine, some forms have been enlarged 20-30%, leaving big blank spaces on the right and bottom edge of forms. On one of our client's WinXP machine, the forms have shrink, causing scroll bars to sh...

Getting size in memory of an object in PHP?

There is a way to get the total memory PHP is using (memory_get_usage()) but how does one get the size in memory of an individual object? I'm obviously not talking about count() as I want the number of bytes in a potentially complex data structure. Is this even possible? Thanks. ...

Get size of POST-request in PHP.

Is there any way to get size of POST-request body in PHP? ...

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 flash bug? ...

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. And who knows what ASP.NET data access obj...

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 window? Screen.PrimaryScreen.Bounds?, Sc...

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

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

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

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

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.*; import flash.media.*; import flash.net...

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 actually know why this isn't a bigger size - or ...

Calculating a directory size using Python?

Before i re-invent this particular wheel, has anybody got a nice routine for calculating the size of a directory using Python? It would be very nice if the routine would format the size nicely in Mb/Gb etc. Thanks. ...