measurement

SQL Server 2008 Geography .STBuffer() distance measurement units

旧时模样 提交于 2019-12-05 02:03:17
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, meters, kilometers, etc. The documentation only refers to them as "units", any suggestions? Thanks [...] from geography::STGeomFromText('POINT(x y)', 4326).STBuffer(z).STIntersects(geography::STGeomFromText('POINT(' + CAST(v.Longitude as varchar(max)) + ' ' + CAST(v.Latitude as varchar(max)) + ')', 4326)) = 1 STBuffer is in meters. More info here. To

Memory usage of Docker containers

随声附和 提交于 2019-12-04 15:25:54
问题 I am using Docker to run some containerized apps. I am interested in measuring how much resources they consume (as far as regarding CPU and Memory usage). Is there any way to measure the resources consumed by Docker containers like RAM & CPU usage? Thank you. 回答1: Update: See @Adrian Mouat's answer below as docker now supports docker stats ! There isn't a way to do this that's built into docker in the current version. Future versions will support this via an api or plugin. https://github.com

Calculating homography matrix using arbitrary known geometrical relations

廉价感情. 提交于 2019-12-04 12:35:20
问题 I am using OpenCV for an optical measurement system. I need to carry out a perspective transformation between two images, captured by a digital camera. In the field of view of the camera I placed a set of markers (which lie in a common plane), which I use as corresponding points in both images. Using the markers' positions I can calculate the homography matrix. The problem is, that the measured object, whose images I actually want to transform is positioned in a small distance from the

Tools to measure website size

流过昼夜 提交于 2019-12-04 09:31:55
Can someone please recommend some tools that would help me measure the size of our website pages? I need to gather the size of the page rendered. We have over 100 pages and so obviously I am looking for a tool that could diagnose an entire domain or folder. I don't want to spend days measuring the pages one at a time. Thank you so much in advance. ac Page Speed Insights command-line tool gives you various metrics including CSS size , HTML size and Image size . Install it with: sudo npm install -g psi And use it like so: $ psi https://robinwinslow.uk --------------------------------------------

What is the best method to gather data about the use of your application?

混江龙づ霸主 提交于 2019-12-04 07:40:35
My company releases a small software product for which I've recently been taking over the development side. It is a C# Windows Forms application. One of the things I've noticed is that much of the information about how the software is used is filtered through my superiors and I get the feeling that I'm missing important detail in some of the messages. I realise I'll have to work on the management issues with this situation, however in order to give another view on the problem I've been considering a technological solution. Perhaps something similar to the "Microsoft Customer Experience

How do I measure separate CPU core usage for a process?

丶灬走出姿态 提交于 2019-12-04 07:23:26
问题 Is there any way to measure a specific process CPU usage by cores? I know top is good for measuring the whole system's CPU usage by cores and taskset can provide information about which CPU core is allowed for the process to run on. But how do I measure a specific process' CPU usage by CPU cores? 回答1: You can still do this in top . While top is running, press '1' on your keyboard, it will then show CPU usage per core. Limit the processes shown by having that specific process run under a

Best way to measure Memory Usage of a Java Program?

浪子不回头ぞ 提交于 2019-12-04 05:36:09
I'm currently using VisualVM , but the problem I'm having is that I can't save the graphs it generates. I need to report some data about its memory usage and running time, though running time is easy to get with System.nanoTime() . I've also tried the NetBeans profiler but it isn't what I want, since I'm not looking for specific parts that would be slowing it down or anything, so that would be overkill. The biggest problem with it is that it eats up too much processing time. Also doesn't let me capture/transfer the data easily, like VisualVM, at least as far as I can tell. Ideally the best way

How to measure the TCP/IP overhead without sniffing?

纵然是瞬间 提交于 2019-12-04 04:11:08
I'm wondering whether there is a programmatic way to obtain a measure of the full bandwidth used when sending data through a TCP stream. Since I cannot seem to know how the network stack would divide the stream into packets, or when it sends a TCP SYN or ACK or many of the things it does in the background for you, I can only get a rough estimate for this. The only solution I can think of is to actually sniff the interface, but I would like to think that the stack can already collect this stats for me. This is running in Java under either Windows or Linux (of course, a portable solution would

Measure/Arrange Of Grids with SharedSizeGroup

天大地大妈咪最大 提交于 2019-12-03 17:04:52
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 to demonstrate the problem visually. His original question asked why two grids with a SharedSizeGroup didn't resize to the same height when certain conditions were met (resizing a TextBlock in the right-side grid). I took his example and expanded it, because I suspected that it had to do with the Measure/Arrange cycle. It turns out that it does, in

Precise time measurement in Java

六眼飞鱼酱① 提交于 2019-12-03 15:24:14
问题 Java gives access to two method to get the current time: System.nanoTime() and System.currentTimeMillis() . The first one gives a result in nanoseconds, but the actual accuracy is much worse than that (many microseconds). Is the JVM already providing the best possible value for each particular machine? Otherwise, is there some Java library that can give finer measurement, possibly by being tied to a particular system? 回答1: The problem with getting super precise time measurements is that some