Friday, September 23, 2011

Getting error box in vbscript

In vbscripting if there are errors on code we can see the errors on runtime through error box.

If the error on your machine is not popping on executing the vbscript through error box then you can follow below approach to enable it.

Generally issue comes if windows is taking cscript as a default engine to execute script. To change the default engine from cscript to wscript. you can do the following:

1. Right Click on Vb script file(the file you create with .vbs extension) ---> select "Open With" ---> select "Choose Program"
2. Click "Browse" button.
3. Navigate to "C:\Windows\System32\wscript.exe"
4. Click OK.

Done....You should see error box if there are any errors in the scripting file from now onwards....

Friday, September 2, 2011

rdesktop on linux

rdesktop on fedora 14 clippboard copy was not working. With the following approach I see it's working.


yum install tritonus-esd.x86_64
yum install arts.x86_64
yum install arts-devel.x86_64

Now try the following command:
rdesktop -r sound:local -r clipboard:PRIMARYCLIPBOARD -r disk:anyname=/home/username -f [remote-machine-address]

CTRL + ALT + Enter: for toggling Full screen mode in rdesktop

Reference:
http://blog.offenders.org/?p=85

how to write a linux command wrapper

In case if you want to extend the command functionality we can write a wrapper over standard linux command. We can achieve this through bash script and it is simpler.

Here is the example for it:

rdesktop is an linux command which is used to connect windows machine.

rdesktop -f [remote-machine-address] is the basic command to connect to windows machine.

Now if you want to enhance it to support extra options we can use the following options:
rdesktop -r sound:local -r clipboard:PRIMARYCLIPBOARD -r disk:root=/

sound:local -- to enable sound redirection.
clipboard:PRIMARYCLIPBOARD -- To allow copy/paste between rdesktop & host machine.
disk:root=/ -- To share my root directory with remote machine.

mv /usr/bin/rdesktop /usr/bin/rdesktop.bin

Create a file called /usr/bin/rdesktop.wrapper and add this to the file.

#!/bin/bash

/usr/bin/rdesktop.bin -r sound:local -r clipboard -r disk:root=/ $*
## EOF

Make the file executable.
chmod +x /usr/bin/rdesktop.wrapper

Then create a symbolic link to the wrapper.
ln -s /usr/bin/rdesktop.wrapper /usr/bin/rdesktop


You can achieve the same effect through "alias" option in bash but we(I) can use the example as starting point for shell scripting :-)


Reference:
http://blog.offenders.org/?p=85

Thursday, September 1, 2011

Things to update in blog

N-T-P: Need to update

Below are the list that I came across and waiting to update in my blog:

  1. select vs poll vs epoll ----- select can be used as server listening for client
  2. How does xinetd works
  3. Connecting to a Linux desktop through VNC.
  4. Need to discuss on how to handle when linux is stuck(we can use ctrl-alt-f2 to go to the terminal prompt and the see the process which stuck and kill it) and ctrl-alt-f1(in fedora) ctrl-alt-f7(in ubuntu) to switch back to gui prompt.
  5. on linux firewalls, iptables -L -n will list the firewalls and "service iptables stop" will stop the firewalls and "service iptables start" will start the firewall and "service iptables status" will give the status of the firewall
  6. UDP server is different from TCP server, it doesn't need to listen & accept
  7. When the TCP server establishes the connection with the client through accept, a new connection will be created with new fd, does this fd will be having different TCP port??
  8. Write fds in select is used to avoid blocking writes.
  9. "module is unknown" error on ubuntu.. solution for this...a) Open /etc/pam.d/login b) Search for pam_limits.so in the file c) replace /lib/security/pam_limits.so to /lib/i386-linux-gnu/security/pam_limits.so....Now the error shouldn't come and you should be able to login :-).... or for the last try doing "sudo pam-auth-update --force" 
  10. http://www.iovene.com/34/ -- need to update this in the blog 
  11. http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/50sg/configuration/guide/dot1x.html#wp1240472 -- Dynamic vlan assignment

