Skip to content

Instantly share code, notes, and snippets.

View OSP123's full-sized avatar

OSP123

  • UCLA Extension
  • Los Angeles, CA
View GitHub Profile
@OSP123
OSP123 / Error1_6.rb
Created February 23, 2012 19:28
Error Code when running code1_6.rb
:33:in `require': dlopen(/usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.for_1_9.bundle, 9): no suitable image found. Did find: (LoadError)
/usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.for_1_9.bundle: unknown required load command 0x80000022 - /usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.for_1_9.bundle
from :33:in `rescue in require'
from :29:in `require'
from /usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.rb:12:in `'
from :33:in `require'
from :33:in `rescue in require'
from :29:in `require'
from /var/folders/Fz/FzGamjlOHAmCdXNRGiX8ok+++TM/-Tmp-/kidcode.rb:2:in `'
@OSP123
OSP123 / gist:1904258
Created February 24, 2012 22:37
RVM not downloading
Downloading RVM from wayneeseguin branch stable
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). The default
bundle is named curl-ca-bundle.crt; you can specify an alternate file
using the --cacert option.
@OSP123
OSP123 / Lesson 1 bug KidsRuby
Created March 23, 2012 06:15
Error when attempting to run lesson 1
:33:in `require': dlopen(/usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.for_1_9.bundle, 9): no suitable image found. Did find: (LoadError)
/usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.for_1_9.bundle: unknown required load command 0x80000022 - /usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.for_1_9.bundle
from :33:in `rescue in require'
from :29:in `require'
from /usr/local/kidsruby/ruby/lib/ruby/gems/1.9.1/gems/gosu-0.7.36.2-universal-darwin/lib/gosu.rb:12:in `'
from :33:in `require'
@OSP123
OSP123 / lesson 2 bug KidsRuby
Created March 23, 2012 06:18
Lesson 1 works for user, but all other lessons render the error shown
/var/folders/IS/ISPfy7CFEqOhaOqcvRRKxU+++TM/-Tmp-/kidcode.rb:21:in `initialize': Cannot load image file gosu/player1.png (RuntimeError)
from /var/folders/IS/ISPfy7CFEqOhaOqcvRRKxU+++TM/-Tmp-/kidcode.rb:21:in `new'
from /var/folders/IS/ISPfy7CFEqOhaOqcvRRKxU+++TM/-Tmp-/kidcode.rb:21:in `initialize'
from /var/folders/IS/ISPfy7CFEqOhaOqcvRRKxU+++TM/-Tmp-/kidcode.rb:7:in `new'
@OSP123
OSP123 / gist:2417418
Created April 18, 2012 23:48
Typing Almost anything else, besides pushing to origin master, gives me this.
/usr/local/heroku/lib/heroku/updater.rb:33: warning: parenthesize argument(s) for future version
Uploading SSH public key /Users/y/.ssh/heroku_rsa.pub
/usr/local/heroku/vendor/gems/netrc-0.7.1/lib/netrc.rb:79:in `readto': undefined local variable or method `count' for []:Array (NameError)
from /usr/local/heroku/vendor/gems/netrc-0.7.1/lib/netrc.rb:85:in `parse'
from /usr/local/heroku/vendor/gems/netrc-0.7.1/lib/netrc.rb:20:in `read'
from /usr/local/heroku/lib/heroku/auth.rb:92:in `netrc'
from /usr/local/heroku/lib/heroku/auth.rb:116:in `read_credentials'
from /usr/local/heroku/lib/heroku/auth.rb:59:in `get_credentials'
from /usr/local/heroku/lib/heroku/auth.rb:47:in `user'
from /usr/local/heroku/lib/heroku/auth.rb:14:in `client'
@OSP123
OSP123 / gist:2424556
Created April 19, 2012 22:11
pg not installing
Fetching gem metadata from http://rubygems.org/.......
Installing rake (0.9.2.2)
Installing multi_json (1.0.4)
Installing activesupport (3.1.3)
Installing builder (3.0.0)
Installing i18n (0.6.0)
Installing activemodel (3.1.3)
Installing erubis (2.7.0)
Installing rack (1.3.5)
Installing rack-cache (1.1)
@OSP123
OSP123 / gist:2424583
Created April 19, 2012 22:18
Homebrew Install Errors
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
Press enter to continue
==> Downloading and Installing Homebrew...
/usr/bin/tar: Library/Contributions/brew_bash_completion.sh: Cannot open: File exists
/usr/bin/tar: Library/Contributions/brew_fish_completion.fish: Cannot open: File exists
# Week 3
- RankedPrize:
identifier: ranked_prize_3
attributes:
# questions - copy?
name: Football Tickets or a 49ers Prize Pack
description: Two (2) ticket to the San Francisco 49ers vs. Miami Dolphins football game, scheduled to take place on Sunday, December 9, 2012 at Candlestick Park, or One (1) Authentic 49ers Fan Prize Pack, including cheer cards and either a tshirt, scarf, sunglasses or a water bottle (each a Prize Pack)
# questions - image asset?
TYPE___PAPERCLIP_OBJECT___icon: <%= @assets_directory %>/csn_49ers/placeholder.jpg
signup_stage: 1
@OSP123
OSP123 / 0_reuse_code.js
Created February 12, 2014 22:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@OSP123
OSP123 / gist:9845857
Created March 29, 2014 00:28
Error with editing the Like action
Started GET "/client_wizard/open_dialog_for?dialog_name=edit_item&identifier=like_45&object_type=action&campaign_id=35&_=1396051782626" for 127.0.0.1 at 2014-03-28 17:28:12 -0700
Processing by ClientWizard::DialogsController#open_dialog_for as JS
Parameters: {"dialog_name"=>"edit_item", "identifier"=>"like_45", "object_type"=>"action", "campaign_id"=>"35", "_"=>"1396051782626"}
User Load (92.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 990895189 LIMIT 1
CampaignObject Load (105.1ms) SELECT `campaign_objects`.* FROM `campaign_objects` WHERE `campaign_objects`.`id` = 45 LIMIT 1
Campaign Load (90.0ms) SELECT `campaigns`.* FROM `campaigns` WHERE `campaigns`.`id` = 35 LIMIT 1
CampaignObject Load (88.3ms) SELECT `campaign_objects`.* FROM `campaign_objects` WHERE `campaign_objects`.`campaign_id` = 35 AND `campaign_objects`.`identifier_type` = 'action' AND (disabled is null or disabled = 0)
Rendered /Users/omarpatel/peer2/client_wizard/app/views/client_wizard/dialogs/dialog_partials/_edit_i