Ruby config options fail

Sunday, January 27, 2019 

Ruby is a horrible nightmare language, like almost all modern languages. They try to be so clever and modular, but end up making a maintenance hassle as various modules come and go, dependencies break, and the developer community moves on to the next shiny thing that claims to be the best thing to happen to programming since C.

Oh well.

If you get a bunch of "invalid option: --no-rdoc" errors, it is because sometime in the last few years --no-rdoc and --no-ri were depreciated in favor of --no-document. And, apparently, just recently builds started barfing on the deprecated errors. Building universally with these options is a pretty standard thing as it vastly improves build time and the rdoc system is a whole big kettle of annoying weirdness you just don’t need to wade through.

Now Ruby, being oh-so-clever and friendly, has all sorts of places where these might be set universally or semi-universally. The references will tell you about /.gemrc and /etc/gemrc, but only by doing a grep -FrHIis 'no-rdoc' * at / did I find these sneaky little bastards:

basejail/usr/ports/sysutils/vagrant/Makefile:RUBYGEM_ARGS=      --no-ri --no-rdoc -l --no-update-sources \
basejail/usr/ports/Mk/Uses/gem.mk:RUBYGEM_ARGS+= --no-rdoc --no-ri
basejail/usr/ports/devel/ruby-gems/Makefile:DOCS_VARS_OFF= RUBY_SETUP_OPTIONS+="--no-ri --no-rdoc"
basejail/usr/ports/devel/rubygem-io-like/Makefile:DOCS_VARS_OFF= RUBYGEM_ARGS+=--no-rdoc

After converting those to the “new” “better” “shiny” version of the config option string did my gems build.

Posted at 06:33:18 GMT-0700

Category: uncategorized

A utility for disabling Windows 10

Sunday, June 19, 2016 

While there may be people who actually like Windows 10, there are also many people who aren’t interested in fully exposing every part of their digital life to for-profit mining as means of offsetting Microsoft’s declining profits in the desktop OS business, and if you’re one of those, fighting Microsoft’s truly viral (and malware) marketing techniques is quite a hassle.  It appears there may be an easier way.

Micrsoft has finally provided an “easy” way for people to turn off windows OS update (e.g. from 7.x or 8.x to 10) from happening automatically and without user intervention (and frequently in outright defiance of clear user intent because profits first!)

The short form for people who are comfortable with some of the internal workings of Windows is:

Search for "edit group policy" and open the editor then follow the selection cascade as:

Local Computer Policy -> Computer Configuration -> Administrative Templates 
-> windows Components -> Windows Update 
->> Turn off the upgrade to the latest version... ->> [x] enabled

The longer instructions are at this link: https://support.microsoft.com/en-us/kb/3080351

Easy, no?

I suggest doing this and then downloading and installing the following program.  It will pretty much do the same thing but it also checks to see if Microsoft has already kindly filled your hard disk with malware without your permission and offers to delete it:


Note that my previous posts about removing specific “updates” are still relevant.  The above should prevent windows 10 from auto-updating but Microsoft has been pushing updates with “telemetry” to Win 7 and Win 8, which are also spyware and are tracking you and reporting your usage patterns back to Microsoft without telling you or asking you.

Welcome to the new economy: you’re the product.

Posted at 13:56:56 GMT-0700

Category: uncategorized

Protein Ratios in Food Bars

Thursday, July 4, 2013 

I’ve always been annoyed by the way food nutritional content is reported. It isn’t hard to find a food item with 1,000 calories per serving that claims to be be “high” in iron because it has 5% of the US RDA. The ratio of the RDA of iron to calories would be 1:10. You couldn’t eat enough to get the full allowance of iron in a day and you’d become a human blimp trying.

In an age of obscene abundance, the trick is not so much getting the minimum nutritional value, but getting it at the minimum caloric cost. I looked through some reviews of “good” protein bars and popular ones on Amazon and tabulated the nutritional data in Excel and then computed the ratio of grams of protein to three bad things: kilo-calories, grams of saturated fat, and dollars of cost. Thus, higher values are better. It is interesting to see a huge range in all three values. Sadly, it is common to get closer to the maximum recommended value of saturated fat per day than calories, meaning that eating only enough calories of these “healthy” bars will result in increased risk of disease compared to normal, “unhealthy” food. That’s pretty inexcusable.

