Eponymous
   



About
My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


contact

Subscribe
Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

Flavors
There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    27 Jun 2009

    "Because you will be approached by people with questions and stupid jokes."
    I took the DeLorean when I went to the bank this morning. I pulled into the parking lot and found a space. As I got out of the car a guy around my age came running over before I could shut the door.

    He said, "I can't believe it, this amazing. I've always wanted to see one of these. Man, I was just watching the movie last night. Can I take a picture?"

    I said, "sure" and let him know that it still needed some work so it doesn't look as good as it could. He said, "It doesn't matter; it's a DeLorean."

    Later in the afternoon I went to get some more gas. I pulled into the station, shut off the car, got out and opened the hood to get to the gas cap. Neither of the attendants on duty had seen one before and both came over to see the car. They had some questions about the body construction and the engine.

    [/dmc] [permanent link]

    26 Jun 2009

    Sunset Classic 5M
    I got to meet Bill Rodgers tonight after the Sunset Classic 5M in Bloomfield. He was signing autographs after the race and actually spedning time talking to people. He spent a good 5 to 10 minutes with everyone, answering questions, giving advice, and just talking about running in general. He signed my race bib and we talked about the course and his diet. He really did put mayo on pizza. Hellman's. Had to be Hellman's. As he put it, "When you're burning 5000 calories a day, you're hungry." It was a pretty good race, I kept pace with the second place female finisher for almost the whole race, with number 3 not far behind. In the last 200 meters or so they both took off and I finshed a few seconds behind them. After the race I thanked the girl I had been running with for making me push myself a little harder than I planned, and congratulated her on her placing. I also made some new friends from work. I met most of the company's running team after the race and we talked about running and stuff. Most of them are in other divisions of the company so I had never seen them before tonight.

    [/running] [permanent link]

    24 Jun 2009

    QOTD:
    "I figured I'm getting too old to run, I might as well get married."

    --
    Acquaintance on missing a race to meet with caterers for his upcoming wedding.

    [/running] [permanent link]

    14 Jun 2009

    The new phone book is here!
    I am now officially 5% rockstar. At least I am according to the New York Times. I am now the proud owner of DeLorean #6291 manufactured in November of 1981.



    closed
