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
5
votes
0 answers

Getting symbolicated stack traces from backtrace_symbols() in iOS 6

Prior to iOS 6, calling callStackSymbols() (also what -[NSException callStackSymbols] uses) would provide human readable stack frames. However, with iOS 6, this no longer the case and only addresses are provided (eg 57 CoreFoundation …
BergQuester
  • 6,167
  • 27
  • 39
5
votes
2 answers

How to count all the human readable files in Bash?

I'm taking an intro course to UNIX and have a homework question that follows: How many files in the previous question are text files? A text file is any file containing human-readable content. (TRICK QUESTION. Run the file command on a file to see…
Rekson
  • 1,293
  • 3
  • 12
  • 13
4
votes
2 answers

Decode raw Scapy data to human readable

I'm trying to switch to using Scapy instead of Wireshark, but am having trouble decoding the data I'm getting. In Wireshark I can easily see the last layer for filtered packets labeled as "Distributed Interactive Simulation", but in Scapy the last…
Austin
  • 6,921
  • 12
  • 73
  • 138
4
votes
3 answers

Human-readable hard-coding dataframe in R

Assume that I wish to hard-coding a data frame in R. my_df = data.frame(list(Name=c("foo", "bar", "baz", "qux"), Result=c("Hello", NA, "foobar", "World"))) If the data frame was a lot longer (e.g., if it were to comprise dozens of…
Michael Gruenstaeudl
  • 1,609
  • 1
  • 17
  • 31
4
votes
7 answers

How to measure the "understandability" of a language?

I have often read that some programming languages are clear than others and I asked myself several times if there is an objective way to measure the clarity of a language in order to design, given an abstract syntax, a concrete syntax as clear and…
4
votes
3 answers

Writing white-space delimited text to be human readable in Python

I have a list of lists that looks something like this: data = [['seq1', 'ACTAGACCCTAG'], ['sequence287653', 'ACTAGNACTGGG'], ['s9', 'ACTAGAAACTAG']] I write the information to a file like this: for i in data: for j in i: …
Jake
  • 283
  • 2
  • 8
  • 14
4
votes
2 answers

Is there any rule of thumb to construct SQL query from a human-readable description?

Whenever there is any description of query in front of us, we try to apply heuristics and brainstorming to construct the query. Is there any systematic step-by-step or mathematical way to construct SQL query from a given human-readable…
user366312
  • 16,949
  • 65
  • 235
  • 452
4
votes
1 answer

How does `-h` in `ls -lah` work in Unix?

When I use ls -la and ls -lah, I seem to get different number for the same files. gillin@mt:/home/vanilla/wmt-data/lm$ ls -lah * -rw-rw-r-- 1 vanilla vanilla 68G Aug 5 03:57 lm.6gram.de.arpa.gz -rw-rw-r-- 1 vanilla vanilla 25G Aug 4 07:32…
alvas
  • 115,346
  • 109
  • 446
  • 738
4
votes
1 answer

Print GLPK objective/constraints in human readable format

I'm using GLPK C API for a mixed integer programming problem. Is there some way to print the objective/constraints in human readable format for debugging?
4
votes
1 answer

Printing dictionaries (JSON) human readable

Lets say I have a (nested) dictionary like this (notice the lists-values): dic = {'level1': {'level2':(1, 2), 'level3': [ {'level4': (1, 2)}, {'level5': (1, 2)} …
theAlse
  • 5,577
  • 11
  • 68
  • 110
3
votes
0 answers

get the udp packets payload readable in python

I am developing a python sniffer which sniff the udp packets. I use this code to receive and get the payload of the received packet in human readable format, but the printed payload is not human readable! I searched about converting this format to…
3
votes
2 answers

Parse human readable dates with JS?

I'm working on a web project that uses Django, jQuery and Google App Engine. I need an option to parse raw, human readable date texts into JavaScript Date objects. I found this library - http://code.google.com/p/parsedatetime/ which will allow me to…
Aviv
  • 177
  • 1
  • 4
3
votes
2 answers

Is there a character I can use to improve large number legibility in PHP code?

In Perl code, you can put underscores in large numbers to improve legibility. For example, the number 123456789 is equivalent to 123_456_789, which helps the coder understand what number it represents. Is there a character in PHP that I can use for…
Ben
  • 315
  • 1
  • 3
  • 14
3
votes
2 answers

How to serialize a python dict to text, in a human-readable way?

I have an python dict whose keys and values are strings, integers and other dicts and tuples (json does not support those). I want to save it to a text file and then read it from the file. Basically, I want a read counterpart to the built-in print…
sds
  • 58,617
  • 29
  • 161
  • 278
3
votes
5 answers

Php - return count() in words

I have the following in my code: $my_count = count($total_elements[$array_object]); $my_count now contains the number of elements in $total_elements[$array_object]. I want to convert this number into its corresponding natural number (zero, one,…
Obmerk Kronen
  • 15,619
  • 16
  • 66
  • 105
1 2
3
9 10