Wednesday, August 10, 2011

pidgin

Pidgin with Cisco Webex-connect:

1. Select "Accounts" and then click "Manage Accounts".
2. Click "ADD" button.
3. Select "Protocol" as XMPP in the dropdown box.
4. "Username" as CISCO user-id.
5. "Domain" as "cisco.com"
6. "Password" as your "webex password"
7. TAdeeeh....your are logged into your webex session...

Thursday, August 4, 2011

.muttrc

# .mutt/muttrc
macro index 'imaps://user1@email.cisco.com'
macro index 'imaps://user2@imap.gmail.com/INBOX'


set my_tmpsecret=`gpg -o ~/.secret/.tmp -d ~/.secret/.passwd.gpg`
set my_cpass=`awk '/Cisco:/ {print $2}' ~/.secret/.tmp`
set my_gpass=`awk '/Gmail:/ {print $2}' ~/.secret/.tmp`
set my_del=`rm -f ~/.secret/.tmp`

account-hook . 'unset imap_user imap_pass' # unset first!
account-hook 'imaps://user1@email.cisco.com/' "set imap_user=
user1 imap_pass=$my_cpass "
account-hook 'imaps://
user2@imap.gmail.com/' "set imap_user=user2 imap_pass=$my_gpass "




set certificate_file=~/.mutt_certs
#set folder={
user1@email.cisco.com/ssl}INBOX
#set spoolfile={
user1@email.cisco.com/ssl}INBOX
set timeout=60
#set record ="imaps://
user1@email.cisco.com/Sent Items"
set imap_check_subscribed
set mail_check=60
set timeout=10
set header_cache=~/.hcache
set net_inc=5
#set index_format="%4C %Z %{%b %d} %-15.15F %s"

#set arrow_cursor
#set auto_tag
#set status_format=\
"[%r|%f|%b] #%M/%m=%L/%l [%nN %dD %tT] (%s.%S) %> (%P) [WM]"

#set attribution="%n(%a)@%d:" # attribution in replies

set quit=ask-yes
set menu_scroll=yes
set collapse_unread
set uncollapse_jump
set implicit_autoview
#set imap_home_namespace="INBOX"
set imap_keepalive=600 #maximum amount of time that mutt will wait before polling open IMAP connections, to prevent the server from closing.
#mailboxes !
#mailboxes =AAA-dcos-dot1x-dev
#mailboxes =blr-masala
#mailboxes =AAA-nxos-energywise-dev
#mailboxes =AAA-dc3-cts-dev
#mailboxes =AAA-nxos-aaa-dev
#mailboxes =Energywise
macro index,pager I "c\!\n" "Change to default INBOX folder"
macro index,pager D "c\=INBOX/AAA-dcos-dot1x-dev\n" "Change to AAA-dcos-dot1x-dev folder"
macro index,pager E "c\=INBOX/Energywise\n" "change to Energywise folder"
macro index,pager B "c\=INBOX/blr-masala\n" "change to blr-masala folder"
macro index,pager M "c=\t\t"
macro index ":source ~/.muttrc\n" "Reload the muttrc"
macro pager ":source ~/.muttrc\n" "Reload the muttrc"


#set postponed="=Drafts"
# Date format
set date_format = '!%Y-%m-%d %H:%M:%S %a'
set smtp_url = "smtp://outbound.cisco.com:25/"
set hostname = cisco.com
set alias_file=~/.mutt-alias
source ~/.mutt-alias
set query_command= "abook --mutt-query '%s'"
macro index,pager A "abook --add-email-quiet" "add the sender address to abook"
macro index,pager ,r ":unset wait_key; set pipe_decode\n|mutt_add_reminder\n:set wait_key; unset pipe_decode\n" "record a reminder"
set autoedit
set wrap_search

