Wild Daisy

Daisy's blog ..Its me

Subscribe to RSS feed

find

find src/app src/hci -name dbaccess -prune -o -name "*.c" -exec grep -H dba_oracle {} \;

shell command

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}'




Mix c , c++

- 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.

[error]Xlib.h: No such file or directory



sudo apt-get install libx11-dev

Install oracle 10g on ubuntu 10.4


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/apex



link :
http://naturefactory.wordpress.com/2010/02/22/how-to-install-oracle-10g-on-ubuntu/

get currently shell


1.ps -p $$

2.echo $0


3.
$@ : the rule's target
$< : the rule's prerequisite
$? : all the rule's of date
$^ : all prerequisite

coverage in 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



makfile hint

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;

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



split view in gedit


1. download

http://www.psyguygames.com/SplitView2.01.tar.gz


2. 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