Skip to content

Instantly share code, notes, and snippets.

BOOM BOX IN PUNJAB:
song | artist
------------------------------------------------------
Typewriter Tip Tip Tip | Kishore Kumar
Tell Me Where Ur From | (Das Ja Jungle Refix) DJ Sarj
Raga Bhupali | Charanjit Singh
Bird Flu | M.I.A.
Chaiyya Chaiyya | A. R. Rahman
Raja Vedalu | DJ Cheb I Sabbah
Feature: Investigations can be reported on
So that researchers can report on activies run by students
As a researcher
I want to print several kinds of reports
So that our work can be validated
Which will support the funding of future projects
Background:
Given The default project and jnlp resources exist using factories
-SUPER- STAR TREK
Latest update-21 Sept 78
Would you like a regular, tournament, or frozen game?regular
Would you like a Short, Medium, or Long game? short
Are you a Novice, Fair, Good, Expert, or Emeritus player?Novice
Please type in a secret password-xxx
Stack Trace:
undefined method `include_pack_gzip' for #<Jnlp::Jnlp:0x1081666e8> (NoMethodError)
./app/models/maven_jnlp/versioned_jnlp.rb:174:in `parse_jnlp_object'
./app/models/maven_jnlp/versioned_jnlp_url.rb:30:in `create_versioned_jnlp'
./app/models/maven_jnlp/versioned_jnlp_url.rb:26:in `versioned_jnlp'
./spec/support/controller_helper.rb:33:in `generate_default_project_and_jnlps_with_factories'
./features/step_definitions/default_project_and_jnlps_steps.rb:13:in `/^The default project and jnlp resources exist using factories$/'
features/investigations_searching.feature:7:in `Given The default project and jnlp resources exist using factories'
*[itsisu-dev][~/lab/ruby/itsisu]$ gem -v rvm:ruby-1.8.7-p302@investigations
1.5.0
*[itsisu-dev][~/lab/ruby/itsisu]$ gem list rspec-rails rvm:ruby-1.8.7-p302@investigations
*** LOCAL GEMS ***
rspec-rails (1.3.3)
*[itsisu-dev][~/lab/ruby/itsisu]$ rspec ./spec/controllers/page_elements_controller_spec.rb rvm:ruby-1.8.7-p302@investigations
[~/bin]$ curl -s https://github.com/defunkt/gist/raw/master/gist > ~/bin/gist rvm:
[~/bin]$ gvim ./gist
@knowuh
knowuh / upload file missing
Created January 13, 2011 19:27
wise4 curriculum upload file does not exist. (stacktrace)
java.lang.Exception: curriculum upload directory does not exist.
at org.telscenter.sail.webapp.presentation.web.controllers.admin.UploadProjectController.onSubmit(UploadProjectController.java:97)
at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
at org.springframework.web.servlet.mvc.AbstractFormController.handleInvalidSubmit(AbstractFormController.java:671)
at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:272)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.spr
def version_report(acts)
acts.map do |a|
no_versions = a.versions.size
dates = a.versions.reverse.map{|v| "#{v.updated_at}"}.join(",")
puts "#{a.id}, #{a.name}, #{no_versions}, #{dates}"
end
end
def make_monitor(opts={})
classname_regex = opts[:class_name] || /.*/i
method_regex = opts[:method_name] || /.*/i
monitor = proc { |event, file, line, method, binding, classname|
if (event.to_s =~ /call|return/i)
if method.to_s =~ method_regex
if classname.to_s =~ classname_regex
printf "%8s %s:%-2d %10s %8s\n", event, file, line, method, classname
end
end
sample student:
{"teacher":false,"class_words":["abc123"],"login":"student","first":"Jackie","last":"Demeter"}
sample teacher:
{"teacher":true,"class_words":["abc123"],"login":"teacher","first":"Valerie","last":"Frizzle"}