About Me: Jawaad Mahmood: 30, Muslim, Canadian, freelance, doing consulting in Tokyo, Japan.

Generating a login system in Ruby on Rails

January 27, 2006

The Classified section is rolling right along. Right now, I need to fix up something with the login & security.

The first issue is that anyone can edit an advertisement – and that anyone can delete any advertisement as well. This is because several functions (destroy, create, etc..) are not password protected. This clearly needs to change. Advertisements need to be associated with a certain user account, and only editable by that user – or by an administrator. I believe the first place I need to turn to is the Salted Hash Login Generator on the Ruby on Rails website.

The second issue is that there needs to be some way to prevent spammed listings. I need to implement some form of CAPTCHA (Completely Automated Public Turing Test to Tell Computers and Humans Apart). I think I have managed to google one over here. Let’s see how it goes. (I only intend to implement the first part today)

Comments Off

Muay Thai begins tonight.

As in my list of goals for the day, I am going to Muay Thai class. 7 O’Clock so I have to be there @ 6:45.

Jawaad – “So, uh, what do I have to bring?”

MMA Guy – “Bring some shorts and a smile.”

Uh oh.

Comments Off

Life as a Muslim – Bowing in Japan – Part 2002 of a 999999 part series.

A great discovery over at Sylvain Bouchard’s blog. It brings back one of those dificult issues with being a Muslim and going to foreign countries. Being that a Muslim is specifically forbidden to bow before anything other than God, it lead to some very difficult moments of soul-searching. The first time I went, I tried nodding, which seemed very rude (to me). As a result, I tried half heartedly bending my head over quickly and then getting the heck out of Dodge, so to speak. However, over time I’ve comforted myself with the thought that bowing, as a greeting, is different from prostration that is considered forbidden (IE: bowing before a “God”-like figure) Whether that is correct or not – I doubt I’ll know. Maybe I should ask someone…

Comments Off
Previous PageNext Page
Archives 
July 2010 May 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 August 2009 July 2009 June 2009 May 2009 April 2009 March 2009 February 2009 January 2009 December 2008 November 2008 August 2008 July 2008 June 2008 May 2008 April 2008 March 2008 February 2008 January 2008 December 2007 November 2007 October 2007 July 2007 June 2007 May 2007 April 2007 March 2007 February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 February 2005 December 2004 November 2004 October 2004 September 2004

Creative Commons License
All text and images under 1024 x 768 pixels on this site are licensed under a Creative Commons Attribution 3.0 Unported License.
I require a link back to the original page of the article/image. If the image/article
is not public (IE: It is not present in an article on the blog), you may not reproduce it without permission.