Wednesday, February 13, 2008

My VBA Blog

Hi Friendz,
I have created a Blog for VBA novice. it has Tips and miscellaneous collection.
Here my new blog link Chennai VBA . Hope VBA people have gain some knowledge from it.

Thanks & Regards,
Karthick

Wednesday, December 6, 2006

Cartographer Google Maps plugin

Cartographer

Ruby on Rails :: Google Maps plugin

Installation

Install as a plugin! From your rails application root, run


script/plugin install -x svn://cartographer.rubyforge.org/
trunk/vendor/plugins/cartographer
Or, install from svn
svn co svn://rubyforge.org//var/svn/cartographer/trunk 

Usage

First you need to sign up for an API key

Then, put your API key into the vendor/plugins/cartographer/lib/keys.rb file.

Open up your layout template (if you're using one) and

insert this code into the HEAD section:

<head>
<%= gmaps_header %>
...
</head>

Now, in your controller* define your map and set up some markers.

def map
@map = Cartographer::Map.new( :name => 'mymap', :width =>
300, :center => [-110,33], :debug => true)
@map.markers << Cartographer::Marker.new( :position =>
[-110,33], :info_window => 'Clicky clicky!!', :map => @map )
end

* Realistically this can also be in your view, but it's a bit naughty of you to consider bending MVC!

Finally, render the map in your view.


<%= @map.to_html >

If you view the source to this page, you'll see what the above lines of code look like in
the rendered code (below this point). You can remove the :debug => true if you don't want commenting (it will compress
the code a little, too)

Requirements

Because Cartographer is a plugin, you need to be running rails 0.14.3 or up (1.0 is great..)

You can easily use the code in other ruby-based frameworks quite easily, because there's nothing
actually tied to Rails.

If you're using an old version of cartographer, or old version of rails, we strongly recommend
you upgrade; however, check out the subversion repository, because we've tagged the old version
for you old-schoolers.

More information

We just underwent a complete changeover of code, so the API code still needs to catch up. Until then,
you're smart, you can more than likely understand what's going on from reading the plugin source.

Cartographer was written by Robert Bousquet,
Courtenay Gasking and Phil Hagelberg
with some additional code by Jeremy Hubert and
Bryan Wood.



source courtesy: Cartographer

Saturday, December 2, 2006

My Friend DOT Net Blog

Hi,

My Friend DOT Net Blog

It has more useful information about Dot-Net & SQL Server 2000

Arun-DOT Net

Friday, December 1, 2006

Interview with Ruby Guru's

Interview with Ruby Guru's
by my friend Satish Talim

Ruby Guru's

Interview with David Heinemeier Hansson

Interview with David Heinemeier Hansson
by my friend Satish Talim


In this interview with Satish Talim, David talks about the growth of Rails and its features.
He also tells us why Rails is relevant to Java developers and
something Java developers need to look at right away.

Thursday, November 30, 2006

Interesting Thing About Microsoft Window OS

Do You know one thing?

You can't create con Folder in any Microsoft OS(Windows) Installed System.

It z True. Test It Now in Your System.

You May Wonder about it.

Ok bye

Enjoy Rails!

Wednesday, November 29, 2006

Code for Extracting Html Content of specific Website

Code for Extracting Html Content of specific Website

Below code is used to extract the html content of specific site.

try this by just copy and paste the below code.

require 'open-uri'
require 'pp'

open('http://www.chennairails.blogspot.com') do |a|
# hash with meta information
pp a.meta

#
pp "Content-Type: " + a.content_type # meta content type
pp "last modified" + a.last_modified.to_s

no = 1
# print the first thousands lines
a.each do |line|
print "#{no}: #{line}"
no += 1
break if no > 1000 #no of lines
end
end

source: code snippets

Enjoy rails!

David A Black Blog

David A Black Blog
David's Blog Link- You can make comment on David Blog

ok bye
Enjoy Rails

Useful Ruby links

Useful Ruby Links

Ruby Garden
Site contain more information about Ruby Tutorials, Ruby Community, & more on...

Ruby Garden HomePage

Ruby Garden India Groups

Ruby User Groups around the world.: Even Chennai Rails also listed there.

Ruby Holic: List of Ruby Groups around the world.

Ruby Meet Up: Site contain information about Ruby Meetings takes place around the world.

Code Snippets : such a wonderful site having some great sample codes of Ruby,Rails, JavaScript & more.

ok bye
Enjoy Rails

Configure Your Mozilla Firefox

You can
Configure Your Mozilla Firefox

by typing about:config in the address bar of mozilla browser

then you can find more thing about mozilla configuration.

Tuesday, November 28, 2006

Selenium forum links

Selenium Forum Links:

Nabble Selenium

Forums Openqa

ok bye

Enjoy Rails

Selelnium on Rails Links

The following link contain more information about
Selenium on Rails(installation ,etc...)

http://www.openqa.org/selenium-on-rails/

This link contain information about commands used in selenium
http://www.openqa.org/selenium-core/reference.html

in selenium on rails use underscore for every methods
for ex:

in selenium core:

doubleClick ( locator )

in selenium on rails

double_click 'locator'


if any doubt Just ask me I will try to clear it.
ok
enjoy Rails

File Upload in Selenium on Rails

Hi Friend z,

File Upload in Selenium on Rails.

to make selenium able to fill type="file" input via "type" command:

a) set configuration for mozilla

signed.applets.codebase_principal_support = true

in firefox about:config page

type about:config in addressbar of firefox.

b) add a line in selenium-api.js

netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead") ;

to \vendor\selenium\core\scripts\selenium-api.js method Selenium.prototype.doType()

It will be definetely useful.
This thing works only in mozilla.

Enjoy Rails

Monday, November 27, 2006

Open New Window in Rails

Open New Window in Rails

by using the following methods of rails


example:

link_to 'Cool site', "http://chennairails.blogspot.com", :target => '_blank'

link_to "Busy loop", { :action => "busy" }, :popup => ['new_window',
'height=300,width=600']

ok bye



open links in new,current,background, window, in Java script.


how to open links in current window, new window, background.

use this java script code:



function
open2(url, opt){
if (opt == 0) // current window
window.location = url;
else if (opt == 1)
// new window
window.open(url);
else if (opt == 2) // background window
{window.open(url); self.focus();}
}


ok bye..

List of Ruby Blogs

The following link contains list of Ruby blogs

Ruby Corner

this link definitely useful for Ruby programmer .

Friday, November 24, 2006

Rails using Company Around the world

Rails using Company Around the world

Rails using Company Around the world

GL Infotech ( am working) also listed in that site.

bye

enjoy Rails

Thursday, November 23, 2006

CSS Graphs Helper for Ruby on Rails

CSS Graphs Helper for Ruby on Rails

CSS Graphs in Rails
XMLSWF Charts_in_Ruby_on_Rails
Scruffy
Gruff Graphs for Ruby
Enjoy Rails

CSS Color Chart

CSS Color Chart

CSS Color Charts

Enjoy Rails

Website Hosting Guides - Ruby on Rails

hi,
Website Hosting Guides - Ruby on Rails

Website Source Tutorials Ruby-on-rails

Enjoy Rails

Pay Pal

Sign up for PayPal and start accepting credit card payments instantly.

Ruby Corner

Earn Money