America: Y Ur Peeps B So Dum?

By Bill at December 10, 2010 10:16
Filed Under: Politics

I read a great article today from Joe Bageant about the decline of American Culture.  It’s mostly a rant about the illogical, self destructive choices we Americans make as a whole:

Doubting readers may consider America's health institutions, the insurance corporations, hospital chains, physicians' lobbies. Between them they have established a perfectly legal right to clip you and me for thousands of dollars at their own discretion. That we so rabidly defend their right to gouge us, given all the information available in the digital age, mystifies the world.

After reading it, I felt smugly comfortable and a little superior.  Then I remembered the Dunning–Kruger effect and came down.  Later, I figured that just knowing what the Dunning–Kruger effect is probably makes me truly above average.  However, in the end I got caught in a recursive loop and had the mental and emotional equivalent of a stack overflow and crashed.

Bageant summed up his article this way:

Some Americans believe we can collectively triumph over the monolith we presently fear and worship. Others believe the best we can do is to find the personal strength to endure and go forward on lonely inner plains of the self.

Doing either will take inner moral, spiritual and intellectual liberation. It all depends on where you choose to fight your battle. Or if you even choose to fight it. But one thing is certain. The only way out is in.

Maybe I’m on the right track after all.

kick it on DotNetKicks.com

Why, America?

By Bill at November 05, 2010 19:02
Filed Under: Politics

America, why is that we had to “stay the course” for an eight year ride to bottom of an enormous recession but two years into an albeit very slow recovery we have to change horses in mid stream?

I’m not saying that you’re wrong.  I just want to understand.  It seems to me like a double standard, but maybe I’m missing something?

jobs_oct10Is it unemployment?  In 2008, we lost an average of 317,250 private sector jobs per month. In 2010, we have gained an average of 95,888 private sector jobs per month. (Source) That's a difference of nearly five million jobs between Bush's last year in office and President Obama's second year.  Just today it was reported that 150K jobs were added in October. (See CNNMoney.com and Washington Monthly.)

deficitIs it the deficit?  When Bill Clinton left office in 2001, the budgets for 2009-12 were expected to have an average surplus of almost $850 Billion.  When Bush came into office one of the first things he did was to cut taxes.  Unfortunately, because of this, there was not nearly enough tax revenue to pay for his agenda which included the wars in Iraq and Afghanistan and Medicare prescription drug coverage (socialized medicine).  This increased the deficit by $637 billion. 

The wall street bailout in 2008 which was signed by Bush and supported by President Obama added another $185 billion.  The wars in Iraq and Afghanistan which Obama continues to fight but were started during the previous administration added another $232 billion.

The only additions to the deficit that were completely a product of the Obama administration are the $145 billion for the economic stimulus and another $56 billion for other programs.  That’s a total of $201 billion which is not extraordinary compared to some of the other deficit causing measures over the past 10 years mentioned above. (See The Atlantic)

Is it the stock market? On Bush's final day in office, the Dow, NASDAQ, and S&P 500 closed at 7,949, 1,440, and 805, respectively. Today, they are at 11,444, 2,579, and 1,226 which are the highest they’ve been in 2 years.  (See CNNMoney.com)

Is it healthcare?  Has any of the new healthcare law even gone into affect yet?  Well, yes, some provisions have taken affect. 

Insurance companies, for example, will be prohibited from canceling policies when customers get sick or from denying coverage to sick children. Some insurers have said they will stop selling policies exclusively for children rather than comply.

The law will allow parents to keep their adult children up to age 26 on their family plans, and will bar insurers from placing lifetime caps on how much they will pay when their customers get ill.

And many consumers will get new rights to appeal claims that are denied by insurers and win new access to preventive care without being asked for co-pays. (See LA Times)

Are these the provisions that people don’t like?  Has anybody been adversely affected by these provisions?

So, America, what is it?  What’s so bad that it just couldn’t wait?  Have the last two years really been all that different than the previous eight?  Never mind better or worse, have they really been different?   I want to know.  What is it that I’m missing?

kick it on DotNetKicks.com

More fun with chain letters

By Bill at November 03, 2010 14:46
Filed Under: Politics

DogSpots Logo

I received another chain letter today.  This one was urging people to flood the ACLU offices with Christmas Cards because the ACLU is trying to “take God, Christmas or anything religious away from us.”

