human-readable Questions
28
Solved
How can I convert all numbers that are more than 3 digits down to a 4 digit or less number?
This is exactly what I mean:
10345 = 10.3k
10012 = 10k
123546 = 123.5k
4384324 = 4.3m
Rounding is not...
Jacklighter asked 16/8, 2013 at 6:37
9
I've tried piping htop to a text file (e.g. htop > text.txt) but it gives me text garbled by formatting strings (see below). Is there a way to get nicer, human readable output?
^[7^[[?47h^[[1;3...
Mazzola asked 8/7, 2013 at 19:39
26
Solved
How do I get a human-readable file size in bytes abbreviation using .NET?
Example:
Take input 7,326,629 and display 6.98 MB
Hurricane asked 11/11, 2008 at 17:51
12
Solved
I'd like to start using "SEO Friendly Urls" but the notion of generating and looking up large, unique text "ids" seems to be a significant performance challenge relative to simp...
Danaus asked 4/5, 2009 at 15:3
25
Solved
I'm using this function to convert a file size in bytes to a human-readable file size:
function getReadableFileSizeString(fileSizeInBytes) {
var i = -1;
var byteUnits = [' kB', ' MB', ' GB', ...
Gaughan asked 2/5, 2012 at 19:27
2
Solved
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 "Distribu...
Chitterlings asked 10/9, 2018 at 14:44
8
Solved
Does anyone know how to transform a enum value to a human readable value?
For example:
ThisIsValueA should be "This is Value A".
Alda asked 17/8, 2008 at 12:24
3
I am working on a system that makes heavy use of pseudonyms to make privacy-critical data available to researchers. These pseudonyms should have the following properties:
They should not contain a...
Baiss asked 27/3, 2018 at 7:3
5
Solved
I'd like a way to show natural times for dated items in Python. Similar to how Twitter will show a message from "a moment ago", "a few minutes ago", "two hours ago", "three days ago", etc.
Django ...
Unprepared asked 4/1, 2009 at 1:20
8
Solved
I've found lots of information about converting raw byte information into a human-readable format, but I need to do the opposite, i.e. convert the String "1.6 GB" into the long value 1717990000. Is...
Mombasa asked 6/6, 2013 at 17:36
3
Solved
I'd like to find human-readable files on my Linux machine without a file extension constraint. Those files should be readable by humans using a text editor, for example: text, configuration, HTML, ...
Donn asked 24/1, 2013 at 15:44
4
Solved
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 contriv...
Anthrax asked 30/12, 2018 at 22:11
5
Solved
So I am trying to analyze very large log files in linux and I have seen plenty of solutions for the reverse of this, but the program that records the data doesn't allow for output formatting theref...
Mendymene asked 29/10, 2014 at 2:1
1
Solved
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 ...
Middelburg asked 16/3, 2016 at 18:47
3
Solved
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 outdat...
Nupercaine asked 10/1, 2016 at 23:5
2
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 construc...
Grazynagreabe asked 26/11, 2015 at 21:29
2
Solved
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[An...
Gastrotrich asked 24/6, 2015 at 21:25
2
Solved
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 forma...
Bacteriophage asked 20/9, 2011 at 15:56
2
Solved
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.
Basicall...
Niobe asked 20/1, 2015 at 21:35
4
Solved
I use HTTP status code symbols in code in a controller such as:
render json: {
auth_token: user.authentication_token,
user: user
},
status: :created
or
render json: {
errors: ["Missing p...
Gillie asked 16/8, 2013 at 13:39
3
Solved
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 rea...
Volt asked 12/8, 2010 at 18:42
8
Solved
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 strin...
Valuable asked 21/12, 2010 at 11:42
4
Solved
I would like to print my very small numbers in C# in a human friendly way, such as:
30µ for 3E-5 or 456.789n for 0.000000456789.
I know of the Humanize_number() function from BSD in C, but ...
Hypnotherapy asked 18/4, 2013 at 13:0
2
Solved
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 l...
Triceps asked 12/11, 2012 at 12:28
4
Solved
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 p...
Achernar asked 25/9, 2012 at 20:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.