Friday, April 27, 2007

Cherish And Kali Strokejobs

Truth

If life does not have ideals or a deep draft, it loses value and meaning of life, we fall into the temptation of creating "idols" and it becomes difficult to achieve happiness and peace ... if we focus instead on a project which we always dreamed deep, east to face the reality and the problems that arise, you can begin to wobble (if not well grounded) and in the worst cases,

crumble like anything human ... and fall into the same ... You ask then is what we propose us ... well, what we believe is not to crumble construction, the focus is the foundation, ie, where introduce and support our aspirations. For us, the ideals must be grounded in something transcendent, not in ourselves or others or material, or things of this world (because everything is fleeting), but slightly higher from our own spiritual side.

Try to remember life in the transcendent side of the soul, then in accordance with it, we set targets and projects, but always with a reference, there is a sense of time, to show us the principles and values \u200b\u200bby which we live ... and so we convey the true hope ... and for that matter, in life we \u200b\u200bhave hope, that all is not lost, that not everything ends with death, because everything has a ... (and because we hope we write this)

to be someone who will not leave you, who can not die, who never fails, that is always by your side and who loves you more than what you yourself love, therefore I say: Let's get up and walk ... We suggest you think about the meaning of your life, looking more there than what you see, asking for the ideals that you live ... and die.
No wonder that you are going to make your life but who you are BEING.

Ustav G

T HIBON (1903-2001), great French writer, says in his book

Our eyes blind to the light

" Modern man, before talking about God , must be helped to realize the emptiness and falsehood that contain all the idols with which they vainly attempt to replace God. You have to let you discover that your desire (to infinity) is insatiable and more real than all the objects that has so far tried in vain to satisfy "

Victor Frankl says The consciousness is the voice of transcendence ... The irreligious man sees consciousness as something behind which there is nothing else. But awareness is not the end, but the penultimate ... The irreligious man reached the summit only secondary ... The true summit is hidden from His sight is blurred by the fog and he does not dare to come into this fog, this insecurity. It dares to only the religious man. It takes courage to make a profession of what has been acknowledged as true and humility is also needed to call him by that word with which men call for millennia: in the simple word God 1

"There is only one purpose in this life and this is a purpose that is beyond this life." GK Chesterton "Very weak is the reason, but comes to understand that there are many things beyond." (Pascal)

1 -

Victor Frankl, The unconscious God, Ed School, Buenos Aires, 1966, pp. 63-66

Tuesday, April 24, 2007

Quickest Way To Get Rid Of Impetigo

The power of time



instruction
time, used as is, returns statistics of time spent in the execution of the command is passed as parameter. According to man time:





"(...) The time command runs the command with the arguments supplied


two. When command finishes, time writes a message on standard output


returning time statistics on the implementation of this program


. These statistics are made up of (i) the real

time elapsed between the call and the completion of order, (ii)

time user of the processor ( the sum of the values \u200b\u200band
tms_utime

tms_cutime in a struct tms as returned by times (2)), and (iii) the time processor system (the sum of the values \u200b\u200band
tms_stime tms_cstime in a struct tms as returned by times (2)). (...)"

For example: @ dballester
Nebuchadnezzar: ~ $ time scp sqldeveloper-1.1.2.2579-no-jre.zip dballester @ localhost: / tmp/prueba2 . zip dballester @ localhost's password: sqldeveloper-1.1.2.2579-no-jre.zip 100% 39MB 38.8MB / s 00:01
real 0m4.963s user
0m0.688s sys 0m0.104s dballester @ Nebuchadnezzar: ~ $
Ok, but if we read the man's time, it is able to give much more information. What we see real, user and sys is just the default output and the tip of the iceberg. time statistics can give us (among others): the number of times the process has been taken out of main memory, the number of times the system has removed the CPU implementation process for having spent all the allotted time for him, number of messages (sockets) sent and received ...
All these statistics (see man time) can be obtained indicating an output format determined time. As I am, among other things, vague and forgetfulness, I have assembled an script that displays all the statistics. There is no magic, only the show but grouped by area. I leave the code along with an example of execution. For those who are dedicated to consulting think we will be very nice to have this script by hand. GPL2 is licensed so you know you can use, transform and distribute under the limits of that license. Script
time_command.sh available in.solit.us http://in.solit.us/archives/download/23169

