domingo, 30 de septiembre de 2007

Era manso pero topaba.

Juanito cumplió 78 años la semana pasada.

El día de su cumpleaños sacrificó su partida diaria de cartas para entretenernos tras la comida con algunas de sus batallitas entrañables.

En una de ellas, mientras nos hablaba de un conocido, adornó la historia con la frase del título y lo cierto es que nos hizo mucha gracia a todos los que le acompañábamos.

Felicidades Juan.

domingo, 9 de septiembre de 2007

Indentado y tabulación en HTML

Mostrar indentados y tabulaciones en una página html es algo más complicado que en un fichero de texto.

En el anterior post me encontré con esta necesidad. Por si le sirve a alguien, explico cómo puede hacerse mediante style tags:

El siguiente código ...

<style>
<!-- p.Normal {margin:0cm;} -->
</style>
<p class=Normal style='text-indent:30pt'>line 1 - tab level 1 - 30pt</p>
<p class=Normal style='text-indent:60pt'>line 2 - tab level 2 - 60pt</p>
<p class=Normal style='text-indent:90pt'>line 3 - tab level 3 - 90pt</p>
<p class=Normal style='text-indent:60pt'>line 4 - tab level 2 - 60pt</p>
<p class=Normal style='text-indent:30pt'>line 5 - tab level 1 - 30pt</p>

... muestra en el navegador lo siguiente:

line 1 - tab level 1 - 30pt

line 2 - tab level 2 - 60pt

line 3 - tab level 3 - 90pt

line 4 - tab level 2 - 60pt

line 5 - tab level 1 - 30pt


Feliz indentado.

jueves, 6 de septiembre de 2007

Getting Oracle 10 datapump full path

This week I have been working on a bash script and I had the need to know the full path of my Oracle 10 datapump directory (directories).

I have found some useful links with general info about datapumps, how to create them, etc, but none of them told me how to find out their defined paths...

Navigating the dictionary information through the PL/SQL Developer trees I have found the view SYS.ALL_DIRECTORIES which contains what I wanted. I have just take a look to this view definition and... this is how I finally get my datapump dirs:

...

export IFS="

"

export DATAPUMP_DIRS=`

echo "

set heading off;

set feedback off;

select d.os_path

from sys.obj$ o, sys.dir$ d

where o.obj# = d.obj#

and o.type# = 23;

" | sqlplus -S $USER/$PASSWORD

`

...