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
package Apache2::Request::NG; | |
use Modern::Perl; | |
use Apache2::Request; | |
our @ISA = qw(Apache2::Request); | |
sub new { | |
my($class, @args) = @_; | |
return bless { r => Apache2::Request->new(@args) }, $class; |
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){ | |
public static void main(String[] args){ | |
String inputStr = "<a href=\"http://google.com/\">Visit Google today!</a>"; | |
String patternStr = "<a href=\"(.+?)\">(.+?)</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
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>"; | |
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
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
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
<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
>> 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
>> Feedbag.find("last.fm/user/damog", :narrow => 1) | |
=> [] | |
>> Feedbag.find("last.fm/user/damog") | |
=> ["http://ws.audioscrobbler.com/1.0/user/damog/recenttracks.rss"] | |
>> |
OlderNewer