Skip to main content

All Questions

Tagged with
6 votes
1 answer
135 views

Creating random music covers using Conways Game of Life algorithm

(A sample cover art follows.) I'm currently working on replacing all the covers of my music files to have a unified theme, and I've started this project in Java to refresh my knowledge after a gap of ...
Zipity's user avatar
  • 61
1 vote
1 answer
72 views

Renaming and deleting video file

I am using below code to rename and delete video. Need review for the following: Code optimization Performance Overall code review ...
Android Developer's user avatar
0 votes
3 answers
1k views

Fastest way to create random pixel image

I want to create a very big gigantic PNG image. The image pixel are generated randomly, being How can I improve the below code to create a fast random pixel image in java? ...
Hither Joe's user avatar
2 votes
3 answers
116 views

Java file analyzer byte-by-byte

This is part of this topic. Problem: I need to read a file with BigIntegers and make some analysis "on-the-fly" with each read number (get prime numbers count, get armstrong numbers count). Right now ...
Daniil Peterson's user avatar
1 vote
1 answer
1k views

Writing billions of lines to text file in java [closed]

I'm trying to write billions of strings lines to a file, it works for up to 40 million lines, but it's throwing out "java.nio.BufferOverflowException" error for 400 million lines. I also think my ...
Hither Joe's user avatar
-3 votes
1 answer
74 views

Code creates huge Text File [closed]

A Java program that writes each digit on a new line, from 1 to max integer. We should end up with 2.4 Billion lines. After looping to near the maximum integer, the text file becomes really huge. Like ...
king amada's user avatar
2 votes
0 answers
60 views

Sharing File (Content) without saving it before

I have a listview of PrivateFile objects which contain the fileId (int), fileName (String) ...
Lebron11's user avatar
  • 143
2 votes
1 answer
2k views

Java splitting too large text file enhance performance

I have a too large data.txt file containing data as follows: ...
Khaled's user avatar
  • 349
11 votes
5 answers
2k views

Counting relevant entries in a large bioinformatics file

I have a working example of a piece of code which opens up a file, gathers information about the contents, and outputs a map which contains the information. The file The file type is an in-house ...
Sam's user avatar
  • 382
2 votes
1 answer
11k views

Compare large text File in java line by line

Dear fellow developers I am doing a java program which compare two text files line by line, first text file has 99,000 lines and the other file has 1,15,000 lines. I want to read the files and compare ...
rackdevelop247's user avatar
3 votes
1 answer
19k views

Split a file into multiple files if it reaches a particular limit?

For each clientId, I have a Collection<Task> object. I am making file for each clientId...
user1950349's user avatar
1 vote
1 answer
450 views

Reading file and print it in hex format really slow

I'm trying to read a file and print its byte in hex form, using the below code. The code those it but i think optimization can be done to make it read and print faster, because if i remove the print ...
king amada's user avatar
0 votes
1 answer
1k views

Reading bytes from file to compute its SHA256 hash

I need to get text hash (sha 256), so I need to convert file to its type representation. Is this a fast way to get a byte representation of a file? ...
sherif's user avatar
  • 11
4 votes
2 answers
2k views

Creating multiple files from a list

This piece of code is to get random samples from two String lists, pos and neg. Based on a ...
user697911's user avatar
2 votes
1 answer
65 views

Reading in millions of lines of AOL query logs for query suggestion/expansion

I am working on a query suggestion program, and to faciliate this, I am reading in millions of AOL queries logs. The logs have this format: ...
Cache Staheli's user avatar

15 30 50 per page