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

H2 DB Corruption: java.lang.IllegalStateException: Chunk 1936 not found [1.4.200/9]

we are using H2 1.4.200 with Spring Boot 2.2.2 and are experiencing from time to time database chunk corruptions. Therefore the database is not usable anymore. We know that our database is corrupt since recovery leads to: "IllegalStateException:…
user13135730
  • 21
  • 1
  • 2
2
votes
4 answers

How to calculate mean of every three values of a list

I have a list: first = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18] I want another list with mean of three values and so the new list be: new = [2,5,8,11,14,17] There will be only 6 values in the new list as there are only 18 elements in the…
DearBeliever
  • 41
  • 1
  • 7
2
votes
0 answers

Is there a way to replace a required package by a global variable in async chunks with Webpack?

What I want: All JavaScript/TypeScript files that require jQuery to contain it, but all my async chunks that require jQuery to not contain jQuery and use the window.jQuery variable instead. The Problem: The thing is: there is a jQuery plugin…
Heymath
  • 21
  • 2
2
votes
1 answer

How to bundle vendor and main scripts separately using webpack?

I really appreciate some help here, in this case, I would Like to separate my vendor.js and my main.js at the final build operation. I've tried that before to loop through in my package.json devDependency for separate my third party libraries and…
2
votes
2 answers

In Powershell Import a CSV , split into multiple files every 10 lines

i'm new at powershell coding and what i'm trying to do is to import a CSV files with an unknown number of lines and then split it every 10 lines to a new CSV file. Example if I input a CSV file of 97 lines, I expect 9 files of 10 lines and 1 file of…
Outableh
  • 35
  • 3
2
votes
4 answers

Chunking list including overlapping intervals

Given the following list: l1 = [0,1000,5000,10000,20000,30000,40000,50000] I know I can create chunks of it by looking at every consecutive pair of numbers: def chunker(seq, size): return (seq[pos:pos + size] for pos in range(0, len(seq),…
Zizzipupp
  • 1,301
  • 1
  • 11
  • 27
2
votes
3 answers

How do I perform calculations after splitting a datset into multiple datasets?

I want to take a dataset and split it into multiple datasets. For a simplified verson of the problem. Realistically, I will have thousands of rows but I would like to simplify the problem for the purpose of understanding. Suppose you have the…
2
votes
0 answers

Webpack: Limit chunk files from dynamic imports

I'm doing dynamic imports of locale files for one of my npm-dependencies. My software is currently translated into 4 languages. The package however provides more than 50 different languages. Since I'm doing the dynamic import like this import(/*…
nioe
  • 756
  • 1
  • 7
  • 15
2
votes
1 answer

How to split a string of numbers in to chunks in javascript

Lets say that i have a string with random numbers like the following one 11111111133333333333222222220000000111111010101010223311232323 and I would like to split the above string into chunks that each number forms and maybe put it in an array or an…
CostaCos
  • 59
  • 5
2
votes
0 answers

python spaCy intersection of chunks and tokens

I and writing code to extract certain information from texts and I am using spaCy. The goal is that IF a particular token of a text contains the string "refstart" then I want to get the noun chunk preceding that token. just for info: this token…
JFerro
  • 3,203
  • 7
  • 35
  • 88
2
votes
0 answers

In python with pandas and chunks, are there ways to read a file faster?

In Python3 and pandas, I have a script to read a CSV file of 9.8 GB I use chunks and search the "cnae_fiscal" column for codes of interest Then the result creates a new dataframe. I did so: import pandas as pd import numpy as np # Establish chunks…
Reinaldo Chaves
  • 965
  • 4
  • 16
  • 43
2
votes
2 answers

Java - Read text file by chunks

I want to read a log file in different chunks to make it multi threaded. The application is going to run in a serverside environment with multiple hard disks. After reading into chunks the app is going to process line per line of every chunk. I've…
Yoni
  • 325
  • 2
  • 7
  • 15
2
votes
0 answers

Can webpack fetch same bundle twice on multiple dynamic imports?

I have combined two files file1.js and file2.js into single chunk using the following configuration: optimization: { splitChunks: { cacheGroups: { test(module) { return (module.resource.includes('file1') ||…
Sachin Singh
  • 898
  • 1
  • 8
  • 17
2
votes
1 answer

R code + text: Differences in code chunk delimitation between Rmd and R

I am starting to embed R codes with text and I'm using knitr to generate pdf and html documents. I've already done that before by editing Rmarkdown files, but it seems to me that there's an advantage of compiling reports directly from R scripts…
bniebuhr
  • 129
  • 1
  • 10
2
votes
0 answers

Spring boot : How to deal with chunks when uploading a file

In my Spring boot app I can upload local files to the server which works fine: @RequestMapping(value = "", method = RequestMethod.POST) public ResponseEntity uploadoFile(@RequestParam("file") MultipartFile file, @RequestHeader HttpHeaders headers)…
Abdennacer Lachiheb
  • 4,388
  • 7
  • 30
  • 61