Skip to content

Instantly share code, notes, and snippets.

module MyAppUtf8
class SetNamesUtf8
def self.filter(controller)
suppress(ActiveRecord::StatementInvalid) do
ActiveRecord::Base.connection.execute 'SET NAMES UTF8'
end
true
end
end
end
(require 'font-lock)
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
;; New keybindings
;; PC Function Keys
(global-set-key [f1] 'goto-line)
(global-set-key [(shift f1)] 'view-emacs-FAQ)
(global-set-key [f2] 'comment-region)
(global-set-key [(shift f2)] 'universal-argument) ;uncomment is Shift-F2 F2
class ConvertDbToUtf8 < ActiveRecord::Migration
def self.up
db_config = ActiveRecord::Base.connection.instance_values["config"]
db_name = db_config[:database]
db_user = db_config[:username]
db_pass = db_config[:password] || ''
latin1_dump = 'latin1_dump.sql'
utf8_dump = 'utf8_dump.sql'
Thu Oct 15 02:14:21 PDT 2009
Thu Oct 15 02:14:24 PDT 2009
Welcome to the Puffin Testing Framework. This extensible (and open source!)
functional/regression testing system allows you to test any web application
as though it were a black box.
Written completely in Python, you have but to configure it to your web
application, write your test plans and go, go, go.
NOTE: When you download Puffin, it comes pre-configured to go against the
demo application. To use it for your own web applications, you need to
customize it completely to your application before you can use it to test
Welcome to the Puffin Testing Framework. This extensible (and open source!)
functional/regression testing system allows you to test any web application
as though it were a black box.
Written completely in Python, you have but to configure it to your web
application, write your test plans and go, go, go.
NOTE: When you download Puffin, it comes pre-configured to go against the
demo application. To use it for your own web applications, you need to
customize it completely to your application before you can use it to test
Welcome to the Puffin Testing Framework. This extensible (and open source!)
functional/regression testing system allows you to test any web application
as though it were a black box.
Written completely in Python, you have but to configure it to your web
application, write your test plans and go, go, go.
NOTE: When you download Puffin, it comes pre-configured to go against the
demo application. To use it for your own web applications, you need to
customize it completely to your application before you can use it to test
Welcome to the Puffin Testing Framework. This extensible (and open source!)
functional/regression testing system allows you to test any web application
as though it were a black box.
Written completely in Python, you have but to configure it to your web
application, write your test plans and go, go, go.
NOTE: When you download Puffin, it comes pre-configured to go against the
demo application. To use it for your own web applications, you need to
customize it completely to your application before you can use it to test
Welcome to the Puffin Testing Framework. This extensible (and open source!)
functional/regression testing system allows you to test any web application
as though it were a black box.
Written completely in Python, you have but to configure it to your web
application, write your test plans and go, go, go.
NOTE: When you download Puffin, it comes pre-configured to go against the
demo application. To use it for your own web applications, you need to
customize it completely to your application before you can use it to test