My Recent Pastes (95 and counting)
Pastes by brough (95 and counting)
Below are the 15 most recent pasties by brough.
September 20, 2007
7:32AM EDT
by brough
View all 169 lines
SOLUTION: add the trunk to vendor/plugins/file_column manually. both 'piston import http://opensvn.csie.org/rails_file_column/plugins/file_column
September 17, 2007
7:30PM EDT
by brough
form = page.forms.name('edit_form').first field = form.fields.name('dir').first field_value = field.options.text('orders').value puts field_value
September 10, 2007
5:25AM EDT
by brough
View all 40 lines
img within #detail is 1000x1500px. detail div only grows to accommodate this on the y-axis:
in the dom #detail has a height on 1000px once the image is loaded, but its width is stuck
at 260px. Same happens when overflow is set to visible.
<div id='original'>
September 09, 2007
9:32PM EDT
by brough
View all 19 lines
def show @photo = Photo.find(params[:id]) img = Magick::Image.read(@photo.file).first.resize_to_fit(600,2000)
September 03, 2007
1:14AM EDT
by brough
View all 52 lines
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:135:in `log' vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:379:in `query' vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:813:in `column_definitions' vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:469:in `columns' vendor/rails/activerecord/lib/active_record/query_cache.rb:34:in `columns'
August 31, 2007
10:20PM EDT
by brough
View all 12 lines
= will_paginate(@products) - @products.in_groups_of(5) do |product| %ul{:class => "#{cycle('1','2')}"}
August 30, 2007
1:08PM EDT
by brough
View all 65 lines
external javascript file (mootools - check prototype api to convert to prototype, and ask in #prototype. A few things are done differently, eg getProperty('href') is readAttribute('href') in prototype): window.addEvent('domready', function(){
August 29, 2007
11:03PM EDT
by brough
View all 256 lines
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> SNIPPED
August 29, 2007
7:22PM EDT
by brough
View all 128 lines
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Universidad Mayor | Diseño Gráfico</title>
August 29, 2007
6:21PM EDT
by brough
View all 43 lines
window.addEvent('domready', function(){ var list = $$('div .a1'); var h1 = $$('.almenu h1')
August 29, 2007
5:58PM EDT
by brough
View all 30 lines
window.addEvent('domready', function(){ $$('.jaxedit').each(function(element){ var edit = $('edit_product')
August 28, 2007
9:10PM EDT
by brough
document.observe("contentloaded", function() { $('loginbox').hide(); });
August 28, 2007
6:57PM EDT
by brough
View all 14 lines
not very dry... def self.search(search, page) if search
August 28, 2007
9:59AM EDT
by brough
View all 108 lines
#!/bin/sh clear echo "Creating Rails Folder..." mkdir -p project/trunk/vendor
August 27, 2007
6:37PM EDT
by brough
User.create(:user => 'USER', :quota => '20971520', :domain_id => '1', :password => 'mypass') Domain.create(:name => 'mydomain.com')
