Vim Tip I always forget
To get rid of all the crazy ^M’s that appear in files from windows boxes. In vim:
:%s/C-vC-m//g
(That’s Control-v, Control-m).
To get rid of all the crazy ^M’s that appear in files from windows boxes. In vim:
:%s/C-vC-m//g
(That’s Control-v, Control-m).
In preparing for my talk this Sunday at CPOSC I have been playing around obviously with various commands, wrapper methods and utility function for jQuery.
This morning I was going through my feeds when I stumbled upon, Blackbird. It’s an open source Javascript logger.
It’s a nice companion to Firebug. I can add it to my page, and then toss some logging statements in my code. With a hit of F2, I can then see the logger.
For example I was testing the grep utility function. Previously I just tossed this in the Fireboug console, which works fine, but this way I can set up a whole bunch of code, and then look at the log as it happens in my page. Leet.
log.info( $.grep([1, 2, 3], function(n){return n < 3}, true) );
I know OpenThought has a logging component to it. Which has been around for a while. I am a little curious why no one had done this before now.
Is there already a way to do logging in Firebug?
Yesterday I stopped by Bill’s office to pick up a clicker for my laptop to use with my presentation on Sunday. He had a body fat analyzer on his desk. Of course not one to pass up the chance to find out that data, I picked it up and used it.
It put me at 15.3% body fat. The funny part is that I had no idea what the acceptable ranges were. After looking it up, it appears, that (for men) the ranges are:
2% - 4% : Essential Body Fat
6% - 13% : Athletes
14% - 17% : Fitness
18% - 25% : Acceptable
25% Plus : Obese
I was a little let down to see that I wasn’t in the Athletes column, but not let down too much. Since I was dead in the middle of the Fitness category.
I am wondering if it would be worthwhile to get a body fat analyzer. My scale has one, but it’s super inconsistent. Periodically it will tell me I am like 54% body fat…which I believe would mean I am made entirely of ham. I’d like to get down to 13% or lower however, but I am pretty sure I’ll need to alter my diet further. I need to think about it.
In running news… (This is probably boring to you)
I went for another 1 miler yesterday morning, and only had one minor twinge during the run that I would categorize as a 1 for pain. The entire rest of the run the pain was 0.
I walked for about 7-8 minutes after the run was over and there was some aching then. I am going to give it a 3.
This morning when I woke up, my heel was a little stiff, but after 3 steps it had cleared entirely and feels fine now.
I think my heel is healing. What a long and arduous process this has been.
I would never have believed that my crazy over doing it could lead to such a long term injury.
Sure I liked to joke around that doing X many miles Y weeks after being injured the last time meant Z many days till the next one. But I really never suspected I could hurt myself in a way that lasted months.
As this was happening to me, in hushed tones, I was saying to myself “I can’t believe I’m not hurt yet. Maybe I am finally indestructible, maybe I can run whatever I want”.
Much like the first time you mess with the ocean, and get shut down and tossed to the bottom, I have learned a lesson, repetitive stress, is nothing to mess with.
Dear foot, sorry. I messed up. My bad.
I ran. Just 1 mile, and not very fast.
It was pretty fantastic to be out there. Even in the first minute I knew it was special since I wasn’t going to stop any time soon. The feeling of getting to do that thing that brings one the most joy after such a long absence was indescribably great.
Pain wise, on a scale of one to ten it was a 1. And right now I would say the twinges I am having are around a 2. However, it all very minimal.
No more running till Saturday when I will do another C25K day. Then reassess.
Well, to be fair, all the major providers of phone, cell and television seem to suck. But this morning I am pissed at Comcast.
My cable bills are over 100 dollars a month for internet and television. If I have watched 12 hours of television this year, I would be very surprised. To that end, I decided to get rid of cable. However when you do that, and just have them for internet, they raise the fee for internet 17 dollars a month. Or you can keep the same low rate (which is still like 50 dollars a month) and get basic cable for 18.
I use Comcast for internet because I don’t have a land line, and didn’t want to pay for a line I’ll never use. But I am paying for cable I never use as well.
After I get a bill or two to see what it will cost me per month, I am going to call the local DSL provider. If I can save even 1 dollar by switching, I will.
This is the second morning in a row that I have woken up and my heel wasn’t stiff. Odd since I “ran” two days ago.
Yesterday my heel was achy, so it would be a lie to say that it’s all healed. But it is better than it was several months ago.
If it still feels pretty good tomorrow, I am going to do the first day of C25K again I think.
I hate mixing walking into running, but I’ll do it for running. Curse you harsh mistress.
Last Saturday, and then today, I ran. Sort of.
Last week for the first time in over ten weeks I laced up and headed over to the barracks to run. Sort of.
I did day 1 of Couch to 5K plan. It’s essentially 5 Minute Brisk walk, 8 reps of Run 60 Seconds/Walk 90 Seconds, 5 Minute cool down walk.
After doing it last Saturday, I didn’t feel physically taxed, however my heel did ache a little that night. So I figured I would wait a week and try again. I did the run again today, again I didn’t feel taxed, and while I can feel a couple of twinges, it’s not as bad as last week…so far.
The really nice part was that my girlfriend went with me. She did really well, and seems to enjoy it. Muahahahah, the poisoning of her mind begins! :)