# Monday, 09 February 2009

Words just cannot express…

posted on Monday, 09 February 2009 16:12:00 (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
# Thursday, 22 January 2009

So a dev buddy popped a question in IRC the other day.  He was trying to host an ad/offer thing inside of an iframe, but the offer checked for this and redirected the top page to itself.  He had been wracking his brain trying to work around this, and it looked like an interesting problem, so I stepped up to the plate.

First we attempted to simply overwrite location.replace with an empty function.  This seemed to work on IE but did nothing on FF3.  It also became apparent that this method would fail as a subsequent refresh gave us different javascript that simply changed the location.href.  FAIL.

I did a bit of googling on the issue and stumbled across a forum post suggesting the use of onBeforeUnload on the parent page.  I played around with this idea, getting mixed results, but since there seemed like no other way, I dug a bit deeper.  I was trying to do this by hand, with no libraries, and decided to bring in a little help since I didn't care to handle all the x-browser event nonsense.  I loaded up prototype.js and reworked my code to use it.  The following emerged:

function windowUnload(evt) {
var ifr = $('ifr');

if (ifr == evt.element()) {
evt.stop();
}
}

Event.observe(window, 'unload', windowUnload);
$('ifr').observe('unload', windowUnload);

The id 'ifr' is the iframe holding the offer/ad.  This also manages to prevent any unload checks that the embedded page might popup.

Enjoy!

posted on Thursday, 22 January 2009 14:45:01 (Central Standard Time, UTC-06:00)  #    Comments [2] Trackback
# Thursday, 08 January 2009
He’s finally here!! Well, I’m a slacker really, since he’s been here for 6 weeks now. Enjoy a few pictures!
posted on Thursday, 08 January 2009 15:21:00 (Central Standard Time, UTC-06:00)  #    Comments [3] Trackback
# Friday, 24 October 2008
So we had a 3D/4D ultrasound done week before last. I feel like such a slacker for not having these and all of the others posted sooner. Below are some of my favorites from the batch we had done.
posted on Friday, 24 October 2008 15:50:00 (Central Daylight Time, UTC-05:00)  #    Comments [2] Trackback
# Friday, 29 August 2008

While we were in Florida we had been told to visit a restaurant called Boondocks.  They have some great burgers there and another really curious attraction:  Bread/Fry addicted fish...

posted on Friday, 29 August 2008 15:42:12 (Central Daylight Time, UTC-05:00)  #    Comments [0] Trackback
Back at the beginning of August, we spent a week in Florida. Below are some highlights.
posted on Friday, 29 August 2008 10:59:28 (Central Daylight Time, UTC-05:00)  #    Comments [0] Trackback
# Friday, 16 May 2008

A couple of months ago, my wife and I found out that we were pregnant.  We've been extremely worried for the past month because she was rear-ended while driving to class one day, but now we know we're almost clear.  She had her first ultrasound yesterday, and we found out that we have a healthy, very bouncy, 3.6cm baby.  Being that she's at 10 weeks, we're almost done with the worries.  Once we clear the first trimester, the risk goes down a great deal.  I'm so excited that I can barely stand it, hehe.  So without further ado:

Hello World!

Hello Again

posted on Friday, 16 May 2008 16:29:38 (Central Daylight Time, UTC-05:00)  #    Comments [4] Trackback
# Tuesday, 04 March 2008

So we've been both working on and putting off the new view system in Decal for ages.  Checksum did a lot of work to give us something to extend, and we've been chugging along with that.  We have a couple of semi-usable controls, and a simple form/view loader.  The integration with Decal still lacks a great deal, but there's one very big problem with the system:  It's fugly.

image

Above you can see NVS or Decal.Forms in our test container.  It's not going to win any beauty pageants for some time.

We do have a powerful theme system that goes along with NVS though.  Once the controls stabilize, and we start working on performance, it shouldn't be hard to make things look great.  Of course, none of us have any artistic talent so it'll never look that good (unless we can con an artsy person into the core team).

In support of this effort (though mostly just so I can say I finally finished rewriting it) I've put some effort into reviving Portal Opus.  I had been sitting on the framework for ages now and decided a couple of days ago to go ahead and integrate Ken's DatUtils to speed up the progress (his spell table object probably saved me an entire night of coding easily).  Right now it supports all of the textures that Decal supports and loads the skill and spell tables.  I'm going to fool-proof it a bit and post an alpha in the near future.  After that, I'm going to start building a model viewer into it too.

image

posted on Tuesday, 04 March 2008 03:30:53 (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
# Friday, 22 February 2008

My wonderfully amazing wife gave me the coolest present for Valentine's day:  she named a star for me.  Even though I'm well aware that it will never be used officially, it's still one of the best gifts that I could have been given.  Below is a not-so-great view from Google Earth.  This summer, I'm going to see about getting some photos taken to show off.

ge_dp1

posted on Friday, 22 February 2008 04:05:15 (Central Standard Time, UTC-06:00)  #    Comments [1] Trackback
# Friday, 25 January 2008

this.age++;

The years seem to keep getting shorter, and I seem to be getting less and less done.  I'm hoping to change that this year since I've been running this site for 4 years now and have only made a handful of posts.

I'm looking to make some pretty big changes to both of my sites in the near future.  Paradoxlost.com will become much less Decal-centric in the future.  I have considered both hosting my personal projects on this site and creating a projects sub domain on paradoxlost with the ability to categorize things much better.  Either project will be fun to write.

I have two paths that I intend to follow for site upgrades.  I'll be rewriting this site using the new ASP.NET MVC framework (available here, lots of information from ScottGu here).  My non-windows sites will be moving to Python, particularly extending the web.py framework.  I love playing with python, and I've found web.py to be particularly useful for play.  It's very non-intrusive.

Decal is still moving forward.  I don't know what the future holds for AC, but we do still throw code into poor old Decal.  It's been in beta for so long that I think parts of it are getting moldy.  To help with things we recently recruited a new guy into the core team.  Those of you who still visit #acdev know him as Flynn and on VN/IGN he goes by Thorfinn_Sigurdssen.  He jumped right into the new view system, and it actually saw a lot of code churn before the holiday season (and final exams).

And for anyone starving for a new release of decal, join #acdev (irc.sorcery.net).  We could use some lively discussions to get us interested and motivated in AC again.  Who knows, you might even convince us to reactivate our AC accounts!

Until next time!

posted on Friday, 25 January 2008 14:08:08 (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback