Skip to content

Instantly share code, notes, and snippets.

make[3]: Entering directory `/home/ensonic/projects/gstreamer/gst-devtools/mediainfo/src'
CC mi-info.o
mi-info.c: In function ‘media_info_info_construct’:
mi-info.c:419:2: error: too few arguments to function ‘gee_hash_map_new’
_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
^
In file included from mi-info.c:29:0:
/usr/include/gee-0.8/gee.h:1503:13: note: declared here
GeeHashMap* gee_hash_map_new (GType k_type, GBoxedCopyFunc k_dup_func, GDestroyNotify k_destroy_func, GType v_type, GBoxedCopyFunc v_dup_func, GDestroyNotify v_destroy_func, GeeHashDataFunc key_hash_func, void* key_hash_func_target, GDestroyNotify key_hash_func_target_destroy_notify, GeeEqualDataFunc key_equal_func, void* key_equal_func_target, GDestroyNotify key_equal_func_target_destroy_notify, GeeEqualDataFunc value_equal_func, void* value_equal_func_target, GDestroyNotify value_equal_func_target_destroy_notify);
^
$ echo "other-i2c" | sudo tee /sys/devices/platform/legoev3-ports/lego-port/port0/mode
other-i2c
$ sudo i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
pi@raspi:~ $ sudo systemctl restart status-led-on.service
A dependency job for status-led-on.service failed. See 'journalctl -xn' for details.
pi@raspi:~ $ journalctl -xn
No journal files were found.
pi@raspi:~ $ tail -f /var/log/messages
Dec 3 20:00:48 raspi-ensonic kernel: [ 10.454673] Bluetooth: HCI UART driver ver 2.3
Dec 3 20:00:48 raspi-ensonic kernel: [ 10.454688] Bluetooth: HCI UART protocol H4 registered
Dec 3 20:00:48 raspi-ensonic kernel: [ 10.454694] Bluetooth: HCI UART protocol Three-wire (H5) registered
Dec 3 20:00:48 raspi-ensonic kernel: [ 10.454849] Bluetooth: HCI UART protocol BCM registered
Dec 3 20:00:48 raspi-ensonic kernel: [ 10.696518] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
@ensonic
ensonic / ora.service
Created November 24, 2016 17:10
systemd startup script for open-roberta
# /lib/systemd/system/ora.service
[Unit]
Description=OpenRoberta Lab Server
After=network.target
[Service]
ExecStartPre=/usr/bin/touch /var/log/ora.log
ExecStartPre=/bin/chown pi: /var/log/ora.log
ExecStartPre=/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 1999
#!/usr/bin/python3
from time import sleep
from ev3dev import auto as ev3dev
m = ev3dev.LargeMotor(ev3dev.OUTPUT_B)
def drive_regulated():
m.run_forever(speed_regulation_enabled='on', speed_sp=10)
#!/usr/bin/env python
#
# sudo apt-get install python-fuse
#
# python fusefs.py $HOME/temp/mount/
#
# fusermount -u $HOME/temp/mount
#
# to debug issues run in foreground:
# python fusefs.py $HOME/temp/mount/ -d
Called from:
https://github.com/Buzztrax/buzztrax/blob/master/tests/bt-check-ui.c#L337-L356
lt-bt_edit: cairo-surface.c:1653: cairo_surface_mark_dirty_rectangle: Assertion `! _cairo_surface_has_mime_data (surface)' failed.
Thread 1 "lt-bt_edit" received signal SIGABRT, Aborted.
0x00007ffff4493295 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff4493295 in raise () from /usr/lib/libc.so.6
lt-bt_edit: cairo-surface.c:1653: cairo_surface_mark_dirty_rectangle: Assertion `! _cairo_surface_has_mime_data (surface)' failed.
Thread 1 "lt-bt_edit" received signal SIGABRT, Aborted.
0x00007ffff4492295 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff4492295 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff44936da in abort () from /usr/lib/libc.so.6
#2 0x00007ffff448b297 in __assert_fail_base () from /usr/lib/libc.so.6
#3 0x00007ffff448b342 in __assert_fail () from /usr/lib/libc.so.6
#4 0x00007ffff572656f in cairo_surface_mark_dirty_rectangle () from /usr/lib/libcairo.so.2
Thread 1 "lt-bt_edit" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff4f7b6eb in g_logv () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff4f7b6eb in g_logv () from /usr/lib/libglib-2.0.so.0
#1 0x00007ffff4f7b85f in g_log () from /usr/lib/libglib-2.0.so.0
#2 0x00007ffff6290fa4 in gtk_css_provider_propagate_error (provider=<optimized out>, section=0xb8c730, error=0xcc8780, propagate_to=<optimized out>)
at gtkcssprovider.c:983
#3 0x00007ffff5249fa5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0x00007ffff525bfb2 in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
#5 0x00007ffff5264c1c in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
From 20249c9759a51280fa34df7c3c312859adcdd57e Mon Sep 17 00:00:00 2001
From: Stefan Sauer <ensonic@users.sf.net>
Date: Tue, 7 Jun 2016 16:14:41 +0200
Subject: [PATCH] Server: add gzip support
Add a gzip handler for the static resources.
---
OpenRobertaParent/pom.xml | 29 +++++++++++++---------
OpenRobertaServer/pom.xml | 10 +++++---
.../de/fhg/iais/roberta/main/ServerStarter.java | 22 +++++++++++++++-