These kinds of things always get me going and I find it hard to just let them slide.  Chain letters like this one usually include an incredibly long list of email addresses and this one did not disappoint.   I sent the following to each and every one of the addresses on the list (BCC of course).


  1. This has been circulating since 2003.  I would think that the ACLU has figured out how to deal with this by now.  See: http://www.newsmax.com/archives/articles/2003/12/9/191515.shtml

  2. The ACLU defends the rights of all Americans as enshrined in the constitution. However, because the ACLU is often better known for its work preventing the government from promoting and funding selected religious activities, it is sometimes wrongly assumed that the ACLU does not zealously defend the rights of all religious believers to practice their faith.  They work both sides of this issue always on the side of the people against the government.  If you think about it, it is probably better that there’s a group actively keeping the government out of religion.  Having the government involved in religion rarely ever results in anything good for people of any faith.  See: http://www.aclu.org/aclu-defense-religious-practice-and-expression

  3. You might consider whether engaging in deliberate deception and attempting to sabotage an organization isn’t against what Christmas is supposed to be about.

  4. It hasn’t always been a “Christmas” tree.  The practice of decorating evergreens dates back to pagan celebrations.  It was used by the Greeks in their worship of their god Adonia.  The Romans used evergreens in their celebration of Saturnalia and the ancient Germanic people, who are often credited with inventing the Christmas tree, decorated evergreens in their celebrations and worship of their god Woden.  Because the practice was so closely linked to so many pagan rituals, it was originally forbidden by the Church.  It wasn’t until the 16th century that it was tolerated by the church.   See: http://landscaping.about.com/cs/winterlandscaping1/a/christmas_trees.htm and http://www.religioustolerance.org/xmas_tree.htm

  5. When you send a mass mailing out, it is more polite to use BCC to protect the privacy of the recipients.  See: http://bccplease.com/ or http://www.cs.rutgers.edu/~watrous/bcc-for-privacy.html
kick it on DotNetKicks.com

Double Rainbow

By Bill at August 27, 2010 14:32
Filed Under: Random

double rainbow crop

So, there’s this video making the rounds on the internets that features a guy narrating while filming a rainbow.  The video itself is pretty boring; it’s the guys narration that has made the video famous. 

The video has made the CollegeHumor.com list of Top 10 Viral Videos of 2010 So Far and inspired tons of parodies and songs.

I was only barely aware of the meme when I took a trip to Teton Valley with some friends.  While we were there, we went to go see a house that my friend Carl built and later sold.  The house is on Rainbow Loop in Driggs, Id just off of Rainbow Drive. 

As we were leaving the neighborhood, I noticed the street sign for Rainbow Drive where it meets the main highway and the sign read “Double Rainbow Dr”. 

Now I’m wondering if this is some kind of joke or if the name of the street has actually been changed to “Double Rainbow”.  Also, if the street name has been changed, was it changed in response to the video or is this just a coincidence? 

Both Google Maps and Bing Maps still show the street as Rainbow drive, but I know that both take a while to reflect changes and additions.  I can’t imagine somebody taking the time and effort to make such a regular looking sign just as a joke only to put it in one of the remotest places in the country.  On the other hand, why would they change the name of the street?  It’s not like they’re running out of street names out there.  I suppose that I can keep checking the maps to see if they ever get the change. 

In any case, it would be great if somebody could get a video of a double rainbow in Teton Valley right on Double Rainbow Dr.

double rainbow icon

kick it on DotNetKicks.com

Happy 4th

By Bill at July 04, 2010 22:55
Filed Under: Family

Isaac with some sparklers
This is the first time we’ve ever lived in a city on July 4th that allows fireworks, so we did our patriotic duty and went down to the grocery store (yes, you can buy fireworks at the grocery store here) and bought a bunch.  Not all fireworks are legal, but you can get more than just sparklers.  Nothing that shoots into the air or explodes is legal, so there are no firecrackers or bottle rockets, which are my all-time favorites, but we had fun nonetheless.

We got a bunch of those little black pellets called “snakes” or “worms” that fizzle and grow really long ashes as they burn.  They were the least fun.

We also got some snappers which are little paper wads stuffed with a little explosives and some tiny pebbles.  When you throw them on the ground they spark and make a small popping noise.  Isaac was allowed to use these and we had fun with these a little during the day.

 

The Grand Finale!
The biggest thing Isaac was allowed to work with himself was the sparklers.  We got a bunch of these and had lots of fun waving them around just as the sun went down.  The video above is Isaac waving around some of these sparklers.

