Skip to content

Instantly share code, notes, and snippets.

View mkoppanen's full-sized avatar

Mikko Koppanen mkoppanen

View GitHub Profile
### Keybase proof
I hereby claim:
* I am mkoppanen on github.
* I am mikko (https://keybase.io/mikko) on keybase.
* I have a public key whose fingerprint is 47D5 DA5E A21D 51D8 B713 5D29 7A1C 1F2A 7F18 D371
To claim this, I am signing this object:
=ERROR REPORT==== 21-Mar-2014::15:54:11 ===
error on AMQP connection <0.367.0>: {ssl_upgrade_failure,
{{{badmatch,
{error,
{asn1,
{'Type not compatible with table constraint',
{{component,'Type'},
{value,{5,<<>>}},
{unique_name_and_value,id,
{1,2,840,113549,1,1,11}}}}}}},
@mkoppanen
mkoppanen / gist.php
Last active December 26, 2015 14:59
<?php
$location = '/mnt/hgfs/projects/test.mdb';
$dsn_name = uniqid("dsn_");
$contents=<<<EOF
[${dsn_name}]
Description = Microsoft Access Try DB
Driver = MDBTools
<?php
$im = new Imagick ('test.png');
$im->setImageBackgroundColor ('skyblue');
// This works with latest Imagick master
// $im->setImageAlphaChannel (Imagick::ALPHACHANNEL_REMOVE);
// This is the same constant value as above
$im->setImageAlphaChannel (Imagick::ALPHACHANNEL_TRANSPARENT + 2);
$im->writeImage ('test_skyblue_alpha.png');
# Force not to use eventfd
AC_ARG_ENABLE([eventfd], [AS_HELP_STRING([--disable-eventfd], [disable eventfd [default=no]])],
[zmq_disable_eventfd=yes], [zmq_disable_eventfd=no])
if test "x$zmq_disable_eventfd" != "xyes"; then
# Check if we have eventfd.h header file.
AC_CHECK_HEADERS(sys/eventfd.h,
[AC_DEFINE(ZMQ_HAVE_EVENTFD, 1, [Have eventfd extension.])])
fi
London Heathrow
The British Airways flights expected to depart as normal today are:
LONGHAUL DEPARTURES (TERMINAL 5)
BA207 - Miami
BA279 - Los Angeles
BA117 - New York
SHORTHAUL DEPARTURES (TERMINAL 5)
BA982 - Berlin
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7caab70 (LWP 9931)]
0xb7f73b21 in zmq::epoll_t::reset_pollin (this=0x0, handle_=0x804da28) at epoll.cpp:100
100 int rc = epoll_ctl (epoll_fd, EPOLL_CTL_MOD, pe->fd, &pe->ev);
(gdb) bt
#0 0xb7f73b21 in zmq::epoll_t::reset_pollin (this=0x0, handle_=0x804da28) at epoll.cpp:100
#1 0xb7f74f97 in zmq::io_object_t::reset_pollin (this=0x804e300, handle_=0x804da28) at io_object.cpp:70
#2 0xb7f9127a in zmq::zmq_engine_t::in_event (this=0x804e300) at zmq_engine.cpp:136
#3 0xb7f738c9 in zmq::epoll_t::loop (this=0x804d128) at epoll.cpp:160
#4 0xb7f8adb6 in thread_routine (arg_=0x804d16c) at thread.cpp:70
PHP_ARG_ENABLE(authmail, whether to enable Auth Mail support,
[ --enable-authmail Enable Auth Mail support])
if test "$PHP_AUTHMAIL" = "yes"; then
AC_DEFINE(HAVE_AUTHMAIL, 1, [Whether you have Auth Mail])
PHP_NEW_EXTENSION(authmail, authmail.c, $ext_shared)
PHP_ADD_LIBRARY_WITH_PATH(esmtp, /usr/lib, PHP_AUTHMAIL_SHARED_LIBADD)
PHP_SUBST(PHP_AUTHMAIL_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBESMTP,1,[ ])
PHP_ARG_ENABLE(authmail, whether to enable Auth Mail support,
[ --enable-authmail Enable Auth Mail support])
if test "$PHP_AUTHMAIL" = "yes"; then
AC_DEFINE(HAVE_AUTHMAIL, 1, [Whether you have Auth Mail])
PHP_NEW_EXTENSION(authmail, authmail.c, $ext_shared)
PHP_ADD_LIBRARY_WITH_PATH(esmtp, /usr/lib, PHP_AUTHMAIL_SHARED_LIBADD)
PHP_SUBST(PHP_AUTHMAIL_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBESMTP,1,[ ])
"thread.cpp", line 56: Warning (Anachronism): Formal argument __start_routine of type extern "C" void*(*)(void*) in call to pthread_create(unsigned long*, const pthread_attr_t*, extern "C" void*(*)(void*), void*) is being passed void*(*)(void*).
1 Warning(s) detected.