set beep_new
set delete=yes # purge deleted messages without asking
set help # show the help lines
set history=20 # number of lines of history to remember
set include # always include messages when replying
set reverse_alias # attempt to look up my names for people
set nosave_empty # remove files when no messages are left
set sort=reverse-date-received # primary sorting method
#set sort=threads
#set imap_pass =`"echo -n $(pwsafe -p ACCOUNT_NAME -e -q | tail -n 1) |"
#set my_tmpsecret=`gpg -o ~/.secret/.tmp -d ~/.secret/.passwd.gpg`
#set my_cpass=`awk '/Cisco:/ {print $2}' ~/.secret/.tmp`
#set my_gpass=`awk '/Gmail:/ {print $2}' ~/.secret/.tmp`
#set my_del=`rm -f ~/.secret/.tmp`
#set imap_pass=$my_cpass
# Composing
set signature = "~/.signature" #file which contains my signature
#set postpone = ask-yes
#set postponed="=Drafts"
#set editor = 'vim +/^$ "+normal j"' # Open vim one line past first blank line
set fast_reply = yes #skip initial prompts when replying
set abort_nosubject = no
set abort_unmodified = ask-yes


#Replying
#set reply_self = no # Reply to recipients, not to myself on my own msgs
set indent_string = "> "
set include = yes
set attribution = "On %d, %n wrote:"
set bounce_delivered = yes

# Forwarding
set forward_format = "Fwd: [ %s ]"
set forward_quote = yes


set mailcap_path = ~/.mutt/mailcap
auto_view text/html
auto_view application/zip
auto_view application/x-gzip
auto_view application/x-gunzip
auto_view application/pgp-signature
auto_view application/pgp
auto_view application/octet-stream
auto_view application/x-zip-compressed
auto_view application/x-arj-compressed
auto_view application/x-tar-gz
auto_view application/ms-tnef
auto_view application/msword
auto_view application/x-perl
auto_view application/x-sh
auto_view application/x-tcl
auto_view application/x-delphi-source
#auto_view text/html
auto_view text/x-vcard
#
#alternative_order text/enriched text/plain text/html
#



bind generic { top-page
bind generic } bottom-page

bind index G imap-fetch-mail

Tuesday, August 2, 2011

Mutt

Stay tunned for more info :-)

Stuff to figure out:
1. Email notification area in mutt.

Navigation:
* -- go to the last message.
= -- First message.
/ or / -- for searching in subject forward or backward.
/ -- to seach in the body.

Deleting messages:
d -- to delete current message. Messages selected for delete will be marked D.
If you have selected a message to be deleted, Mutt will skip that message when you are moving up or down between messages. If you want to access a deleted message, type the number of the message, hit < Enter > , and it will be highlighted.

$ -- the messages you have selected for deletion will be removed.

Navigating:

j or Down next-entry move to the next entry
k or Up previous-entry move to the previous entry
z or PageDn page-down go to the next page
Z or PageUp page-up go to the previous page
= or Home first-entry jump to the first entry
* or End last-entry jump to the last entry
q quit exit the current menu
? help list all keybindings for the current menu


^A or bol move to the start of the line
^B or backward-char move back one char
Esc B backward-word move back one word
^D or delete-char delete the char under the cursor
^E or eol move to the end of the line
^F or forward-char move forward one char
Esc F forward-word move forward one word
complete complete filename or alias
^T complete-query complete address with query
^K kill-eol delete to the end of the line
ESC d kill-eow delete to the end ot the word
^W kill-word kill the word in front of the cursor
^U kill-line delete entire line
^V quote-char quote the next typed key
history-up recall previous string from history
history-down recall next string from history
backspace kill the char in front of the cursor
Esc u upcase-word convert word to upper case
Esc l downcase-word convert word to lower case
Esc c capitalize-word capitalize the word
^G n/a abort
n/a finish editing


