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
var fs = require("fs"); | |
var net = require("net"); | |
var basePath = "/Users/marek/test"; | |
var server = net.createServer(function(client) { | |
var buffer = ""; | |
var stream = null; | |
var size = 0; | |
var streamed = 0; | |
client.addListener("data", function(data) { |
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
Compilation goes just fine: | |
-------------------------------- | |
checking for main() in -luv... yes | |
creating Makefile | |
gcc -I. -I. -I/Users/marek/.rvm/rubies/rbx-2.0.0pre/18/include -I. -I/Users/marek/Projects/noderb/noderb/ext/noderb_extension/libuv/include -fPIC -ggdb3 -fPIC -O2 -c noderb.c | |
gcc -I. -I. -I/Users/marek/.rvm/rubies/rbx-2.0.0pre/18/include -I. -I/Users/marek/Projects/noderb/noderb/ext/noderb_extension/libuv/include -fPIC -ggdb3 -fPIC -O2 -c noderb_defer.c | |
gcc -I. -I. -I/Users/marek/.rvm/rubies/rbx-2.0.0pre/18/include -I. -I/Users/marek/Projects/noderb/noderb/ext/noderb_extension/libuv/include -fPIC -ggdb3 -fPIC -O2 -c noderb_dns.c | |
gcc -I. -I. -I/Users/marek/.rvm/rubies/rbx-2.0.0pre/18/include -I. -I/Users/marek/Projects/noderb/noderb/ext/noderb_extension/libuv/include -fPIC -ggdb3 -fPIC -O2 -c noderb_fs.c | |
gcc -I. -I. -I/Users/marek/.rvm/rubies/rbx-2.0.0pre/18/include -I. -I/Users/marek/Projects/noderb/noderb/ext/noderb_extension/libuv/include -fPIC -ggdb3 -fPIC -O2 -c noderb_process.c |
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
U _INT2NUM | |
0000000000000870 T _Init_noderb_extension | |
U _LONG2NUM | |
U __DefaultRuneLocale | |
U __NSGetEnviron | |
000000000000cc5b t __OSSwapInt16 | |
000000000001ca48 t __OSSwapInt32 | |
000000000001f5be t __OSSwapInt32 | |
000000000002dd00 D ___X_rubinius_version | |
U ___assert_rtn |
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
Invalid handle usage detected! | |
handle: 0x102bd80d0 | |
checksum: 0x2bd8560 | |
references: 1 | |
type: 2bc0c10 | |
object: 0x102bd8050 | |
Abort! | |
2 ruby 0x0000000100015506 rubinius::abort() + 54 | |
3 ruby 0x0000000100130333 rubinius::Object* rubinius::NativeMethod::executor_implementation<rubinius::TwoArguments>(rubinius::VM*, rubinius::CallFrame*, rubinius::Dispatch&, rubinius::Arguments&) + 1011 | |
4 ruby 0x0000000100025ada rubinius::VMMethod::interpreter(rubinius::VM*, rubinius::VMMethod*, rubinius::InterpreterCallFrame*) + 12106 |
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
Rubinius Crash Report #rbxcrashreport | |
Error: signal SIGSEGV | |
[[Backtrace]] | |
0 ruby 0x000000010000f221 _ZN8rubiniusL12segv_handlerEi + 241 | |
1 libSystem.B.dylib 0x00007fff883b01ba _sigtramp + 26 | |
2 ??? 0x0000000100de5000 0x0 + 4309536768 | |
3 ruby 0x0000000100025ada _ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameE + 12106 | |
4 ruby 0x000000010010aad0 _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_2VMEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 464 |
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
desc 'Instal packages' | |
task :packages do | |
`apt-get install libmysqlclient-dev` | |
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
require 'pygmentize' | |
require 'pygments.rb' | |
code = <<EOF | |
require 'sinatra' | |
get '/hi' do | |
"Hello World!" | |
end | |
EOF |
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: [id: 0x017b79a6, /127.8.59.129:25961 => /127.8.59.129:8080] OPEN | |
INFO: [id: 0x017b79a6, /127.8.59.129:25961 => /127.8.59.129:8080] BOUND: /127.8.59.129:8080 | |
INFO: [id: 0x017b79a6, /127.8.59.129:25961 => /127.8.59.129:8080] CONNECTED: /127.8.59.129:25961 | |
INFO: [id: 0x017b79a6, /127.8.59.129:25961 :> /127.8.59.129:8080] DISCONNECTED | |
INFO: [id: 0x017b79a6, /127.8.59.129:25961 :> /127.8.59.129:8080] UNBOUND | |
INFO: [id: 0x017b79a6, /127.8.59.129:25961 :> /127.8.59.129:8080] CLOSED | |
------------ | |
INFO: [id: 0x0015cd9a, /127.8.59.129:15843 => /127.8.59.129:8080] OPEN |
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
16:02:03,470 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "web" | |
16:02:03,473 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "netty-3.3.0.Final.jar" | |
16:02:05,113 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."netty-3.3.0.Final.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."netty-3.3.0.Final.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "netty-3.3.0.Final.jar" | |
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final] | |
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] | |
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] | |
at j |
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
container = ScriptingContainer.new(LocalContextScope::THREADSAFE) | |
container.setAttribute(AttributeName::SHARING_VARIABLES, false) | |
container.setCompatVersion(CompatVersion::RUBY1_9) | |
# run_scriptlet("") | |
container.clear | |
container.finalize |
OlderNewer