doors open
doors

    [/dmc] [permanent link]

    09 Jun 2009

    NIN|JA
    On June 6th, I attended the Nine Inch Nails/Jane's Addiction concert in Holmdel, NJ held at the Arts Center. I think I enjoyed it.

    I ordered a pair of tickets through nin.com during the presale. I managed to get through shortly after they went on sale and ended up with two tickets for Section 104, Row S. This time I went with my friend from college who now lives in Virginia. He drove up for the day and had to head back down to VA the next morning.

    As per the terms of the nin.com presale, we had to pick up the tickets at the venue, just as we did for the show at the Meadowlands last Summer. We arrived shortly before the gates opened, but were allowed in immediately after picking up the tickets.

    I stopped and purchased an overpriced souvenir t-shirt at one of the merchandise stands. This time I was smarter and got a small. It fits much better than the XL I picked up in August.

    At 7:30 the opening act, Street Sweeper Social Club, took the stage. They were pretty good. Let me clarify that. The guys with instruments were good. Tom Morello was close to awesome and the other musicians were good. I wished the vocalist would have just shut up.

    At 8:15 Nine Inch Nails took the stage as Pinion played. As soon as it ended, they immediately went into Wish, quickly followed by Last. After Discipline, the band tore into March of the Pigs. The crowd exploded.

    The 19 song set, was about an hour and a half. It was an amazing show. The stage show was incredibly stripped down compared to the previous show, utilizing only lights and fog machines. It was also far more aggressive.

    At 10:00 Jane's Addiction took the stage. Unfortunately, because my friend had to leave for VA the next morning we only stayed for the first half of their hour long set. Dave Navarro was rather amazing. Eric Avery was great. Stephen Perkins was really good. Perry Farrel was certainly a good showman, but I found his voice a bit grating at times. If I have the chance, I would like to see them again.

    NIN Setlist:

    • Pinion
    • Wish
    • Last
    • Discipline
    • March Of The Pigs
    • Reptile
    • Meet Your Master
    • Gave Up
    • La Mer
    • Non-Entity
    • The Way Out Is Through
    • Mr. Self Destruct
    • 1,000,000
    • Echoplex
    • Survivalism
    • The Good Soldier
    • The Hand That Feeds
    • Head Like A Hole
    • Hurt


    Jane's Addiction Setlist:
    • Three Days
    • Whores
    • Ain't No Right
    • Pigs In Zen
    • Then She Did...
    • Up The Beach
    • Mountain Song
    • Been Caught Stealing
    • Obvious
    • Ocean Size
    • Ted, Just Admit it...
    • Summertime Rolls
    • Stop!
    • Jane Says

    [/musings] [permanent link]

    03 Jun 2009

    National Running Day part 4
    I did another 10K this evening after work. That brings my National Running Day total to 13.6 miles over 3 runs. I hope everyone was able to run today. You still have some time if you haven't yet. Happy National Running Day!

    [/running] [permanent link]

    National Running Day part 3
    Did a little over 4 miles on my lunch break at a slightly faster pace than the run this morning. Looking forward to this evening.

    [/running] [permanent link]

    National Running Day part 2
    That was fun! I got my first run completed, just over 5K. Now it's time to get ready and get off to work.

    [/running] [permanent link]

    National Running Day part 1
    Here I am ready for my first run of the day and there's a thunderstorm about to roll through. The RADAR shows it moving pretty fast. If it hasn't passed by in the next 15 to 20 minutes, I'm getting on the treadmill.

    [/running] [permanent link]

    01 Jun 2009

    National Running Day
    Wednesday June 3, 2009 is the inaugural National Running Day. I encourage everyone to get out and run. Whether your a seasoned athlete or a couch potato, lace up your sneakers and get out there this Wednesday.

    For the runners out there, make sure you run on Wednesday and try to drag some people along with you. For those of of you who aren't runners, Wednesday is a perfect day to start.

    The National Running Day website has more information about the day, and tips for people who are new to running.

    [/running] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    01 Mar 2012

    Just a Question
    Given the following code fragment, I was asked to implement foo such that the program would output "America." How would you do it?

            int main()
            {
              char *p = "Hello";
    
              foo(         );
              printf("%s",p);
    
              return 0;
            }
    

    My solution involved allocating new memory from the heap to store the new string, and changing p to point to that buffer. They didn't like that answer. They preferred the method of putting the new string in the data segment as well.

    I personally would always avoid that, whenever possible. "Hello" is stored in a read-only area of memory as is "America" in their preferred solution. Any attempt to alter those strings will trigger a segfault. This is an accident waiting to happen.

    [/code] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    06 Dec 2007

    How long does it take to build a linux kernel?
    It has been a number of years since I built a linux kernel. Slackware 9.1 was the last GNU/Linux distro I used before switching back to BSD. Tonight I put together a machine from some old parts (1.2GHz celeron with 256KB cache, 256MB RAM, 20GB hard drive) and installed Slackware 12. I customized a kernel configuration and attempted to build it. I don't remember the 2.4 kernel taking as long to build as this 2.6 kernel. It took nearly two hours. Granted, this machine is fairly old, but 2 hours? After I complete the tasks for which I needed this setup, I'm going to install an older Slackware with the 2.4 kernel and build that. I may also install FreeBSD and NetBSD and build their kernels. I'd like to get an idea how long it takes to compile other kernels on this rig.

    [/unix] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    31 Jan 2010

    It's gotta be the shoes
    Yesterday I picked up the pair of shoes in which I will run the New York City Marathon.

    [/running] [permanent link]

    24 Jan 2010

    1264352606
    1:37:50. New half marathon PR.

    --
    ==================================================================
    This mobile text message is brought to you by AT&T

    [/mobile] [permanent link]

    10 Jan 2010

    Avatar
    Here's my review of the movie.

    There's something about the giraffes if you believe we're apples and oranges. I was disappointed by the ketchup, but the mustard was surprisingly good.

    [/musings] [permanent link]

    09 Jan 2010

    1263048598
    Qualifier #1 done.

    --
    ==================================================================
    This mobile text message is brought to you by AT&T

    [/mobile] [permanent link]

    07 Jan 2010

    I Hate People
    http://www.wpix.com/news/wpix-dog-beaten-in-elevator,0,193301.story

    I saw that on the news last night and it made me sick. There is no reason for this. This is just senseless abuse.

    It'd be nice to see him in prison getting kicked around his cell by another inmate, but that likely won't happen. Under the current laws, he can only be charged with a misdemeanor.

    Haven't there been studies indicating a correlation between abusing animals and becoming a serial killer?

    [/musings] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    07 Jan 2010

    I Hate People
    http://www.wpix.com/news/wpix-dog-beaten-in-elevator,0,193301.story

    I saw that on the news last night and it made me sick. There is no reason for this. This is just senseless abuse.

    It'd be nice to see him in prison getting kicked around his cell by another inmate, but that likely won't happen. Under the current laws, he can only be charged with a misdemeanor.

    Haven't there been studies indicating a correlation between abusing animals and becoming a serial killer?

    [/musings] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    16 May 2015

    It was a good day...
    So today I woke up and watched an episode of Star Trek while I did some weight training and core work. Then I met my friend and her 5-month old baby for breakfast. That baby is so cute, and so happy too.

    After that I met another friend for a run in the Tourne where we met a fox on the Red Trail. When I got home from the run, I turned my lawn into an avant garde art installation and then took a shower.

    I took Ailsing out for a drive and on the way home she rolled over to 15,000 miles. I've had the DeLorean for about five years now, so I'm still averaging 1,000 miles per year. Not bad.

    A large part of a tree fell and missed my house by about 18 inches. So then I went and ran another Six miles during a National Weather Service tornado watch.

    Now I'm finishing up the day with a good movie and a glass of Monk's Blood.

    Today, I didn't even have to use my AK. It was a good day.

    [/musings] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    31 Aug 2024

    Blosxom 2.2.0
    Apparently Blosxom development has been picked up again. There was a new release on 2024-02-03. Nice!

    [/unix] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    17 Mar 2011

    I wasn't born this way; I made myself.
    I heard that Lady Gaga song on the radio the other day, you know the one that sounds like the Madonna song, and it got me thinking. On the surface it seems to contain a very positive message about accepting yourself because you were "Born This Way." You were born like this, you were made this way, there's nothing you can do about it so be happy with it.

    I disagree. Sure, when we're born we're stuck with the genetic material passed on to us by our lineage. But we're more than that, what we are, what we become, is so much more than how we were born. And this made me think about the Incubus song, "Make Yourself." I find the message of that song to be much more positive. While the song has an overt "them vs. you" context, the general theme is one of taking responsibility for yourself and what you become.

    Was I born the way I am today? Judging from the direction my life took in the first twenty-six years, and comparing it to the last three years, the answer is no. I was born heavy, weighing in over nine pounds. I grew into a heavy kid. I was always sad and lonely as a kid. I had few friends. I rarely went outside. I never played sports. I watched a lot of TV. I ate a lot. I got heavier. I got sadder. I got lonelier. But I was born this way, right? I should have just accepted it, right?

    While I was born heavy, I didn't have to stay that way. It was my own choices that made me into the depressed, obese misanthrope I was. Despite my claims that I was born that way, genetically predisposed to those conditions, I really made myself that way.

    And then I decided to change that. I took responsibility for my life. I started exercising. I ran. I ate healthier. I lost weight. I had better relationships with my friends. I started making new friends. I became happier.

    Just as I had made myself into what I was, I made myself into what I am today. The key to this change was taking personal responsibility for myself. No longer did I use the excuse of being born that way. I knew I was like that because of my decisions and my actions. I knew through my decisions and my actions I could change. And I did. I made myself.

    "If you really want to live, why not try and make yourself?"

    [/musings/self] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        

       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    09 Jan 2010

    1263048598
    Qualifier #1 done.

    --
    ==================================================================
    This mobile text message is brought to you by AT&T

    [/mobile] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    31 Oct 2009

    NJ Governor Endorsement
    I officially endorse anyone who is not Jon Corzine.

    [/politics] [permanent link]

    29 Oct 2009

    Last night I ran...
    15 miles because I felt like it, again.

    [/running] [permanent link]

    26 Oct 2009

    I just ran...
    15 miles because I felt like it.

    [/running] [permanent link]

    23 Oct 2009


    Android Lust Resolution
    Excellent music. Go check out Android Lust now.

    [/musings] [permanent link]

    19 Oct 2009

    C#, XNA, and 8 Queens
    I spent some time this weekend learning some C# and getting working a bit with the XNA framework. I implemented a solution for the 8 Queens problem in C++, then ported that class to C#. After getting that working in Windows, I started moving it to the Xbox.

    It works there with little issue, but, as expected, writing to system.console doesn't produce useful output. My next step is to get some sort of graphical representation of the chessboard displayed with the solution set.

    [/code] [permanent link]

    17 Oct 2009

    XNA
    As of this morning, I am now a member of the XNA Creators Club.

    [/code] [permanent link]

    14 Oct 2009

    Staten Island Half Marathon
    Sunday was the Staten Island Half Marathon. I've been dealing with overuse injuries as of late, my IT-band has been acting up and I strained my right hamstring.

    I wasn't sure if I'd be running or not, and the temperature was predicted to be in the low- to mid-50's, so I wore my coldgear; I didn't want to end up with hypothermia again if I was standing around for 2 hours in shorts.

    It turned out that one of my teammates, Liz, wasn't sure if she'd be able to finish. We decided to run together. And we did. We finished with the exact same time of 2:34:00. I kept her from stopping and she kept me from going to fast and re-injuring myself.

    It took me an hour longer to finish the race than it normally would, but I think it went quite well. My hamstring actually felt better after the run. My IT-band was a little sore the next day, but it was better by Tuesday.

    Running at the slower pace, I was able to actually look around and enjoy the scenery. The shores Staten Island were not as bad as I was expecting. Over all, it was a good recovery run. A 13.1 mile recovery run.

    [/running] [permanent link]

    Bing!
    It has come to my attention that searching bing for pictures of closed doors yields pictures of my DeLorean.

    [/dmc] [permanent link]

    Self Documenting Code
    Despite what you think about your code, it is not self documenting. When writing code add comments, describe what a function does, explain why you're using that convoluted pointer arithmetic and bit shifting. I'm sure it makes sense now, but someday you'll have to go back and look at it and figure out what the hell you were doing. Or worse, I'll have to go back and look at it and figure out what the hell you were doing.

    Sometimes it is important to have some sort of separate documentation for the code; maybe some UML or ER diagrams, maybe some English text. Use what ever it takes to explain what you were doing. Do not paste snippets of your code into the text and call it documentation.That is not documentation, that is code.

    [/code] [permanent link]

    11 Oct 2009

    AFI: Starland Ballroom, October 10, 2009
    Show was great last night. Here's the setlist from the show:

    • Torch Song
    • Leaving Song Pt. II
    • Veronica Sawyer Smokes
    • Ever and a Day
    • Kill Caustic (With Lou Koller of Sick of It All)
    • End Transmission
    • Love is a Many Splendored Thing
    • Beautiful Thieves
    • Dancing Through Sunday
    • Leaving Song
    • On the Arrow
    • Death of Seasons
    • Medicate
    • Love Like Winter
    • Just Like Heaven
    • Miss Murder
    • Silver and Cold


    I'll write more later, now it's time to get ready for the Staten Island Half Marathon.

    [/musings] [permanent link]

    04 Oct 2009

    It exists
    As part of the DeLorean's restoration, I've been considering a backlit dash. I had considered sticking with the stock dash with the white light bulb in front of the gauges, but I thought a red backlit display would be better for night vision.

    Then came the issue of whether or not something like that exists. Turns out it does. Speed Hut carries a line of customizable gauges for the DMC-12 as part of the EL-Glo line.

    [/dmc] [permanent link]

    02 Oct 2009

    Gmail and mutt
    I like mutt. Of all the mail clients I've used over the years, it sucks the least. It works well with my mail server.

    Despite having my own domain and mail server, I still use gmail for certain things; things I don't mind being retained for 3 years after I delete them, or more specifically, things I want retained for 3 years after I delete them.

    I don't like the gmail web interface. I find checking my gmail to be annoying because of this. I remembered gmail offering POP and IMAP. I figured I could use that to get my gmail. Shouldn't be too hard right?

    A quick search of Mr. Yahoo and Mr. Google gave me two good starting points: Lifehacker.com and MattCutts.com.

    I read the sites and the getmail man page and figured out what I needed to do. First I enabled IMAP for my gmail account. Next, I created the .getmail directory in my home directory then created a getmailrc file there. I want all gmail mail to be delivered to a specific mbox file without going through my normal mail delivery channels. The contents of the getmailrc file are quite simple:

    [retriever]
    type = SimpleIMAPSSLRetriever
    server = imap.gmail.com
    username = username@gmail.com
    password = usernamespasswordgoeshere
    mailboxes = ("inbox",)
    
    [destination]
    type = Mboxrd
    path = /usr/home/mforde/Mail/GMAIL
    
    The retriever section defines how getmail will retrieve the mail. In this case it uses IMAP over SSL to connect to imap.gmail.com. The mailboxes setting can be used to specify only certain gmail labels to retrieve, but I want anything in the inbox.

    The destination section tells getmail what to do with the mail once it has grabbed it from gmail. This configuration dumps it into an mbox file I've named GMAIL.

    I chose IMAP over POP because of the slightly-less-than-documented "feature" of gmail only allowing 99 messages at a time over POP.

    So to get the initial batch of 7000+ emails, I ran
    > getmail -vvv -l 
    
    to get verbose output and to leave messages on the gmail server. When that was done I pointed mutt at the GMAIL mbox and like magic, there was my gmail, organized nicely in my terminal.

    Now, I want to check to get the latest mail fairly often, and I don't want to download messages already copied over. To accomplish this, I added a crontab to run every 10 minutes and invoke
    getmail -l -n -q
    
    This tells getmail to leave copies on the server, only get new messages it hasn't already retrieved, and be quiet about it.

    This has worked out well for me. If you're interested in setting up something like this, I highly recommend reading the article at matcutts.com. That article also links to several sample getmailrc files.

    [/unix] [permanent link]

    Happy Anniversary
    The Twilight Zone premiered 50 years ago tonight. Slashdot has a bit about it.

    [/musings] [permanent link]

    01 Oct 2009

    Marathon Tune-UP
    This past Sunday was the Marathon Tune-Up, an 18 mile run through Central Park. My goal was to run it maintaining roughly a 7:30/mile pace. I had set a range of 135 to 140 minutes for myself. I would have been satisfied with any finish time in that five minute span.

    At the 10 mile mark, I was averaging 7:27/mile. During that 11th mile, I decided to use a Gu energy gel. I was still feeling pretty good at that pace and I was hoping to time the gel right so as to not "hit the wall" at mile 14 or 15.

    Instead, the gel started giving me stomach cramps. At mile 12 I was still well under an 8 minute pace and at the half-marathon mark, I was a minute off my best official half. I was clearly slowing down as the stomach pain increased.

    I struggled through miles 14 and 15, alternating running and walking every quarter mile. By mile 16, I could not run. The pain was almost unbearable. I ended up walking the last two miles, in the rain, with all my blood concentrated in my core, dealing with the Gu in my stomach. By time I crossed the finish line, I was a half over my 135 minute goal and had almost no feeling in my hands or feet.

    I went to the medical tent and told the volunteer that I had severe stomach cramps and I was so cold that I couldn't feel my hands. He responded, "We don't got no blankets or nuthin' so we can't do nuthin' for ya." So I walked away.

    I went to the tables where volunteers were handing out gatorade and pretzels. I stood there, shaking, until another runner came up to me and asked if I was okay. Before I knew it, another runner was keeping me from falling over while the first runner was coming back with two NYRR volunteers. One of them wrapped me in a plastic bag to keep the rain off while the other went for help. I explained what happened at the medical tent.

    Two more people from medial came back and put me on a gurney and took me back to the tent. I told them what had happened at the tent and explained what I was feeling. At the tent I removed my soaked shirts and was wrapped in a mylar sheet and two blankets. I pointed out the guy who told me they couldn't do anything for me.

    I managed to get in touch with my fellow Giraffe who ran back to our car to get my dry clothes. After about a half hour or so, I was feeling much better and feeling had returned to my extremities. I got in my dry clothes and my teammate and I walked back to the car.

    So taking a Gu ended up with me being treated for hypothermia. I had had mild stomach irritation when using Gu in training, but never this bad. I'm glad I found out now instead of next month in Philadelphia.

    during my 22 mile training run at the Tourne, I used prepared bottles of GuBrew and Gu2O. These liquids never caused the irritation that the gel did, so I should be okay using them during the race.

    I've purchased a bottle that gets strapped to your hand for the purpose of carrying the GuBrew with me. I filled it with water and ran with it on the treadmill last night. It seems a little awkward, but it shouldn't be too bad. I'll use it to carry the GuBrew with me during the Staten Island Half Marathon on the 11th and see how that works out.

    [/running] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    22 Jan 2008

    Best Buy Charges Customers for Exchanges
    This weekend I witnessed a friend try to exchange an item at Best Buy. He had mistakenly purchased the full-screen version and wanted to exchange it for the wide-screen version. While he did not have his receipt, it still had the Best Buy sticker on the shrink wrap as well as the $19.99 price tag.

    The signs on the shelf indicated that the wide-screen version was also $19.99 and as of January 22, both versions are $19.99 on the Best Buy website.

    My friend waited online patiently for about 15 minutes to make his exchange. He handed the Blue Shirt both the full-screen version he had purchased and the wide-screen copy he picked up before going to the customer service line. The Blue Shirt asked if he had paid cash or credit and when my friend said credit, the Blue Shirt asked for his card.

    The Blue Shirt swiped the card and pushed a bunch of buttons then told my friend he'd have to pay $5.35 ($5 plus 7% sales tax) due to a "difference in price."

    When we questioned this "difference in price" we were told, "Wide-screen always costs more than full-screen."

    I am boycotting Best Buy and I urge others to do the same. This company has a long history of using underhanded tactics to increase profitability at the expense of its employees and its customers.

    [/musings] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    09 Aug 2016

    He's Not Wrong...
    Over at Net Meister there's a nice peice entitled Things They Don't Teach You in School". A lot of what Jan has to say is spot-on observation and good advice.

    It's definitely worth a read.

    [/code] [permanent link]

    28 Apr 2014

    Looking back...
    As I look back at code I wrote a decade ago as an undergrad, I often find lots of little things that can be done better. For instance, in one file I found that reversing the order in which two functions were called would have eliminated a half dozen conditionals from one of the functions and would have resulted in the same expected behavior, but with fewer lines of code and a lower cyclomatic complexity.

    [/code] [permanent link]

    10 Dec 2013

    Thoughts on National Computer Science Education Week
    This week is apparently National Computer Science Education Week. Code.org is organizing the "hour of code" to promote teaching of Computer Science and Programming in schools. They're also organizing petitions to make CS courses count as credits in Mathematics or Science for High School graduation requirements.

    In High School, my CS courses were by far my favorites, Programming in Pascal, AP Comp Sci in Pascal, Programming in C++, and AP Comp Sci in C++ ( the language for the exam switched my junior year). I learned a lot about structured code, elegant, efficient code. I learned enough about Data Structures and Algorithms that I didn't have to study for my college CS classes until Computational Structures (Discrete Math II with Scheme, essentially) in my third semester. I had an amazing Computer Science teacher who also taught me Calculus and the proper order of precedence in life: God, Family, Math. I wouldn't be where I am today without that educational opportunity I had in High School. I want others to have that opportunity too.

    However, this is where I differ with the opinion of the Code.org folks. I do not believe that CS classes should count toward the Math or Science requirements. In this state, CS counts toward the "practical or performing art" requirements, I'm assuming under the "practical" label. I think this is a better place for it at the High School level.

    Computer Science is not a hard Science. It's not Physics. It's not Biology. It's not Chemistry. There's a saying that if the subject has science in its name, it's not really a science. That is true with Computer Science. It's not studying the how and why of atoms, of molecules, of living systems, of anything really. It's not science.

    Computer Science is really applied mathematics. I am very fortunate that the college program I went through was very strong in mathematics: Calc I and II, Linear (Matrix) Algebra, Discrete Math, Discrete Math II in the guise of Computational Structures, Probability and Statistics, Theory of Computation, Algorithmic Analysis... the list goes on. All of these mathematical foundations were then applied to a machine, to make the machine carry out a task in an efficient manner. It's those mathematical foundations that are the true core of Computer Science.

    While mathematics is the core of Computer Science and Computer Science is essentially applied mathematics, I do not believe it should count toward the Math requirements. The CS classes would likely detract from other mathematics courses such as Geometry, Trigonometry, and Calculus. These courses are far too important to an education to be replaced by a Computer Science course. Many, maybe even most, High School Computer Science courses focus more on "programming" than the fundamental mathematical theories. They will pick the language du jour and teach you the syntax and semantics. They'll teach about basic data structures like arrays, and linked lists. The AP exam currently focuses not on implementing lists, trees, stacks, queues, and sorting and searching algorithms, but on arrays and lists using Java library calls. This is not math. This is learning Java syntax.

    [/code] [permanent link]

    20 Aug 2012

    unHide
    After a friend's computer became infected with some malware that hides files in your home directory and tries to extort money from you in order to "recover" your data, I was inspired to write this little program.

    All it does is search for hidden, non-system files and unhides them. It defaults to the user's home directory (My Documents), but other directories can be chosen.

    If anyone wants to try it out, please do. If you do try it, let me know what parts I can do better. I primarily work on embedded systems and Unix daemons professionally; the user only knows my software exists when it isn't working. As such, I have very little experience with GUIs or human-computer interactions. Any feedback would be much appreciated.

    The Windows executable can be found at: http://www.skinnymf.com/~mforde/unHide/. Source code is available upon request.

    [/code] [permanent link]

    01 Mar 2012

    Just a Question
    Given the following code fragment, I was asked to implement foo such that the program would output "America." How would you do it?

            int main()
            {
              char *p = "Hello";
    
              foo(         );
              printf("%s",p);
    
              return 0;
            }
    

    My solution involved allocating new memory from the heap to store the new string, and changing p to point to that buffer. They didn't like that answer. They preferred the method of putting the new string in the data segment as well.

    I personally would always avoid that, whenever possible. "Hello" is stored in a read-only area of memory as is "America" in their preferred solution. Any attempt to alter those strings will trigger a segfault. This is an accident waiting to happen.

    [/code] [permanent link]

    19 Apr 2011

    It's not magic, it's C.
    I love reading comments like

    /* These defined magically in the linker script. */
    I found that in the GNU Standard C Library implementation when GCC told me the the variables to which the comment referred were undefined. I guess that linker script isn't magic after all...

    [/code] [permanent link]

    19 Oct 2009

    C#, XNA, and 8 Queens
    I spent some time this weekend learning some C# and getting working a bit with the XNA framework. I implemented a solution for the 8 Queens problem in C++, then ported that class to C#. After getting that working in Windows, I started moving it to the Xbox.

    It works there with little issue, but, as expected, writing to system.console doesn't produce useful output. My next step is to get some sort of graphical representation of the chessboard displayed with the solution set.

    [/code] [permanent link]

    17 Oct 2009

    XNA
    As of this morning, I am now a member of the XNA Creators Club.

    [/code] [permanent link]

    14 Oct 2009

    Self Documenting Code
    Despite what you think about your code, it is not self documenting. When writing code add comments, describe what a function does, explain why you're using that convoluted pointer arithmetic and bit shifting. I'm sure it makes sense now, but someday you'll have to go back and look at it and figure out what the hell you were doing. Or worse, I'll have to go back and look at it and figure out what the hell you were doing.

    Sometimes it is important to have some sort of separate documentation for the code; maybe some UML or ER diagrams, maybe some English text. Use what ever it takes to explain what you were doing. Do not paste snippets of your code into the text and call it documentation.That is not documentation, that is code.

    [/code] [permanent link]