Adam Monsen

January 31, 2012

Auto-update bind 9 zone database serial numbers

Filed under: Default — Tags: , , — adam @ 3:45 pm PDT

This post is helpful for configuring emacs to automatically update the “Serial” in bind zone databases. I wanted to do the same in Vim, but the solutions in the comments of that post didn’t work for me. Here’s a version that does. It’s yours for free under the Affero GPL v3 (or any later version, at your preference):

function s:BindZoneSettings()
    function s:UpdateBindZoneSerial(date, num)
        if (strftime("%Y%m%d") == a:date)
            return a:date . a:num+1
        endif
        return strftime("%Y%m%d") . '01'
    endfunction
 
    function s:ReplaceBindZoneSerialLine()
        :%s/\(2[0-9]\{7}\)\([0-9]\{2}\)\(\s*;\s*Serial\)/\=UpdateBindZoneSerial(submatch(1), submatch(2)) . submatch(3)/g
    endfunction
 
    autocmd BufWritePre /etc/bind/db.* call ReplaceBindZoneSerialLine()
endfunction

January 5, 2012

Get Back at those Fat Cats!

Filed under: Default — Tags: — adam @ 2:15 pm PDT

Fat Cats logo: purple cat in a business suit smoking a cigar

If you have an iPhone or iPad, check out the game Fat Cats!

October 8, 2011

Does the FSF need better top-down social skills?

Filed under: Default — Tags: , , , — adam @ 8:36 pm PDT

Larry Cafiero and Joe Brockmeier are two big voices for technological freedom. They’re both pretty fired up about RMS’s f-you epitaph of Jobs.

Generally you want the figurehead of a public foundation to be, uh, attractive. Intellectually, maybe even physically. Right? Not only does the cause itself have to make sense, these people need to attract other people to their cause. And they usually “say the right things”, smile, wear a suit, whatever. But I always thought these requirements only applied to other causes (besides Free Software).

Certainly RMS lacking those traits didn’t keep me from FLOSS. I heard about RMS and the proprietary printer a while back, and that’s all it took to get me hooked on FLOSS. I could identify immediately because I write software, and proprietary code is a pain. His cause just makes sense, even if he doesn’t. But I’ve been justifying his abnormal behavior because, well, he started something new! Something important. He knew it was important, and dedicated his life to this thing that many, many folks never even know exists. Something that affects all our lives, every day, more and more. Software must support our Freedom, or we are not free.

So he won me over, but I’m a nerd. I’m used to eccentrics in my field. Truth wins, period. And I still don’t know if it matters if RMS is a polished, smiley, public-friendly dude or not. Would Free Software be farther along today if RMS were kinder, more respectful, or somehow a better “public figure”? Would DRM have never been allowed to exist? Would the government pass laws that software for implanted medical devices be Free?

October 5, 2011

Link Checker Wishlist

Filed under: Default — Tags: , , , — adam @ 7:00 am PDT

Link checkers spider through your website and make sure that links work. I want an awesome link checker. Ideally, it would espouse as many of these attributes as possible:

  • easy to learn
  • easy to configure/customize
    • example config: don’t hit URLs on other servers
  • sensible default behaviors
    • example: respects robots.txt and ‘nofollow’ link attributes
  • scriptable / embeddable
    • useful from command line
    • useful from within CI servers like Jenkins
  • recurses (parses HTML, follows links)
    • and smartly avoids checking the same pages twice
  • fast
  • thrifty with memory
  • pluggable
    • example plugin: run jslint on all JavaScript
    • example plugin: validate HTML 5
    • example plugin: validate CSS
    • example plugin: compute accessibility score
    • example plugin: JUnit XML output
    • example plugin: OpenDocument spreadsheet output
    • example plugin: Excel output
    • example plugin: CSV output
    • example plugin: JavaScript engine
    • example plugin: follow hashbang URLs
  • beautiful source code
  • FLOSS

September 19, 2011

offline HTML 5 validation

Filed under: Default — Tags: , , , , , — adam @ 11:05 am PDT

HTML 5 logo

