Skip to content
Permalink
Branch: public
Commits on Feb 5, 2015
  1. Provide plain link for all results

    grantisu committed Feb 5, 2015
    Drop the "Advanced options" nonsense, and use the seed to provide a
    direct link to the plain text on the results page instead.
  2. permalink: only use '&' if we have to

    grantisu committed Feb 5, 2015
    Instead of always assuming there is an existing query string, check to
    see if we need the '&' separator before adding the seed parameter.
  3. index: use class="small" for links

    grantisu committed Feb 5, 2015
    Instead of wrapping the index links in <p class="small">, set
    class="small" in the links themselves.
  4. index: add link to explanation page

    grantisu committed Feb 5, 2015
    In addition to the source code, add a link to the page that explains
    what's going on.
  5. README: link to explanation page

    grantisu committed Feb 5, 2015
    Link to a page that gives an overview of what's going on.
    
    TODO: adapt a subset of said overview for the README.
Commits on Dec 27, 2014
  1. Add a pair of local LRU caches

    grantisu committed Dec 27, 2014
    Add every set of returned results to one of two local caches. The
    "precache" is for results that do not have a specified seed value, and
    is expected to experience high churn. The "maincache" is for results
    requested with a seed value, and should be more stable than the
    precache.
    
    Note: on a "proper" server, these caches shouldn't be necessary, as my
    desktop can push over 200 req/s (dict.txt) without doing anything
    special. A cheap VPS is a different story, though.
  2. Always build response from request

    grantisu committed Dec 27, 2014
    Instead of building a response from scratch, start with the
    new_response() method from Plack::Request and end with the finalize()
    method.
  3. Cleanup after messy rebase

    grantisu committed Dec 27, 2014
    "Max lines" was removed from the index page, but then reappeared after a
    poorly-resolved merge conflict. Remove it again.
  4. Moar newlines

    grantisu committed Jul 5, 2014
    Make resulting markup prettier
  5. Add link back to GitHub repo

    grantisu committed Jun 13, 2014
  6. Sort %info for index page

    grantisu committed Dec 27, 2014
    May as well present a consistently ordered index page.
  7. Add permalink in make_pretty()

    grantisu committed Dec 26, 2014
    Use the seed to allow a "permalink" for a particular results set.
    
    Note: this requires a version of String::Markov that supports stable
    chains.
    
    And of course, if the input files change at all, then the results will
    change as well.
  8. Add seed query parameter

    grantisu committed Dec 26, 2014
    Allow generating samples from a seed parameter in the request.
  9. Put seed value in channel

    grantisu committed Dec 26, 2014
    Include the random seed used to generate samples in the channel.
  10. Use a random seed to generate samples

    grantisu committed Dec 26, 2014
    Take a random seed as an argument to generate_samples(), to allow
    generating the same samples on demand.
    
    Since the seed argument is required, create a new Coro::Channel
    dedicated to providing random seeds.
  11. Factor out generate_samples() function

    grantisu committed Dec 26, 2014
    Enable proper sample generation outside of the channel-related code
    block by moving all the relevant code into a new function.
  12. Split chain and channel in %fcache

    grantisu committed Dec 26, 2014
    Instead of just storing the Coro channel in %fcache, store the chain and
    the channel in a nested hash structure.
  13. Ensure each sample gets a new line with ?plain

    grantisu committed Dec 25, 2014
    Samples generated with sep => ' ' don't include newlines at the end,
    which causes ?plain to produce one line of output. Fix it by adding a
    newline if sep evaluates to true.
  14. Batch lines into arrays for channel put/get

    grantisu committed Dec 25, 2014
    Instead of enqueing individual lines in the per-chain channels, use
    full batches lines in array refs.
  15. names: only generate 25 lines at a time

    grantisu committed Dec 25, 2014
    50 lines is a lot, and makes it less likely for people to see the link
    at the bottom.
  16. Always generate the maximum number of lines

    grantisu committed Dec 25, 2014
    Instead of allowing requests for any number of lines, always return as
    many lines as allowed.
    
    Also remove all references to setting line count in the generated HTML.
Commits on Jun 13, 2014
  1. README.md: add note about CC0

    grantisu committed Jun 13, 2014
    Add short blurb and link about CC0 to the README
  2. Add CC0 license

    grantisu committed Jun 13, 2014
  3. Add README.md

    grantisu committed Jun 13, 2014
    Make GitHub happy
  4. index: rephrase description

    grantisu committed Jun 12, 2014
    Make it more clear what is going on when somebody lands at the index.
  5. Style: add li margins and make extra info smaller

    grantisu committed Jun 12, 2014
    Visually de-emphasize the chain-building details and add extra top
    margins to list items, hopefully reducing any "wall of text" effect.
  6. Style: change "#index" to ".small"

    grantisu committed Jun 12, 2014
    Use a generic CSS class instead of a one-off ID to style the index link.
  7. dict.txt: fix single typo

    grantisu committed May 26, 2014
    "n ancient" -> "In ancient"
  8. Fix display on mobile devies

    grantisu committed May 6, 2014
    Most mobile devices set a viewport of 900+px, which makes the text seem
    tiny. So we set the viewport meta tag to fit the width of the device,
    and add add some margin so it looks OK.
  9. Make index the default

    grantisu committed May 3, 2014
    Switch default from names to index
  10. Change Help to Index

    grantisu committed May 3, 2014
    Rename the "Help" page to be more accurate: "Index"
  11. Add link back to help

    grantisu committed May 2, 2014
  12. Add stylesheet

    grantisu committed May 2, 2014
    - Center body
    - Limit width to 40em instead of 75em
  13. Update help page

    grantisu committed May 2, 2014
    - Add title
    - Link to latest String::Markov
  14. Add refresh link in make_pretty()

    grantisu committed Apr 19, 2014
    When building an HTML result, make the title link back to the page so
    that it's easier to refresh on some devices.
Older
You can’t perform that action at this time.