human-readable

I Need a Human Readable, Yet Parse-able Document Format

I'm working on one of those projects where there are a million better ways to accomplish what I need but I have no choice and I have to do it this way. Here it is: There is a web form, when the user fills it out and hits a submit a human readable text file is created using the form data. It looks like this: field_1: value for field one...

Code-Golf: Friendly Number Abbreviator

Based on this question: Is there a way to round numbers into a friendly format? THE CHALLENGE - UPDATED! (removed hundreds abbreviation from spec) The shortest code by character count that will abbreviate an integer (no decimals). Code should include the full program. Relevant range is from 0 - 9,223,372,036,854,775,807 (the upper li...

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 display "comment... posted 2 minutes ago" Here's how I am entering time() into the database ...

MongoDB geo distance/radius to useful units

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 readable units like miles or kilometers. ...

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: file.write('\t') file.write(j) file.write('\n') The output looks lik...

How to measure the "understandability" of a language?

Hi! 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 human friendly as possible. Perhaps exist some kind of designs patterns for that purpo...

Are there any basic standards and practices for making human readable code?

More specifically making HTML, Java, and python more readable? Does anyone have suggestions for this programming student? ...

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 http://stackoverflow.com/questions/3294438/creating-a-string-from-a-lambda-expression, but it is not that useful, in my opinion. Thanks. EDIT Now that I think about it, my case is probably n...

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 isn't human readable. I also thought of hashing, but I don't know if I want to use that. btw...

Human-readable URLs: preferably hierarchical too?

In a now migrated question about human-readable URLs I allowed myself to elaborate a little hobby-horse of mine: When I encounter URLs like http://www.example.com/product/123/subpage/456.html I always think that this is an attempt on creating meaningful hierarchical URLs which, however, is not entirely hierarchical. What I mean is, y...