The Message Index:
c change to a different mailbox
ESC c change to a folder in read-only mode
C copy the current message to another mailbox
ESC C decode a message and copy it to a folder
ESC s decode a message and save it to a folder
D delete messages matching a pattern
d delete the current message
F mark as important
l show messages matching a pattern
N mark message as new
o change the current sort method
O reverse sort the mailbox
q save changes and exit
s save-message
T tag messages matching a pattern
t toggle the tag on a message
ESC t toggle tag on entire message thread
U undelete messages matching a pattern
u undelete-message
v view-attachments
x abort changes and exit
display-message
jump to the next new message
@ show the author's full e-mail address
$ save changes to mailbox
/ search
ESC / search-reverse
^L clear and redraw the screen
^T untag messages matching a pattern

Status Flag:
D -- Message is marked for deletion
d -- Message have attachment marked for deletion
K -- Contains a PGP public key
N -- Message is new.
O -- Message is old.
P -- Message is PGP encrypted
r -- Message has been replied to.
S -- Message is PGP signed, and the signature is succefully verified.
s -- message is PGP signed.
! -- message is flagged.
* -- message is tagged.

the following flags reflect who the message is addressed to:
+ message is to you and you only
T message is to you, but also to or cc'ed to others
C message is cc'ed to you
F message is from you
L message is sent to a subscribed mailing list

The Pager:
go down one line
display the next page (or next message if at the end of a message)
- go back to the previous page
n search for next match
S skip beyond quoted text
T toggle display of quoted text
? show keybindings
/ search for a regular expression (pattern)
ESC / search backwards for a regular expression
\ toggle search pattern coloring
^ jump to the top of the message
$ jump to the bottom of the message


Threaded Mode

^D delete-thread delete all messages in the current thread
^U undelete-thread undelete all messages in the current thread
^N next-thread jump to the start of the next thread
^P previous-thread jump to the start of the previous thread
^R read-thread mark the current thread as read
ESC d delete-subthread delete all messages in the current subthread
ESC u undelete-subthread undelete all messages in the current subthread
ESC n next-subthread jump to the start of the next subthread
ESC p previous-subthread jump to the start of the previous subthread
ESC r read-subthread mark the current subthread as read
ESC t tag-thread toggle the tag on the current thread
ESC v collapse-thread toggle collapse for the current thread
ESC V collapse-all toggle collapse for all threads
P parent-message jump to parent message in thread


Reference:
http://osiux.com/mutt-address-book
https://wiki.archlinux.org/index.php/Mutt
http://www.mattrope.com/computers/conf/muttrc.html
http://www.kurokatta.org/doc/muttrc
http://www.ademar.org/misc/muttrc
http://mutt.blackfish.org.uk/
http://www.ucolick.org/~lharden/learnmutt.html
http://www.mutt.org/doc/manual/manual-2.html
http://rc.vc/files/mutt/folderhooks.html
http://jble.com/mutt/sugar.muttrc
http://www.fefe.de/muttfaq/faq.html
http://wiki.mutt.org/?MuttFaq
http://does-not-exist.org/roessler/muttrc
http://linsec.ca/Using_mutt_on_OS_X

Nice article on saving secrets and multiple IMAPservers:
http://nixtricks.wordpress.com/2010/05/20/mutt-multiple-email-accounts-using-hooks/

mailcaps:
http://bugs.mutt.org/trac/attachment/ticket/3238/mailcap

Monday, August 1, 2011

Things to consider after installing Linux on your box

Here are few things which you can consider after installing linux on your box:

1. Install NTP to sync up the time.
2. Install VNC server/client.
3. Install antiword, a word document reader on terminal.
4. Install wmctrl to configure/control window manager.
5. Install Adobe flash.
6. Run a cronjob to activate updatedb to "locate" linux command.
7. VPN && Softtoken installation for remote users on a dual boot system.
8. Configure ssh login without password for remote login.
9. Install google video plugin.
10. Install pidgin for webex connect, yahoo or gtalk chat. Pidgin doesn't support Voice/video chats. Use Empathy if you need Voice && Video chats aswell.
11. Skype installation
12. Coming soon......

