About Me: Jawaad Mahmood: 30, Muslim, Canadian, freelance, doing consulting in Tokyo, Japan.

Transformers: War for Cybertron for PS3?

December 10, 2009

Looks like a new wargame for PS3 coming out next year by Activision.  This actually looks quite good; I wonder if Hasbro is being influenced by Halo, whose toys apparently sold quite well?  That’s what the speculation is like at the source (TFW2005.com).

It might be the end of terrible TF games if true; video gaming as an equal of animation (whereas it has been an afterthought until now).

The Optimus design is a nice break from those awful/busy movie designs.  It seems (at least somewhat) based on TF: War Within Optimus Prime.

Comments Off

Array_walk and the userdata variable.

December 9, 2009

I have a horrible issue with the userdata variable.  As it is defined, it does not accept something by reference, leaving me only capable of modifying the original array that I pass to it.

Previously you could have done this:

array_walk($owners, 'OwnerOutput::generate_owner_list', &$output)
array_walk($owners, 'OwnerOutput::generate_owner_list', array(&array_walk($owners, 'OwnerOutput::generate_owner_list', array(&$output));
Unfortunately, this does not work anymore.  I understand that I can simply modify owners if I wanted to, but I’d much rather keep the text output in $output and owners in $owners.
The solution to this is absurd, but it works:
array_walk($owners, 'OwnerOutput::generate_owner_list', array(&$output));
You need to modify the generate_owner_list function, but otherwise this works and the output is all in the right place.
Comments Off

Archives 
March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 February 2005 December 2004 November 2004 October 2004 September 2004

Creative Commons License
All text and images under 1024 x 768 pixels on this site are licensed under a Creative Commons Attribution 3.0 Unported License.
I require a link back to the original page of the article/image. If the image/article
is not public (IE: It is not present in an article on the blog), you may not reproduce it without permission.