November 11th, 2016
Well I spent a few hours yesterday trying to figure out why DNS was failing in some cases.
We use OpenDNS server then fallback to googles.
E.g.
208.67.222.222
208.67.220.220
8.8.8.8
Yesterday nslookup test.uribl.com.multi.uribl.com failed.
After a while I found the following …
OpenDNS server returns server unknown :
nslookup test.uribl.com.multi.uribl.com 208.67.220.220
Server: 208.67.220.220
Address: 208.67.220.220#53
** server can’t find test.uribl.com.multi.uribl.com: NXDOMAIN
While google works correctly :
nslookup test.uribl.com.multi.uribl.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: test.uribl.com.multi.uribl.com
Address: 127.0.0.14
I have now switched to use google DNS only. I have no idea why OpenDNS fails for this lookup but not any other.
Tags: dns
Posted in Linux | No Comments »
November 11th, 2016
This is how you find out how many messages exist for a kafka topic.
/opt/kafka/bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list kafka:9092 --topic test --time -2
This gives output like this
test:1:28179212
test:0:28180921
/opt/kafka/bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list kafka:9092 --topic test --time -1
This gives output like this
test:1:28228989
test:0:28230734
Simply subtract these values and you get the sizes.
0:28230734 – 28180921 = 49813
1:28228989 – 28179212 = 49777
Tags: kafka
Posted in Programming | No Comments »
January 9th, 2016
I thought I would upload this model of Meerburg am Bodensee we made in Minecraft.
Steve and I build this one Christmas 2014/15
Meersburg am Bodensee in Minecraft
by neilwightman
on Sketchfab
Tags: minecraft
Posted in Graphical | No Comments »
January 8th, 2016
Prio to Linux Mint 17.0 I used to run my laptop with the lid shut and used just the HDMI monitor connected to it when I was in the office. When I upgraded to Linux Mint 17.0 closing the lid caused both the laptop monitor and HDMI monitor to go off.
After finally getting annoyed with the laptop monitor changing in the peripheral of my vision I decided to fix it.
After a little googling I found http://forum.siduction.org/index.php?topic=4531.0
Which says
Add
HandleLidSwitch=ignore
to
/etc/systemd/logind.conf
I restarted and logged in and now I can shut the laptop lid without the HDMI monitor going off.
Tags: hdmi, mint, monitor, ubuntu, xfce
Posted in Linux | No Comments »
January 6th, 2016
I finally figured out how to get our minecraft builds up to SketchFab.
Steve, Lee and I created it over many many days.
Chambord in Minecraft
by neilwightman
on Sketchfab
Tags: minecraft, sketchfab
Posted in Graphical | No Comments »