Happy Khmer New Year

April 13th, 2009 . Posted in Travel.

can’t believe ‘that ‘its new year time again! as happenning every year from 13-15 april, cambodian are celebrating new year, while normally its the best time to catch up with all family – relative members. so we take a chance to go back to where we’re originally from, home town ya! so do i. while m telling this to u, m on the bus back to kampong cham, srok tbong Kmom (roeng tom & teav). so if you were in phnom penh you will see everyone are busy traveling out of town. or somehow you might found everyone gathering at pagoda (wat) n many public and tourism places to play traditional game (not gambling). so its happy time, wish u all safe trip travelling and happy new year, year of cow. don’t eat cow! best wishes!

Posted from Shozu

Bat tov na? at BarcampKL

April 7th, 2009 . Posted in Event.



I’ve snapped some shot during the trip and event and it can be viewed more at BarcampKL2009

No word to say, because it’s been a while again disconnected. Last weekend i had a great time in Kuala Lumpur (KL) joining BarcampKL and meeting a lot of new people from around SEA, not just in Malaysia ifself that host the event.

Technorati Tags: ,

A new Rails App and Git

March 19th, 2009 . Posted in Uncategorized.

I’ve always got confuse (4get neng na) when mostly starting a new rails app and have it configured to work with git. So here’ s a quick note to remember:

new rails app:

1
$> sudo rails my_new_app

Then add a git to it:

1
2
$> cd my_new_app
$> sudo git init

Then just tell git who were are:

1
$>git config --global user.name "Your Name"; git config --global user.email "your@email.com"

Tell git to ignore some files and folders
at application root create .gitignore file containing:

1
2
$> sudo touch .gitignore
$> sudo vim .gitignore

and you may add the following to .gitignore

1
2
3
4
5
log/*.log
tmp/**/*
.DS_Store
doc/api
doc/app

Create some more .gitignore files so the empty directories get tracked:

1
2
$> touch log/.gitignore
$> touch tmp/.gitignore

and commit:

1
2
$ git add .
$ git commit -m "initial Rails app"

That’s it!

Last Saturday

March 16th, 2009 . Posted in Event, social.

Last Saturday, was another day that we’ve metup, barcampers, to talk more about how the Barcamp Phnom Penh 2 would be. There was Jinja and Tharum also joining the discussion with four members from previous meeting, @chriscambo, @DarrenJenson, @Paul, and me.

We’ve been still fighting for the best venue to host, which some of the most important the venue should have are : Big Main Hall, Few Extra rooms around, and Some space outside. It’s kinda hard to find. Some have suggested to look again at CJCC, previous one the barcampphnompenh were hosted. But it’s not work as we do not want to host it at same same place.

Anyways, we’ve took sometime to share our discussion and planning here : http://barcamp.org/BarCampPhnomPenh
and more soon, we’d update the barcampphnompenh.org site for more information toward the next event.

You can also join by editing the page at http://barcamp.org/BarCampPhnomPenh

Rails Naming Convention

March 16th, 2009 . Posted in Code.

Sometime I feel confusing when getting a switch back to code from one language to one language. From PHP to Javascript to ActionScript3 and RubyOnRails, I was confusing the style to code in each language sometime, especially with naming conventions. So, here’s a quick note of naming convention in Rails

Model Naming Convention

Table: orders
Class: Order
File: /app/models/order.rb
Primary Key: id
Foreign Key: customer_id
Link Tables: items_orders

Controller Naming Convention

Class: OrdersController
File: /app/controllers/orders_controller.rb
Layout: /app/layouts/orders.html.erb

View Naming Convention

Helper: /app/helpers/orders_helper.rb
Helper Module: OrdersHelper
Views: /app/views/orders/… (list.html.erb for example)

Tests Naming Convention

Unit: /test/unit/order_test.rb
Functional: /test/functional/orders_controller_test.rb
Fixtures: /test/fixtures/orders.yml

hope not to confuse again :-/
Technorati Tags: , ,