From ariekusumaatmaja at gmail.com Thu Mar 1 02:45:29 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Thu, 1 Mar 2007 14:45:29 +0700 Subject: [toombila] About Toombila's Version Message-ID: <8c1bd61c0702282345i49780c18x96df3b3c28a77582@mail.gmail.com> For it's versioning system, Toombila use the names of the Kings of Kingdom of Sunda, a kingdom that existed in west part of Java from the 7th century to the 16th century. It was started from Tarusbawa (0.1), Harisdarma (0.2) and Tamperan (0.3). Right now I'm still rereading much thoroughly of branches and tags, but may I ask why Niwatori don't use versioning like 0.0.1, 0.0.2, etc ? -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang! http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis! From diki at diki.or.id Thu Mar 1 17:04:36 2007 From: diki at diki.or.id (diki at diki.or.id) Date: Fri, 2 Mar 2007 05:04:36 +0700 Subject: [toombila] About Toombila's Version In-Reply-To: <8c1bd61c0702282345i49780c18x96df3b3c28a77582@mail.gmail.com> References: <8c1bd61c0702282345i49780c18x96df3b3c28a77582@mail.gmail.com> Message-ID: <7e97dfb80703011404p58b1c99cq67f7d9bbadb992be@mail.gmail.com> On 3/1/07, Arie Kusuma Atmaja wrote: > Right now I'm still rereading much thoroughly of branches and tags, > but may I ask why Niwatori don't use versioning like 0.0.1, 0.0.2, etc > ? Well, mostly because it was started just as a little personal project so I think [major.minor(+non alphanumeric string if it's needed)] basic versioning will be enough (http://en.wikipedia.org/wiki/Software_versioning). But then since it become public project and now using SVN, I think now we can use major.minor[.revision[.build]] , thanks to remind us about this :) I never maintain a long lifecycle/age software before (mostly my project is one time deployment), so we need suggestions here. Regards, Niwatori www.diki.or.id From ariekusumaatmaja at gmail.com Thu Mar 1 23:25:07 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Fri, 2 Mar 2007 11:25:07 +0700 Subject: [toombila] About Toombila's Version In-Reply-To: <7e97dfb80703011404p58b1c99cq67f7d9bbadb992be@mail.gmail.com> References: <8c1bd61c0702282345i49780c18x96df3b3c28a77582@mail.gmail.com> <7e97dfb80703011404p58b1c99cq67f7d9bbadb992be@mail.gmail.com> Message-ID: <8c1bd61c0703012025l38c673eaied2f5f3f8949e486@mail.gmail.com> >From my svn working copy sayang:~/toombila arie$ svn info svn info Path: . URL: svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/trunk Repository Root: svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila Repository UUID: ceb0740c-32dd-4bc6-ba5b-8021fa1d6934 Revision: 8 Node Kind: directory Schedule: normal Last Changed Author: ariekusuma Last Changed Rev: 8 Last Changed Date: 2007-02-27 15:21:01 +0700 (Tue, 27 Feb 2007) sayang:~/toombila arie$ svn ls svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags svn ls svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags ariekusuma at rubyforge.org's password: ariekusuma at rubyforge.org's password: REL_0_2_0/ sayang:~/toombila arie$ svn cp svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/trunk svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2_0 svn cp svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/trunk svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2_0 ariekusuma at rubyforge.org's password: Committed revision 10. sayang:~/toombila arie$ svn rm svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2_0/trunksvn rm svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2_0/trunk ariekusuma at rubyforge.org's password: Committed revision 11. sayang:~/toombila arie$ svn rm svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2_0 -m 'remove dir name as its name directly came from svn cp command after this' svn rm svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2_0 -m 'remove dir name as its name directly came from svn cp command after this' ariekusuma at rubyforge.org's password: Committed revision 12. sayang:~/toombila arie$ svn cp svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/trunk svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2 -m 'Harisdarma release' svn cp svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/trunk svn+ssh://ariekusuma at rubyforge.org/var/svn/toombila/tags/REL_0_2 -m 'Harisdarma release' ariekusuma at rubyforge.org's password: Committed revision 13. sayang:~/toombila arie$ On 3/2/07, diki at diki.or.id wrote: > Well, mostly because it was started just as a little personal project > so I think [major.minor(+non alphanumeric string if it's needed)] > basic versioning will be enough > (http://en.wikipedia.org/wiki/Software_versioning). > > But then since it become public project and now using SVN, I think now > we can use major.minor[.revision[.build]] , thanks to remind us about > this :) > > I never maintain a long lifecycle/age software before (mostly my > project is one time deployment), so we need suggestions here. OK, now, Harisdarma's been set into tags REL_0_2. http://rubyforge.org/viewvc/tags/?root=toombila As I always remember this project is a place to learn then I think to make us used to svn and rails I'd posted a similar topic to my blog, and this is pretty basic, not that advanced as I actually do want the deep of my heart. I hope there would be much acceleration in Indonesia of svn, rails, ruby, as I myself haven't read Pak Endy's book (I only referenced to Blond's book although I won't refuse if I got offered his book for free and review it on my blog hehe) So, all we do from now is commiting to trunk. We musn't edit codes in tags. So, the way we work with svn is checking out from trunk, working with the code, and commit.. on and on.. If it's a release time, we can copy the trunk to the tags making a REL_0_3 I think that would be enough for learners. But if you lurk at Jim's rake (the way he code with rake on this rubyforge), he actually did the same like us :p Actual advanced svn usage would work from branches, if it's ok, then merge it to trunk, (we can use switch or checkout to other dirs to avoid confusion). We can also distinguish many things from branches, trunks, so after all our project maintenance would be very easy to handle ;-) but OK OK no need further to go to "complicated things" there, I guess what I said basic svn usage would be an acceleration also for ones who weren't used to use svn. Svn + Rails + Ruby = cool. Ganbatte. -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang! http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis! From ariekusumaatmaja at gmail.com Tue Mar 6 04:49:53 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Tue, 6 Mar 2007 16:49:53 +0700 Subject: [toombila] -+ 2.days.before_commit Message-ID: <8c1bd61c0703060149n133ff35eib2fce1b77c4eabfe@mail.gmail.com> as this is toombila maillist I think it deserves to let you view it for the 1st time :-) Right now I'm still doing functional testing and integration testing, good radio for TDD would be around 1:2, and my ideal would be 1:3, not 1:0.6, I hope later y'all guys can improve it as come along with the better toombila in the future. Of course I'll also have to write a readable svn log for this commit (well I won't promise when I will commit please). Perhaps I'll also blog about it (for the 2nd time), I'd rather do a sort of "Tut Wuri Handayani" meaning .... I'm not that good in translating it into the exact words in English, perhaps would be: "Great Encouragement" (for Indonesian Speakers, CMIIW) sayang:~/toombila arie$ svn di |wc -l 6142 sayang:~/toombila arie$ rake stats (in /Users/arie/Documents/opensource-projects/toombila) +----------------------+-------+-------+---------+---------+-----+-------+ | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | +----------------------+-------+-------+---------+---------+-----+-------+ | Controllers | 815 | 584 | 9 | 76 | 8 | 5 | | Helpers | 110 | 80 | 0 | 13 | 0 | 4 | | Models | 181 | 150 | 17 | 17 | 1 | 6 | | Libraries | 0 | 0 | 0 | 0 | 0 | 0 | | Components | 0 | 0 | 0 | 0 | 0 | 0 | | Integration tests | 0 | 0 | 0 | 0 | 0 | 0 | | Functional tests | 235 | 115 | 16 | 34 | 2 | 1 | | Unit tests | 506 | 351 | 14 | 57 | 4 | 4 | +----------------------+-------+-------+---------+---------+-----+-------+ | Total | 1847 | 1280 | 56 | 197 | 3 | 4 | +----------------------+-------+-------+---------+---------+-----+-------+ Code LOC: 814 Test LOC: 466 Code to Test Ratio: 1:0.6 sayang:~/toombila arie$ Long Live XP! Long Live TDD! Long Live Rubyists! -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang! http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis! From ariekusumaatmaja at gmail.com Tue Mar 6 05:23:32 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Tue, 6 Mar 2007 17:23:32 +0700 Subject: [toombila] add mac Message-ID: <8c1bd61c0703060223ub7eb161kc4923dbd3ff4e907@mail.gmail.com> http://rubyforge.org/projects/toombila how to add mac also besides windows and linux at the page? I feel like an idiot not that familiar with this rubyforge navigation hehe, sorry. -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang! http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis! From ariekusumaatmaja at gmail.com Tue Mar 6 21:56:01 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Wed, 7 Mar 2007 09:56:01 +0700 Subject: [toombila] Tut Wuri Handayani Toombila svn commit Message-ID: <8c1bd61c0703061856l24c1b9bcj7392865d856f923b@mail.gmail.com> Right now I don't have chance to blog, so I guess I'll just copy paste this to y'all guys. Oh, about Functional and Integrated testing et all pls read my comments in source code. thx. keep up the good work for toombila guys. sayang:~ arie$ cd toombila/ sayang:~/toombila arie$ svn di|wc -l 6148 sayang:~/toombila arie$ rake stats (in /Users/arie/Documents/opensource-projects/toombila) +----------------------+-------+-------+---------+---------+-----+-------+ | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | +----------------------+-------+-------+---------+---------+-----+-------+ | Controllers | 815 | 584 | 9 | 76 | 8 | 5 | | Helpers | 110 | 80 | 0 | 13 | 0 | 4 | | Models | 181 | 150 | 17 | 17 | 1 | 6 | | Libraries | 0 | 0 | 0 | 0 | 0 | 0 | | Components | 0 | 0 | 0 | 0 | 0 | 0 | | Integration tests | 0 | 0 | 0 | 0 | 0 | 0 | | Functional tests | 244 | 108 | 16 | 34 | 2 | 1 | | Unit tests | 506 | 351 | 14 | 57 | 4 | 4 | +----------------------+-------+-------+---------+---------+-----+-------+ | Total | 1856 | 1273 | 56 | 197 | 3 | 4 | +----------------------+-------+-------+---------+---------+-----+-------+ Code LOC: 814 Test LOC: 459 Code to Test Ratio: 1:0.6 sayang:~/toombila arie$ svn help co checkout (co): Check out a working copy from a repository. usage: checkout URL[@REV]... [PATH] If specified, REV determines in which revision the URL is first looked up. If PATH is omitted, the basename of the URL will be used as the destination. If multiple URLs are given each will be checked out into a sub-directory of PATH, with the name of the sub-directory being the basename of the URL. Valid options: -r [--revision] arg : ARG (some commands also take ARG1:ARG2 range) A revision argument can be one of: NUMBER revision number "{" DATE "}" revision at start of the date "HEAD" latest in repository "BASE" base rev of item's working copy "COMMITTED" last commit at or before BASE "PREV" revision just before COMMITTED -q [--quiet] : print as little as possible -N [--non-recursive] : operate on single directory only --username arg : specify a username ARG --password arg : specify a password ARG --no-auth-cache : do not cache authentication tokens --non-interactive : do no interactive prompting --config-dir arg : read user configuration files from directory ARG --ignore-externals : ignore externals definitions sayang:~/toombila arie$ svn help ci commit (ci): Send changes from your working copy to the repository. usage: commit [PATH...] A log message must be provided, but it can be empty. If it is not given by a --message or --file option, an editor will be started. If any targets are (or contain) locked items, those will be unlocked after a successful commit. Valid options: -q [--quiet] : print as little as possible -N [--non-recursive] : operate on single directory only --targets arg : pass contents of file ARG as additional args --no-unlock : don't unlock the targets -m [--message] arg : specify commit message ARG -F [--file] arg : read data from file ARG --force-log : force validity of log message source --editor-cmd arg : use ARG as external editor --encoding arg : treat value as being in charset encoding ARG --username arg : specify a username ARG --password arg : specify a password ARG --no-auth-cache : do not cache authentication tokens --non-interactive : do no interactive prompting --config-dir arg : read user configuration files from directory ARG sayang:~/toombila arie$ svn ci --editor-cmd e Log message unchanged or not specified a)bort, c)ontinue, e)dit a sayang:~/toombila arie$ svn ci --editor-cmd v ariekusuma at rubyforge.org's password: Adding MAINTAINER Adding TODO Sending app/controllers/addressbook_controller.rb Sending app/controllers/adminbookmark_controller.rb Sending app/controllers/admincontent_controller.rb Sending app/controllers/adminforum_controller.rb Sending app/controllers/adminuser_controller.rb Sending app/controllers/application.rb Sending app/controllers/channel_controller.rb Sending app/controllers/content_controller.rb Sending app/controllers/forum_controller.rb Adding app/helpers/admincontent_helper.rb Adding app/helpers/adminforum_helper.rb Sending app/helpers/adminuser_helper.rb Sending app/helpers/application_helper.rb Adding app/helpers/channel_helper.rb Sending app/helpers/content_helper.rb Adding app/helpers/forum_helper.rb Sending app/models/addressbook.rb Sending app/models/addressgroup.rb Sending app/models/bookmark.rb Sending app/models/category.rb Sending app/models/comment.rb Sending app/models/department.rb Sending app/models/edition.rb Sending app/models/forumpost.rb Sending app/models/forumtopic.rb Sending app/models/group.rb Sending app/models/page.rb Sending app/models/pages_part.rb Sending app/models/user.rb Sending app/views/addressbook/_form.rhtml Sending app/views/addressbook/_formgroup.rhtml Sending app/views/addressbook/edit.rhtml Sending app/views/addressbook/editgroup.rhtml Sending app/views/addressbook/list.rhtml Sending app/views/addressbook/listbygroup.rhtml Sending app/views/addressbook/new.rhtml Sending app/views/addressbook/newgroup.rhtml Sending app/views/addressbook/show.rhtml Sending app/views/adminbookmark/_form.rhtml Sending app/views/adminbookmark/edit.rhtml Sending app/views/adminbookmark/list.rhtml Sending app/views/adminbookmark/new.rhtml Sending app/views/admincontent/_form.rhtml Sending app/views/admincontent/list.rhtml Sending app/views/admincontent/new.rhtml Sending app/views/adminforum/list.rhtml Sending app/views/adminuser/_form.rhtml Sending app/views/adminuser/_formdepartment.rhtml Sending app/views/adminuser/admin_home.rhtml Sending app/views/adminuser/edit.rhtml Deleting app/views/adminuser/editdepartment.rhtml Sending app/views/adminuser/list.rhtml Sending app/views/adminuser/login.rhtml Sending app/views/adminuser/new.rhtml Sending app/views/adminuser/newdepartment.rhtml Sending app/views/channel/chat.rhtml Sending app/views/content/index.rhtml Sending app/views/content/show.rhtml Sending app/views/forum/list.rhtml Sending app/views/forum/listpost.rhtml Sending app/views/forum/listtopic.rhtml Adding app/views/forum/new_post.rhtml Adding app/views/forum/new_topic.rhtml Sending app/views/forum/newpost.rhtml Sending app/views/forum/newtopic.rhtml Sending app/views/layouts/application.rhtml Sending config/en-lang.rb Adding config/fr-lang.rb Sending config/id-lang.rb Sending db/migrate/001_create_users.rb Sending db/migrate/002_create_departments.rb Sending db/migrate/003_create_first_users.rb Sending db/migrate/005_create_bookmarks.rb Sending db/migrate/006_create_addressbooks.rb Sending db/migrate/007_create_groups.rb Sending db/migrate/008_create_addressgroups.rb Sending db/migrate/009_create_categories.rb Sending db/migrate/010_create_pages.rb Sending db/migrate/011_create_channels.rb Sending db/migrate/012_create_first_channels.rb Sending db/migrate/013_create_channels_users.rb Sending db/migrate/014_create_messages.rb Sending db/migrate/015_create_pages_parts.rb Sending db/migrate/016_create_comments.rb Sending db/migrate/017_create_forums.rb Sending db/migrate/018_create_forumtopics.rb Sending db/migrate/019_create_forumposts.rb Sending db/migrate/020_create_editions.rb Sending db/schema.rb Sending public/stylesheets/main.css Adding test/fixtures/addressbooks.yml Adding test/fixtures/bookmarks.yml Adding test/fixtures/categories.yml Adding test/fixtures/channels.yml Adding test/fixtures/comments.yml Sending test/fixtures/departments.yml Adding test/fixtures/editions.yml Adding test/fixtures/forumposts.yml Adding test/fixtures/forums.yml Adding test/fixtures/forumtopics.yml Adding test/fixtures/groups.yml Adding test/fixtures/pages.yml Adding test/fixtures/pages_parts.yml Sending test/fixtures/users.yml Adding test/functional/addressbook_controller_test.rb Adding test/functional/adminbookmark_controller_test.rb Adding test/functional/admincontent_controller_test.rb Adding test/functional/adminforum_controller_test.rb Sending test/functional/adminuser_controller_test.rb Adding test/functional/channel_controller_test.rb Adding test/functional/content_controller_test.rb Adding test/functional/forum_controller_test.rb Adding test/unit/addressbook_test.rb Adding test/unit/bookmark_test.rb Adding test/unit/category_test.rb Adding test/unit/channel_test.rb Adding test/unit/comment_test.rb Sending test/unit/department_test.rb Adding test/unit/edition_test.rb Adding test/unit/forum_test.rb Adding test/unit/forumpost_test.rb Adding test/unit/forumtopic_test.rb Adding test/unit/group_test.rb Adding test/unit/page_test.rb Adding test/unit/pages_part_test.rb Sending test/unit/user_test.rb Transmitting file data ............................................................................................................................... Committed revision 14. sayang:~/toombila arie$ svn st ? db/development_structure.sql ? vendor/rails sayang:~/toombila arie$ svn up ariekusuma at rubyforge.org's password: At revision 14. sayang:~/toombila arie$ svn log ariekusuma at rubyforge.org's password: ------------------------------------------------------------------------ r14 | ariekusuma | 2007-03-07 09:30:33 +0700 (Wed, 07 Mar 2007) | 27 lines "Tut Wuri Handayani", has said, ArieKeren. Many Unit Testing. Actually want to do Functional Testing and even Integration Testing, but Toombila complains more and more about MVC, controller's logic first, so I don't touch it. Fix AR Association use form_tag do and end, instead of the deprecated start_form_tag, but better use form_for use 1 action method instead of bloated 4 action methods (new, create, edit, update) into (edit). If you didn't do TDD (Testing Driven Development) at least do not remove them so I don't have to regenerate and skip (although it's just fast on my laptop, but it's annoying, but to tell you the truth it didn't make me angry, so you're lucky). general use links in Helper do not complicate things with PHP's convention for module and Ruby's mixin style for module as well added TODO added MAINTAINER added lang-fr.rb but has not finished, shame on you, ArieKeren! Beautify Indentation Fix pagination , adding parameter option so that we can let users view multiple paginations at one page temporary method File Upload destructor, I'll let Toombila Developers think they really should be placed in liv I don't want to touch chat, but reloading the whole page every x seconds is not a good idea, my tail is roaring, it's better using AJAX for it, add DOM ID after the last inserted DOM ID chat message. Only use post method if you want to go with modified data, otherwise just use plain get method. So don't exaggerate things with button_to, you should just use link_to with perhaps div with special stylesheet to beautify it or image. change some field name, like user_id, so not (created_by, and so on). change public field, do not confuse yourself with Ruby public, protected, private use select helper, not doing looping from view like PHP. Whilst it's up to developers to set array values for options in View, like what agile said or in Controller, like what ArieKeren's style Rubyist is not shy to use true ? : styntax for if then else use javascript_include_tag :defaults and tiny_mce or just iterate them from array destroy should be :method => :delete place all css in css file many many code refactor, documentations added in source code. ------------------------------------------------------------------------ r8 | ariekusuma | 2007-02-27 15:21:01 +0700 (Tue, 27 Feb 2007) | 1 line finish ignoring dir ------------------------------------------------------------------------ r7 | ariekusuma | 2007-02-27 15:17:16 +0700 (Tue, 27 Feb 2007) | 1 line add tmp ------------------------------------------------------------------------ r6 | ariekusuma | 2007-02-27 15:13:27 +0700 (Tue, 27 Feb 2007) | 1 line removing tmp dir from svn ------------------------------------------------------------------------ r5 | ariekusuma | 2007-02-27 15:11:11 +0700 (Tue, 27 Feb 2007) | 1 line removing all log files from svn! ------------------------------------------------------------------------ r4 | ariekusuma | 2007-02-27 15:06:58 +0700 (Tue, 27 Feb 2007) | 1 line dummy log as it'll be ignored ------------------------------------------------------------------------ r3 | ariekusuma | 2007-02-27 14:50:05 +0700 (Tue, 27 Feb 2007) | 2 lines use toombila_(dev||test||prod) database and toombila username as a default database.yml ------------------------------------------------------------------------ r2 | ariekusuma | 2007-02-27 14:24:28 +0700 (Tue, 27 Feb 2007) | 2 lines initial harisdarma import ------------------------------------------------------------------------ r1 | ariekusuma | 2007-02-27 14:15:46 +0700 (Tue, 27 Feb 2007) | 2 lines Dummy svn layout, it contents of svn layout default: tags, branch, and trunk ------------------------------------------------------------------------ sayang:~/toombila arie$ -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang! http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis! From diki at diki.or.id Wed Mar 7 00:14:58 2007 From: diki at diki.or.id (diki at diki.or.id) Date: Wed, 7 Mar 2007 12:14:58 +0700 Subject: [toombila] Tut Wuri Handayani Toombila svn commit In-Reply-To: <8c1bd61c0703061856l24c1b9bcj7392865d856f923b@mail.gmail.com> References: <8c1bd61c0703061856l24c1b9bcj7392865d856f923b@mail.gmail.com> Message-ID: <7e97dfb80703062114g765d6519y35fed0293685625e@mail.gmail.com> On 3/7/07, Arie Kusuma Atmaja wrote: > Right now I don't have chance to blog, so I guess I'll just copy paste > this to y'all guys. Oh, about Functional and Integrated testing et all > pls read my comments in source code. thx. keep up the good work As always, you're doing so fast :D Trapped with my office works and freelance works. my only toombila progress is sweeping the migration/AR initialization, magical fields etc.. And I think I should re-"svn co" today's update. > Many Unit Testing. > Actually want to do Functional Testing and even Integration Testing, > but Toombila complains more and more about MVC, controller's logic > first, so I don't touch it. Sorry to hear that, what kind of MVC complains? > Fix AR Association > use form_tag do and end, instead of the deprecated start_form_tag, but > better use form_for > use 1 action method instead of bloated 4 action methods (new, create, > edit, update) into (edit). > If you didn't do TDD (Testing Driven Development) at least do not > remove them so I don't have to regenerate and skip (although it's just > fast on my laptop, but it's annoying, but to tell you the truth it > didn't make me angry, so you're lucky). Now I'm starting to understand what you've called with "it's fun reading somebody else codes/svn". I've opposing my previous code with some latest code and I'm learning so much. Yappari omoshiroi yo! > general use links in Helper > do not complicate things with PHP's convention for module and Ruby's > mixin style for module as well You know what, now I have some short note collections about "php legacy: do and don't things on ruby" **lol** > added TODO > added MAINTAINER > added lang-fr.rb but has not finished, shame on you, ArieKeren! Ah now I remembered, I'd like to ask something about this constant method I used for language files handling (eg,: NAME="Nama"). Is it reserving memory resources? If it did, is it will be okay when the vocabularies getting bigger? > Beautify Indentation Thx for this neato efforts :D Now I'm using radrails so my codes will be more neat than before when I'm still using gedit (now I can do a whole blocks/lines indentation, yay! no more lazy tabbing ^_^) > I don't want to touch chat, but reloading the whole page every x > seconds is not a good idea, my tail is roaring, it's better using AJAX > for it, add DOM ID after the last inserted DOM ID chat message. Didn't do much on chat, I'm using CongressChat codes. If we have much time later, I'm very eager to learn "complete" AJAX stuff by refactoring this chat modul from scratch (recently inspired after read andry's entry about javascripts hehe) > Only use post method if you want to go with modified data, otherwise > just use plain get method. So don't exaggerate things with button_to, Another oops :( > you should just use link_to with perhaps div with special stylesheet > to beautify it or image. > change some field name, like user_id, so not (created_by, and so on). yup, now I got it, it's related with our previous discussion rite? > change public field, do not confuse yourself with Ruby public, > protected, private still don't get it, sorry. will catch up later (again :P) > use select helper, not doing looping from view like PHP. Whilst it's > up to developers to set array values for options in View, like what > agile said or in Controller, like what ArieKeren's style can't run from "it" :P , I think it happens when I can't find sample for my select case, the RoR's API info is too short.. googling result not very helpful that time.. bad keyword maybe, is it okay to buzz you for asking some cheesy "how to use" things like this? I know more googling effort must be resulting the answer for this.. but sometimes it just lost somewhere how.. :( > destroy should be :method => :delete > place all css in css file > many many code refactor, documentations added in source code. arigatou gozaimasu! thank you very much! too many things to do and too many things to learn.. somehow starting feeling tired and hopeless *__* argh.. Regards, Niwatori www.diki.or.id From ariekusumaatmaja at gmail.com Wed Mar 7 01:34:11 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Wed, 7 Mar 2007 13:34:11 +0700 Subject: [toombila] Tut Wuri Handayani Toombila svn commit In-Reply-To: <7e97dfb80703062114g765d6519y35fed0293685625e@mail.gmail.com> References: <8c1bd61c0703061856l24c1b9bcj7392865d856f923b@mail.gmail.com> <7e97dfb80703062114g765d6519y35fed0293685625e@mail.gmail.com> Message-ID: <8c1bd61c0703062234ib33353fv68201998a3650149@mail.gmail.com> On 3/7/07, diki at diki.or.id wrote: > etc.. And I think I should re-"svn co" today's update. yeah, once you get used to svn, you'll do often svn up when toombila developers grow / you know, like everyday or perhaps every 2 or 3 hours commit to trunk. Actually there is "udang dibalik batu" err... "my wish" when every toombila developers get used to svn, I want advanced svn usage being practiced. so there would be branch, bug, known bug, leaving history, oh well... of course Niwatori-kun must not develop it lonely. Others must do things too. > > > Many Unit Testing. > > Actually want to do Functional Testing and even Integration Testing, > > but Toombila complains more and more about MVC, controller's logic > > first, so I don't touch it. > > Sorry to hear that, what kind of MVC complains? like : sayang:~/toombila arie$ svn di app/views/content/index.rhtml -rPREV ariekusuma at rubyforge.org's password: ariekusuma at rubyforge.org's password: Index: app/views/content/index.rhtml =================================================================== --- app/views/content/index.rhtml (revision 13) +++ app/views/content/index.rhtml (working copy) @@ -1,34 +1,7 @@ - -
- <% show_front(1,5,'',0,1) %> - <%= @content %> + <%= content(@category1, @pages1) %>
- <% show_front(2,5,'',0,1) %> - <%= @content %> -
+ <%= content(@category2, @pages2) %> + \ No newline at end of file sayang:~/toombila arie$ that content usage complains when I do functional test here : sayang:~/toombila arie$ svn di test/functional/content_controller_test.rb -rPREV ariekusuma at rubyforge.org's password: subversion/libsvn_client/ra.c:815: (apr_err=195012) svn: Unable to find repository location for 'test/functional/content_controller_test.rb' in revision 13 sayang:~/toombila arie$ svn cat test/functional/content_controller_test.rb require File.dirname(__FILE__) + '/../test_helper' require 'content_controller' # Re-raise errors caught by the controller. class ContentController; def rescue_action(e) raise e end; end class ContentControllerTest < Test::Unit::TestCase def setup @controller = ContentController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end just take a look at only one method test_index below, we know it should assign category and pages, but.. oh well, MVC complains .. trace the log for that. # still errors # def test_index # get :index # assert_response :success # # assert assigns(:category1) # assert assigns(:category2) # assert assigns(:pages1) # assert assigns(:pages2) # end # def test_show # get :show, :id => 2 # assert_response :success # # assert assigns(:page) # assert assigns(:pages_part) # end end sayang:~/toombila arie$ > > > Fix AR Association > > use form_tag do and end, instead of the deprecated start_form_tag, but > > better use form_for > > use 1 action method instead of bloated 4 action methods (new, create, > > edit, update) into (edit). > > If you didn't do TDD (Testing Driven Development) at least do not > > remove them so I don't have to regenerate and skip (although it's just > > fast on my laptop, but it's annoying, but to tell you the truth it > > didn't make me angry, so you're lucky). > > Now I'm starting to understand what you've called with "it's fun > reading somebody else codes/svn". I've opposing my previous code with > some latest code and I'm learning so much. Yappari omoshiroi yo! yeah, as it's coming more and more interesting perhaps you should make a special topic to blog about this reading source code is fun. ;) again "udang dibalik batu" or "my wish" would Indonesian people ... errrr... Toombila developers .. errr ... .there would be many many more rubyists in Indonesia. > > added TODO > > added MAINTAINER > > added lang-fr.rb but has not finished, shame on you, ArieKeren! > > Ah now I remembered, I'd like to ask something about this constant > method I used for language files handling (eg,: NAME="Nama"). Is it > reserving memory resources? If it did, is it will be okay when the > vocabularies getting bigger? Analogy: of course using tbl_name for MySql table would be exaggeration. Using xml_files for table name would be good, but using xml_files as a field for it will be degrading it, so you'll have to do useless exageration @xml_file.xml_files in your view with your poor fingers. That's from poor fingers perspective. Now, from you name it : reserving memory resources, or I'd say it benchmarking, good question, you should do it from benchmare, check your pickaxe2 to do benchmark for that, and for many other related ruby/rails issues, like " (double quote) VS ' (single quote) usage. Array.uniq ... could be from profiler and benchmark from rails, but i'd rather choose different ruby codes for that. > > > Beautify Indentation > > Thx for this neato efforts :D Now I'm using radrails so my codes will > be more neat than before when I'm still using gedit (now I can do a > whole blocks/lines indentation, yay! no more lazy tabbing ^_^) yeah, we shouldn't always press tab, even when dealing with YAML who hates tabs, we shouldn't press space 2 times for always, ViM do the great job for it, but I used TextMate mostly though > > change public field, do not confuse yourself with Ruby public, > > protected, private > > still don't get it, sorry. will catch up later (again :P) ArieKeren's rule: you musn't name a field with Ruby's encapsulation. ex. script/generate scaffold_resource Bookmark name:string url:string shared:boolean yes I admit I do hate when someone used scaffold that one line above I used would only for a simple explanation purpose, you know, I change public to shared and set boolean as its type. > > > use select helper, not doing looping from view like PHP. Whilst it's > > up to developers to set array values for options in View, like what > > agile said or in Controller, like what ArieKeren's style > > can't run from "it" :P , I think it happens when I can't find sample > for my select case, the RoR's API info is too short.. googling result > not very helpful that time.. bad keyword maybe, is it okay to buzz you > for asking some cheesy "how to use" things like this? I know more > googling effort must be resulting the answer for this.. but sometimes > it just lost somewhere how.. :( Yes you can buzz me via this maillist :p (not YM). Perhaps Indonesian should force ArieKeren to make ArieKeren's book? You know what, I still remember Hal (Hal Fulton) kind of roaring at ruby-talk maillist a loong time ago when Perl guys shouted that they need a sort of CPAN then there was RubyGems as an answer for that. I, myself, think rdoc is a paradise for Rubyist, but I see many newbies out there kind of roaring about how poor rails API, sigh.. once I told my friend to ask 'em to make Video for my application guide they (yeah, hackers) laugh and said my dream was too much. So, ArieKeren's Book with Video sounds cool? Hope ArieKeren's got body and soul more than 9. > > > destroy should be :method => :delete > > place all css in css file > > many many code refactor, documentations added in source code. > > arigatou gozaimasu! thank you very much! > > too many things to do and too many things to learn.. somehow starting > feeling tired and hopeless *__* argh.. > > Regards, > Niwatori > www.diki.or.id > _______________________________________________ > Toombila-mailinglist mailing list > Toombila-mailinglist at rubyforge.org > http://rubyforge.org/mailman/listinfo/toombila-mailinglist > -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang! http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis! From ariekusumaatmaja at gmail.com Wed Mar 7 01:56:26 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Wed, 7 Mar 2007 13:56:26 +0700 Subject: [toombila] Tut Wuri Handayani Toombila svn commit In-Reply-To: <8c1bd61c0703062234ib33353fv68201998a3650149@mail.gmail.com> References: <8c1bd61c0703061856l24c1b9bcj7392865d856f923b@mail.gmail.com> <7e97dfb80703062114g765d6519y35fed0293685625e@mail.gmail.com> <8c1bd61c0703062234ib33353fv68201998a3650149@mail.gmail.com> Message-ID: <8c1bd61c0703062256r239da38ci97a3385ccfd80d00@mail.gmail.com> On 3/7/07, Arie Kusuma Atmaja wrote: > On 3/7/07, diki at diki.or.id wrote: > > etc.. And I think I should re-"svn co" today's update. > > yeah, once you get used to svn, you'll do often svn up when toombila > developers grow / you know, like everyday or perhaps every 2 or 3 > hours commit to trunk. > > Actually there is "udang dibalik batu" err... "my wish" when every > toombila developers get used to svn, I want advanced svn usage being > practiced. so there would be branch, bug, known bug, leaving history, > oh well... of course Niwatori-kun must not develop it lonely. Others > must do things too. this is a great place to see svn used : http://dev.rubyonrails.org/timeline -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren | YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # ayo praktek bahasa jepang! http://groups-beta.google.com/group/id-fr # ayo praktek bahasa prancis! there are lurkers who suck blood like dracula, beware of their fanks From diki at diki.or.id Thu Mar 8 12:35:28 2007 From: diki at diki.or.id (diki at diki.or.id) Date: Fri, 9 Mar 2007 00:35:28 +0700 Subject: [toombila] add mac In-Reply-To: <8c1bd61c0703060223ub7eb161kc4923dbd3ff4e907@mail.gmail.com> References: <8c1bd61c0703060223ub7eb161kc4923dbd3ff4e907@mail.gmail.com> Message-ID: <7e97dfb80703080935r2db16783o8013ef6c59d366ca@mail.gmail.com> On 3/6/07, Arie Kusuma Atmaja wrote: > http://rubyforge.org/projects/toombila > how to add mac also besides windows and linux at the page? I feel like > an idiot not that familiar with this rubyforge navigation hehe, sorry. Same as sourceforge, it was called trove classification. Just use (project's) Admin link to edit trove's dropdown options. Now Mac has been added ;) Sorry I'm forgot to include it. My iBook's electric adaptor blew up, didn't use mac for three weeks :(( Regards, Niwatori From diki at diki.or.id Thu Mar 8 13:06:08 2007 From: diki at diki.or.id (diki at diki.or.id) Date: Fri, 9 Mar 2007 01:06:08 +0700 Subject: [toombila] ArieKeren's suspicious note Message-ID: <7e97dfb80703081006n2e309623n255ff631e30054ab@mail.gmail.com> # ArieKeren's suspicious note: What's this one line below for? @addressgroup = Addressgroup.find( :all, :conditions => ["addressbook_id = ?", params[:id] ] ) In our addressbook we can create some group (addressgroup) to categorize our contacts (like in the mobile phone, u know the "friends, officemate, love etc." stuff :P). That line function is to check is there any addressgroup are made by us, if there is existing addressgroups then we'll have @addressgroup filled with our addressgroup names and will be listed on new contact form. And yes as your note said, I'll create method for this code. Regards, Niwatori www.diki.or.id From ariekusumaatmaja at gmail.com Thu Mar 8 22:15:39 2007 From: ariekusumaatmaja at gmail.com (Arie Kusuma Atmaja) Date: Fri, 09 Mar 2007 10:15:39 +0700 Subject: [toombila] browsable svn source code & Revision History Message-ID: <45F0D15B.8000407@gmail.com> check this out http://rubyforge.org/scm/?group_id=1850 I prefer people can browse toombila source code in svn and also know revision history. Could Niwatori-kun set that? tq -- Arie Kusuma Atmaja A.K.A Arie A.K.A ariekeren / YM! = riyari3 http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby http://groups-beta.google.com/group/id-jp # mari praktik bercakap jepang! http://groups-beta.google.com/group/id-fr # mari praktik bercakap prancis!