Questions tagged [chunks]

A chunk is a fragment of information which is used in many multimedia formats

A chunk is a fragment of information which is used in many multimedia formats, such as PNG, IFF, MP3 and AVI.

Each chunk contains a header which indicates some parameters (e.g. the type of chunk, comments, size etc.) In the middle there is a variable area containing data which are decoded by the program from the parameters in the header. Chunks may also be fragments of information which are downloaded or managed by P2P programs. In distributed computing, a chunk is a set of data which are sent to a processor or one of the parts of a computer for processing. For example a sub-set of rows of a matrix.

901 questions
3
votes
2 answers

How to upload video files as chunks in angular (version 8)

I want to upload large video files as chunks to the server using angular HttpClient in angular with aspnetcore web API, as I am having issues with file size limit using multipart file upload.
Mohamad Al Asmar
  • 1,107
  • 1
  • 16
  • 35
3
votes
3 answers

Split lists into chunk based of index of another list

I want to split a list into chunks using values of of another list as the range to split. indices = [3, 5, 9, 13, 18] my_list = ['a', 'b', 'c', ..., 'x', 'y', 'z'] So basically, split my_list from range: my_list[:3], mylist[3:5], my_list[5:9],…
d789w
  • 357
  • 5
  • 19
3
votes
4 answers

Move elements using array_chunk with PHP

I have a basic array in which I am using array_chunk to divide it into 3 elements. $array = array( 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' ); $chunk = array_chunk($array, 3); The result is as follows [ [ "a", "b", "c" ], …
Cristian Bustos
  • 357
  • 7
  • 20
3
votes
2 answers

C - How to copy [600][400] array into [4][4] array, then randomize element positions?

I'm trying to make a function that shuffles an image as shown below: Its argument takes three 600x400 RGB arrays to create the pixel colors. I have been trying to brainstorm this for so many hours but I'm so confused about methods to do it. Here's…
Eric
  • 117
  • 1
  • 2
  • 12
3
votes
1 answer

Why Does Browser Keep Loading When Using createReadStream() Node.js

New to Node.js I do understand that createReadStream() function is better for the performance than readFile(), because createReadStream() reads and writes data in chucks while readFile() first reads the whole content. Thus if the file is large,…
O Connor
  • 4,236
  • 15
  • 50
  • 91
3
votes
0 answers

vue application does not update when using webpack chunks

I have a mysterious behaviour here using webpack in a vue-application. I have some view-paths stored in my database and I import the views in a for-loop dynamically like for(let i = 0; i < routesList.length; i++) { const viewPath =…
pixelmusik
  • 510
  • 5
  • 19
3
votes
0 answers

Upload large video file chunks use retrofit2 (Android)

Sorry for my english. I need upload large files to server. I use retrofit2 for this. Now i upload files without chunks, i send single file. Like this: interface @Multipart @POST("/api/upload") Observable
r1299597
  • 609
  • 3
  • 10
  • 20
3
votes
0 answers

R notebook: rerunning chunks in different parts of code

Is there a way to rerun chunks in R notebook? In knitr it is possible to rerun chunks simply by referencing their name. E.g. like this below, only the second chunk would output the result (source…
puslet88
  • 1,288
  • 15
  • 25
3
votes
0 answers

Split chunks in webpack 4

I'm trying to migrate project from webpack 3 to webpack 4. In previous version there was configuration like: new webpack.optimize.CommonsChunkPlugin({ names: ['common', 'initApp'], filename: '[name].[hash].js' }), new…
Simcha
  • 3,300
  • 7
  • 29
  • 42
3
votes
4 answers

What does Filestream.Read return value mean? How to read data in chunks and process it?

I'm quite new to C# so please bear with me. I'm reading (using FileStream) data (fixed size) to small array, process the data and then read again and so on to the end of file. I thought about using something like this: byte[] data = new…
Ben
  • 2,435
  • 6
  • 43
  • 57
3
votes
0 answers

Text content did not match error when hot reloading lazy loaded chunks. Webpack 4, React-Router 4, loadable-components 1.2

I have an universal boilerplate that works 99%. The problem is when I hot reload after code change the page shows the correct output, but If I do an refresh of the page I get an error like this. Warning: Text content did not match. Server: "HOME"…
Thomasn
  • 101
  • 5
3
votes
0 answers

Webpack - Loading chunk 0 or 1 failed for some users

There is a problem, and cannot find in any way the solution since for a long time directly I did not deal with the webpack setup. Errors from users come from the portal where my widgets written on React are connected. For example, some of my users…
Ilya
  • 113
  • 2
  • 11
3
votes
1 answer

MongoDB not move chunks to new shard in sharding cluster

I am running mongodb for storage data. The MongoDB cluster have 3 shards, each shard have 3 server replica-set, 2 mongos and 3 config server. Each server have 1TB for storage. Now, all 2 of 3 shards have data about 90% capacity. When I add a new…
Piu
  • 135
  • 2
  • 20
3
votes
1 answer

How do I change the version of Python being used in my RMakrdown code chunks?

I apologise first as I am very new to much of this. I am working in Markdown and I want to use the python package tweepy. Now this requires a more updated version of Python than my current one: import sys print(sys.version) which gives me 2.7.10…
3
votes
0 answers

How to call a program within a bash chunk in R markdown file?

In the block below, TSF_process is available from any directory (is in the PATH env). However, when I run this chunk: {bash process, echo=TRUE} TSF_process ./raw_data/settings.set 1 I get the error msg: /tmp/RtmpK4MjsR/chunk-code1c4af3bc4f8b8.:…