Solution for 1067: Implicit coercion of a value of type String to an unrelated type mx.core:IFactory

Got this error in Flex?

1067: Implicit coercion of a value of type String to an unrelated type mx.core:IFactory.

You tried the following type of thing in your MXML and it worked:

itemRenderer="com.example.MyItemRenderer"

But now you set it in actionscript and you get this error.

Solution:

item.itemRenderer = "new ClassFactory(MyItemRenderer);"

Header Renderer Example

In my case I had the following in my Flex 4.6 project and it was working fine:

A Shorter PIN Might Be More Secure against Smudge Attack

In an interesting little mathematical exercise, Zach Pace from the team implementing the new picture sign-in for Windows 8 says that on a phone with a 4-digit pin, 4 unique digits is the most secure against a smudge attack. I contend that he is wrong, and that 3 unique digits would be more secure.

The Best CS Graduates Can Even Write "Hello World"

I've just been reading some fascinating articles. This guy writes a post of which I would describe about the first third as fascinating, correct, vital insight for its target audience (young developers). The rest of the post is interesting too. He mentions some interesting information, such as the allegation lots of programmer job applicants can't actually program. Is it true? Let me tell you a story:

How to install Redis as a service on Centos 6.0

Update: Please checkout my new and improved (incidentally how can something be new and improved? Either it's new, or it's improved, in which case it's not new) article Install Redis as Service on Centos 6, which is a better guide.

Flex Print-Specific Chart

The documentation on printing in Flex is pretty sparse. There are some unrealistically simple examples and no treatment of real printing situations, apart from an interesting article (in the Flex 4.5 doco in this case) called using a print-specific output format. It would be great to see more comprehensive examples along this line involving other objects. For example, what about printing charts?

Grails CodeNarc Jenkins Integration

Robin Bramley has kindly integrated the CodeNarc XML output with the Hudson Integrations plugin and explained to us how to get this working nicely with Grails.

I encountered a few obstacles getting it going on my new Jenkins installation.

Distributed Denial of Service Attack (DDoS): A Crowd in a Department Store

What is a Distributed Denial of Service Attack (DDoS)? Imagine you work in the shoe section of a department store called “Harold’s”. People come to you to ask advice about shoes and try them on, and if they like them they go off to the cash register and buy them. In an IT sense you’re a “server” that might normally “serve” web pages to people surfing the internet.

Horse Floats Site in Australia

I'm helping some people out with their horse floats business in Australia. The site is based on the webs.com platform which allows a novice user to create a relatively nice site, but presents its set of challenges.

Force Refresh of Flex DataGrid when dataProvider changes

Given the following code: [Bindable] private var dgLines:ArrayCollection; If find that when making changes to objects inside dgLines the datagrid does not automatically reflect this. The problem is based around the fact that the bind watcher doesn't notice that dgLines has been updated. I figured out I could force update like this: dg.dataProvider = dgLines; But that is rather a hack don't you think? FlexCoders mailing list to the rescue. The answer is: ArrayCollection(dg.dataProvider).refresh(); Or the simplified version in our case:

Grails, GDS and Gravity Step by Step Guide

This guide shows you how to configure Groovy and Grails to run with basic Gravity messaging over Granite Data Services.

The Grails version used was Grails 1.2.1. The gdsflex plugin version used was a 0.8 working version.

Note capitals denote symbolic references, not literal characters e.g. GRAILS-PROJECT-LOCATION might be C:\wspace\messaging. So here goes:

Create Grails Application

grails create-app messaging

Pages

Subscribe to Salt Websites RSS