Wednesday, March 26, 2008

Mozilla Firefox 3 Beta 4

So being the early adopter that I am, I ran out the other day and downloaded FF3 and so far I've been very impressed.

The only issue so far is when making very minor changes to websites under development the cache was keeping those updates from being displayed. By changing the cache size to 0 that issue has gone away.

Wednesday, March 12, 2008

Nested Repeaters In Flex 3 using XML

I've been working with .NET for the past few weeks (my latest excuse for not posting but thats a whole another subject...) so I've gotten attached to the idea of nested repeaters for display purposes.

I was looking for a simple example of doing the same if Flex but didn't find one so I figured I would post a little something.

It actually is very simple:

<mx:XML id="myXML" xmlns="">
<root>
<company title="Company 1" code="1">
<office name="Location 1" />
<office name="Location 2" />
<office name="Location 3" />
</company>
<company title="Company 2" code="2">
<office name="Location 1" />
<office name="Location 2" />
</company>
<company title="Company 3" code="3">
<office name="Location 1" />
<office name="Location 2" />
</company>
</root>
</mx:XML>


<mx:VBox width="100%" >

<mx:Repeater id="primaryRepeater" dataProvider="{myXML.company}">
<mx:Label text="{primaryRepeater.currentIndex} - {primaryRepeater.currentItem.@title}"/>

<mx:Repeater id="nestedRepeater" dataProvider="{myXML.company[primaryRepeater.currentIndex].office}">
<mx:Text htmlText=" -- {nestedRepeater.currentItem.@name}" width="75%"/>
</mx:Repeater>

</mx:Repeater>

</mx:VBox>

Flex 3 and Multiline Text

Once again I'm proved an idiot =)

I spent about 45 minutes looking around for a clever way of creating a multi-line label or text block in Flex and was rewarded with a whole lot of nothing...

probably because the solution to the problem is dirt simple, instead of using the label tag with text="yadda yadda" use a text tag with htmlText="yadda yadda" and a set width...

Tuesday, February 19, 2008

Another Problem with CMS?

We had yet another baffling error pop up with Ektron's CMS400.net V7.0.X...

The content blocks displayed as expected until anyone tried to log into the system to make changes. Based on the logs the authentication was fine but the user was presented with the very unhelpful message 'the device is not ready'. This only occurred on our live production machine, the back up (running as a mirrored system) did not suffer the same issue.

I spoke with Ektron and they didn't have anything in their knowledge base, googled the problem and nothing came up.

4 hours of trouble shooting later we discovered a problem with the WSE 3.0 process hanging up. Killing the offending process immediately solved the issue. Long story short, restarting the machine would have been much faster than finding the process... but now its out on the net ... hopefully it will save you the headache.

Best Headline of the Day

With out a doubt the best headline of the day goes to Wired.com for "Raelians Rocket From Clones to Clitorises"

Tuesday, February 12, 2008

Fooling the Ektron CMS400 login.aspx page

This probably will not be of any use outside of our environment but, I'll post it for my own sanity.

When confronted with this error when using a coldfusion form to submit the login.aspx on the Ektron CMS400.net

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that machineKey configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

The first thing to take a look at is the values to the hidden form elements that .net is kind enough to insert for state info and validation. These if these values are hard coded into your cheating login page then you will get the above error. (I would bet that this same issue will pop up anytime someone tries to submit a .net form)

Check __EVENTVALIDATION & __VIEWSTATE field values.