It’s a Small World, My Prince

I don’t know why random thoughts like this pop into my head with such regularity, but there it is and I might as well embrace it. 

Well, it turns out that in terms of the Small World Phenomenum (better known, perhaps, as Six Degrees of Separation), I am connected to the Queen of England by way of a mere 3 intervening nodes.  As in:

Me -> Brother -> Friend -> Diana -> Queen Elizabeth II

The critical connection is, of course, my brother’s friend, Dave, who was once a member of Princess Diana’s security detail.

Oh, yes, and what caused me to think about this was my reading of a Wikipedia article about Prince William, the oldest son of Diana, a man second in line of succession “to the thrones of sixteen independent sovereign states known as the Commonwealth realms: the United Kingdom, Canada, Australia, New Zealand, Jamaica, Barbados, the Bahamas, Grenada, Papua New Guinea, the Solomon Islands, Tuvalu, Saint Lucia, Saint Vincent and the Grenadines, Belize, Antigua and Barbuda, and Saint Kitts and Nevis.”  He seems to be a jolly fellow, and I do not envy his life — to live one’s life in a goldfish bowl with everyone looking on.  It is good that he seems to be dedicated to the service of his country and its people (as well as in humanity generally), instead of being someone interested merely in his own pleasure.

Posted in Family | Leave a comment

Should a database table always have primary keys?

The occasion for this post is a little contretemps I experienced on StackOverflow.com recently. The topic of this blog post is the question posed by acidZombie24, a member of StackOverflow, over 3 years ago. I was one of those who responded to the question. My answer was:

Databases don’t have keys, per se, but their constituent tables might. I assume you mean that, but just in case…

Anyway, tables with a large number of rows should absolutely have primary keys; tables with only a few rows don’t need them, necessarily, though they don’t hurt. It depends upon the usage and the size of the table. Purists will put primary keys in every table. This is not wrong; and neither is omitting PKs in small tables.

Note that the statement “Database don’t have keys…” refers to the original text of the question title, which was subsequently changed by an edit.

This answer did not make much of an impression on anyone (the questioner never marked any of the answers as Accepted and nobody gave me any upvotes), until just the other day. And this was a downvote (which subtracts reputation points). If warranted, I don’t mind a downvote, if it is a legitimate beef with my answer, but given the downvoter’s comment I thought it unwarranted. He commented on his downvote, and a little conversation ensued:

jmoreno: A single row table doesn’t need a primary key, anything else should have one defined to avoid duplicates. – Jun 21 at 0:57

Cyberherbalist: Yes, generally, but business rules determine whether duplicates are to be permitted — it is not inconceivable that duplicate entries in a table might not only be permissible, but expected. It depends upon what is being stored, and what use is made of it. BTW thanks for the rep hit — this answer doesn’t actually contradict the accepted answer. Your absolutism is noted. – Jun 21 at 17:15

jmoreno: If you’re storing exact duplicates, you’re storing the wrong thing. As for the rep hit, remove the slam at people that think that every table should have a PK, and I’ll remove it. – Jun 21 at 18:28

I was a little puzzled about the reference to my supposed “slam” at people who think that every table should have a PK. I looked over my answer and comments to others’ answers for any insults and did not see any. Unless by “slam” he meant the term “purist”? Perhaps he thought this was intended as an insult? It wasn’t so intended — heck, I am a purist about certain things, and I think I’m justified in those cases, and accept that differences of opinion are natural consequences of free speech. In fact, I am a purist when it comes to people trying to bully me around, and thus I will not remove the “slam.” I will simply wear the loss of 2 reputation points as a badge of obstinacy! No problemo.

It just so happens that at the moment I am working on a little utility at work which accesses a table that has no Primary Key. And that was not due to oversight by our typically conscientious and highly competent Data Administration staff. In this case, the table stores rows which, once inserted, are never updated or deleted. Our DA staff are really in love with “natural keys” (sometimes to a fault) as Primary Keys, and if they had thought a PK was necessary, then By Golly that’s we would have gotten, LOL. But this is the table:


CREATE TABLE [dbo].[agency_message](
[agency] [char](3) NOT NULL,
[subagency] [char](1) NOT NULL,
[effective_date] [smalldatetime] NOT NULL,
[message_text] [varchar](1000) NOT NULL,
[requested_by_user_name] [varchar](50) NOT NULL
)