Stuff which are more specific to me:
1. Install eenadu font. --- create a folder .fonts @your home directory ---> Go to eenadu.net in the fonts section download eenadu.ttf font and copy it to the .fonts folder ---> DONE.

Monday, July 25, 2011

How install Ubuntu on Fedora on dual boot system

Following are the assumptions:
1. You have dual boot system with windows XP & Fedora

I followed following steps:
1. On Windows XP:
Click Start->Run and then type diskmgmt.msc and press Enter. The Disk Management tool opens.




Reference:
http://docs.fedoraproject.org/en-US/Fedora/13/html/Installation_Guide/sn-x86-uninstall-dual.html

Wednesday, July 20, 2011

Oracle 11gR2 on Ubuntu 11.04

I'm a newbie to Ubuntu. After installing Ubuntu on my machine, I figured out that Oracle 11g doesn't support Ubuntu officially. At first I felt bad for installing Ubuntu, then I searched in net and I came across some wonderful blogs which explains procedure to install the Oracle on Ubuntu:

http://www.pythian.com/news/1355/installing-oracle-11gr1-on-ubuntu-810-intrepid-ibex
http://lesscode.blogspot.com/2010/04/install-oracle-11g-r2-on-ubuntu-104.html
http://mikesmithers.wordpress.com/2010/03/14/installing-oracle-11gr2-on-ubuntu-9-10

I followed info in the above blogs along with some little effort kept on searching web to install Oracle 11gR2 on Ubuntu 11.04 on 32 bit Machine.

Now lets start as a root

sudo su

You might already downloaded Oracle 11g R2:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

You need to create an account to download the software. There will be two files for Oracle 11g R2. Now unzip the software at your home directory (/home/username/). Username will be your Ubuntu login username

unzip linux_11gR2_database_1of2.zip
unzip linux_11gR2_database-2of2.zip

unzipped files will be at /home/username/database.

At first make sure you install or upgrade following packages(as a root):
apt-get install gcc
apt-get install make
apt-get install binutils
apt-get install gawk
apt-get install x11-utils
apt-get install rpm
apt-get install build-essential
apt-get install libaio1
apt-get install libaio-dev
apt-get install libmotif4
apt-get install libtool
apt-get install expat
apt-get install alien
apt-get install ksh
apt-get install pdksh
apt-get install unixODBC
apt-get install unixODBC-dev
apt-get install sysstat
apt-get install elfutils
apt-get install libelf-dev
apt-get install binutils
apt-get install lesstif2
apt-get install lsb-cxx
apt-get install lsb-rpm
apt-get install libstdc++5

May be too long...But it won't take much time to install those packages.

Now lets create some softlinks to the binaries so that our beloved Oracle takes it up(as a root):
ln -sf /bin/bash /bin/sh
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/rpm /bin/rpm
ln -s /usr/bin/basename /bin/basename

ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a
ln -s /usr/lib/i386-linux-gnu/libc_nonshared.a /usr/lib/libc_nonshared.a
ln -s /lib/i386-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1
ln -s /usr/lib/i386-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so.6

Time to create some users(as a root):
addgroup oinstall
addgroup dba
addgroup nobody
usermod -g nobody nobody
useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle
mkdir /home/oracle
chown -R oracle:dba /home/oracle
mkdir /etc/rc.d
for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done
mkdir -p /u01/app/oracle
chown -R oracle:dba /u01

mv /home/username/download/database /media/database
chown -R oracle:oinstall /media/database

Now lets change some system configuration files:

Add the following lines at the end of the file /etc/sysctl.conf:
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 1048576
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65500
fs.aio-max-nr = 1048576

Add the following lines at the end of the file /etc/security/limits.conf:
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard nofile 65536
oracle soft nofile 1024

Add the following lines at
/etc/pam.d/login just above the line "session required pam_limits.so":

session required /lib/security/pam_limits.so

