Skip to content

Instantly share code, notes, and snippets.

View rklancer's full-sized avatar

Richard Klancer rklancer

View GitHub Profile
@rklancer
rklancer / gist:1189522
Created September 2, 2011 19:02
files containing <script
./app/views/layouts/standard.html.erb
./doc/jamis.rb
./public/javascript-tests.html
./public/javascripts/contentflow/contentflow.js
./public/javascripts/contentflow/contentflow_src.js
./public/javascripts/contentflow/docu.html
./public/javascripts/contentflow/index.html
./public/javascripts/prototype-ui/prototype-ui.js
./public/javascripts/prototype.js
./public/javascripts/tiny_mce/plugins/advhr/rule.htm
@rklancer
rklancer / gist:1189609
Created September 2, 2011 19:26
compass:compile error
rails3-portal (rails3.0)$ bin/rake compass:compile
/Users/rklancer/.rvm/gems/ruby-1.9.2-p290@rails3_portal/gems/prawn-core-0.8.4/lib/prawn/core.rb:34: warning: already initialized constant VERSION
DEPRECATION WARNING: Rake tasks in /Users/rklancer/dev/rails3-portal/vendor/plugins/restful-authentication/tasks/auth.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /Users/rklancer/dev/rails3-portal/Rakefile:10)
remove tmp/sass-cache/
remove public/stylesheets/ie.css
remove public/stylesheets/print.css
remove public/stylesheets/screen.css
Executing rake task or running in test/cucumber env: skipping Admin::Project.create_or_update_default_project_from_settings_yml
Problem processing key 'host' in config/mailer.yml
undefined method `host=' for ActionMailer::Base:Class
/*
Syntax error: File to import not found or unreadable: compass/reset.sass.
Load paths:
/Users/rklancer/dev/rails3-portal/public/stylesheets/sass
/Users/rklancer/.rvm/gems/ruby-1.9.2-p290@rails3_portal/gems/compass-0.11.5/frameworks/blueprint/stylesheets
/Users/rklancer/.rvm/gems/ruby-1.9.2-p290@rails3_portal/gems/compass-0.11.5/frameworks/compass/stylesheets
Compass::SpriteImporter
on line 1 of /Users/rklancer/dev/rails3-portal/public/stylesheets/sass/themes/xproject/xproject.sass
1: /Users/rklancer/dev/rails3-portal/public/stylesheets/sass/themes/xproject/xproject.sass
rails3-portal (rails3.0)$ RAILS_ENV=production bin/rake db:migrate:reset
Didn't start observers because you are running: rake db:migrate
rake aborted!
uninitialized constant APP_CONFIG
Tasks: TOP => db:migrate:reset => db:migrate => environment
(See full trace by running task with --trace)
@rklancer
rklancer / gist:1203403
Created September 8, 2011 13:37
Stylesheets *seem* to be being compiled...
rails3-portal (rails3.0)$ rm public/stylesheets/*.css
rails3-portal (rails3.0)$ rails s -eproduction
=> Booting WEBrick
=> Rails 3.0.10 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
running Admin::Project.create_or_update_default_project_from_settings_yml
Problem processing key 'host' in config/mailer.yml
undefined method `host=' for ActionMailer::Base:Class
Started observers
@rklancer
rklancer / gist:1212303
Created September 12, 2011 20:25
default_project error in rails portal
bin/rake db:drop:all
git clean -fdx .
echo "rvm use `rvm current`" > .rvmrc
bundle install --binstubs
ruby config/setup.rb -n "Cross Project Portal" -D xproject -u <username> -p <password> -t xproject --states none -y -q -f
RAILS_ENV=production bin/rake db:create:all
RAILS_ENV=production bin/rake db:migrate:reset
RAILS_ENV=production bin/rake app:setup:new_app
bin/rake db:dump
rails s
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>currentDocument</key>
<string>app/views/portal/districts/new.html.haml</string>
<key>documents</key>
<array>
<dict>
<key>expanded</key>
do =>
toMatchUsing = (matcher) ->
(pairs) ->
return false if @actual?.length isnt pairs.length or typeof @actual isnt 'object'
return false for a, i in @actual when not matcher( a, pairs[i] )
true
@addMatchers(
toEqualPairs: toMatchUsing (a, [x, y]) -> a[0] is x and a[1] is y
toEqualPointsDefinedBy: toMatchUsing (a, [x, y]) -> a.get('x') is x and a.get('y') is y
@rklancer
rklancer / gist:1373790
Created November 17, 2011 17:13
applet tag
<applet id="sc1712-applet" archive="org/concord/sensor-native/sensor-native.jar, org/concord/otrunk/otrunk.jar, org/concord/framework/framework.jar, org/concord/frameworkview/frameworkview.jar, jug/jug/jug.jar, jdom/jdom/jdom.jar, org/concord/sensor/sensor.jar, org/concord/data/data.jar, org/concord/sensor/sensor-applets/sensor-applets.jar" code="org.concord.sensor.applet.OTSensorApplet" codebase="/jnlp" width="100%" height="40" mayscript="true"><param name="resource" value="/distance.otml"><param name="listenerPath" value="Smartgraphs.sensorController"><param name="name" value="sc1712-applet"></applet>
from drupal-dev:
/
/sites/all/themes/cc/flash/config.xml
/sites/all/themes/cc/flash/header.swf
/sites/all/themes/cc/flash/img/home-alternate.jpg
/sites/all/themes/cc/flash/img/img1.jpg
/sites/all/themes/cc/flash/img/img2.jpg
/sites/all/themes/cc/flash/img/img3.jpg
/sites/all/themes/cc/flash/img/img4.jpg