My Recent Pastes (634 and counting)
Pastes by Allan Odgaard (634 and counting)
Below are the 15 most recent pasties by Allan Odgaard.
May 26, 2007
10:36PM EDT
by Allan Odgaard
View all 14 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
May 26, 2007
10:17PM EDT
by Allan Odgaard
View all 8 lines
<?php $str = <<< HTML <strong>test</strong>
May 24, 2007
11:06AM EDT
by Allan Odgaard
View all 41 lines
83.8.42.34 - - [17/May/2007:10:40:26 +0000] "GET /blog/archives/2006/01/06/textmate-15/ HTTP/1.1" 200 7838 "http://www.linkvendor.com/seo-tools/domain-popularity.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" 83.8.42.34 - - [17/May/2007:10:40:29 +0000] "GET /css/site.css HTTP/1.1" 200 2372 "http://macromates.com/blog/archives/2006/01/06/textmate-15/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" 83.8.42.34 - - [17/May/2007:10:40:30 +0000] "GET /css/blog.css HTTP/1.1" 200 584 "http://macromates.com/blog/archives/2006/01/06/textmate-15/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
May 24, 2007
11:00AM EDT
by Allan Odgaard
83.8.34.228 - - [24/May/2007:13:21:06 +0000] "GET /blog/archives/2006/01/06/textmate-15/ HTTP/1.1" 200 7958 "http://www.linkvendor.com/seo-tools/domain-popularity.html" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" 83.8.34.228 - - [24/May/2007:14:43:00 +0000] "POST /blog/wp-comments-post.php HTTP/1.1" 302 20 "http://macromates.com/blog/archives/2006/01/06/textmate-15/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" 83.8.34.228 - - [24/May/2007:14:43:03 +0000] "GET /blog/archives/2006/01/06/textmate-15/ HTTP/1.1" 200 8004 "http://macromates.com/blog/archives/2006/01/06/textmate-15/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3"
May 23, 2007
5:18PM EDT
by Allan Odgaard
View all 11 lines
struct myS {
const char * name;
int num;
}
May 22, 2007
2:03PM EDT
by Allan Odgaard
View all 20 lines
#include <vector> #include <string> using namespace std;
May 20, 2007
8:58AM EDT
by Allan Odgaard
View all 15 lines
Index: Cocoa Context.tmCommand =================================================================== --- Cocoa Context.tmCommand (revision 7297) +++ Cocoa Context.tmCommand (revision 7299) @@ -157,9 +157,8 @@
May 20, 2007
8:52AM EDT
by Allan Odgaard
View all 13 lines
Index: Objective-C.tmbundle/Commands/Cocoa Context.tmCommand =================================================================== --- Objective-C.tmbundle/Commands/Cocoa Context.tmCommand (revision 7298) +++ Objective-C.tmbundle/Commands/Cocoa Context.tmCommand (working copy) @@ -157,7 +157,7 @@
May 20, 2007
8:48AM EDT
by Allan Odgaard
View all 13 lines
Heroes_S01E13-15.iso
2221.1 / 4389.0 MB Rate: 41.6 / 124.0 KB Uploaded: 852.3 MB [50%] 0d 4:58
Heroes_S01E16-18.iso
673.9 / 4389.2 MB Rate: 38.1 / 74.4 KB Uploaded: 417.6 MB [14%] 0d 14:16
May 17, 2007
9:42PM EDT
by Allan Odgaard
View all 15 lines
@interface OakPasteboardEntry : NSObject
{
NSStrin‸
}
May 16, 2007
7:22PM EDT
by Allan Odgaard
View all 7 lines
I have around 160 anchors in my manual which spans 24 pages. With your design decision it seems the effective count of anchors though is only 24, as all anchors on the same page will lead to the same (top of the page) location. This gives pretty terrible usability, i.e. clicking a help link and being taken to a page with an average of seven sections, and then having to locate which of the seven sections the link actually wanted to go to.
May 14, 2007
10:29AM EDT
by Allan Odgaard
View all 13 lines
#!/usr/bin/env ruby -wKU
res = ''
xml_input.iterate('comment', 'string', '*') do |xml, scope|
May 14, 2007
8:28AM EDT
by Allan Odgaard
View all 13 lines
#!/usr/bin/env ruby -wKU
res = ''
xml_input.iterate('comment', 'string', '*') do |text, scope|
May 14, 2007
8:25AM EDT
by Allan Odgaard
View all 7 lines
xml_input.iterate('comment', 'string', '*') do |text, scope|
case scope
when 'comment': # strip this
when 'string': puts text
when '*': puts text.gsub(/\s+/, ' ')