Once downloaded your machine, you have to give rights of Execution / Chmod 755 time_command.sh

Release Example
Accepts 2 parameters, the first should be the command to execute, limited in quotes. The second is the log file where you saved the output of the statistics. The second parameter is optional and if not stated a script that will generate the data (date / time to seconds) of run time, and leave it in the same directory where you launched the script ( therefore we must have write in that directory.) I recommend you leave this script in your home and you cast it from there

$
./time_command.sh "scp sqldeveloper-1.1.2.2579-no-jre.zip dballester@localhost:/tmp/prueba2.zip" cp2.log
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 43:53:7e:71:3a:95:ff:b4:d1:2d:21:dc:c4:1b:ad:1d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
dballester@localhost's password:
sqldeveloper-1.1.2.2579-no-jre.zip



Log resultante



$ cat cp2.log
Comand executed scp sqldeveloper-1.1.2.2579-no-jre.zip dballester@localhost:/tmp/prueba2.zip
TIME COMMAND

Elapsed real (wall clock) time used by the process, in [hours:]minutes:seconds 0:06.91 Elapsed real (wall clock) time used by the process in seconds 6.91

CPU STASTISTICS

Percentage of the CPU that this job got(1) 13%
Total number of CPU-seconds used by the system on behalf of the process (in kernel mode), in seconds 0.11
Total number of CPU-seconds that the process used directly (in user mode), in seconds 0.82
Number of times that the program was context-switched voluntarily(2) 5437
Number of times the process was context-switched involuntarily (because the time slice expired) 6024
Number of signals delivered to the process 0 MEMORY STATISTICS
Average amount of shared text in the process, in Kilobytes 0
Average size of the process’s unshared data area, in Kilobytes 0
Average unshared stack size of the process in Kilobytes 0
Average total (data+stack+text) memory use of the process, in Kilobytes 0
Maximum resident set size of the process during its lifetime, in Kilobytes 0 Average resident set size of the process in Kilobytes 0 Number of minor, or recoverable, page faults(3) 1031 Number of times the process was swapped out of main memory 0
System’s page size in bytes(4) 4096


I/O STATISTICS

Number of file system inputs by the process 0
Number of file system outputs by the process 0
Number of major, or I/O-requiring, page faults that occurred while the process was running(5) 1
Number of socket messages received by the process 0 Number of socket messages sent by the process 0


(1) This is just user + system times divided by the total running time
(2) For instance while waiting for an I/O operation to complete
(3)These are pages that are not valid (so they fault)
but which have not yet been claimed by other virtual pages.
Thus the data in the page is still valid but the system tables must be updated.
(4) This is a per-system constant, but varies between systems.
(5) These Are faults Actually Where the page has migrated out of primary memory.

















Friday, April 20, 2007

Hp C4180 Scanner Not Initialized

Oracle XE


When you mount a high availability system should always be used to avoid redundancy SPOF (Single Point Of Failure) or put another way: If you want high availability have everything you need at least 2 times because of the vital elements for the service (network card, disk, controller, fiber channel architecture, electricity ...) if you have only one, as that item is dropped availability goodbye and farewell service.



What's this? Well, come to that when we set up a high availability system before giving it to the customer we have to verify that the redundant elements that we have implemented are working properly and the service is not lost in case of failure of one of these elements. To certify the proper operation procedures involving long run cut 'the brave' of all protected SPOF. That is, having started and giving the cluster service network cables disconnected, certifies that the system is aware of the lack of that element but not affected, reconnect the cable and certify that everything is OK, and how important survive the fall is an element of a cluster as the subsequent recovery and reuse of the item once it has solved the issue. We do the same with discs, optical fiber connections ...



When these tests do I need a tool to effectively display and rapid changes of state of different elements. For example, to know the status of the link (remove and re-wire) network card I can run mii-tool







nclserver02 root @: ~ # mii-tool eth0


: Negotiate 100baseTX- FD, link ok eth1


: Negotiate 100baseTX-FD, link ok root @

nclserver02: ~ #