Pretty much everything else we got was just a variation on the sparkler only bigger and louder.  Since nothing that shoots or explodes is legal this was all we could hope for.

We saved the biggest thing for last.  It basically looked like a quart milk carton with a fuse on top and when lit it shot sparks and fire balls six or seven feet in the air.  The second video is this of this monster in action.

 

 

Capture

kick it on DotNetKicks.com

Discourse?

By Bill at November 11, 2009 16:39
Filed Under: Politics

I received one of those political chain letters today.  You know, the kind that takes some article or another, totally misrepresents it and then urges people to “send this to everyone you know”.  These things circulate for years and do nothing other than piss people off.

The one I received this morning was about an article that appeared in the Washington Post in January of 2000.  Yeah, this thing has been making the rounds for almost 10 years.  I’m guessing that it hasn’t really been in active circulation for 10 years and that someone dug it up to prove some point about the current administration not doing enough for the troops and to get people worked up.

This is what passes for discourse today.  People dig up the most poorly written crap that they can find and throw it up as a straw man to be taken down.

I generally try to ignore these types of things, but there was something about this one that made me keep reading.  Perhaps I was in a bad mood this morning.  Whatever it was, I had to respond.  The following is what came out.  Perhaps in 10 years it will still be circulating.

More...

kick it on DotNetKicks.com

Legalize Gay Marriage?

By Bill at November 04, 2009 10:43
Filed Under: Politics

s-MAINE-GAY-MARRIAGE-large This started as a simple Facebook status , but for some reason, a Facebook status can only be 420 characters long.  My submission was 628 characters long and when that wasn’t accepted I was forced to move the whole thing here.

It all started with a few expressions of disappointment some friends made about Maine voters repealing a state law that would have allowed same-sex couples to marry. While I shared their disappointment, I was becoming increasingly offended by the descriptions of the repealed law that all included something similar to the description above about “allowing” or “permitting” same-sex couples to get married as if “we” all knew better and had decided that it was OK for “them”.  I found myself in a weird situation of being offended by a law that I had hoped would stand. 

Here is my original status message:

Why does same-sex marriage need to be legalized? Was mixed-sex marriage ever legalized? Was mixed-race marriage ever legalized? Trying to “make it legal” assumes that without legislation it is illegal. That's backwards.  It's ceding the right and then asking for it back. Freedom to marry, or not marry, resides with the individual and cannot be granted or infringed by the State. We need to insist on this and take down any laws that say otherwise.  We can't legalize marriage any more than we can legalize happiness.  It is one of our unalienable rights.  As unfortunate as the decision in Maine is, I think it's for the best.

The law legalizing same-sex marriage in Maine has been repealed, but I think it was a dangerous law to begin with.  It’s because laws can be repealed that something as important as marriage shouldn’t be legislated.  It opens up to debate that which should not be debated.  Rather than fighting for something that should already be, we need to defeat that which denies it.  Rather than passing laws that legalize same-sex marriage we need to rewrite or repeal laws that say it is illegal.  We need to challenge the people and institutions that stand in the way of what is already ours. 

So, while I’m disappointed that people in Maine have voted to deny rights to same-sex couples, I’m even more disappointed that they thought that this was something they could vote on in the first place. 

kick it on DotNetKicks.com

Prospect Park Swans

By Bill at October 15, 2009 16:09
Filed Under: Nature

swan.480[1] The swans I wrote about this spring have made the New York Times

The authors seem to think that the swans being violent is a surprising and new development.  However, my experience is that violent and territorial is standard behavior for these birds when other birds are around.

Another thing to note is that the article mentions that the southern family includes four cygnets.  The southern family is the one I encountered and my pictures and video show five cygnets.  I guess one of them didn’t make it.  Maybe that’s what pissed off the father.  Or maybe the one cygnet with the northern family is an adopted runaway.

At any rate, it seems that local residents are trying to mediate between the two families.  I wonder what they are trying to accomplish.  Humans are so strange.

kick it on DotNetKicks.com

Programmatically check if SQL Replication Components are Installed

By Bill at October 02, 2009 23:16
Filed Under: .Net Programming

I spent some time this week tightening up the code in a project that will actually be released into the wild.  I wanted to make sure that I catch as many errors as possible and put up user friendly messages.

The program uses SMO and RMO to synchronize a local SQL Express database with a master database over the internet.  The program would get some pretty cryptic error messages if SQL Express wasn’t installed, if the expected instance weren’t available or if the replication components weren’t installed.

