Archive for 2008

Here’s a quick lunch time post to share a simple snippet.

It’s no new technology to have a page break out of frames when they’re not supposed to be in frames. But what if you do want the page to appear in a frame and only break the frame if a link is clicked? Well then we turn to our trusty jQuery and use this little code snippet:

  1. if (top.frames.length != 0) {
  2.    $("a").click(function(){
  3.       this.target = "_parent";
  4.    });
  5. }

Why would you want to do this? That’s a fair question. For one of our clients at work they embed the header from their site onto the page for a site which sells merchandise for them. Now, we could have created a separate header but then when the header gets updated it needs to be changed in two places. This way it’s just one header file to maintain.

Hopefully this saves other developers ten minutes of their lives.

Programming is getting paid to do puzzles. Some are harder than others, some are put the cylinder in the round hole level of difficulty, others near MENSA level challenges. Over the past few days I’ve been trying to fix an issue which amounted to numerous hours trying to bang out a solid solution, in the end I went with the less elegant solution.

» Read the rest of the entry..

No they aren’t a new branch of Google. They’re a new brand of diapers aimed at being, well, good for the environment.

Found via Inhabitat, which in turn linked to their cutely named site, Inhabitot.

Going Green is finally beginning to really gain more traction and this is one area that convenience has caused huge damage to our environment. Disposable diapers take 500 years to decompose, these gDiapers flush down the toilet and are akin to toilet paper in terms of life it seems.

Check it out: gDiapers: the planet’s flushable diaper

I got a good chuckle out of this comment in some code at work:

/** --------------------------------------
/**  Indy!  Bad Dates!
/** --------------------------------------*/

I’m going through a php file that builds a schedule for one of our clients and this comment preceded the handling of bad dates or incorrect dates in the database. It took me a second to get it but I love it. I’ll be using this in any of my future date processing functions.

At first I was shocked I had missed the news that he died given that he’s an idol to me, Don LaFontaine passed away on Sept. 1st which is while I was at Dragon*Con and so the headline slipped by. I still hold secret dreams of doing voice overs, movie trailers and such and for that he’s an icon to me.

Your voice will be missed, the movie trailers will be worse without you sir.

Watch the short video about Don after the jump.

And remember, Heaven’s got a new announcer for St. Peter.
» Read the rest of the entry..


No I haven’t heard any rumors about it. This is just common sense.

Microsoft has a browser because it’s the door out of their platform and if they didn’t have it, their users were going out the window using the very popular alternative: Netscape. Windows installed the door and made it standard, sure enough people started using it. » Read the rest of the entry..

Excitement can leave us breathless. Our hearts pounding in our chests. Our hands jittery. It can sharpen your focus or cause a burst of creativity as your mind expands to explore all the options over this excitement. It’s like noise for your soul. » Read the rest of the entry..

The problem with having a week long of rain for a hurricane/tropical storm is that it makes it very hard to be productive. I mean, the flooding, property damage and deaths are serious too, but the loss of productivity is hard to overcome. So as a weekend goes this one was quite productive to help overcome the week of slacking. » Read the rest of the entry..