I’m liking Henri Sivonen’s Validator.nu service. I’ve got it running locally, and it works well. I can use it as a web service and validate HTML from within Vim, using quickfix to rapidly resolve errors. My Jenkins CI server uses the same validator via phpunit tests.

Warning: it took me a very long time to get it running locally. Technically easy (just run a build script), but it downloads tons of libraries and files before it can do its job.

March 21, 2011

Swimming in the deep end

Filed under: Default — Tags: , , , — adam @ 1:46 pm PDT

A coworker forwarded me an inspiring article from the Harvard Business Review. I was interested after the first paragraph, and was looking excitedly looking forward to finishing it along with a cookie. But I could not!

(more…)

January 4, 2011

Have a Cheap, Quick Breakfast Yum

Filed under: Default — Tags: , — adam @ 10:08 pm PDT

Bachelors, health nuts, frugal folks, check this out.

Grrrraaaaaains!

Some rainy night, do this:

  1. Buy a bunch of bulk spelt, red winter wheat, and barley from the bulk section of your grocery store.
  2. Add 2/3 cup of each grain to a large pot (2 cups / 500 mL total grains).
  3. Add 8 cups (2 L) water.
  4. Bring to and keep boiling uncovered for 45 minutes.

Throw it in the fridge. Heat some up in the morning and dress it like oatmeal. I like honey and whole milk. Try stuff like fresh/dried fruit, brown sugar too. Freezes well.

45 minutes means the wheat and spelt will be chewy. That’s how I like it.

Beeeeans!

  1. Add 2 cups (500 mL) raw pinto beans to a crockpot.
  2. Cover with 3-4 inches (8-10 cm) water.
  3. Cook on low for about 8 hours overnight.

Dress with like sliced fresh raw tomatoes, salsa, cottage cheese, sour cream, salt and pepper. Leftovers keep well for up to a week in the fridge, or freeze ‘em.

YUM!

Thanks Forest M and Pam W for the inspirations!

Odds & Ends

These grains/legumes/whatever are so tasty on their own. Seriously, why the heck do we need raisin bran and corn flakes?!

What’s your favorite breakfast?

For more fun, check out oat groats, amaranth, quinoa, and kasha.

Suggestions/corrections/feedback welcome. Yes Patrick, even your lovely trolling is welcome.

October 5, 2010

Mifos opportunity: i18n

Filed under: Default — Tags: , , , — adam @ 2:42 pm PDT

We need help with i18n (and support of L10n) in Mifos. Are you interested in becoming the Mifos i18n champion? It’s a great volunteer opportunity! The work should be intermittent, and basically at your leisure. One of the really fun parts is working with the folks at Translatewiki.net… they added a bunch of messages from our “questionnaire” module, and after a few days it was completely translated to Interlingua, Macedonian, Dutch, Norwegian, and Finnish! There’s an army of talented translators ready to help.

Here are some example tasks for the i18n champion:

See also: #Mifos, #microfinancing and #Wikimedia

Update

A day after I sent out this call for help we got two volunteers! Thank you, Stanley Kwok and Jasmine Sandhu!

September 13, 2010

Mifos Manual as an ebook

Filed under: Default — Tags: , , , — adam @ 7:00 am PDT

I learned about ebooks last week. Very cool! I’ve found them much more readable than PDFs or Web pages. Maybe it’s the ebook readers… they sure help me focus on the content.

Since we used FLOSS Manuals to write our manual, it’s easy to generate an ebook using Objavi. Here’s the Mifos Manual as an ebook. Looks pretty good on the iPhone (lately I’ve been using “Stanza”). Probably looks even better on a Nook, Kindle, or iPad.

September 6, 2010

Recent books I liked

Filed under: Default — Tags: , — adam @ 7:44 am PDT

Steig Larsson‘s Millenium Trilogy – had to read these after watching Eva completely submerged in them

What the World Eats – mentioned by coworker Van

The Gone-Away Worldmentioned by DadHacker

Confessions of an Economic Hitman – recommended by cousin Mel

Laurel’s Kitchen Bread Book – recommended by uncle Paul

Older Posts »

Powered by WordPress