Categories

Neat Little Comment Trick

Hopefully this post will save someone else a bit of time just like it did for me… I stumbled across a trick for commenting out various blocks of code (typically used for debugging). By using a combination of the multi-line and single line comments, you can quickly comment/uncomment code.

/*
alert('error');
//*/

By setting up your comments like this, you can then add another forward slash to the first line to quickly uncomment the alert.

//*
alert('error');
//*/

In SQL, just replace the // on line three with — and the first two characters on line one should be –. Basically, it should look like this.

--/*
select * from table
--*/

Update (11 May 2010)

I figured out a way to use this trick for CSS even though there is no such thing as a single line comment in CSS. You just need to place an asterisk at the end of the top part of the comment, like below:

/* Comment trick for CSS *
body { background: #000; }
/**/

And then to “activate” the commented code out, just finish closing the upper comment:

/* Comment trick for CSS */
body { background: #000; }
/**/

How about those colleagues?

This came from the Reuter’s article Does “thinking outside the box” drive you crazy?

The survey found the Top 10 office annoyances were:

  1. Grumpy or moody colleagues (37 percent)
  2. Slow computers (36)
  3. Small talk/gossip in the office (19)
  4. The use of office jargon or management-speak (18)
  5. People speaking loudly on the phone (18)
  6. Too much health and safety in the work place (16)
  7. Poor toilet etiquette (16)
  8. People not turning up for meetings on time or at all (16)
  9. People not tidying up after themselves in the kitchen (15)
  10. Too cold/ cold air conditioning (15)

The most annoying jargon:

  1. Thinking outside the box (21 percent)
  2. Let’s touch base (20)
  3. Blue sky thinking (19)
  4. Blamestorming (16) (sitting down and working out whose fault something is)
  5. Drill down to a more granular level (15) (Look into something in more detail)
  6. Let’s not throw pies in the dark (15) (we need a plan rather than a haphazard approach)
  7. I’ve got that on my radar (13)
  8. Push the envelope (12)
  9. Bring your A-game (11) (Be ready to do something to best of ability)
  10. Get all your ducks in a row (11)

What are your thoughts? Comments? Annoyances?

Don't Blame Insurance

So I was driving home from work earlier this week and heard a commercial on the radio for a chiropractor in La Crosse who offered his first consultation for forty-nine dollars.  I remember thinking in my head, “I wonder if my insurance would cover this…”  But then I realized that it’s only forty-nine dollars, so who really cares, right?  But I quickly remembered an article published on Monday called No guarantees: 3 tales of insurance disaster that was written on msnbc.com; specifically the following sentence:

Thomas came through the operation well, but with a $19,000 hospital bill to show for it. Even with the hospital’s no-insurance discount of $7,500, the bill topped $12,000.

When I read that sentence on Monday, it never occurred to me as a problem, but after hearing the commercial on the radio, it hit me that the current bill that Congress has been trying to push through for the better part of six months could, and more than likely, do absolutely nothing to fix the problem.

This article essentially points out that if you have insurance, this hospital is going to overcharge you for your treatment because you are not paying for it, your insurance is.  But that $7,500 extra that your insurance company is paying is probably getting passed directly on to you.  The hospital is making roughly an additional 65% because you are not the paying customer.  In one way or another, you are going to get hit with that cost somehow.

I believe everyone should have health care, and I also believe that if people are given an option, many still won’t get it.  I mean think about, this issue is pretty much the same as retirement and social security.  I would argue that most people would rather spend money on stuff today than save it for retirement or pay for something like health insurance.  Why should someone who does plan for these situations be punished because other people do not?  As the saying goes, “Poor planning on your part does not constitute an emergency on my part.”

The solution should be controlling the cost of health care, not necessarily how to pay for it.  Why not treat hospitals the same way we treat utility companies — we are looking at an oligopoly with hospitals anyways, right?  It’s not practical to have hospitals compete over price, but there should probably be some sort of pricing guidelines so patients, who are really customers, do not end up paying too much.  Fix what hospitals charge for health care and the problem should go away.

After all, insurance profits aren’t that good.