I'm an RIA Developer who owns a motorcycle custom paint shop, who loves to race anything with wheels. I also enjoy woodworking, cooking, fine wines, liqueurs and dark beers. So if nothing else my blog should be eclectic.  

Category: Development

Jun 20 2008

FireFox 3 has Infinet Loop Protection

I had to write a conversion utility to move an old database contained a few hundred thousand records from MySQL to MSSQL, making the structure more normalized and running some calculations, bla bla bla. In my need to bang this out quickly and since it was a one time throw it away app I wrote a quick ColdFusion script to do the transformation for me and save some time.

I decided to run in blocks and do a CFLOCATION at the bottom of the page, essentially creating on the fly pagination of my work.

Well as an FWI for developers, if FireFox redirects too many times you get a nice phat error... Not really a huge deal and nothing we ever have to worry about with a normal application; but this is something I had never run into before having always been an IE guy before FF3 beta...

1 comments - Posted by Russell Brown at 3:16 PM - Categories: ColdFusion | Debugging | Development

Jun 20 2008

Weather API? I need history...

I'm working on a side project that is racing related and I need to retrieve weather data for upwards of the last two years or at least all of 2007.

I don't want weather forcasts, thats easy to find. I'm looking for a weather report for what happened on dayX at zip code or lat/lon X/X. Even better would be if I could give more specific time information...

Does anyone have experience with a product that will allow me access to this information?

TIA

5 comments - Posted by Russell Brown at 2:24 PM - Categories: Development

Jun 17 2008

Be a lemming; download FireFox 3 Today

If you want to join in on the heard of sheep downloading FireFox3 final today, the downloading will commence at 1pm East Coast time. Which if you ask me is an odd time to make something available; and yes I will be one of the sheep downloading.

Hopefully plugin makers will be updating semi-quickly to the new stable release.

0 comments - Posted by Russell Brown at 8:11 AM - Categories: Development | General News

Jun 16 2008

Transfer: <property> and <manytoone> don't play well together

Last week I started a new project and I decided to use Transfer-ORM. So far I've been happy with it's offerings aside from one severe headach my limited knowledge on the product has created. In my database I have multiple depths of linking, I would like to leverage the <manytoone> ability of Transfer, howevere I also need to use these same fields in a readByPropertyMap call.

My goal is to be able to use eventId as a property while being able to "getEvent()" and get back a transfer object. The Issue: You can't have the same a column in your config as is the link column in a <manytoone>. Transfer is nice enough to create the supporting methods for your linked tables/objects, but fails to give you a convenient way to "filter" by them. I feel this is an utmost basic use of object based design but I could be wrong.

The "Solution":
<object name="ObjectName" table="tblName">
    <id name="sessionId" type="numeric" generate="false" />
    <property name="eventIdLink" column="eventId" type="numeric" ignore-insert="true" />

    <manytoone name="Event">
        <link to="events.Event" column="eventId"/>
    </manytoone>
</object>

  1. I appended "Link" to my property name. This is how it needs to be referenced in the readByPropertyMap()
  2. Added ignore-insert="true" to my properties
  3. renamed my nodes to the Object of what is returned.

I really think that if I should be ably to have a <property> named eventId and a <manytoone> named event on column eventId and have the app just know not to try and build 2 setEventId methods. Hopefully this will save someone else a few minutes time in their playing with Transfer...

 

2 comments - Posted by Russell Brown at 11:31 PM - Categories: ColdFusion | Development | Transfer

May 29 2008

FireFox in Search of Guinness World Record

Thats right. When FireFox 3 goes live sometime in June they are hoping to declare a "download day" and set the record for most software downloads in 24 hours. You can check out their FireFox Download Day Headquarters where you can pledge your allegence to the rebel forces, I mean FF.

I have to say, I've been using FF3 since beta 2 and I think it is a huge improvment over FF2 and for the first time a huge improvement over IE7. I have to admit I couldn't get on the FireFox bandwagon until this release came out. Now I can't wait for it to go live so the rest of these small bugs can go away and more plugin developers update to the new version campatability.

0 comments - Posted by Russell Brown at 7:35 AM - Categories: Development

May 19 2008

Running Multiple Versions of Firefox

Having recently switched to using Firefox and having always complained about Microsoft's PIA move by making it so difficult to run multiple version of IE at one, I was suprised to find that FireFox has the same stupid issue. Fire fox uses the same default non segrated profile path for every version.

The Fix (same idea for win and mac I believe):

Run c:\{your Firefox path}\firefox -profilemanager -no-remote

Create a 2 new profiles, I called mine FireFox3Rc1 and Firefox2. Use alpha-numeric and stay away from spaces. Once you've created them go ahead and exit.

Now you must modify the shortcuts for firefox, respectfully.

c:\{FF2 Path}firefox.exe -P FireFox3 -no-remote
c:\{FF3 Path}firefox.exe -P FireFox3RC1 -no-remote

Technically there is no need to change profiles for both FF version. But I'm assuming I'll even have a 3rd version here of FF3 soon and I hate using default profile paths...

Read more...

1 comments - Posted by Russell Brown at 3:06 PM - Categories: Debugging | Development

May 13 2008

Wow, sorry for the feed dump!

Due to server and software changes my blog paths were no longer the same and I stopped getting aggregated by Adobe Feed/MXNA. I ignored this aside from an email that didn't get me anywhere; until this afternoon. With the new feeds software the feeds list actualy worked and I found out what URL Adobe was looking for my feed at. A quick 301 error inside a cfif tag fixed my problems...

Unfortunetly the result was ALL of my posts showing up in Adobe feeds at the top all at once. For this I apologize, I had figuered it would go off my modified or posted date, not when it read it for the first time...

<cfif url.event EQ "showBlogRss">
    <cfheader statuscode="301" statustext="Moved Permanently">

    <cfheader
          name="Location"
          value="http://www.EmpireGPServices.com/blog/feeds/rss.cfm"
    />
    <cfabort>
</cfif>

1 comments - Posted by Russell Brown at 4:27 PM - Categories: ColdFusion | Debugging | Development | General News

Categories

Monthly Archives

Tech Blogs I Read

Motorcycle Links