Agras Zeta Atino

Un blog mas de tecnologia, locuras y procrastinacion

PostgreSQL Test Day

This is a copy&paste quote from the PostgreSQL mailing List post by Josh Berkus:

Hay un mensaje en español al final.

I hereby declare Saturday, April 3, PostgreSQL Test-Fest day. Get our your computers and get ready to test Version 9.

We need *you* to spend a full day testing Postgres 9 in order to complete the Alpha/Beta testing period on time and release 9.0 as scheduled. Without your help testing many of the complex new features… such as Hot Standby, Synchronous Replication, DO(), new PL/Perl, named parameters, new Listen/Notify and more … we simply will not be able to release on time. There’s far too much testing to be done for our few dozen major contributors to do it all.

The San Francisco PostgreSQL Users’ Group will be having a Test-Fest at Noisebridge on Mission Street in San Francisco all day April 3. A dozen or more of our members will be showing up with laptops, desktops and shelling into remote servers in order to test all of the Postgres 9 features. If you are in the Bay Area, we need you to attend! There will be free food and drink. RSVP on Meetup.

If you don’t live in the SF Bay Area, that’s no excuse not to participate. First, if you have a local User Group, organize your own Test-Fest. SFPUG’s planning page is on the wiki for you to use and copy. Further, SFPUG plans to have live streaming video of the Test-Fest so that users from all over the world (at least, those in compatible time zones) can participate in the Test-Fest from their own homes and offices.

En español

Desde hace unas semanas, se viene hablando en las listas de PostgreSQL (Español e ingles) de hacer un PostgreSQL test Day, la idea de dicho evento es descubrir a través de distintas pruebas, posibles bugs en la nueva version del popular motor de base de datos. No se requiere un conocimiento extenso de PostgreSQL solo se necesitan ganas, una instalación fresca de la version 9 que puede ser descargada de aca, data para hacer las pruebas, y muchas ganas.

La cita es este 3 de abril, durante el transcurso del dia, en el canal #postgresql-es y #postgresql por freenode!

Crees poder organizar algo con tus amigos?… adelante! la gente de SFPUG tiene algunas ideas, quizas puedas replicarlas.

Links:

http://postgresql.meetup.com/1/calendar/12794759

http://wiki.postgresql.org/wiki/SFPUG_Beta_Test_Day

http://wiki.postgresql.org/wiki/HowToBetaTest

http://www.postgresql.org/developer/alpha

http://developer.postgresql.org/pgdocs/postgres/release-9-0.html

PostgreSQL Te necesita!, Ayudanos a probar la version 9.

Create a PostgreSQL database/cluster with a different encoding

This is a simple way to create a PostgreSQL database/instance with another encoding than your default’s (e.g.: EUC_JP instead of UTF-8).

in most debian-based distros (For example in ubuntu, and debian itself), you can simply use the following command to create (and afterwards run) a PostgreSQL database cluster with a an encoding other than default.

LC_ALL=C /usr/lib/postgresql/8.4/bin/initdb -E EUC_JP -D $(pwd)

After this, you will se a message telling you to start the database and stuff… and that’s it. You just have to be carefull when starting the database, since the command configures everthing to be working with the port 5432 which is postgresql’s default port. Also, you may have to set the permissons.

This also gives another advantage, have multiple databases with different encodings, as the regional configuration of the cluster is set to C. This link to the PostgreSQL’s official docs, explains why you have to do this kind of magic to be able to have something like this. Just an advice:

BE CAREFULL.

Actualizar IP en CDMON rapido y sin dolor

Desde hace unos cuantos años uso CDMON para actualizar la ip de ciertos servidores que tengo. Ya que CANTV asi como muchos otros ISP‘s no nos permiten (al menos no por metodos para mortales) tener IPs estaticas en casa, debido a esto, salen soluciones de DNS Dinamico, a falta de un cliente decente para linux (Y en realidad… no hace tanta falta), he aqui la forma de actualizar la ip del servidor en CDMON:

Instalar los paquetes necesarios:

 $ aptitude install curl curl-ssl

Colocar el siguiente mini script en una carpeta (yo lo coloco en ~/bin/)

#!/bin/bash
 curl "https://dinamico.cdmon.org/onlineService.php?enctype=MD5&n=usuarioplano&p="$(echo -n "clavemd5" | md5sum | sed s/-//)

Donde usuarioplano es el usuario que asignaron a X servidor y clavemd5, es el password de dicho usuario encriptado usando md5, para conseguir un hash basta con entrar aca o ir a google y buscar “md5 hash online” o algo por el estilo….

Aca solo hay que cambiar dos cosas una es usuarioplano y la otra es clavemd5 :) y eso es todo

# Guardar el archivo como: cdmon.sh en la carpeta ~/bin, crearla si no existe, y darle permisos de ejecucion:

$ mkdir ~/bin
$ vim ~/bin/cdmon.sh
$ chmod +x ~/bin/cdmon.sh
# Hacer un enlace simbolico en la carpeta de /etc/cron.daily|hourly|weekly|monthly
# dependiendo de la frecuencia con la que se desee trabajar.
$ sudo ln -sf ~/bin/cdmon.sh /etc/cron.daily/

NOTA: Esto deberia funcionar _casi_ siempre “out of the box”, sin embargo, si no actualiza pues tendras que leer la documentacion que es realmente sencilla y se encuentra aca.

Tambien esta este script, que cumple exactamente la misma funcion…

Social links powered by Ecreative Internet Marketing