This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:212:in `log': Mysql::Error: Table 'autobahnerp_accounting_test.bk_accounts' doesn't exist: SHOW FIELDS FROM `bk_accounts` (ActiveRecord::StatementInvalid) | |
from /home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:320:in `execute' | |
from /home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:466:in `columns' | |
from /home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/base.rb:1271:in `columns' | |
from ./spec/models/allmodels_spec.rb:69 | |
from /usr/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:183:in `module_eval' | |
from /usr/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:183:in `subclass' | |
from /usr/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d = BkAccount.find(:first, :conditions => {:name => "Kasse"}) | |
c = BkAccount.find(:first, :conditions => {:name => "Budget 1"}) | |
record = Record.new(:credit => c, | |
:debit => d, | |
:amount => 100) | |
record.description= "BüroPapier" | |
record.commit!() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is SO gonna be my future resume! I sure am impressed, Mr. Grigorik. | |
class Student < ActiveRecord::Base | |
has_one :passion, :conditions => "project.type = 'web'" | |
has_many :skills, :through => :practice | |
has_many :relevant_courses, :through => :university, :include => :group_work | |
has_and_belongs_to_many :projects, :through => :github, :foreign_key => "github.com/username" | |
validates_presence_of :agile_team | |
validates_presence_of :innovation | |
validates_presence_of :learning_opportinities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /usr/local | |
sudo chown -R `whoami` /usr/local | |
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<menuContribution | |
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"> | |
<toolbar | |
id="de.hpi3d.tracing.ui.toggleTracingToolbar"> | |
<dynamic | |
class="de.hpi3d.tracing.ui.handlers.DynamicToggleButton" | |
id="de.hpi3d.tracing.ui.dynamicToggleButton"> | |
<visibleWhen | |
checkEnabled="false"> | |
<with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public DynamicToggleButton() { | |
super("de.hpi3d.tracing.ui.dynamicToggleButton"); | |
comServ = (ICommandService) PlatformUI.getWorkbench() | |
.getService(ICommandService.class); | |
contextServ = (IContextService) PlatformUI | |
.getWorkbench().getService(IContextService.class); | |
ContextHelper.addListener(new ITracingContextListener() { | |
public void handleEvent(TracingContextEvent event) { | |
Type type = event.getType(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'digest/md5' | |
require 'fastercsv' | |
require 'json' | |
require 'curb' | |
require 'pp' | |
data = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
# - a browser with WebSocket support | |
# | |
# Usage: | |
# ruby redis_pubsub_demo.rb | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -I"lib:test" "/Users/$(whoami)/.rvm/gems/ree-1.8.7-2010.02/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" test/unit/mailer_test.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/johannes/workspace/redmine/lib/redmine/menu_manager.rb:53:in `add_at': Child already added (RuntimeError) | |
from /Users/johannes/workspace/redmine/lib/redmine/menu_manager.rb:363:in `push' | |
from /Users/johannes/workspace/redmine/lib/redmine/plugin.rb:178:in `menu' | |
from /Users/johannes/workspace/redmine/vendor/plugins/redmine_reporting/init.rb:42:in `evaluate_init_rb' | |
from /Users/johannes/workspace/redmine/lib/redmine/plugin.rb:67:in `instance_eval' | |
from /Users/johannes/workspace/redmine/lib/redmine/plugin.rb:67:in `register' | |
from /Users/johannes/workspace/redmine/vendor/plugins/redmine_reporting/init.rb:9:in `evaluate_init_rb' | |
from /Users/johannes/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb' | |
from /Users/johannes/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' | |
from /Users/johannes/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb' |
OlderNewer