android – Download manager won’t download but my media player can play through online

My Media player works well and can play through online but when I trying to download the played music the Download Manager can’t download and says “wait for network connection” even the url is same as what the played music url had.

enter image description here

Here is my code:

DownloadManager.Request request = new DownloadManager.Request(Uri.parse(urlhttp));

                    request.setDescription("file is being downloaded");
                    File mydownload = new File(String.valueOf(Environment.getExternalStoragePublicDirectory("/praise_file")));
                    if (!mydownload.exists()) {
                    BroadcastReceiver onComplete = new BroadcastReceiver() {
                        public void onReceive(Context ctxt, Intent intent) {
                            // your code
                            Toast.makeText(ViewPager.this, "Download Completed", Toast.LENGTH_LONG).show();
                    registerReceiver(onComplete, new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE));

                    request.setDestinationInExternalPublicDir("/praise_file", audio_file);
                    DownloadManager manager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);

that codes works last time but now won’t download anything even I have good internet.

لینک منبع

python – Splunk download using dask delayed

I am trying to download data from a splunk instance for a period of time using delayed. I have created a function that works like this:

def _execute_query(query, time_period):
    spl_service = Service(username, password, host, port)
    return spl_service(query, time_period)

def execute_splunk_query(query, time_period):
    time_periods = time_period.split(timedelta(minutes=10)
    delayed = []
    for tm_per in time_periods:
        results = _execute_query(query, tm_per)
    return delayed

Assume data are larger than my laptops memory for that period of time so I want to use dask for it. I use the distributed scheduler so I set up a local cluster like this

from dask.distributed import Client
client = Client()
# setup query and time_period

results = execute_splunk_query(query, time_period)

# i do the following to convert to dataframe
results_bag = dask.bag.from_delayed(results)
data_df = results_bag.to_dataframe()
data_df.persist() # works with client and local cluster

Then this process takes too long and I get a MemoryError. So I have some questions on that:

  1. Doesn’t dask take care of that (Memory) by moving data from memory to disk? Does this work when persisting data.
  2. I see that when the delayed tasks are executed I don’t see any performance boost, like they are executed sequenctially and not in parallel. I can see that is true also in dask dashboard.

Could you please explain the above a little more in details?

لینک منبع

I wanted to download videos in bulk from using python. I have a legit subscription

Below is the the section for downloading videos from a given course. Now the information is printed perfectly on the terminal but the videos do not get downloaded. Please help!!

def download_binary(_file_name_, _url_):
print "Downloading %s " % _file_name_
response = urllib.request.urlopen(_url_)
# req = urllib2.urlopen(_url_)
output = open(_filename_,"wb")
CHUNK = 16 * 1024
with open(_file_name_, 'wb') as fp:
while True:
chunk =
if not chunk:

لینک منبع

angular – Download a webpage in pdf format using angular4

I am new for angular 4. I need to download a HTML webpage in pdf format and the html webpage contains angular controls like input [(ngModel)], radio button [checked].
Rather than showing the control values it shows undefined in the pdf file.

I tried using jsPdf & html2Pdf But it throws error


You need either or
    at Object.jsPDFAPI.addHTML (jspdf.debug.js?6964:4049)

Code for TS File:

import { Component, ViewChild, Compiler, ComponentRef, OnInit, EventEmitter, ElementRef } from "@angular/core";
    import { Router } from '@angular/router';
    import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
    import * as jsPDF from 'jspdf';
    import * as html2canvas from 'html2canvas';

        templateUrl: "./dashboard.html"

    export class DashboardComponent implements OnInit {
     ngOnInit() {


        pdf() {
            let pdf = new jsPDF();
            let options = {
                pagesplit: true
            pdf.addHTML(document.getElementById("htmlform"), 0, 0, options, () => {

Code for HTML

<button type="button" (click)="pdf()"></button>
<html id="htmlform">
Person Details
 <tr class="BorderTopSec">
                <td colspan="2">
                    <div class="label">
                    <input name="person_name" type="text" [(ngModel)]="model.Name" [ngModelOptions]="{standalone:true}" />
                 <td rowspan="4" style="border-width: 1px 1px 1px 0px; border-style: solid solid solid none; border-color: black black black white; width: 164px;">
                    <img height="150" id="imgPhoto" src="" width="155" />
                    <div class="label">
                    <select name="LOCATION" style="border: currentColor; width: 95px; font-size: 13px;" [(ngModel)]="model.location">
                        <option *ngFor="let item of model.location" [ngValue]="locationId">{{item.location}}</option>
                    <div class="label">
  <md-radio-button value="1"   [ngModelOptions]="{standalone:true}" >Option 1</md-radio-button>
  <md-radio-button value="2" [ngModelOptions]="{standalone:true}" >Option 2</md-radio-button>




لینک منبع

windows installer – Inno Setup download from nexus server

I try make setup with will connect to my nexus server and give in instatlion pospolity chose with version install. To download from repo I use that plugin :

I can connect wich successful and download indicated, but dont have idea how to list in instaler version of apps and then install 😐

لینک منبع

ios – download m3u8 in chunks in two concurrent threads

I have a m3u8 link which contains some audio and video play list. So I need to download those files chunk by chunk in two concurrent threads and save each of them on documents directory. I want to know If It can be downloaded this way and If the files won’t mess with each other. I checked this sample from apple HLSCatalog sample, how I can modify to download on two concurrent threads.
Can you explain something about this or give some sample code or link.

لینک منبع

java – How I can to download json.simple jar?

I need to download json.simple jar ,I search and found this link But when I click on it then the browser show me the content of the page :

                                       ۲۸-Oct-2005 01:26                   -
apache-jaxme/                                      01-Nov-2005 05:10                   -
aptconvert/                                        01-Nov-2005 05:07                   -
ar/                                                06-Mar-2008 17:19                   -
args4j/                                            16-Mar-2013 07:01                   -
as/                                                25-May-2015 06:15                   -
ashkay/                                            01-Nov-2005 

How I can to save it as jar ?

لینک منبع

Netflix has a hidden limit on the number of times you can download stuff

Netflix limits the number of times titles can be downloaded to watch offline.
Netflix limits the number of times titles can be downloaded to watch offline.

Image: Justin Lane/EPA/REX/Shutterstock

Netflix binging offline may not be so simple after all. 

The video-streaming company announced last year that it would be letting users download movies to watch on-the-go in places where Wi-Fi isn’t available. It’s a great feature, but as is the case with pretty much anything, there’s a bit of a catch. 

The number of times a user can download a movie or show is limited, and Netflix hasn’t made it clear, according to Digital Trends. 

Any content downloaded has an expiration date, which is directly stated in the site’s help section. This means you only have, say 48 hours, to watch you movie you downloaded – you can’t keep it forever. Amazon Prime’s download option has a similar restriction. 

But users who wish to download the same movie or show multiple times may need to rethink that decision, because those are the downloads that appear to be limited, Android Police reported. 

The site points out that rights holders to the movies and shows have the ability to put a limit on how many times content can be downloaded, and since Netflix doesn’t own most of the shows and movies it provides, they really can’t bear all the blame here. 

The company does state on its site that there may be a limit on the number of times a title can be renewed. However, it’s buried in the site’s help section, and there’s no clarification on which titles have limits, and which titles may not. 

Netflix did not immediately respond to requests for comment. 

So until we get more answers, be careful about your repeat viewing. You may reach that dreaded limit sooner thank you think. 

Https%3a%2f%2fblueprint api uploaders%2fdistribution thumb%2fimage%2f869%2f6e3472c6 34bd 40a4 a352 b1d04e17534c

لینک منبع