Lets activate the new settings from /etc/sysctl.conf with this command:
sysctl -p

Now run the following commands as root:
init 3
DISPLAY=:0; export DISPLAY; xhost +;

Till now we have done everything as a root, Now lets move to user oracle to install Oracle 11g R2(as a user oracle):
su - oracle

DISPLAY=:0 ; export DISPLAY
xclock
Make sure that clock window got popped up and then press Ctrl-c on the terminal.

cd /media/database
./runInstaller -ignoreSysPrereqs

Last command intiates Oracle 11g R2 installation.

1. Configure Security Updates:
You want to get security updates you can register with your mail id or else ignore it.

2. Installation option:
select "Create and configure a database"

3. System Class:
select "Desktop Class"

4. Typical Installation:
Update your Administrative password.

5. Pre-requisite Checks:
Select "Ignore All" and press next.

and now onwards go with defaults. Till it creates the database

Note: If you want SCOT user, at the password management option activate the user SCOT.

By default at the end of the installation you will get the database named "orcl".

After Installation completes lets do some cross checkings & little config changes:

As a root run the following commands:
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh

creating startup/init script:
Update the following script in /etc/init.d/oracledb. Follow the referenced blogs above for explanation.

#!/bin/bash
#
# /etc/init.d/oracledb
#
# Run-level Startup script for the Oracle Listener and Instances
# It relies on the information on /etc/oratab

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export ORACLE_OWNR=oracle
export PATH=$PATH:$ORACLE_HOME/bin

if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi

case "$1" in
start)
# Oracle listener and instance startup
echo -n "Starting Oracle: "
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl start"
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
touch /var/lock/oracle
echo "OK"
;;
stop)
# Oracle listener and instance shutdown
echo -n "Shutdown Oracle: "
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/lsnrctl stop"
su $ORACLE_OWNR -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
rm -f /var/lock/oracle
echo "OK"
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: `basename $0` start|stop|restart|reload"
exit 1
esac

exit 0
#####################################################

Run following commands as a root.
chmod a+x /etc/init.d/oracledb
update-rc.d oracledb defaults 99

Testing:
connect to the user oracle from root:
su - oracle
Run the following commands to connect to the sqlplus as an oracle user.
. oraenv
ORACLE_SID = [oracle] ? orcl //output, give the orcl at the '?'
sqlplus '/as sysdba'
Now you will be having the sql prompt.


To make the Oracle start at the system boot:
in /etc/oratab change the 'N' on orcl line to Y as follows;

orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y


Wednesday, July 6, 2011

Lectures

Here I will be listing Lectures which are worth to go through them:

http://www.stanford.edu/class/cs110/ : This is about the Principles of computer systems. It consitutes very good lectures on linux, GDB, VIM, EMACS and brush up on network programming.

http://linuxpoison.blogspot.com: This blog contains good linux related articles. Have a peep into them.

http://www.thegeekstuff.com: Ramesh Natarajan is an author of the blog. It includes very nice articles on instruction guides, How-Tos, troubleshooting tips and tricks Linux and open source technologies. You can peek into "About" section of the blog for more info.


Disclaimer: I'm not sure that those links work for ever, But I hope they will be maintained.

Tuesday, July 5, 2011

Emacs

Will be updating evil-mode

Installing latest emacs:
sudo port install emacs
sudo port install emacs-app

http://wikemacs.org/wiki/Installing_Emacs_on_OS_X


Using following link to install mac ports
https://guide.macports.org/chunked/installing.macports.html


Start playing tetris:
M-x tetris

Grep with in Emacs:
M-x grep

Emacs can compare two files and highlight their differences (M-x ediff)
Emacs is a file manager (M-x dired)
Emacs can read news, mail, and RSS feeds (M-x gnus)
You can even play tetris in Emacs (M-x tetris)