The table is used as follows: when a user signs into the application, the system compares the system date/time with the “effective_date” in the table, and uses the row with the largest effective_date whose effective_date is not greater than the current system date/time, if one exists (the additional criterium is a match on agency/subagency).

The reason there is no primary key is because no row is ever updated or deleted once inserted, and we retain all rows for the sake of having a history of agency messages.

Given that our DA staff are, with all due respect and good will, purists of the best stripe, I consider that this table’s lacking of a primary key to be arguable evidence that tables do not always require primary keys. Business rules, as I said above, must prevail, and in this case, the Business Rules dictated the table structure.

Posted in Miscellaneous | Leave a comment

Old Nerd’s Post – “Ancient” Technology

Old High School friends of mine just posted some Facebook comments on “ancient” technology they still possessed, and it caused me to think back about my old devices.  Brian mentioned that he still had his father’s old slide rule (and could still use it), which was quite cool!  Some of the people reading this post may not know what a slide rule is, though.  Check it out on Wikipedia: Slide Rule.  For the record: I haven’t forgotten how to use a slide rule, either.

My very first scientific calculator was the Berkey 4030, which I purchased back in 1975 for $110, which is about $470 in 2012 dollars:

BERKEY 4030 Scientific Calculator, circa 1975

Posted in FractionCalc, Miscellaneous | Leave a comment

R.I.P. This Week in Science

I appreciate political insights as much as anyone — but in the interests of keeping politics and religion out of places where they just distract from primarily neutral subjects like science, technology, and engineering, I try to keep my partisan political and religious opinions separate from my technical and scientific writings.  Hence, although I include my technical and science blog (“The Cyberherbalist”) on this one’s blogroll, and this one on The Cyberherbalist’s blogroll, I try not to mix and match.

And my reason?  Simply a desire not to force those who come for one to have to partake of the other.  If they want it they can get it.   And while it is true that science sometimes impinges on religion (and religious morality), most of the time they speak to different things.  If it happens to be appropriate to speak of one while dealing with the other, fine, but they are not natural fellow travelers.  Especially since while the speed of light is constant no matter what your politics are, your mileage can and will vary when it comes to taxation and public policy.

Which leads me to This Week in Science.

One of my favorite podcasts has been This Week in Science.  I’ve listened for a number of years and have always enjoyed it, but for some reason, Justin and Dr. Kiki have been getting less and less neutral about political topics on the show.  Well, that’s kind of not good, but if they had been even-handed about it then they could have made it fly.  But this isn’t what has been happening, and I’ve reached my saturation point.

The April 5th, 2012 show included an interview with a gentleman named Chris Mooney, whose primary claim to fame includes a number of articles in various publications, and four books.  I know nothing about his articles, but given that he has written for Mother Jones magazine, published by the Foundation for National Progress (keeping in mind that the term “Progress” is lefty-speak for creeping socialism), it would come as no surprise to realize that (gasp!) Mooney thinks Republicans and Conservatives are victims of some kind of brain damage.

Mooney was on “This Week in Science” in order to tout his new book, “The Republican Brain: The Science of Why They Deny Science–and Reality”.  According to Mooney, his previous book on a similar subject, “The Republican War on Science”, wasn’t quite sufficient.  And according to Mr. Mooney, the book is his contribution towards re-electing Barack Obama as President of the United States.

Nope, no political partisanship here!  Just pure and unadulterated science, right?

With “The Republican Brain,” Mooney and This Week in Science have together crossed over into the surreal.  This is science?  One Amazon.com reviewer, who says of himself that he is an evolutionary biologist, had this to say:

“This book must be read, but as an example of the distortion of science for the benefit of politics.”

Not that most of the other reviewers felt there was anything wrong with this book!  Oh, no!  The largest portion of the reviewers are just ecstatic over Mooney’s book, except possibly one of them, who withheld one star from his otherwise 5-star rating because Mooney had grudgingly admitted that Republicans weren’t all bad.  Shocking.

Another generally positive reviewer gave him only three stars, saying that the book is “not going to convince any conservatives – unfortunately”.  Gee, I wonder why that would be?  And goes on to say “The majority of the book confirms opinions that many scientifically-minded liberals hold about conservative bias.”  Which is a telling point!  Can you say “confirmation bias“?  This is “a tendency of people to favor information that confirms their beliefs or hypotheses.”  And thus we have the central problem with “The Republican Brain.”

