Monday, January 16, 2012 2:11:42 AM
find src/app src/hci -name dbaccess -prune -o -name "*.c" -exec grep -H dba_oracle {} \;
Wednesday, January 11, 2012 2:17:31 AM
2349 diff -r -q INT-WP3-Or/ INT-WP3-Merge/
2350 diff -r -q INT-WP3-Or/ INT-WP3-Merge/|grep -v .svn
2351 diff -r -q INT-WP3-Or/ INT-WP3-Merge/|grep -v .svn|grep -v .o
2352 diff -r -q INT-WP3-Or/ INT-WP3-Merge/|grep -v .svn|grep -v .o > tmp1
2360 cat tmp1 |awk '{print "INT-WP3-Or"/$1}'
2361 cat tmp1 |awk '{print "INT-WP3-Or/"$1}'
2362 cat tmp1 |awk '{print "INT-WP3-Or/"$1 "INT-WP3-Merge/'$1}'
2363 cat tmp1 |awk '{print "INT-WP3-Or/"$1 "INT-WP3-Merge/"$1}'
2364 cat tmp1 |awk '{print "INT-WP3-Or/"$1 " INT-WP3-Merge/"$1}'
2365 cat tmp1 |awk '{print "diff Naur INT-WP3-Or/"$1 " INT-WP3-Merge/"$1}'
2366 cat tmp1 |awk '{print "diff -Naur INT-WP3-Or/"$1 " INT-WP3-Merge/"$1}'
Wednesday, December 28, 2011 8:26:03 AM
- Include c header in c++ header
--> extern "C" {
#include "c-header.h"
}
- Multi define in header.h
--> remove this file cause the multi define
--> include header into c/c++ file.
Monday, November 28, 2011 7:19:05 AM
Installing Oracle 10g on Ubuntu is an easy task bcz Oracle has created a Debian and Ubuntu package repositories. so we can install it using apt-get and aptitude.
Step 1:
Add the following lines to the /etc/apt/sources.list
# Oracle Repository
deb
http://oss.oracle.com/debian unstable main non-free
Step 2:
import the key
wget
http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -
Step 3:
Update the package repository database by using the following command:
sudo apt-get update
Step 4:
Install the Oracle Express packages:
sudo aptitude install oracle-xe oracle-xe-client
Step 5:
Configure the oracle as per ur need
sudo /etc/init.d/oracle-xe configure
Step 6:
Access the nice Oracle web interface by:
http://127.0.0.1:8080/apexlink :
http://naturefactory.wordpress.com/2010/02/22/how-to-install-oracle-10g-on-ubuntu/
Friday, October 14, 2011 5:57:49 AM
1.ps -p $$
2.echo $0
3.
$@ : the rule's target
$< : the rule's prerequisite
$? : all the rule's of date
$^ : all prerequisite
Friday, October 7, 2011 4:44:20 AM
nosetest
Support coverage in nosetests
1. Install zlib
zlibc
zlib1g-dev
2. re install python
./configure
make , make install
3. install coverage
http://nedbatchelder.com/code/coverage/4. Run again
follow this page to know how to use options
http://readthedocs.org/docs/nose/en/latest/usage.html
Monday, October 3, 2011 3:10:41 AM
makefile
1.check file exit in makefile
timer_file := $(RUN_TIME)/$(TIMER_FILE)
checking_env_cucator:
@if [ ! -e $(timer_file) ]; then echo $(timer_file) does not exist;$ exit 1; fi;
Friday, September 30, 2011 4:55:55 PM
django
1. Disable add in admin site
class AddNotAllowedModelAdmin(admin.ModelAdmin):
# Other stuff here
def has_add_permission(self, request):
return False
2. Simulate server in local
#define in setting.py
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
$python -m smtpd -n -c DebuggingServer localhost:1025
Thursday, September 29, 2011 3:27:04 AM
gedit
1. download
http://www.psyguygames.com/SplitView2.01.tar.gz2. Extract
- Create ~/.gnome2/gedit/plugins if it doesnot exist
- copy SplitView2.01.tar.gz into ~/.gnome2/gedit/plugins
- extract
tar -xf SplitView2.01.tar.gz
- copy all files to ~/.gnome2/gedit/plugins
3. Using
- Start gedit
- Exit/Preference , plugin tab
- Check the Split view
- Using
1 2 3 4 5 6 Next »