Skip to content

Instantly share code, notes, and snippets.

View methodmissing's full-sized avatar

Lourens Naudé methodmissing

View GitHub Profile
aio.c: In function ‘inspect_aiocb’:
aio.c:81: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘volatile void *’
aio.c:81: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’
aio.c:81: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘size_t’
aio.c:81: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘off_t’
aio.c: In function ‘control_block_open’:
aio.c:162: warning: ISO C90 forbids mixed declarations and code
aio.c: In function ‘rb_aio_s_lio_listio’:
aio.c:668: warning: passing argument 3 of ‘rb_ensure’ from incompatible pointer type
aio.c:670: warning: passing argument 3 of ‘rb_ensure’ from incompatible pointer type
require 'eventmachine'
require 'em-http'
require 'benchmark'
HANDLES = %w(methodmissing tpinto goplan barcamppt barcamppt12 barcamppt13)
EM.run do
HANDLES.each do |handle|
http = EventMachine::HttpRequest.new("http://twitter.com/#{handle}").get :timeout => 10
// ############################### start add member ###############################
if ($_POST['do'] == 'addmember')
{
$vbulletin->input->clean_array_gpc('p', array(
'options' => TYPE_ARRAY_BOOL,
'username' => TYPE_STR,
'email' => TYPE_STR,
'emailconfirm' => TYPE_STR,
'parentemail' => TYPE_STR,
// ############################### start add member ###############################
if ($_POST['do'] == 'addmember')
{
$vbulletin->input->clean_array_gpc('p', array(
'options' => TYPE_ARRAY_BOOL,
'username' => TYPE_STR,
'email' => TYPE_STR,
'emailconfirm' => TYPE_STR,
'parentemail' => TYPE_STR,
// ############################### start add member ###############################
if ($_POST['do'] == 'addmember')
{
$vbulletin->input->clean_array_gpc('p', array(
'options' => TYPE_ARRAY_BOOL,
'username' => TYPE_STR,
'email' => TYPE_STR,
'emailconfirm' => TYPE_STR,
'parentemail' => TYPE_STR,
methodmissing@www:~/installs/eventmachine$ ls
docs eventmachine.gemspec examples ext java lib Rakefile README setup.rb tasks tests web
methodmissing@www:~/installs/eventmachine$ gem build eventmachine.gemspec
ERROR: While executing gem ... (Gem::InvalidSpecificationException)
["java/src/com/rubyeventmachine/Application.java", "java/src/com/rubyeventmachine/Connection.java", "java/src/com/rubyeventmachine/ConnectionFactory.java", "java/src/com/rubyeventmachine/DefaultConnectionFactory.java", "java/src/com/rubyeventmachine/PeriodicTimer.java", "java/src/com/rubyeventmachine/Timer.java", "tasks/project.rake"] are not files
methodmissing@www:~/installs/eventmachine$ sudo nano eventmachine.gemspec
methodmissing@www:~/installs/eventmachine$ gem build eventmachine.gemspec
ERROR: While executing gem ... (Gem::InvalidSpecificationException)
["tasks/project.rake"] are not files
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 1023.60 14.40 11988.80 72 59944
methodmissing:ruby lourens$ ./miniruby -Ilib -rtest/unit test/ruby/test_hash.rb
Loaded suite test/ruby/test_hash
Started
.....E..................................................................EF.......F.....F...
Finished in 0.019967 seconds.
1) Error:
test_callcc(TestHash):
NoMethodError: undefined method `callcc' for #<TestHash:0x0000010101e9e0>
test/ruby/test_hash.rb:818:in `block in test_callcc'
top - 17:43:34 up 23 days, 2:20, 3 users, load average: 7.29, 11.50, 12.71
Tasks: 129 total, 2 running, 127 sleeping, 0 stopped, 0 zombie
Cpu0 : 23.9%us, 8.1%sy, 0.0%ni, 57.6%id, 8.1%wa, 0.0%hi, 2.3%si, 0.0%st
Cpu1 : 25.9%us, 9.8%sy, 0.0%ni, 40.3%id, 22.0%wa, 0.0%hi, 2.0%si, 0.0%st
Cpu2 : 24.0%us, 8.9%sy, 0.0%ni, 33.9%id, 30.6%wa, 0.0%hi, 2.6%si, 0.0%st
Cpu3 : 27.1%us, 12.3%sy, 0.0%ni, 49.7%id, 7.4%wa, 0.3%hi, 3.2%si, 0.0%st
Mem: 6108944k total, 6037584k used, 71360k free, 87508k buffers
Swap: 2000052k total, 253104k used, 1746948k free, 3457004k cached
E, [2009-11-01T17:39:41.233824 #13360] ERROR -- : recieved ConnectionUnbound for an unknown signature: 25101 (EventMachine::ConnectionNotBound)
/usr/local/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:1425:in `event_callback'
/usr/local/lib/ruby/gems/1.9.1/gems/amqp-0.6.4/lib/ext/em.rb:28:in `release_machine'
/usr/local/lib/ruby/gems/1.9.1/gems/amqp-0.6.4/lib/ext/em.rb:28:in `ensure in run'
/usr/local/lib/ruby/gems/1.9.1/gems/amqp-0.6.4/lib/ext/em.rb:29:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/amqp-0.6.4/lib/amqp.rb:84:in `start'