Questions tagged [measure]

Measuring means to determine how big is a certain entity. In computing, it's often referred to calculating the size(s) of a screen.

Measuring means to determine how big is a certain entity. In computing, it's often referred to calculating the size(s) of a screen.

936 questions
7
votes
1 answer

TextRenderer: How to measure text as if it was on machine with different Dpi?

I have a C# WinForms application which consists of server and client side. I use TextRenderer.MeasureText(string text, Font font) method to measure text. At some moment I need to measure text on server side, as if it was on client. I send…
Artem Kachanovskyi
  • 1,839
  • 2
  • 18
  • 27
7
votes
2 answers

confirmation email as a Data Element Type - Function Points

I understand that a confirmation message on a UI is counted as a Data Element Type (DET). What if my confirmation message is an alert box on a UI plus an email confirmation. Should i count it as 1 DET or 2 DETs Thanks
stud91
  • 1,854
  • 6
  • 31
  • 56
7
votes
2 answers

How to calculate different well-known similarity or distance measures between two vectors in R?

I want to compute the similarity (distance) between two vectors: v1 <- c(1, 0.5, 0, 0.1) v2 <- c(0.7, 1, 0.2, 0.1) I just want to know if a package is available for calculating different well-known similarity (distance) measures in R? For example,…
6
votes
3 answers

How can I pre measure a string before is printed?

Hello, I am learning programming with C# VS 2010 EE and I’m making an application to fill up a preprinted form. This form has several places in different coordinates. Three of the boxes on the paper are multiline 5” W x 2” H boxes. I already…
Alex
  • 75
  • 1
  • 7
6
votes
3 answers

Measuring Download Speed Java

I'm working on downloading a file on a software, this is what i got, it sucesfully download, and also i can get progress, but still 1 thing left that I dont know how to do. Measure download speed. I would appreciate your help. Thanks. This is the…
6
votes
1 answer

How do I measure a custom native component in React Native on Android

I want to create a custom native component which renders a single line of text. The length of this text is dynamic and the typeface and size are configurable. When I place my custom component in a standard the provided size constraints in…
Nick Marais
  • 131
  • 6
6
votes
2 answers

Center a label on any form VB.NET

I need to show a form with a centered label (according to form's width and label's text, width, font family and font size). This have been my attempt so far: (Me.Width - TextRenderer.MeasureText("Hello word", New Font("Delius", 10,…
soulblazer
  • 1,178
  • 7
  • 20
  • 30
6
votes
4 answers

View.getWidth() not work in onCreate method?

Why lColorWheel.getWith() method returns 0? I guess that it have something to do with onMeasure event, but i really cant understand from documentation how it works. Where I have to set dimensions for mDrawable? @Override protected void…
Matej
  • 61
  • 1
  • 9
6
votes
1 answer

How to measure number of executed assembler instructions?

I want to somehow get the "number of executed assembler instructions" from a binary. Consider the following piece of code: if(password[0] == 'p') { if(password[1] == 'a') { ...... printf("Correct Password\n"); } } Then if I would start…
rené freing
  • 63
  • 1
  • 3
6
votes
1 answer

Using Filter on measures in MDX query on SSRS

i've creted a report using a cube as datasource and MDX query on my dataset. i have a few measures in my dataset but i want to show wonly the rows with at least one of the measures > 0, using something like an OR filter (measure1 >0 or measure 2 >0…
user1508682
  • 1,329
  • 5
  • 23
  • 34
6
votes
1 answer

Pass a Function with multiple parameters as a Parameter

I have this piece of code, that takes a single function with no parameter, and return's its runtime. public static Stopwatch With_StopWatch(Action action) { var stopwatch = Stopwatch.StartNew(); action(); stopwatch.Stop(); return…
Dominik Antal
  • 3,281
  • 4
  • 34
  • 50
5
votes
1 answer

Kilobytes or Kibibytes in GNU time?

We are doing some performance measurements including some memory footprint measurements. We've been doing this with GNU time. But, I cannot tell if they are measuring in kilobytes (1000 bytes) or kibibytes (1024 bytes). The man page for my system…
5
votes
4 answers

Programmatically determining max fit in textbox (WP7)

I'm currently writing an eBook reader for Windows Phone Seven, and I'm trying to style it like the Kindle reader. In order to do so, I need to split my books up into pages, and this is going to get a lot more complex when variable font sizes are…
Liam Dawson
  • 1,189
  • 13
  • 27
5
votes
1 answer

Android: Measure Size of View before rendering

I have a TextView that displays text that changes and run time. I want to use the View.getLineCount() method to see how many lines the TextView takes up and do different functions accordingly. The problem is I need to determine the number of lines…
Corey Alexander
  • 905
  • 1
  • 7
  • 15
5
votes
0 answers

Measuring a view before rendering it and get a remained space (Android)

I'm trying to solve this problem in ages but i can't find a solution: I need to know how much height a webview with some HTML text in it will take in a LinearLayout, if the space occupied doesen't go over screen size i must add another webview with…
e_ori
  • 845
  • 1
  • 11
  • 29
1 2
3
62 63