Shaun Mccran

My digital playground

24
F
E
B
2009

Red 'Resident Evil 5' Xbox 360 unveiled!

Engadget have just put out a press release that there is a confirmed 'red' elite 360 being released! The controller looks like the previously limited edition USA red model.

This red version is a limited edition Resident Evil 5 release.

Full article here

Makes me wonder if they are going to release a full green console, much like the green controllers here.

23
F
E
B
2009

Ever needed to make a template 'sleep' for a defined period?

One of the code snippets I've had scattered around is a short java command to make the current thread sleep, for a set period.

Its handy if you want to add a set period of delay to an application, for any reason.

view plain print about
1<cfscript>
2
3thread = createObject("java", "java.lang.Thread");
4thread.sleep(javaCast("long", 5000));
5
6
</cfscript>

It creates the java thread object, and uses the sleep method to pause the thread for whatever numeric value you give it. In this example 5000ms.

23
F
E
B
2009

Non selectable drop down options in forms

I was recently developing an application that had several select fields in a form. The first dynamically populated the second, but with differing sets of data, that needed to be within the same select box, but seperated in some way.

It was only then that I found there is a 'optgroup' html tag for select boxes! This tag is used to group together related options in a select list. It automatically bolds the text, and is unselectable.

view plain print about
1<cfset variables.mylist = "1,2,3,4">
2<cfset variables.mySecondlist = "5,6,7,8">
3
4<cfoutput>
5<select name="number">
6<cfloop list="#variables.mylist#" index="I">
7    <option value="#I#">#I#</option>
8</cfloop>
9
10<optgroup label="Second List"></optgroup>
11
12<cfloop list="#variables.mySecondlist#" index="I">
13    <option value="#I#">#I#</option>
14</cfloop>
15
16</select>
17
18</cfoutput>

Just insert it where you want your category break to be, and assign it some text.

Handy for breaking up large sections of options.

23
F
E
B
2009

Source control client for Photoshop

I already use tortoise SVN and subclipse for Eclipse as a source control plugin. This handles the code base nicely, but I was recently sent this link for an ex-work colleague.

Pixelnovel is a web based source control application designed for photoshop.

It looks like a basic version is free, so I think I'll give it a whirl....

_UNKNOWNTRANSLATION_ /