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:0e4e92171eee2e7787a29751a57bd630
Created January 15, 2019 11:13
Output of start-ubuntu.sh
[whuesken@baal]: ~/shop-docker>$ ./start-ubuntu.sh
You are now starting docker in dev environment
"docker rm" requires at least 1 argument.
See 'docker rm --help'.
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
8c314a1ab96cbfa72e421b4f4dcf82f0130de069788b0468807e888b47effab6
1cb5a902fa352c6caa444a8081818c33a359b42667e6c682fbc680a34ee38c3c
package org.entrego.lms.api.service;
import static guru.nidi.graphviz.model.Factory.mutGraph;
import static guru.nidi.graphviz.model.Factory.node;
import static guru.nidi.graphviz.model.Link.to;
import guru.nidi.graphviz.attribute.Label;
import guru.nidi.graphviz.attribute.Shape;
import guru.nidi.graphviz.engine.Format;
import guru.nidi.graphviz.engine.Graphviz;
@wolframite
wolframite / update_exception.log
Created January 19, 2018 14:27
UPDATE memcachedentry SET flags = 4;
2018-01-19 22:26:06.254 ERROR 5366 --- [t-connector-#61] o.a.i.i.p.c.d.d.a.GridDhtAtomicCache : <default> Unexpected exception during cache update
org.apache.ignite.IgniteException: Runtime failure on search row: org.apache.ignite.internal.processors.cache.tree.SearchRow@2c7a8656
at org.apache.ignite.internal.processors.cache.persistence.tree.BPlusTree.invoke(BPlusTree.java:1632)
at org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl$CacheDataStoreImpl.invoke(IgniteCacheOffheapManagerImpl.java:1201)
at org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager$GridCacheDataStore.invoke(GridCacheOffheapManager.java:1263)
at org.apache.ignite.internal.processors.cache.IgniteCacheOffheapManagerImpl.invoke(IgniteCacheOffheapManagerImpl.java:343)
at org.apache.ignite.internal.processors.cache.GridCacheMapEntry.innerUpdate(GridCacheMapEntry.java:1693)
at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateSingle(GridDhtAto
@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
@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 / 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 / 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 / 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: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 / 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