is there such way/method/strategy to detect if the downloading of a file is finished?..my problem is like this.  Scenario: when click the report generator button, a loading wheel icon appears because it takes a while to generate the spreadsheet...and now, when the download has finished and the spreadsheet was saved in the client's machine, the loading wheel icon is still there spinning.. the only way that I think of to remove that spinning wheel is by detecting if the downloading is finished and then hide the spinning wheel ..so how ? :confused:  PLEASE TAKE NOTE BEFORE MARKING MY QUESTION AS DUPLICATE: when i push the button, I am writing a file in the spreadsheet before it automatically/forcefully gets downloaded. it's not like the typical downloading of a static file
123129
I've got a php page which handles requets for file downloads. I need to be able to detect when a file has been downloaded successfully. How can this be done? Perhaps there's some means of detecting this client-side then sending a confirmation down to the server.  Thanks.  Edit: By handle, I mean that the page is doing something like this:  $file = '/var/www/html/file-to-download.xyz';   header('Content-Type: application/octet-stream');   header('Content-Length: ' . filesize($file));   header('Content-Disposition: attachment; filename=' . basename($file));   readfile($file);
23343
If a Windows server (2k3/2k8) is set to "download but not install" updates, is there a way to check from the command line.. perhaps a log file or something I can check with powershell, to see if there are any updates actually waiting to be installed? I'm trying to prevent having to manually log on to each server to check, even though they want the "trigger" pulled manually. We have an automation system in place I can use (CA Autosys) - just not sure what to have it look for.
47690
This is the situation:     Working on (the next version of) a Unity Quick List editor, I would like to add a reliable way of "restarting" launcher icons. To do so, I need to remove the icon (editing gsettings) and replace it on the same position. So far no problem. However, if the application in question is running, user will possibly lose data, as the application will quit when it's icon is removed from the launcher. What I need is a reliable way to find an application's process name, to let the editor check in the list of running processes if the application is running, and send a warning message to the user that the icon can not be restarted if the application is running.  What I did so far is make the editor look into the desktop file, to read the command, also read the command, stripped from the directory section, and furthermore look into possible remote scripts the desktop file command might refer to, looking for strings starting with "./"  Although the method seems to work well with all applications I tested it on, I have the feeling there must be an easier way to cover the problem in an "all in one" way...  Is there?  Also suggestions to catch more exceptional situations are welcome!
4649
I'd like to be notified when a file has been changed in the file system. I have found nothing but a thread that polls the lastModified File property and clearly this solution is not optimal.
50481
In c#, how can I check to see if a link button has been clicked in the page load method?   I need to know if it was clicked before the click event is fired.
64577
I want the log to roll over as long as the application is running, but I want the log to start fresh when the application is restarted.  Updated: Based on  feedback, my appender looks like this:     &lt;appender name="myRFA" class="org.apache.log4j.RollingFileAppender"&gt;       &lt;param name="File" value="my-server.log"/&gt;       &lt;param name="Append" value="false" /&gt;       &lt;param name="MaxFileSize" value="10MB"/&gt;       &lt;param name="MaxBackupIndex" value="10"/&gt;       &lt;layout class="org.apache.log4j.PatternLayout"&gt;          &lt;param name="ConversionPattern"             value="%d{ISO8601} %p - %t - %c - %m%n"/&gt;       &lt;/layout&gt;    &lt;/appender&gt;   I simply added the following line:  &lt;param name="Append" value="false" /&gt;   It now truncates the base log file at startup, but it leaves the rolled files alone.
112763
I am looking for a way to display an animated progress indicator (animated GIF, a rotating wheel rendered through Java2D etc., no preference here) in a table cell until the value that is to be finally displayed has been computed or retrieved.  So far I have just put a static "pending..." text into each cell that is not yet ready to speed up display. As data arrives from a background thread I put it into the appropriate cell and call repaint on the table.  With a static label or image this works fine, but because the cell rendering uses this only as sort of a rubber stamp and does not create separate instances per cell (which of course is a good idea performance-wise) an animated GIF for example does not "play" in the individual cells.  How can I achieve such an effect? It would make for a more "polished" UI than just a simple text.
90706
When you share a Zip file in Google Drive, you land on a page to view all the files inside the zip file and to download the entire file the user has to click File → Download. I've noticed a lot of users don't get this so I actually have to tell them to click File → Download when all I really want to do is give them a link to directly download the file.
37397
What is the best way to implement, from a web page a download action using asp.net 2.0?  Log files for a action are created in a directory called [Application Root]/Logs.  I have the full path and want to provide a button, that when clicked will download the log file from the IIS server to the users local pc.
27570
What's a good algorithm for determining the remaining time for something to complete?  I know how many total lines there are, and how many have completed already, how should I estimate the time remaining?
60466
I can see the data transferred (internet Download/Upload) in the current session from the System Monitor. But I want something that keeps track of all the data transferred and I can see how much data was used in a month or two. Preferably a GUI tool.
49075
I'm trying to figure out exactly when I created a file. Windows 7 thinks I don't know how to subtract two times, and tells me it was created "1 hour ago." I need a little more detail than this, but I can't seem to find a setting to toggle this "feature" off.  Example below:
37538
While I'm downloading a large file on Windows 7 using Google Chrome, my computer goes to sleep. I could obviously set the computer to not sleep at all (or change the interval before the computer sleeps).  What I want to know is: Is there a way to make Windows 7 not sleep as long as a download is in progress? (perhaps when any network activity is going on?). I've looked in the Advanced Power settings, and haven't seen any obvious setting.
40481
In an app I'm building the user can click a button to load more content, which might take 1 second or up to X seconds (when X seconds passed I show a timeout error message). There is a "Loading" text (at the moment, it might end up being a spinner) that appears once the button is clicked and disappears when the content is loaded.  My idea is to show the loading state as soon as the user clicks. If the content arrives "too fast" the loading will appear for a very short time, so the user will know something was shown but won't be able to realize what it was (and look strange).  On one hand the content should arrive as soon as possible, but on the other hand, it might be strange to show some information without a minimum time (2 seconds maybe?) to assimilate it.  Any ideas of what is the correct way to go?  I am not looking for specific solutions on how to implement a loading state, @Majo0od provided a  in the comments. I am looking for rationale and/or any relevant case or information if there is.
57001
Does anybody know how to get rid of the annoying "Working on it ..." Message in the Windows 10 File Explorer.  It stays there (on the right side) for a few seconds to many seconds when opening the file explorer.  OS Window 10 System Partition SSD All other files which are used often are also on a SSD (only one HDD for bigger files which are also not used often, exists)  So showing recent files should really be fast. Also I do not mind if there is an option to deactivate this feature.
16325
I am downloading Fortnite; I want to exit the launcher, but I dont want to lose the progress on my download. If I exit the launcher, will the download fail? Currently, it is paused. Is it possible for me to shutdown my PC and then resume the download later?
82738
Once I click to run minecraft a small window appears saying "Downloading runtime", then three other folders appear onto my desktop: Game, Native Log, and Runtime. This really annoys me, as I have to keep deleting them after I am done with a session of minecraft. Why is this? It never use to happen before.