Using Graphviz and dot language to plot friends and family

I’ve been using the dotty language for many things, this is a who is who displayer.
iptables rules displayer, open ports, gluster brinks/nodes. netstat ports.,
Wil post more about this later


installing
apt-get install graphviz

View it on a website using mojozoom javascipt

demo : https://media.henriaanstoot.nl/websites/dotviewer/index.html

dot file example (changed names to protect the innocent)

           digraph G {
                size="960,960"
                graph [fontsize=16];
                node  [fontsize=16];
                ericewc [shape=diamond]
                notoasat [shape=diamond]
                rwke [shape=diamond]
                prtsu [shape=diamond]
                wkmre [shape=diamond]
                hsocol [shape=diamond]
                stm [shape=diamond]
                scoisenr [shape=diamond]
                lpetg [shape=diamond]
                ptoi [shape=diamond]
                nrnag -> rean;
                rean -> grrdea;
                rean -> kmoina;
                nrnag -> aabrrba;
                aabrrba -> edide;
                aabrrba -> taamra;
                wkmre -> renei;
                renei -> ilem;
                cpb -> mttne;
                cpb -> mhyme;
                ghnhlaid -> hsanvk;
                hsanvk -> mray;
                ghnhlaid -> erbnete -> kene;
                erbnete -> ebnno;
                erbnete -> hsan;
                erbnete -> anek;
                nehri -> hetctur;
                nlicoe -> hetctur;
                ueoqnim -> hetctur;
                hetctur -> aisovwkrs;
                aisovwkrs -> amnroa;
                aisovwkrs -> gioud;
                aisovwkrs -> aulra;
                rwke -> lemtcu;
                lemtcu -> rhary;
                lemtcu -> gmc;
                prtsu -> ico;
                prtsu -> hloaa;
                nehri -> prtsu;
           }

Making the graphics

dot -Tsvg -obig.svg goed.dot
#gs -q -dNOPAUSE -dBATCH -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=png16m -sOutputFile=big.png big.ps
convert big.svg big.png
convert -resize 800x800 big.png bigsmall.png

Flight Computer

Bought myself a Jeppesen Sanderson Slide Graphic “Computer” (1989)

I like those “old skool” manual/analog instruments.

I want to use this together with my flightsimulator.

flight computer is a form of circular slide rule used in aviation and one of a very few analog computers in widespread use in the 21st century

They are mostly used in flight training, but many professional pilots still carry and use flight computers. They are used during flight planning (on the ground before takeoff) to aid in calculating fuel burn, wind correction, time en route, and other items. In the air, the flight computer can be used to calculate ground speed, estimated fuel burn and updated estimated time of arrival. The back is designed for wind correction calculations, i.e., determining how much the wind is affecting one’s speed and course.

Onkyo web control hack

Back in 2009 i’ve posted my web controller for Onkyo in a forum.

Several people build on that source and made android/iphones app using this as example.

It uses pfsockopen with raw packets in php.
Spend a lot of work reverse engineering the tcp headers to be send.
Another fun trick was re-using a trick i’ve used for my ipcam controller and dartabase. (Dart game application)

Below a PDF with first page of forum

I’ve made a alteration in my logitechmediaserver (squeezebox server) which embedded a onkyo volume control part in the gui.

Volume Onkyo in LMS

Part of code

<?php
// :colorscheme elflord
// Henri Aanstoot
// Onkyo Reciever Web Interface 2009
// Version 0.6b - 23 Oct 2009
// EDIT THIS
$receiveripnumber="your.onkyo.ip.here";
$receiverlistenport="60128";
// maximum to set volume (0-100) 
// !! some have 64 max????
$volumemax=60;
// (i had to enable this port by going onto the menu's on my Onkyo
// ---- NO EDITING BELOW THIS LINE

