monitor

determining internet speed in android

自闭症网瘾萝莉.ら 提交于 2019-12-24 04:24:09
问题 I am developing an android video-streaming application where I must detect internet speed to adjust my stream quality according to that speed. I've searched in the net about how to detect internet speed in android but I found only one method of downloading file and knowing its size to determine the bandwidth : bandwidth = contentLength / ((endTime-startTime) *1000); Is there any other possible way to determine internet bandwith in android without downloading any file I don't want to disturb

Trigger “application quit unexpectedly” popup when OS X deamon crashes

风格不统一 提交于 2019-12-24 00:14:17
问题 I'm working on a new OS-X Daemon process (run from launchd) and would like to get popup window every time it crashes with all relevant information (pid, path to crash file, etc...). This will sure help my debugging effort in this early stage of the development. Basically, i want to have the same behavior as a UI application. For example : I've made some research and found out about the CrashReporter, but i don't know how to register my app to this service. But it seem like there's no way to

How to pause processes in case they are consuming too much memory?

家住魔仙堡 提交于 2019-12-23 19:13:32
问题 Background: I process planetary imagery using a set of command-line utilities provided by the US Geologic Survey. Some of them are RAM hogs, to the extreme (10s of GB). USGS says it's just the way they run and don't have any plans to try to better manage the RAM. I built a Python wrapper to manipulate file lists to call the different steps to process the data in parts (such as all images taken in one color filter, and all taken in another, and all taken in another, etc.). Because things are

how to know the application is shutting down

家住魔仙堡 提交于 2019-12-23 17:41:18
问题 There is a WPF application. i want to log when the application is closed. but i cannot modify the application (some restriction, just because business). So i create an invisible form component live inside the existing application, add as a dll library, so the existing application do not need to be modified. but the issue is, how can my invisible component know the application is shutting down? is there some function or event handler i can use? Solution: there are some event can do that,

Java : How to return intermediate results from a Thread

。_饼干妹妹 提交于 2019-12-23 09:37:21
问题 Using Java 7 I am trying to build a watcher that watches a data store (some collection type) and then will return certain items from it at certain points. In this case they are time stamps, when a timestamp passes the current time I want it to be returned to the starting thread. Please see code below. @Override public void run() { while (!data.isEmpty()) { for (LocalTime dataTime : data) { if (new LocalTime().isAfter(dataTime)) { // return a result but continue running } } } } I have read

How to monitor exceptions or errors generated by other Java applications?

爱⌒轻易说出口 提交于 2019-12-23 04:24:13
问题 I want to find or develop an application that can run as a daemon, notify the administrator by email or sms when the Java applications running on a host get any exceptions or errors. I know JVMTI can achieve part of my goal, but it will impact performance of the monitored applications(I don't know how much will it be, it will be acceptable if it's slight), besides it seems to be a troublesom job to develop a JVMTI agent and I'm not sure what would happen if several applications running at the

How to start linux with gui without monitor? [closed]

前提是你 提交于 2019-12-23 02:03:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I met a problem. I had a server which is installed redhat enterprise 5.5. And one Qt program was running on this server. So what I should do is to turn on my server, the server will start automaticly with Gui and that Qt program will start automaticly. I finished all on my desktop. But while I start this server

Idea: SVN monitor for pending commits?

匆匆过客 提交于 2019-12-22 16:33:51
问题 I want to ask if somebody heard about a SVN monitoring tool for this case: in the past we used MS SourceSafe with checkout & lock mechanism to avoid merges. One benefit of this was the "release manager" can see in the repo whitch files are still not checked in. SVN is a great tool, but sometimes I miss this information, even to avoid big conflicts. Is there a monitoring system which can be used to see who has changed files pending for commiting? On every workstation a service/daemon

Idea: SVN monitor for pending commits?

心已入冬 提交于 2019-12-22 16:32:49
问题 I want to ask if somebody heard about a SVN monitoring tool for this case: in the past we used MS SourceSafe with checkout & lock mechanism to avoid merges. One benefit of this was the "release manager" can see in the repo whitch files are still not checked in. SVN is a great tool, but sometimes I miss this information, even to avoid big conflicts. Is there a monitoring system which can be used to see who has changed files pending for commiting? On every workstation a service/daemon

PHP monitor for all my apps' and sites' errors, logs, etc

守給你的承諾、 提交于 2019-12-22 13:05:29
问题 What I'd like I'd like to have an internal web app in PHP where I can look at all my errors, logs, etc., from all my apps and sites. Let me paint a picture to explain: I'd like to go to something like monitor.thecompany.com and I will see that there was an error uploading a file on client1.com and that a new user was registered at client2.com. Internals I imagine that I would call a function in my apps and sites (something like send_to_monitor($type, $title, $description) ), which would send