That tells me that at the time the 2 physical network cards are connected via cable and have link (eth1: Negotiate 100baseTX-FD, link ok

) In case of removing a cable, if I run mii-tool I get the status change


root @ nclserver02: ~ # mii-tool eth0
: Negotiate 100baseTX-FD, link ok eth1

: no link
root @ nclserver02: ~ #


but I'd be better run it once and see change screen without having to re-execute the statement. This applies also to the state of the filesystems (df-k), multipath ... in short, that rather than depending on where not to go running regularly instruction that allows me to see the change.
that use the application to watch, which comes standard on all distributions I've used and which frankly I find of great use, everything and so far none of the clients with whom I worked knew her. That is why I leave this post, to make known that it is this application and how to use. I'm sure that once you start using it will become one of your essential tools ;)


As man prays watch, watch periodically runs an instruction screen displaying result. In the previous example I can run mii-tool

[root @ nclserver03 ~] # watch-n0, 5 mii-tool




and every half second ( - n 0.5 ) watch run mii-tool and show me the result 'full screen' so that each run will overlap over the previous one, without relocation of the content. If you need to do a grep to show only relevant data I (imagine a ls-l, a cat, etc ... we quote (with the key for accents' or 'but without the' o ', not the single quote "'") to watch the sentences to run it as a whole, otherwise the instructions after a pipe (
-d
put in reverse the changes between 2 shots

-t does not display a default header that put information on the statement being executed, the execution period and the date / time

Sources: watch - help


Tuesday, April 10, 2007

How To Make A Snowboard/skateboard Rail

watch instruction in Ubuntu Edgy amd64 / EM64T (x86-64)

Oracle XE is only distributed in 32-bit binary, which causes it not to be installed on 64bit linux distributions 'as is'. For reasons of an internal project I had to see the feasibility of installing and using a database XE on Ubuntu Edgy 64 bit, and after discussion a little hali in # oracle of irc.freenode.org and some Google searches, has been far harder. Although these explanations are described for Ubuntu, to understand the idea of \u200b\u200bwhy everything has to be trivial to reproduce the process-based distributions such as RedHat.

We install 32-bit libraries for the process of linking of Oracle binaries can be made.
apt-get install libc6-i386

Explanation
library libc6-i386

( I realized then that there are some libraries that are libc6-i686 to i686 optimized compilation of libc6, so it would be more optimal use instead of libc6-i386)

We install the 32bit version of the libaio library. This process I have to see if it would be possible with apt (in a previous post pointed out how to install packages on different architectures using RedHat up2date), but for now we'll do it manually as it is only a package and we have well located.

can download it from http://packages.ubuntu.com/edgy/libs/libaio1 , clicking on the Download link i386 paragraph libaio1 and selecting the most appropriate version mirror (read the reason for the existence of these libraries for you to understand and improve the performance of I / O).


We must get off Oracle XE package
http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html

and once you accept the license Use, download the package. deb in paragraph Oracle Database 10g Express Edition (Universal) to have multiple language support
dpkg-i - force-architecture
libaio1_0.3.106-0ubuntu1_i386.deb dpkg-i - force-architecture oracle-xe-universal_10.2.0.1-1.0
_i386.deb
  • As I suppose you try to install an Oracle who know minimal recommended requirements of environment, I will not get to explain what swap size, minimal memory ... This is well explained in hundreds of sites, San Google you can help:)
Now we have the binaries properly installed (the installation and we have created the user 'oracle' and group 'dba', owners of the Oracle software we installed). All we need is the final configuration and commissioning.
We run a script provided by Oracle which among other things scritps create the automatic start / stop Oracle instance and listener. This script must be run as root, without using sudos to first obtain a session so pure root (no need to enable direct root login)


sudo-s

Now that we have a root session, we launched the service configuration script for Oracle XE (listener port of the web aplición management, passwords ...)

  • / etc / init .d / oracle-xe configure


  • After a while we should give the ok to the appointment process configuration / creation of the database and have multiple processes running oracle (the listener, pmon, smon, rec ...) and should have access to the administration of the new BD through the local web browser to the server, going to the address http://127.0.0.1: (port you've set before) / apex


is imperative to define the environment variables ORACLE_HOME and ORACLE_SID oracle user, so you can work with command line tools (lnsrctl , sqlplus, rm ...) without problems
  • su - oracle
vi $ HOME / .bash_profile
export ORACLE_SID = XE export ORACLE_HOME = / usr / lib / oracle / xe / app / oracle / product /
10.2.0/server export PATH = $ ORACLE_HOME / bin: $ PATH export TNS_ADMIN
= $ ORACLE_HOME / network / admin


oracle session Come out, come back to enter and now you can work normally with the new instance


nclserver02 oracle @: ~ $ sqlplus / nolog
    SQL * Plus: Release 10.2.0.1.0 - Production on Tue Apr 10 16:37:03 2007
  • Copyright (c) 1982, 2005, Oracle. All rights reserved.
  • SQL> conn / as sysdba Connected
.
SQL> select INSTANCE_NAME, VERSION, DATABASE_STATUS, EDITION from v $ instance;
INSTANCE_NAME
DATABASE_STATUS EDITION VERSION ---------- ----------------
------- ----------------- ------- ACTIVE
XE XE
  • 10.2.0.1.0 SQL> exit Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
nclserver02 oracle @: ~ $ rman target / nocatalog
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Apr 10 16:39:59 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
  • connected to target database: XE (DBID = 2500655873) using target database control file INSTEAD of recovery catalog RMAN
    >
  • Sources: channel # oracle irc.freenode.org Google led me to
    http://valery.bgit.net/blog-en/2006/07/09/oracle-database-10g-express-edition-in-linux I recommend reading post-installation actions

Tuesday, April 3, 2007

Homemade Sour Cream And Onion Seasoning

VMWARE and EXT3-fs error (device xxx) in ext3_ordered_writepage: Out of memory

condicciones Under high load and memory consumption on linux hosts virtual machines running VMWare, I have encountered the following error:



VMWARE and EXT3-fs error (device xxx) in ext3_ordered_writepage: Out of memory


This occurs when you consume large amounts of RAM (it should swap) and fast (the swap process does not give time to free RAM), and not only is free to that can handle your EXT3 journaling (can not make swap available)

To avoid this, we modify the parameter vm.min_free_kbytes to book, or yes, a certain number of bytes for kernel & company.

To do so, and incidentally, this value is loaded each time the machine boots, add the following line to
/ etc / sysct.conf
(file to set kernel parameters that can be read / changed on the fly)



# Error: EXT3-fs error (device dm-6) in ext3_ordered_writepage: Out of memory per
# Solution deixi prevent vmware no sense l'ext-3 ram per vm

to journaling. min_free_kbytes = 5000




once saved the changes run sysctl


-P

to be reread and apply the settings in / etc / sysctl.conf



The value (5000) is expressed in kilobytes and is the one I've put on my machines, this value is optional but not recommended very high (and 5MB is considered 'very high')

googling I found the solution, which led me to this forum

vmware
An explanation of the parameter
vm.min_free_kbytes


Monday, April 2, 2007

What Happened To The Ls Models?

catchall

Command Post where I'm saving, techniques, tips ... that are not well documented or are poorly understood, but I have become very useful or required in day to day implementation conslutoría or multi Packages
Example: Working in x86_64 architecture and product specifications have to install a rpm package compiled for x86_64 architecture ( native) and the same package but for the i386 architecture. The standard way is to get the package compiled for i386 and install it rpm-i mendiante hand (and in some cases with the - force). By up2date if we try to do the same, only check the repository for the native architecture. By a parameter

not reported in man up2date can indicate to check the package to a defined architecture instead of the native. up2date - arch = i386 packages we will install the packages compiled for i386 architecture, although our native platform (and therefore the default used for checking the software) is x86_64 and already have these packages installed for 64-bit

Browse
packages installed on a RedHat system, showing the architecture for each package

Once we installed the same packages with different architectures in order to check the specific architecture (rpm default does not show the architecture) can use the following query parameters rpm to show us the CPU for a particular package
rpm-q - queryformat "% {NAME} -% {VERSION}.% {RELEASE} (% {ARCH}) \\ n" packages



Download the source package of a package already installed on your system
up2date - get-source kernel-smp