BxMS 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/bin/bxms +8 -0
  2. data/bin/bxms.bat +3 -0
  3. data/bin/bxms.rb +8 -0
  4. data/bin/bxms.sh +3 -0
  5. data/examples/www.berlinfactor.com/Bx.css +317 -0
  6. data/examples/www.berlinfactor.com/Bx.js +39 -0
  7. data/examples/www.berlinfactor.com/Section.Books/books.txt +198 -0
  8. data/examples/www.berlinfactor.com/Section.Books/index.page +18 -0
  9. data/examples/www.berlinfactor.com/Section.Bx/index.page +18 -0
  10. data/examples/www.berlinfactor.com/Section.Contact/index.page +12 -0
  11. data/examples/www.berlinfactor.com/Section.Links/Game.Development.txt +6 -0
  12. data/examples/www.berlinfactor.com/Section.Links/News.and.Stuff.txt +10 -0
  13. data/examples/www.berlinfactor.com/Section.Links/Software.Development.txt +25 -0
  14. data/examples/www.berlinfactor.com/Section.Links/Symbian.Development.txt +22 -0
  15. data/examples/www.berlinfactor.com/Section.Links/Tools.and.Utilities.txt +15 -0
  16. data/examples/www.berlinfactor.com/Section.Links/index.page +31 -0
  17. data/examples/www.berlinfactor.com/favicon.ico +0 -0
  18. data/examples/www.berlinfactor.com/images/background.png +0 -0
  19. data/examples/www.berlinfactor.com/images/logo_above.gif +0 -0
  20. data/examples/www.berlinfactor.com/images/logo_below.gif +0 -0
  21. data/examples/www.berlinfactor.com/images/logo_clickable.gif +0 -0
  22. data/examples/www.berlinfactor.com/images/no_section_name.gif +0 -0
  23. data/examples/www.berlinfactor.com/images/section_books.gif +0 -0
  24. data/examples/www.berlinfactor.com/images/section_books_hover.gif +0 -0
  25. data/examples/www.berlinfactor.com/images/section_books_name.gif +0 -0
  26. data/examples/www.berlinfactor.com/images/section_bx.gif +0 -0
  27. data/examples/www.berlinfactor.com/images/section_bx_hover.gif +0 -0
  28. data/examples/www.berlinfactor.com/images/section_bx_name.gif +0 -0
  29. data/examples/www.berlinfactor.com/images/section_contact.gif +0 -0
  30. data/examples/www.berlinfactor.com/images/section_contact_hover.gif +0 -0
  31. data/examples/www.berlinfactor.com/images/section_contact_name.gif +0 -0
  32. data/examples/www.berlinfactor.com/images/section_links.gif +0 -0
  33. data/examples/www.berlinfactor.com/images/section_links_hover.gif +0 -0
  34. data/examples/www.berlinfactor.com/images/section_links_name.gif +0 -0
  35. data/examples/www.berlinfactor.com/images/section_tfdj.gif +0 -0
  36. data/examples/www.berlinfactor.com/images/section_tfdj_hover.gif +0 -0
  37. data/examples/www.berlinfactor.com/images/section_tfdj_name.gif +0 -0
  38. data/examples/www.berlinfactor.com/index.page +21 -0
  39. data/examples/www.berlinfactor.com/news.page +11 -0
  40. data/examples/www.berlinfactor.com/news.txt +210 -0
  41. data/src/bxms.rb +61 -0
  42. data/src/bxms/context.rb +96 -0
  43. data/src/bxms/functions.rb +39 -0
  44. data/src/bxms/processor.rb +53 -0
  45. data/src/bxms/root_state.rb +30 -0
  46. data/src/bxms/rules.rb +82 -0
  47. data/src/bxms/state.rb +105 -0
  48. data/src/bxms/tags.rb +108 -0
  49. data/src/bxms/variables.rb +9 -0
  50. data/src/page/part.rb +51 -0
  51. data/src/page/part_collector.rb +55 -0
  52. data/src/rules/base.rb +16 -0
  53. data/src/rules/copy.rb +17 -0
  54. data/src/rules/ignore.rb +14 -0
  55. data/src/rules/process.rb +23 -0
  56. data/src/rules/process_page.rb +69 -0
  57. data/src/util/chained_hash.rb +41 -0
  58. data/src/util/logger.rb +710 -0
  59. data/src/util/system_logger.rb +30 -0
  60. metadata +116 -0
