Skip to content

Instantly share code, notes, and snippets.

View wolframite's full-sized avatar
🏠
Working from home

Wolfram Hüsken wolframite

🏠
Working from home
View GitHub Profile
@wolframite
wolframite / gist:7449761
Created November 13, 2013 14:13
josegonzalez / homebrew-php bugreport for php54-xhp
brew install -V /usr/local/Library/Taps/josegonzalez-php/Formula/php54-xhp.rb
==> Downloading https://github.com/facebook/xhp/archive/0bdf54f6a333228094d6811a362836d15145eea4.tar.gz
Already downloaded: /Library/Caches/Homebrew/php54-xhp-0bdf54f.tar.gz
==> PHP_AUTOCONF="/usr/local/opt/autoconf/bin/autoconf" PHP_AUTOHEADER="/usr/local/opt/autoconf/bin/autoheader" /usr/local/Cellar/php54/5.4.21/bin/phpize
==> ./configure --prefix=/usr/local/Cellar/php54-xhp/0bdf54f --with-php-config=/usr/local/Cellar/php54/5.4.21/bin/php-config
==> make
^
1 error generated.
make[1]: *** [code_rope.o] Error 1
make[1]: *** Waiting for unfinished jobs....
@wolframite
wolframite / gist:7449814
Created November 13, 2013 14:16
josegonzalez / homebrew-php bugreport for php54-xhp (brew doctor)
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
@wolframite
wolframite / gist:7449903
Created November 13, 2013 14:23
josegonzalez / homebrew php54-xhp bugreport manual making
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/whuesken/xhp-0bdf54f6a333228094d6811a362836d15145eea4/xhp libxhp.a
g++ -c -fPIC -g -Wall -O3 -minline-all-stringops -o code_rope.o code_rope.cpp
clang: warning: argument unused during compilation: '-minline-all-stringops'
In file included from code_rope.cpp:18:
./code_rope.hpp:17:10: fatal error: 'ext/rope' file not found
#include <ext/rope>
^
1 error generated.
make[1]: *** [code_rope.o] Error 1
make: *** [/Users/whuesken/xhp-0bdf54f6a333228094d6811a362836d15145eea4/xhp/libxhp.a] Error 2
@wolframite
wolframite / gist:72484dcbc1faaaddfa9c
Created November 2, 2014 15:16
compile error of pux against PHP 5.6
/bin/sh /var/www/Pux/ext/libtool --mode=compile cc -I. -I/var/www/Pux/ext -DPHP_ATOM_INC -I/var/www/Pux/ext/include -I/var/www/Pux/ext/main -I/var/www/Pux/ext -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -DHAVE_CONFIG_H -O3 -c /var/www/Pux/ext/pux_functions.c -o pux_functions.lo
libtool: compile: cc -I. -I/var/www/Pux/ext -DPHP_ATOM_INC -I/var/www/Pux/ext/include -I/var/www/Pux/ext/main -I/var/www/Pux/ext -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/opt/local/include -DHAVE_CONFIG_H -O3 -c /var/www/Pux/ext/pux_functions.c -fPIC -DPIC -o .libs/pux_functions.o
/var/www/Pux/ext/pux_functions.c: In function 'my_copy_zval':
/var/www/Pux/ext/pux_functions.c:80:10: error: 'IS_CONSTANT_ARRAY' undeclared (first use in this function)
case IS_CONSTANT_ARRAY:
^
/var/www/Pux/ex
@wolframite
wolframite / gist:093f09a614ad8bbd16d6
Created July 14, 2015 05:20
Control: RuntimeError: populate() isn't reentrant
(virtualenv)whuesken@glong ~/Cointrol $ cointrol/manage.py syncdb --noinput
Traceback (most recent call last):
File "cointrol/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/whuesken/Cointrol/virtualenv/lib/python3.4/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/home/whuesken/Cointrol/virtualenv/lib/python3.4/site-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/home/whuesken/Cointrol/virtualenv/lib/python3.4/site-packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
@wolframite
wolframite / JSON-Deserialize.php
Created July 26, 2016 10:04
Store an array in memcached and read it back. Using memcached as backend, it's unserialized correctly to an array, Apache Ignite returns a string
<?php
$mc = new Memcached();
$mc->setOption(Memcached::OPT_SERIALIZER, Memcached::SERIALIZER_JSON_ARRAY);
$mc->setOption(Memcached::OPT_COMPRESSION, false);
$mc->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
$mc->addServer('localhost', 11211);
$data = ['hello' => 'test'];
echo gettype($data) . PHP_EOL;
@wolframite
wolframite / gist:bddc0631b056d05c76d28dcb13b894d6
Created August 8, 2017 04:25
Camel-ZeroMQ Exception when publishing
2017-08-08 12:21:57.799 ERROR 4056 --- [timer://trigger] o.a.camel.processor.DefaultErrorHandler : Failed delivery for (MessageId: ID-odin-40359-1502166114786-0-1 on ExchangeId: ID-odin-40359-1502166114786-0-2). Exhausted after delivery
attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[ID-odin-40359-1502166114786-0-2]
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[zmq ] [zmq ] [timer://trigger?fixedRate=true&period=2000 ] [ 14]
[zmq ] [setBody1 ] [setBody[constant{Hallo}] ] [ 4]
[zmq ] [to1 ] [zeromq:tcp://127.0.0.1:555
@wolframite
wolframite / gist:33b9913bc5bcc09406db4c4115cbf13e
Created November 26, 2017 12:43
Ignite exception with Redis set operation and values > 9kb
java.nio.BufferUnderflowException: null
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:151)
at org.apache.ignite.internal.processors.rest.protocols.tcp.redis.GridRedisProtocolParser.readBulkStr(GridRedisProtocolParser.java:107)
at org.apache.ignite.internal.processors.rest.protocols.tcp.redis.GridRedisProtocolParser.readArray(GridRedisProtocolParser.java:86)
at org.apache.ignite.internal.processors.rest.protocols.tcp.GridTcpRestParser.decode(GridTcpRestParser.java:150)
at org.apache.ignite.internal.processors.rest.protocols.tcp.GridTcpRestParser.decode(GridTcpRestParser.java:70)
at org.apache.ignite.internal.util.nio.GridNioCodecFilter.onMessageReceived(GridNioCodecFilter.java:114)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:109)
at org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:3388)
at org.apache.ignite.internal.util.n
@wolframite
wolframite / redis_max_size.php
Created November 30, 2017 05:30
Apache Ignite Redis Store > 8kb values bug demonstration
<?php
$redis = new Redis();
$redis->connect('localhost', 6380);
$valueSize = 10000;
$key = 'x';
$value = str_repeat($key, $valueSize);
$result = $redis->set($key, $value);
@wolframite
wolframite / infinispan_memcached_utf8.log
Created December 10, 2017 11:10
TRACE of memcached set and get with an UTF-8 key
2017-12-10 18:58:36.269 TRACE 10768 --- [main] org.infinispan.jmx.JmxUtil : Registered org.infinispan.jmx.ResourceDMBean@69504ae9 under org.infinispan:type=Cache,name="memcachedCache(local)",manager="DefaultCacheManager",component=Cache
2017-12-10 18:58:36.269 TRACE 10768 --- [main] org.infinispan.jmx.JmxUtil : Registered org.infinispan.jmx.ResourceDMBean@387a8303 under org.infinispan:type=Cache,name="memcachedCache(local)",manager="DefaultCacheManager",component=Statistics
2017-12-10 18:58:36.269 TRACE 10768 --- [main] org.infinispan.jmx.JmxUtil : Registered org.infinispan.jmx.ResourceDMBean@28cda624 under org.infinispan:type=Cache,name="memcachedCache(local)",manager="DefaultCacheManager",component=LockManager
2017-12-10 18:58:36.269 TRACE 10768 --- [main] org.infinispan.jmx.JmxUtil : Registered org.infinispan.jmx.ResourceDMBean@1500b2f3 under org.infinispan:type=Cache,name="memcachedCache(local)",manager="DefaultCacheManager",component=Activation
2017