Nos Mudamos

18 May 2013

Por temas de centralizacion y funcionalidad he decidido mudar este blog a la siguiente dirección: http://rac-code.blogspot.com/ , asi que no se desconecten y mantengase al tanto!

Una instalación de MySQL en un mundo feliz sería de esta forma y con los mensajes siguientes:

raccode@crunchbang:~$ sudo apt-get install mysql-server
[sudo] password for raccode:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
cronolog dbconfig-common libblas3gf liblapack3gf libmcrypt4 libmozjs18d libonig2 libqdbm14 xulrunner-18.0
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
libterm-readkey-perl tinyca
The following NEW packages will be installed:
libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 7 newly installed, 0 to remove and 10 not upgraded.
Need to get 8,132 kB/8,259 kB of archives.
After this operation, 90.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://security.debian.org/ wheezy/updates/main mysql-common all 5.5.31+dfsg-0+wheezy1 [85.3 kB]
Get:2 http://security.debian.org/ wheezy/updates/main libmysqlclient18 i386 5.5.31+dfsg-0+wheezy1 [671 kB]
Get:3 http://security.debian.org/ wheezy/updates/main mysql-client-5.5 i386 5.5.31+dfsg-0+wheezy1 [1,627 kB]
Get:4 http://security.debian.org/ wheezy/updates/main mysql-server-core-5.5 i386 5.5.31+dfsg-0+wheezy1 [3,638 kB]
Get:5 http://security.debian.org/ wheezy/updates/main mysql-server-5.5 i386 5.5.31+dfsg-0+wheezy1 [2,027 kB]
Get:6 http://security.debian.org/ wheezy/updates/main mysql-server all 5.5.31+dfsg-0+wheezy1 [83.6 kB]
Fetched 8,132 kB in 32s (249 kB/s)
Preconfiguring packages …
Selecting previously unselected package mysql-common.
(Reading database … 98399 files and directories currently installed.)
Unpacking mysql-common (from …/mysql-common_5.5.31+dfsg-0+wheezy1_all.deb) …
Selecting previously unselected package libmysqlclient18:i386.
Unpacking libmysqlclient18:i386 (from …/libmysqlclient18_5.5.31+dfsg-0+wheezy1_i386.deb) …
Selecting previously unselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from …/libdbd-mysql-perl_4.021-1+b1_i386.deb) …
Selecting previously unselected package mysql-client-5.5.
Unpacking mysql-client-5.5 (from …/mysql-client-5.5_5.5.31+dfsg-0+wheezy1_i386.deb) …
Selecting previously unselected package mysql-server-core-5.5.
Unpacking mysql-server-core-5.5 (from …/mysql-server-core-5.5_5.5.31+dfsg-0+wheezy1_i386.deb) …
Processing triggers for man-db …
Setting up mysql-common (5.5.31+dfsg-0+wheezy1) …
Selecting previously unselected package mysql-server-5.5.
(Reading database … 98585 files and directories currently installed.)
Unpacking mysql-server-5.5 (from …/mysql-server-5.5_5.5.31+dfsg-0+wheezy1_i386.deb) …
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from …/mysql-server_5.5.31+dfsg-0+wheezy1_all.deb) …
Processing triggers for man-db …
Setting up libmysqlclient18:i386 (5.5.31+dfsg-0+wheezy1) …
Setting up libdbd-mysql-perl (4.021-1+b1) …
Setting up mysql-client-5.5 (5.5.31+dfsg-0+wheezy1) …
Setting up mysql-server-core-5.5 (5.5.31+dfsg-0+wheezy1) …
Setting up mysql-server-5.5 (5.5.31+dfsg-0+wheezy1) …
Stopping MySQL database server: mysqld.
130517 9:05:21 [Note] Plugin ‘FEDERATED’ is disabled.
130517 9:05:21 InnoDB: The InnoDB memory heap is disabled
130517 9:05:21 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130517 9:05:21 InnoDB: Compressed tables use zlib 1.2.7
130517 9:05:21 InnoDB: Using Linux native AIO
130517 9:05:21 InnoDB: Initializing buffer pool, size = 128.0M
130517 9:05:21 InnoDB: Completed initialization of buffer pool
130517 9:05:21 InnoDB: highest supported file format is Barracuda.
130517 9:05:22 InnoDB: Waiting for the background threads to start
130517 9:05:23 InnoDB: 5.5.31 started; log sequence number 1624608
130517 9:05:23 InnoDB: Starting shutdown…
130517 9:05:24 InnoDB: Shutdown completed; log sequence number 1624608
Starting MySQL database server: mysqld ..
Checking for tables which need an upgrade, are corrupt or were
not closed cleanly..
Setting up mysql-server (5.5.31+dfsg-0+wheezy1) …
raccode@crunchbang:~$

 

Datos:

– Crunchbang 11 (Waldorf), 32-bit

– Apache 2.2.22-13

Para instalar el apache ejecuta los siguientes comandos en tu terminal:

1. apt-get update
2. apt-get install apache2
3. service apache2 restart

Si la instalación fue sin mensajes de error, abre tu navegador (browser) favorito, escribe http://localhost. Si en este te aparece una página con un texto en negrita It Works!, entonces ya tienes instalado correctamente tu servicio de Apache.

Nota: Es posible que tengas que ejecutar los comandos de arriba como root.

 

Incidentes (Issues):

