Skip to content

Instantly share code, notes, and snippets.

@andreastt
andreastt / gist:776058
Created January 12, 2011 11:49
PHP comparison FAIL
<?php
$a = "0xF14067C1C600003D";
$b = $a;
echo '$a = ';var_dump($a);
echo '$b = ';var_dump($b);
if($a == $b) {
echo "\$a == \$b\n";
} else {
echo "\$a != \$b\n";
}
● traceroute e-tjenesten.org
traceroute to e-tjenesten.org (193.93.221.148), 30 hops max, 60 byte packets
1 v0028.cs-06.nerv.p.mgm.osa (10.20.28.2) 0.806 ms 1.286 ms 1.663 ms
2 gw-opera.oslo.osa (10.20.10.1) 0.351 ms 0.345 ms 0.340 ms
3 gw-tdc.opera.com (213.236.208.1) 1.122 ms 1.329 ms 1.584 ms
4 85.19.82.229 (85.19.82.229) 1.459 ms 1.695 ms 1.682 ms
5 213.225.109.102 (213.225.109.102) 0.930 ms 1.078 ms 1.028 ms
6 te1-4.ccr01.cph01.atlas.cogentco.com (130.117.15.9) 9.588 ms 9.432 ms 9.420 ms
7 te1-1.ccr01.mmx01.atlas.cogentco.com (130.117.0.50) 10.437 ms 10.438 ms 10.605 ms
8 te1-1.ccr01.sto01.atlas.cogentco.com (130.117.3.10) 13.831 ms 13.941 ms 14.192 ms
● curl -L cpanmin.us | perl - -S http://latest.mojolicio.us
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 167k 100 167k 0 0 79504 0 0:00:02 0:00:02 --:--:-- 186k
--> Working on http://latest.mojolicio.us
Fetching http://latest.mojolicio.us ... FAIL
! Download http://latest.mojolicio.us failed. Retrying ...
! Download http://latest.mojolicio.us failed. Retrying ...
! Download http://latest.mojolicio.us failed. Retrying ...
! Failed to download http://latest.mojolicio.us
Dispatching deprecated method 'CPAN::Config::load' to CPAN::HandleConfig
CPAN: File::HomeDir loaded ok (v0.64)
CPAN: Storable loaded ok (v2.18)
Going to read /home/ato/.cpan/Metadata
Database was generated on Thu, 10 Feb 2011 14:48:57 GMT
Going to read /home/ato/.cpan/build/
............................................................................DONE
Found 22 old builds, restored the state of 22
Prepending blib/arch and blib/lib of 20 build dirs to PERL5LIB; for 'get'
CPAN: Digest::SHA loaded ok (v5.47)
class B
attr_accessor :code
def initialize(code)
@code = code
end
end
b1 = B.new(12)
p b1.code
● operawatir password.rb
{:manual=>false, :ng=>false, :color_enabled=>true, :check_syntax=>false, :format=>"progress", :opera_idle=>true, :files_to_run=>["password.rb"]}
F{:manual=>false, :ng=>false, :color_enabled=>true, :check_syntax=>false, :format=>"progress", :opera_idle=>true, :files_to_run=>["password.rb"]}
Failures:
1) foo will enter text to a password field
Failure/Error: browser.goto 'http://team.opera.com/testbed/platforms/desktop/sec/master_password.php'
NativeException:
Mar 3, 2011 4:41:36 PM com.opera.core.systems.scope.stp.StpConnection canRead
INFO: Channel closed : localhost
Mar 3, 2011 4:41:36 PM com.opera.core.systems.WaitState onDisconnected
INFO: Got disconnected.
Mar 3, 2011 4:41:36 PM com.opera.core.systems.ScopeServices quitOpera
INFO: Caught exception when trying to shut down (cannot send quit). : Problem encountered : DISCONNECTED
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-27-generic', java.version: '1.6.0_20'
Driver info: driver.version: OperaDriver
require 'operawatir/helper'
describe 'Selectors' do
it 'will select button by text' do
browser.goto 'data:text/html,<button><span>Test me</span></button>'
browser.button(:text, 'Test me').text.should include 'Test me'
end
end
diff --git a/src/runner.cpp b/src/runner.cpp
index a1ce86e..7654133 100644
--- a/src/runner.cpp
+++ b/src/runner.cpp
@@ -121,6 +121,7 @@ int LauncherRunner::run(Config& config)
}
else
{
+ isLauncherRunning = false;
connected = false;
Moren til Berge