Monday, April 13, 2009

.lang files in Ubuntu 8.10

Where oh where do the language spec files go in ubuntu 8.10 (intrepid ibex). According to this blog they are in ~/.gnome2/gtksourceview-1.0/language-specs/.
This was not the case on this install i've eventually located them in /usr/share/gtksourceview-2.0/language-specs

Tuesday, April 7, 2009

Rails and Dates

Stick this in environment.rb after the initialize block and have dates in the format you want.

ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(:default => '%d/%m/%Y') will use the default in the DATE_FORMATS hash if present.

ruby makes you smile

def self.randy n
(1 + (rand * n-1).round)

Thing.create!(:bob => randy(730).days.ago.to_date)

I know its nothing that complex, but it just highlights how friendly Ruby is.

Sunday, April 5, 2009

Problems of Religion (geography)

Why is it that some people believe one religion while others believe a different one? Is it because people look at the different ones and think which one is right and then choose to follow it? Is it that they are all the same so it doesn't matter which one you follow? Not according to those who slaughter others for believing something different. Is it that people just follow what everyone else around them is following?

On the whole and certainly before large scale travel a person believed the religion of the region in which they where born? In historical times it was often socially impossible to not follow the same faith as your peers (they'd either shun or kill you!). However without social pressures, even today, it seems most people will just take the faith of their birth place especially if they stay put. I posit if the same religious person was born and raised somewhere else with a different religion they would believe that instead, especially in the times where other religions where unknown.

If all religions feel that they are mirrors of the other faiths and all stemming from the same source then there should be no question of which is the right one. As there is this question, as religions do feel that they are unique and each one views itself to be then one then why does geographical location represent the strongest factor determining which faith will be followed?

If it does turn out that it is the location that determines religious belief then that debases any one's claim of being the right one. Moreover it calls further into question the validity of each one.