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 [...]

Enable Expose and Spaces for the Magic Mouse

download BetterTouchTool

Flex printing using FlexPrintJob

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

ส่วน FlexPrintJob ก็คล้ายๆกัน แต่เอา Component ยัดลงไปได้เลย

  1. Create an instance of the FlexPrintJob class
  2. var printJob:FlexPrintJob = new FlexPrintJob();
  3. Start the print job:
  4. printJob.start();
  5. Add one or more objects to the print job and specify how to scale them:
  6. printJob.addObject(myObject, FlexPrintJobScaleType.MATCH_WIDTH);
  7. Send the print job to the printer:
  8. printJob.send();
  9. Free up any unneeded objects.

Continue reading “Flex printing using FlexPrintJob” »

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 [...]