I was easily able to check if SQL Express was installed and to get a list of the installed instances, but I couldn’t find a way to check if the replication components were installed.  This was annoying because the replication components aren’t installed by default when SQL Express is installed and I was assuming that this situation would come up often.

After some refactoring, I was able to get it to throw an exception with a pretty straight forward error message: “Replication components are not installed on this server. Run SQL Server Setup again and select the option to install replication.”  In fact, I could catch the exception and put up whatever error message I wanted.  Unfortunately, this exception would not occur until the program spent quite a while preparing to do the synchronization.  I really wanted to check for the replication components before I attempted any synchronization.

I spent quite a while googling trying to find something that would work, but couldn’t find anything.  Then I tried checking for the existence of several stored procedures, tables and entries in the SysObjects tables, but nothing I found on a server with the replication components was missing on one without them.

Then I came across the sp_MS_replication_installed system stored procedure.  It’s on all installations and tells exactly what I needed.  I was surprised that with all the searching I did, there was no mention of this handy stored procedure, so I figured I would do my part and document what I found.

The stored procedure is simple enough in that it returns a 0 if the replication components are installed and a 1 if they aren’t.  However, under usual circumstances, it goes a step further and raises an exception if the components aren’t installed.  This is because the procedure reads an entry in the registry to see if the replication components are installed and if they aren’t, it is likely that the entry was never written in the first place.  When it can’t find the registry entry, an exception is thrown.  The only time the stored procedure would return a 1 without throwing an exception is if the replication components were installed at some point and then later uninstalled.

   1: USE [master]
   2: GO
   3: /******Object:  StoredProcedure [sys].[sp_MS_replication_installed]******/
   4: SET ANSI_NULLS ON
   5: GO
   6: SET QUOTED_IDENTIFIER ON
   7: GO
   8:  
   9: --
  10: -- Name: sp_MS_replication_installed
  11: --
  12: -- Descriptions: 
  13: --
  14: -- Parameters: as defined in create statement
  15: --
  16: -- Returns: 0 - success
  17: --          1 - Otherwise
  18: --
  19: -- Security: 
  20: -- Requires Certificate signature for catalog access
  21: --
  22: ALTER procedure [sys].[sp_MS_replication_installed]
  23: as
  24:     set nocount on
  25:     declare @isinstalled int
  26:     select @isinstalled = 0
  27:     declare @retcode int
  28:     
  29:     EXECUTE @retcode = master.dbo.xp_instance_regread 'HKEY_LOCAL_MACHINE', 
  30:         'SOFTWARE\Microsoft\MSSQLServer\Replication',
  31:         'IsInstalled',
  32:         @param = @isinstalled OUTPUT
  33:  
  34:     IF ( @retcode <> 0 ) or ( @@ERROR <> 0 ) 
  35:     begin
  36:         raiserror (21028, 16, -1)
  37:         return (0)
  38:     end
  39:     
  40:     if (@isinstalled is null or @isinstalled = 0)
  41:     begin
  42:         raiserror (21028, 16, -1)
  43:         return (0)
  44:     end
  45:  
  46:     return (1)

I could use the sp_MS_replication_installed stored procedure as is and catch the exception when it got thrown, but I really don’t like code that relies on exceptions to operate correctly.  Exceptions should be just that – the exception.

   1: private static bool replicationInstalled(string connString) {
   2:     bool result = false;
   3:     using (SqlConnection conn = new SqlConnection(connString)) {
   4:  
   5:         conn.Open();
   6:         using (SqlCommand cmd = new SqlCommand()) {
   7:             cmd.Connection = conn;
   8:             cmd.CommandType = CommandType.StoredProcedure;
   9:             cmd.CommandText = "sp_MS_replication_installed";
  10:             cmd.Parameters.Add("Result", SqlDbType.Int).Direction 
  11:                 = ParameterDirection.ReturnValue;
  12:             cmd.ExecuteNonQuery();
  13:             result = ((int)cmd.Parameters["Result"].Value) == 0;
  14:         }
  15:         conn.Close();
  16:     }
  17:     return result;
  18: }

I took a look at the sp_MS_replication_installed stored procedure and found that all it is doing is calling xp_instance_regread and doing error handling. Since I didn’t like the error handling that sp_MS_replication_installed was doing, I figured I would call xp_instance_regread myself and do my own error handling.

