Updated error pages + other pages. * Closes #17.
h3rald h3rald@h3rald.com
Fri, 14 Aug 2009 16:37:18 +0200
12 files changed,
293 insertions(+),
425 deletions(-)
M
content/404.textile
→
content/404.textile
@@ -11,6 +11,4 @@
type: page toc: true ----- -h2. Page Not Found - -The page you're looking for cannot be found. Try searching the "archives":/archives/. +The page you're looking for cannot be found. Try searching the "archives":/#archives/.
A
content/500.textile
@@ -0,0 +1,14 @@
+----- +permalink: "500" +filters_pre: +- redcloth +title: Internal Server Error +comments: [] + +date: 2008-10-26 11:34:54 +01:00 +tags: [] + +type: page +toc: true +----- +Something went wrong. Go back <a href="/">home</a>!
D
content/bio.textile
@@ -1,31 +0,0 @@
------ -permalink: bio -filters_pre: -- redcloth -title: About Fabio Cevasco -comments: [] - -date: -tags: [] - -type: page -toc: true ------ -!>http://www.h3rald.com/img/author_fabio_cevasco.jpg! - -Fabio Cevasco is an IT enthusiast who's very fond of writing. - -After graduating in IT Engineering at the University of Genoa, Italy, in November 2005, he started writing various articles concerning programming, software and Information Technology in general always trying to convey his interest for technology and innovation to his readers. -He wrote quite a few articles and reviews which have been published or mentioned on various online magazines and websites, such as: - -* "10 Reasons To Learn Ruby":http://www.h3rald.com/articles/10-reasons-to-learn-ruby -* "Fabio's (In)complete Guide to London":http://www.h3rald.com/articles/incomplete-guide-to-london -* "An overview of the CakePHP framework":http://base--/articles/view/cakephp-overview/ -* "Review of ten popular social bookmarking services":http://base--/articles/view/social-bookmarking-services/ -* "Rails-inspired PHP frameworks":http://base--/articles/view/rails-inspired-php-frameworks/ -* "CakePHP - A 'tasty' solution for PHP programming":http://base--/articles/view/cakephp/ -* "Ma.gnolia - Social bookmarking made (extremely) easy":http://base--/articles/view/ma.gnolia/ -* "An IE Lover's Guide to Firefox":http://base--/articles/view/ie-lovers-guide-to-firefox/ -* "Slax - A small, complete and 'nice-looking' Linux live distribution":http://www.h3rald.com/articles/view/slax/ - -Currently, Fabio is working full time as a technical writer for a multinational IT company in Genoa, Italy. Although he literally writes documentation and manuals eight hours a day, he still enjoys writing articles now and then, in the free time.
D
content/code.textile
@@ -1,36 +0,0 @@
------ -permalink: code -filters_pre: -- redcloth -title: Code -comments: [] - -date: -tags: [] - -type: page -toc: true ------ -Available Open Source programs and scripts: - -h3. RedBook - A day logger program written in Ruby - -*Description:* RedBook is a simple but effective Ruby program made to help you keep track of your daily actions, tasks and accomplishments. - -*Features:* Log timestamped messages with optional tags, load/display data matching custom message and tag filters or within a specific time frame, generate custom reports in TXT, YAML or CSV format, calculate the time elapsed between two or more messages. - -p=. "Home Page":http://redbook.h3rald.com | "Development Page":http://code.google.com/p/redbook/ | "Download":http://code.google.com/p/redbook/downloads/list | "Tutorial":http://www.h3rald.com/articles/redbook - -h3. RawLine - -*Description:* RawLine is an attempt to build a 100% Ruby library able to provide some of the functionality offered by ReadLine, plus additional features such as a more intuitive way to bind characters to specific keys or key sequences. - -p=. "Introduction":http://www.h3rald.com/blog/inline-introduction | "Project Page":http://rubyforge.org/projects/rawline/ - -h3. Text Link Ads sidebar for Typo - -*Description:* A Typo sidebar to display -"Text Link Ads":http://www.text-link-ads.com sponsor links. - -p=. "Download":http://www.h3rald.com/files/textlinkads_sidebar_v0.2.zip | "Announcement":http://www.h3rald.com/blog/textlinkads_sidebar_v01 -
M
content/concatenative.textile
→
content/concatenative.textile
@@ -12,73 +12,71 @@
type: page toc: true ----- -h2. Concatenative - -Concatenative is a Ruby DSL(Domain-specific Language) for concatenative programming. It is heavily inspired by "Joy":http://www.latrobe.edu.au/philosophy/phimvt/joy.html, a minimalist programming language by Manfred von Thun. Like Joy, Concatenative features: - -* function composition, instead of function application -* quotation, instead of abstraction -* no formal parameters -* no variable assignments - -Plus, it allows you to use Ruby objects and methods in a concatenative fashion. - -h3. Installation - -The simplest method to install Concatenative is to install the gem: - -@gem install concatenative@ - -h3. Usage - -Initialization: - -<% highlight :ruby do %> -require 'concatentive' -<% end %> - -Execute a Concatenative program: - -<% highlight :ruby do %> - concatenate( - 10, - [0, :==], - [1, :+], - [:dup, 1, :-], - [:*], - :linrec - ) -<% end %> - -The program above returns the factorial of 10, computed using the linrec combinator. It is also possible to execute arrays directly and define concatenative programs as symbols. - -<% highlight :ruby do %> - :factorial << [[0, :==], [:pop, 1], [:dup, 1, :- , :factorial, :*], :if] - [5, :factorial].execute -<% end %> - -The program above calculates the factorial of 5, using explicit recursion. - -You can use all Ruby methods in Concatenative programs as well, making sure that the right number of arguments (and the method’s receiver) are retrieved from the stack correctly. For this to work, Concatenative must know the arity of the method in advance, so the following rules are applied: - - * All operators have an arity of 1 - * All other method have an arity of 0 - * If a method has a different arity, you must specify it explicitly using the pipe (|) operator. - -Example: - -<% highlight :ruby do %> - concatenate( - "Goodbye, World!", /Goodbye/, "Hello", :sub|2 - ) -<% end %> - -The program above is equivalent to "Goodbye, World!".sub(/Goodbye/, "Hello"). - - -h3. Resources - -* "News and Articles":http://www.h3rald.com/tags/concatenative -* "RDoc Documentation":http://concatenative.rubyforge.org [on RubyForge] -* "Download Files":http://rubyforge.org/projects/concatenative [on RubyForge] -* "Source Code and Issue Tracking":http://github.com/h3rald/concatenative [on GitHub] +Concatenative is a Ruby DSL(Domain-specific Language) for concatenative programming. It is heavily inspired by "Joy":http://www.latrobe.edu.au/philosophy/phimvt/joy.html, a minimalist programming language by Manfred von Thun. Like Joy, Concatenative features: + +* function composition, instead of function application +* quotation, instead of abstraction +* no formal parameters +* no variable assignments + +Plus, it allows you to use Ruby objects and methods in a concatenative fashion. + +h3. Installation + +The simplest method to install Concatenative is to install the gem: + +@gem install concatenative@ + +h3. Usage + +Initialization: + +<% highlight :ruby do %> +require 'concatentive' +<% end %> + +Execute a Concatenative program: + +<% highlight :ruby do %> + concatenate( + 10, + [0, :==], + [1, :+], + [:dup, 1, :-], + [:*], + :linrec + ) +<% end %> + +The program above returns the factorial of 10, computed using the linrec combinator. It is also possible to execute arrays directly and define concatenative programs as symbols. + +<% highlight :ruby do %> + :factorial << [[0, :==], [:pop, 1], [:dup, 1, :- , :factorial, :*], :if] + [5, :factorial].execute +<% end %> + +The program above calculates the factorial of 5, using explicit recursion. + +You can use all Ruby methods in Concatenative programs as well, making sure that the right number of arguments (and the method’s receiver) are retrieved from the stack correctly. For this to work, Concatenative must know the arity of the method in advance, so the following rules are applied: + + * All operators have an arity of 1 + * All other method have an arity of 0 + * If a method has a different arity, you must specify it explicitly using the pipe (|) operator. + +Example: + +<% highlight :ruby do %> + concatenate( + "Goodbye, World!", /Goodbye/, "Hello", :sub|2 + ) +<% end %> + +The program above is equivalent to "Goodbye, World!".sub(/Goodbye/, "Hello"). + + +h3. Resources + +* "News and Articles":http://www.h3rald.com/tags/concatenative +* "RDoc Documentation":http://concatenative.rubyforge.org [on RubyForge] +* "Download Files":http://rubyforge.org/projects/concatenative [on RubyForge] +* "Source Code and Issue Tracking":http://github.com/h3rald/concatenative [on GitHub]
D
content/contact.textile
@@ -1,15 +0,0 @@
------ -permalink: contact -filters_pre: -- redcloth -title: Contact -comments: [] - -date: -tags: [] - -type: page -toc: true ------ -If you need to contact me, feel free to write an email to *h3rald [at] h3rald.com*. -
M
content/herald-vim-color-scheme.textile
→
content/herald-vim-color-scheme.textile
@@ -11,28 +11,26 @@
type: page toc: true ----- -h2. herald.vim - -*herald* is a dark color scheme for "Vim":http://www.vim.org which aims to be easy to read, eye-appealing, portable on multiple terminals, and suitable for source code highlighting in multiple languages. - -You can get the latest version *"HERE":/files/herald.vim* (direct link). - -h3. Changelog - -* *v0.2.0* -** Support for 8 and 16 color modes -** Fixed completion menu colors -** Improved readability for Visual mode -** Specified highlighting for all the most common Vim syntax groups -* *v0.1.0* -** Initial Release - -h3. Screenshot - -!/images/herald.vim/herald_vim.png! - -h3. Resources - -* "Original Announcement":http://www.h3rald.com/articles/herald-vim-color-scheme -* "Script Page":http://www.vim.org/scripts/script.php?script_id=2684 [on Vim.org] -* "File History":http://github.com/h3rald/stash/commits/master/.vim/colors/herald.vim [on GitHub] +*herald* is a dark color scheme for "Vim":http://www.vim.org which aims to be easy to read, eye-appealing, portable on multiple terminals, and suitable for source code highlighting in multiple languages. + +You can get the latest version *"HERE":/files/herald.vim* (direct link). + +h3. Changelog + +* *v0.2.0* +** Support for 8 and 16 color modes +** Fixed completion menu colors +** Improved readability for Visual mode +** Specified highlighting for all the most common Vim syntax groups +* *v0.1.0* +** Initial Release + +h3. Screenshot + +!/images/herald.vim/herald_vim.png! + +h3. Resources + +* "Original Announcement":http://www.h3rald.com/articles/herald-vim-color-scheme +* "Script Page":http://www.vim.org/scripts/script.php?script_id=2684 [on Vim.org] +* "File History":http://github.com/h3rald/stash/commits/master/.vim/colors/herald.vim [on GitHub]
M
content/holidays.textile
→
content/holidays.textile
@@ -2,7 +2,7 @@ -----
permalink: holidays filters_pre: - redcloth -title: Holidays +title: Holiday House in Sessarego (GE), Italy comments: [] date: 2009-03-22 06:50:29 +01:00@@ -11,107 +11,105 @@
type: page toc: true ----- -h2. Holiday House in Sessarego (GE), Italy - -<img src="/images/sessarego/outside.jpg" style="float:left; border: 1px solid #B80000; margin-left: -85px; margin-right: 10px;" /> - -Looking for a peaceful and relaxing holiday in the Italian Riviera? I'm renting part of my family country home in the center of the old village of "Sessarego":http://italia.indettaglio.it/eng/liguria/genova_bogliasco_sessarego.html, on a peaceful hill a few minutes away from Bogliasco, a small coastal town on the _Golfo Paradiso_. The center of Genoa can be reached by car, bus or train in about 30 minutes and a lot of tourist locations like Camogli, Rapallo, Santa Margherita and Portofino are just a few train stops away. - -The house was build in the XVIII century, and it has been renovated in 1929 and more recently in 2006, and it now features brand new wooden windows, doors and internal stairway as well as all the most common household appliances and services. - -<div style="padding: 20px;"></div> - -h3. Photos - - <div id="gallery"> - <ul> - <li> - <a href="/images/sessarego/outside1.jpg" title="View from the outside"> - <img src="/images/sessarego/thumb_outside1.jpg" /> - </a> - </li> - <li> - <a href="/images/sessarego/inside.jpg" title="Main living area"> - <img src="/images/sessarego/thumb_inside.jpg" /> - </a> - </li> - <li> - <a href="/images/sessarego/master-bedroom.jpg" title="Master bedroom"> - <img src="/images/sessarego/thumb_master-bedroom.jpg" /> - </a> - </li> - <li> - <a href="/images/sessarego/bedroom.jpg" title="Spare bedroom"> - <img src="/images/sessarego/thumb_bedroom.jpg" /> - </a> - </li> - <li> - <a href="/images/sessarego/view1.jpg" title="View from the linving room"> - <img src="/images/sessarego/thumb_view1.jpg" /> - </a> - </li> - <li> - <a href="/images/sessarego/view2.jpg" title="View from the bedroom"> - <img src="/images/sessarego/thumb_view2.jpg" /> - </a> - </li> - <li> - <a href="/images/sessarego/sessarego.jpg" title="A view of Sessarego"> - <img src="/images/sessarego/thumb_sessarego.jpg" /> - </a> - </li> - <li> - <a href="/images/sessarego/floor1.gif" title="First floor (map)"> - <img src="/images/sessarego/thumb_floor1.gif" /> - </a> - </li> - <li> - <a href="/images/sessarego/floor2.gif" title="Second floor (map)"> - <img src="/images/sessarego/thumb_floor2.gif" /> - </a> - </li> - </ul> - </div> - -h3. Location Map - -<iframe width="700" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=104787268344257956584.000467fb86ef925497225&ll=44.383563,9.072475&spn=0.044104,0.087547&t=h&output=embed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=104787268344257956584.000467fb86ef925497225&ll=44.383563,9.072475&spn=0.044104,0.087547&t=h&source=embed" style="color:#b80000;text-align:left">Sessarego</a> in a larger map</small> - - -h3. Distances by Car - -<div style="padding: 10px;"></div> - -|_. Location |_. Km |_. Time | -| Bogliasco | 3.3 | 7 mins | -| Genoa (center) | 17.4 | 28 mins | -| Genoa (airport) | 28.5 | 34 mins | -| Camogli | 12.3 | 20 mins | -| St. Margherita Ligure | 20.5 | 33 mins | -| Portofino | 27.7 | 39 mins | - -h3. Details & Price - -<div style="padding: 10px;"></div> - -|_\2. Details | -| *Bedrooms* | 2 (1 double, 1 single) | -| *Kitchen* | Yes | -| *Bathroom* | Yes (with shower) | -| *Telephone* | Yes | -| *Internet* | Yes (broadband) | -| *TV* | Yes (with DVD player) | -| *Appliances* | Gas cooker, electrical oven, fridge, freezer, dish washer | -|_\2. Price | -| *October – May* | *June – September* | -| 500€/week | 700€/week | - -<div style="padding: 10px;"></div> - -h3. Contact - -If you are interested in booking your stay or if you have any question, email me at "h3rald@h3rald.com":mailto://h3rald@h3rald.com. - - - - +<img src="/images/sessarego/outside.jpg" style="float:left; border: 1px solid #B80000; margin-left: -85px; margin-right: 10px;" /> + +Looking for a peaceful and relaxing holiday in the Italian Riviera? I'm renting part of my family country home in the center of the old village of "Sessarego":http://italia.indettaglio.it/eng/liguria/genova_bogliasco_sessarego.html, on a peaceful hill a few minutes away from Bogliasco, a small coastal town on the _Golfo Paradiso_. The center of Genoa can be reached by car, bus or train in about 30 minutes and a lot of tourist locations like Camogli, Rapallo, Santa Margherita and Portofino are just a few train stops away. + +The house was build in the XVIII century, and it has been renovated in 1929 and more recently in 2006, and it now features brand new wooden windows, doors and internal stairway as well as all the most common household appliances and services. + +<div style="padding: 20px;"></div> + +h3. Photos + + <div id="gallery"> + <ul> + <li> + <a href="/images/sessarego/outside1.jpg" title="View from the outside"> + <img src="/images/sessarego/thumb_outside1.jpg" /> + </a> + </li> + <li> + <a href="/images/sessarego/inside.jpg" title="Main living area"> + <img src="/images/sessarego/thumb_inside.jpg" /> + </a> + </li> + <li> + <a href="/images/sessarego/master-bedroom.jpg" title="Master bedroom"> + <img src="/images/sessarego/thumb_master-bedroom.jpg" /> + </a> + </li> + <li> + <a href="/images/sessarego/bedroom.jpg" title="Spare bedroom"> + <img src="/images/sessarego/thumb_bedroom.jpg" /> + </a> + </li> + <li> + <a href="/images/sessarego/view1.jpg" title="View from the linving room"> + <img src="/images/sessarego/thumb_view1.jpg" /> + </a> + </li> + <li> + <a href="/images/sessarego/view2.jpg" title="View from the bedroom"> + <img src="/images/sessarego/thumb_view2.jpg" /> + </a> + </li> + <li> + <a href="/images/sessarego/sessarego.jpg" title="A view of Sessarego"> + <img src="/images/sessarego/thumb_sessarego.jpg" /> + </a> + </li> + <li> + <a href="/images/sessarego/floor1.gif" title="First floor (map)"> + <img src="/images/sessarego/thumb_floor1.gif" /> + </a> + </li> + <li> + <a href="/images/sessarego/floor2.gif" title="Second floor (map)"> + <img src="/images/sessarego/thumb_floor2.gif" /> + </a> + </li> + </ul> + </div> + +h3. Location Map + +<iframe width="700" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=104787268344257956584.000467fb86ef925497225&ll=44.383563,9.072475&spn=0.044104,0.087547&t=h&output=embed"></iframe><br /><small>View <a href="http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=104787268344257956584.000467fb86ef925497225&ll=44.383563,9.072475&spn=0.044104,0.087547&t=h&source=embed" style="color:#b80000;text-align:left">Sessarego</a> in a larger map</small> + + +h3. Distances by Car + +<div style="padding: 10px;"></div> + +|_. Location |_. Km |_. Time | +| Bogliasco | 3.3 | 7 mins | +| Genoa (center) | 17.4 | 28 mins | +| Genoa (airport) | 28.5 | 34 mins | +| Camogli | 12.3 | 20 mins | +| St. Margherita Ligure | 20.5 | 33 mins | +| Portofino | 27.7 | 39 mins | + +h3. Details & Price + +<div style="padding: 10px;"></div> + +|_\2. Details | +| *Bedrooms* | 2 (1 double, 1 single) | +| *Kitchen* | Yes | +| *Bathroom* | Yes (with shower) | +| *Telephone* | Yes | +| *Internet* | Yes (broadband) | +| *TV* | Yes (with DVD player) | +| *Appliances* | Gas cooker, electrical oven, fridge, freezer, dish washer | +|_\2. Price | +| *October – May* | *June – September* | +| 500€/week | 700€/week | + +<div style="padding: 10px;"></div> + +h3. Contact + +If you are interested in booking your stay or if you have any question, email me at "h3rald@h3rald.com":mailto://h3rald@h3rald.com. + + + +
M
content/rawline.textile
→
content/rawline.textile
@@ -12,79 +12,77 @@
type: page toc: true ----- -h2. RawLine - -RawLine is a 100% Ruby alternative to the ReadLine library, providing some of its most popular features such as: - - * Basic line editing operations - * Word completion - * History Management - * Custom key/key sequences bindings - -h3. Installation - -The simplest method to install RawLine is to install the gem: - -<% highlight :text do %>gem install rawline<% end %> - -h3. Usage - -Editor initialization: - -<% highlight :ruby do %> -require 'rawline' -editor = RawLine::Editor.new -<% end %> - -Key binding: - -<% highlight :ruby do %> -editor.bind(:ctrl_z) { editor.undo } -editor.bind(:up_arrow) { editor.history_back } -editor.bind(:ctrl_x) { puts "Exiting..."; exit } -<% end %> - -Setup word completion - -<% highlight :ruby do %> -editor.completion_proc = lambda do |word| - if word - ['select', 'update', 'delete', 'debug', 'destroy'].find_all { |e| e.match(/^#{Regexp.escape(word)}/) } - end -end - -editor.completion_append_string = " " -<% end %> - -Read input: - -<% highlight :ruby do %>editor.read("=> ", true)<% end %> - -h3. Replacing Readline - -Simply include the RawLine (or Rawline) module: - -<% highlight :ruby do %>include Rawline<% end %> - -…and you’ll get: - -<% highlight :ruby do %> -readline(prompt, add_history) # RawLine::Editor#read(prompt, add_history) -HISTORY # RawLine::Editor#history -FILENAME_COMPLETION_PROC # Rawline::Editor#filename_completion_proc -# ... -<% end %> - -but also: - -<% highlight :ruby do %>Rawline.editor # RawLine::Editor<% end %> - -…which opens a world of endless possibilities! ;-) - -h3. Resources - -* "News and Articles":http://www.h3rald.com/tags/rawline -* "RDoc Documentation":http://rawline.rubyforge.org [on RubyForge] -* "Download Files":http://rubyforge.org/projects/rawline [on RubyForge] -* "Source Code":http://github.com/h3rald/rawline/tree/master [on GitHub] +RawLine is a 100% Ruby alternative to the ReadLine library, providing some of its most popular features such as: + + * Basic line editing operations + * Word completion + * History Management + * Custom key/key sequences bindings + +h3. Installation + +The simplest method to install RawLine is to install the gem: + +<% highlight :text do %>gem install rawline<% end %> + +h3. Usage + +Editor initialization: + +<% highlight :ruby do %> +require 'rawline' +editor = RawLine::Editor.new +<% end %> + +Key binding: + +<% highlight :ruby do %> +editor.bind(:ctrl_z) { editor.undo } +editor.bind(:up_arrow) { editor.history_back } +editor.bind(:ctrl_x) { puts "Exiting..."; exit } +<% end %> + +Setup word completion + +<% highlight :ruby do %> +editor.completion_proc = lambda do |word| + if word + ['select', 'update', 'delete', 'debug', 'destroy'].find_all { |e| e.match(/^#{Regexp.escape(word)}/) } + end +end + +editor.completion_append_string = " " +<% end %> + +Read input: + +<% highlight :ruby do %>editor.read("=> ", true)<% end %> + +h3. Replacing Readline + +Simply include the RawLine (or Rawline) module: + +<% highlight :ruby do %>include Rawline<% end %> + +…and you’ll get: + +<% highlight :ruby do %> +readline(prompt, add_history) # RawLine::Editor#read(prompt, add_history) +HISTORY # RawLine::Editor#history +FILENAME_COMPLETION_PROC # Rawline::Editor#filename_completion_proc +# ... +<% end %> + +but also: + +<% highlight :ruby do %>Rawline.editor # RawLine::Editor<% end %> + +…which opens a world of endless possibilities! ;-) + +h3. Resources + +* "News and Articles":http://www.h3rald.com/tags/rawline +* "RDoc Documentation":http://rawline.rubyforge.org [on RubyForge] +* "Download Files":http://rubyforge.org/projects/rawline [on RubyForge] +* "Source Code":http://github.com/h3rald/rawline/tree/master [on GitHub] * "Issue Tracking":http://h3rald.lighthouseapp.com/projects/26374-rawline/overview [on LightHouse]
D
content/wedding.textile
@@ -1,25 +0,0 @@
------ -permalink: wedding -filters_pre: -- redcloth -title: Wedding -comments: [] - -date: 2009-06-06 05:53:12 +02:00 -tags: [] - -type: page -toc: true ------ -h2. Roxanne & Fabio's Wedding - -|_. |_. | -| Fabio Cevasco | _Groom_ ("contact":mailto://fabio@cevasco.org) | -| Roxanne O'Mahoney | _Bride_ ("contact":mailto://roxanne@cevasco.org) | -| Matteo Lagomarsino | _Best Man_ ("contact":mailto://hivetyrant@libero.it) | -| Simona Angheluta | _Maid of Honour_ ("contact":mailto://dacian_and_viking@yahoo.co.uk) | -| Delia Angheluta | _Bridesmaid_ | -| Roberto Pischedda | _Usher_ ("contact":mailto://robypischedda@yahoo.it) | -| Zacharry O'Mahoney | _Usher_ ("contact":mailto://mahoneyfamily@gmail.com) | -| Caspar O'Mahoney | _Usher_ ("contact":mailto://casparmahoney@hotmail.com) | -
M
layouts/default.htm
→
layouts/default.htm
@@ -91,18 +91,18 @@ <div id="slider">
<div class="scroll"> <div class="scrollContainer"> <%= @page.content %> - <% else %> - <div id="article-content"> - <h2><%= @page.title %></h2> - <%= @page.content %> - </div> - <% end %> + <% else %> + <div id="article-content"> + <h2><%= @page.title %></h2> + <%= @page.content %> + </div> + <% end %> <% if @page.permalink == 'home' then %> </div><!-- .scrollContainer --> </div><!-- .scroll --> </div><!-- #slider --> - <% end %> + <% end %> </div> <!-- CONTENT END --> </div>
M
resources/.htaccess
→
resources/.htaccess
@@ -4,8 +4,9 @@
# Follow symbolic links in this directory. Options +FollowSymLinks -# Make Drupal handle any 404 errors. +# Custom errors ErrorDocument 404 /404/index.html +ErrorDocument 500 /500/index.html # Force simple error message for requests for non-existent favicon.ico. <Files favicon.ico>@@ -14,50 +15,20 @@ </Files>
# Set the default handler. DirectoryIndex index.html - - # Requires mod_expires to be enabled. <IfModule mod_expires.c> # Enable expirations. ExpiresActive On - # Cache all files for 2 weeks after access (A). - ExpiresDefault A1209600 + # Cache all files for 1 hour after access (A). + ExpiresDefault A3600 - # Do not cache dynamically generated pages. - ExpiresByType text/html A1 </IfModule> # Various rewrite rules. <IfModule mod_rewrite.c> RewriteEngine on - - # If your site can be accessed both with and without the 'www.' prefix, you - # can use one of the following settings to redirect users to your preferred - # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option: - # - # To redirect all users to access the site WITH the 'www.' prefix, - # (http://example.com/... will be redirected to http://www.example.com/...) - # adapt and uncomment the following: - # RewriteCond %{HTTP_HOST} ^example\.com$ [NC] - # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] - # - # To redirect all users to access the site WITHOUT the 'www.' prefix, - # (http://www.example.com/... will be redirected to http://example.com/...) - # uncomment and adapt the following: - # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] - # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] - - # Modify the RewriteBase if you are using Drupal in a subdirectory or in a - # VirtualDocumentRoot and the rewrite rules are not working properly. - # For example if your site is at http://example.com/drupal uncomment and - # modify the following line: - # RewriteBase /drupal - # - # If your site is running in a VirtualDocumentRoot at http://example.com/, - # uncomment the following line: - # RewriteBase / RewriteRule ^$ /home/index.html [L,QSA] </IfModule>