Skip to content

Instantly share code, notes, and snippets.

cjcolvar

Block or report user

Report or block cjcolvar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1d821fe502016aceea1b
#Adding a new document action:
#Override the catalog controller or subclass and add your action:
#needs user feedback from a form
self.add_action(:translate, :translate_action, validator: :validate_translate_params)
def translate_action
Translator.translate(documents, params[:language])
end
#doesn't require form feedback
@cjcolvar
cjcolvar / gist:3788820
Created Sep 26, 2012
bundle show for what's running on lancelot
View gist:3788820
[vov@lancelot current]$ bundle show
Gems included by the bundle:
* RedCloth (4.2.9)
* actionmailer (3.2.8)
* actionpack (3.2.8)
* active-fedora (4.5.2)
* activemodel (3.2.8)
* activerecord (3.2.8)
* activeresource (3.2.8)
* activesupport (3.2.8)
View not logged in
NoMethodError in Media_objects#index
Showing /home/cjcolvar/.rvm/gems/ruby-1.9.3-p194@hydrant/bundler/gems/blacklight-e053c19e69bf/app/views/catalog/_document_header.html.erb where line #6 raised:
undefined method `_run_logging_in_user_callbacks' for #<MediaObjectsController:0x00000007e063a0>
Extracted source (around line #6):
3: <div class="documentHeader">
4:
View gist:4176956
<Location /hls-vod>
HLSHttpStreamingEnabled true
HLSMediaFileDuration 8000
HttpStreamingContentPath "../webroot/vod"
HLSFmsDirPath ".."
HLSJITConfAllowed true
########################################
# Cache-control header configuration start
# Specify the max-age(in secs) to set in the Cache-Control header
View Failing test
Backtrace:
--
/home/cjcolvar/Code/hydra/active_fedora/lib/active_fedora/field_mapper.rb:320:in `method_missing'
(eval):1:in `block (3 levels) in load_mappings'
/home/cjcolvar/Code/hydra/active_fedora/lib/active_fedora/field_mapper.rb:182:in `eval'
/home/cjcolvar/Code/hydra/active_fedora/lib/active_fedora/field_mapper.rb:182:in `block (3 levels) in load_mappings'
/home/cjcolvar/Code/hydra/active_fedora/lib/active_fedora/field_mapper.rb:181:in `each_pair'
/home/cjcolvar/Code/hydra/active_fedora/lib/active_fedora/field_mapper.rb:181:in `block (2 levels) in load_mappings'
/home/cjcolvar/Code/hydra/active_fedora/lib/active_fedora/field_mapper.rb:144:in `block in index_as'
/home/cjcolvar/Code/hydra/active_fedora/lib/active_fedora/field_mapper.rb:195:in `instance_eval'
View failure
[23] pry(main)> doc.source_tracks(0).track_id
=> ["027df29d-454d-4d7f-9421-842da037c47f"]
[24] pry(main)> doc.streaming_tracks(0).track_id
NoMethodError: undefined method `track_id' for #<Array:0x000000073baa40>
from /home/cjcolvar/.rvm/gems/ruby-1.9.3-p194@hydrant/gems/om-1.8.0/lib/om/xml/dynamic_node.rb:51:in `method_missing'
View command
java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dfelix.home=/srv/rails/hydrant-test/releases/20120720145607/felix -Dfelix.work=/srv/rails/hydrant-test/releases/20120720145607/felix/work -Dfelix.config.properties=file:/srv/rails/hydrant-test/releases/20120720145607/felix/etc/config.properties -Dfelix.system.properties=file:/srv/rails/hydrant-test/releases/20120720145607/felix/etc/system.properties -Dfelix.fileinstall.dir=/srv/rails/hydrant-test/releases/20120720145607/felix/etc/load -Djava.awt.headless=true -Dawt.toolkit=sun.awt.HeadlessToolkit -DM2_REPO=/Users/johndoe/.m2/repository -Xms1024m -Xmx1024m -XX:MaxPermSize=256m -Dgosh.args=--nointeractive -Dbundles.configuration.location=/srv/rails/hydrant-test/releases/20120720145607/felix/etc -Dorg.ops4j.pax.logging.DefaultServiceLog.level=WARN -Dopencast.logdir=/srv/rails/hydrant-test/releases/20120720145607/felix/logs -Declipselink.logging.level=SEVERE -Djava.util.logging.config.file=/srv/rails/hydrant-test/releases/201207
@cjcolvar
cjcolvar / MH ffmpeg
Last active Dec 11, 2015
ffmpeg formats
View MH ffmpeg
[cjcolvar@mallorn ~]$ ffmpeg -formats
ffmpeg version 0.8.2, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 29 2012 11:05:31 with gcc 4.4.6 20120305 (Red Hat 4.4.6-4)
configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --extra-cflags='-I${LOCAL_PREFIX}/include' --extra-ldflags='-L${LOCAL_PREFIX}/lib -Wl,-rpath,${LOCAL_PREFIX}/lib' --enable-libxvid --extra-libs=-lxvidcore --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-libmp3lame --extra-libs=-lmp3lame --enable-libfaac --extra-libs=-lfaac --enable-libvorbis --extra-libs=-lvorbis --enable-libtheora --extra-libs=-ltheora --enable-libvpx --extra-libs=-lvpx --enable-runtime-cpudetect
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
@cjcolvar
cjcolvar / MH ffmpeg
Created Jan 29, 2013
Avalon ffmpeg formats
View MH ffmpeg
[cjcolvar@mallorn ~]$ ffmpeg -formats
ffmpeg version 0.8.2, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 29 2012 11:05:31 with gcc 4.4.6 20120305 (Red Hat 4.4.6-4)
configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --extra-cflags='-I${LOCAL_PREFIX}/include' --extra-ldflags='-L${LOCAL_PREFIX}/lib -Wl,-rpath,${LOCAL_PREFIX}/lib' --enable-libxvid --extra-libs=-lxvidcore --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-libmp3lame --extra-libs=-lmp3lame --enable-libfaac --extra-libs=-lfaac --enable-libvorbis --extra-libs=-lvorbis --enable-libtheora --extra-libs=-ltheora --enable-libvpx --extra-libs=-lvpx --enable-runtime-cpudetect
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
@cjcolvar
cjcolvar / MH ffmpeg
Created Jan 29, 2013
Avalon ffmpeg formats
View MH ffmpeg
[cjcolvar@mallorn ~]$ ffmpeg -formats
ffmpeg version 0.8.2, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 29 2012 11:05:31 with gcc 4.4.6 20120305 (Red Hat 4.4.6-4)
configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --extra-cflags='-I${LOCAL_PREFIX}/include' --extra-ldflags='-L${LOCAL_PREFIX}/lib -Wl,-rpath,${LOCAL_PREFIX}/lib' --enable-libxvid --extra-libs=-lxvidcore --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-libmp3lame --extra-libs=-lmp3lame --enable-libfaac --extra-libs=-lfaac --enable-libvorbis --extra-libs=-lvorbis --enable-libtheora --extra-libs=-ltheora --enable-libvpx --extra-libs=-lvpx --enable-runtime-cpudetect
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
You can’t perform that action at this time.