Skip to content

Instantly share code, notes, and snippets.

/opt/nginx/sbin/nginx -V
nginx: nginx version: nginx/0.9.3
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
nginx: TLS SNI support disabled
nginx: configure arguments: --prefix=/opt/nginx --with-http_ssl_module --add-module=/usr/local/rvm/gems/ree-1.8.7-2010.02/gems/passenger-3.0.1/ext/nginx --with-http_ssl_module --with-ipv6 --with-http_stub_status_module
/*
* A simple on-demand based mmap alloc-only proof-of-concept to just check out the possibilities of having a
* single giant MAP_FIXED allocation for a process that may not need to call free at all and just work with a
* contiguous allocation space
*
* A mmap contiguous hole space is reserved with a PROT_READ and then individual pages overridden with
* PROT_WRITE on page faults in sigsegv handler which mmaps the faulting address space.
*
* As a test, a 1 GIG file is created and then read into the memory allocated from the contiguous vma which is a
* brain-dead linear allocator from the address space as there are no requirements to free memory here.
Processing InternalController#revision (for localhost at 2010-04-27 16:27:26) [GET]
Parameters: {"wang"=>"wang"}
Completed in 12ms (View: 1, DB: 2) | 200 OK [http://localhost/internal/revision?wang=%22wang%22]
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) unlimited
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 65532
cpu time (seconds, -t) unlimited
max user processes (-u) 532
# GravitronShiftr
#
# just a simple test of ShinyCocos2d
class DemoScene < Cocos2D::Scene
include Cocos2D
def initialize
@layer = Layer.new
@map = TMXTiledMap.new("sewers.tmx")
# GravitronShiftr
#
# just a simple test of ShinyCocos2d
# i could get used to this
class DemoScene < Cocos2D::Scene
include Cocos2D
def initialize
@layer = Layer.new
=CRASH REPORT==== 31-Jan-2010::06:49:55 ===
crasher:
initial call: ssl_connection:init/1
pid: <0.11745.973>
registered_name: []
exception exit: bad_info
in function gen_fsm:terminate/7
ancestors: [ssl_connection_sup,ssl_sup,<0.180.0>]
messages: []
links: [<0.188.0>]
=CRASH REPORT==== 31-Jan-2010::06:30:43 ===
crasher:
initial call: gen:init_it/6
pid: <0.6619.974>
registered_name: []
exception exit: {{case_clause,{error,system_limit}},
[{rabbit_queue_index,scatter_journal,4},
{rabbit_queue_index,init,1},
{rabbit_variable_queue,init,1},
{rabbit_amqqueue_process,init,1},
=CRASH REPORT==== 12-Nov-2009::17:24:16 ===
crasher:
initial call: gen:init_it/6
pid: <0.22220.97>
registered_name: []
exception exit: system_limit
in function gen_server2:terminate/6
ancestors: [<0.22138.97>]
messages: [{'EXIT',<0.22137.97>,normal}]
links: []
# Typical way of handling the email in the controller
class UsersController < ApplicationController
def create
@user = User.new params[:user]
UserMailer.deliver_welcome(@user) if @user.save
end
end