Skip to content

Instantly share code, notes, and snippets.

View mkoppanen's full-sized avatar

Mikko Koppanen mkoppanen

View GitHub Profile
while (zmq_term(ctx, ZMQ_NOBLOCK)) {
if (errno == EAGAIN) {
// still sending
}
else {
// can't send messages
}
}
make[2]: Entering directory `/tmp/zeromq2/src'
source='clock.cpp' object='libzmq_la-clock.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../config/depcomp \
/bin/bash ../libtool --tag=CXX --mode=compile /opt/sunstudio12.1/bin/CC -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -g -c -o libzmq_la-clock.lo `test -f 'clock.cpp' || echo './'`clock.cpp
libtool: compile: /opt/sunstudio12.1/bin/CC -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -g -c clock.cpp -KPIC -DPIC -o .libs/libzmq_la-clock.o
"/opt/sunstudio12.1/prod/include/cc/stddef.h", line 51: Error: "unsigned" has already been included in this declaration.
"/opt/sunstudio12.1/prod/include/cc/stddef.h", line 51: Error: A declaration does not specify a tag or an identifier.
"/opt/sunstudio12.1/prod/include/cc/stddef.h", line 51: Error: Use ";" to terminate declarations.
"/opt/sunstudio12.1/prod/include/cc/stddef.h", line 51: Error: A declaration does not specify a tag or an identifier.
"/opt/sunstud
"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.
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,[ ])
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
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
# 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
<?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');
@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