size

YouTube video loaded into Flash MovieClip, can I get width and height?

Hello, I'm trying to load a YouTube video on a flash MovieClip using url http://www.youtube.com/v/4nRNoXT%5FgUc that returns the video with player directly. the video is loaded and i can manage it with his player, the problem is when i try to position it no the stage, because I don't know his width until it starts. I've tested it with ...

C# FileStream : Optimal buffer size for writing large files ?

Suppose I'm writing a couple of files to disk, between 2MB and 5GB. What are sensible buffer values for the FileStream ? Is it sensible to work with buffersizes of several megabytes, or should I stick to kilobyte-buffers ? ...

Change size of checkbox in Flex

In Flex, is there an easy way to change the size of a Checkbox? I want to make the checkbox bigger, but the label beside it the same font size. Thanks! ...

Flash as3 mask size

Senario I have a movieclip ('myMask') which has 3 layers inside: 1. Mask shape (face silhouette) 2. picture (of person) 3. square shape with alpha 0% (this is slightly bigger than mask shape) 1 is in the center of 3 1 is masking 2 The picture is much bigger than 2 and 3 and is at a rotated angle + positioned off center. Problem I need...

Get size of mouse cursor in javascript

Hi, I need to determine the width and height of the current mouse cursor used on our webpage. I need to show a div right under the cursor, and possibly to the right of it. So I need to determine the offsets of my div from the exact pointer location, so the cursor do not cover up the div. The mechanism will be used in intranet system...

How do you stretch an image to fill a <div> while keeping the image's aspect-ratio?

I need to make this image stretch to the maximum size possible without overflowing it's <div> or skewing the image. I can't predict the aspect-ratio of the image, so there's no way to know whether to use: <img src="url" style="width: 100%;"> vs <img src="url" style="height: 100%;"> I can't use both (i.e. style="width: 100%; height: 1...

How to deal with the 200MB limit of Godaddy database?

Hello. For the 'unlimited plan', Godaddy's web hosting offers 'unlimited' databases (SQL Server & MySQL). However what beats me is the maximum size of each database, which is 200MB. I am not sure if this is a challenge to many out there but it would be for me as the time passes. So what I am looking for is a mechanism to be able to grow...

Resize JScrollPane client without scrollbars rolling

I have a JScrollpane which contains a scrollable client that changes its size dynamically while using the application. I want the JScrollPane to be aware of the changes without moving the viewport when the client size changes. To clarify what I mean: Refer to the Java Webstart example ScrollDemo2 from the article How to use scroll panes...

Setting maximum width using Matisse GUI builder

I'd like to create a GUI where some of the textfields are resizable horizontaly but maximum width is also specified. For instance the preferred width is 100 pixels, it can be bigger if the window is resized, but the maximum allowed width is 200 pixels. GroupLayout supports this, we can specify the max size in the addComponent method (alo...

Find Underlying Column Size Via NHibernate Metadata

Hi, Is there a way to use SessionFactory.GetClassMetadata(), or any other method you're aware of, to dynamically get the maximum size of a varchar column that underlies an NHibernate class' string property? To clarify, I'm not looking to read a length attribute that's specified in the NHibernate mapping file. I want to deduce the actu...

SQL Azure table size

In mssql2005 when i want to get size of table in MBs, i use EXEC sp_spaceused 'table'. Is there any way to get space used by particular table in SQL Azure using some query or API? ...

How to display fixed image height and width using xsl-fo with apache fop 0.95

I am trying to fix the height and width of image in pdf generated using fop 0.95. Here is the code used for it <fo:external-graphic src="s\image.png" height="2.00in" width="2.00in"/> Following also does not work <fo:external-graphic src="s\image.png" content-height="scale-to-fit" height="2.00in" content-width="2.00in"/> These giv...

How to get meters in pixel in mapkit?

Hey guys, I wanted to test the mapKit and wanted to make my own overlay to display the accuracy of my position. If i have a zoom factor of for example .005 which radius does my circle around me has to have(If my accuracy is for example 500m)? Would be great to get some help :) Thanks a lot. ...

Getting size of a webpage with TWebBrowser in Delphi

Hi dudes, How can I get the size (chars or Bytes) of a webpage loaded using TWebBrowser? I mean "size" as length of HTML content of a webpage loaded. Thanks in advance. ...

sql server database size increasing at a very high rate

We have a table that has a blob column along with other simple fields. Number of rows is about 6K, and sum of length of the blob column for all rows accounted for about 30MB. however when we ran a query to find the actual table space occupied, it was about 10GB(Database size itself is 11GB). We are wondering if, Would aborting transact...

Slim but long SQL Server 2005 Table

Hi, I have an SQL table with the following structure: Code1 - int Code2 - int Val1 - real Val2 - real Val3 - real There is only one index (clustered) were Code1 is the first indexed column and Code2 is the second. The size of a single record is 20bytes. I need to be able to store around 150,000,000 records and the biggest select ...

Imageview - a small problem

My problem is that i have placed an ImageView and 6 TextViews as below in a relative layout... ------------- ---------- --------- | | |txtview1| |txtview2| | ImageView | ---------- --------- | | |txtview3| |txtview4| | | ---------- --------- | | |txtview5| |txtview6| | | ---...

fast folder size calculation in Python on Windows

I am looking for a fast way to calculate the size of a folder in Python on Windows. This is what I have so far: def get_dir_size(path): total_size = 0 if platform.system() == 'Windows': try: items = win32file.FindFilesW(path + '\\*') except Exception, err: return 0 # Add the size or perform recursion on fold...

Matroska size problem?

I have size problem – I’ve done a program in graph edit to encode video from virtual camera. I save it into Matroska and AVI (for encoding to H264 I use x264) 5 seconds of .mkv (H264) weight 2 mb while 5 seconds of .avi (H264) weight 200 kb. 5 minutes of .mkv (H264) weight 2.1 mb while 5 minutes of .avi (H264) weight 5 mb. Is it conn...

Get width of text with given font in Apache FOP

Hi, I need to programatically get a width of some text (word, specifically) in a given font, size and style, which will be generated in Apache FOP (version 0.95) PDF document. The problem is that I need to know, if given word will fit to a column with a known width, and if it won't - resize to a fitable size. So far I have used java.awt...