// trick browser into staying on same page
$ibrowser = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
if ($ibrowser == false) {
header("HTTP/1.0 204 No Response");
}
// test write to file
//$fp=fopen("test.txt", "wb");
// write to Receiver 
$fp = pfsockopen($receiveripnumber, $receiverlistenport, $errno, $errstr, 30);
//get command from post form
$command=$_POST['cmd'];
//get volume if cmd is numeric
if(is_numeric($command)) 
 {
if ($command > $volumemax) { $command=$volumemax; }
echo $command;
  $vol=str_pad(dechex($command), 2, '0', STR_PAD_LEFT);
  $command="!1MVL$vol";
 }
// Calculate header and datapacket lengths
$length=strlen($command); 
$length=$length+1;
$total=$length+16;
$code=chr($length);
// total eiscp packet to send 
$line="ISCP\x00\x00\x00\x10\x00\x00\x00$code\x01\x00\x00\x00".$command."\x0D";
#fputs($fp,$line,$total);
// write
fwrite($fp, $line);
// rest status part
//    while (!feof($fp)) {
//        echo fgets($fp, 128);
//    } 

fclose($fp);

if ($ibrowser == true) {
print "<html>
<head>
<title>Sending Command...</title>`
<meta http-equiv=\"refresh\" content=\"0;url=index.php\">
</head>
<body></body>
</html>";
}

?>

List of command’s

header,Power
!1PWR00,Poweroff
!1PWR01,Poweron
header,Muting
!1AMT00,Audio muting off
!1AMT01,Audio muting on
!1AMTQSTN,Audio muting stat
header, Speaker A/B (Main/Front?)
!1SPA00,Speaker A Off
!1SPA01,Speaker A On
!1SPB00,Speaker B Off
!1SPB01,Speaker B On
header,Sound modus
!1LMD00,STEREO
!1LMD01,DIRECT 
!1LMD02,SURROUND
!1LMD03,FILM
!1LMD04,THX
!1LMD05,ACTION
!1LMD06,MUSICAL
!1LMD07,MONO MOVIE
!1LMD08,ORCHESTRA
!1LMD09,UNPLUGGED
!1LMD0A,STUDIO-MIX
!1LMD0B,TV LOGIC
!1LMD0C,ALL CH STEREO
!1LMD0D,THEATER-DIMENSIONAL 
!1LMD0E,ENHANCED 7/ENHANCE
!1LMD0F,MONO 
!1LMD11,PURE AUDIO 
!1LMD12,MULTIPLEX
!1LMD13,FULL MONO
!1LMD14,DOLBY VIRTUAL
!1LMD40,5.1ch Surround
!1LMD40,Straight Decode*1
!1LMD41,Dolby EX/DTS ES
!1LMD41,Dolby EX*2
!1LMD42,THX Cinema
!1LMD43,THX Surround EX
!1LMD50,U2/S2 Cinema/Cinema2
!1LMD51,MusicMode
!1LMD52,Games Mode
!1LMD80,PLII/PLIIx Movie
!1LMD81,PLII/PLIIx Music
!1LMD82,Neo:6 Cinema
!1LMD83,Neo:6 Music
!1LMD84,PLII/PLIIx THX Cinema
!1LMD85,Neo:6 THX Cinema
!1LMD86,PLII/PLIIx Game
!1LMD87,Neural Surr*3
!1LMD88,Neural THX
!1LMD89,PLII THX Games
!1LMD8A,Neo:6 THX Games
!1LMDUP,Listening Mode Wrap-Around Up
!1LMDDOWN,Listening Mode Wrap-Around Down
header,Input Selector
!1SLI00,VIDEO1    VCR/DVR
!1SLI01,VIDEO2    CBL/SAT
!1SLI02,VIDEO3    GAME/TV
!1SLI03,VIDEO4    AUX1(AUX)
!1SLI04,VIDEO5    AUX2
!1SLI05,VIDEO6
!1SLI06,VIDEO7
!1SLI10,DVD
!1SLI20,TAPE(1)
!1SLI21,TAPE2
!1SLI22,PHONO
!1SLI23,CD
!1SLI24,FM
!1SLI25,AM
!1SLI26,TUNER
!1SLI27,MUSIC SERVER 
!1SLI28,INTERNET RADIO
!1SLI29,USB
!1SLI30,MULTI CH
!1SLI31,XM*1
!1SLI32,SIRIUS*1
!1SLIUP,Selector Position Wrap-Around Up
!1SLIDOWN,Selector Position Wrap-Around Down

Lets dance .. but i can’t

They can!

I started playing the pipes for the Highland Dancers a long time ago.

I wanted to know at least the Highland Fling, so i could understand what it is for the dancers. I learned the Fling from Monique and Yvonne.
Yvonne tried to learn me to walz. But that was it for a loong time.

Then in 2008, 2009 we joined a Country Dance group.
(Monique, Coline and I)

So I bought some size 45 (11.5) dance shoes.

At least the “little green book” with dance diagrams looks cool.

End of Season Ball

Piping for Highland Dancers

I’ve been playing a long time for Highland Dancers. And here are my tips for you.
If you have additions or corrections let me know.

Practice

  • Practice, with and without the dancers.
  • Get to know the tempo the dancers would like.
    (Have them practice the tempo mentioned in the piping books)
  • Start in time with practicing (see below)
  • I wanted to know what it takes to be a highland dancer, to understand what they are doing, so I learned to dance the Highland Fling myself.

Before starting

  • Alway sing/hum a few bars. So your on the same line with the dancers, and setting the tempo. (If they can’t hear you, use your hand for the tempo)
    Some dancers are prepared for the dance they have to perform in advance, a change in order can make them nervous.
    (Check lead dancer for a okay sign, with Anke I had a almost invisible nod, and I could see when she was not sure about the Tempo)
  • Are the Dancers distracted? Then I would hit the bag of my pipes to get attention.
  • Face your Dancers if possible.
    Playing with multiple pipers? Let them face you, ideal would be if they see the dancers also.
  • Are they doing the sworddance?
    Hit your bag to make a little drone sound to time their movements to place the sword on the ground.
    (I’ll post a movie about this when i find it again)

While playing

  • Watch the group, and look for signs when they are stuggling.
    When you play too slow, you see them wanting to have more time in the air. (Hangtime)
    When playing too fast, you will see them making little hops, instead of the higher jumps.
    (You get angry eyes from the lead dancer 🙂 )
    Adjust your speed (but slowly)
  • Always keep you eye on the lead dancer.

Stopping

  • Always step forward when planning to stop playing.
    Sometimes we have to stop when a sign has been given, because of something happening or planned events. Then you will have to end at the end of a part or when playing a set, at the end of the tune. (Practice this!)
  • Sometimes you or the dancers can be mistaken with the number of repeats.
    When you or the dancers are messing up. Get a clean ending.
    When the crowd is unaware, keep it that way. Keep a straight face!
    When they notice, tell or make I sign that you are sorry. on some occasions you can start again.
    (Take away any blame from the dancers, they are also nervous, it helps them for the next dance)

Nervous?

Focus on the dancers, not the public.
Don’t play tunes you haven´t practiced enough.
(This is a common mistake, because the dancers want to perform them before you are ready. When they start practicing a new dance, let them have you informed if possible, so you can practice at the same time)

Tunes I play are in: (links to pipetunesearch, my search engine for tunebooks)

https://pipetunesearch.henriaanstoot.nl/?select=listbook&book=L
https://pipetunesearch.henriaanstoot.nl/?select=listbook&book=AHCA

Red hot Chilli Pipers

We went to the Old Fruitmarket in Glasgow on 15 August 2008.
The Red hot chilli pipers gave a concert here. Wooo!

It was a superb show, great memories. There where camera’s placed all over the place. Apparently they where filming for a DVD.

When we bought the DVD several months later, we where pleasantly surprised! .. When looking at the end credits .. There we where, totally oblivious of the fact that we where filmed.

14seconds in : Coline, Monique and Me
Restricted Content
To view this protected content, enter the password below:

"If something is worth doing, it's worth overdoing."