Friday, 26 September 2008

GRS Mysore

    

GRS Fantasy Park: Mysore's Ultimate Amusement & Water Park

Welcome to GRS Fantasy Park, Mysore’s premier amusement and water park with a touch of international flair. Perfect for a fun-filled family outing, this sprawling 30-acre park promises a day of excitement, relaxation, and unforgettable memories.

Why Visit GRS Fantasy Park?

  • For All Ages: With a variety of attractions, the park offers something for everyone—kids, teens, and adults alike.
  • Exciting Rides: From Dashing Cars to the classic Ferris Wheel, the park is packed with fun rides that keep the whole family entertained.
  • Water Adventures: Cool off with activities like:
    • Lazy River: Drift peacefully along the gentle currents.
    • Wave Pool: Experience the thrill of ocean waves and a relaxing beach vibe.
    • Surf Rides: Ride the waves and feel the adrenaline rush.

A Day to Remember

Whether you’re looking for high-energy adventures or a relaxing escape, GRS Fantasy Park caters to every mood. It's a perfect destination for family bonding, friend gatherings, or even solo fun.

Tips for Visitors:

  • Essentials: Bring swimwear, sunscreen, and towels for maximum enjoyment of water attractions.
  • Food Options: The park offers various eateries, so you don’t need to worry about packing meals.
  • Best Time to Visit: Weekdays to avoid crowds and make the most of your day.

At GRS Fantasy Park, you’re not just visiting a park—you’re stepping into a world of fantasy and fun that guarantees smiles for all!






Thursday, 25 September 2008

Somnathpur (mysore)

       

Kesava Temple, Somnathpur: A Marvel of Hoysala Architecture

Located just 35 kilometers from Mysore, the Kesava Temple in Somnathpur stands as a testament to the exquisite craftsmanship of the Hoysala dynasty, which had flourished for over 260 years by the time this temple was built.

Architectural Grandeur

  • Stellar Design: The temple’s unique star-shaped layout features three intricately carved pinnacles (shikharas) that are connected by a common Navaranga (assembly hall).
  • Exquisite Sculptures: Renowned for its elaborate and intricate carvings, the temple showcases scenes from Hindu mythology, floral motifs, and detailed depictions of deities, making it a paradise for art and history enthusiasts.
  • Historical Inscription: Upon entering the temple, visitors are greeted with a board detailing its rich history and the glory of the Hoysala rulers.

Why Visit Kesava Temple?

The temple is not just a place of worship but also a symbol of artistic excellence, offering visitors a glimpse into the architectural brilliance and cultural heritage of ancient India.

Tips for Visitors:

  • Carry a Camera: The intricate details of the carvings and the temple’s architecture are perfect for photography enthusiasts.
  • Best Time to Visit: Early mornings or evenings to avoid the heat and experience the serenity of the temple.
  • Respect the Heritage: Avoid touching the carvings to help preserve this historical treasure.

The Kesava Temple is more than a monument—it’s a journey into the artistry, devotion, and legacy of the Hoysalas, leaving every visitor in awe of its timeless beauty.







Bandipur National Park (mysore)

    

Bandipur National Park: A Wildlife Paradise

Located 100 km from Mysore, Bandipur National Park is a gem nestled along the Mysore-Ooty highway. Known for its diverse wildlife and serene landscapes, this park is one of India’s most famous wildlife reserves. Situated in Chamarajanagar district in southern Karnataka, it shares borders with the states of Tamil Nadu and Kerala, enhancing its ecological diversity.

A Natural Haven for Wildlife Enthusiasts

Bandipur is renowned for its exceptional biodiversity, boasting a wide variety of flora and fauna. The park's moderate climate and varied terrain—ranging from dry deciduous forests to lush grasslands—make it an ideal habitat for countless species of animals, birds, and plants.

Activities at Bandipur National Park

  • Safari Adventures:
    • Bus Safari: Rs. 60
    • Jeep Safari: Rs. 150
      Safari timings are from 6 AM to 12 PM in the morning and 4 PM onwards in the evening. These safaris give visitors a chance to spot majestic wildlife like tigers, elephants, and leopards in their natural habitat.
  • Trekking and Nature Walks: For those who love the outdoors, trekking and guided nature walks are perfect ways to explore the park’s hidden beauty.
  • Bird Watching: Bandipur is a birdwatcher’s paradise, with an impressive variety of species to spot.
  • Elephant Rides and Tiger Safaris: For a more immersive experience, you can enjoy elephant rides or take a thrilling tiger safari.

Why Visit Bandipur National Park?

Bandipur offers a perfect blend of adventure, wildlife, and nature, making it an ideal destination for nature lovers, photographers, and adventure seekers alike. Whether you're into safaris, bird watching, or simply soaking in the tranquil beauty of the forest, Bandipur is the perfect spot for your next getaway.

Tips for Visitors:

  • Best Time to Visit: Early mornings for the safari and to experience the park at its calmest.
  • Pack Essentials: Bring binoculars for bird watching, comfortable footwear for trekking, and a camera to capture the stunning wildlife.
  • Stay Hydrated: Carry water and snacks, especially if you plan to explore the park for extended periods.

