Questions tagged [measurement]

499 questions
11
votes
3 answers

Determining exact glyph height in specified font

I have searched a lot and tried much but I can not find the proper solution. I wonder is there any approach for determining exact glyph height in specified font? I mean here when I want to determine the height of DOT glyph I should receive small…
Michael Z
  • 3,883
  • 10
  • 43
  • 57
11
votes
3 answers

Measuring distance with iPhone camera

How to implement a way to measure distances in real time (video camera?) on the iPhone, like this app that uses a card to compare the size of the card with the actual distance? Are there any other ways to measure distances? Or how to go about doing…
manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
11
votes
2 answers

How to measure and display the running time of a single test?

I have a potentially long-running test written with scalatest: test("a long running test") { failAfter(Span(60, Seconds)) { // ... } } Even if the test finishes within the timeout limit, its running time can be valuable to the person who…
Petr
  • 62,528
  • 13
  • 153
  • 317
10
votes
11 answers

How to effectively measure developer's work hours?

I have a few software developers working for my projects and I would like to provide them a way to register time they spent on real development. There is good will to register development hours, no force, but we try to avoid techniques like excel…
twk
  • 3,122
  • 2
  • 26
  • 36
10
votes
3 answers

How to measure CPU and memory usage of F# code?

I'm new to the language F# and currently I'm doing a short study on the F# performance. So what I would like to do is benchmark my F# code. I've already found the Stopwatch class, which was pretty obvious, but as for the rest of what you should be…
Marcus Åberg
  • 213
  • 2
  • 10
9
votes
3 answers

How to convert a measurement displayed in an architectural format to a floating point?

I have a database that was created and is used by an architecture firm. All measurements are stored in a format like this: 15-3/4" and 12' 6-3/4". Is there a way to convert these types of measurements into floating point in Python? Or is there a…
Clayton
  • 285
  • 1
  • 17
9
votes
3 answers

SQL Server 2008 Geography .STBuffer() distance measurement units

I'm working with a geographic point using lat/long and need to find other points in our database within a 5 mile radius of that point. However, I can't seem to find out what the "units" are for STBuffer, it doesn't seem to conform to feet, miles,…
user358089
9
votes
1 answer

Campaign Measurement with own BroadcastReceiver

I've an Android app where user has to register. On sending registration, I want to send the parameters from the PlayStore (utm_source, etc.) to know from which campaign user comes from. So the idea was to use a own BroadcastReceiver for…
user2641233
  • 109
  • 3
8
votes
3 answers

How to calculate total width of text including the left and right bearing

I am trying to calculate the total width of a span in HTML including both the left and right bearings of the first and last characters. I have already tried Javascript's offsetWidth and jQuery's width & outerWidth functions, but neither of them…
gyoda
  • 1,053
  • 2
  • 11
  • 22
8
votes
2 answers

How to broadcast referral to android app intallation

Not Answered, Almost Same Question To Explain My Goal: I have an apk URL that could be in a market (eg: Google Play, Bazaar, etc) or could be a direct link to apk file. To Explain My Requirements I'll have to set referral link to broadcast it to…
Hossein Shahsahebi
  • 6,348
  • 5
  • 24
  • 38
8
votes
1 answer

Limit formatted Measurement to 2 digits

I'd like to print a string based on a Measurement but limit it to 2 digits. I am using the MeasurementFormatter for this. var beans:Measurement = Measurement(value: 20.22321, unit: UnitMass.milligrams) // "20.22321 mg" let formatter =…
Bernd
  • 11,133
  • 11
  • 65
  • 98
8
votes
1 answer

How to measure network pressure?

Let's say I'm building my own download accelerator. Let's simplify it to the point where: my code runs at 3rd party whose network parameters I cannot control an item is downloaded from a single IP number of parallel range transfers is…
Dima Tisnek
  • 11,241
  • 4
  • 68
  • 120
8
votes
5 answers

How to quantify your "slow" development machine?

( Please provide the question this one duplicates. I'm disappointed I couldn't find it. ) My development machine is "slow". I wait on it "a lot". I've been asked by decision makers who want to help to fairly and accurately measure that time. How…
lance
  • 16,092
  • 19
  • 77
  • 136
8
votes
3 answers

Determining if the difference between two error values is significant

I'm evaluating a number of different algorithms whose job is to predict the probability of an event occurring. I am testing the algorithms on large-ish datasets. I measure their effectiveness using "Root Mean Squared Error", which is the square…
sanity
  • 35,347
  • 40
  • 135
  • 226
8
votes
2 answers

C how to measure time correctly?

This is the "algorithm", but when I want to measure the execution time it gives me zero. Why? #define ARRAY_SIZE 10000 ... clock_t start, end; start = clock(); for( i = 0; i < ARRAY_SIZE; i++) { non_parallel[i] = vec[i] * vec[i]; } end =…
user1319384
1 2
3
33 34