Wednesday, 21 February 2018

car and computer troubles around the feast of St. Oran. . . and Neil Gaiman's poem In Reilg Odhrain - about a different St. Oran.

At home car Renault something happened Sat morning, misfiring, very low on power. Brought to garage and was thinking it was a coil pack gone. But they said cylinders are randomly misfiring not just one so it's not a coil pack problem it's something else. . . To be continued . . .

in scouts: We went mountainbiking in Ballinastoe. Hired bikes from Janos was our instructor. Great fun. I went MTB in Ticknock later in the afternoon.

Earlier car news this year: In January after holidays battery was weak. We had to get help jump-starting a few times - at home (started with trickle charger), in Sandyford garage, in Kilternan Ski slope. Put in a new battery. Replaced front light bulbs as usual. Also trying to get air blower working again. Cleared out air intakes and found cabin air filter and took out. Got a wrong one delivered :-7. Fan in car - with broken cigarette plug connection now. Also wipers put back on properly after clearingout air intakes.

In work fun with jenkins, install/deploy jobs. A job to upgrade the running jenkins itself from jenkins.
Cleaning up a series of unwanted builds if a job goes crazy:
for i in $(seq 824 867); do curl -vv -u user:password -X POST http://jenkinsserver:port/job/jobname/$i/doDelete; done
And things like:

Feb 19th - fun in work a central DNS and other services server got into trouble, became unresponsive. All the usual IT people were away so we got to power-cycle. Toggle switch off at back powered it down but not up. Brief moment of worry before trying reset switch on front. Then later fun restarting services and re-mounting things that didn't start up properly @ boot time.

Feb 20th also there was a directory containing many many files it shoudln't. We thought a job/script rsync of copy had gone crazy. All the files removed from inside that directory. A few minutes later it was noticed all files were gone from homedirectory of server! :-o ssh keys, config files, .bashrc, .bash_profile, key exchanges, scripts/tools all had to be recovered and put back in place.

We checked star alignment, solar flare state and found it was apparently feast day of St. Odran. And there are a few different Odrans:

1. - drove chariot for St. Pat and killed by a spear intended for St. Pat. Circa 430 AD. Killed in revenge for the destruction of the pagan god Crom Cruach. Saint Odran's feast-day is 19 February.

2. -  520 AD church in Tipperary, 563 AD to Iona. Legend that he was buried alive under chapel on Iona. And some time later from the grave said: "There is no Hell as you suppose, nor Heaven that people talk about". Neil Gaiman re-tells the legend in the poem In Relig Odhrain:
    "Heaven is not waiting for the good and pure and gentle
      There's no punishment eternal, there's no Hell for the ungodly
      Nor is God as you imagine—". 

Reilig Odhráin is the cemetary around Odhran's Church on Iona. This St. Odhrán's feast day is on 27 October.

3. - Odhrain_Ua_hEolais - A scribe and scholar. Born into the Túath called Conmaicne Magh Réin. Died 994 AD. - a true story about murder and saints - read by Neil Gaiman

Neil Gaiman - In Relig Odhráin

When Saint Columba landed on the island of Iona
His friend Oran landed with him
Though some say Saint Oran waited
In the shadows of the island, waiting for the saint to land there.
I believe they came together, came from Ireland, where like brothers
Were the blond and brave Columba and the dark man they called Oran.

He was odhran, like the otter, was the other. There were others
And they landed on Iona and they said, We'll build a chapel.
It's what saints did when the landed. (Oran: priest of sun or fire
Or from Odhra, meaning dark haired.) But their chapel kept on crumbling.
And Columba took the answer from a dream or revelation,
That his building needed Oran, needed death in the foundations.

Others claim it was doctrinal, and Saints Oran and Columba
Were debating, as the Irish love debating, about Heaven,
Since the truth is long-forgotten we are left with just their actions
(By their actions shall ye know them): Saint Columba buried Oran
Still alive, with earth about him, buried deep, with earth upon him.

Three days later they returned there, stocky monks with spades and mattocks
And they dug down to Saint Oran, so Columba could embrace him
Touch his face and say his farewells. There days dead. They brushed the mud off
When Saint Oran's eyes blinked open. Oran grinned at Saint Columba,
He had died but now was risen, and he said the words the dead know,
In a voice like wind and water:

He said, Heaven is not waiting for the good and pure and gentle
There's no punishment eternal, there's no Hell for the ungodly
Nor is God as you imagine—
Saint Columba shouted "Quiet!"
And to save the monks from error shoveled mud onto Saint Oran.
So they buried him forever: And they called the place Saint Oran's.
In its churchyard Kings of Scotland, Kings of Norway, all were buried
On the island of Iona.

