Not long now…

Originally uploaded by digitaljohnuk
Impressive Sculptures by Adam Beane
Modeled using a material called CX5 that he developed himself. Soft like clay when warm, hard like plastic when cold. Stunning!
More on his website here.
ModX eForm Bug
I have been following this tutorial:
http://wiki.modxcms.com/index.php/Multilanguage_eForm
But unfortunately the current eForm release (1.4.4.5) has a bug that affects this tutorial. You cannot have a language variable with the eform=”" attribute! So given their example, if you submit the form it would output something like this:
Some errors were detected in your form:
The following required field(s) are missing:, ,
I found the problem and to resolve load up eform.inc.php and replace line 186:
Original:
$desc = $fld[1];
Replace with:
$desc = formMerge($fld[1],$_lang);
Hope this helps some people!
Odd characters within MODX Snippet Parameters
Some installs of MODX have issues parsing quotes and equals within snippet parameters. So solve this change the code in document.parser.class.inc.php.
Original part of code (MODx 0.9.5) of this function looks like:
function evalSnippets($documentSource) {
...
$snippetParamCount= count($tempSnippetParams); // Find this place of code. It's near the end of function
for ($x= 0; $x < $snippetParamCount; $x++) {
if (strpos($tempSnippetParams[$x], '=', 0)) {
if ($parameterTemp= explode("=", $tempSnippetParams[$x])) { // here's the problem!
$fp= strpos($parameterTemp[1], '`');
$lp= strrpos($parameterTemp[1], '`');
if (!($fp === false && $lp === false))
$parameterTemp[1]= substr($parameterTemp[1], $fp +1, $lp -1);
$parameter[$parameterTemp[0]]= $parameterTemp[1];
}
}
...
}
To fix the issue, this part of code should be changed to:
function evalSnippets($documentSource) {
...
$snippetParamCount= count($tempSnippetParams);
for ($x= 0; $x < $snippetParamCount; $x++) {
$param = $tempSnippetParams[$x];
$eqPos = strpos($param, '=', 0);
if ($eqPos) {
$parameterTemp[0] = substr($param, 0, $eqPos);
$parameterTemp[1] = substr($param, $eqPos+1);
$fp= strpos($parameterTemp[1], '`');
$lp= strrpos($parameterTemp[1], '`');
if (!($fp === false && $lp === false))
$parameterTemp[1]= substr($parameterTemp[1], $fp +1, $lp -1);
$parameter[$parameterTemp[0]]= $parameterTemp[1];
}
}
...
} // end of method
Flex / ArrayCollection / Sort delay?
Hey:
Im having a little issue with the FLEX Sort class with an ArrayCollection. It seems sorting is not instant? In my application I get data, sort it, then set the dataprovider of a List to the sorted data.
Visually, the application shows the data in its unsorted form, then a couple of moments later the List refreshes and shows the sorted data.
Is there a workaround?
Flex Project + Browser Resize + Safari?
Hi:
I just came across a strange bug with either Safari or the Flash Player…
My current Flex projects resizes correctly when the user resizes the browser, but for some reason on Safari it only detects changes to width of the browser. If you are careful and resize the browser vertically the flash does not resize at all!
Example:
- Use Safari, Mac or PC
- Browse to: http://www.milesaldridge.com/
- Resize the browser carefully vertically
- Be amazed that the flash content does not scale! (unless you accidentally scaled horizontally)
Has anybody encountered this problem before? Is there a workaround for this?
TextArea.htmlText FIXED!
I have been having an issue with setting htmlText with img tags embeded. Usually the first time you set the htmlText of a text field it is ok, but when you set it again you get an error:
The supplied DisplayObject must be a child of the caller
There was no elegant solution to this so I have created one. Here it is…
package ****{
import mx.core.mx_internal;
use namespace mx_internal;
import mx.controls.TextArea;
public class FixedTextArea extends TextArea{
public function FixedTextArea(){
super();
}
override public function set htmlText(value:String):void{
mx_internal::removeTextField();
mx_internal::createTextField(-1);
super.htmlText = value;
}
}
}
It’s never been easy to download movies.

