GithubHelp home page GithubHelp logo

qbatch / heatmap-rails Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 4.0 84 KB

Complete solution for clicks & user focused areas on websites. It includes functionality to store & show heatmap related data.

License: MIT License

Ruby 44.22% Shell 0.37% JavaScript 55.40%
heatmap heatmapjs heatmaps rails ruby

heatmap-rails's Introduction

QBATCH(1)               User   Contributed   Perl   Documentation

NAME
       qbatch - submits a command line to Grid Engine or PBS  via
qsub

SYNOPSIS
       qbatch [options] [--queue] -- command

       qbatch  is designed to be inserted before any command that
       you would usually run from the command line.  In case of 
       argument collision where both your command and qbatch 
       share an option such as --verbose be sure to use the '--'
       syntax to split qbatch  options  from  the commands
       options

          $ qbatch --verbose -- mincmath --verbose ...

DESCRIPTION
       qbatch  is  a quick hack if you don't want to write a qsub
       script

       The idea is to just bung qbatch in front  of  any  command
       you would normally enter on the command line. (as per 'nice')

        eg:
           $ qbatch ls -F
           $  qbatch  -q  wb325.q@taylor -N job23 -- mincmath \
                fred.mnc ..

       Problems or comments should be sent to: [email protected]

OPTIONS
       -v, --verbose
           Be noisy when doing things (most importantly this will
             echo the resulting script to the terminal)

       --verbose
           Print version number and exit

       -h, --help
           Dump some quick help output

       --man
           Dump a man page

       -f, --fake
           Don't  run anything, This is useful when combined with
             --verbose or --script

       -s, --script
           Dont run anything, just output the batch script to the
             specified filename

       --type
           Type  of  queing  system,  currently only pbs and gri-
              dengine are supported

       -q, --queue
           Specify a queue to run a job in.  Use  something  like
              all.q@hostname to specify a particular host. Defaults
              to all.q, the default SGE queue

       -N, --name
           Specify a job name to run the job as. By default this
              will be "STDIN"

       -d, --depends
           Specify a list of job dependencies by job name or num-
              ber which have to run before this job will

       -l, --logfile
           Logfile for output of the  command.  By  Default  this
              will make a file in the current directory called 
              qbatch-<PID>.log where PID is the Process ID of the
              instance of qbatch

       -j, --jid
           return only the job id of the submitted job on STDOUT

AUTHOR
       Andrew Janke - [email protected]

heatmap-rails's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

heatmap-rails's Issues

Heatmaps Recorded always 0

I feel like I've followed the Usage instructions, and in attempts to remedy this issue (likely a user error) I've deviated from the instructions and tried a variety of things. Posting this 'issue' is a last resort!

Running version 0.1.3:

$ bundle show heatmap-rails
[...]/.rvm/gems/ruby-2.3.3/gems/heatmap-rails-0.1.3

In application.js:

//= require jquery
[...]
//= require heatmap.js
[...]
//= require_tree .

At the top of an index.html.erb (rendered as a yield in application.html):

<!-- Heatmapping -->
<% save_heatmap({click: 1, move: 20}) %>
<% if request.query_parameters.include?("heatmap") %>
  <%= show_heatmap(request.path) %>
<% end %>

Having clicked on a page a bunch, then passed the heatmap param into the address (i.e. localhost:3000/page?heatmap), I have nil HeatMap records:

2.3.3 :012 > HeatMap.all
  HeatMap Load (0.5ms)  SELECT "heat_maps".* FROM "heat_maps"
 => #<ActiveRecord::Relation []> 
2.3.3 :013 > 

The displayed ?heatmap page shows a box in the upper-right, which says "Heatmaps Recorded" and a large 0 (zero) beneath it.

What have I done wrong? Many, many thanks for any assistance you can provide!

can't see heat map

the clicks and mouse movements get saved in the database but when I do

<%= show_heatmap(request.path) %> 

nothing happens

in the js console I see this

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

clicking in it's on this line:

    width = getElement(path.xpath).getBoundingClientRect().width;

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.