Emacs with Cscope:
To run Cscope in Emacs you need cscope-indexer and xcscope.el in appropriate folders. They can be found at contrib/xcscope/ in cscope source code.
File cscope-indexer must be executable and placed in some directory in system PATH. File xcscope.el must be copied in some folder in Emacs’s load path. Usually, my .el files are in folder ~/elisp and this folder can be included in Emacs load path by adding this line to ~/.emacs:

(add-to-list 'load-path "~/elisp")

When this is done, we can include cscope in Emacs by adding this line to ~/.emacs :
(require 'xcscope)

Start Emacs, type M-x cscope and type TAB key (one or more times). If you see a list of cscope functions in other buffer, everything is fine. Set the cscope-initial-directory variable by typing M-x cscope-set-initial-directory and ~/projects/foo in the mini buffer (we can check variable values in Emacs by typing M-x describe-variable following the variable name).

Create list of files to index and cscope database with M-x cscope-index-files (this should create files cscope.files and cscope.out)

To move between the Cscope tags: "SPACE BAR"
To know the help commands in cscope file: C-h m

(From file xcscope.el)
;; * Keybindings:
;;
;; All keybindings use the "C-c s" prefix, but are usable only while
;; editing a source file, or in the cscope results buffer:
;;
;;      C-c s s         Find symbol.
;;      C-c s d         Find global definition.
;;      C-c s g         Find global definition (alternate binding).
;;      C-c s G         Find global definition without prompting.
;;      C-c s c         Find functions calling a function.
;;      C-c s C         Find called functions (list functions called
;;                      from a function).
;;      C-c s t         Find text string.
;;      C-c s e         Find egrep pattern.
;;      C-c s f         Find a file.
;;      C-c s i         Find files #including a file.
;;
;; These pertain to navigation through the search results:
;;
;;      C-c s b         Display *cscope* buffer.
;;      C-c s B         Auto display *cscope* buffer toggle.
;;      C-c s n         Next symbol.
;;      C-c s N         Next file.
;;      C-c s p         Previous symbol.
;;      C-c s P         Previous file.
;;      C-c s u         Pop mark.
;;
;; These pertain to setting and unsetting the variable,
;; `cscope-initial-directory', (location searched for the cscope database
;;  directory):
;;
;;      C-c s a         Set initial directory.
;;      C-c s A         Unset initial directory.
;;
;; These pertain to cscope database maintenance:
;;
;;      C-c s L         Create list of files to index.
;;      C-c s I         Create list and index.
;;      C-c s E         Edit list of files to index.
;;      C-c s W         Locate this buffer's cscope directory
;;                      ("W" --> "where").
;;      C-c s S         Locate this buffer's cscope directory.
;;                      (alternate binding: "S" --> "show").
;;      C-c s T         Locate this buffer's cscope directory.
;;                      (alternate binding: "T" --> "tell").
;;      C-c s D         Dired this buffer's directory


References:
http://kliketa.wordpress.com/2010/07/09/using-cscope-source-browsing-tool
http://stackoverflow.com/questions/364495/non-gui-emacs-with-cscope
http://www.stanford.edu/class/cs110/other/emacsrefcard.pdf
http://lists.gnu.org/archive/html/help-gnu-emacs/ -- Emacs mailer list

Thursday, April 28, 2011

AP Results

Sites which will provide marks along with grades:
examresults.ap.nic.in
aponline.gov.in
results.cgg.gov.in
esevaonline.com
results.apit.ap.gov.in
portal.ap.gov.in

Sites which will provide only grades:
www.eenadu.net,
www.exametc.com
www.rediff.com/exams
www.manabadi.com,
www.results.manabadi.co.in
www.schools9.com
www.results-ap.com


ƒÅŒª½ «ÖªÃ_©Õ
* H‡-®ý-‡-¯þ-‡©ü ©Çu¢œþ-©ãj¯þ ÊÕ¢* 1100 ¯ç¢¦-ª½Õ¹×, ƒÅŒª½ \ ©Çu¢œþ-©ãj¯þ, „çá¦ãj©ü ÊÕ¢* ƪá¯Ã 1800Ð4251110 ¯ç¢¦-ª½ÕÂ¹× œ¿§ŒÕ©ü Í䧌ÖL. ¨ 殫 ŸÄyªÃ X¶¾LÅŒ¢, «Öª½Õˆ©Õ Åç©Õ-²Ähªá.
* \XÔ ‚¯þ-©ãj¯þ ꢓŸÄ©ðx «Öª½Õˆ©Õ ©¦µ¼u-«Õ-«Û-Åêá.
* H‡-®ý-‡-¯þ-‡©ü „çá¦ãj©ü, ©Çu¢œþ-©ãj¯þ NE-§çÖ-’¹-ŸÄ-ª½Õ©Õ 125Ð5225 ¯ç¢¦-ª½ÕÂ¹× œ¿§ŒÕ©ü Íä®Ï ¹¢X¾Üu-{ªý ’í¢ÅŒÕ ŸÄyªÃ «Öª½Õˆ©Õ Åç©Õ-®¾Õ-Âî-«ÍŒÕa.


X¶¾L-ÅéÕ, “ê’œ¿Õx ƒÍäa ¤¶òÊÕx:
‡ªá-ªý-˜ã©ü 543212222, 52800
* „îœÄ-¤¶ò¯þ 56731
* ‰œË§ŒÖ 5545678, 54040
* šÇšÇ 129660
* J©-§ŒÕ¯þq 56566, 56300999
* œíÂî„çÖ 54321234
* H‡-®ý-‡-¯þ-‡©ü 12630099, 125560, 1255596
* Æ¢Ÿ¿ª½ÖÐ505101096, 53030, 58888, 57337

‡®ý-‡¢-‡-®ý©Õ (X¶¾L-ÅÃ-©Õ+-«Ö-ª½Õˆ©Õ)
* H‡-®ý-‡-¯þ-‡©ü inter2 ªÃ®Ï æ®p®ý ƒ*a £¾É©ü-šË-éšü ¯ç¢¦ª½Õ ªÃ®Ï.. 55352, 56300 ¯ç¢¦-ª½ÕÂ¹× ‡®ý-‡¢-‡®ý X¾¢XÏ¢-ÍÃL

‡®ý-‡¢-‡-®ý-©Õ(-X¶¾-L-ÅÃ-©Õ+-“ê’-œþ©Õ)
* ÆEo ¯çšü-«-ªýˆ©Õ IPE2ÆE-ªÃ®Ï æ®p®ý ƒ*a £¾É©ü šËéšü ¯ç¢¦ª½Õ ªÃ®Ï, 57333, 54242, 56300©Â¹× ‡®ý-‡¢-‡®ý X¾¢¤ÄL.
* «%Ah-NŸ¿u X¶¾L-ÅÃ-©Â¹× IPEV2 ÆE ªÃ®Ï æ®p®ý ƒ*a £¾É©üšËéšü ¯ç¢¦ª½Õ ªÃ®Ï 57333, 54242, 56300Â¹× X¾¢¤ÄL.
* ÆEo ¯çšü-«-ªýˆ©Õ IPEG2 ÆE ªÃ®Ï æ®p®ý ƒ*a £¾É©ü-šË-éšü ¯ç¢¦ª½Õ ªÃ®Ï 58888, 5676750, 56677, 5667788©Â¹× ‡®ý-‡¢-‡®ý X¾¢XÏ¢-ÍÃL.
* ÆEo-¯ç-šü-«-ª½Õˆ©Õ «%Ah-NŸ¿u IPEV2 £¾É©ü-šË-éšü Ê¢¦ªý 58888, 5676750, 56677, 5667788 ¯ç¢¦-ª½xÂ¹× ‡®ý-‡¢-‡®ý Í䧌ÖL

Reference:

Eenadu on 28/04/2011 http://eenadu.net/panelhtml.asp?qrystr=htm/panel3.htm