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
0
votes
1 answer

How does "grep -rl 'string' ./" search through readable code in binary files? Can I view what it's viewing instead of seeing binary output?

When I run the code "grep -rl 'my string' ./", I receive the output of file names that contain 'my string' in it. When I go to view that file using vi, it comes up as a lot of weird characters. I've tried viewing the code using hexdump and xdd also,…
Paul
  • 1
0
votes
0 answers

In python, can I create a closure with an anonymous function?

Out of curiosity, I'd like to see if there's a better answer than what's below. How can I convert this: def counter(): ctr = 0 def inner(): ctr += 1 return ctr return inner counter = counter() into this javascript…
user1942362
  • 142
  • 2
  • 11
0
votes
1 answer

Guard clause for a single statement function?

What is the most readable way of writing a very simple function that is effectively executing one statement, if a condition is met? What I find most readable is this: function doSomething(myNumber){ if(myNumber !== null && myNumber > 5){ …
0
votes
0 answers

human readable struct cpuinfo_x86 kernel linux

/*file m_example.h*/ void cpu_detect(struct cpuinfo_x86 *c); /*file m_example.c*/ #include // included for all kernel modules #include // included for KERN_INFO #include // included for…
user13768974
0
votes
1 answer

Alternative for .pyc to compile python

I am developing a project that I want to release as closed source, but its written in python, and you can open any file with a text editor to see the code, so not ideal. I use pyinstaller to compile the project, but that only "hides" the main file,…
Ciro García
  • 601
  • 5
  • 22
0
votes
0 answers

Inserting received unix timestamp as right format in MSSQL Server with node.js

I want to import the unix timestamp (contained in an received Json body) into my MSSQL database as a human readable time using Node.js. The Json body looks like this: { "device":"887B53", "data":"4660000000000062b4a8", "station":"1B2C", …
Karol-Kahn
  • 31
  • 1
  • 5
0
votes
2 answers

Github Actions - Compare and find differences between two OAS V3 files

Suppose you are given two OpenApi Specification (OAS) V3 files : original-spec.yaml : The original spec modified-spec.yaml : The modified ( with enhancement / breaking changes / etc ) ( an example of both files is available on…
jy95
  • 773
  • 13
  • 36
0
votes
1 answer

Using join() inside a print statement for a list. is it possible?

I am working on 4-11 in Python Crash Course for reference. My task is to Print the message My favorite pizzas are:, and then use a for loop to print the list. fav_pizzas = ['pepperoni', 'pineapple', 'cheese'] friend_pizzas =…
0
votes
3 answers

Change format of an array of names from "last, first" to "first last"

I need to reverse the orientation of the first name and last name in an array of name strings. $names = [ "barira, stefan", "cikka, maria", "luppo, martin ", "bill, sebastian" ]; the output must be like this: Array ( [0] => stefan,…
omar.f
  • 3
  • 1
0
votes
1 answer

Consolidating various SNMP transactions and assigning the OID and result of each to unique variables for further processing

I am trying to write code that will have many SNMP transactions, some transactions could be bundled into the same getCmd() function of PySNMP. With that being said, I do not intend to print the value of the result of my SNMP transaction right away,…
adamz88
  • 319
  • 3
  • 12
0
votes
1 answer

How to get a human-readable date/time format from Beacon packets

I want to fetch the human-readable date/time format from IEEE 802.11[a,b,g,n] wireless packets. We have an open-source project for wireless pen-testing that called Aircrack-ng. This package has a tool that called Airodump-ng. I found a function in…
ali reza
  • 141
  • 3
  • 13
0
votes
1 answer

Digital time to readable duration using javascript

I'm using clockpicker to collect user input that will give me a digital timestamp in a string. For example: 02:15 I would like to keep that as is in the database but in my view print it as, using this example: 2h 15m Unnecessary zero's removed,…
0
votes
1 answer

How to create a convert for OBD-II data in Wireshark?

We are trying to stream data from a car's OBD-II protocol via Wireshark. It's working fine and we get the IDs and data payloads out interpreted as CAN. However, we would like to take it a step further and "scale" the data according to the…
Martin
  • 149
  • 3
  • 12
0
votes
1 answer

Store self appending Python object in human readable file

I have inherited a Python script that picks people to make cake for the office each week. In doing so, it maintains a list of people who want to make cake, as well as their email addresses, the last time they made cake and some other things. It…
Alex Howard
  • 319
  • 3
  • 13
0
votes
1 answer

Is there a 3rd party library that knows to convert a linq expression to a human readable string representation?

I have a linq expression and I wish to display it in the log in a human readable form. Any one knows any library that can do it? I saw this entry Creating a string from a lambda expression, but it is not that useful, in my opinion. Thanks. EDIT Now…
mark
  • 59,016
  • 79
  • 296
  • 580