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

Old Chambly

September 29, 2006

Old Chambly (Small Sized)

Two boys fishing, as the skys cloud over in Old Chambly.

Comments Off

How to log someone’s IP Address when submitting a form?

So I need to create the ability for a user to submit a form – and I would like to enable some sort of primitive security system. To that end, I need to work out a way to check IP addresses.  All this while in PERL (it’s pretty damn simple in PHP and Ruby on Rails). Let’s see what I can find (hopefully..)

-edit-

Well that wasn’t so bad.

render_text request.env['REMOTE_HOST'].to_s

-edit-

So it turns out that this doesn’t always work. There is a better way to do so; try this.


render_text request.remote_ip().to_s

Comments Off

Where Will You Go?

September 28, 2006

With all the idiocy going on in my life these days, I’ve been considering relocation. Unfortunately, Tofino and Ucluelet look to be “out” because frankly, they are charging way too much for what I would get (a few months of cloudy weather, with decent temperatures).

Out of curiousity I’ve been looking at Kuai’i in Hawaii. The problem is, as always, money. Canada taxes half of whatever I get (one way or another) so crop my salary in half. After that, spending 700$ on an apartment (let alone $1000) is insane. I could declare nonresidency and simply go from one place to another (Hawaii to Kobe to Islamabad to wherever).. That seems like the only thing I could do :/

Comments Off

Archives 
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.