@@ -0,0 +1,18 @@
1
+
2
+ layout '.templates/two_column_bx.html', { :current_section => 'Books', :long_section_name => 'Book.Reviews' }
3
+
4
+ [LeftPane]
5
+ headline "OVERVIEW"
6
+ simple_list 'books.txt', '.templates/list_books_ref.html'
7
+
8
+ [RightPane]
9
+ headline "BOOK.REVIEWS"
10
+ text_start
11
+ "Don't expect too much here. Plain and simple comments on some of the"
12
+ "books I've read. Did I say something wrong?"
13
+ link_section "Contact", "Send me an email!"
14
+ text_end
15
+
16
+ simple_list 'books.txt', '.templates/list_books.html'
17
+
18
+ link_back
@@ -0,0 +1,18 @@
1
+
2
+ layout '.templates/two_column_bx.html', { :current_section => 'Bx', :long_section_name => 'The.Berlin.Factor' }
3
+
4
+ [LeftPane]
5
+
6
+ [RightPane]
7
+ headline "THE.BERLIN.FACTOR"
8
+
9
+ text_start
10
+ "The.Berlin.Factor is something that cannot be easily described. A way of living and thinking."
11
+ "A way of getting by when things get tough. And, well, mostly a way of chilling as much as possible.. :-)"
12
+ "Know what I'm saying?"
13
+ text_end
14
+
15
+ text "The.Berlin.Factor is something like Austin's <i>mojo</i>. Something like Dune's <i>spice</i>."
16
+ text "And yes, I'm talking bullshit.. :]"
17
+
18
+ link_back
@@ -0,0 +1,12 @@
1
+
2
+ layout '.templates/two_column_bx.html', { :current_section => 'Contact', :long_section_name => 'Contact.Details' }
3
+
4
+ [LeftPane]
5
+
6
+ [RightPane]
7
+ headline "CONTACT.DETAILS"
8
+
9
+ text "The.Berlin.Factor<br>Software.Development"
10
+ text "EMail: nfo [at] berlinfactor [dot] com"
11
+
12
+ link_back
@@ -0,0 +1,6 @@
1
+ FORMAT: LINK, BODY
2
+ ANCHOR: GAME_DEVELOPMENT
3
+
4
+ [ENTRY]
5
+ <%= link "http://www.flipcode.com" %>
6
+ Maybe the best site on game development.. Unfortunately it's gone now.. :/
@@ -0,0 +1,10 @@
1
+ FORMAT: LINK, BODY
2
+ ANCHOR: NEWS_AND_STUFF
3
+
4
+ [ENTRY]
5
+ <%= link "http://slashdot.org", "/." %>
6
+ Of course..
7
+
8
+ [ENTRY]
9
+ <%= link "http://digg.com" %>
10
+ Too, of course..
@@ -0,0 +1,25 @@
1
+ FORMAT: LINK, BODY
2
+ ANCHOR: SOFTWARE_DEVELOPMENT
3
+
4
+ [ENTRY]
5
+ <%= link "http://www.PragmaticProgrammer.com" %>
6
+ Some articles and more stuff on the book here.
7
+
8
+ [ENTRY]
9
+ <%= link "http://www.AgileAlliance.org" %>
10
+ Grab a copy of the agile manifesto and live by it!
11
+
12
+ [ENTRY]
13
+ <%= link "http://lambda-the-ultimate.org" %>
14
+ Always interesting stuff.. I guess.. I don't understand a lot of it.. but
15
+ it sure sounds interesting..
16
+
17
+ [ENTRY]
18
+ <%= link "http://www.artima.com" %>
19
+ Has some interesting articles from time to time.
20
+ Mostly Java-related and therefore a bit retro..
21
+
22
+ [ENTRY]
23
+ <%= link "http://www.theserverside.com" %>
24
+ Has some interesting articles from time to time.
25
+ Mostly Java-related and therefore a bit retro..
@@ -0,0 +1,22 @@
1
+ FORMAT: LINK, BODY
2
+ ANCHOR: SYMBIAN_DEVELOPMENT
3
+
4
+ [ENTRY]
5
+ <%= link "http://chn.roarvgm.com", "MODPlay Site" %>
6
+ Great MOD Player Library by Christian Nowak
7
+
8
+ [ENTRY]
9
+ <%= link "http://symbian.jep.de", "Zeep Sound Engine" %>
10
+ Multi-Threaded Sound Engine by Zeep
11
+
12
+ [ENTRY]
13
+ <%= link "http://irssibot.777-team.org/cobain/", "Cobain Sockets" %>
14
+ High-Level Bluetooth API for Symbian/S60
15
+
16
+ [ENTRY]
17
+ <%= link "http://www.newlc.com" %>
18
+ Nice alternative to the Nokia Forum
19
+
20
+ [ENTRY]
21
+ <%= link "http://www.forum.nokia.com" %>
22
+ The mother of Symbian development forums - for kids only, i guess..
@@ -0,0 +1,15 @@
1
+ FORMAT: LINK, BODY
2
+ ANCHOR: TOOLS_AND_UTILITIES
3
+
4
+ [ENTRY]
5
+ <%= link "http://www.gpsoft.com.au" %>
6
+ Home of Directory Opus.. the only reason Windoze doesn't suck..
7
+
8
+ [ENTRY]
9
+ <%= link "http://www.intellij.com" %>
10
+ Home of Intelli/J IDEA.. my favourite choice when developing Java stuff..
11
+
12
+ [ENTRY]
13
+ <%= link "http://www.mozilla.com" %>
14
+ Home of Firefox and Thunderbird. My favourite choice when browsing the web
15
+ and reading mail.
@@ -0,0 +1,31 @@
1
+
2
+ layout '.templates/two_column_bx.html', { :current_section => 'Links', :long_section_name => 'Interesting.Links' }
3
+
4
+ [LeftPane:ERB]
5
+ <%
6
+ categories = list_file_names '*.txt'
7
+ categories.each do |category|
8
+ category_name = category.sub '.txt', ''
9
+ %>
10
+ <a href="#<%= category_name %>"><%= category_name %></a><br/>
11
+ <%
12
+ end
13
+ %>
14
+
15
+ [RightPane]
16
+ headline "INTERESTING.LINKS"
17
+ text "Some of the links I find useful.."
18
+ page[ :ProjectList ]
19
+ link_back
20
+
21
+ [ProjectList:ERB]
22
+ <%
23
+ categories = list_file_names '*.txt'
24
+ categories.each do |category|
25
+ category_name = category.sub '.txt', ''
26
+ %>
27
+ <a name="<%= category_name %>"><%= subsection category_name %></a>
28
+ <%= simple_list category, '.templates/list_links.html' %>
29
+ <%
30
+ end
31
+ %>
@@ -0,0 +1,21 @@
1
+
2
+ layout '.templates/two_column_bx.html', :current_section => 'Homepage', :long_section_name => 'Homepage'
3
+
4
+ [LeftPane:ERB]
5
+ <%= link 'http://www.PETA.com', 'Against.Animal.Abuse' %> (
6
+ <%= link 'http://www.GoVeg.com', 'Go.Veg' %> )<br/>
7
+ <%= link 'http://www.eff.org/IP/', 'Against.Software.Patents' %><br/>
8
+
9
+ [RightPane]
10
+ headline 'WELCOME'
11
+ text 'Welcome to <%= link "Section.Bx/index.html", "The.Berlin.Factor" %>.'
12
+
13
+ headline 'NEWS'
14
+ simple_list 'news.txt', '.templates/list_news.html', 10
15
+ link 'news.html', 'Older News'
16
+
17
+ [OFF_BodyTail:ERB]
18
+ <div id="w3c_logos">
19
+ <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a>
20
+ <a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a>
21
+ </div>
@@ -0,0 +1,11 @@
1
+
2
+ layout '.templates/two_column_bx.html', { :current_section => 'Homepage', :long_section_name => 'News.Archive' }
3
+
4
+ [LeftPane]
5
+ headline 'HEADLINES'
6
+ simple_list 'news.txt', '.templates/list_news_ref.html'
7
+
8
+ [RightPane]
9
+ headline 'NEWS ARCHIVE'
10
+ simple_list 'news.txt', '.templates/list_news.html'
11
+ link_back 'index.html'
@@ -0,0 +1,210 @@
1
+ FORMAT: DATE, TITLE, BODY
2
+ ANCHOR: NEWS
3
+
4
+ [ENTRY]
5
+ 2006-04-03
6
+ BxMS
7
+ I finally managed to finish a small offline CMS-like thing to update this web-site. I will,
8
+ however, move these pages to a /archive/ link or something soon and start a new web-site.
9
+ I probably won't come back to Symbian development.. So I should start with a new web-site,
10
+ too..
11
+
12
+ [ENTRY]
13
+ 2006-02-06
14
+ LOOOONG time no update!?
15
+ Man, was I busy. I hope to get back into Symbian coding soon. Probably focusing on LUA and
16
+ Python. Anyway, I'll try to replace this site soon with some Rails-based stuff. Stay tuned.
17
+ Or better don't.. :)
18
+
19
+ [ENTRY]
20
+ 2004-07-03
21
+ Site restructured
22
+ Sorry for the mess and any dead links. If you find anything broken,
23
+ I'd appreciate your <%link "Contact.Section/", "feedback" %>! :)
24
+ I finally implemented my own CMS to handle the changes to this site.
25
+
26
+ [ENTRY]
27
+ 2004-07-01
28
+ VoxelTest added
29
+ Added a new example to the <%= link "Symbian.Section/VoxelTest/", "Symbian.Section" %>. It's
30
+ a primitive Voxel Engine. Pretty messed up inside.. as always.. sorry.. :)
31
+
32
+ [ENTRY]
33
+ 2004-05-04
34
+ RockDash added
35
+ Added a new game example to the <%= link "Symbian.Section/RockDash/", "Symbian.Section" %>.
36
+
37
+ [ENTRY]
38
+ 2004-02-22
39
+ Mod.Play.Dll updated
40
+ Added an update to the <%= link "Symbian.Section/ModPlayDll/", "Symbian.Section" %>.
41
+
42
+ [ENTRY]
43
+ 2004-02-22
44
+ Game.Engine.Dll added
45
+ Added the <%= link "Symbian.Section/GameEngineDll/", "Game.Engine.Dll" %>
46
+ to the <%= link_section "Symbian" %>. This framework is used
47
+ in <%= link "http://www.intensicode.net/projects/IntensiBlast/", "IntensiBlast" %>.
48
+
49
+ [ENTRY]
50
+ 2004-02-01
51
+ Java.Section added
52
+ New section with <%= link "Java.Section/", "Java" %> stuff (mainly J2ME) added.
53
+
54
+ [ENTRY]
55
+ 2004-01-25
56
+ IntensiMod added
57
+ New project started over at the <%= link "http://www.intensicode.net", "www.intensicode.net" %> site:
58
+ <%= link "http://www.intensicode.net/projects/IntensiMod.html", "IntensiMod" %>.
59
+
60
+ [ENTRY]
61
+ 2003-12-24
62
+ IntensiBlast updated
63
+ I just tested my new skinnable <%= link "http://www.intensicode.net/projects/IntensiBlast/", "IntensiBlast" %>.
64
+ Not ready for release, yet.. But already looking c00l.. :) Are you a graphic artist?
65
+ And are you interested in doing a skin for the c00lest :) Series 60 game ever? :)
66
+ Please <%= link "Contact.Section/", "contact me" %> and let's see if we can work something out.
67
+
68
+ [ENTRY]
69
+ 2003-12-21
70
+ IntensiBlast updated
71
+ Major release of <%= link "http://www.intensicode.net/projects/IntensiBlast/", "IntensiBlast" %>.
72
+ Multiplayer mode working now for up to four phones. Implemented serveral "diseases" and more.
73
+
74
+ [ENTRY]
75
+ 2003-11-22
76
+ Symbian.Section updated
77
+ Added a few new Symbian projects. Check out the <%= link_section "Symbian" %>.
78
+
79
+ [ENTRY]
80
+ 2003-11-20
81
+ RetroBlasterBt added
82
+ Retro-fitted the <%= link "Symbian.Section/RetroBlasterBt/", "RetroBlaster" %>
83
+ example from the Forum Nokia site with my <%= link "Symbian.Section/NetworkingDll/", "Networking.Dll" %>
84
+ library. Check it out <%= link "Symbian.Section/RetroBlasterBt/", "here" %>.
85
+
86
+ [ENTRY]
87
+ 2003-11-19
88
+ Bluetooth Test Application added
89
+ Pre-release of a Bluetooth client/server test application can
90
+ now be found in the <%= link "Symbian.Section/BtTest/", "Symbian.Section" %>.
91
+
92
+ [ENTRY]
93
+ 2003-10-30
94
+ Just a quick note
95
+ I am pretty busy right now concentrating on my job. That's why I didn't
96
+ release too much during the last few weeks - and I won't release too much
97
+ in the next few weeks, either :-(
98
+
99
+ However, waiting for the SDK to finish compile my projects, always
100
+ leaves some time for doing other things.. :-) After buggin' me once too
101
+ often, I finally took the sources for the <code>MakeSIS</code> tool
102
+ (from the <%= link "http://www.symbian.com/developer/downloads/tools.html#makesis", "Symbian" %>
103
+ website) and hacked in processing of folders and fixed that line-number bug (on Win32 only, i guess).
104
+ Check it out in the <%= link "Symbian.Section/MakeSIS/", "Symbian.Section" %>.
105
+
106
+ [ENTRY]
107
+ 2003-09-23
108
+ Never leave the keyboard
109
+ Broke my bike's handle while back-hopping up some stairs at the Alexanderplatz yesterday. Fortunately
110
+ noone took photos of me lying on the ground :) However, I took some <%= link "bike.html", "photos of the bike" %>.
111
+
112
+ [ENTRY]
113
+ 2003-09-22
114
+ ModPlayer updated
115
+ Updated the <%= link "Symbian.Section/ModPlayer/", "MODPlayer" %> to use the
116
+ <%= link "Symbian.Section/SidPlayDll/", "SIDPlay" %> library. This includes an
117
+ updated release of the <%= link "Symbian.Section/ModPlayDll/", "MODPlay" %> library.
118
+ Now Protracker, S3M and XM MODs can be played. Sources not yet available. Sorry..
119
+
120
+ [ENTRY]
121
+ 2003-09-22
122
+ Sid.Play.Dll added
123
+ Added an adapted version of the <%= link "Symbian.Section/SidPlayDll/", "SIDPlay" %> library.
124
+
125
+ [ENTRY]
126
+ 2003-09-20
127
+ Symbian.Scripts added
128
+ Added some <%= link "Symbian.Section/SymbianScripts/", "scripts" %> that I use for developing
129
+ with symbian.
130
+
131
+ [ENTRY]
132
+ 2003-09-20
133
+ IntensiBlast updated
134
+ Yet another update over at the <%= link "http://www.intensicode.net", "www.intensicode.net" %> site.
135
+ <%= link_intensicode "projects/IntensiBlast.html" %> is
136
+ playing sounds and MODs now :-)
137
+
138
+ [ENTRY]
139
+ 2003-09-06
140
+ Symbian.Section updated
141
+ Added some more new projects in the <%= link_section "Symbian" %>:
142
+ Check out the <%= link "Symbian.Section/SoundSystemDll/", "Sound System" %>, the port of the
143
+ <%= link "Symbian.Section/ModPlayDll/", "MODPlay" %> library and my newest project,
144
+ a simple <%= link "Symbian.Section/ModPlayer/", "MODPlayer" %>.
145
+
146
+ [ENTRY]
147
+ 2003-09-05
148
+ File.Explorer added
149
+ Put up a new project: A framework for a <%= link "Symbian.Section/FileExplorer/", "File.Explorer" %>
150
+ application. Updated the <%= link "Symbian.Section/EssentialsDll/", "Essentials DLL" %>.
151
+
152
+ [ENTRY]
153
+ 2003-08-18
154
+ IntensiBlast updated
155
+ <%= link_intensicode "projects/IntensiBlast.html" %> is pretty much working now.
156
+
157
+ [ENTRY]
158
+ 2003-08-14
159
+ IntensiCode site launched
160
+ Got the <%= link_intensicode %> site up and running. Not much found over there.
161
+ But maybe you wanna check out <%= link_intensicode "projects/IntensiBlast.html" %>
162
+ (a Series 60 port of BomberMan). I started this project with a friend. But we are
163
+ pretty much stuck with the Bluetooth / Multi Player code right now..
164
+
165
+ [ENTRY]
166
+ 2003-08-09
167
+ Bluetooth GPS Example added
168
+ Updated the <%= link "Symbian.Section/BluetoothGPS/", "Bluetooth GPS Example" %>
169
+ (<%= link_section "Symbian" %>). It is now a complete project and should compile fine..
170
+
171
+ [ENTRY]
172
+ 2003-07-09
173
+ Essentials.Dll added
174
+ Added an initial release of my <%= link "Symbian.Section/EssentialsDll/", "Essentials DLL" %> in the
175
+ <%= link_section "Symbian" %>.
176
+
177
+ [ENTRY]
178
+ 2003-06-23
179
+ Contacts Example added
180
+ Added a simple <%= link "Symbian.Section/ContactsExample/", "Contacts.Example" %> in the
181
+ <%= link_section "Symbian" %>.
182
+
183
+ [ENTRY]
184
+ 2003-06-04
185
+ Win32.Socket.Engine added
186
+ Updated the <%= link "Symbian.Section/W32SocketEngine/", "Win32 Socket Engine" %>
187
+ (<%= link_section "Symbian" %>). It is now working asynchronously as it should and
188
+ I find it quite useful by now :)
189
+
190
+ [ENTRY]
191
+ 2003-05-21
192
+ BreakOut added
193
+ Added a simple <%= link "Symbian.Section/BreakOut/", "Break.Out" %> game demo to the
194
+ <%= link_section "Symbian" %>.
195
+
196
+ [ENTRY]
197
+ 2003-05-09
198
+ Symbian.Section added
199
+ Updated the site layout once more. Added the <%= link_section "Symbian" %>.
200
+
201
+ [ENTRY]
202
+ 2003-04-18
203
+ Site cleaned up
204
+ One month passed so quickly. Didn't have much time to get the site going. Trying to
205
+ finish it up now.. Removed most elements.. :-)
206
+
207
+ [ENTRY]
208
+ 2003-03-17
209
+ Site relaunched
210
+ New design by <%=dunkelgold%>.