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
Ruby on Rails Blog for Chennai People
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
Posted by
nkarthick
at
11:47 AM
2
comments
Ruby on Rails :: Google Maps plugin
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 svnsvn co svn://rubyforge.org//var/svn/cartographer/trunk 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.
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
Posted by
nkarthick
at
11:02 AM
1 comments
Labels: cartographer, Flexstore on Rails Tutorial, Google, Map, Plugin
Hi,
My Friend DOT Net Blog
It has more useful information about Dot-Net & SQL Server 2000
Arun-DOT Net
Posted by
nkarthick
at
11:43 AM
0
comments
Interview with Ruby Guru's
by my friend Satish Talim
Ruby Guru's
Posted by
nkarthick
at
11:35 AM
1 comments
Labels: David, developers, Interview, Java, Sathish
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.
Posted by
nkarthick
at
11:35 AM
0
comments
Labels: David, developers, Interview, Java, Sathish
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!
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's Blog Link- You can make comment on David Blog
ok bye
Enjoy Rails
Posted by
nkarthick
at
7:31 PM
0
comments
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
Posted by
nkarthick
at
4:04 PM
0
comments
Labels: Java Script, links, Rails, Ruby
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.
Posted by
nkarthick
at
10:20 AM
0
comments
Labels: browser, configuration, mozilla
Selenium Forum Links:
Nabble Selenium
Forums Openqa
ok bye
Enjoy Rails
Posted by
nkarthick
at
6:20 PM
1 comments
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
Posted by
nkarthick
at
5:54 PM
0
comments
Labels: commands, links, 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
Posted by
nkarthick
at
4:37 PM
1 comments
Labels: File, mozilla, Selenium, Selenium on Rails, upload
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
Posted by
nkarthick
at
5:08 PM
4
comments
Labels: links, New window
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..
Posted by
nkarthick
at
3:49 PM
0
comments
Labels: background, code, current, Java Script, new, Window
The following link contains list of Ruby blogs
Ruby Corner
this link definitely useful for Ruby programmer .
Posted by
nkarthick
at
11:30 AM
0
comments
Rails using Company Around the world
Rails using Company Around the world
GL Infotech ( am working) also listed in that site.
bye
enjoy Rails
Posted by
nkarthick
at
12:18 PM
0
comments
CSS Graphs Helper for Ruby on Rails
CSS Graphs in Rails
XMLSWF Charts_in_Ruby_on_Rails
Scruffy
Gruff Graphs for Ruby
Enjoy Rails
Posted by
nkarthick
at
5:22 PM
0
comments
CSS Color Chart
CSS Color Charts
Enjoy Rails
Posted by
nkarthick
at
5:18 PM
0
comments
hi,
Website Hosting Guides - Ruby on Rails
Website Source Tutorials Ruby-on-rails
Enjoy Rails
Posted by
nkarthick
at
5:06 PM
0
comments
Labels: Ruby-on-rails, Tutorials, Website Source