Some folk claim it was a druid priest of sunlight that was buried
In the earth of good Iona just to hold the church foundations,
But for me that's much too simple, and it libels Saint Columba
(who cried "Earth! Throw earth on Oran, stop his mouth with mud this moment,
Lest he bring us to perdition!") They imagine it a murder
As one saint entombed another underneath that holy chapel.

While Saint Oran's name continues,
Martyred heretic, his bones still hold the chapel stones together,
And we join them, Kings and princes, in his graveyard, in his chapel,
For it's Oran's name they carry. He's embraced in his damnation
By the simple words he uttered. There's no hell to spite the sinners
There's no Heaven for the blessed. God is not what you imagine.

And perhaps he kept on preaching, for he'd died and he had risen,
Until silenced, crushed or muffled by the soil of Iona.
Saint Columba, he was buried on the Island of Iona
Decades later. But they disinterred his body and they took it
To Downpatrick, where it's buried with Saint Patrick and Saint Brigid.
So the only saint is Oran on the island of Iona.

Don't go digging in that graveyard for the kings of old, the mighty,
Or Archbishops and their riches. They are guarded by Saint Oran
Who will rise up from the gravedirt like the darkness, like an otter.
For he sees the sun no longer. He will touch you,
He will taste you, he will leave his words inside you.
(God is not what you imagine. Nor is Hell and nor is Heaven.)

Then you'll leave him and his graveyard, and forget the shadow's terror.
As you rub your neck, remember only this: He died to save us.
And that Saint Columba killed him on the island of Iona.

A short stopmotion animated film of Neil Gaiman's poem 'In Relig Odhrain'.

In Reilig Oran - by Neil Gaiman

Saturday, 17 February 2018

scouts mountainbiking in Ballinastoe and James MTB in Ticknock

In scouts: We went mountainbiking in Ballinastoe. Hired bikes from Janos was our instructor. Great fun. I went MTB in Ticknock later in the afternoon.

TODO: enhance the trailforks bike trail map for printing:
Want direction of the runs.
Nice if contour lines and streams/roads would stand out more.
For each run summary distance, height gain and loss.
Did this by hand drawing on maps and laminated for the day.

Ballinastoe trails:

Coilte Ballinastoe site has a good trail map .pdf for walking:

Ballinastoe start of the trails map (Leader went with Scouts who were nervous and opted out of the full trip).

Ticknock track:

Monday, 20 November 2017

encoding HTTP request characters & > " < ' &amp; &gt; &quot; &lt; &apos; %22%27%3C%3E%26

Encoded request for """Test msg AMP GT QUOT \r &>"\r"""
POST /test HTTP/1.1
content-type: application/x-www-form-urlencoded
Host: test:8080
Content-Length: 133
various_params=whatever&text=Test+msg+AMP+GT+QUOT+%c3%96r+%26%3e%22%c3%96rHTTP/1.1 200 OK
0:    (  2  <  F  P  Z  d   n   x
1:    )  3  =  G  Q  [  e   o   y
2:    *  4  >  H  R  \  f   p   z
3: !  +  5  ?  I  S  ]  g   q   {
4: "  ,  6  @  J  T  ^  h   r   |
5: #  -  7  A  K  U  _  i   s   }
6: $  .  8  B  L  V  `  j   t   ~
7: %  /  9  C  M  W  a  k   u  DEL
8: &  0  :  D  N  X  b  l   v
9: ´  1  ;  E  O  Y  c  m   w

HTTP request encoded OUTPUT:


TABLE: (with SPACE chars stripped)

0%3A        %28 2   %3C F P Z   d n x    %0D%0A
1%3A        %29 3   %3D G Q %5B e o y    %0D%0A
2%3A +      %2A 4   %3E H R %5C f p z    %0D%0A
3%3A %21    %2B 5   %3F I S %5D g q %7B  %0D%0A
4%3A %22    %2C 6   %40 J T %5E h r %7C  %0D%0A
5%3A %23    -   7   A   K U _   i s %7D  %0D%0A
6%3A %24    .   8   B   L V %60 j t %7E  %0D%0A
7%3A %25    %2F 9   C   M W a   k u DEL  %0D%0A
8%3A %26    0   %3A D   N X b   l v      %0D%0A
9%3A %C2%B4 1   %3B E   O Y c   m w      %0D%0A
Encoding of SPACE is + or %20. 
Encoding of ' ? %27 or %C2%B4 ?
The ' char from man ascii was not '! But ´. Interesting.
Encoding of ' is %27.

XML escape characters

There are only five:

"   &quot;  %22
'   &apos;  %27
<   &lt;  %3C
>   &gt; %3E
&   &amp; %26

All 5 special characters must not be escaped in comments or CDATA sections or XML processing instructions.

ASCII table from man ascii linux

  30 40 50 60 70 80 90 100 110 120
0:    (  2  <  F  P  Z  d   n   x
1:    )  3  =  G  Q  [  e   o   y
2:    *  4  >  H  R  \  f   p   z
3: !  +  5  ?  I  S  ]  g   q   {
4: "  ,  6  @  J  T  ^  h   r   |
5: #  -  7  A  K  U  _  i   s   }
6: $  .  8  B  L  V  `  j   t   ~
7: %  /  9  C  M  W  a  k   u  DEL
8: &  0  :  D  N  X  b  l   v
9: ´  1  ;  E  O  Y  c  m   w

Tuesday, 14 November 2017

Inscribe square within circle. Geometric construction.

From question on Euclidea geometry app. 

Given: circle C1 and points a1 at centre of circle and a2 on circle.
Construct: square inscribed in C1 with one corner at a2.
Must do it using only 7 elementary moves(i.e. draw circle or line)

Question is answered here:

I found that inscribing hexagon (and it's 6 equilateral triangles) in the big circle helped me to understand how the construction works. 60 degree and 30 degree and 15 degree angle divisions are key.


It is still difficult (for me!) to break it down and prove how it works. Anyway. I have tried. It could perhaps be simplified. Given: circle C1 and points a1 at centre of circle and a2 on circle. Construct: square inscribed in C1 with one corner at a2. 1. Draw circle C2 with centre at a2 and a1 on circle (same radius as C1). Call the points where C1 and C2 intersect p1 and p2. line lengths |a1p1| = |p1a2| = |a1a2| = radius of C1,C2 so little triangles a1a2p1 and a1a2p2 (not shown) are equilateral (60 degree angles) 6 of these triangles could be inscribed into C2 giving a smaller hexagon this smaller hexagon gives us point p3 and proves triangle p1p2p3 is equilateral. 2. Draw big circle C3 with centre p1 and passing through p2. We know Tri p1p2p3 is equilateral, we can also construct equilateral triangle p1p2p8 and construct hexagon p2p3p4p6p7p8 This construction also shows that p8 and p3 where big circle C3 intersects C2 and C1 align (vertical in diagram) with a1 and a2. 3. Draw Line a1p1 extended, this gives us points p5 and b where it intersects C3 We want to construct side of square line p8s1(s1 not marked leftmost point on square) at 15 degrees to p8p1

The squares' sides are at angles of 45 degrees from horizontal. Line p8p1 on equilateral triangle is 60 degrees from horizontal. 15 degrees between them.
     Line a1p1 bisects triangle p1p2p8 (as it does also to triangle p1p4p6 and hexagon) as it is side of little triangle a1a2p1 
     Consider Triangle p1p5p8
     We can see
     Lines p1p5 = p1p8 = radius of big circle
    So point s1 is on line p8p5 where it intersects C1 
4. Draw Line p5p8 giving square side s1p8
     Line p5b is diameter of circle C3
     Angle Thales' theorem
     This means Line p8b extended to p10 is another side of the square.

5. Draw Line p8b extended to p10 where it intersects C1 giving another side of square p8p10

6. Draw side a2p10

7. Draw side a2s1

That's it.

Interesting to note the angles in the circle segments. And the lengths of the circle segments. Circles C1 (and C2) give a sixth of circumference of circle C3.

Interesting also the angles around point a2 (and around p8):
      360 - 240 - 90 = 360 - 330 = 30 degrees

Monday, 13 November 2017

Special interest badge form template for Scouting Ireland

Special interest form templates 
For Scouting Ireland special interest badges.

EMBED .pdf doc from Google Drive:

b&w description and simple template at end. Nice.

colour slides describing special interest:
cub samples/examples:
orienteering samples:

Some ideas for special interest project tasks:
 Prepare and run an activity for your scout troop (or younger section) based on your project.
 Create and try out a game for your scout troop (or younger section) on the theme of your project.
 Create and try out a game which will teach some aspect of your project.
   With activities you bring to your troop REVIEW them and see if they can be made better.

one page desc:

template: colourful, nice BUT used it before and confused scouts topic/project/tasks areas unclear/overlap:
"What is your project? Describe what you want to do and the steps to get there"
"What do you hope to achieve doing this badge? How will you know when you are finished?"
I used as base for attached template .odg/B.pdf
GOOD content (CUBS):

where on uniform and how to sew:

NameSectionFurther reading
Camp ChefCampingCamping
Campfire LeaderCampingCampfire
Camp LeaderCamping
Hike LeaderAdventure
Hill WalkerAdventure
OrienteerPhysical AbilityOrienteering
CyclistPhysical AbilityCycling
AthletePhysical AbilityAthletics
SportsPhysical AbilitySport
Self DefencePhysical AbilitySelf Defence
Computer ApplicationsElectronics
Computer ProgrammerElectronics
Computer SkillsElectronics
Car MechanicSkills
Home ManagerSkills
Metal WorkerSkills
Sea FishingNature
Pet KeeperNature
ArchaeologistNatural Sciences
GeologistNatural Sciences
FarmerNatural Sciences
NaturalistFaith and Environment
ObserverFaith and Environment
ForesterFaith and Environment
CivicsFaith and Environment
ScriptureFaith and Environment
FaithFaith and Environment
Bell ringerEntertainment
Irish DancerEntertainment
Fire SafetyPublic Service
EmergencyPublic Service
GuidePublic Service
InterpreterPublic Service
Life SaverPublic Service
Advanced Life SaverPublic Service
Home MaintenancePublic Service
Public HealthPublic Service
Public SpeakingPublic Service
ConsumerPublic Service
SecretaryPublic Service
LibrarianPublic Service
Social AwarenessSocial awareness
World FriendshipSocial awareness
ConservationSocial awareness