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
5
votes
1 answer

C# calculate the height of a string in with the given width

Im trying to write text in C# so that it spans the required width (approximately). To write text you need to specify the height. So I need to know what height would make it write to the desired length. Font myFont = new…
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
4
votes
0 answers

Conversion between google.protobuf.Timestamp and std::chrono::time_point

I'm trying to properly convert a std::chrono::time_point (C++) to a google.protobuf.Timestamp (protocol buffers) and back again to a steady_clock. I would prefer it to be represented in nanosecond resolution as the data I…
Decaf Sux
  • 305
  • 1
  • 11
4
votes
1 answer

how to measure the realtime FPS in html5 video while playback

I'm working on measuring the real-time frame rate of html5 video, does anyone has some ideas? Since I have not find the properties info about frame in html5 video, I have no idea about how to do that. Another alternative, how to access each frame…
longchuan
  • 581
  • 1
  • 4
  • 12
4
votes
1 answer

Power BI - DAX Measure to calculate churned and reactivated customers in the current period. Incorrect total

Below is a simplified version of the data. Daily transaction list for customer ID SalesData = DATATABLE ( "Customer ID", INTEGER, "Date", DATETIME, "Amount", INTEGER, { { 101245, "2019/04/07", 500 }, { 101245,…
Adni
  • 133
  • 1
  • 11
4
votes
2 answers

Similarity measure for Strings in Python

I want to measure the similarity between two words. The idea is to read a text with OCR and check the result for keywords. The function I'm looking for should compare two words and return the similarity in %. So comparing a word with itself should…
tifi90
  • 403
  • 4
  • 13
4
votes
1 answer

Find how much network traffic other Android apps generate

I am trying to make a background service which should measure traffic usage of various applications so as to be able to show to the user which apps consume most data traffic. I found that Spare Parts app does exactly that, but after installing it on…
iseeall
  • 3,381
  • 9
  • 34
  • 43
4
votes
1 answer

Measure/Arrange Of Grids with SharedSizeGroup

There seems to be a bit of an issue with two grids containing elements specified in a certain way, and the SharedSizeGroup. This question is in response to an earlier question from user D.H. I attempted to answer. Forgive the length, but it helps…
Wonko the Sane
  • 10,623
  • 8
  • 67
  • 92
4
votes
2 answers

How can one measure time for a large block of code except when stopped at a breakpoint?

I am working on a C++ game / simulation / graphics application on Windows. (edit start) If it matters, I am using Visual Studio 2013. (edit end) Setup: I am measuring the time from one frame to the next using QueryPerformanceCounter(). Steps to…
user1053404
  • 111
  • 5
4
votes
2 answers

Measuring execution time over multiple threads

I want to measure the full execution time (so when ALL threads are done). The trick with System.currentimeMillis won't work here, because when the main-method ends, my own created threads will still be running because they take longer time to…
Domien
  • 395
  • 5
  • 18
4
votes
1 answer

Camera PreviewView is stretched in some Android devices

I'm playing with the API2 Camera of Google and I'm having some problems with my code. I had two different CameraSessions, one for video and another one for images. To do it more efficient I change the code to use a unique Session and make the app…
Francisco Durdin Garcia
  • 12,540
  • 9
  • 53
  • 95
4
votes
2 answers

Adding the measure distance feature to google maps api

Just curious if anyone knows how to implement the "measure distance" feature found in google maps to the google maps api. I would like to be able to right-click and have the same functionality that google maps has... any tips? Thanks!
Mark Reimer
  • 41
  • 1
  • 2
4
votes
3 answers

How can I measure an element without introducing side effects?

How can I ask a control to compute it's minimum size requirements but without having any affect on it's current state or future layouts? For example, say I have a StackPanel in a Grid. The StackPanel's Width will stretch to the size of the grid's…
wforl
  • 843
  • 10
  • 22
4
votes
3 answers

How can I measure thread waiting time?

I couldn't find out how to measure the time that a Thread is waiting locked. I have to determine if a Thread is waiting locked more than 1 second and if so to run another Thread instead. Thanks!
Combine
  • 3,894
  • 2
  • 27
  • 30
4
votes
1 answer

Android:Wrong onMeasure - Many calls

I hope for the help. My problem with function call onMeasure. In My xml a file(RelativeLayput) - 3 elements:TextView, RelativeLayout and include them my class. Now my Main Activity class and my create class public class MainActivity extends…
zharik86
  • 51
  • 1
  • 3
4
votes
1 answer

Create cube calculation in SSAS using MDX statement to allocate monthly target to daily level

I have a cube fact table for targets, the targets are at the monthly level (Jan = 300, Feb = 450, Mar = 350 etc.) This is joined to the date dimension in my cube at using month as the join, however the dimensions grain is at the day level. What I…
user1896017
  • 83
  • 10