Giter VIP home page Giter VIP logo

bubble's Introduction

bubble

Takes the input file and produces HTML files for each camera make, camera model and also an index.

Features

The index HTML page must contain:

  • Thumbnail images for the first 10 work
  • Navigation that allows the user to browse to all camera makes

Each Camera Make HTML page must contain:

  • Thumbnail images of the first 10 works for that camera make
  • Navigation that allows the user to browse to the index page and to all camera models of that make

Each Camera Model HTML page must contain:

  • Thumbnail images of all works for that camera make and model
  • Navigation that allows the user to browse to the index page and the camera make

The batch processor should take the location of the input file and the output directory as parameters.

The input file only contains a small sample set of works.

Examples

  • bin/bubble.rb 'data/works.xml' 'test_out'

Requirements

Digital images are often stored with camera information in an xml format. Using this xml feed, create a set of static HTML files to allow a user to browse these images.

The index HTML page must contain:

  • Thumbnail images for the first 10 work
  • Navigation that allows the user to browse to all camera makes

Each Camera Make HTML page must contain:

  • Thumbnail images of the first 10 works for that camera make
  • Navigation that allows the user to browse to the index page and to all camera models of that make

Each Camera Model HTML page must contain:

  • Thumbnail images of all works for that camera make and model
  • Navigation that allows the user to browse to the index page and the camera make

The batch processor should take the location of the input file and the output directory as parameters.

While the sample xml file is small, the solution is expected to handle files in excess of 500Mb.

Install

  • git clone [email protected]:neurofen/bubble.git
  • cd bubble
  • bundle install
  • rake
  • chmod a+x bin/bubble.rb

Author

Original author: James Pott

Contributors:

License

Unlicensed

bubble's People

Contributors

neurofen avatar

Watchers

 avatar James Cloos avatar

bubble's Issues

Osx Bus Error, using Fibers. Works on other *nix's

/Users/neurofen/Projects/sandbox/ruby/bubble/lib/bubble/generator/generator.rb:30: [BUG] Bus Error
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin11.3.0]

-- control frame ----------
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :resume
c:0003 p:0023 s:0006 b:0006 l:0020d8 d:000005 BLOCK /Users/neurofen/Projects/sandbox/ruby/bubble/lib/bubble/generator/generator.rb:30
c:0002 p:---- s:0003 b:0003 l:000002 d:000002 FINISH

c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------

-- Ruby level backtrace information ----------------------------------------
/Users/neurofen/Projects/sandbox/ruby/bubble/lib/bubble/generator/generator.rb:30:in block in generate_by' /Users/neurofen/Projects/sandbox/ruby/bubble/lib/bubble/generator/generator.rb:30:inresume'

-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x000000010d7a291e rb_vm_bugreport + 110
1 libruby.1.9.1.dylib 0x000000010d696f83 report_bug + 259
2 libruby.1.9.1.dylib 0x000000010d6970f1 rb_bug + 161
3 libruby.1.9.1.dylib 0x000000010d7393d2 sigbus + 18
4 libsystem_c.dylib 0x00007fff8cfffcfa _sigtramp + 26
5 ??? 0x00007fd6b406fd00 0x0 + 140560120085760

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.

Looking at google, this problem seems to be isolated to osx lion and above. Specifically, libruby.1.9.1.dylib c lib on osx.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.