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

  • 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 Oct 2013

    ... On man pages, a mini-rant
    I really despise the linux man pages. They're useless at best and wrong at worst.

    From the man page for setsockopt: "The include file <sys/socket.h> contains definitions for socket level options, described below."

    1) The options are not "described below."
    2) No, that file actually doesn't contain those definitions.

    On the other hand... The FreeBSD man page for setsockopt does actually describe the options and under FreeBSD the <sys/socket.h> file does indeed contain the definitions.

    [/unix] [permanent link]

    16 Oct 2013

    [mini-rant]
    I hate bash. I hate it. I hate how it bastardized bourne by adding half-assed implementations of features from ksh and tcsh.

    [/unix] [permanent link]

    12 Oct 2013

    Problems with loader.conf

    First the background. The story of how I got into this mess:



    I'm trying to get ACPI working on my laptop under FreeBSD. Specifically, I'm trying to get Resume to work properly. Suspend works, and resume seems to partially work. The fans spin up, the keyboard's backlight comes back on, but no screen. And without video, it's a little hard to figure out what's going on.

    ACPI works great on my server. It's running the same FreeBSD 9.1 x86-64 build that the laptop is, but the biggest difference is that it's an intel motherboard. The laptop is an Alienware, for our purposes, I might as well just call it a Dell.

    I started comparing the ASL output from both machines and noticed some things. First, the Alienware's ACPI implementation looks for the OS to be various forms of Windows or "Linux." The intel ACPI implementation also looks for these Windows variants and "Linux" but it has an additional OS string. It has an entry for "FreeBSD."

    I figured the easiest next step was to use iasl co compile the intel ASL source and load that DSDT onto the laptop.

    I calculated the odds it would work vs the odds I was doing something incredibly stupid... and I went ahead and did it anyway...

    I compiled the asl and I set /boot/loader.conf to override the DSDT with the intel one I had just compiled and I rebooted. At first everything was good. The machine went down, I got the boot loader, and the FreeBSD kernel started to load. Seconds into the kernel load, it rebooted itself. After the second time, I powered off and tried a cold boot. Same problem just as I had feared.

    Now i was in a situation where I couldn't successfully boot because of an error in loader.conf I needed to find a way to edit it.

    And here's the solution:



    The FreeBSD bootloader, like many others, works in stages. At a certain point, it can be interrupted at which point it provides a set of simple yet powerful commands to control various aspects of the loading process. If you still have that default menu at load, I beleive the option to chose is 6. I disable that menu so during a brief countdown I hit escape before the boot loader turns control over to the kernel.

    Once in the boot loader prompt, I entered the following commands:

    unload
    load kernel
    boot
    


    Pretty simple right? The unload command does what it says, it unloads the kernel and any modules loader.conf had pulled into memory. The load kernel command grabs the kernel and loads it into memory... but only the kernel thus ignoring the broken DSDT in loader.conf. And of course boot tells the boot loader to continue booting the system.

    Once booted, I removed the bad DSDT from loader.conf.

    [/unix] [permanent link]

    10 Oct 2013 05 Oct 2013

    1381017534
    Good night, demonslayers.

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

    [/mobile] [permanent link]

    1381006292
    --_CEEC49CB-DE1D-4A1E-9DFE-114E3B54D3CB_
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain; charset="Windows-1252"

    Test blog

    Sent from my Windows Phone=

    --_CEEC49CB-DE1D-4A1E-9DFE-114E3B54D3CB_
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/html; charset="Windows-1252"


    pe>


    Test blog R>
    Sent from my Windows Phone
    =

    --_CEEC49CB-DE1D-4A1E-9DFE-114E3B54D3CB_--

    [/mobile] [permanent link]

    1381005175
    Corning is a quaint little town. Looking forward to exploring.

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

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

  •        
    03 Nov 2014

    Things I love about vim

    • Tabbed interface in the 7.x line
    • Macro recording
    • Built-in sed
    • :make
    • Not needing to remember a thousand key combinations that require seventeen fingers to properly execute

    [/unix] [permanent link]

    24 Oct 2014

    Initial Thoughts on Windows 10 -- UPDATED!
    I'm done with Microsoft for any platform that is not a telephone. Windows 10 attempts to "fix" the abomination that was windows 8 on the desktop, but just makes things worse.

    The "search" "app" that replaces the previous existing search feature really only sends a query to bing. I'm looking for a file somewhere in a subdirectory on my hard drive. I didn't want to search the web for 20141020*.txt. The UI looks like crap. Slapping a titlebar on top of the "modern" "apps" does not make them usable on the desktop. The start menu has returned, but it has never been this useless. And the ability to revert to the "classic" start menu, the behavior introduced in windows 95, and refined in win98 and Windows 2000, has been removed. I shouldn't be surprised by that given that Windows 7 also lacked the "classic" start menu. At least Windows 7 allowed a "Windows Classic" theme for the rest of the UI.

    Ever since Service Pack 3 for Windows XP, MS has been slowly and surely trying to make things "easier." However, what they deem "easier" often means removing features and behaviors I relied on to get work done. Windows 10 continues this tradition.

    I never really had a problem with Microsoft, I never avoided their software for ideological reasons. I believe in using the right tool for the job. Windows 10 is the wrong tool for any job.

    UPDATE!!!

    Using the Windows Update mechanism, MS pushed out a new build of Windows 10. This upgraded the installation from build 9841 to build 9860. After a lengthy download, installation, and a very long reboot, I was able to log in again, Only to be greeted by this:

    Windows 10 build 9860 Update breaks Windows Defender causing error
