size

Setting minimum height and width for a chrome window in firefox

I'm trying to limit the minimum height and width of a chrome (xul) window. The window itself is opened using the window.openDialog method. I tried using the minwidth and minheight window propertiet, but that does not seem to have any effect on the window. I also tries to limit the size by handling the onresize event as follows: onresize...

increase the java heap size permanently?

Is there a way that I can set the default heap size for the jvm on my own computer? I want to set it to 1g, because I'm always running custom programs that always hit the overage point in the default jvm size. I just dont want to have to remember to type -XmX1g everytime I run my java app from the command line... There has to be an ...

how to set LaTeX font size in millimeter?

hi, I need to set the font size in millimeters in my LaTeX document. how can I do that? thank you! ...

difference in long vs int data types in C++

What's the difference between int and long in C++ since both: sizeof(int) ... and sizeof(long) return 4? ...

How can I find the Size of some specified files?

The command tries to sum up the sizes: find . -iname "*.dmg" -exec du -sh '{}' \; 3&> /dev/null | awk '{print $1}' | summming_up_program??? Can you find a simpler solution? Ubuntu Solution. Thanks for the Awk-end to Ayman. find . -iname "*.dmg" -printf '%b\n' | awk 'BEGIN { s = 0 } {s += $1 } END { print "%dMB", s / 2^20 }' ...

Default sizes for SQL parameters in ADO.NET

There are multiple overloads for sqlcommand.Parameters.Add(...) function. Some of them do not take size, and some do. What sizes are set by default? Is it safe not to set parameter sizes? Does it affect performance? ...

Is there any way to find out the size / sizes of your database tables?

Hi folks, i've got around 10 tables in my sql 2008 server. Currently, my mdf is around 3.5Gig. (I also have some binary data in some of the tables). So, I'm wondering if there's a way i could see which tables are the biggest in size. Is this possible? Maybe it's an index or FTS catalog instead? ...

How to prevent a stack overflow by monitoring the stack size?

Many C/C++/Fortran and other programmers would have come across "stack overflow" errors. My question is, Is there a tool, a program or a simple code snippet, that allow us to monitor or check the size of the stack while the program is running? This may be helpful to pinpoint where the stack is being accumulated and eventually causing ove...

A reasonable approach to class size reduction using templates?

Given: (Code reduced to a sensible minimum) // MemberTypes template < typename SPEEDTYPE = float, typename SIZETYPE = float, typename ACCELERATIONTYPE = float > struct ParticleMemberTypes { typedef typename SPEEDTYPE SpeedType; typedef typename SIZETYPE SizeType; typedef typename ACCELERATIONTYPE AccelerationType; }; // ...

Find size of multiple databases in SQL Server 2005

I was wondering if there is a sql statement to get the current size of all the databases on your server instead of right clicking and going to properties for each one. ...

Get size of uncompressed data in zlib?

I'm creating something that includes a file upload service of sorts, and I need to store data compressed with zlib's compress() function. I send it across the internet already compressed, but I need to know the uncompressed file size on the remote server. Is there any way I can figure out this information without uncompress()ing the data...

django select box size option

I have three drop down select boxes, which I have to expand for web visibility reasons with the size='' option. If I select one from each box I receive no errors, but if I leave one or more boxes without a selection I receive an error. {% for pathology in pathology_list %} {{ pathology.pathology }} {% endfor %} ...

Determining what object files have caused .dll size increase [C++]

I'm working on a large c++ built library that has grown by a significant amount recently. Due to it's size, it is not obvious what has caused this size increase. Do you have any suggestions of tools (msvc or gcc) that could help determine where the growth has come from. edit Things i've tried: Dumpbin the final dll, the obj files, cre...

Java JTable setting Column Width

I have a JTable in which i set the column sized like following, table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); table.getColumnModel().getColumn(0).setPreferredWidth(27); table.getColumnModel().getColumn(1).setPreferredWidth(120); table.getColumnModel().getColumn(2).setPreferredWidth(100); table.getColumnModel().get...

How to get a WPF window's ClientSize?

In WinForms, Form had a ClientSize property (inherited from Control), which returns the size of its client area, i.e., the area inside the title bar and window borders. I'm not seeing anything similar in WPF: there's no ClientSize, ClientWidth, ClientHeight, GetClientSize(), or anything else that I can think to guess the name of. How d...

What is the proper way to compute the fully expanded width of wx.TreeCtrl

The preferred size of the wx.TreeCtrl seems to be the minimum size into which all elements will fit when the tree is completely collapsed. Is there a good (ie cross-platform compatible) way to compute the width of the tree with everything expanded? My current solution is this: def max_width(self): dc = wx.ScreenDC() dc.SetFont...

Discrepancy between call to statvfs and df command

When I use the statvfs command on a Linux machine to get the available free space on a mounted file system, the number I get is slightly different than what is reported by df. Is there some reason for this? For example, one on machine I have with a 500G hard drive, I get the following output from df: # df --block-size=1 --no-sync File...

WPF/Silverlight XAML Stretch Text Size to Fit container?

Hi I've just started to play with WPF. Is it possible to have the size of the text of a Label or TextBlock size itself to fill it's parent container? Thanks, Mark ...

Getting a User Control to fill its container

I've created a user control which contains a label and a progress bar. I've also created another user control which contains only a flow layout panel with the flow direction set to top down. When I add the former to the flow layout panel of the latter, I would like it to use the maximum amount of horizontal space available and the minimu...

Why size of lucene index increased if i index the same data?

I implemented Hibernate search in my application i.e. based on Lucene. Whenever, i indexes the database, the size of the lucene indexes increase. But, the result of the query return same no of results every time. Why the size of lucene increases each time if i index the same data everytime? FullTextSession fullTextSession = Search.get...