1. Si all intentar reiniciar el apache con el comando: service apache2 restart, obtienes la siguiente respuesta:

/etc/init.d/apache2: 51: .: Can’t open /etc/apache2/envvars

Es posible que tengas que reinstalar tu Apache. Para ello ejecuta los siguientes comandos:

a. apt-get remove -purge apache2 apache2-utils. Este comando removerá completamente el Apache de tu PC, incluyendo archivos de configuración y directorios.
b. apt-get install apache2. Reinstala nuevamente el servicio de Apache.

Esto debería resolver el problema. Por favor, comenta si te ayudo!

 

2. Si al reiniciar el Apache obtienes un mensaje como este:

apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName, debes modificar el archivo apache2.conf que se encuentra en /etc/apache2. Al final de este archivo agrega la siguiente línea:

ServerName localhost

3. Si al reinicar el Apache obtienes el siguiente mensaje:

Restarting web server: apache2/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)

/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)

(13)Permission denied: me_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action ‘start’ failed.
The Apache error log may have more information.
failed!

Esto es sencillo, corre el comando con sudo como prefijo, asi:

raccode@crunchbang:/etc/apache2$ sudo service apache2 restart

[sudo] password for raccode:
Restarting web server: apache2 … waiting ..
raccode@crunchbang:/etc/apache2$

Si usas Debian (como yo) y en ocasiones ves interrumpido tu proceso de iniciar tu laptop por un mensaje como este, no te preocupes, tengo entendido que es una revisión forzada del sistema operativo. Checkea estos links:

1. http://crunchbanglinux.org/forums/topic/10373/dev-sda1-check-forced/

2. http://ubuntuforums.org/showthread.php?t=623859

Si deseas que tu computadora no te muestre este mensaje, tienes que hacer unos cambios en ciertos files, para que este checkeo no vuelva a aparecer más. Pero, toma en cuenta que no es muy beneficio siempre evitar esta revisión.

Enlaces que te ayudarán (no han sido probados por mi).

1. http://www.cyberciti.biz/faq/linux-unix-bypassing-fsck/

2. http://forums.debian.net/viewtopic.php?f=30&t=52723

Hello Everyone!!

Realmente no se si este mensaje de error es genérico o específio. Por ende, voy a decirles que si están:

– Usan Visual Studio 2010

– Windows 7 x64

– Y tan trantando de correr un programa desarrollado en una versión anterior al VS 2010 y que hace referencia a DLL’s, entonces chequeate este video, porque te va a dar la solución:

www.youtube.com/watch?v=pDtyGns6mOw

Fin!!!

Si deseas mostrar las propiedades de los campos que conforman una tabla en SQL Server, este SQL puede ayudarte:

USE <nombre de la base de datos>

GO

SELECT column_name  ‘Nombre del Campo’,

data_type  ‘Tipo de Dato’,

character_maximum_length  ‘Tamaño’,

column_default  ‘Valor por Defecto’,

is_nullable  ‘Permite Nulo’

FROM information_schema.columns

WHERE table_name = ‘<nombre de la tabla>

Esto es muy bueno cuando deseas crear Diccionario de Datos (DD), muy útiles para tener un control de los datos guardados en la Base de Datos y para futuras modificaciones o mantenimientos.

– column_name: nos devuelve el nombre del campo

– data_type: el tipo de dato del campo.

– character_maximum_length: el tamaño de los datos en el campo.

– column_default: valor por defecto del campo

– is_nullable: Si el campo permite valor Null.

– <nombre de la base de datos>: aqui debes reemplazar con el nombre real de la BD.

– <nombre de la tabla>: reemplazar con el nombre de la tabla. Por favor, no quitar los apostrofes

Es muy probable que cuando manejes nombres y apellidos de una tabla de clientes o contactos, muchos de estos vengan vacios o en nulo. Al tener estos valores, el reporte en Crystal no despliega nada ya que al conctenar un valor nulo (suponte sea el nombre) con otro valor no nulo (suponte sea el apellido), el resultado es un valor en blanco o vacio (no visible en el reporte). Esto puede ser frutrante y ocasionarte horas de investigación y tiempo perdido. Bueno, para evitar estos s3, utiliza el siguiente código en una fórmula:

StringVar Firstname;

StringVar Lastname;

StringVar Contact;
if isnull({CONTACT.FIRSTNAME}) then Firstname := «» else Firstname := {CONTACT.FIRSTNAME};

if isnull({CONTACT.LASTNAME}) then Lastname := «» else Lastname := {CONTACT.LASTNAME};

Contact := Firstname & » » & Lastname;

If trim(Contact) <> «» Then Trim(Contact) else «———«;

Como puedes ver, es bastante sencillo evitar este percance. La ultima línea te servirá solamente si quieres mostrar algún carácter (es) que expresen que el valor está vacío.

Otra opción más rápida de lograr lo mismo sería:

Firstname := IIF(isnull({TARJETASCREDITO.PRINCIPALFIRSTNAME}), «», Trim({TARJETASCREDITO.PRINCIPALFIRSTNAME}));

Lastname  := IIF(isnull({TARJETASCREDITO.PRINCIPALLASTNAME}), «», Trim({TARJETASCREDITO.PRINCIPALLASTNAME}));

If Lastname = «» Then Firstname Else Firstname & » » & Lastname

Este code fue probado en Crystal Reports XI