Posts Tagged ‘Rails’

After successfully going to ITTELKOM Bandung West Java Indonesia (Institut Teknologi Telkom / Telkom Technology Institute) in regards to introducing Ruby on Rails last year, this year the ambush would be at Unas Jakarta Indonesia (Universitas Nasional / National University) together with MySQL Indonesia Communities on Friday, September 11, 2009. 4:30pm – 5:30pm.

Speakers:

(1) Arie Kusuma Atmaja (Rubyist)Ruby itu apa sih?! (meaning: Ruby Introduction)

(2) Michael Smith (Ruby on Rails Developer)Ruby on Rails Introduction

(3) Idris Khanafi (Senior Database Administrator at Detik.Com)MySQL

RSVP @ Facebook Event. It’s totally FREE!.

Majulah Segenap Open Source Indonesia! Industry world and Education world must be united!

Dapatnya dari Googling, itu hasil pencariannya cuma 4, bahasa Jepang semua, nah source ini adalah translitannya yg sudah di Inggris kan oleh Google Translit.

Before

hardhitter:ad_new arie$ script/about
./script/../config/boot.rb:26:Warning: Gem::SourceIndex#search support for String patterns is deprecated, use #find_name
About your application's environment
Ruby version                 1.8.7 (i686-darwin9)
RubyGems version             1.3.4
Rails version                1.2.3
Active Record version        1.15.3
Action Pack version          1.13.3
Action Web Service version   1.2.3
Action Mailer version        1.3.3
Active Support version       1.4.2
Application root             /Users/arie/Documents/adpoint_enhancement/ad_new
Environment                  development
Database adapter             mysql

After

hardhitter:ad_new arie$ script/about
About your application's environment
Ruby version                 1.8.7 (i686-darwin9)
RubyGems version             1.3.4
Rails version                1.2.3
Active Record version        1.15.3
Action Pack version          1.13.3
Action Web Service version   1.2.3
Action Mailer version        1.3.3
Active Support version       1.4.2
Application root             /Users/arie/Documents/adpoint_enhancement/ad_new
Environment                  development
Database adapter             mysql

Bye Bye Deprecated Error !

We invite you guys, internet junkies, internet marketers, enterpreneurs, students, anyone who wants to socialise with Indonesian Rubyists, to attend Jakarta.rb July 2009.

As Indonesian Rubyists’ members request, we’ll cover Ruby on Rails Deployment from the Guru, and Suprie would want to pay his debt to present about Ruby Design Pattern two months ago.

Speakers:

Suprianto Pt (Software Engineer at Detik.Com) – “Ruby Design Patterns” “Rails Vim Demo”

Eddy Yuniar (System Architect at Detik.Com) – “JRuby on Rails Deployment on GlassFish”

Achmad Gozali (Software Engineer at Detik.Com) – “Ruby on Rails Deployment with Capistrano and Phusion Passenger”

Moderator:

Gerry Leo Nugroho.

Agenda:

  1. Introduction
  2. Presentation and Discussion
  3. Free Lunch

RSVP:

http://www.facebook.com/event.php?eid=98757623505 (in Bahasa Indonesia)

UPDATE

Selayang pandang Kopdar 25 Juli 2009

Sumber asli Facebook event oleh Gozali

Jakarta.rb yang pertama di tahun 2009 ini akan menghadirkan para Rubyist yang akan bercerita pengalamannya menggunakan Framework Ruby on Rails.

Mas Fajar dulu merupakan Java Developer yang akhirnya nggak mau lagi balik ke Java setelah merasakan magic – magic dari Ruby on Rails, kemudian Shinta yang terjerumus ke Ruby on Rails karena terpesona magic Rails yang sangat terkenal “Creating Blog in 10 minutes”, dan Gesit yang akan menceritakan pengalamannya dengan Rails setelah hidup bersama PHP.

Di sini juga kita akan ngobrol – ngobrol sedikit tentang event yang lebih besar ruang lingkupnya, sapa tau bisa ngundang Yukihiro ‘Matz’ Matsumoto atau David Heinemeier Hansson ke Indonesia.

Narasumber :
– Fajar Budiprasetyo (Koprol.com)
w2tags by Widi Harsojo
Shinta Maharkesti (Professional Ruby Freelancer)
R.Gesit Prasasti Alam (Detik.com)
– Others (to be updated.)

Anda ingin berbagi di sini, silakan contact Gozali, Gesit atau Gerry (via facebook)

It’s free!!

So.. Join us! We don’t bite!

Jakarta.rb April 2009

When?

18 April 2009, 10.00 – 13.00 WIB

Where?

Detik.Com
Aldevco Octagon Building Lt. 2
Jakarta

Free snacks and drinks !!

Where do you save your flash[:notice] howaa your record has been successfully created, updated, blah blah, deleted, etc ? Where do you save your config file ? YAML ? Hash ? Other ways.

