Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
gem 'data_objects', '= 0.9.11'
gem 'dm-core', '= 0.9.11'
require 'myapp'
run Sinatra::Application
$ irb -r rubygems -r sequel
irb(main):001:0> db = Sequel.connect("mysql://root@localhost/vertuoconseil?encoding=utf8")
=> #<Sequel::MySQL::Database: "mysql://root@localhost/vertuoconseil">
irb(main):002:0> db.tables
a bunch of qa1s before this...
qa1 199ms
qa1 227ms
qa1 196ms
qa1 203ms
qa1 195ms
qa1 184ms
qa1 201ms
qa1 180ms
g++ -Wall -O3 -ldb -I/usr/local/include \
-I/usr/local/include/db44 \
-L/usr/local/lib/db44 \
-L/usr/local/lib \
-o dumpHTTP dumpHTTP.cpp
In file included from dumpHTTP.cpp:10:
address.hpp: In function ‘std::string ethernetToText(const char*)’:
address.hpp:36: error: ‘memcpy’ was not declared in this scope
address.hpp: In function ‘std::pair<unsigned int, unsigned int> cidrToRange(std::string)’:
address.hpp:72: error: ‘strtoul’ was not declared in this scope