protein bars.PNG

I’d like to change the way nutritional labels are printed from hard to read tables presenting only favorable values to simple bar graphs of all basic, essential nutrients, all of which would always be included so that empty calories foods would have a big red block of bar graphs pointing to the left indicating a food that had better be a pleasure to eat to compensate for the lack of nutrition.

But back to food bars: the ratio of protein to calories is a good way to select a food bar for healthy people. Finding one with the best ratio of protein to saturated fat can be important for some people and avoiding the worst ratios is good for everyone. Finding the most protein for your dollar may have merit as well (though prices are just Amazon prices and may vary significantly by outlet).

The Excel table for your editing pleasure protein bars.xlsx

Posted at 11:55:41 GMT-0700

Category: uncategorized

Fall weather is arriving…

Sunday, September 23, 2012 

It only got to 47.5C today according to our new roof-mounted weather station.  It seems to be about 3 degrees cooler away from ground level, but we’re still down about 4-5 degrees from peak temperatures.

Posted at 18:18:19 GMT-0700

Category: uncategorized

Nom Nom Leg

Sunday, September 12, 2010 

I came home to find that Tortuga, one of the stray cats that’s adopted  us, had developed a nice open wound on her forelimb. When I left two  weeks ago it was a bit swollen, presumably abscessed, and then drained.  I’m sure it was really gross. Anyway, the cat just couldn’t get  enough licking that yummy puss and had turned the wound into a nice open  sore.


The vet gave me some antibiotics and antiseptic cleaning solution and  this lovely and stylish Elizabethan collar that Tortuga clearly just  loves to wear. Her thought bubble probably reads something like “once  this collar comes off and I can get my teeth around your neck, you  better sleep lightly.”

Posted at 20:14:26 GMT-0700

Category: photouncategorized


Tuesday, June 22, 2010 


Posted at 00:28:00 GMT-0700

Category: uncategorized

3 capitals

Monday, May 10, 2010 

Interesting bit of trivia, @phragments, how one can drive through the three capitals: but one only takes 90 seconds…

— Sent from my mobile device

Posted at 12:46:34 GMT-0700

Category: uncategorized

made it to DC

Sunday, May 9, 2010 

It was a fun weekend with the Westtown gang.

Posted at 21:05:41 GMT-0700

Category: uncategorized

Debate O Rama

Friday, October 3, 2008 

The debate was entertaining. Sarah was not the trainwreck we’d all hoped for after the Couric intervierws, but it had its moments.

I thought most remarkable was that she occasionally went off script and got lost.  The prep worked, but I guess they couldn’t cover every possible question.  There were moments where the Sarah we came to know and love from Couric came out.

Otherwise she filled the time trying to be cute and mugging for the camera, rolling her eyes and making cutsy expressions and spouting folksy aphorisms.

Read more…

Posted at 23:30:21 GMT-0700

Category: uncategorized

Great Customer Service

Friday, August 8, 2008 

I got a pair of Seth Thomas WBL-714-FS-SETH clocks out of a factory salvage; no instructions of course. They seemed simple enough, but I couldn’t get them to sync. There are the typical (for a radio sync clock) time zone buttons which make the hands move to the appropriate relative position by time zone. There is a big button that makes the hands move and a small button that seems to do nothing. They were not synced. I let them sit for a few days and they still were not synced.


I looked up the company’s web site and wrote a little note on their form, expecting nothing:
"I have two WBL-714-FS-SETH clocks. They do not seem to set themselves to the time signal. After a couple of days, they are not synchronized. Any hints?"

A day later I got this from Donna at the company:
"Dear David: It sounds like they are not receiving the signal. Have you tried moving them to a different location and see if they receive the signal? If not, try that. If you have tried different locations, then try taking the battery out for about 5 min, then put it back in, hit your time zone and if should advance to 4, 8 or 12. It will stay there till it receives the signal. You may just have to move them. Let me know how you make out."

It worked perfectly and now both clocks are synced. It was such a pleasant, prompt, and above all accurate response that it made me wonder if I’d ever received such good service before and as far as I can remember only McMaster Carr compares.

Posted at 13:36:06 GMT-0700

Category: photoreviewsuncategorized