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
| diff -urN XML-Sig-0.22/lib/XML/Sig.pm XML-Sig-0.22+fixes/lib/XML/Sig.pm | |
| --- XML-Sig-0.22/lib/XML/Sig.pm 2009-12-08 17:57:08.000000000 +0000 | |
| +++ XML-Sig-0.22+fixes/lib/XML/Sig.pm 2010-09-17 20:42:45.000000000 +0100 | |
| @@ -105,27 +105,32 @@ | |
| my ($xml) = @_; | |
| $self->{ parser } = XML::XPath->new( xml => $xml ); | |
| + $self->{parser}->set_namespace('ds', 'http://www.w3.org/2000/09/xmldsig#'); | |
| + | |
| + my $signature = _trim($self->{parser}->findvalue('//ds:Signature/ds:SignatureValue')); |
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
| <!-- JMX --> | |
| <bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean"> | |
| <property name="port" value="${sabrix.jmxport}"/> | |
| </bean> | |
| <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean" depends-on="registry"> | |
| <property name="objectName" value="connector:name=rmi"/> | |
| <property name="serviceUrl" value="service:jmx:rmi://localhost/jndi/rmi://localhost:${sabrix.jmxport}/connector"/> | |
| </bean> |
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
| From e7fc713ce41d2b8476980c61b7b61703932b2469 Mon Sep 17 00:00:00 2001 | |
| From: Chris Andrews <chrisandrews@venda.com> | |
| Date: Fri, 27 Aug 2010 15:41:28 +0100 | |
| Subject: [PATCH] Don't skip validation on coercion fail to a type union including Undef | |
| Given a type union 'SomeType|Undef' with coercions enabled, a value | |
| which couldn't be coerced to SomeType would silently be discarded, | |
| and the attribute would be assigned undef - with no validation failure. | |
| This change ensures validation is applied to reject such values. |
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 BarClass; | |
| use Moose; | |
| use MooseX::Types::Moose qw/ Str /; | |
| has 'bar' => (isa => Str, is => 'ro', required => 1); | |
| package MyClass; | |
| use Moose; | |
| use MooseX::Types::Moose qw/ Undef ArrayRef Str Any HashRef /; | |
| use MooseX::Types -declare => [qw/ Foo FooList Bar BarList /]; |
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
| ~/Projects/v ➔ cat Vagrantfile | |
| require 'centos' | |
| Vagrant::Config.run do |config| | |
| # All Vagrant configuration is done here. For a detailed explanation | |
| # and listing of configuration options, please view the documentation | |
| # online. | |
| # config.vm.provisioner = :chef_solo | |
| # config.chef.cookbooks_path = ["local-cookbooks", "opscode-cookbooks", "cookbooks_opensource/cookbooks"] |
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
| ~/Projects/v ➔ cat centos.rb | |
| module Vagrant | |
| module Systems | |
| class Centos < Linux | |
| def prepare_host_only_network | |
| # Remove any previous host only network additions to the | |
| # interface file. | |
| vm.ssh.execute do |ssh| | |
| # would remove relevant ifcfg-ethN, but don't know which it is. |
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
| ~/Projects/v ➔ vagrant up | |
| [web] Creating VM 'web' | |
| [web] Importing base VM (/Users/chris/.vagrant/boxes/centos_box2/box.ovf)... | |
| [web] Persisting the VM UUID (c2d3bdcd-a93d-46af-8540-09c44784309e)... | |
| [web] Matching MAC addresses... | |
| [web] WARNING! | |
| No guest additions were detected on the base box for this VM! Guest | |
| additions are required for forwarded ports, shared folders, host only | |
| networking, and more. If SSH fails on this machine, please install | |
| the guest additions and repackage the box to continue. |
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
| 157 3 0x58cc5000 0x25000 0x24000 org.virtualbox.kext.VBoxDrv (3.2.6) <7 5 4 3 1> | |
| 158 0 0x570b2000 0x7000 0x6000 org.virtualbox.kext.VBoxUSB (3.2.6) <157 44 35 7 5 4 3 1> | |
| 159 0 0x56b4f000 0x4000 0x3000 org.virtualbox.kext.VBoxNetFlt (3.2.6) <157 7 5 4 3 1> | |
| 160 0 0x56e87000 0x3000 0x2000 org.virtualbox.kext.VBoxNetAdp (3.2.6) <157 5 4 1> | |
| 161 0 0x808cf000 0xd3000 0xd2000 com.vmware.kext.vmx86 (2.0.7) <11 5 4 3 1> | |
| 162 0 0x57496000 0xb000 0xa000 com.vmware.kext.vmci (2.0.7) <5 4 3 1> | |
| 163 0 0x50a77000 0x6000 0x5000 com.vmware.kext.vmioplug (2.0.7) <35 29 5 4 3> | |
| 164 0 0x574a1000 0x9000 0x8000 com.vmware.kext.vmnet (2.0.7) <11 5 4 3 1> |
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
| sub call { | |
| my ($self, $env) = @_; | |
| eval {DB::enable_profile(sprintf('nytprof_hit_%s', $profile)) }; | |
| die; | |
| ... | |
| } |
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
| [chris@dev ~]$ curl http://10.100.65.0:9090/stuff | |
| Trace begun at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Middleware/StackTrace.pm line 21 | |
| Plack::Middleware::StackTrace::__ANON__('Undefined subroutine &DB::enable_profile called at /export/tmp/app/venda-scripts/../venda-modules/Venda/App/REST.pm line 17.^J^I...propagated at /export/tmp/app/venda-scripts/../venda-modules/Venda/App/REST.pm line 19.^J') called at /export/tmp/app/venda-scripts/../venda-modules/Venda/App/REST.pm line 19 | |
| Venda::App::REST::call('Venda::App::REST=HASH(0x10089b70)', 'HASH(0x100c9388)') called at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Component.pm line 39 | |
| Plack::Component::__ANON__('HASH(0x100c9388)') called at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/App/URLMap.pm line 64 | |
| Plack::App::URLMap::call('Plack::App::URLMap=HASH(0x10089bd0)', 'HASH(0x100c9388)') called at /export/tmp/app/venda-scripts/../venda-siteperl/lib/perl5/Plack/Component.pm line 39 | |
| Plack::Component:: |