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
2
votes
1 answer

How to chunk a Collection of Strings in java

I have a Collection of type String that contains anywhere from 0 to 10k values. I am looking for an elegant or reusable way to write a method that takes in a Collection of type String and a batch size and splits the collection into smaller chunks of…
unboundedcauchy
  • 113
  • 2
  • 8
2
votes
2 answers

Rust chunks method with owned values?

I'm trying to perform a parallel operation on several chunks of strings at a time, and I'm finding having an issue with the borrow checker: (for context, identifiers is a Vec from a CSV file, client is reqwest and target is an Arc
Dragoon
  • 723
  • 6
  • 13
2
votes
3 answers

Split a list into chunks by a number of chars [Python]

I've got a list of words (domains in my case) and I need to split this list into groups, each group should contain not more than N chars (=bytes). One important thing is that the last word in each group should not break in the middle. I mean there…
oencenkgh
  • 21
  • 4
2
votes
1 answer

R Markdown chunk font color changed

Just a few days ago, when I create a R Markdown, the chunk colors were like this now it looks like this The function calls are lack of color. Why is that? now it feels so "colorless"...
2
votes
1 answer

Merge MediaRecorder chunks into a single video file with NodeJS

I'm trying to record a stream with MediaRecorder API and sending the available chunks to the server with Socket.io. I'm getting the chunks in the backend and it successfully merges to a single file, but the issue is only the first chunk is…
ishan shah
  • 455
  • 2
  • 8
  • 23
2
votes
0 answers

How to slice a file into chunks in react-native

ImagePicker.launchImageLibrary(options, (response) => { createChunks(response); }); I got file uri,path from imagepicker, i want to divide the file into chunks and upload as form data,How to divide the media file(mp4,etc) into chunks in…
Ajith
  • 775
  • 1
  • 13
  • 47
2
votes
1 answer

Split large CSV file into multiple smaller CSV files using javascript, react

I have a large csv file, even several million records. Is it possible on the client side, using javascript, to split this large file into several smaller ones (for example 100k records)?
jan.kowalski
  • 105
  • 1
  • 5
2
votes
3 answers

Converting an DataFrame from pandas to dask

I followed this documentation dask.dataframe.from_pandas and there are optional arguments called npartitions and chunksize. So I try write something like this: import dask.dataframe as dd import pandas as pd df = pd.DataFrame(...) df =…
Hazan
  • 323
  • 3
  • 11
2
votes
1 answer

How to split a 1D numpy array into chunks, with each chunk length depending on condition

I'm new into python and programming in general, so please enlighten me. I have two 1D arrays for data, time. For each element in time corresponds an element in data. The elements in time correspond to a full day of measurements. I want to split the…
AngelosSlt
  • 23
  • 4
2
votes
1 answer

Mail error 550 Maximum line length exceeded (RFC 5322 2.1.1)

I have a reseller hosting account containing a couple of domains. One of our clients has recently been complaining about emails not being sent. They are receiving the error "550 Maximum line length exceeded (RFC 5322 2.1.1)". After some Googling it…
Dennis
  • 3,044
  • 2
  • 33
  • 52
2
votes
2 answers

Requesting direction for loading my file in chunks (Only needing advice)

I've been working for the last few days on a method to compress 144 million tile representation for my xna game down to a very small size when saved. Having managed to pull that off I now find myself stumped on how to go about getting them back from…
Grimbly
  • 194
  • 8
2
votes
2 answers

libcurl: Detect chunk boundaries of chunk-encoded responses

I am using libcurl, currently the easy api. I am making a request to a web server that responds with HTTP Chunked Encoding. I would like to know if there is a way to know when a chunk from the server has finished. I was looking for some type of…
Bill Prin
  • 2,498
  • 1
  • 20
  • 27
2
votes
1 answer

Spacy Dutch noun_phrases returns empty list using nl_core_news_sm

I want to extract the noun_phrases of a Dutch text using the model nl_core_news_sm by spacy. It returns an empty list On the other hand the equivalent English model en_core_web_sm provides indeed the list of noun_chunks (noun_phrases) Is this normal…
JFerro
  • 3,203
  • 7
  • 35
  • 88
2
votes
2 answers

JavaScript specific way off array chunking

I have array like this: [{i: 0, abc: true}, {i: 1, abc: true}, {i: 2, abc: true}, {i: 3, abc: true}, {i: 4, abc: true}, {i: 5, abc: true}, {i: 6, abc: true}, {i: 7, abc: true}, {i: 8, abc: true}, {i: 9, abc: true}, {i: 10, abc: true}, {i: 11, abc:…
Kishieel
  • 1,811
  • 2
  • 10
  • 19
2
votes
1 answer

Disabling chunks with rewire still creates chunks after npm build

I followed this tutorial do disable chunks/code-splitting when running npm build, after running npm build it still creates chunks Anyone has any idea why this is happening, for the record this is my 'build-non-split.js' file and I don't use…