progress

Changing Progress Dialog Message While Running

↘锁芯ラ 提交于 2019-12-10 12:35:04
问题 I've got a fairly simple issue I'm not sure how to resolve. I want to change the message text of a Progress Dialog while it's running and showing. An example of this would be something like a "time remaining" counter that would count down while the progress animation is spinning. I'm not sure how I would approach this because doing progressDialog.setMessage(String), even within a running thread, will not change anything in the Dialog itself. Thank you! 回答1: You might want to check this

Show progress of PYTHON CGI script

不问归期 提交于 2019-12-10 10:28:32
问题 I have a PYTHON CGI script(Content-type: text/plain ) which takes about 10 minutes to execute. I want to see the execution status of my script on my browser . Like below: Part 1 of script executed... Part 2 of script executed.. Part 3 of script executed.. Execution Complete I am using print statements, but it is outputting all the print statements all-together only after the script has completed execution, and not one by one. Please help .. 回答1: Try doing: import sys ... print "Part 1 of

progress bar for reading lines in text file

偶尔善良 提交于 2019-12-10 10:07:50
问题 I'm reading lines form in a text file and then performing actions per line. Due to the size of the text file and the time of each action 500 => seconds. I would like to be able to view the progress but not sure where to start. Here is an example script I'm using, how would write that for this? import os tmp = "test.txt" f = open(tmp,'r') for i in f: ip = i.strip() os.system("ping " + ip + " -n 500") f.close() test.txt: 10.1.1.1 10.1.1.2 10.2.1.1 10.2.1.1 回答1: Here's a handy module: progress

Show progress of filling a DataSet from MySQL

£可爱£侵袭症+ 提交于 2019-12-10 09:44:33
问题 I am currently developing an application using C# and a MySQL Database Backend. My program could end up loading a large amount of data from the database and adding into a dataset to be displayed in a DataGridView. I want to be able to show the progress of the filling of the DataSet but not sure how I can get a reference to where it is in the database. Below is the code that I currently have. DatabaseWork dbase = new DatabaseWork(); try { dbase.openConnection(); MySqlDataAdapter myDA = new

Best “Loading” feedback for ASP.Net?

爱⌒轻易说出口 提交于 2019-12-10 09:28:29
问题 So, we have an ASP.Net application - fairly standard - and in there are lots of updatepanels, and postbacks. On some pages we have <ajax:UpdatePanelAnimationExtender ID="ae" runat="server" TargetControlID="updatePanel" BehaviorID="UpdateAnimation"> <Animations> <OnUpdating> <FadeOut Duration="0.1" minimumOpacity=".3" /> </OnUpdating> <OnUpdated> <FadeIn minimumOpacity=".5" Duration="0" /> </OnUpdated> </Animations> </ajax:UpdatePanelAnimationExtender> Which basically whites out the page when

AFNetworking 3.0 setImageWithURLRequest download progress

ⅰ亾dé卋堺 提交于 2019-12-10 02:50:15
问题 Does anyone have a nice working solution for getting the download progress when using the UIImageView+AFNetworking category and AFNetworking 3.0. This category, which I did use for versions up till 3.0 has stopped working now. Here is my own experimental version which sadly, for the moment, crashes randomly. 回答1: Here is the modified version of AFNetworking 3.0 in which you can show a progress while loading image from server using UIImageView+AFNetworking category. https://github.com

How can you track the progress of a SQL update?

a 夏天 提交于 2019-12-09 16:46:27
问题 Let's say I have an update such as: UPDATE [db1].[sc1].[tb1] SET c1 = LEFT(c1, LEN(c1)-1) WHERE c1 like '%:' This update is basically going to go through millions of rows and trim the colon if there is one in the c1 column. How can I track how far along in the table this has progressed? Thanks This is sql server 2008 回答1: Database queries, particularly Data Manipulation Language (DML), are atomic. That means that the INSERT/UPDATE/DELETE either successfully occurs, or it doesn't. There's no

Recording button like SnapChat

风流意气都作罢 提交于 2019-12-09 07:05:10
问题 I want to record video like snapchat, I'm trying to create Record button like this and also record video when user long press on button and stop recording when user leave it so how can i built it? Please guyz help me!!! 回答1: private static final int MIN_CLICK_DURATION = 600; private long startClickTime; private boolean longClickActive; private boolean recording, pause = false; private long elapsed; private long remaningSecs = 0; private long elapsedSecs = 0; private Timer timer; try { your

Query duration estimation in SQL Server

雨燕双飞 提交于 2019-12-09 00:34:29
问题 I've seen in Oracle 10g a feature that estimates the remaining time for a long running query and I was wondering if this is possible too in SQL Server (at least in 2008?)? Suppose I have a very large table with tens of millions of rows (well indexed etc. etc.) and I need to search for some particular rows. I know it will take a lot of time and I'm cool with that but I would like to present the user with some kind of a progress bar. How can I show progress? 回答1: I'd forget about it and just

Are there progress update events in jQuery ajax?

拜拜、爱过 提交于 2019-12-08 23:30:49
问题 i have long running task that gets called using jquery ajax. i am using the block ui plugin to show "loading". is there anyway i can send progress messages back to the client to show progress and have that updated on the block ui plugin message. So it will show this (as the server does its work) . . "Loading first source . . . " "Loading second source . . . " "Loading third source . . . " "Parsing Results . . . " 回答1: From what I've seen for the case of uploading stuff - people create a