Author Archives: chmouel

History expansion and substitions in ZSH

I better to keep that somewhere since i always forget that thing, to do a search and replace from the command line in zsh. you just have to do the :s^FOO^BAR after your expansion For example you just have typed … Continue reading

Posted in Scripts | Leave a comment

Noah latest update

Litle one is growing and soon one year old

Posted in Noah | 1 Comment

Rename bunch of file via regexp

To rename bunch of files via regexp i was using before a homegrown python script call rename-regexp.py to change bunch of files with a regexp. But since then i discovered wdired which is pretty fantastic to use that from emacs. … Continue reading

Posted in Emacs | Leave a comment

Benchmarking with PGBench: TPS results.

pgbench is not the best tools to benchmark postgres but it’s the one shipped by default with postgres. It does not do a good job for benchmarking your “web apps” SQL wise, it will give you some good indication about … Continue reading

Posted in postgres | Leave a comment

Compile tora with oracle

After installing Oracle instant client, if you have them in /usr/local/lib/instantclient_10_2, this is the command line i use : ./configure –with-instant-client=/usr/local/lib/instantclient_10_2 –with-oracle-includes=/usr/local/lib/instantclient_10_2/sdk/include –with-oracle-libraries=/usr/local/lib/instantclient_10_2 –with-oci-version=10G Let me know ny email if you want the deb for ubuntu linux.

Posted in Oracle | 5 Comments

sqlplus timeout when connnecting

If you are using a pam_ldap or pam_nis environement and it happend that sqlplus does not want to connect as user but it does as root, waiting for : socket(PF_FILE, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_FILE, path=”/var/run/.nscd_socket”}, 110) = -1 … Continue reading

Posted in Oracle | 6 Comments

My first webpage

Classic my first webpage is still on the web that was back in 98 and that was about Emacs http://membres.lycos.fr/crblinux/html/xemacs.html It is in french thought.

Posted in Emacs | Leave a comment

I am a user of the Bagdhad Musem Wiki

Ah i just discovered that the Bagdhad Musem have fetched my wikipedia page and i am on it now : http://www.baghdadmuseum.org/ref/?title=User:Chmouel I feel greatly honored (yeah whatever).

Posted in Misc | Leave a comment

Xterm like Control-L in Eshell

If you want to emulate Control-L in Eshell (the Emacs Shell) like in Xterm, you can use this : (defun eshell-show-minimum-output () (interactive) (goto-char (eshell-beginning-of-output)) (set-window-start (selected-window) (save-excursion (goto-char (point-max)) (line-beginning-position))) (eshell-end-of-output)) And add a key bind to it in … Continue reading

Posted in Emacs | Leave a comment

Error loading native library: libnjni9.so

If you like me when running oracle on x86_64 get that damn : Error loading native library: libnjni9.so when launching dbca and you have googled the thousands five hundred useless answer. Just add the path of the libs $ORACLE_HOME/lib and … Continue reading

Posted in Oracle | 1 Comment