how to select Keyboard Layout for multi language

Posted On December 15, 2009

Filed under General

Comments Dropped leave a response

keyboard layout:

A keyboard layout is any specific mechanical, visual, or functional arrangement of the keys, legends, or key–meaning associations (respectively) of a computer, typewriter, or other typographic keyboard.

How to select the keyboard preference :

System –>Preference –>Keyboard –>layouts –> Add

choose the layout based on country or language.

Now the selected  layout is display in your  keyboard preference,  select the new layout and choose layout options as

|> key(s) to change layout.

click the small arrow on left side and tick the check box and close it.

Graphical display the layout out switching:

Rright click the panel and select add to panel and choose  Keyboard indicator  and Add.

Now the keyboard  indicator is display.

Advertisements

How to use tamil in mysql through phpmyadmin

Posted On December 15, 2009

Filed under General

Comments Dropped leave a response

phpmyadmin

phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web.

open a phpmyadmin http://localhost/phpmyadmin/

Create the database:

when you  create the database,you must select the collation as

utf8_unicode_ci.

create table filed:

when you  create the  table fileds ,you must select the collation as

utf8_unicode_ci.

then you can insert theTamil words  in mysql tables and export.

how to install Firebug

Posted On December 10, 2009

Filed under General

Comments Dropped leave a response

Firebug

Fire bug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page…

Download links:

https://addons.mozilla.org/en-US/firefox/addon/1843

How to backup and restore the Tomboy notes.

Posted On December 6, 2009

Filed under General

Comments Dropped one response

Tomboy

Tomboy is a desktop note-taking application for Linux and Unix. Simple and easy to use, but with potential to help you organize the ideas and information you deal with every day.

Backup:

$ cp ~/.tomboy /media/usb/

Restore:

Fedora12:

$ cp -r /media/usb/.tomboy/*.* ~/.gnote

Ubuntu:

$ cp -r /media/usb/.tomboy/*.* ~/.tomboy

RSS FEED on Ruby on Rails

Posted On November 13, 2009

Filed under ROR

Comments Dropped leave a response

RSS FEED:

rsslogoRSS stands for “Really Simple Syndication”. It is a way to easily distribute a list of headlines, update notices, and sometimes content to a wide number of people. It is used by computer programs that organize those headlines and notices for easy reading.

Purpose of RSS:

instant information information updated in realtime
single source all information aggregated in a single location
rapid scanning feed readers highlight unread headlines
categorizing information can be categorized by  theme

Creating RSS Feed:

Edit the  controller  file of a model which you like to  add the RSS Feed

my controller: /app/controllers/post_controller.rb

STEP 1:

In that write the following code instead  def index………   end and add def for rss

def index
@posts = Post.all
respond_to do |format|
format.html # index.html.erb
format.xml  { render :xml => @posts }
format.rss { render :layout => false }
end
end

def rss
@posts = Post.find(:all, :order => “id DESC”)
render_without_layout
@headers[“Content-Type”] = “application/xml; charset=utf-8”
end

STEP 2:

Edit the file app/views/posts/intex.html.erb for dispaly the link your page:

Add the line <p> <%= link_to “RSS Feed”, posts_url(:rss) %></p> in that.

STEP 3:

Create the new file index.rss.builder in app/views/posts/ directory. which contains the following code.

xml.instruct! :xml, :version => “1.0”
xml.rss :version => “2.0” do
xml.channel do
xml.title “Events”
xml.description “All Events”

@posts.each do |e|
xml.item do
xml.title e.name
xml.description e.content
end
end
end
end

create one more file with the name of rss.rxml and it contains the following

xml.instruct!

xml.rss “version” => “2.0”, “xmlns:dc” => “http://purl.org/dc/elements/1.1/&#8221; do
xml.channel do

xml.title       “paulsturgess.co.uk articles”
xml.link        url_for :only_path => false, :controller => ‘articles’
xml.description “paulsturgess.co.uk Ruby on Rails and CSS articles”

@articles.each do |posts|
xml.item do
xml.title       posts.title
xml.link        url_for :only_path => false, :controller => ‘posts’, :action => ‘show’, :id => posts.id
xml.description posts.content
xml.guid        url_for :only_path => false, :controller => ‘posts’, :action => ‘show’, :id => posts.id
end
end
end
end

Start the server using this command:

script/server

Note:

The smilies are  display because  of joining  the : and x ,like 😡 and : and 0 like 😮 , so you must type instead that  : and x, : and o.

« Previous Page