Monday, March 16, 2015

This year I ran a 50 mile Ultra

Don't hate on the color scheme.  I was wearing multiple layers.

Final time was 11:07:39  Not fast, but I finished.

Also, I did get a haircut subsequently.

Last year I did a Triathlon

Ok, really just a sprint triathlon.  

Let me tell you - a full olympic or Ironman tri is no joke.

This was the "Hub City Hustle" triathlon in October 2014.

I'll probably do it again

Wednesday, December 10, 2014

A Little Something From The World's Finest Navy

In the US Navy, officer candidates and to a lesser extent, recruits are taught the "Five Basic Responses to a Superior."  They are:

No excuse
I don't know, but I will find out

All of these should be accompanied by sir, ma'am, or (in the case of NCO's) appropriate rank.

YES and NO should be self explanatory, but just in case I'll explain.  Yes is the answer to a direct yes/no question.  It doesn't mean "maybe", it doesn't mean "might be".

No is the opposite of yes.  It also doesn't mean maybe or might be.  No means no, yes means yes.

AYE-AYE is the acknowledgement of a command. It has it's roots deep in naval history, probably dating back to the 1500's.  It means "I have heard your command and am complying smartly."  It does NOT mean I'll do it later, or I might do it.

No excuse.  This one is tough for many civilians.  It was tough for me.  No excuse means "I messed up, I am prepared to accept the consequences and un-#@$% the situation to the best of human ability."  It means that in the real world mistakes happen, and regardless of intentions or sympathy or ability you have to own your mistakes, correct your mistakes, and not repeat your mistakes.

I don't know but I will find out.  Don't tell me "I don't know."  If you really don't know, find out.  If you know, start talking.

Naturally there are further responses and complex situations.  But these five should be the foundation for any recruit or O candidate.

Whatever your job is in life, you could probably benefit from implementing these five as your basic response set.  Except maybe the "aye-aye."  Leave that one for the sailors.

Wednesday, May 14, 2014

Barracuda + Linux != Fail (anymore)

Anyone using Linux on a network with a Barracuda web filter may have
encountered this problem.  Barracuda has an AD client that associates
your AD login with an IP address.  This works reasonably well with
Windows, but what if you are using Linux or Mac?   You are stuck
re-logging in every 5,10, 15 minutes, whatever the timeout is set to.

I searched for a solution online, but never found one.

I got sick of that yesterday finally and figured out how to script a
login for barracuda.

The following is the script, in Perl.  It's now in its second
iteration, with more comments and some cutout checks.  I run it from
cron every couple of minutes and it seems to work fine.

Obviously you'll want to replace the xxxx variables with the appropriate 
values. $cuda is (in my case) the IP of the barracuda.  It could be anything 
Net::Ping and accept for the barracuda's hostname.
# Copyleft Jonas Bull 2014
# GPLv2 license.  Google it.
use WWW::Mechanize;
use Net::Ping;
my $cuda='xxx.xx.xx.xx';
my $username='xxxxx';
my $password ='xxxxxxxxxxxxxx';
my $baseurl="http://$cuda/web/login";

my $p=Net::Ping->new();
die unless $p->ping($cuda);
# no need to continue unless cuda is present
my $mech = WWW::Mechanize->new();
$mech->get( $baseurl );
my @lines=$mech->response()->decoded_content;
my $redirect='';
foreach my $line (@lines){
if ($line=~/location\.replace/){
# since I don't have javascript or a url I have to pick the redir

$mech->get( $redirect);
foreach my $line (@lines){
if ($line=~/$username/){
print "Already logged in\n";
exit; # but I can drop out if the redir has my login name
# otherwise set form fields
$mech->set_fields(login => $username,password => $password );
# Now see if login succeeded
foreach my $line (@lines){
if ($line=~/$username/){
print "Success\n";
exit; # and exit when you know you're good. 
Comments, critiques and ports gladly accepted.  Fork it on github.

Monday, May 5, 2014

South Central’s renegade gardener

I like this man's attitude and idea.  I'm linking the TED talk.  I think the audience was a little unsure how to take him.

Where I grew up, gardening is a part of life.  I've always felt that having a garden, however small, was something you would just do, eventually.  I grew up eating food that was grown by my family, my friends and neighbors.   Not 100% but a significant fraction, especially when I was very young.

And now, I finally took the time to do a little garden and put enough effort into it to make it work.  Now, after years of being dependent on supermarkets, I get it.  I have food I grew.  Food I canned and "put back".   To this tiny degree I am less dependent on "the system".

I have shared food I grew with friends and neighbors.  If you think growing food for yourself is an amazing feeling, try growing it and sharing it!

That's what empowerment feels like.

Quotes I liked:

“Growing your own food is like printing your own money” 

" ‘Aren’t you afraid people are going to steal your food?’ Hell, no! That’s why it’s on the street! That’s the whole idea! I want them to take it and take back their health.”

“I’m not talking about no free sh-t. Free is not sustainable. The funny thing about sustainability: you have to sustain it.”

“What I’m talking about is putting people to work, getting kids off the street, about the pride and the honor of growing your own food."

Wednesday, April 16, 2014

Vaccinate Your Child, Please!

"The truth is that vaccines are one of our greatest public health achievements, and one of the most important things you can do to protect your child."

Add to this list chlorinated water, flouride, cooked food...

If you don't like these, turn off your AC, internet, hot water...

Bad things happen, and sometimes people get hurt.  We don't need to be careless, but for the most part we live longer, healthier lives than at any time in human history.  Many of the diseases we do have result from too much of a good thing, insulin resistance stemming from the abundance of simple sugars in first world diets for example.  

I still refuse to get flu shots, but that's because (unlike most childhood vaccines) they tend to be only about 50% effective, and more than that because I'm a stubborn SOB.

Wednesday, April 9, 2014

Live Longer, Live Better

According to Mississippi’s own Dr Larry Creswell, as little as 90 minutes per week of high intensity exercise confers health benefits, and 30 minutes per day of high intensity exercise was more beneficial than 90 minutes per day of low intensity.  On the other hand extreme endurance is probably not healthy…  but then, that’s why it’s “Extreme”. 

And most of us don’t come even remotely close to “extreme”.

I think the common theme is pretty simple, at least in theory:

1-      Get some real exercise, 90 minutes of high intensity exercise per week, but (probably)  more than 4 or 5 hours per week is  pointless unless you’re training for something specific (which is where things get complicated).
2-      Cut sugars and carbs in general.  While the mechanism of action is still being researched we know two things for sure:
a.       Insulin resistance shortens lifespans and increases the symptoms of age
b.      Less sugar and carbs in your diet increases lifespan and decreases many symptoms of age.
3-      It’s ok to relax once you’ve had your exercise!
4-      Don’t smoke. (I know everyone gets tired of me saying that, but it’s the single quickest way to shorten your life and make what there is of it later be miserable.)
5-      Think positive!  It's cliche, true, but there is a significant amount of evidence that suggests that belief in a positive outcome is the basis for the placebo effect.  

How much of a difference?  In theory at least, you could be talking about the difference between spending half your time in the hospital from 60 til you die at 70 vs spending most of your time chasing your great great grand kids at 99+.