Questions tagged [human-readable]

Human-readable is a representation of data or information that can be naturally read by humans.

Human-readable is a representation of data or information that can be naturally read by humans.

In computing, human-readable not only refers to information or data, and how this is presented, but also the medium which to produces or processes the data or information, e.g. a programming language or a database front-end application.

140 questions
11
votes
3 answers

Finding human-readable files on Unix

I'd like to find human-readable files on my Linux machine without a file extension constraint. Those files should be of human sensing files like text, configuration, HTML, source-code etc. files. Is there a way to filter and locate?
Yiğit
  • 160
  • 1
  • 1
  • 8
10
votes
2 answers

A minimalistic human-readable serialisation format parser for an embedded system

By "human-readable serialisation format" I mean YAML, JSON, INI or like. Please note, XML is too verbose and too inconvenient for my purposes, so let's leave it alone as the last resort. The format should store the data as "named key -- value" pairs…
vines
  • 5,160
  • 1
  • 27
  • 49
10
votes
1 answer

Saving dict as JSON so that they are human readable

When a dict is saved using json.dump, it is only a single-line. I want to make this a human-readable format such as this website does - https://jsonformatter.curiousconcept.com How can I do this in python? I tried to capture pprint output, but it is…
goelakash
  • 2,502
  • 4
  • 40
  • 56
9
votes
8 answers

Actual numbers to the human readable values

I have data in bytes. I need to draw this values as human readable labels on a chart (like 2.5KB, 14MB etc.) and need to help with function (input data - actual value, output - human readable string). I did funcion like this, but I want more elegant…
VeroLom
  • 3,856
  • 9
  • 34
  • 48
9
votes
2 answers

bytes to human readable, and back. without data loss

I need to convert strings which contain the memory usage in bytes, like: 1048576 (which is 1M) into exactly that, a human-readable version, and visa-versa. Note: I looked here already: Reusable library to get human readable version of file…
Inbar Rose
  • 41,843
  • 24
  • 85
  • 131
7
votes
2 answers

Human-readable representations in protobuf-net

Does protobuf-net have any APIs to dump a protobuf into human readable form? I was hoping for something like TextFormat.
pepsi
  • 6,785
  • 6
  • 42
  • 74
7
votes
3 answers

Human readable numbers

Is there an easy way and dynamic way to format numbers in a string to be human readable? For example turn 10000000000 into 10,000,000,000. I have seen this question but the answers are outdated and broken (the one with the example).
Jared Mackey
  • 3,998
  • 4
  • 31
  • 50
6
votes
2 answers

objective-c NSFilePosixPermissions to human readable NSString

is there a way to get human readable string (@"drwxr-xr-x" for example) from an NSFilePosixPermissions integer ?
Vassilis
  • 2,878
  • 1
  • 28
  • 43
6
votes
1 answer

Human-readable URLs: preferably hierarchical too?

In a now migrated question about human-readable URLs I allowed myself to elaborate a little hobby-horse of mine: When I encounter URLs like http://www.example.com/product/123/subpage/456.html I always think that this is an attempt on creating…
jensgram
  • 31,109
  • 6
  • 81
  • 98
6
votes
9 answers

Are there any basic standards and practices for making human readable code?

More specifically making HTML, Java, and python more readable? Does anyone have suggestions for this programming student?
nobrandheroes
  • 748
  • 1
  • 10
  • 17
6
votes
2 answers

Scala Pattern Matching pretty printed

Is that possible to somehow marshall PartialFunction (let's assume it will always contains only one case) into something human-readable? Let's say we have collection of type Any (messages: List[Any]) and number of PartialFuntion[Any, T] defined…
6
votes
4 answers

Safe to use human readable primary keys in SQL?

I want to know if I can use human readable primary keys for a relatively small number of database objects, which will describe large metropolitan areas. For example, using "washington_dc" as the pk for the Washington, DC metro area, or "nyc" for the…
Clay Wardell
  • 14,846
  • 13
  • 44
  • 65
5
votes
1 answer

Encoding that minimizes misreading / mistyping / misspeaking?

Let's say you have a system in which a fairly long key value can be accurately communicated to a user on-screen, via email or via paper; but the user needs to be able to communicate the key back to you accurately by reading it over the phone, or by…
5
votes
4 answers

Grammatically correct human readable string from list (with Oxford comma)

I want a grammatically correct human-readable string representation of a list. For example, the list ['A', 2, None, 'B,B', 'C,C,C'] should return the string A, 2, None, B,B, and C,C,C. This contrived example is somewhat necessary. Note that the…
Asclepius
  • 57,944
  • 17
  • 167
  • 143
5
votes
3 answers

MongoDB geo distance/radius to useful units

I'm using MongoDB geospatial queries -- $near, geoNear, etc. -- and I'd like to know how to turn the dis result of the geoNear command as well as the radius argument for $within queries to/from readable units like miles or kilometers.
Chris Forrette
  • 3,194
  • 2
  • 28
  • 37
1
2
3
9 10