random-access Questions
5
Solved
In MySQL I can use the RAND() function, is there any alternative in SQLite 3?
Church asked 10/8, 2009 at 7:38
10
I've got a text file that contains several 'records' inside of it. Each record contains a name and a collection of numbers as data.
I'm trying to build a class that will read through the file, pr...
Tim asked 5/11, 2008 at 16:10
6
RandomAccessFile is quite slow for random access to a file. You often read about implementing a buffered layer over it, but code doing this isn't possible to find online.
So my question is: would...
Leflore asked 10/4, 2011 at 19:38
2
Solved
Is there a way to use StAX and JAX-B to create an index and then get quick access to an XML file?
I have a large XML file and I need to find information in it. This is used in a desktop applicatio...
Shena asked 12/4, 2017 at 10:11
4
Solved
I'd like to be able to do random access into a gzipped file.
I can afford to do some preprocessing on it (say, build some kind of index), provided that the result of the preprocessing is much small...
Encamp asked 26/3, 2010 at 21:39
10
Solved
This is similar to a previous question, but the answers there don't satisfy my needs and my question is slightly different:
I currently use gzip compression for some very large files which c...
Jeramey asked 9/1, 2009 at 22:29
1
Solved
Given a fixed-sized array A of objects, suppose a much smaller subset of these objects meet a certain criteria B. There are three tasks I want to complete with approximately equal frequency:
I wa...
Bureaucratize asked 22/8, 2018 at 6:41
4
Solved
I've read that accessing elements by position index can be done in constant time in a STL deque. As far as I know, elements in a deque may be stored in several non-contiguous locations, eliminating...
Rephrase asked 19/2, 2010 at 14:54
8
Solved
first off, is there a such thing as a random access random number generator, where you could not only sequentially generate random numbers as we're all used to, assuming rand100() always generates ...
Clinkerbuilt asked 10/6, 2010 at 23:8
2
Solved
I understand how random access iterators work for contiguous containers like std::vector: the iterator simply maintains a pointer to the current element and any additions/subtractions are applied t...
Rufinaruford asked 22/4, 2014 at 3:14
4
Solved
Am I missing something or does node.js's standard file I/O module lack analogs of the usual file random access methods?
seek() / fseek()
tell() / ftell()
How does one read random fixed-size rec...
Harrie asked 18/12, 2012 at 12:25
10
Solved
I have a huge file, where I have to insert certain characters at a specific location. What is the easiest way to do that in C# without rewriting the whole file again.
Feces asked 19/9, 2008 at 0:56
3
Solved
Angew made a comment that a vector using a raw pointer as it's iterator type was fine. That kinda threw me for a loop.
I started researching it and found that the requirement for vector iterators ...
Carbonization asked 25/1, 2017 at 13:38
1
Solved
I read some tutorials on how to implement a raytracer in opengl 4.3 compute shaders, and it made me think about something that had been bugging me for a while. How exactly do GPUs handle the massiv...
Specie asked 31/12, 2016 at 19:56
3
Solved
I have large files, containing a small number of large datasets. Each dataset contains a name and the dataset size in bytes, allowing to skip it and go to the next dataset.
I want to build an inde...
Burlingame asked 21/12, 2016 at 22:33
1
Is it possible to create a stream that reads from a specific position of file in node.js?
I know that I could use a more traditional fs.open / seek / read API, but in that case I need to somehow w...
Soever asked 14/11, 2016 at 1:43
1
Solved
I've noticed that java.io and java.nio implementations of random access files differ slightly with respect to how FileLocks are handled.
It appears as though (on Windows) java.io gives you a manda...
Fiertz asked 2/9, 2016 at 13:5
5
Solved
I'm working on a multithreaded program where all threads share some vector (read-only). The goal of each thread is to walk the entire vector. Nonetheless, all threads must visit this vector in a di...
Arruda asked 13/10, 2015 at 8:4
3
Solved
I have been looking at similar questions regarding how to generate random numbers in python. Example: Similar Question - but i do not have the problem that the randomfunction returns same values ev...
Musketry asked 21/9, 2015 at 9:51
6
Solved
Is there any way to have a random string in a Django template?
I would like to have multiple strings displaying randomly like:
{% here generate random number rnd ?%}
{% if rnd == 1 %}
{% trans &q...
Pacorro asked 2/6, 2012 at 8:46
8
Please recommend a technology suitable for the following task.
I have a rather big (500MB) data chunk, which is basically a matrix of numbers. The data entropy is low (it should be well-compressib...
Nursemaid asked 1/7, 2010 at 16:8
3
Solved
Let's take an example to make it easier. I build a list which the constructor takes an integer and a List<Integer>. My list will contains all the elements of the given list multiplied by the ...
Savor asked 20/4, 2015 at 23:1
1
Solved
According to the PDF 1.7 specification, page 90, Sec 3.4:
The preceding sections describe the syntax of individual objects. This
section describes how objects are organized in a PDF file for ef...
Restrainer asked 2/4, 2015 at 15:52
1
Solved
I am developing a small library for my work, and I derived a few classes from the standard random-access iterator category. This allows me to use things like iterator traits and to not worry too mu...
Jeroboam asked 12/8, 2014 at 18:35
7
Solved
Is there a Python file type for accessing random lines without traversing the whole file? I need to search within a large file, reading the whole thing into memory wouldn't be possible.
Any types ...
Keyte asked 15/2, 2011 at 2:18
1 Next >
© 2022 - 2024 — McMap. All rights reserved.