SVN Commit Message Policy any policy is better than 0 policy. Be pro-active in your development cycles and use automated tools in an effort to create the self-documentation effortlessly.
WAVE automated web accessability service.
Accessibility Checklist Another designers checklist for web accessibility -- since none of this is written in stone. Best to stand on the shoulders of giants, be informed and take action.
One of the tasks I have been trying to complete is to setup a direct deposit via Online Banking from Union Bank of California to a Bank of America account. Normally these things go smoothly and without a hitch. For such a transaction you typically need:
- receiver account holder name
- account number
- receiver bank routing number
Well in my case I did not have the bank routing number. Everyone says it's simple just look at the bottom of your check and there is the routing number.
Gee, thanks there's just 1 problem. I don't have access to a check to find the number.
Well a little bit of Googling and I learned quite abit about routing/transit/ABA numbers from Wikipedia. Then I stumbled across this awesome BOFA website FAQ page which details out the routing numbers for every state in the USA. The important thing to note is that depending on the type of transaction you have 3 choices for the routing number.
After a worthless 20 minute phone call to the people at Union Bank during my lunchbreak the other day ... today I went into BOFA during my lunchbreak and a very kind attendant answered my quesiton in about 5 minutes regarding my routing number.
It's critical that a process which takes 10 business days to setup be done correctly the first time. I cannot wait an additional 10 days to fix a problem should one arise.
Thank you kind lady at the bank. Simple things should be simple.
I stumbled across a few new Ruby libraries to generate HTML content from BlueCloth. You can see below:
# David Gurba
# 06/02/2008
#
# The 'discount' filter implements a new BlueCloth implementation that
is 59x
# faster than the standard Ruby class.
#
# See: http://tomayko.com/writings/ruby-markdown-libraries-real-cheap-for-you-two-for-price-of-one
# to get Discount issue:
# sudo gem install discount
#
#
class DiscountFilter < Nanoc::Filter
identifiers :discount
def run(content)
nanoc_require 'rubygems'
nanoc_require 'discount'
return Discount.new(content).to_html
end
end
This website went now compiles from scratch in 5.48 seconds, as opposed to the old value of 10.51 seconds.
I have updated this website rather heavily. I have segmented this website into two major areas. The first area is my personal blog for tech related articles. The second area is another blog sharing some of my experience with mental illness — in this case a very severe type of mental illness known as schizophrenia.
This website is still powered by the Nanoc application and also is sporting usage of jquery and some supporting 3rd party plugins. Lastly, a new comment system is attempting to be integrated into the blogs by Disqus.com so we will see how that goes.
Please expect a bit of bumps in the road as I iron out the remaining technical and cosmetic issues.
Thanks
I am working on a few work and personal projects at this time. Work is primarly PHP5 projects (PDO, PHP5, MySQL) converting some existing sites from VBScript and ACCESS. At the same time my personal projects are in Ruby and also Java technologies (Java, JavaDB, JavaFX). Even though I am working on alot of things at this time I am still trying to find time to regularly update this nook of the web :]
Below is a simple plugin I adopted from the current Nanoc Wiki and my past experience with SimpleLog which uses the (Ultraviolet)[http://ultraviolet.rubyforge.org/] syntax highlightling library to generate pretty HTML output for hundreds of kinds of programming languages. I am also trying to tie in some more jQuery usage in the website for some rounded-corner goodness! Hopefully somebody finds this of use. At some point in the near future I will make the project section of this website contain a full listing of the code-works on this website.
A simple syntax highlighting plugin using UltraViolet.
class UltraVioletFilter < Nanoc::Filter
identifier :ultraviolet
def run(content)
nanoc_require 'rio'
nanoc_require 'uv'
code_rule = %r{(<code class="(\w+)" (file="(.+?[^"])")?>(.+?[^(</code>)])</code>)}m
while content =~ code_rule
original, lang, filename, code = $1, $2, $4, $5
# Create a plaintext file version for download.
if filename
code_path = [@config[:output_dir], @page.path, 'code']
url = @page.path + 'code/' + filename
copy_text_to_file(code, filename, code_path)
content.gsub!(original,
%{<a class="file" href="#{url}">
get source - #{filename}
</a>\n} + original
)
end
# Substitute the un-highlighted code with the highlighted code.
content.gsub!(
original,
Uv.parse(code, "xhtml", lang, true,
@config[:ultraviolet_theme])
)
end
content
end
private
def copy_text_to_file(str, fname, dir)
dest_rio = rio(dir).mkpath
frio = rio(dir, fname).delete
puts "*** unlinked old code file ***"
frio << str
puts "*** Wrote plaintext file #{dir}/#{fname} ***"
end
end
More in the Archives