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
1
vote
1 answer

fixed point fx notation and converting

I have a fx1.15 notation. The underlying integer value is 63183 (register value). Now, according to wikipedia the the complete length is 15 bits. The value does not fit inside, right? So assuming it is a fx1.16 value, how do I convert it to a human…
ashirk
  • 13
  • 5
1
vote
2 answers

What's the easiest way to convert milliseconds to readable String in Java Spring

How to convert during(milliseconds) from long to readable String in Java, such as 5 minutes and 2 seconds or 2 hours if no trailing minutes or seconds? I have tried TimeUtils, but it still requires a little script to concatenate strings.
Alan 34e9
  • 31
  • 4
1
vote
2 answers

remove millisecond from echo time bash

1633036680022 , This is epoch result i got from elasticsearch. if i tried to convert this epcho to human-readable date, So i used epochconverter And i used bash command to convert this in my terminal, $ date -d @1633036680022 Tuesday 15…
praveen
  • 179
  • 1
  • 3
  • 16
1
vote
2 answers

perl print hexadecimal as human-readable

File forsojunk is as follows (with many more lines not shown). s/e\x27\x27\x27/é/g; s/e\x27/é/g; s/a\x5f/à/g; junk.pl is as follows. #! /usr/bin/perl use strict; use warnings; while(<>) { $_ =~…
Jacob Wegelin
  • 1,304
  • 11
  • 16
1
vote
3 answers

how to convert json into human readable format in python?

This is my json. initiated with options {'record_id': 335, 'backup_config_id': 28, 'attachement_type': 3, 'instance_id': 48, 'volumes': [{'aws_instance_id': 'xyz', 'aws_instance_name': 'abc', 'instance_record_id': 48, 'aws_region':…
codebuff
  • 93
  • 3
  • 15
1
vote
0 answers

Get CentOS server capabilities in human-readable form using Python

I am trying to analyze capabilities associated to my CentOS server. I have output of ps aufxwwwZ command and for each process the content of /proc/$pid/status. This is part of the dump of the configuration of the server I want to analyze. I know I…
philippe
  • 2,949
  • 4
  • 20
  • 34
1
vote
1 answer

Human readable byte-size in python

How can we display a human readable byte size in python? We need to convert large unreadable int results, like the ones from os.stat(r'C:\1.pdf').st_size (Answering my own question below with f-strings for python versions above 3.6, please add your…
Ofer Sadan
  • 11,391
  • 5
  • 38
  • 62
1
vote
2 answers

Human readable date into timestamp

I am trying to parse a logfile, using human readable dates without a year into a timestamp. I have looked over the function strtotime() but haven't had any success with it. Example time: Apr-26-10:49:36 which is the equiv of "M-j-H:i:s" for the…
David Houde
  • 4,835
  • 1
  • 20
  • 29
1
vote
0 answers

How to parse human names in R

I have a large csv with a field of names for example: names <- c("John Smith", "J. Smith", "Sarah Jones", "Nielson, Dave") I also have another list with specific, 'known' names. This list is smaller than the first list because it only holds 1…
Rahim Dina
  • 85
  • 2
  • 9
1
vote
0 answers

How to understand a YAML script to answer questions?

I am going to learn YAML data serialization language, and I want to answer these questions based on a YAML script. What would be the right answers? I have learned some JSON but to differentiate YAML with JSON & to get an idea of YAML I have found…
1
vote
1 answer

Generating a url that I can use in a sign-off-email

So I have a service where you sign up for events. When you sign up, you get an email with an url where you can sign off the event. The given parameter of the url should be something that not anyone can guess. I've thought of UID, but that just…
Espen Schulstad
  • 2,355
  • 3
  • 21
  • 32
1
vote
1 answer

Display human readable choice in template

I have seen the posts on this already Display forms choice in template-Django and they recommend using in the template {{ item.get_categories_display }} but my set up is a little different, so I can't access the human readable elements in…
Shane G
  • 3,129
  • 10
  • 43
  • 85
1
vote
3 answers

Convert number with units in python to NON human readable format

What would be the best way to convert a numerical column containing float AND unit as in : df = pd.DataFrame(["211.301 MB","435.5 GB","345.234 Bytes"]) expected output in Bytes for example: 211.301*1024*1024 = 221565157.376 Many questions like…
Chargaff
  • 1,562
  • 2
  • 19
  • 41
1
vote
1 answer

CSS code structures

I wonder when and how I need to classify my duplicated attributes. Consider for readable, code performance, disadvantages and advantages between structure. Let say I have two CSS code : 1st Code : .a { text-align: center; font-size: 1em; …
user5436320
  • 133
  • 2
  • 17
1
vote
3 answers

Formatting PHP time() from mysql table

I'm creating comments stored in a MySQL database. I'm logging the php time function time() as the comment is posted. That way it's displaying a message such as... "comment... posted 4 seconds ago" and if I refresh the page 2 minutes later it'd…
Ultima
  • 35
  • 2