Date: Every Thursday, from Thursday, January 5, 2012 to no end date Time: 10:00 am, Central Standard Time (Chicago, GMT-06:00) Meeting Number: 336 439 792 Meeting Password: (This meeting does not require a password.)
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/jruby ➔ jmap -histo 19907 | grep rubyobj | head -50 | |
116: 1945 46680 rubyobj.Gem.Version | |
118: 1898 45552 rubyobj.Gem.Version | |
120: 1826 43824 rubyobj.Gem.Requirement | |
123: 1804 43296 rubyobj.Gem.Requirement | |
158: 914 21936 rubyobj.Gem.Dependency | |
166: 876 21024 rubyobj.Gem.Dependency | |
209: 463 11112 rubyobj.Gem.Specification | |
211: 455 10920 rubyobj.Gem.Specification | |
319: 142 3408 rubyobj.ActiveSupport.TimeZone |
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
homebrew install gfortran | |
homebrew install python | |
homebrew install distribute | |
homebrew install pip | |
pip install ipython | |
pip install numpy | |
pip install scipy | |
pip install -f http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz matplotlib |
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
(defmacro def-curry-fn [name args & body] | |
{:pre [(not-any? #{'&} args)]} | |
(if (empty? args) | |
`(defn ~name ~args ~@body) | |
(let [rec-funcs (reduce (fn [l v] | |
`(letfn [(helper# | |
([] helper#) | |
([x#] (let [~v x#] ~l)) | |
([x# & rest#] (let [~v x#] | |
(apply (helper# x#) rest#))))] |
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
(ns rlm.classpath-utils | |
(:require [clojure.contrib [duck-streams :as ds]]) | |
(:use [clojure.contrib java-utils])) | |
(defn classpath [] | |
(get-system-property "java.class.path")) | |
(defn add-to-classpath [file-name] |
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
# Install ZeroMQ | |
sudo brew install zmq | |
easy_install pyzmq | |
[0] http://www.zeromq.org/bindings:python | |
# Install OpenCV | |
sudo brew install opencv |
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
# I want this method in ruby-core | |
def let | |
yield | |
end | |
def fib(i) | |
let do |n = 1, result = 0| | |
if i == -1 | |
result | |
else |
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
;; Grateful thanks are given to Brian Marick (@marick) for helping me | |
;; write these. I got the original idea while reading through | |
;; http://xahlee.org/emacs/elisp_idioms.html, but couldn't work out | |
;; the elisp regexes. Brian Marick (@marick) stepped in and helped. He | |
;; took my tortured and broken camelcase-region and turned it into | |
;; something that actually worked. I then created | |
;; camelcase-word-or-region. I then wrote the snakecase versions but I | |
;; see now that all I did was copy the camelcase defuns over and, | |
;; meaning to go back and finish them Real Soon Now, forgot all about | |
;; them. I've had a quick look (2011-02-27) but elisp regexes are |
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
(let [arrays '{objects "Ljava.lang.Object;", | |
ints I, longs J, floats F, doubles D, chars C, | |
shorts S, bytes B, booleans Z}] | |
(defn qualify-tag [tag] | |
(when tag | |
(let [cls (if-let [array (arrays tag)] | |
(clojure.lang.RT/classForName (str "[" array)) | |
(resolve tag))] | |
(assert (class? cls)) | |
(symbol (pr-str cls)))))) |
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
#Colo Server costs | |
set ServerTypes; | |
set InstanceTypes; | |
param CoreDemand; #How many cores do we need for a workload | |
param OurMoney; #The maximum upper-bound of what we're willing to spend | |
param ColoCostPerU; #How much are we paying per U of colocation | |
param Months; # How many months do we know we need this hardware |