1. Simple Paging Grid v0.5 (and Padd Trek)

    April 2, 2013 by accidentalfish

    I pushed out an update to Simple Paging Grid over the weekend, fixing a few bugs, sorting out the codebase into a decent JavaScript object model, and adding a few new features. It can be found on GitHub or NuGet as per usual. I’m grateful for all the feedback I’ve received – really useful keep it coming!

    I’ve got a small point release also on the way that adds a lot of unit tests and  a couple of fixes made as a result – the grid started off as something very simple but it’s grown a fair bit, certainly past the point where I can make quick changes and maintain a decent level of quality. I learned some interesting things about QUnit, Mockjax and asynchronous JavaScript testing in the process which I hope to blog about at some point and maybe save somebody the pain I went through.

    And finally – I’m making slow progress towards the long promised Padd Trek update. I’m going to open source it at the same time I release the new features. It’s a free app with no copyrighted material (other than my own) so why not?


  2. Simple Paging Grid v0.4

    December 30, 2012 by accidentalfish

    I’ve had a bunch of updates to this sat in a multitude of different web projects for a few weeks but it’s taken me a while to get round to consolidating them into a proper release – but it’s done and released on GitHub and NuGet as usual.

    The changes are fully documented in the README.md file, hope it’s useful to you.


  3. Simple Paging Grid and Insanely Simple Blog

    September 8, 2012 by accidentalfish

    I’ve pushed out a couple of open source releases in the last few weeks but not really found time to blog about them.

    The first update is to the Simple Paging Grid. I’ve swapped out the Mustache template library for the Handlebars library. The main reason I had for doing this was to allow for more advanced client side formatting options of data. For example if you want to convert a JSON date into a localised date you can easily do this now by registering a Handlebars helper to do just that.

    I’ve also released Simple Paging Grid as a NuGet package for Visual Studio users. The source code can be found at:

    https://github.com/JamesRandall/Simple-Paging-Grid

    And the NuGet package at:

    https://nuget.org/packages/SimplePagingGrid

    The second update is a new release that I’ve called Insanely Simple Blog. It’s a NuGet package designed for adding to an MVC4 project – after adding it and running a simple configuration command the site will have a JavaScript and Backbone based single page blog that’s easy to integrate into an existing site design through CSS.

    Really this just fell out of me playing with Web API and MVC4 but I figured it might be useful to someone. The source code can be found at:

    https://github.com/JamesRandall/Insanely-Simple-Blog

    And the NuGet package at:

    https://nuget.org/packages/InsanelySimpleBlog

    As per usual everything is released under the permissive MIT license and comments and feedback is welcome!


  4. Simple Paging Grid – Updated

    June 16, 2012 by accidentalfish

    I’ve made some updates to the simple paging grid over the last week or so. Improvements include:

    • The grid can now be supplied data from a function. This can be handy if you have data that can be procedurally generated.
    • Both sorted and unsorted headers can be customised through the template system.
    • A “loading” overlay can be displayed when retrieving data from a remote data source
    • The grid can have a minimum size, quantified as the number of rows, and if you set this to the page size the grid will stay fixed in height during loading operations
    • A Google Search style page number picker can be shown in the footer between the next and previous buttons

    The documentation and source is available in the GitHub repository. I’ve not yet released the zip file containing the 0.2 code so grab it from the repository.

    Any issues then please let me know.


  5. Simple Paging Grid

    April 3, 2012 by accidentalfish

    A bit of a techie post I’m afraid.

    I’ve just pushed a jQuery plugin onto GitHub called the Simple Paging Grid – it’s aim is be a lightweight grid control that plays well with plain vanilla CSS and specifically with the Twitter Bootstrap library. Key features include:

    • CSS friendly
    • Doesn’t come packed with “theme” baggage
    • Lightweight
    • Paging
    • Embedded client data
    • Dynamic paged server data
    • Sorting
    • Hyperlinks
    • Permissive MIT license

    It’s fully documented and released under the MIT license and has been spun out of the codebase of a non-profit website I’ve been working on.

    You can find it here. Hope it’s useful to someone, any bugs then let me know.


  6. Mandelbrot Sets in JavaScript

    May 7, 2011 by accidentalfish

    Another, and for now probably final, JavaScript toy: Mandelbrot Set generator. It uses Web Workers, HTML 5 Canvas and JavaScript to render Mandelbrot sets in a modern browser (I’ve tested in Safari, Chrome and FireFox 4).

    It’s online here and the source is on GitHub.

    Picture of it running in Chrome is below:

    Maybe I’m getting old, or becoming easily awed, but I find it amazing that Mandelbrots can be rendered so quickly within a browser. I remember my 8-bit BBC Model B wheezing its way through generating low res 2-bit colour versions!


  7. JavaScript A* Pathfinding

    by accidentalfish

    For fun I’ve knocked up a quick implementation of the A* path finding algorithm, again using JavaScript and HTML canvas.

    Again the source is in GitHub and you can play around with it online.


  8. The Game of Life

    April 30, 2011 by accidentalfish

    I’m not quite sure what set me off thinking about this but I realised this morning that I’d never written a version of John Conway’s The Game of Life (you can get additional background here) and as I had a couple of spare hours over lunch I thought I’d have a quick bash at a JavaScript version using the HTML 5 Canvas feature for rendering the board.

    If you’re interested in this sort of thing you can check it out online here or view the source code on GitHub (MIT license).

    It’s not a “pure” implementation as the board is finite but it was fun to put together.