I say “Rest in Peace” to This Week in Science, because it has clearly slipped the surly bonds of reality and has become something else.  I wrote a farewell email to Dr. Kiki, to which I expect no answer, in which I regretfully concluded:

“…if Mooney’s partisan political polemic posturing is what you plan to present from now on as science, then you and I must part ways.”

And so that is the way of it.

Posted in Politics, Science | Leave a comment

Feminist Elitist Disses Ann Romney

Democratic strategist Hilary Rosen dismissed Mitt Romney’s reliance upon his wife’s advice vis-à-vis women’s issues because, in her words, Ann Romney “…has never worked a day in her life.”  Zing!

This very thoughtless complaint caused me much puzzlement, since in my observation those women who choose to stay home and be full-time Moms don’t spend the bulk of their time sitting around the house watching soap operas and eating bon-bons.  That’s me, I suppose, but if the stay-at-home Moms that Rosen knows are so relaxed, perhaps she needs to get out more.  Assuming that she knows any.   It seems that she ought to, since Rosen herself evidently raised two of her own children while in the midst of a career.

After this episode blew up in her face (both Ann Romney and the Obama White House commented on the inappropriateness of her remarks), Ms. Rosen backtracked a bit, but still maintained that Ann Romney could not be a good source of advice on the concerns of working women.

And here is where I get a little perplexed.  Does Ms. Rosen imagine that the number of stay-at-home Moms in the country is so negligible that Mitt Romney can afford to ignore their concerns, and only focus on the working mothers?  I would hope not, but if his wife had been a working mother, how would he gotten advice on the concerns of the stay-at-homes?  I suppose he could have found himself a second wife, one who stayed at home and raised the kids – although to the best of my knowledge that’s illegal – so that would have gotten him the benefit of advice on both sides?

This is the nutty part of it.  Romney has a wife who can advise him on issues related to her own experience as a woman, and as a woman who knows other women, he has the benefit of in-house expertise.  But who does he rely upon when it comes to the concerns of stay-at-home Dads?  Romney himself was a working Dad.  And what about the concerns of any other group who might have different perspectives?  Well, gee, I guess he has to rely upon people who have those perspectives – does Rosen imagine that Romney doesn’t have any such people in his campaign?  So what the HELL is wrong with Romney taking advantage of his own wife’s perspective just because she doesn’t happen to be both a working Mom?  Is he then supposed to IGNORE his own wife?

If I, as a Romney supporter, were I to claim that Barack Obama was in error in relying upon his own wife’s advice on women’s issues – because Michelle was a working Mom and could not relate to stay-at-home Moms – I’d bet that Rosen would have been all over me in a heartbeat. And she would have been justified!

Posted in Miscellaneous | Leave a comment

Politics in the Twitterverse®

Today is the first time I got involved in Twitter with respect to politics, and Wow.  Up to this point my tweeting and reading tweets had all to do with technical issues (I’m a computer programmer in my day job, as some of you know, and I blog using another name).  Otherwise, I hadn’t paid any attention to what is called by some the Twitterverse.  So today, when I tuned my previously pretty much unused IWasAboutToSay Twitter account into the current political debate, I didn’t know what to expect, exactly.

And Wow it is quite busy there!

I am now following @MittRomney, @BarackObama, @TimPawlenty and @MicheleBachman.  I guess I should follow a couple more Dems, too.  Can’t decide which ones though.  I’ll get to it eventually.

Anyway, there seemes to be an ongoing Twitter battle.  Even though I’m pretty sure that the candidates themselves are NOT doing the tweeting.  The @BarackObama account is clearly not, because they say that he puts “-bo” at the end of his personal tweets.  And I somehow doubt that @MittRomney is tweeting himself, either.

Here’s a recent exchange:

@MittRomney: How about the facts: Women account for 92.3% of jobs lost under @BarackObama. [Infographic] http://mi.tt/HZafYD #ObamaLegacy

@BarackObama: Mitt Romney has millions stored in offshore tax havens like the Cayman Islands. RT if you agree he should close them: http://OFA.BO/7popSt

@MittRomney: Under @BarackObama nearly 23 million Americans are struggling for work. RT if you agree he should be a one term president.

@BarackObama: Now that the GOP primary is all but over, remember what Romney said he’d do to roll back our progress: http://OFA.BO/spc6iV

