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
>> pf = FeedParser.parse("http://feeds.feedburner.com/digitsshowonyoutube") | |
ArgumentError: wrong number of arguments (1 for 0) | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/scrub.rb:201:in `initialize' | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/scrub.rb:201:in `new' | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/scrub.rb:201:in `SanitizerDoc' | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/scrub.rb:208:in `sanitizeHTML' | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/parser_mixin.rb:415:in `pop' | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/parser_mixin.rb:475:in `popContent' | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/parser_mixin.rb:1099:in `_end_description' | |
from /opt/local/lib/ruby/gems/1.8/gems/rfeedparser-0.9.951.1/lib/rfeedparser/parser_mixin.rb:223:in `send' |
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
@victorduwon's: | |
Find: '(@[a-zA-Z0-9.-]+\\)' | |
Replace: '<a href=\"twitter.com/:\\1\">\\1</a>' | |
@damog's: | |
Find: '@(\w+)' | |
Replace "<a href=\"http://twitter.com/\1\">\1</a>" |
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
>> Feedbag.find("last.fm/user/damog", :narrow => 1) | |
=> [] | |
>> Feedbag.find("last.fm/user/damog") | |
=> ["http://ws.audioscrobbler.com/1.0/user/damog/recenttracks.rss"] | |
>> |
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
>> require "feedbag" | |
=> true | |
>> Feedbag::find 'http://adrianshort.co.uk/' | |
=> ["http://adrianshort.co.uk/feed/", "http://adrianshort.co.uk/tags/atom/", "http://adrianshort.co.uk/tags/twitterfeed/"] | |
>> Feedbag::find 'http://adrianshort.co.uk/', :narrow => 1 | |
=> ["http://adrianshort.co.uk/feed/"] | |
>> |
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
<object | |
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" | |
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" | |
height="350" width="300"> | |
<param name="movie" | |
value="http://bandtools.nabbr.com/bandtools/flash.php?bandId=278&playerId=278&network=facebook"> | |
<param name="wmode" value="transparent" /> | |
<param name="allowScriptAccess" value="always"/> | |
<param name="width" value="300"/> | |
<param name="height" value="350"/> |
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
david@devbox:~$ ruby --version | |
ruby 1.8.7 (2008-08-11 patchlevel 72) [powerpc-linux] | |
david@devbox:~$ uname -a | |
Linux devbox 2.6.26-1-powerpc #1 Sat Jan 10 14:00:38 CET 2009 ppc GNU/Linux | |
david@devbox:~$ irb | |
irb(main):001:0> Thread.start { $SAFE = 4; eval 'f = Hash.new {|h,k| h[k] = h[k-1]+h[k-2]};f[0]=1;f[1]=1;f[1000000]' }.value | |
Segmentation fault | |
david@devbox:~$ |
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
something |
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
something |
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
operation not permitted in `gem_original_require': Insecure operation - gem_original_require |
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
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
public class RegexCaptureTest { | |
public static void main(String[] args) { | |
String inputStr = "<a href=\"http://google.com/\">Visit Google today!</a>"; | |
String patternStr = "<a href=\"(.+?)\">(.+?)</a>"; | |