dhcpd.conf – nicer formatting

Keeping an eye on all those entries in a DHCP servers configuration file is a bit tedious. On the other hand, it’s not worrisome enough to use any graphical interface to edit it. One thing I dislike most is the typical format of each entry, that is

host devicename {
      hardware ethernet 12:34:56:78:90:ab;
      fixed-address 123.124.234.127;
  }

I prefer a clean, sorted list, like:

host devicename  {hardware ethernet 12:34:56:78:90:ab;   fixed-address 123.124.234.127; }
host devicename2 {hardware ethernet 12:34:56:78:90:ac;   fixed-address 123.124.234.128; }

Hence, I wrote a script that reads a typical dhcpd.conf file and

  • Outputs all host lines in single-line format
  • Sorts entries by IP
  • Groups entries by /24 subnet

The source code is available on my github: dhcpdformatter

Veröffentlicht unter Tools

Remote Presenter

Having discussions on presentation slides via phone? Having round-table meetings where everybody wants to show his one own slide? Then you might know some of the following scenarios:

  • „How can I show you the slides“ – „Oh, send them by mail.“ – „Have they arrived yet?“ – „Which slide are you viewing right now?“ – „Page 23 or Slide 23? Or the one labelled ’23‘?“
  • „Could you pass me the VGA cable for the projector?“ – „How do I make this computer show the image?“ – „Maybe I can show my slide first?“ – „Why doesn’t it work with my adapter? Is the projector broken?“

I wrote a tiny tool that can handle these situations – A webpage where you can upload your PDF or images, and everybody connected sees the same slides, can select slides for a ‚private‘ view, select slides to show to everybody else. Works with ‚any‘ web browser, no special tools required on the users‘ end. E.g. open the website on the main presentation PC, and all people in the meeting can control slides using their mobile devices.

As usual, the code can be found on github: https://github.com/mueschel/RemotePresenter. Just 15 kByte of code that might save a lot of time during meetings.

TMC-Decoder: Rundfunk-Verkehrsnachrichten

Schon ein wenig veraltet, aber trotzdem noch überall im Einsatz: TMC, Vekehrsnachrichten, die per Radio digital verbreitet werden und dann z.B. dem Navi zur Verfügung stehen. Dafür gibt es Tabellen mit 45.000 Verkehrsknotenpunkten, 1500 Ereignissen und so weiter, die dann kodiert übertragen werden.

So sieht eine Beispielmeldung dann aus, zuerst die empfangenen Codes, und dann die dekodierte Nachricht:

Ev  859 	LC 11402	Dir pos	Exten 2	(6)Suppl 91	
A45 Hagen -> Gießen zwischen AS Ehringshausen und AK Wetzlarer Kreuz: 
unbeleuchtetes Fahrzeug auf der Fahrbahn, Gefahr

Bei manchen Navis lässt sich so ein Empfäger extern nachrüsten und kommuniziert dann über eine serielle Schnittstelle mit dem Navi – was liegt also näher als so einen Empfänger an den Computer anzuschließen und selbst die Daten zu lesen? Hier findet ihr ein kleines Tool dazu: https://github.com/mueschel/TmcDecoder
Die Tabellen mit Ereignissen und Orten sind nicht enthalten, aber diese lassen sich kostenlos vom BaSt beziehen.

Veröffentlicht unter Tools