This is fascinating stuff, though rather on the tame side.  It also can’t be said that it forms any kind of true debate.  It’s more-or-less unrelated soundbites being tossed out into the public forum.   It would be really interesting if the candidates themselves were to actually debate on Twitter in real time.  I doubt we’ll see this.

When you have a look at Twitter traffic being generated by Mitt’s and Barack’s supporters, on the other hand, it is quite a bit rougher.  I have a Windows Phone, and I recently installed an app called “Mini Romney” on it.  This app shows all related traffic, so if a Mitt-hater posts something about Mitt it will show up.  A lot of negative traffic, actually, although all I’ve seen is confined to policy and “Mitt hates poor people” kind of rants.  I’m sure it could be a lot worse.

By the way, feel free to follow me on Twitter: @IWasAboutToSay

Posted in Politics | Leave a comment

He Is Risen!

Listening to the choir singing about Christ’s Atonement and Resurrection. With all his other disciples I proclaim: He is risen!

Posted in Miscellaneous | Leave a comment

The Fix is Found

Earlier I said that there was this bad crashing problem with HamTechExam and that I better find it and fix it.  Well.

I cannot claim any heroism here.  It has taken me too long to get around to it, and the best thing I can say about the whole process is I don’t know how on earth this version of the app made it past the App Hub testers.  It couldn’t possibly have worked in the state it was in.  Maybe they were applying goose grease that day, and it just slipped in.

So, for what it’s worth (and for those who bought the app and couldn’t use it, that would be “not much”), the problem is fixed.  It is in certification and perhaps in a day or so it will be published.

All I can say is: my apologies.

Posted in Miscellaneous | Leave a comment

Rush Limbaugh — What a Guy!

In the wake of those odd sessions of testimony where certain members of Congress gave Ms. Sandra Fluke the opportunity to complain about the lack of health insurance coverage at Georgetown University for contraceptives, famous talkshow host Rush Limbaugh apparently decided his foot would be quite tasty and stuck it firmly in his mouth.  I hope he seasoned it well beforehand.

I don’t know what possessed him to cause him to refer to Ms. Fluke as a “slut” and a “prostitute”, but whatever it was he should have manfully resisted the impulse.  I am sure he is aware of this, especially now.  He has apologized, but that won’t matter, even if he is sincere.  The Left is unforgiving — especially when one of their prime enemies trips his own self so thoroughly.  They will milk this for all it’s worth.

For one thing, I don’t think I could refer to any woman as a “slut”, even in private.  Maybe I am goody-two-shoes (whatever does that mean anyway?), but it isn’t proper under any circumstance I don’t think.  And “prostitute”?  Oh, wow.  That’s unconscionable.  I guess I could call someone a prostitute if they actually were one.  But as a personal insult?  Yikes.

It’s bad enough for Rush to talk like that in public, but what is worse is that it has taken discussion of the original issue out of discourse in preference to beating on Limbaugh.  Because the whole root of this issue, namely that the Government should force the Catholic Church to provide medical care (contraceptives) in violation of its own religious principles.  This is what Obama wants to do, and Sandra Fluke complaining about it notwithstanding, there is a First Amendment issue here.

I happen to disagree with Catholic doctrine and practice on part of this issue, since my religious beliefs are that contraception in marriage is a private matter between husband and wife.  However, I agree with the Catholic Church when it comes to paying for contraception for a woman or man who is not married, since they shouldn’t be having sex anyway!  But however that goes, it is an egregious violation of the principle of religious liberty to force a church to support that which is against its beliefs.

So Limbaugh has provided a slick way for the real issue here to be bypassed, and has done us all a great disservice.

Posted in Politics, Religion | Leave a comment

Ignore At One’s Peril

It’s just come to my attention that one of my apps (HamTechExam) is blowing chunks upon startup, failing to function.  When I first heard this I thought that it couldn’t be possible, since the other two similar apps (all running on the same basic code) were having no such problems.  But when I checked my own copy of the app it did not work, confirming it.  Really hard to understand how this was possible, since it was supposedly tested by Windows Phone personnel.  I know it was working then.  Perhaps it was the last update to WP7? 

Anyway, I now have 3 bad reviews in the Marketplace, which is unfortunate.  I am going to figure out what the problem is tonight and hopefully get this squared away.

Posted in Ham Radio Apps | Leave a comment