This file contains 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
ruby-1.9.2-p0 :017 > Marshal.dump x | |
TypeError: no marshal_dump is defined for class Proc | |
from (irb):17:in `dump' | |
from (irb):17 | |
from /home/xavierlange/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>' |
This file contains 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
[INFO] (src/mongrel2.c:76) RELOAD REQUESTED, I'll do it on the next request. | |
[INFO] (src/mongrel2.c:307) Reload requested, will load f400bf85-4538-4f7a-8908-67e313d515c2 from /home/mongrel2/config.sqlite | |
DEBUG src/config/config.c:500: Stopping proxy: proxy:1:127.0.0.1:14000: | |
DEBUG src/config/config.c:500: Stopping proxy: proxy:2:127.0.0.1:9992: | |
DEBUG src/config/config.c:500: Stopping proxy: proxy:3:127.0.0.1:14001: | |
DEBUG src/config/config.c:504: Stopping dir: dir:1:www/:index.html:text/plain: | |
DEBUG src/config/config.c:504: Stopping dir: dir:2:kris_dev/:index.html:text/plain: | |
DEBUG src/config/config.c:504: Stopping dir: dir:4:debian/:index.html:text/plain: | |
DEBUG src/config/config.c:504: Stopping dir: dir:3:demo_production/:index.html:text/plain: | |
DEBUG src/config/config.c:496: Stopping handler: handler:1:tcp://127.0.0.1:9991:54c6755b-9628-40a4-9a2d-cc82a816345f:tcp://127.0.0.1:9990:: |
This file contains 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 Flatten where | |
data NestedList a = Elem a | List [NestedList a] | |
flatten :: NestedList a -> [a] | |
flatten (Elem x) = [x] | |
flatten (List x) = concatMap flatten x |
This file contains 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
removeNewLines = filter (/= '\n') | |
applyToFile filename = do | |
contents <- readFile filename | |
return (removeNewLines contents) | |
main :: IO () | |
main = do | |
putStrLn (applyToFile "prob7.txt") |
This file contains 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: .hs .o | |
SRCS=$(wildcard *.hs) | |
OBJS=$(patsubst %.hs,%.o,${SRCS}) | |
GHC_FLAGS=-O2 --make | |
%.o: %.hs | |
ghc ${GHC_FLAGS} $< | |
.PHONY: all |
This file contains 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
IDLGEN=rtiddsgen | |
IDLGEN_FLAGS=-d generated/ -language C -replace -I idl/ | |
IDL=$(wildcard idl/*.idl) | |
CFLAGS=-std=c99 -Wall -Werror -DRTI_LINUX -DRTI_UNIX -I/usr/local/include/ndds | |
LDFLAGS=-L/usr/local/lib -lnddscored -lnddscd -lrt -ldl | |
SRCS=$(wildcard *.c) | |
IDL_SRCS=$(patsubst idl/%.idl,generated/%.c,${IDL}) |
This file contains 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
source :gemcutter | |
gem "extlib" | |
gem "erubis" | |
git "git://github.com/xrl/merb.git" do | |
gem "merb-core", :require => nil | |
end |
This file contains 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 System.Environment | |
import Network.Socket | |
main :: IO() | |
main = do | |
args <- getArgs | |
startNetworkStuff args | |
startNetworkStuff ["publish", target, port, msg] = do | |
publish target port msg |
This file contains 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, [2011-05-09T09:50:00.244161 #4129] INFO -- : listening on addr=0.0.0.0:4000 fd=14 | |
I, [2011-05-09T09:50:00.246981 #4129] INFO -- : worker=0 spawning... | |
I, [2011-05-09T09:50:00.256592 #4129] INFO -- : master process ready | |
I, [2011-05-09T09:50:00.261433 #4170] INFO -- : worker=0 spawned pid=4170 | |
I, [2011-05-09T09:50:00.269369 #4170] INFO -- : Refreshing Gem list | |
Loading init file from ./config/init.rb | |
Loading ./config/environments/development.rb | |
Logging to file at ./log/development.log | |
Starting Merb::Rack::Application | |
I, [2011-05-09T09:50:06.564459 #4170] INFO -- : worker=0 ready |
This file contains 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
Starting Merb::Rack::Application | |
I, [2011-05-10T21:42:32.666475 #37025] INFO -- : worker=0 ready | |
E, [2011-05-10T21:43:51.915933 #37025] ERROR -- : Read error: #<Errno::EAGAIN: Resource temporarily unavailable - read(2) failed> | |
E, [2011-05-10T21:43:51.916346 #37025] ERROR -- : kernel/common/io.rb:1588:in `sysread' | |
kernel/common/io.rb:1428:in `readpartial' | |
/Users/xavierlange/code/tureus/gems/rbx/1.8/gems/unicorn-1.1.2/lib/unicorn/http_request.rb:58:in `read' | |
/Users/xavierlange/code/tureus/gems/rbx/1.8/gems/unicorn-1.1.2/lib/unicorn.rb:642:in `process_client' | |
/Users/xavierlange/code/tureus/gems/rbx/1.8/gems/unicorn-1.1.2/lib/unicorn.rb:715:in `worker_loop' | |
kernel/bootstrap/array.rb:76:in `each' | |
/Users/xavierlange/code/tureus/gems/rbx/1.8/gems/unicorn-1.1.2/lib/unicorn.rb:713:in `worker_loop' |
OlderNewer