Here is a list of ways I know, you can share yours, you can just leave your comment (no worries don’t be afraid to speak up as I don’t bite).

(more…)

[Terminal] Control M sama dengan Return.

[man port] if I couldn’t do man port on this macbook, simply just do

m:man arie$ man -M . port

m:man arie$ pwd

/opt/local/man

ato tinggal nambahin ginian doang (ah payah, tinggal perintah man man aja linggisnya arie nyeruduk nyeruduk)

export MANPATH=/opt/local/man:$MANPATH

di simpan taro di profile lah ato di bash profile nya ndiri lah

[vim for leopard] I just realised that the executable vim path is in /usr/bin which means it’s been delivered on leopard by default. I know I can easily compile vim myself to any OS that I love (like Mac OS X and Linux) but my question is why Apple doesn’t deliver ViM GUI by default? I think it’s nice to have cocoa ViM.

nginx path prefix: “/usr/local/nginx”

nginx binary file: “/usr/local/sbin”

nginx configuration file: “/usr/local/nginx/conf/nginx.conf”

nginx pid file: “/usr/local/nginx/logs/nginx.pid”

nginx error log file: “/usr/local/nginx/logs/error.log”

nginx http access log file: “/usr/local/nginx/logs/access.log”

nginx http client request body temporary files: “/usr/local/nginx/client_body_temp”

nginx http proxy temporary files: “/usr/local/nginx/proxy_temp”

nginx http fastcgi temporary files: “/usr/local/nginx/fastcgi_temp”

saya perlu restart monit kalo sudah ubah ubah konfigurasi file di conf monit. oh path pathnya dimana? Nih!

`monitrc` -> `/usr/local/etc/monitrc`

`ruby_application.monitrc’ -> `/usr/local/etc/monit.d/ruby_application.monitrc’

`ruby_application_staging.monitrc’ -> `/usr/local/etc/monit.d/ruby_application_staging.monitrc’

`mysql.monitrc’ -> `/usr/local/etc/monit.d/mysql.monitrc’

`nginx.monitrc’ -> `/usr/local/etc/monit.d/nginx.monitrc’

`nginx.conf` -> `/usr/local/nginx/nginx.conf`

`monit` -> `/etc/default/monit`

[monit sama nginx lagi] cara restart monit sudo /etc/init.d/monit restart

[monit sama nginx lagi] cara restart semua aplikasi sudo monit restart all -g nginx, awas kalo ada banyak aplikasi jalan tu bakal ke restart lho.

[monit lagi] kalau hasil dari sudo monit status keluar doesn’t have file gitu periksa lagi port yang dipakai apakah sudah bersesuaian dengan yang ada di config/deploy.rb. Kalau ternyata malah gak ada, ya berarti pasang di config/mongrel_cluster.yml

--- 
cwd: '/home/rubykusayang/apps/rubykumanis/current'
port: 8450
environment: 'production'
address: '127.0.0.1'
pid_file: '/home/rubykusayang/apps/rubykumanis/shared/pids/mongrel.pid'
log_file: '/home/rubykusayang/apps/rubykumanis/shared/log/mongrel.log'
servers: 2

note:

“rubykusayang” = a user home

“rubykumanis” = an application name

[alasan kenapa mongrel_cluster.yml] kenapa di sebagian aplikasi tidak pakai mongrel_cluster.yml, karena … linggis ah… why in some apps we use mongrel_cluster.yml, and in some apps we don’t use mongrel_cluster.yml ? Because … this file shouldn’t be in SCM repository, it should go to the server config only. so we always use mongrel_cluster.yml, it’s just being symlinked from #{deploy_to}/#{shared_dir}/config/mongrel_cluster.yml to #{release_path}/config/mongrel_cluster.yml . Temen sebelah ini juga nerangin kalau pakai merb gak pake mongrel_cluster.yml malah pake satu file di config nambah satu baris gitu doang, dengan senyuman pembunuhannya itu pendekar berpedang itu bilang : “it’s well documented”

[bash doang] if you got your Leoapard Terminal without color while doing “ls” command, simply add alias for it, ex. edit /Users/arie/.profile then just add there alias ls=”ls -G”. Done!

Nih caranya:

sudo /etc/init.d/monit restart

[check a method] check that attr_accessor :something so that don’t get panic to ask where “something” local variable come from. it came from method.

[pp rails] pp is not being required by default anymore since recent rails edge. so do give command require ‘pp’ first before using it in rails script/console.

m:e arie$ script/about|rak Edge
  10|Edge Rails revision       264
m:b arie$ script/about|rak Edge
  10|Edge Rails revision       9088

[edge rails active record] nice! since when it supports first, last, all just like Data Mapper!

And The Log:

 Country Load (1) (0.000837)   SELECT * FROM `countries` LIMIT 1
 Country Load (1) (0.000908)   SELECT * FROM `countries` ORDER BY countries.id DESC LIMIT 1

[edge rails] always check rake -T to get new cool features. it’s just getting longer and longer.