code 0x80070241

    And this lovely error when I tried to open the new "Notification Center":

    Windows 10 build 9860 Update Notification Center cannot find
explorer.exe

    Now isn't that special?

    [/musings] [permanent link]

    07 Oct 2014

    The Truth is Out There
    Tonight, I had the great fortune of joining a person who means the world to me at a book signing by Gillian Anderson and her co-author Jeff Rovin. Jeff has ghost-written/co-written several novels for and with Tom Clancy, and Gillian is AGENT DANA SCULLY!!!

    Gillian indicated that she modeled the main character as someone she would play in a cinematic version of the story, and Jeff mentions that, while not required reading, the novel is a spiritual sequel to Edgar Allan Poe's only novel, The Narrative of Arthur Gordon Pym of Nantucket.

    I'm going to put The Crytptonomicon on the back burner and put Poe's work and this new novel, A Vision of Fire at the front of my priority queue. Gillian Anderson and Jeff Rovin
    Gillian Anderson and Jeff Rovin

    [/musings] [permanent link]

    26 Sep 2014

    Give My Love to the Princesses
    I was out and about and happened to run into these two lovely ladies who seemed to like the car.

    Elsa and Anna of Frozen with DeLorean Elsa and Anna of Frozen in DeLorean

    [/dmc] [permanent link]

    14 Aug 2014

    Resetting Vim
    On occasion while I'm coding, I'll mistype something and vim's code autoindenting will stop honoring my settings. Likely, I've done something stupid that has disabled or modifying the settings from the defaults I set in my .vimrc file.

    If (when) this happens, Vim can be reset without exiting the procces by going into command mode and typing

    :source $MYVIMRC
    

    This reloads the settings of the .vimrc file without forcing you to restart the process, thus losing your place in your code.

    [/unix] [permanent link]

    31 May 2014

    1401554904
    http://en.m.wikipedia.org/wiki/Amargasaurus

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

    [/mobile] [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]

    07 Apr 2014

    1396881317
    Gear Tip: Dry Out Soggy Sneakers | Runner's World http://www.runnersworld.com/running-shoes/gear-tip-dry-out-soggy-sneakers?cm_mmc=F

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

  • 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 Oct 2013

    ... On man pages, a mini-rant
    I really despise the linux man pages. They're useless at best and wrong at worst.

    From the man page for setsockopt: "The include file <sys/socket.h> contains definitions for socket level options, described below."

    1) The options are not "described below."
    2) No, that file actually doesn't contain those definitions.

    On the other hand... The FreeBSD man page for setsockopt does actually describe the options and under FreeBSD the <sys/socket.h> file does indeed contain the definitions.

    [/unix] [permanent link]