Is it possible to track the rate of process from the ".aria2" files? - aria2

I am developing a project in python. I use aria2 to be the external downloader of youtube-dl. I used to track the file size when I don't use aria2. But now I can't do this. Because I need to a lot of process of aria2 at the same time, I can't open enable the rpc. I want to track the rate of process from the ".aria2" files. How can I do this? Many thanks.

Related

How can I use Cloud Storage as a Media Server without caching entire file before playback?

TL:DR - How can I stream content (specifically music and videos) from a Cloud Storage solution, like Google Drive without having the entire file cached first? My goal is to create a Netflix/YouTube-esque experience with my movie/music library.
So, this seems to be an issue that many people are having, and so many forum posts say that PlexCloud is the solution, but it isn't available anymore, so I want to find another way.
Essentially, I would like to free up space on my local machine, offloading my movies and music to the cloud. I would like these files to be available instantly from any of my devices.
The solutions I have come across so far are:
Google File Stream (or similar)
Expandrive
CloudMounter
These apps mount your cloud storage as a network drive and allow you to store files on the cloud and have "instant" access. These sound great in prinicple, but the issue with all of them is that the entire file has to be cached first before you can watch/listen. This defeats the whole purpose of having the files saved to the cloud, as every time you want to watch a video, the entire file has to be cached. This is very inconvenient for me, as I have a rather slow internet connection, monthly transfer limits, and you have to wait until the file has been cached before you can watch.
The closest I've got to making this work is with Kodi, but the interface is horrible on anything other than a TV. On desktop or mobile, it's useless! But, as far as functionality, the way it retrieves files is perfect. On their website, it says that it only caches up to ~60MB at a time, meaning you can start watching/listening instantly, and the file doesn't need to be cached in its entirety.
So my questions are:
Is there an alternative to Kodi that works on all major OS's, where the files are instantly available and the caching system works like YouTube, Netflix, where only a small portion of the file is cached at once?
Is it actually possible to play a video natively in the OS (in an app like VLC) before the entire video is stored on the local disk, either in storage or in cache?
If so, how would I go about doing this?
A few conditions for the solution:
I don't want to have to use the browser every time - A desktop/mobile app, Finder, or File Explorer is essential.
Ideally something that will run on Android TV, or at least is able to use Chromecast.
Files must be instantly accessible - nothing that will cache the entire file first (unless this is impossible due to how OS's work).
If possible, I would prefer NOT to have to go through some massively complicated set up with coding, terminal commands, or using a dedicated server. The solution must use cloud storage, ideally with an app that works on major OS's.
Thanks in advance for help and suggestions!

windows api - detect when file of certain type is opened

Is it possible to have certain code executed whenever a file of a certain type is opened? In my case, I want to "listen" for when video files (".avi, mp4, etc.") are opened (either via the windows file explorer shell, or maybe directly from a video player?), so that I can store a history of played videos.
An hour's worth of googling turned up nothing, so I turn to you stackoverflow. Please point me in the right direction.
Thanks.
The best (and only reasonable way) to capture file system events (open/read/write) from arbitrary processes is by writing a File System MiniFilter
If you're developing a commercial product, please refrain from "hooking" Usermode APIs like CreateFile. Doing so requires numerous, platform-specific hacks, and is a compatibility nightmare.
I wouldn't hook CreateFile for this job. Windows has mechanisms built-in to handle jobs like this much more cleanly.
The easy way to handle this would be with ReadDirectoryChangesW with the FILE_NOTIFY_CHANGE_LAST_ACCESS flag. Any time a file is opened, its last-access time will be updated, so this tells you any time the file was opened.
Although it's pretty rare, that can "miss" changes under rare circumstances1. If you must have 100% accuracy (instead of, say, 99.9%), you can read change journals instead, but it's a fair amount of extra work for an advantage you may not care about.
1. There is one circumstance that isn't (necessarily) rare that you might care about though: ReadDirectoryChangesW will only work when/if your program is running. Change journals will let you know about things that happened even when your code isn't running at all.

Is there a way to schedule Photoshop batches

I have a photoshop batch that needs to be run on about 70+ folders, at least once per day.
Right now, we manually open photoshop, load the batch, select an in and out folder, and run it.
I'd like this to happen automatically if possible, as it takes about a minute to do it manually, which is over an hour per day of man-hours.
I've tried googling it, but it's not the easiest thing to google as I'm looking to automate an automated process :).
Right now we're using CS5.5 but will be upgrading to CS6 shortly, running on Windows.
If anyone has any experience or ideas on how to go about doing this, I'd appreciate it.
Aaron.
How often do the import/export paths change? Not knowing the nature of the whole process it's difficult to assess how difficult to be. Could you not create a series of droplets for each process (import from a --> process --> put into b, import from a --> process --> put into c etc)
Sounds like you need a script to control the entire process with a UI giving various options at the beginning which would speed things up.

Ruby running process in the background

I am attempting to write a small console application to play mp3s. The mp3 playing will be handled by an external binary, say mpg123, whilst the playback control, playlists etc will be implemented as a curses console app.
Say I create a "playlist" object which has many tracks added to it. When I play a track, I need to call the binary in the background whilst allowing the UI to be responsive. I also need to be able to skip to the next track etc.
I assume I need to use a Thread or Fiber for this? How do I control the Thread?
I've not done any threaded Ruby programming before.
Does anyone have a simple example of how to get started with this?

Best Way to Transfer Large Files in Windows

I often have to transfer large files >50GBs sometimes >100GBs between drives both internal and external during backups of our networks email servers. What is the best method of transferring these files? Command Line such as XCOPY? Possibly something robust enough to continue the transfer if interrupted due to time limits or network issues.
Check out robocopy. From Wikipedia:
robocopy, or "Robust File Copy", is a
command-line directory replication
command. It was available as part of
the Windows Resource Kit, and
introduced as a standard feature of
Windows Vista and Windows Server 2008.
For free, I use SyncToy (from Microsoft). That way if something fails it doesn't abort the whole transfer.
The next best for non-repetitive tasks IMHO is XCopy.
I have used Teracopy with good success.
I get asked this question every now and again and I always say the same thing. Microsoft Background Intelligent Transfer Service (BITS). This is the same technology used to deliver large service packs and such to workstations. Some of the features:
Network Throttling
Asynchronous Transfers
Auto-Resume
Priority Levels for Downloads
Proven Transfer Mechanism
For those not wanting to deal with the command line syntax you can explore wrapper applications, such as SharpBITS.NET, that provide a GUI interface.
I use CopyHandler and find it does the job well.
Well i use http://itrnsfr.com to transfer my big files online. I wish they extend the quote over 2 GB they currently offer to free users

Resources