yas's blog

Who knows the fanatastic technology called commet?
Commet is the final weapon to our website much more interactive!!
Of course, you know Lingr!! Very Amazing web service.
Don't you want to develop the web site like Lingr with commet technology??
Here is your fire starter :)
At very first, we should install one plugin which is called "Shooting star!!"
This plugin makes your rails application fly up to the star and your request to the web server directly reflects to the reader of your web application.
OK, that's enough to enlight.
Start the very small tutorial. This tutorial makes your appilcation commet :)

  1. #1: First of all, create your own project
  2. $ rails real_chat
  3. #2: Second, install the shooting star plugin with gem command
  4. $ gem install shooting_star
  5. #3: change the direction
  6. $ cd real_chat
  7. #4: initialize the shooting star, this command reacts nothing but don't worry :)
  8. $ shooting_star init
  9. #5: generate the bottom technology of commet with the generator given by shooting star
  10. $ ruby script/generate meteor
  11. #6: Also you can get the chat scaffold type the following command
  12. $ ruby script/generate chat
  13. #7: Launch your web server!!
  14. $ ruby script/server
  15. #8: Shooting star also needs to be launched
  16. $ shooting_star start

OK that's all, now time to call your buddy and try the application
http://localhost:3000/chat is your brand new comet application.
there is no Ruby code... Agile!! Be agile!! Hahaha!!
Time talk today's dinner dynamically with this application :)

I hope you enjoy the tutorial!!
Thanks a lot :)

Hi all devils!!
How are you.
Yas is reactivated finally :)

Today I tried some tricky situation.

I needed to compact second dimensional array, which includes some id's and other elements.

Using id and detect the target elements and remove them.
Oh my English is getting worse day by day...
But I believe code talks everything instead of me :)
Ok today's small piece of Ruby code is following

  1. #Compact the second demencional array
  2. arr = [[0,"miyake","password"],[1,"miyake","hoge"],[2,"hoge","hoge"]]
  3. @target = 0
  4. arr.each {|a|
  5. if a[0] == @target
  6. arr[@target] = nil
  7. end
  8. }
  9. p arr.compact

Enjoy if you have some comment or any more great idea!!
Please share with us! Thanks from Japan!

Who enjoys the podcasting on your PC ??

I found the great podcasting all the stuff are releated by Ruby on Rails.

You can get the some good idea from here.

Rails is still progressing with the video!!

Of cource, this web site is free and you can download the heaps of Rails tips.

Try and watch the Rails cast!!

[Rails cast]

http://www.railscasts.com/

Enjoy your developing!! thanks!!

Hi all!!
Ok getting start the tutorial with wonderful plugin which is called Ajax Scaffold Generator.

Basically, Rails Scaffolding never generates the Ajax based interface. However, this plugin gives you the comfortable user interface. This time, try to create the very very simple user management system. Please, follow the simple instruction below to create the application!!

CREATE DATABASE AND TABLES

DATABASE: rails_demo1
TABLE   : users*
 

*"users" table should contain the username and password field and put more features if you want!!

5 Steps to be happy!!

  1. #Creating project skelton
  2. $ rails devils_demo1
  3. #Creating Model
  4. $ ruby script/generate model User
  5. #Installing Ajax Scaffold Generator
  6. $ gem install ajax_scaffold_generator
  7. #Creating Ajax Scaffolding
  8. $ ruby script/generate ajax_scaffold admin User
  9. #launch Web server and Confirm!!
  10. $ ruby script/server

check and play with your application with following URL
http://localhost:3000/admin/
Oh... this time there is no Ruby code(T3T)!! However fair enough!!
Ok, next time we can start the real Ajax tutorial with Rails!!
See you next week!! Bye-bye!!

Hi guys yas is here.

starts small Ajax tutorial in the middle of this week.

Please look forward that :D

Syndicate content