if bad thing weren't necessary, it would be bad, so pushes you toward making it necessary, integrating it into your identity.
Bad things are high-risk, high reward--hoping for miraculous transformation, but if not, you're worse off.
| import random | |
| def play(start): | |
| roll = random.randint(1, 6) | |
| if roll == 1: | |
| return start / 2 | |
| if roll == 6: | |
| return start * 2 | |
| return start * 1.05 |
| RTNETLINK answers: Invalid argument | |
| 21:24:12.699 INFO [n.f.c.m.FloodlightModuleLoader:main] Loading default modules | |
| 21:24:13.212 INFO [n.f.c.i.Controller:main] Controller role set to MASTER | |
| 21:24:13.219 INFO [n.f.c.i.Controller:main] Flush switches on reconnect -- Disabled | |
| 21:24:14.998 INFO [n.f.l.i.LinkDiscoveryManager:main] Setting autoportfast feature to OFF | |
| 21:24:15.357 INFO [o.s.s.i.c.FallbackCCProvider:main] Cluster not yet configured; using fallback local configuration | |
| 21:24:15.357 INFO [o.s.s.i.SyncManager:main] [32767] Updating sync configuration ClusterConfig [allNodes={32767=Node [hostname=localhost, port=6642, nodeId=32767, domainId=32767]}, authScheme=CHALLENGE_RESPONSE, keyStorePath=/etc/floodlight/auth_credentials.jceks, keyStorePassword is unset] | |
| 21:24:15.428 INFO [o.s.s.i.r.RPCService:main] Listening for internal floodlight RPC on localhost/127.0.0.1:6642 | |
| 21:24:15.615 INFO [n.f.c.i.Controller:main] Listening for switch connections on 0.0.0.0/0.0.0.0:6633 | |
| 21:24:18.362 INFO [n.f.j.JythonServer: |
| myth3:~/144/ec2_script $ ./setup_ec2.sh [0] | |
| Checking if an VPC already existed in your account .... | |
| Using existing VPC ID: vpc-d0d892bb, 10.0.0.0/16 | |
| Checking if an Internet Gateway aleady existed in your account ... | |
| igw-aed892c5 | |
| Using existing Internet Gateway ID: igw-aed892c5 | |
| Associate the Internet Gateway to our VPC | |
| the Internet Gateway already attach to our VPC | |
| Using zone us-east-1a | |
| subet 10.0.0.0/24 exists |
Here is what I did on my Mac to get echo setup. (with some other possible steps thrown in)
If you don't already have a GitHub account, the first thing you'll want to do is go to github.com and sign up.
| $ traceroute peterwj.subsonic.org | |
| traceroute to peterwj.subsonic.org (66.49.215.227), 64 hops max, 52 byte packets | |
| 1 subsonic.canaca.com (66.49.215.227) 3.347 ms 1.106 ms 0.951 ms | |
| 2 home (192.168.1.254) 5.277 ms 2.275 ms 2.105 ms | |
| 3 99-51-76-3.lightspeed.snjsca.sbcglobal.net (99.51.76.3) 26.990 ms 23.798 ms 22.900 ms | |
| 4 * * 71.145.0.28 (71.145.0.28) 35.234 ms | |
| 5 * * * | |
| 6 12.83.39.137 (12.83.39.137) 24.323 ms 23.698 ms 24.234 ms | |
| 7 la2ca03jt.ip.att.net (12.122.84.201) 165.675 ms 82.141 ms 61.867 ms | |
| 8 192.205.37.158 (192.205.37.158) 36.198 ms |
| ;;; added this to server.clj | |
| (defn add-body [handler] | |
| (fn [req] | |
| (let [neue | |
| (update-in req [:params] assoc :req-body (slurp (:body req)))] | |
| (handler neue)))) | |
| (server/add-middleware add-body) |
| diff --git a/Makefile b/Makefile | |
| index e381341..1bd4487 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -44,6 +44,12 @@ default: $(TARGET) | |
| $(TARGET) : $(OBJECTS) Makefile.dependencies libcvecmap.a | |
| $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBRARIES) | |
| +test : test.o Makefile.dependencies libcvecmap.a | |
| + $(CC) $(CFLAGS) -o $@ test.o $(LDFLAGS) $(LIBRARIES) |
| #!/usr/bin/env ruby | |
| require 'open3' | |
| # Ruby doesn't realize how AFS works and is thus complaining about the | |
| # executable it's running being world writable. | |
| # It complains to stderr, so just suppress that. | |
| $stderr.reopen('/dev/null', 'w') | |
| def test(command) |
| myth14:~$ traceroute duckduckgo.com | |
| traceroute to duckduckgo.com (72.94.249.34), 30 hops max, 40 byte packets | |
| 1 yoza-vlan291.Stanford.EDU (171.64.15.8) 0.313 ms 0.349 ms 0.418 ms | |
| 2 bbra-rtr-a.Stanford.EDU (171.64.255.129) 0.330 ms 0.401 ms 0.447 ms | |
| 3 boundarya-rtr.Stanford.EDU (172.20.4.2) 0.390 ms 0.468 ms 0.531 ms | |
| 4 dca-rtr.Stanford.EDU (68.65.168.51) 0.281 ms 0.277 ms 0.273 ms | |
| 5 dc-svl-agg1--stanford-10ge.cenic.net (137.164.50.157) 0.672 ms 0.709 ms 0.703 ms | |
| 6 dc-svl-core1--svl-agg1-10ge.cenic.net (137.164.47.121) 1.893 ms 1.807 ms 1.763 ms | |
| 7 dc-svl-isp1--svl-core1-10ge.cenic.net (137.164.47.132) 0.854 ms 0.810 ms 0.959 ms | |
| 8 te-9-4.car1.SanJose1.Level3.net (4.53.16.185) 1.316 ms 1.401 ms 1.467 ms |