Bandipur National Park offers an unmatched opportunity to connect with nature, witness wildlife up close, and experience the serene beauty of India’s wilderness















Wednesday, 28 May 2008

Ruby String Functions


  • “i got what i want”.count “i” #=> 2
  • “i got what i want”.delete “i” #=> ” got what want”
  • “hello”.gsub(/[aeiou]/, ‘*’) #=> “h*ll*”
  • “hello”.sub(/[aeiou]/, ‘*’) #=> “h*llo”
  • “hello”.tr(‘aeiou’, ‘*’) #=> “h*ll*”
  • “hello”.index(‘e’) #=> 1
  • “hello”.rindex(‘l’) #=> 3(last occurrence)
  • “abcd”.insert(3, ‘X’) #=> “abcXd”
  • ‘cat’.to_sym #=> :cat
  • “hello”.ljust(20) #=> “hello “
  • “hello”.ljust(20, ’1234′) #=> “hello123412341234123″
  • “hello”.rjust(20, ’1234′) #=> “123412341234123hello”
  • ” hello “.rstrip #=> ” hello”
  • ” hello “.lstrip #=> “hello “
  • ” hello “.strip #=> “hello”
  • a = “cruel world”
  • a.scan(/\w+/) #=> ["cruel", "world"]
  • a.scan(/…/) #=> ["cru", "el ", "wor"]
  • a.scan(/(…)/) #=> [["cru"], ["el "], ["wor"]]
  • a.scan(/(..)(..)/) #=> [["cr", "ue"], ["l ", "wo"]]
  • “1,2,,3,4,,”.split(‘,’) #=> ["1", "2", "", "3", "4"]
  • “putters shoot balls”.squeeze(“m-z”) #=> “puters shot balls”
  • “Finally, something useful!”.at(6) #=> “y”
  • “Chris the Person”.from(6) #=> “the Person”
  • “Chris the Person”.to(4) #=> “Chris”
  • “Christmas Time”.first #=> “C”
  • “Christmas Time”.first(5) #=> “Chris”
  • “Christmas Time”.last #=> “e”
  • “Christmas Time”.last(4) #=> “Time”
  • “Snow”.each_char { |i| print i.upcase } #=>SNOW
  • “Peanut Butter”.starts_with? ‘Peanut’ #=> true
  • “Peanut Butter”.ends_with? ‘Nutter’ #=> false
  • “1985-03-13″.to_time #=> Wed Mar 13 00:00:00 UTC 1985
  • “1985-03-13″.to_date #=> #
  • “stressed”.reverse #=> “desserts”
  • “Hello”.swapcase #=> “hELLO”
  • “hEllO”.upcase #=> “HELLO”
  • “reindeer”.pluralize #=> “reindeers”
  • “elves”.singularize #=> “elf”
  • “christmas_carol”.camelize #=> “ChristmasCarol”
  • “christmas_carol”.camelize(:lower) #=> “christmasCarol”
  • “holiday_cheer”.titleize #=> “Holiday Cheer”
  • “AdventCalendar-2006″.underscore #=> “advent_calendar_2006″
  • “santa_Claus”.dasherize #=> “santa-Claus”
  • “Holiday::December::Christmas”.demodulize #=> “Christmas”
  • “SnowStorm”.tableize #=> “snow_storms”
  • “snow_storms”.classify #=> “SnowStorm”
  • “present_id”.humanize #=> “Present”
  • “Present”.foreign_key #=> “present_id”
  • “Cheer”.constantize #=> NameError: uninitialized constant Cheer
  • “Christmas”.constantize #=> Christmas

Monday, 21 January 2008

RoR Upload image in S3


Install gem aws s3
gem install aws-s3
Before you can do anything, you must establish a connection using Base.establish_connection!. A basic connection would look something like this:
AWS::S3::Base.establish_connection!(:access_key_id => ‘abc’,
:secret_access_key => ’123′
)
Buckets are containers for objects (the files you store on S3). To create a new bucket you just specify its name.
AWS::S3::Bucket.create(‘bucket_name’)
Picture upload view
<% form_tag ({:action => ‘create’},{:multipart => true}) do %>
<table>
<tr>
<td>Image </td>
<td> <%= file_field_tag “event_picture” %></td>
</tr>
</table>
<%= submit_tag “Create” %>
<% end %>
Controller
include require ‘aws/s3′ in controller
def create
filename = @params['event_picture'].original_filename.gsub(/[^a-zA-Z0-9.]/,’_')
data = @params['event_picture'].read
AWS::S3::Base.establish_connection!(:access_key_id => ’123′,
:secret_access_key => ‘abc’)
AWS::S3::S3Object.store(filename,
data,
‘bucket_name’,
:content_type => ‘image/jpg’)
end
even you can change grants for image
policy = AWS::S3::S3Object.acl(filename, ‘bucket_name’)
policy.grants << AWS::S3::ACL::Grant.grant(:public_read)
policy.grants << AWS::S3::ACL::Grant.grant(:public_read_acp)
AWS::S3::S3Object.acl(filename, ‘bucket_name’, policy)