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
9
votes
2 answers

Angular 7 - deploy workspace applications (projects) in isolation

In my cli-generated workspace I have the root-application which lazy loads numerous application (sitting in the projects folder). When I run "ng build root-application", all the chunks are placed in the dist/root-application folder, and I could copy…
blomster
  • 768
  • 2
  • 10
  • 27
8
votes
7 answers

Check if list is valid sequence of chunks

I want to check whether a list is a valid sequence of chunks, where each chunk begins with some value and ends with the next occurrence of the same value. For example, this is a valid sequence of three chunks: lst = [2, 7, 1, 8, 2, 8, 1, 8, 2, 8, 4,…
no comment
  • 6,381
  • 4
  • 12
  • 30
8
votes
2 answers

Application is generating a chunk of my lazy load module with prefix default ~ .. even before its getting invoked

I have implemented lazy-loading in my Angular Application (using CLI 7.3.4) Its compiling successfully but when I route to a lazy-loaded module (say module1 path), its loading one more chunk which is actually other lazy loaded module (Module2)…
Akhil
  • 1,403
  • 7
  • 19
8
votes
1 answer

Webpack chunking. No content appearing - chunks not loaded

It's been a day I'm trying to solve this annoying but, I'm sure, simple issue. I am trying to divide my bundle.js into chunks to optimize website loading time. Here is my webpack.config file : module.exports = { devServer: { historyApiFallback:…
Louis
  • 418
  • 6
  • 22
8
votes
1 answer

Merging file chunks in PHP

For the educational purposes, I wanted to create file chunks upload. How do you guys know when all of the chunks are uploaded? I tried to move chunks from temp and renaming them so they are in correct order, and then with the last chunk merge them…
Coldark
  • 445
  • 4
  • 16
8
votes
0 answers

How to load vendor and app JS in async scripts with webpack?

I'm interested in splitting my initial code in two chunks which are loaded asynchronously by the application using async/defer attributes. One for vendored libraries which rarely change and are big so that they could benefit from caching for a…
rosenfeld
  • 1,730
  • 15
  • 19
7
votes
1 answer

How can I play chunks of a video coming through a HTML5 websocket?

Let's say I have an ogg video. I can play it like that : Now if I managed to stream 1ko chunks base64 encoded of this video through an HTML5 websocket, how could I…
Nolhian
  • 574
  • 2
  • 7
  • 18
7
votes
2 answers

Chunk option class.output is not working on Error Message

I am preparing a tutorial for a course and I want to change the colour of the error to be red. I am using BookDown and gitbook as my output format. But I found that the option class.output is not working. I want to add a class to the output for the…
TheRimalaya
  • 4,232
  • 2
  • 31
  • 37
7
votes
2 answers

Splitting dataframe column into equal windows in Pandas

I have a dataframe like the following and I intend to extract windows with size = 30 and then write for loop for each block of data and call other functions. index = pd.date_range(start='2016-01-01', end='2016-04-01', freq='D') data =…
mk_sch
  • 1,060
  • 4
  • 16
  • 31
7
votes
3 answers

Stream processing large csv file in R

I need to make a couple of relatively simple changes to a very large csv file (c.8.5GB). I tried initially using various reader functions: read.csv, readr::read.csv, data.table::fread. However: they all run out of memory. I'm thinking I need to…
sfinnie
  • 9,854
  • 1
  • 38
  • 44
7
votes
1 answer

Spring Batch custom completion policy for dynamic chunk size

Context We have a batch job that replicates localized country names (i.e. translations of country names to different languages) to our DB from the external one. The idea was to process all localized country names for a single country in 1 chunk…
FlasH from Ru
  • 1,165
  • 2
  • 13
  • 19
7
votes
2 answers

out of memory error when reading csv file in chunk

I am processing a csv-file which is 2.5 GB big. The 2.5 GB table looks like this: columns=[ka,kb_1,kb_2,timeofEvent,timeInterval] 0:'3M' '2345' '2345' '2014-10-5',3000 1:'3M' '2958' '2152' '2015-3-22',5000 2:'GE' '2183' '2183'…
sunxd
  • 743
  • 1
  • 9
  • 24
7
votes
2 answers

Splitting vector based on vector of chunk-lengths

I've got a vector of binary numbers. I know the consecutive length of each group of objects; how can I split based on that information (without for loop)? x = c("1","0","1","0","0","0","0","0","1") .length = c(group1 = 2,group2=4, group3=3) x is…
user1234440
  • 22,521
  • 18
  • 61
  • 103
6
votes
1 answer

How to apply CSS style to Quarto output

I would like to apply a style to Quarto chunk output. The first thing I made was to embed some CSS properties in a class .output in the Quarto document and then referenced it with : ```{r class.output="output"} ``` It worked, but I think it's not…
6
votes
1 answer

Laravel's chunkById ambiguous column

When i use chunkById on a Query Builder with joins, i get the following error: SQLSTATE[42702]: Ambiguous column: 7 ERROR: column reference "id" is ambiguous $query = \DB::table('table1') ->select([ 'table1.id' …
Petru Lebada
  • 2,167
  • 8
  • 38
  • 59
1 2
3
60 61