diff --git a/README.md b/README.md
index 99135e7..5c19074 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,7 @@ Table of contents
- [00529 UTF-8 (sample45.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00529_UTF-8.mdown)
- [00530 Open a new app window (sample46.rb, sample48.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00530_Open_a_new_app_window.mdown)
- [00531 Open the Shoes console window from your app (sample51.rb, sample55.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00531_Open_the_Shoes_console_window_from_your_app.mdown)
- - [00532 Customize Shoes Class (sample53.rb, sample53-1.rb, sample53-1.rb, sample53-2.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00532_Customize_Shoes_Class.mdown)
+ - [00532 Customize Shoes Class (sample53.rb, sample53-1.rb, sample53-2.rb, sample53-2.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00532_Customize_Shoes_Class.mdown)
- [00533 Image Effects with blur method (sample54.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00533_Image_Effects_with_blur_method.mdown)
- [00534 Video playback (sample59.rb, sample59-1.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00534_Video_playback.mdown)
- [00535 Scope: local variable and instance variable (sample60.rb)](http://github.com/ashbb/shoes_tutorial_html/tree/master/mdowns/00535_Scope__local_variable_and_instance_variable.mdown)
diff --git a/changelog.mdown b/changelog.mdown
index de62470..7d9e091 100644
--- a/changelog.mdown
+++ b/changelog.mdown
@@ -1,6 +1,6 @@
Change log:
-----------
-Oct 18th, 2009: Confirmed 00521-00532 with Policeman (0.r1263)
+Oct 18th, 2009: Confirmed 00521-01000 with Policeman (0.r1263)
Oct 17th, 2009: Confirmed 00508-00520 with Policeman (0.r1263)
Oct 15th, 2009: Confirmed 00507 with Policeman (0.r1263)
Oct 14th, 2009: Confirmed 00501-00506 with Policeman (0.r1263)
diff --git a/mdowns/00533_Image_Effects_with_blur_method.mdown b/mdowns/00533_Image_Effects_with_blur_method.mdown
index ba66f0b..407a797 100644
--- a/mdowns/00533_Image_Effects_with_blur_method.mdown
+++ b/mdowns/00533_Image_Effects_with_blur_method.mdown
@@ -36,3 +36,9 @@ INSIDE SHOES 2
Note
----
Shoes may crash without very enough interval between mouse clicks. Oh,... :(
+
+
+Policeman
+---------
+
+The sample54.rb worked well with Shoes-0.r1263. Still have *the above note*, though... :-P
diff --git a/mdowns/00534_Video_playback.mdown b/mdowns/00534_Video_playback.mdown
index e101c5b..83f951d 100644
--- a/mdowns/00534_Video_playback.mdown
+++ b/mdowns/00534_Video_playback.mdown
@@ -51,3 +51,11 @@ I referred to the following web site.
Just one-liner solution playing YouTube video on Shoes!
+
+**Note**: This one-liner doesn't work now. I'm not sure why. YouTube changed the API??
+
+
+Policeman
+---------
+
+Video is not supported so far.
diff --git a/mdowns/00535_Scope__local_variable_and_instance_variable.mdown b/mdowns/00535_Scope__local_variable_and_instance_variable.mdown
index 378320d..fca269a 100644
--- a/mdowns/00535_Scope__local_variable_and_instance_variable.mdown
+++ b/mdowns/00535_Scope__local_variable_and_instance_variable.mdown
@@ -26,3 +26,9 @@ This snapshot is created by the following setps.
- clicked 'new' button 30 times
- picked up and drew 6 ovals to the lower side
- picked up and drew 7 rects to the upper side
+
+
+Policeman
+---------
+
+The sample60.rb worked well with Shoes-0.r1263
diff --git a/mdowns/00536_edit_line_with_block.mdown b/mdowns/00536_edit_line_with_block.mdown
index 556986a..d561aea 100644
--- a/mdowns/00536_edit_line_with_block.mdown
+++ b/mdowns/00536_edit_line_with_block.mdown
@@ -39,4 +39,10 @@ By using edit\_line with block, this app can just update the sum every time one
**sample63.png**
![sample63.png](http://github.com/ashbb/shoes_tutorial_html/raw/master/images/sample63.png)
+
+
+Policeman
+---------
+
+The sample63.rb worked well with Shoes-0.r1263
diff --git a/mdowns/00537_One_way_of_layer_manipulation.mdown b/mdowns/00537_One_way_of_layer_manipulation.mdown
index 13e80ff..4b4b5e6 100644
--- a/mdowns/00537_One_way_of_layer_manipulation.mdown
+++ b/mdowns/00537_One_way_of_layer_manipulation.mdown
@@ -25,3 +25,8 @@ Usually the later-made Shape instances are layouted on the early-made ones. So,
![sample64.png](http://github.com/ashbb/shoes_tutorial_html/raw/master/images/sample64.png)
+
+Policeman
+---------
+
+The sample64.rb worked well with Shoes-0.r1263
diff --git a/mdowns/00538_Show_and_hide_the_slots.mdown b/mdowns/00538_Show_and_hide_the_slots.mdown
index d293cc9..4efd799 100644
--- a/mdowns/00538_Show_and_hide_the_slots.mdown
+++ b/mdowns/00538_Show_and_hide_the_slots.mdown
@@ -30,3 +30,8 @@ At first, preparing all slots hided in piles. Then do show or hide them at the r
**sample66.png**
![sample66.png](http://github.com/ashbb/shoes_tutorial_html/raw/master/images/sample66.png)
+
+Policeman
+---------
+
+The sample66.rb worked well with Shoes-0.r1263
diff --git a/mdowns/00539_class_definition_outside_of_Shoes.app_block.mdown b/mdowns/00539_class_definition_outside_of_Shoes.app_block.mdown
index 6fd25b3..aaf7670 100644
--- a/mdowns/00539_class_definition_outside_of_Shoes.app_block.mdown
+++ b/mdowns/00539_class_definition_outside_of_Shoes.app_block.mdown
@@ -56,7 +56,7 @@ Plseae run and read the following snippets.
Another way of recreating sample69.
# sample69-2.rb
- class Sheep < Widget
+ class Sheep < Shoes::Widget
def initialize
oval 0, 0, 20, 20
end
@@ -82,3 +82,15 @@ Note
----
In above `sample69-2.rb`, I use the method name `run` instead of `draw`.
Because Shoes has already defined `draw` method, hence if I use the same name, it is overloaded and Shoes can't open app window.
+
+
+Policeman
+---------
+
+The sample69.rb, sample69-1.rb worked well with Shoes-0.r1263.
+
+The sample69-2.rb also worked well after a bit edited like this:
+
+ class Sheep < Widget ---> class Sheep < Shoes::Widget
+
+
diff --git a/mdowns/00540_flexible_time_interval.mdown b/mdowns/00540_flexible_time_interval.mdown
index 182bcd4..2b9ec92 100644
--- a/mdowns/00540_flexible_time_interval.mdown
+++ b/mdowns/00540_flexible_time_interval.mdown
@@ -120,3 +120,7 @@ Another solution using mixin Observable module. It's interesting, although there
The same as sample72.png
+Policeman
+---------
+
+All sample72.rb to sample72-4.rb worked with Shoes-0.r1263 as same as Raisins.
diff --git a/mdowns/00541_Shoes_comes_with_sqlite3_ruby.mdown b/mdowns/00541_Shoes_comes_with_sqlite3_ruby.mdown
index 6bf3a65..1dfc162 100644
--- a/mdowns/00541_Shoes_comes_with_sqlite3_ruby.mdown
+++ b/mdowns/00541_Shoes_comes_with_sqlite3_ruby.mdown
@@ -30,3 +30,9 @@ References
----------
- [SQLite/Ruby FAQ](http://sqlite-ruby.rubyforge.org/sqlite3/faq.html)
- [SQLite Tutorial](http://souptonuts.sourceforge.net/readme_sqlite_tutorial.html)
+
+
+Policeman
+---------
+
+The sample73.rb worked well with Shoes-0.r1263
diff --git a/mdowns/00542_zoom_method_with_a_little_bit_of_metaprogramming.mdown b/mdowns/00542_zoom_method_with_a_little_bit_of_metaprogramming.mdown
index 901bbef..43a3a55 100644
--- a/mdowns/00542_zoom_method_with_a_little_bit_of_metaprogramming.mdown
+++ b/mdowns/00542_zoom_method_with_a_little_bit_of_metaprogramming.mdown
@@ -111,4 +111,8 @@ Although, needed to edit the sample74.rb. Because Shoes::Shape class has no scal
end
+Policeman
+---------
+The sample74.rb and sample74-1.rb worked well with Shoes-0.r1263. Policeman looks like a bit faster than Raisins. :)
+
diff --git a/mdowns/00608_Building_Shoes_with_Windows_DDK.mdown b/mdowns/00608_Building_Shoes_with_Windows_DDK.mdown
index 5816da6..262ddc7 100644
--- a/mdowns/00608_Building_Shoes_with_Windows_DDK.mdown
+++ b/mdowns/00608_Building_Shoes_with_Windows_DDK.mdown
@@ -53,3 +53,7 @@ Then `rake package` worked well. I got `shoes-0.r1243.exe` under `pkg` directory
*NOTE: But now my the above `shoes-0.r1243.exe` is on Ruby 1.8.6. Need to move into Ruby 1.9.1 asap.* :-P
+Policeman
+---------
+
+Look at [this](http://github.com/ashbb/shoes_hack_note). :-D
diff --git a/mdowns/00609_Write_a_17-line_fake_chat_client_using_Shoes.mdown b/mdowns/00609_Write_a_17-line_fake_chat_client_using_Shoes.mdown
index 960860b..70d5bc2 100644
--- a/mdowns/00609_Write_a_17-line_fake_chat_client_using_Shoes.mdown
+++ b/mdowns/00609_Write_a_17-line_fake_chat_client_using_Shoes.mdown
@@ -28,3 +28,10 @@ This is a great blog. I was inspired. Thanks to Paul Harris. He tweeted me.
**sample70.png**
![sample70.png](http://github.com/ashbb/shoes_tutorial_html/raw/master/images/sample70.png)
+
+
+Policeman
+---------
+
+The sample70.rb worked well with Shoes-0.r1263
+
diff --git a/mdowns/00610_red_equal_blue___.mdown b/mdowns/00610_red_equal_blue___.mdown
index 1211178..dcffe1e 100644
--- a/mdowns/00610_red_equal_blue___.mdown
+++ b/mdowns/00610_red_equal_blue___.mdown
@@ -83,3 +83,11 @@ For more specifically. Look at sample71-1.rb
![sample71-1.png](http://github.com/ashbb/shoes_tutorial_html/raw/master/images/sample71-1.png)
Why `Umm... red equal blue???` is shown?
+
+
+Policeman
+---------
+
+The sample71.rb and sample71-1.rb worked with Shoes-0.r1263. Although the behavior is the same as Raisins.
+
+
diff --git a/mdowns/00702_Assignment_2_footracer.mdown b/mdowns/00702_Assignment_2_footracer.mdown
index fc66847..55848f6 100644
--- a/mdowns/00702_Assignment_2_footracer.mdown
+++ b/mdowns/00702_Assignment_2_footracer.mdown
@@ -84,3 +84,9 @@ And the 2nd:
(a.stop; para winner.style[:name]) if winner.left > 150
end
end
+
+
+Policeman
+---------
+
+The above two mini-footracers worked well with Shoes-0.r1263
diff --git a/mdowns/00703_Assignment_3_Mini_Adventure_Game_GUI_Part.mdown b/mdowns/00703_Assignment_3_Mini_Adventure_Game_GUI_Part.mdown
index 018d6f9..c5c5fab 100644
--- a/mdowns/00703_Assignment_3_Mini_Adventure_Game_GUI_Part.mdown
+++ b/mdowns/00703_Assignment_3_Mini_Adventure_Game_GUI_Part.mdown
@@ -89,10 +89,11 @@ See the below code, line 61: @hunter.star 20, 30, 5, 10.0, 5.0, :fill => gold, :
@rooms = @pos.collect{|x, y| rect x, y, 30, 30, :curve => 15, :fill => green}
[0, 8].each{|n| @rooms[n].style :fill => red, :curve => 5}
-
- ROOMS.each_with_index do |r, i|
+
+ i = -1
+ ROOMS.each_line do |r|
name, paths = r.chomp.split(':')
- @rooms[i].style :name => name, :paths => paths
+ @rooms[i+=1].style :name => name, :paths => paths
end
@star = star 365, 265, 5, 10.0, 5.0, :fill => gold, :stroke => gold
@@ -132,4 +133,12 @@ See the below code, line 61: @hunter.star 20, 30, 5, 10.0, 5.0, :fill => gold, :
end
end
+
Have fun!
+
+
+Policeman
+---------
+
+Ruby 1.9 doesn't have `each_with_index()` method. So, I revised `sample52-render.rb` a little bit. Now, the sample52.rb works well with Shoes-0.r1263.
+
diff --git a/mdowns/00704_Assignment_4_Pong_in_Shoes.mdown b/mdowns/00704_Assignment_4_Pong_in_Shoes.mdown
index 4bc35c4..c5cbe7e 100644
--- a/mdowns/00704_Assignment_4_Pong_in_Shoes.mdown
+++ b/mdowns/00704_Assignment_4_Pong_in_Shoes.mdown
@@ -78,3 +78,8 @@ Note
----
[a pong challenge](http://www.mail-archive.com/shoes@code.whytheluckystiff.net/msg02520.html)
+
+Policeman
+---------
+
+The sample58.rb worked well with Shoes-0.r1263
diff --git a/mdowns/00705_Assignment_5_Riddles_in_Shoes.mdown b/mdowns/00705_Assignment_5_Riddles_in_Shoes.mdown
index 8765aec..45af218 100644
--- a/mdowns/00705_Assignment_5_Riddles_in_Shoes.mdown
+++ b/mdowns/00705_Assignment_5_Riddles_in_Shoes.mdown
@@ -110,3 +110,10 @@ What lives on its own substance and dies when it devours itself? --> candle
Yesterday is always before today. But there is a place where yesterday always follows today. Where? --> dictionary
How many cookies can you eat on an empty stomach? --> one
What clothing does a house wear? --> address
+
+
+
+Policeman
+---------
+
+Ruby 1.9 doesn't have `String#to_a()` method. So, I revised `sample67.rb` a little bit. Now, the sample67.rb works well with Shoes-0.r1263.
diff --git a/mdowns/00706_Assignment_6_Dog_Hunts_Sheep_Game.mdown b/mdowns/00706_Assignment_6_Dog_Hunts_Sheep_Game.mdown
index 64127d0..f09ed71 100644
--- a/mdowns/00706_Assignment_6_Dog_Hunts_Sheep_Game.mdown
+++ b/mdowns/00706_Assignment_6_Dog_Hunts_Sheep_Game.mdown
@@ -36,7 +36,7 @@ Create your own **Dog Hunts Sheep Game** by doing the following five steps.
# sample68.rb
W, H = 600, 450
- class Sheep < Widget
+ class Sheep < Shoes::Widget
def initialize x
@s = oval x, H - 15, 15, :fill => white, :strokewidth => 3
@a = animate(20) do
@@ -100,3 +100,9 @@ Have fun!
NOTE
----
Original article was created by [Karel Minarik](http://github.com/karmi). Thank you for giving us consent to use [the material](http://www.restafari.org/object-oriented-sheep-running-in-ruby-shoes.html).
+
+
+Policeman
+---------
+
+Replaced `Widget` to `Shoes::Widget`. Then the sample68.rb worked well with Shoes-0.r1263.
diff --git a/mdowns/00800_Relevant_web_sites__Links_.mdown b/mdowns/00800_Relevant_web_sites__Links_.mdown
index ab40186..732ce3d 100644
--- a/mdowns/00800_Relevant_web_sites__Links_.mdown
+++ b/mdowns/00800_Relevant_web_sites__Links_.mdown
@@ -2,13 +2,13 @@ Relevant web sites (Links)
--------------------------
Three manuals: Nobody Knows Shoes (NKS) and Built-in Manual and Online Reference Manual.
-
+
The Shoes Manual for printing (All in one HTML manual and PDF manual)
The Shoes Help Desk: The spot for beginners and advanced Shoesers alike.
-
+
The Shoebox
@@ -18,7 +18,7 @@ Shoes - Rubys Cross Platform GUI App Toolkit - Grows Up
RecentBuilds
-
+
Shoes\_(GUI\_toolkit) in Wikipedia
@@ -33,7 +33,7 @@ Attempted refactoring a bit to learn more. ;-)
# 05_interactivity_with_objects.rb
# http://github.com/karmi/shoes_demonstration_apps/tree/master
- class Letter < Widget
+ class Letter < Shoes::Widget
def initialize img
@flag = false
img.click{@flag = true; @img = img}
@@ -43,11 +43,11 @@ Attempted refactoring a bit to learn more. ;-)
end
Shoes.app :width => 800, :height => 600 do
- sound = video 'assets/drumfill.aif', :width => 0, :height => 0
+ #sound = video 'assets/drumfill.aif', :width => 0, :height => 0
para 'Input Your Name: '
spell = edit_line
button 'GO' do
- sound.play
+ #sound.play
@canvas.clear do
spell.text.downcase.split('').each_with_index do |l, i|
letter image("letters/#{l}.jpg", :left => 100*(i%8), :top => 150*(i/8))
@@ -64,7 +64,15 @@ Attempted refactoring a bit to learn more. ;-)
end
end
+
**sample62.png**
![sample62.png](http://github.com/ashbb/shoes_tutorial_html/raw/master/images/sample62.png)
+
+Policeman
+---------
+
+Replaced `Widget` to `Shoes::Widget` and commented out `video() and play()`. Then the sample62.rb worked well with Shoes-0.r1263.
+
+
diff --git a/mdowns/00900_Appendix.mdown b/mdowns/00900_Appendix.mdown
index 82761f6..958890f 100644
--- a/mdowns/00900_Appendix.mdown
+++ b/mdowns/00900_Appendix.mdown
@@ -18,6 +18,11 @@ The Image Block At The Bottom Of Shoes
Shoes mailing list in English
-----------------------------
+
+** NOTE: New mailing list is this:**
+
+
+
To join the mailing list:
Send a message to shoes AT code.whytheluckystiff.net
diff --git a/src/sample52-render.rb b/src/sample52-render.rb
index 5c6f2b1..7b9d0e2 100644
--- a/src/sample52-render.rb
+++ b/src/sample52-render.rb
@@ -26,10 +26,11 @@ def show_map
@rooms = @pos.collect{|x, y| rect x, y, 30, 30, :curve => 15, :fill => green}
[0, 8].each{|n| @rooms[n].style :fill => red, :curve => 5}
-
- ROOMS.each_with_index do |r, i|
+
+ i = -1
+ ROOMS.each_line do |r|
name, paths = r.chomp.split(':')
- @rooms[i].style :name => name, :paths => paths
+ @rooms[i+=1].style :name => name, :paths => paths
end
@star = star 365, 265, 5, 10.0, 5.0, :fill => gold, :stroke => gold
diff --git a/src/sample62.rb b/src/sample62.rb
index 5a74f09..68629fc 100644
--- a/src/sample62.rb
+++ b/src/sample62.rb
@@ -3,7 +3,7 @@
# 05_interactivity_with_objects.rb
# http://github.com/karmi/shoes_demonstration_apps/tree/master
-class Letter < Widget
+class Letter < Shoes::Widget
def initialize img
@flag = false
img.click{@flag = true; @img = img}
@@ -13,11 +13,11 @@ def initialize img
end
Shoes.app :width => 800, :height => 600 do
- sound = video 'assets/drumfill.aif', :width => 0, :height => 0
+ #sound = video 'assets/drumfill.aif', :width => 0, :height => 0
para 'Input Your Name: '
spell = edit_line
button 'GO' do
- sound.play
+ #sound.play
@canvas.clear do
spell.text.downcase.split('').each_with_index do |l, i|
letter image("letters/#{l}.jpg", :left => 100*(i%8), :top => 150*(i/8))
diff --git a/src/sample67.rb b/src/sample67.rb
index 2863f50..0ce1a27 100644
--- a/src/sample67.rb
+++ b/src/sample67.rb
@@ -17,7 +17,7 @@
def set_riddle
@num = Nums.pop
alert('*waves*') or exit unless @num
- @q.text, @a = Riddles.to_a[@num].split(' --> ')
+ @q.text, @a = Riddles.split("\n")[@num].split(' --> ')
@you.text = nil if @you
end
diff --git a/src/sample68.rb b/src/sample68.rb
index 76ae2ed..efb3d61 100644
--- a/src/sample68.rb
+++ b/src/sample68.rb
@@ -1,7 +1,7 @@
# sample68.rb
W, H = 600, 450
-class Sheep < Widget
+class Sheep < Shoes::Widget
def initialize x
@s = oval x, H - 15, 15, :fill => white, :strokewidth => 3
@a = animate(20) do
diff --git a/src/sample69-2.rb b/src/sample69-2.rb
index 7c9380d..092032a 100644
--- a/src/sample69-2.rb
+++ b/src/sample69-2.rb
@@ -1,5 +1,5 @@
# sample69-2.rb
-class Sheep < Widget
+class Sheep < Shoes::Widget
def initialize
oval 0, 0, 20, 20
end