progress

Server-side, get progress on sending file

烂漫一生 提交于 2019-12-12 04:35:37
问题 Basically, what I want to do is to check how much of a file my webserver has sent to a client, when the client is downloading one. Is this even possible? Does apache provide any module/extension that would help me accomplish my task? I use a linux distro, apache2 and php5. Regards. 回答1: Browser provides this functionality if file has correct "Content-length" header set. Why do you want to implement this in your page? 回答2: Solved it. I simply open the file with PHP that I want to send to the

Swing Windowless Component?

怎甘沉沦 提交于 2019-12-12 02:54:37
问题 I want to show a spinning progress wheel thing (like this) when something's processing to show the user something's happening. Is there any way I can do this without popping up a whole window for it? I'm using swing. Thanks. 回答1: Here are two stripped-down instructional examples of how to pop-display an image on the screen. Adjust image source, position, size, exception handling etc. as necessary. Example 1 of 2, Semi-transparent using JLabel: public static void main(String args[]) throws

Specific working example needed using IProgress interface described by Albahari

早过忘川 提交于 2019-12-12 00:45:01
问题 I am a neophyte at C# threading. I am trying to get my head around how to make 100K web requests, with some degree of parallelism , and report progress real-time to the GUI: urls processed so far: ###### total moved so far: ###### timed out so far: ####3 I am reading pages 596ff in C# 5.0 in a Nutshell by the Albahari brothers, the section on Progress Reporting. At this point, I don't see how in the Progress instance these counters would be incremented in a thread-safe manner, and exactly how

how to change segmented button to next on clicked

老子叫甜甜 提交于 2019-12-11 14:39:53
问题 The segmented button is as follows: <SegmentedButton width="98%"> <items> <SegmentedButtonItem text="INDICATOR1" class="progress" id="before"/> <SegmentedButtonItem text="INDICATOR2" class="progress" id="present"/> <SegmentedButtonItem text="INDICATOR3" class="progress" id="after"/> </items> </SegmentedButton> and Next button as: <Button text="Next" press="onPressNext" enabled="true"></Button> previous button as: <Button text="Previous" press="onPressPrevious" enabled="true"></Button> How to

Run a batch of processes and report progress from each of them

我们两清 提交于 2019-12-11 13:03:44
问题 I have a list of files to encrypt. The encryption is made by an external console application process reporting progress that has to be parsed. This progress has to be launched async (Process.BeginOutputReadLine handling the OutputDataReceived event is the only way I can get realtime progress from this process). Scenario: For each file the user selects to encrypt, a ViewModel instance containing this file info is added to a ListBox . The user added 100 files for encryption. Each of the

Show progress indicator

邮差的信 提交于 2019-12-11 12:20:33
问题 I'm using C in Linux. How do I show a progress indicator that will let me know when the program (or parts of the program) will complete? For example, it could be something like "Searching...67%" and the percentage will keep increasing until the Searching portion ends. Thank you. 回答1: I believe if you do something like: while (perc < 100) { printf("Searching... %d%%\r", perc); fflush(stdout); //do work } the fflush() is necessary to avoid the line buffering. Note that I am using \r and not \n

Android custom progress indicator while doing AsyncTask

末鹿安然 提交于 2019-12-11 11:39:20
问题 When running an AsyncTask I want to display a progress indicator. This stock one is ugly so I made a layout with my own. There lies the problem however, it's a separate layout meaning I need a new activity to display it. I thought I could startActivity(~progressActivity~) and then ... destroy it? But it seems impossible to stop a child activity from the parent. I could hide the progress indicator on the AsyncTask-invoking-activity, then when processing make it display and hide the rest of the

Android Progress dialog within listview

耗尽温柔 提交于 2019-12-11 09:51:17
问题 My app is designed as follows: Main Activity uses action bars First tab is a fragment that is split into 3 sections | Linear Layout containing List view | |Linear Layout containing List View | | Linear Layout containing media controls and image view| I have two AsyncTasks within this activity, one that fills the centre list view, the other that starts with the media controls to fill the image view (album art). Both of these are working well. The List view AsyncTask throws a progress dialog

How to show the SecondaryProgress in a Android ProgressDialog?

白昼怎懂夜的黑 提交于 2019-12-11 09:23:41
问题 I need to show the secondary progress of a ProgressDialog on Android, but it shows only the first progressbar in the dialog. This is the code I use: progress = new ProgressDialog(this); progress.setIndeterminate(false); progress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); progress.setProgress(25); progress.setSecondaryProgress(10); progress.show(); 回答1: That seems to have no effect if set before the dialog is shown. Try: final ProgressDialog progress = new ProgressDialog(this);

show progress loader while asynchronously loading and processing csv files

江枫思渺然 提交于 2019-12-11 09:02:10
问题 My question is quite simple, but I'm having a difficult time figuring out how to go about solving it. As shown in the code below, I am loading 3 csv files and then processing them using queue.js. While this is happening, I want some type of progress indicator to be shown to the user. queue() .defer(d3.csv,"data/1.csv") .defer(d3.csv,"data/2.csv") .defer(d3.csv,"data/3.csv") .awaitAll(preprocessing); I have managed to get a progress bar to show up when the document is ready using JQuery.