Calendar

January 2010
S M T W T F S
« Dec   Feb »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Setting up a Subversion Server on Ubuntu Gutsy Gibbon server

Setting up a Subversion Server on Ubuntu Gutsy Gibbon server
All the required packages are available in the Ubuntu repositories.
Installing Subversion
Use apt-get:
sudo apt-get update
sudo apt-get install subversion

Creating a Repository
Let’s say you want your repository to be in /var/svn/repos, type in these commands:
cd /var
sudo mkdir svn
sudo svnadmin create /var/svn/repos

In order to control who has access to [...]

Enable Expose and Spaces for the Magic Mouse

download BetterTouchTool

Flex printing using FlexPrintJob

วันนี้ว่างๆ ก็เลยนั่งลองหาดูว่า Flex มันติดต่อเครื่องพิมพ์ได้อย่างไร ก็เลยไปเจอเข้าว่ามันใช้ FlexPrintJob ในการทำงาน คล้ายๆกับ Java เลยที่ใช้ PrintJop แล้วก็ Draw Graphic ลงไปเอา
ส่วน FlexPrintJob ก็คล้ายๆกัน แต่เอา Component ยัดลงไปได้เลย

Create an instance of the FlexPrintJob class

var printJob:FlexPrintJob = new FlexPrintJob();

Start the print job:

printJob.start();

Add one or more objects to the print job and specify how to scale them:

printJob.addObject(myObject, FlexPrintJobScaleType.MATCH_WIDTH);

Send the print job to the printer:

printJob.send();

Free [...]

Flex Callback Function

public function firstFunction():void{
trace("call first function")
}
public function secondFunction(callbackFunction:Function):void{
trace("call second function")
callbackFunction()
}
public function thirdFunction():void{
trace("call third function")
}

Validate Data in DataGrid

itemEditBegin – Fired when you click on an editable cell of the datagrid (also when the editedItemPosition is set on an editable DataGrid)
itemEditBeginning – Fired when the mouse is released
itemEditEnd – Fired when the edit is committed / editor is destroyed there by terminating the edit session.

1
2
3
4
5
6
7
8
9
<mx:DataGrid editable=”true” id=”datagrid” x=”105″ y=”85″ [...]