End of soccer season musings – take nothing here seriously :)

It’s the end of the season at St. Joes.  I have bittersweet thoughts.  Bitter because it was the worst season of my career as a coach, with a 2-5-5 record and a dearth of goals.  I also spent too much time yelling for my comfort (Thanks Nico), and the sweetness of having my own team did not materialize.  Previous teams seemed very animated.  St. Joes just didn’t.

Then I realized I’m not very animated. The excitement wore off years ago.  Why was I doing this?  To score some goals?  Seeing some kids blossom?  It seems that can’t happen if I’m not super-excited.  If I’m treating this like a job, the kids are apathetic.

I think about these things every freaking night.  It’s the usual ‘whats the point’ we all go through.  I don’t mean to complain.  I’m grateful for the opportunity to coach.  Its  ‘something to do’.  Getting outside, running around a little, maybe a sense of importance from bossing kids around.  That’s something, right?

Sadly, I can’t stop my thoughts.  They get petulant.  I start feeling sorry for myself – my team isn’t athletic, the mores of the school inhibit ambition, or it’s the other coach’s fault.  I think “If only I had been able to coach them from the start” (I only had four complete practice sessions of my own – what can anyone do during four practices?), or if I had been given more authority, or if Coach Berman hadn’t done all those lines and laps, my team would have run harder.

But aren’t those just excuses?  The bottom line is, if I were a good coach, I would have made those four sessions count, I could motivate them, I should have won dammit!  In all my years coaching KASL I only had 2 losing seasons, and both were very close to winning seasons – a difference of one goal.  Yes, one game, one goal.  Both years.  And now I get a ‘real’ team (a high school team) and I seemingly fail.  What happened?  What went wrong?  Are the kids just that bad?  Did I overestimate my abilities?  Am I not cut out for ‘the big leagues’?  Or is it my or Dave Berman’s coaching?

These questions keep me up all night.  I thought about it every day during the season, at every game, every practice where I had a moment free for introspection, and I’m still thinking about it.  I can’t figure it out, and it’s driving me nuts.  Maybe this isn’t healthy.  Maybe I should stick to basic drills, technique, stop pushing, stop trying so hard.

At this point in this post I’m just recording my thoughts.

Now a new chain of thoughts – Am I arrogant for thinking I can turn any team into a winning one?  Am I crazy for thinking about this so much?  Am I stupid for thinking there is an answer?  How do other people deal with these questions?  Do they even deal with them?  Other coaches I observe don’t seem to beat themselves up.  If anything they seem more arrogant.  Just today I had a coach give me a hard time about “How was that push a foul but the other one was not?”  Don’t they realize how human I am, how human they are, how human everyone is?  Where’s the introspection?  How can they ever learn?  Am I that way, failing to see obvious answers to simple soccer problems?  Am I just the oblivious coach yelling at the referee in my head?  Excetera, excetera, excetera.  An endless loop of endless thoughts ad nauseum.

I shove it away.  Maybe shoving these deep thoughts away are causing me to avoid simple questions!  For example, the problem of swinging at the ball and missing.  (It happened last game – the other team got an easy goal because our sweeper swung and missed at what should have been an easy kick).  The obvious answer is “Get your body behind the ball.”  Obvious, right?  So obvious something is wrong.  Kicking the ball, almost by definition, requires leaning to one side.  Do I really expect someone to throw their body into the ball when they can just as easily kick it at their side?  When its easier to kick a ball at your side?  I think of all the times I haven’t ‘got my body behind the ball’.  I think of the times I did and still missed – the ball bounced under my foot.  Does the simple saying “Get your body behind the ball” lead to people not controlling the ball?  To them not kicking the ball?  To the other team stealing the ball?  Is this why my team sucks!?  Omg have I been teaching it wrong all these years?!  Am I teaching everything wrong??  Arrrrggg stop stop thinking so much!

There’s much more, so much more about formations and enthusiasm and the role of tactics vs hustle in a team; is there such a thing as a sucky team, is their speed a fixed thing, are they always going to be slow; is motivation the only thing a coach can bring to the team, is that related to enthusiasm; and more.  But the catharsis that is writing shall sate the thought demons, at least for now, and so I bid you, dear blog, adieu and good night.

Drawing on SVG element

I could not find any tutorials on how to do this, or examples, and the only thing I could find that did the same was a huge program with tons of code to wade through (SVGedit). It’s very easy to draw on an SVG element, right in your browser.

You will need:

JQuery
An SVG element in your HTML

The basic idea is:

Get the SVG element.
Get the Mouse Coordinates.
Create a PATH element dynamically in the SVG.
Then use getAttribute() and setAttribute() on the path.

Here’s the code:


var isdrawing = false;
var currentpath;

function getlocalmousecoord(svg, evt){

  //calculate mouse coordinates
    var pt = svg.createSVGPoint();
    pt.x = evt.clientX;
    pt.y = evt.clientY;
    var localPoint = pt.matrixTransform(svg.getScreenCTM().inverse());
    localPoint.x = Math.round(localPoint.x);
    localPoint.y = Math.round(localPoint.y);
    console.log("mouse at " + pt.x + "," + pt.y  + " (global)  "+ localPoint.x + "," + localPoint.y+" (local)");

    return localPoint;
}

var svg = document.getElementsByTagName('svg')[0];
$( document ).ready(function() {
    console.log( "Jquery ready!" );

//grab the first SVG element on the page
var svg = document.getElementsByTagName('svg')[0];  /*http://stackoverflow.com/questions/4850821/svg-coordinates-with-transform-matrix  */

//Mousedown event handler
$('svg').mousedown(function(evt){
   isdrawing = true;
    var localPoint = getlocalmousecoord(svg,evt);
    var newElement = document.createElementNS("http://www.w3.org/2000/svg", 'path'); //Create a path in SVG's namespace
    currentpath = newElement;
    newElement.setAttribute("d", " M " + localPoint.x + " " + localPoint.y ); 
    newElement.setAttribute("fill", "transparent"); 
    
    newElement.style.stroke = "#f00"; //Set stroke colour
    newElement.style.strokeWidth = "5px"; //Set stroke width
    svg.appendChild(newElement);



  });
$('svg').mouseup(function(evt){
   isdrawing = false;
  });
$('svg').mousemove(function(evt){
   
  if(isdrawing == true){
  //calculate mouse coordinates
      var localPoint = getlocalmousecoord(svg,evt);

      var pathstring = currentpath.getAttribute("d");
      pathstring = pathstring + " L " + localPoint.x + " " + localPoint.y ;
      currentpath.setAttribute("d",pathstring);
  }
  });
});  //end of .ready

(Someday I will figure out how to preserve line breaks yet not wrap in wordpress)

 

Here is the working example:

http://johnktejik.info/Portfolio/programming/drawonsvg.html