private static bool replicationInstalled(SqlConnection conn) {
bool result = false;
using (SqlCommand cmd = new SqlCommand()) {
cmd.Connection = conn;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "xp_instance_regread";
cmd.Parameters.AddWithValue("param1", "HKEY_LOCAL_MACHINE");
cmd.Parameters.AddWithValue("param2", "SOFTWARE\\Microsoft\\MSSQLServer\\Replication");
cmd.Parameters.AddWithValue("param3", "IsInstalled");
cmd.Parameters.AddWithValue("@IsInstalled", 0);
cmd.Parameters["@IsInstalled"].Direction = ParameterDirection.Output;
cmd.ExecuteNonQuery();
object returnValue = cmd.Parameters["@IsInstalled"].Value;
if (returnValue != null && returnValue is int) {
result = ((int)returnValue) == 1;
}
}
return result;
}

I changed the replicationInstalled function to call xp_instance_regread directly.  If the registry key exists, the @IsInstalled parameter returns the value from the registry.  That value tells whether the replication components are installed.  If there is no value in the registry, the @IsInstalled parameter returns a null.  I take the value of @IsInstalled and check to see if it is null.  If it is null, I return false.  If it is not null and it is indeed an integer, I return that integer.

Using the new replicationInstalled function my program is able to quickly check if the replication components are installed before attempting to do any synchronization and without throwing any exceptions.  Mission accomplished!

kick it on DotNetKicks.com

Book Review – Anathem by Neal Stephenson

By Bill at September 10, 2009 13:28
Filed Under: Books

AnathemNeal Stephenson gets back to straight up science fiction with Anathem.  At first I was a little disappointed because I enjoyed his forays into historical fiction with Cryptonomicon and The Baroque Cycle and I was hoping for more of that.  However, Anathem revisits some of the themes from Snow Crash and Diamond Age, which are two of my favorite books, and builds on them.

Stephenson literally confronts the reader with the language as virus/magic theme from Snow Crash by inventing his own vocabulary.  I’ve heard some complaints about the vocabulary.  It even inspired an XKCD comic.  At first all of the neologisms make the reading difficult, but eventually they melt right in.  It's that transformation that brings the narrative out of the book and right into the reader's head.  I think the book could just have easily been written without the fictional vocabulary, but I believe that the process of internalizing the words is an integral part of the story and the book is definitely better for it.

Anathem also takes another look at the intertwined and cyclical relationships of technology and social order that he first addressed in Diamond Age.  Both the setting and the tone will feel familiar anyone who's read the earlier book.   However, Stephenson examines more than just technology. There are long discussions of philosophy, mathematics, and science.  Most of these discussions use some fictional vocabulary, but are based on actual ideas.  Again, the process of arranging the fictional ideas among their real life counterparts is part of the story.

There is enough in the book that it shouldn’t be dismissed and “just science fiction”, but there is no doubt that this is a science fiction novel.  In fact, Stephenson opens the book with a note to the reader that the story does not take place on Earth.  At times the sci-fi seems a little forced with star ships and aliens, but not so much that it hurts the story.  The bulk of the science in the book is real.

Overall, the book was a great read.  I finished it in just a few days and stayed up way too late more than once when I couldn’t put the book down.  I was sad when I finished because I’ll miss it.  I definitely recommend this books to those who like Stephenson’s work and would even recommend it to those who think they don’t like science fiction.

kick it on DotNetKicks.com

Authors

  RSS Feed Bill Fugina

Bill is Director of Technology for Coleman Insights. He enjoys programming, software design, walking, reading, dining out and watching movies, most of which he enjoys even more when he doing them with his wife, Deb, and or his son, Isaac.  Bill and Isaac are working on a video game, but they haven't made very much progress yet.

  RSS Feed Debra Hill

Deb dabbled in Project Management in the Advertising industry for (too) many years. She has happily ditched that and is taking some time to decide what is next career-wise. She enjoys gardening, knitting, sewing and various other crafty things. She also enjoys vegetating on the weekends with the family.

RSS Feed Isaac Hill-Fugina

Isaac has his own blog called Isaac's Place.

Recent Comments

Comment RSS

Bill's Run.GPS Stats

Training Sessions 16
Total Distance 50.17 mi
Total Time 0.11:50:02
Calories 6961 kcal
Average Speed 4.24 mph
Min Altitude -157 ft
Max Altitude 590 ft
Total Ascent 226 ft
Total Descent 236 ft