Ir al contenido principal

Fighting Frustration

Some days things don't go the way I expected, sometimes people don't agree with my opinion or with what I feel is "obviously" more important to do. It's easy to start thinking that some people just don't care, if only they leave me alone and allow me to do my work, I can change the company. I can blame others when things go bad and start thinking that is their fault because they have a different opinion than mine.

But the true is that if something goes wrong, with the project I'm working, it's my fault. I should be responsible to finish the project, in time and budget, and because of that, I have to deal with all the bureaucracy that needs to be dealt with. I have to realize that I need to do that as part of my job. Besides, is not that people don't care is just that they have a different (and valid) approach than mine.

How do I deal with the frustration? Well... first I need to stop complaining, because if I start to focus in the bad and let the negativity enter my mind, all the required work will be harder. I need to stop focusing in the bad and see the challenges as an opportunity to grow my skills. If I want others to follow my lead or my ideas what I need is to show them how I can get results and being known by my results instead of being known as a complainer.

Frustration is a feeling that I need to choose not to feel, if things don't go the way I expected then I take a step back, see what it didn't worked, what alternatives do I have and then try again using another approach, all this without complains. The solution is not that others change their opinions, the goal should be for me, to understand their reasons and give them a solution that address their concerns and allow me to complete the project on time.

So... to fight frustration I will stop complaining and start doing.

Comentarios

Entradas más populares de este blog

Bloqueos

Una de las preguntas típicas de las juntas matutinas en los equipos de desarrollo de software es ¿Hay algún bloqueo? Si lo hay, se trata de ver qué es lo que está esperando esa persona y encontrar la forma de que se desbloquee; pero ¿Qué son los bloqueos? Los bloqueos son obstáculos que te impiden realizar o avanzar en tu trabajo. Evitan que puedas seguir progresando en el proyecto.

He notado que es común en las personas con menos experiencia decir que tienen un bloqueo cuando están batallando, debido a su poca experiencia, en la forma de resolver un problema. Han intentado varias formas y se empiezan a quedar sin ideas de como puede ser resuelto el problema o como pueden cumplir con el requerimiento especificado. Al quedarse sin opciones de qué intentar dicen que tienen un bloqueo con la tarea y que a menos que alguien les diga como resolverlo, no se puede avanzar en la tarea.

En personas con más experiencia, ese tipo de bloqueos no ocurren, una persona con experiencia ha visto pro…

Firebird 2.1 UPDATE OR INSERT

Another great feature that I like in Firebird 2.1 is the UPDATE OR INSERT statement. It's a really time saver and it makes the SQL cleaner.

For example suppose I have a products table like the one I use in my last post and an inventory table to store the product stock. Before Firebird 2.1 if I want to set the stock for a product I needed to check if a record for that product_id already exists; if the product_id already exists then I write an update. If not then I write an insert statement. So I ended up with something like this:


IF EXISTS(SELECT * FROM inventory WHERE product_id = :product_id ) THEN
UPDATE
inventory
SET
stock = :stock
WHERE
product_id = :product_id;
ELSE
INSERT INTO inventory
(product_id, stock)
VALUES
(:product_id, :stock);

In this example I only update one field but when I have to update a big table I ended up with a big chunk of code and thinking: "there should be another (better) way to do this".

Fortunately now with Firebird 2.1 there…

Database Mail en MS SQL Server 2005

Configuración de Database Mail en MS SQL Server 2005

Primero se debe de habilitar, ya que por omisión el componente esta deshabilitado, Utilizando el SSMS (SQL Server Management Studio)


Si no esta habilitado aparecerá un mensaje preguntado si lo habilita, después aparece esta ventana donde se pregunta al usuario que es lo desea hacer.


Seleccionamos la primera opción para crear un perfil.


Configuramos el perfil y le agregamos por lo menos una cuenta.


Seleccionamos el perfil como public y default.


Para mandar correo se utiliza el procedimiento msdb.sp_send_dbmail por lo tanto el usuario que intente mandar correo debe de tener permiso para la base de datos msdb.

Referencias:
http://www.sqlservercentral.com/columnists/cBunch/introtodatabasemailinsql2005.asp