- That working with a group of smart and well-informed developers is really enjoyable, but not sufficient to reliably make high-quality software (i don't know why not).
- How modern system administration is done, and a little about how it ought to be done.
- That large-scale automated CI, with dozens and dozens of slaves testing every conceivable aspect of the software in a short space of time, is possible and awesome.
- That if one day you don't feel like doing a proper job of something, or perhaps even finishing it at all, you can just tell everyone you're "focusing on delivering the business value", and it's fine.
- That the financial industry really is run just as badly as you feared.
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
2015-01-15 18:28:09.984 ERROR 18560 --- [ main] o.s.boot.SpringApplication : Application startup failed | |
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.actuate.autoconfigure.ManagementServerPropertiesAutoConfiguration.managementServerProperties | |
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:185) | |
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:58) | |
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102) | |
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:185) | |
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:148) | |
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
SUFFIXES = {1000: ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], | |
1024: ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']} | |
def approximate_size(size, a_kilobyte_is_1024_bytes=True): | |
"""Convert a file size to human-readable form. | |
Keyword arguments: | |
size -- file size in bytes | |
a_kilobyte_is_1024_bytes -- if True (default), use multiples of 1024, | |
if False, use multiples of 1000 |
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 com.youdevise; | |
import com.youdevise.Firmament.Air.Earth; | |
import java.io.Serializable; | |
public class Firmament { | |
public static class Air implements Serializable { | |
public static class Earth {} | |
} |
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
module Dollars where | |
import Test.HUnit | |
----------------------------------------------------- | |
-- parsing dollars | |
----------------------------------------------------- | |
parseDigit '0' = 0 | |
parseDigit '1' = 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
#! /usr/bin/env python | |
import sys | |
labels = sys.argv[1:] | |
rows = map(lambda strings: map(int, strings), map(str.split, map(str.rstrip, sys.stdin.readlines()))) | |
def vote(row): | |
assert len(row) == len(labels) |
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
#! /usr/bin/env python | |
import sys | |
import itertools | |
def recording_in(d): | |
def recording(f): | |
def recording_f(*args): | |
result = f(*args) | |
d[args] = result |
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
#! /usr/bin/env python | |
""" | |
Conceptual complexity: the incidental complexity of the code is low, | |
because it directly realises the mathematical algorithm, whose intrinsic | |
complexity is, for the non-mathematical layman, about a cup of tea's | |
worth of scribbling on a notepad | |
Time complexity: you know, i have no idea; it's probably related to the | |
number of factors in the inputs, and the number of factors in common |
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.io.IOException; | |
import java.util.concurrent.Executors; | |
import com.rabbitmq.client.AMQP.BasicProperties; | |
import com.rabbitmq.client.Channel; | |
import com.rabbitmq.client.Connection; | |
import com.rabbitmq.client.ConnectionFactory; | |
import com.rabbitmq.client.DefaultConsumer; | |
import com.rabbitmq.client.Envelope; |
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
27727 elastics 20 0 31.9g 30g 6984 S 8 47.9 14:19.24 /usr/lib/jvm/java-6-sun/bin/java -Xms30g -Xmx30g -Xss256k -Djava.awt.headless=true -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:GCPauseIntervalMill | |
6895 www-data 20 0 28.5g 28g 1256 R 105 45.1 4881:55 /usr/bin/python /opt/graphite/bin/carbon-cache.py start | |
28369 logstash 20 0 16.5g 766m 6008 S 173 1.2 104:12.72 /usr/bin/java -jar /opt/logstash-monolithic.jar agent --pluginpath /opt/logstash_plugins --config /etc/logstash/logstash.conf --log /var/log/logstash_indexer.notlog | |
14562 nobody 20 0 753m 53m 644 S 0 0.1 395:29.49 java -XX:+UseConcMarkSweepGC -jar /usr/lib/riemann/riemann.jar /etc/riemann/riemann.config | |
26906 rabbitmq 20 0 509m 56m 1000 S 45 0.1 1786:24 /usr/lib/er |