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.

  •        
    08 Jul 2016

    X11 Mouse Cursor Themes
    Starting after installimg the binary nvidia drivers on both my laptop (Quadro K1100M) and my workstation (GeForce GT 630) Blackbox was defaulting to a mouse cursor that was suboptimal, a black, notched triangle.

    The settings in the Xresources for the mouse cursor theme are honored by XDM at the graphical log in, but when Blackbox or Fluxbox start, the cursor would change to the black notched triangle. TWM honors the settings in Xresources, but TWM is just a little too minimalist, even for me.

    But there's a simple fix!

    Create a file in your home directory (if it doesn't already exist) .icons/default/index.theme. In this file, add the following lines:

    [Icon Theme]
    Inherits = polarblue
    

    where polarblue is the name of the X11 mouse cursor theme you wish to use. FreeBSD installs many of the X11 cursor sets into /usr/local/lib/X11/icons/, your Unix flavor may be different. In theory, you can also install new themes of your choosing into ~/.icons/ and use those without the need for any elevated privileges.

    Additionally, there's the option of creating a .Xdefaults file in the home directory and adding the line
    Xcursor.theme: polarblue
    

    Again, where polarblue is the name of theme you want to use.

    [/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.

  •        
    05 Nov 2013

    Normalcy
    I realized that if and when I have children, they will grow up thinking it's normal to have a DeLorean.

    [/dmc] [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.

  •        
    29 May 2008

    A Brief History
    Last Summer, my friend, rskutins, and I decided we were going to write an album. He got out his drum machine, being smaller and easier to store and carry than a full kit, and I got out my bass and we started putting together some pieces that were... not good.

    We had little direction, I was afraid to play things outside of my comfort zone, and we had some problems communicating. This project quickly fell apart, but we never completely gave up the idea.

    In March I found the inspiration I needed. I talked to rskutins and we started working on an album again. This time, fueled by strong emotion, both fiery and depressed, I started by writing lyrics.

    Not all are complete, but there are about 15 sets of lyrics for us to use as a starting point. Rskutins has tweaked the lyrics in some places to make them fit a better rhythm while still maintaining the intent of the words. I am quite pleased by what he has done.

    Based on these lyrics we have begun writing short pieces here and there when we feel inspired. Rskutins has laid down some pretty good beats to start with. I've been attempting to learn some basic music theory and trying to apply those ideas to the layers on top of what rskutins has written already.

    And that's where we are now. Still learning, still writing. Our day jobs have slowed down our progress considerably so it could very well take until the Autumn before we're ready to record and mix the album.

    [/album] [permanent link]

    19 May 2008

    New Addiction
    After many months of speaking with coworkers and friends, I gave in to peer pressure and purchased an Nintendo DS. My decision was based on more than just the games available, as I've considered myself to be only a casual gamer.

    DSLinux has a set up for running GNU/Linux on the DS hardware, which includes support for the touch screen and the 802.11b wireless network. If it hasn't been done already, I'd like to port the drivers and the on-screen keyboard application from Linux to NetBSD and run that on the DS.

    But before that happens, I'm going to have to complete the game I'm currently playing. As a result of giving in to peer pressure, the first game I purchased for the DS was Pokemon Pearl. It is very addictive. So far I've logged about 31 hours, obtained 7 of 8 gym badges, traded pokemon with and battled against friends and coworkers.

    I am eagerly awaiting the Nintendo event at Toys R Us at the end of the month which will unlock Darkrai.

    Yes, I am a loser. I never said I wasn't.

    [/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.

  •        
    04 Feb 2010

    A couple of things....
    First, am I the only one who gets freaked out when seeing a Toyota in my rear-view mirror?

    Second, google calculator has failed me. I keep trying to do conversions using Joules and it keeps giving me search results for physics forums with no calculator results. WTF google? WTF?

    [/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.

  •        
    05 Jan 2008

    Google blocks browsers
    Netmeister has an interesting blurb about experience with Google blocking various UserAgents.

    From the posting:

    For example, perl's LWP::UserAgent sets the agent string per default to
    "libwww-perl/#.#". Google apparently doesn't like that and will not
    return results to you. Setting it to something like "Mozilla/5.0 (X11;
    U; NetBSD i386; en-US; rv:1.8.1.3)" would work.
    
    Interestingly, they appear to whitelist agents, rather than blacklisting
    them.
    


    What was that about not being evil?

    [/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.

  •        
    26 Mar 2010

    Powergrabs
    Yay Socialism!
    That was sarcasm. Socialism is bad news. It leads to the government controlling every aspect of your lives. Take for example this story or a bit closer to home, this story.

    [/politics] [permanent link]

    22 Mar 2010

    2010 NYC Half Marathon
    Yesterday was my best half marathon yet. As I stood in the corral waiting for the race to start, the chill in the air was a welcome change from the heat and humidity of last year's race. The decision to move the race from August to March was a good one. The course is definitely a fun one. It starts with an 8 mile loop around Central Park before exiting onto 7th Avenue. From there, the route goes to 42nd street, through Times Square, and out to the West Side Highway where the course finishes near Battery Park.

    I started out with the goal of beating my time from last year. As long as I did better than 1:51:49, I'd be happy. I was hoping I'd finish within a minute or two of the half marathon PR I set back in January, but I wasn't counting on it.

    As I ran I looked at the split times, and roughly gauged how I was doing, trying to stay on target for something close to 1:37 finish, but primarily making sure I was doing better than last year's 1:51. At mile 8, just before exiting Central Park to head to Times Square, the clock time was about 59 minutes. I realized that the winner of the race was about to finish, if he hadn't already, and I hadn't even made it out of the park.

    This year's splits were much better than last year's.

    split20092010
    5K0:23:420:23:22
    10K0:47:320:46:09
    15K1:14:451:07:59
    20K1:46:091:29:28
    final1:51:491:33:26


    This is the first time I've run negative splits. What really amazes me is that not only was the second half faster, but every 5K split was faster than the previous. There was an excitement exiting the park. There was an amazing rush turning the corner onto 42nd street. The crowds were great, cheering every runner as we passed by.I remember around the mile 11 marker realizing I had a chance to PR, estimating my time at about 1:36, and picking up the pace a bit. I started passing people left and right. One runner saw me and yelled, "Go, man! Go!"

    Out of about 15 to 16 thousand people that signed up, 11,493 finished. I finished in 895th place; far, far, behind the winner who took home $20,000.

    Universal Sports had a live telecast of the event. I set the DVR to record it before I left, but I haven't had a chance to watch it yet. It likely focused primarily on the professionals who ran, including the Marathon world record holder, Haile Gebrselassie.

    This was a great race on a great day.

    [/running] [permanent link]

    12 Mar 2010

    Not a Paper Cup
    I recently ordered the Not a Paper Cup from ThinkGeek. It looks like a paper coffee cup but is made of ceramic. The lid is silicone instead #6 plastic. It should be awesome. It's not.

    Advertised as 12 ounces, it actually only holds 8 ounces. Right there, it's at most 66% as awesome as it should be. As one friend put it, "That is significantly less awesome."

    Now that I've used it I'll say that it's about 0% awesome and 90% suck with 10% fail.

    The silicone lid tastes, well, like silicone. It adds this horrible flavor to every sip. I like my coffee to have a strong coffee flavor, not a strong coffee plus silicone flavor. Maybe that's just me...

    The double walled construction of the cup, in theory would add an insulating layer to keep the coffee warm longer than a regular paper cup. This was not the case and in a test yesterday, I found that the standard paper cup kept the coffee warm for about an hour and a half longer than the Not a Paper Cup.

    In summary:

    • Holds 8 ounces instead of 12 (as advertised).
    • Silicone lid adds odd and horrible taste to coffee.
    • Doesn't keep the coffee hot as long as regular paper cups.


    • Don't buy one. If some one gifts it to you, well then that person must hate you or not understand coffee.

      [/musings] [permanent link]

    Coogan's 5K - Update
    Officially I ran my best 5K to date. I finished in 19:41 averaging 6:20 per mile.

    It was a rather hilly course, starting at 173rd and running up to the Cloisters. After circling the museum, the same route was taken back to 173rd.

    On Saturday I said I was going to PR. I was told that was a bit a of a lofty goal given how hilly the course was. Sunday morning I woke up with a bit of discomfort after gorging on sushi the night before and thought I might not do well.

    As I stood in the corral, those feelings changed. I knew I was going to PR. And I did.

    [/running] [permanent link]

    07 Mar 2010

    Coogan's 5K
    Unofficially I just PR'd at 19:44.

    [/running] [permanent link]

    02 Mar 2010

    1267567528
    6790 test.

    --
    ==================================================================
    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.

  •        
    06 Aug 2008

    CS115
    A number of years ago, Stephen Bloom taught CS115 at Stevens Institute of Technology. Any one familiar with his teaching style is well aware of how "animated" he can be in class. In this particular course, one student made some recordings of the lectures.

    Copies circulated around campus, but over time these recordings became harder to find. In an effort to preserve a piece of history, I present to you The Bloom MP3s.

    [/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.

  •        
    25 Nov 2010

    Happy Thanksgiving
    I'm thankful for my friends and the support structure they provide.
    I'm thankful for my family. While they're not always supportive* they're always accepting.
    I'm thankful for my freedom, and the men and women protect that freedom.
    I'm thankful for running, and the years it's added to my life.
    Every Thanksgiving old mike would consume 1350 calories worth of Cool Ranch Doritos for breakfast before gorging at the traditional dinner. I'm thankful old mike's dead.


    *Running 50 miles in a weekend is not "running too much."

    I felt the need to document all that I cooked today.

    • regular stuffing
    • stuffing with sausage
    • cornbread stuffing (made from corbread I baked early in the week)
    • carrots with brown sugar, clove, nutmeg, and cinnamon (bake until awesome)
    • steamed broccoli
    • asparagus sauteed with garlic and lemon juice
    • baked sweet potatoes
    • mashed sweet potatoes
    • smashed potatoes
    • zucchini with pancetta, garlic, and onion
    • beer bread (oatmeal stout)
    • stuffed mushrooms
    • baked macaroni and cheese
    • mashed turnips
    • sauteed mushrooms
    • cheese lasagna
    • meat lasagna
    • roasted turkey

    I think that's everything.

    [/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.

  •        
    05 Nov 2008

    Running...
    On Saturday I ran in the Beavertown 5K Fall Classic. The run took place in near my home, so I ran the two miles to the registration location. About a half hour after I signed in, the 5K started. Once I finished, I ran the I ran the (roughly) two and a half miles back home.

    I did much better than in my previous 5K runs this year. I took almost 12 and half minutes off my time from the Lincoln Tunnel 5K, and over 4 minutes from my previous best.

    I think a lot of the improvement in the shorter distances can be attributed to the fact that I've been training on longer distances lately. In the past two months I've been running about eight to ten miles each day.

    A few weeks ago I ran my first half marathon distance. About 10 days ago I ran 20 miles, and took 15 minutes off my time in the half marathon. I promptly fell apart after that and my pace slowed dramatically.

    Yesterday I attempted another 20 miles and did not fall apart completely after the first 13. I made it to the 15 mile mark before I had any problems. I managed to finish the run and take a half hour off my previous time.

    [/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.

  •        
    12 Mar 2018

    Take back your privacy
    Recent surveys have found that 76% of [the most visited] websites in the world cotain trackers from google and 24% contain trackers from facebook. This has been reported by CNBC, PC World, The Verge, Fortune, and Breitbart.

    Almost anywhere you go on the internet, they are following you, building a profile on you, and selling that information, your information, to the highest bidder. Even if you don't have a user account for google or facebook "services," they've built a profile of you using this surreptitiously collected data.

    It turns out there are some steps one can take to prevent these companies from following you wherever you go. It's not perfect, but it helps a lot. First, don't use Chrome. Second, install ad-blocker plugins for your browser. Third, use your firewall.

    It turns out Google and Facebook are large enough that they have their own Autonomous Systems (AS) composed of numerous subnets. Google owns AS 15169, while Facebook owns AS 32934. Using a little bit of shell, it's relatively easy to look up all the subnets owned by these companies.

    whois -h whois.radb.net -- '-i origin AS32934' | grep "^route:" | awk '{print $2;}'
    whois -h whois.radb.net -- '-i origin AS15169' | grep "^route:" | awk '{print $2;}'


    That's a lot of subnets. Because I have different operating systems on different computers and still want to block traffic to and from all those IP addresses, I've written some simple scripts to add rules to various firewalls. I have scripts for IPFW on FreeBSD, IPTables on Linux, and the Windows Firewall that should work from XP SP3 through Windows 10. I've only tested it on Windows 7 and Windows 10, and it worked in those.

    All of these scripts can be found in this directory. The IPFW and IPTables scripts are self-contained. For the Windows command shell batch files, the *ips.txt files are also needed.

    I have to say, the internet looks very different with these firewall rules in place. There are noticeably fewer advertisements and pages load faster. Embedded YouTube videos and Instagram photos don't appear. Sometimes the frame disappears, sometimes you get a "failed to connect" page appearing in a frame in the middle of a page. (Yes, these rules block YouTube and Instagram; they are owned by google and facebook and reside in the subnets owned by those companies.) On a relatively rare occasion, I come across a site using some sort of javascript or css or something hosted by a machine in one of those ASs and that will be blocked. Sometimes the site handles that gracefully, sometimes it stops being functional. A small price to take back your life.

    Update: Twitter has trackers on a decent amount of sites out there too, so I've added scripts to block Twitter's AS 13414 as well. Those scripts are in the same directories as the others.

    [/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.

  •        
    08 Dec 2007

    Alpha
    Due to the power failure, there was the loss of several hours of work. Last night I installed FreeBSD 6.2-RELEASE on an old DEC AlphaStation 200 I have. I had started building a new, smaller kernel for it around 23:30 last night. It had not completed by the time of the power outage. I have restarted that build.
    Any one reading this would reasonably ask, "Why are you not as confused/angry/annoyed with a compile that was not finished in 7 hours as you were about one that took 3 hours?"
    The answer is simple. This AlphaStation is powered by a 100MHz DEC Alpha EV4 CPU and has 64MB of RAM. To the best of my knowledge, DEC made this machine around 1994 or 1995. I expected the build to take a long time; the machine is around a dozen years old.

    [/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.

  •        
    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.

  •        
    21 Jun 2013

    Excluding directories while using pax(1)
    My primary disk is failing. There are large segments that are generating low level IO errors during read or write operations. Most of the files written to the bad area were under /usr/ports/ where the FreeBSD Ports collection is installed. A few files were under the web server's root.

    Figuring I'd take care of things prior to the disk actually failing to the point of it being irrecoverable, I purchased a new disk early. I installed it, partitioned it, and formatted it.

    To copy the data over, ignoring the areas that were causing the IO errors, I used mv to "move" the files from the web root under /usr/ports and used the following command as root:

    pax -rwvpe -s':/usr/ports/.*::gp' -X / /mnt/newdisk/

    The -X prevents pax from traversing into mount points that have a different device ID than the one on which it was started. This prevents an infinitely recursive loop from happening when the new disk's mount point would have been hit. It also prevents data on the non-failing disks from being copied as well.
    the -s option allows for sed search and replace scripts to be run. In this example, the : is used as the delimiter and any path matching /usr/ports/* is replaced by a null string. With this replacement all directories under /usr/ports are excluded from the copy.

    [/unix] [permanent link]