Heredoc or an external template file in my bash script – how it affects readibility/maintanance?
I realise that this question may be down to personal preference but I’m pretty new to Bash / shell scripting so thought it’d be worth some research to see if there’s some sort of standard/best practise or agreeable consensus.
Ideal “intermediate” file format to use for structured/styled text? [closed]
Closed 10 years ago.
Implementation ideas to store multiple files within a single file for faster access?
My requirement is to store a large number of files within a single file.The files stored could be anything like images, videos or simple text files as well. I want some ideas to implement the same. I am thinking of implementing a file system within a file, but am not sure if its a good idea.
Increase the size of a memory mapped file
I am maintaning a memory mapped file to store my tree like datastructure.
Is there a manageable way of keeping track of loose code? [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. I program simple tasks everyday, but I have […]
Using assembly to write to a file
I am working with a trading application (reading data from the exchange) which generates a bucket load of data on a per second basis. We have different “log-levels” but even the minimal log-level generates so much data ! This process of log creation is quite I/O intensive.
Reading from a file and inserting into a database, a good practice
I am making an Android application which reads several JSON files and inserts the read information into tables in my database.
For instance, there are three files:
Watching file changes/additions/removal, but with an eye on partial transfer
I would like to monitor the filesystem in python, so that my application gets warned of the new file addition, file removal, or file change. Once the file is detected, the application starts extracting the contained data through various plugins. The problem is that I am dealing with big files, and when the user starts copying a file from outside into the watched directory, it will be detected, but it will appear as corrupted. Checking for file size between invocations is potentially a good strategy, but it ignores the fact that other generators of the file (such as wget) might have long pauses when the file is not changing in size, and yet is not completed. I don’t have control of the file format I am downloading either, so I can’t check for an end-of-file mark, because it could not be there.
All images in one folder for a website?
When creating websites, is it better to have a lot of images in one folder, or have them separated?
How are new file formats constructed?
I’ve used a software suite that is installed in offices and on remote vessels. The installations communicate back and forth, and they do that by using a simple proprietary file format that looks something like this: