Datagrid cell validation in Action script

take datagrid with property editable=”true”

 public var EditingRowIndex:int;private function testItemEditEnd(event:AdvancedDataGridEvent):void
{
EditingcolIndex=event.columnIndex;
//Previous column index
ComparecolIndex=event.columnIndex -1;
EditingRowIndex=event.rowIndex;
colReference=genricDG.columns[EditingcolIndex];
//Gives column name for Comapre Column
comReference=genricDG.columns[ComparecolIndex][“dataField”];
var CompareValue:int=genricDG.dataProvider[EditingRowIndex][comReference];
var EditedValue:int = parseInt(TextInput(event.currentTarget.itemEditorInstance).text);
 if(CompareValue > EditedValue)
{

//no validation coz satisfies the condition
//total.text =String(parseInt(total.text) + EditedValue);

}

 else
{

//PREVENT DEFAUL WILL PERSIST VALUE OF DATAGRID CELL
event.preventDefault();
//VALIDATION AFTER CONVERTIN itemEditorInstance INTO TextIput
TextInput(event.currentTarget.itemEditorInstance).errorString =
“Value Must be Less than or qual o” + comReference;

}

}

Wikipedia Proxy

Use Mozilla Firefox.
Go To Developer tools >> Fire bug >> Open Fire Bug

After opening go to Scripts tag.

Go to Wikipedia.com

Search for “blackout” in Firebug. hit enter..

Click left of line number to put break point.

Reload wikipedia page.

I am sorry if I am not being ethical.. 😀

Apache PHP Configuration with 5.3

I have noticed that there is problem when configuring Apache 2.2 with PHP when download executor or Zip,
Apache requires trade safe version on PHP.

you might get errors like

Cannot load C:/php/php5apache2_2.dll into server

Can’t locate API module structure `php5_module’ in file

You can download Trade Safe PHP version for Apache

http://windows.php.net/download

Configure FlexCover For Flash Builder 4

JFR,

Following link is very useful in setuping FlexCover for code coverage. Also available for Flex 4.*

http://vimeo.com/2185199

 

Regards,

Ranjit

Bankers algorithm for computer server Hardware requirment optimization

For the Banker’s algorithm to work, it needs to know three things:

  • How much of each resource each process could possibly request
  • How much of each resource each process is currently holding
  • How much of each resource the system currently has available

Resources may be allocated to a process only if it satisfies the following conditions:

  1. request ≤ max, else set error condition as process has crossed maximum claim made by it.
  2. request ≤ available, else process waits until resources are available.

In Computer system approximate request requirement for all possible request for any commercial servers are known, then why most of commercial hardware system server use 128 GB RAM, 64 Processor, 300 TB hard drive for single instance of hosted server.

Bankers calculate needs of money for proper utilization, then indirect money needs are not considered, energy conversion…..

 

install flash player 10 into centos 5.x 64 bits

My preferred OS is CentOS 5 64 bits. I do all my development work and testing on my 3 Dell servers, at home. However, being an online shopping addict and passionate motorcycle rider, it happens for me to use Firefox and browse the Internet for something to rant about… beside coding. The problem is that most sites like YouTube etc. need the Flash Player for their site software. Adobe decided not to release a x64 Linux version of their most recent player, so the .i386 RPM will not work with Firefox x64, unless you use my trick.

The fix is easier then you think. Everything I’ve posted below was tested on a CentOS 5.2 x64 Gnome environment. Let’s fix that Flash Player to run on 64 bits, shall we?

1. Start by installing those libraries (.i386 and .x86_64):
# yum install curl compat-libstdc++-33 glibc nspluginwrapper

2. Once done with the kitchen work, it is time to install the Flash Player RPM.
# rpm -ivh /tmp/flash-plugin-10.0.12.36-release.i386.rpm

3. Close all Firefox windows and open a new one. In the address bar, type:
about:plugins

You should see there the Flash Player and NPAPI wrapper. Now, go watch some movies on YouTube. Was that hard? There you have it, Flash Player with Firefox x64.
If you find this post useful, please link it into your blog. Have fun on the Net.

Flash SWF Protectors / AntiDecompiler

Open Source:

http://www.opaque.net/~dave/obfu/

Commercial :

Flash Anti-Decompiler without using source

http://www.bisguard.com/flash.html

SWF Protector

http://www.dcomsoft.com/

The best one lot of people found were .. tokaos

http://www.tokaos.com/

Regards,

Ranjit Sail

Draw a Circle based on Time/Timer

I am writing this post so that people searching can benifit. When it came to me no search engine could find what I was looking for.

Well Drawing a Circle based on timer is not a good idea, Yes it is not.

In flash runtime, the specific timing of both scediled screen-update checks and TimerEvent.Timer events not guranted. The Event.ENTER_FRAME event often executes later the time scheduled by designated frame rate, and TimerEvent.Timer events often occur later than the time specified by Timer object’s delay variable.

And you get unpredicatable animation.

to gurantee that given object will travel a specified distance in specified time,

USE SOME THING CALLED AS VELOCITY BASED ANIMATION

Refer To Essential Action Script 3 book (Page 627)

I will put code in short while….