This file contains hidden or 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
| Topic.columns_hash['written_on'].sql_type # => "datetime" | |
| Topic.columns_hash['bonus_time'].sql_type # => "time" | |
| Topic.columns_hash['last_read'].sql_type # => "date" | |
| Topic.count # => 4 | |
| data = Topic.connection.send(:select,"SELECT `topics`.* FROM `topics`") | |
| row = data[0] | |
| row['written_on'] # => 2003-07-16 10:28:11 UTC | |
| row['written_on'].class # => Time |
This file contains hidden or 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
| Setting Up A Local Port Repo: | |
| http://journal.bitshaker.com/articles/2007/10/20/install-old-versions-of-ports-using-macports/ | |
| http://trac.macports.org/wiki/howto/InstallingOlderPort | |
| 1) Add this to /opt/local/etc/macports/sources.conf | |
| file:///Users/kencollins/Repositories/ports [nosync] | |
| 2) mkdir /Users/kencollins/Repositories/ports | |
This file contains hidden or 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
| (global-set-key (kbd "M-s") 'save-buffer) | |
| (global-set-key (kbd "M-z") 'undo) | |
| (global-set-key (kbd "<escape>") 'hippie-expand) | |
| (set-face-font 'default "-apple-inconsolata-medium-r-normal--13-0-72-72-m-0-iso10646-1") | |
| (add-to-list 'default-frame-alist '(width . 100)) | |
| (add-to-list 'default-frame-alist '(height . 45)) | |
| (setq-default tab-width 2) |
This file contains hidden or 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
| # encoding: utf-8 | |
| require 'odbc' | |
| require 'odbc_utf8' | |
| GC.disable | |
| module ODBC | |
| class Statement | |
| def finished? |
NewerOlder