My Recent Pastes (628 and counting)

All Pasties (129 and counting)

Pages: 1 2 3 4 5 ... 42

Below are summaries of the 15 most recent pasties by Allan Odgaard.

July 24, 2007
11:49PM EDT
by Allan Odgaard

1
2
3
4
5
rake --trace RAILS_ENV=production db:retro:load
(in /usr/home/duff/retrospectiva)
rake aborted!
undefined method `gem' for main:Object
/usr/home/duff/retrospectiva/config/boot.rb:39

July 24, 2007
11:47PM EDT
by Allan Odgaard

1
2
3
4
5
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': no such file to load -- ace (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1749:in `do_option'
        from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1787:in `handle_options'
        from /usr/local/lib/ruby/1.8/getoptlong.rb:613:in `each'

July 23, 2007
10:37PM EDT
by Allan Odgaard

1
2
3
4
5
def run_viewer(viewer,fileName):
    """docstring for run_viewer"""
    pdfFile = shell_quote(fileName[:fileName.rfind('.tex')]+'.pdf')
    if viewer != 'builtin':
        viewCmd = '/usr/bin/open -a ' + viewer + '.app ' + pdfFile

July 23, 2007
10:25PM EDT
by Allan Odgaard

1
2
3
4
5
Index: /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js
===================================================================
--- /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js        (revision 7789)
+++ /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js        (working copy)
@@ -26,7 +26,7 @@

July 22, 2007
11:57AM EDT
by Allan Odgaard

1
2
3
4
5
--- Checkout.class.php (saved version)
+++ (current document)
@@ -59,13 +59,13 @@
                 protected function calculate_price($amount)
                 {

July 21, 2007
11:35AM EDT
by Allan Odgaard

1
2
3
4
5
security add-internet-password -r "abcd" -s "example.org" -a "user" -w "secret"
security find-internet-password -r "abcd" -s "example.org" -a "user"
security find-internet-password -r "dcba" -s "example.org" -a "user"

security add-internet-password -r "http" -s "example.org" -a "user" -w "secret"

July 20, 2007
8:33AM EDT
by Allan Odgaard

1
2
3
4
5
When  bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes  com-
mands  from  the file /etc/profile, if that file exists.  After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in  that order, and reads and executes commands from the first one that

July 19, 2007
7:38AM EDT
by Allan Odgaard

1
2
3
4
5
Index: SQL.tmbundle/Support/lib/connectors/mysql.rb
===================================================================
--- SQL.tmbundle/Support/lib/connectors/mysql.rb        (revision 7751)
+++ SQL.tmbundle/Support/lib/connectors/mysql.rb        (working copy)
@@ -98,6 +98,9 @@

July 19, 2007
7:33AM EDT
by Allan Odgaard

1
2
3
4
5
Index: /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb
===================================================================
--- /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb        (revision 7751)
+++ /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb        (working copy)
@@ -98,6 +98,9 @@

July 18, 2007
1:35PM EDT
by Allan Odgaard

1
2
3
4
5
require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'

options = {
  :title   => "Tidy Warnings",
  :summary => "Warnings for tidying your document:",

July 18, 2007
11:56AM EDT
by Allan Odgaard

1
2
3
4
5
APP_PATH=$(ps -xwwp $PPID -o command|grep -o '.*.app')
ORIGIFS="$IFS"
IFS=$'\n\b'
INDEX=0
Y=(top center bottom)

July 18, 2007
11:51AM EDT
by Allan Odgaard

1
2
3
4
5
APP_PATH=$(ps -xwwp $PPID -o command|grep -o '.*.app')
ORIGIFS="$IFS"
IFS=$'\n\b'
Y_POS=10
for line in $(</tmp/tm_tidy_errors); do

July 18, 2007
9:49AM EDT
by Allan Odgaard

1
2
3
4
5
# CyBot Goners plugin
--- 
allan: !ruby/struct:Goner 
  nick: allan
  channel: "##textmate"

July 17, 2007
6:32PM EDT
by Allan Odgaard

1
2
3
4
5
JEG2: as for the shell book, I think there are 3 common “concepts” where a better understanding would help the user.

These are 1) command line arguments (understanding what the shell parser does and what the program (shell command) sees), common problems here is how to give a newline, give a string containing both a " and ', etc.

2) file descriptors (pipes), the stdin/out are generally understood, but that these are just fd 0 and 1 are rarely fully understood, this in relation to redirection, e.g. how you can send data to an arbitrary file descriptor via a here-doc, here-string, from running another command etc. (not just via |) — useful e.g. when you want to do things like use a here-doc for a program that also needs to read from stdin, when you want to avoid temporary files (e.g. a command only takes a file as argument) etc.

July 17, 2007
8:58AM EDT
by Allan Odgaard

1
2
3
4
5
Index: /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/bin/db_browser.rb
===================================================================
--- /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/bin/db_browser.rb        (revision 7751)
+++ /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/bin/db_browser.rb        (working copy)
@@ -3,6 +3,7 @@

Next page

Previous page