Archive for December, 2005

Weirdest PC Case Mods

December 24th, 2005

Saw the The Top 10 weirdest case mods today. Case mods refer to modification of the computer cabinet. The weird modifications include a case shaped like an atom bomb and one like toilet.

I had seen the WMD (Weapon of Mass Destruction) mod a while ago and found it cool. It’s one of people’s favorites. I remember seeing cases with water pipes inside them to cool the processor back in 2003 in CeBIT.

I have not really seen cool mods in India though. People typically go in for a black cabinet or some fancy rounded corners. Looks like we are behind the world here! What’s the coolest mod you have seen?

Flex Datagrid Editing

December 23rd, 2005

If somebody has a simple solution to this, do let me know!

My head is currently spinning trying to figure out how to make an editable datagrid in Flex 2 Alpha 1. All the examples of this show a datagrid, a collection of text boxes and a few buttons. Selecting an item in the DataGrid will bind the value with the TextInput. (Which happens via the cellEditor routine I believe). You change the value in Text box, and click Update and it goes to the DataGrid.

I don’t want such round trips. Can’t we simply do inline editing and update the dataProvider right there? And, how about sending this to the backend for an actual update? Flash’s RDBMSResolver was a great thing, is there anything like that on Flex yet?

If I write my on cellEndEdit event handler, I get some strange errors of 0 being out of bound.
RangeError: Index '0' specified is out of bounds
at mx.collections::ListCollectionView/getItemAt()
at mx.collections::ListCollectionView/
http://www.macromedia.com/2005/actionscript/flash/
proxy::getProperty()

I couldn’t find many answers to these questions, and am hoping I get something soon!

Reuters Pictures of the Year

December 21st, 2005

Pictures of the Year 2005 by Reuters

Excellent pictures, moments captured really well! The Reuters’ Pictures of the Year 2005 show cases 40 photos taken around the world throughout the year. A must see!

Set Focus on a Cell in Datagrid in Flex 2.0

December 15th, 2005

To set focus on a particular cell in Datagrid in Flex use the setFocusedCell(object,boolean) function. The object requires two properties itemIndex and columnIndex. Column index as the name signifies is the index or the column number of the column you want to select. Item index is the index or the row number of the row you want to select.

So your code would look something like this (dg is the instance name of the DataGrid):

var __focusedCell:Object = new Object();
__focusedCell.itemIndex = 1;
__focusedCell.columnIndex = 2;
dg.setFocusedCell(__focusedCell,true);

So the above code would select the cell of 2nd row and the 3rd column. Remember indexes start from 0 and not 1 :)

Dynamic Text and Masking in Flash

December 15th, 2005

Ever cracked your brains out wondering why your dynamic text field does not show the text when its masked??? I have been struggling with this problem from some time now.

All you need to do is embed characters. Select character sets that you want to embed from the embed option in the text field properties. Characters that you have embeded will be shown … none others!!

« Prev