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
3
votes
2 answers

How to make this dictionary comprehension more readable

I'm wondering how to rewrite this to make it more readable, so I and perhaps others can understand it without any confusion in the future: d1 = {'a':True, 'b':False, 'c':True} d2 = {'a':False, 'b':True, 'c':True} # wanted output: False if either…
Anonymous Entity
  • 3,254
  • 3
  • 27
  • 41
3
votes
1 answer

should log messages be more human readable or computer readable?

I can see advantages to both. human readable quickly solving a problem is easy, because you can easily find out what's going on when you make a computer readable form, you're usally also sticking to a certain schema, this limits you when your…
bigblind
  • 12,539
  • 14
  • 68
  • 123
3
votes
1 answer

human readable schedule syntax like functionality in my app?

cron in google app engine have human readable syntax for cron job scheduling. https://developers.google.com/appengine/docs/python/config/cron#The_Schedule_Format How do I implement similar functionality in my application, where use enter schedule in…
iamgopal
  • 8,806
  • 6
  • 38
  • 52
3
votes
2 answers

More readable way for null reference checks

In a lot of apps I write, I find myself assigning a default value for a subclass of a DBML object. Here is an example of the current way I'm having to do it: var viewModel = new RandomViewModel { ContactName = (Order.Customer != null ?…
arserbin3
  • 6,010
  • 8
  • 36
  • 52
2
votes
1 answer

Using ethers.utils.FormatTypes.full returns object not string

I want to create a form from the Human-Readable ABI using the json file truffle creates. so the idea is to get the string Human-Readable ABI and then use regex to cut out and use the different parts to create my form. But using…
2
votes
1 answer

Getting human readable info about CPU

I am trying to get info about smartphone's CPU. I can get that from displaying /proc/cpuinfo file. However its output is poor and unreadable. I would like to have output like from "lscpu" command but when I execute command "lscpu" from my app I…
2
votes
1 answer

How to find the simplest human-readable float string which would yield the same bytes when converted back to float?

For most numbers, we know there will be some precision error with any floating point value. For a 32-bit float, that works out the be roughly 6 significant digits which will be accurate before you can expect to start seeing incorrect values. I'm…
2
votes
1 answer

How to make Python Yaml library save in a human-friendly way?

Here is the Python code I've got: d = {'ToGoFirst': 'aaa', 'Second': 'bbb', 'Pagargaph': '''Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.''', 'Integer': 25} with…
Castle
  • 411
  • 1
  • 4
  • 12
2
votes
1 answer

Where to find list of innocuous words for human-readable checksums, fingerprints

I have several applications that create a unique (with high probability), human-readable checksum or digital signature by applying a cryptographic hash like MD5, then using the resulting bits with an arithmetic coder to select words from a list. …
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
2
votes
0 answers

How to print elements of a set in Python?

I have a set of objects that I want to print in readable form. The objects' class overrides __str__, which should be used for printing. However, according to this post, __repr__ is used when printing containers, which is not what I want. The posts…
stefanbschneider
  • 5,460
  • 8
  • 50
  • 88
2
votes
5 answers

How to add commas and "and" at the right place

Input: seconds, Output: grammatically correct, formatted time (with words spelled out). So far I managed to get as far as going from say 40044373 to 1 year, 98 days, 5 hours, 37 minutes, 1 second - note the correct plurals and commas. What I'm…
Julix
  • 598
  • 1
  • 9
  • 20
2
votes
1 answer

VHDL: Assigning a smaller std_logic_vector to a bigger one

I'm trying to assign a smaller std_logic_vector to a bigger one like this: library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity subarray_tb is end subarray_tb; architecture VERHALTEN of subarray_tb is signal big…
tobiger
  • 103
  • 1
  • 12
2
votes
2 answers

What is the origin and purpose of AUTHORS.md?

While Humans.txt has a very well set up and informative website explaining its purposes, highlighting its uses and even showcasing some of them, I can not find any similar details on AUTHORS.md. I spotted a tweet pointing to a GitHub repo, "Hulk"…
skopp
  • 130
  • 13
2
votes
4 answers

Improve readability of large attr_accessor

What should I do when defining constants or attr_accessor symbols that are very large? For example, something like this: ATTRIBUTES = %w(id name full_name owner private html_url description fork url forks_url keys_url collaborators_url teams_url…
waldyr.ar
  • 14,424
  • 6
  • 33
  • 64
2
votes
2 answers

Is there something like csv or json but more graphical and better to read for humans?

For example CSV and JSON are human and machine readable text formats. Now I am looking for something similar even more graphical for table data representation. Instead of: 1,"machines",14.91 3,"mammals",1.92 50,"fruit",4.239 789,"funghi",29.3 which…
Alojz Janez
  • 530
  • 1
  • 3
  • 13