Skip to content

Instantly share code, notes, and snippets.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Janus Gateway configure 0.4.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-websockets --disable-data-channels --disable-rabbitmq --disable-mqtt
## --------- ##
## Platform. ##
Can you write a simple Ruby parse that will turn the following string:
~~ Events[0].Lane=1
~~ Events[0].Object.BoundingBox[0]=1248
~~ Events[0].Object.BoundingBox[1]=3528
~~ Events[0].Object.BoundingBox[2]=1920
~~ Events[0].Object.BoundingBox[3]=3848
~~ Events[0].Object.Center[0]=1584
~~ Events[0].Object.Country=GBR
~~ Events[0].SnapSourceCombine=false

Can you write a simple Ruby parse that will turn the following string:

	Events[0].Lane=1
	Events[0].Object.BoundingBox[0]=1248
	Events[0].Object.BoundingBox[1]=3528
	Events[0].Object.BoundingBox[2]=1920
	Events[0].Object.BoundingBox[3]=3848
	Events[0].Object.Center[0]=1584
	Events[0].Object.Country=GBR
	Events[0].SnapSourceCombine=false
require 'active_support/all'
def parse_stream(stream)
begin
boundary = stream.readline.strip # Boundary is the first thing in the stream
loop do
fail 'Nothing in stream' unless boundary.present?
header = {}
stream.each_line do |line|
irb(main):001:0> `sudo top -bn2 | sed -n '/Cpu/p' | tail -n 1`.strip.split(/,\s/).map do |i|
irb(main):002:1* i.match(/([0-9]*(\.|\,)[0-9]*)/).captures[0].to_f
irb(main):003:1> end
=> [0.2, 1.8, 11.5, 86.4, 0.0, 0.0, 0.1, 0.0]
irb(main):004:0> `sudo top -bn2 | sed -n '/Cpu/p' | tail -n 1`.strip.split(/,\s*/).map do |i|
irb(main):005:1* i.match(/([0-9]*\.[0-9]*)/).captures[0].to_f
irb(main):006:1> end
=> [0.1, 1.8, 11.8, 85.6, 0.8, 0.0, 0.1, 0.0]
irb(main):007:0> `cat /etc/issue`
=> "Ubuntu 16.04 LTS \\n \\l\n\n"
I'm using Mosquitt 1.4.8-1ubuntu0.16.04.3 both on client and server side
I have this configuration on the client side:
============================================
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
✗ ./gradlew assembleRelease
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Configure project :app
google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.
please apply google-services plugin at the bottom of the build file.
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
2018-09-04 10:02:39.824622 E [4009:47196840158540 _run.rb:43] tasks -- Thread: CameraAPI crashed failed to connect: No route to host - connect(2) for "192.168.8.103" port 80, restarting...
2018-09-04 10:04:00.202965 E [4009:47196840158540 _run.rb:43] tasks -- Thread: CameraAPI crashed failed to connect: No route to host - connect(2) for "192.168.8.103" port 80, restarting...
2018-09-04 10:05:22.438618 E [4009:47196840158540 _run.rb:43] tasks -- Thread: CameraAPI crashed failed to connect: No route to host - connect(2) for "192.168.8.103" port 80, restarting...
2018-09-04 10:39:04.648102 E [4009:47196840158540 _run.rb:43] tasks -- Thread: CameraAPI crashed failed to connect: No route to host - connect(2) for "192.168.8.103" port 80, restarting...
2018-09-04 11:30:00.462677 E [4009:47196840158540 _run.rb:43] tasks -- Thread: CameraAPI crashed failed to connect: No route to host - connect(2) for "192.168.8.103" port 80, restarting...
2018-09-04 11:32:27.439437 E [4009:47196840158540 _run.rb:43] tasks -- Thread:
Anonymous UUID: 5295C8C7-5647-A0EB-9904-334716CE48E1
Fri Oct 26 16:09:08 2018
*** Panic Report ***
panic(cpu 0 caller 0xffffff7f892e85a8): nvme: "Fatal error occurred. CSTS=0x1
. FW Revision=2B6QCXP7\n"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/IONVMeFamily/IONVMeFamily-387.201.1/IONVMeController.cpp:5307
Backtrace (CPU 0), Frame : Return Address
0xffffffa3c7f3ba10 : 0xffffff80065aca1d
0xffffffa3c7f3ba60 : 0xffffff80066e6b13
# upnpc -l
upnpc : miniupnpc library test client. (c) 2005-2014 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
List of UPNP devices found on the network :
desc: http://192.168.1.1:58528/rootDesc.xml
st: urn:schemas-upnp-org:device:InternetGatewayDevice:1
Found valid IGD : http://192.168.1.1:58528/ctl/IPConn
Local LAN ip address : 192.168.1.48